@vc-shell/framework 1.0.229 → 1.0.231
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/CHANGELOG.md +18 -0
- package/dist/framework.js +112 -108
- package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/types/index.d.ts +10 -1
- package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.stories.d.ts +19 -0
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +4 -0
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.stories.d.ts +21 -21
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-select/vc-select.stories.d.ts +30 -30
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -1
- package/package.json +4 -4
- package/shared/modules/dynamic/components/fields/InputCurrency.ts +7 -2
- package/shared/modules/dynamic/types/index.ts +10 -1
- package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +3 -0
|
@@ -124,9 +124,9 @@ export declare const Error: StoryFn<(<T, P extends {
|
|
|
124
124
|
debounce?: string | number | undefined;
|
|
125
125
|
multiple?: boolean | undefined;
|
|
126
126
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
127
|
+
mapOptions?: boolean | undefined;
|
|
127
128
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
128
129
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
129
|
-
mapOptions?: boolean | undefined;
|
|
130
130
|
emitValue?: boolean | undefined;
|
|
131
131
|
searchable?: boolean | undefined;
|
|
132
132
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
@@ -205,9 +205,9 @@ export declare const Error: StoryFn<(<T, P extends {
|
|
|
205
205
|
debounce?: string | number | undefined;
|
|
206
206
|
multiple?: boolean | undefined;
|
|
207
207
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
208
|
+
mapOptions?: boolean | undefined;
|
|
208
209
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
209
210
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
210
|
-
mapOptions?: boolean | undefined;
|
|
211
211
|
emitValue?: boolean | undefined;
|
|
212
212
|
searchable?: boolean | undefined;
|
|
213
213
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -290,9 +290,9 @@ export declare const Error: StoryFn<(<T, P extends {
|
|
|
290
290
|
debounce?: string | number | undefined;
|
|
291
291
|
multiple?: boolean | undefined;
|
|
292
292
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
293
|
+
mapOptions?: boolean | undefined;
|
|
293
294
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
294
295
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
295
|
-
mapOptions?: boolean | undefined;
|
|
296
296
|
emitValue?: boolean | undefined;
|
|
297
297
|
searchable?: boolean | undefined;
|
|
298
298
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -376,9 +376,9 @@ export declare const Tooltip: StoryFn<(<T, P extends {
|
|
|
376
376
|
debounce?: string | number | undefined;
|
|
377
377
|
multiple?: boolean | undefined;
|
|
378
378
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
379
|
+
mapOptions?: boolean | undefined;
|
|
379
380
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
380
381
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
381
|
-
mapOptions?: boolean | undefined;
|
|
382
382
|
emitValue?: boolean | undefined;
|
|
383
383
|
searchable?: boolean | undefined;
|
|
384
384
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
@@ -457,9 +457,9 @@ export declare const Tooltip: StoryFn<(<T, P extends {
|
|
|
457
457
|
debounce?: string | number | undefined;
|
|
458
458
|
multiple?: boolean | undefined;
|
|
459
459
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
460
|
+
mapOptions?: boolean | undefined;
|
|
460
461
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
461
462
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
462
|
-
mapOptions?: boolean | undefined;
|
|
463
463
|
emitValue?: boolean | undefined;
|
|
464
464
|
searchable?: boolean | undefined;
|
|
465
465
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -542,9 +542,9 @@ export declare const Tooltip: StoryFn<(<T, P extends {
|
|
|
542
542
|
debounce?: string | number | undefined;
|
|
543
543
|
multiple?: boolean | undefined;
|
|
544
544
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
545
|
+
mapOptions?: boolean | undefined;
|
|
545
546
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
546
547
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
547
|
-
mapOptions?: boolean | undefined;
|
|
548
548
|
emitValue?: boolean | undefined;
|
|
549
549
|
searchable?: boolean | undefined;
|
|
550
550
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -628,9 +628,9 @@ export declare const Disabled: StoryFn<(<T, P extends {
|
|
|
628
628
|
debounce?: string | number | undefined;
|
|
629
629
|
multiple?: boolean | undefined;
|
|
630
630
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
631
|
+
mapOptions?: boolean | undefined;
|
|
631
632
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
632
633
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
633
|
-
mapOptions?: boolean | undefined;
|
|
634
634
|
emitValue?: boolean | undefined;
|
|
635
635
|
searchable?: boolean | undefined;
|
|
636
636
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
@@ -709,9 +709,9 @@ export declare const Disabled: StoryFn<(<T, P extends {
|
|
|
709
709
|
debounce?: string | number | undefined;
|
|
710
710
|
multiple?: boolean | undefined;
|
|
711
711
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
712
|
+
mapOptions?: boolean | undefined;
|
|
712
713
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
713
714
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
714
|
-
mapOptions?: boolean | undefined;
|
|
715
715
|
emitValue?: boolean | undefined;
|
|
716
716
|
searchable?: boolean | undefined;
|
|
717
717
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -794,9 +794,9 @@ export declare const Disabled: StoryFn<(<T, P extends {
|
|
|
794
794
|
debounce?: string | number | undefined;
|
|
795
795
|
multiple?: boolean | undefined;
|
|
796
796
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
797
|
+
mapOptions?: boolean | undefined;
|
|
797
798
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
798
799
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
799
|
-
mapOptions?: boolean | undefined;
|
|
800
800
|
emitValue?: boolean | undefined;
|
|
801
801
|
searchable?: boolean | undefined;
|
|
802
802
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -880,9 +880,9 @@ export declare const SearchableInput: StoryFn<(<T, P extends {
|
|
|
880
880
|
debounce?: string | number | undefined;
|
|
881
881
|
multiple?: boolean | undefined;
|
|
882
882
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
883
|
+
mapOptions?: boolean | undefined;
|
|
883
884
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
884
885
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
885
|
-
mapOptions?: boolean | undefined;
|
|
886
886
|
emitValue?: boolean | undefined;
|
|
887
887
|
searchable?: boolean | undefined;
|
|
888
888
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
@@ -961,9 +961,9 @@ export declare const SearchableInput: StoryFn<(<T, P extends {
|
|
|
961
961
|
debounce?: string | number | undefined;
|
|
962
962
|
multiple?: boolean | undefined;
|
|
963
963
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
964
|
+
mapOptions?: boolean | undefined;
|
|
964
965
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
965
966
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
966
|
-
mapOptions?: boolean | undefined;
|
|
967
967
|
emitValue?: boolean | undefined;
|
|
968
968
|
searchable?: boolean | undefined;
|
|
969
969
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -1046,9 +1046,9 @@ export declare const SearchableInput: StoryFn<(<T, P extends {
|
|
|
1046
1046
|
debounce?: string | number | undefined;
|
|
1047
1047
|
multiple?: boolean | undefined;
|
|
1048
1048
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
1049
|
+
mapOptions?: boolean | undefined;
|
|
1049
1050
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
1050
1051
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
1051
|
-
mapOptions?: boolean | undefined;
|
|
1052
1052
|
emitValue?: boolean | undefined;
|
|
1053
1053
|
searchable?: boolean | undefined;
|
|
1054
1054
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -1132,9 +1132,9 @@ export declare const SearchableInputCustomDebounce: StoryFn<(<T, P extends {
|
|
|
1132
1132
|
debounce?: string | number | undefined;
|
|
1133
1133
|
multiple?: boolean | undefined;
|
|
1134
1134
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
1135
|
+
mapOptions?: boolean | undefined;
|
|
1135
1136
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
1136
1137
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
1137
|
-
mapOptions?: boolean | undefined;
|
|
1138
1138
|
emitValue?: boolean | undefined;
|
|
1139
1139
|
searchable?: boolean | undefined;
|
|
1140
1140
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
@@ -1213,9 +1213,9 @@ export declare const SearchableInputCustomDebounce: StoryFn<(<T, P extends {
|
|
|
1213
1213
|
debounce?: string | number | undefined;
|
|
1214
1214
|
multiple?: boolean | undefined;
|
|
1215
1215
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
1216
|
+
mapOptions?: boolean | undefined;
|
|
1216
1217
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
1217
1218
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
1218
|
-
mapOptions?: boolean | undefined;
|
|
1219
1219
|
emitValue?: boolean | undefined;
|
|
1220
1220
|
searchable?: boolean | undefined;
|
|
1221
1221
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -1298,9 +1298,9 @@ export declare const SearchableInputCustomDebounce: StoryFn<(<T, P extends {
|
|
|
1298
1298
|
debounce?: string | number | undefined;
|
|
1299
1299
|
multiple?: boolean | undefined;
|
|
1300
1300
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
1301
|
+
mapOptions?: boolean | undefined;
|
|
1301
1302
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
1302
1303
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
1303
|
-
mapOptions?: boolean | undefined;
|
|
1304
1304
|
emitValue?: boolean | undefined;
|
|
1305
1305
|
searchable?: boolean | undefined;
|
|
1306
1306
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -1384,9 +1384,9 @@ export declare const Required: StoryFn<(<T, P extends {
|
|
|
1384
1384
|
debounce?: string | number | undefined;
|
|
1385
1385
|
multiple?: boolean | undefined;
|
|
1386
1386
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
1387
|
+
mapOptions?: boolean | undefined;
|
|
1387
1388
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
1388
1389
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
1389
|
-
mapOptions?: boolean | undefined;
|
|
1390
1390
|
emitValue?: boolean | undefined;
|
|
1391
1391
|
searchable?: boolean | undefined;
|
|
1392
1392
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
@@ -1465,9 +1465,9 @@ export declare const Required: StoryFn<(<T, P extends {
|
|
|
1465
1465
|
debounce?: string | number | undefined;
|
|
1466
1466
|
multiple?: boolean | undefined;
|
|
1467
1467
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
1468
|
+
mapOptions?: boolean | undefined;
|
|
1468
1469
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
1469
1470
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
1470
|
-
mapOptions?: boolean | undefined;
|
|
1471
1471
|
emitValue?: boolean | undefined;
|
|
1472
1472
|
searchable?: boolean | undefined;
|
|
1473
1473
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -1550,9 +1550,9 @@ export declare const Required: StoryFn<(<T, P extends {
|
|
|
1550
1550
|
debounce?: string | number | undefined;
|
|
1551
1551
|
multiple?: boolean | undefined;
|
|
1552
1552
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
1553
|
+
mapOptions?: boolean | undefined;
|
|
1553
1554
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
1554
1555
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
1555
|
-
mapOptions?: boolean | undefined;
|
|
1556
1556
|
emitValue?: boolean | undefined;
|
|
1557
1557
|
searchable?: boolean | undefined;
|
|
1558
1558
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -1638,9 +1638,9 @@ export declare const Loading: StoryFn<(<T, P extends {
|
|
|
1638
1638
|
debounce?: string | number | undefined;
|
|
1639
1639
|
multiple?: boolean | undefined;
|
|
1640
1640
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
1641
|
+
mapOptions?: boolean | undefined;
|
|
1641
1642
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
1642
1643
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
1643
|
-
mapOptions?: boolean | undefined;
|
|
1644
1644
|
emitValue?: boolean | undefined;
|
|
1645
1645
|
searchable?: boolean | undefined;
|
|
1646
1646
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
@@ -1719,9 +1719,9 @@ export declare const Loading: StoryFn<(<T, P extends {
|
|
|
1719
1719
|
debounce?: string | number | undefined;
|
|
1720
1720
|
multiple?: boolean | undefined;
|
|
1721
1721
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
1722
|
+
mapOptions?: boolean | undefined;
|
|
1722
1723
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
1723
1724
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
1724
|
-
mapOptions?: boolean | undefined;
|
|
1725
1725
|
emitValue?: boolean | undefined;
|
|
1726
1726
|
searchable?: boolean | undefined;
|
|
1727
1727
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -1804,9 +1804,9 @@ export declare const Loading: StoryFn<(<T, P extends {
|
|
|
1804
1804
|
debounce?: string | number | undefined;
|
|
1805
1805
|
multiple?: boolean | undefined;
|
|
1806
1806
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
1807
|
+
mapOptions?: boolean | undefined;
|
|
1807
1808
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
1808
1809
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
1809
|
-
mapOptions?: boolean | undefined;
|
|
1810
1810
|
emitValue?: boolean | undefined;
|
|
1811
1811
|
searchable?: boolean | undefined;
|
|
1812
1812
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -1890,9 +1890,9 @@ export declare const Prefix: StoryFn<(<T, P extends {
|
|
|
1890
1890
|
debounce?: string | number | undefined;
|
|
1891
1891
|
multiple?: boolean | undefined;
|
|
1892
1892
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
1893
|
+
mapOptions?: boolean | undefined;
|
|
1893
1894
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
1894
1895
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
1895
|
-
mapOptions?: boolean | undefined;
|
|
1896
1896
|
emitValue?: boolean | undefined;
|
|
1897
1897
|
searchable?: boolean | undefined;
|
|
1898
1898
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
@@ -1971,9 +1971,9 @@ export declare const Prefix: StoryFn<(<T, P extends {
|
|
|
1971
1971
|
debounce?: string | number | undefined;
|
|
1972
1972
|
multiple?: boolean | undefined;
|
|
1973
1973
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
1974
|
+
mapOptions?: boolean | undefined;
|
|
1974
1975
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
1975
1976
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
1976
|
-
mapOptions?: boolean | undefined;
|
|
1977
1977
|
emitValue?: boolean | undefined;
|
|
1978
1978
|
searchable?: boolean | undefined;
|
|
1979
1979
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -2056,9 +2056,9 @@ export declare const Prefix: StoryFn<(<T, P extends {
|
|
|
2056
2056
|
debounce?: string | number | undefined;
|
|
2057
2057
|
multiple?: boolean | undefined;
|
|
2058
2058
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
2059
|
+
mapOptions?: boolean | undefined;
|
|
2059
2060
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
2060
2061
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
2061
|
-
mapOptions?: boolean | undefined;
|
|
2062
2062
|
emitValue?: boolean | undefined;
|
|
2063
2063
|
searchable?: boolean | undefined;
|
|
2064
2064
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -2142,9 +2142,9 @@ export declare const Suffix: StoryFn<(<T, P extends {
|
|
|
2142
2142
|
debounce?: string | number | undefined;
|
|
2143
2143
|
multiple?: boolean | undefined;
|
|
2144
2144
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
2145
|
+
mapOptions?: boolean | undefined;
|
|
2145
2146
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
2146
2147
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
2147
|
-
mapOptions?: boolean | undefined;
|
|
2148
2148
|
emitValue?: boolean | undefined;
|
|
2149
2149
|
searchable?: boolean | undefined;
|
|
2150
2150
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
@@ -2223,9 +2223,9 @@ export declare const Suffix: StoryFn<(<T, P extends {
|
|
|
2223
2223
|
debounce?: string | number | undefined;
|
|
2224
2224
|
multiple?: boolean | undefined;
|
|
2225
2225
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
2226
|
+
mapOptions?: boolean | undefined;
|
|
2226
2227
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
2227
2228
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
2228
|
-
mapOptions?: boolean | undefined;
|
|
2229
2229
|
emitValue?: boolean | undefined;
|
|
2230
2230
|
searchable?: boolean | undefined;
|
|
2231
2231
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -2308,9 +2308,9 @@ export declare const Suffix: StoryFn<(<T, P extends {
|
|
|
2308
2308
|
debounce?: string | number | undefined;
|
|
2309
2309
|
multiple?: boolean | undefined;
|
|
2310
2310
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
2311
|
+
mapOptions?: boolean | undefined;
|
|
2311
2312
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
2312
2313
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
2313
|
-
mapOptions?: boolean | undefined;
|
|
2314
2314
|
emitValue?: boolean | undefined;
|
|
2315
2315
|
searchable?: boolean | undefined;
|
|
2316
2316
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -2394,9 +2394,9 @@ export declare const Hint: StoryFn<(<T, P extends {
|
|
|
2394
2394
|
debounce?: string | number | undefined;
|
|
2395
2395
|
multiple?: boolean | undefined;
|
|
2396
2396
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
2397
|
+
mapOptions?: boolean | undefined;
|
|
2397
2398
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
2398
2399
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
2399
|
-
mapOptions?: boolean | undefined;
|
|
2400
2400
|
emitValue?: boolean | undefined;
|
|
2401
2401
|
searchable?: boolean | undefined;
|
|
2402
2402
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
@@ -2475,9 +2475,9 @@ export declare const Hint: StoryFn<(<T, P extends {
|
|
|
2475
2475
|
debounce?: string | number | undefined;
|
|
2476
2476
|
multiple?: boolean | undefined;
|
|
2477
2477
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
2478
|
+
mapOptions?: boolean | undefined;
|
|
2478
2479
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
2479
2480
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
2480
|
-
mapOptions?: boolean | undefined;
|
|
2481
2481
|
emitValue?: boolean | undefined;
|
|
2482
2482
|
searchable?: boolean | undefined;
|
|
2483
2483
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -2560,9 +2560,9 @@ export declare const Hint: StoryFn<(<T, P extends {
|
|
|
2560
2560
|
debounce?: string | number | undefined;
|
|
2561
2561
|
multiple?: boolean | undefined;
|
|
2562
2562
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
2563
|
+
mapOptions?: boolean | undefined;
|
|
2563
2564
|
optionValue?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
2564
2565
|
optionLabel?: import("./vc-select.vue").OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
2565
|
-
mapOptions?: boolean | undefined;
|
|
2566
2566
|
emitValue?: boolean | undefined;
|
|
2567
2567
|
searchable?: boolean | undefined;
|
|
2568
2568
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -25,9 +25,9 @@ declare const _default: <T, P extends {
|
|
|
25
25
|
debounce?: string | number | undefined;
|
|
26
26
|
multiple?: boolean | undefined;
|
|
27
27
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
28
|
+
mapOptions?: boolean | undefined;
|
|
28
29
|
optionValue?: OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
29
30
|
optionLabel?: OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
30
|
-
mapOptions?: boolean | undefined;
|
|
31
31
|
emitValue?: boolean | undefined;
|
|
32
32
|
searchable?: boolean | undefined;
|
|
33
33
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
@@ -222,9 +222,9 @@ declare const _default: <T, P extends {
|
|
|
222
222
|
debounce?: string | number | undefined;
|
|
223
223
|
multiple?: boolean | undefined;
|
|
224
224
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
225
|
+
mapOptions?: boolean | undefined;
|
|
225
226
|
optionValue?: OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
226
227
|
optionLabel?: OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
227
|
-
mapOptions?: boolean | undefined;
|
|
228
228
|
emitValue?: boolean | undefined;
|
|
229
229
|
searchable?: boolean | undefined;
|
|
230
230
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -423,9 +423,9 @@ declare const _default: <T, P extends {
|
|
|
423
423
|
debounce?: string | number | undefined;
|
|
424
424
|
multiple?: boolean | undefined;
|
|
425
425
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
426
|
+
mapOptions?: boolean | undefined;
|
|
426
427
|
optionValue?: OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
427
428
|
optionLabel?: OptionProp<T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer U)[] ? U : never : never : never)>;
|
|
428
|
-
mapOptions?: boolean | undefined;
|
|
429
429
|
emitValue?: boolean | undefined;
|
|
430
430
|
searchable?: boolean | undefined;
|
|
431
431
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -14,12 +14,12 @@ declare const _default: <T extends {
|
|
|
14
14
|
max?: number | undefined;
|
|
15
15
|
regex?: string | undefined;
|
|
16
16
|
} | undefined;
|
|
17
|
-
property: T;
|
|
18
17
|
"onUpdate:model-value"?: ((data: {
|
|
19
18
|
readonly value: any;
|
|
20
19
|
readonly dictionary?: any[] | undefined;
|
|
21
20
|
readonly locale?: string | undefined;
|
|
22
21
|
}) => any) | undefined;
|
|
22
|
+
property: T;
|
|
23
23
|
multivalue?: boolean | undefined;
|
|
24
24
|
optionsGetter: (propertyId: string, keyword?: string, locale?: string) => Promise<any[] | undefined> | any[] | undefined;
|
|
25
25
|
valueType: string;
|
|
@@ -52,12 +52,12 @@ declare const _default: <T extends {
|
|
|
52
52
|
max?: number | undefined;
|
|
53
53
|
regex?: string | undefined;
|
|
54
54
|
} | undefined;
|
|
55
|
-
property: T;
|
|
56
55
|
"onUpdate:model-value"?: ((data: {
|
|
57
56
|
readonly value: any;
|
|
58
57
|
readonly dictionary?: any[] | undefined;
|
|
59
58
|
readonly locale?: string | undefined;
|
|
60
59
|
}) => any) | undefined;
|
|
60
|
+
property: T;
|
|
61
61
|
multivalue?: boolean | undefined;
|
|
62
62
|
optionsGetter: (propertyId: string, keyword?: string, locale?: string) => Promise<any[] | undefined> | any[] | undefined;
|
|
63
63
|
valueType: string;
|
|
@@ -94,12 +94,12 @@ declare const _default: <T extends {
|
|
|
94
94
|
max?: number | undefined;
|
|
95
95
|
regex?: string | undefined;
|
|
96
96
|
} | undefined;
|
|
97
|
-
property: T;
|
|
98
97
|
"onUpdate:model-value"?: ((data: {
|
|
99
98
|
readonly value: any;
|
|
100
99
|
readonly dictionary?: any[] | undefined;
|
|
101
100
|
readonly locale?: string | undefined;
|
|
102
101
|
}) => any) | undefined;
|
|
102
|
+
property: T;
|
|
103
103
|
multivalue?: boolean | undefined;
|
|
104
104
|
optionsGetter: (propertyId: string, keyword?: string, locale?: string) => Promise<any[] | undefined> | any[] | undefined;
|
|
105
105
|
valueType: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-dynamic-property.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.ts"],"names":[],"mappings":";;;;;UA6bU,MAAM;gBAZA,GAAG;cAML,OAAO
|
|
1
|
+
{"version":3,"file":"vc-dynamic-property.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.ts"],"names":[],"mappings":";;;;;UA6bU,MAAM;gBAZA,GAAG;cAML,OAAO;;;;;;;;;;wBA3X4B,GAAG;;;;cAoXtC,CAAC;;mBAEI,CACb,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,MAAM,KACZ,QAAQ,GAAG,EAAE,GAAG,SAAS,CAAC,GAAG,GAAG,EAAE,GAAG,SAAS;eAKxC,MAAM;;;;;;;;;WAuBd,GAAG;;;wBAtZuC,GAAG;;;;yCAqZpC,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;cApB/C,MAAM;oBAZA,GAAG;kBAML,OAAO;;;;;;;;;;4BA3X4B,GAAG;;;;kBAoXtC,CAAC;;uBAEI,CACb,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,MAAM,KACZ,QAAQ,GAAG,EAAE,GAAG,SAAS,CAAC,GAAG,GAAG,EAAE,GAAG,SAAS;mBAKxC,MAAM;;;;;;;;;oBAsBL,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;wBAtZuC,GAAG;;;;;;;;;;kBAiY1C,MAAM;wBAZA,GAAG;sBAML,OAAO;;;;;;;;;;gCA3X4B,GAAG;;;;sBAoXtC,CAAC;;2BAEI,CACb,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,MAAM,KACZ,QAAQ,GAAG,EAAE,GAAG,SAAS,CAAC,GAAG,GAAG,EAAE,GAAG,SAAS;uBAKxC,MAAM;;;;;;;;;wBAsBL,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;eAClD,GAAG;;;4BAtZuC,GAAG;;;;;;AAnDpD,wBA8c2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -17,8 +17,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
17
17
|
}>>> & {
|
|
18
18
|
onClose?: (() => any) | undefined;
|
|
19
19
|
}, {
|
|
20
|
-
index: number;
|
|
21
20
|
images: ICommonAsset[];
|
|
21
|
+
index: number;
|
|
22
22
|
}, {}>;
|
|
23
23
|
export default _default;
|
|
24
24
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.231",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/framework.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/dompurify": "^3.0.5",
|
|
62
62
|
"@types/quill": "^2.0.14",
|
|
63
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
64
|
-
"@vc-shell/config-generator": "^1.0.
|
|
65
|
-
"@vc-shell/ts-config": "^1.0.
|
|
63
|
+
"@vc-shell/api-client-generator": "^1.0.231",
|
|
64
|
+
"@vc-shell/config-generator": "^1.0.231",
|
|
65
|
+
"@vc-shell/ts-config": "^1.0.231",
|
|
66
66
|
"@vitejs/plugin-vue": "^5.0.3",
|
|
67
67
|
"sass": "^1.69.6",
|
|
68
68
|
"shx": "^0.3.4",
|
|
@@ -15,8 +15,11 @@ export default {
|
|
|
15
15
|
setup(props: ExtractPropTypes<typeof componentProps> & { element: InputCurrencySchema }) {
|
|
16
16
|
return () => {
|
|
17
17
|
const options =
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
(safeIn("options", props.element) &&
|
|
19
|
+
props.element.options &&
|
|
20
|
+
(toValue(getModel(props.element.options, props.fieldContext ?? {})) ||
|
|
21
|
+
toValue(unref(props.bladeContext.scope)?.[props.element.options]))) ??
|
|
22
|
+
undefined;
|
|
20
23
|
|
|
21
24
|
const contextProperty =
|
|
22
25
|
safeIn("optionProperty", props.element) &&
|
|
@@ -33,7 +36,9 @@ export default {
|
|
|
33
36
|
props: Object.assign(
|
|
34
37
|
{},
|
|
35
38
|
{
|
|
39
|
+
precision: props.element.precision,
|
|
36
40
|
option: toValue(scopedProperty ?? contextProperty),
|
|
41
|
+
currencyDisplay: props.element.currencyDisplay,
|
|
37
42
|
optionLabel: props.element.optionLabel,
|
|
38
43
|
optionValue: props.element.optionValue,
|
|
39
44
|
options,
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
} from "./../../../../ui/components";
|
|
14
14
|
import { ITableColumns, IValidationRules, MenuItemConfig } from "../../../../core/types";
|
|
15
15
|
import type { ComponentProps } from "./../../../utilities/vueUtils";
|
|
16
|
+
import VcInputCurrency from "../../../../ui/components/molecules/vc-input-currency/vc-input-currency.vue";
|
|
16
17
|
|
|
17
18
|
export type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
18
19
|
|
|
@@ -644,7 +645,7 @@ export interface InputCurrencySchema extends Omit<SchemaBase, "multilanguage"> {
|
|
|
644
645
|
* List of currency options to be displayed in the dropdown.
|
|
645
646
|
* @description Array should be defined in the blade `scope`.
|
|
646
647
|
*/
|
|
647
|
-
options
|
|
648
|
+
options?: string;
|
|
648
649
|
/**
|
|
649
650
|
* Name of property that holds currency value.
|
|
650
651
|
* @type {string}
|
|
@@ -671,6 +672,14 @@ export interface InputCurrencySchema extends Omit<SchemaBase, "multilanguage"> {
|
|
|
671
672
|
* Text below control.
|
|
672
673
|
*/
|
|
673
674
|
hint?: string;
|
|
675
|
+
/**
|
|
676
|
+
* How to show the currency.
|
|
677
|
+
*/
|
|
678
|
+
currencyDisplay?: ComponentProps<typeof VcInputCurrency>["currencyDisplay"];
|
|
679
|
+
/**
|
|
680
|
+
* The number of displayed decimal digits.
|
|
681
|
+
*/
|
|
682
|
+
precision?: ComponentProps<typeof VcInputCurrency>["precision"];
|
|
674
683
|
}
|
|
675
684
|
|
|
676
685
|
/**
|
|
@@ -188,6 +188,7 @@ export interface Props {
|
|
|
188
188
|
* Currency sign display settings
|
|
189
189
|
*/
|
|
190
190
|
currencyDisplay?: `${CurrencyDisplay}`;
|
|
191
|
+
precision?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
191
192
|
}
|
|
192
193
|
|
|
193
194
|
export interface Emits {
|
|
@@ -200,6 +201,7 @@ export interface Emits {
|
|
|
200
201
|
const props = withDefaults(defineProps<Props>(), {
|
|
201
202
|
debounce: 0,
|
|
202
203
|
currencyDisplay: CurrencyDisplay.hidden,
|
|
204
|
+
precision: 2,
|
|
203
205
|
});
|
|
204
206
|
|
|
205
207
|
defineSlots<{
|
|
@@ -239,6 +241,7 @@ const { inputRef, setOptions, numberValue, setValue } = useCurrencyInput(
|
|
|
239
241
|
currency: props.option || "USD",
|
|
240
242
|
currencyDisplay: props.currencyDisplay as CurrencyDisplay,
|
|
241
243
|
hideGroupingSeparatorOnFocus: false,
|
|
244
|
+
precision: props.precision,
|
|
242
245
|
},
|
|
243
246
|
false,
|
|
244
247
|
);
|