cnhis-design-vue 3.1.21-beta.12 → 3.1.21-beta.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/es/components/fabric-chart/src/components/PopupMenu.js +2 -1
  2. package/es/components/fabric-chart/src/hooks/constant.d.ts +40 -0
  3. package/es/components/fabric-chart/src/hooks/constant.js +1 -1
  4. package/es/components/fabric-chart/src/hooks/constant2.js +43 -1
  5. package/es/components/fabric-chart/src/hooks/useCenter2.js +30 -18
  6. package/es/components/fabric-chart/src/hooks/useDraw2.js +8 -8
  7. package/es/components/fabric-chart/src/hooks/useLeft2.js +13 -0
  8. package/es/components/form-render/src/FormRender.js +2 -1
  9. package/es/components/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate2.js +1 -1
  10. package/es/components/form-render/src/hooks/useFieldListAdaptor2.js +2 -1
  11. package/es/components/form-render/src/hooks/useFieldVisitor2.js +1 -1
  12. package/es/components/form-render/src/hooks/useFormValidator2.js +2 -1
  13. package/es/components/form-render/src/utils/index.d.ts +0 -1
  14. package/es/components/form-render/src/utils/index.js +2 -6
  15. package/es/components/his-table/index.d.ts +701 -0
  16. package/es/components/his-table/index.js +3 -0
  17. package/es/components/his-table/index2.js +25 -0
  18. package/es/components/his-table/src/HisTable.js +47 -0
  19. package/es/components/his-table/src/HisTable.vue.d.ts +701 -0
  20. package/es/components/his-table/src/components/HisTableColumn.d.ts +14 -0
  21. package/es/components/his-table/src/components/HisTableColumn.js +17 -0
  22. package/es/components/his-table/src/components/index.d.ts +1 -0
  23. package/es/components/his-table/src/components/index.js +1 -0
  24. package/es/components/his-table/src/hooks/index.d.ts +2 -0
  25. package/es/components/his-table/src/hooks/index.js +2 -0
  26. package/es/components/his-table/src/hooks/tapHooks/index.d.ts +9 -0
  27. package/es/components/his-table/src/hooks/tapHooks/index.js +1 -0
  28. package/es/components/his-table/src/hooks/tapHooks/index2.js +45 -0
  29. package/es/components/his-table/src/hooks/tapHooks/useConfigHooks.d.ts +12 -0
  30. package/es/components/his-table/src/hooks/tapHooks/useConfigHooks.js +1 -0
  31. package/es/components/his-table/src/hooks/tapHooks/useConfigHooks2.js +28 -0
  32. package/es/components/his-table/src/hooks/tapHooks/useEventHooks.d.ts +67 -0
  33. package/es/components/his-table/src/hooks/tapHooks/useEventHooks.js +1 -0
  34. package/es/components/his-table/src/hooks/tapHooks/useEventHooks2.js +82 -0
  35. package/es/components/his-table/src/hooks/tapHooks/useFieldHooks.d.ts +10 -0
  36. package/es/components/his-table/src/hooks/tapHooks/useFieldHooks.js +1 -0
  37. package/es/components/his-table/src/hooks/tapHooks/useFieldHooks2.js +30 -0
  38. package/es/components/his-table/src/hooks/tapHooks/useVxeTableHooks.d.ts +9 -0
  39. package/es/components/his-table/src/hooks/tapHooks/useVxeTableHooks.js +1 -0
  40. package/es/components/his-table/src/hooks/tapHooks/useVxeTableHooks2.js +27 -0
  41. package/es/components/his-table/src/hooks/useTablePlugin.d.ts +8 -0
  42. package/es/components/his-table/src/hooks/useTablePlugin.js +1 -0
  43. package/es/components/his-table/src/hooks/useTablePlugin2.js +16 -0
  44. package/es/components/his-table/src/plugins/defaultConfigPlugin/index.d.ts +1 -0
  45. package/es/components/his-table/src/plugins/defaultConfigPlugin/index.js +1 -0
  46. package/es/components/his-table/src/plugins/defaultConfigPlugin/index2.js +24 -0
  47. package/es/components/his-table/src/plugins/index.d.ts +2 -0
  48. package/es/components/his-table/src/plugins/index.js +2 -0
  49. package/es/components/his-table/src/plugins/index2.js +2 -0
  50. package/es/components/his-table/src/plugins/lowCodeFieldAdaptorPlugin/formatter.d.ts +2 -0
  51. package/es/components/his-table/src/plugins/lowCodeFieldAdaptorPlugin/formatter.js +1 -0
  52. package/es/components/his-table/src/plugins/lowCodeFieldAdaptorPlugin/formatter2.js +5 -0
  53. package/es/components/his-table/src/plugins/lowCodeFieldAdaptorPlugin/index.d.ts +1 -0
  54. package/es/components/his-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -0
  55. package/es/components/his-table/src/plugins/lowCodeFieldAdaptorPlugin/index2.js +22 -0
  56. package/es/components/his-table/src/types/index.d.ts +12 -0
  57. package/es/components/his-table/src/types/index.js +1 -0
  58. package/es/components/his-table/src/types/pluginType.d.ts +97 -0
  59. package/es/components/his-table/src/types/pluginType.js +1 -0
  60. package/es/components/his-table/src/types/pluginType2.js +10 -0
  61. package/es/components/his-table/style/index.css +0 -0
  62. package/es/components/index.d.ts +3 -1
  63. package/es/components/index.js +3 -0
  64. package/es/components/index2.js +4 -1
  65. package/es/components/shortcut-provider/src/hooks/useShortcuts2.js +5 -3
  66. package/es/shared/types/index.d.ts +1 -0
  67. package/es/shared/utils/index.d.ts +1 -0
  68. package/es/shared/utils/index.js +1 -1
  69. package/es/shared/utils/index2.js +6 -1
  70. package/es/shared/utils/tapable/AsyncParallelHook.js +17 -2
  71. package/es/shared/utils/tapable/SyncHook.js +23 -2
  72. package/package.json +2 -2
