@syncfusion/ej2-base 22.2.5 → 22.2.10

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.10
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.9",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-24JJeNO2ZBDijcXdj6+fHZu+gPTx0E7ltn17G1z6edUNB6/7MiqdBLbS8CnkSzlmS44BjOIwb4++6K6XLBDTeQ==",
5
+ "_integrity": "sha512-EauFjzSZfpX/t5chtTEQXdouiwoiqiFvNSMQ9+WRT9QNPJ9AovHqnqKg9NyTCeJHJIeasYj5witzsx/2+rGR7w==",
6
6
  "_location": "/@syncfusion/ej2-base",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -19,12 +19,9 @@
19
19
  "_requiredBy": [
20
20
  "/",
21
21
  "/@syncfusion/ej2",
22
- "/@syncfusion/ej2-angular-barcode-generator",
23
22
  "/@syncfusion/ej2-angular-base",
24
- "/@syncfusion/ej2-angular-buttons",
25
23
  "/@syncfusion/ej2-angular-calendars",
26
24
  "/@syncfusion/ej2-angular-charts",
27
- "/@syncfusion/ej2-angular-circulargauge",
28
25
  "/@syncfusion/ej2-angular-diagrams",
29
26
  "/@syncfusion/ej2-angular-documenteditor",
30
27
  "/@syncfusion/ej2-angular-dropdowns",
@@ -33,27 +30,10 @@
33
30
  "/@syncfusion/ej2-angular-grids",
34
31
  "/@syncfusion/ej2-angular-heatmap",
35
32
  "/@syncfusion/ej2-angular-image-editor",
36
- "/@syncfusion/ej2-angular-inplace-editor",
37
- "/@syncfusion/ej2-angular-inputs",
38
- "/@syncfusion/ej2-angular-kanban",
39
- "/@syncfusion/ej2-angular-layouts",
40
- "/@syncfusion/ej2-angular-lineargauge",
41
- "/@syncfusion/ej2-angular-lists",
42
- "/@syncfusion/ej2-angular-maps",
43
- "/@syncfusion/ej2-angular-navigations",
44
- "/@syncfusion/ej2-angular-notifications",
45
33
  "/@syncfusion/ej2-angular-pdfviewer",
46
34
  "/@syncfusion/ej2-angular-pivotview",
47
- "/@syncfusion/ej2-angular-popups",
48
- "/@syncfusion/ej2-angular-progressbar",
49
- "/@syncfusion/ej2-angular-querybuilder",
50
- "/@syncfusion/ej2-angular-ribbon",
51
35
  "/@syncfusion/ej2-angular-richtexteditor",
52
- "/@syncfusion/ej2-angular-schedule",
53
- "/@syncfusion/ej2-angular-splitbuttons",
54
36
  "/@syncfusion/ej2-angular-spreadsheet",
55
- "/@syncfusion/ej2-angular-treegrid",
56
- "/@syncfusion/ej2-angular-treemap",
57
37
  "/@syncfusion/ej2-barcode-generator",
58
38
  "/@syncfusion/ej2-buttons",
59
39
  "/@syncfusion/ej2-calendars",
@@ -84,12 +64,9 @@
84
64
  "/@syncfusion/ej2-popups",
85
65
  "/@syncfusion/ej2-progressbar",
86
66
  "/@syncfusion/ej2-querybuilder",
87
- "/@syncfusion/ej2-react-barcode-generator",
88
67
  "/@syncfusion/ej2-react-base",
89
- "/@syncfusion/ej2-react-buttons",
90
68
  "/@syncfusion/ej2-react-calendars",
91
69
  "/@syncfusion/ej2-react-charts",
92
- "/@syncfusion/ej2-react-circulargauge",
93
70
  "/@syncfusion/ej2-react-diagrams",
94
71
  "/@syncfusion/ej2-react-documenteditor",
95
72
  "/@syncfusion/ej2-react-dropdowns",
@@ -98,27 +75,10 @@
98
75
  "/@syncfusion/ej2-react-grids",
99
76
  "/@syncfusion/ej2-react-heatmap",
100
77
  "/@syncfusion/ej2-react-image-editor",
101
- "/@syncfusion/ej2-react-inplace-editor",
102
- "/@syncfusion/ej2-react-inputs",
103
- "/@syncfusion/ej2-react-kanban",
104
- "/@syncfusion/ej2-react-layouts",
105
- "/@syncfusion/ej2-react-lineargauge",
106
- "/@syncfusion/ej2-react-lists",
107
- "/@syncfusion/ej2-react-maps",
108
- "/@syncfusion/ej2-react-navigations",
109
- "/@syncfusion/ej2-react-notifications",
110
78
  "/@syncfusion/ej2-react-pdfviewer",
111
79
  "/@syncfusion/ej2-react-pivotview",
112
- "/@syncfusion/ej2-react-popups",
113
- "/@syncfusion/ej2-react-progressbar",
114
- "/@syncfusion/ej2-react-querybuilder",
115
- "/@syncfusion/ej2-react-ribbon",
116
80
  "/@syncfusion/ej2-react-richtexteditor",
117
- "/@syncfusion/ej2-react-schedule",
118
- "/@syncfusion/ej2-react-splitbuttons",
119
81
  "/@syncfusion/ej2-react-spreadsheet",
120
- "/@syncfusion/ej2-react-treegrid",
121
- "/@syncfusion/ej2-react-treemap",
122
82
  "/@syncfusion/ej2-ribbon",
123
83
  "/@syncfusion/ej2-richtexteditor",
124
84
  "/@syncfusion/ej2-schedule",
@@ -127,12 +87,9 @@
127
87
  "/@syncfusion/ej2-svg-base",
128
88
  "/@syncfusion/ej2-treegrid",
129
89
  "/@syncfusion/ej2-treemap",
130
- "/@syncfusion/ej2-vue-barcode-generator",
131
90
  "/@syncfusion/ej2-vue-base",
132
- "/@syncfusion/ej2-vue-buttons",
133
91
  "/@syncfusion/ej2-vue-calendars",
134
92
  "/@syncfusion/ej2-vue-charts",
135
- "/@syncfusion/ej2-vue-circulargauge",
136
93
  "/@syncfusion/ej2-vue-diagrams",
137
94
  "/@syncfusion/ej2-vue-documenteditor",
138
95
  "/@syncfusion/ej2-vue-dropdowns",
@@ -141,30 +98,13 @@
141
98
  "/@syncfusion/ej2-vue-grids",
142
99
  "/@syncfusion/ej2-vue-heatmap",
143
100
  "/@syncfusion/ej2-vue-image-editor",
144
- "/@syncfusion/ej2-vue-inplace-editor",
145
- "/@syncfusion/ej2-vue-inputs",
146
- "/@syncfusion/ej2-vue-kanban",
147
- "/@syncfusion/ej2-vue-layouts",
148
- "/@syncfusion/ej2-vue-lineargauge",
149
- "/@syncfusion/ej2-vue-lists",
150
- "/@syncfusion/ej2-vue-maps",
151
- "/@syncfusion/ej2-vue-navigations",
152
- "/@syncfusion/ej2-vue-notifications",
153
101
  "/@syncfusion/ej2-vue-pdfviewer",
154
102
  "/@syncfusion/ej2-vue-pivotview",
155
- "/@syncfusion/ej2-vue-popups",
156
- "/@syncfusion/ej2-vue-progressbar",
157
- "/@syncfusion/ej2-vue-querybuilder",
158
- "/@syncfusion/ej2-vue-ribbon",
159
103
  "/@syncfusion/ej2-vue-richtexteditor",
160
- "/@syncfusion/ej2-vue-schedule",
161
- "/@syncfusion/ej2-vue-splitbuttons",
162
- "/@syncfusion/ej2-vue-spreadsheet",
163
- "/@syncfusion/ej2-vue-treegrid",
164
- "/@syncfusion/ej2-vue-treemap"
104
+ "/@syncfusion/ej2-vue-spreadsheet"
165
105
  ],
