cnhis-design-vue 3.3.3-beta.19 → 3.3.3-beta.22

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.
Files changed (88) hide show
  1. package/README.md +87 -87
  2. package/es/components/base-search/index.d.ts +3 -0
  3. package/es/components/base-search/src/index.vue.d.ts +3 -0
  4. package/es/components/callback/src/components/render/popupMaps.d.ts +13 -0
  5. package/es/components/classification/index.d.ts +56 -6
  6. package/es/components/classification/src/components/search-filter/index.vue.d.ts +56 -6
  7. package/es/components/classification/src/components/set-classification/index.vue.d.ts +56 -6
  8. package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
  9. package/es/components/classification/src/index.vue.d.ts +56 -6
  10. package/es/components/field-editor/index.d.ts +13 -0
  11. package/es/components/field-editor/src/FieldEditor.vue.d.ts +13 -0
  12. package/es/components/field-set/src/FieldColor.vue.d.ts +4 -4
  13. package/es/components/field-set/src/FieldFilter.vue.d.ts +4 -4
  14. package/es/components/field-set/src/FieldSet.vue.d.ts +5 -5
  15. package/es/components/field-set/src/components/table-row.vue.d.ts +4 -4
  16. package/es/components/form-config/index.d.ts +39 -0
  17. package/es/components/form-config/src/FormConfig.vue.d.ts +39 -0
  18. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +13 -0
  19. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +13 -0
  20. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +13 -0
  21. package/es/components/form-render/index.d.ts +13 -0
  22. package/es/components/form-render/src/FormRender.vue.d.ts +13 -0
  23. package/es/components/form-render/src/FormRender.vue2.js +4 -0
  24. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +13 -0
  25. package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +12 -3
  26. package/es/components/form-render/src/hooks/useBusinessBinding.js +7 -7
  27. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  28. package/es/components/form-render/src/utils/business.d.ts +3 -1
  29. package/es/components/form-render/src/utils/business.js +7 -1
  30. package/es/components/iho-chat/index.d.ts +18 -1
  31. package/es/components/iho-chat/src/Index.vue.d.ts +18 -1
  32. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +2 -1
  33. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +14 -9
  34. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +3 -2
  35. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +16 -0
  36. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +112 -53
  37. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  38. package/es/components/iho-chat/src/hooks/index.d.ts +1 -0
  39. package/es/components/iho-chat/src/hooks/index.js +1 -0
  40. package/es/components/iho-chat/src/hooks/useDraggable.d.ts +25 -0
  41. package/es/components/iho-chat/src/hooks/useDraggable.js +151 -0
  42. package/es/components/iho-chat/style/index.css +1 -1
  43. package/es/components/index.css +1 -1
  44. package/es/components/info-header/index.d.ts +26 -0
  45. package/es/components/info-header/src/InfoHeader.vue.d.ts +26 -0
  46. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +13 -0
  47. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +13 -0
  48. package/es/components/quick-search/index.d.ts +2 -0
  49. package/es/components/quick-search/src/index.vue.d.ts +2 -0
  50. package/es/components/select-person/src/SelectPerson.vue2.js +2 -1
  51. package/es/components/shortcut-setter/index.d.ts +13 -0
  52. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +13 -0
  53. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +1 -0
  54. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.d.ts +1 -0
  55. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +1 -0
  56. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +1 -0
  57. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +54 -6
  58. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +26 -10
  59. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +17 -2
  60. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +37 -2
  61. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +18 -2
  62. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +44 -1
  63. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +1 -0
  64. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +36 -4
  65. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +2 -1
  66. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +55 -6
  67. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +6 -3
  68. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +1 -1
  69. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +12 -1
  70. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +1 -1
  71. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +25 -6
  72. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +1 -1
  73. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +12 -1
  74. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +2 -2
  75. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +2 -2
  76. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -0
  77. package/es/components/table-filter/src/hooks/useAdvanced.js +20 -3
  78. package/es/components/table-filter/src/hooks/useRenderWidget.js +4 -0
  79. package/es/components/table-filter/src/tool/date.d.ts +3 -0
  80. package/es/components/table-filter/src/tool/date.js +139 -0
  81. package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
  82. package/es/components/table-filter/src/tool/transformData.js +11 -8
  83. package/es/components/table-filter/src/types/enums.d.ts +1 -0
  84. package/es/components/table-filter/src/types/enums.js +2 -1
  85. package/es/components/table-filter/src/types/index.d.ts +12 -0
  86. package/es/env.d.ts +25 -25
  87. package/es/shared/package.json.js +1 -1
  88. package/package.json +2 -2
