Commit Graph

341 Commits

Author SHA1 Message Date
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
Rijk van Zanten
273f1bafd0 Tabular displays (#452)
* Add render-display component

* Render displays in tabular layout

* Add readme for render-display
2020-04-22 14:20:25 -04:00
Ben Haynes
ae64f20578 Various style tweaks (#449)
* 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
2020-04-22 13:19:20 -04:00
Rijk van Zanten
4b2a43aa9d Permissions (#451)
* Start on permissions setup widget

* Calculate toggle states

* Render out statuses details

* Render all sub-toggles

* Rough in grid styling

* Tweak type / structure of permissions array

* Add inline saving for status checkboxes

* Fix popper reference

* Add sub-indicators + add active to list item

* Finish status toggles

* Add saving on column level

* Add border to system section

* Add field blacklist modal

* Make field blacklist work on collection level

* Add indeterminate state to field checkboxes

* Add hover / active state to activator

* Save all statuses to create on collection level too

* Visually align icons

* Account for status mapping without value key

* Style loader to match height of permissions

* Add status modal

* Allow status modal for create permission

* Add collections header

* Increase font-weight of permissions header
2020-04-22 11:46:45 -04:00
dependabot-preview[bot]
d2a63d9a13 Bump lint-staged from 10.1.6 to 10.1.7 (#450) 2020-04-22 12:53:21 +00:00
dependabot-preview[bot]
6c253703c4 Bump prettier from 2.0.4 to 2.0.5 (#448) 2020-04-21 17:26:53 +00:00
Rijk van Zanten
92b9c79669 File library issue (#446)
* Fix default state for file library, dont allow sorting by fake fields

* Fix duplicate collection presets

* Force type field to be fetched in file library

* Fix wrong assignment
2020-04-21 13:20:40 -04:00
dependabot-preview[bot]
a86848649d Bump webpack from 4.42.1 to 4.43.0 (#447) 2020-04-21 16:36:05 +00:00
Rijk van Zanten
01d8ded4b2 Fix deeply nested folder event and overflow (#445)
* Fix deeply nested folder event and overflow

* Fix code smell
2020-04-21 09:52:47 -04:00
dependabot-preview[bot]
9cd2a9a273 Bump marked from 0.8.2 to 1.0.0 (#443)
Bumps [marked](https://github.com/markedjs/marked) from 0.8.2 to 1.0.0.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Commits](https://github.com/markedjs/marked/compare/v0.8.2...v1.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-21 09:44:29 -04:00
dependabot-preview[bot]
f9e2b38786 Bump @typescript-eslint/eslint-plugin from 2.28.0 to 2.29.0 (#440) 2020-04-21 13:07:34 +00:00
dependabot-preview[bot]
86bcafa667 Bump stylelint from 13.3.2 to 13.3.3 (#444) 2020-04-21 13:01:02 +00:00
Rijk van Zanten
48e862fe6b Add form to collection detail (#442) 2020-04-20 18:38:33 -04:00
Rijk van Zanten
8bf25d3e3c Files nav (#441)
* Add support for item-group top level links

* Add active prop support to v-list-group

* Add all-files string

* Add files nav

* Fix nav order, render divider only when items exist

* Add add-new-folder flow

* Add add-folder button to header

* Dont unmount nav on refresh of folders

* Fix codesmell
2020-04-20 18:15:55 -04:00
dependabot-preview[bot]
008ff4bc76 Bump @typescript-eslint/parser from 2.28.0 to 2.29.0 (#439) 2020-04-20 19:53:21 +00:00
dependabot-preview[bot]
17eaa9e083 Bump @typescript-eslint/typescript-estree from 2.28.0 to 2.29.0 (#438) 2020-04-20 19:41:00 +00:00
Jacob Rienstra
5817a3e406 Interface divider lol (#435)
* divider interface & updates to component

* fixes

* Remove subtitle in favor of relying on field not

As per figma

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-04-20 15:24:42 -04:00
Ben Haynes
6cb4cf2232 Various style tweaks (#427)
* nav list sizing

* less contrast on table load progress

* new data model icon

* fixes all users nav

rijk SAID he fixed… but that’s ok ;)

* lighter module active color

* decrease badge size

* text changes

* new sidebar drawer component styling

* space out filters a bit more

* add auto-save warning to fields setup

* new tabular option icons

* new filter styling

needs formatting and translations for field name tooltips

* form field group styling

WIP — just styling, and needs translations

* don’t let line height be overridden

* interface icons

* button hovers

* divider interface WIP

* lighter highlight

we can try this out — might remove later

* no divider tests

* Fix divider interface

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-04-20 14:36:59 -04:00
Jacob Rienstra
57bcfb65a2 Numeric interface (#389)
* initial setup of numeric

* completed first draft of numeric

* attempting a factory function

* getting closer to a factory but binding everything is proving difficult

* fixed up numeric methods

* separated out common props

* tests passed

* readme

* fixed props import

* fixed props again?

* Bind props normally

* Remove unused font option in storybook

* Rename readonly->disabled, remove unused wrapper div

* Remove unused import

* Cleanup steplistener function

* Split up numeric / slider

* Fix stepper buttons

* Allow clickable icons to have focus

* Finish numeric interface

* Naming tweaks

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-04-20 14:11:16 -04:00
Jacob Rienstra
b06f19bec5 Textarea updates (#387)
* textarea updates with placeholder, font, and trim

* added wrapper div

* test fix

* font in css var

* Rename readonly to disabled, remove unused div

* Remove unused prop

* Fix code smell

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-04-20 11:19:12 -04:00
Jacob Rienstra
bf79610219 Text-input / v-input fixes (#386)
* textinput fixes including masking trimming icons and fonts

* removed masked attribute from v-input

* added wrapper div

* ugh

* test fix

* fixed all calls to monospace boolean except on textarea (in separate branch)

* readonly

* Remove unused wrapper div and rename readonly to disabled

* Rename readonly to disabled in story

* Prefer style over inline styles

* Fix codesmell

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-04-20 10:23:01 -04:00
dependabot-preview[bot]
471c759df7 Bump stylelint-scss from 3.17.0 to 3.17.1 (#437) 2020-04-20 13:50:51 +00:00
dependabot-preview[bot]
16e8f1dda2 Bump vue-i18n from 8.17.2 to 8.17.3 (#434) 2020-04-19 17:15:03 +00:00
dependabot-preview[bot]
8799d005a7 Bump lint-staged from 10.1.5 to 10.1.6 (#433) 2020-04-19 09:51:06 +00:00
Rijk van Zanten
3a89dc41f9 Add the cards layout (#430)
* Fix reactivity of currentLayout in drawer detail

* Start on cards layout

* Use dense list items in v-select

* Add cards + size option

* Render cards + files based on options

* Allow modules to set view defaults

* Start on render-template component

* Add get fields from template util

* Use render template component in cards layout

* Render as small icon

* Accept options in display handler function

* Fix type warnings in format title display

* Remove empty styling in render template component

* Account for null values in render template

* Add loading state to cards layout

* Remove type validation in skeleton loader

* Only fetch rendered fields

* Fix resolving of default values for cards module

* Add selection state to cards

* Add selection state to cards

* Make render template reactive

* Implement setup options

* Add disabled support to v-select

* Add fallback icon option + disable fit input when no source

* Add sort header to cards layout

* Remove console log

* Add selection state to cards header

* Fix z-indexing of header menu

* Add pagination to cards layout

* Fix types in field

* Fix type checks in field-setup

* Add role presentation to img

* Remove code smell

* Handle file library gracefully

* Add native lazy loading to images in cards layout

* Render SVGs inline in card
2020-04-18 16:20:00 -04:00
dependabot-preview[bot]
57bb18b590 Bump vue-i18n from 8.17.1 to 8.17.2 (#432) 2020-04-18 15:09:36 +00:00
dependabot-preview[bot]
bc7d207231 Bump lint-staged from 10.1.4 to 10.1.5 (#431) 2020-04-18 08:32:33 +00:00
dependabot-preview[bot]
4f8fff3439 Bump @types/lodash from 4.14.149 to 4.14.150 (#429) 2020-04-17 23:29:22 +00:00
Rijk van Zanten
6addf415a8 Fix file drop issue (#428)
* Fix file drop issue

* Remove stray console log
2020-04-17 18:41:09 -04:00
Rijk van Zanten
8c6d57e7c6 Add interface defaulting logic to v-form (#426) 2020-04-17 16:19:45 -04:00
dependabot-preview[bot]
51b614e8ed Bump lint-staged from 10.1.3 to 10.1.4 (#425) 2020-04-17 14:54:58 +00:00
Rijk van Zanten
28a4ad5ec6 Add view type switch (#424)
* Manage view_type through collection preset composition

* Move view type translation

* Add layout drawer detail component

* Use different icon for tabular

* Render view as section in browse sidebar

* Fix sticky header in table

* Sort return statement values 🤓

* Use viewtype picker on users

* Use layout picker on files

* Default to tabular view when invalid is set

* Render view type dynamically based on setting
2020-04-16 16:53:45 -04:00
Ben Haynes
ce9c374876 Various style tweaks (#423)
* nav list sizing

* less contrast on table load progress

* new data model icon

* fixes all users nav

rijk SAID he fixed… but that’s ok ;)

* lighter module active color

* decrease badge size

* text changes

* new sidebar drawer component styling

* space out filters a bit more

* add auto-save warning to fields setup

* new tabular option icons

* new filter styling

needs formatting and translations for field name tooltips

* form field group styling

WIP — just styling, and needs translations
2020-04-16 16:20:23 -04:00
Rijk van Zanten
adc3461de5 Global file upload (#422)
* Add hover style for file drop in private view

* Add uploadFile / uploadFiles utils

* Show drag notification on file dragover

* Finish global file uploads

* Fix warning in drawer detail test

* Use correct terminology

* Ignore drop for non file drops
2020-04-16 15:58:00 -04:00
dependabot-preview[bot]
9139637ee3 Bump vue-i18n from 8.17.0 to 8.17.1 (#421) 2020-04-16 16:41:05 +00:00
Rijk van Zanten
e3985ad09b Filter (#420)
* Add filter operators

* Render drawer detail hr full width

* Start on filter component

* Add getRelationsForCollection method

* Add all filter logic (no sorting yet)

* Use correct border color for divider by default

* Tweak operator translations

* Add getField action to fields store

* Fetch fieldsinfo in relations get for files

* Use scoped operators, start on type based input

* Add disabled option to v-badge

* Globally register v-badge component

* Add between filter support

* Hide alias fields

* Work debouncing magic

* Add margin beneath filter blocks

* Fix fetching filter count in use-items comp

* Add relational field lookup

and show tooltip with field name in filter section

* Use filters on users / files

* Allow double level filter
2020-04-15 21:15:44 -04:00
dependabot-preview[bot]
c6416ec3f9 Bump @popperjs/core from 2.3.2 to 2.3.3 (#419) 2020-04-15 11:53:58 +00:00
dependabot-preview[bot]
595fa07e49 Bump vuepress from 1.4.0 to 1.4.1 (#418) 2020-04-15 03:34:52 +00:00
Rijk van Zanten
7e2866373d Stores (#417)
* Fix store identifier

* Add relations store

* Remove rolesStore in favor of composition for user nav

* Fix tests
2020-04-14 17:33:26 -04:00
dependabot-preview[bot]
5e3914de9f Bump @popperjs/core from 2.3.1 to 2.3.2 (#411)
* Bump @popperjs/core from 2.3.1 to 2.3.2

Bumps [@popperjs/core](https://github.com/popperjs/popper-core) from 2.3.1 to 2.3.2.
- [Release notes](https://github.com/popperjs/popper-core/releases)
- [Commits](https://github.com/popperjs/popper-core/compare/v2.3.1...v2.3.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Fix typing

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-04-14 14:51:26 -04:00