@ws-ui/shared 0.2.24 → 0.2.25

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/README.md CHANGED
@@ -1,27 +1,27 @@
1
- # React + TypeScript + Vite
2
-
3
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
-
5
- Currently, two official plugins are available:
6
-
7
- - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
-
10
- ## Expanding the ESLint configuration
11
-
12
- If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
13
-
14
- - Configure the top-level `parserOptions` property like this:
15
-
16
- ```js
17
- parserOptions: {
18
- ecmaVersion: 'latest',
19
- sourceType: 'module',
20
- project: ['./tsconfig.json', './tsconfig.node.json'],
21
- tsconfigRootDir: __dirname,
22
- },
23
- ```
24
-
25
- - Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
26
- - Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
27
- - Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
1
+ # React + TypeScript + Vite
2
+
3
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
+
5
+ Currently, two official plugins are available:
6
+
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
+
10
+ ## Expanding the ESLint configuration
11
+
12
+ If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
13
+
14
+ - Configure the top-level `parserOptions` property like this:
15
+
16
+ ```js
17
+ parserOptions: {
18
+ ecmaVersion: 'latest',
19
+ sourceType: 'module',
20
+ project: ['./tsconfig.json', './tsconfig.node.json'],
21
+ tsconfigRootDir: __dirname,
22
+ },
23
+ ```
24
+
25
+ - Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
26
+ - Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
27
+ - Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
@@ -1,26 +1,26 @@
1
- declare namespace datasources {
2
- class EntityCacheEntry<T extends IEntity = IEntity> {
3
- constructor(inTimeStamp: Date, inRawEntry: T, inStamp: number);
4
- GetTimeStamp(): Date;
5
- }
6
-
7
- class EntityCache<T extends IEntity = IEntity> {
8
- fMaxEntities: number;
9
- fTimeOut: number;
10
- fCurStamp: number;
11
- fCache: number;
12
-
13
- getNextStamp(): number;
14
- makeRoomFor(nbEntites: number): void;
15
- clear(nbToClear: number): void;
16
- clearAll(): void;
17
- setEntry(inKey: string, inRawEntry: T, inTimeStamp: Date);
18
- retainEntry(inKey: string, inCacheDelay: number): T;
19
- removeEntry(inKey: string): void;
20
- setMaxEntries(nbentries: number, canReduce: boolean): void;
21
- setTimeOut(inTimeout: number): void;
22
-
23
- static cloneRawEntity(rawEntityDef: T): T;
24
- static getTimeStamp(): Date;
25
- }
26
- }
1
+ declare namespace datasources {
2
+ class EntityCacheEntry<T extends IEntity = IEntity> {
3
+ constructor(inTimeStamp: Date, inRawEntry: T, inStamp: number);
4
+ GetTimeStamp(): Date;
5
+ }
6
+
7
+ class EntityCache<T extends IEntity = IEntity> {
8
+ fMaxEntities: number;
9
+ fTimeOut: number;
10
+ fCurStamp: number;
11
+ fCache: number;
12
+
13
+ getNextStamp(): number;
14
+ makeRoomFor(nbEntites: number): void;
15
+ clear(nbToClear: number): void;
16
+ clearAll(): void;
17
+ setEntry(inKey: string, inRawEntry: T, inTimeStamp: Date);
18
+ retainEntry(inKey: string, inCacheDelay: number): T;
19
+ removeEntry(inKey: string): void;
20
+ setMaxEntries(nbentries: number, canReduce: boolean): void;
21
+ setTimeOut(inTimeout: number): void;
22
+
23
+ static cloneRawEntity(rawEntityDef: T): T;
24
+ static getTimeStamp(): Date;
25
+ }
26
+ }
@@ -1,47 +1,47 @@
1
- declare namespace datasources {
2
- interface IDataClassPrivate<T extends IEntity = IEntity> {
3
- datastore: ICatalog;
4
- className: string;
5
- exposed?: boolean;
6
- attributes: {
7
- [attributeName: string]: IDataClassAttribute;
8
- };
9
- collectionName: string;
10
- cache: EntityCache<T>;
11
- keys: string[];
12
- }
13
-
14
- type IGetEntitySettings = Partial<{
15
- expand: string;
16
- filterAttributes: string;
17
- }>;
18
-
19
- class DataClass<T extends IEntity = IEntity> {
20
- _private: IDataClassPrivate<T>;
21
- constructor(rawDef: IDetailedDataClass, owner: ICatalog);
22
- getName(): string;
23
- getCollectionName(): string;
24
- getDataStore(): ICatalog;
25
- getAttribute(attname: string): IDataClassAttribute | null;
26
- getAllAttributes(): {
27
- [attributeName: string]: IDataClassAttribute;
28
- };
29
- getEntity(primKey: string, settings?: IGetEntitySettings): Promise<T>;
30
- query(
31
- queryStr: string,
32
- settings?: IEntitySelectionSettings,
33
- ): EntitySelection<T>;
34
- getDistinctValues(
35
- attName: string,
36
- maxElems?: number,
37
- queryFilter?: string,
38
- ): Promise<string[]>;
39
- allEntities(settings: IEntitySelectionSettings): EntitySelection<T>;
40
- newEmptySelection(): EntitySelection<T>;
41
- getCacheDelay(): number;
42
- getCache(): EntityCache<T>;
43
- getKeys(): string[];
44
- isExposed(): boolean;
45
- supportJSONEntityKey(): boolean;
46
- }
47
- }
1
+ declare namespace datasources {
2
+ interface IDataClassPrivate<T extends IEntity = IEntity> {
3
+ datastore: ICatalog;
4
+ className: string;
5
+ exposed?: boolean;
6
+ attributes: {
7
+ [attributeName: string]: IDataClassAttribute;
8
+ };
9
+ collectionName: string;
10
+ cache: EntityCache<T>;
11
+ keys: string[];
12
+ }
13
+
14
+ type IGetEntitySettings = Partial<{
15
+ expand: string;
16
+ filterAttributes: string;
17
+ }>;
18
+
19
+ class DataClass<T extends IEntity = IEntity> {
20
+ _private: IDataClassPrivate<T>;
21
+ constructor(rawDef: IDetailedDataClass, owner: ICatalog);
22
+ getName(): string;
23
+ getCollectionName(): string;
24
+ getDataStore(): ICatalog;
25
+ getAttribute(attname: string): IDataClassAttribute | null;
26
+ getAllAttributes(): {
27
+ [attributeName: string]: IDataClassAttribute;
28
+ };
29
+ getEntity(primKey: string, settings?: IGetEntitySettings): Promise<T>;
30
+ query(
31
+ queryStr: string,
32
+ settings?: IEntitySelectionSettings,
33
+ ): EntitySelection<T>;
34
+ getDistinctValues(
35
+ attName: string,
36
+ maxElems?: number,
37
+ queryFilter?: string,
38
+ ): Promise<string[]>;
39
+ allEntities(settings: IEntitySelectionSettings): EntitySelection<T>;
40
+ newEmptySelection(): EntitySelection<T>;
41
+ getCacheDelay(): number;
42
+ getCache(): EntityCache<T>;
43
+ getKeys(): string[];
44
+ isExposed(): boolean;
45
+ supportJSONEntityKey(): boolean;
46
+ }
47
+ }