@@ -22,9 +22,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
22
22
  },
23
23
  isAccurate: {
24
24
  type: Boolean
25
+ },
26
+ customDate: {
27
+ type: String,
28
+ default: null
25
29
  }
26
30
  },
27
- emits: ["update:modelValue", "update:presetVal", "update:isAccurate"],
31
+ emits: ["update:modelValue", "update:presetVal", "update:isAccurate", "update:customDate"],
28
32
  setup(__props, {
29
33
  emit
30
34
  }) {
@@ -53,6 +57,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
53
57
  return props.isAccurate;
54
58
  }
55
59
  });
60
+ const customDateCp = computed({
61
+ set(val) {
62
+ emit("update:customDate", val);
63
+ },
64
+ get() {
65
+ return props.customDate;
66
+ }
67
+ });
56
68
  const widgetType = computed(() => {
57
69
  var _a;
58
70
  return (_a = props.paramCfg) == null ? void 0 : _a.type;
@@ -96,34 +108,38 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
96
108
  modelValue: unref(valueCp),
97
109
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => isRef(valueCp) ? valueCp.value = $event : null),
98
110
  presetVal: unref(presetValCp),
99
- "onUpdate:presetVal": _cache[5] || (_cache[5] = ($event) => isRef(presetValCp) ? presetValCp.value = $event : null)
100
- }, null, 8, ["paramCfg", "modelValue", "presetVal"])) : createCommentVNode("v-if", true), createCommentVNode(" \u5F02\u6B65\u6570\u636E\u6E90\u4E0B\u62C9\u6846 "), unref(widgetType) === unref(WidgetTypeEnums).SELECTDYNAMIC ? (openBlock(), createBlock(unref(SelectDynamic), {
111
+ "onUpdate:presetVal": _cache[5] || (_cache[5] = ($event) => isRef(presetValCp) ? presetValCp.value = $event : null),
112
+ customDate: unref(customDateCp),
113
+ "onUpdate:customDate": _cache[6] || (_cache[6] = ($event) => isRef(customDateCp) ? customDateCp.value = $event : null)
114
+ }, null, 8, ["paramCfg", "modelValue", "presetVal", "customDate"])) : createCommentVNode("v-if", true), createCommentVNode(" \u5F02\u6B65\u6570\u636E\u6E90\u4E0B\u62C9\u6846 "), unref(widgetType) === unref(WidgetTypeEnums).SELECTDYNAMIC ? (openBlock(), createBlock(unref(SelectDynamic), {
101
115
  key: 4,
102
116
  paramCfg: __props.paramCfg,
103
117
  modelValue: unref(valueCp),
104
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => isRef(valueCp) ? valueCp.value = $event : null)
118
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => isRef(valueCp) ? valueCp.value = $event : null)
105
119
  }, null, 8, ["paramCfg", "modelValue"])) : createCommentVNode("v-if", true), createCommentVNode(" \u6570\u5B57\u6846\u8303\u56F4 "), unref(widgetType) === unref(WidgetTypeEnums).INPUTNUMBER_RANGE ? (openBlock(), createBlock(unref(InputNumberGroup), {
106
120
  key: 5,
107
121
  paramCfg: __props.paramCfg,
108
122
  modelValue: unref(valueCp),
109
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => isRef(valueCp) ? valueCp.value = $event : null)
123
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => isRef(valueCp) ? valueCp.value = $event : null)
110
124
  }, null, 8, ["paramCfg", "modelValue"])) : createCommentVNode("v-if", true), createCommentVNode(" \u65E5\u671F\u3001\u65E5\u671F\u65F6\u95F4\u8303\u56F4 "), unref(widgetType) === unref(WidgetTypeEnums).DATE_RANGE_INNER || unref(widgetType) === unref(WidgetTypeEnums).DATETIME_RANGE_INNER ? (openBlock(), createBlock(unref(DateRange), {
111
125
  key: 6,
112
126
  paramCfg: __props.paramCfg,
113
127
  modelValue: unref(valueCp),
114
- "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => isRef(valueCp) ? valueCp.value = $event : null),
128
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => isRef(valueCp) ? valueCp.value = $event : null),
115
129
  presetVal: unref(presetValCp),
116
- "onUpdate:presetVal": _cache[9] || (_cache[9] = ($event) => isRef(presetValCp) ? presetValCp.value = $event : null)
117
- }, null, 8, ["paramCfg", "modelValue", "presetVal"])) : createCommentVNode("v-if", true), createCommentVNode(" label\u6807\u7B7E\u9009\u62E9 "), unref(widgetType) === unref(WidgetTypeEnums).SELECTLABEL ? (openBlock(), createBlock(unref(SelectLabel), {
130
+ "onUpdate:presetVal": _cache[10] || (_cache[10] = ($event) => isRef(presetValCp) ? presetValCp.value = $event : null),
131
+ customDate: unref(customDateCp),
132
+ "onUpdate:customDate": _cache[11] || (_cache[11] = ($event) => isRef(customDateCp) ? customDateCp.value = $event : null)
133
+ }, null, 8, ["paramCfg", "modelValue", "presetVal", "customDate"])) : createCommentVNode("v-if", true), createCommentVNode(" label\u6807\u7B7E\u9009\u62E9 "), unref(widgetType) === unref(WidgetTypeEnums).SELECTLABEL ? (openBlock(), createBlock(unref(SelectLabel), {
118
134
  key: 7,
119
135
  paramCfg: __props.paramCfg,
120
136
  modelValue: unref(valueCp),
121
- "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => isRef(valueCp) ? valueCp.value = $event : null)
137
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => isRef(valueCp) ? valueCp.value = $event : null)
122
138
  }, null, 8, ["paramCfg", "modelValue"])) : createCommentVNode("v-if", true), createCommentVNode(" \u5F02\u6B65\u6570\u636E\u6811\u5F62\u9009\u62E9\u6846 "), unref(widgetType) === unref(WidgetTypeEnums).SELECTTREEDYNAMIC ? (openBlock(), createBlock(unref(SelectTreeDynamic), {
123
139
  key: 8,
124
140
  paramCfg: __props.paramCfg,
125
141
  modelValue: unref(valueCp),
126
- "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => isRef(valueCp) ? valueCp.value = $event : null)
142
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => isRef(valueCp) ? valueCp.value = $event : null)
127
143
  }, null, 8, ["paramCfg", "modelValue"])) : createCommentVNode("v-if", true)]);
