mdt-client 31.3.9 → 31.3.10
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/package.json +1 -1
- package/types/common/Table.d.ts +3 -0
- package/types/helpers/events/EventEmitter.d.ts +4 -0
- package/types/helpers/formattedText.d.ts +4 -5
- package/types/services/IFilter.d.ts +10 -1
- package/types/services/customModules/facades/ILegacyFacade.d.ts +33 -27
- package/types/services/customModules/facades/services/INavigationFacade.d.ts +7 -0
package/package.json
CHANGED
package/types/common/Table.d.ts
CHANGED
|
@@ -4,4 +4,8 @@ export declare class EventEmitter<E = Record<string, AnyObject>> {
|
|
|
4
4
|
subscribe<T extends keyof E>(code: T, listener: (args: E[T]) => void): () => void;
|
|
5
5
|
unsubscribe<T extends keyof E>(code: T, listener: (args: E[T]) => void): void;
|
|
6
6
|
emit<T extends keyof E>(code: T, args?: E[T]): void;
|
|
7
|
+
getSubscribeController(): {
|
|
8
|
+
subscribe: <T extends keyof E>(code: T, listener: (args: E[T]) => void) => () => void;
|
|
9
|
+
unsubscribe: <T_1 extends keyof E>(code: T_1, listener: (args: E[T_1]) => void) => void;
|
|
10
|
+
};
|
|
7
11
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { ViewElement } from "./types";
|
|
2
|
+
export declare type FormattedTextType = "text" | "markdown" | "view";
|
|
2
3
|
export declare type FormattedText = string | {
|
|
3
|
-
|
|
4
|
+
content: string | ViewElement[];
|
|
4
5
|
type: FormattedTextType;
|
|
5
6
|
};
|
|
6
|
-
export declare function getTextContent(text: FormattedText): string;
|
|
7
|
+
export declare function getTextContent(text: FormattedText): string | ViewElement[];
|
|
7
8
|
export declare function getFormattedTextType(text: FormattedText): FormattedTextType;
|
|
8
|
-
export declare function getTranslatedFormattedText(text: FormattedText, translateFn: (text: string) => string): FormattedText;
|
|
9
|
-
export {};
|
|
@@ -31,7 +31,8 @@ export interface IFilterItem {
|
|
|
31
31
|
not?: boolean;
|
|
32
32
|
cast?: "date";
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
declare const filterInOp = "in";
|
|
35
|
+
export declare type FilterInOperation = typeof filterInOp;
|
|
35
36
|
/** Фильтр */
|
|
36
37
|
export interface IFilterIn extends Omit<IFilterItem, "op" | "p2"> {
|
|
37
38
|
op: FilterInOperation;
|
|
@@ -42,6 +43,10 @@ export interface IFilterIn extends Omit<IFilterItem, "op" | "p2"> {
|
|
|
42
43
|
args?: any;
|
|
43
44
|
} | (string | Date)[];
|
|
44
45
|
}
|
|
46
|
+
export interface IFilterQueryIn extends Omit<IFilterIn, "op" | "p2"> {
|
|
47
|
+
op: FilterInOperation | "queryIn";
|
|
48
|
+
p2: QueryInValue;
|
|
49
|
+
}
|
|
45
50
|
export interface FilterSetterOptions {
|
|
46
51
|
fireEvents?: boolean;
|
|
47
52
|
}
|
|
@@ -303,7 +308,11 @@ export declare class Filter {
|
|
|
303
308
|
static queryIn(field: any, table: any, subField: any, filter?: any, args?: any): IFilterIn;
|
|
304
309
|
static cast(filter: any, cast: any): IFilter;
|
|
305
310
|
static equalTemplate(p1: any, p2: any): IFilter;
|
|
311
|
+
static isFilter(filter: unknown): filter is IFilter;
|
|
306
312
|
static isFilterGroup(filter: IFilter): filter is IFilterGroup;
|
|
307
313
|
static isFilterItem(filter: IFilter): filter is IFilterItem;
|
|
314
|
+
static isFilterIn(filter: IFilter): filter is IFilterIn;
|
|
315
|
+
static isFilterQueryIn(filter: IFilter): filter is IFilterQueryIn;
|
|
308
316
|
static getP2(filter: IFilter): string | number | QueryInValue | Date;
|
|
309
317
|
}
|
|
318
|
+
export {};
|
|
@@ -51,39 +51,13 @@ export interface ILegacyFacade {
|
|
|
51
51
|
FkPanels: any;
|
|
52
52
|
FramePage: any;
|
|
53
53
|
PageZones: any;
|
|
54
|
-
modules:
|
|
55
|
-
pbi: {
|
|
56
|
-
PbiFrameCtrl: any;
|
|
57
|
-
};
|
|
58
|
-
etl: {
|
|
59
|
-
FormValueManager: any;
|
|
60
|
-
EtlPanel: any;
|
|
61
|
-
};
|
|
62
|
-
mapping: {
|
|
63
|
-
MappingListExtender: any;
|
|
64
|
-
MappingManager: any;
|
|
65
|
-
MappingManagerInstance: any;
|
|
66
|
-
};
|
|
67
|
-
admin: {
|
|
68
|
-
DesignerHelper: any;
|
|
69
|
-
};
|
|
70
|
-
binding: {
|
|
71
|
-
UnbindingForm: any;
|
|
72
|
-
};
|
|
73
|
-
status: {
|
|
74
|
-
StatusButton: any;
|
|
75
|
-
StatusManager: any;
|
|
76
|
-
statusSchema: any;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
54
|
+
modules: ModulesLegacyFacade;
|
|
79
55
|
pageConfig: any;
|
|
80
56
|
view: any;
|
|
81
57
|
NavigationControlManager: any;
|
|
82
58
|
NavigationControlManagerInstance: any;
|
|
83
59
|
messages: any;
|
|
84
60
|
registerForm: any;
|
|
85
|
-
HelpManagerInstance: any;
|
|
86
|
-
JobHelper: any;
|
|
87
61
|
components: any;
|
|
88
62
|
FieldControlManagerInstance: any;
|
|
89
63
|
ServerMessageCtrl: any;
|
|
@@ -127,3 +101,35 @@ export interface ILegacyFacade {
|
|
|
127
101
|
TextFieldCtrl: any;
|
|
128
102
|
QuickFilterPipelines: any;
|
|
129
103
|
}
|
|
104
|
+
export interface ModulesLegacyFacade {
|
|
105
|
+
pbi?: {
|
|
106
|
+
PbiFrameCtrl: any;
|
|
107
|
+
};
|
|
108
|
+
etl?: {
|
|
109
|
+
FormValueManager: any;
|
|
110
|
+
EtlPanel: any;
|
|
111
|
+
};
|
|
112
|
+
mapping?: {
|
|
113
|
+
MappingListExtender: any;
|
|
114
|
+
MappingManager: any;
|
|
115
|
+
MappingManagerInstance: any;
|
|
116
|
+
};
|
|
117
|
+
admin?: {
|
|
118
|
+
DesignerHelper: any;
|
|
119
|
+
};
|
|
120
|
+
binding?: {
|
|
121
|
+
UnbindingForm: any;
|
|
122
|
+
};
|
|
123
|
+
status?: {
|
|
124
|
+
StatusButton: any;
|
|
125
|
+
StatusManager: any;
|
|
126
|
+
statusSchema: any;
|
|
127
|
+
};
|
|
128
|
+
help?: {
|
|
129
|
+
HelpManagerInstance: any;
|
|
130
|
+
};
|
|
131
|
+
job?: {
|
|
132
|
+
JobHelper: any;
|
|
133
|
+
};
|
|
134
|
+
ExportApiAccessor?: any;
|
|
135
|
+
}
|
|
@@ -19,6 +19,13 @@ export interface INavigationFacade {
|
|
|
19
19
|
* Используется в случае, если условия отображения узлов навигации изменились.
|
|
20
20
|
*/
|
|
21
21
|
clearViewCache: () => void;
|
|
22
|
+
/**
|
|
23
|
+
* Подписаться на событие перехода по узлу навигации
|
|
24
|
+
*/
|
|
25
|
+
onNavigated: (listener: (args: {
|
|
26
|
+
node: NavigationNodeFacade;
|
|
27
|
+
path: string;
|
|
28
|
+
}) => void) => void;
|
|
22
29
|
}
|
|
23
30
|
export interface CustomNavNode {
|
|
24
31
|
/** Код узла */
|