@omnitend/dashboard-for-laravel 0.23.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/extended/DXDashboard.vue.d.ts +3 -0
- package/dist/components/extended/DXDashboardNavbar.vue.d.ts +6 -0
- package/dist/components/extended/DXField.vue.d.ts +4 -4
- package/dist/components/extended/DXTable.vue.d.ts +25 -0
- package/dist/dashboard-for-laravel.js +8652 -8548
- package/dist/dashboard-for-laravel.js.map +1 -1
- package/dist/dashboard-for-laravel.umd.cjs +7 -7
- package/dist/dashboard-for-laravel.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +21 -0
- package/docs/public/api-reference.json +17 -3
- package/docs/public/docs-map.md +1 -1
- package/package.json +1 -1
- package/resources/css/theme.scss +113 -8
- package/resources/js/components/base/DAutocomplete.vue +54 -1
- package/resources/js/components/extended/DXDashboard.vue +5 -0
- package/resources/js/components/extended/DXDashboardNavbar.vue +96 -54
- package/resources/js/components/extended/DXField.vue +31 -0
- package/resources/js/components/extended/DXTable.vue +258 -71
- package/resources/js/components/extended/DXUserAvatar.vue +5 -1
- package/resources/js/types/index.ts +23 -0
|
@@ -118,6 +118,17 @@ export interface FieldDefinition {
|
|
|
118
118
|
/** Re-run `optionsLoader` whenever the form model changes. */
|
|
119
119
|
reloadOptionsOnChange?: boolean;
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* For `select` fields: render a **searchable** select — type to filter a
|
|
123
|
+
* long option list, while the model still holds `option.value` (an id).
|
|
124
|
+
*
|
|
125
|
+
* A plain `select` is fine for ten options and unusable for hundreds; the
|
|
126
|
+
* `autocomplete` type filters but models the *typed text*, so it can't back
|
|
127
|
+
* a foreign key (picking "Tesco" gives you `"Tesco"`, not `37`). This is the
|
|
128
|
+
* combination high-frequency data entry against a long list needs.
|
|
129
|
+
*/
|
|
130
|
+
searchable?: boolean;
|
|
131
|
+
|
|
121
132
|
/** Number of rows for textarea (default: 3) */
|
|
122
133
|
rows?: number;
|
|
123
134
|
|
|
@@ -318,6 +329,18 @@ export interface FieldDefinition {
|
|
|
318
329
|
*/
|
|
319
330
|
revealable?: boolean;
|
|
320
331
|
|
|
332
|
+
/**
|
|
333
|
+
* Include this field's value in the submitted payload. Default `true`.
|
|
334
|
+
*
|
|
335
|
+
* Set `false` for a **presentational** field — a header, an alert, an
|
|
336
|
+
* explanatory block rendered via `span` — that exists to lay out the form,
|
|
337
|
+
* not to hold data. Without it, `DXTable`'s edit modal seeds its form from
|
|
338
|
+
* every `editFields` key, so those decorative fields are POSTed alongside
|
|
339
|
+
* the real ones (an empty string, an empty array) purely because they were
|
|
340
|
+
* declared.
|
|
341
|
+
*/
|
|
342
|
+
submit?: boolean;
|
|
343
|
+
|
|
321
344
|
/**
|
|
322
345
|
* Conditionally show or hide this field. When omitted the field is
|
|
323
346
|
* always visible. Boolean or a function of the form model; evaluated
|