cnhis-design-vue 3.1.46-beta.8 → 3.1.46-release.0

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 (168) hide show
  1. package/README.md +87 -87
  2. package/es/components/base-search/index.d.ts +8 -17
  3. package/es/components/base-search/src/index.vue.d.ts +8 -17
  4. package/es/components/base-search/src/index.vue2.js +1 -1
  5. package/es/components/base-search/style/index.css +1 -1
  6. package/es/components/classification/index.d.ts +18 -219
  7. package/es/components/classification/src/components/search-filter/index.vue.d.ts +18 -219
  8. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  9. package/es/components/classification/src/components/set-classification/index.vue.d.ts +18 -219
  10. package/es/components/classification/src/index.vue.d.ts +18 -219
  11. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  12. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  13. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  14. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  15. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
  16. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  17. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  18. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
  19. package/es/components/fabric-chart/src/utils/index.d.ts +0 -1
  20. package/es/components/fabric-chart/src/utils/index.js +1 -1
  21. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  22. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +1 -1
  23. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -1
  24. package/es/components/index.css +1 -1
  25. package/es/components/index.d.ts +1 -2
  26. package/es/components/index.js +1 -1
  27. package/es/components/quick-search/index.d.ts +7 -21
  28. package/es/components/quick-search/src/index.vue.d.ts +7 -21
  29. package/es/components/quick-search/src/index.vue2.js +1 -1
  30. package/es/components/quick-search/style/index.css +1 -1
  31. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  32. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  33. package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
  34. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +17 -219
  35. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
  36. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +1 -17
  37. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -1
  38. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +0 -19
  39. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -1
  40. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +11 -178
  41. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
  42. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +5 -1
  43. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue2.js +1 -1
  44. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +1 -2
  45. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -1
  46. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +17 -217
  47. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
  48. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +17 -219
  49. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
  50. package/es/components/table-filter/src/components/render-widget/basicData.d.ts +4 -0
  51. package/es/components/table-filter/src/components/render-widget/basicData.js +1 -0
  52. package/es/components/table-filter/src/components/render-widget/components/{DateOut.vue.d.ts → Date.vue.d.ts} +2 -21
  53. package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -0
  54. package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +1 -0
  55. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +8 -117
  56. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
  57. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +9 -13
  58. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -1
  59. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +6 -8
  60. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -1
  61. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +6 -7
  62. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -1
  63. package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +25 -19
  64. package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -1
  65. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +36 -611
  66. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
  67. package/es/components/table-filter/src/components/render-widget/enums.d.ts +3 -10
  68. package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
  69. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +6 -2
  70. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -1
  71. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +3 -4
  72. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  73. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +35 -639
  74. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  75. package/es/components/table-filter/src/constants/index.d.ts +1 -3
  76. package/es/components/table-filter/src/constants/index.js +1 -1
  77. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +4 -9
  78. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  79. package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +3 -3
  80. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  81. package/es/components/table-filter/src/tool/baseOptions.d.ts +8 -0
  82. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  83. package/es/components/table-filter/src/tool/generateDefOptions.d.ts +7 -0
  84. package/es/components/table-filter/src/tool/generateDefOptions.js +1 -0
  85. package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
  86. package/es/components/table-filter/src/tool/transformData.js +1 -1
  87. package/es/components/table-filter/src/types/enums.d.ts +0 -3
  88. package/es/components/table-filter/src/types/enums.js +1 -1
  89. package/es/components/table-filter/src/types/index.d.ts +0 -7
  90. package/es/env.d.ts +25 -25
  91. package/es/shared/assets/img/failure.png.js +1 -1
  92. package/es/shared/assets/img/no-permission.png.js +1 -1
  93. package/es/shared/assets/img/nodata.png.js +1 -1
  94. package/es/shared/assets/img/notfound.png.js +1 -1
  95. package/es/shared/assets/img/qr.png.js +1 -1
  96. package/es/shared/assets/img/success.png.js +1 -1
  97. package/es/shared/assets/img/video.png.js +1 -1
  98. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  99. package/es/shared/assets/img/xb_big.png.js +1 -1
  100. package/es/shared/assets/img/xb_small.png.js +1 -1
  101. package/es/shared/package.json.js +1 -1
  102. package/es/shared/utils/fabricjs/index.js +1 -1
  103. package/package.json +2 -2
  104. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  105. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  106. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  107. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  108. package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +0 -77
  109. package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +0 -93
  110. package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +0 -3
  111. package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +0 -3
  112. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +0 -3
  113. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +0 -3
  114. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +0 -3
  115. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/dist/index.d.ts +0 -3
  116. package/es/components/iho-table/src/utils/dist/index.d.ts +0 -44
  117. package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +0 -36
  118. package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +0 -36
  119. package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +0 -82
  120. package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +0 -57
  121. package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +0 -57
  122. package/es/components/table-export-field/index.d.ts +0 -967
  123. package/es/components/table-export-field/index.js +0 -1
  124. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -192
  125. package/es/components/table-export-field/src/components/ExportModal.vue.js +0 -1
  126. package/es/components/table-export-field/src/components/ExportModal.vue2.js +0 -1
  127. package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +0 -687
  128. package/es/components/table-export-field/src/components/SaveProjectModal.vue.js +0 -1
  129. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +0 -1
  130. package/es/components/table-export-field/src/constants/index.d.ts +0 -3
  131. package/es/components/table-export-field/src/constants/index.js +0 -1
  132. package/es/components/table-export-field/src/hooks/useAsyncData.d.ts +0 -6
  133. package/es/components/table-export-field/src/hooks/useAsyncData.js +0 -1
  134. package/es/components/table-export-field/src/index.vue.d.ts +0 -968
  135. package/es/components/table-export-field/src/index.vue.js +0 -1
  136. package/es/components/table-export-field/src/index.vue2.js +0 -1
  137. package/es/components/table-export-field/src/types/index.d.ts +0 -6
  138. package/es/components/table-export-field/src/types/index.js +0 -1
  139. package/es/components/table-export-field/style/index.css +0 -1
  140. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +0 -231
  141. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.js +0 -1
  142. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +0 -1
  143. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.js +0 -1
  144. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +0 -1
  145. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +0 -71
  146. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.js +0 -1
  147. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +0 -1
  148. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +0 -223
  149. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.js +0 -1
  150. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +0 -1
  151. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +0 -158
  152. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.js +0 -1
  153. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +0 -1
  154. package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.d.ts +0 -27
  155. package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.js +0 -1
  156. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.d.ts +0 -55
  157. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +0 -1
  158. package/es/components/table-filter/src/components/render-widget/helpers/enums.d.ts +0 -56
  159. package/es/components/table-filter/src/components/render-widget/helpers/enums.js +0 -1
  160. package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.d.ts +0 -4
  161. package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +0 -1
  162. package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.d.ts +0 -4
  163. package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.js +0 -1
  164. package/es/components/table-filter/src/hooks/useAsyncData.d.ts +0 -4
  165. package/es/components/table-filter/src/hooks/useAsyncData.js +0 -1
  166. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  167. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  168. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -1 +1 @@
