cnhis-design-vue 3.1.46-beta.9 → 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 (133) hide show
  1. package/es/components/base-search/index.d.ts +8 -17
  2. package/es/components/base-search/src/index.vue.d.ts +8 -17
  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 +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/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +17 -219
  32. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
  33. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +1 -17
  34. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -1
  35. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +0 -19
  36. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -1
  37. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +11 -178
  38. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
  39. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +5 -1
  40. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue2.js +1 -1
  41. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +1 -2
  42. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -1
  43. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +17 -217
  44. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
  45. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +17 -219
  46. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
  47. package/es/components/table-filter/src/components/render-widget/basicData.d.ts +4 -0
  48. package/es/components/table-filter/src/components/render-widget/basicData.js +1 -0
  49. package/es/components/table-filter/src/components/render-widget/components/{DateOut.vue.d.ts → Date.vue.d.ts} +2 -21
  50. package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -0
  51. package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +1 -0
  52. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +8 -117
  53. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
  54. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +9 -13
  55. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -1
  56. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +6 -8
  57. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -1
  58. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +6 -7
  59. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -1
  60. package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +25 -19
  61. package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -1
  62. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +36 -611
  63. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
  64. package/es/components/table-filter/src/components/render-widget/enums.d.ts +3 -10
  65. package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
  66. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +6 -2
  67. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -1
  68. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +3 -4
  69. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  70. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +35 -639
  71. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  72. package/es/components/table-filter/src/constants/index.d.ts +1 -3
  73. package/es/components/table-filter/src/constants/index.js +1 -1
  74. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +4 -9
  75. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  76. package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +3 -3
  77. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  78. package/es/components/table-filter/src/tool/baseOptions.d.ts +8 -0
  79. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  80. package/es/components/table-filter/src/tool/generateDefOptions.d.ts +7 -0
  81. package/es/components/table-filter/src/tool/generateDefOptions.js +1 -0
  82. package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
  83. package/es/components/table-filter/src/tool/transformData.js +1 -1
  84. package/es/components/table-filter/src/types/enums.d.ts +0 -3
  85. package/es/components/table-filter/src/types/enums.js +1 -1
  86. package/es/components/table-filter/src/types/index.d.ts +0 -7
  87. package/es/shared/package.json.js +1 -1
  88. package/es/shared/utils/fabricjs/index.js +1 -1
  89. package/package.json +2 -2
  90. package/es/components/table-export-field/index.d.ts +0 -967
  91. package/es/components/table-export-field/index.js +0 -1
  92. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -192
  93. package/es/components/table-export-field/src/components/ExportModal.vue.js +0 -1
  94. package/es/components/table-export-field/src/components/ExportModal.vue2.js +0 -1
  95. package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +0 -687
  96. package/es/components/table-export-field/src/components/SaveProjectModal.vue.js +0 -1
  97. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +0 -1
  98. package/es/components/table-export-field/src/constants/index.d.ts +0 -3
  99. package/es/components/table-export-field/src/constants/index.js +0 -1
  100. package/es/components/table-export-field/src/hooks/useAsyncData.d.ts +0 -6
  101. package/es/components/table-export-field/src/hooks/useAsyncData.js +0 -1
  102. package/es/components/table-export-field/src/index.vue.d.ts +0 -968
  103. package/es/components/table-export-field/src/index.vue.js +0 -1
  104. package/es/components/table-export-field/src/index.vue2.js +0 -1
  105. package/es/components/table-export-field/src/types/index.d.ts +0 -6
  106. package/es/components/table-export-field/src/types/index.js +0 -1
  107. package/es/components/table-export-field/style/index.css +0 -1
  108. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +0 -231
  109. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.js +0 -1
  110. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +0 -1
  111. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.js +0 -1
  112. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +0 -1
  113. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +0 -71
  114. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.js +0 -1
  115. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +0 -1
  116. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +0 -223
  117. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.js +0 -1
  118. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +0 -1
  119. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +0 -158
  120. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.js +0 -1
  121. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +0 -1
  122. package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.d.ts +0 -27
  123. package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.js +0 -1
  124. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.d.ts +0 -55
  125. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +0 -1
  126. package/es/components/table-filter/src/components/render-widget/helpers/enums.d.ts +0 -56
  127. package/es/components/table-filter/src/components/render-widget/helpers/enums.js +0 -1
  128. package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.d.ts +0 -4
  129. package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +0 -1
  130. package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.d.ts +0 -4
  131. package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.js +0 -1
  132. package/es/components/table-filter/src/hooks/useAsyncData.d.ts +0 -4
  133. package/es/components/table-filter/src/hooks/useAsyncData.js +0 -1
