Commit Graph

10030 Commits

Author SHA1 Message Date
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
Rijk van Zanten
41d77cde65 Status interface (#471)
* Add status interface

* Add some tests

* Set active state of list item and add disabled
2020-04-24 15:31:06 -04:00
Rijk van Zanten
bc0fbaa897 Make all icons in inputs subdued by default (#470) 2020-04-24 13:09:32 -04:00
Rijk van Zanten
a7e938ae8d Checkboxes (#468)
* Allow custom value option

* Add checkboxes interface

* Style custom value checkbox better

* Fix tests
2020-04-24 13:06:00 -04:00
Rijk van Zanten
16c3804b0a Radios (#467)
* Extract custom values logic into shared composition

* Fix background layering

* Add disabled prop to v-icon

* Pass field width to interfaces

* Move color var declaration to global scope

* Remove unused imports

* Handle null for items

* Add radio buttons string

* Add radio buttons interface

* Finish radio buttons interface

* Add tests

* Fix icon test
2020-04-24 12:14:01 -04:00
dependabot-preview[bot]
976c17cece Bump css-loader from 3.5.2 to 3.5.3 (#466) 2020-04-24 13:47:37 +00:00
dependabot-preview[bot]
ac55b21cc7 Bump sass from 1.26.3 to 1.26.5 (#465) 2020-04-24 03:07:57 +00:00
Rijk van Zanten
e0e40af74a Fix table loading alignment (#464) 2020-04-23 18:45:03 -04:00
Rijk van Zanten
a2bc406bde Add block style to radio button (#463) 2020-04-23 18:39:03 -04:00
Rijk van Zanten
5146d0cc03 Add dropdown-multiselect interface (#462) 2020-04-23 18:34:45 -04:00
Rijk van Zanten
0b05613a55 Add dropdown interface (#461)
* Add show-deselect option to v-select

* Add parse-choices util

* Add dropdown interface

* Add allow-other prop to v-select (single only)

* Check for custom state correctly

* Treat empty custom value as null

* Set full-width to true by default for inputs / selects

* Add allow-other support to multiple dropdown

* Upgrade display value to show item count

* Fix custom deletion

* Fix tests

* Pass allow other on in dropdown interface
2020-04-23 18:16:17 -04:00
Rijk van Zanten
571412ff2c Add wysiwyg interface (#460)
* Install tinymce

* Add wysiwyg interface

* Mock window.matchMedia

* Fix wysiwyg not reading data on value change

* Render skeleton loader on top of wysiwyg

* Add hideLoader support to interfaces

* Sneak this little bugfix in unnoticed

It's now passing on the interface / options to the display rendering in render-template
2020-04-23 14:01:27 -04:00
Rijk van Zanten
fc94de0067 Interface toggle (#459)
* Add icon prop overrides to checkbox

* Fix color example in storybook

* Add block style mode to checkbox base componet

* Add toggle interface
2020-04-23 09:12:12 -04:00
Rijk van Zanten
ce7c3fc857 Hide label on divider interface (#458)
* Allow interfaces to hide the field label

* Make sure it doesnt hide all labels though
2020-04-22 17:21:21 -04:00
Rijk van Zanten
d8cf7d9717 Add formatted-text display (#457) 2020-04-22 17:02:08 -04:00
Rijk van Zanten
8b4bd25a92 Add storybook entry for tags display (#456) 2020-04-22 16:43:04 -04:00
Rijk van Zanten
e4f5c6ea31 Add tags display (#455)
* Add tags display

* Fix label style in v-chip combined with sizeds
2020-04-22 16:39:43 -04:00
Rijk van Zanten
d7b3a2573d Status badge (#454)
* Add status badge display

* Add storybook entries for dot/badge
2020-04-22 16:18:25 -04:00
Rijk van Zanten
96db381fbf Status display (#453)
* Convert render function into component

* Allow types definition in display registration

* Add status-dot interface

* Fix render display rendering in tabular view

* Add types to other displays

* Export tooltip from index

* Start on readme

* Add tests for status dot
2020-04-22 15:41:00 -04:00