128
144
  };
129
145
  }
@@ -14,6 +14,10 @@ declare const _default: import("vue").DefineComponent<{
14
14
  type: StringConstructor;
15
15
  default: null;
16
16
  };
17
+ customDate: {
18
+ type: StringConstructor;
19
+ default: null;
20
+ };
17
21
  }, {
18
22
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
19
23
  componentCfg: {
@@ -31,11 +35,16 @@ declare const _default: import("vue").DefineComponent<{
31
35
  type: StringConstructor;
32
36
  default: null;
33
37
  };
38
+ customDate: {
39
+ type: StringConstructor;
40
+ default: null;
41
+ };
34
42
  }>> & {
35
43
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
36
44
  "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
45
+ "onUpdate:customDate"?: ((...args: any[]) => any) | undefined;
37
46
  }>>;
38
- emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
47
+ emit: (event: "update:modelValue" | "update:presetVal" | "update:customDate", ...args: any[]) => void;
39
48
  valueCp: import("vue").WritableComputedRef<any>;
40
49
  presetValCp: import("vue").WritableComputedRef<string>;
41
50
  dateType: any;
@@ -213,7 +222,7 @@ declare const _default: import("vue").DefineComponent<{
213
222
  NEXT_YEAR: string;
214
223
  LAST_YEAR: string;
215
224
  };
216
- }, 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<{
225
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal" | "update:customDate")[], "update:modelValue" | "update:presetVal" | "update:customDate", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
217
226
  componentCfg: {
218
227
  type: ObjectConstructor;
219
228
  };
@@ -229,12 +238,18 @@ declare const _default: import("vue").DefineComponent<{
229
238
  type: StringConstructor;
230
239
  default: null;
231
240
  };
241
+ customDate: {
242
+ type: StringConstructor;
243
+ default: null;
244
+ };
232
245
  }>> & {
233
246
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
234
247
  "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
248
+ "onUpdate:customDate"?: ((...args: any[]) => any) | undefined;
235
249
  }, {
236
250
  modelValue: string | number | unknown[];
237
251
  paramCfg: Record<string, any>;
238
252
  presetVal: string;
253
+ customDate: string;
239
254
  }>;
