@syncfusion/ej2-base 23.1.41 → 23.2.6

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 : 23.1.41
3
+ * version : 23.2.6
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. 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
@@ -174,7 +174,7 @@ exports.config = {
174
174
  imageBPath: '/actual/' + browser.pixDiff.browserName + '/' + fileName,
175
175
  filter: ['grayScale'],
176
176
  debug: true,
177
- hideShift: true,
177
+ hideShift: true
178
178
  };
179
179
  var doneFn = arguments[arguments.length - 1];
180
180
  if (typeof opt === 'object' && Object.keys(opt).length) {
@@ -267,16 +267,25 @@ if (config.browsers && config.browsers.length) {
267
267
  for (var i = 0; i < config.browsers.length; i++) {
268
268
  var browserName = config.browsers[i];
269
269
  if (browserName === 'chrome' && enableW3c === '{W3cenabled}') {
270
- exports.config.multiCapabilities.push({
271
- 'browserName': browserName,
272
- 'goog:chromeOptions': { //disable w3c here
273
- w3c: false,
270
+ exports.config.capabilities = {
271
+ 'browserName': 'chrome',
272
+ 'chromeOptions': {
273
+ 'args': [
274
+ '--headless', // Run in headless mode
275
+ '--disable-gpu'
276
+ ]
274
277
  }
275
- });
278
+ };
276
279
  } else {
277
- exports.config.multiCapabilities.push({
278
- 'browserName': browserName
279
- });
280
+ exports.config.capabilities = {
281
+ 'browserName': 'chrome',
282
+ 'chromeOptions': {
283
+ 'args': [
284
+ '--headless', // Run in headless mode
285
+ '--disable-gpu'
286
+ ]
287
+ }
288
+ };
280
289
  }
281
290
  }
282
291
  } else {
@@ -294,19 +303,25 @@ if (config.browsers && config.browsers.length) {
294
303
  'browserName': 'firefox'
295
304
  });
296
305
  if (enableW3c === '{W3cenabled}') {
297
- exports.config.multiCapabilities.push({
298
- 'browserName': 'chrome',
299
- 'goog:chromeOptions': { //disable w3c here
300
- w3c: false,
301
- }
302
- });
303
- } else {
304
- exports.config.multiCapabilities.push({
306
+ exports.config.capabilities = {
305
307
  'browserName': 'chrome',
306
308
  'chromeOptions': {
307
- 'args': ['no-sandbox']
309
+ 'args': [
310
+ '--headless', // Run in headless mode
311
+ '--disable-gpu'
312
+ ]
308
313
  }
309
- });
314
+ };
315
+ } else {
316
+ exports.config.capabilities = {
317
+ 'browserName': 'chrome',
318
+ 'chromeOptions': {
319
+ 'args': [
320
+ '--headless', // Run in headless mode
321
+ '--disable-gpu'
322
+ ]
323
+ }
324
+ };
310
325
  }
311
326
  }
312
327
  exports.config.seleniumAddress = config.seleniumAddress || 'http://localhost:4444/wd/hub/';
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-base@*",
3
- "_id": "@syncfusion/ej2-base@23.1.38",
3
+ "_id": "@syncfusion/ej2-base@23.2.4",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-Ew9FYxzz/3upk/+56r8JXVLuH78GLS6LG6ikBnm1ywYhRYz6LIaYHachox4M9vYq7d6JLT06LgeDuKYDBvwrUA==",
5
+ "_integrity": "sha512-TzxavHSz2VRDag9iNcOUlV6DJE+uE9nYw6ziwZTPCczEhvgFzI+Ef3YuhfAUGk+TcjYne4LfyDz4NqoRWF+7cw==",
6
6
  "_location": "/@syncfusion/ej2-base",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -19,24 +19,22 @@
19
19
  "_requiredBy": [
20
20
  "/",
21
21
  "/@syncfusion/ej2",
22
+ "/@syncfusion/ej2-angular-barcode-generator",
22
23
  "/@syncfusion/ej2-angular-base",
23
- "/@syncfusion/ej2-angular-buttons",
24
24
  "/@syncfusion/ej2-angular-calendars",
25
25
  "/@syncfusion/ej2-angular-charts",
26
+ "/@syncfusion/ej2-angular-diagrams",
26
27
  "/@syncfusion/ej2-angular-documenteditor",
27
28
  "/@syncfusion/ej2-angular-dropdowns",
28
- "/@syncfusion/ej2-angular-gantt",
29
+ "/@syncfusion/ej2-angular-filemanager",
29
30
  "/@syncfusion/ej2-angular-grids",
30
31
  "/@syncfusion/ej2-angular-image-editor",
31
- "/@syncfusion/ej2-angular-inplace-editor",
32
- "/@syncfusion/ej2-angular-navigations",
33
32
  "/@syncfusion/ej2-angular-pdfviewer",
34
33
  "/@syncfusion/ej2-angular-pivotview",
35
- "/@syncfusion/ej2-angular-querybuilder",
36
- "/@syncfusion/ej2-angular-ribbon",
34
+ "/@syncfusion/ej2-angular-progressbar",
37
35
  "/@syncfusion/ej2-angular-richtexteditor",
38
- "/@syncfusion/ej2-angular-splitbuttons",
39
36
  "/@syncfusion/ej2-angular-spreadsheet",
37
+ "/@syncfusion/ej2-angular-treegrid",
40
38
  "/@syncfusion/ej2-barcode-generator",
41
39
  "/@syncfusion/ej2-buttons",
42
40
  "/@syncfusion/ej2-calendars",
@@ -68,24 +66,22 @@
68
66
  "/@syncfusion/ej2-popups",
69
67
  "/@syncfusion/ej2-progressbar",
70
68
  "/@syncfusion/ej2-querybuilder",
69
+ "/@syncfusion/ej2-react-barcode-generator",
71
70
  "/@syncfusion/ej2-react-base",
72
- "/@syncfusion/ej2-react-buttons",
73
71
  "/@syncfusion/ej2-react-calendars",
74
72
  "/@syncfusion/ej2-react-charts",
73
+ "/@syncfusion/ej2-react-diagrams",
75
74
  "/@syncfusion/ej2-react-documenteditor",
76
75
  "/@syncfusion/ej2-react-dropdowns",
77
- "/@syncfusion/ej2-react-gantt",
76
+ "/@syncfusion/ej2-react-filemanager",
78
77
  "/@syncfusion/ej2-react-grids",
79
78
  "/@syncfusion/ej2-react-image-editor",
80
- "/@syncfusion/ej2-react-inplace-editor",
81
- "/@syncfusion/ej2-react-navigations",
82
79
  "/@syncfusion/ej2-react-pdfviewer",
83
80
  "/@syncfusion/ej2-react-pivotview",
84
- "/@syncfusion/ej2-react-querybuilder",
85
- "/@syncfusion/ej2-react-ribbon",
81
+ "/@syncfusion/ej2-react-progressbar",
86
82
  "/@syncfusion/ej2-react-richtexteditor",
87
- "/@syncfusion/ej2-react-splitbuttons",
88
83
  "/@syncfusion/ej2-react-spreadsheet",
84
+ "/@syncfusion/ej2-react-treegrid",
89
85
  "/@syncfusion/ej2-ribbon",
90
86
  "/@syncfusion/ej2-richtexteditor",
91
87
  "/@syncfusion/ej2-schedule",
@@ -94,27 +90,25 @@
94
90
  "/@syncfusion/ej2-svg-base",
95
91
  "/@syncfusion/ej2-treegrid",
96
92
  "/@syncfusion/ej2-treemap",
93
+ "/@syncfusion/ej2-vue-barcode-generator",
97
94
  "/@syncfusion/ej2-vue-base",
98
- "/@syncfusion/ej2-vue-buttons",
99
95
  "/@syncfusion/ej2-vue-calendars",
100
96
  "/@syncfusion/ej2-vue-charts",
97
+ "/@syncfusion/ej2-vue-diagrams",
101
98
  "/@syncfusion/ej2-vue-documenteditor",
102
99
  "/@syncfusion/ej2-vue-dropdowns",
103
- "/@syncfusion/ej2-vue-gantt",
100
+ "/@syncfusion/ej2-vue-filemanager",
104
101
  "/@syncfusion/ej2-vue-grids",
105
102
  "/@syncfusion/ej2-vue-image-editor",
106
- "/@syncfusion/ej2-vue-inplace-editor",
107
- "/@syncfusion/ej2-vue-navigations",
108
103
  "/@syncfusion/ej2-vue-pdfviewer",
109
104
  "/@syncfusion/ej2-vue-pivotview",
110
- "/@syncfusion/ej2-vue-querybuilder",
111
- "/@syncfusion/ej2-vue-ribbon",
105
+ "/@syncfusion/ej2-vue-progressbar",
112
106
  "/@syncfusion/ej2-vue-richtexteditor",
113
- "/@syncfusion/ej2-vue-splitbuttons",
114
- "/@syncfusion/ej2-vue-spreadsheet"
107
+ "/@syncfusion/ej2-vue-spreadsheet",
108
+ "/@syncfusion/ej2-vue-treegrid"
115
109
  ],
116
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-23.1.38.tgz",
117
- "_shasum": "afe76a06937dbec7b6fb8197fdae74a5f50cce31",
110
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-23.2.4.tgz",
111
+ "_shasum": "04046c324b74c7819aa1513e8fb740824859690f",
118
112
  "_spec": "@syncfusion/ej2-base@*",
119
113
  "_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
120
114
  "author": {
@@ -128,7 +122,7 @@
128
122
  },
129
123
  "bundleDependencies": false,
130
124
  "dependencies": {
131
- "@syncfusion/ej2-icons": "~23.1.36"
125
+ "@syncfusion/ej2-icons": "~23.2.4"
132
126
  },
133
127
  "deprecated": false,
134
128
  "description": "A common package of Essential JS 2 base libraries, methods and class definitions",
@@ -169,6 +163,6 @@
169
163
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
170
164
  },
