Commit Graph

398 Commits

Author SHA1 Message Date
dependabot-preview[bot]
f6d040a687 Bump @vue/test-utils from 1.0.0-beta.33 to 1.0.0 (#523) 2020-05-05 15:07:39 +00:00
dependabot-preview[bot]
a983af6ca1 Bump @typescript-eslint/eslint-plugin from 2.30.0 to 2.31.0 (#520) 2020-05-04 21:45:37 +00:00
dependabot-preview[bot]
51153d421d Bump @typescript-eslint/parser from 2.30.0 to 2.31.0 (#518) 2020-05-04 21:30:16 +00:00
Rijk van Zanten
622570cc45 Add presets settings (#517)
* Add shared component creation modal

* Add bookmark strings

* Expose save-as-bookmark method

* Fix typing of filter

* Add save bookmark button

* Add presets browse page

* Add select / delete functionality

* Render null value in layout as value-null

* Start on presets detail view

* Render presets detail view

* Save view options correctly

* Add readonly mode to cards layout

* Add layout drawer to presets detail

* Add delete on detail

* Add empty state

* Fix linter warnings
2020-05-04 12:31:11 -04:00
dependabot-preview[bot]
1fbaa73d06 Bump nanoid from 3.1.3 to 3.1.4 (#516) 2020-05-04 15:46:27 +00:00
Rijk van Zanten
31ef7a48c9 Various fixes (#515)
* Fix image deselection when newID isn't set

* Fix svg support in image interface

* Render correct title on file library detail

* Default to interfaces based on type

* Remove unused import

* Don't show dropdown indicator on field label when readonly

* Accept datetime_created datetime_updated in datetime interface

* Add reused value-null component

* Fix z-index of v-badge

* Close status on content click

* Move edit button to header on file detail

* Increase tooltip z-index

* Add warning notice to edit image modal

* Fix extra spacing in divider interface

* Use wide style for notifications when drawer is open

* Click on image to open file preview
2020-05-01 18:08:37 -04:00
Ben Haynes
4dabcc6a25 Various style tweaks (#513)
* true title alignment

not sure why, but normal was optically best for me

* flip dropdown arrow when open

* flip dropdown arrow and add dot contrast

* fix icon expanding label height

keep arrow visible when menu open

* global form size and clean-up file preview

* updated console log

WIP — also includes format for warnings, errors, timing, etc

* add form max width

* fix search input width with value

* style chips

* no arguments

* 00 == 60

* update tags/chip styling

* wysiwyg editor style fixes

* conditional formatting

* seconds option and wip 12h time

* even editor tool spacing

* avoid vertical text clipping

* add circle option to image display

* add circle option to user display

* add circle to translations

* add rating display

* remove log

* button vertical alignment

* correct image width

* polish image styles

* Fix datetime interface

* Use flip transition

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-05-01 16:01:22 -04:00
Rijk van Zanten
a2f04f4c28 Fix v-menu active state (#514) 2020-05-01 15:08:16 -04:00
dependabot-preview[bot]
9ddceef16e Bump vue-loader from 15.9.1 to 15.9.2 (#512) 2020-05-01 17:56:16 +00:00
dependabot-preview[bot]
f9678029b1 Bump lint-staged from 10.2.1 to 10.2.2 (#511) 2020-05-01 04:32:52 +00:00
Jacob Rienstra
78951da9de Interface icon (#436)
* icon interface first pass

* icon test

* readme lol

* Fix top placement in attached mode

* Finish icon interface

* Add some padding

* Finishing touches

* Fix tests

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-04-30 23:55:11 -04:00
Rijk van Zanten
27c7c055da Interface image (#510)
* Add format filesize util

* Move and tweak file-preview

* Add file lightbox componetn

* WIP add image interface

* Add download prop option to v-button

* Add active model support to image editor

* Add functionality for buttons

* Add deselect button

* Add upload lang

* Fix translations of upload notifications

* Fix local vs global dropzone

* Add v-upload component

* Finish image interface
2020-04-30 17:01:14 -04:00
Rijk van Zanten
dde5517c74 Add user display (#509) 2020-04-30 11:54:53 -04:00
Rijk van Zanten
e8206b06a2 Rename compositions to composables (#508)
* Rename compositions to composables

* Rename test helper, replace some other occurances

* Log error to console
2020-04-30 10:15:32 -04:00
dependabot-preview[bot]
29203790f3 Bump lint-staged from 10.2.0 to 10.2.1 (#507) 2020-04-30 13:48:48 +00:00
dependabot-preview[bot]
d6ab364d71 Bump @tinymce/tinymce-vue from 3.2.0 to 3.2.1 (#506) 2020-04-30 08:17:41 +00:00
Rijk van Zanten
0253cc9d93 Image display (#505)
* Add adjust for displays util

* Adjust fetched fields for configured options

* Add padding to table rows

* Add image display

* Rename Query to Options

* Fix codesmell
2020-04-29 18:44:13 -04:00
Rijk van Zanten
0bf32c230b Fix file drop, again (#504) 2020-04-29 17:09:07 -04:00
Rijk van Zanten
4b7fcb79fa Add reusable image editor modal (#503)
* Install cropperjs

* Add cropper js styles

* Add editing image string

* Track inner active state

* Add temp edit button

* Start on image editor modal

* Add custom icons for image manipulation

* Add image manipulation strings

* Tweak cropper styles

* Remove unused import

* Save as blob

* Expose getItem method for manual refreshes

* Add cache-busting to file preview

* Use new API post endpoint, emit refresh event on success

* Add a cache buster to the image editor
2020-04-29 16:44:34 -04:00
dependabot-preview[bot]
df1987dba9 Bump @babel/core from 7.9.0 to 7.9.6 (#502) 2020-04-29 19:23:52 +00:00
dependabot-preview[bot]
0bbf365572 Bump @directus/format-title from 3.1.1 to 3.1.2 (#501) 2020-04-29 17:28:10 +00:00
Rijk van Zanten
b5d6fdefa2 Add date(time) interface (#499)
* Add localized-format util

* Add active prop to v-input

* Add strings for datetime interface

* Add overflow-scroll prop to v-menu

* Add close-on-content-click prop to v-select

* Add datetime interface

* Show display value synced with prop

* Sync value with prop

* Set lang after user hydration

* Add NL date-fns lang to test datetime

* Fix locale fetching in date-fns

* Dont stage value if year isnt fully filled out

* Localize date fns based on shared util

* Handle type, render type based display

* Don't use exact on v-list-item

* Pass type to interface on v-form
2020-04-29 10:00:22 -04:00
Rijk van Zanten
fcbe0af502 Fix item count (#500)
* Use item count instead of total count in header indicator

* Fix duplicate export
2020-04-29 09:31:42 -04:00
dependabot-preview[bot]
ce7f173230 Bump @popperjs/core from 2.3.3 to 2.4.0 (#498) 2020-04-28 16:23:19 +00:00
dependabot-preview[bot]
1a54c4395e Bump lint-staged from 10.1.7 to 10.2.0 (#497) 2020-04-28 16:05:25 +00:00
Rijk van Zanten
bdd45946d6 Remove trim from v-input (#496) 2020-04-28 10:13:32 -04:00
Rijk van Zanten
47b860adf3 Fix sorting logic for manual sort (#495) 2020-04-27 19:11:53 -04:00
Rijk van Zanten
6ed64a9667 Bookmarks (#494)
* Add support for bookmarks in collection preset composition

* Add strings for bookmark 404

* Use bookmarks prop in collections browse

* Use exact for active link in navs

* Show bookmarks in navigation

* Make bookmark optional in collection preset
2020-04-27 18:59:59 -04:00
Rijk van Zanten
12b24b9115 Add version message in console on load (#493) 2020-04-27 17:13:46 -04:00
dependabot-preview[bot]
caf362615b Bump @typescript-eslint/eslint-plugin from 2.29.0 to 2.30.0 (#492) 2020-04-27 20:00:22 +00:00
dependabot-preview[bot]
9ee9f88957 Bump @typescript-eslint/parser from 2.29.0 to 2.30.0 (#491) 2020-04-27 19:32:46 +00:00
Rijk van Zanten
eb129ec750 File preview (#490)
* Don't show filters that are locked

* Change status badge size

* Fix letter spacing

* Optically align title

* Add file-preview at top of files page

* Add missing alt attr
2020-04-27 15:06:19 -04:00
Ben Haynes
65888e7ba3 Various style tweaks (#488)
* secondary action button style

will apply to other modules if we like this

* card styling

filled grid
static gaps
improved selections/hovering

* action button colors

* dialog styling

* updated pagination

* choose layout name

* move page count to footer

* card footer

* correct list group icon orientation

* move card size to header

* header icon color

* radios are not labels

* clean up projcet chooser styling

* don’t collapse pagination when empty

* logout style and tooltips

* correct css variable

* layout translation key

* use general “per page” translation

* hide per page when not in use

also increases min per page from 10 to 25

* more per page fixes

* add regex placeholder

* add new custom grid icons

* new card size toggle and tooltips

* differentiate between inner/outer border radius

WIP

* display icons

* horizontal alignment for status dot

WIP

* beautiful badges

* fix jumping table loader

* show search “x” when minimized

* shorten page count string

* system tooltips

* user menu avatar hover

* edit vs new detail page

don’t show delete if new
rijk might not like my nested ternary

* conditional divider spacing

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-04-27 14:09:40 -04:00
Rijk van Zanten
e502a95fb2 Tabular manual sort (#489)
* Return sortField in use-collection composition

* Add manual sort function in use items composition

* Allow setting manual sort key

* Add manual sorting to tabular layout

* Fix styling of drag handles in table rows

* Fix active check in manual toggle

* Rename enable to toggle in manual sort button

* Fix tests

* Fix codesmell
2020-04-27 13:00:25 -04:00
Rijk van Zanten
9e28932a42 Collection display template (#487)
* Add translation strings for adding/editing item

* Add display_template to collection type

* Dont use functional for skeleton loader

* Make title optional and add title slot

* Make title prop optional in private view

* Render -- for null values in render template

* Render display template in header bar

* Render null values in template as subdued --

* Render status dot aligned in the middle

* Fetch latest collections on settings save
2020-04-27 10:50:38 -04:00
dependabot-preview[bot]
7fde68d8f0 Bump vue-i18n from 8.17.3 to 8.17.4 (#486) 2020-04-26 15:03:29 +00:00
dependabot-preview[bot]
a1cc052c17 Bump jest-sonar from 0.2.6 to 0.2.7 (#485) 2020-04-25 18:51:33 +00:00
dependabot-preview[bot]
489e013fb3 Bump jest-sonar from 0.2.5 to 0.2.6 (#484) 2020-04-25 16:12:21 +00:00
Rijk van Zanten
4e7ab8b8a3 Add item count indicator to tabular and cards (#483) 2020-04-24 20:53:56 -04:00
Rijk van Zanten
8498c37431 Info state (#482)
* Render markdown in field notes

* Make add field button full width on data model

* Add no items with cta

* Add no items cta

* Add no results + clear

* Add no collections state
2020-04-24 20:12:51 -04:00
Rijk van Zanten
d338ee7b4f Close search input on empty click (#481) 2020-04-24 19:01:58 -04:00
Rijk van Zanten
668056f3b0 Base component var scoping (#480)
* Avatar / badge

* Move base component vars to body scope

* Fix global icon override
2020-04-24 18:52:27 -04:00
Ben Haynes
b30dd930e7 Various style tweaks (#479)
* secondary action button style

will apply to other modules if we like this

* card styling

filled grid
static gaps
improved selections/hovering

* action button colors

* dialog styling

* updated pagination

* choose layout name

* move page count to footer

* card footer

* correct list group icon orientation

* move card size to header

* header icon color

* radios are not labels

* clean up projcet chooser styling

* don’t collapse pagination when empty

* logout style and tooltips

* correct css variable

* layout translation key

* use general “per page” translation

* hide per page when not in use

also increases min per page from 10 to 25

* more per page fixes

* add regex placeholder

* add new custom grid icons

* new card size toggle and tooltips

* differentiate between inner/outer border radius

WIP

* display icons

* horizontal alignment for status dot

WIP

* beautiful badges
2020-04-24 18:48:05 -04:00
Rijk van Zanten
871cd9c228 Block filters while loading (#478)
* Register filter drawer detail globally

* Add loading state mode to filter drawer detail

* Fix cursor clicking in search-filter

* Move filter drawer detail to layouts

* Fix typing of badge in drawer detail

* Close filter dropdown on content click

* Close project chooser on click outside
2020-04-24 18:23:59 -04:00
Rijk van Zanten
5a3d3ddc08 Filter close on click (#477)
* Dont bubble up click event from list group toggle

* Close filter field select on selection
2020-04-24 17:29:22 -04:00
Rijk van Zanten
d460946a34 Add drawer-detail-badge-value support (#476) 2020-04-24 17:26:22 -04:00
Rijk van Zanten
91e67ea581 Link to project if project url is set in settings (#475) 2020-04-24 17:24:02 -04:00
Rijk van Zanten
0d01265e9e Fix save-and-stay on new items (#474) 2020-04-24 17:23:11 -04:00
Rijk van Zanten
9138e7ab5b Search input (#473)
* Add search-input component

* Add searchquery support to tabular view

* Add search bar on collections browse

* Debounce input values

* Handle searchQuery in collection preset composition

* Handle searchquery in use-items composition

* Support search query in cards layout

* Add search-input to files/users
2020-04-24 16:27:17 -04:00
Rijk van Zanten
3ca7e66a3f Set contains to be default filter + use translations for add new button (#472) 2020-04-24 15:33:02 -04:00