cnhis-design-vue 3.1.26-beta.5 → 3.1.27-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/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-render/src/utils/index.js +3 -1
- package/es/components/iho-table/index.d.ts +6 -46
- package/es/components/iho-table/index.js +1 -2
- package/es/components/iho-table/src/IhoTable.js +31 -37
- package/es/components/iho-table/src/IhoTable.vue.d.ts +6 -46
- package/es/components/iho-table/src/components/index.d.ts +0 -1
- package/es/components/iho-table/src/components/index.js +0 -1
- package/es/components/iho-table/src/constants/index.d.ts +15 -3
- package/es/components/iho-table/src/constants/index.js +15 -1
- package/es/components/iho-table/src/hooks/index.d.ts +0 -1
- package/es/components/iho-table/src/hooks/index.js +1 -2
- 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/virtualTreePlugin/index.js +4 -2
- package/es/components/iho-table/src/types/index.d.ts +3 -0
- package/es/components/iho-table/src/types/index.js +1 -1
- package/es/components/iho-table/src/types/pluginType.d.ts +6 -1
- 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/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/package.json +65 -65
- 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/iho-table/src/components/ColumnAnchor.d.ts +0 -28
- package/es/components/iho-table/src/components/ColumnAnchor.js +0 -47
- package/es/components/iho-table/src/hooks/useAnchor.d.ts +0 -13
- package/es/components/iho-table/src/hooks/useAnchor.js +0 -66
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { IanchorObj } from '../../../../../es/components/iho-table/src/types';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
|
4
|
-
anchorList: {
|
|
5
|
-
type: PropType<IanchorObj[]>;
|
|
6
|
-
default: () => never[];
|
|
7
|
-
};
|
|
8
|
-
value: {
|
|
9
|
-
type: StringConstructor;
|
|
10
|
-
default: string;
|
|
11
|
-
};
|
|
12
|
-
}, () => JSX.Element | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "updateAnchor")[], "updateAnchor" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
-
anchorList: {
|
|
14
|
-
type: PropType<IanchorObj[]>;
|
|
15
|
-
default: () => never[];
|
|
16
|
-
};
|
|
17
|
-
value: {
|
|
18
|
-
type: StringConstructor;
|
|
19
|
-
default: string;
|
|
20
|
-
};
|
|
21
|
-
}>> & {
|
|
22
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
23
|
-
onUpdateAnchor?: ((...args: any[]) => any) | undefined;
|
|
24
|
-
}, {
|
|
25
|
-
anchorList: IanchorObj[];
|
|
26
|
-
value: string;
|
|
27
|
-
}>;
|
|
28
|
-
export default _default;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createVNode, isVNode } from 'vue';
|
|
2
|
-
import { NTabs, NTabPane } from 'naive-ui';
|
|
3
|
-
|
|
4
|
-
function _isSlot(s) {
|
|
5
|
-
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
6
|
-
}
|
|
7
|
-
var ColumnAnchor = defineComponent({
|
|
8
|
-
name: "ColumnAnchor",
|
|
9
|
-
props: {
|
|
10
|
-
anchorList: {
|
|
11
|
-
type: Array,
|
|
12
|
-
default: () => []
|
|
13
|
-
},
|
|
14
|
-
value: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: ""
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
emits: ["update:value", "updateAnchor"],
|
|
20
|
-
setup(props, {
|
|
21
|
-
attrs,
|
|
22
|
-
slots,
|
|
23
|
-
emit
|
|
24
|
-
}) {
|
|
25
|
-
function onUpdatedValue(value) {
|
|
26
|
-
emit("update:value", value);
|
|
27
|
-
emit("updateAnchor", value);
|
|
28
|
-
}
|
|
29
|
-
return () => {
|
|
30
|
-
let _slot;
|
|
31
|
-
return props.anchorList.length > 0 ? createVNode(NTabs, {
|
|
32
|
-
"type": "line",
|
|
33
|
-
"animated": true,
|
|
34
|
-
"pane-style": "padding: 0",
|
|
35
|
-
"value": props.value,
|
|
36
|
-
"onUpdate:value": onUpdatedValue
|
|
37
|
-
}, _isSlot(_slot = props.anchorList.map((field) => createVNode(NTabPane, {
|
|
38
|
-
"name": field.field,
|
|
39
|
-
"tab": field.title
|
|
40
|
-
}, null))) ? _slot : {
|
|
41
|
-
default: () => [_slot]
|
|
42
|
-
}) : null;
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
export { ColumnAnchor as default };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { VxeTableInstance } from 'vxe-table';
|
|
3
|
-
import { IhoTableFieldItem } from '../../../../../es/components/iho-table/src/types';
|
|
4
|
-
export declare const useAnchor: (anchorList: string[], $table: Ref<VxeTableInstance | undefined>, fieldListRef: Ref<IhoTableFieldItem[]>) => {
|
|
5
|
-
updateAnchor: (field: string) => Promise<void>;
|
|
6
|
-
onScroll: (params: any) => void;
|
|
7
|
-
currentAnchorList: Ref<{
|
|
8
|
-
field: string;
|
|
9
|
-
title: string;
|
|
10
|
-
left: number;
|
|
11
|
-
}[]>;
|
|
12
|
-
anchorValue: Ref<any>;
|
|
13
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { ref, watch } from 'vue';
|
|
2
|
-
import { useThrottleFn } from '@vueuse/core';
|
|
3
|
-
|
|
4
|
-
const useAnchor = (anchorList, $table, fieldListRef) => {
|
|
5
|
-
const currentAnchorList = ref([]);
|
|
6
|
-
const anchorValue = ref();
|
|
7
|
-
let setAnchorStatus = true;
|
|
8
|
-
function initAnchor() {
|
|
9
|
-
var _a, _b;
|
|
10
|
-
if (anchorList == null ? void 0 : anchorList.length) {
|
|
11
|
-
let left = 0;
|
|
12
|
-
fieldListRef.value.forEach((column) => {
|
|
13
|
-
const { field, minWidth, width, fixed, title, visible } = column;
|
|
14
|
-
const colWidth = +(minWidth || width);
|
|
15
|
-
if (fixed == "left") ; else {
|
|
16
|
-
left += colWidth;
|
|
17
|
-
const anchorObj = anchorList.find((fieldItem) => fieldItem === field);
|
|
18
|
-
anchorObj && visible && currentAnchorList.value.push({
|
|
19
|
-
field,
|
|
20
|
-
title,
|
|
21
|
-
left: left - colWidth
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
anchorValue.value = ((_b = (_a = currentAnchorList.value) == null ? void 0 : _a[0]) == null ? void 0 : _b.field) || "";
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
async function updateAnchor(field) {
|
|
29
|
-
var _a, _b;
|
|
30
|
-
setAnchorStatus = false;
|
|
31
|
-
const anchorObj = currentAnchorList.value.find((fieldItem) => fieldItem.field === field);
|
|
32
|
-
if (anchorObj) {
|
|
33
|
-
await ((_b = $table.value) == null ? void 0 : _b.scrollTo((_a = anchorObj.left) != null ? _a : 0));
|
|
34
|
-
setTimeout(() => {
|
|
35
|
-
setAnchorStatus = true;
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
function setAnchorValue({ scrollLeft }) {
|
|
40
|
-
if (currentAnchorList.value.length && setAnchorStatus) {
|
|
41
|
-
const anchorObj = currentAnchorList.value.find((fieldItem) => scrollLeft < (fieldItem == null ? void 0 : fieldItem.left));
|
|
42
|
-
if (anchorObj) {
|
|
43
|
-
anchorValue.value = anchorObj.field;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
const anchorEvent = useThrottleFn(setAnchorValue, 800);
|
|
48
|
-
function onScroll(params) {
|
|
49
|
-
anchorEvent(params);
|
|
50
|
-
}
|
|
51
|
-
watch(
|
|
52
|
-
() => fieldListRef.value,
|
|
53
|
-
(value) => {
|
|
54
|
-
initAnchor();
|
|
55
|
-
},
|
|
56
|
-
{ immediate: true }
|
|
57
|
-
);
|
|
58
|
-
return {
|
|
59
|
-
updateAnchor,
|
|
60
|
-
onScroll,
|
|
61
|
-
currentAnchorList,
|
|
62
|
-
anchorValue
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export { useAnchor };
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
declare const draggableComponent: import('vue').DefineComponent<
|
|
2
|
-
{
|
|
3
|
-
list: {
|
|
4
|
-
type: ArrayConstructor;
|
|
5
|
-
required: boolean;
|
|
6
|
-
default: any;
|
|
7
|
-
};
|
|
8
|
-
modelValue: {
|
|
9
|
-
type: ArrayConstructor;
|
|
10
|
-
required: boolean;
|
|
11
|
-
default: any;
|
|
12
|
-
};
|
|
13
|
-
itemKey: {
|
|
14
|
-
type: (FunctionConstructor | StringConstructor)[];
|
|
15
|
-
required: boolean;
|
|
16
|
-
};
|
|
17
|
-
clone: {
|
|
18
|
-
type: FunctionConstructor;
|
|
19
|
-
default: (original: any) => any;
|
|
20
|
-
};
|
|
21
|
-
tag: {
|
|
22
|
-
type: StringConstructor;
|
|
23
|
-
default: string;
|
|
24
|
-
};
|
|
25
|
-
move: {
|
|
26
|
-
type: FunctionConstructor;
|
|
27
|
-
default: any;
|
|
28
|
-
};
|
|
29
|
-
componentData: {
|
|
30
|
-
type: ObjectConstructor;
|
|
31
|
-
required: boolean;
|
|
32
|
-
default: any;
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
unknown,
|
|
36
|
-
{
|
|
37
|
-
error: boolean;
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
realList(): any;
|
|
41
|
-
getKey(): any;
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
getUnderlyingVm(domElement: any): any;
|
|
45
|
-
getUnderlyingPotencialDraggableComponent(htmElement: any): any;
|
|
46
|
-
emitChanges(evt: any): void;
|
|
47
|
-
alterList(onList: any): void;
|
|
48
|
-
spliceList(): void;
|
|
49
|
-
updatePosition(oldIndex: any, newIndex: any): void;
|
|
50
|
-
getRelatedContextFromMoveEvent({ to, related }: { to: any; related: any }): any;
|
|
51
|
-
getVmIndexFromDomIndex(domIndex: any): any;
|
|
52
|
-
onDragStart(evt: any): void;
|
|
53
|
-
onDragAdd(evt: any): void;
|
|
54
|
-
onDragRemove(evt: any): void;
|
|
55
|
-
onDragUpdate(evt: any): void;
|
|
56
|
-
computeFutureIndex(relatedContext: any, evt: any): any;
|
|
57
|
-
onDragMove(evt: any, originalEvent: any): any;
|
|
58
|
-
onDragEnd(): void;
|
|
59
|
-
},
|
|
60
|
-
import('vue').ComponentOptionsMixin,
|
|
61
|
-
import('vue').ComponentOptionsMixin,
|
|
62
|
-
any[],
|
|
63
|
-
any,
|
|
64
|
-
import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps,
|
|
65
|
-
Readonly<
|
|
66
|
-
{
|
|
67
|
-
move: Function;
|
|
68
|
-
tag: string;
|
|
69
|
-
clone: Function;
|
|
70
|
-
list: unknown[];
|
|
71
|
-
modelValue: unknown[];
|
|
72
|
-
componentData: Record<string, any>;
|
|
73
|
-
} & {
|
|
74
|
-
itemKey?: string | Function;
|
|
75
|
-
}
|
|
76
|
-
>,
|
|
77
|
-
{
|
|
78
|
-
move: Function;
|
|
79
|
-
tag: string;
|
|
80
|
-
clone: Function;
|
|
81
|
-
list: unknown[];
|
|
82
|
-
modelValue: unknown[];
|
|
83
|
-
componentData: Record<string, any>;
|
|
84
|
-
}
|
|
85
|
-
>;
|
|
86
|
-
export default draggableComponent;
|
|
@@ -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
|
-
}
|