240
255
  export default _default;
@@ -1,10 +1,11 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, createVNode, unref, isRef, createBlock, createCommentVNode } from 'vue';
2
2
  import DatePicker from '../../../../../date-picker/index.js';
3
3
  import { NSelect } from 'naive-ui';
4
- import { WidgetTypeEnums, WidgetOptionEnums, WidgetValEnums } from '../../../types/enums.js';
4
+ import { WidgetOptionEnums, WidgetTypeEnums, WidgetValEnums } from '../../../types/enums.js';
5
5
  import { WidgetDateOptionEnums } from '../../render-widget/helpers/enums.js';
6
6
  import { widgetDateValOptions } from '../../render-widget/helpers/dateExtraMap.js';
7
7
  import { setDateDisabled, setTimeDisabled } from '../../render-widget/helpers/dateDisabled.js';
8
+ import { parseDateShortcuts } from '../../../tool/date.js';
8
9
 
9
10
  const _hoisted_1 = {
10
11
  style: {
@@ -28,9 +29,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
28
29
  presetVal: {
29
30
  type: String,
30
31
  default: null
32
+ },
33
+ customDate: {
34
+ type: String,
35
+ default: null
31
36
  }
32
37
  },
33
- emits: ["update:modelValue", "update:presetVal"],
38
+ emits: ["update:modelValue", "update:presetVal", "update:customDate"],
34
39
  setup(__props, {
35
40
  emit
36
41
  }) {
@@ -45,9 +50,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
45
50
  });
46
51
  const presetValCp = computed({
47
52
  set(val) {
53
+ if ((optionSetting == null ? void 0 : optionSetting.value) === WidgetOptionEnums.CUSTOM_TIME) {
54
+ emit("update:customDate", val);
55
+ return;
56
+ }
48
57
  emit("update:presetVal", val);
49
58
  },
50
59
  get() {
60
+ if ((optionSetting == null ? void 0 : optionSetting.value) === WidgetOptionEnums.CUSTOM_TIME) {
61
+ return props.customDate;
62
+ }
51
63
  return props.presetVal;
52
64
  }
53
65
  });
@@ -75,6 +87,29 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
75
87
  var _a;
76
88
  const optSetting = optionSetting.value || WidgetOptionEnums.ALL;
77
89
  if (compType.value && optSetting) {
90
+ if (optSetting === WidgetOptionEnums.CUSTOM_TIME) {
91
+ const shortList = parseDateShortcuts(props.paramCfg);
92
+ if ((shortList == null ? void 0 : shortList.length) > 0) {
93
+ let options2 = shortList.map((opt) => {
94
+ return {
95
+ label: opt.name,
96
+ value: opt.name
97
+ };
98
+ });
99
+ options2.unshift({
100
+ label: function() {
101
+ var _a2, _b, _c;
102
+ try {
103
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.345")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.345")) || "\u81EA\u5B9A\u4E49\u8F93\u5165";
104
+ } catch (e) {
105
+ return "\u81EA\u5B9A\u4E49\u8F93\u5165";
106
+ }
107
+ }(),
108
+ value: WidgetValEnums.CUSTOM
109
+ });
110
+ return options2;
111
+ }
112
+ }
78
113
  const typeStr = `${compType.value}_${optSetting}`;
