cnhis-design-vue 3.3.3-release.12 → 3.3.3-release.14

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 (128) hide show
  1. package/README.md +87 -87
  2. package/es/components/button-print/index.d.ts +60 -0
  3. package/es/components/button-print/src/ButtonPrint.vue.d.ts +60 -0
  4. package/es/components/button-print/src/ButtonPrint.vue2.js +6 -0
  5. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +18 -0
  6. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +33 -4
  7. package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +18 -0
  8. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +30 -4
  9. package/es/components/button-print/src/utils/print.d.ts +6 -4
  10. package/es/components/button-print/src/utils/print.js +176 -4
  11. package/es/components/calendar/src/Calendar.vue2.js +15 -5
  12. package/es/components/classification/index.d.ts +500 -5
  13. package/es/components/classification/src/components/search-filter/index.vue.d.ts +500 -5
  14. package/es/components/classification/src/components/set-classification/index.vue.d.ts +500 -5
  15. package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
  16. package/es/components/classification/src/index.vue.d.ts +500 -5
  17. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +3 -2
  18. package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +1 -1
  19. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +58 -15
  20. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +4 -3
  21. package/es/components/field-set/src/FieldColor.vue.d.ts +4 -4
  22. package/es/components/field-set/src/FieldFilter.vue.d.ts +4 -4
  23. package/es/components/field-set/src/FieldSet.vue.d.ts +5 -5
  24. package/es/components/field-set/src/components/table-row.vue.d.ts +4 -4
  25. package/es/components/field-set/src/types/index.d.ts +1 -1
  26. package/es/components/form-render/src/components/renderer/date.d.ts +3 -1
  27. package/es/components/form-render/src/components/renderer/date.js +12 -10
  28. package/es/components/form-render/src/components/renderer/radio_checkbox.js +9 -3
  29. package/es/components/form-render/style/index.css +1 -1
  30. package/es/components/iho-chat/index.d.ts +41 -50
  31. package/es/components/iho-chat/src/Index.vue.d.ts +41 -50
  32. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +6 -2
  33. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  34. package/es/components/iho-chat/src/components/ImageLightbox.vue2.js +1 -1
  35. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +29 -28
  36. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +239 -94
  37. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  38. package/es/components/iho-chat/src/components/Video.vue.d.ts +14 -24
  39. package/es/components/iho-chat/src/components/Video.vue2.js +35 -40
  40. package/es/components/iho-chat/src/hooks/useVideo.d.ts +54 -10
  41. package/es/components/iho-chat/src/hooks/useVideo.js +420 -44
  42. package/es/components/iho-chat/src/utils/index.d.ts +1 -0
  43. package/es/components/iho-chat/src/utils/index.js +7 -1
  44. package/es/components/iho-chat/style/index.css +1 -1
  45. package/es/components/index.css +1 -1
  46. package/es/components/index.d.ts +2 -0
  47. package/es/components/index.js +2 -1
  48. package/es/components/keyboard/index.d.ts +9 -0
  49. package/es/components/keyboard/src/Keyboard.vue.d.ts +9 -0
  50. package/es/components/keyboard/src/Keyboard.vue2.js +33 -9
  51. package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +4 -0
  52. package/es/components/keyboard/src/components/NumberPanel.vue2.js +50 -17
  53. package/es/components/keyboard/src/types.d.ts +17 -0
  54. package/es/components/keyboard/src/types.js +1 -0
  55. package/es/components/scale-view/index.d.ts +13 -0
  56. package/es/components/scale-view/src/ScaleView.vue.d.ts +13 -0
  57. package/es/components/scale-view/src/hooks/scaleview-computed.js +2 -1
  58. package/es/components/scale-view/src/hooks/scaleview-props.d.ts +4 -0
  59. package/es/components/scale-view/src/hooks/scaleview-props.js +4 -0
  60. package/es/components/select-person/src/SelectPerson.vue2.js +8 -1
  61. package/es/components/table-filter/index.js +1 -1
  62. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +490 -1
  63. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +8 -2
  64. package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.d.ts +226 -0
  65. package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.js +6 -0
  66. package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue2.js +156 -0
  67. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +238 -0
  68. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +43 -4
  69. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +239 -1
  70. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +51 -8
  71. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +477 -1
  72. package/es/components/table-filter/src/components/classify-filter/helpers/options.d.ts +5 -1
  73. package/es/components/table-filter/src/components/classify-filter/helpers/options.js +49 -2
  74. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +500 -5
  75. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +13 -6
  76. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +1 -1
  77. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +1 -1
  78. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +1 -1
  79. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +3 -3
  80. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +32 -4
  81. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +1 -0
  82. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +23 -2
  83. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +3 -3
  84. package/es/components/table-filter/src/hooks/useAdvanced.js +5 -4
  85. package/es/components/table-filter/src/tool/baseOptions.js +8 -1
  86. package/es/components/table-filter/src/types/enums.d.ts +4 -0
  87. package/es/components/table-filter/src/types/enums.js +5 -1
  88. package/es/components/vertify/index.d.ts +1 -0
  89. package/es/components/vertify/index.js +1 -0
  90. package/es/components/vertify/src/components/IdentityVerification.vue.d.ts +89 -0
  91. package/es/components/vertify/src/components/IdentityVerification.vue.js +6 -0
  92. package/es/components/vertify/src/components/IdentityVerification.vue2.js +256 -0
  93. package/es/components/vertify/src/utils/dialog.d.ts +7 -0
  94. package/es/components/vertify/src/utils/dialog.js +73 -0
  95. package/es/components/vertify/src/utils/index.d.ts +11 -0
  96. package/es/components/vertify/src/utils/index.js +24 -0
  97. package/es/components/vod-chunk-upload/index.d.ts +13 -0
  98. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +19 -2
  99. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +104 -75
  100. package/es/components/vod-chunk-upload/src/hooks/upload-computed.d.ts +1 -0
  101. package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +20 -3
  102. package/es/components/vod-chunk-upload/src/hooks/upload-data.d.ts +4 -0
  103. package/es/components/vod-chunk-upload/src/hooks/upload-data.js +6 -2
  104. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +13 -0
  105. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +6 -1
  106. package/es/components/vod-chunk-upload/style/index.css +1 -1
  107. package/es/env.d.ts +25 -25
  108. package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
  109. package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
  110. package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
  111. package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
  112. package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
  113. package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
  114. package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
  115. package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
  116. package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
  117. package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
  118. package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
  119. package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
  120. package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
  121. package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
  122. package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
  123. package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
  124. package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
  125. package/es/shared/hooks/useDateTime.js +1 -1
  126. package/es/shared/package.json.js +2 -2
  127. package/es/shared/utils/fabricjs/index.js +1 -1
  128. package/package.json +4 -4
