@ws-ui/shared 0.2.9 → 0.2.10-rc.0

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.
@@ -68,6 +68,10 @@ module.exports = {
68
68
  800: '#925FBE',
69
69
  900: '#BB0BD1',
70
70
  },
71
+ negative: {
72
+ 200: '#F9BABA',
73
+ 400: '#C54242',
74
+ },
71
75
  },
72
76
  fontFamily: {
73
77
  'open-sans': ['Poppins', 'Open Sans', 'sans-serif'],
@@ -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>;
@@ -1,7 +1,8 @@
1
1
  import { Subject } from 'rxjs';
2
2
  import { ToastCustomIcon, IMultilineMessage, ToastKind } from '../components/Toast';
3
3
  export declare enum WebformActions {
4
- RELOAD = "reload"
4
+ RELOAD = "reload",
5
+ RECOMPUTE = "recompute"
5
6
  }
6
7
  export declare enum DatasourcesActions {
7
8
  RENAME = "rename"
@@ -65,3 +66,20 @@ export declare const debuggerSubject: Subject<{
65
66
  action: DebuggerActions;
66
67
  payload?: any;
67
68
  }>;
69
+ type TTaskType = 'i18n';
70
+ export interface ITaskPayload {
71
+ name?: string;
72
+ date?: string;
73
+ duration?: number;
74
+ progress?: number;
75
+ status?: 'ongoing' | 'finished' | 'canceled' | 'error';
76
+ time?: string;
77
+ }
78
+ export interface ISingleTask {
79
+ id: string;
80
+ type: TTaskType;
81
+ action: 'add' | 'update' | 'cancel' | 'error';
82
+ payload: ITaskPayload;
83
+ }
84
+ export declare const tasksManagerSubject: Subject<ISingleTask>;
85
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ws-ui/shared",
3
3
  "private": false,
4
- "version": "0.2.9",
4
+ "version": "0.2.10-rc.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.es.js",