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
@@ -31,6 +31,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
31
31
|
class: string;
|
32
32
|
};
|
33
33
|
specialDateRange: string[];
|
34
|
+
specialCustomDateRange: string[];
|
34
35
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
35
36
|
actionList_prop: {
|
36
37
|
type: PropType<IClassifyListType>;
|
@@ -422,6 +423,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
422
423
|
label: string;
|
423
424
|
value: string;
|
424
425
|
}[];
|
426
|
+
widgetRangeOptions: {
|
427
|
+
label: string;
|
428
|
+
value: string;
|
429
|
+
}[];
|
430
|
+
startDateNum: import("vue").Ref<any>;
|
431
|
+
endDateNum: import("vue").Ref<any>;
|
425
432
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
426
433
|
filterType: {
|
427
434
|
type: StringConstructor;
|
@@ -454,135 +461,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
454
461
|
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
455
462
|
valueCp: import("vue").WritableComputedRef<any>;
|
456
463
|
presetValCp: import("vue").WritableComputedRef<string>;
|
457
|
-
|
458
|
-
updateUnchangedValue: {
|
459
|
-
type: BooleanConstructor;
|
460
|
-
};
|
461
|
-
onConfirm: {
|
462
|
-
type: FunctionConstructor;
|
463
|
-
};
|
464
|
-
formattedValue: {
|
465
|
-
type: PropType<(string | [string, string]) | null | undefined>;
|
466
|
-
};
|
467
|
-
placeholder: {
|
468
|
-
type: StringConstructor;
|
469
|
-
};
|
470
|
-
allowedInvalidValue: {
|
471
|
-
type: StringConstructor;
|
472
|
-
};
|
473
|
-
to: {
|
474
|
-
type: PropType<string | false | HTMLElement>;
|
475
|
-
default: string;
|
476
|
-
};
|
477
|
-
holidays: {
|
478
|
-
type: PropType<Date[]>;
|
479
|
-
default: () => never[];
|
480
|
-
};
|
481
|
-
type: {
|
482
|
-
type: StringConstructor;
|
483
|
-
default: string;
|
484
|
-
};
|
485
|
-
isDateDisabled: {
|
486
|
-
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
487
|
-
};
|
488
|
-
}, {
|
489
|
-
attrs: {
|
490
|
-
[x: string]: unknown;
|
491
|
-
};
|
492
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
493
|
-
updateUnchangedValue: {
|
494
|
-
type: BooleanConstructor;
|
495
|
-
};
|
496
|
-
onConfirm: {
|
497
|
-
type: FunctionConstructor;
|
498
|
-
};
|
499
|
-
formattedValue: {
|
500
|
-
type: PropType<(string | [string, string]) | null | undefined>;
|
501
|
-
};
|
502
|
-
placeholder: {
|
503
|
-
type: StringConstructor;
|
504
|
-
};
|
505
|
-
allowedInvalidValue: {
|
506
|
-
type: StringConstructor;
|
507
|
-
};
|
508
|
-
to: {
|
509
|
-
type: PropType<string | false | HTMLElement>;
|
510
|
-
default: string;
|
511
|
-
};
|
512
|
-
holidays: {
|
513
|
-
type: PropType<Date[]>;
|
514
|
-
default: () => never[];
|
515
|
-
};
|
516
|
-
type: {
|
517
|
-
type: StringConstructor;
|
518
|
-
default: string;
|
519
|
-
};
|
520
|
-
isDateDisabled: {
|
521
|
-
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
522
|
-
};
|
523
|
-
}>> & {
|
524
|
-
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
525
|
-
}>>;
|
526
|
-
emit: (event: "update:formatted-value", ...args: any[]) => void;
|
527
|
-
datePickerRef: import("vue").Ref<import("../../../../../shared/types").AnyObject | null>;
|
528
|
-
panelInstRef: import("vue").Ref<null>;
|
529
|
-
placeholderRef: import("vue").Ref<any>;
|
530
|
-
oldValue: string;
|
531
|
-
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
532
|
-
isDateTime: import("vue").ComputedRef<boolean>;
|
533
|
-
formatRef: import("vue").ComputedRef<string>;
|
534
|
-
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
535
|
-
_isDateDisabled: import("vue").ComputedRef<(current: number, ...arg: any[]) => boolean>;
|
536
|
-
focus: () => any;
|
537
|
-
blur: () => any;
|
538
|
-
handleConfirm: (target: HTMLInputElement) => void;
|
539
|
-
onUpdateShow: (show: boolean) => Promise<void>;
|
540
|
-
watchers: import("../../../../../shared/types").AnyFn[];
|
541
|
-
stopWatcher: () => void;
|
542
|
-
setHoliday: (show: boolean) => Promise<void>;
|
543
|
-
onConfirm: (...args: any[]) => Promise<void>;
|
544
|
-
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
545
|
-
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
546
|
-
NDatePicker: any;
|
547
|
-
}, 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<{
|
548
|
-
updateUnchangedValue: {
|
549
|
-
type: BooleanConstructor;
|
550
|
-
};
|
551
|
-
onConfirm: {
|
552
|
-
type: FunctionConstructor;
|
553
|
-
};
|
554
|
-
formattedValue: {
|
555
|
-
type: PropType<(string | [string, string]) | null | undefined>;
|
556
|
-
};
|
557
|
-
placeholder: {
|
558
|
-
type: StringConstructor;
|
559
|
-
};
|
560
|
-
allowedInvalidValue: {
|
561
|
-
type: StringConstructor;
|
562
|
-
};
|
563
|
-
to: {
|
564
|
-
type: PropType<string | false | HTMLElement>;
|
565
|
-
default: string;
|
566
|
-
};
|
567
|
-
holidays: {
|
568
|
-
type: PropType<Date[]>;
|
569
|
-
default: () => never[];
|
570
|
-
};
|
571
|
-
type: {
|
572
|
-
type: StringConstructor;
|
573
|
-
default: string;
|
574
|
-
};
|
575
|
-
isDateDisabled: {
|
576
|
-
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
577
|
-
};
|
578
|
-
}>> & {
|
579
|
-
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
580
|
-
}, {
|
581
|
-
type: string;
|
582
|
-
updateUnchangedValue: boolean;
|
583
|
-
to: string | false | HTMLElement;
|
584
|
-
holidays: Date[];
|
585
|
-
}>>;
|
464
|
+
handleChange: (val: any, type: "start" | "end") => void;
|
586
465
|
NSelect: any;
|
587
466
|
NInputNumber: any;
|
588
467
|
}, 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<{
|
@@ -1377,6 +1256,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
1377
1256
|
label: string;
|
1378
1257
|
value: string;
|
1379
1258
|
}[];
|
1259
|
+
widgetRangeOptions: {
|
1260
|
+
label: string;
|
1261
|
+
value: string;
|
1262
|
+
}[];
|
1263
|
+
startDateNum: import("vue").Ref<any>;
|
1264
|
+
endDateNum: import("vue").Ref<any>;
|
1380
1265
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
1381
1266
|
filterType: {
|
1382
1267
|
type: StringConstructor;
|
@@ -1409,135 +1294,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1409
1294
|
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
1410
1295
|
valueCp: import("vue").WritableComputedRef<any>;
|
1411
1296
|
presetValCp: import("vue").WritableComputedRef<string>;
|
1412
|
-
|
1413
|
-
updateUnchangedValue: {
|
1414
|
-
type: BooleanConstructor;
|
1415
|
-
};
|
1416
|
-
onConfirm: {
|
1417
|
-
type: FunctionConstructor;
|
1418
|
-
};
|
1419
|
-
formattedValue: {
|
1420
|
-
type: PropType<(string | [string, string]) | null | undefined>;
|
1421
|
-
};
|
1422
|
-
placeholder: {
|
1423
|
-
type: StringConstructor;
|
1424
|
-
};
|
1425
|
-
allowedInvalidValue: {
|
1426
|
-
type: StringConstructor;
|
1427
|
-
};
|
1428
|
-
to: {
|
1429
|
-
type: PropType<string | false | HTMLElement>;
|
1430
|
-
default: string;
|
1431
|
-
};
|
1432
|
-
holidays: {
|
1433
|
-
type: PropType<Date[]>;
|
1434
|
-
default: () => never[];
|
1435
|
-
};
|
1436
|
-
type: {
|
1437
|
-
type: StringConstructor;
|
1438
|
-
default: string;
|
1439
|
-
};
|
1440
|
-
isDateDisabled: {
|
1441
|
-
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
1442
|
-
};
|
1443
|
-
}, {
|
1444
|
-
attrs: {
|
1445
|
-
[x: string]: unknown;
|
1446
|
-
};
|
1447
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
1448
|
-
updateUnchangedValue: {
|
1449
|
-
type: BooleanConstructor;
|
1450
|
-
};
|
1451
|
-
onConfirm: {
|
1452
|
-
type: FunctionConstructor;
|
1453
|
-
};
|
1454
|
-
formattedValue: {
|
1455
|
-
type: PropType<(string | [string, string]) | null | undefined>;
|
1456
|
-
};
|
1457
|
-
placeholder: {
|
1458
|
-
type: StringConstructor;
|
1459
|
-
};
|
1460
|
-
allowedInvalidValue: {
|
1461
|
-
type: StringConstructor;
|
1462
|
-
};
|
1463
|
-
to: {
|
1464
|
-
type: PropType<string | false | HTMLElement>;
|
1465
|
-
default: string;
|
1466
|
-
};
|
1467
|
-
holidays: {
|
1468
|
-
type: PropType<Date[]>;
|
1469
|
-
default: () => never[];
|
1470
|
-
};
|
1471
|
-
type: {
|
1472
|
-
type: StringConstructor;
|
1473
|
-
default: string;
|
1474
|
-
};
|
1475
|
-
isDateDisabled: {
|
1476
|
-
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
1477
|
-
};
|
1478
|
-
}>> & {
|
1479
|
-
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1480
|
-
}>>;
|
1481
|
-
emit: (event: "update:formatted-value", ...args: any[]) => void;
|
1482
|
-
datePickerRef: import("vue").Ref<import("../../../../../shared/types").AnyObject | null>;
|
1483
|
-
panelInstRef: import("vue").Ref<null>;
|
1484
|
-
placeholderRef: import("vue").Ref<any>;
|
1485
|
-
oldValue: string;
|
1486
|
-
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
1487
|
-
isDateTime: import("vue").ComputedRef<boolean>;
|
1488
|
-
formatRef: import("vue").ComputedRef<string>;
|
1489
|
-
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
1490
|
-
_isDateDisabled: import("vue").ComputedRef<(current: number, ...arg: any[]) => boolean>;
|
1491
|
-
focus: () => any;
|
1492
|
-
blur: () => any;
|
1493
|
-
handleConfirm: (target: HTMLInputElement) => void;
|
1494
|
-
onUpdateShow: (show: boolean) => Promise<void>;
|
1495
|
-
watchers: import("../../../../../shared/types").AnyFn[];
|
1496
|
-
stopWatcher: () => void;
|
1497
|
-
setHoliday: (show: boolean) => Promise<void>;
|
1498
|
-
onConfirm: (...args: any[]) => Promise<void>;
|
1499
|
-
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
1500
|
-
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
1501
|
-
NDatePicker: any;
|
1502
|
-
}, 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<{
|
1503
|
-
updateUnchangedValue: {
|
1504
|
-
type: BooleanConstructor;
|
1505
|
-
};
|
1506
|
-
onConfirm: {
|
1507
|
-
type: FunctionConstructor;
|
1508
|
-
};
|
1509
|
-
formattedValue: {
|
1510
|
-
type: PropType<(string | [string, string]) | null | undefined>;
|
1511
|
-
};
|
1512
|
-
placeholder: {
|
1513
|
-
type: StringConstructor;
|
1514
|
-
};
|
1515
|
-
allowedInvalidValue: {
|
1516
|
-
type: StringConstructor;
|
1517
|
-
};
|
1518
|
-
to: {
|
1519
|
-
type: PropType<string | false | HTMLElement>;
|
1520
|
-
default: string;
|
1521
|
-
};
|
1522
|
-
holidays: {
|
1523
|
-
type: PropType<Date[]>;
|
1524
|
-
default: () => never[];
|
1525
|
-
};
|
1526
|
-
type: {
|
1527
|
-
type: StringConstructor;
|
1528
|
-
default: string;
|
1529
|
-
};
|
1530
|
-
isDateDisabled: {
|
1531
|
-
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
1532
|
-
};
|
1533
|
-
}>> & {
|
1534
|
-
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1535
|
-
}, {
|
1536
|
-
type: string;
|
1537
|
-
updateUnchangedValue: boolean;
|
1538
|
-
to: string | false | HTMLElement;
|
1539
|
-
holidays: Date[];
|
1540
|
-
}>>;
|
1297
|
+
handleChange: (val: any, type: "start" | "end") => void;
|
1541
1298
|
NSelect: any;
|
1542
1299
|
NInputNumber: any;
|
1543
1300
|
}, 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<{
|
@@ -1799,6 +1556,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1799
1556
|
ConditionEnums: {
|
1800
1557
|
NULL: string;
|
1801
1558
|
EQUAL: string;
|
1559
|
+
CUSTOM_RANGE: string;
|
1802
1560
|
IN_THE_PAST: string;
|
1803
1561
|
IN_THE_FUTURE: string;
|
1804
1562
|
IN_THE_PAST_DI: string;
|
@@ -94,6 +94,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
94
94
|
class: "classify-fieldkey-popover"
|
95
95
|
};
|
96
96
|
const specialDateRange = [ConditionEnums.IN_THE_PAST, ConditionEnums.IN_THE_FUTURE, ConditionEnums.IN_THE_PAST_DI, ConditionEnums.IN_THE_FUTURE_DI];
|
97
|
+
const specialCustomDateRange = [ConditionEnums.CUSTOM_RANGE];
|
97
98
|
const $attrs = useAttrs();
|
98
99
|
const FormState = reactive({
|
99
100
|
className: "",
|
@@ -209,7 +210,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
209
210
|
presetVal,
|
210
211
|
customDate
|
211
212
|
}) => {
|
212
|
-
|
213
|
+
var _a;
|
214
|
+
return !key || !condition || condition === ConditionEnums.EQUAL && !value && !presetVal && !customDate || specialDateRange.includes(condition) && (!value || !presetVal) || specialCustomDateRange.includes(condition) && (!value || ((_a = (value != null ? value : "").split("~")) == null ? void 0 : _a.length) < 2 || !presetVal);
|
213
215
|
});
|
214
216
|
if (isEmpty) {
|
215
217
|
$message.warning(function() {
|
package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js
CHANGED
@@ -144,9 +144,24 @@ const formatDateRangeInfo = (key, format = "x", optionSetting = WidgetOptionEnum
|
|
144
144
|
};
|
145
145
|
const formatSpecialDateRange = (conObj, format = "x") => {
|
146
146
|
if (Array.isArray(conObj.value) && conObj.con && conObj.unit) {
|
147
|
-
|
147
|
+
let num = 0;
|
148
|
+
let startNum = 0;
|
149
|
+
let endNum = 0;
|
150
|
+
const getStartAndEndValue = (result) => {
|
151
|
+
const [start, end] = result.split("~");
|
152
|
+
if (start.trim())
|
153
|
+
startNum = Number(start.trim());
|
154
|
+
if (end.trim())
|
155
|
+
endNum = Number(end.trim());
|
156
|
+
};
|
157
|
+
ConditionEnums.CUSTOM_RANGE === conObj.con ? getStartAndEndValue(conObj.value[0]) : num = Number(conObj.value);
|
148
158
|
const unit = conObj.unit.toLowerCase();
|
149
159
|
switch (conObj.con) {
|
160
|
+
case ConditionEnums.CUSTOM_RANGE: {
|
161
|
+
const startResult = startNum < 0 ? moment().subtract(Math.abs(startNum), unit).startOf("day").format(format) : moment().add(startNum, unit).startOf("day").format(format);
|
162
|
+
const endResult = endNum < 0 ? moment().subtract(Math.abs(endNum), unit).endOf("day").format(format) : moment().add(endNum, unit).endOf("day").format(format);
|
163
|
+
return `${startResult} ~ ${endResult}`;
|
164
|
+
}
|
150
165
|
case ConditionEnums.IN_THE_PAST: {
|
151
166
|
return `${moment().subtract(num, unit).startOf("day").format(format)} ~ ${moment().format(format)}`;
|
152
167
|
}
|
@@ -13,7 +13,7 @@ const advanceOptionSettingMap = {
|
|
13
13
|
[WidgetOptionEnums.PAST_TIME]: "2",
|
14
14
|
[WidgetOptionEnums.FUTURE_TIME]: "3"
|
15
15
|
};
|
16
|
-
const specialDateRange = [ConditionEnums.IN_THE_PAST, ConditionEnums.IN_THE_FUTURE, ConditionEnums.IN_THE_PAST_DI, ConditionEnums.IN_THE_FUTURE_DI];
|
16
|
+
const specialDateRange = [ConditionEnums.CUSTOM_RANGE, ConditionEnums.IN_THE_PAST, ConditionEnums.IN_THE_FUTURE, ConditionEnums.IN_THE_PAST_DI, ConditionEnums.IN_THE_FUTURE_DI];
|
17
17
|
const limitValue = 10;
|
18
18
|
function useAdvanced() {
|
19
19
|
function transformDataToFieldCfg(advancedFilterCfg) {
|
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
|
+
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "cnhis-design-vue",
|
3
|
-
"version": "3.3.3-beta.
|
3
|
+
"version": "3.3.3-beta.75",
|
4
4
|
"license": "ISC",
|
5
5
|
"module": "./es/components/index.js",
|
6
6
|
"main": "./es/components/index.js",
|
@@ -62,7 +62,6 @@
|
|
62
62
|
"video.js": "^7.19.2",
|
63
63
|
"videojs-contrib-hls": "^5.15.0",
|
64
64
|
"viewerjs": "^1.10.5",
|
65
|
-
"vue": "^3.2.0",
|
66
65
|
"vue-simple-uploader": "^1.0.0-beta.5",
|
67
66
|
"xe-utils": "^3.5.4"
|
68
67
|
},
|
@@ -74,5 +73,5 @@
|
|
74
73
|
"iOS 7",
|
75
74
|
"last 3 iOS versions"
|
76
75
|
],
|
77
|
-
"gitHead": "
|
76
|
+
"gitHead": "585f553ca4e29cb4d932e6a3a7b684f06ad8c106"
|
78
77
|
}
|