cnhis-design-vue 3.3.3-beta.73 → 3.3.3-beta.75
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/big-table/src/hooks/useBatchEditing.js +25 -24
- package/es/components/classification/index.d.ts +16 -258
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +16 -258
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +16 -258
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/classification/src/index.vue.d.ts +16 -258
- package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- package/es/components/form-render/src/constants/index.d.ts +1 -1
- package/es/components/iho-chat/index.d.ts +19 -2
- package/es/components/iho-chat/src/Index.vue.d.ts +19 -2
- package/es/components/iho-chat/src/Index.vue2.js +14 -6
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +0 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +0 -20
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/Video.vue.d.ts +6 -1
- package/es/components/iho-chat/src/components/Video.vue2.js +23 -11
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +8 -8
- package/es/components/iho-chat/src/hooks/useVideo.js +22 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +0 -22
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +1 -1
- package/es/components/info-header/index.d.ts +9 -17
- package/es/components/info-header/src/InfoHeader.vue.d.ts +9 -17
- package/es/components/info-header/src/InfoHeader.vue2.js +2 -2
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +3 -2
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue2.js +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +9 -17
- package/es/components/info-header/src/constants/index.d.ts +1 -1
- package/es/components/search-cascader/src/utils/index.d.ts +1 -1
- package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -1
- package/es/components/shortcut-provider/src/types/index.d.ts +1 -0
- package/es/components/shortcut-provider/src/utils/index.d.ts +1 -1
- package/es/components/shortcut-provider/src/utils/index.js +3 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +14 -258
- package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.d.ts +7 -129
- package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue2.js +107 -13
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +7 -129
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +7 -129
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +2 -8
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +14 -258
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +26 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +16 -258
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +3 -1
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +16 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/types/enums.d.ts +1 -0
- package/es/components/table-filter/src/types/enums.js +1 -0
- package/es/env.d.ts +25 -25
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -3
@@ -291,6 +291,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
291
291
|
label: string;
|
292
292
|
value: string;
|
293
293
|
}[];
|
294
|
+
widgetRangeOptions: {
|
295
|
+
label: string;
|
296
|
+
value: string;
|
297
|
+
}[];
|
298
|
+
startDateNum: import("vue").Ref<any>;
|
299
|
+
endDateNum: import("vue").Ref<any>;
|
294
300
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
295
301
|
filterType: {
|
296
302
|
type: StringConstructor;
|
@@ -323,135 +329,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
323
329
|
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
324
330
|
valueCp: import("vue").WritableComputedRef<any>;
|
325
331
|
presetValCp: import("vue").WritableComputedRef<string>;
|
326
|
-
|
327
|
-
updateUnchangedValue: {
|
328
|
-
type: BooleanConstructor;
|
329
|
-
};
|
330
|
-
onConfirm: {
|
331
|
-
type: FunctionConstructor;
|
332
|
-
};
|
333
|
-
formattedValue: {
|
334
|
-
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
335
|
-
};
|
336
|
-
placeholder: {
|
337
|
-
type: StringConstructor;
|
338
|
-
};
|
339
|
-
allowedInvalidValue: {
|
340
|
-
type: StringConstructor;
|
341
|
-
};
|
342
|
-
to: {
|
343
|
-
type: import("vue").PropType<string | false | HTMLElement>;
|
344
|
-
default: string;
|
345
|
-
};
|
346
|
-
holidays: {
|
347
|
-
type: import("vue").PropType<Date[]>;
|
348
|
-
default: () => never[];
|
349
|
-
};
|
350
|
-
type: {
|
351
|
-
type: StringConstructor;
|
352
|
-
default: string;
|
353
|
-
};
|
354
|
-
isDateDisabled: {
|
355
|
-
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
356
|
-
};
|
357
|
-
}, {
|
358
|
-
attrs: {
|
359
|
-
[x: string]: unknown;
|
360
|
-
};
|
361
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
362
|
-
updateUnchangedValue: {
|
363
|
-
type: BooleanConstructor;
|
364
|
-
};
|
365
|
-
onConfirm: {
|
366
|
-
type: FunctionConstructor;
|
367
|
-
};
|
368
|
-
formattedValue: {
|
369
|
-
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
370
|
-
};
|
371
|
-
placeholder: {
|
372
|
-
type: StringConstructor;
|
373
|
-
};
|
374
|
-
allowedInvalidValue: {
|
375
|
-
type: StringConstructor;
|
376
|
-
};
|
377
|
-
to: {
|
378
|
-
type: import("vue").PropType<string | false | HTMLElement>;
|
379
|
-
default: string;
|
380
|
-
};
|
381
|
-
holidays: {
|
382
|
-
type: import("vue").PropType<Date[]>;
|
383
|
-
default: () => never[];
|
384
|
-
};
|
385
|
-
type: {
|
386
|
-
type: StringConstructor;
|
387
|
-
default: string;
|
388
|
-
};
|
389
|
-
isDateDisabled: {
|
390
|
-
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
391
|
-
};
|
392
|
-
}>> & {
|
393
|
-
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
394
|
-
}>>;
|
395
|
-
emit: (event: "update:formatted-value", ...args: any[]) => void;
|
396
|
-
datePickerRef: import("vue").Ref<import("../../../../../shared/types").AnyObject | null>;
|
397
|
-
panelInstRef: import("vue").Ref<null>;
|
398
|
-
placeholderRef: import("vue").Ref<any>;
|
399
|
-
oldValue: string;
|
400
|
-
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
401
|
-
isDateTime: import("vue").ComputedRef<boolean>;
|
402
|
-
formatRef: import("vue").ComputedRef<string>;
|
403
|
-
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
404
|
-
_isDateDisabled: import("vue").ComputedRef<(current: number, ...arg: any[]) => boolean>;
|
405
|
-
focus: () => any;
|
406
|
-
blur: () => any;
|
407
|
-
handleConfirm: (target: HTMLInputElement) => void;
|
408
|
-
onUpdateShow: (show: boolean) => Promise<void>;
|
409
|
-
watchers: import("../../../../../shared/types").AnyFn[];
|
410
|
-
stopWatcher: () => void;
|
411
|
-
setHoliday: (show: boolean) => Promise<void>;
|
412
|
-
onConfirm: (...args: any[]) => Promise<void>;
|
413
|
-
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
414
|
-
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
415
|
-
NDatePicker: any;
|
416
|
-
}, 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<{
|
417
|
-
updateUnchangedValue: {
|
418
|
-
type: BooleanConstructor;
|
419
|
-
};
|
420
|
-
onConfirm: {
|
421
|
-
type: FunctionConstructor;
|
422
|
-
};
|
423
|
-
formattedValue: {
|
424
|
-
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
425
|
-
};
|
426
|
-
placeholder: {
|
427
|
-
type: StringConstructor;
|
428
|
-
};
|
429
|
-
allowedInvalidValue: {
|
430
|
-
type: StringConstructor;
|
431
|
-
};
|
432
|
-
to: {
|
433
|
-
type: import("vue").PropType<string | false | HTMLElement>;
|
434
|
-
default: string;
|
435
|
-
};
|
436
|
-
holidays: {
|
437
|
-
type: import("vue").PropType<Date[]>;
|
438
|
-
default: () => never[];
|
439
|
-
};
|
440
|
-
type: {
|
441
|
-
type: StringConstructor;
|
442
|
-
default: string;
|
443
|
-
};
|
444
|
-
isDateDisabled: {
|
445
|
-
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
446
|
-
};
|
447
|
-
}>> & {
|
448
|
-
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
449
|
-
}, {
|
450
|
-
type: string;
|
451
|
-
updateUnchangedValue: boolean;
|
452
|
-
to: string | false | HTMLElement;
|
453
|
-
holidays: Date[];
|
454
|
-
}>>;
|
332
|
+
handleChange: (val: any, type: "start" | "end") => void;
|
455
333
|
NSelect: any;
|
456
334
|
NInputNumber: any;
|
457
335
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -1246,6 +1124,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
1246
1124
|
label: string;
|
1247
1125
|
value: string;
|
1248
1126
|
}[];
|
1127
|
+
widgetRangeOptions: {
|
1128
|
+
label: string;
|
1129
|
+
value: string;
|
1130
|
+
}[];
|
1131
|
+
startDateNum: import("vue").Ref<any>;
|
1132
|
+
endDateNum: import("vue").Ref<any>;
|
1249
1133
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
1250
1134
|
filterType: {
|
1251
1135
|
type: StringConstructor;
|
@@ -1278,135 +1162,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1278
1162
|
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
1279
1163
|
valueCp: import("vue").WritableComputedRef<any>;
|
1280
1164
|
presetValCp: import("vue").WritableComputedRef<string>;
|
1281
|
-
|
1282
|
-
updateUnchangedValue: {
|
1283
|
-
type: BooleanConstructor;
|
1284
|
-
};
|
1285
|
-
onConfirm: {
|
1286
|
-
type: FunctionConstructor;
|
1287
|
-
};
|
1288
|
-
formattedValue: {
|
1289
|
-
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
1290
|
-
};
|
1291
|
-
placeholder: {
|
1292
|
-
type: StringConstructor;
|
1293
|
-
};
|
1294
|
-
allowedInvalidValue: {
|
1295
|
-
type: StringConstructor;
|
1296
|
-
};
|
1297
|
-
to: {
|
1298
|
-
type: import("vue").PropType<string | false | HTMLElement>;
|
1299
|
-
default: string;
|
1300
|
-
};
|
1301
|
-
holidays: {
|
1302
|
-
type: import("vue").PropType<Date[]>;
|
1303
|
-
default: () => never[];
|
1304
|
-
};
|
1305
|
-
type: {
|
1306
|
-
type: StringConstructor;
|
1307
|
-
default: string;
|
1308
|
-
};
|
1309
|
-
isDateDisabled: {
|
1310
|
-
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
1311
|
-
};
|
1312
|
-
}, {
|
1313
|
-
attrs: {
|
1314
|
-
[x: string]: unknown;
|
1315
|
-
};
|
1316
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
1317
|
-
updateUnchangedValue: {
|
1318
|
-
type: BooleanConstructor;
|
1319
|
-
};
|
1320
|
-
onConfirm: {
|
1321
|
-
type: FunctionConstructor;
|
1322
|
-
};
|
1323
|
-
formattedValue: {
|
1324
|
-
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
1325
|
-
};
|
1326
|
-
placeholder: {
|
1327
|
-
type: StringConstructor;
|
1328
|
-
};
|
1329
|
-
allowedInvalidValue: {
|
1330
|
-
type: StringConstructor;
|
1331
|
-
};
|
1332
|
-
to: {
|
1333
|
-
type: import("vue").PropType<string | false | HTMLElement>;
|
1334
|
-
default: string;
|
1335
|
-
};
|
1336
|
-
holidays: {
|
1337
|
-
type: import("vue").PropType<Date[]>;
|
1338
|
-
default: () => never[];
|
1339
|
-
};
|
1340
|
-
type: {
|
1341
|
-
type: StringConstructor;
|
1342
|
-
default: string;
|
1343
|
-
};
|
1344
|
-
isDateDisabled: {
|
1345
|
-
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
1346
|
-
};
|
1347
|
-
}>> & {
|
1348
|
-
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1349
|
-
}>>;
|
1350
|
-
emit: (event: "update:formatted-value", ...args: any[]) => void;
|
1351
|
-
datePickerRef: import("vue").Ref<import("../../../../../shared/types").AnyObject | null>;
|
1352
|
-
panelInstRef: import("vue").Ref<null>;
|
1353
|
-
placeholderRef: import("vue").Ref<any>;
|
1354
|
-
oldValue: string;
|
1355
|
-
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
1356
|
-
isDateTime: import("vue").ComputedRef<boolean>;
|
1357
|
-
formatRef: import("vue").ComputedRef<string>;
|
1358
|
-
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
1359
|
-
_isDateDisabled: import("vue").ComputedRef<(current: number, ...arg: any[]) => boolean>;
|
1360
|
-
focus: () => any;
|
1361
|
-
blur: () => any;
|
1362
|
-
handleConfirm: (target: HTMLInputElement) => void;
|
1363
|
-
onUpdateShow: (show: boolean) => Promise<void>;
|
1364
|
-
watchers: import("../../../../../shared/types").AnyFn[];
|
1365
|
-
stopWatcher: () => void;
|
1366
|
-
setHoliday: (show: boolean) => Promise<void>;
|
1367
|
-
onConfirm: (...args: any[]) => Promise<void>;
|
1368
|
-
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
1369
|
-
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
1370
|
-
NDatePicker: any;
|
1371
|
-
}, 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<{
|
1372
|
-
updateUnchangedValue: {
|
1373
|
-
type: BooleanConstructor;
|
1374
|
-
};
|
1375
|
-
onConfirm: {
|
1376
|
-
type: FunctionConstructor;
|
1377
|
-
};
|
1378
|
-
formattedValue: {
|
1379
|
-
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
1380
|
-
};
|
1381
|
-
placeholder: {
|
1382
|
-
type: StringConstructor;
|
1383
|
-
};
|
1384
|
-
allowedInvalidValue: {
|
1385
|
-
type: StringConstructor;
|
1386
|
-
};
|
1387
|
-
to: {
|
1388
|
-
type: import("vue").PropType<string | false | HTMLElement>;
|
1389
|
-
default: string;
|
1390
|
-
};
|
1391
|
-
holidays: {
|
1392
|
-
type: import("vue").PropType<Date[]>;
|
1393
|
-
default: () => never[];
|
1394
|
-
};
|
1395
|
-
type: {
|
1396
|
-
type: StringConstructor;
|
1397
|
-
default: string;
|
1398
|
-
};
|
1399
|
-
isDateDisabled: {
|
1400
|
-
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
1401
|
-
};
|
1402
|
-
}>> & {
|
1403
|
-
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1404
|
-
}, {
|
1405
|
-
type: string;
|
1406
|
-
updateUnchangedValue: boolean;
|
1407
|
-
to: string | false | HTMLElement;
|
1408
|
-
holidays: Date[];
|
1409
|
-
}>>;
|
1165
|
+
handleChange: (val: any, type: "start" | "end") => void;
|
1410
1166
|
NSelect: any;
|
1411
1167
|
NInputNumber: any;
|
1412
1168
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -28,6 +28,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
28
28
|
label: string;
|
29
29
|
value: string;
|
30
30
|
}[];
|
31
|
+
widgetRangeOptions: {
|
32
|
+
label: string;
|
33
|
+
value: string;
|
34
|
+
}[];
|
35
|
+
startDateNum: import("vue").Ref<any>;
|
36
|
+
endDateNum: import("vue").Ref<any>;
|
31
37
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
32
38
|
filterType: {
|
33
39
|
type: StringConstructor;
|
@@ -60,135 +66,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
60
66
|
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
61
67
|
valueCp: import("vue").WritableComputedRef<any>;
|
62
68
|
presetValCp: import("vue").WritableComputedRef<string>;
|
63
|
-
|
64
|
-
updateUnchangedValue: {
|
65
|
-
type: BooleanConstructor;
|
66
|
-
};
|
67
|
-
onConfirm: {
|
68
|
-
type: FunctionConstructor;
|
69
|
-
};
|
70
|
-
formattedValue: {
|
71
|
-
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
72
|
-
};
|
73
|
-
placeholder: {
|
74
|
-
type: StringConstructor;
|
75
|
-
};
|
76
|
-
allowedInvalidValue: {
|
77
|
-
type: StringConstructor;
|
78
|
-
};
|
79
|
-
to: {
|
80
|
-
type: import("vue").PropType<string | false | HTMLElement>;
|
81
|
-
default: string;
|
82
|
-
};
|
83
|
-
holidays: {
|
84
|
-
type: import("vue").PropType<Date[]>;
|
85
|
-
default: () => never[];
|
86
|
-
};
|
87
|
-
type: {
|
88
|
-
type: StringConstructor;
|
89
|
-
default: string;
|
90
|
-
};
|
91
|
-
isDateDisabled: {
|
92
|
-
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
93
|
-
};
|
94
|
-
}, {
|
95
|
-
attrs: {
|
96
|
-
[x: string]: unknown;
|
97
|
-
};
|
98
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
99
|
-
updateUnchangedValue: {
|
100
|
-
type: BooleanConstructor;
|
101
|
-
};
|
102
|
-
onConfirm: {
|
103
|
-
type: FunctionConstructor;
|
104
|
-
};
|
105
|
-
formattedValue: {
|
106
|
-
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
107
|
-
};
|
108
|
-
placeholder: {
|
109
|
-
type: StringConstructor;
|
110
|
-
};
|
111
|
-
allowedInvalidValue: {
|
112
|
-
type: StringConstructor;
|
113
|
-
};
|
114
|
-
to: {
|
115
|
-
type: import("vue").PropType<string | false | HTMLElement>;
|
116
|
-
default: string;
|
117
|
-
};
|
118
|
-
holidays: {
|
119
|
-
type: import("vue").PropType<Date[]>;
|
120
|
-
default: () => never[];
|
121
|
-
};
|
122
|
-
type: {
|
123
|
-
type: StringConstructor;
|
124
|
-
default: string;
|
125
|
-
};
|
126
|
-
isDateDisabled: {
|
127
|
-
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
128
|
-
};
|
129
|
-
}>> & {
|
130
|
-
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
131
|
-
}>>;
|
132
|
-
emit: (event: "update:formatted-value", ...args: any[]) => void;
|
133
|
-
datePickerRef: import("vue").Ref<import("../../../../../../../shared/types").AnyObject | null>;
|
134
|
-
panelInstRef: import("vue").Ref<null>;
|
135
|
-
placeholderRef: import("vue").Ref<any>;
|
136
|
-
oldValue: string;
|
137
|
-
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
138
|
-
isDateTime: import("vue").ComputedRef<boolean>;
|
139
|
-
formatRef: import("vue").ComputedRef<string>;
|
140
|
-
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
141
|
-
_isDateDisabled: import("vue").ComputedRef<(current: number, ...arg: any[]) => boolean>;
|
142
|
-
focus: () => any;
|
143
|
-
blur: () => any;
|
144
|
-
handleConfirm: (target: HTMLInputElement) => void;
|
145
|
-
onUpdateShow: (show: boolean) => Promise<void>;
|
146
|
-
watchers: import("../../../../../../../shared/types").AnyFn[];
|
147
|
-
stopWatcher: () => void;
|
148
|
-
setHoliday: (show: boolean) => Promise<void>;
|
149
|
-
onConfirm: (...args: any[]) => Promise<void>;
|
150
|
-
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
151
|
-
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
152
|
-
NDatePicker: any;
|
153
|
-
}, 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<{
|
154
|
-
updateUnchangedValue: {
|
155
|
-
type: BooleanConstructor;
|
156
|
-
};
|
157
|
-
onConfirm: {
|
158
|
-
type: FunctionConstructor;
|
159
|
-
};
|
160
|
-
formattedValue: {
|
161
|
-
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
162
|
-
};
|
163
|
-
placeholder: {
|
164
|
-
type: StringConstructor;
|
165
|
-
};
|
166
|
-
allowedInvalidValue: {
|
167
|
-
type: StringConstructor;
|
168
|
-
};
|
169
|
-
to: {
|
170
|
-
type: import("vue").PropType<string | false | HTMLElement>;
|
171
|
-
default: string;
|
172
|
-
};
|
173
|
-
holidays: {
|
174
|
-
type: import("vue").PropType<Date[]>;
|
175
|
-
default: () => never[];
|
176
|
-
};
|
177
|
-
type: {
|
178
|
-
type: StringConstructor;
|
179
|
-
default: string;
|
180
|
-
};
|
181
|
-
isDateDisabled: {
|
182
|
-
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
183
|
-
};
|
184
|
-
}>> & {
|
185
|
-
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
186
|
-
}, {
|
187
|
-
type: string;
|
188
|
-
updateUnchangedValue: boolean;
|
189
|
-
to: string | false | HTMLElement;
|
190
|
-
holidays: Date[];
|
191
|
-
}>>;
|
69
|
+
handleChange: (val: any, type: 'start' | 'end') => void;
|
192
70
|
NSelect: any;
|
193
71
|
NInputNumber: any;
|
194
72
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue2.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { defineComponent, computed, openBlock, createElementBlock, Fragment, createVNode, unref, isRef,
|
2
|
-
import
|
1
|
+
import { defineComponent, ref, computed, watch, openBlock, createElementBlock, Fragment, createVNode, unref, isRef, createCommentVNode, createElementVNode } from 'vue';
|
2
|
+
import { isString } from 'lodash-es';
|
3
3
|
import { NInputNumber, NSelect } from 'naive-ui';
|
4
4
|
|
5
5
|
const _hoisted_1 = {
|
@@ -7,6 +7,11 @@ const _hoisted_1 = {
|
|
7
7
|
"display": "flex"
|
8
8
|
}
|
9
9
|
};
|
10
|
+
const _hoisted_2 = {
|
11
|
+
style: {
|
12
|
+
"display": "flex"
|
13
|
+
}
|
14
|
+
};
|
10
15
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
11
16
|
__name: "DateOption",
|
12
17
|
props: {
|
@@ -101,9 +106,54 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
101
106
|
}(),
|
102
107
|
value: "HOUR"
|
103
108
|
}];
|
109
|
+
const widgetRangeOptions = [{
|
110
|
+
label: function() {
|
111
|
+
var _a, _b, _c;
|
112
|
+
try {
|
113
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.144")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.144")) || "\u5929";
|
114
|
+
} catch (e) {
|
115
|
+
return "\u5929";
|
116
|
+
}
|
117
|
+
}(),
|
118
|
+
value: "DAY"
|
119
|
+
}, {
|
120
|
+
label: function() {
|
121
|
+
var _a, _b, _c;
|
122
|
+
try {
|
123
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.346")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.346")) || "\u5468";
|
124
|
+
} catch (e) {
|
125
|
+
return "\u5468";
|
126
|
+
}
|
127
|
+
}(),
|
128
|
+
value: "WEEK"
|
129
|
+
}, {
|
130
|
+
label: function() {
|
131
|
+
var _a, _b, _c;
|
132
|
+
try {
|
133
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.347")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.347")) || "\u6708";
|
134
|
+
} catch (e) {
|
135
|
+
return "\u6708";
|
136
|
+
}
|
137
|
+
}(),
|
138
|
+
value: "MONTH"
|
139
|
+
}, {
|
140
|
+
label: function() {
|
141
|
+
var _a, _b, _c;
|
142
|
+
try {
|
143
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.349")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.349")) || "\u5E74";
|
144
|
+
} catch (e) {
|
145
|
+
return "\u5E74";
|
146
|
+
}
|
147
|
+
}(),
|
148
|
+
value: "YEAR"
|
149
|
+
}];
|
150
|
+
const startDateNum = ref();
|
151
|
+
const endDateNum = ref();
|
104
152
|
const valueCp = computed({
|
105
153
|
set(val) {
|
106
|
-
|
154
|
+
if (props.filterType === "3") {
|
155
|
+
emit("update:modelValue", val);
|
156
|
+
}
|
107
157
|
},
|
108
158
|
get() {
|
109
159
|
return props.filterType === "3" && typeof props.modelValue === "string" ? Number(props.modelValue) : props.modelValue;
|
@@ -117,6 +167,32 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
117
167
|
return props.presetVal;
|
118
168
|
}
|
119
169
|
});
|
170
|
+
function handleChange(val, type) {
|
171
|
+
var _a, _b;
|
172
|
+
switch (type) {
|
173
|
+
case "start":
|
174
|
+
startDateNum.value = val;
|
175
|
+
break;
|
176
|
+
case "end":
|
177
|
+
endDateNum.value = val;
|
178
|
+
break;
|
179
|
+
}
|
180
|
+
const result = startDateNum.value || endDateNum.value ? `${(_a = startDateNum.value) != null ? _a : ""} ~ ${(_b = endDateNum.value) != null ? _b : ""}` : "";
|
181
|
+
emit("update:modelValue", result);
|
182
|
+
}
|
183
|
+
watch(() => props.modelValue, (val) => {
|
184
|
+
if (val && props.filterType === "2" && isString(val) && val.includes("~")) {
|
185
|
+
const [start, end] = val.split("~");
|
186
|
+
if (start.trim())
|
187
|
+
startDateNum.value = Number(start);
|
188
|
+
if (end.trim())
|
189
|
+
endDateNum.value = Number(end);
|
190
|
+
return;
|
191
|
+
}
|
192
|
+
startDateNum.value = endDateNum.value = null;
|
193
|
+
}, {
|
194
|
+
immediate: true
|
195
|
+
});
|
120
196
|
return (_ctx, _cache) => {
|
121
197
|
return openBlock(), createElementBlock("div", _hoisted_1, [__props.filterType === "3" ? (openBlock(), createElementBlock(Fragment, {
|
122
198
|
key: 0
|
@@ -137,18 +213,36 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
137
213
|
value: unref(presetValCp),
|
138
214
|
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => isRef(presetValCp) ? presetValCp.value = $event : null),
|
139
215
|
options: widgetOptions
|
140
|
-
}, null, 8, ["value"])], 64)) : (openBlock(),
|
141
|
-
key: 1
|
216
|
+
}, null, 8, ["value"])], 64)) : __props.filterType === "2" ? (openBlock(), createElementBlock(Fragment, {
|
217
|
+
key: 1
|
218
|
+
}, [createCommentVNode(" \u65E5\u671F\u5F00\u59CB\u7ED3\u675F\u7684\u8303\u56F4 "), createElementVNode("div", _hoisted_2, [createVNode(unref(NInputNumber), {
|
219
|
+
style: {
|
220
|
+
"width": "100px"
|
221
|
+
},
|
222
|
+
class: "form-item",
|
223
|
+
value: startDateNum.value,
|
224
|
+
"show-button": false,
|
225
|
+
placeholder: "\u5F00\u59CB\u6570\u91CF",
|
226
|
+
"onUpdate:value": _cache[2] || (_cache[2] = (val) => handleChange(val, "start"))
|
227
|
+
}, null, 8, ["value"]), createVNode(unref(NInputNumber), {
|
228
|
+
style: {
|
229
|
+
"width": "100px"
|
230
|
+
},
|
231
|
+
class: "form-item",
|
232
|
+
value: endDateNum.value,
|
233
|
+
"show-button": false,
|
234
|
+
placeholder: "\u7ED3\u675F\u6570\u91CF",
|
235
|
+
"onUpdate:value": _cache[3] || (_cache[3] = (val) => handleChange(val, "end"))
|
236
|
+
}, null, 8, ["value"]), createVNode(unref(NSelect), {
|
237
|
+
style: {
|
238
|
+
"width": "120px"
|
239
|
+
},
|
142
240
|
class: "form-item",
|
143
|
-
type: __props.dateType,
|
144
|
-
clearable: "",
|
145
241
|
to: "body",
|
146
|
-
|
147
|
-
"
|
148
|
-
|
149
|
-
|
150
|
-
"onUpdate:formatted-value": _cache[2] || (_cache[2] = ($event) => isRef(valueCp) ? valueCp.value = $event : null)
|
151
|
-
}, null, 8, ["type", "is-date-disabled", "is-time-disabled", "valueFormat", "formatted-value"]))]);
|
242
|
+
value: unref(presetValCp),
|
243
|
+
"onUpdate:value": _cache[4] || (_cache[4] = ($event) => isRef(presetValCp) ? presetValCp.value = $event : null),
|
244
|
+
options: widgetRangeOptions
|
245
|
+
}, null, 8, ["value"])])], 2112)) : createCommentVNode("v-if", true), createCommentVNode(' <c-date-picker\r\n v-else\r\n class="form-item"\r\n :type="dateType"\r\n clearable\r\n to="body"\r\n :is-date-disabled="isDateDisabled"\r\n :is-time-disabled="timeDisabled"\r\n :valueFormat="valueFormat"\r\n v-model:formatted-value="valueCp"\r\n /> ')]);
|
152
246
|
};
|
153
247
|
}
|
154
248
|
});
|