@zeedhi/teknisa-components-common 1.82.0 → 1.83.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.
@@ -991,6 +991,10 @@ class GridBase {
991
991
  this.createFilterFromColumns();
992
992
  }
993
993
  }
994
+ destroyFilterModal() {
995
+ var _a;
996
+ (_a = this.filterModal) === null || _a === void 0 ? void 0 : _a.destroy();
997
+ }
994
998
  createFilterFromColumns() {
995
999
  if (!this.filterModal) {
996
1000
  const originalProps = {
@@ -2496,6 +2500,7 @@ class TekGrid extends GridEditable {
2496
2500
  }
2497
2501
  onBeforeDestroy() {
2498
2502
  super.onBeforeDestroy();
2503
+ this.gridBase.destroyFilterModal();
2499
2504
  KeyMap.unbind(this.keyShortcutKeyMapping, this);
2500
2505
  }
2501
2506
  focusSearchInput() {
@@ -996,6 +996,10 @@
996
996
  this.createFilterFromColumns();
997
997
  }
998
998
  }
999
+ destroyFilterModal() {
1000
+ var _a;
1001
+ (_a = this.filterModal) === null || _a === void 0 ? void 0 : _a.destroy();
1002
+ }
999
1003
  createFilterFromColumns() {
1000
1004
  if (!this.filterModal) {
1001
1005
  const originalProps = {
@@ -2501,6 +2505,7 @@
2501
2505
  }
2502
2506
  onBeforeDestroy() {
2503
2507
  super.onBeforeDestroy();
2508
+ this.gridBase.destroyFilterModal();
2504
2509
  core.KeyMap.unbind(this.keyShortcutKeyMapping, this);
2505
2510
  }
2506
2511
  focusSearchInput() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/teknisa-components-common",
3
- "version": "1.82.0",
3
+ "version": "1.83.0",
4
4
  "description": "Teknisa Components Common",
5
5
  "author": "Zeedhi <zeedhi@teknisa.com>",
6
6
  "license": "ISC",
@@ -31,5 +31,5 @@
31
31
  "peerDependencies": {
32
32
  "@zeedhi/core": "*"
33
33
  },
34
- "gitHead": "65208cfd85deaa60ad04ec03c6f04b6b95d8d214"
34
+ "gitHead": "a4b9ff9f2b1ab2c36addbfafbe5382c2798a6879"
35
35
  }
@@ -1734,6 +1734,8 @@ describe('TekGrid', () => {
1734
1734
  expect(button.isVisible).toBeFalsy();
1735
1735
  (instance as any).gridBase.hideFilterModal();
1736
1736
 
1737
+ instance.onBeforeDestroy();
1738
+
1737
1739
  spy.mockReset();
1738
1740
  spyMetadata.mockReset();
1739
1741
  });
@@ -248,6 +248,7 @@ export declare class GridBase {
248
248
  private cancelChanges;
249
249
  filterClick({ event }: any): void;
250
250
  private filterModal?;
251
+ destroyFilterModal(): void;
251
252
  private createFilterFromColumns;
252
253
  hideFilterModal(): void;
253
254
  private sortFilterIndex;