@zeedhi/common 1.103.1 → 1.104.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.
@@ -2393,7 +2393,7 @@ class CodeEditor extends ComponentRender {
2393
2393
  * Icon to be shown on copy action
2394
2394
  */
2395
2395
  this.copyIcon = 'content-copy';
2396
- this.tooltipText = I18n.instance.t('Copy');
2396
+ this.tooltipText = I18n.instance.t('COPY');
2397
2397
  this.code = '';
2398
2398
  this.staticCodeValue = '';
2399
2399
  this.staticCode = this.getInitValue('staticCode', props.staticCode, this.staticCodeValue);
@@ -2485,8 +2485,8 @@ class CodeEditor extends ComponentRender {
2485
2485
  });
2486
2486
  }
2487
2487
  changeTooltipText() {
2488
- this.tooltipText = I18n.instance.t('Copied!');
2489
- setTimeout(() => { this.tooltipText = I18n.instance.t('Copy'); }, 2000);
2488
+ this.tooltipText = I18n.instance.t('COPIED');
2489
+ setTimeout(() => { this.tooltipText = I18n.instance.t('COPY'); }, 2000);
2490
2490
  }
2491
2491
  /**
2492
2492
  * Get the code highlighted
@@ -6211,8 +6211,9 @@ class Grid extends Iterable {
6211
6211
  this.selectAllPages = this.getInitValue('selectAllPages', props.selectAllPages, this.selectAllPages);
6212
6212
  this.cellSelection = this.getInitValue('cellSelection', props.cellSelection, this.cellSelection);
6213
6213
  this.backgroundColor = this.getInitValue('backgroundColor', props.backgroundColor, this.backgroundColor);
6214
- // headerBackground defaults to the backgroundColor
6215
- this.headerBackground = this.getInitValue('headerBackground', props.headerBackground, this.backgroundColor);
6214
+ // headerBackground defaults to the backgroundColor, unless backgroundColor is transparent
6215
+ const defaultHeaderBackground = this.backgroundColor === 'transparent' ? '' : this.backgroundColor;
6216
+ this.headerBackground = this.getInitValue('headerBackground', props.headerBackground, defaultHeaderBackground);
6216
6217
  this.createAccessors();
6217
6218
  }
6218
6219
  setViewNavigate(viewNavigate) {
@@ -2400,7 +2400,7 @@
2400
2400
  * Icon to be shown on copy action
2401
2401
  */
2402
2402
  this.copyIcon = 'content-copy';
2403
- this.tooltipText = core.I18n.instance.t('Copy');
2403
+ this.tooltipText = core.I18n.instance.t('COPY');
2404
2404
  this.code = '';
2405
2405
  this.staticCodeValue = '';
2406
2406
  this.staticCode = this.getInitValue('staticCode', props.staticCode, this.staticCodeValue);
@@ -2492,8 +2492,8 @@
2492
2492
  });
2493
2493
  }
2494
2494
  changeTooltipText() {
2495
- this.tooltipText = core.I18n.instance.t('Copied!');
2496
- setTimeout(() => { this.tooltipText = core.I18n.instance.t('Copy'); }, 2000);
2495
+ this.tooltipText = core.I18n.instance.t('COPIED');
2496
+ setTimeout(() => { this.tooltipText = core.I18n.instance.t('COPY'); }, 2000);
2497
2497
  }
2498
2498
  /**
2499
2499
  * Get the code highlighted
@@ -6218,8 +6218,9 @@
6218
6218
  this.selectAllPages = this.getInitValue('selectAllPages', props.selectAllPages, this.selectAllPages);
6219
6219
  this.cellSelection = this.getInitValue('cellSelection', props.cellSelection, this.cellSelection);
6220
6220
  this.backgroundColor = this.getInitValue('backgroundColor', props.backgroundColor, this.backgroundColor);
6221
- // headerBackground defaults to the backgroundColor
6222
- this.headerBackground = this.getInitValue('headerBackground', props.headerBackground, this.backgroundColor);
6221
+ // headerBackground defaults to the backgroundColor, unless backgroundColor is transparent
6222
+ const defaultHeaderBackground = this.backgroundColor === 'transparent' ? '' : this.backgroundColor;
6223
+ this.headerBackground = this.getInitValue('headerBackground', props.headerBackground, defaultHeaderBackground);
6223
6224
  this.createAccessors();
6224
6225
  }
6225
6226
  setViewNavigate(viewNavigate) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/common",
3
- "version": "1.103.1",
3
+ "version": "1.104.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": "c3a10b3862908656de2f2de1e1eaeb556a70627e"
46
+ "gitHead": "7d5f6ddbcabc8c6b93629ab72b178d48a400f906"
47
47
  }
@@ -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
+ }