1
- import{defineAsyncComponent as e}from"vue";const t=e((()=>import("./CheckboxGroup.vue.js"))),r=e((()=>import("./InputNumberGroup.vue.js"))),u=e((()=>import("./DateInner.vue.js"))),o=e((()=>import("./DateOut.vue.js"))),p=e((()=>import("./DateRangeInner.vue.js"))),m=e((()=>import("./DateRangeOut.vue.js"))),i=e((()=>import("./LabelInner.vue.js"))),n=e((()=>import("./LabelOut.vue.js"))),s=e((()=>import("./Select.vue.js"))),v=e((()=>import("./SelectDynamic.vue.js")));export{t as CheckboxGroup,u as DateInner,o as DateOut,p as DateRangeInner,m as DateRangeOut,r as InputNumberGroup,i as LabelInner,n as LabelOut,s as Select,v as SelectDynamic};
1
+ import{defineAsyncComponent as e}from"vue";const t=e((()=>import("./CheckboxGroup.vue.js"))),r=e((()=>import("./InputNumberGroup.vue.js"))),o=e((()=>import("./Date.vue.js"))),u=e((()=>import("./DateRangeInner.vue.js"))),p=e((()=>import("./DateRangeOut.vue.js"))),m=e((()=>import("./LabelInner.vue.js"))),i=e((()=>import("./LabelOut.vue.js"))),s=e((()=>import("./Select.vue.js")));export{t as CheckboxGroup,o as Date,u as DateRangeInner,p as DateRangeOut,r as InputNumberGroup,m as LabelInner,i as LabelOut,s as Select};
@@ -14,10 +14,6 @@ export declare const DatePresetValEnums: {
14
14
  WEEK_END: string;
15
15
  MONTH_START: string;
16
16
  MONTH_END: string;
17
- QUARTER_START: string;
18
- QUARTER_END: string;
19
- YEAR_START: string;
20
- YEAR_END: string;
21
17
  };
