@dragonmastery/zinia-forms-core 0.5.9 → 0.5.10
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 +36 -2
- package/dist/index.js +164 -70
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -239,6 +239,8 @@ interface CheckboxFieldProps<FormType> {
|
|
|
239
239
|
disabled?: boolean;
|
|
240
240
|
readonly?: boolean;
|
|
241
241
|
class?: string | string[];
|
|
242
|
+
/** 'append' (default): merge with defaults. 'replace': use only your class, ignore defaults */
|
|
243
|
+
classStrategy?: 'append' | 'replace';
|
|
242
244
|
size?: string;
|
|
243
245
|
variant?: string;
|
|
244
246
|
}
|
|
@@ -341,6 +343,8 @@ interface SelectFieldProps<FormType, P extends Path<FormType> = Path<FormType>,
|
|
|
341
343
|
* CSS classes to apply to the field
|
|
342
344
|
*/
|
|
343
345
|
class?: string | string[];
|
|
346
|
+
/** 'append' (default): merge with defaults. 'replace': use only your class, ignore defaults */
|
|
347
|
+
classStrategy?: 'append' | 'replace';
|
|
344
348
|
/**
|
|
345
349
|
* Field size
|
|
346
350
|
*/
|
|
@@ -427,7 +431,7 @@ interface SelectFieldProps<FormType, P extends Path<FormType> = Path<FormType>,
|
|
|
427
431
|
*
|
|
428
432
|
* TypeScript ensures all entries are valid keys of SelectFieldProps.
|
|
429
433
|
*/
|
|
430
|
-
declare const SELECT_FIELD_PROP_NAMES: readonly ["name", "selectOptions", "placeholder", "disabled", "readonly", "class", "label", "hideLabel", "description", "required", "size", "variant", "valueToLabel", "useSchemaOptions", "dependsOn", "optionFilterFn", "autoReset"];
|
|
434
|
+
declare const SELECT_FIELD_PROP_NAMES: readonly ["name", "selectOptions", "placeholder", "disabled", "readonly", "class", "classStrategy", "label", "hideLabel", "description", "required", "size", "variant", "valueToLabel", "useSchemaOptions", "dependsOn", "optionFilterFn", "autoReset"];
|
|
431
435
|
|
|
432
436
|
/**
|
|
433
437
|
* Props for the ComboboxField component
|
|
@@ -473,6 +477,8 @@ interface ComboboxFieldProps<FormType, P extends Path<FormType> = Path<FormType>
|
|
|
473
477
|
* CSS classes to apply to the field
|
|
474
478
|
*/
|
|
475
479
|
class?: string | string[];
|
|
480
|
+
/** 'append' (default): merge with defaults. 'replace': use only your class, ignore defaults */
|
|
481
|
+
classStrategy?: 'append' | 'replace';
|
|
476
482
|
/**
|
|
477
483
|
* Field size
|
|
478
484
|
*/
|
|
@@ -573,7 +579,7 @@ interface ComboboxFieldProps<FormType, P extends Path<FormType> = Path<FormType>
|
|
|
573
579
|
*
|
|
574
580
|
* TypeScript ensures all entries are valid keys of ComboboxFieldProps.
|
|
575
581
|
*/
|
|
576
|
-
declare const COMBOBOX_FIELD_PROP_NAMES: readonly ["name", "selectOptions", "placeholder", "disabled", "readonly", "class", "label", "hideLabel", "description", "required", "size", "variant", "valueToLabel", "useSchemaOptions", "dependsOn", "optionFilterFn", "autoReset", "allowCreate", "filterFn"];
|
|
582
|
+
declare const COMBOBOX_FIELD_PROP_NAMES: readonly ["name", "selectOptions", "placeholder", "disabled", "readonly", "class", "classStrategy", "label", "hideLabel", "description", "required", "size", "variant", "valueToLabel", "useSchemaOptions", "dependsOn", "optionFilterFn", "autoReset", "allowCreate", "filterFn"];
|
|
577
583
|
|
|
578
584
|
interface DateFieldProps<FormType> {
|
|
579
585
|
name: FlexiblePath<FormType>;
|
|
@@ -585,6 +591,8 @@ interface DateFieldProps<FormType> {
|
|
|
585
591
|
disabled?: boolean;
|
|
586
592
|
readonly?: boolean;
|
|
587
593
|
class?: string | string[];
|
|
594
|
+
/** 'append' (default): merge with defaults. 'replace': use only your class, ignore defaults */
|
|
595
|
+
classStrategy?: 'append' | 'replace';
|
|
588
596
|
size?: string;
|
|
589
597
|
variant?: string;
|
|
590
598
|
min?: string;
|
|
@@ -602,6 +610,8 @@ interface NumberFieldProps<FormType> {
|
|
|
602
610
|
disabled?: boolean;
|
|
603
611
|
readonly?: boolean;
|
|
604
612
|
class?: string | string[];
|
|
613
|
+
/** 'append' (default): merge with defaults. 'replace': use only your class, ignore defaults */
|
|
614
|
+
classStrategy?: 'append' | 'replace';
|
|
605
615
|
size?: string;
|
|
606
616
|
variant?: string;
|
|
607
617
|
min?: number;
|
|
@@ -1022,6 +1032,8 @@ interface CurrencyFieldProps<FormType> {
|
|
|
1022
1032
|
disabled?: boolean;
|
|
1023
1033
|
readonly?: boolean;
|
|
1024
1034
|
class?: string | string[];
|
|
1035
|
+
/** 'append' (default): merge with defaults. 'replace': use only your class, ignore defaults */
|
|
1036
|
+
classStrategy?: 'append' | 'replace';
|
|
1025
1037
|
size?: string;
|
|
1026
1038
|
variant?: string;
|
|
1027
1039
|
min?: number;
|
|
@@ -1039,6 +1051,8 @@ interface DateTimeLocalFieldProps<FormType> {
|
|
|
1039
1051
|
disabled?: boolean;
|
|
1040
1052
|
readonly?: boolean;
|
|
1041
1053
|
class?: string | string[];
|
|
1054
|
+
/** 'append' (default): merge with defaults. 'replace': use only your class, ignore defaults */
|
|
1055
|
+
classStrategy?: 'append' | 'replace';
|
|
1042
1056
|
size?: string;
|
|
1043
1057
|
variant?: string;
|
|
1044
1058
|
min?: string;
|
|
@@ -1057,6 +1071,8 @@ interface EmailFieldProps<FormType> {
|
|
|
1057
1071
|
readonly?: boolean;
|
|
1058
1072
|
autocomplete?: string;
|
|
1059
1073
|
class?: string | string[];
|
|
1074
|
+
/** 'append' (default): merge with defaults. 'replace': use only your class, ignore defaults */
|
|
1075
|
+
classStrategy?: 'append' | 'replace';
|
|
1060
1076
|
size?: string;
|
|
1061
1077
|
variant?: string;
|
|
1062
1078
|
}
|
|
@@ -1070,6 +1086,8 @@ interface FileFieldProps<FormType> {
|
|
|
1070
1086
|
disabled?: boolean;
|
|
1071
1087
|
readonly?: boolean;
|
|
1072
1088
|
class?: string | string[];
|
|
1089
|
+
/** 'append' (default): merge with defaults. 'replace': use only your class, ignore defaults */
|
|
1090
|
+
classStrategy?: 'append' | 'replace';
|
|
1073
1091
|
size?: string;
|
|
1074
1092
|
variant?: string;
|
|
1075
1093
|
accept?: string;
|
|
@@ -1128,6 +1146,8 @@ interface PasswordFieldProps<FormType> {
|
|
|
1128
1146
|
readonly?: boolean;
|
|
1129
1147
|
autocomplete?: string;
|
|
1130
1148
|
class?: string | string[];
|
|
1149
|
+
/** 'append' (default): merge with defaults. 'replace': use only your class, ignore defaults */
|
|
1150
|
+
classStrategy?: 'append' | 'replace';
|
|
1131
1151
|
size?: string;
|
|
1132
1152
|
variant?: string;
|
|
1133
1153
|
}
|
|
@@ -1159,6 +1179,8 @@ interface RangeFieldProps<FormType> {
|
|
|
1159
1179
|
disabled?: boolean;
|
|
1160
1180
|
readonly?: boolean;
|
|
1161
1181
|
class?: string | string[];
|
|
1182
|
+
/** 'append' (default): merge with defaults. 'replace': use only your class, ignore defaults */
|
|
1183
|
+
classStrategy?: 'append' | 'replace';
|
|
1162
1184
|
size?: string;
|
|
1163
1185
|
variant?: string;
|
|
1164
1186
|
min?: number;
|
|
@@ -1185,6 +1207,8 @@ interface SearchFieldProps<FormType> {
|
|
|
1185
1207
|
readonly?: boolean;
|
|
1186
1208
|
autocomplete?: string;
|
|
1187
1209
|
class?: string | string[];
|
|
1210
|
+
/** 'append' (default): merge with defaults. 'replace': use only your class, ignore defaults */
|
|
1211
|
+
classStrategy?: 'append' | 'replace';
|
|
1188
1212
|
size?: string;
|
|
1189
1213
|
variant?: string;
|
|
1190
1214
|
}
|
|
@@ -1224,6 +1248,8 @@ interface TelFieldProps<FormType> {
|
|
|
1224
1248
|
readonly?: boolean;
|
|
1225
1249
|
autocomplete?: string;
|
|
1226
1250
|
class?: string | string[];
|
|
1251
|
+
/** 'append' (default): merge with defaults. 'replace': use only your class, ignore defaults */
|
|
1252
|
+
classStrategy?: 'append' | 'replace';
|
|
1227
1253
|
size?: string;
|
|
1228
1254
|
variant?: string;
|
|
1229
1255
|
pattern?: string;
|
|
@@ -1239,6 +1265,8 @@ interface TextareaFieldProps<FormType> {
|
|
|
1239
1265
|
disabled?: boolean;
|
|
1240
1266
|
readonly?: boolean;
|
|
1241
1267
|
class?: string | string[];
|
|
1268
|
+
/** 'append' (default): merge with defaults. 'replace': use only your class, ignore defaults */
|
|
1269
|
+
classStrategy?: 'append' | 'replace';
|
|
1242
1270
|
size?: string;
|
|
1243
1271
|
variant?: string;
|
|
1244
1272
|
rows?: number;
|
|
@@ -1257,6 +1285,8 @@ interface TextFieldProps<FormType> {
|
|
|
1257
1285
|
readonly?: boolean;
|
|
1258
1286
|
autocomplete?: string;
|
|
1259
1287
|
class?: string | string[];
|
|
1288
|
+
/** 'append' (default): merge with defaults. 'replace': use only your class, ignore defaults */
|
|
1289
|
+
classStrategy?: 'append' | 'replace';
|
|
1260
1290
|
size?: string;
|
|
1261
1291
|
variant?: string;
|
|
1262
1292
|
}
|
|
@@ -1271,6 +1301,8 @@ interface TimeFieldProps<FormType> {
|
|
|
1271
1301
|
disabled?: boolean;
|
|
1272
1302
|
readonly?: boolean;
|
|
1273
1303
|
class?: string | string[];
|
|
1304
|
+
/** 'append' (default): merge with defaults. 'replace': use only your class, ignore defaults */
|
|
1305
|
+
classStrategy?: 'append' | 'replace';
|
|
1274
1306
|
size?: string;
|
|
1275
1307
|
variant?: string;
|
|
1276
1308
|
min?: string;
|
|
@@ -1408,6 +1440,8 @@ interface UrlFieldProps<FormType> {
|
|
|
1408
1440
|
readonly?: boolean;
|
|
1409
1441
|
autocomplete?: string;
|
|
1410
1442
|
class?: string | string[];
|
|
1443
|
+
/** 'append' (default): merge with defaults. 'replace': use only your class, ignore defaults */
|
|
1444
|
+
classStrategy?: 'append' | 'replace';
|
|
1411
1445
|
size?: string;
|
|
1412
1446
|
variant?: string;
|
|
1413
1447
|
pattern?: string;
|