@syncfusion/ej2-base 22.2.5 → 22.2.9

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 22.2.5
3
+ * version : 22.2.9
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-base@*",
3
- "_id": "@syncfusion/ej2-base@22.1.38",
3
+ "_id": "@syncfusion/ej2-base@22.2.5",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-24JJeNO2ZBDijcXdj6+fHZu+gPTx0E7ltn17G1z6edUNB6/7MiqdBLbS8CnkSzlmS44BjOIwb4++6K6XLBDTeQ==",
5
+ "_integrity": "sha512-XAy0+BN47mnzdLElqyREwEwP3Udg0kKstCvQKufKkt+NBcSY+MHlxiqzFT5x1vLqUizCCUH11ds2DMRpcPBQkg==",
6
6
  "_location": "/@syncfusion/ej2-base",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -19,41 +19,27 @@
19
19
  "_requiredBy": [
20
20
  "/",
21
21
  "/@syncfusion/ej2",
22
- "/@syncfusion/ej2-angular-barcode-generator",
23
22
  "/@syncfusion/ej2-angular-base",
24
23
  "/@syncfusion/ej2-angular-buttons",
25
24
  "/@syncfusion/ej2-angular-calendars",
26
25
  "/@syncfusion/ej2-angular-charts",
27
- "/@syncfusion/ej2-angular-circulargauge",
28
26
  "/@syncfusion/ej2-angular-diagrams",
29
27
  "/@syncfusion/ej2-angular-documenteditor",
30
28
  "/@syncfusion/ej2-angular-dropdowns",
31
- "/@syncfusion/ej2-angular-filemanager",
32
29
  "/@syncfusion/ej2-angular-gantt",
33
30
  "/@syncfusion/ej2-angular-grids",
34
- "/@syncfusion/ej2-angular-heatmap",
35
31
  "/@syncfusion/ej2-angular-image-editor",
36
- "/@syncfusion/ej2-angular-inplace-editor",
37
32
  "/@syncfusion/ej2-angular-inputs",
38
33
  "/@syncfusion/ej2-angular-kanban",
39
34
  "/@syncfusion/ej2-angular-layouts",
40
- "/@syncfusion/ej2-angular-lineargauge",
41
35
  "/@syncfusion/ej2-angular-lists",
42
- "/@syncfusion/ej2-angular-maps",
43
- "/@syncfusion/ej2-angular-navigations",
44
- "/@syncfusion/ej2-angular-notifications",
45
36
  "/@syncfusion/ej2-angular-pdfviewer",
46
37
  "/@syncfusion/ej2-angular-pivotview",
47
38
  "/@syncfusion/ej2-angular-popups",
48
- "/@syncfusion/ej2-angular-progressbar",
49
39
  "/@syncfusion/ej2-angular-querybuilder",
50
- "/@syncfusion/ej2-angular-ribbon",
51
40
  "/@syncfusion/ej2-angular-richtexteditor",
52
- "/@syncfusion/ej2-angular-schedule",
53
- "/@syncfusion/ej2-angular-splitbuttons",
54
41
  "/@syncfusion/ej2-angular-spreadsheet",
55
42
  "/@syncfusion/ej2-angular-treegrid",
56
- "/@syncfusion/ej2-angular-treemap",
57
43
  "/@syncfusion/ej2-barcode-generator",
58
44
  "/@syncfusion/ej2-buttons",
59
45
  "/@syncfusion/ej2-calendars",
@@ -84,41 +70,27 @@
84
70
  "/@syncfusion/ej2-popups",
85
71
  "/@syncfusion/ej2-progressbar",
86
72
  "/@syncfusion/ej2-querybuilder",
87
- "/@syncfusion/ej2-react-barcode-generator",
88
73
  "/@syncfusion/ej2-react-base",
89
74
  "/@syncfusion/ej2-react-buttons",
90
75
  "/@syncfusion/ej2-react-calendars",
91
76
  "/@syncfusion/ej2-react-charts",
92
- "/@syncfusion/ej2-react-circulargauge",
93
77
  "/@syncfusion/ej2-react-diagrams",
94
78
  "/@syncfusion/ej2-react-documenteditor",
95
79
  "/@syncfusion/ej2-react-dropdowns",
96
- "/@syncfusion/ej2-react-filemanager",
97
80
  "/@syncfusion/ej2-react-gantt",
98
81
  "/@syncfusion/ej2-react-grids",
99
- "/@syncfusion/ej2-react-heatmap",
100
82
  "/@syncfusion/ej2-react-image-editor",
101
- "/@syncfusion/ej2-react-inplace-editor",
102
83
  "/@syncfusion/ej2-react-inputs",
103
84
  "/@syncfusion/ej2-react-kanban",
104
85
  "/@syncfusion/ej2-react-layouts",
105
- "/@syncfusion/ej2-react-lineargauge",
106
86
  "/@syncfusion/ej2-react-lists",
107
- "/@syncfusion/ej2-react-maps",
108
- "/@syncfusion/ej2-react-navigations",
109
- "/@syncfusion/ej2-react-notifications",
110
87
  "/@syncfusion/ej2-react-pdfviewer",
111
88
  "/@syncfusion/ej2-react-pivotview",
112
89
  "/@syncfusion/ej2-react-popups",
113
- "/@syncfusion/ej2-react-progressbar",
114
90
  "/@syncfusion/ej2-react-querybuilder",
115
- "/@syncfusion/ej2-react-ribbon",
116
91
  "/@syncfusion/ej2-react-richtexteditor",
117
- "/@syncfusion/ej2-react-schedule",
118
- "/@syncfusion/ej2-react-splitbuttons",
119
92
  "/@syncfusion/ej2-react-spreadsheet",
120
93
  "/@syncfusion/ej2-react-treegrid",
121
- "/@syncfusion/ej2-react-treemap",
122
94
  "/@syncfusion/ej2-ribbon",
123
95
  "/@syncfusion/ej2-richtexteditor",
124
96
  "/@syncfusion/ej2-schedule",
@@ -127,44 +99,30 @@
127
99
  "/@syncfusion/ej2-svg-base",
128
100
  "/@syncfusion/ej2-treegrid",
129
101
  "/@syncfusion/ej2-treemap",
130
- "/@syncfusion/ej2-vue-barcode-generator",
131
102
  "/@syncfusion/ej2-vue-base",
132
103
  "/@syncfusion/ej2-vue-buttons",
133
104
  "/@syncfusion/ej2-vue-calendars",
134
105
  "/@syncfusion/ej2-vue-charts",
135
- "/@syncfusion/ej2-vue-circulargauge",
136
106
  "/@syncfusion/ej2-vue-diagrams",
137
107
  "/@syncfusion/ej2-vue-documenteditor",
138
108
  "/@syncfusion/ej2-vue-dropdowns",
139
- "/@syncfusion/ej2-vue-filemanager",
140
109
  "/@syncfusion/ej2-vue-gantt",
141
110
  "/@syncfusion/ej2-vue-grids",
142
- "/@syncfusion/ej2-vue-heatmap",
143
111
  "/@syncfusion/ej2-vue-image-editor",
144
- "/@syncfusion/ej2-vue-inplace-editor",
145
112
  "/@syncfusion/ej2-vue-inputs",
146
113
  "/@syncfusion/ej2-vue-kanban",
147
114
  "/@syncfusion/ej2-vue-layouts",
148
- "/@syncfusion/ej2-vue-lineargauge",
149
115
  "/@syncfusion/ej2-vue-lists",
150
- "/@syncfusion/ej2-vue-maps",
151
- "/@syncfusion/ej2-vue-navigations",
152
- "/@syncfusion/ej2-vue-notifications",
153
116
  "/@syncfusion/ej2-vue-pdfviewer",
154
117
  "/@syncfusion/ej2-vue-pivotview",
155
118
  "/@syncfusion/ej2-vue-popups",
156
- "/@syncfusion/ej2-vue-progressbar",
157
119
  "/@syncfusion/ej2-vue-querybuilder",
158
- "/@syncfusion/ej2-vue-ribbon",
159
120
  "/@syncfusion/ej2-vue-richtexteditor",
160
- "/@syncfusion/ej2-vue-schedule",
161
- "/@syncfusion/ej2-vue-splitbuttons",
162
121
  "/@syncfusion/ej2-vue-spreadsheet",
163
- "/@syncfusion/ej2-vue-treegrid",
164
- "/@syncfusion/ej2-vue-treemap"
122
+ "/@syncfusion/ej2-vue-treegrid"
165
123
  ],