22
18
  export declare const DateRangeInnerValEnums: {
23
19
  TODAY: string;
@@ -26,10 +22,8 @@ export declare const DateRangeInnerValEnums: {
26
22
  THIS_WEEK: string;
27
23
  NEXT_WEEK: string;
28
24
  LAST_WEEK: string;
29
- PAST_WEEK: string;
30
25
  THIS_MONTH: string;
31
26
  LAST_MONTH: string;
32
- PAST_MONTH: string;
33
27
  NEXT_MONTH: string;
34
28
  THIS_QUARTER: string;
35
29
  LAST_QUARTER: string;
@@ -37,19 +31,19 @@ export declare const DateRangeInnerValEnums: {
37
31
  THIS_YEAR: string;
38
32
  LAST_YEAR: string;
39
33
  NEXT_YEAR: string;
40
- PAST_HALF_YEAR: string;
41
34
  };
42
35
  export declare const DateRangeOutDefEnums: {
36
+ PAST_WEEK: string;
37
+ PAST_MONTH: string;
38
+ PAST_HALF_YEAR: string;
43
39
  TODAY: string;
44
40
  TOMORROW: string;
45
41
  YESTERDAY: string;
46
42
  THIS_WEEK: string;
47
43
  NEXT_WEEK: string;
48
44
  LAST_WEEK: string;
49
- PAST_WEEK: string;
50
45
  THIS_MONTH: string;
51
46
  LAST_MONTH: string;
52
- PAST_MONTH: string;
53
47
  NEXT_MONTH: string;
54
48
  THIS_QUARTER: string;
55
49
  LAST_QUARTER: string;
@@ -57,6 +51,5 @@ export declare const DateRangeOutDefEnums: {
57
51
  THIS_YEAR: string;
58
52
  LAST_YEAR: string;
59
53
  NEXT_YEAR: string;
60
- PAST_HALF_YEAR: string;
61
54
  CUSTOM: string;
62
55
  };
@@ -1 +1 @@
1
- const T={CUSTOM:"CUSTOM",NOW:"NOW",TODAY:"TODAY",TODAY_START:"TODAY_START",TODAY_END:"TODAY_END",TOMORROW:"TOMORROW",TOMORROW_START:"TOMORROW_START",TOMORROW_END:"TOMORROW_END",YESTERDAY:"YESTERDAY",YESTERDAY_START:"YESTERDAY_START",YESTERDAY_END:"YESTERDAY_END",WEEK_START:"THIS_WEEK_START",WEEK_END:"THIS_WEEK_END",MONTH_START:"THIS_MONTH_START",MONTH_END:"THIS_MONTH_END",QUARTER_START:"THIS_QUARTER_START",QUARTER_END:"THIS_QUARTER_END",YEAR_START:"THIS_YEAR_START",YEAR_END:"THIS_YEAR_END"},E={TODAY:"TODAY",TOMORROW:"TOMORROW",YESTERDAY:"YESTERDAY",THIS_WEEK:"THIS_WEEK",NEXT_WEEK:"NEXT_WEEK",LAST_WEEK:"LAST_WEEK",PAST_WEEK:"PAST_WEEK",THIS_MONTH:"THIS_MONTH",LAST_MONTH:"LAST_MONTH",PAST_MONTH:"PAST_MONTH",NEXT_MONTH:"NEXT_MONTH",THIS_QUARTER:"THIS_QUARTER",LAST_QUARTER:"LAST_QUARTER",NEXT_QUARTER:"NEXT_QUARTER",THIS_YEAR:"THIS_YEAR",LAST_YEAR:"LAST_YEAR",NEXT_YEAR:"NEXT_YEAR",PAST_HALF_YEAR:"PAST_HALF_YEAR"},R={CUSTOM:"CUSTOM",...E};export{T as DatePresetValEnums,E as DateRangeInnerValEnums,R as DateRangeOutDefEnums};
1
+ const T={CUSTOM:"CUSTOM",NOW:"NOW",TODAY:"TODAY",TODAY_START:"TODAY_START",TODAY_END:"TODAY_END",TOMORROW:"TOMORROW",TOMORROW_START:"TOMORROW_START",TOMORROW_END:"TOMORROW_END",YESTERDAY:"YESTERDAY",YESTERDAY_START:"YESTERDAY_START",YESTERDAY_END:"YESTERDAY_END",WEEK_START:"THIS_WEEK_START",WEEK_END:"THIS_WEEK_END",MONTH_START:"THIS_MONTH_START",MONTH_END:"THIS_MONTH_END"},E={TODAY:"TODAY",TOMORROW:"TOMORROW",YESTERDAY:"YESTERDAY",THIS_WEEK:"THIS_WEEK",NEXT_WEEK:"NEXT_WEEK",LAST_WEEK:"LAST_WEEK",THIS_MONTH:"THIS_MONTH",LAST_MONTH:"LAST_MONTH",NEXT_MONTH:"NEXT_MONTH",THIS_QUARTER:"THIS_QUARTER",LAST_QUARTER:"LAST_QUARTER",NEXT_QUARTER:"NEXT_QUARTER",THIS_YEAR:"THIS_YEAR",LAST_YEAR:"LAST_YEAR",NEXT_YEAR:"NEXT_YEAR"},A={CUSTOM:"CUSTOM",...E,PAST_WEEK:"PAST_WEEK",PAST_MONTH:"PAST_MONTH",PAST_HALF_YEAR:"PAST_HALF_YEAR"};export{T as DatePresetValEnums,E as DateRangeInnerValEnums,A as DateRangeOutDefEnums};
@@ -1,3 +1,7 @@
1
- export declare const presetValToTimestamp: (presetVal: string, format?: string, isOrigin?: boolean) => any;
2
- export declare const formatDateRangeInfo: (key: string, format?: string, optionSetting?: string, isOrigin?: boolean) => string | number | any[];
1
+ export declare const presetValToTimestamp: (presetVal: string, format?: string) => any;
2
+ export declare const getAllDateRangeInfo: (format?: string) => {
3
+ label: string;
4
+ value: string | number | never[];
5
+ }[];
6
+ export declare const formatDateRangeInfo: (key: string, format?: string) => string | number | never[];
3
7
  export declare const presetValToDateRangestr: (presetVal: string, format?: string) => string | null;
@@ -1 +1 @@
1
- import{DateRangeOutDefEnums as t,DatePresetValEnums as a,DateRangeInnerValEnums as r}from"../enums.js";import{WidgetOptionEnums as d}from"../../../types/enums.js";import{dateDisabledCollect as e}from"./dateDisabled.js";import O from"moment";const s=new Map([[a.NOW,()=>O()],[a.TODAY,()=>O().startOf("day")],[a.TODAY_START,()=>O().startOf("day")],[a.TODAY_END,()=>O().endOf("day")],[a.TOMORROW,()=>O().add(1,"days").startOf("day")],[a.TOMORROW_START,()=>O().add(1,"days").startOf("day")],[a.TOMORROW_END,()=>O().add(1,"days").endOf("day")],[a.YESTERDAY,()=>O().subtract(1,"days").startOf("day")],[a.YESTERDAY_START,()=>O().subtract(1,"days").startOf("day")],[a.YESTERDAY_END,()=>O().subtract(1,"days").endOf("day")],[a.WEEK_START,()=>O().startOf("week")],[a.WEEK_END,()=>O().endOf("week")],[a.MONTH_START,()=>O().startOf("month")],[a.MONTH_END,()=>O().endOf("month")],[a.QUARTER_START,()=>O().startOf("quarter")],[a.QUARTER_END,()=>O().endOf("quarter")],[a.YEAR_START,()=>O().startOf("year")],[a.YEAR_END,()=>O().endOf("year")]]),f=(t,a="x",r=!1)=>{if(!s.has(t))return;const d=s.get(t);if(r)return d();const e=d().format(a);return"x"===a||"X"===a?Number(e):e},n=new Map([[r.TODAY,()=>[O().startOf("day"),O().endOf("day")]],[r.TOMORROW,()=>[O().add(1,"days").startOf("day"),O().add(1,"days").endOf("day")]],[r.YESTERDAY,()=>[O().subtract(1,"days").startOf("day"),O().subtract(1,"days").endOf("day")]],[r.THIS_WEEK,()=>[O().startOf("week"),O().endOf("week")]],[r.NEXT_WEEK,()=>[O().add(1,"w").startOf("week"),O().add(1,"w").endOf("week")]],[r.LAST_WEEK,()=>[O().subtract(1,"w").startOf("week"),O().subtract(1,"w").endOf("week")]],[r.PAST_WEEK,()=>[O().subtract(1,"w").startOf("day"),O().endOf("day")]],[r.THIS_MONTH,()=>[O().startOf("month"),O().endOf("month")]],[r.NEXT_MONTH,()=>[O().add(1,"months").startOf("month"),O().add(1,"months").endOf("month")]],[r.LAST_MONTH,()=>[O().subtract(1,"months").startOf("month"),O().subtract(1,"months").endOf("month")]],[r.PAST_MONTH,()=>[O().subtract(1,"months").startOf("day"),O().endOf("day")]],[r.THIS_QUARTER,()=>[O().startOf("quarter"),O().endOf("quarter")]],[r.NEXT_QUARTER,()=>[O().add(1,"Q").startOf("quarter"),O().add(1,"Q").endOf("quarter")]],[r.LAST_QUARTER,()=>[O().subtract(1,"Q").startOf("quarter"),O().subtract(1,"Q").endOf("quarter")]],[r.THIS_YEAR,()=>[O().startOf("year"),O().endOf("year")]],[r.NEXT_YEAR,()=>[O().add(1,"y").startOf("year"),O().add(1,"y").endOf("year")]],[r.LAST_YEAR,()=>[O().subtract(1,"y").startOf("year"),O().subtract(1,"y").endOf("year")]],[r.PAST_HALF_YEAR,()=>[O().subtract(6,"months").startOf("day"),O().endOf("day")]]]),T=(t,a="x",s=d.ALL,f=!1)=>{const n=s===d.PAST_TIME,T=s===d.FUTURE_TIME,y=O(e.cDateTimeValueof),E=new Map([[r.TODAY,()=>[T?y:O().startOf("day"),n?y:O().endOf("day")]],[r.TOMORROW,()=>[O().add(1,"days").startOf("day"),O().add(1,"days").endOf("day")]],[r.YESTERDAY,()=>[O().subtract(1,"days").startOf("day"),O().subtract(1,"days").endOf("day")]],[r.THIS_WEEK,()=>[T?y:O().startOf("week"),n?y:O().endOf("week")]],[r.NEXT_WEEK,()=>[O().add(1,"w").startOf("week"),O().add(1,"w").endOf("week")]],[r.LAST_WEEK,()=>[O().subtract(1,"w").startOf("week"),O().subtract(1,"w").endOf("week")]],[r.PAST_WEEK,()=>[O().subtract(1,"w").startOf("day"),n?y:O().endOf("day")]],[r.THIS_MONTH,()=>[T?y:O().startOf("month"),n?y:O().endOf("month")]],[r.NEXT_MONTH,()=>[O().add(1,"months").startOf("month"),O().add(1,"months").endOf("month")]],[r.LAST_MONTH,()=>[O().subtract(1,"months").startOf("month"),O().subtract(1,"months").endOf("month")]],[r.PAST_MONTH,()=>[O().subtract(1,"months").startOf("day"),n?y:O().endOf("day")]],[r.THIS_QUARTER,()=>[T?y:O().startOf("quarter"),n?y:O().endOf("quarter")]],[r.NEXT_QUARTER,()=>[O().add(1,"Q").startOf("quarter"),O().add(1,"Q").endOf("quarter")]],[r.LAST_QUARTER,()=>[O().subtract(1,"Q").startOf("quarter"),O().subtract(1,"Q").endOf("quarter")]],[r.THIS_YEAR,()=>[T?y:O().startOf("year"),n?y:O().endOf("year")]],[r.NEXT_YEAR,()=>[O().add(1,"y").startOf("year"),O().add(1,"y").endOf("year")]],[r.LAST_YEAR,()=>[O().subtract(1,"y").startOf("year"),O().subtract(1,"y").endOf("year")]],[r.PAST_HALF_YEAR,()=>[O().subtract(6,"months").startOf("day"),n?y:O().endOf("day")]]]).get(t);if(E){const[t,r]=E();if(f)return[t,r];const d=`${t.format(a)} ~ ${r.format(a)}`;return"x"===a||"X"===a?Number(d):d}return[]},y=new Map([...n,[t.PAST_WEEK,()=>[O().subtract(1,"w").startOf("day"),O().endOf("day")]],[t.PAST_MONTH,()=>[O().subtract(1,"months").startOf("day"),O().endOf("day")]],[t.PAST_HALF_YEAR,()=>[O().subtract(6,"months").startOf("day"),O().endOf("day")]]]),E=(t,a="x")=>{if(!y.has(t))return null;const r=y.get(t);if(r){const[t,d]=r();return`${t.format(a)} ~ ${d.format(a)}`}return null};export{T as formatDateRangeInfo,E as presetValToDateRangestr,f as presetValToTimestamp};
1
+ import{DateRangeOutDefEnums as t,DatePresetValEnums as a,DateRangeInnerValEnums as r}from"../enums.js";import{DateRangeOptions as d}from"../basicData.js";import e from"moment";const O=new Map([[a.NOW,()=>e()],[a.TODAY,()=>e().startOf("day")],[a.TODAY_START,()=>e().startOf("day")],[a.TODAY_END,()=>e().endOf("day")],[a.TOMORROW,()=>e().add(1,"days").startOf("day")],[a.TOMORROW_START,()=>e().add(1,"days").startOf("day")],[a.TOMORROW_END,()=>e().add(1,"days").endOf("day")],[a.YESTERDAY,()=>e().subtract(1,"days").startOf("day")],[a.YESTERDAY_START,()=>e().subtract(1,"days").startOf("day")],[a.YESTERDAY_END,()=>e().subtract(1,"days").endOf("day")],[a.WEEK_START,()=>e().startOf("week")],[a.WEEK_END,()=>e().endOf("week")],[a.MONTH_START,()=>e().startOf("month")],[a.MONTH_END,()=>e().endOf("month")]]),s=(t,a="x")=>{if(!O.has(t))return;const r=O.get(t)().format(a);return"x"===a||"X"===a?Number(r):r},f=new Map([[r.TODAY,()=>[e().startOf("day"),e().endOf("day")]],[r.TOMORROW,()=>[e().add(1,"days").startOf("day"),e().add(1,"days").endOf("day")]],[r.YESTERDAY,()=>[e().subtract(1,"days").startOf("day"),e().subtract(1,"days").endOf("day")]],[r.THIS_WEEK,()=>[e().startOf("week"),e().endOf("week")]],[r.NEXT_WEEK,()=>[e().add(1,"w").startOf("week"),e().add(1,"w").endOf("week")]],[r.LAST_WEEK,()=>[e().subtract(1,"w").startOf("week"),e().subtract(1,"w").endOf("week")]],[r.THIS_MONTH,()=>[e().startOf("month"),e().endOf("month")]],[r.NEXT_MONTH,()=>[e().add(1,"months").startOf("month"),e().add(1,"months").endOf("month")]],[r.LAST_MONTH,()=>[e().subtract(1,"months").startOf("month"),e().subtract(1,"months").endOf("month")]],[r.THIS_QUARTER,()=>[e().startOf("quarter"),e().endOf("quarter")]],[r.NEXT_QUARTER,()=>[e().add(1,"Q").startOf("quarter"),e().add(1,"Q").endOf("quarter")]],[r.LAST_QUARTER,()=>[e().subtract(1,"Q").startOf("quarter"),e().subtract(1,"Q").endOf("quarter")]],[r.THIS_YEAR,()=>[e().startOf("year"),e().endOf("year")]],[r.NEXT_YEAR,()=>[e().add(1,"y").startOf("year"),e().add(1,"y").endOf("year")]],[r.LAST_YEAR,()=>[e().subtract(1,"y").startOf("year"),e().subtract(1,"y").endOf("year")]]]),n=(t="x")=>d.map((a=>{const r=T(a.value,t);return{label:a.label,value:r}})),T=(t,a="x")=>{const r=f.get(t);if(r){const[t,d]=r(),e=`${t.format(a)} ~ ${d.format(a)}`;return"x"===a||"X"===a?Number(e):e}return[]},y=new Map([...f,[t.PAST_WEEK,()=>[e().subtract(1,"w").startOf("day"),e().endOf("day")]],[t.PAST_MONTH,()=>[e().subtract(1,"months").startOf("day"),e().endOf("day")]],[t.PAST_HALF_YEAR,()=>[e().subtract(6,"months").startOf("day"),e().endOf("day")]]]),u=(t,a="x")=>{if(!y.has(t))return null;const r=y.get(t);if(r){const[t,d]=r();return`${t.format(a)} ~ ${d.format(a)}`}return null};export{T as formatDateRangeInfo,n as getAllDateRangeInfo,u as presetValToDateRangestr,s as presetValToTimestamp};
@@ -10,7 +10,6 @@ declare const _default: import("vue").DefineComponent<{
10
10
  initialProps: {};
11
11
  }, {
12
12
  valueCp(): any;
13
- unit(): any;
14
13
  }, {
15
14
  search(): void;
16
15
  getEleWidth(cfg: any): {
@@ -21,8 +20,8 @@ declare const _default: import("vue").DefineComponent<{
21
20
  [key: string]: any;
22
21
  }> | null;
23
22
  handleUpdate(val: any): void;
24
- handleUpdateUnit(val: any): void;
25
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:unit" | "outFilterChange")[], "update:modelValue" | "update:unit" | "outFilterChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
23
+ handleChangeInitState(_frontId: any, bool: any): void;
24
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "outFilterChange" | "changeInit")[], "update:modelValue" | "outFilterChange" | "changeInit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
26
25
  cfg: {
27
26
  type: ObjectConstructor;
28
27
  required: true;
@@ -32,7 +31,7 @@ declare const _default: import("vue").DefineComponent<{
32
31
  };
33
32
  }>> & {
34
33
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
35
- "onUpdate:unit"?: ((...args: any[]) => any) | undefined;
36
34
  onOutFilterChange?: ((...args: any[]) => any) | undefined;
35
+ onChangeInit?: ((...args: any[]) => any) | undefined;
37
36
  }, {}>;
38
37
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as e,h as t}from"vue";import{WidgetTypeEnums as i}from"../../types/enums.js";import{WidgetCfgMaps as n}from"./widgetCfgMaps.js";import r from"../../../../../_virtual/_plugin-vue_export-helper.js";const a=[i.DATE,i.DATE_TIME,i.CHECKBOX_GROUP];var l=r(e({props:{cfg:{type:Object,required:!0},modelValue:{type:[Array,String,Number]}},emits:["update:modelValue","update:unit","outFilterChange"],computed:{valueCp(){return this.cfg.value},unit(){return this.cfg.unit}},data:()=>({initialProps:{}}),methods:{search(){this.$emit("outFilterChange")},getEleWidth(e){const{widgetType:t,widgetCfg:n,filterExplicit:r}=e;if(a.includes(t))return;const l=i.SELECT!==t&&i.SELECTLABEL!==t&&i.SELECTDYNAMIC!==t||!n.multiple?"100%":"200px";return{width:0===r?"100%":e.advanceColWidth?`${e.advanceColWidth}px`:l}},initComponentProps(e){const{widgetType:t,alias:i,title:r,placeholder:a,widgetCfg:l}=e,{props:s,handlerProps:p}=n.get(t);let u={...s};p&&(u=p(u,{...l,title:i||r})),a&&(u.placeholder=a),this.initialProps=u,u.value&&(this.valueCp=u.value)},generateWidget(e){const{widgetType:i}=e;if(!n.has(i))return null;const{value:r}=e,{component:a,style:l,eventsBySearch:s=[]}=n.get(i),p={...this.initialProps,value:r,componentCfg:e},u=s.reduce(((e,t)=>{const{name:i,handler:n}=t;let r=this.search;return n&&(r=e=>{n(e,this.search,p)}),{...e,[`on${i}`]:r}}),{});return t(a,{...l,...p,style:this.getEleWidth(e),value:this.valueCp,unit:this.unit,"onUpdate:value":e=>this.handleUpdate(e),"onUpdate:unit":e=>this.handleUpdateUnit(e),...u})},handleUpdate(e){this.$emit("update:modelValue",e)},handleUpdateUnit(e){this.$emit("update:unit",e)}},created(){this.initComponentProps(this.cfg)},render(){return this.generateWidget(this.cfg)}}),[["__file","index.vue"]]);export{l as default};
1
+ import{defineComponent as e,h as t}from"vue";import{WidgetTypeEnums as i}from"../../types/enums.js";import{WidgetCfgMaps as n}from"./widgetCfgMaps.js";import a from"../../../../../_virtual/_plugin-vue_export-helper.js";const r=[i.DATE,i.DATE_TIME,i.CHECKBOX_GROUP];var l=a(e({props:{cfg:{type:Object,required:!0},modelValue:{type:[Array,String,Number]}},emits:["update:modelValue","outFilterChange","changeInit"],computed:{valueCp(){return this.cfg.value}},data:()=>({initialProps:{}}),methods:{search(){this.$emit("outFilterChange")},getEleWidth(e){const{widgetType:t,widgetCfg:n,filterExplicit:a}=e;if(r.includes(t))return;const l=i.SELECT!==t&&i.SELECTLABEL!==t||!n.multiple?"100%":"200px";return{width:0===a?"100%":e.advanceColWidth?`${e.advanceColWidth}px`:l}},initComponentProps(e){const{_frontId:t,widgetType:i,alias:a,title:r,placeholder:l,widgetCfg:s,filterExplicit:o}=e,{props:p,handlerProps:h}=n.get(i);let d={...p};h&&(d=h(d,{...s,title:a||r,_frontId:t,filterExplicit:o})),l&&(d.placeholder=l),this.initialProps=d,d.value&&(this.valueCp=d.value)},generateWidget(e){const{widgetType:i}=e;if(!n.has(i))return null;const{value:a}=e,{component:r,style:l,eventsBySearch:s=[]}=n.get(i),o={...this.initialProps,value:a,componentCfg:e},p=s.reduce(((e,t)=>{const{name:i,handler:n}=t;let a=this.search;return n&&(a=e=>{n(e,this.search,o)}),{...e,[`on${i}`]:a}}),{});return t(r,{...l,...o,style:this.getEleWidth(e),value:this.valueCp,"onUpdate:value":e=>this.handleUpdate(e),onChangeInitState:(...e)=>this.handleChangeInitState(...e),...p})},handleUpdate(e){this.$emit("update:modelValue",e)},handleChangeInitState(e,t){this.$emit("changeInit",e,t)}},created(){this.initComponentProps(this.cfg)},render(){return this.generateWidget(this.cfg)}}),[["__file","index.vue"]]);export{l as default};