feat(18.1-01): task 1 taglist field in array mode end to end
- cabana: core type taglist (mode string|array, separator, customTags, options as a list of tags), column type gate, save-time normalisation (trim, drop empties, dedupe) and taglist.invalid 422, record hydration - FormField gains separator and customTags (omitempty); OpenAPI and schema.d.ts regenerated - admin: TaglistField chip input with suggestions, registry entry, vitest - acme.catalog fixture with TestTaglistFieldCompile and TestTaglistFieldSmoke - docs: forms.md Taglist section, cabana README; rebuilt dist
This commit is contained in:
4
modules/cabana/testdata/catalog/controllers/badges/config_form.yaml
vendored
Normal file
4
modules/cabana/testdata/catalog/controllers/badges/config_form.yaml
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
name: Badge
|
||||
form: ~/plugins/acme/catalog/models/badge/fields.yaml
|
||||
modelClass: Badge
|
||||
defaultRedirect: acme/catalog/badges
|
||||
7
modules/cabana/testdata/catalog/controllers/badges/config_list.yaml
vendored
Normal file
7
modules/cabana/testdata/catalog/controllers/badges/config_list.yaml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
list: ~/plugins/acme/catalog/models/badge/columns.yaml
|
||||
modelClass: Badge
|
||||
title: Badges
|
||||
recordUrl: acme/catalog/badges/update/:id
|
||||
recordsPerPage: 20
|
||||
toolbar:
|
||||
buttons: [create]
|
||||
7
modules/cabana/testdata/catalog/models/badge/columns.yaml
vendored
Normal file
7
modules/cabana/testdata/catalog/models/badge/columns.yaml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
columns:
|
||||
name:
|
||||
label: Name
|
||||
searchable: true
|
||||
sort_order:
|
||||
label: Order
|
||||
sortable: true
|
||||
11
modules/cabana/testdata/catalog/models/badge/fields.yaml
vendored
Normal file
11
modules/cabana/testdata/catalog/models/badge/fields.yaml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
fields:
|
||||
name:
|
||||
label: Name
|
||||
type: text
|
||||
required: true
|
||||
tags:
|
||||
label: Tags
|
||||
type: taglist
|
||||
mode: array
|
||||
span: full
|
||||
options: [alpha, beta, gamma]
|
||||
Reference in New Issue
Block a user