cnhis-design-vue 3.1.46-beta.0 → 3.1.46-beta.10

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 (133) hide show
  1. package/es/components/base-search/index.d.ts +17 -8
  2. package/es/components/base-search/src/index.vue.d.ts +17 -8
  3. package/es/components/base-search/src/index.vue2.js +1 -1
  4. package/es/components/base-search/style/index.css +1 -1
  5. package/es/components/button-print/src/utils/print.js +1 -1
  6. package/es/components/classification/index.d.ts +219 -18
  7. package/es/components/classification/src/components/search-filter/index.vue.d.ts +219 -18
  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 +219 -18
  10. package/es/components/classification/src/index.vue.d.ts +219 -18
  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 +1 -0
  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 +2 -1
  26. package/es/components/index.js +1 -1
  27. package/es/components/quick-search/index.d.ts +21 -7
  28. package/es/components/quick-search/src/index.vue.d.ts +21 -7
  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/table-export-field/index.d.ts +967 -0
  32. package/es/components/table-export-field/index.js +1 -0
  33. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +192 -0
  34. package/es/components/table-export-field/src/components/ExportModal.vue.js +1 -0
  35. package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -0
  36. package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +687 -0
  37. package/es/components/table-export-field/src/components/SaveProjectModal.vue.js +1 -0
  38. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +1 -0
  39. package/es/components/table-export-field/src/constants/index.d.ts +3 -0
  40. package/es/components/table-export-field/src/constants/index.js +1 -0
  41. package/es/components/table-export-field/src/hooks/useAsyncData.d.ts +6 -0
  42. package/es/components/table-export-field/src/hooks/useAsyncData.js +1 -0
  43. package/es/components/table-export-field/src/index.vue.d.ts +968 -0
  44. package/es/components/table-export-field/src/index.vue.js +1 -0
  45. package/es/components/table-export-field/src/index.vue2.js +1 -0
  46. package/es/components/table-export-field/src/types/index.d.ts +6 -0
  47. package/es/components/table-export-field/src/types/index.js +1 -0
  48. package/es/components/table-export-field/style/index.css +1 -0
  49. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +219 -17
  50. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
  51. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +17 -1
  52. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -1
  53. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +19 -0
  54. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -1
  55. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +178 -11
  56. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
  57. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +1 -5
  58. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue2.js +1 -1
  59. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +2 -1
  60. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -1
  61. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +217 -17
  62. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
  63. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +219 -17
  64. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
  65. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +231 -0
  66. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.js +1 -0
  67. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +1 -0
  68. package/es/components/table-filter/src/components/render-widget/components/{Date.vue.d.ts → DateOut.vue.d.ts} +21 -2
  69. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.js +1 -0
  70. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +1 -0
  71. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +71 -0
  72. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.js +1 -0
  73. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +1 -0
  74. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +117 -8
  75. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
  76. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +13 -9
  77. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -1
  78. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +8 -6
  79. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -1
  80. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +7 -6
  81. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -1
  82. package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +19 -25
  83. package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -1
  84. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +223 -0
  85. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.js +1 -0
  86. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -0
  87. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +158 -0
  88. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.js +1 -0
  89. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -0
  90. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +611 -36
  91. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
  92. package/es/components/table-filter/src/components/render-widget/enums.d.ts +10 -3
  93. package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
  94. package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.d.ts +27 -0
  95. package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.js +1 -0
  96. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.d.ts +55 -0
  97. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +1 -0
  98. package/es/components/table-filter/src/components/render-widget/helpers/enums.d.ts +56 -0
  99. package/es/components/table-filter/src/components/render-widget/helpers/enums.js +1 -0
  100. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +2 -6
  101. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -1
  102. package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.d.ts +4 -0
  103. package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +1 -0
  104. package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.d.ts +4 -0
  105. package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.js +1 -0
  106. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +4 -3
  107. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  108. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +639 -35
  109. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  110. package/es/components/table-filter/src/constants/index.d.ts +3 -1
  111. package/es/components/table-filter/src/constants/index.js +1 -1
  112. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +9 -4
  113. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  114. package/es/components/table-filter/src/hooks/useAsyncData.d.ts +4 -0
  115. package/es/components/table-filter/src/hooks/useAsyncData.js +1 -0
  116. package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +3 -3
  117. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  118. package/es/components/table-filter/src/tool/baseOptions.d.ts +0 -8
  119. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  120. package/es/components/table-filter/src/tool/transformData.d.ts +0 -1
  121. package/es/components/table-filter/src/tool/transformData.js +1 -1
  122. package/es/components/table-filter/src/types/enums.d.ts +3 -0
  123. package/es/components/table-filter/src/types/enums.js +1 -1
  124. package/es/components/table-filter/src/types/index.d.ts +7 -0
  125. package/es/shared/package.json.js +1 -1
  126. package/es/shared/utils/fabricjs/index.js +1 -1
  127. package/package.json +2 -2
  128. package/es/components/table-filter/src/components/render-widget/basicData.d.ts +0 -4
  129. package/es/components/table-filter/src/components/render-widget/basicData.js +0 -1
  130. package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +0 -1
  131. package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +0 -1
  132. package/es/components/table-filter/src/tool/generateDefOptions.d.ts +0 -7
  133. package/es/components/table-filter/src/tool/generateDefOptions.js +0 -1
