cnhis-design-vue 3.1.26-beta.4 → 3.1.27-beta.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.
- package/README.md +123 -123
- package/es/components/fabric-chart/index.d.ts +2 -0
- package/es/components/fabric-chart/src/FabricChart.js +4 -11
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -0
- package/es/components/fabric-chart/src/hooks/useCenter.d.ts +2 -0
- package/es/components/fabric-chart/src/hooks/useCenter.js +76 -12
- package/es/components/fabric-chart/src/hooks/useLeft.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useLeft.js +9 -10
- package/es/components/form-config/index.d.ts +2 -2
- package/es/components/form-config/src/FormConfig.vue.d.ts +2 -2
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +1 -1
- package/es/components/form-render/index.d.ts +1 -1
- package/es/components/form-render/src/FormRender.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.js +1 -2
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +18 -19
- package/es/components/iho-table/index.d.ts +6 -0
- package/es/components/iho-table/index.js +1 -1
- package/es/components/iho-table/src/IhoTable.js +12 -5
- package/es/components/iho-table/src/IhoTable.vue.d.ts +6 -0
- package/es/components/iho-table/src/constants/index.d.ts +16 -4
- package/es/components/iho-table/src/constants/index.js +15 -1
- package/es/components/iho-table/src/hooks/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +8 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.js +21 -5
- package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.d.ts +15 -0
- package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.js +27 -0
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +67 -60
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +29 -1
- package/es/components/iho-table/src/hooks/useTableContext.d.ts +7 -5
- package/es/components/iho-table/src/hooks/useTableContext.js +4 -2
- package/es/components/iho-table/src/plugins/anchorPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/anchorPlugin/index.js +19 -0
- package/es/components/iho-table/src/plugins/anchorPlugin/tableAnchor.d.ts +2 -0
- package/es/components/iho-table/src/plugins/anchorPlugin/tableAnchor.js +50 -0
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.d.ts +13 -0
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +87 -0
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -4
- package/es/components/iho-table/src/plugins/index.js +16 -14
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +3 -2
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.d.ts +3 -3
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +3 -1
- package/es/components/iho-table/src/types/index.d.ts +9 -6
- package/es/components/iho-table/src/types/index.js +1 -1
- package/es/components/iho-table/src/types/pluginType.d.ts +8 -3
- package/es/components/iho-table/src/types/pluginType.js +3 -1
- package/es/components/index.css +1 -1
- package/es/components/index.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
- package/es/components/steps-wheel/index.d.ts +1 -1
- package/es/components/steps-wheel/src/StepsWheel.js +38 -18
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -1
- package/es/components/steps-wheel/style/index.css +1 -1
- package/es/components/time-line/index.d.ts +39 -11
- package/es/components/time-line/src/TimeLine.js +1 -1
- package/es/components/time-line/src/TimeLine.vue.d.ts +14 -13
- package/es/shared/assets/img/failure.js +1 -1
- package/es/shared/assets/img/icon-asc.js +1 -1
- package/es/shared/assets/img/icon-desc.js +1 -1
- package/es/shared/assets/img/no-permission.js +1 -1
- package/es/shared/assets/img/nodata.js +1 -1
- package/es/shared/assets/img/notfound.js +1 -1
- package/es/shared/assets/img/qr.js +1 -1
- package/es/shared/assets/img/success.js +1 -1
- package/es/shared/assets/img/video.js +1 -1
- package/es/shared/assets/img/video_default_cover.js +1 -1
- package/es/shared/assets/img/video_hover.js +1 -1
- package/es/shared/assets/img/video_play_hover.js +1 -1
- package/es/shared/assets/img/xb_big.js +1 -1
- package/es/shared/assets/img/xb_small.js +1 -1
- package/es/shared/types/index.d.ts +6 -2
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { AnyObject } from '../../../../es/shared/types';
|
|
2
1
|
import { FormRenderExpose } from '../../../../es/components/form-render';
|
|
3
2
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
4
3
|
formRenderRef: import("vue").Ref<FormRenderExpose | undefined>;
|
|
5
4
|
key: import("vue").Ref<number>;
|
|
6
5
|
reload: () => Promise<void>;
|
|
7
6
|
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFieldState", "resetFields", "queryWidget"];
|
|
8
|
-
exposed:
|
|
7
|
+
exposed: Partial<FormRenderExpose>;
|
|
9
8
|
FormRender: import("vue").DefineComponent<{
|
|
10
9
|
fieldList: {
|
|
11
10
|
type: import("vue").PropType<import("../../../../es/components/form-render").FieldItem[]>;
|
|
12
11
|
};
|
|
13
12
|
initialData: {
|
|
14
|
-
type: import("vue").PropType<AnyObject>;
|
|
13
|
+
type: import("vue").PropType<import("../../../shared/types").AnyObject>;
|
|
15
14
|
default: () => {};
|
|
16
15
|
};
|
|
17
16
|
fieldVisitor: {
|
|
@@ -100,11 +99,11 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
100
99
|
default: () => {};
|
|
101
100
|
};
|
|
102
101
|
scope: {
|
|
103
|
-
type: import("vue").PropType<AnyObject>;
|
|
102
|
+
type: import("vue").PropType<import("../../../shared/types").AnyObject>;
|
|
104
103
|
default: () => {};
|
|
105
104
|
};
|
|
106
105
|
annotation: {
|
|
107
|
-
type: import("vue").PropType<AnyObject>;
|
|
106
|
+
type: import("vue").PropType<import("../../../shared/types").AnyObject>;
|
|
108
107
|
};
|
|
109
108
|
consumer: {
|
|
110
109
|
type: BooleanConstructor;
|
|
@@ -116,8 +115,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
116
115
|
lifeCycle: {
|
|
117
116
|
type: import("vue").PropType<Partial<{
|
|
118
117
|
onSetup(): void;
|
|
119
|
-
beforeRequest(fieldKey: string, params?: AnyObject | undefined): void | import("
|
|
120
|
-
afterRequest(fieldKey: string, payload?: any): AnyObject[];
|
|
118
|
+
beforeRequest(fieldKey: string, params?: import("../../../shared/types").AnyObject | undefined): void | import("../../../shared/types").UndefinedAble<import("../../../shared/types").AnyObject>;
|
|
119
|
+
afterRequest(fieldKey: string, payload?: any): import("../../../shared/types").AnyObject[];
|
|
121
120
|
}>>;
|
|
122
121
|
};
|
|
123
122
|
}, {
|
|
@@ -126,7 +125,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
126
125
|
type: import("vue").PropType<import("../../../../es/components/form-render").FieldItem[]>;
|
|
127
126
|
};
|
|
128
127
|
initialData: {
|
|
129
|
-
type: import("vue").PropType<AnyObject>;
|
|
128
|
+
type: import("vue").PropType<import("../../../shared/types").AnyObject>;
|
|
130
129
|
default: () => {};
|
|
131
130
|
};
|
|
132
131
|
fieldVisitor: {
|
|
@@ -215,11 +214,11 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
215
214
|
default: () => {};
|
|
216
215
|
};
|
|
217
216
|
scope: {
|
|
218
|
-
type: import("vue").PropType<AnyObject>;
|
|
217
|
+
type: import("vue").PropType<import("../../../shared/types").AnyObject>;
|
|
219
218
|
default: () => {};
|
|
220
219
|
};
|
|
221
220
|
annotation: {
|
|
222
|
-
type: import("vue").PropType<AnyObject>;
|
|
221
|
+
type: import("vue").PropType<import("../../../shared/types").AnyObject>;
|
|
223
222
|
};
|
|
224
223
|
consumer: {
|
|
225
224
|
type: BooleanConstructor;
|
|
@@ -231,8 +230,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
231
230
|
lifeCycle: {
|
|
232
231
|
type: import("vue").PropType<Partial<{
|
|
233
232
|
onSetup(): void;
|
|
234
|
-
beforeRequest(fieldKey: string, params?: AnyObject | undefined): void | import("
|
|
235
|
-
afterRequest(fieldKey: string, payload?: any): AnyObject[];
|
|
233
|
+
beforeRequest(fieldKey: string, params?: import("../../../shared/types").AnyObject | undefined): void | import("../../../shared/types").UndefinedAble<import("../../../shared/types").AnyObject>;
|
|
234
|
+
afterRequest(fieldKey: string, payload?: any): import("../../../shared/types").AnyObject[];
|
|
236
235
|
}>>;
|
|
237
236
|
};
|
|
238
237
|
}>> & {
|
|
@@ -496,7 +495,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
496
495
|
type: import("vue").PropType<import("../../../../es/components/form-render").FieldItem[]>;
|
|
497
496
|
};
|
|
498
497
|
initialData: {
|
|
499
|
-
type: import("vue").PropType<AnyObject>;
|
|
498
|
+
type: import("vue").PropType<import("../../../shared/types").AnyObject>;
|
|
500
499
|
default: () => {};
|
|
501
500
|
};
|
|
502
501
|
fieldVisitor: {
|
|
@@ -585,11 +584,11 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
585
584
|
default: () => {};
|
|
586
585
|
};
|
|
587
586
|
scope: {
|
|
588
|
-
type: import("vue").PropType<AnyObject>;
|
|
587
|
+
type: import("vue").PropType<import("../../../shared/types").AnyObject>;
|
|
589
588
|
default: () => {};
|
|
590
589
|
};
|
|
591
590
|
annotation: {
|
|
592
|
-
type: import("vue").PropType<AnyObject>;
|
|
591
|
+
type: import("vue").PropType<import("../../../shared/types").AnyObject>;
|
|
593
592
|
};
|
|
594
593
|
consumer: {
|
|
595
594
|
type: BooleanConstructor;
|
|
@@ -601,8 +600,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
601
600
|
lifeCycle: {
|
|
602
601
|
type: import("vue").PropType<Partial<{
|
|
603
602
|
onSetup(): void;
|
|
604
|
-
beforeRequest(fieldKey: string, params?: AnyObject | undefined): void | import("
|
|
605
|
-
afterRequest(fieldKey: string, payload?: any): AnyObject[];
|
|
603
|
+
beforeRequest(fieldKey: string, params?: import("../../../shared/types").AnyObject | undefined): void | import("../../../shared/types").UndefinedAble<import("../../../shared/types").AnyObject>;
|
|
604
|
+
afterRequest(fieldKey: string, payload?: any): import("../../../shared/types").AnyObject[];
|
|
606
605
|
}>>;
|
|
607
606
|
};
|
|
608
607
|
}>> & {
|
|
@@ -612,9 +611,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
612
611
|
maxHeight: string | number;
|
|
613
612
|
column: number;
|
|
614
613
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
615
|
-
initialData: AnyObject;
|
|
614
|
+
initialData: import("../../../shared/types").AnyObject;
|
|
616
615
|
parallelism: number;
|
|
617
|
-
scope: AnyObject;
|
|
616
|
+
scope: import("../../../shared/types").AnyObject;
|
|
618
617
|
consumer: boolean;
|
|
619
618
|
}>;
|
|
620
619
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
@@ -103,6 +103,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
103
103
|
eventHooks: import("../../../es/components/iho-table/src/types").AbstractEventHooks;
|
|
104
104
|
dataHooks: import("../../../es/components/iho-table/src/types").AbstractDataHooks;
|
|
105
105
|
setupHooks: import("../../../es/components/iho-table/src/types").AbstractSetupHooks;
|
|
106
|
+
domInsertHooks: import("../../../es/components/iho-table/src/types").AbstractDomInsertHooks;
|
|
106
107
|
}>;
|
|
107
108
|
configRef: import("vue").Ref<{
|
|
108
109
|
[x: string]: unknown;
|
|
@@ -2061,6 +2062,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2061
2062
|
list: string[];
|
|
2062
2063
|
}[] | undefined;
|
|
2063
2064
|
} | undefined;
|
|
2065
|
+
anchorList?: string[] | undefined;
|
|
2064
2066
|
}>;
|
|
2065
2067
|
updateConfigRef: () => void;
|
|
2066
2068
|
fieldListRef: import("vue").Ref<{
|
|
@@ -2367,6 +2369,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2367
2369
|
tableDataRef: import("vue").Ref<import("../../../es/shared/types").AnyObject[]>;
|
|
2368
2370
|
updateTableDataRef: () => Promise<void>;
|
|
2369
2371
|
tableHandler: import("../../../es/components/iho-table/src/types").IhoTableHandler;
|
|
2372
|
+
eventListener: import("./src/hooks/tapHooks/useEventHooks").IhoTableEventListener;
|
|
2370
2373
|
eventHookHandler: Record<keyof import("vxe-table").VxeTableEventProps, any>;
|
|
2371
2374
|
bindProperties: import("vue").ComputedRef<{
|
|
2372
2375
|
onCopy: any;
|
|
@@ -4383,7 +4386,10 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4383
4386
|
list: string[];
|
|
4384
4387
|
}[] | undefined;
|
|
4385
4388
|
} | undefined;
|
|
4389
|
+
anchorList?: string[] | undefined;
|
|
4386
4390
|
}>;
|
|
4391
|
+
header: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
4392
|
+
footer: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
4387
4393
|
IhoTableColumn: import("vue").DefineComponent<{
|
|
4388
4394
|
field: {
|
|
4389
4395
|
type: import("vue").PropType<import("../../../es/components/iho-table/src/types").IhoTableFieldItem>;
|
|
@@ -15,7 +15,7 @@ import '../../shared/utils/tapable/AsyncSeriesHook.js';
|
|
|
15
15
|
import '../../shared/utils/tapable/AsyncSeriesBailHook.js';
|
|
16
16
|
import '../../shared/utils/tapable/AsyncSeriesLoopHook.js';
|
|
17
17
|
import '../../shared/utils/tapable/AsyncSeriesWaterfallHook.js';
|
|
18
|
-
export { AbstractConfigHooks, AbstractDataHooks, AbstractEventHooks, AbstractFieldHooks, AbstractSetupHooks } from './src/types/pluginType.js';
|
|
18
|
+
export { AbstractConfigHooks, AbstractDataHooks, AbstractDomInsertHooks, AbstractEventHooks, AbstractFieldHooks, AbstractSetupHooks } from './src/types/pluginType.js';
|
|
19
19
|
import { useTablePlugin } from './src/hooks/useTablePlugin.js';
|
|
20
20
|
export { defineTablePlugin, useTablePlugin } from './src/hooks/useTablePlugin.js';
|
|
21
21
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent, provide, ref, computed, watch, resolveComponent, openBlock, createElementBlock,
|
|
1
|
+
import { defineComponent, provide, ref, computed, watch, resolveComponent, openBlock, createElementBlock, createBlock, resolveDynamicComponent, unref, createVNode, mergeProps, withCtx, Fragment, renderList } from 'vue';
|
|
2
2
|
import { uuidGenerator } from '../../../shared/utils/index.js';
|
|
3
3
|
import { useDebounceFn } from '@vueuse/core';
|
|
4
|
-
import { VxeEventListenerNameList, InjectionIhoTableEmits, InjectionIhoTableUUID, InjectionIhoTableConfig, InjectionIhoTableFieldList, InjectionIhoTableHandler } from './constants/index.js';
|
|
5
|
-
import { createTableHooks, applyTableConfigHooks, applyTableFieldHooks, createTableEventHandlers, createDataTransfer } from './hooks/tapHooks/index.js';
|
|
4
|
+
import { VxeEventListenerNameList, InjectionIhoTableEmits, InjectionIhoTableUUID, InjectionIhoTableInstance, InjectionIhoTableConfig, InjectionIhoTableFieldList, InjectionIhoTableHandler } from './constants/index.js';
|
|
5
|
+
import { createTableHooks, applyTableConfigHooks, applyTableFieldHooks, createTableEventHandlers, createDomInsertComponent, createDataTransfer } from './hooks/tapHooks/index.js';
|
|
6
6
|
import 'lodash-es';
|
|
7
|
+
import { provideIhoTableEventListener } from './hooks/tapHooks/useEventHooks.js';
|
|
7
8
|
import { getEventName } from './utils/index.js';
|
|
8
9
|
import ColumnComponent from './components/IhoTableColumn.js';
|
|
9
10
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
@@ -29,6 +30,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
30
|
const uuidRef = ref(uuid);
|
|
30
31
|
provide(InjectionIhoTableUUID, uuidRef);
|
|
31
32
|
const $table = ref();
|
|
33
|
+
provide(InjectionIhoTableInstance, $table);
|
|
32
34
|
const hooks = createTableHooks();
|
|
33
35
|
const configRef = ref({ uuid: (_b = (_a = props.tableConfig) == null ? void 0 : _a.uuid) != null ? _b : uuid });
|
|
34
36
|
provide(InjectionIhoTableConfig, configRef);
|
|
@@ -50,12 +52,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
50
52
|
}, 10);
|
|
51
53
|
const tableHandler = { updateTableDataRef, updateConfigRef, updateFieldListRef };
|
|
52
54
|
provide(InjectionIhoTableHandler, tableHandler);
|
|
55
|
+
const eventListener = provideIhoTableEventListener();
|
|
53
56
|
const eventHookHandler = createTableEventHandlers({
|
|
54
57
|
hooks,
|
|
55
58
|
config: configRef,
|
|
56
59
|
$table,
|
|
57
60
|
context: tableHandler,
|
|
58
|
-
emits
|
|
61
|
+
emits,
|
|
62
|
+
eventListener
|
|
59
63
|
});
|
|
60
64
|
const bindProperties = computed(() => ({ ...configRef.value, ...eventHookHandler }));
|
|
61
65
|
watch(
|
|
@@ -76,11 +80,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76
80
|
{ immediate: true, deep: true }
|
|
77
81
|
);
|
|
78
82
|
watch(() => props.tableData, updateTableDataRef, { immediate: true });
|
|
83
|
+
const { header, footer } = createDomInsertComponent(hooks);
|
|
79
84
|
expose({ $table });
|
|
80
85
|
hooks.setupHooks.setup.call(configRef, fieldListRef);
|
|
81
86
|
return (_ctx, _cache) => {
|
|
82
87
|
const _component_vxe_table = resolveComponent("vxe-table");
|
|
83
88
|
return openBlock(), createElementBlock("section", _hoisted_1, [
|
|
89
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(header)))),
|
|
84
90
|
createVNode(_component_vxe_table, mergeProps({
|
|
85
91
|
ref_key: "$table",
|
|
86
92
|
ref: $table
|
|
@@ -97,7 +103,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
97
103
|
}), 128))
|
|
98
104
|
]),
|
|
99
105
|
_: 1
|
|
100
|
-
}, 16, ["data"])
|
|
106
|
+
}, 16, ["data"]),
|
|
107
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(footer))))
|
|
101
108
|
]);
|
|
102
109
|
};
|
|
103
110
|
}
|
|
@@ -102,6 +102,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
102
102
|
eventHooks: import("../../../../es/components/iho-table/src/types").AbstractEventHooks;
|
|
103
103
|
dataHooks: import("../../../../es/components/iho-table/src/types").AbstractDataHooks;
|
|
104
104
|
setupHooks: import("../../../../es/components/iho-table/src/types").AbstractSetupHooks;
|
|
105
|
+
domInsertHooks: import("../../../../es/components/iho-table/src/types").AbstractDomInsertHooks;
|
|
105
106
|
}>;
|
|
106
107
|
configRef: import("vue").Ref<{
|
|
107
108
|
[x: string]: unknown;
|
|
@@ -2060,6 +2061,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2060
2061
|
list: string[];
|
|
2061
2062
|
}[] | undefined;
|
|
2062
2063
|
} | undefined;
|
|
2064
|
+
anchorList?: string[] | undefined;
|
|
2063
2065
|
}>;
|
|
2064
2066
|
updateConfigRef: () => void;
|
|
2065
2067
|
fieldListRef: import("vue").Ref<{
|
|
@@ -2366,6 +2368,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2366
2368
|
tableDataRef: import("vue").Ref<AnyObject[]>;
|
|
2367
2369
|
updateTableDataRef: () => Promise<void>;
|
|
2368
2370
|
tableHandler: IhoTableHandler;
|
|
2371
|
+
eventListener: import("../../../../es/components/iho-table/src/hooks/tapHooks/useEventHooks").IhoTableEventListener;
|
|
2369
2372
|
eventHookHandler: Record<keyof import("vxe-table").VxeTableEventProps, any>;
|
|
2370
2373
|
bindProperties: import("vue").ComputedRef<{
|
|
2371
2374
|
onCopy: any;
|
|
@@ -4382,7 +4385,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4382
4385
|
list: string[];
|
|
4383
4386
|
}[] | undefined;
|
|
4384
4387
|
} | undefined;
|
|
4388
|
+
anchorList?: string[] | undefined;
|
|
4385
4389
|
}>;
|
|
4390
|
+
header: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
4391
|
+
footer: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
4386
4392
|
IhoTableColumn: import("vue").DefineComponent<{
|
|
4387
4393
|
field: {
|
|
4388
4394
|
type: PropType<IhoTableFieldItem>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UndefinedAble, UnionToTuple } from '../../../../../es/shared/types';
|
|
2
2
|
import { InjectionKey, Ref } from 'vue';
|
|
3
|
+
import { VxeTableInstance } from 'vxe-table';
|
|
3
4
|
import { VxeTableEventProps } from 'vxe-table/types/table';
|
|
4
|
-
import { IhoTableConfig, IhoTableEmitPayload, IhoTableFieldItem, IhoTableHandler
|
|
5
|
+
import { IhoTableConfig, IhoTableEmitPayload, IhoTableFieldItem, IhoTableHandler } from '../../../../../es/components/iho-table';
|
|
6
|
+
import { IhoTableEventListener } from '../../../../../es/components/iho-table/src/hooks/tapHooks/useEventHooks';
|
|
5
7
|
export declare enum WIDGET_TYPE {
|
|
6
8
|
DEFAULT = "DEFAULT",
|
|
7
9
|
PICTURE = "PICTURE",
|
|
@@ -46,9 +48,19 @@ export declare enum EDITABLE_WIDGET_TYPE {
|
|
|
46
48
|
TIME = "TIME",
|
|
47
49
|
NUMBER = "NUMBER"
|
|
48
50
|
}
|
|
51
|
+
export declare enum IHO_TABLE_NUMBER_STATUS {
|
|
52
|
+
NEGATIVE = 0,
|
|
53
|
+
POSITIVE = 1
|
|
54
|
+
}
|
|
55
|
+
export declare enum IHO_TABLE_STRING_STATUS {
|
|
56
|
+
NEGATIVE = "0",
|
|
57
|
+
POSITIVE = "1"
|
|
58
|
+
}
|
|
49
59
|
export declare const IhoTableEventNameTuple: readonly ["formChange", "settingClick", ...("toggleRowExpand" | "toggleTreeExpand" | "copy" | "scroll" | "cut" | "paste" | "keydown" | "keydownStart" | "keydownEnd" | "currentChange" | "radioChange" | "checkboxChange" | "checkboxAll" | "checkboxRangeStart" | "checkboxRangeChange" | "checkboxRangeEnd" | "cellClick" | "cellDblclick" | "cellMenu" | "cellMouseenter" | "cellMouseleave" | "headerCellClick" | "headerCellDblclick" | "headerCellMenu" | "footerCellClick" | "footerCellDblclick" | "footerCellMenu" | "sortChange" | "filterChange" | "filterVisible" | "resizableChange" | "menuClick" | "editClosed" | "editActived" | "editDisabled" | "validError" | "custom" | "openFnr" | "fnrChange" | "fnrFind" | "fnrFindAll" | "fnrReplace" | "fnrReplaceAll" | "cellAreaCopy" | "cellAreaCut" | "cellAreaPaste" | "cellAreaMerge" | "clearCellAreaMerge" | "headerCellAreaSelection" | "cellAreaSelectionStart" | "cellAreaSelectionDrag" | "cellAreaSelectionEnd" | "cellAreaExtensionStart" | "cellAreaExtensionDrag" | "cellAreaExtensionEnd" | "cellAreaArrowsStart" | "cellAreaArrowsEnd" | "activeCellChangeStart" | "activeCellChangeEnd")[]];
|
|
50
|
-
export declare const InjectionIhoTableConfig: InjectionKey<Ref<
|
|
51
|
-
export declare const InjectionIhoTableFieldList: InjectionKey<Ref<
|
|
60
|
+
export declare const InjectionIhoTableConfig: InjectionKey<Ref<IhoTableConfig>>;
|
|
61
|
+
export declare const InjectionIhoTableFieldList: InjectionKey<Ref<IhoTableFieldItem[]>>;
|
|
52
62
|
export declare const InjectionIhoTableEmits: InjectionKey<(<T extends typeof IhoTableEventNameTuple[number]>(event: T, ...args: IhoTableEmitPayload<T>) => void)>;
|
|
53
63
|
export declare const InjectionIhoTableUUID: InjectionKey<Ref<string>>;
|
|
64
|
+
export declare const InjectionIhoTableInstance: InjectionKey<Ref<UndefinedAble<VxeTableInstance>>>;
|
|
54
65
|
export declare const InjectionIhoTableHandler: InjectionKey<IhoTableHandler>;
|
|
66
|
+
export declare const InjectionIhoTableEventListener: InjectionKey<IhoTableEventListener>;
|
|
@@ -117,6 +117,16 @@ var EDITABLE_WIDGET_TYPE = /* @__PURE__ */ ((EDITABLE_WIDGET_TYPE2) => {
|
|
|
117
117
|
EDITABLE_WIDGET_TYPE2["NUMBER"] = "NUMBER";
|
|
118
118
|
return EDITABLE_WIDGET_TYPE2;
|
|
119
119
|
})(EDITABLE_WIDGET_TYPE || {});
|
|
120
|
+
var IHO_TABLE_NUMBER_STATUS = /* @__PURE__ */ ((IHO_TABLE_NUMBER_STATUS2) => {
|
|
121
|
+
IHO_TABLE_NUMBER_STATUS2[IHO_TABLE_NUMBER_STATUS2["NEGATIVE"] = 0] = "NEGATIVE";
|
|
122
|
+
IHO_TABLE_NUMBER_STATUS2[IHO_TABLE_NUMBER_STATUS2["POSITIVE"] = 1] = "POSITIVE";
|
|
123
|
+
return IHO_TABLE_NUMBER_STATUS2;
|
|
124
|
+
})(IHO_TABLE_NUMBER_STATUS || {});
|
|
125
|
+
var IHO_TABLE_STRING_STATUS = /* @__PURE__ */ ((IHO_TABLE_STRING_STATUS2) => {
|
|
126
|
+
IHO_TABLE_STRING_STATUS2["NEGATIVE"] = "0";
|
|
127
|
+
IHO_TABLE_STRING_STATUS2["POSITIVE"] = "1";
|
|
128
|
+
return IHO_TABLE_STRING_STATUS2;
|
|
129
|
+
})(IHO_TABLE_STRING_STATUS || {});
|
|
120
130
|
const IhoTableEventNameTuple = [
|
|
121
131
|
"formChange",
|
|
122
132
|
"settingClick",
|
|
@@ -126,6 +136,10 @@ const InjectionIhoTableConfig = Symbol("injectionIhoTableConfig");
|
|
|
126
136
|
const InjectionIhoTableFieldList = Symbol("injectionIhoTableFieldList");
|
|
127
137
|
const InjectionIhoTableEmits = Symbol("InjectionIhoTableEmits");
|
|
128
138
|
const InjectionIhoTableUUID = Symbol("InjectionIhoTableUUID");
|
|
139
|
+
const InjectionIhoTableInstance = Symbol("InjectionIhoTableInstance");
|
|
129
140
|
const InjectionIhoTableHandler = Symbol("InjectionIhoTableHandler");
|
|
141
|
+
const InjectionIhoTableEventListener = Symbol(
|
|
142
|
+
"InjectionIhoTableEventListener"
|
|
143
|
+
);
|
|
130
144
|
|
|
131
|
-
export { EDITABLE_WIDGET_TYPE, HIGHEST_PRIORITY, IhoTableEventNameTuple, IhoTableRowGroupSequence, InjectionIhoTableConfig, InjectionIhoTableEmits, InjectionIhoTableFieldList, InjectionIhoTableHandler, InjectionIhoTableUUID, VxeEventListenerNameList, WIDGET_TYPE };
|
|
145
|
+
export { EDITABLE_WIDGET_TYPE, HIGHEST_PRIORITY, IHO_TABLE_NUMBER_STATUS, IHO_TABLE_STRING_STATUS, IhoTableEventNameTuple, IhoTableRowGroupSequence, InjectionIhoTableConfig, InjectionIhoTableEmits, InjectionIhoTableEventListener, InjectionIhoTableFieldList, InjectionIhoTableHandler, InjectionIhoTableInstance, InjectionIhoTableUUID, VxeEventListenerNameList, WIDGET_TYPE };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { applyTableConfigHooks, applyTableFieldHooks, createDataTransfer, createTableEventHandlers, createTableHooks } from './tapHooks/index.js';
|
|
1
|
+
export { applyTableConfigHooks, applyTableFieldHooks, createDataTransfer, createDomInsertComponent, createTableEventHandlers, createTableHooks } from './tapHooks/index.js';
|
|
2
2
|
export { defineTablePlugin, useTablePlugin } from './useTablePlugin.js';
|
|
@@ -2,6 +2,7 @@ import { AnyObject, Func, Nullable } from '../../../../../../es/shared/types';
|
|
|
2
2
|
import { MaybeRef } from '@vueuse/core';
|
|
3
3
|
import { VxeTableInstance } from 'vxe-table';
|
|
4
4
|
import { VxeTableEventProps } from 'vxe-table/types/table';
|
|
5
|
+
import { IhoTableEventListener } from '../../../../../../es/components/iho-table/src/hooks/tapHooks/useEventHooks';
|
|
5
6
|
import { IhoTableConfig, IhoTableFieldItem, IhoTableHandler, TableHooks } from '../../../../../../es/components/iho-table/src/types';
|
|
6
7
|
export declare const createTableHooks: () => Readonly<{
|
|
7
8
|
configHooks: import("../../../../../../es/components/iho-table/src/types").AbstractConfigHooks;
|
|
@@ -9,14 +10,20 @@ export declare const createTableHooks: () => Readonly<{
|
|
|
9
10
|
eventHooks: import("../../../../../../es/components/iho-table/src/types").AbstractEventHooks;
|
|
10
11
|
dataHooks: import("../../../../../../es/components/iho-table/src/types").AbstractDataHooks;
|
|
11
12
|
setupHooks: import("../../../../../../es/components/iho-table/src/types").AbstractSetupHooks;
|
|
13
|
+
domInsertHooks: import("../../../../../../es/components/iho-table/src/types").AbstractDomInsertHooks;
|
|
12
14
|
}>;
|
|
13
15
|
export declare function applyTableConfigHooks(hooks: TableHooks, config: IhoTableConfig): IhoTableConfig;
|
|
14
16
|
export declare function applyTableFieldHooks(hooks: TableHooks, fieldList: IhoTableFieldItem[], config: IhoTableConfig): IhoTableFieldItem[];
|
|
15
|
-
export declare function createTableEventHandlers({ hooks, config, $table, emits, context }: {
|
|
17
|
+
export declare function createTableEventHandlers({ hooks, config, $table, emits, context, eventListener }: {
|
|
16
18
|
hooks: TableHooks;
|
|
17
19
|
config: MaybeRef<IhoTableConfig>;
|
|
18
20
|
$table: MaybeRef<Nullable<VxeTableInstance>>;
|
|
19
21
|
emits: Func;
|
|
20
22
|
context: IhoTableHandler;
|
|
23
|
+
eventListener: IhoTableEventListener;
|
|
21
24
|
}): Record<keyof VxeTableEventProps, any>;
|
|
22
25
|
export declare function createDataTransfer(hooks: TableHooks, config: MaybeRef<IhoTableConfig>, $table: MaybeRef<Nullable<VxeTableInstance>>): (data: AnyObject[]) => Promise<AnyObject[]>;
|
|
26
|
+
export declare function createDomInsertComponent(hooks: TableHooks): {
|
|
27
|
+
header: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
28
|
+
footer: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
29
|
+
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { arrayed } from '../../../../../shared/utils/index.js';
|
|
2
|
-
import { unref } from 'vue';
|
|
2
|
+
import { unref, defineComponent } from 'vue';
|
|
3
3
|
import { cloneDeep, isArray } from 'lodash-es';
|
|
4
4
|
import { VxeEventListenerNameList } from '../../constants/index.js';
|
|
5
5
|
import { useDataHooks } from './useDataHooks.js';
|
|
6
|
+
import { useDomInsertHooks } from './useDomInsertHooks.js';
|
|
6
7
|
import { useEventHooks } from './useEventHooks.js';
|
|
7
8
|
import { useSetupHooks } from './useSetupHooks.js';
|
|
8
9
|
import { getEventName } from '../../utils/index.js';
|
|
@@ -17,7 +18,8 @@ const createTableHooks = (() => {
|
|
|
17
18
|
fieldHooks: useFieldHooks().create(),
|
|
18
19
|
eventHooks: useEventHooks().create(),
|
|
19
20
|
dataHooks: useDataHooks().create(),
|
|
20
|
-
setupHooks: useSetupHooks().create()
|
|
21
|
+
setupHooks: useSetupHooks().create(),
|
|
22
|
+
domInsertHooks: useDomInsertHooks().create()
|
|
21
23
|
});
|
|
22
24
|
}
|
|
23
25
|
return () => {
|
|
@@ -94,12 +96,15 @@ function createTableEventHandlers({
|
|
|
94
96
|
config,
|
|
95
97
|
$table,
|
|
96
98
|
emits,
|
|
97
|
-
context
|
|
99
|
+
context,
|
|
100
|
+
eventListener
|
|
98
101
|
}) {
|
|
99
102
|
const handler = (eventListenerName, payload) => {
|
|
100
103
|
var _a;
|
|
101
|
-
if (VxeEventListenerNameList.includes(eventListenerName))
|
|
104
|
+
if (VxeEventListenerNameList.includes(eventListenerName)) {
|
|
102
105
|
emits(getEventName(eventListenerName), payload);
|
|
106
|
+
eventListener.trigger(getEventName(eventListenerName), payload);
|
|
107
|
+
}
|
|
103
108
|
(_a = hooks.eventHooks[eventListenerName]) == null ? void 0 : _a.promise(payload, { $table: unref($table), ...context }, unref(config));
|
|
104
109
|
};
|
|
105
110
|
return VxeEventListenerNameList.reduce((result, eventName) => {
|
|
@@ -136,5 +141,16 @@ function createDataTransfer(hooks, config, $table) {
|
|
|
136
141
|
return nextRes;
|
|
137
142
|
}, Promise.resolve([]));
|
|
138
143
|
}
|
|
144
|
+
function createDomInsertComponent(hooks) {
|
|
145
|
+
const header = defineComponent({
|
|
146
|
+
name: "IhoTableHeader",
|
|
147
|
+
render: () => hooks.domInsertHooks.header.call([])
|
|
148
|
+
});
|
|
149
|
+
const footer = defineComponent({
|
|
150
|
+
name: "IhoTableFooter",
|
|
151
|
+
render: () => hooks.domInsertHooks.footer.call([])
|
|
152
|
+
});
|
|
153
|
+
return { header, footer };
|
|
154
|
+
}
|
|
139
155
|
|
|
140
|
-
export { applyTableConfigHooks, applyTableFieldHooks, createDataTransfer, createTableEventHandlers, createTableHooks };
|
|
156
|
+
export { applyTableConfigHooks, applyTableFieldHooks, createDataTransfer, createDomInsertComponent, createTableEventHandlers, createTableHooks };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SyncWaterfallHook } from '../../../../../../es/shared/utils/tapable';
|
|
2
|
+
import { VNode } from 'vue';
|
|
3
|
+
import { AbstractDomInsertHooks } from '../../../../../../es/components/iho-table/src/types';
|
|
4
|
+
declare class DomInsertHooks extends AbstractDomInsertHooks {
|
|
5
|
+
readonly header: SyncWaterfallHook<[VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}>[]], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
8
|
+
readonly footer: SyncWaterfallHook<[VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}>[]], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
11
|
+
}
|
|
12
|
+
export declare function useDomInsertHooks(): {
|
|
13
|
+
create: () => DomInsertHooks;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import '../../../../../shared/utils/tapable/SyncHook.js';
|
|
2
|
+
import '../../../../../shared/utils/tapable/SyncBailHook.js';
|
|
3
|
+
import SyncWaterfallHook from '../../../../../shared/utils/tapable/SyncWaterfallHook.js';
|
|
4
|
+
import '../../../../../shared/utils/tapable/SyncLoopHook.js';
|
|
5
|
+
import '../../../../../shared/utils/tapable/AsyncParallelHook.js';
|
|
6
|
+
import '../../../../../shared/utils/tapable/AsyncParallelBailHook.js';
|
|
7
|
+
import '../../../../../shared/utils/tapable/AsyncSeriesHook.js';
|
|
8
|
+
import '../../../../../shared/utils/tapable/AsyncSeriesBailHook.js';
|
|
9
|
+
import '../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js';
|
|
10
|
+
import '../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js';
|
|
11
|
+
import { AbstractDomInsertHooks } from '../../types/pluginType.js';
|
|
12
|
+
|
|
13
|
+
class DomInsertHooks extends AbstractDomInsertHooks {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.header = new SyncWaterfallHook(["nodes"]);
|
|
17
|
+
this.footer = new SyncWaterfallHook(["nodes"]);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function useDomInsertHooks() {
|
|
21
|
+
function create() {
|
|
22
|
+
return new DomInsertHooks();
|
|
23
|
+
}
|
|
24
|
+
return { create };
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { useDomInsertHooks };
|