@@ -0,0 +1,14 @@
1
+ import { PropType } from 'vue';
2
+ import { HisTableFieldItem } from '../../../../../es/components/his-table/src/types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ field: {
5
+ type: PropType<HisTableFieldItem>;
6
+ required: true;
7
+ };
8
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9
+ field: {
10
+ type: PropType<HisTableFieldItem>;
11
+ required: true;
12
+ };
13
+ }>>, {}>;
14
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { defineComponent, createVNode } from 'vue';
2
+ import { Column } from 'vxe-table';
3
+
4
+ var HisTableColumn = defineComponent({
5
+ name: "HisTableColumn",
6
+ props: {
7
+ field: {
8
+ type: Object,
9
+ required: true
10
+ }
11
+ },
12
+ setup(props) {
13
+ return () => createVNode(Column, props.field, null);
14
+ }
15
+ });
16
+
17
+ export { HisTableColumn as default };
@@ -0,0 +1 @@
1
+ export { default as HisTableColumn } from './HisTableColumn';
@@ -0,0 +1 @@
1
+ export { default as HisTableColumn } from './HisTableColumn.js';
@@ -0,0 +1,2 @@
1
+ export * from './tapHooks';
2
+ export * from './useTablePlugin';
@@ -0,0 +1,2 @@
1
+ export { applyTableConfigHooks, applyTableFieldHooks, createTableHooks } from './tapHooks/index2.js';
2
+ export { defineTablePlugin, useTablePlugin } from './useTablePlugin2.js';
@@ -0,0 +1,9 @@
1
+ import { HisTableConfig, HisTableFieldItem, TableHooks } from '../../../../../../es/components/his-table/src/types';
2
+ export declare const createTableHooks: () => Readonly<{
3
+ vxeTable: import("../../../../../../es/components/his-table/src/types").AbstractVxeTableHook;
4
+ configHooks: import("../../../../../../es/components/his-table/src/types").AbstractConfigHooks;
5
+ fieldHooks: import("../../../../../../es/components/his-table/src/types").AbstractFieldHooks;
6
+ eventHooks: import("../../../../../../es/components/his-table/src/types").AbstractEventHooks;
7
+ }>;
8
+ export declare function applyTableConfigHooks(hooks: TableHooks, config: HisTableConfig): HisTableConfig;
9
+ export declare function applyTableFieldHooks(hooks: TableHooks, fieldList: HisTableFieldItem[], config: HisTableConfig): HisTableFieldItem[];
@@ -0,0 +1 @@
1
+ export { applyTableConfigHooks, applyTableFieldHooks, createTableHooks } from './index2.js';
@@ -0,0 +1,45 @@
1
+ import { arrayed } from '../../../../../shared/utils/index2.js';
2
+ import { cloneDeep } from 'lodash-es';
3
+ import { useEventHooks } from './useEventHooks2.js';
4
+ import { useConfigHooks } from './useConfigHooks2.js';
5
+ import { useFieldHooks } from './useFieldHooks2.js';
6
+ import { useVxeTableHooks } from './useVxeTableHooks2.js';
7
+
8
+ const createTableHooks = (() => {
9
+ let tapHooks = null;
10
+ function create() {
11
+ return Object.freeze({
12
+ vxeTable: useVxeTableHooks().create(),
13
+ configHooks: useConfigHooks().create(),
14
+ fieldHooks: useFieldHooks().create(),
15
+ eventHooks: useEventHooks().create()
16
+ });
17
+ }
18
+ return () => {
19
+ return tapHooks || (tapHooks = create());
20
+ };
21
+ })();
22
+ function applyTableConfigHooks(hooks, config) {
23
+ const result = hooks.configHooks.config.call(cloneDeep(config));
24
+ result.rowConfig = hooks.configHooks.rowConfig.call(result.rowConfig, result);
25
+ result.editConfig = hooks.configHooks.editConfig.call(result.editConfig, result);
26
+ return result;
27
+ }
28
+ function applyTableFieldHooks(hooks, fieldList, config) {
29
+ return cloneDeep(fieldList).reduce((finFieldList, field, index) => {
30
+ const before = [];
31
+ const after = [];
32
+ field = hooks.fieldHooks.field.call(field, {
33
+ index,
34
+ insertAfter(field2) {
35
+ after.push(...arrayed(field2));
36
+ },
37
+ insertBefore(field2) {
38
+ before.push(...arrayed(field2));
39
+ }
40
+ }, config);
41
+ return finFieldList.concat([...before, field, ...after]);
42
+ }, []);
43
+ }
44
+
45
+ export { applyTableConfigHooks, applyTableFieldHooks, createTableHooks };
@@ -0,0 +1,12 @@
1
+ import { SyncWaterfallHook } from '../../../../../../es/shared/utils/tapable';
2
+ import { HisTableConfig } from '../../../../../../es/components/his-table/src/types';
3
+ import { AbstractConfigHooks } from '../../../../../../es/components/his-table/src/types';
4
+ declare class ConfigHooks extends AbstractConfigHooks {
5
+ readonly config: SyncWaterfallHook<HisTableConfig, import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
6
+ readonly rowConfig: SyncWaterfallHook<[undefined, HisTableConfig] | [import("vxe-table").VxeTablePropTypes.RowConfig, HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
7
+ readonly editConfig: SyncWaterfallHook<[undefined, HisTableConfig] | [import("vxe-table").VxeTablePropTypes.EditConfig, HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
8
+ }
9
+ export declare function useConfigHooks(): {
10
+ create: () => ConfigHooks;
11
+ };
12
+ export {};
@@ -0,0 +1 @@
1
+ export { useConfigHooks } from './useConfigHooks2.js';
@@ -0,0 +1,28 @@
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 { AbstractConfigHooks } from '../../types/pluginType2.js';
12
+
13
+ class ConfigHooks extends AbstractConfigHooks {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.config = new SyncWaterfallHook(["config"]);
17
+ this.rowConfig = new SyncWaterfallHook(["rowConfig", "config"]);
18
+ this.editConfig = new SyncWaterfallHook(["editConfig", "config"]);
19
+ }
20
+ }
21
+ function useConfigHooks() {
22
+ function create() {
23
+ return new ConfigHooks();
24
+ }
25
+ return { create };
26
+ }
27
+
28
+ export { useConfigHooks };
@@ -0,0 +1,67 @@
1
+ import { AsyncParallelHook } from '../../../../../../es/shared/utils/tapable';
2
+ import { VxeTableEvents } from 'vxe-table/types/table';
3
+ declare class EventHooks {
4
+ readonly onKeydownStart: AsyncParallelHook<[VxeTableEvents.KeydownStart, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
5
+ readonly onKeydown: AsyncParallelHook<[VxeTableEvents.Keydown, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
6
+ readonly onKeydownEnd: AsyncParallelHook<[VxeTableEvents.KeydownEnd, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
7
+ readonly onPaste: AsyncParallelHook<[VxeTableEvents.Paste, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
8
+ readonly onCopy: AsyncParallelHook<[VxeTableEvents.Copy, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
9
+ readonly onCut: AsyncParallelHook<[VxeTableEvents.Cut, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
10
+ readonly onCurrentChange: AsyncParallelHook<[VxeTableEvents.CurrentChange, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
11
+ readonly onRadioChange: AsyncParallelHook<[VxeTableEvents.RadioChange, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
12
+ readonly onCheckboxChange: AsyncParallelHook<[VxeTableEvents.CheckboxChange, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
13
+ readonly onCheckboxAll: AsyncParallelHook<[VxeTableEvents.CheckboxAll, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
14
+ readonly onCheckboxRangeStart: AsyncParallelHook<[VxeTableEvents.CheckboxRangeStart, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
15
+ readonly onCheckboxRangeChange: AsyncParallelHook<[VxeTableEvents.CheckboxRangeChange, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
16
+ readonly onCheckboxRangeEnd: AsyncParallelHook<[VxeTableEvents.CheckboxRangeEnd, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
17
+ readonly onCellClick: AsyncParallelHook<[VxeTableEvents.CellClick, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
18
+ readonly onCellDblclick: AsyncParallelHook<[VxeTableEvents.CellDblclick, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
19
+ readonly onCellMenu: AsyncParallelHook<[VxeTableEvents.CellMenu, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
20
+ readonly onCellMouseenter: AsyncParallelHook<[VxeTableEvents.CellMouseenter, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
21
+ readonly onCellMouseleave: AsyncParallelHook<[VxeTableEvents.CellMouseleave, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
22
+ readonly onHeaderCellClick: AsyncParallelHook<[VxeTableEvents.HeaderCellClick, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
23
+ readonly onHeaderCellDblclick: AsyncParallelHook<[VxeTableEvents.HeaderCellDblclick, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
24
+ readonly onHeaderCellMenu: AsyncParallelHook<[VxeTableEvents.HeaderCellMenu, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
25
+ readonly onFooterCellClick: AsyncParallelHook<[VxeTableEvents.FooterCellClick, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
26
+ readonly onFooterCellDblclick: AsyncParallelHook<[VxeTableEvents.FooterCellDblclick, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
27
+ readonly onFooterCellMenu: AsyncParallelHook<[VxeTableEvents.FooterCellMenu, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
28
+ readonly onSortChange: AsyncParallelHook<[VxeTableEvents.SortChange, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
29
+ readonly onFilterChange: AsyncParallelHook<[VxeTableEvents.FilterChange, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
30
+ readonly onFilterVisible: AsyncParallelHook<[VxeTableEvents.FilterVisible, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
31
+ readonly onResizableChange: AsyncParallelHook<[VxeTableEvents.ResizableChange, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
32
+ readonly onToggleRowExpand: AsyncParallelHook<[VxeTableEvents.ToggleRowExpand, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
33
+ readonly onToggleTreeExpand: AsyncParallelHook<[VxeTableEvents.ToggleTreeExpand, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
34
+ readonly onMenuClick: AsyncParallelHook<[VxeTableEvents.MenuClick, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
35
+ readonly onEditClosed: AsyncParallelHook<[VxeTableEvents.EditClosed, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
36
+ readonly onEditActived: AsyncParallelHook<[VxeTableEvents.EditActived, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
37
+ readonly onEditDisabled: AsyncParallelHook<[VxeTableEvents.EditDisabled, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
38
+ readonly onValidError: AsyncParallelHook<[VxeTableEvents.ValidError, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
39
+ readonly onScroll: AsyncParallelHook<[VxeTableEvents.Scroll, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
40
+ readonly onCustom: AsyncParallelHook<[VxeTableEvents.Custom, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
41
+ readonly onOpenFnr: AsyncParallelHook<[VxeTableEvents.OpenFnr, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
42
+ readonly onFnrChange: AsyncParallelHook<[VxeTableEvents.FnrChange, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
43
+ readonly onFnrFind: AsyncParallelHook<[VxeTableEvents.FnrFind, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
44
+ readonly onFnrFindAll: AsyncParallelHook<[VxeTableEvents.FnrFindAll, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
45
+ readonly onFnrReplace: AsyncParallelHook<[VxeTableEvents.FnrReplace, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
46
+ readonly onFnrReplaceAll: AsyncParallelHook<[VxeTableEvents.FnrReplaceAll, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
47
+ readonly onCellAreaCopy: AsyncParallelHook<[VxeTableEvents.CellAreaCopy, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
48
+ readonly onCellAreaCut: AsyncParallelHook<[VxeTableEvents.CellAreaCut, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
49
+ readonly onCellAreaPaste: AsyncParallelHook<[VxeTableEvents.CellAreaPaste, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
50
+ readonly onCellAreaMerge: AsyncParallelHook<[VxeTableEvents.CellAreaMerge, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
51
+ readonly onClearCellAreaMerge: AsyncParallelHook<[VxeTableEvents.ClearCellAreaMerge, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
52
+ readonly onHeaderCellAreaSelection: AsyncParallelHook<[VxeTableEvents.HeaderCellAreaSelection, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
53
+ readonly onCellAreaSelectionStart: AsyncParallelHook<[VxeTableEvents.CellAreaSelectionStart, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
54
+ readonly onCellAreaSelectionDrag: AsyncParallelHook<[VxeTableEvents.CellAreaSelectionDrag, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
55
+ readonly onCellAreaSelectionEnd: AsyncParallelHook<[VxeTableEvents.CellAreaSelectionEnd, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
56
+ readonly onCellAreaExtensionStart: AsyncParallelHook<[VxeTableEvents.CellAreaExtensionStart, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
57
+ readonly onCellAreaExtensionDrag: AsyncParallelHook<[VxeTableEvents.CellAreaExtensionDrag, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
58
+ readonly onCellAreaExtensionEnd: AsyncParallelHook<[VxeTableEvents.CellAreaExtensionEnd, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
59
+ readonly onCellAreaArrowsStart: AsyncParallelHook<[VxeTableEvents.CellAreaArrowsStart, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
60
+ readonly onCellAreaArrowsEnd: AsyncParallelHook<[VxeTableEvents.CellAreaArrowsEnd, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
61
+ readonly onActiveCellChangeStart: AsyncParallelHook<[VxeTableEvents.ActiveCellChangeStart, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
62
+ readonly onActiveCellChangeEnd: AsyncParallelHook<[VxeTableEvents.ActiveCellChangeEnd, import("../../../../../../es/components/his-table").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
63
+ }
64
+ export declare function useEventHooks(): {
65
+ create: () => EventHooks;
66
+ };
67
+ export {};
@@ -0,0 +1 @@
1
+ export { useEventHooks } from './useEventHooks2.js';
@@ -0,0 +1,82 @@
1
+ import '../../../../../shared/utils/tapable/SyncHook.js';
2
+ import '../../../../../shared/utils/tapable/SyncBailHook.js';
3
+ import '../../../../../shared/utils/tapable/SyncWaterfallHook.js';
4
+ import '../../../../../shared/utils/tapable/SyncLoopHook.js';
5
+ import AsyncParallelHook from '../../../../../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
+
12
+ class EventHooks {
13
+ constructor() {
14
+ this.onKeydownStart = new AsyncParallelHook(["event", "config"]);
15
+ this.onKeydown = new AsyncParallelHook(["event", "config"]);
16
+ this.onKeydownEnd = new AsyncParallelHook(["event", "config"]);
17
+ this.onPaste = new AsyncParallelHook(["event", "config"]);
18
+ this.onCopy = new AsyncParallelHook(["event", "config"]);
19
+ this.onCut = new AsyncParallelHook(["event", "config"]);
20
+ this.onCurrentChange = new AsyncParallelHook(["event", "config"]);
21
+ this.onRadioChange = new AsyncParallelHook(["event", "config"]);
22
+ this.onCheckboxChange = new AsyncParallelHook(["event", "config"]);
23
+ this.onCheckboxAll = new AsyncParallelHook(["event", "config"]);
24
+ this.onCheckboxRangeStart = new AsyncParallelHook(["event", "config"]);
25
+ this.onCheckboxRangeChange = new AsyncParallelHook(["event", "config"]);
26
+ this.onCheckboxRangeEnd = new AsyncParallelHook(["event", "config"]);
27
+ this.onCellClick = new AsyncParallelHook(["event", "config"]);
28
+ this.onCellDblclick = new AsyncParallelHook(["event", "config"]);
29
+ this.onCellMenu = new AsyncParallelHook(["event", "config"]);
30
+ this.onCellMouseenter = new AsyncParallelHook(["event", "config"]);
31
+ this.onCellMouseleave = new AsyncParallelHook(["event", "config"]);
32
+ this.onHeaderCellClick = new AsyncParallelHook(["event", "config"]);
33
+ this.onHeaderCellDblclick = new AsyncParallelHook(["event", "config"]);
34
+ this.onHeaderCellMenu = new AsyncParallelHook(["event", "config"]);
35
+ this.onFooterCellClick = new AsyncParallelHook(["event", "config"]);
36
+ this.onFooterCellDblclick = new AsyncParallelHook(["event", "config"]);
37
+ this.onFooterCellMenu = new AsyncParallelHook(["event", "config"]);
38
+ this.onSortChange = new AsyncParallelHook(["event", "config"]);
39
+ this.onFilterChange = new AsyncParallelHook(["event", "config"]);
40
+ this.onFilterVisible = new AsyncParallelHook(["event", "config"]);
41
+ this.onResizableChange = new AsyncParallelHook(["event", "config"]);
42
+ this.onToggleRowExpand = new AsyncParallelHook(["event", "config"]);
43
+ this.onToggleTreeExpand = new AsyncParallelHook(["event", "config"]);
44
+ this.onMenuClick = new AsyncParallelHook(["event", "config"]);
45
+ this.onEditClosed = new AsyncParallelHook(["event", "config"]);
46
+ this.onEditActived = new AsyncParallelHook(["event", "config"]);
47
+ this.onEditDisabled = new AsyncParallelHook(["event", "config"]);
48
+ this.onValidError = new AsyncParallelHook(["event", "config"]);
49
+ this.onScroll = new AsyncParallelHook(["event", "config"]);
50
+ this.onCustom = new AsyncParallelHook(["event", "config"]);
51
+ this.onOpenFnr = new AsyncParallelHook(["event", "config"]);
52
+ this.onFnrChange = new AsyncParallelHook(["event", "config"]);
53
+ this.onFnrFind = new AsyncParallelHook(["event", "config"]);
54
+ this.onFnrFindAll = new AsyncParallelHook(["event", "config"]);
55
+ this.onFnrReplace = new AsyncParallelHook(["event", "config"]);
56
+ this.onFnrReplaceAll = new AsyncParallelHook(["event", "config"]);
57
+ this.onCellAreaCopy = new AsyncParallelHook(["event", "config"]);
58
+ this.onCellAreaCut = new AsyncParallelHook(["event", "config"]);
59
+ this.onCellAreaPaste = new AsyncParallelHook(["event", "config"]);
60
+ this.onCellAreaMerge = new AsyncParallelHook(["event", "config"]);
61
+ this.onClearCellAreaMerge = new AsyncParallelHook(["event", "config"]);
62
+ this.onHeaderCellAreaSelection = new AsyncParallelHook(["event", "config"]);
63
+ this.onCellAreaSelectionStart = new AsyncParallelHook(["event", "config"]);
64
+ this.onCellAreaSelectionDrag = new AsyncParallelHook(["event", "config"]);
65
+ this.onCellAreaSelectionEnd = new AsyncParallelHook(["event", "config"]);
66
+ this.onCellAreaExtensionStart = new AsyncParallelHook(["event", "config"]);
67
+ this.onCellAreaExtensionDrag = new AsyncParallelHook(["event", "config"]);
68
+ this.onCellAreaExtensionEnd = new AsyncParallelHook(["event", "config"]);
69
+ this.onCellAreaArrowsStart = new AsyncParallelHook(["event", "config"]);
70
+ this.onCellAreaArrowsEnd = new AsyncParallelHook(["event", "config"]);
71
+ this.onActiveCellChangeStart = new AsyncParallelHook(["event", "config"]);
72
+ this.onActiveCellChangeEnd = new AsyncParallelHook(["event", "config"]);
73
+ }
74
+ }
75
+ function useEventHooks() {
76
+ function create() {
77
+ return new EventHooks();
78
+ }
79
+ return { create };
80
+ }
81
+
82
+ export { useEventHooks };
@@ -0,0 +1,10 @@
1
+ import { SyncWaterfallHook } from '../../../../../../es/shared/utils/tapable';
2
+ import { FieldHookContext, HisTableFieldItem } from '../../../../../../es/components/his-table/src/types';
3
+ import { AbstractFieldHooks } from '../../../../../../es/components/his-table/src/types';
4
+ declare class FieldHooks extends AbstractFieldHooks {
5
+ readonly field: SyncWaterfallHook<[HisTableFieldItem, FieldHookContext, import("../../../../../../es/components/his-table/src/types").HisTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
6
+ }
7
+ export declare function useFieldHooks(): {
8
+ create: () => FieldHooks;
9
+ };
10
+ export {};
@@ -0,0 +1 @@
1
+ export { useFieldHooks } from './useFieldHooks2.js';
@@ -0,0 +1,30 @@
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 { AbstractFieldHooks } from '../../types/pluginType2.js';
12
+
13
+ class FieldHooks extends AbstractFieldHooks {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.field = new SyncWaterfallHook([
17
+ "fieldItem",
18
+ "context",
19
+ "config"
20
+ ]);
21
+ }
22
+ }
23
+ function useFieldHooks() {
24
+ function create() {
25
+ return new FieldHooks();
26
+ }
27
+ return { create };
28
+ }
29
+
30
+ export { useFieldHooks };
@@ -0,0 +1,9 @@
1
+ import { SyncHook } from '../../../../../../es/shared/utils/tapable';
2
+ import { AbstractVxeTableHook } from '../../../../../../es/components/his-table';
3
+ declare class VxeTableHook extends AbstractVxeTableHook {
4
+ VxeTable: SyncHook<import("vxe-table").VXETableCore, void, import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
5
+ }
6
+ export declare function useVxeTableHooks(): {
7
+ create: () => VxeTableHook;
8
+ };
9
+ export {};
@@ -0,0 +1 @@
1
+ export { useVxeTableHooks } from './useVxeTableHooks2.js';
@@ -0,0 +1,27 @@
1
+ import SyncHook from '../../../../../shared/utils/tapable/SyncHook.js';
2
+ import '../../../../../shared/utils/tapable/SyncBailHook.js';
3
+ import '../../../../../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 '../../../index2.js';
12
+ import { AbstractVxeTableHook } from '../../types/pluginType2.js';
13
+
14
+ class VxeTableHook extends AbstractVxeTableHook {
15
+ constructor() {
16
+ super(...arguments);
17
+ this.VxeTable = new SyncHook(["VxeTable"]);
18
+ }
19
+ }
20
+ function useVxeTableHooks() {
21
+ function create() {
22
+ return new VxeTableHook();
23
+ }
24
+ return { create };
25
+ }
26
+
27
+ export { useVxeTableHooks };
@@ -0,0 +1,8 @@
1
+ import { ArrayAble } from '../../../../../es/shared/types';
2
+ import { TablePlugin } from '../../../../../es/components/his-table/src/types';
3
+ export declare function useTablePlugin(): {
4
+ use: (plugin: ArrayAble<TablePlugin>) => {
5
+ use: any;
6
+ };
7
+ };
8
+ export declare function defineTablePlugin(plugin: TablePlugin): TablePlugin;
@@ -0,0 +1 @@
1
+ export { defineTablePlugin, useTablePlugin } from './useTablePlugin2.js';
@@ -0,0 +1,16 @@
1
+ import { arrayed } from '../../../../shared/utils/index2.js';
2
+ import { createTableHooks } from './tapHooks/index2.js';
3
+
4
+ function useTablePlugin() {
5
+ const hooks = createTableHooks();
6
+ function use(plugin) {
7
+ arrayed(plugin).forEach((p) => p.apply(hooks));
8
+ return { use };
9
+ }
10
+ return { use };
11
+ }
12
+ function defineTablePlugin(plugin) {
13
+ return plugin;
14
+ }
15
+
16
+ export { defineTablePlugin, useTablePlugin };
@@ -0,0 +1 @@
1
+ export declare function defaultConfigPlugin(): import("../../../../../../es/components/his-table").TablePlugin;
@@ -0,0 +1 @@
1
+ export { defaultConfigPlugin } from './index2.js';
@@ -0,0 +1,24 @@
1
+ import { mergeWith } from 'lodash-es';
2
+ import { defineTablePlugin } from '../../hooks/useTablePlugin2.js';
3
+
4
+ function defaultConfigPlugin() {
5
+ return defineTablePlugin({
6
+ name: "defaultTablePlugin",
7
+ apply(hooks) {
8
+ hooks.configHooks.config.tap({ name: "defaultConfig", stage: 9999 }, (config) => {
9
+ return mergeWith({
10
+ height: "100%",
11
+ rowConfig: { height: 32, isHover: true, isCurrent: true },
12
+ editConfig: {
13
+ trigger: "manual",
14
+ mode: "cell",
15
+ autoClear: false,
16
+ showIcon: false
17
+ }
18
+ }, config);
19
+ });
20
+ }
21
+ });
22
+ }
23
+
24
+ export { defaultConfigPlugin };
@@ -0,0 +1,2 @@
1
+ export * from './defaultConfigPlugin';
2
+ export * from './lowCodeFieldAdaptorPlugin';
@@ -0,0 +1,2 @@
1
+ export { defaultConfigPlugin } from './defaultConfigPlugin/index2.js';
2
+ export { lowCodeFieldAdaptorPlugin } from './lowCodeFieldAdaptorPlugin/index2.js';
@@ -0,0 +1,2 @@
1
+ export { defaultConfigPlugin } from './defaultConfigPlugin/index2.js';
2
+ export { lowCodeFieldAdaptorPlugin } from './lowCodeFieldAdaptorPlugin/index2.js';
@@ -0,0 +1,2 @@
1
+ import { VxeTableDefines } from 'vxe-table';
2
+ export declare const fieldFormatter: VxeTableDefines.ColumnInfo['formatter'];
@@ -0,0 +1 @@
1
+ export { fieldFormatter } from './formatter2.js';
@@ -0,0 +1,5 @@
1
+ const fieldFormatter = ({ cellValue }) => {
2
+ return cellValue;
3
+ };
4
+
5
+ export { fieldFormatter };
@@ -0,0 +1 @@
1
+ export declare function lowCodeFieldAdaptorPlugin(): import("../../../../../../es/components/his-table").TablePlugin;
@@ -0,0 +1 @@
1
+ export { lowCodeFieldAdaptorPlugin } from './index2.js';
@@ -0,0 +1,22 @@
1
+ import { pick } from 'lodash-es';
2
+ import { defineTablePlugin } from '../../hooks/useTablePlugin2.js';
3
+ import { fieldFormatter } from './formatter2.js';
4
+
5
+ function lowCodeFieldAdaptorPlugin() {
6
+ return defineTablePlugin({
7
+ name: "lowCodeFieldAdaptorPlugin",
8
+ apply(hooks) {
9
+ hooks.fieldHooks.field.tap({ name: "fieldAdaptor", stage: -9999 }, (field) => {
10
+ const _field = field;
11
+ return {
12
+ field: _field.columnName,
13
+ width: _field.colWidth,
14
+ formatter: fieldFormatter,
15
+ ...pick(_field, ["title"])
16
+ };
17
+ });
18
+ }
19
+ });
20
+ }
21
+
22
+ export { lowCodeFieldAdaptorPlugin };
@@ -0,0 +1,12 @@
1
+ import { VxeTableProps, VxeTableDefines } from 'vxe-table';
2
+ export * from './pluginType';
3
+ export interface HisTableConfig extends VxeTableProps {
4
+ }
5
+ export interface HisTableFieldItem extends Partial<VxeTableDefines.ColumnInfo> {
6
+ }
7
+ export declare type LowCodeTableFieldItem = {
8
+ id: number;
9
+ columnName: string;
10
+ title?: string;
11
+ colWidth?: string | number;
12
+ };
@@ -0,0 +1 @@
1
+ export { AbstractConfigHooks, AbstractEventHooks, AbstractFieldHooks, AbstractVxeTableHook } from './pluginType2.js';