cnhis-design-vue 3.1.54-beta.20 → 3.1.54-beta.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/es/components/chat-sdk/src/chatSDK.d.ts +12 -0
  2. package/es/components/chat-sdk/src/chatSDK.js +1 -1
  3. package/es/components/classification/index.d.ts +498 -1
  4. package/es/components/classification/src/components/search-filter/index.vue.d.ts +485 -1
  5. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  6. package/es/components/classification/src/components/set-classification/index.vue.d.ts +485 -1
  7. package/es/components/classification/src/index.vue.d.ts +498 -1
  8. package/es/components/classification/src/index.vue2.js +1 -1
  9. package/es/components/classification/style/index.css +1 -1
  10. package/es/components/form-config/index.d.ts +45 -45
  11. package/es/components/form-config/src/FormConfig.vue.d.ts +45 -45
  12. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +15 -15
  13. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +5 -5
  14. package/es/components/index.css +1 -1
  15. package/es/components/quick-search/style/index.css +1 -1
  16. package/es/components/shortcut-setter/index.d.ts +5 -5
  17. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +5 -5
  18. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +332 -0
  19. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.js +1 -0
  20. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +1 -0
  21. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +127 -0
  22. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.js +1 -0
  23. package/es/components/table-filter/src/components/bi-filter/components/Date.vue2.js +1 -0
  24. package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue.d.ts +41 -0
  25. package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue.js +1 -0
  26. package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue2.js +1 -0
  27. package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue.d.ts +28 -0
  28. package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue.js +1 -0
  29. package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue2.js +1 -0
  30. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.d.ts +51 -0
  31. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.js +1 -0
  32. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue2.js +1 -0
  33. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +244 -0
  34. package/es/components/table-filter/src/components/bi-filter/components/index.js +1 -0
  35. package/es/components/table-filter/src/components/bi-filter/helpers/options.d.ts +14 -0
  36. package/es/components/table-filter/src/components/bi-filter/helpers/options.js +1 -0
  37. package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.d.ts +13 -0
  38. package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.js +1 -0
  39. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +486 -0
  40. package/es/components/table-filter/src/components/bi-filter/index.vue.js +1 -0
  41. package/es/components/table-filter/src/components/bi-filter/index.vue2.js +1 -0
  42. package/es/components/table-filter/src/constants/index.d.ts +1 -0
  43. package/es/components/table-filter/src/constants/index.js +1 -1
  44. package/es/shared/package.json.js +1 -1
  45. package/package.json +3 -2
