@zeedhi/common 1.87.0 → 1.87.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.
@@ -8782,6 +8782,7 @@ class Menu extends ComponentRender {
8782
8782
  this.searchValue = '';
8783
8783
  /** Store the current item focused */
8784
8784
  this.currentItem = null;
8785
+ this.cache = false;
8785
8786
  this.app = this.getInitValue('app', props.app, this.app);
8786
8787
  this.absolute = this.getInitValue('absolute', props.absolute, this.absolute);
8787
8788
  this.clipped = this.getInitValue('clipped', props.clipped, this.clipped);
@@ -8800,6 +8801,7 @@ class Menu extends ComponentRender {
8800
8801
  this.closeToMini = this.getInitValue('closeToMini', props.closeToMini, this.closeToMini);
8801
8802
  this.showSearch = this.getInitValue('showSearch', props.showSearch, this.showSearch);
8802
8803
  this.width = this.getInitValue('width', props.width, this.width);
8804
+ this.cache = this.getInitValue('cache', props.cache, this.cache);
8803
8805
  this.mobileBreakpoint = this.getInitValue('mobileBreakpoint', props.mobileBreakpoint, this.mobileBreakpoint);
8804
8806
  this.drawer = window.innerWidth > this.mobileBreakpoint;
8805
8807
  this.openedInitialValue = this.getInitValue('opened', props.opened, this.opened);
@@ -8862,7 +8864,7 @@ class Menu extends ComponentRender {
8862
8864
  */
8863
8865
  loadMetadata(url) {
8864
8866
  return __awaiter(this, void 0, void 0, function* () {
8865
- this.items = (yield Metadata.get(url, Boolean(this.isLocal)));
8867
+ this.items = (yield Metadata.get(url, Boolean(this.isLocal), this.cache));
8866
8868
  });
8867
8869
  }
8868
8870
  /**
@@ -8789,6 +8789,7 @@
8789
8789
  this.searchValue = '';
8790
8790
  /** Store the current item focused */
8791
8791
  this.currentItem = null;
8792
+ this.cache = false;
8792
8793
  this.app = this.getInitValue('app', props.app, this.app);
8793
8794
  this.absolute = this.getInitValue('absolute', props.absolute, this.absolute);
8794
8795
  this.clipped = this.getInitValue('clipped', props.clipped, this.clipped);
@@ -8807,6 +8808,7 @@
8807
8808
  this.closeToMini = this.getInitValue('closeToMini', props.closeToMini, this.closeToMini);
8808
8809
  this.showSearch = this.getInitValue('showSearch', props.showSearch, this.showSearch);
8809
8810
  this.width = this.getInitValue('width', props.width, this.width);
8811
+ this.cache = this.getInitValue('cache', props.cache, this.cache);
8810
8812
  this.mobileBreakpoint = this.getInitValue('mobileBreakpoint', props.mobileBreakpoint, this.mobileBreakpoint);
8811
8813
  this.drawer = window.innerWidth > this.mobileBreakpoint;
8812
8814
  this.openedInitialValue = this.getInitValue('opened', props.opened, this.opened);
@@ -8869,7 +8871,7 @@
8869
8871
  */
8870
8872
  loadMetadata(url) {
8871
8873
  return __awaiter(this, void 0, void 0, function* () {
8872
- this.items = (yield core.Metadata.get(url, Boolean(this.isLocal)));
8874
+ this.items = (yield core.Metadata.get(url, Boolean(this.isLocal), this.cache));
8873
8875
  });
8874
8876
  }
8875
8877
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/common",
3
- "version": "1.87.0",
3
+ "version": "1.87.1",
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": "528e43ff67f44973feb379818ae80f0c8c02a379"
46
+ "gitHead": "52e489cc86beba6f24fc8120e8ea641edc9d7cdf"
47
47
  }
@@ -26,6 +26,7 @@ export interface IMenu extends IComponentRender {
26
26
  topSlot?: IComponentRender[];
27
27
  width?: number | string;
28
28
  mobileBreakpoint?: number | string;
29
+ cache?: boolean;
29
30
  }
30
31
  /**
31
32
  * Interface for menu itens
@@ -117,6 +117,7 @@ export declare class Menu extends ComponentRender implements IMenu {
117
117
  private searchValue;
118
118
  /** Store the current item focused */
119
119
  currentItem: IMenuItem | null;
120
+ cache?: boolean;
120
121
  /**
121
122
  * Creates a new Menu.
122
123
  * @param props Menu properties