@@ -1,4 +1,3 @@
1
- import { SelectOption } from 'naive-ui';
2
1
  declare const _default: import("vue").DefineComponent<{
3
2
  paramCfg: {
4
3
  type: ObjectConstructor;
@@ -9,6 +8,7 @@ declare const _default: import("vue").DefineComponent<{
9
8
  default: null;
10
9
  };
11
10
  }, {
11
+ message: import("naive-ui").MessageApi;
12
12
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
13
13
  paramCfg: {
14
14
  type: ObjectConstructor;
@@ -21,28 +21,195 @@ declare const _default: import("vue").DefineComponent<{
21
21
  }>> & {
22
22
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
23
23
  }>>;
24
- handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
25
- $attrs: {
26
- [x: string]: unknown;
27
- };
24
+ getDynamicSelectData: (params: any, filterApiConfig: any) => Promise<any>;
28
25
  emit: (event: "update:modelValue", ...args: any[]) => void;
29
- selectOptions: import("vue").Ref<any[]>;
30
26
  isLoading: import("vue").Ref<boolean>;
31
27
  filterApiConfig: import("../../../../..").AnyObject;
32
- valueCp: import("vue").WritableComputedRef<any>;
28
+ classifyFilterList: import("vue").Ref<import("../../../../..").AnyObject[]>;
29
+ totalPage: import("vue").Ref<number>;
30
+ menuProps: {
31
+ class: string;
32
+ };
33
+ curPage: import("vue").Ref<number>;
34
+ fieldTitleList: import("vue").Ref<any>;
35
+ selectOptions: import("vue").Ref<any[]>;
36
+ keywordVal: import("vue").Ref<any>;
33
37
  optionSetting: import("vue").ComputedRef<any>;
34
38
  isMultiple: import("vue").ComputedRef<boolean>;
35
- searchOptions: (keyword: string) => Promise<any>;
39
+ dynamicOptionInfos: import("vue").ComputedRef<any>;
40
+ isLastPage: import("vue").ComputedRef<boolean>;
41
+ valueCp: import("vue").ComputedRef<string | number | any[]>;
42
+ isInitRequest: import("vue").ComputedRef<boolean>;
43
+ setOptionActive: (selectIds: string[]) => void;
44
+ handleUpdateSelect: (value: string[] | null) => void;
45
+ handleUpdatePage: (page: number) => Promise<void>;
46
+ getOptionsData: (keyword: string, curPage: number) => Promise<any>;
47
+ isWhole: (value: string) => boolean;
36
48
  _handleSearch: (query: string) => Promise<void>;
37
49
  handleSearch: (query: string) => Promise<void>;
38
50
  handleInitData: () => Promise<void>;
39
- renderLabel: (option: SelectOption) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
40
- [key: string]: any;
41
- }>;
51
+ handleClear: () => Promise<void>;
52
+ handleUpdateShow: (show: boolean) => void;
42
53
  renderTag: ({ option, handleClose }: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
43
54
  [key: string]: any;
44
55
  }>;
56
+ init: () => void;
45
57
  NSelect: any;
58
+ SelectDynamicOption: import("vue").DefineComponent<{
59
+ dynamicOptionInfo: {
60
+ type: import("vue").PropType<import("../../../../..").AnyObject>;
61
+ default: () => {};
62
+ };
63
+ fieldTitleList: {
64
+ type: import("vue").PropType<import("../../../../..").AnyObject[]>;
65
+ default: () => never[];
66
+ };
67
+ optionList: {
68
+ type: import("vue").PropType<import("../../../../..").AnyObject[]>;
69
+ default: () => never[];
70
+ };
71
+ isMultiple: {
72
+ type: BooleanConstructor;
73
+ default: boolean;
74
+ };
75
+ curPage: {
76
+ type: NumberConstructor;
77
+ default: number;
78
+ };
79
+ isLastPage: {
80
+ type: BooleanConstructor;
81
+ default: boolean;
82
+ };
83
+ isShowWhole: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
87
+ }, {
88
+ selectMinWidth: number;
89
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
90
+ dynamicOptionInfo: {
91
+ type: import("vue").PropType<import("../../../../..").AnyObject>;
92
+ default: () => {};
93
+ };
94
+ fieldTitleList: {
95
+ type: import("vue").PropType<import("../../../../..").AnyObject[]>;
96
+ default: () => never[];
97
+ };
98
+ optionList: {
99
+ type: import("vue").PropType<import("../../../../..").AnyObject[]>;
100
+ default: () => never[];
101
+ };
102
+ isMultiple: {
103
+ type: BooleanConstructor;
104
+ default: boolean;
105
+ };
106
+ curPage: {
107
+ type: NumberConstructor;
108
+ default: number;
109
+ };
110
+ isLastPage: {
111
+ type: BooleanConstructor;
112
+ default: boolean;
113
+ };
114
+ isShowWhole: {
115
+ type: BooleanConstructor;
116
+ default: boolean;
117
+ };
118
+ }>> & {
119
+ onUpdateSelect?: ((...args: any[]) => any) | undefined;
120
+ onUpdatePage?: ((...args: any[]) => any) | undefined;
121
+ }>>;
122
+ emit: (event: "updateSelect" | "updatePage", ...args: any[]) => void;
123
+ dragEndWidth: import("vue").Ref<number>;
124
+ showKeys: import("vue").ComputedRef<any>;
125
+ titleList: import("vue").ComputedRef<string[]>;
126
+ handleSelect: (option: any) => void;
127
+ searchByPage: (onePage: number) => void;
128
+ changeWidth: ({ distance }: any) => void;
129
+ saveWidth: () => void;
130
+ NEmpty: any;
131
+ NButtonGroup: any;
132
+ NButton: any;
133
+ NIcon: any;
134
+ NPopover: any;
135
+ vFlexibleResize: {
136
+ mounted(el: any, { value }: any): void;
137
+ beforeUnmount(el: any): void;
138
+ };
139
+ WidgetValEnums: {
140
+ CUSTOM: string;
141
+ FIRST_VAL: string;
142
+ WHOLE: string;
143
+ NOW: string;
144
+ TODAY: string;
145
+ TODAY_START: string;
146
+ TODAY_END: string;
147
+ TOMORROW: string;
148
+ TOMORROW_START: string;
149
+ TOMORROW_END: string;
150
+ YESTERDAY: string;
151
+ YESTERDAY_START: string;
152
+ YESTERDAY_END: string;
153
+ THIS_WEEK: string;
154
+ WEEK_START: string;
155
+ WEEK_END: string;
156
+ NEXT_WEEK: string;
157
+ LAST_WEEK: string;
158
+ THIS_MONTH: string;
159
+ MONTH_START: string;
160
+ MONTH_END: string;
161
+ NEXT_MONTH: string;
162
+ LAST_MONTH: string;
163
+ THIS_QUARTER: string;
164
+ NEXT_QUARTER: string;
165
+ LAST_QUARTER: string;
166
+ THIS_YEAR: string;
167
+ NEXT_YEAR: string;
168
+ LAST_YEAR: string;
169
+ };
170
+ ArrowBack: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
171
+ ArrowForward: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
172
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
173
+ dynamicOptionInfo: {
174
+ type: import("vue").PropType<import("../../../../..").AnyObject>;
175
+ default: () => {};
176
+ };
177
+ fieldTitleList: {
178
+ type: import("vue").PropType<import("../../../../..").AnyObject[]>;
179
+ default: () => never[];
180
+ };
181
+ optionList: {
182
+ type: import("vue").PropType<import("../../../../..").AnyObject[]>;
183
+ default: () => never[];
184
+ };
185
+ isMultiple: {
186
+ type: BooleanConstructor;
187
+ default: boolean;
188
+ };
189
+ curPage: {
190
+ type: NumberConstructor;
191
+ default: number;
192
+ };
193
+ isLastPage: {
194
+ type: BooleanConstructor;
195
+ default: boolean;
196
+ };
197
+ isShowWhole: {
198
+ type: BooleanConstructor;
199
+ default: boolean;
200
+ };
201
+ }>> & {
202
+ onUpdateSelect?: ((...args: any[]) => any) | undefined;
203
+ onUpdatePage?: ((...args: any[]) => any) | undefined;
204
+ }, {
205
+ dynamicOptionInfo: import("../../../../..").AnyObject;
206
+ fieldTitleList: import("../../../../..").AnyObject[];
207
+ optionList: import("../../../../..").AnyObject[];
208
+ isMultiple: boolean;
209
+ curPage: number;
210
+ isLastPage: boolean;
211
+ isShowWhole: boolean;
212
+ }>;
46
213
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
47
214
  paramCfg: {
48
215
  type: ObjectConstructor;
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as a,ref as t,inject as o,computed as n,openBlock as l,createBlock as i,unref as r,isRef as s,h as u}from"vue";import{NSelect as p,NTag as c}from"naive-ui";import{WidgetOptionEnums as d}from"../../../types/enums.js";import{useDebounceFn as m}from"@vueuse/core";import f from"../../../hooks/useMixins.js";import{InjectionFilterApiConfig as y}from"../../../constants/index.js";var g=e({__name:"SelectDynamic",props:{paramCfg:{type:Object,default:null},modelValue:{type:[Array,String,Number],default:null}},emits:["update:modelValue"],setup(e,{emit:g}){const v=e,{handleGetConfigApi:b}=f(),h=a(),w=t([]),C=t(!1),I=o(y),S=n({set(e){g("update:modelValue",e)},get:()=>v.modelValue}),x=n((()=>{var e;return null==(e=v.paramCfg)?void 0:e.optionSetting})),j=n((()=>x.value===d.MULTIPLE));async function K(e){try{const{dynamicOptionInfo:a}=v.paramCfg.optionInfo;if(a){const{autograph:t,dataSourceId:o,dataSourceType:n,filterKeys:l,showKeys:i,valueKey:r}=a;let s={wordbookId:o,autograph:t,wordbookType:n,fieldKeys:l,page:1};l.length>0&&(s[l[0]]=e),C.value=!0;let u=await b(s,"requestDynamicSelect",{},I);if(u){const{fieldList:e=[],rows:a=[]}=u,t=a.map((e=>({...e,label:e[i[0]],value:e[r]})));return w.value=t,t}}}catch(e){console.log(e)}finally{C.value=!1}}const O=m((async e=>{await async function(e){const{manualMapping:a}=h;if(!a){const a=e.trim();await K(a)}}(e)}),300);async function k(){const{dynamicOptionInfo:e}=v.paramCfg.optionInfo;Object.keys(e).length>0&&I&&await K("")}function T(e){const{dynamicOptionInfo:a}=v.paramCfg.optionInfo,{showKeys:t=[]}=a;return a&&t.length>0?u("div",{class:"select-widget-dynamic-option"},t.map((a=>u("span",{class:"select-widget-dynamic-item"},e[a])))):u("div",e.label)}function V({option:e,handleClose:a}){return j.value?u(c,{style:{padding:"0 8px"},closable:!0,onClose:e=>{e.stopPropagation(),a()}},{default:()=>u("div",e.label)}):u("div",e.label)}return k(),(e,a)=>(l(),i(r(p),{to:"body",value:r(S),"onUpdate:value":a[0]||(a[0]=e=>s(S)?S.value=e:null),loading:C.value,options:w.value,remote:!0,"render-label":T,"render-tag":V,multiple:r(j),clearable:"",filterable:"",maxTagCount:"responsive",style:{width:"200px"},onSearch:r(O),onClear:k},null,8,["value","loading","options","multiple","onSearch"]))}});export{g as default};
1
+ import{defineComponent as e,ref as a,inject as l,computed as t,openBlock as u,createBlock as n,unref as o,isRef as i,withModifiers as r,withCtx as s,createVNode as c,h as d}from"vue";import{useMessage as p,NSelect as v,NTag as m}from"naive-ui";import{WidgetOptionEnums as f,WidgetValEnums as y}from"../../../types/enums.js";import{useDebounceFn as g}from"@vueuse/core";import h from"../../../hooks/useAsyncData.js";import{InjectionFilterApiConfig as V,InjectionClassifyFilterList as w}from"../../../constants/index.js";import{judgmentVariable as b}from"../../render-widget/helpers/setDefaultValue.js";import O from"../../render-widget/components/SelectDynamicOption/index.vue.js";import{isEqual as S}from"lodash-es";var k=e({__name:"SelectDynamic",props:{paramCfg:{type:Object,default:null},modelValue:{type:[Array,String,Number],default:null}},emits:["update:modelValue"],setup(e,{emit:k}){const L=e,P=p(),{getDynamicSelectData:j}=h(),C=a(!1),A=l(V),x=l(w),D=a(0),I={class:"select-dynamic-popover"},T=a(1),E=a(),K=a([]),U=a(),_=t((()=>{var e;return null==(e=L.paramCfg)?void 0:e.optionSetting})),M=t((()=>_.value===f.MULTIPLE)),N=t((()=>{const{dynamicOptionInfo:e={}}=L.paramCfg.optionInfo;return e})),$=t((()=>D.value>0&&T.value>=D.value)),J=t((()=>{var e;if(Array.isArray(L.modelValue)&&L.modelValue.length>0){const e=L.modelValue;if(H(e),!M.value&&1==e.length){const a=K.value.find((a=>a.value===e[0]));return JSON.stringify(a)}return K.value.filter((a=>e.includes(a.value)))}return H([]),null!=(e=L.modelValue)?e:null})),F=t((()=>{if(Object.keys(N.value).length>0){const{defaultParams:e=[]}=N.value;return!b(e)}return!0}));function H(e){K.value.forEach((a=>{a.actived=!1,Array.isArray(e)&&e.includes(a.value)&&(a.actived=!0)}))}function W(e){const{linkageFieldKeys:a=[]}=L.paramCfg._rawData.defaultValue;a.forEach((e=>{const a=x.value.find((a=>a.key===e));a&&a.value&&(a.value=a.presetVal=null)})),S(L.modelValue,e)||k("update:modelValue",e)}async function q(e){T.value=e,await z(U.value,T.value)}async function z(e,a){try{if(Object.keys(N.value).length>0){const{autograph:l,dataSourceId:t,dataSourceType:u,filterKeys:n,defaultParams:o=[],showKeys:i,valueKey:r}=N.value;let s={wordbookId:t,autograph:l,wordbookType:u,fieldKeys:n,page:a};n.length>0&&(s[n[0]]=e),C.value=!0;if(b(o)){const e=o.map((e=>e.value)).filter((e=>e.includes("${")));e.map((e=>e.match(/\$\{(.+?)\}/)[1])).forEach((e=>{const a=x.value.find((a=>a.key===e));a&&a.value&&a.value!==y.WHOLE&&(s[e]=a.value)}))}let c=await j(s,A);if(c){const{fieldList:e=[],rows:a=[],total:l=0}=c.map,t=a.map((e=>({...e,label:e[i[0]],value:e[r]})));return E.value=null!=e?e:[],K.value=null!=t?t:[],D.value=l,t}}}catch(e){P.error(`异步数据源下拉框数据请求失败:${e}`),console.log(e)}finally{C.value=!1}}const B=g((async e=>{await async function(e){U.value=e.trim(),T.value=1,await z(U.value,T.value)}(e)}),300);async function G(){Object.keys(N.value).length>0&&A&&await z("",T.value)}async function Q(){k("update:modelValue",null),await G()}function R(e){e&&G()}function X({option:e,handleClose:a}){if(M.value){const l=e.value;return d(m,{style:{padding:"0 8px"},closable:!0,onClose:e=>{if(e.stopPropagation(),a(),Array.isArray(L.modelValue)&&L.modelValue.length>0){const e=L.modelValue,a=e.indexOf(l.value);if(a>-1){const l=e.splice(0,a);k("update:modelValue",l.length>0?l:null)}}}},{default:()=>d("div",l.label)})}const l=e.value?JSON.parse(e.value):{label:""};return d("div",l.label)}return F.value&&G(),(e,a)=>(u(),n(o(v),{id:"select-dynamic-popover",style:{width:"200px"},value:o(J),"onUpdate:value":a[0]||(a[0]=e=>i(J)?J.value=e:null),remote:"",clearable:"",filterable:"",maxTagCount:"responsive",loading:C.value,multiple:o(M),menuProps:I,"render-tag":X,onSearch:o(B),onClear:Q,"onUpdate:show":R,onClick:a[1]||(a[1]=r((()=>{}),["stop"]))},{empty:s((()=>[c(O,{dynamicOptionInfo:o(N),fieldTitleList:E.value,optionList:K.value,isMultiple:o(M),curPage:T.value,isLastPage:o($),onUpdateSelect:W,onUpdatePage:q},null,8,["dynamicOptionInfo","fieldTitleList","optionList","isMultiple","curPage","isLastPage"])])),_:1},8,["value","loading","multiple","onSearch"]))}});export{k as default};
@@ -31,11 +31,7 @@ declare const _default: import("vue").DefineComponent<{
31
31
  emit: (event: "update:modelValue", ...args: any[]) => void;
32
32
  valueCp: import("vue").WritableComputedRef<any>;
33
33
  optionSetting: import("vue").ComputedRef<any>;
34
- mappingConfig: import("vue").ComputedRef<any>;
35
- widgetOptions: import("vue").ComputedRef<{
36
- label: string;
37
- value: string;
38
- }[]>;
34
+ widgetOptions: import("vue").ComputedRef<any>;
39
35
  NSelect: any;
40
36
  WidgetOptionEnums: {
41
37
  RADIO: string;
@@ -1 +1 @@
1
- import{defineComponent as e,computed as t,openBlock as l,createBlock as a,unref as o,isRef as u}from"vue";import{NSelect as r}from"naive-ui";import{WidgetOptionEnums as p}from"../../../types/enums.js";import{generateDefOptionsInApi as i}from"../../../tool/generateDefOptions.js";var m=e({__name:"SelectFilter",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},widgetType:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:m}){const n=e,d=t({set(e){m("update:modelValue",e)},get:()=>n.modelValue}),s=t((()=>{var e;return null==(e=n.paramCfg)?void 0:e.optionSetting})),f=t((()=>{var e;return null==(e=n.paramCfg)?void 0:e.mappingConfig})),g=t((()=>i(n.widgetType,f.value).slice(0)));return(e,t)=>(l(),a(o(r),{style:{width:"200px"},class:"form-item",value:o(d),"onUpdate:value":t[0]||(t[0]=e=>u(d)?d.value=e:null),to:"body",filterable:"",options:o(g),multiple:o(s)===o(p).MULTIPLE,maxTagCount:1},null,8,["value","options","multiple"]))}});export{m as default};
1
+ import{defineComponent as e,computed as t,openBlock as l,createBlock as a,unref as u,isRef as p}from"vue";import{NSelect as o}from"naive-ui";import{WidgetOptionEnums as r}from"../../../types/enums.js";var i=e({__name:"SelectFilter",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},widgetType:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:i}){const n=e,m=t({set(e){i("update:modelValue",e)},get:()=>n.modelValue}),d=t((()=>{var e;return null==(e=n.paramCfg)?void 0:e.optionSetting})),s=t((()=>{var e;const t=null==(e=n.paramCfg)?void 0:e.mappingConfig;return t&&(null==t?void 0:t.mapping)?t.mapping:[]}));return(e,t)=>(l(),a(u(o),{style:{width:"200px"},class:"form-item",value:u(m),"onUpdate:value":t[0]||(t[0]=e=>p(m)?m.value=e:null),to:"body",filterable:"",options:u(s),multiple:u(d)===u(r).MULTIPLE,maxTagCount:1},null,8,["value","options","multiple"]))}});export{i as default};
@@ -9,7 +9,8 @@ declare const _default: import("vue").DefineComponent<{
9
9
  default: null;
10
10
  };
