cnhis-design-vue 3.1.52-release.5 → 3.1.53-beta.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/es/components/classification/index.d.ts +10 -10
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +10 -10
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +10 -10
- package/es/components/classification/src/index.vue.d.ts +10 -10
- package/es/components/date-picker/index.d.ts +5 -5
- package/es/components/date-picker/src/DatePicker.vue.d.ts +7 -5
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/form-render/src/components/renderer/index.js +1 -1
- package/es/components/form-render/src/components/renderer/{levelSearchCascader.d.ts → levelSearchCascader/index.d.ts} +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +1 -0
- package/es/components/form-render/src/components/renderer/levelSearchCascader/utils.d.ts +23 -0
- package/es/components/form-render/src/components/renderer/levelSearchCascader/utils.js +1 -0
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +2 -2
- package/es/components/form-render/src/types/fieldItem.d.ts +1 -24
- package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/defaultValuePlugin.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +5 -5
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +5 -5
- package/es/components/iho-table/src/plugins/wordbookSettingPlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/wordbookSettingPlugin.js +1 -0
- package/es/components/iho-table/src/types/index.d.ts +2 -1
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +10 -10
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +5 -5
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +6 -5
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +10 -10
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +10 -10
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +5 -5
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +5 -5
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +5 -5
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +5 -5
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +20 -20
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +20 -20
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +24 -0
- package/package.json +2 -2
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +0 -1
|
@@ -807,7 +807,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
807
807
|
type: FunctionConstructor;
|
|
808
808
|
};
|
|
809
809
|
formattedValue: {
|
|
810
|
-
type:
|
|
810
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
811
811
|
};
|
|
812
812
|
placeholder: {
|
|
813
813
|
type: StringConstructor;
|
|
@@ -827,7 +827,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
827
827
|
type: FunctionConstructor;
|
|
828
828
|
};
|
|
829
829
|
formattedValue: {
|
|
830
|
-
type:
|
|
830
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
831
831
|
};
|
|
832
832
|
placeholder: {
|
|
833
833
|
type: StringConstructor;
|
|
@@ -842,7 +842,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
842
842
|
datePickerRef: import("vue").Ref<import("../../../es/shared/types").AnyObject | null>;
|
|
843
843
|
panelInstRef: import("vue").Ref<null>;
|
|
844
844
|
placeholderRef: import("vue").Ref<any>;
|
|
845
|
-
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
845
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
|
846
846
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
847
847
|
formatRef: import("vue").ComputedRef<string>;
|
|
848
848
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -851,7 +851,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
851
851
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
852
852
|
onUpdateShow: (show: boolean) => void;
|
|
853
853
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
854
|
-
isAllowedInvalidValue: (value
|
|
854
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
|
855
855
|
NDatePicker: any;
|
|
856
856
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
857
857
|
updateUnchangedValue: {
|
|
@@ -861,7 +861,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
861
861
|
type: FunctionConstructor;
|
|
862
862
|
};
|
|
863
863
|
formattedValue: {
|
|
864
|
-
type:
|
|
864
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
865
865
|
};
|
|
866
866
|
placeholder: {
|
|
867
867
|
type: StringConstructor;
|
|
@@ -1434,7 +1434,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1434
1434
|
type: FunctionConstructor;
|
|
1435
1435
|
};
|
|
1436
1436
|
formattedValue: {
|
|
1437
|
-
type:
|
|
1437
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
1438
1438
|
};
|
|
1439
1439
|
placeholder: {
|
|
1440
1440
|
type: StringConstructor;
|
|
@@ -1454,7 +1454,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1454
1454
|
type: FunctionConstructor;
|
|
1455
1455
|
};
|
|
1456
1456
|
formattedValue: {
|
|
1457
|
-
type:
|
|
1457
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
1458
1458
|
};
|
|
1459
1459
|
placeholder: {
|
|
1460
1460
|
type: StringConstructor;
|
|
@@ -1469,7 +1469,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1469
1469
|
datePickerRef: import("vue").Ref<import("../../../es/shared/types").AnyObject | null>;
|
|
1470
1470
|
panelInstRef: import("vue").Ref<null>;
|
|
1471
1471
|
placeholderRef: import("vue").Ref<any>;
|
|
1472
|
-
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
1472
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
|
1473
1473
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
1474
1474
|
formatRef: import("vue").ComputedRef<string>;
|
|
1475
1475
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -1478,7 +1478,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1478
1478
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
1479
1479
|
onUpdateShow: (show: boolean) => void;
|
|
1480
1480
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
1481
|
-
isAllowedInvalidValue: (value
|
|
1481
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
|
1482
1482
|
NDatePicker: any;
|
|
1483
1483
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1484
1484
|
updateUnchangedValue: {
|
|
@@ -1488,7 +1488,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1488
1488
|
type: FunctionConstructor;
|
|
1489
1489
|
};
|
|
1490
1490
|
formattedValue: {
|
|
1491
|
-
type:
|
|
1491
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
1492
1492
|
};
|
|
1493
1493
|
placeholder: {
|
|
1494
1494
|
type: StringConstructor;
|
|
@@ -284,7 +284,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
284
284
|
type: FunctionConstructor;
|
|
285
285
|
};
|
|
286
286
|
formattedValue: {
|
|
287
|
-
type:
|
|
287
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
288
288
|
};
|
|
289
289
|
placeholder: {
|
|
290
290
|
type: StringConstructor;
|
|
@@ -304,7 +304,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
304
304
|
type: FunctionConstructor;
|
|
305
305
|
};
|
|
306
306
|
formattedValue: {
|
|
307
|
-
type:
|
|
307
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
308
308
|
};
|
|
309
309
|
placeholder: {
|
|
310
310
|
type: StringConstructor;
|
|
@@ -319,7 +319,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
319
319
|
datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
|
|
320
320
|
panelInstRef: import("vue").Ref<null>;
|
|
321
321
|
placeholderRef: import("vue").Ref<any>;
|
|
322
|
-
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
322
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
|
323
323
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
324
324
|
formatRef: import("vue").ComputedRef<string>;
|
|
325
325
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -328,7 +328,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
328
328
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
329
329
|
onUpdateShow: (show: boolean) => void;
|
|
330
330
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
331
|
-
isAllowedInvalidValue: (value
|
|
331
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
|
332
332
|
NDatePicker: any;
|
|
333
333
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
334
334
|
updateUnchangedValue: {
|
|
@@ -338,7 +338,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
338
338
|
type: FunctionConstructor;
|
|
339
339
|
};
|
|
340
340
|
formattedValue: {
|
|
341
|
-
type:
|
|
341
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
342
342
|
};
|
|
343
343
|
placeholder: {
|
|
344
344
|
type: StringConstructor;
|
|
@@ -911,7 +911,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
911
911
|
type: FunctionConstructor;
|
|
912
912
|
};
|
|
913
913
|
formattedValue: {
|
|
914
|
-
type:
|
|
914
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
915
915
|
};
|
|
916
916
|
placeholder: {
|
|
917
917
|
type: StringConstructor;
|
|
@@ -931,7 +931,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
931
931
|
type: FunctionConstructor;
|
|
932
932
|
};
|
|
933
933
|
formattedValue: {
|
|
934
|
-
type:
|
|
934
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
935
935
|
};
|
|
936
936
|
placeholder: {
|
|
937
937
|
type: StringConstructor;
|
|
@@ -946,7 +946,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
946
946
|
datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
|
|
947
947
|
panelInstRef: import("vue").Ref<null>;
|
|
948
948
|
placeholderRef: import("vue").Ref<any>;
|
|
949
|
-
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
949
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
|
950
950
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
951
951
|
formatRef: import("vue").ComputedRef<string>;
|
|
952
952
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -955,7 +955,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
955
955
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
956
956
|
onUpdateShow: (show: boolean) => void;
|
|
957
957
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
958
|
-
isAllowedInvalidValue: (value
|
|
958
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
|
959
959
|
NDatePicker: any;
|
|
960
960
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
961
961
|
updateUnchangedValue: {
|
|
@@ -965,7 +965,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
965
965
|
type: FunctionConstructor;
|
|
966
966
|
};
|
|
967
967
|
formattedValue: {
|
|
968
|
-
type:
|
|
968
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
969
969
|
};
|
|
970
970
|
placeholder: {
|
|
971
971
|
type: StringConstructor;
|
|
@@ -594,7 +594,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
594
594
|
type: FunctionConstructor;
|
|
595
595
|
};
|
|
596
596
|
formattedValue: {
|
|
597
|
-
type:
|
|
597
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
598
598
|
};
|
|
599
599
|
placeholder: {
|
|
600
600
|
type: StringConstructor;
|
|
@@ -614,7 +614,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
614
614
|
type: FunctionConstructor;
|
|
615
615
|
};
|
|
616
616
|
formattedValue: {
|
|
617
|
-
type:
|
|
617
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
618
618
|
};
|
|
619
619
|
placeholder: {
|
|
620
620
|
type: StringConstructor;
|
|
@@ -629,7 +629,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
629
629
|
datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
|
|
630
630
|
panelInstRef: import("vue").Ref<null>;
|
|
631
631
|
placeholderRef: import("vue").Ref<any>;
|
|
632
|
-
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
632
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
|
633
633
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
634
634
|
formatRef: import("vue").ComputedRef<string>;
|
|
635
635
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -638,7 +638,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
638
638
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
639
639
|
onUpdateShow: (show: boolean) => void;
|
|
640
640
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
641
|
-
isAllowedInvalidValue: (value
|
|
641
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
|
642
642
|
NDatePicker: any;
|
|
643
643
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
644
644
|
updateUnchangedValue: {
|
|
@@ -648,7 +648,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
648
648
|
type: FunctionConstructor;
|
|
649
649
|
};
|
|
650
650
|
formattedValue: {
|
|
651
|
-
type:
|
|
651
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
652
652
|
};
|
|
653
653
|
placeholder: {
|
|
654
654
|
type: StringConstructor;
|
|
@@ -1221,7 +1221,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1221
1221
|
type: FunctionConstructor;
|
|
1222
1222
|
};
|
|
1223
1223
|
formattedValue: {
|
|
1224
|
-
type:
|
|
1224
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
1225
1225
|
};
|
|
1226
1226
|
placeholder: {
|
|
1227
1227
|
type: StringConstructor;
|
|
@@ -1241,7 +1241,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1241
1241
|
type: FunctionConstructor;
|
|
1242
1242
|
};
|
|
1243
1243
|
formattedValue: {
|
|
1244
|
-
type:
|
|
1244
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
1245
1245
|
};
|
|
1246
1246
|
placeholder: {
|
|
1247
1247
|
type: StringConstructor;
|
|
@@ -1256,7 +1256,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1256
1256
|
datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
|
|
1257
1257
|
panelInstRef: import("vue").Ref<null>;
|
|
1258
1258
|
placeholderRef: import("vue").Ref<any>;
|
|
1259
|
-
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
1259
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
|
1260
1260
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
1261
1261
|
formatRef: import("vue").ComputedRef<string>;
|
|
1262
1262
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -1265,7 +1265,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1265
1265
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
1266
1266
|
onUpdateShow: (show: boolean) => void;
|
|
1267
1267
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
1268
|
-
isAllowedInvalidValue: (value
|
|
1268
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
|
1269
1269
|
NDatePicker: any;
|
|
1270
1270
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1271
1271
|
updateUnchangedValue: {
|
|
@@ -1275,7 +1275,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1275
1275
|
type: FunctionConstructor;
|
|
1276
1276
|
};
|
|
1277
1277
|
formattedValue: {
|
|
1278
|
-
type:
|
|
1278
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
1279
1279
|
};
|
|
1280
1280
|
placeholder: {
|
|
1281
1281
|
type: StringConstructor;
|
|
@@ -808,7 +808,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
808
808
|
type: FunctionConstructor;
|
|
809
809
|
};
|
|
810
810
|
formattedValue: {
|
|
811
|
-
type:
|
|
811
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
812
812
|
};
|
|
813
813
|
placeholder: {
|
|
814
814
|
type: StringConstructor;
|
|
@@ -828,7 +828,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
828
828
|
type: FunctionConstructor;
|
|
829
829
|
};
|
|
830
830
|
formattedValue: {
|
|
831
|
-
type:
|
|
831
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
832
832
|
};
|
|
833
833
|
placeholder: {
|
|
834
834
|
type: StringConstructor;
|
|
@@ -843,7 +843,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
843
843
|
datePickerRef: import("vue").Ref<import("../..").AnyObject | null>;
|
|
844
844
|
panelInstRef: import("vue").Ref<null>;
|
|
845
845
|
placeholderRef: import("vue").Ref<any>;
|
|
846
|
-
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
846
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
|
847
847
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
848
848
|
formatRef: import("vue").ComputedRef<string>;
|
|
849
849
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -852,7 +852,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
852
852
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
853
853
|
onUpdateShow: (show: boolean) => void;
|
|
854
854
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
855
|
-
isAllowedInvalidValue: (value
|
|
855
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
|
856
856
|
NDatePicker: any;
|
|
857
857
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
858
858
|
updateUnchangedValue: {
|
|
@@ -862,7 +862,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
862
862
|
type: FunctionConstructor;
|
|
863
863
|
};
|
|
864
864
|
formattedValue: {
|
|
865
|
-
type:
|
|
865
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
866
866
|
};
|
|
867
867
|
placeholder: {
|
|
868
868
|
type: StringConstructor;
|
|
@@ -1435,7 +1435,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1435
1435
|
type: FunctionConstructor;
|
|
1436
1436
|
};
|
|
1437
1437
|
formattedValue: {
|
|
1438
|
-
type:
|
|
1438
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
1439
1439
|
};
|
|
1440
1440
|
placeholder: {
|
|
1441
1441
|
type: StringConstructor;
|
|
@@ -1455,7 +1455,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1455
1455
|
type: FunctionConstructor;
|
|
1456
1456
|
};
|
|
1457
1457
|
formattedValue: {
|
|
1458
|
-
type:
|
|
1458
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
1459
1459
|
};
|
|
1460
1460
|
placeholder: {
|
|
1461
1461
|
type: StringConstructor;
|
|
@@ -1470,7 +1470,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1470
1470
|
datePickerRef: import("vue").Ref<import("../..").AnyObject | null>;
|
|
1471
1471
|
panelInstRef: import("vue").Ref<null>;
|
|
1472
1472
|
placeholderRef: import("vue").Ref<any>;
|
|
1473
|
-
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
1473
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
|
1474
1474
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
1475
1475
|
formatRef: import("vue").ComputedRef<string>;
|
|
1476
1476
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -1479,7 +1479,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1479
1479
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
1480
1480
|
onUpdateShow: (show: boolean) => void;
|
|
1481
1481
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
1482
|
-
isAllowedInvalidValue: (value
|
|
1482
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
|
1483
1483
|
NDatePicker: any;
|
|
1484
1484
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1485
1485
|
updateUnchangedValue: {
|
|
@@ -1489,7 +1489,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1489
1489
|
type: FunctionConstructor;
|
|
1490
1490
|
};
|
|
1491
1491
|
formattedValue: {
|
|
1492
|
-
type:
|
|
1492
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
1493
1493
|
};
|
|
1494
1494
|
placeholder: {
|
|
1495
1495
|
type: StringConstructor;
|
|
@@ -7,7 +7,7 @@ declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7
7
|
type: FunctionConstructor;
|
|
8
8
|
};
|
|
9
9
|
formattedValue: {
|
|
10
|
-
type:
|
|
10
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
11
11
|
};
|
|
12
12
|
placeholder: {
|
|
13
13
|
type: StringConstructor;
|
|
@@ -27,7 +27,7 @@ declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
27
27
|
type: FunctionConstructor;
|
|
28
28
|
};
|
|
29
29
|
formattedValue: {
|
|
30
|
-
type:
|
|
30
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
31
31
|
};
|
|
32
32
|
placeholder: {
|
|
33
33
|
type: StringConstructor;
|
|
@@ -42,7 +42,7 @@ declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
42
42
|
datePickerRef: import("vue").Ref<import("../../../es/shared/types").AnyObject | null>;
|
|
43
43
|
panelInstRef: import("vue").Ref<null>;
|
|
44
44
|
placeholderRef: import("vue").Ref<any>;
|
|
45
|
-
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
45
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
|
46
46
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
47
47
|
formatRef: import("vue").ComputedRef<string>;
|
|
48
48
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -51,7 +51,7 @@ declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
51
51
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
52
52
|
onUpdateShow: (show: boolean) => void;
|
|
53
53
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
54
|
-
isAllowedInvalidValue: (value
|
|
54
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
|
55
55
|
NDatePicker: any;
|
|
56
56
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
57
57
|
updateUnchangedValue: {
|
|
@@ -61,7 +61,7 @@ declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
61
61
|
type: FunctionConstructor;
|
|
62
62
|
};
|
|
63
63
|
formattedValue: {
|
|
64
|
-
type:
|
|
64
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
65
65
|
};
|
|
66
66
|
placeholder: {
|
|
67
67
|
type: StringConstructor;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
1
2
|
import { AnyObject } from '../../../../es/shared/types';
|
|
3
|
+
declare type FormattedValue = string | [string, string];
|
|
2
4
|
declare const _default: import("vue").DefineComponent<{
|
|
3
5
|
updateUnchangedValue: {
|
|
4
6
|
type: BooleanConstructor;
|
|
@@ -7,7 +9,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
9
|
type: FunctionConstructor;
|
|
8
10
|
};
|
|
9
11
|
formattedValue: {
|
|
10
|
-
type:
|
|
12
|
+
type: PropType<FormattedValue | null | undefined>;
|
|
11
13
|
};
|
|
12
14
|
placeholder: {
|
|
13
15
|
type: StringConstructor;
|
|
@@ -27,7 +29,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
29
|
type: FunctionConstructor;
|
|
28
30
|
};
|
|
29
31
|
formattedValue: {
|
|
30
|
-
type:
|
|
32
|
+
type: PropType<FormattedValue | null | undefined>;
|
|
31
33
|
};
|
|
32
34
|
placeholder: {
|
|
33
35
|
type: StringConstructor;
|
|
@@ -42,7 +44,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
42
44
|
datePickerRef: import("vue").Ref<AnyObject | null>;
|
|
43
45
|
panelInstRef: import("vue").Ref<null>;
|
|
44
46
|
placeholderRef: import("vue").Ref<any>;
|
|
45
|
-
currentFormattedValue: import("vue").WritableComputedRef<
|
|
47
|
+
currentFormattedValue: import("vue").WritableComputedRef<FormattedValue | null | undefined>;
|
|
46
48
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
47
49
|
formatRef: import("vue").ComputedRef<string>;
|
|
48
50
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -51,7 +53,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
53
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
52
54
|
onUpdateShow: (show: boolean) => void;
|
|
53
55
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
54
|
-
isAllowedInvalidValue: (value
|
|
56
|
+
isAllowedInvalidValue: (value: FormattedValue | null | undefined) => boolean | "" | undefined;
|
|
55
57
|
NDatePicker: any;
|
|
56
58
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
57
59
|
updateUnchangedValue: {
|
|
@@ -61,7 +63,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
61
63
|
type: FunctionConstructor;
|
|
62
64
|
};
|
|
63
65
|
formattedValue: {
|
|
64
|
-
type:
|
|
66
|
+
type: PropType<FormattedValue | null | undefined>;
|
|
65
67
|
};
|
|
66
68
|
placeholder: {
|
|
67
69
|
type: StringConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as
|
|
1
|
+
import{defineComponent as e,useAttrs as a,ref as t,computed as l,watch as n,openBlock as u,createBlock as r,unref as o,isRef as d,createSlots as i,renderList as s,withCtx as f,renderSlot as p,nextTick as m}from"vue";import{NDatePicker as v}from"naive-ui";import"../../../shared/utils/index.js";import{isString as c,isArray as y}from"lodash-es";import{useDateTime as h}from"../../../shared/hooks/useDateTime.js";import{format as g}from"date-fns";var V=e({__name:"DatePicker",props:{updateUnchangedValue:{type:Boolean},onConfirm:{type:Function},formattedValue:{type:[String,Array]},placeholder:{type:String},allowedInvalidValue:{type:String}},emits:["update:formatted-value"],setup(e,{expose:V,emit:w}){const I=e,R=a(),D=t(null),M=t(null),k=t(),C=l({get:()=>j(I.formattedValue)?null:I.formattedValue,set(e){w("update:formatted-value",e,c(e)?Date.parse(e):y(e)?[Date.parse(e[0]),Date.parse(e[1])]:null)}}),E=l((()=>{const e=Reflect.get(R,"type")||"";return["datetime","datetimerange"].includes(e)})),P=l((()=>{if(Reflect.get(R,"format"))return R.format;const e=R.type||"";return E.value?"yyyy-MM-dd HH:mm:ss":"month"===e?"yyyy-MM":"year"===e?"yyyy":"yyyy-MM-dd"})),S=l((()=>E.value?P.value.split(" "):"")),{focus:U,blur:$,handleConfirm:_}=h(D,{formatRef:P,attrs:R,emit:w,allowedInvalidValue:I.allowedInvalidValue});function b(e){e&&E.value&&m((()=>{var e;M.value=null==(e=D.value)?void 0:e.panelInstRef,h(M,{formatRef:S,attrs:R,isPanel:!0})}))}async function x(...e){var a,t,l,n,u,r;const o=Reflect.get(R,"type")||"",d=null==(n=null==(l=null==(t=null==(a=D.value)?void 0:a.inputInstRef)?void 0:t.$el)?void 0:l.querySelector)?void 0:n.call(l,"input");if(o.includes("range")?null==(u=I.onConfirm)||u.call(I,...e):(await m(),d.focus(),_(d),d.blur(),null==(r=I.onConfirm)||r.call(I,Date.parse(d.value),d.value)),!(null==d?void 0:d.value)||!I.updateUnchangedValue||o.includes("range"))return;const i=d.value;d.value=g(new Date,P.value),d.dispatchEvent(new InputEvent("input")),d.value=i,d.dispatchEvent(new InputEvent("input"))}function j(e){return I.allowedInvalidValue&&I.allowedInvalidValue===e}return n((()=>I.formattedValue),(e=>{k.value=j(e)?e:I.placeholder?I.placeholder:"选择日期时间"}),{immediate:!0}),V({$datePicker:D,focus:U,blur:$}),(e,a)=>(u(),r(o(v),{ref_key:"datePickerRef",ref:D,"onUpdate:show":b,onConfirm:x,placeholder:k.value,"formatted-value":o(C),"onUpdate:formatted-value":a[0]||(a[0]=e=>d(C)?C.value=e:null)},i({_:2},[s(e.$slots,((a,t)=>({name:t,fn:f((()=>[p(e.$slots,t)]))})))]),1032,["placeholder","formatted-value"]))}});export{V as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as s from"./combination.js";import*as t from"./complex.js";import*as o from"./date.js";import*as r from"./formItem.js";import*as m from"./input.js";import*as e from"./inputGroup.js";import*as
|
|
1
|
+
import*as s from"./combination.js";import*as t from"./complex.js";import*as o from"./date.js";import*as r from"./formItem.js";import*as m from"./input.js";import*as e from"./inputGroup.js";import*as i from"./inputNumber.js";import*as a from"./jsonCombination/index.js";import*as p from"./levelSearchCascader/index.js";import*as n from"./lineBar/index.js";import*as x from"./radio_checkbox.js";import*as c from"./remoteSearch.js";import*as f from"./searchCascade.js";import*as j from"./select.js";import*as d from"./simpleComponent.js";import*as l from"./slider.js";import*as u from"./switch.js";import*as h from"./textarea.js";import{separateMetaModule as b}from"../../../../../shared/utils/index.js";var C=b(Object.assign({"./combination.tsx":s,"./complex.tsx":t,"./date.tsx":o,"./formItem.tsx":r,"./input.tsx":m,"./inputGroup.ts":e,"./inputNumber.tsx":i,"./jsonCombination/index.tsx":a,"./levelSearchCascader/index.tsx":p,"./lineBar/index.ts":n,"./radio&checkbox.tsx":x,"./remoteSearch.tsx":c,"./searchCascade.tsx":f,"./select.tsx":j,"./simpleComponent.tsx":d,"./slider.tsx":l,"./switch.tsx":u,"./textarea.tsx":h}));export{C as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyObject } from '
|
|
1
|
+
import { AnyObject } from '../../../../../../../es/shared/types';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
declare type ValueType = string | AnyObject[];
|
|
4
4
|
export declare const LEVEL_SEARCH_CASCADER: import("vue").DefineComponent<{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,computed as a,ref as t,inject as r,watch as o,createVNode as l}from"vue";import u from"../../../../../../shared/components/no-data/NoData.vue.js";import{connect as n,mapProps as i}from"@formily/vue";import{isEqual as s,isString as d,isNumber as v,isEmpty as c,isFunction as p}from"lodash-es";import"../../../../index.js";import{createCascaderUtils as y}from"./utils.js";import{InjectionAsyncQueue as m}from"../../../constants/index.js";import{useCommonInjection as h}from"../../../hooks/useCommonInjection.js";import f from"../../../../../search-cascader/index.js";import{formRenderLog as k}from"../../../utils/index.js";import{assignUpdateValue as g}from"../../../utils/schema.js";import{useFormField as j}from"../../../hooks/useFormField.js";import{useFormRequest as w}from"../../../hooks/useFormRequest.js";const b=n(e({name:"FormSearchCascade",props:{options:{type:Array,default:()=>[]},labelField:{type:String,default:"text"},valueField:{type:String,default:"value"},autograph:{type:String,required:!0},lazyRequest:{type:Boolean,default:!0},requestCache:{type:Boolean,default:!0},wordbook:{type:Object,required:!0},onChange:{},value:{type:[String,Array]}},emits:["update:value"],setup(e,{emit:n}){const i=a({get:()=>e.value,set(a){s(a,e.value)||n("update:value",a)}}),g=t(!1),b=t([]),{field:K,fieldKey:C}=j(),O=a((()=>{var a,t,r;return null!=(r=null==(t=null==(a=e.wordbook)?void 0:a.show_key)?void 0:t[0])?r:e.labelField})),_=a((()=>{var a,t;return null!=(t=null==(a=e.wordbook)?void 0:a.value_key)?t:e.valueField})),F=a((()=>{var a,t;return null==(t=null==(a=e.wordbook)?void 0:a.render_key)?void 0:t[0]})),S=a((()=>{var a;return(null==(a=e.wordbook)?void 0:a.level_num)||1/0})),q=y(_,O,F),x=r(m),{getSearchRequestInfo:I}=w(),L=t(150),A=t();async function P(a,t,r=!0){var o,l;if(L.value=t&&(null==(o=A.value)?void 0:o.getWidth())||150,q.shouldInitOptionList(i.value,a,t)){const[e,a]=q.transformListToChildren(i.value),t=e[Math.max(0,e.length-2)];if(i.value.length>1){b.value=a;const t=e[Math.max(0,e.length-2)];return await P(t,void 0,!1),t}if(null==(l=b.value)?void 0:l.length)return t}try{return q.isClickNodeCheckbox(a)?u(a):a?a.__keyword?async function(){var t;if(!d(a.id_link))return Promise.reject();const r=q.parseLinkFromString2List(a.id_link);v(S.value)&&S.value!==1/0&&r.splice(S.value);const o=await async function(a){if(!I().primaryKeyUrl)return[];try{return await x.addAsync(t(e.wordbook,e.autograph,a,C.value))}catch(e){d(e)&&k(e)}function t(a,t,r,o){const l=I();return{key:o,params:{autograph:t,tableId:a.id,primaryKeyValue:r.join(","),page:1},...l,url:l.primaryKeyUrl,cache:e.requestCache,payload:{field:K.value,labelKey:O.value,valueKey:_.value}}}}(r);if(!o)return Promise.reject();const{lastOption:l,options:u}=q.generateOptionWithIdList(o,r,S.value);if(u.length<S.value&&(await P(l),c(l.children)))return i.value=q.sortOptionWithIdList(o,r),g.value=!1,Promise.reject();return b.value=u,null==(t=A.value)||t.setCursor(l),l}():async function(){const t=await x.addAsync(n(e.wordbook,e.autograph,K.value,a,C.value));if(!t.length)return r?u(a):Promise.reject();a.children=t.map((e=>q.enrichChildOption(e,a,S.value)))}():async function(){var r;const o=await x.addAsync(n(e.wordbook,e.autograph,K.value,a,C.value));b.value=o.map((e=>q.enrichKeywordOption(e,t))),t&&(null==(r=A.value)||r.setCursor(b.value[0]))}()}catch(e){d(e)&&k(e)}function u(e){return i.value=q.createOptionValue(e),g.value=!1,Promise.reject()}function n(a,r,o,l,u){const n={autograph:()=>r,wordbookId:"id",wordbookType:"type",fieldKeys:()=>a.search_key?JSON.stringify(a.search_key):void 0,conObj:()=>JSON.stringify(q.createConfigObject(a,t,l)),primaryKey:"primary_key",levelKey:"level_key",keyword:()=>t,page:()=>1},i=Object.entries(n).reduce(((e,[t,r])=>(e[t]=d(r)?a[r]:p(r)?r():void 0,e)),{});return{...I(),params:i,key:u,cache:e.requestCache,payload:{field:o,labelKey:O.value,valueKey:_.value}}}}function V(){L.value=150}o((()=>e.wordbook),((a,t)=>{s(a,t)||(b.value=[],a&&(i.value||!e.lazyRequest)&&P())}),{immediate:!0});const{injectValueValidate:N,injectValueBindKey:R}=h();N(i);const U=R(i);return()=>l(f,{ref:A,value:i.value,"onUpdate:value":e=>i.value=e,show:g.value,"onUpdate:show":e=>g.value=e,options:b.value,key:U.value,labelKey:O.value,valueKey:_.value,search:P,onFocus:V,menuWidth:L.value},{empty:()=>l(u,null,null)})}}),i({dataSource:"options"},g));export{b as LEVEL_SEARCH_CASCADER};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AnyObject, FormWordbook } from '../../../../../../../es/shared/types';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
export declare function createCascaderUtils(valueKey: Ref<string>, labelKey: Ref<string>, renderKey: Ref<string | undefined>): {
|
|
4
|
+
transformListToChildren(list: AnyObject[]): AnyObject[][];
|
|
5
|
+
getNodeDepth(node: AnyObject): number;
|
|
6
|
+
enrichChildOption(option: AnyObject, parent: AnyObject, depth: number): {
|
|
7
|
+
parent: AnyObject;
|
|
8
|
+
isLeaf: boolean;
|
|
9
|
+
};
|
|
10
|
+
enrichKeywordOption(option: AnyObject, keyword?: string): AnyObject;
|
|
11
|
+
sortOptionWithIdList(options: AnyObject[], idList: string[]): AnyObject[];
|
|
12
|
+
generateOptionWithIdList(options: AnyObject[], idList: string[], depth: number): {
|
|
13
|
+
options: AnyObject[];
|
|
14
|
+
lastOption: AnyObject;
|
|
15
|
+
};
|
|
16
|
+
parseLinkFromString2List(linkString: string): string[];
|
|
17
|
+
isClickNodeCheckbox(node?: AnyObject): node is {
|
|
18
|
+
isLeaf: true;
|
|
19
|
+
} & AnyObject;
|
|
20
|
+
createConfigObject(wordbook: FormWordbook, keyword?: string, node?: AnyObject): AnyObject[];
|
|
21
|
+
createOptionValue(node: AnyObject): AnyObject[];
|
|
22
|
+
shouldInitOptionList(value: unknown, node?: AnyObject, keyword?: string): value is any[];
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{cloneDeep as e,omit as t,isArray as r,isEmpty as n}from"lodash-es";function i(i,o,a){return{transformListToChildren(t){if(!t.length)return[];const r=[(t=e(t))[0]];let n=t[0];for(let e=1;e<t.length;e++){const r=t[e];r&&(n.children=[r],r.parent=n,n=r)}return[t,r]},getNodeDepth(e){let t=1,r=e.parent;for(;r;)t++,r=r.parent;return t},enrichChildOption(e,t,r){return{...e,parent:t,isLeaf:this.getNodeDepth(t)+1>=r}},enrichKeywordOption:(e,t)=>(e.__keyword=!!t,e.isLeaf=!!t,t&&a.value&&e[a.value]&&(e[o.value]=e[a.value]),e),sortOptionWithIdList:(e,t)=>t.map((t=>e.find((e=>e[i.value]===t)))),generateOptionWithIdList(e,t,r){let n=e[0];return{options:t.reduce(((t,o,a)=>{const l=(s=o,e.find((e=>e[i.value]===s)));var s;return 0===a?(n=l,[l]):(Object.assign(l,{parent:n,isLeaf:a+1>=r}),n.children=[l],n=l,t)}),[]),lastOption:n}},parseLinkFromString2List:e=>e.split("_").filter((e=>e)),isClickNodeCheckbox:e=>e&&!e.__keyword&&e.isLeaf,createConfigObject:(e,t,r)=>t?e.conObj||[]:r?[{con:"EQ",is_compare_field:!1,field_key:e.level_key,value:r[i.value]}]:e.conObjFirstLevel||[],createOptionValue(e){const r=[];let n=e;for(;n;)r.unshift(t(n,["parent","isLeaf","__keyword","children"])),n=n.parent;return r},shouldInitOptionList:(e,t,o)=>r(e)&&!n(e)&&e.every((e=>e[i.value]))&&!t&&!o}}export{i as createCascaderUtils};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AnyObject, Func } from '../../../../../es/shared/types';
|
|
1
|
+
import { AnyObject, FormWordbook, Func } from '../../../../../es/shared/types';
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
|
-
import {
|
|
3
|
+
import { RecommendIds, UrlConfig } from '../../../../../es/components/form-render';
|
|
4
4
|
import { RecommendItem } from '../../../../../es/components/recommend-search/src/types';
|
|
5
5
|
declare type UseOptionHooks = Partial<Record<'onRequestConfigChange' | 'onDepsChange', (payload: {
|
|
6
6
|
fetchData: (content?: string | null, otherParams?: AnyObject) => any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyObject, ArrayAble, BindEventSettingItem } from '../../../../../es/shared/types';
|
|
1
|
+
import { AnyObject, ArrayAble, BindEventSettingItem, FormWordbook } from '../../../../../es/shared/types';
|
|
2
2
|
import { SchemaEffectTypes, SchemaTypes } from '@formily/vue';
|
|
3
3
|
import { CSSProperties, VNode } from 'vue';
|
|
4
4
|
import { DependKeyType, FormCommonState, FormRequestType } from '../../../../../es/components/form-render';
|
|
@@ -74,29 +74,6 @@ interface ReactionType {
|
|
|
74
74
|
};
|
|
75
75
|
[key: string]: any;
|
|
76
76
|
}
|
|
77
|
-
export declare type FormWordbook = Partial<{
|
|
78
|
-
level_num: number;
|
|
79
|
-
id: string;
|
|
80
|
-
name: string;
|
|
81
|
-
render_key: string[];
|
|
82
|
-
search_key: string[];
|
|
83
|
-
value_key: string;
|
|
84
|
-
queryParams: string[];
|
|
85
|
-
primary_key: string;
|
|
86
|
-
type: string;
|
|
87
|
-
level_key: string;
|
|
88
|
-
link_key: string;
|
|
89
|
-
link_key_split: string;
|
|
90
|
-
show_key: string[] | string;
|
|
91
|
-
conObj: AnyObject[];
|
|
92
|
-
conObjFirstLevel: AnyObject[];
|
|
93
|
-
setting: Partial<{
|
|
94
|
-
cascading: {
|
|
95
|
-
'form.name': string;
|
|
96
|
-
value: string;
|
|
97
|
-
}[];
|
|
98
|
-
}>;
|
|
99
|
-
}>;
|
|
100
77
|
export declare type CombinationItemDeletableFn = (itemData: AnyObject, index: number) => boolean;
|
|
101
78
|
export declare type FieldItem = {
|
|
102
79
|
val_key: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as t,provide as
|
|
1
|
+
import{defineComponent as e,computed as t,provide as o,ref as a,toRaw as l,watch as n,resolveComponent as r,openBlock as s,createElementBlock as i,unref as u,normalizeStyle as d,createBlock as c,resolveDynamicComponent as f,createElementVNode as v,createVNode as m,mergeProps as p,createSlots as b,renderList as g,withCtx as h,createCommentVNode as x,renderSlot as k,normalizeProps as y,guardReactiveProps as D}from"vue";import{useTheme as C}from"../../../shared/hooks/useTheme.js";import{useDebounceFn as $}from"@vueuse/core";import"date-fns";import{isString as j,isEqualWith as w,isFunction as I,pick as H}from"lodash-es";import{widthAppend as T,uuidGenerator as _}from"../../../shared/utils/index.js";import{promiseTimeout as A}from"@vueuse/shared";import{VxeTableEventNameList as L,InjectionIhoTableEmits as R,InjectionIhoTableAnnotation as S,InjectionIhoTableUUID as E,InjectionIhoTableInstance as F,InjectionIhoTableConfig as O,InjectionIhoTableFieldList as B,InjectionIhoTableHandler as W}from"./constants/index.js";import{createTableHooks as q,applyTableConfigHooks as z,applyTableFieldHooks as G,createTableEventHandlers as J,createDomInsertComponent as K,createDataTransfer as M}from"./hooks/tapHooks/index.js";import{provideIhoTableEventListener as N}from"./hooks/tapHooks/useEventHooks.js";import{eventName2EventListener as P}from"./utils/index.js";const Q=["id"];var U=e({__name:"IhoTable",props:{tableConfig:{type:Object,default:()=>({})},fieldList:{type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},annotation:{type:Object}},emits:["formChange","settingClick","formClick","keyboard","rowDrag",...L],setup(e,{expose:L,emit:U}){var V,X;const Y=e,Z=C({"--c-border-color":"#d0d0d0","--c-head-bg-color":"#f2f2f2","--c-hover-color":"#e6e6e6","--c-stripe-color":"#f6f6f6"}),ee=t((()=>{var e,t;const o=null!=(t=null==(e=Y.tableConfig)?void 0:e.height)?t:"100%";return{height:"auto"===o?"100%":j(o)&&(o.includes("calc")||o.endsWith("%"))?o:T(o)}})),te=N(),oe=function(e,...t){U(e,...t);const o=u(re)[P(e)];I(o)&&o(...t),te.trigger(e,...t)};o(R,oe);const ae=q();o(S,t((()=>Y.annotation)));const le=_();o(E,le);const ne=a();o(F,ne);const re=a({uuid:null!=(X=null==(V=Y.tableConfig)?void 0:V.uuid)?X:le});o(O,re);const se=$(ie,10);function ie(){re.value=z(ae,Y.tableConfig,{$table:ne,emits:oe}),re.value.uuid=le}const ue=a([]);o(B,ue);const de=$(ce,10);function ce(){const e=G(ae,Y.fieldList,re.value,{$table:ne,emits:oe});w(e,l(ue.value),((e,t)=>{if(I(e)&&I(t))return e.toString()===t.toString()}))||(ue.value=e)}const fe=M(ae,re,ne),ve=a([]);async function me(){var e,t;const o=await fe(Y.tableData),a=null==(e=ne.value)?void 0:e.getTableData().fullData;if(a){let e=0;if(!(a.some((t=>{var a;if(!(null==(a=ne.value)?void 0:a.isInsertByRow(t))){if(t!==o[e])return!0;e++}}))||e!==o.length))return}ve.value=o,null==(t=ne.value)||t.recalculate(!0)}const pe={updateTableDataRef:$(me,10),updateConfigRef:se,updateFieldListRef:de};o(W,pe);const be=J({hooks:ae,config:re,$table:ne,context:pe,emits:oe}),ge=t((()=>({...re.value,...be})));let he=!1,xe=!1,ke=!1;const ye=$((()=>{he&&ie(),xe&&ce(),ke&&me(),he=!1,xe=!1,ke=!1}),10);n((()=>Y.tableConfig),(()=>{he=!0,xe=!0,ke=!0,ye()}),{deep:!0}),n((()=>Y.fieldList),(()=>{xe=!0,ke=!0,ye()}),{deep:!0}),n([()=>[...Y.tableData],()=>{var e;return null==(e=Y.tableData)?void 0:e.length}],(()=>{ke=!0,ye()})),n([()=>Y.tableData,()=>{var e;return null==(e=Y.tableData)?void 0:e.length}],(async()=>{var e,t;(null==(e=re.value.treeConfig)?void 0:e.expandAll)&&(await A(11),null==(t=ne.value)||t.setAllTreeExpand(!0))})),ie(),ce(),me();const{header:De,footer:Ce}=K(ae);function $e(e){return H(e,["row","rowIndex","$rowIndex","column","columnIndex","$columnIndex","_columnIndex","checked","disabled","indeterminate"])}return L({$table:ne,async loadData(e){var t;null==(t=ne.value)||t.loadData(await fe(e))},setSort:(e,t)=>({field:e,value:t}),setFilter:(e,t)=>({field:e,value:t}),reload(){var e,t;null==(e=ne.value)||e.loadColumn([]),null==(t=ne.value)||t.loadData([]),ie(),ce(),me()},...ae.exposeHooks.expose.call({},re,{$table:ne,emits:oe})}),ae.setupHooks.setup.call(re,ue,{$table:ne,emits:oe}),(e,t)=>{const o=r("vxe-grid");return s(),i("section",{class:"iho-table",id:u(le),style:d(u(Z))},[(s(),c(f(u(De)))),v("section",{style:d(u(ee))},[m(o,p({ref_key:"$table",ref:ne},u(ge),{columns:ue.value,data:ve.value}),b({_:2},[g(e.$slots,((t,o)=>({name:o,fn:h((t=>[x(" 实际上所有的vxe-grid插槽都支持 "),k(e.$slots,o,y(D($e(t))))]))})))]),1040,["columns","data"])],4),(s(),c(f(u(Ce))))],12,Q)}}});export{U as default};
|