cnhis-design-vue 3.1.21 → 3.1.22-beta.1
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/big-table/index.d.ts +8 -0
- package/es/components/big-table/src/BigTable.vue.d.ts +8 -0
- package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +7 -6
- package/es/components/big-table/style/index.css +1 -1
- package/es/components/field-set/index.d.ts +27 -3
- package/es/components/field-set/src/FieldSet.js +18 -8
- package/es/components/field-set/src/FieldSet.vue.d.ts +7 -3
- package/es/components/form-render/src/hooks/useFieldNormalize2.js +6 -0
- package/es/components/{his-table → iho-table}/index.d.ts +19 -16
- package/es/components/{his-table → iho-table}/index.js +1 -1
- package/es/components/{his-table → iho-table}/index2.js +5 -5
- package/es/components/{his-table/src/HisTable.js → iho-table/src/IhoTable.js} +12 -8
- package/es/components/{his-table/src/HisTable.vue.d.ts → iho-table/src/IhoTable.vue.d.ts} +21 -18
- package/es/components/{his-table/src/components/HisTableColumn.d.ts → iho-table/src/components/IhoTableColumn.d.ts} +3 -3
- package/es/components/{his-table/src/components/HisTableColumn.js → iho-table/src/components/IhoTableColumn.js} +3 -3
- package/es/components/iho-table/src/components/index.d.ts +1 -0
- package/es/components/iho-table/src/components/index.js +1 -0
- package/es/components/iho-table/src/constants/index.d.ts +40 -0
- package/es/components/iho-table/src/constants/index.js +1 -0
- package/es/components/iho-table/src/constants/index2.js +40 -0
- package/es/components/{his-table → iho-table}/src/hooks/index.d.ts +0 -0
- package/es/components/{his-table → iho-table}/src/hooks/index.js +0 -0
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +8 -0
- package/es/components/{his-table → iho-table}/src/hooks/tapHooks/index.js +0 -0
- package/es/components/{his-table → iho-table}/src/hooks/tapHooks/index2.js +8 -3
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +13 -0
- package/es/components/{his-table → iho-table}/src/hooks/tapHooks/useConfigHooks.js +0 -0
- package/es/components/{his-table → iho-table}/src/hooks/tapHooks/useConfigHooks2.js +1 -0
- package/es/components/{his-table → iho-table}/src/hooks/tapHooks/useEventHooks.d.ts +59 -59
- package/es/components/{his-table → iho-table}/src/hooks/tapHooks/useEventHooks.js +0 -0
- package/es/components/{his-table → iho-table}/src/hooks/tapHooks/useEventHooks2.js +0 -0
- package/es/components/{his-table → iho-table}/src/hooks/tapHooks/useFieldHooks.d.ts +3 -3
- package/es/components/{his-table → iho-table}/src/hooks/tapHooks/useFieldHooks.js +0 -0
- package/es/components/{his-table → iho-table}/src/hooks/tapHooks/useFieldHooks2.js +0 -0
- package/es/components/{his-table → iho-table}/src/hooks/useTablePlugin.d.ts +1 -1
- package/es/components/{his-table → iho-table}/src/hooks/useTablePlugin.js +0 -0
- package/es/components/{his-table → iho-table}/src/hooks/useTablePlugin2.js +6 -1
- package/es/components/{his-table → iho-table}/src/plugins/defaultConfigPlugin/index.d.ts +1 -1
- package/es/components/{his-table → iho-table}/src/plugins/defaultConfigPlugin/index.js +0 -0
- package/es/components/{his-table → iho-table}/src/plugins/defaultConfigPlugin/index2.js +8 -3
- package/es/components/{his-table → iho-table}/src/plugins/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/index.js +7 -0
- package/es/components/iho-table/src/plugins/index2.js +7 -0
- package/es/components/{his-table → iho-table}/src/plugins/lowCodeFieldAdaptorPlugin/index.d.ts +1 -1
- package/es/components/{his-table → iho-table}/src/plugins/lowCodeFieldAdaptorPlugin/index.js +0 -0
- package/es/components/{his-table → iho-table}/src/plugins/lowCodeFieldAdaptorPlugin/index2.js +9 -5
- package/es/components/iho-table/src/plugins/rendererPlugins/checkRendererPlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/checkRendererPlugin.js +28 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/colorRendererPlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/colorRendererPlugin.js +48 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/defaultRendererPlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/defaultRendererPlugin.js +62 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/index.d.ts +5 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/index.js +5 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/labelRendererPlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/labelRendererPlugin.js +45 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/seqRendererPlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/seqRendererPlugin.js +55 -0
- package/es/components/iho-table/src/types/index.d.ts +23 -0
- package/es/components/{his-table → iho-table}/src/types/index.js +1 -1
- package/es/components/{his-table → iho-table}/src/types/pluginType.d.ts +14 -15
- package/es/components/{his-table → iho-table}/src/types/pluginType.js +1 -1
- package/es/components/{his-table → iho-table}/src/types/pluginType2.js +1 -3
- package/es/components/iho-table/src/utils/index.d.ts +2 -0
- package/es/components/iho-table/src/utils/index.js +1 -0
- package/es/components/iho-table/src/utils/index2.js +8 -0
- package/es/components/iho-table/style/index.css +1 -0
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +3 -3
- package/es/components/index.js +3 -3
- package/es/components/index2.js +3 -3
- package/es/components/info-header/src/InfoHeader.js +3 -3
- package/es/components/info-header/style/index.css +1 -1
- package/es/shared/utils/tapable/SyncHook.js +2 -23
- package/package.json +2 -2
- package/es/components/big-table/src/components/edit-form/useCommon.d.ts +0 -4
- 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/components/his-table/src/components/index.d.ts +0 -1
- package/es/components/his-table/src/components/index.js +0 -1
- package/es/components/his-table/src/hooks/tapHooks/index.d.ts +0 -9
- package/es/components/his-table/src/hooks/tapHooks/useConfigHooks.d.ts +0 -12
- package/es/components/his-table/src/hooks/tapHooks/useVxeTableHooks.d.ts +0 -9
- package/es/components/his-table/src/hooks/tapHooks/useVxeTableHooks.js +0 -1
- package/es/components/his-table/src/hooks/tapHooks/useVxeTableHooks2.js +0 -27
- package/es/components/his-table/src/plugins/index.js +0 -2
- package/es/components/his-table/src/plugins/index2.js +0 -2
- package/es/components/his-table/src/plugins/lowCodeFieldAdaptorPlugin/formatter.d.ts +0 -2
- package/es/components/his-table/src/plugins/lowCodeFieldAdaptorPlugin/formatter.js +0 -1
- package/es/components/his-table/src/plugins/lowCodeFieldAdaptorPlugin/formatter2.js +0 -5
- package/es/components/his-table/src/types/index.d.ts +0 -12
- package/es/components/his-table/style/index.css +0 -0
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as HisTableColumn } from './HisTableColumn';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as HisTableColumn } from './HisTableColumn.js';
|
|
@@ -1,9 +0,0 @@
|
|
|
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[];
|
|
@@ -1,12 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,9 +0,0 @@
|
|
|
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 {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { useVxeTableHooks } from './useVxeTableHooks2.js';
|
|
@@ -1,27 +0,0 @@
|
|
|
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 };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { fieldFormatter } from './formatter2.js';
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
};
|
|
File without changes
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
type FixedSizeArray<T extends number, U> = T extends 0
|
|
2
|
-
? void[]
|
|
3
|
-
: ReadonlyArray<U> & {
|
|
4
|
-
0: U;
|
|
5
|
-
length: T;
|
|
6
|
-
};
|
|
7
|
-
type Measure<T extends number> = T extends 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 ? T : never;
|
|
8
|
-
type Append<T extends any[], U> = {
|
|
9
|
-
0: [U];
|
|
10
|
-
1: [T[0], U];
|
|
11
|
-
2: [T[0], T[1], U];
|
|
12
|
-
3: [T[0], T[1], T[2], U];
|
|
13
|
-
4: [T[0], T[1], T[2], T[3], U];
|
|
14
|
-
5: [T[0], T[1], T[2], T[3], T[4], U];
|
|
15
|
-
6: [T[0], T[1], T[2], T[3], T[4], T[5], U];
|
|
16
|
-
7: [T[0], T[1], T[2], T[3], T[4], T[5], T[6], U];
|
|
17
|
-
8: [T[0], T[1], T[2], T[3], T[4], T[5], T[6], T[7], U];
|
|
18
|
-
}[Measure<T['length']>];
|
|
19
|
-
type AsArray<T> = T extends any[] ? T : [T];
|
|
20
|
-
|
|
21
|
-
declare class UnsetAdditionalOptions {
|
|
22
|
-
_UnsetAdditionalOptions: true;
|
|
23
|
-
}
|
|
24
|
-
type IfSet<X> = X extends UnsetAdditionalOptions ? {} : X;
|
|
25
|
-
|
|
26
|
-
type Callback<E, T> = (error: E | null, result?: T) => void;
|
|
27
|
-
type InnerCallback<E, T> = (error?: E | null | false, result?: T) => void;
|
|
28
|
-
|
|
29
|
-
type FullTap = Tap & {
|
|
30
|
-
type: 'sync' | 'async' | 'promise';
|
|
31
|
-
fn: Function;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
type Tap = TapOptions & {
|
|
35
|
-
name: string;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
type TapOptions = {
|
|
39
|
-
before?: string;
|
|
40
|
-
stage?: number;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
interface HookInterceptor<T, R, AdditionalOptions = UnsetAdditionalOptions> {
|
|
44
|
-
name?: string;
|
|
45
|
-
tap?: (tap: FullTap & IfSet<AdditionalOptions>) => void;
|
|
46
|
-
call?: (...args: any[]) => void;
|
|
47
|
-
loop?: (...args: any[]) => void;
|
|
48
|
-
error?: (err: Error) => void;
|
|
49
|
-
result?: (result: R) => void;
|
|
50
|
-
done?: () => void;
|
|
51
|
-
register?: (tap: FullTap & IfSet<AdditionalOptions>) => FullTap & IfSet<AdditionalOptions>;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
type ArgumentNames<T extends any[]> = FixedSizeArray<T['length'], string>;
|
|
55
|
-
|
|
56
|
-
declare class Hook<T, R, AdditionalOptions = UnsetAdditionalOptions> {
|
|
57
|
-
constructor(args?: ArgumentNames<AsArray<T>>, name?: string);
|
|
58
|
-
name: string | undefined;
|
|
59
|
-
taps: FullTap[];
|
|
60
|
-
intercept(interceptor: HookInterceptor<T, R, AdditionalOptions>): void;
|
|
61
|
-
isUsed(): boolean;
|
|
62
|
-
callAsync(...args: Append<AsArray<T>, Callback<Error, R>>): void;
|
|
63
|
-
promise(...args: AsArray<T>): Promise<R>;
|
|
64
|
-
tap(options: string | (Tap & IfSet<AdditionalOptions>), fn: (...args: AsArray<T>) => R): void;
|
|
65
|
-
withOptions(options: TapOptions & IfSet<AdditionalOptions>): Omit<this, 'call' | 'callAsync' | 'promise'>;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export class SyncHook<T, R = void, AdditionalOptions = UnsetAdditionalOptions> extends Hook<T, R, AdditionalOptions> {
|
|
69
|
-
call(...args: AsArray<T>): R;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export class SyncBailHook<T, R, AdditionalOptions = UnsetAdditionalOptions> extends SyncHook<T, R, AdditionalOptions> {}
|
|
73
|
-
export class SyncLoopHook<T, AdditionalOptions = UnsetAdditionalOptions> extends SyncHook<T, void, AdditionalOptions> {}
|
|
74
|
-
export class SyncWaterfallHook<T, AdditionalOptions = UnsetAdditionalOptions> extends SyncHook<
|
|
75
|
-
T,
|
|
76
|
-
AsArray<T>[0],
|
|
77
|
-
AdditionalOptions
|
|
78
|
-
> {}
|
|
79
|
-
|
|
80
|
-
declare class AsyncHook<T, R, AdditionalOptions = UnsetAdditionalOptions> extends Hook<T, R, AdditionalOptions> {
|
|
81
|
-
tapAsync(
|
|
82
|
-
options: string | (Tap & IfSet<AdditionalOptions>),
|
|
83
|
-
fn: (...args: Append<AsArray<T>, InnerCallback<Error, R>>) => void
|
|
84
|
-
): void;
|
|
85
|
-
tapPromise(options: string | (Tap & IfSet<AdditionalOptions>), fn: (...args: AsArray<T>) => Promise<R>): void;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export class AsyncParallelHook<T, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
|
89
|
-
T,
|
|
90
|
-
void,
|
|
91
|
-
AdditionalOptions
|
|
92
|
-
> {}
|
|
93
|
-
export class AsyncParallelBailHook<T, R, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
|
94
|
-
T,
|
|
95
|
-
R,
|
|
96
|
-
AdditionalOptions
|
|
97
|
-
> {}
|
|
98
|
-
export class AsyncSeriesHook<T, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
|
99
|
-
T,
|
|
100
|
-
void,
|
|
101
|
-
AdditionalOptions
|
|
102
|
-
> {}
|
|
103
|
-
export class AsyncSeriesBailHook<T, R, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
|
104
|
-
T,
|
|
105
|
-
R,
|
|
106
|
-
AdditionalOptions
|
|
107
|
-
> {}
|
|
108
|
-
export class AsyncSeriesLoopHook<T, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
|
109
|
-
T,
|
|
110
|
-
void,
|
|
111
|
-
AdditionalOptions
|
|
112
|
-
> {}
|
|
113
|
-
export class AsyncSeriesWaterfallHook<T, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
|
114
|
-
T,
|
|
115
|
-
AsArray<T>[0],
|
|
116
|
-
AdditionalOptions
|
|
117
|
-
> {}
|
|
118
|
-
|
|
119
|
-
type HookFactory<H> = (key: any, hook?: H) => H;
|
|
120
|
-
|
|
121
|
-
interface HookMapInterceptor<H> {
|
|
122
|
-
factory?: HookFactory<H>;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export class HookMap<H> {
|
|
126
|
-
constructor(factory: HookFactory<H>, name?: string);
|
|
127
|
-
name: string | undefined;
|
|
128
|
-
get(key: any): H | undefined;
|
|
129
|
-
for(key: any): H;
|
|
130
|
-
intercept(interceptor: HookMapInterceptor<H>): void;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
export class MultiHook<H> {
|
|
134
|
-
constructor(hooks: H[], name?: string);
|
|
135
|
-
name: string | undefined;
|
|
136
|
-
tap(options: string | Tap, fn?: Function): void;
|
|
137
|
-
tapAsync(options: string | Tap, fn?: Function): void;
|
|
138
|
-
tapPromise(options: string | Tap, fn?: Function): void;
|
|
139
|
-
}
|