171
165
  "typings": "index.d.ts",
172
- "version": "23.1.41",
166
+ "version": "23.2.6",
173
167
  "sideEffects": true
174
168
  }
package/src/base.js CHANGED
@@ -257,7 +257,8 @@ var Base = /** @class */ (function () {
257
257
  var _this = this;
258
258
  // eslint-disable-next-line
259
259
  this.element.ej2_instances =
260
- this.element.ej2_instances.filter(function (i) { return i !== _this; });
260
+ this.element.ej2_instances ? this.element.ej2_instances.filter(function (i) { return i !== _this; })
261
+ : [];
261
262
  removeClass([this.element], ['e-' + this.getModuleName()]);
262
263
  if (this.element.ej2_instances.length === 0) {
263
264
  // Remove module class from the root element
@@ -825,7 +825,8 @@ export var IntlBase;
825
825
  */
826
826
  function changeCurrencySymbol(val, sym) {
827
827
  if (val) {
828
- return val.replace(IntlBase.defaultCurrency, sym);
828
+ val = val.replace(IntlBase.defaultCurrency, sym);
829
+ return (sym === '') ? val.trim() : val;
829
830
  }
830
831
  return '';
831
832
  }
package/src/observer.d.ts CHANGED
@@ -62,6 +62,12 @@ export declare class Observer {
62
62
  * @returns {void} ?
63
63
  */
64
64
  destroy(): void;
65
+ /**
66
+ * To remove internationalization events
67
+ *
68
+ * @returns {void} ?
69
+ */
70
+ offIntlEvents(): void;
65
71
  /**
66
72
  * Returns if the property exists.
67
73
  *
package/src/observer.js CHANGED
@@ -23,7 +23,7 @@ var Observer = /** @class */ (function () {
23
23
  }
24
24
  var cntxt = context || this.context;
25
25
  if (this.notExist(property)) {
26
- this.boundedEvents["" + property] = [{ handler: handler, context: cntxt }];
26
+ this.boundedEvents["" + property] = [{ handler: handler, context: cntxt, id: id }];
27
27
  return;
28
28
  }
29
29
  if (!isNullOrUndefined(id)) {
@@ -164,6 +164,26 @@ var Observer = /** @class */ (function () {
164
164
  Observer.prototype.destroy = function () {
165
165
  this.boundedEvents = this.context = undefined;
166
166
  };
167
+ /**
168
+ * To remove internationalization events
169
+ *
170
+ * @returns {void} ?
171
+ */
172
+ Observer.prototype.offIntlEvents = function () {
173
+ var eventsArr = this.boundedEvents['notifyExternalChange'];
174
+ if (eventsArr) {
175
+ for (var i = 0; i < eventsArr.length; i++) {
176
+ var curContext = eventsArr[0].context;
177
+ if (curContext && curContext.detectFunction && curContext.randomId && !curContext.isRendered) {
178
+ this.off('notifyExternalChange', curContext.detectFunction, curContext.randomId);
179
+ i--;
180
+ }
181
+ }
182
+ if (!this.boundedEvents['notifyExternalChange'].length) {
183
+ delete this.boundedEvents['notifyExternalChange'];
184
+ }
185
+ }
186
+ };
167
187
  /**
168
188
  * Returns if the property exists.
169
189
  *
package/src/template.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Template Engine
3
3
  */
4
- var LINES = new RegExp('\\n|\\r|\\s\\s+', 'g');
4
+ var LINES = new RegExp('[\\n\\r\\s]+', 'g');
5
5
  var QUOTES = new RegExp(/'|"/g);
6
6
  var IF_STMT = new RegExp('if ?\\(');
7
7
  var ELSEIF_STMT = new RegExp('else if ?\\(');
@@ -94,7 +94,7 @@ function evalExp(str, nameSpace, helper, ignorePrefix) {
94
94
  str = str.replace(value, singleSpace);
95
95
  });
96
96
  }
97
- return str.replace(LINES, '').replace(DBL_QUOTED_STR, '\'$1\'').replace(exp,
97
+ return str.replace(LINES, ' ').replace(DBL_QUOTED_STR, '\'$1\'').replace(exp,
98
98
  // eslint-disable-next-line
99
99
  function (match, cnt, offset, matchStr) {
100
100
  var SPECIAL_CHAR = /@|#|\$/gm;