cnhis-design-vue 3.4.0-beta.46 → 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 +36 -9
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +36 -9
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +36 -9
- package/es/components/classification/src/index.vue.d.ts +36 -9
- package/es/components/date-picker/index.d.ts +12 -3
- package/es/components/date-picker/src/DatePicker.vue.d.ts +12 -3
- package/es/components/date-picker/src/DatePicker.vue2.js +4 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +25 -7
- 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 +12 -3
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +24 -6
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +12 -3
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- package/es/components/iho-chat/index.d.ts +24 -6
- package/es/components/iho-chat/src/Index.vue.d.ts +24 -6
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +12 -3
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +12 -3
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +12 -3
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +12 -3
- 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 +12 -3
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +12 -3
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +12 -3
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +12 -3
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +12 -3
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +24 -6
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +12 -3
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +12 -3
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +24 -6
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +24 -6
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +12 -3
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +14 -3
- 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 +12 -3
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +14 -3
- 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 +52 -12
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +52 -12
- 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
package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i18n } from '../../../../../../_virtual/_virtual_i18n-methods.js';
|
|
2
|
-
import { defineComponent, ref, computed, watch, openBlock, createBlock, unref } from 'vue';
|
|
2
|
+
import { defineComponent, ref, inject, computed, watch, openBlock, createBlock, unref } from 'vue';
|
|
3
3
|
import DatePicker from '../../../../../date-picker/index.js';
|
|
4
4
|
import moment from 'moment';
|
|
5
5
|
import { isString } from 'lodash-es';
|
|
@@ -7,6 +7,7 @@ import { WidgetOptionEnums } from '../../../types/enums.js';
|
|
|
7
7
|
import { DateExtraOptions, DateExtraMap } from '../helpers/dateExtraMap.js';
|
|
8
8
|
import { formatDateRangeInfo } from '../helpers/presetValToTimestamp.js';
|
|
9
9
|
import { setDateDisabled, setTimeDisabled } from '../helpers/dateDisabled.js';
|
|
10
|
+
import { InjectionShortcutListenerConfig } from '../../../constants/index.js';
|
|
10
11
|
import { parseDateShortcuts } from '../../../tool/date.js';
|
|
11
12
|
|
|
12
13
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -45,6 +46,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
46
|
const emit = __emit;
|
|
46
47
|
const valueCp = ref();
|
|
47
48
|
const rangeShortcuts = ref();
|
|
49
|
+
const shortcutListenerConfig = inject(InjectionShortcutListenerConfig);
|
|
48
50
|
const dateFormat = computed(() => {
|
|
49
51
|
let formateStr = "";
|
|
50
52
|
switch (props.type) {
|
|
@@ -61,6 +63,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
61
63
|
var _a;
|
|
62
64
|
return (_a = props.componentCfg) == null ? void 0 : _a.widgetCfg.optionSetting;
|
|
63
65
|
});
|
|
66
|
+
const compName = computed(() => {
|
|
67
|
+
var _a;
|
|
68
|
+
return ((_a = props.componentCfg) == null ? void 0 : _a.columnName) || "";
|
|
69
|
+
});
|
|
64
70
|
watch(() => props.value, (val) => {
|
|
65
71
|
if (val && isString(val) && val.includes("~")) {
|
|
66
72
|
const [start, end] = val.split("~");
|
|
@@ -120,6 +126,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
120
126
|
return (_ctx, _cache) => {
|
|
121
127
|
return openBlock(), createBlock(unref(DatePicker), {
|
|
122
128
|
to: "body",
|
|
129
|
+
propKey: compName.value,
|
|
123
130
|
type: __props.type,
|
|
124
131
|
clearable: __props.clearable,
|
|
125
132
|
startPlaceholder: __props.startPlaceholder,
|
|
@@ -128,8 +135,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
128
135
|
"is-date-disabled": isDateDisabled,
|
|
129
136
|
"is-time-disabled": timeDisabled,
|
|
130
137
|
shortcuts: rangeShortcuts.value,
|
|
138
|
+
shortcutListenerConfig: unref(shortcutListenerConfig),
|
|
131
139
|
"onUpdate:value": handleChange
|
|
132
|
-
}, null, 8, ["type", "clearable", "startPlaceholder", "endPlaceholder", "value", "shortcuts"]);
|
|
140
|
+
}, null, 8, ["propKey", "type", "clearable", "startPlaceholder", "endPlaceholder", "value", "shortcuts", "shortcutListenerConfig"]);
|
|
133
141
|
};
|
|
134
142
|
}
|
|
135
143
|
});
|
|
@@ -223,10 +223,13 @@ 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
|
+
};
|
|
226
229
|
shortcutListenerConfig: {
|
|
227
230
|
type: import("vue").PropType<{
|
|
228
231
|
enable: boolean;
|
|
229
|
-
callback: (
|
|
232
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
230
233
|
}>;
|
|
231
234
|
};
|
|
232
235
|
}>, {
|
|
@@ -268,10 +271,13 @@ declare const DateInner: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
268
271
|
isDateDisabled: {
|
|
269
272
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
270
273
|
};
|
|
274
|
+
propKey: {
|
|
275
|
+
type: StringConstructor;
|
|
276
|
+
};
|
|
271
277
|
shortcutListenerConfig: {
|
|
272
278
|
type: import("vue").PropType<{
|
|
273
279
|
enable: boolean;
|
|
274
|
-
callback: (
|
|
280
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
275
281
|
}>;
|
|
276
282
|
};
|
|
277
283
|
}>> & Readonly<{
|
|
@@ -334,10 +340,13 @@ declare const DateInner: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
334
340
|
isDateDisabled: {
|
|
335
341
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
336
342
|
};
|
|
343
|
+
propKey: {
|
|
344
|
+
type: StringConstructor;
|
|
345
|
+
};
|
|
337
346
|
shortcutListenerConfig: {
|
|
338
347
|
type: import("vue").PropType<{
|
|
339
348
|
enable: boolean;
|
|
340
|
-
callback: (
|
|
349
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
341
350
|
}>;
|
|
342
351
|
};
|
|
343
352
|
}>> & Readonly<{
|
|
@@ -510,8 +519,10 @@ declare const DateOut: import("vue").DefineComponent<import("vue").ExtractPropTy
|
|
|
510
519
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
511
520
|
valueCp: import("vue").Ref<any, any>;
|
|
512
521
|
rangeShortcuts: import("vue").Ref<any, any>;
|
|
522
|
+
shortcutListenerConfig: import("../../../../../../shared/types").AnyObject;
|
|
513
523
|
dateFormat: import("vue").ComputedRef<string>;
|
|
514
524
|
optionSetting: import("vue").ComputedRef<any>;
|
|
525
|
+
compName: import("vue").ComputedRef<any>;
|
|
515
526
|
handleChange: (val: any) => void;
|
|
516
527
|
isDateDisabled: (ts: number) => boolean;
|
|
517
528
|
timeDisabled: (ts: number) => {
|
|
@@ -555,10 +566,13 @@ declare const DateOut: import("vue").DefineComponent<import("vue").ExtractPropTy
|
|
|
555
566
|
isDateDisabled: {
|
|
556
567
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
557
568
|
};
|
|
569
|
+
propKey: {
|
|
570
|
+
type: StringConstructor;
|
|
571
|
+
};
|
|
558
572
|
shortcutListenerConfig: {
|
|
559
573
|
type: import("vue").PropType<{
|
|
560
574
|
enable: boolean;
|
|
561
|
-
callback: (
|
|
575
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
562
576
|
}>;
|
|
563
577
|
};
|
|
564
578
|
}>, {
|
|
@@ -600,10 +614,13 @@ declare const DateOut: import("vue").DefineComponent<import("vue").ExtractPropTy
|
|
|
600
614
|
isDateDisabled: {
|
|
601
615
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
602
616
|
};
|
|
617
|
+
propKey: {
|
|
618
|
+
type: StringConstructor;
|
|
619
|
+
};
|
|
603
620
|
shortcutListenerConfig: {
|
|
604
621
|
type: import("vue").PropType<{
|
|
605
622
|
enable: boolean;
|
|
606
|
-
callback: (
|
|
623
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
607
624
|
}>;
|
|
608
625
|
};
|
|
609
626
|
}>> & Readonly<{
|
|
@@ -666,10 +683,13 @@ declare const DateOut: import("vue").DefineComponent<import("vue").ExtractPropTy
|
|
|
666
683
|
isDateDisabled: {
|
|
667
684
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
668
685
|
};
|
|
686
|
+
propKey: {
|
|
687
|
+
type: StringConstructor;
|
|
688
|
+
};
|
|
669
689
|
shortcutListenerConfig: {
|
|
670
690
|
type: import("vue").PropType<{
|
|
671
691
|
enable: boolean;
|
|
672
|
-
callback: (
|
|
692
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
673
693
|
}>;
|
|
674
694
|
};
|
|
675
695
|
}>> & Readonly<{
|
|
@@ -849,10 +869,13 @@ declare const DateRangeInner: import("vue").DefineComponent<import("vue").Extrac
|
|
|
849
869
|
isDateDisabled: {
|
|
850
870
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
851
871
|
};
|
|
872
|
+
propKey: {
|
|
873
|
+
type: StringConstructor;
|
|
874
|
+
};
|
|
852
875
|
shortcutListenerConfig: {
|
|
853
876
|
type: import("vue").PropType<{
|
|
854
877
|
enable: boolean;
|
|
855
|
-
callback: (
|
|
878
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
856
879
|
}>;
|
|
857
880
|
};
|
|
858
881
|
}>, {
|
|
@@ -894,10 +917,13 @@ declare const DateRangeInner: import("vue").DefineComponent<import("vue").Extrac
|
|
|
894
917
|
isDateDisabled: {
|
|
895
918
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
896
919
|
};
|
|
920
|
+
propKey: {
|
|
921
|
+
type: StringConstructor;
|
|
922
|
+
};
|
|
897
923
|
shortcutListenerConfig: {
|
|
898
924
|
type: import("vue").PropType<{
|
|
899
925
|
enable: boolean;
|
|
900
|
-
callback: (
|
|
926
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
901
927
|
}>;
|
|
902
928
|
};
|
|
903
929
|
}>> & Readonly<{
|
|
@@ -960,10 +986,13 @@ declare const DateRangeInner: import("vue").DefineComponent<import("vue").Extrac
|
|
|
960
986
|
isDateDisabled: {
|
|
961
987
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
962
988
|
};
|
|
989
|
+
propKey: {
|
|
990
|
+
type: StringConstructor;
|
|
991
|
+
};
|
|
963
992
|
shortcutListenerConfig: {
|
|
964
993
|
type: import("vue").PropType<{
|
|
965
994
|
enable: boolean;
|
|
966
|
-
callback: (
|
|
995
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
967
996
|
}>;
|
|
968
997
|
};
|
|
969
998
|
}>> & Readonly<{
|
|
@@ -1143,8 +1172,10 @@ declare const DateRangeOut: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1143
1172
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
1144
1173
|
valueCp: import("vue").Ref<any, any>;
|
|
1145
1174
|
rangeShortcuts: import("vue").Ref<any, any>;
|
|
1175
|
+
shortcutListenerConfig: import("../../../../../../shared/types").AnyObject;
|
|
1146
1176
|
dateFormat: import("vue").ComputedRef<string>;
|
|
1147
1177
|
optionSetting: import("vue").ComputedRef<any>;
|
|
1178
|
+
compName: import("vue").ComputedRef<any>;
|
|
1148
1179
|
handleChange: (val: any) => void;
|
|
1149
1180
|
isDateDisabled: (ts: number) => boolean;
|
|
1150
1181
|
timeDisabled: (ts: number) => {
|
|
@@ -1188,10 +1219,13 @@ declare const DateRangeOut: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1188
1219
|
isDateDisabled: {
|
|
1189
1220
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1190
1221
|
};
|
|
1222
|
+
propKey: {
|
|
1223
|
+
type: StringConstructor;
|
|
1224
|
+
};
|
|
1191
1225
|
shortcutListenerConfig: {
|
|
1192
1226
|
type: import("vue").PropType<{
|
|
1193
1227
|
enable: boolean;
|
|
1194
|
-
callback: (
|
|
1228
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1195
1229
|
}>;
|
|
1196
1230
|
};
|
|
1197
1231
|
}>, {
|
|
@@ -1233,10 +1267,13 @@ declare const DateRangeOut: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1233
1267
|
isDateDisabled: {
|
|
1234
1268
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1235
1269
|
};
|
|
1270
|
+
propKey: {
|
|
1271
|
+
type: StringConstructor;
|
|
1272
|
+
};
|
|
1236
1273
|
shortcutListenerConfig: {
|
|
1237
1274
|
type: import("vue").PropType<{
|
|
1238
1275
|
enable: boolean;
|
|
1239
|
-
callback: (
|
|
1276
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1240
1277
|
}>;
|
|
1241
1278
|
};
|
|
1242
1279
|
}>> & Readonly<{
|
|
@@ -1299,10 +1336,13 @@ declare const DateRangeOut: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1299
1336
|
isDateDisabled: {
|
|
1300
1337
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1301
1338
|
};
|
|
1339
|
+
propKey: {
|
|
1340
|
+
type: StringConstructor;
|
|
1341
|
+
};
|
|
1302
1342
|
shortcutListenerConfig: {
|
|
1303
1343
|
type: import("vue").PropType<{
|
|
1304
1344
|
enable: boolean;
|
|
1305
|
-
callback: (
|
|
1345
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1306
1346
|
}>;
|
|
1307
1347
|
};
|
|
1308
1348
|
}>> & Readonly<{
|
|
@@ -544,10 +544,13 @@ 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
|
+
};
|
|
547
550
|
shortcutListenerConfig: {
|
|
548
551
|
type: import("vue").PropType<{
|
|
549
552
|
enable: boolean;
|
|
550
|
-
callback: (
|
|
553
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
551
554
|
}>;
|
|
552
555
|
};
|
|
553
556
|
}>, {
|
|
@@ -589,10 +592,13 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
589
592
|
isDateDisabled: {
|
|
590
593
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
591
594
|
};
|
|
595
|
+
propKey: {
|
|
596
|
+
type: StringConstructor;
|
|
597
|
+
};
|
|
592
598
|
shortcutListenerConfig: {
|
|
593
599
|
type: import("vue").PropType<{
|
|
594
600
|
enable: boolean;
|
|
595
|
-
callback: (
|
|
601
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
596
602
|
}>;
|
|
597
603
|
};
|
|
598
604
|
}>> & Readonly<{
|
|
@@ -655,10 +661,13 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
655
661
|
isDateDisabled: {
|
|
656
662
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
657
663
|
};
|
|
664
|
+
propKey: {
|
|
665
|
+
type: StringConstructor;
|
|
666
|
+
};
|
|
658
667
|
shortcutListenerConfig: {
|
|
659
668
|
type: import("vue").PropType<{
|
|
660
669
|
enable: boolean;
|
|
661
|
-
callback: (
|
|
670
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
662
671
|
}>;
|
|
663
672
|
};
|
|
664
673
|
}>> & Readonly<{
|
|
@@ -845,8 +854,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
845
854
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
846
855
|
valueCp: import("vue").Ref<any, any>;
|
|
847
856
|
rangeShortcuts: import("vue").Ref<any, any>;
|
|
857
|
+
shortcutListenerConfig: import("../../../../../shared/types").AnyObject;
|
|
848
858
|
dateFormat: import("vue").ComputedRef<string>;
|
|
849
859
|
optionSetting: import("vue").ComputedRef<any>;
|
|
860
|
+
compName: import("vue").ComputedRef<any>;
|
|
850
861
|
handleChange: (val: any) => void;
|
|
851
862
|
isDateDisabled: (ts: number) => boolean;
|
|
852
863
|
timeDisabled: (ts: number) => {
|
|
@@ -890,10 +901,13 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
890
901
|
isDateDisabled: {
|
|
891
902
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
892
903
|
};
|
|
904
|
+
propKey: {
|
|
905
|
+
type: StringConstructor;
|
|
906
|
+
};
|
|
893
907
|
shortcutListenerConfig: {
|
|
894
908
|
type: import("vue").PropType<{
|
|
895
909
|
enable: boolean;
|
|
896
|
-
callback: (
|
|
910
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
897
911
|
}>;
|
|
898
912
|
};
|
|
899
913
|
}>, {
|
|
@@ -935,10 +949,13 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
935
949
|
isDateDisabled: {
|
|
936
950
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
937
951
|
};
|
|
952
|
+
propKey: {
|
|
953
|
+
type: StringConstructor;
|
|
954
|
+
};
|
|
938
955
|
shortcutListenerConfig: {
|
|
939
956
|
type: import("vue").PropType<{
|
|
940
957
|
enable: boolean;
|
|
941
|
-
callback: (
|
|
958
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
942
959
|
}>;
|
|
943
960
|
};
|
|
944
961
|
}>> & Readonly<{
|
|
@@ -1001,10 +1018,13 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1001
1018
|
isDateDisabled: {
|
|
1002
1019
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1003
1020
|
};
|
|
1021
|
+
propKey: {
|
|
1022
|
+
type: StringConstructor;
|
|
1023
|
+
};
|
|
1004
1024
|
shortcutListenerConfig: {
|
|
1005
1025
|
type: import("vue").PropType<{
|
|
1006
1026
|
enable: boolean;
|
|
1007
|
-
callback: (
|
|
1027
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1008
1028
|
}>;
|
|
1009
1029
|
};
|
|
1010
1030
|
}>> & Readonly<{
|
|
@@ -1198,10 +1218,13 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1198
1218
|
isDateDisabled: {
|
|
1199
1219
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1200
1220
|
};
|
|
1221
|
+
propKey: {
|
|
1222
|
+
type: StringConstructor;
|
|
1223
|
+
};
|
|
1201
1224
|
shortcutListenerConfig: {
|
|
1202
1225
|
type: import("vue").PropType<{
|
|
1203
1226
|
enable: boolean;
|
|
1204
|
-
callback: (
|
|
1227
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1205
1228
|
}>;
|
|
1206
1229
|
};
|
|
1207
1230
|
}>, {
|
|
@@ -1243,10 +1266,13 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1243
1266
|
isDateDisabled: {
|
|
1244
1267
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1245
1268
|
};
|
|
1269
|
+
propKey: {
|
|
1270
|
+
type: StringConstructor;
|
|
1271
|
+
};
|
|
1246
1272
|
shortcutListenerConfig: {
|
|
1247
1273
|
type: import("vue").PropType<{
|
|
1248
1274
|
enable: boolean;
|
|
1249
|
-
callback: (
|
|
1275
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1250
1276
|
}>;
|
|
1251
1277
|
};
|
|
1252
1278
|
}>> & Readonly<{
|
|
@@ -1309,10 +1335,13 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1309
1335
|
isDateDisabled: {
|
|
1310
1336
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1311
1337
|
};
|
|
1338
|
+
propKey: {
|
|
1339
|
+
type: StringConstructor;
|
|
1340
|
+
};
|
|
1312
1341
|
shortcutListenerConfig: {
|
|
1313
1342
|
type: import("vue").PropType<{
|
|
1314
1343
|
enable: boolean;
|
|
1315
|
-
callback: (
|
|
1344
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1316
1345
|
}>;
|
|
1317
1346
|
};
|
|
1318
1347
|
}>> & Readonly<{
|
|
@@ -1506,8 +1535,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1506
1535
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
1507
1536
|
valueCp: import("vue").Ref<any, any>;
|
|
1508
1537
|
rangeShortcuts: import("vue").Ref<any, any>;
|
|
1538
|
+
shortcutListenerConfig: import("../../../../../shared/types").AnyObject;
|
|
1509
1539
|
dateFormat: import("vue").ComputedRef<string>;
|
|
1510
1540
|
optionSetting: import("vue").ComputedRef<any>;
|
|
1541
|
+
compName: import("vue").ComputedRef<any>;
|
|
1511
1542
|
handleChange: (val: any) => void;
|
|
1512
1543
|
isDateDisabled: (ts: number) => boolean;
|
|
1513
1544
|
timeDisabled: (ts: number) => {
|
|
@@ -1551,10 +1582,13 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1551
1582
|
isDateDisabled: {
|
|
1552
1583
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1553
1584
|
};
|
|
1585
|
+
propKey: {
|
|
1586
|
+
type: StringConstructor;
|
|
1587
|
+
};
|
|
1554
1588
|
shortcutListenerConfig: {
|
|
1555
1589
|
type: import("vue").PropType<{
|
|
1556
1590
|
enable: boolean;
|
|
1557
|
-
callback: (
|
|
1591
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1558
1592
|
}>;
|
|
1559
1593
|
};
|
|
1560
1594
|
}>, {
|
|
@@ -1596,10 +1630,13 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1596
1630
|
isDateDisabled: {
|
|
1597
1631
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1598
1632
|
};
|
|
1633
|
+
propKey: {
|
|
1634
|
+
type: StringConstructor;
|
|
1635
|
+
};
|
|
1599
1636
|
shortcutListenerConfig: {
|
|
1600
1637
|
type: import("vue").PropType<{
|
|
1601
1638
|
enable: boolean;
|
|
1602
|
-
callback: (
|
|
1639
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1603
1640
|
}>;
|
|
1604
1641
|
};
|
|
1605
1642
|
}>> & Readonly<{
|
|
@@ -1662,10 +1699,13 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1662
1699
|
isDateDisabled: {
|
|
1663
1700
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1664
1701
|
};
|
|
1702
|
+
propKey: {
|
|
1703
|
+
type: StringConstructor;
|
|
1704
|
+
};
|
|
1665
1705
|
shortcutListenerConfig: {
|
|
1666
1706
|
type: import("vue").PropType<{
|
|
1667
1707
|
enable: boolean;
|
|
1668
|
-
callback: (
|
|
1708
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1669
1709
|
}>;
|
|
1670
1710
|
};
|
|
1671
1711
|
}>> & Readonly<{
|
|
@@ -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
|
}
|