@@ -2,10 +2,10 @@ import { createElementVNode, defineComponent, useAttrs, reactive, ref, provide,
2
2
  import { useMessage, NSpin, NInput, NIcon, NButton, NSelect, NTooltip } from 'naive-ui';
3
3
  import { CloseOutline, AddOutline, AddCircleSharp } from '@vicons/ionicons5';
4
4
  import ValueCfg from './ValueCfg.vue.js';
5
- import { ConditionEnums, DataTypeEnums } from '../../types/enums.js';
5
+ import { ConditionEnums, DataTypeEnums, WidgetTypeEnums } from '../../types/enums.js';
6
6
  import { useDisplayCategory } from './hooks/useDisplayCategory.js';
7
7
  import { useFilterConditions } from './hooks/useFilterConditions.js';
8
- import { conditionOptions } from './helpers/options.js';
8
+ import { dateConditionOptions, baseConditionOptions } from './helpers/options.js';
9
9
  import { InjectionClassifyFilterList } from '../../constants/index.js';
10
10
 
11
11
  const _hoisted_1 = {
@@ -93,6 +93,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
93
93
  const menuProps = {
94
94
  class: "classify-fieldkey-popover"
95
95
  };
96
+ const specialDateRange = [ConditionEnums.IN_THE_PAST, ConditionEnums.IN_THE_FUTURE, ConditionEnums.IN_THE_PAST_DI, ConditionEnums.IN_THE_FUTURE_DI];
96
97
  const $attrs = useAttrs();
97
98
  const FormState = reactive({
98
99
  className: "",
@@ -126,6 +127,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
126
127
  initFilterConditions,
127
128
  getRawFilterConditions
128
129
  } = useFilterConditions(toRef(FormState, "filterConditions"), props.searchFieldList, DataTypeEnums.API);
130
+ const dateTypeList = [WidgetTypeEnums.DATE_RANGE_INNER, WidgetTypeEnums.DATETIME_RANGE_INNER];
131
+ function getOptions(key) {
132
+ const item = getParamCfg(key);
133
+ return dateTypeList.includes(item.type) ? dateConditionOptions : baseConditionOptions;
134
+ }
129
135
  function handleEditDisplayCategory(item) {
130
136
  item.disabled = false;
131
137
  setTimeout(() => {
@@ -203,7 +209,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
203
209
  presetVal,
204
210
  customDate
205
211
  }) => {
206
- return !key || !condition || condition === ConditionEnums.EQUAL && !value && !presetVal && !customDate;
212
+ return !key || !condition || condition === ConditionEnums.EQUAL && !value && !presetVal && !customDate || specialDateRange.includes(condition) && (!value || !presetVal);
207
213
  });
208
214
  if (isEmpty) {
209
215
  $message.warning(function() {
@@ -381,7 +387,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
381
387
  value: item.condition,
382
388
  to: "body",
383
389
  filterable: "",
384
- options: unref(conditionOptions),
390
+ options: getOptions(item.key),
385
391
  "onUpdate:value": ($event) => unref(updateCondition)(index, $event)
386
392
  }, null, 8, ["value", "options", "onUpdate:value"])) : createCommentVNode("v-if", true), createCommentVNode(function() {
387
393
  var _a, _b, _c;
@@ -390,7 +396,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
390
396
  } catch (e) {
391
397
  return "\u81EA\u5B9A\u4E49";
392
398
  }
393
- }()), item.key && item.condition && item.condition !== unref(ConditionEnums).NULL ? (openBlock(), createBlock(ValueCfg, {
399
+ }()), item.key && item.condition && item.condition !== unref(ConditionEnums).NULL && item.condition !== unref(ConditionEnums).NOT_NULL ? (openBlock(), createBlock(ValueCfg, {
394
400
  key: 1,
395
401
  modelValue: item.value,
396
402
  "onUpdate:modelValue": ($event) => item.value = $event,
@@ -400,8 +406,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
400
406
  "onUpdate:isAccurate": ($event) => item.isAccurateSearch = $event,
401
407
  customDate: item.customDate,
402
408
  "onUpdate:customDate": ($event) => item.customDate = $event,
409
+ item,
403
410
  "param-cfg": unref(getParamCfg)(item.key)
404
- }, null, 8, ["modelValue", "onUpdate:modelValue", "presetVal", "onUpdate:presetVal", "isAccurate", "onUpdate:isAccurate", "customDate", "onUpdate:customDate", "param-cfg"])) : createCommentVNode("v-if", true), createVNode(unref(NTooltip), {
411
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "presetVal", "onUpdate:presetVal", "isAccurate", "onUpdate:isAccurate", "customDate", "onUpdate:customDate", "item", "param-cfg"])) : createCommentVNode("v-if", true), createVNode(unref(NTooltip), {
405
412
  title: function() {
406
413
  var _a, _b, _c;
407
414
  try {
@@ -315,7 +315,7 @@ declare const _default: import("vue").DefineComponent<{
315
315
  value: string;
316
316
  placeholder: string;
317
317
  unit: string;
318
- clearable: boolean;
319
318
  valueFormat: string;
319
+ clearable: boolean;
320
320
  }>;
321
321
  export default _default;
@@ -225,7 +225,7 @@ declare const _default: import("vue").DefineComponent<{
225
225
  type: ITypeDate;
226
226
  value: string;
227
227
  placeholder: string;
228
- clearable: boolean;
229
228
  valueFormat: string;
229
+ clearable: boolean;
230
230
  }>;
231
231
  export default _default;
@@ -336,8 +336,8 @@ declare const _default: import("vue").DefineComponent<{
336
336
  type: ITypeDate;
337
337
  value: string;
338
338
  unit: string;
339
- clearable: boolean;
340
339
  valueFormat: string;
340
+ clearable: boolean;
341
341
  startPlaceholder: string;
342
342
  endPlaceholder: string;
343
343
  }>;
@@ -420,8 +420,8 @@ declare const DateInner: import("vue").DefineComponent<{
420
420
  value: string;
421
421
  placeholder: string;
422
422
  unit: string;
423
- clearable: boolean;
424
423
  valueFormat: string;
424
+ clearable: boolean;
425
425
  }>;
426
426
  declare const DateOut: import("vue").DefineComponent<{
427
427
  componentCfg: {
@@ -647,8 +647,8 @@ declare const DateOut: import("vue").DefineComponent<{
647
647
  type: "date" | "datetime";
648
648
  value: string;
649
649
  placeholder: string;
650
- clearable: boolean;
651
650
  valueFormat: string;
651
+ clearable: boolean;
652
652
  }>;
653
653
  declare const DateRangeInner: import("vue").DefineComponent<{
654
654
  componentCfg: {
@@ -985,8 +985,8 @@ declare const DateRangeInner: import("vue").DefineComponent<{
985
985
  type: "date" | "datetime";
986
986
  value: string;
987
987
  unit: string;
988
- clearable: boolean;
989
988
  valueFormat: string;
989
+ clearable: boolean;
990
990
  startPlaceholder: string;
991
991
  endPlaceholder: string;
992
992
  }>;
@@ -595,8 +595,22 @@ const baseDateRangeInner = {
595
595
  }(),
596
596
  con: WidgetValEnums.PAST_HALF_YEAR
597
597
  }, {
598
- name: "\u8FD1\u4E00\u5E74",
599
- title: "\u8FD1\u4E00\u5E74",
598
+ name: function() {
599
+ var _a, _b, _c;
600
+ try {
601
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.667")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.667")) || "\u8FD1\u4E00\u5E74";
602
+ } catch (e) {
603
+ return "\u8FD1\u4E00\u5E74";
604
+ }
605
+ }(),
606
+ title: function() {
607
+ var _a, _b, _c;
608
+ try {
609
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.667")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.667")) || "\u8FD1\u4E00\u5E74";
610
+ } catch (e) {
611
+ return "\u8FD1\u4E00\u5E74";
612
+ }
613
+ }(),
600
614
  con: WidgetValEnums.PAST_YEAR
601
615
  }],
602
616
  [WidgetOptionEnums.PAST_TIME]: [{
@@ -834,8 +848,22 @@ const baseDateRangeInner = {
834
848
  }(),
835
849
  con: WidgetValEnums.PAST_HALF_YEAR
836
850
  }, {
837
- name: "\u8FD1\u4E00\u5E74",
838
- title: "\u8FD1\u4E00\u5E74",
851
+ name: function() {
852
+ var _a, _b, _c;
853
+ try {
854
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.667")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.667")) || "\u8FD1\u4E00\u5E74";
855
+ } catch (e) {
856
+ return "\u8FD1\u4E00\u5E74";
857
+ }
858
+ }(),
859
+ title: function() {
860
+ var _a, _b, _c;
861
+ try {
862
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.667")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.667")) || "\u8FD1\u4E00\u5E74";
863
+ } catch (e) {
864
+ return "\u8FD1\u4E00\u5E74";
865
+ }
866
+ }(),
839
867
  con: WidgetValEnums.PAST_YEAR
840
868
  }],
