cnhis-design-vue 3.4.0-beta.45 → 3.4.0-beta.49
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/README.md +87 -87
- package/es/components/base-search/index.d.ts +34 -0
- package/es/components/base-search/src/index.vue.d.ts +34 -0
- package/es/components/base-search/src/index.vue2.js +9 -1
- package/es/components/classification/index.d.ts +84 -0
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +84 -0
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +84 -0
- package/es/components/classification/src/index.vue.d.ts +84 -0
- package/es/components/date-picker/index.d.ts +28 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +28 -0
- package/es/components/date-picker/src/DatePicker.vue2.js +26 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +57 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/components/condition.vue.d.ts +28 -0
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +56 -0
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +28 -0
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- package/es/components/iho-chat/index.d.ts +56 -0
- package/es/components/iho-chat/src/Index.vue.d.ts +56 -0
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +28 -0
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +28 -0
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +28 -0
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +28 -0
- package/es/components/iho-table/src/plugins/highLightSetPlugin.js +7 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +28 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +56 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +56 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +56 -0
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +30 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +10 -2
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +30 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +10 -2
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +116 -0
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +116 -0
- package/es/components/table-filter/src/constants/index.d.ts +1 -0
- package/es/components/table-filter/src/constants/index.js +4 -1
- package/es/env.d.ts +25 -25
- package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +15 -0
- package/es/shared/components/InputNumberSlash/InputNumberSlash.js +24 -10
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
|
@@ -223,6 +223,15 @@ declare const DateInner: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
223
223
|
isDateDisabled: {
|
|
224
224
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
225
225
|
};
|
|
226
|
+
propKey: {
|
|
227
|
+
type: StringConstructor;
|
|
228
|
+
};
|
|
229
|
+
shortcutListenerConfig: {
|
|
230
|
+
type: import("vue").PropType<{
|
|
231
|
+
enable: boolean;
|
|
232
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
233
|
+
}>;
|
|
234
|
+
};
|
|
226
235
|
}>, {
|
|
227
236
|
attrs: {
|
|
228
237
|
[x: string]: unknown;
|
|
@@ -262,6 +271,15 @@ declare const DateInner: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
262
271
|
isDateDisabled: {
|
|
263
272
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
264
273
|
};
|
|
274
|
+
propKey: {
|
|
275
|
+
type: StringConstructor;
|
|
276
|
+
};
|
|
277
|
+
shortcutListenerConfig: {
|
|
278
|
+
type: import("vue").PropType<{
|
|
279
|
+
enable: boolean;
|
|
280
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
281
|
+
}>;
|
|
282
|
+
};
|
|
265
283
|
}>> & Readonly<{
|
|
266
284
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
267
285
|
}> & {}>;
|
|
@@ -278,6 +296,7 @@ declare const DateInner: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
278
296
|
focus: () => any;
|
|
279
297
|
blur: () => any;
|
|
280
298
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
299
|
+
handleShortcutClick: (event: MouseEvent) => void;
|
|
281
300
|
onUpdateShow: (show: boolean) => Promise<void>;
|
|
282
301
|
watchers: import("../../../../../../shared/types").AnyFn[];
|
|
283
302
|
stopWatcher: () => void;
|
|
@@ -321,6 +340,15 @@ declare const DateInner: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
321
340
|
isDateDisabled: {
|
|
322
341
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
323
342
|
};
|
|
343
|
+
propKey: {
|
|
344
|
+
type: StringConstructor;
|
|
345
|
+
};
|
|
346
|
+
shortcutListenerConfig: {
|
|
347
|
+
type: import("vue").PropType<{
|
|
348
|
+
enable: boolean;
|
|
349
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
350
|
+
}>;
|
|
351
|
+
};
|
|
324
352
|
}>> & Readonly<{
|
|
325
353
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
326
354
|
}>, {
|
|
@@ -491,8 +519,10 @@ declare const DateOut: import("vue").DefineComponent<import("vue").ExtractPropTy
|
|
|
491
519
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
492
520
|
valueCp: import("vue").Ref<any, any>;
|
|
493
521
|
rangeShortcuts: import("vue").Ref<any, any>;
|
|
522
|
+
shortcutListenerConfig: import("../../../../../../shared/types").AnyObject;
|
|
494
523
|
dateFormat: import("vue").ComputedRef<string>;
|
|
495
524
|
optionSetting: import("vue").ComputedRef<any>;
|
|
525
|
+
compName: import("vue").ComputedRef<any>;
|
|
496
526
|
handleChange: (val: any) => void;
|
|
497
527
|
isDateDisabled: (ts: number) => boolean;
|
|
498
528
|
timeDisabled: (ts: number) => {
|
|
@@ -536,6 +566,15 @@ declare const DateOut: import("vue").DefineComponent<import("vue").ExtractPropTy
|
|
|
536
566
|
isDateDisabled: {
|
|
537
567
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
538
568
|
};
|
|
569
|
+
propKey: {
|
|
570
|
+
type: StringConstructor;
|
|
571
|
+
};
|
|
572
|
+
shortcutListenerConfig: {
|
|
573
|
+
type: import("vue").PropType<{
|
|
574
|
+
enable: boolean;
|
|
575
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
576
|
+
}>;
|
|
577
|
+
};
|
|
539
578
|
}>, {
|
|
540
579
|
attrs: {
|
|
541
580
|
[x: string]: unknown;
|
|
@@ -575,6 +614,15 @@ declare const DateOut: import("vue").DefineComponent<import("vue").ExtractPropTy
|
|
|
575
614
|
isDateDisabled: {
|
|
576
615
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
577
616
|
};
|
|
617
|
+
propKey: {
|
|
618
|
+
type: StringConstructor;
|
|
619
|
+
};
|
|
620
|
+
shortcutListenerConfig: {
|
|
621
|
+
type: import("vue").PropType<{
|
|
622
|
+
enable: boolean;
|
|
623
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
624
|
+
}>;
|
|
625
|
+
};
|
|
578
626
|
}>> & Readonly<{
|
|
579
627
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
580
628
|
}> & {}>;
|
|
@@ -591,6 +639,7 @@ declare const DateOut: import("vue").DefineComponent<import("vue").ExtractPropTy
|
|
|
591
639
|
focus: () => any;
|
|
592
640
|
blur: () => any;
|
|
593
641
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
642
|
+
handleShortcutClick: (event: MouseEvent) => void;
|
|
594
643
|
onUpdateShow: (show: boolean) => Promise<void>;
|
|
595
644
|
watchers: import("../../../../../../shared/types").AnyFn[];
|
|
596
645
|
stopWatcher: () => void;
|
|
@@ -634,6 +683,15 @@ declare const DateOut: import("vue").DefineComponent<import("vue").ExtractPropTy
|
|
|
634
683
|
isDateDisabled: {
|
|
635
684
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
636
685
|
};
|
|
686
|
+
propKey: {
|
|
687
|
+
type: StringConstructor;
|
|
688
|
+
};
|
|
689
|
+
shortcutListenerConfig: {
|
|
690
|
+
type: import("vue").PropType<{
|
|
691
|
+
enable: boolean;
|
|
692
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
693
|
+
}>;
|
|
694
|
+
};
|
|
637
695
|
}>> & Readonly<{
|
|
638
696
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
639
697
|
}>, {
|
|
@@ -811,6 +869,15 @@ declare const DateRangeInner: import("vue").DefineComponent<import("vue").Extrac
|
|
|
811
869
|
isDateDisabled: {
|
|
812
870
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
813
871
|
};
|
|
872
|
+
propKey: {
|
|
873
|
+
type: StringConstructor;
|
|
874
|
+
};
|
|
875
|
+
shortcutListenerConfig: {
|
|
876
|
+
type: import("vue").PropType<{
|
|
877
|
+
enable: boolean;
|
|
878
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
879
|
+
}>;
|
|
880
|
+
};
|
|
814
881
|
}>, {
|
|
815
882
|
attrs: {
|
|
816
883
|
[x: string]: unknown;
|
|
@@ -850,6 +917,15 @@ declare const DateRangeInner: import("vue").DefineComponent<import("vue").Extrac
|
|
|
850
917
|
isDateDisabled: {
|
|
851
918
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
852
919
|
};
|
|
920
|
+
propKey: {
|
|
921
|
+
type: StringConstructor;
|
|
922
|
+
};
|
|
923
|
+
shortcutListenerConfig: {
|
|
924
|
+
type: import("vue").PropType<{
|
|
925
|
+
enable: boolean;
|
|
926
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
927
|
+
}>;
|
|
928
|
+
};
|
|
853
929
|
}>> & Readonly<{
|
|
854
930
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
855
931
|
}> & {}>;
|
|
@@ -866,6 +942,7 @@ declare const DateRangeInner: import("vue").DefineComponent<import("vue").Extrac
|
|
|
866
942
|
focus: () => any;
|
|
867
943
|
blur: () => any;
|
|
868
944
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
945
|
+
handleShortcutClick: (event: MouseEvent) => void;
|
|
869
946
|
onUpdateShow: (show: boolean) => Promise<void>;
|
|
870
947
|
watchers: import("../../../../../../shared/types").AnyFn[];
|
|
871
948
|
stopWatcher: () => void;
|
|
@@ -909,6 +986,15 @@ declare const DateRangeInner: import("vue").DefineComponent<import("vue").Extrac
|
|
|
909
986
|
isDateDisabled: {
|
|
910
987
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
911
988
|
};
|
|
989
|
+
propKey: {
|
|
990
|
+
type: StringConstructor;
|
|
991
|
+
};
|
|
992
|
+
shortcutListenerConfig: {
|
|
993
|
+
type: import("vue").PropType<{
|
|
994
|
+
enable: boolean;
|
|
995
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
996
|
+
}>;
|
|
997
|
+
};
|
|
912
998
|
}>> & Readonly<{
|
|
913
999
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
914
1000
|
}>, {
|
|
@@ -1086,8 +1172,10 @@ declare const DateRangeOut: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1086
1172
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
1087
1173
|
valueCp: import("vue").Ref<any, any>;
|
|
1088
1174
|
rangeShortcuts: import("vue").Ref<any, any>;
|
|
1175
|
+
shortcutListenerConfig: import("../../../../../../shared/types").AnyObject;
|
|
1089
1176
|
dateFormat: import("vue").ComputedRef<string>;
|
|
1090
1177
|
optionSetting: import("vue").ComputedRef<any>;
|
|
1178
|
+
compName: import("vue").ComputedRef<any>;
|
|
1091
1179
|
handleChange: (val: any) => void;
|
|
1092
1180
|
isDateDisabled: (ts: number) => boolean;
|
|
1093
1181
|
timeDisabled: (ts: number) => {
|
|
@@ -1131,6 +1219,15 @@ declare const DateRangeOut: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1131
1219
|
isDateDisabled: {
|
|
1132
1220
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1133
1221
|
};
|
|
1222
|
+
propKey: {
|
|
1223
|
+
type: StringConstructor;
|
|
1224
|
+
};
|
|
1225
|
+
shortcutListenerConfig: {
|
|
1226
|
+
type: import("vue").PropType<{
|
|
1227
|
+
enable: boolean;
|
|
1228
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1229
|
+
}>;
|
|
1230
|
+
};
|
|
1134
1231
|
}>, {
|
|
1135
1232
|
attrs: {
|
|
1136
1233
|
[x: string]: unknown;
|
|
@@ -1170,6 +1267,15 @@ declare const DateRangeOut: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1170
1267
|
isDateDisabled: {
|
|
1171
1268
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1172
1269
|
};
|
|
1270
|
+
propKey: {
|
|
1271
|
+
type: StringConstructor;
|
|
1272
|
+
};
|
|
1273
|
+
shortcutListenerConfig: {
|
|
1274
|
+
type: import("vue").PropType<{
|
|
1275
|
+
enable: boolean;
|
|
1276
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1277
|
+
}>;
|
|
1278
|
+
};
|
|
1173
1279
|
}>> & Readonly<{
|
|
1174
1280
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
1175
1281
|
}> & {}>;
|
|
@@ -1186,6 +1292,7 @@ declare const DateRangeOut: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1186
1292
|
focus: () => any;
|
|
1187
1293
|
blur: () => any;
|
|
1188
1294
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
1295
|
+
handleShortcutClick: (event: MouseEvent) => void;
|
|
1189
1296
|
onUpdateShow: (show: boolean) => Promise<void>;
|
|
1190
1297
|
watchers: import("../../../../../../shared/types").AnyFn[];
|
|
1191
1298
|
stopWatcher: () => void;
|
|
@@ -1229,6 +1336,15 @@ declare const DateRangeOut: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1229
1336
|
isDateDisabled: {
|
|
1230
1337
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1231
1338
|
};
|
|
1339
|
+
propKey: {
|
|
1340
|
+
type: StringConstructor;
|
|
1341
|
+
};
|
|
1342
|
+
shortcutListenerConfig: {
|
|
1343
|
+
type: import("vue").PropType<{
|
|
1344
|
+
enable: boolean;
|
|
1345
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1346
|
+
}>;
|
|
1347
|
+
};
|
|
1232
1348
|
}>> & Readonly<{
|
|
1233
1349
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
1234
1350
|
}>, {
|
|
@@ -544,6 +544,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
544
544
|
isDateDisabled: {
|
|
545
545
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
546
546
|
};
|
|
547
|
+
propKey: {
|
|
548
|
+
type: StringConstructor;
|
|
549
|
+
};
|
|
550
|
+
shortcutListenerConfig: {
|
|
551
|
+
type: import("vue").PropType<{
|
|
552
|
+
enable: boolean;
|
|
553
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
554
|
+
}>;
|
|
555
|
+
};
|
|
547
556
|
}>, {
|
|
548
557
|
attrs: {
|
|
549
558
|
[x: string]: unknown;
|
|
@@ -583,6 +592,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
583
592
|
isDateDisabled: {
|
|
584
593
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
585
594
|
};
|
|
595
|
+
propKey: {
|
|
596
|
+
type: StringConstructor;
|
|
597
|
+
};
|
|
598
|
+
shortcutListenerConfig: {
|
|
599
|
+
type: import("vue").PropType<{
|
|
600
|
+
enable: boolean;
|
|
601
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
602
|
+
}>;
|
|
603
|
+
};
|
|
586
604
|
}>> & Readonly<{
|
|
587
605
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
588
606
|
}> & {}>;
|
|
@@ -599,6 +617,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
599
617
|
focus: () => any;
|
|
600
618
|
blur: () => any;
|
|
601
619
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
620
|
+
handleShortcutClick: (event: MouseEvent) => void;
|
|
602
621
|
onUpdateShow: (show: boolean) => Promise<void>;
|
|
603
622
|
watchers: import("../../../../../shared/types").AnyFn[];
|
|
604
623
|
stopWatcher: () => void;
|
|
@@ -642,6 +661,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
642
661
|
isDateDisabled: {
|
|
643
662
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
644
663
|
};
|
|
664
|
+
propKey: {
|
|
665
|
+
type: StringConstructor;
|
|
666
|
+
};
|
|
667
|
+
shortcutListenerConfig: {
|
|
668
|
+
type: import("vue").PropType<{
|
|
669
|
+
enable: boolean;
|
|
670
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
671
|
+
}>;
|
|
672
|
+
};
|
|
645
673
|
}>> & Readonly<{
|
|
646
674
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
647
675
|
}>, {
|
|
@@ -826,8 +854,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
826
854
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
827
855
|
valueCp: import("vue").Ref<any, any>;
|
|
828
856
|
rangeShortcuts: import("vue").Ref<any, any>;
|
|
857
|
+
shortcutListenerConfig: import("../../../../../shared/types").AnyObject;
|
|
829
858
|
dateFormat: import("vue").ComputedRef<string>;
|
|
830
859
|
optionSetting: import("vue").ComputedRef<any>;
|
|
860
|
+
compName: import("vue").ComputedRef<any>;
|
|
831
861
|
handleChange: (val: any) => void;
|
|
832
862
|
isDateDisabled: (ts: number) => boolean;
|
|
833
863
|
timeDisabled: (ts: number) => {
|
|
@@ -871,6 +901,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
871
901
|
isDateDisabled: {
|
|
872
902
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
873
903
|
};
|
|
904
|
+
propKey: {
|
|
905
|
+
type: StringConstructor;
|
|
906
|
+
};
|
|
907
|
+
shortcutListenerConfig: {
|
|
908
|
+
type: import("vue").PropType<{
|
|
909
|
+
enable: boolean;
|
|
910
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
911
|
+
}>;
|
|
912
|
+
};
|
|
874
913
|
}>, {
|
|
875
914
|
attrs: {
|
|
876
915
|
[x: string]: unknown;
|
|
@@ -910,6 +949,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
910
949
|
isDateDisabled: {
|
|
911
950
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
912
951
|
};
|
|
952
|
+
propKey: {
|
|
953
|
+
type: StringConstructor;
|
|
954
|
+
};
|
|
955
|
+
shortcutListenerConfig: {
|
|
956
|
+
type: import("vue").PropType<{
|
|
957
|
+
enable: boolean;
|
|
958
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
959
|
+
}>;
|
|
960
|
+
};
|
|
913
961
|
}>> & Readonly<{
|
|
914
962
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
915
963
|
}> & {}>;
|
|
@@ -926,6 +974,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
926
974
|
focus: () => any;
|
|
927
975
|
blur: () => any;
|
|
928
976
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
977
|
+
handleShortcutClick: (event: MouseEvent) => void;
|
|
929
978
|
onUpdateShow: (show: boolean) => Promise<void>;
|
|
930
979
|
watchers: import("../../../../../shared/types").AnyFn[];
|
|
931
980
|
stopWatcher: () => void;
|
|
@@ -969,6 +1018,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
969
1018
|
isDateDisabled: {
|
|
970
1019
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
971
1020
|
};
|
|
1021
|
+
propKey: {
|
|
1022
|
+
type: StringConstructor;
|
|
1023
|
+
};
|
|
1024
|
+
shortcutListenerConfig: {
|
|
1025
|
+
type: import("vue").PropType<{
|
|
1026
|
+
enable: boolean;
|
|
1027
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1028
|
+
}>;
|
|
1029
|
+
};
|
|
972
1030
|
}>> & Readonly<{
|
|
973
1031
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
974
1032
|
}>, {
|
|
@@ -1160,6 +1218,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1160
1218
|
isDateDisabled: {
|
|
1161
1219
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1162
1220
|
};
|
|
1221
|
+
propKey: {
|
|
1222
|
+
type: StringConstructor;
|
|
1223
|
+
};
|
|
1224
|
+
shortcutListenerConfig: {
|
|
1225
|
+
type: import("vue").PropType<{
|
|
1226
|
+
enable: boolean;
|
|
1227
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1228
|
+
}>;
|
|
1229
|
+
};
|
|
1163
1230
|
}>, {
|
|
1164
1231
|
attrs: {
|
|
1165
1232
|
[x: string]: unknown;
|
|
@@ -1199,6 +1266,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1199
1266
|
isDateDisabled: {
|
|
1200
1267
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1201
1268
|
};
|
|
1269
|
+
propKey: {
|
|
1270
|
+
type: StringConstructor;
|
|
1271
|
+
};
|
|
1272
|
+
shortcutListenerConfig: {
|
|
1273
|
+
type: import("vue").PropType<{
|
|
1274
|
+
enable: boolean;
|
|
1275
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1276
|
+
}>;
|
|
1277
|
+
};
|
|
1202
1278
|
}>> & Readonly<{
|
|
1203
1279
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
1204
1280
|
}> & {}>;
|
|
@@ -1215,6 +1291,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1215
1291
|
focus: () => any;
|
|
1216
1292
|
blur: () => any;
|
|
1217
1293
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
1294
|
+
handleShortcutClick: (event: MouseEvent) => void;
|
|
1218
1295
|
onUpdateShow: (show: boolean) => Promise<void>;
|
|
1219
1296
|
watchers: import("../../../../../shared/types").AnyFn[];
|
|
1220
1297
|
stopWatcher: () => void;
|
|
@@ -1258,6 +1335,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1258
1335
|
isDateDisabled: {
|
|
1259
1336
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1260
1337
|
};
|
|
1338
|
+
propKey: {
|
|
1339
|
+
type: StringConstructor;
|
|
1340
|
+
};
|
|
1341
|
+
shortcutListenerConfig: {
|
|
1342
|
+
type: import("vue").PropType<{
|
|
1343
|
+
enable: boolean;
|
|
1344
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1345
|
+
}>;
|
|
1346
|
+
};
|
|
1261
1347
|
}>> & Readonly<{
|
|
1262
1348
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
1263
1349
|
}>, {
|
|
@@ -1449,8 +1535,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1449
1535
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
1450
1536
|
valueCp: import("vue").Ref<any, any>;
|
|
1451
1537
|
rangeShortcuts: import("vue").Ref<any, any>;
|
|
1538
|
+
shortcutListenerConfig: import("../../../../../shared/types").AnyObject;
|
|
1452
1539
|
dateFormat: import("vue").ComputedRef<string>;
|
|
1453
1540
|
optionSetting: import("vue").ComputedRef<any>;
|
|
1541
|
+
compName: import("vue").ComputedRef<any>;
|
|
1454
1542
|
handleChange: (val: any) => void;
|
|
1455
1543
|
isDateDisabled: (ts: number) => boolean;
|
|
1456
1544
|
timeDisabled: (ts: number) => {
|
|
@@ -1494,6 +1582,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1494
1582
|
isDateDisabled: {
|
|
1495
1583
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1496
1584
|
};
|
|
1585
|
+
propKey: {
|
|
1586
|
+
type: StringConstructor;
|
|
1587
|
+
};
|
|
1588
|
+
shortcutListenerConfig: {
|
|
1589
|
+
type: import("vue").PropType<{
|
|
1590
|
+
enable: boolean;
|
|
1591
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1592
|
+
}>;
|
|
1593
|
+
};
|
|
1497
1594
|
}>, {
|
|
1498
1595
|
attrs: {
|
|
1499
1596
|
[x: string]: unknown;
|
|
@@ -1533,6 +1630,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1533
1630
|
isDateDisabled: {
|
|
1534
1631
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1535
1632
|
};
|
|
1633
|
+
propKey: {
|
|
1634
|
+
type: StringConstructor;
|
|
1635
|
+
};
|
|
1636
|
+
shortcutListenerConfig: {
|
|
1637
|
+
type: import("vue").PropType<{
|
|
1638
|
+
enable: boolean;
|
|
1639
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1640
|
+
}>;
|
|
1641
|
+
};
|
|
1536
1642
|
}>> & Readonly<{
|
|
1537
1643
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
1538
1644
|
}> & {}>;
|
|
@@ -1549,6 +1655,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1549
1655
|
focus: () => any;
|
|
1550
1656
|
blur: () => any;
|
|
1551
1657
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
1658
|
+
handleShortcutClick: (event: MouseEvent) => void;
|
|
1552
1659
|
onUpdateShow: (show: boolean) => Promise<void>;
|
|
1553
1660
|
watchers: import("../../../../../shared/types").AnyFn[];
|
|
1554
1661
|
stopWatcher: () => void;
|
|
@@ -1592,6 +1699,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1592
1699
|
isDateDisabled: {
|
|
1593
1700
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1594
1701
|
};
|
|
1702
|
+
propKey: {
|
|
1703
|
+
type: StringConstructor;
|
|
1704
|
+
};
|
|
1705
|
+
shortcutListenerConfig: {
|
|
1706
|
+
type: import("vue").PropType<{
|
|
1707
|
+
enable: boolean;
|
|
1708
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1709
|
+
}>;
|
|
1710
|
+
};
|
|
1595
1711
|
}>> & Readonly<{
|
|
1596
1712
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
1597
1713
|
}>, {
|
|
@@ -2,5 +2,6 @@ import { AnyObject } from '../../../../shared/types';
|
|
|
2
2
|
import { InjectionKey, Ref } from 'vue';
|
|
3
3
|
export declare const InjectionFilterApiConfig: InjectionKey<AnyObject>;
|
|
4
4
|
export declare const InjectionFilterSearchConfig: InjectionKey<Ref<AnyObject[]>>;
|
|
5
|
+
export declare const InjectionShortcutListenerConfig: InjectionKey<AnyObject | undefined>;
|
|
5
6
|
export declare const InjectionClassifyFilterList: InjectionKey<Ref<AnyObject[]>>;
|
|
6
7
|
export declare const InjectionClassifyfilterType: InjectionKey<String>;
|
|
@@ -4,6 +4,9 @@ const InjectionFilterApiConfig = Symbol(
|
|
|
4
4
|
const InjectionFilterSearchConfig = Symbol(
|
|
5
5
|
"InjectionFilterSearchConfig"
|
|
6
6
|
);
|
|
7
|
+
const InjectionShortcutListenerConfig = Symbol(
|
|
8
|
+
"InjectionShortcutListenerConfig"
|
|
9
|
+
);
|
|
7
10
|
const InjectionClassifyFilterList = Symbol(
|
|
8
11
|
"InjectionClassifyFilterList"
|
|
9
12
|
);
|
|
@@ -11,4 +14,4 @@ const InjectionClassifyfilterType = Symbol(
|
|
|
11
14
|
"InjectionClassifyfilterType"
|
|
12
15
|
);
|
|
13
16
|
|
|
14
|
-
export { InjectionClassifyFilterList, InjectionClassifyfilterType, InjectionFilterApiConfig, InjectionFilterSearchConfig };
|
|
17
|
+
export { InjectionClassifyFilterList, InjectionClassifyfilterType, InjectionFilterApiConfig, InjectionFilterSearchConfig, InjectionShortcutListenerConfig };
|
package/es/env.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
2
|
-
|
|
3
|
-
interface ImportMetaEnv {
|
|
4
|
-
readonly VITE_APP_TYPE: string;
|
|
5
|
-
// 更多环境变量...
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
interface ImportMeta {
|
|
9
|
-
readonly env: ImportMetaEnv;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
declare module '*.vue' {
|
|
13
|
-
// @ts-ignore
|
|
14
|
-
import type { App, defineComponent } from 'vue';
|
|
15
|
-
// // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
|
16
|
-
// // const component: DefineComponent<{}, {}, any>
|
|
17
|
-
const component: ReturnType<typeof defineComponent> & {
|
|
18
|
-
install(app: App): void;
|
|
19
|
-
};
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
export default component;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
declare module '*.js';
|
|
25
|
-
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
|
|
3
|
+
interface ImportMetaEnv {
|
|
4
|
+
readonly VITE_APP_TYPE: string;
|
|
5
|
+
// 更多环境变量...
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface ImportMeta {
|
|
9
|
+
readonly env: ImportMetaEnv;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare module '*.vue' {
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
import type { App, defineComponent } from 'vue';
|
|
15
|
+
// // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
|
16
|
+
// // const component: DefineComponent<{}, {}, any>
|
|
17
|
+
const component: ReturnType<typeof defineComponent> & {
|
|
18
|
+
install(app: App): void;
|
|
19
|
+
};
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
export default component;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare module '*.js';
|
|
25
|
+
|
|
@@ -17,6 +17,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
17
17
|
precision: {
|
|
18
18
|
type: NumberConstructor;
|
|
19
19
|
};
|
|
20
|
+
parse: {
|
|
21
|
+
type: PropType<(v: string) => string>;
|
|
22
|
+
default: {
|
|
23
|
+
<T>(value: T): T;
|
|
24
|
+
(): undefined;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
20
27
|
whiteList: {
|
|
21
28
|
type: PropType<string[]>;
|
|
22
29
|
};
|
|
@@ -47,6 +54,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
47
54
|
precision: {
|
|
48
55
|
type: NumberConstructor;
|
|
49
56
|
};
|
|
57
|
+
parse: {
|
|
58
|
+
type: PropType<(v: string) => string>;
|
|
59
|
+
default: {
|
|
60
|
+
<T>(value: T): T;
|
|
61
|
+
(): undefined;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
50
64
|
whiteList: {
|
|
51
65
|
type: PropType<string[]>;
|
|
52
66
|
};
|
|
@@ -64,6 +78,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
64
78
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
65
79
|
}>, {
|
|
66
80
|
onChange: AnyFn;
|
|
81
|
+
parse: (v: string) => string;
|
|
67
82
|
slashSymbol: string;
|
|
68
83
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
69
84
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, watch, createVNode, mergeProps } from 'vue';
|
|
2
2
|
import { findAncestor } from '../../utils/index.js';
|
|
3
|
-
import { isArray, isString, isNumber, isObject } from 'lodash-es';
|
|
3
|
+
import { identity, isArray, isString, isNumber, isObject } from 'lodash-es';
|
|
4
4
|
import { NInput, NDropdown } from 'naive-ui';
|
|
5
5
|
import '../../../components/form-render/index.js';
|
|
6
6
|
import { createInputSlot } from '../../../components/form-render/src/utils/index.js';
|
|
@@ -23,6 +23,10 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
23
23
|
precision: {
|
|
24
24
|
type: Number
|
|
25
25
|
},
|
|
26
|
+
parse: {
|
|
27
|
+
type: Function,
|
|
28
|
+
default: identity
|
|
29
|
+
},
|
|
26
30
|
whiteList: {
|
|
27
31
|
type: Array
|
|
28
32
|
},
|
|
@@ -73,15 +77,25 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
73
77
|
return tempValue.value;
|
|
74
78
|
},
|
|
75
79
|
set(v) {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
let res = "";
|
|
81
|
+
switch (true) {
|
|
82
|
+
case v == null:
|
|
83
|
+
res = "";
|
|
84
|
+
break;
|
|
85
|
+
case isNumber(v):
|
|
86
|
+
res = props.parse(v + "");
|
|
87
|
+
break;
|
|
88
|
+
case !isString(v):
|
|
89
|
+
return;
|
|
90
|
+
default: {
|
|
91
|
+
if (v.endsWith(props.slashSymbol)) {
|
|
92
|
+
res = props.slashSymbol;
|
|
93
|
+
} else {
|
|
94
|
+
res = whiteListOptions.value.some((option) => option.label === v) || validNumberReg.test(v) ? props.parse(v) : "";
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
tempValue.value = res;
|
|
85
99
|
}
|
|
86
100
|
});
|
|
87
101
|
watch(() => props.value, (v) => valueRef.value = v, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.4.0-beta.
|
|
3
|
+
"version": "3.4.0-beta.49",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"iOS 7",
|
|
74
74
|
"last 3 iOS versions"
|
|
75
75
|
],
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "9a75b9c7efb1397e6387422b56297b3b4750328a"
|
|
77
77
|
}
|