166
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-22.1.38.tgz",
167
- "_shasum": "1b571045c26edf4755fe361d5f37fd3896a01fe0",
124
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-22.2.5.tgz",
125
+ "_shasum": "efa24bbee4cef7f1cfb86c6ea02cec0b96066aa7",
168
126
  "_spec": "@syncfusion/ej2-base@*",
169
127
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
170
128
  "author": {
@@ -219,6 +177,6 @@
219
177
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
220
178
  },
221
179
  "typings": "index.d.ts",
222
- "version": "22.2.5",
180
+ "version": "22.2.9",
223
181
  "sideEffects": true
224
182
  }
@@ -81,6 +81,18 @@ export declare abstract class Component<ElementType extends HTMLElement> extends
81
81
  * @returns {any} ?
82
82
  */
83
83
  getLocalData(): any;
84
+ /**
85
+ * Adding unload event to persist data when enable persistence true
86
+ */
87
+ attachUnloadEvent(): any;
88
+ /**
89
+ * Handling unload event to persist data when enable persistence true
90
+ */
91
+ handleUnload(): any;
92
+ /**
93
+ * Removing unload event to persist data when enable persistence true
94
+ */
95
+ detachUnloadEvent(): any;
84
96
  /**
85
97
  * Appends the control within the given HTML element
86
98
  *
package/src/component.js CHANGED
@@ -105,6 +105,7 @@ var Component = /** @class */ (function (_super) {
105
105
  }
106
106
  if (this.enablePersistence) {
107
107
  this.setPersistData();
108
+ this.detachUnloadEvent();
108
109
  }
109
110
  this.localObserver.destroy();
110
111
  if (this.refreshing) {
@@ -166,6 +167,25 @@ var Component = /** @class */ (function (_super) {
166
167
  return window.localStorage.getItem(eleId);
167
168
  }
168
169
  };
170
+ /**
171
+ * Adding unload event to persist data when enable persistence true
172
+ */
173
+ Component.prototype.attachUnloadEvent = function () {
174
+ this.handleUnload = this.handleUnload.bind(this);
175
+ window.addEventListener('unload', this.handleUnload);
176
+ };
177
+ /**
178
+ * Handling unload event to persist data when enable persistence true
179
+ */
180
+ Component.prototype.handleUnload = function () {
181
+ this.setPersistData();
182
+ };
183
+ /**
184
+ * Removing unload event to persist data when enable persistence true
185
+ */
186
+ Component.prototype.detachUnloadEvent = function () {
187
+ window.removeEventListener('unload', this.handleUnload);
188
+ };
169
189
  /**
170
190
  * Appends the control within the given HTML element
171
191
  *
@@ -188,7 +208,7 @@ var Component = /** @class */ (function (_super) {
188
208
  }
189
209
  if (this.enablePersistence) {
190
210
  this.mergePersistData();
191
- window.addEventListener('unload', this.setPersistData.bind(this));
211
+ this.attachUnloadEvent();
192
212
  }
193
213
  var inst = getValue('ej2_instances', this.element);
194
214
  if (!inst || inst.indexOf(this) === -1) {