@@ -1,3 +1,4 @@
1
+ import { SelectOption } from 'naive-ui';
1
2
  declare const _default: import("vue").DefineComponent<{
2
3
  paramCfg: {
3
4
  type: ObjectConstructor;
@@ -8,7 +9,6 @@ declare const _default: import("vue").DefineComponent<{
8
9
  default: null;
9
10
  };
10
11
  }, {
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,195 +21,28 @@ declare const _default: import("vue").DefineComponent<{
21
21
  }>> & {
22
22
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
23
23
  }>>;
24
- getDynamicSelectData: (params: any, filterApiConfig: any) => Promise<any>;
24
+ handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
25
+ $attrs: {
26
+ [x: string]: unknown;
27
+ };
25
28
  emit: (event: "update:modelValue", ...args: any[]) => void;
29
+ selectOptions: import("vue").Ref<any[]>;
26
30
  isLoading: import("vue").Ref<boolean>;
27
31
  filterApiConfig: import("../../../../..").AnyObject;
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>;
32
+ valueCp: import("vue").WritableComputedRef<any>;
37
33
  optionSetting: import("vue").ComputedRef<any>;
38
34
  isMultiple: import("vue").ComputedRef<boolean>;
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;
35
+ searchOptions: (keyword: string) => Promise<any>;
48
36
  _handleSearch: (query: string) => Promise<void>;
49
37
  handleSearch: (query: string) => Promise<void>;
50
38
  handleInitData: () => Promise<void>;
51
- handleClear: () => Promise<void>;
52
- handleUpdateShow: (show: boolean) => void;
39
+ renderLabel: (option: SelectOption) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
40
+ [key: string]: any;
41
+ }>;
53
42
  renderTag: ({ option, handleClose }: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
54
43
  [key: string]: any;
55
44
  }>;
56
- init: () => void;
57
45
  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
- }>;
213
46
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
214
47
  paramCfg: {
215
48
  type: ObjectConstructor;
@@ -1 +1 @@
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};
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};
@@ -31,7 +31,11 @@ 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
- widgetOptions: import("vue").ComputedRef<any>;
34
+ mappingConfig: import("vue").ComputedRef<any>;
35
+ widgetOptions: import("vue").ComputedRef<{
36
+ label: string;
37
+ value: string;
38
+ }[]>;
35
39
  NSelect: any;
36
40
  WidgetOptionEnums: {
37
41
  RADIO: string;
@@ -1 +1 @@
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};
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};
@@ -9,8 +9,7 @@ declare const _default: import("vue").DefineComponent<{
9
9
  default: null;
10
10
  };