@@ -0,0 +1,486 @@
1
+ import { PropType } from 'vue';
2
+ import { IClassifyListType, ICategoryItemType } from '../../../../../../es/components/table-filter/src/types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ actionList_prop: {
5
+ type: PropType<IClassifyListType>;
6
+ default: () => {};
7
+ };
8
+ conditionList: {
9
+ type: ArrayConstructor;
10
+ default: () => never[];
11
+ };
12
+ tableId: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ searchFieldList: {
17
+ type: ArrayConstructor;
18
+ default: () => never[];
19
+ };
20
+ showItemName: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ hideAddBtn: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ }, {
29
+ $message: import("naive-ui").MessageApi;
30
+ menuProps: {
31
+ class: string;
32
+ };
33
+ dateCons: string[];
34
+ textCons: string[];
35
+ numberCons: string[];
36
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
37
+ actionList_prop: {
38
+ type: PropType<IClassifyListType>;
39
+ default: () => {};
40
+ };
41
+ conditionList: {
42
+ type: ArrayConstructor;
43
+ default: () => never[];
44
+ };
45
+ tableId: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ };
49
+ searchFieldList: {
50
+ type: ArrayConstructor;
51
+ default: () => never[];
52
+ };
53
+ showItemName: {
54
+ type: BooleanConstructor;
55
+ default: boolean;
56
+ };
57
+ hideAddBtn: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
61
+ }>> & {
62
+ onCancelSaveAdd?: ((...args: any[]) => any) | undefined;
63
+ onSaveAdd?: ((...args: any[]) => any) | undefined;
64
+ }>>;
65
+ emit: (event: "cancelSaveAdd" | "saveAdd", ...args: any[]) => void;
66
+ $attrs: {
67
+ [x: string]: unknown;
68
+ };
69
+ FormState: any;
70
+ loading: import("vue").Ref<boolean>;
71
+ parentInputRef: import("vue").Ref<any>;
72
+ parentInputAddRef: import("vue").Ref<any>;
73
+ sqlExpression: any;
74
+ DisplayCategoryState: {
75
+ addDisplayCategory: string;
76
+ displayCategories: {
77
+ disabled: boolean;
78
+ value: string;
79
+ }[];
80
+ displayCategoryOriginLen: number;
81
+ showAdd: boolean;
82
+ };
83
+ isEnableAddDisplayCategory: import("vue").ComputedRef<boolean>;
84
+ editDisplayCategory: (item: ICategoryItemType, cb?: any) => void;
85
+ handleDisplayCategorySelect: (item: ICategoryItemType) => void;
86
+ handleDisplayCategoryRemove: (index: number, item: ICategoryItemType) => void;
87
+ handleDisplayCategoryAdd: (cb?: any) => void;
88
+ handlerBlur: () => void;
89
+ initDisplayCategories: (rawDataDisplayCategories: any, displayCategory: any) => void;
90
+ FilterConditionsState: any;
91
+ paramOptions: import("vue").ComputedRef<any>;
92
+ addFilterCondition: () => void;
93
+ delFilterCondition: (index: number) => void;
94
+ updateKey: (index: number, val: any) => void;
95
+ updateCondition: (index: number, val: any) => void;
96
+ getParamCfg: (key: string) => any;
97
+ initFilterConditions: (tableId: string, rawConditions: import("../../../../../../es/components/table-filter/src/types").ISearchConfigType[]) => Promise<void>;
98
+ getRawFilterConditions: () => any;
99
+ isShowValueCfg: (con: string) => boolean;
100
+ handleEditDisplayCategory: (item: ICategoryItemType) => void;
101
+ handleDisplayCategoryAddState: () => void;
102
+ findConditionByDisplayCategory: (sid: string) => unknown;
103
+ handleDisplayCategorySelectProxy: (item: ICategoryItemType) => void;
104
+ clearFormData: () => void;
105
+ handleInitConditions: () => Promise<void>;
106
+ validate: () => Promise<unknown>;
107
+ saveAdd: () => void;
108
+ cancelSaveAdd: () => void;
109
+ checkActionList: () => any;
110
+ NSpin: any;
111
+ NIcon: any;
112
+ NInput: any;
113
+ NButton: any;
114
+ NTooltip: any;
115
+ NSelect: any;
116
+ AddOutline: 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<{}>>, {}>;
117
+ AddCircleSharp: 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<{}>>, {}>;
118
+ CloseOutline: 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<{}>>, {}>;
119
+ ValueCfg: import("vue").DefineComponent<{
120
+ paramCfg: {
121
+ type: ObjectConstructor;
122
+ default: null;
123
+ };
124
+ modelValue: {
125
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
126
+ default: null;
127
+ };
128
+ presetVal: {
129
+ type: StringConstructor;
130
+ default: null;
131
+ };
132
+ isAccurate: {
133
+ type: BooleanConstructor;
134
+ };
135
+ }, {
136
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
137
+ paramCfg: {
138
+ type: ObjectConstructor;
139
+ default: null;
140
+ };
141
+ modelValue: {
142
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
143
+ default: null;
144
+ };
145
+ presetVal: {
146
+ type: StringConstructor;
147
+ default: null;
148
+ };
149
+ isAccurate: {
150
+ type: BooleanConstructor;
151
+ };
152
+ }>> & {
153
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
154
+ "onUpdate:isAccurate"?: ((...args: any[]) => any) | undefined;
155
+ "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
156
+ }>>;
157
+ emit: (event: "update:modelValue" | "update:isAccurate" | "update:presetVal", ...args: any[]) => void;
158
+ valueCp: import("vue").WritableComputedRef<any>;
159
+ presetValCp: import("vue").WritableComputedRef<string>;
160
+ isAccurateCp: import("vue").WritableComputedRef<boolean>;
161
+ isSelectMode: import("vue").ComputedRef<boolean>;
162
+ biType: import("vue").ComputedRef<any>;
163
+ Date: import("vue").DefineComponent<{
164
+ componentCfg: {
165
+ type: ObjectConstructor;
166
+ };
167
+ paramCfg: {
168
+ type: ObjectConstructor;
169
+ default: null;
170
+ };
171
+ modelValue: {
172
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
173
+ default: null;
174
+ };
175
+ }, {
176
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
177
+ componentCfg: {
178
+ type: ObjectConstructor;
179
+ };
180
+ paramCfg: {
181
+ type: ObjectConstructor;
182
+ default: null;
183
+ };
184
+ modelValue: {
185
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
186
+ default: null;
187
+ };
188
+ }>> & {
189
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
190
+ }>>;
191
+ emit: (event: "update:modelValue", ...args: any[]) => void;
192
+ valueCp: import("vue").WritableComputedRef<any>;
193
+ dateType: any;
194
+ valueFormat: import("vue").ComputedRef<string>;
195
+ compType: import("vue").ComputedRef<any>;
196
+ CDatePicker: import("../../../..").SFCWithInstall<import("vue").DefineComponent<{
197
+ updateUnchangedValue: {
198
+ type: BooleanConstructor;
199
+ };
200
+ onConfirm: {
201
+ type: FunctionConstructor;
202
+ };
203
+ formattedValue: {
204
+ type: PropType<(string | [string, string]) | null | undefined>;
205
+ };
206
+ placeholder: {
207
+ type: StringConstructor;
208
+ };
209
+ allowedInvalidValue: {
210
+ type: StringConstructor;
211
+ };
212
+ }, {
213
+ attrs: {
214
+ [x: string]: unknown;
215
+ };
216
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
217
+ updateUnchangedValue: {
218
+ type: BooleanConstructor;
219
+ };
220
+ onConfirm: {
221
+ type: FunctionConstructor;
222
+ };
223
+ formattedValue: {
224
+ type: PropType<(string | [string, string]) | null | undefined>;
225
+ };
226
+ placeholder: {
227
+ type: StringConstructor;
228
+ };
229
+ allowedInvalidValue: {
230
+ type: StringConstructor;
231
+ };
232
+ }>> & {
233
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
234
+ }>>;
235
+ emit: (event: "update:formatted-value", ...args: any[]) => void;
236
+ datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
237
+ panelInstRef: import("vue").Ref<null>;
238
+ placeholderRef: import("vue").Ref<any>;
239
+ currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
240
+ isDateTime: import("vue").ComputedRef<boolean>;
241
+ formatRef: import("vue").ComputedRef<string>;
242
+ panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
243
+ focus: () => any;
244
+ blur: () => any;
245
+ handleConfirm: (target: HTMLInputElement) => void;
246
+ onUpdateShow: (show: boolean) => void;
247
+ onConfirm: (...args: any[]) => Promise<void>;
248
+ isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
249
+ NDatePicker: any;
250
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
251
+ updateUnchangedValue: {
252
+ type: BooleanConstructor;
253
+ };
254
+ onConfirm: {
255
+ type: FunctionConstructor;
256
+ };
257
+ formattedValue: {
258
+ type: PropType<(string | [string, string]) | null | undefined>;
259
+ };
260
+ placeholder: {
261
+ type: StringConstructor;
262
+ };
263
+ allowedInvalidValue: {
264
+ type: StringConstructor;
265
+ };
266
+ }>> & {
267
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
268
+ }, {
269
+ updateUnchangedValue: boolean;
270
+ }>>;
271
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
272
+ componentCfg: {
273
+ type: ObjectConstructor;
274
+ };
275
+ paramCfg: {
276
+ type: ObjectConstructor;
277
+ default: null;
278
+ };
279
+ modelValue: {
280
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
281
+ default: null;
282
+ };
283
+ }>> & {
284
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
285
+ }, {
286
+ modelValue: string | number | unknown[];
287
+ paramCfg: Record<string, any>;
288
+ }>;
289
+ InputFilter: import("vue").DefineComponent<{
290
+ paramCfg: {
291
+ type: ObjectConstructor;
292
+ default: null;
293
+ };
294
+ modelValue: {
295
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
296
+ default: null;
297
+ };
298
+ }, {
299
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
300
+ paramCfg: {
301
+ type: ObjectConstructor;
302
+ default: null;
303
+ };
304
+ modelValue: {
305
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
306
+ default: null;
307
+ };
308
+ }>> & {
309
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
310
+ }>>;
311
+ emit: (event: "update:modelValue", ...args: any[]) => void;
312
+ valueCp: import("vue").WritableComputedRef<any>;
313
+ NInput: any;
314
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
315
+ paramCfg: {
316
+ type: ObjectConstructor;
317
+ default: null;
318
+ };
319
+ modelValue: {
320
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
321
+ default: null;
322
+ };
323
+ }>> & {
324
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
325
+ }, {
326
+ modelValue: string | number | unknown[];
327
+ paramCfg: Record<string, any>;
328
+ }>;
329
+ InputNumber: import("vue").DefineComponent<{
330
+ modelValue: {
331
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
332
+ default: null;
333
+ };
334
+ }, {
335
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
336
+ modelValue: {
337
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
338
+ default: null;
339
+ };
340
+ }>> & {
341
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
342
+ }>>;
343
+ emit: (event: "update:modelValue", ...args: any[]) => void;
344
+ valueCp: import("vue").WritableComputedRef<any>;
345
+ NInputNumber: any;
346
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
347
+ modelValue: {
348
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
349
+ default: null;
350
+ };
351
+ }>> & {
352
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
353
+ }, {
354
+ modelValue: string | number | unknown[];
355
+ }>;
356
+ SelectFilter: import("vue").DefineComponent<{
357
+ paramCfg: {
358
+ type: ObjectConstructor;
359
+ default: null;
360
+ };
361
+ modelValue: {
362
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
363
+ default: null;
364
+ };
365
+ }, {
366
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
367
+ paramCfg: {
368
+ type: ObjectConstructor;
369
+ default: null;
370
+ };
371
+ modelValue: {
372
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
373
+ default: null;
374
+ };
375
+ }>> & {
376
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
377
+ }>>;
378
+ emit: (event: "update:modelValue", ...args: any[]) => void;
379
+ valueCp: import("vue").WritableComputedRef<any>;
380
+ optionSetting: import("vue").ComputedRef<any>;
381
+ widgetOptions: import("vue").ComputedRef<any>;
382
+ NSelect: any;
383
+ WidgetOptionEnums: {
384
+ RADIO: string;
385
+ MULTIPLE: string;
386
+ ALL: string;
387
+ SELECT_TIME: string;
388
+ PAST_TIME: string;
389
+ FUTURE_TIME: string;
390
+ };
391
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
392
+ paramCfg: {
393
+ type: ObjectConstructor;
394
+ default: null;
395
+ };
396
+ modelValue: {
397
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
398
+ default: null;
399
+ };
400
+ }>> & {
401
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
402
+ }, {
403
+ modelValue: string | number | unknown[];
404
+ paramCfg: Record<string, any>;
405
+ }>;
406
+ WidgetTypeEnums: {
407
+ INPUT_NUMBER: string;
408
+ INPUT: string;
409
+ SELECT: string;
410
+ DATE: string;
411
+ DATE_OUT: string;
412
+ DATE_TIME: string;
413
+ DATETIME_OUT: string;
414
+ CHECKBOX_GROUP: string;
415
+ INPUTNUMBER_RANGE: string;
416
+ DATE_RANGE_OUT: string;
417
+ DATE_RANGE_INNER: string;
418
+ DATETIME_RANGE_OUT: string;
419
+ DATETIME_RANGE_INNER: string;
420
+ LABEL: string;
421
+ SELECTLABEL: string;
422
+ SELECTDYNAMIC: string;
423
+ };
424
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurate" | "update:presetVal")[], "update:modelValue" | "update:isAccurate" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
425
+ paramCfg: {
426
+ type: ObjectConstructor;
427
+ default: null;
428
+ };
429
+ modelValue: {
430
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
431
+ default: null;
432
+ };
433
+ presetVal: {
434
+ type: StringConstructor;
435
+ default: null;
436
+ };
437
+ isAccurate: {
438
+ type: BooleanConstructor;
439
+ };
440
+ }>> & {
441
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
442
+ "onUpdate:isAccurate"?: ((...args: any[]) => any) | undefined;
443
+ "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
444
+ }, {
445
+ modelValue: string | number | unknown[];
446
+ paramCfg: Record<string, any>;
447
+ presetVal: string;
448
+ isAccurate: boolean;
449
+ }>;
450
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancelSaveAdd" | "saveAdd")[], "cancelSaveAdd" | "saveAdd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
451
+ actionList_prop: {
452
+ type: PropType<IClassifyListType>;
453
+ default: () => {};
454
+ };
455
+ conditionList: {
456
+ type: ArrayConstructor;
457
+ default: () => never[];
458
+ };
459
+ tableId: {
460
+ type: StringConstructor;
461
+ default: string;
462
+ };
463
+ searchFieldList: {
464
+ type: ArrayConstructor;
465
+ default: () => never[];
466
+ };
467
+ showItemName: {
468
+ type: BooleanConstructor;
469
+ default: boolean;
470
+ };
471
+ hideAddBtn: {
472
+ type: BooleanConstructor;
473
+ default: boolean;
474
+ };
475
+ }>> & {
476
+ onCancelSaveAdd?: ((...args: any[]) => any) | undefined;
477
+ onSaveAdd?: ((...args: any[]) => any) | undefined;
478
+ }, {
479
+ searchFieldList: unknown[];
480
+ tableId: string;
481
+ conditionList: unknown[];
482
+ actionList_prop: IClassifyListType;
483
+ showItemName: boolean;
484
+ hideAddBtn: boolean;
485
+ }>;
486
+ export default _default;
@@ -0,0 +1 @@
1
+ import e from"./index.vue2.js";import r from"../../../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","index.vue"]]);export{i as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,useAttrs as a,reactive as l,ref as t,provide as i,toRef as n,openBlock as o,createElementBlock as s,createVNode as d,unref as r,withCtx as c,createElementVNode as p,createCommentVNode as u,Fragment as f,renderList as y,normalizeClass as v,toDisplayString as m,createBlock as C,withDirectives as g,createTextVNode as h,vShow as b}from"vue";import{useMessage as k,NSpin as A,NInput as I,NIcon as L,NButton as _,NSelect as w,NTooltip as N}from"naive-ui";import{CloseOutline as S,AddOutline as x,AddCircleSharp as U}from"@vicons/ionicons5";import B from"./ValueCfg.vue.js";import{DataTypeEnums as D}from"../../types/enums.js";import{useDisplayCategory as E}from"../classify-filter/hooks/useDisplayCategory.js";import{useBiConditions as V}from"./hooks/useBiConditions.js";import{InjectionClassifyFilterList as j}from"../../constants/index.js";const O={class:"searchConditionByApi_wrapper"},F={class:"class-filter-content"},z={key:0,class:"item-name"},Q=p("span",{class:"label"},"筛选分类名称:",-1),R={key:1,class:"quickSearch-content"},q=p("span",{class:"label"},"父类名称:",-1),T=["onClick"],G=["onDblclick"],P={class:"s-content"},J={key:2,class:"item-name"},K=p("span",{class:"label"}," 过滤条件: ",-1),M=p("span",null,"添加",-1),H={class:"select-item-list"},W={class:"index-span"},X=["onClick"],Y={class:"filter-expression"},Z=p("span",null,"筛选器逻辑编辑,不设置默认为AND",-1),$=p("span",null,"例子 (1 AND 2) OR 3",-1);var ee=e({__name:"index",props:{actionList_prop:{type:Object,default:()=>({})},conditionList:{type:Array,default:()=>[]},tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},showItemName:{type:Boolean,default:!0},hideAddBtn:{type:Boolean,default:!1}},emits:["saveAdd","cancelSaveAdd"],setup(e,{expose:ee,emit:ae}){const le=e,te=k(),ie={class:"classify-fieldkey-popover"},ne=["IN","BIG","LESS","BIGEQ","LESSEQ"],oe=["CL","NC","EQ","NEQ"],se=["EQ","BIG","LESS"],de=a(),re=l({className:"",displayCategory:"",filterConditions:[]}),ce=t(!1),pe=t(),ue=t(),fe=t(le.actionList_prop.sqlExpression||"");i(j,n(re,"filterConditions"));const{State:ye,isEnableAddDisplayCategory:ve,editDisplayCategory:me,handleDisplayCategorySelect:Ce,handleDisplayCategoryRemove:ge,handleDisplayCategoryAdd:he,handlerBlur:be,initDisplayCategories:ke}=E(n(re,"displayCategory"),{conditionList:le.conditionList},te),{State:Ae,paramOptions:Ie,addFilterCondition:Le,delFilterCondition:_e,updateKey:we,updateCondition:Ne,getParamCfg:Se,initFilterConditions:xe,getRawFilterConditions:Ue}=V(n(re,"filterConditions"),le.searchFieldList,D.API);function Be(e){return[...ne,...oe,...se].includes(e)}function De(){he((()=>{setTimeout((()=>{ue.value&&ue.value.focus()}),100)}))}function Ee(){re.className="",re.displayCategory="",re.filterConditions=[]}async function Ve(){var e;try{if(Ee(),ce.value=!0,ke(de.displayCategoryList,le.actionList_prop.displayCategory||void 0),le.actionList_prop){re.className=le.actionList_prop.name,await xe(le.tableId,null!=(e=le.actionList_prop.conObj)?e:[]);re.filterConditions.length<1&&Ie.value&&Ie.value.length>0&&Le()}}finally{ce.value=!1}}return Ve(),ee({handleInitConditions:Ve,saveAdd:function(){new Promise((e=>{re.className||!le.showItemName?0!==re.filterConditions.length?re.filterConditions.some((({fieldId:e,fieldType:a,value:l,con:t})=>!e||!t||Be(t)&&!l))?te.warning("请补充完整条件内容"):e(!0):te.warning("请至少添加一个条件"):te.warning("请输入分类名称")})).then((()=>{let e;var a;"edit"===le.actionList_prop.from&&(a=le.actionList_prop.sid,e=null==le?void 0:le.conditionList.find((e=>e.sid===a)));const l={displayCategory:re.displayCategory,name:re.className||"",conObj:Ue(),sqlExpression:fe.value},t={id:e?e.sid:"",tableId:le.tableId,setting:JSON.stringify(l)};ae("saveAdd",t,!1)}))},cancelSaveAdd:function(){Ee(),ae("cancelSaveAdd")},addAction:Le,checkActionList:function(){return re.filterConditions.every((e=>!e.field_key))}}),(a,l)=>(o(),s("div",O,[d(r(A),{show:ce.value},{default:c((()=>[p("div",F,[e.showItemName?(o(),s("div",z,[Q,d(r(I),{value:re.className,"onUpdate:value":l[0]||(l[0]=e=>re.className=e),placeholder:"请输入分类名称",style:{width:"250px"},maxlength:"10"},null,8,["value"])])):u("v-if",!0),e.showItemName?(o(),s("div",R,[q,(o(!0),s(f,null,y(r(ye).displayCategories,((e,a)=>(o(),s("div",{class:"parent-name",key:a,onClick:a=>function(e){Ce(e)}(e)},[e.disabled?(o(),s("div",{key:0,class:v(["edit-tag",{"edit-tag-select":e.value===re.displayCategory&&e.disabled}]),onDblclick:a=>function(e){e.disabled=!1,setTimeout((()=>{pe.value.length>0&&pe.value[0].focus()}),100)}(e)},[p("div",P,m(e.value),1),d(r(L),{component:r(S),class:"anticon-close",size:"20",onClick:l=>r(ge)(a,e)},null,8,["component","onClick"])],42,G)):(o(),C(r(I),{key:1,ref_for:!0,ref_key:"parentInputRef",ref:pe,class:"parent-input",style:{width:"100px"},disabled:e.disabled,onBlur:()=>e.disabled=!0,value:e.value,"onUpdate:value":a=>e.value=a,maxlength:20},null,8,["disabled","onBlur","value","onUpdate:value"]))],8,T)))),128)),r(ve)?(o(),s(f,{key:0},[g(d(r(_),{class:"ant-btn",icon:"plus",dashed:"",onClick:De},{default:c((()=>[d(r(L),{component:r(x),size:"20"},null,8,["component"]),h(" "+m("添加父类"))])),_:1},512),[[b,!r(ye).showAdd]]),g(d(r(I),{ref_key:"parentInputAddRef",ref:ue,class:"parent-input",value:r(ye).addDisplayCategory,"onUpdate:value":l[1]||(l[1]=e=>r(ye).addDisplayCategory=e),valueModifiers:{trim:!0},style:{width:"100px"},onBlur:r(be),maxlength:20},null,8,["value","onBlur"]),[[b,r(ye).showAdd]])],64)):u("v-if",!0)])):u("v-if",!0),e.hideAddBtn?u("v-if",!0):(o(),s("div",J,[K,p("span",{class:"addAction",onClick:l[2]||(l[2]=(...e)=>r(Le)&&r(Le)(...e)),style:{cursor:"pointer"}},[d(r(L),{component:r(U),class:"blue",size:"18"},null,8,["component"]),M])])),p("ul",H,[(o(!0),s(f,null,y(re.filterConditions,((e,a)=>(o(),s("li",{key:a},[p("span",W,m(a+1),1),u(" 选择 field_key "),d(r(w),{class:"form-item",placeholder:"请选择",value:e.fieldId,"menu-props":ie,to:"body",filterable:"",options:r(Ie),"onUpdate:value":e=>r(we)(a,e)},null,8,["value","options","onUpdate:value"]),u(" 选择 关系 "),e.fieldId?(o(),C(r(w),{key:0,class:"form-item",placeholder:"请选择",value:e.con,to:"body",filterable:"",options:e.biTypeOptions,"onUpdate:value":e=>r(Ne)(a,e)},null,8,["value","options","onUpdate:value"])):u("v-if",!0),u(" 自定义 "),e.fieldId&&e.con&&Be(e.con)?(o(),C(B,{key:1,modelValue:e.value,"onUpdate:modelValue":a=>e.value=a,presetVal:e.presetVal,"onUpdate:presetVal":a=>e.presetVal=a,isAccurate:e.isAccurateSearch,"onUpdate:isAccurate":a=>e.isAccurateSearch=a,"param-cfg":r(Se)(e.fieldId)},null,8,["modelValue","onUpdate:modelValue","presetVal","onUpdate:presetVal","isAccurate","onUpdate:isAccurate","param-cfg"])):u("v-if",!0),d(r(N),{title:"删除",trigger:"hover"},{trigger:c((()=>[p("i",{onClick:e=>r(_e)(a),class:"iconfont-table-filter delete-item-icon icon-table-filter-menzhenyishengzhananniuqingchu"},null,8,X)])),default:c((()=>[h(" 删除 ")])),_:2},1024)])))),128))]),p("div",Y,[Z,$,d(r(I),{class:"textarea",value:fe.value,"onUpdate:value":l[3]||(l[3]=e=>fe.value=e),type:"textarea",placeholder:"请输入表达式"},null,8,["value"])])])])),_:1},8,["show"])]))}});export{ee as default};
@@ -3,3 +3,4 @@ import { InjectionKey, Ref } from 'vue';
3
3
  export declare const InjectionFilterApiConfig: InjectionKey<AnyObject>;