11
11
  }, {
12
- handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
12
+ getDynamicLabelData: (params: any, filterApiConfig: any) => Promise<any>;
13
+ message: import("naive-ui").MessageApi;
13
14
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
14
15
  paramCfg: {
15
16
  type: ObjectConstructor;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as l,inject as t,computed as a,openBlock as o,createBlock as u,unref as s,isRef as i}from"vue";import{NSelect as n}from"naive-ui";import r from"../../../hooks/useMixins.js";import{InjectionFilterApiConfig as p}from"../../../constants/index.js";var m=e({__name:"SelectLabel",props:{paramCfg:{type:Object,default:null},modelValue:{type:String,default:null}},emits:["update:modelValue"],setup(e,{emit:m}){const f=e,{handleGetConfigApi:d}=r(),c=l([]),h=t(p),v=a({set(e){const l=e?e.join("|#|"):e;m("update:modelValue",l)},get:()=>f.modelValue?f.modelValue.split("|#|"):[]}),b=a((()=>{if(c.value&&c.value.length>0){let e=[],l=[];return c.value.forEach((t=>{t.labelList.forEach((t=>{e.includes(t.labelShowText)||(e.push(t.labelShowText),l.push({label:t.labelShowText,value:t.labelShowText}))}))})),l}return[]}));return(async()=>{try{const{defaultValue:e={}}=f.paramCfg._rawData,{classifyStr:l=""}=e;let t=await d({classifyStr:l},"requestListByClassify",{},h);if(t){const{data:e}=t,{list:l=[]}=e;c.value=l}}catch(e){console.log(e)}})(),(e,l)=>(o(),u(s(n),{to:"body",multiple:"",clearable:"",filterable:"",maxTagCount:"responsive",value:s(v),"onUpdate:value":l[0]||(l[0]=e=>i(v)?v.value=e:null),options:s(b),style:{width:"200px"}},null,8,["value","options"]))}});export{m as default};
1
+ import{defineComponent as e,ref as l,inject as a,computed as t,openBlock as o,createBlock as u,unref as s,isRef as r}from"vue";import{useMessage as n,NSelect as i}from"naive-ui";import p from"../../../hooks/useAsyncData.js";import{InjectionFilterApiConfig as m}from"../../../constants/index.js";var c=e({__name:"SelectLabel",props:{paramCfg:{type:Object,default:null},modelValue:{type:String,default:null}},emits:["update:modelValue"],setup(e,{emit:c}){const f=e,{getDynamicLabelData:d}=p(),v=n(),b=l([]),h=a(m),y=t({set(e){const l=e?e.join("|#|"):e;c("update:modelValue",l)},get:()=>f.modelValue?f.modelValue.split("|#|"):[]}),g=t((()=>{if(b.value&&b.value.length>0){let e=[],l=[];return b.value.forEach((a=>{a.labelList.forEach((a=>{e.includes(a.labelShowText)||(e.push(a.labelShowText),l.push({label:a.labelShowText,value:a.labelShowText}))}))})),l}return[]}));return(async()=>{try{const{defaultValue:e={}}=f.paramCfg._rawData,{classifyStr:l=""}=e;let a=await d({classifyStr:l},h);if(a){const{list:e=[]}=a;b.value=e}}catch(e){v.error(`获取标签数据请求失败:${e}`),console.log(e)}})(),(e,l)=>(o(),u(s(i),{to:"body",multiple:"",clearable:"",filterable:"",maxTagCount:"responsive",value:s(y),"onUpdate:value":l[0]||(l[0]=e=>r(y)?y.value=e:null),options:s(g),style:{width:"200px"}},null,8,["value","options"]))}});export{c as default};
@@ -1,4 +1,7 @@
1
1
  declare const Date: import("vue").DefineComponent<{
2
+ componentCfg: {
3
+ type: ObjectConstructor;
4
+ };
2
5
  paramCfg: {
3
6
  type: ObjectConstructor;
4
7
  default: null;
@@ -13,6 +16,9 @@ declare const Date: import("vue").DefineComponent<{
13
16
  };
14
17
  }, {
15
18
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
19
+ componentCfg: {
20
+ type: ObjectConstructor;
21
+ };
16
22
  paramCfg: {
17
23
  type: ObjectConstructor;
18
24
  default: null;
@@ -35,11 +41,17 @@ declare const Date: import("vue").DefineComponent<{
35
41
  dateType: any;
36
42
  valueFormat: import("vue").ComputedRef<string>;
37
43
  compType: import("vue").ComputedRef<any>;
38
- mappingConfig: import("vue").ComputedRef<any>;
44
+ optionSetting: import("vue").ComputedRef<any>;
39
45
  widgetOptions: import("vue").ComputedRef<{
40
46
  label: string;
41
47
  value: string;
42
48
  }[]>;
49
+ isDateDisabled: (ts: number) => boolean;
50
+ timeDisabled: (ts: number) => {
51
+ isHourDisabled(hour: number): boolean | undefined;
52
+ isMinuteDisabled(minute: number, hour: number | null): boolean | undefined;
53
+ isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | undefined;
54
+ };
43
55
  CDatePicker: import("../../../../..").SFCWithInstall<import("vue").DefineComponent<{
44
56
  updateUnchangedValue: {
45
57
  type: BooleanConstructor;
@@ -83,6 +95,7 @@ declare const Date: import("vue").DefineComponent<{
83
95
  WidgetValEnums: {
84
96
  CUSTOM: string;
85
97
  FIRST_VAL: string;
98
+ WHOLE: string;
86
99
  NOW: string;
87
100
  TODAY: string;
88
101
  TODAY_START: string;
@@ -111,6 +124,9 @@ declare const Date: import("vue").DefineComponent<{
111
124
  LAST_YEAR: string;
112
125
  };
113
126
  }, 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<{
127
+ componentCfg: {
128
+ type: ObjectConstructor;
129
+ };
114
130
  paramCfg: {
115
131
  type: ObjectConstructor;
116
132
  default: null;
@@ -218,11 +234,7 @@ declare const SelectFilter: import("vue").DefineComponent<{
218
234
  emit: (event: "update:modelValue", ...args: any[]) => void;
219
235
  valueCp: import("vue").WritableComputedRef<any>;
220
236
  optionSetting: import("vue").ComputedRef<any>;
221
- mappingConfig: import("vue").ComputedRef<any>;
222
- widgetOptions: import("vue").ComputedRef<{
223
- label: string;
224
- value: string;
225
- }[]>;
237
+ widgetOptions: import("vue").ComputedRef<any>;
226
238
  NSelect: any;
227
239
  WidgetOptionEnums: {
228
240
  RADIO: string;
@@ -262,6 +274,7 @@ declare const SelectDynamic: import("vue").DefineComponent<{
262
274
  default: null;
263
275
  };
264
276
  }, {
277
+ message: import("naive-ui").MessageApi;
265
278
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
266
279
  paramCfg: {
267
280
  type: ObjectConstructor;
@@ -274,28 +287,195 @@ declare const SelectDynamic: import("vue").DefineComponent<{
274
287
  }>> & {
275
288
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
276
289
  }>>;
277
- handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
278
- $attrs: {
279
- [x: string]: unknown;
280
- };
290
+ getDynamicSelectData: (params: any, filterApiConfig: any) => Promise<any>;
281
291
  emit: (event: "update:modelValue", ...args: any[]) => void;
282
- selectOptions: import("vue").Ref<any[]>;
283
292
  isLoading: import("vue").Ref<boolean>;
284
293
  filterApiConfig: import("../../../../..").AnyObject;
285
- valueCp: import("vue").WritableComputedRef<any>;
294
+ classifyFilterList: import("vue").Ref<import("../../../../..").AnyObject[]>;
295
+ totalPage: import("vue").Ref<number>;
296
+ menuProps: {
297
+ class: string;
298
+ };
299
+ curPage: import("vue").Ref<number>;
300
+ fieldTitleList: import("vue").Ref<any>;
301
+ selectOptions: import("vue").Ref<any[]>;
302
+ keywordVal: import("vue").Ref<any>;
286
303
  optionSetting: import("vue").ComputedRef<any>;
287
304
  isMultiple: import("vue").ComputedRef<boolean>;
288
- searchOptions: (keyword: string) => Promise<any>;
305
+ dynamicOptionInfos: import("vue").ComputedRef<any>;
306
+ isLastPage: import("vue").ComputedRef<boolean>;
307
+ valueCp: import("vue").ComputedRef<string | number | any[]>;
308
+ isInitRequest: import("vue").ComputedRef<boolean>;
309
+ setOptionActive: (selectIds: string[]) => void;
310
+ handleUpdateSelect: (value: string[] | null) => void;
311
+ handleUpdatePage: (page: number) => Promise<void>;
312
+ getOptionsData: (keyword: string, curPage: number) => Promise<any>;
313
+ isWhole: (value: string) => boolean;
289
314
  _handleSearch: (query: string) => Promise<void>;
290
315
  handleSearch: (query: string) => Promise<void>;
291
316
  handleInitData: () => Promise<void>;
292
- renderLabel: (option: import("naive-ui").SelectOption) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
293
- [key: string]: any;
294
- }>;
317
+ handleClear: () => Promise<void>;
318
+ handleUpdateShow: (show: boolean) => void;
295
319
  renderTag: ({ option, handleClose }: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
296
320
  [key: string]: any;
297
321
  }>;
322
+ init: () => void;
298
323
  NSelect: any;
324
+ SelectDynamicOption: import("vue").DefineComponent<{
325
+ dynamicOptionInfo: {
326
+ type: import("vue").PropType<import("../../../../..").AnyObject>;
327
+ default: () => {};
328
+ };
329
+ fieldTitleList: {
330
+ type: import("vue").PropType<import("../../../../..").AnyObject[]>;
331
+ default: () => never[];
332
+ };
333
+ optionList: {
334
+ type: import("vue").PropType<import("../../../../..").AnyObject[]>;
335
+ default: () => never[];
336
+ };
337
+ isMultiple: {
338
+ type: BooleanConstructor;
339
+ default: boolean;
340
+ };
341
+ curPage: {
342
+ type: NumberConstructor;
343
+ default: number;
344
+ };
345
+ isLastPage: {
346
+ type: BooleanConstructor;
347
+ default: boolean;
348
+ };
349
+ isShowWhole: {
350
+ type: BooleanConstructor;
351
+ default: boolean;
352
+ };
353
+ }, {
354
+ selectMinWidth: number;
355
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
356
+ dynamicOptionInfo: {
357
+ type: import("vue").PropType<import("../../../../..").AnyObject>;
358
+ default: () => {};
359
+ };
360
+ fieldTitleList: {
361
+ type: import("vue").PropType<import("../../../../..").AnyObject[]>;
362
+ default: () => never[];
363
+ };
364
+ optionList: {
365
+ type: import("vue").PropType<import("../../../../..").AnyObject[]>;
366
+ default: () => never[];
367
+ };
368
+ isMultiple: {
369
+ type: BooleanConstructor;
370
+ default: boolean;
371
+ };
372
+ curPage: {
373
+ type: NumberConstructor;
374
+ default: number;
375
+ };
376
+ isLastPage: {
377
+ type: BooleanConstructor;
378
+ default: boolean;
379
+ };
380
+ isShowWhole: {
381
+ type: BooleanConstructor;
382
+ default: boolean;
383
+ };
384
+ }>> & {
385
+ onUpdateSelect?: ((...args: any[]) => any) | undefined;
386
+ onUpdatePage?: ((...args: any[]) => any) | undefined;
387
+ }>>;
388
+ emit: (event: "updateSelect" | "updatePage", ...args: any[]) => void;
389
+ dragEndWidth: import("vue").Ref<number>;
390
+ showKeys: import("vue").ComputedRef<any>;
391
+ titleList: import("vue").ComputedRef<string[]>;
392
+ handleSelect: (option: any) => void;
393
+ searchByPage: (onePage: number) => void;
394
+ changeWidth: ({ distance }: any) => void;
395
+ saveWidth: () => void;
396
+ NEmpty: any;
397
+ NButtonGroup: any;
398
+ NButton: any;
399
+ NIcon: any;
400
+ NPopover: any;
401
+ vFlexibleResize: {
402
+ mounted(el: any, { value }: any): void;
403
+ beforeUnmount(el: any): void;
404
+ };
405
+ WidgetValEnums: {
406
+ CUSTOM: string;
407
+ FIRST_VAL: string;
408
+ WHOLE: string;
409
+ NOW: string;
410
+ TODAY: string;
411
+ TODAY_START: string;
412
+ TODAY_END: string;
413
+ TOMORROW: string;
414
+ TOMORROW_START: string;
415
+ TOMORROW_END: string;
416
+ YESTERDAY: string;
417
+ YESTERDAY_START: string;
418
+ YESTERDAY_END: string;
419
+ THIS_WEEK: string;
420
+ WEEK_START: string;
421
+ WEEK_END: string;
422
+ NEXT_WEEK: string;
423
+ LAST_WEEK: string;
424
+ THIS_MONTH: string;
425
+ MONTH_START: string;
426
+ MONTH_END: string;
427
+ NEXT_MONTH: string;
428
+ LAST_MONTH: string;
429
+ THIS_QUARTER: string;
430
+ NEXT_QUARTER: string;
431
+ LAST_QUARTER: string;
432
+ THIS_YEAR: string;
433
+ NEXT_YEAR: string;
434
+ LAST_YEAR: string;
435
+ };
436
+ ArrowBack: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
437
+ ArrowForward: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
438
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
439
+ dynamicOptionInfo: {
440
+ type: import("vue").PropType<import("../../../../..").AnyObject>;
441
+ default: () => {};
442
+ };
443
+ fieldTitleList: {
444
+ type: import("vue").PropType<import("../../../../..").AnyObject[]>;
445
+ default: () => never[];
446
+ };
447
+ optionList: {
448
+ type: import("vue").PropType<import("../../../../..").AnyObject[]>;
449
+ default: () => never[];
450
+ };
451
+ isMultiple: {
452
+ type: BooleanConstructor;
453
+ default: boolean;
454
+ };
455
+ curPage: {
456
+ type: NumberConstructor;
457
+ default: number;
458
+ };
459
+ isLastPage: {
460
+ type: BooleanConstructor;
461
+ default: boolean;
462
+ };
463
+ isShowWhole: {
464
+ type: BooleanConstructor;
465
+ default: boolean;
466
+ };
467
+ }>> & {
468
+ onUpdateSelect?: ((...args: any[]) => any) | undefined;
469
+ onUpdatePage?: ((...args: any[]) => any) | undefined;
470
+ }, {
471
+ dynamicOptionInfo: import("../../../../..").AnyObject;
472
+ fieldTitleList: import("../../../../..").AnyObject[];
473
+ optionList: import("../../../../..").AnyObject[];
474
+ isMultiple: boolean;
475
+ curPage: number;
476
+ isLastPage: boolean;
477
+ isShowWhole: boolean;
478
+ }>;
299
479
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
300
480
  paramCfg: {
301
481
  type: ObjectConstructor;
@@ -401,8 +581,15 @@ declare const DateRange: import("vue").DefineComponent<{
401
581
  valueFormat: import("vue").ComputedRef<string>;
402
582
  dateFormat: import("vue").ComputedRef<string>;
403
583
  compType: import("vue").ComputedRef<any>;
584
+ optionSetting: import("vue").ComputedRef<any>;
585
+ isPastTime: import("vue").ComputedRef<boolean>;
586
+ isFutureTime: import("vue").ComputedRef<boolean>;
404
587
  startPlaceholder: import("vue").ComputedRef<"初始日期" | "初始时间">;
405
588
  endPlaceholder: import("vue").ComputedRef<"截止日期" | "截止时间">;
589
+ startDefault: import("vue").ComputedRef<string>;
590
+ endDefault: import("vue").ComputedRef<string>;
591
+ startDateFormat: import("vue").ComputedRef<string | null>;
592
+ endDateFormat: import("vue").ComputedRef<string | null>;
406
593
  dateType: any;
407
594
  widgetOptions: import("vue").ComputedRef<{
408
595
  label: string;
@@ -411,8 +598,19 @@ declare const DateRange: import("vue").DefineComponent<{
411
598
  presetValCp: import("vue").WritableComputedRef<string>;
412
599
  handleChange: (val: any, type: "end" | "start") => void;
413
600
  isStartDateDisabled: (ts: number) => boolean;
601
+ timeStartDisabled: (ts: number) => {
602
+ isHourDisabled(hour: number): boolean | 0;
603
+ isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
604
+ isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
605
+ };
414
606
  isEndDateDisabled: (ts: number) => boolean;
607
+ timeEndDisabled: (ts: number) => {
608
+ isHourDisabled(hour: number): boolean | 0;
609
+ isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
610
+ isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
611
+ };
415
612
  NSelect: any;
613
+ NPopover: any;
416
614
  CDatePicker: import("../../../../..").SFCWithInstall<import("vue").DefineComponent<{
417
615
  updateUnchangedValue: {
418
616
  type: BooleanConstructor;
@@ -455,6 +653,7 @@ declare const DateRange: import("vue").DefineComponent<{
455
653
  WidgetValEnums: {
456
654
  CUSTOM: string;
457
655
  FIRST_VAL: string;
656
+ WHOLE: string;
458
657
  NOW: string;
459
658
  TODAY: string;
460
659
  TODAY_START: string;
@@ -513,7 +712,8 @@ declare const SelectLabel: import("vue").DefineComponent<{
513
712
  default: null;
514
713
  };
515
714
  }, {
516
- handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
715
+ getDynamicLabelData: (params: any, filterApiConfig: any) => Promise<any>;
716
+ message: import("naive-ui").MessageApi;
517
717
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
518
718
  paramCfg: {
519
719
  type: ObjectConstructor;
@@ -1 +1 @@
1
- import{reactive as t,computed as n,toRaw as a,unref as e}from"vue";import{ConditionEnums as l,WidgetTypeEnums as o,WidgetOptionEnums as i}from"../../../types/enums.js";import{transformConditions as r,transformRawConditions as s,transformDataToFront as u}from"../../../tool/transformData.js";const p=(p,m,d)=>{const c=t({params:[]}),v=n((()=>c.params.map((({p_name:t,title:n})=>({label:n||t,value:t}))))),y=t=>c.params.find((n=>n.p_name===t)),C=(t,n)=>{const a=p.value[t];a&&(a.condition=n,(t=>{const n=y(t.key);t.value=(null==n?void 0:n.type)===o.SELECT&&(null==n?void 0:n.optionSetting)===i.MULTIPLE?[]:null,t.timeVal=null})(a))};return{State:c,paramOptions:v,addFilterCondition:()=>{p.value.push({key:null,condition:null,value:null,presetVal:null})},delFilterCondition:t=>{p.value.splice(t,1)},updateKey:(t,n)=>{const a=p.value[t];a&&(a.key=n,C(t,l.EQUAL))},updateCondition:C,getParamCfg:y,initFilterConditions:async(t,n)=>{const e=await(async t=>{try{return u(d,m)}catch(t){return[]}})();c.params=e,p.value=r(n,a(c.params))},getRawFilterConditions:()=>s(e(p))}};export{p as useFilterConditions};
1
+ import{reactive as t,computed as n,toRaw as a,unref as e}from"vue";import{ConditionEnums as l,WidgetTypeEnums as o,WidgetOptionEnums as i}from"../../../types/enums.js";import{transformConditions as r,transformRawConditions as u,transformDataToFront as s}from"../../../tool/transformData.js";const p=(p,m,d)=>{const c=t({params:[]}),v=n((()=>c.params.map((({p_name:t,title:n})=>({label:n||t,value:t}))))),y=t=>c.params.find((n=>n.p_name===t)),C=(t,n)=>{const a=p.value[t];a&&(a.condition=n,(t=>{const n=y(t.key);t.value=(null==n?void 0:n.type)!==o.SELECT&&(null==n?void 0:n.type)!==o.SELECTDYNAMIC||(null==n?void 0:n.optionSetting)!==i.MULTIPLE?null:[],t.timeVal=null})(a))};return{State:c,paramOptions:v,addFilterCondition:()=>{p.value.push({key:null,condition:null,value:null,presetVal:null})},delFilterCondition:t=>{p.value.splice(t,1)},updateKey:(t,n)=>{const a=p.value[t];a&&(a.key=n,C(t,l.EQUAL))},updateCondition:C,getParamCfg:y,initFilterConditions:async(t,n)=>{const e=await(async t=>{try{return s(d,m)}catch(t){return[]}})();c.params=e,p.value=r(n,a(c.params))},getRawFilterConditions:()=>u(e(p))}};export{p as useFilterConditions};