166
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-22.1.38.tgz",
167
- "_shasum": "1b571045c26edf4755fe361d5f37fd3896a01fe0",
106
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-22.2.9.tgz",
107
+ "_shasum": "37e5df9a0499e0ecdbfda57120e2d42bb61e51f2",
168
108
  "_spec": "@syncfusion/ej2-base@*",
169
109
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
170
110
  "author": {
@@ -219,6 +159,6 @@
219
159
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
220
160
  },
221
161
  "typings": "index.d.ts",
222
- "version": "22.2.5",
162
+ "version": "22.2.10",
223
163
  "sideEffects": true
224
164
  }
@@ -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) {
@@ -3,7 +3,7 @@
3
3
 
4
4
  @if not variable-exists('is-roboto-loaded') {
5
5
  //sass-lint:disable no-url-protocols,no-url-domains
6
- @import url('https://fonts.googleapis.com/css?family=Roboto:400,500');// stylelint-disable-line no-invalid-position-at-import-rule
6
+ @import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700');// stylelint-disable-line no-invalid-position-at-import-rule
7
7
  }
8
8
 
9
9
  $is-roboto-loaded: 'true' !default;
@@ -1,4 +1,4 @@
1
- @import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
1
+ @import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700");
2
2
  @font-face {
3
3
  font-family: "e-icons";
4
4
  font-style: normal;
@@ -1,4 +1,4 @@
1
-
1
+ @import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700");
2
2
  @font-face {
3
3
  font-family: "e-icons";
4
4
  font-style: normal;