@oondemand/oon-core-front 0.5.1 → 0.5.3
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/index.d.ts +25 -1
- package/dist/index.js +1612 -1381
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -257,12 +257,36 @@ interface OonColumnDef {
|
|
|
257
257
|
capabilities?: string[];
|
|
258
258
|
}
|
|
259
259
|
type OonFormFieldWidget = "default" | "checkbox";
|
|
260
|
+
interface OonSelectOption {
|
|
261
|
+
value: string;
|
|
262
|
+
label: string;
|
|
263
|
+
description?: string;
|
|
264
|
+
}
|
|
260
265
|
interface OonFormFieldDef {
|
|
261
266
|
field: string;
|
|
262
267
|
label?: string;
|
|
263
268
|
kind?: FieldKind;
|
|
264
269
|
required?: boolean;
|
|
265
|
-
options?: string
|
|
270
|
+
options?: Array<string | OonSelectOption>;
|
|
271
|
+
/** Endpoint de opções dependente dos valores atuais do formulário. */
|
|
272
|
+
optionsEndpoint?: string;
|
|
273
|
+
/** Caminho da lista na resposta do endpoint. Default: "options". */
|
|
274
|
+
optionsResponsePath?: string;
|
|
275
|
+
/** Campos usados como value/label/descrição em cada item remoto. */
|
|
276
|
+
optionsValueField?: string;
|
|
277
|
+
optionsLabelField?: string;
|
|
278
|
+
optionsDescriptionField?: string;
|
|
279
|
+
/** Caminho booleano que informa se a seleção pode ser alterada. */
|
|
280
|
+
optionsEditablePath?: string;
|
|
281
|
+
/** Campos do formulário que invalidam/recarregam as opções. */
|
|
282
|
+
optionsDependsOn?: string[];
|
|
283
|
+
/** Opções seguras usadas quando o endpoint falha ou retorna lista vazia. */
|
|
284
|
+
fallbackOptions?: Array<string | OonSelectOption>;
|
|
285
|
+
/** Bloqueia a seleção enquanto usa fallback. Default: true. */
|
|
286
|
+
readonlyOnFallback?: boolean;
|
|
287
|
+
/** Texto auxiliar exibido quando o fallback está ativo. */
|
|
288
|
+
optionsUnavailableMessage?: string;
|
|
289
|
+
readonly?: boolean;
|
|
266
290
|
/** model relacionada quando kind === "ref". */
|
|
267
291
|
ref?: string;
|
|
268
292
|
renderer?: string;
|