@zeedhi/common 1.108.0 → 1.109.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/common",
3
- "version": "1.108.0",
3
+ "version": "1.109.0",
4
4
  "description": "Zeedhi Common",
5
5
  "author": "Zeedhi <zeedhi@teknisa.com>",
6
6
  "license": "ISC",
@@ -43,5 +43,5 @@
43
43
  "lodash.times": "4.3.*",
44
44
  "mockdate": "3.0.*"
45
45
  },
46
- "gitHead": "fec5423500f173adcfc49a1c27c5ad0bd6d624ee"
46
+ "gitHead": "1f4ffbc7dac5b71cff4065c5956921405a362085"
47
47
  }
@@ -1,14 +1,14 @@
1
- import scss from 'rollup-plugin-scss';
2
-
3
- export default {
4
- input: './src/styles/index.scss',
5
- output: {
6
- format: 'esm',
7
- },
8
- plugins: [
9
- scss({
10
- output: 'dist/style.css',
11
- outputStyle: 'compressed',
12
- }),
13
- ],
14
- };
1
+ import scss from 'rollup-plugin-scss';
2
+
3
+ export default {
4
+ input: './src/styles/index.scss',
5
+ output: {
6
+ format: 'esm',
7
+ },
8
+ plugins: [
9
+ scss({
10
+ output: 'dist/style.css',
11
+ outputStyle: 'compressed',
12
+ }),
13
+ ],
14
+ };
@@ -1,9 +1,9 @@
1
- {
2
- // extend your base config so you don't have to redefine your compilerOptions
3
- "extends": "./tsconfig.json",
4
- "include": [
5
- "./src/**/*.ts",
6
- "./tests/**/*.ts",
7
- ],
8
- "exclude": ["node_modules"]
1
+ {
2
+ // extend your base config so you don't have to redefine your compilerOptions
3
+ "extends": "./tsconfig.json",
4
+ "include": [
5
+ "./src/**/*.ts",
6
+ "./tests/**/*.ts",
7
+ ],
8
+ "exclude": ["node_modules"]
9
9
  }
@@ -115,10 +115,7 @@ export declare class Form extends ComponentRender implements IForm {
115
115
  name: string;
116
116
  parent?: import("..").Component | undefined;
117
117
  tabStop?: boolean | undefined;
118
- userProperties?: IDictionary<any> | undefined; /**
119
- * Applies the justify-content css property.
120
- * Available options are start, center, end, space-between and space-around.
121
- */
118
+ userProperties?: IDictionary<any> | undefined;
122
119
  }[];
123
120
  /**
124
121
  * Grid system for each child.
@@ -44,8 +44,9 @@ export declare class Iterable extends ComponentRender implements IIterable {
44
44
  * Defines if searchIn should consider only visible columns or not
45
45
  */
46
46
  searchVisibleOnly: boolean;
47
- searchIn: string | undefined;
48
47
  defaultSearchVisibleOnly: boolean;
48
+ private controller?;
49
+ private searchInValue?;
49
50
  /**
50
51
  * Creates a new Iterable.
51
52
  * @param props Iterable properties
@@ -54,6 +55,8 @@ export declare class Iterable extends ComponentRender implements IIterable {
54
55
  protected getDatasourceDefaults(): {};
55
56
  protected initializeDatasource(props: IIterable): void;
56
57
  protected createController(): void;
58
+ get searchIn(): string | undefined;
59
+ set searchIn(value: string | undefined);
57
60
  /**
58
61
  * Retrieves columns instances
59
62
  * @param columns Columns property
@@ -1,25 +1,36 @@
1
1
  import { INumber } from './interfaces';
2
2
  import { TextInput } from '../zd-text-input/text-input';
3
+ export declare type AutoNumericObj = {
4
+ rawValue: string;
5
+ update(mask: any): any;
6
+ clear(): any;
7
+ setValue(value: number): any;
8
+ remove(): any;
9
+ };
3
10
  /**
4
11
  * Base class for Number component
5
12
  */
6
13
  export declare class Number extends TextInput implements INumber {
7
- mask: any;
8
14
  protected defaultMask: any;
9
15
  align: string;
10
16
  /**
11
17
  * AutoNumeric object
12
18
  */
13
- autoNumericObj: any;
19
+ autoNumericObj: AutoNumericObj;
14
20
  private formattedValue?;
15
21
  private localValue?;
16
22
  protected formatterFn: Function;
17
23
  protected parserFn: Function;
18
24
  private maskValid;
25
+ private internalMask;
19
26
  /**
20
27
  * Creates a new number input
21
28
  */
22
29
  constructor(props: INumber);
30
+ /**
31
+ * Merges two masks
32
+ */
33
+ private mergeMasks;
23
34
  validateMask(): void;
24
35
  get value(): any;
25
36
  set value(value: any);
@@ -28,6 +39,12 @@ export declare class Number extends TextInput implements INumber {
28
39
  */
29
40
  get displayValue(): any;
30
41
  set displayValue(value: any);
42
+ /**
43
+ * initializes a mask proxy to call update when the mask is changed
44
+ */
45
+ private initializeMaskProxy;
46
+ get mask(): any;
47
+ set mask(value: any);
31
48
  /**
32
49
  * Retrieves a formatted value with mask
33
50
  * @param value Any value
@@ -0,0 +1,12 @@
1
+ export interface IJSONObject {
2
+ path: string;
3
+ }
4
+ export declare class JsonCacheService {
5
+ /**
6
+ * jsons collection
7
+ */
8
+ static jsonCollection: IJSONObject[];
9
+ static saveJSONCache(jsonCollection: IJSONObject[]): Promise<void>;
10
+ static getJSONCache(path: string): any;
11
+ static clearJSONCache(jsonCollection: IJSONObject[]): void;
12
+ }