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
This commit is contained in:
Rijk van Zanten
2020-04-23 18:16:17 -04:00
committed by GitHub
parent 571412ff2c
commit 0b05613a55
42 changed files with 663 additions and 150 deletions

View File

@@ -117,6 +117,7 @@
"comments": "Comments",
"item_count": "No Items | One Item | {count} Items",
"all_items": "All Items",
"users": "Users",
"files": "Files",
@@ -335,6 +336,17 @@
"custom_formats": "Custom Formats",
"tinymce_options_override": "TinyMCE Options Override",
"dropdown": "Dropdown",
"allow_other": "Allow Other",
"allow_none": "Allow None",
"choices": "Choices",
"use_double_colon_for_key": "Use double colon for dedicated keys, eg: `value_saved::Option Displayed`",
"choices_option_configured_incorrectly": "Choices option configured incorrectly",
"deselect": "Deselect",
"deselect_all": "Deselect All",
"other": "Other...",
"about_directus": "About Directus",
"activity_log": "Activity Log",
"add_field_filter": "Add a field filter",
@@ -485,7 +497,6 @@
"delete_role_are_you_sure": "Are you sure to delete the role \"{name}\"? This action cannot be undone.",
"desc": "desc",
"description": "Description",
"deselect": "Deselect",
"dialog_beginning": "Beginning of dialog window.",
"discard_changes": "Discard Changes",
"display_name": "Display Name",
@@ -673,7 +684,6 @@
"operator": "Operator",
"optional": "Optional",
"options": "Options",
"other": "Other",
"otp": "One-Time Password",
"password": "Password",
"password_reset_sending": "Sending email...",