@ws-ui/shared 1.11.3-rc1 → 1.11.3
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/dist/components/Tooltip.d.ts +3 -7
- package/dist/components/index.d.ts +0 -1
- package/dist/declarations/datasources/datasource.d.ts +393 -393
- package/dist/declarations/datasources/methods.d.ts +96 -96
- package/dist/declarations/index.d.ts +11 -11
- package/dist/declarations/webform/webform.d.ts +289 -289
- package/dist/index.cjs.js +93 -93
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +7762 -8392
- package/dist/index.es.js.map +1 -1
- package/dist/services/api.d.ts +2 -2
- package/dist/shared.css +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/modal.d.ts +0 -7
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/shared-datasources.d.ts +7 -0
- package/package.json +2 -2
- package/dist/components/ToolbarIcon/index.d.ts +0 -2
- package/dist/components/ToolbarIcon/interfaces.d.ts +0 -21
- package/dist/types/roles.d.ts +0 -111
- package/dist/utils/roles.d.ts +0 -54
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
declare namespace datasources {
|
|
2
|
-
interface IComponentAction {
|
|
3
|
-
[actionName: string]: {
|
|
4
|
-
stamp: number;
|
|
5
|
-
value: any;
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type TStateAction = 'add' | 'remove';
|
|
10
|
-
|
|
11
|
-
type ServerSideResponse = {
|
|
12
|
-
[refName: string]: datasources.IComponentAction;
|
|
13
|
-
} & {
|
|
14
|
-
__NOTIFICATION?: { message: string; type: string };
|
|
15
|
-
__STATES?: { [stateName: string]: datasources.TStateAction };
|
|
16
|
-
__PRIVILEGES?: { stamp: number };
|
|
17
|
-
__ERROR?: {
|
|
18
|
-
message: string;
|
|
19
|
-
componentSignature?: string;
|
|
20
|
-
errCode?: number;
|
|
21
|
-
}[];
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
class Utils {
|
|
25
|
-
static formatValue(value: number | string | Date, format: string): string;
|
|
26
|
-
static formatString(value: string, format: string): string;
|
|
27
|
-
static formatDuration(value: number): string;
|
|
28
|
-
static convertAs(dataType: string, value: string);
|
|
29
|
-
static stringToNumber(value: string): string;
|
|
30
|
-
static entityKeyToJSON(key: string): string;
|
|
31
|
-
static initFramework(): Promise<void>;
|
|
32
|
-
static padNumber(num: string | number): string;
|
|
33
|
-
}
|
|
34
|
-
class Method4D {
|
|
35
|
-
acceptedEvents: {
|
|
36
|
-
[event: string]: boolean;
|
|
37
|
-
};
|
|
38
|
-
constructor(
|
|
39
|
-
methodName: string,
|
|
40
|
-
resultSource: datasources.DataSource,
|
|
41
|
-
paramSources: datasources.DataSource[],
|
|
42
|
-
owenerSource: datasources.DataSource | null,
|
|
43
|
-
);
|
|
44
|
-
static buildMethod(
|
|
45
|
-
component: {
|
|
46
|
-
methodName: string;
|
|
47
|
-
resultingDataSource: Partial<{
|
|
48
|
-
id: string;
|
|
49
|
-
namespace: string;
|
|
50
|
-
}>;
|
|
51
|
-
parameters: {
|
|
52
|
-
name: string;
|
|
53
|
-
namespace?: string;
|
|
54
|
-
isHardCoded?: boolean;
|
|
55
|
-
type?: 'date' | 'string' | 'object' | 'array' | 'number' | 'bool';
|
|
56
|
-
}[];
|
|
57
|
-
},
|
|
58
|
-
associatedData: { namespace: string },
|
|
59
|
-
ownerSource: DataSource | null,
|
|
60
|
-
singleton?: string | null,
|
|
61
|
-
): Method4D;
|
|
62
|
-
static buildAction(component: { action: string }): string;
|
|
63
|
-
static buildEvents(component: { eventType: string }): {
|
|
64
|
-
[evName: string]: boolean;
|
|
65
|
-
};
|
|
66
|
-
static validEvent(event: string): boolean;
|
|
67
|
-
static replaceDataSources(
|
|
68
|
-
component: { parameters: any },
|
|
69
|
-
elemSource,
|
|
70
|
-
newid: string,
|
|
71
|
-
);
|
|
72
|
-
callServerSide(
|
|
73
|
-
widget: {
|
|
74
|
-
id?: string;
|
|
75
|
-
serverSideRef?: string;
|
|
76
|
-
},
|
|
77
|
-
callerType: string,
|
|
78
|
-
additionalData?: any,
|
|
79
|
-
addOwnerSourceAsParam?: boolean,
|
|
80
|
-
callFuncUrl?: string,
|
|
81
|
-
isAGet: true,
|
|
82
|
-
): Promise<string>;
|
|
83
|
-
callServerSide(
|
|
84
|
-
widget: {
|
|
85
|
-
id?: string;
|
|
86
|
-
serverSideRef?: string;
|
|
87
|
-
},
|
|
88
|
-
callerType: string,
|
|
89
|
-
additionalData?: any,
|
|
90
|
-
addOwnerSourceAsParam?: boolean,
|
|
91
|
-
callFuncUrl?: string,
|
|
92
|
-
isAGet?: false,
|
|
93
|
-
): Promise<ServerSideResponse>;
|
|
94
|
-
isMemberFunction(): boolean;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
1
|
+
declare namespace datasources {
|
|
2
|
+
interface IComponentAction {
|
|
3
|
+
[actionName: string]: {
|
|
4
|
+
stamp: number;
|
|
5
|
+
value: any;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type TStateAction = 'add' | 'remove';
|
|
10
|
+
|
|
11
|
+
type ServerSideResponse = {
|
|
12
|
+
[refName: string]: datasources.IComponentAction;
|
|
13
|
+
} & {
|
|
14
|
+
__NOTIFICATION?: { message: string; type: string };
|
|
15
|
+
__STATES?: { [stateName: string]: datasources.TStateAction };
|
|
16
|
+
__PRIVILEGES?: { stamp: number };
|
|
17
|
+
__ERROR?: {
|
|
18
|
+
message: string;
|
|
19
|
+
componentSignature?: string;
|
|
20
|
+
errCode?: number;
|
|
21
|
+
}[];
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
class Utils {
|
|
25
|
+
static formatValue(value: number | string | Date, format: string): string;
|
|
26
|
+
static formatString(value: string, format: string): string;
|
|
27
|
+
static formatDuration(value: number): string;
|
|
28
|
+
static convertAs(dataType: string, value: string);
|
|
29
|
+
static stringToNumber(value: string): string;
|
|
30
|
+
static entityKeyToJSON(key: string): string;
|
|
31
|
+
static initFramework(): Promise<void>;
|
|
32
|
+
static padNumber(num: string | number): string;
|
|
33
|
+
}
|
|
34
|
+
class Method4D {
|
|
35
|
+
acceptedEvents: {
|
|
36
|
+
[event: string]: boolean;
|
|
37
|
+
};
|
|
38
|
+
constructor(
|
|
39
|
+
methodName: string,
|
|
40
|
+
resultSource: datasources.DataSource,
|
|
41
|
+
paramSources: datasources.DataSource[],
|
|
42
|
+
owenerSource: datasources.DataSource | null,
|
|
43
|
+
);
|
|
44
|
+
static buildMethod(
|
|
45
|
+
component: {
|
|
46
|
+
methodName: string;
|
|
47
|
+
resultingDataSource: Partial<{
|
|
48
|
+
id: string;
|
|
49
|
+
namespace: string;
|
|
50
|
+
}>;
|
|
51
|
+
parameters: {
|
|
52
|
+
name: string;
|
|
53
|
+
namespace?: string;
|
|
54
|
+
isHardCoded?: boolean;
|
|
55
|
+
type?: 'date' | 'string' | 'object' | 'array' | 'number' | 'bool';
|
|
56
|
+
}[];
|
|
57
|
+
},
|
|
58
|
+
associatedData: { namespace: string },
|
|
59
|
+
ownerSource: DataSource | null,
|
|
60
|
+
singleton?: string | null,
|
|
61
|
+
): Method4D;
|
|
62
|
+
static buildAction(component: { action: string }): string;
|
|
63
|
+
static buildEvents(component: { eventType: string }): {
|
|
64
|
+
[evName: string]: boolean;
|
|
65
|
+
};
|
|
66
|
+
static validEvent(event: string): boolean;
|
|
67
|
+
static replaceDataSources(
|
|
68
|
+
component: { parameters: any },
|
|
69
|
+
elemSource,
|
|
70
|
+
newid: string,
|
|
71
|
+
);
|
|
72
|
+
callServerSide(
|
|
73
|
+
widget: {
|
|
74
|
+
id?: string;
|
|
75
|
+
serverSideRef?: string;
|
|
76
|
+
},
|
|
77
|
+
callerType: string,
|
|
78
|
+
additionalData?: any,
|
|
79
|
+
addOwnerSourceAsParam?: boolean,
|
|
80
|
+
callFuncUrl?: string,
|
|
81
|
+
isAGet: true,
|
|
82
|
+
): Promise<string>;
|
|
83
|
+
callServerSide(
|
|
84
|
+
widget: {
|
|
85
|
+
id?: string;
|
|
86
|
+
serverSideRef?: string;
|
|
87
|
+
},
|
|
88
|
+
callerType: string,
|
|
89
|
+
additionalData?: any,
|
|
90
|
+
addOwnerSourceAsParam?: boolean,
|
|
91
|
+
callFuncUrl?: string,
|
|
92
|
+
isAGet?: false,
|
|
93
|
+
): Promise<ServerSideResponse>;
|
|
94
|
+
isMemberFunction(): boolean;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
interface Window {
|
|
2
|
-
pagesense?: [string, string][];
|
|
3
|
-
DataSource: typeof datasources.DataSource;
|
|
4
|
-
Method4D: typeof datasources.Method4D;
|
|
5
|
-
restRequest: typeof datasources.restRequest;
|
|
6
|
-
Utils: typeof datasources.Utils;
|
|
7
|
-
$$datastores: {
|
|
8
|
-
[dsName: string]: datasources.DataStore;
|
|
9
|
-
};
|
|
10
|
-
$4d: { [key: string]: (...params: any) => void } | undefined;
|
|
11
|
-
}
|
|
1
|
+
interface Window {
|
|
2
|
+
pagesense?: [string, string][];
|
|
3
|
+
DataSource: typeof datasources.DataSource;
|
|
4
|
+
Method4D: typeof datasources.Method4D;
|
|
5
|
+
restRequest: typeof datasources.restRequest;
|
|
6
|
+
Utils: typeof datasources.Utils;
|
|
7
|
+
$$datastores: {
|
|
8
|
+
[dsName: string]: datasources.DataStore;
|
|
9
|
+
};
|
|
10
|
+
$4d: { [key: string]: (...params: any) => void } | undefined;
|
|
11
|
+
}
|