cnhis-design-vue 3.2.10-beta.11 → 3.2.10-beta.19
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.
- package/es/components/audio-sdk/src/audioSDK.d.ts +22 -24
- package/es/components/audio-sdk/src/audioSDK.js +1 -1
- package/es/components/audio-sdk/src/components/{recordingDialog.vue.d.ts → recording.vue.d.ts} +8 -18
- package/es/components/audio-sdk/src/components/recording.vue.js +1 -0
- package/es/components/audio-sdk/src/components/recording.vue2.js +1 -0
- package/es/components/audio-sdk/src/utils/recordingModal.d.ts +10 -0
- package/es/components/audio-sdk/src/utils/recordingModal.js +1 -0
- package/es/components/base-search/index.d.ts +1 -0
- package/es/components/base-search/src/index.vue.d.ts +1 -0
- package/es/components/card-reader-sdk/src/insuranceSDK.js +1 -1
- package/es/components/card-reader-sdk/src/utils/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/field-set/index.d.ts +13 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +71 -25
- package/es/components/field-set/src/FieldColor.vue2.js +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +18 -3
- package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +4 -1
- package/es/components/field-set/src/Index.vue.d.ts +13 -0
- package/es/components/field-set/src/Index.vue2.js +1 -1
- package/es/components/field-set/src/components/condition.vue.d.ts +18 -4
- package/es/components/field-set/src/components/condition.vue2.js +1 -1
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +63 -22
- package/es/components/field-set/src/components/edit-dialog.vue2.js +1 -1
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +44 -44
- package/es/components/field-set/src/components/edit-filter.vue2.js +1 -1
- package/es/components/field-set/src/components/table-row.vue.d.ts +4 -1
- package/es/components/field-set/src/components/table-row.vue2.js +1 -1
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-render/src/components/renderer/combination/combination.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/combination/tableCombination.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
- package/es/components/iho-chat/index.d.ts +7 -7
- package/es/components/iho-chat/src/Index.vue.d.ts +7 -7
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +3 -3
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -0
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue.d.ts +30 -0
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue.js +1 -0
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +1 -0
- package/es/components/iho-table/src/plugins/filterTextPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/filterTextPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/headerPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +1 -0
- package/es/components/iho-table/src/utils/index.d.ts +3 -1
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/quick-search/index.d.ts +15 -0
- package/es/components/quick-search/src/index.vue.d.ts +15 -0
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +1 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/index.js +1 -1
- package/package.json +2 -2
- package/es/components/audio-sdk/src/components/recordingDialog.vue.js +0 -1
- package/es/components/audio-sdk/src/components/recordingDialog.vue2.js +0 -1
- package/es/components/audio-sdk/src/utils/recordingDialog.d.ts +0 -11
- package/es/components/audio-sdk/src/utils/recordingDialog.js +0 -1
@@ -62,9 +62,9 @@ export declare const TABLE_COMBINATION: import("vue").DefineComponent<{
|
|
62
62
|
}>> & {
|
63
63
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
64
64
|
}, {
|
65
|
+
title: string;
|
65
66
|
disabled: boolean;
|
66
67
|
minGroupNum: number;
|
67
68
|
combinationItemDeletable: boolean | CombinationItemDeletableFn;
|
68
69
|
properties: FieldItem[];
|
69
|
-
title: string;
|
70
70
|
}>;
|
@@ -441,9 +441,9 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
441
441
|
}>> & {
|
442
442
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
443
443
|
}, {
|
444
|
+
title: string;
|
444
445
|
defaultValue: import("../../shared/types").AnyObject[];
|
445
446
|
mode: string;
|
446
|
-
title: string;
|
447
447
|
disabledIds: string[];
|
448
448
|
}>;
|
449
449
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
@@ -610,9 +610,9 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
610
610
|
}>> & {
|
611
611
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
612
612
|
}, {
|
613
|
+
title: string;
|
613
614
|
defaultValue: import("../../shared/types").AnyObject[];
|
614
615
|
mode: string;
|
615
|
-
title: string;
|
616
616
|
disabledIds: string[];
|
617
617
|
}>;
|
618
618
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -910,9 +910,9 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
910
910
|
}>> & {
|
911
911
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
912
912
|
}, {
|
913
|
+
title: string;
|
913
914
|
defaultValue: import("../../shared/types").AnyObject[];
|
914
915
|
mode: string;
|
915
|
-
title: string;
|
916
916
|
disabledIds: string[];
|
917
917
|
}>;
|
918
918
|
PersonAddOutline: 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<{}>>, {}>;
|
@@ -1253,9 +1253,9 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1253
1253
|
}>> & {
|
1254
1254
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
1255
1255
|
}, {
|
1256
|
+
title: string;
|
1256
1257
|
defaultValue: import("../../shared/types").AnyObject[];
|
1257
1258
|
mode: string;
|
1258
|
-
title: string;
|
1259
1259
|
disabledIds: string[];
|
1260
1260
|
}>;
|
1261
1261
|
simplifyMessage: typeof import("./src/utils").simplifyMessage;
|
@@ -1409,9 +1409,9 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1409
1409
|
}>> & {
|
1410
1410
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
1411
1411
|
}, {
|
1412
|
+
title: string;
|
1412
1413
|
defaultValue: import("../../shared/types").AnyObject[];
|
1413
1414
|
mode: string;
|
1414
|
-
title: string;
|
1415
1415
|
disabledIds: string[];
|
1416
1416
|
}>;
|
1417
1417
|
emojis: {
|
@@ -1606,9 +1606,9 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1606
1606
|
}>> & {
|
1607
1607
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
1608
1608
|
}, {
|
1609
|
+
title: string;
|
1609
1610
|
defaultValue: import("../../shared/types").AnyObject[];
|
1610
1611
|
mode: string;
|
1611
|
-
title: string;
|
1612
1612
|
disabledIds: string[];
|
1613
1613
|
}>;
|
1614
1614
|
Video: import("vue").DefineComponent<{}, {
|
@@ -1834,9 +1834,9 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1834
1834
|
}>> & {
|
1835
1835
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
1836
1836
|
}, {
|
1837
|
+
title: string;
|
1837
1838
|
defaultValue: import("../../shared/types").AnyObject[];
|
1838
1839
|
mode: string;
|
1839
|
-
title: string;
|
1840
1840
|
disabledIds: string[];
|
1841
1841
|
}>;
|
1842
1842
|
Call: 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<{}>>, {}>;
|
@@ -446,9 +446,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
446
446
|
}>> & {
|
447
447
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
448
448
|
}, {
|
449
|
+
title: string;
|
449
450
|
defaultValue: AnyObject[];
|
450
451
|
mode: string;
|
451
|
-
title: string;
|
452
452
|
disabledIds: string[];
|
453
453
|
}>;
|
454
454
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
@@ -615,9 +615,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
615
615
|
}>> & {
|
616
616
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
617
617
|
}, {
|
618
|
+
title: string;
|
618
619
|
defaultValue: AnyObject[];
|
619
620
|
mode: string;
|
620
|
-
title: string;
|
621
621
|
disabledIds: string[];
|
622
622
|
}>;
|
623
623
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -915,9 +915,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
915
915
|
}>> & {
|
916
916
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
917
917
|
}, {
|
918
|
+
title: string;
|
918
919
|
defaultValue: AnyObject[];
|
919
920
|
mode: string;
|
920
|
-
title: string;
|
921
921
|
disabledIds: string[];
|
922
922
|
}>;
|
923
923
|
PersonAddOutline: 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<{}>>, {}>;
|
@@ -1258,9 +1258,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
1258
1258
|
}>> & {
|
1259
1259
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
1260
1260
|
}, {
|
1261
|
+
title: string;
|
1261
1262
|
defaultValue: AnyObject[];
|
1262
1263
|
mode: string;
|
1263
|
-
title: string;
|
1264
1264
|
disabledIds: string[];
|
1265
1265
|
}>;
|
1266
1266
|
simplifyMessage: typeof import("./utils").simplifyMessage;
|
@@ -1414,9 +1414,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
1414
1414
|
}>> & {
|
1415
1415
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
1416
1416
|
}, {
|
1417
|
+
title: string;
|
1417
1418
|
defaultValue: AnyObject[];
|
1418
1419
|
mode: string;
|
1419
|
-
title: string;
|
1420
1420
|
disabledIds: string[];
|
1421
1421
|
}>;
|
1422
1422
|
emojis: {
|
@@ -1611,9 +1611,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
1611
1611
|
}>> & {
|
1612
1612
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
1613
1613
|
}, {
|
1614
|
+
title: string;
|
1614
1615
|
defaultValue: AnyObject[];
|
1615
1616
|
mode: string;
|
1616
|
-
title: string;
|
1617
1617
|
disabledIds: string[];
|
1618
1618
|
}>;
|
1619
1619
|
Video: import("vue").DefineComponent<{}, {
|
@@ -1839,9 +1839,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
1839
1839
|
}>> & {
|
1840
1840
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
1841
1841
|
}, {
|
1842
|
+
title: string;
|
1842
1843
|
defaultValue: AnyObject[];
|
1843
1844
|
mode: string;
|
1844
|
-
title: string;
|
1845
1845
|
disabledIds: string[];
|
1846
1846
|
}>;
|
1847
1847
|
Call: 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<{}>>, {}>;
|
@@ -108,9 +108,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
108
108
|
}>> & {
|
109
109
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
110
110
|
}, {
|
111
|
+
title: string;
|
111
112
|
defaultValue: AnyObject[];
|
112
113
|
mode: string;
|
113
|
-
title: string;
|
114
114
|
disabledIds: string[];
|
115
115
|
}>;
|
116
116
|
export default _default;
|
@@ -164,9 +164,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
164
164
|
}>> & {
|
165
165
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
166
166
|
}, {
|
167
|
+
title: string;
|
167
168
|
defaultValue: AnyObject[];
|
168
169
|
mode: string;
|
169
|
-
title: string;
|
170
170
|
disabledIds: string[];
|
171
171
|
}>;
|
172
172
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -144,9 +144,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
144
144
|
}>> & {
|
145
145
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
146
146
|
}, {
|
147
|
+
title: string;
|
147
148
|
defaultValue: AnyObject[];
|
148
149
|
mode: string;
|
149
|
-
title: string;
|
150
150
|
disabledIds: string[];
|
151
151
|
}>;
|
152
152
|
emojis: {
|
@@ -299,9 +299,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
299
299
|
}>> & {
|
300
300
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
301
301
|
}, {
|
302
|
+
title: string;
|
302
303
|
defaultValue: AnyObject[];
|
303
304
|
mode: string;
|
304
|
-
title: string;
|
305
305
|
disabledIds: string[];
|
306
306
|
}>;
|
307
307
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
@@ -468,9 +468,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
468
468
|
}>> & {
|
469
469
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
470
470
|
}, {
|
471
|
+
title: string;
|
471
472
|
defaultValue: AnyObject[];
|
472
473
|
mode: string;
|
473
|
-
title: string;
|
474
474
|
disabledIds: string[];
|
475
475
|
}>;
|
476
476
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -768,9 +768,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
768
768
|
}>> & {
|
769
769
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
770
770
|
}, {
|
771
|
+
title: string;
|
771
772
|
defaultValue: AnyObject[];
|
772
773
|
mode: string;
|
773
|
-
title: string;
|
774
774
|
disabledIds: string[];
|
775
775
|
}>;
|
776
776
|
PersonAddOutline: 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<{}>>, {}>;
|
@@ -339,9 +339,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
339
339
|
}>> & {
|
340
340
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
341
341
|
}, {
|
342
|
+
title: string;
|
342
343
|
defaultValue: AnyObject[];
|
343
344
|
mode: string;
|
344
|
-
title: string;
|
345
345
|
disabledIds: string[];
|
346
346
|
}>;
|
347
347
|
simplifyMessage: typeof simplifyMessage;
|
@@ -212,9 +212,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
212
212
|
}>> & {
|
213
213
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
214
214
|
}, {
|
215
|
+
title: string;
|
215
216
|
defaultValue: AnyObject[];
|
216
217
|
mode: string;
|
217
|
-
title: string;
|
218
218
|
disabledIds: string[];
|
219
219
|
}>;
|
220
220
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
@@ -160,9 +160,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
160
160
|
}>> & {
|
161
161
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
162
162
|
}, {
|
163
|
+
title: string;
|
163
164
|
defaultValue: AnyObject[];
|
164
165
|
mode: string;
|
165
|
-
title: string;
|
166
166
|
disabledIds: string[];
|
167
167
|
}>;
|
168
168
|
Call: 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<{}>>, {}>;
|
@@ -1 +1 @@
|
|
1
|
-
import{createVNode as e}from"vue";import"../../../index.js";import t from"./filter.vue.js";import{isValid as
|
1
|
+
import{createVNode as e}from"vue";import"../../../index.js";import{IhoTableRenderHelper as t}from"../../utils/index.js";import i from"./filter.vue.js";import{isValid as o,compareDesc as r}from"date-fns";import{isObject as n,isArray as l}from"@vue/shared";import{defineTablePlugin as f}from"../../hooks/useTablePlugin.js";function a(){const a="filterDaterangeRenderPlugin";return f({name:a,vxe(t){t.renderer.mixin({[a]:{showFilterFooter:!1,renderFilter:(t,o)=>e(i,{payload:o,key:o.column.field},null)}})},apply(e){e.fieldHooks.field.tap(a,((e,i,f,{$table:d})=>{var s,u,m;const c=null==(s=e.editRender)?void 0:s.props;if(!n(c))return e;if(!t.hasDateFilter(c))return e;e.filterRender={name:a};const p=null==(u=d.value)?void 0:u.getColumnByField(e.field),h={};return p&&l(p.filters)&&Object.assign(h,{...null==(m=p.filters)?void 0:m[0]}),e.filters=[{...h}],e.filterMethod||(e.filterMethod=function({option:e,row:t,column:i}){const{data:n}=e,l=t[i.field];return!!o(new Date(l))&&(r(new Date(l),new Date(n[0]))<=0&&r(new Date(l),new Date(n[1]))>=0)}),f.filterConfig={iconMatch:"iho-table--iconfont iho-table-icon-filter",iconNone:"iho-table--iconfont iho-table-icon-filter",...f.filterConfig},e}))}})}export{a as filterDaterangeRenderPlugin};
|
@@ -22,6 +22,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
22
22
|
close: () => Promise<void>;
|
23
23
|
OPTION_ITEM_HEIGHT: number;
|
24
24
|
viewCapacity: import("vue").ComputedRef<number>;
|
25
|
+
customFilterMethod: import("vue").ComputedRef<any>;
|
25
26
|
filteredList: import("vue").ComputedRef<import("vxe-table").VxeTableDefines.FilterOption[]>;
|
26
27
|
list: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<import("vxe-table").VxeTableDefines.FilterOption>[]>;
|
27
28
|
containerProps: {
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,inject as l,computed as a,ref as t,onDeactivated as u,onMounted as i,toRaw as n,openBlock as o,createElementBlock as r,unref as v,createBlock as s,createCommentVNode as c,createElementVNode as d,createVNode as p,isRef as f,withCtx as
|
1
|
+
import{defineComponent as e,inject as l,computed as a,ref as t,onDeactivated as u,onMounted as i,toRaw as n,openBlock as o,createElementBlock as r,unref as v,createBlock as s,createCommentVNode as c,createElementVNode as d,createVNode as p,isRef as f,withCtx as h,mergeProps as m,normalizeProps as _,guardReactiveProps as y,Fragment as b,renderList as k,toDisplayString as g,createTextVNode as C,normalizeStyle as L}from"vue";import w from"../../../../../shared/components/CancelRadio/CancelRadio.js";import{keywordMatcher as D,widthAppend as F}from"../../../../../shared/utils/index.js";import{useVirtualList as I}from"@vueuse/core";import{isNumber as j,isString as x,isFunction as R,isEqual as S}from"lodash-es";import{NInput as U,NCheckbox as W,NSpin as E,NCheckboxGroup as O,NRadioGroup as Y,NButtonGroup as $,NButton as M}from"naive-ui";import{InjectionIhoTableConfig as P}from"../../constants/index.js";import{isVariableHeightTable as V}from"../../utils/index.js";const q={class:"iho-table__filterWrapper"},z={key:1,class:"iho-table__filterCheckAllWrapper"},A={class:"iho-table__filterListItem"},H={class:"iho-table__filterListItem"},B=["title"],G=["title"],J={class:"iho-table__filterListItemContent"},K={class:"iho-table__filterFooter"};var N=e({__name:"filter",props:{payload:{type:Object,required:!0}},setup(e){const N=e,Q=l("$xetable"),T=l(P),X=a((()=>{var e;return!!(null==(e=N.payload)?void 0:e.column.filterMultiple)})),Z=a((()=>{var e,l,a;return null!=(a=null==(l=null==(e=N.payload)?void 0:e.column)?void 0:l.filters)?a:[]})),ee=a({get:()=>Z.value.reduce(((e,l)=>(l.checked&&e.push(l.value),e)),[]),async set(e){var l,a,t,u;if(!N.payload||!Q)return;const i=Q.reactData.filterStore.options||[];if(X.value?(i.forEach((l=>l._checked=e.includes(l.value))),Q.checkFilterOptions()):i.forEach((l=>l._checked=l.value===e[0])),!V(Q))return n();function n(){N.payload.$panel.confirmFilter(new CustomEvent("click"))}(null!=(a=null==(l=Q.internalData.afterFullData)?void 0:l.length)?a:0)>(null!=(u=null==(t=T.value.scrollY)?void 0:t.gt)?u:100)&&(Q.reactData.scrollYLoad=!0),n(),Q.reactData.scrollYLoad=!1}}),le=t([...ee.value]),ae=t("");async function te(){Q&&(Q.reactData.filterStore.visible=!1)}u(te);const ue=a((()=>{var e,l;if(!N.payload||!N.payload.column)return 10;const{filterCapacity:a}=null!=(l=null==(e=N.payload.column.editRender)?void 0:e.props)?l:{};return j(a)&&a>0?a:10})),ie=a((()=>{var e;return null==(e=N.payload.column.editRender.props)?void 0:e.filterOptionsFilterMethod})),ne=a((()=>ae.value?Z.value.filter((e=>ie.value?ie.value(ae.value,e):!!`${e.label}`.includes(ae.value)||(x(e.data)?D(ae.value,e.data):void 0))):Z.value)),{list:oe,containerProps:re,wrapperProps:ve}=I(ne,{itemHeight:32,overscan:3}),se=a({get:()=>!!ne.value.length&&ne.value.every((e=>le.value.includes(e.value))),set(e){le.value=e?[...new Set([...le.value,...ne.value.map((e=>e.value))])]:le.value.filter((e=>ne.value.every((l=>l.value!==e))))}}),ce=a((()=>ne.value.some((e=>le.value.includes(e.value)))&&!se.value)),de=a({get:()=>le.value.length===Z.value.length&&0!==Z.value.length,set:e=>{le.value=e?Z.value.map((e=>e.value)):[]}}),pe=a((()=>!!le.value.length&&!de.value)),fe=a((()=>({height:F(32*ue.value)})));function he(){ee.value=X.value?le.value:S(le.value[0],null)?[]:[le.value[0]],te()}function me(){le.value=X.value?[]:[null]}const _e=t(!1);return i((async()=>{var e;if(!Q)return;const l=null==(e=N.payload.column.editRender.props)?void 0:e.onFilterShow;if(R(l))try{_e.value=!0,await l(N.payload);const{filterStore:e}=Q.reactData;n(e.options)!==n(Z.value)&&(e.options=Z.value)}finally{_e.value=!1}})),(e,l)=>(o(),r("section",q,[v(Z).length>5?(o(),s(v(U),{key:0,value:ae.value,"onUpdate:value":l[0]||(l[0]=e=>ae.value=e)},null,8,["value"])):c("v-if",!0),v(X)?(o(),r("div",z,[d("div",A,[p(v(W),{label:"全选当前",checked:v(se),"onUpdate:checked":l[1]||(l[1]=e=>f(se)?se.value=e:null),indeterminate:v(ce)},null,8,["checked","indeterminate"])]),d("div",H,[p(v(W),{label:"全选所有",checked:v(de),"onUpdate:checked":l[2]||(l[2]=e=>f(de)?de.value=e:null),indeterminate:v(pe)},null,8,["checked","indeterminate"])])])):c("v-if",!0),p(v(E),{show:_e.value},{default:h((()=>[v(X)?(o(),s(v(O),{key:0,value:le.value,"onUpdate:value":l[3]||(l[3]=e=>le.value=e)},{default:h((()=>[d("section",m(v(re),{style:v(fe),class:"iho-table__filterListWrapper"}),[d("section",_(y(v(ve))),[(o(!0),r(b,null,k(v(oe),(e=>(o(),r("div",{class:"iho-table__filterListItem",key:e.data.value},[p(v(W),{value:e.data.value},{default:h((()=>[d("div",{class:"iho-table__filterListItemContent",title:e.data.label},g(e.data.label),9,B)])),_:2},1032,["value"])])))),128))],16)],16)])),_:1},8,["value"])):(o(),s(v(Y),{key:1,value:le.value[0],"onUpdate:value":l[5]||(l[5]=e=>le.value[0]=e)},{default:h((()=>[d("section",m(v(re),{style:v(fe),class:"iho-table__filterListWrapper"}),[d("section",_(y(v(ve))),[(o(!0),r(b,null,k(v(oe),(e=>(o(),r("div",{class:"iho-table__filterListItem",key:e.data.value,title:e.data.label},[p(v(w),{value:e.data.value,currentValue:le.value[0],cancelable:"",onCancel:l[4]||(l[4]=e=>le.value=[null])},{default:h((()=>[d("div",J,g(e.data.label),1)])),_:2},1032,["value","currentValue"])],8,G)))),128))],16)],16)])),_:1},8,["value"]))])),_:1},8,["show"]),d("footer",K,[d("section",null,[v(X)?(o(),r(b,{key:0},[C(" 已选择 "),d("span",{style:L({color:"var(--c-primary-color)"})},g(le.value.length),5),C(" 项 ")],64)):c("v-if",!0)]),p(v($),{size:"small"},{default:h((()=>[p(v(M),{onClick:me},{default:h((()=>[C("清空")])),_:1}),p(v(M),{onClick:te},{default:h((()=>[C("取消")])),_:1}),p(v(M),{type:"primary",onClick:he},{default:h((()=>[C("确定")])),_:1})])),_:1})])]))}});export{N as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{createVNode as e}from"vue";import{jsonParse as l,arrayed as i}from"../../../../../shared/utils/index.js";import{isObject as r}from"@vue/shared";import{promiseTimeout as t}from"@vueuse/shared";import{isArray as o,isString as n,first as u,findLastIndex as d}from"lodash-es";import"../../../index.js";import{useUUIDMap as s,IhoTableRenderHelper as a,isCompatibleColumn as f,parseRichContent as c}from"../../utils/index.js";import v from"./filter.vue.js";import{defineTablePlugin as p}from"../../hooks/useTablePlugin.js";function m(){const m="filterRenderPlugin";return p({name:m,vxe(l){l.renderer.mixin({[m]:{showFilterFooter:!1,renderFilter:(l,i)=>e(v,{payload:i,key:i.column.field},null)}})},apply(e){const{getItemFromUUID:v,setItemFromUUID:p,removeItemFromUUID:g}=s((()=>[]),!1);e.fieldHooks.field.tap(m,((e,i,t,{$table:d})=>{var s,v,p,h,g,b,F,k;const y=null==(s=e.editRender)?void 0:s.props;if(!r(y))return e;if(!a.
|
1
|
+
import{createVNode as e}from"vue";import{jsonParse as l,arrayed as i}from"../../../../../shared/utils/index.js";import{isObject as r}from"@vue/shared";import{promiseTimeout as t}from"@vueuse/shared";import{isArray as o,isString as n,first as u,findLastIndex as d}from"lodash-es";import"../../../index.js";import{useUUIDMap as s,IhoTableRenderHelper as a,isCompatibleColumn as f,parseRichContent as c}from"../../utils/index.js";import v from"./filter.vue.js";import{defineTablePlugin as p}from"../../hooks/useTablePlugin.js";function m(){const m="filterRenderPlugin";return p({name:m,vxe(l){l.renderer.mixin({[m]:{showFilterFooter:!1,renderFilter:(l,i)=>e(v,{payload:i,key:i.column.field},null)}})},apply(e){const{getItemFromUUID:v,setItemFromUUID:p,removeItemFromUUID:g}=s((()=>[]),!1);e.fieldHooks.field.tap(m,((e,i,t,{$table:d})=>{var s,v,p,h,g,b,F,k;const y=null==(s=e.editRender)?void 0:s.props;if(!r(y))return e;if(!a.hasOptionFilter(y))return e;e.editRender={...e.editRender,props:{...null==(v=e.editRender)?void 0:v.props,sortable:e.sortable}},e.filterRender={name:m};const x=null==(p=d.value)?void 0:p.getColumnByField(e.field),R={};let C;if(x&&o(x.filters)&&x.filters.forEach((e=>{e&&(R[`${e.label}_${e.value}`]=e.checked)})),f(y))C=null!=(h=y.options)?h:[];else{C=null!=(F=null==(b=null==(g=(r(y.fieldSetting)?y.fieldSetting:n(y.fieldSetting)?l(y.fieldSetting||""):{}).mapping)?void 0:g.mappingFiled)?void 0:b.reduce(((e,l)=>{var i;const t=u(l.value);return r(t)&&e.push({label:t.key,value:t.value,data:null!=(i=t.keyword)?i:t.value}),e}),[]))?F:[]}if(e.filters=C.reduce(((e,l)=>(r(l)&&e.push({...l,checked:!!R[`${l.label}_${l.value}`]}),e)),[]),!e.filterMethod){const l=null==(k=t.treeConfig)?void 0:k.children;e.filterMethod=function({option:e,column:i,row:r}){if(l&&o(r[l])&&r[l].length)return!1;const t=r[i.field];if(o(t))return t.some((l=>[e.label,e.value].includes(l)));if(n(t)){if(t===e.value||t===e.label)return!0;const{value:l,change_text:i}=c(t);return i===e.label||l===e.value}return!1}}return t.filterConfig={iconMatch:"iho-table--iconfont iho-table-icon-filter",iconNone:"iho-table--iconfont iho-table-icon-filter",...t.filterConfig},e})),e.fieldHooks.fieldList.tap(m,((e,l)=>l.uuid?(p(l.uuid,e),e):e)),e.fieldHooks.fieldEnd.tapPromise(m,(async(e,{$table:l})=>{var i;if(l.value&&e.uuid)try{const r=v(e.uuid);if(null==(i=e.sortConfig)?void 0:i.multiple){const e=r.reduce(((e,i)=>{var r;const t=null==(r=i.editRender)?void 0:r.props;if(!i.sortable)return e;if(t&&h(t.isOrder)){const r=l.value.getColumnByField(i.field);e.push({field:i.field,order:(null==r?void 0:r.order)?r.order:t.isOrder})}return e}),[]);if(!e.length)return;await t(200),await l.value.sort(e)}else d(r,(e=>{var i;const r=null==(i=e.editRender)?void 0:i.props;if(r&&h(r.isOrder))return e&&l.value.sort(e.field,r.isOrder),!0}))}finally{g(e.uuid)}})),e.exposeHooks.expose.tap(m,((e,l,{$table:r})=>(Object.assign(e,{setSort(e,l){r.value&&r.value.sort(e,l)},setFilter(e,l){if(!r.value)return;const t=r.value.getColumnByField(e);if(!t||!o(t.filters))return;const n=i(l);t.filters.forEach((e=>{e.checked=n.includes(e.value)})),r.value.updateData()}}),e)))}})}function h(e){return["asc","desc",null].includes(e)}export{m as filterRenderPlugin};
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
import { VxeColumnPropTypes, VxeTableConstructor, VxeTableMethods, VxeTablePrivateMethods } from 'vxe-table';
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
4
|
+
payload: {
|
5
|
+
type: PropType<VxeColumnPropTypes.FilterSlotParams>;
|
6
|
+
required: true;
|
7
|
+
};
|
8
|
+
}, {
|
9
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
10
|
+
payload: {
|
11
|
+
type: PropType<VxeColumnPropTypes.FilterSlotParams>;
|
12
|
+
required: true;
|
13
|
+
};
|
14
|
+
}>> & {}>>;
|
15
|
+
valueRef: import("vue").Ref<string>;
|
16
|
+
onUpdateValue: (value: string) => void;
|
17
|
+
$table: (VxeTableConstructor & VxeTablePrivateMethods & VxeTableMethods) | undefined;
|
18
|
+
close: () => void;
|
19
|
+
confirm: () => void;
|
20
|
+
NButton: any;
|
21
|
+
NButtonGroup: any;
|
22
|
+
NInput: any;
|
23
|
+
NSpace: any;
|
24
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
25
|
+
payload: {
|
26
|
+
type: PropType<VxeColumnPropTypes.FilterSlotParams>;
|
27
|
+
required: true;
|
28
|
+
};
|
29
|
+
}>>, {}>;
|
30
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
import e from"./filter.vue2.js";import r from"../../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","filter.vue"]]);export{t as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as a,ref as l,inject as e,openBlock as t,createBlock as n,unref as o,withCtx as u,createVNode as i,createTextVNode as r}from"vue";import{cloneDeep as p}from"lodash-es";import{NSpace as d,NInput as f,NButtonGroup as c,NButton as v}from"naive-ui";var s=a({__name:"filter",props:{payload:{type:Object,required:!0}},setup(a){var s;const m=a,y=l(p((null==(s=m.payload.column.filters)?void 0:s[0])||{}).data);function _(a){y.value=a}const b=e("$xetable");function x(){b&&(b.reactData.filterStore.visible=!1)}function $(){var a,l;const e=null==(a=m.payload.column.filters)?void 0:a[0];if(!e)return x();e.data=y.value,(null==(l=m.payload)?void 0:l.$panel)&&(m.payload.$panel.changeOption(null,!!y.value,e),m.payload.$panel.confirmFilter(new CustomEvent("click")))}return(a,l)=>(t(),n(o(d),{vertical:"",style:{padding:"8px 12px"}},{default:u((()=>[i(o(f),{clearable:"",value:y.value,"onUpdate:value":_},null,8,["value"]),i(o(d),{justify:"end"},{default:u((()=>[i(o(c),{size:"small"},{default:u((()=>[i(o(v),{onClick:x},{default:u((()=>[r("取消")])),_:1}),i(o(v),{type:"primary",onClick:$},{default:u((()=>[r("确定")])),_:1})])),_:1})])),_:1})])),_:1}))}});export{s as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function filterTextRenderPlugin(): import("../../../../../components/iho-table").TablePlugin;
|
@@ -0,0 +1 @@
|
|
1
|
+
import{createVNode as e}from"vue";import{isString as i}from"lodash-es";import"../../../index.js";import{IhoTableRenderHelper as t,parseRichContent as o}from"../../utils/index.js";import r from"./filter.vue.js";import{isObject as n,isArray as l}from"@vue/shared";import{defineTablePlugin as f}from"../../hooks/useTablePlugin.js";function d(){const d="filterTextRenderPlugin";return f({name:d,vxe(i){i.renderer.mixin({[d]:{showFilterFooter:!1,renderFilter:(i,t)=>e(r,{payload:t,key:t.column.field},null)}})},apply(e){e.fieldHooks.field.tap(d,((e,r,f,{$table:u})=>{var a,s,c;const m=null==(a=e.editRender)?void 0:a.props;if(!n(m))return e;if(!t.hasTextFilter(m))return e;e.filterRender={name:d};const p=null==(s=u.value)?void 0:s.getColumnByField(e.field),h={};return p&&l(p.filters)&&Object.assign(h,{...null==(c=p.filters)?void 0:c[0]}),e.filters=[{...h}],e.filterMethod||(e.filterMethod=function({option:e,row:t,column:r}){const n=t[r.field];if(!i(n))return!1;if(n.includes(e.data))return!0;const{value:l,change_text:f}=o(n);return i(f)&&f.includes(e.data)||i(l)&&l.includes(e.data)}),f.filterConfig={iconMatch:"iho-table--iconfont iho-table-icon-filter",iconNone:"iho-table--iconfont iho-table-icon-filter",...f.filterConfig},e}))}})}export{d as filterTextRenderPlugin};
|
@@ -1 +1 @@
|
|
1
|
-
import{useAttrs as e,onBeforeUnmount as t,inject as l,createVNode as o,mergeProps as n}from"vue";import{arrayed as i,widthAppend as s}from"../../../../../shared/utils/index.js";import{CodeSlash as r}from"@vicons/ionicons5";import{isObject as a,isString as u,isFunction as d}from"lodash-es";import c from"../../../../annotation-edit/index.js";import"../../../index.js";import{InjectionIhoTableAnnotation as m,InjectionIhoTableConfig as p,InjectionIhoTableXeInstance as f,InjectionIhoTableGlobProps as v}from"../../constants/index.js";import{getLowCodeFieldFromField as h,IhoTableRenderHelper as b}from"../../utils/index.js";import x from"./tooltipMessage.vue.js";import{defineTablePlugin as g}from"../../hooks/useTablePlugin.js";function j(){const j="headerPlugin";return g({name:j,apply(g){let w=null;g.setupHooks.setup.tap(j,(()=>{w=e(),t((()=>{w=null}))})),g.fieldHooks.field.tap(j,((e,t,g)=>{var j;const D=null==(j=e.slots)?void 0:j.header;return e.slots={...e.slots,header:t=>function(e,t,h){var g;const j=l(m),D=l(p),M=l("$xetable"),y=l(f);y&&!(null==y?void 0:y.value)&&(y.value=M);const W=e.column||{},k=a(null==j?void 0:j.value)&&!1!==t.annotation,O=b.isEditableColumn(D.value,W),P=b.hasFilter(t)
|
1
|
+
import{useAttrs as e,onBeforeUnmount as t,inject as l,createVNode as o,mergeProps as n}from"vue";import{arrayed as i,widthAppend as s}from"../../../../../shared/utils/index.js";import{CodeSlash as r}from"@vicons/ionicons5";import{isObject as a,isString as u,isFunction as d}from"lodash-es";import c from"../../../../annotation-edit/index.js";import"../../../index.js";import{InjectionIhoTableAnnotation as m,InjectionIhoTableConfig as p,InjectionIhoTableXeInstance as f,InjectionIhoTableGlobProps as v}from"../../constants/index.js";import{getLowCodeFieldFromField as h,IhoTableRenderHelper as b}from"../../utils/index.js";import x from"./tooltipMessage.vue.js";import{defineTablePlugin as g}from"../../hooks/useTablePlugin.js";function j(){const j="headerPlugin";return g({name:j,apply(g){let w=null;g.setupHooks.setup.tap(j,(()=>{w=e(),t((()=>{w=null}))})),g.fieldHooks.field.tap(j,((e,t,g)=>{var j;const D=null==(j=e.slots)?void 0:j.header;return e.slots={...e.slots,header:t=>function(e,t,h){var g;const j=l(m),D=l(p),M=l("$xetable"),y=l(f);y&&!(null==y?void 0:y.value)&&(y.value=M);const W=e.column||{},k=a(null==j?void 0:j.value)&&!1!==t.annotation,O=b.isEditableColumn(D.value,W),P=b.hasFilter(t),$=b.hasTitlePrefix(e.column),C=u(h)?h:d(h)?h(e):null;let H=null==(g=t.settingObj)?void 0:g.fieldDescDev;if(u(H)&&H){const e=l(v);H=(null==e?void 0:e.developMode)?H:""}let R=!1;if(D.value){const e=D.value.editRules&&D.value.editRules[W.field];e&&(R=i(e).some((e=>e.required)))}const S=D.value.border?Math.max(2,Math.ceil(M.reactData.scrollbarWidth/M.reactData.tableColumn.length)):1,T=s(Math.max(0,W.renderWidth-20-S-(R?14:0)-(k?18:0)-(P?23:0)-(O?22:0)-($?20:0)-(W.sortable?23:0)-(H?20:0)));return o("section",{class:"iho-table__headerWrapper"},[o("section",{style:{width:T}},[null!=C?C:o("div",n({style:{maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},function(){var e;const l=null==(e=t.settingObj)?void 0:e.fieldDescribe;return l?{title:`${W.title}\n${l}`}:{}}()),[function(){const e=W.title,t=/\\n|\n|\r/g;if(!t.test(e))return e;const l=e.replace(t,"<br>").split("<br>");return l.map(((e,t)=>[e,t===l.length-1?null:o("br",null,null)]))}()])]),H?o(x,{message:H},{trigger:()=>o(r,{style:"width:14px"},null)}):null,k?o(c,{modelValue:j.value[W.field],"onUpdate:modelValue":e=>j.value[W.field]=e,shortcuts:w&&(w["annotation-shortcuts"]||w.annotationShortcuts)||[]},null):null])}(t,h(e),D)},e}))}})}export{j as default};
|
@@ -1 +1 @@
|
|
1
|
-
import*as e from"./anchorPlugin/index.js";import*as r from"./bindEventSettingPlugin.js";import*as i from"./colorAndIconPlugin.js";import*as n from"./copyPastePlugin.js";import*as s from"./defaultConfigPlugin.js";import*as t from"./defaultValuePlugin.js";import*as l from"./dragScrollPlugin.js";import*as d from"./filterDaterangeRenderPlugin/index.js";import*as g from"./filterRenderPlugin/index.js";import*as o from"./
|
1
|
+
import*as e from"./anchorPlugin/index.js";import*as r from"./bindEventSettingPlugin.js";import*as i from"./colorAndIconPlugin.js";import*as n from"./copyPastePlugin.js";import*as s from"./defaultConfigPlugin.js";import*as t from"./defaultValuePlugin.js";import*as l from"./dragScrollPlugin.js";import*as d from"./filterDaterangeRenderPlugin/index.js";import*as g from"./filterRenderPlugin/index.js";import*as o from"./filterTextPlugin/index.js";import*as u from"./filterVisibleEventPlugin.js";import*as a from"./forceArrowKeyPlugin.js";import*as P from"./headerPlugin/index.js";import*as m from"./highLightSetPlugin.js";import*as f from"./keyboardEventPlugin.js";import*as p from"./lowCodeFieldAdaptorPlugin.js";import*as x from"./maxCheckSizePlugin.js";import*as j from"./operationalFormPlugin.js";import*as c from"./pagerScrollPlugin/index.js";import*as b from"./rendererPlugins/editableWidgets/dateRendererPlugin/index.js";import*as R from"./rendererPlugins/editableWidgets/inputRendererPlugin.js";import*as w from"./rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.js";import*as h from"./rendererPlugins/editableWidgets/numberRendererPlugin.js";import*as W from"./rendererPlugins/editableWidgets/radioRendererPlugin.js";import*as S from"./rendererPlugins/editableWidgets/selectRendererPlugin/index.js";import*as v from"./rendererPlugins/editableWidgets/separateRendererPlugin/index.js";import*as k from"./rendererPlugins/editableWidgets/switchRendererPlugin.js";import*as C from"./rendererPlugins/editableWidgets/timeRendererPlugin/index.js";import*as y from"./rendererPlugins/widgets/checkRendererPlugin.js";import*as A from"./rendererPlugins/widgets/colorRendererPlugin.js";import*as E from"./rendererPlugins/widgets/defaultRendererPlugin.js";import*as F from"./rendererPlugins/widgets/htmlRendererPlugin.js";import*as T from"./rendererPlugins/widgets/labelRendererPlugin.js";import*as D from"./rendererPlugins/widgets/pictureRendererPlugin.js";import*as V from"./rendererPlugins/widgets/seqRendererPlugin.js";import*as q from"./rowClickPlugin.js";import*as z from"./rowDragPlugin.js";import*as G from"./rowGroupSettingPlugin/index.js";import*as H from"./stickyFixedPlugin.js";import*as I from"./varialbleHeightPlugin.js";import*as K from"./verticalTablePlugin/index.js";import*as L from"./virtualTreePlugin.js";import*as O from"./wordbookSettingPlugin.js";import{separateMetaModule as B}from"../../../../shared/utils/index.js";var J=B(Object.assign({"./anchorPlugin/index.tsx":e,"./bindEventSettingPlugin.ts":r,"./colorAndIconPlugin.ts":i,"./copyPastePlugin.ts":n,"./defaultConfigPlugin.ts":s,"./defaultValuePlugin.ts":t,"./dragScrollPlugin.ts":l,"./filterDaterangeRenderPlugin/index.tsx":d,"./filterRenderPlugin/index.tsx":g,"./filterTextPlugin/index.tsx":o,"./filterVisibleEventPlugin.ts":u,"./forceArrowKeyPlugin.ts":a,"./headerPlugin/index.tsx":P,"./highLightSetPlugin.tsx":m,"./keyboardEventPlugin.ts":f,"./lowCodeFieldAdaptorPlugin.tsx":p,"./maxCheckSizePlugin.ts":x,"./operationalFormPlugin.ts":j,"./pagerScrollPlugin/index.ts":c,"./rendererPlugins/editableWidgets/dateRendererPlugin/index.tsx":b,"./rendererPlugins/editableWidgets/inputRendererPlugin.tsx":R,"./rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.tsx":w,"./rendererPlugins/editableWidgets/numberRendererPlugin.tsx":h,"./rendererPlugins/editableWidgets/radioRendererPlugin.tsx":W,"./rendererPlugins/editableWidgets/selectRendererPlugin/index.tsx":S,"./rendererPlugins/editableWidgets/separateRendererPlugin/index.tsx":v,"./rendererPlugins/editableWidgets/switchRendererPlugin.tsx":k,"./rendererPlugins/editableWidgets/timeRendererPlugin/index.tsx":C,"./rendererPlugins/widgets/checkRendererPlugin.tsx":y,"./rendererPlugins/widgets/colorRendererPlugin.tsx":A,"./rendererPlugins/widgets/defaultRendererPlugin.tsx":E,"./rendererPlugins/widgets/htmlRendererPlugin.tsx":F,"./rendererPlugins/widgets/labelRendererPlugin.tsx":T,"./rendererPlugins/widgets/pictureRendererPlugin.tsx":D,"./rendererPlugins/widgets/seqRendererPlugin.tsx":V,"./rowClickPlugin.ts":q,"./rowDragPlugin.ts":z,"./rowGroupSettingPlugin/index.ts":G,"./stickyFixedPlugin.tsx":H,"./varialbleHeightPlugin.tsx":I,"./verticalTablePlugin/index.ts":K,"./virtualTreePlugin.ts":L,"./wordbookSettingPlugin.ts":O}));export{J as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{isObject as e,isFunction as t,cloneDeep as i}from"lodash-es";import{toRaw as l,h as o}from"vue";import{HIGHEST_PRIORITY as
|
1
|
+
import{isObject as e,isFunction as t,cloneDeep as i}from"lodash-es";import{toRaw as l,h as o}from"vue";import{HIGHEST_PRIORITY as n,IHO_TABLE_FIXED_STATUS as s,WIDGET_TYPE as d}from"../constants/index.js";import{defineTablePlugin as r}from"../hooks/useTablePlugin.js";import{getDefaultValue as a}from"./rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js";import{IhoTableStatusHelper as f,IhoTableUtils as c}from"../utils/index.js";function p(){const p="lowCodeFieldAdaptorPlugin";return r({name:p,apply(r){r.fieldHooks.field.tap({name:p,stage:n},((n,r,p)=>{const u=n,m={className:u.bold?"iho-table__boldCell":"",field:u.columnName,showOverflow:"ellipsis",visible:f.notNegative(u.isShow),minWidth:u.colWidth,sortable:f.isPositive(u.isSort),fixed:s[u.isFixed],...u,title:u.alias||u.title};return function(e,i){const l={default:i.slotFn,header:i.headerSlotFn,edit:i.editSlotFn,footer:i.footerSlotFn,...i.slots};if(t(i.checkEditStatus)){const{default:e}=l;t(e)&&(l.default=t=>i.checkEditStatus(t)?e(t):[o("span",null,a(t.row,t.column.editRender.props))])}e.slots=l}(m,u),function(o,n,s){var r,a,p,u;const m=i(l(n));(null==(r=m.filterSetting)?void 0:r.daterange)&&(Reflect.deleteProperty(m.filterSetting,"daterange"),m.filterSetting.type="daterange");m.componentProps={size:"mini"===s.size?"small":s.size,...m.componentProps},s.forceClearable&&(m.componentProps.clearable=!0);o.editRender={name:c.getCellType(n),...o.editRender,props:m},null==(null==(a=o.editRender)?void 0:a.enabled)&&(o.editRender.enabled=!Reflect.get(d,o.editRender.name),!o.editRender.enabled&&t(null==(p=o.slots)?void 0:p.default)&&(o.editRender.enabled=t(null==(u=o.slots)?void 0:u.edit)));if(!e(n.settingObj))return;Reflect.has(n.settingObj,"isHide")&&(o.visible=o.visible&&f.notPositive(n.settingObj.isHide))}(m,u,p),m})),r.fieldHooks.field.tap({name:p+"After",stage:1e3},(t=>(e(t.slots)&&Object.entries(t.slots).forEach((([e,i])=>{null==i&&Reflect.deleteProperty(t.slots,e)})),t)))}})}export{p as lowCodeFieldAdaptorPlugin};
|
@@ -1 +1 @@
|
|
1
|
-
import{traverse as e,findAncestor as n,getStringWidth as t}from"../../../../../../shared/utils/index.js";import{isString as r,isNumber as i,constant as o,isFunction as a,noop as l,range as d,property as u}from"lodash-es";import{IhoTableRenderHelper as c}from"../../../utils/index.js";import{VERTICAL_CELL_TYPE as f}from"./constants.js";function s(e){var n;return!!(null==(n=e.verticalConfig)?void 0:n.enable)}function h(e){return!!r(e)&&e.startsWith("header_")}function p(e){return!!r(e)&&e.startsWith("body_")}function _(e){var n;return r(e)?+(null!=(n=e.split("_")[1])?n:-1):-1}function m(n,t){const r=[];return e(n,((
|
1
|
+
import{traverse as e,findAncestor as n,getStringWidth as t}from"../../../../../../shared/utils/index.js";import{isString as r,isNumber as i,constant as o,isFunction as a,noop as l,range as d,property as u}from"lodash-es";import{IhoTableRenderHelper as c}from"../../../utils/index.js";import{VERTICAL_CELL_TYPE as f}from"./constants.js";function s(e){var n;return!!(null==(n=e.verticalConfig)?void 0:n.enable)}function h(e){return!!r(e)&&e.startsWith("header_")}function p(e){return!!r(e)&&e.startsWith("body_")}function _(e){var n;return r(e)?+(null!=(n=e.split("_")[1])?n:-1):-1}function m(n,t){const r=[];return e(n,((n,i,o)=>{n.parent=o,n.children||(!function(n,t){if(!n.parent)return n[`header_${t}`]=n.title,void d(t+1).forEach((e=>{n[`header_${e}_colspan`]=e===t?t+1:0,n[`header_${e}_rowspan`]=e===t?1:0}));let r=0,i=n;const o=[n];for(;i.parent;)r++,i=i.parent,o.unshift(i);d(t+1).forEach((i=>{var a,l;const d=o[i];if(!d)return n[`header_${i}`]="",n[`header_${i}_colspan`]=0,void(n[`header_${i}_rowspan`]=0);n[`header_${i}`]=null!=(l=null==(a=o[i])?void 0:a.title)?l:"",n[`header_${i}_colspan`]=i<r?1:t-r+1,n[`header_${i}_rowspan`]=function(n){if(!n.children)return 1;let t=0;return e(n.children,(e=>{e.children||t++})),t}(d)}))}(n,t),r.push(n))})),r.forEach(((e,n)=>{const i=r[n-1];i&&Object.entries(e).forEach((([n,r])=>{n.match(/^header_(\d+)$/)&&r===i[n]&&r&&n!==`header_${t}`&&(e[`${n}_colspan`]=0,e[`${n}_rowspan`]=0)}))})),r}function g({row:e,column:n}){var t,r;return h(n.field)?{rowspan:null!=(t=e[n.field+"_rowspan"])?t:1,colspan:null!=(r=e[n.field+"_colspan"])?r:1}:{colspan:1,rowspan:1}}const x=({cell:e}={})=>{const n=e&&e.querySelector("input,.n-input__input-el,.n-input__textarea-el");return n&&n.click(),n};function $(n,r){let i=120;return e(r,((e,r,o,a)=>{a===n&&(i=Math.max(i,t(e.title||"")+20+(c.hasTitlePrefix(e)?20:0)))})),Math.ceil(i)}function w(e,n,t){const r=T(t);let u=r.getTableConfig("verticalConfig.headerWidth");u="auto"===u?$:i(u)?o(u):a(u)?u:$;let c=r.getTableConfig("verticalConfig.bodyWidth");c=i(c)?o(c):a(c)?c:l;let s=r.getTableConfig("verticalConfig.bodyMinWidth");return s=i(s)?o(s):a(s)?s:o(120),[...d(n+1).map((e=>({field:`header_${e}`,title:`header_${e}`,width:u(e,t.originalFieldList),fixed:"left",editRender:{name:f,props:{},enable:!1}}))),...e.map(((e,n)=>({field:`body_${n}`,title:`body_${n}`,minWidth:s(n),width:c(n),editRender:{name:f,props:{},enable:!0,autofocus:x}})))]}function v(e){const t=n(e.target,(e=>"TD"===e.tagName||"TH"===e.tagName));if(!t)return;const r=t.className.match(/(body|header)_(\d+)/);if(!r)return;const[i,o,a]=r;return{fieldKey:i,type:o,sequence:+a}}function y(e){return u("originalField")(e)}function b(e,n){return u(`originalData.${n}`)(e)}function I(e,n){const t=_(n.field),r=y(e);return{row:b(e,t),rowIndex:t,$rowIndex:t,column:r,fixed:r.fixed,type:r.type}}function C(n){const t=[];return e(n,(e=>{"left"===e.fixed&&t.push(e)})),t}function T(e){return{getOriginDataByColumn(n){const{originalData:t=[]}=e;return t[_(n.field)]},getTableConfig:n=>u(n)(e.originalTableConfig)}}function D(e,n){return new Proxy({},{get(t,r){var i;if("originalField"===r)return e;if("originalData"===r)return a(n)?n():n;if(h(r))return e[r];if(p(r)){const t=_(r);return"seq"===e.type?t+1:null==(i=n[t])?void 0:i[e.field]}return t[r]},set(t,r,i){if(!h(r)){const t=_(r);t>=0&&n[t]&&(n[t][e.field]=i)}return!0}})}function W({$columnIndex:e,$rowIndex:n,column:t,columnIndex:r,row:i,rowIndex:o,type:a,_columnIndex:l,_rowIndex:d},u){var c;if(t){const f=a;if(a=h(t.field)?"header":"body",i){const s=_(t.field);t=y(i),i="header"===a?void 0:b(i,s),l=r=e="header"===f?n||0:((null==(c=u.fixedLeftVerticalData)?void 0:c.length)||0)+(n||0),d=o=n="header"===a?-1:s}}return{column:t,row:i,_columnIndex:l,_rowIndex:d,columnIndex:r,rowIndex:o,$columnIndex:e,$rowIndex:n,type:a}}x.toString=()=>"input,.n-input__input-el";export{W as basicParamsConvert,m as bindHeaderInfoAndFlatten,D as createDataProxy,w as createVerticalFieldList,T as createVerticalStateHandler,C as findFixedLeftFields,_ as getHeaderDepthByField,I as getOriginBasePayload,y as getOriginFieldFromRowData,b as getOriginRowFromRowData,g as getSpanInfo,v as getVerticalInfoFromEvent,p as isVerticalBody,h as isVerticalHeader,s as isVerticalTable};
|
@@ -37,7 +37,9 @@ export declare const IhoTableRenderHelper: Readonly<{
|
|
37
37
|
createRenderEdit: typeof createRenderEdit;
|
38
38
|
isEditableColumn(config: IhoTableConfig, column: IhoTableFieldItem): boolean | undefined;
|
39
39
|
hasFilter(lowCodeField: LowCodeTableFieldItem): boolean;
|
40
|
-
|
40
|
+
hasOptionFilter(lowCodeField: LowCodeTableFieldItem): boolean;
|
41
|
+
hasDateFilter(lowCodeField: LowCodeTableFieldItem): boolean;
|
42
|
+
hasTextFilter(lowCodeField: LowCodeTableFieldItem): boolean;
|
41
43
|
hasTitlePrefix(lowCodeField: VxeTableDefines.ColumnInfo | IhoTableFieldItem): boolean | import("vxe-table").VxeTooltipPropTypes.Content | undefined;
|
42
44
|
}>;
|
43
45
|
export declare const IhoTableStatusHelper: Readonly<{
|
@@ -1 +1 @@
|
|
1
|
-
import{reactive as e,inject as
|
1
|
+
import{reactive as e,inject as t,unref as n,normalizeStyle as r,toRaw as i,createVNode as o}from"vue";import{jsonParse as l}from"../../../../shared/utils/index.js";import{promiseTimeout as u}from"@vueuse/shared";import{parse as a,isValid as c,compareDesc as s}from"date-fns";import{isNumber as d,isFunction as f,isString as p,isObject as m,isArray as v}from"lodash-es";import{InjectionIhoTableConfig as h,InjectionIhoTableEmits as g,IHO_TABLE_STRING_STATUS as I,IHO_TABLE_NUMBER_STATUS as E,IHO_TABLE_TREE_TYPE as T,EDITABLE_WIDGET_TYPE as w,InjectionIhoTableUUID as F}from"../constants/index.js";import{getSeparateInfo as R}from"./separateMap.js";export{deleteSeparateInfo,getSeparateInfo,setSeparateInfo}from"./separateMap.js";function S(e){return console.warn(`[IhoTable]: ${e}`)}const C=Object.freeze({getCellType(e){var t;return((null==(t=e.settingObj)?void 0:t.attr)||e.formType||"DEFAULT").toUpperCase()}});function P(){var e,n,r;const i=t(h);return i||S("this function(getRowHeight) only can be used in setup environment"),null!=(r=null==(n=null==(e=null==i?void 0:i.value)?void 0:e.rowConfig)?void 0:n.height)?r:32}function D(e){const t=e.slice(2);return`${t[0].toLowerCase()}${t.slice(1)}`}function O(e){return`on${e[0].toUpperCase()}${e.slice(1)}`}function x(t,n=!0){const r=n?e(new Map):new Map;return{uuidMap:r,getItemFromUUID:function(e){return r.get(e)||r.set(e,t()),r.get(e)},setItemFromUUID:function(e,t){r.set(e,t)},removeItemFromUUID:function(e){r.delete(e)}}}async function b(e,t,r,i,o=2){const l=function(){var o;const l=null==(o=n(i))?void 0:o.getColumnByField(e.field);if(!l)return;const u=$(l);return u?f(u.separateWidth)?u.separateWidth({column:l,row:t,rowIndex:r,$table:n(i)}):d(u.separateWidth)?u.separateWidth:l.renderWidth:l.renderWidth}();return d(l)&&l>0?l:o<=0?function(){const t=+e.colWidth;return d(t)?t:64}():(await u(0),b(e,t,r,i,o-1))}function A(e){const r=t(g);function o(){var t;const r=n(e);return{$table:r.$table,value:r.row[r.column.field],row:r.row,column:{...r.column,...null==(t=r.column.editRender)?void 0:t.props},index:r.rowIndex>-1?r.rowIndex:r.$rowIndex}}function l(e={}){r("formChange",{...o(),...i(e)})}function u(e={}){r("formClick",{...o(),...i(e)})}return{emitFormChange:function(){l()},emitFormClick:function(){u()},emitFormChangeWithParams:l,emitFormClickWithParams:u}}function $(e){var t;return null==(t=e.editRender)?void 0:t.props}const y=Object.freeze({createDefaultRenderCell:function(){return function({props:e},{row:n,column:r}){if("bottom"!==(null==e?void 0:e.separatePlacement))return c(n[r.field]);const i=t(F),l=R(i,n);if(!l)return c(n[r.field]);const{originalData:u=n,isLastRow:a}=l;return c(a?u[r.field]:null);function c(e){return[o("span",{title:j(r,e),class:"iho-table__colorAndIcon"},[e])]}}},createRenderEdit:function(e){return function({props:t},n){return e({...n,fieldItem:t||{},...A(n)})}},isEditableColumn(e,t){var n;return!1!==(null==(n=e.editConfig)?void 0:n.showIcon)&&t.editRender&&!1!==t.editRender.enabled},hasFilter(e){return this.hasDateFilter(e)||this.hasOptionFilter(e)||this.hasTextFilter(e)},hasOptionFilter(e){if(U(e))return!0;let t=e.fieldSetting;return p(t)&&(t=l(t||"")),m(t)&&((n=t).notParticipatingSearch!==I.POSITIVE&&"manual"===(null==(r=n.mapping)?void 0:r.type));var n,r},hasDateFilter(e){var t;return"daterange"===(null==(t=null==e?void 0:e.filterSetting)?void 0:t.type)},hasTextFilter(e){var t;return"text"===(null==(t=null==e?void 0:e.filterSetting)?void 0:t.type)},hasTitlePrefix(e){var t,n;return e&&((null==(t=e.titlePrefix)?void 0:t.content)||(null==(n=e.titlePrefix)?void 0:n.useHTML))}}),N=Object.freeze({isPositive:e=>e===E.POSITIVE||e===I.POSITIVE,isNegative:e=>e===E.NEGATIVE||e===I.NEGATIVE,notPositive:e=>e!==E.POSITIVE&&e!==I.POSITIVE,notNegative:e=>e!==E.NEGATIVE&&e!==I.NEGATIVE});function H(e){return[T.TRANSFORM_WITH_SPAN_METHOD,T.TRANSFORM_TREE_TYPE].includes(`${e.isTree}`)}function V(e){return p(e)&&!!e.match(/^###\{[^{}]+}$/)}function W(e){try{return JSON.parse(e.replace(/^###/,""))}catch(e){return{}}}function _(e,t){if(e.$__SEPARATE||!t.editRender||!t.editRender.props)return e[t.field];const{fieldSetting:n}=t.editRender.props;if(!p(n))return e[t.field];const{mergedFeildExpression:r}=l(n);return r&&p(r)?r.replace(/#{(.+?)}/g,(function(t,n){let r=n?e[n.trim()]:null;V(r)&&(r=W(r).change_text);return r||(null==r?"--":r)})):e[t.field]}const M=["SEARCH","SELECT","RADIO","CHECKBOX"];function U(e){return e.notParticipatingSearch===E.NEGATIVE&&M.includes(C.getCellType(e))&&v(e.options)&&e.options.length}function j(e,t=""){return"tooltip"!==e.showOverflow&&p(t)?t:""}function G(e,t){var r,i,o;t=n(t)||"";const l=null!=(i=null==(r=e.editRender)?void 0:r.props)?i:{},u=a(t,(null==(o=null==l?void 0:l.componentProps)?void 0:o.valueFormat)||"HH:mm",new Date);return!c(u)}function L(e,t,r){var i,o;const l=null!=(o=null==(i=e.editRender)?void 0:i.props)?o:{};return r=n(r)||"",!c(new Date(r))||p(l.connectField)&&t[l.connectField]&&(l.isStartDate&&s(new Date(r),new Date(t[l.connectField]))<0||l.isEndDate&&s(new Date(r),new Date(t[l.connectField]))>0)}function k(e){var t,n;return(!0===e.variableHeight||"1"===e.variableHeight)&&(null!=(n=null==(t=e.editRender)?void 0:t.name)?n:C.getCellType(e))!==w.SEPARATE}function z(e){const t=e.internalData.tableFullColumn;return!!v(t)&&t.some((e=>{var t,n;return k(null!=(n=null==(t=e.editRender)?void 0:t.props)?n:{})}))}function B(e,t){return t?e?n=>[f(e)?e(n):e,f(t)?t(n):t]:t:e}function J(e,t){return t?e?n=>r([f(e)?e(n):e,f(t)?t(n):t]):t:e}export{y as IhoTableRenderHelper,N as IhoTableStatusHelper,C as IhoTableUtils,S as IhoTableWarn,D as eventListener2EventName,O as eventName2EventListener,b as getColumnRenderWidth,$ as getLowCodeFieldFromField,P as getRowHeight,j as getTitle,U as isCompatibleColumn,L as isInvalidDate,G as isInvalidTime,V as isRichContent,H as isTransformTreeType,k as isVariableHeightColumn,z as isVariableHeightTable,B as mergeVxeClass,J as mergeVxeStyle,_ as parseMergeField,W as parseRichContent,A as useIhoTableFormEvent,x as useUUIDMap};
|