841
869
  [WidgetOptionEnums.FUTURE_TIME]: [{
@@ -1,3 +1,4 @@
1
1
  export declare const presetValToTimestamp: (presetVal: string, format?: string, isOrigin?: boolean) => any;
2
2
  export declare const formatDateRangeInfo: (key: string, format?: string, optionSetting?: string, isOrigin?: boolean) => string | number | any[];
3
+ export declare const formatSpecialDateRange: (conObj: any, format?: string) => string;
3
4
  export declare const presetValToDateRangestr: (presetVal: string, format?: string) => string | null;
@@ -1,5 +1,5 @@
1
1
  import { DateRangeOutDefEnums, DatePresetValEnums, DateRangeInnerValEnums } from '../enums.js';
2
- import { WidgetOptionEnums } from '../../../types/enums.js';
2
+ import { WidgetOptionEnums, ConditionEnums } from '../../../types/enums.js';
3
3
  import { dateDisabledCollect } from './dateDisabled.js';
4
4
  import moment from 'moment';
5
5
 
@@ -142,6 +142,27 @@ const formatDateRangeInfo = (key, format = "x", optionSetting = WidgetOptionEnum
142
142
  }
143
143
  return [];
144
144
  };
145
+ const formatSpecialDateRange = (conObj, format = "x") => {
146
+ if (Array.isArray(conObj.value) && conObj.con && conObj.unit) {
147
+ const num = Number(conObj.value);
148
+ const unit = conObj.unit.toLowerCase();
149
+ switch (conObj.con) {
150
+ case ConditionEnums.IN_THE_PAST: {
151
+ return `${moment().subtract(num, unit).startOf("day").format(format)} ~ ${moment().format(format)}`;
152
+ }
153
+ case ConditionEnums.IN_THE_FUTURE: {
154
+ return `${moment().format(format)} ~ ${moment().add(num, unit).endOf("day").format(format)}`;
155
+ }
156
+ case ConditionEnums.IN_THE_PAST_DI: {
157
+ return `${moment().subtract(num, unit).startOf("day").format(format)} ~ ${moment().subtract(num, unit).endOf("day").format(format)}`;
158
+ }
159
+ case ConditionEnums.IN_THE_FUTURE_DI: {
160
+ return `${moment().add(num, unit).startOf("day").format(format)} ~ ${moment().add(num, unit).endOf("day").format(format)}`;
161
+ }
162
+ }
163
+ }
164
+ return "";
165
+ };
145
166
  const dateRangeOutMap = new Map([...dateRangeMapInner, [DateRangeOutDefEnums.PAST_WEEK, () => [moment().subtract(6, "days").startOf("day"), moment().endOf("day")]], [DateRangeOutDefEnums.PAST_MONTH, () => [moment().subtract(1, "months").startOf("day"), moment().endOf("day")]], [DateRangeOutDefEnums.PAST_HALF_YEAR, () => [moment().subtract(6, "months").startOf("day"), moment().endOf("day")]]]);
146
167
  const presetValToDateRangestr = (presetVal, format = "x") => {
147
168
  if (!dateRangeOutMap.has(presetVal))
@@ -155,4 +176,4 @@ const presetValToDateRangestr = (presetVal, format = "x") => {
155
176
  return null;
156
177
  };
157
178
 
158
- export { formatDateRangeInfo, presetValToDateRangestr, presetValToTimestamp };
179
+ export { formatDateRangeInfo, formatSpecialDateRange, presetValToDateRangestr, presetValToTimestamp };
@@ -735,8 +735,8 @@ export declare const WidgetCfgMaps: Map<string, {
735
735
  value: string;
736
736
  placeholder: string;
737
737
  unit: string;
738
- clearable: boolean;
739
738
  valueFormat: string;
739
+ clearable: boolean;
740
740
  }>;
741
741
  props: {
742
742
  type: string;
@@ -976,8 +976,8 @@ export declare const WidgetCfgMaps: Map<string, {
976
976
  type: "date" | "datetime";
977
977
  value: string;
978
978
  placeholder: string;
979
- clearable: boolean;
980
979
  valueFormat: string;
980
+ clearable: boolean;
981
981
  }>;
982
982
  props: {
983
983
  type: string;
@@ -1328,8 +1328,8 @@ export declare const WidgetCfgMaps: Map<string, {
1328
1328
  type: "date" | "datetime";
1329
1329
  value: string;
1330
1330
  unit: string;
1331
- clearable: boolean;
1332
1331
  valueFormat: string;
1332
+ clearable: boolean;
1333
1333
  startPlaceholder: string;
1334
1334
  endPlaceholder: string;
1335
1335
  }>;
@@ -1,6 +1,6 @@
1
- import { WidgetOptionEnums, WidgetTypeEnums, selectModeEnums, WidgetValEnums } from '../types/enums.js';
1
+ import { WidgetOptionEnums, ConditionEnums, WidgetTypeEnums, selectModeEnums, WidgetValEnums } from '../types/enums.js';
2
2
  import { isString } from 'lodash-es';
3
- import { formatDateRangeInfo, presetValToTimestamp } from '../components/render-widget/helpers/presetValToTimestamp.js';
3
+ import { formatSpecialDateRange, formatDateRangeInfo, presetValToTimestamp } from '../components/render-widget/helpers/presetValToTimestamp.js';
4
4
  import { DatePresetValEnums } from '../components/render-widget/enums.js';
5
5
  import { parseDateShortcuts } from '../tool/date.js';
6
6
  import moment from 'moment';
@@ -13,6 +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
17
  const limitValue = 10;
17
18
  function useAdvanced() {
18
19
  function transformDataToFieldCfg(advancedFilterCfg) {
@@ -153,10 +154,10 @@ function useAdvanced() {
153
154
  }
154
155
  if (conObj.unit && conObj.unit !== DatePresetValEnums.CUSTOM) {
155
156
  if (curQuickSearchObj.type === WidgetTypeEnums.DATE) {
156
- curValue = curQuickSearchObj.rangeFilter ? formatDateRangeInfo(conObj.unit, "YYYY-MM-DD", curQuickSearchObj.optionType) : presetValToTimestamp(conObj.unit, "YYYY-MM-DD");
157
+ curValue = curQuickSearchObj.rangeFilter ? specialDateRange.includes(conObj.con) ? formatSpecialDateRange(conObj, "YYYY-MM-DD") : formatDateRangeInfo(conObj.unit, "YYYY-MM-DD", curQuickSearchObj.optionType) : presetValToTimestamp(conObj.unit, "YYYY-MM-DD");
157
158
  }
158
159
  if (curQuickSearchObj.type === WidgetTypeEnums.DATE_TIME) {
159
- curValue = curQuickSearchObj.rangeFilter ? formatDateRangeInfo(conObj.unit, "YYYY-MM-DD HH:mm:ss", curQuickSearchObj.optionType) : presetValToTimestamp(conObj.unit, "YYYY-MM-DD HH:mm:ss");
160
+ curValue = curQuickSearchObj.rangeFilter ? specialDateRange.includes(conObj.con) ? formatSpecialDateRange(conObj, "YYYY-MM-DD HH:mm:ss") : formatDateRangeInfo(conObj.unit, "YYYY-MM-DD HH:mm:ss", curQuickSearchObj.optionType) : presetValToTimestamp(conObj.unit, "YYYY-MM-DD HH:mm:ss");
160
161
  }
161
162
  }
162
163
  if (conObj.customDate && conObj.unit === DatePresetValEnums.CUSTOM) {
@@ -181,7 +181,14 @@ const widgetDateRangeOptions = [{
181
181
  }(),
182
182
  value: DateRangeOutDefEnums.PAST_HALF_YEAR
183
183
  }, {
184
- label: "\u8FD1\u4E00\u5E74",
184
+ label: function() {
185
+ var _a, _b, _c;
186
+ try {
187
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.667")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.667")) || "\u8FD1\u4E00\u5E74";
188
+ } catch (e) {
189
+ return "\u8FD1\u4E00\u5E74";
190
+ }
191
+ }(),
185
192
  value: DateRangeOutDefEnums.PAST_YEAR
186
193
  }];
187
194
 
@@ -81,4 +81,8 @@ export declare const WidgetValEnums: {
81
81
  export declare const ConditionEnums: {
82
82
  NULL: string;
83
83
  EQUAL: string;
84
+ IN_THE_PAST: string;
85
+ IN_THE_FUTURE: string;
86
+ IN_THE_PAST_DI: string;
87
+ IN_THE_FUTURE_DI: string;
84
88
  };
@@ -80,7 +80,11 @@ const WidgetValEnums = {
80
80
  };
81
81
  const ConditionEnums = {
82
82
  NULL: "NULL",
83
- EQUAL: "EQ"
83
+ EQUAL: "EQ",
84
+ IN_THE_PAST: "IN_THE_PAST",
85
+ IN_THE_FUTURE: "IN_THE_FUTURE",
86
+ IN_THE_PAST_DI: "IN_THE_PAST_DI",
87
+ IN_THE_FUTURE_DI: "IN_THE_FUTURE_DI"
84
88
  };
85
89
 
86
90
  export { ConditionEnums, DataTypeEnums, FieldTypeEnums, MappingMethodEnums, WidgetOptionEnums, WidgetTypeEnums, WidgetValEnums, selectModeEnums };
@@ -0,0 +1 @@
1
+ export * from './src/utils';
@@ -0,0 +1 @@
1
+ export { vertify } from './src/utils/index.js';
@@ -0,0 +1,89 @@
1
+ import { FormRules } from 'naive-ui';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ verifyUser: {
4
+ type: FunctionConstructor;
5
+ required: false;
6
+ default: () => Promise<void>;
7
+ };
8
+ identityVerificationTitle: {
9
+ type: StringConstructor;
10
+ required: false;
11
+ default: string;
12
+ };
13
+ token: {
14
+ type: StringConstructor;
15
+ required: true;
16
+ default: string;
17
+ };
18
+ modelValue: {
19
+ type: BooleanConstructor;
20
+ required: true;
21
+ };
22
+ }, {
23
+ loginCheckUrl: string;
24
+ DEFAULT_FORM: {
25
+ account: string;
26
+ password: string;
27
+ };
28
+ message: import("naive-ui").MessageApi;
29
+ props: {
30
+ verifyUser: Function;
31
+ identityVerificationTitle: string;
32
+ token: string;
33
+ modelValue: boolean;
34
+ };
35
+ emit: (event: "close" | "success" | "update:modelValue" | "afterLeaveComponent", ...args: any[]) => void;
36
+ form: {
37
+ account: string;
38
+ password: string;
39
+ };
40
+ rules: FormRules;
41
+ style: {
42
+ width: string;
43
+ };
44
+ formRef: import("vue").Ref<{
45
+ validate: import("naive-ui/es/form/src/interface").FormValidate;
46
+ restoreValidation: () => void;
47
+ } | null>;
48
+ loading: import("vue").Ref<boolean>;
49
+ handleClickClose: () => void;
50
+ handleAfterLeave: () => void;
51
+ submitLoginData: () => Promise<false | undefined>;
52
+ handleValidate: () => void;
53
+ NSpace: any;
54
+ NButton: any;
55
+ NModal: any;
56
+ NForm: any;
57
+ NFormItem: any;
58
+ NInput: any;
59
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "success" | "update:modelValue" | "afterLeaveComponent")[], "close" | "success" | "update:modelValue" | "afterLeaveComponent", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
60
+ verifyUser: {
61
+ type: FunctionConstructor;
62
+ required: false;
63
+ default: () => Promise<void>;
64
+ };
65
+ identityVerificationTitle: {
66
+ type: StringConstructor;
67
+ required: false;
68
+ default: string;
69
+ };
70
+ token: {
71
+ type: StringConstructor;
72
+ required: true;
73
+ default: string;
74
+ };
75
+ modelValue: {
76
+ type: BooleanConstructor;
77
+ required: true;
78
+ };
79
+ }>> & {
80
+ onSuccess?: ((...args: any[]) => any) | undefined;
81
+ onClose?: ((...args: any[]) => any) | undefined;
82
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
83
+ onAfterLeaveComponent?: ((...args: any[]) => any) | undefined;
84
+ }, {
85
+ token: string;
86
+ verifyUser: Function;
87
+ identityVerificationTitle: string;
88
+ }>;
89
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import _sfc_main from './IdentityVerification.vue2.js';
2
+ import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.js';
3
+
4
+ var IdentityVerification = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "IdentityVerification.vue"]]);
5
+
6
+ export { IdentityVerification as default };