@ws-ui/shared 0.0.46 → 0.0.48

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.
@@ -160,7 +160,7 @@ declare namespace datasources {
160
160
  addAttribute(attname: string, subfilter?: any): void;
161
161
  mergeWith(mergeWith: { filter: any }): void;
162
162
  addFilterText(filterText: string, newprop: string): string;
163
- buildString(curpath: string): String;
163
+ buildString(curpath: string): string;
164
164
  }
165
165
 
166
166
  interface IDSChildren {
@@ -1,10 +1,10 @@
1
1
  declare namespace datasources {
2
2
  class RestError extends Error {
3
3
  constructor(
4
- public message: string,
5
- public status: number,
6
- public statusText?: string,
7
- public errCode?: number | string,
4
+ message: string,
5
+ status: number,
6
+ statusText?: string,
7
+ errCode?: number | string,
8
8
  );
9
9
 
10
10
  getDescription(): string;
@@ -13,6 +13,6 @@ declare namespace datasources {
13
13
  function restRequest<T>(
14
14
  command: HttpMethod,
15
15
  url: string,
16
- body: any,
16
+ body: unknown,
17
17
  ): Promise<T>;
18
18
  }
@@ -1,7 +1,9 @@
1
- declare var DataSource: typeof datasources.DataSource;
2
- declare var Method4D: typeof datasources.Method4D;
3
- declare var restRequest: typeof datasources.restRequest;
4
- declare var Utils: typeof datasources.Utils;
5
- declare var $$datastores: {
6
- [dsName: string]: datasources.DataStore;
7
- };
1
+ interface Window {
2
+ DataSource: typeof datasources.DataSource;
3
+ Method4D: typeof datasources.Method4D;
4
+ restRequest: typeof datasources.restRequest;
5
+ Utils: typeof datasources.Utils;
6
+ $$datastores: {
7
+ [dsName: string]: datasources.DataStore;
8
+ };
9
+ }
@@ -152,15 +152,15 @@ declare namespace webforms {
152
152
  type: 'method';
153
153
  params: MethodParam[];
154
154
  } & Partial<{
155
- method: string;
156
- dataclass: string;
157
- returns: Omit<MethodParam, 'id'>;
158
- namespace: string;
159
- code: string;
160
- feedback: boolean;
161
- datasource: string;
162
- variadicType: string;
163
- }>
155
+ method: string;
156
+ dataclass: string;
157
+ returns: Omit<MethodParam, 'id'>;
158
+ namespace: string;
159
+ code: string;
160
+ feedback: boolean;
161
+ datasource: string;
162
+ variadicType: string;
163
+ }>;
164
164
 
165
165
  interface SimpleActionEvent extends BaseEvent {
166
166
  type: 'simple-action';
@@ -173,6 +173,10 @@ declare namespace webforms {
173
173
  target?: string;
174
174
  targetNamespace?: string;
175
175
  targetType?: string;
176
+ set?: {
177
+ value?: string;
178
+ type?: string;
179
+ };
176
180
  };
177
181
  action: string;
178
182
  query?: QueryString;
@@ -195,6 +199,7 @@ declare namespace webforms {
195
199
  loader: string;
196
200
  target: string;
197
201
  externalLink: boolean;
202
+ isHardCoded?: boolean;
198
203
  }
199
204
 
200
205
  interface EventMeta {