@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.
@@ -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