@ws-ui/shared 1.1.1 → 1.5.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/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ws-ui/shared",
3
3
  "private": false,
4
- "version": "1.1.1",
4
+ "version": "1.5.1",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.es.js",
@@ -94,6 +94,10 @@ export declare enum FileFolderType {
94
94
  * Represent the http handler
95
95
  */
96
96
  HTTP_HANDLERS = "http-handlers",
97
+ /**
98
+ * Represent the data models file
99
+ */
100
+ LOCALIZATION = "localization",
97
101
  /**
98
102
  * Represent the data models file
99
103
  */
@@ -4,6 +4,6 @@ export interface ICodeEditorConfig {
4
4
  }
5
5
  export type TEditorConfig = Partial<ICodeEditorConfig>;
6
6
  export interface IEditor {
7
- key: 'editors:roles' | 'editors:webforms' | 'editors:code' | 'editors:code:method' | 'editors:unknown' | 'editors:debugger' | 'editors:img' | 'editors:model' | 'editors:settings' | 'editors:reports' | 'editors:http-handlers';
7
+ key: 'editors:roles' | 'editors:webforms' | 'editors:code' | 'editors:code:method' | 'editors:unknown' | 'editors:debugger' | 'editors:img' | 'editors:model' | 'editors:settings' | 'editors:reports' | 'editors:http-handlers' | 'editors:localization';
8
8
  config?: TEditorConfig;
9
9
  }
@@ -1,4 +1,4 @@
1
- export declare function getDatasourceId(def?: Pick<datasources.ICreateDataSource, 'id' | 'namespace'>): any;
1
+ export declare function getDatasourceId(def?: Pick<datasources.ICreateDataSource, 'id' | 'namespace'>): string;
2
2
  /**
3
3
  * checks if the attribute is a simple attribute.
4
4
  *
@@ -55,3 +55,4 @@ export declare const _isArrayDatasource: (datasource: datasources.DataSource) =>
55
55
  export declare const _isObjectDatasource: (datasource: datasources.DataSource) => boolean;
56
56
  export declare const isDateDatasource: (datasource: datasources.DataSource) => boolean;
57
57
  export declare function loadDS(): Promise<void>;
58
+ export declare function loadI18n(): Promise<void>;
@@ -4,6 +4,7 @@ export declare const ROLES_TAB_PATH = "roles.json";
4
4
  export declare const SETTINGS_TAB_PATH = "qodlyApp.json";
5
5
  export declare const MODEL_TAB_PATH = "model.4DModel";
6
6
  export declare const HTTP_HANDLERS_PATH = "HTTPHandlers.json";
7
+ export declare const LOCALIZATION_PATH = "Localization/i18n";
7
8
  export declare function getTypeFromExtension(path: string): FileFolderTypeWithContent;
8
9
  export declare function getFileExtentionFromType(type: string, qodly?: boolean): "" | "WebForm" | "4dm" | "4qs" | "QoDoc" | "MForm";
9
10
  export declare function extractWebformName(path: string, fallbackName?: string): string;
@@ -2,7 +2,8 @@ import { Subject } from 'rxjs';
2
2
  import { ToastCustomIcon, IMultilineMessage, ToastKind } from '../components/Toast';
3
3
 
4
4
  export declare enum WebformActions {
5
- RELOAD = "reload"
5
+ RELOAD = "reload",
6
+ RECOMPUTE = "recompute"
6
7
  }
7
8
  export declare enum DatasourcesActions {
8
9
  RENAME = "rename",
@@ -94,3 +95,21 @@ export declare const debuggerSubject: Subject<{
94
95
  action: DebuggerActions;
95
96
  payload?: any;
96
97
  }>;
98
+ type TTaskType = 'i18n';
99
+ export interface ITaskPayload {
100
+ name?: string;
101
+ date?: string;
102
+ duration?: number;
103
+ progress?: number;
104
+ status?: 'ongoing' | 'finished' | 'canceled' | 'error';
105
+ time?: string;
106
+ errorMessage?: string;
107
+ }
108
+ export interface ISingleTask {
109
+ id: string;
110
+ type: TTaskType;
111
+ action: 'add' | 'update' | 'cancel' | 'error';
112
+ payload: ITaskPayload;
113
+ }
114
+ export declare const tasksManagerSubject: Subject<ISingleTask>;
115
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ws-ui/shared",
3
3
  "private": false,
4
- "version": "1.1.1",
4
+ "version": "1.5.1",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.es.js",