11
11
  }, {
12
- getDynamicLabelData: (params: any, filterApiConfig: any) => Promise<any>;
13
- message: import("naive-ui").MessageApi;
12
+ handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
14
13
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
15
14
  paramCfg: {
16
15
  type: ObjectConstructor;
@@ -1 +1 @@
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
+ 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,7 +1,4 @@
1
1
  declare const Date: import("vue").DefineComponent<{
2
- componentCfg: {
3
- type: ObjectConstructor;
4
- };
5
2
  paramCfg: {
6
3
  type: ObjectConstructor;
7
4
  default: null;
@@ -16,9 +13,6 @@ declare const Date: import("vue").DefineComponent<{
16
13
  };
17
14
  }, {
18
15
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
19
- componentCfg: {
20
- type: ObjectConstructor;
21
- };
22
16
  paramCfg: {
23
17
  type: ObjectConstructor;
24
18
  default: null;
@@ -41,17 +35,11 @@ declare const Date: import("vue").DefineComponent<{
41
35
  dateType: any;
42
36
  valueFormat: import("vue").ComputedRef<string>;
43
37
  compType: import("vue").ComputedRef<any>;
44
- optionSetting: import("vue").ComputedRef<any>;
38
+ mappingConfig: import("vue").ComputedRef<any>;
45
39
  widgetOptions: import("vue").ComputedRef<{
46
40
  label: string;
47
41
  value: string;
48
42
  }[]>;
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
- };
55
43
  CDatePicker: import("../../../../..").SFCWithInstall<import("vue").DefineComponent<{
56
44
  updateUnchangedValue: {
57
45
  type: BooleanConstructor;
@@ -95,7 +83,6 @@ declare const Date: import("vue").DefineComponent<{
95
83
  WidgetValEnums: {
96
84
  CUSTOM: string;
97
85
  FIRST_VAL: string;
98
- WHOLE: string;
99
86
  NOW: string;
100
87
  TODAY: string;
101
88
  TODAY_START: string;
@@ -124,9 +111,6 @@ declare const Date: import("vue").DefineComponent<{
124
111
  LAST_YEAR: string;
125
112
  };
126
113
  }, 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
- };
130
114
  paramCfg: {
131
115
  type: ObjectConstructor;
132
116
  default: null;
@@ -234,7 +218,11 @@ declare const SelectFilter: import("vue").DefineComponent<{
234
218
  emit: (event: "update:modelValue", ...args: any[]) => void;
235
219
  valueCp: import("vue").WritableComputedRef<any>;
236
220
  optionSetting: import("vue").ComputedRef<any>;
237
- widgetOptions: import("vue").ComputedRef<any>;
221
+ mappingConfig: import("vue").ComputedRef<any>;
222
+ widgetOptions: import("vue").ComputedRef<{
223
+ label: string;
224
+ value: string;
225
+ }[]>;
238
226
  NSelect: any;
239
227
  WidgetOptionEnums: {
240
228
  RADIO: string;
@@ -274,7 +262,6 @@ declare const SelectDynamic: import("vue").DefineComponent<{
274
262
  default: null;
275
263
  };
276
264
  }, {
277
- message: import("naive-ui").MessageApi;
278
265
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
279
266
  paramCfg: {
280
267
  type: ObjectConstructor;
@@ -287,195 +274,28 @@ declare const SelectDynamic: import("vue").DefineComponent<{
287
274
  }>> & {
288
275
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
289
276
  }>>;
290
- getDynamicSelectData: (params: any, filterApiConfig: any) => Promise<any>;
277
+ handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
278
+ $attrs: {
279
+ [x: string]: unknown;
280
+ };
291
281
  emit: (event: "update:modelValue", ...args: any[]) => void;
282
+ selectOptions: import("vue").Ref<any[]>;
292
283
  isLoading: import("vue").Ref<boolean>;
293
284
  filterApiConfig: import("../../../../..").AnyObject;
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>;
285
+ valueCp: import("vue").WritableComputedRef<any>;
303
286
  optionSetting: import("vue").ComputedRef<any>;
304
287
  isMultiple: import("vue").ComputedRef<boolean>;
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;
288
+ searchOptions: (keyword: string) => Promise<any>;
314
289
  _handleSearch: (query: string) => Promise<void>;
315
290
  handleSearch: (query: string) => Promise<void>;
316
291
  handleInitData: () => Promise<void>;
317
- handleClear: () => Promise<void>;
318
- handleUpdateShow: (show: boolean) => void;
292
+ renderLabel: (option: import("naive-ui").SelectOption) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
293
+ [key: string]: any;
294
+ }>;
319
295
  renderTag: ({ option, handleClose }: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
320
296
  [key: string]: any;
321
297
  }>;
322
- init: () => void;
323
298
  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
- }>;
479
299
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
480
300
  paramCfg: {
481
301
  type: ObjectConstructor;
@@ -581,15 +401,8 @@ declare const DateRange: import("vue").DefineComponent<{
581
401
  valueFormat: import("vue").ComputedRef<string>;
582
402
  dateFormat: import("vue").ComputedRef<string>;
583
403
  compType: import("vue").ComputedRef<any>;
584
- optionSetting: import("vue").ComputedRef<any>;
585
- isPastTime: import("vue").ComputedRef<boolean>;
586
- isFutureTime: import("vue").ComputedRef<boolean>;
587
404
  startPlaceholder: import("vue").ComputedRef<"初始日期" | "初始时间">;
588
405
  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>;
593
406
  dateType: any;
594
407
  widgetOptions: import("vue").ComputedRef<{
595
408
  label: string;
@@ -598,19 +411,8 @@ declare const DateRange: import("vue").DefineComponent<{
598
411
  presetValCp: import("vue").WritableComputedRef<string>;
599
412
  handleChange: (val: any, type: "end" | "start") => void;
600
413
  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
- };
606
414
  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
- };
612
415
  NSelect: any;
613
- NPopover: any;
614
416
  CDatePicker: import("../../../../..").SFCWithInstall<import("vue").DefineComponent<{
615
417
  updateUnchangedValue: {
616
418
  type: BooleanConstructor;
@@ -653,7 +455,6 @@ declare const DateRange: import("vue").DefineComponent<{
653
455
  WidgetValEnums: {
654
456
  CUSTOM: string;
655
457
  FIRST_VAL: string;
656
- WHOLE: string;
657
458
  NOW: string;
658
459
  TODAY: string;
659
460
  TODAY_START: string;
@@ -712,8 +513,7 @@ declare const SelectLabel: import("vue").DefineComponent<{
712
513
  default: null;
713
514
  };
714
515
  }, {
715
- getDynamicLabelData: (params: any, filterApiConfig: any) => Promise<any>;
716
- message: import("naive-ui").MessageApi;
516
+ handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
717
517
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
718
518
  paramCfg: {
719
519
  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 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};
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};