79
114
  const useType = WidgetDateOptionEnums[typeStr];
80
115
  const baseList = (_a = widgetDateValOptions[useType]) != null ? _a : [];
@@ -12,6 +12,10 @@ declare const _default: import("vue").DefineComponent<{
12
12
  type: StringConstructor;
13
13
  default: null;
14
14
  };
15
+ customDate: {
16
+ type: StringConstructor;
17
+ default: null;
18
+ };
15
19
  }, {
16
20
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
17
21
  paramCfg: {
@@ -26,11 +30,16 @@ declare const _default: import("vue").DefineComponent<{
26
30
  type: StringConstructor;
27
31
  default: null;
28
32
  };
33
+ customDate: {
34
+ type: StringConstructor;
35
+ default: null;
36
+ };
29
37
  }>> & {
30
38
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
31
39
  "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
40
+ "onUpdate:customDate"?: ((...args: any[]) => any) | undefined;
32
41
  }>>;
33
- emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
42
+ emit: (event: "update:modelValue" | "update:presetVal" | "update:customDate", ...args: any[]) => void;
34
43
  startDate: import("vue").Ref<any>;
35
44
  endDate: import("vue").Ref<any>;
36
45
  valueFormat: import("vue").ComputedRef<string>;
@@ -51,6 +60,7 @@ declare const _default: import("vue").DefineComponent<{
51
60
  value: string;
52
61
  }[]>;
53
62
  presetValCp: import("vue").WritableComputedRef<string>;
63
+ customDateCp: import("vue").WritableComputedRef<string>;
54
64
  handleChange: (val: any, type: 'start' | 'end') => void;
55
65
  isStartDateDisabled: (ts: number) => boolean;
56
66
  timeStartDisabled: (ts: number) => {
@@ -226,7 +236,7 @@ declare const _default: import("vue").DefineComponent<{
226
236
  NEXT_YEAR: string;
227
237
  LAST_YEAR: string;
228
238
  };
229
- }, 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<{
239
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal" | "update:customDate")[], "update:modelValue" | "update:presetVal" | "update:customDate", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
230
240
  paramCfg: {
231
241
  type: ObjectConstructor;
232
242
  default: null;
@@ -239,12 +249,18 @@ declare const _default: import("vue").DefineComponent<{
239
249
  type: StringConstructor;
240
250
  default: null;
241
251
  };
252
+ customDate: {
253
+ type: StringConstructor;
254
+ default: null;
255
+ };
242
256
  }>> & {
243
257
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
244
258
  "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
259
+ "onUpdate:customDate"?: ((...args: any[]) => any) | undefined;
245
260
  }, {
246
261
  modelValue: string | number | unknown[];
247
262
  paramCfg: Record<string, any>;
248
263
  presetVal: string;
264
+ customDate: string;
249
265
  }>;
250
266
  export default _default;
@@ -7,6 +7,7 @@ import { WidgetOptionEnums, WidgetTypeEnums, WidgetValEnums } from '../../../typ
7
7
  import { WidgetDateOptionEnums } from '../../render-widget/helpers/enums.js';
8
8
  import { widgetDateValOptions } from '../../render-widget/helpers/dateExtraMap.js';
9
9
  import { dateDisabledCollect, isStartDateRangeDisabled, isTimeStartRangeDisabled, isEndDateRangeDisabled, isTimeEndRangeDisabled } from '../../render-widget/helpers/dateDisabled.js';
10
+ import { parseDateShortcuts } from '../../../tool/date.js';
10
11
 
11
12
  const _hoisted_1 = {
12
13
  style: {
@@ -39,9 +40,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
39
40
  presetVal: {
40
41
  type: String,
41
42
  default: null
43
+ },
44
+ customDate: {
45
+ type: String,
46
+ default: null
42
47
  }
43
48
  },
44
- emits: ["update:modelValue", "update:presetVal"],
49
+ emits: ["update:modelValue", "update:presetVal", "update:customDate"],
45
50
  setup(__props, {
46
51
  emit
47
52
  }) {
@@ -136,6 +141,29 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
136
141
  var _a;
137
142
  const optSetting = optionSetting.value || WidgetOptionEnums.ALL;
138
143
  if (compType.value && optSetting) {
144
+ if (optSetting === WidgetOptionEnums.CUSTOM_TIME) {
145
+ const shortList = parseDateShortcuts(props.paramCfg);
146
+ if ((shortList == null ? void 0 : shortList.length) > 0) {
147
+ let options2 = shortList.map((opt) => {
148
+ return {
149
+ label: opt.name,
150
+ value: opt.name
151
+ };
152
+ });
153
+ options2.unshift({
154
+ label: function() {
155
+ var _a2, _b, _c;
156
+ try {
157
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.345")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.345")) || "\u81EA\u5B9A\u4E49\u8F93\u5165";
158
+ } catch (e) {
159
+ return "\u81EA\u5B9A\u4E49\u8F93\u5165";
160
+ }
161
+ }(),
162
+ value: WidgetValEnums.CUSTOM
163
+ });
164
+ return options2;
165
+ }
166
+ }
139
167
  const typeStr = `${compType.value}_${optSetting}_RANGE`;
140
168
  const useType = WidgetDateOptionEnums[typeStr];
141
169
  const baseList = (_a = widgetDateValOptions[useType]) != null ? _a : [];
@@ -162,12 +190,27 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
162
190
  });
163
191
  const presetValCp = computed({
164
192
  set(val) {
193
+ if ((optionSetting == null ? void 0 : optionSetting.value) === WidgetOptionEnums.CUSTOM_TIME) {
194
+ emit("update:customDate", val);
195
+ return;
196
+ }
165
197
  emit("update:presetVal", val);
166
198
  },
167
199
  get() {
200
+ if ((optionSetting == null ? void 0 : optionSetting.value) === WidgetOptionEnums.CUSTOM_TIME) {
201
+ return props.customDate;
202
+ }
168
203
  return props.presetVal;
169
204
  }
170
205
  });
206
+ computed({
207
+ set(val) {
208
+ emit("update:customDate", val);
209
+ },
210
+ get() {
211
+ return props.customDate;
212
+ }
213
+ });
171
214
  watch(() => props.modelValue, (val) => {
172
215
  if (val && isString(val) && val.includes("~")) {
173
216
  const [start, end] = val.split("~");
@@ -40,6 +40,7 @@ declare const _default: import("vue").DefineComponent<{
40
40
  SELECT_TIME: string;
41
41
  PAST_TIME: string;
42
42
  FUTURE_TIME: string;
43
+ CUSTOM_TIME: string;
43
44
  };
44
45
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
45
46
  paramCfg: {
@@ -14,6 +14,10 @@ declare const Date: import("vue").DefineComponent<{
14
14
  type: StringConstructor;
15
15
  default: null;
16
16
  };
17
+ customDate: {
18
+ type: StringConstructor;
19
+ default: null;
20
+ };
17
21
  }, {
18
22
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
19
23
  componentCfg: {
@@ -31,11 +35,16 @@ declare const Date: import("vue").DefineComponent<{
31
35
  type: StringConstructor;
32
36
  default: null;
33
37
  };
38
+ customDate: {
39
+ type: StringConstructor;
40
+ default: null;
41
+ };
34
42
  }>> & {
35
43
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
36
44
  "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
45
+ "onUpdate:customDate"?: ((...args: any[]) => any) | undefined;
37
46
  }>>;
38
- emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
47
+ emit: (event: "update:modelValue" | "update:presetVal" | "update:customDate", ...args: any[]) => void;
39
48
  valueCp: import("vue").WritableComputedRef<any>;
40
49
  presetValCp: import("vue").WritableComputedRef<string>;
41
50
  dateType: any;
@@ -213,7 +222,7 @@ declare const Date: import("vue").DefineComponent<{
213
222
  NEXT_YEAR: string;
214
223
  LAST_YEAR: string;
215
224
  };
216
- }, 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<{
225
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal" | "update:customDate")[], "update:modelValue" | "update:presetVal" | "update:customDate", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
217
226
  componentCfg: {
218
227
  type: ObjectConstructor;
219
228
  };
@@ -229,13 +238,19 @@ declare const Date: import("vue").DefineComponent<{
229
238
  type: StringConstructor;
230
239
  default: null;
231
240
  };
241
+ customDate: {
242
+ type: StringConstructor;
243
+ default: null;
244
+ };
232
245
  }>> & {
233
246
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
234
247
  "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
248
+ "onUpdate:customDate"?: ((...args: any[]) => any) | undefined;
235
249
  }, {
236
250
  modelValue: string | number | unknown[];
237
251
  paramCfg: Record<string, any>;
238
252
  presetVal: string;
253
+ customDate: string;
239
254
  }>;
240
255
  declare const InputFilter: import("vue").DefineComponent<{
241
256
  paramCfg: {
@@ -365,6 +380,7 @@ declare const SelectFilter: import("vue").DefineComponent<{
365
380
  SELECT_TIME: string;
366
381
  PAST_TIME: string;
367
382
  FUTURE_TIME: string;
383
+ CUSTOM_TIME: string;
368
384
  };
369
385
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
370
386
  paramCfg: {
@@ -699,6 +715,10 @@ declare const DateRange: import("vue").DefineComponent<{
699
715
  type: StringConstructor;
700
716
  default: null;
701
717
  };
718
+ customDate: {
719
+ type: StringConstructor;
720
+ default: null;
721
+ };
702
722
  }, {
703
723
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
704
724
  paramCfg: {
@@ -713,11 +733,16 @@ declare const DateRange: import("vue").DefineComponent<{
713
733
  type: StringConstructor;
714
734
  default: null;
715
735
  };
736
+ customDate: {
737
+ type: StringConstructor;
738
+ default: null;
739
+ };
716
740
  }>> & {
717
741
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
718
742
  "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
743
+ "onUpdate:customDate"?: ((...args: any[]) => any) | undefined;
719
744
  }>>;
720
- emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
745
+ emit: (event: "update:modelValue" | "update:presetVal" | "update:customDate", ...args: any[]) => void;
721
746
  startDate: import("vue").Ref<any>;
722
747
  endDate: import("vue").Ref<any>;
723
748
  valueFormat: import("vue").ComputedRef<string>;
@@ -738,6 +763,7 @@ declare const DateRange: import("vue").DefineComponent<{
738
763
  value: string;
739
764
  }[]>;
740
765
  presetValCp: import("vue").WritableComputedRef<string>;
766
+ customDateCp: import("vue").WritableComputedRef<string>;
741
767
  handleChange: (val: any, type: "start" | "end") => void;
742
768
  isStartDateDisabled: (ts: number) => boolean;
743
769
  timeStartDisabled: (ts: number) => {
@@ -913,7 +939,7 @@ declare const DateRange: import("vue").DefineComponent<{
913
939
  NEXT_YEAR: string;
914
940
  LAST_YEAR: string;
915
941
  };
916
- }, 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<{
942
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal" | "update:customDate")[], "update:modelValue" | "update:presetVal" | "update:customDate", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
917
943
  paramCfg: {
918
944
  type: ObjectConstructor;
919
945
  default: null;
@@ -926,13 +952,19 @@ declare const DateRange: import("vue").DefineComponent<{
926
952
  type: StringConstructor;
927
953
  default: null;
928
954
  };
955
+ customDate: {
956
+ type: StringConstructor;
957
+ default: null;
958
+ };
929
959
  }>> & {
930
960
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
931
961
  "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
962
+ "onUpdate:customDate"?: ((...args: any[]) => any) | undefined;
932
963
  }, {
933
964
  modelValue: string | number | unknown[];
934
965
  paramCfg: Record<string, any>;
935
966
  presetVal: string;
967
+ customDate: string;
936
968
  }>;
937
969
  declare const SelectLabel: import("vue").DefineComponent<{
938
970
  paramCfg: {
@@ -51,7 +51,8 @@ const useFilterConditions = (filterConditions, selectList, dataType) => {
51
51
  condition: null,
52
52
  value: null,
53
53
  presetVal: null,
54
- dynamicBaseList: []
54
+ dynamicBaseList: [],
55
+ customDate: null
55
56
  });
56
57
  };
57
58
  const delFilterCondition = (index) => {