4
4
  export declare const InjectionFilterSearchConfig: InjectionKey<Ref<AnyObject[]>>;
5
5
  export declare const InjectionClassifyFilterList: InjectionKey<Ref<AnyObject[]>>;
6
+ export declare const InjectionClassifyfilterType: InjectionKey<String>;
@@ -1 +1 @@
1
- const i=Symbol("InjectionFilterApiConfig"),o=Symbol("InjectionFilterSearchConfig"),n=Symbol("InjectionClassifyFilterList");export{n as InjectionClassifyFilterList,i as InjectionFilterApiConfig,o as InjectionFilterSearchConfig};
1
+ const i=Symbol("InjectionFilterApiConfig"),o=Symbol("InjectionFilterSearchConfig"),e=Symbol("InjectionClassifyFilterList"),n=Symbol("InjectionClassifyfilterType");export{e as InjectionClassifyFilterList,n as InjectionClassifyfilterType,i as InjectionFilterApiConfig,o as InjectionFilterSearchConfig};
@@ -1 +1 @@
1
- var e="@cnhis-design-vue/shared",i="3.1.54-beta.20",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.54-beta.20",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
1
+ var e="@cnhis-design-vue/shared",i="3.1.54-beta.22",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.54-beta.22",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.54-beta.20",
3
+ "version": "3.1.54-beta.22",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -42,6 +42,7 @@
42
42
  "min-dom": "^3.2.1",
43
43
  "moment": "^2.29.1",
44
44
  "naive-ui": "^2.30.0",
45
+ "recorder-core": "^1.2.23070100",
45
46
  "sockjs-client": "^1.6.1",
46
47
  "sortablejs": "^1.15.0",
47
48
  "spark-md5": "^3.0.2",
@@ -63,5 +64,5 @@
63
64
  "iOS 7",
64
65
  "last 3 iOS versions"
65
66
  ],
66
- "gitHead": "efcd34990718e823030e0b5f162aee01ba332887"
67
+ "gitHead": "b77c4d202b7fcaab5e31c5db4144b7b0ee381fbb"
67
68
  }