@syncfusion/ej2-base 23.1.40 → 23.1.41

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,3 +1,12 @@
1
+ /*!
2
+ * filename: index.d.ts
3
+ * version : 23.1.41
4
+ * Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
5
+ * Use of this code is subject to the terms of our license.
6
+ * A copy of the current license can be obtained at any time by e-mailing
7
+ * licensing@syncfusion.com. Any infringement will be prosecuted under
8
+ * applicable laws.
9
+ */
1
10
  import * as _base from '@syncfusion/ej2-base';
2
11
 
3
12
  export declare namespace ej {
package/package.json CHANGED
@@ -1,183 +1,174 @@
1
1
  {
2
- "_from": "@syncfusion/ej2-base@*",
3
- "_id": "@syncfusion/ej2-base@23.1.36",
4
- "_inBundle": false,
5
- "_integrity": "sha512-ur5hus1QokU6hi3FLOhO/jCvvQkYWy52M7yhCsaMR2mMFQ+0hVqUPjJ5kdk6c7Gy/b5LBzmdpw6PL58KL1nHUg==",
6
- "_location": "/@syncfusion/ej2-base",
7
- "_phantomChildren": {},
8
- "_requested": {
9
- "type": "range",
10
- "registry": true,
11
- "raw": "@syncfusion/ej2-base@*",
12
- "name": "@syncfusion/ej2-base",
13
- "escapedName": "@syncfusion%2fej2-base",
14
- "scope": "@syncfusion",
15
- "rawSpec": "*",
16
- "saveSpec": null,
17
- "fetchSpec": "*"
18
- },
19
- "_requiredBy": [
20
- "/",
21
- "/@syncfusion/ej2",
22
- "/@syncfusion/ej2-angular-base",
23
- "/@syncfusion/ej2-angular-calendars",
24
- "/@syncfusion/ej2-angular-charts",
25
- "/@syncfusion/ej2-angular-circulargauge",
26
- "/@syncfusion/ej2-angular-diagrams",
27
- "/@syncfusion/ej2-angular-documenteditor",
28
- "/@syncfusion/ej2-angular-dropdowns",
29
- "/@syncfusion/ej2-angular-filemanager",
30
- "/@syncfusion/ej2-angular-gantt",
31
- "/@syncfusion/ej2-angular-grids",
32
- "/@syncfusion/ej2-angular-image-editor",
33
- "/@syncfusion/ej2-angular-inputs",
34
- "/@syncfusion/ej2-angular-maps",
35
- "/@syncfusion/ej2-angular-pdfviewer",
36
- "/@syncfusion/ej2-angular-pivotview",
37
- "/@syncfusion/ej2-angular-popups",
38
- "/@syncfusion/ej2-angular-progressbar",
39
- "/@syncfusion/ej2-angular-querybuilder",
40
- "/@syncfusion/ej2-angular-ribbon",
41
- "/@syncfusion/ej2-angular-schedule",
42
- "/@syncfusion/ej2-angular-spreadsheet",
43
- "/@syncfusion/ej2-barcode-generator",
44
- "/@syncfusion/ej2-buttons",
45
- "/@syncfusion/ej2-calendars",
46
- "/@syncfusion/ej2-charts",
47
- "/@syncfusion/ej2-circulargauge",
48
- "/@syncfusion/ej2-data",
49
- "/@syncfusion/ej2-diagrams",
50
- "/@syncfusion/ej2-documenteditor",
51
- "/@syncfusion/ej2-drawings",
52
- "/@syncfusion/ej2-dropdowns",
53
- "/@syncfusion/ej2-excel-export",
54
- "/@syncfusion/ej2-filemanager",
55
- "/@syncfusion/ej2-gantt",
56
- "/@syncfusion/ej2-grids",
57
- "/@syncfusion/ej2-heatmap",
58
- "/@syncfusion/ej2-image-editor",
59
- "/@syncfusion/ej2-inplace-editor",
60
- "/@syncfusion/ej2-inputs",
61
- "/@syncfusion/ej2-kanban",
62
- "/@syncfusion/ej2-layouts",
63
- "/@syncfusion/ej2-lineargauge",
64
- "/@syncfusion/ej2-lists",
65
- "/@syncfusion/ej2-maps",
66
- "/@syncfusion/ej2-navigations",
67
- "/@syncfusion/ej2-notifications",
68
- "/@syncfusion/ej2-pdf",
69
- "/@syncfusion/ej2-pdfviewer",
70
- "/@syncfusion/ej2-pivotview",
71
- "/@syncfusion/ej2-popups",
72
- "/@syncfusion/ej2-progressbar",
73
- "/@syncfusion/ej2-querybuilder",
74
- "/@syncfusion/ej2-react-base",
75
- "/@syncfusion/ej2-react-calendars",
76
- "/@syncfusion/ej2-react-charts",
77
- "/@syncfusion/ej2-react-circulargauge",
78
- "/@syncfusion/ej2-react-diagrams",
79
- "/@syncfusion/ej2-react-documenteditor",
80
- "/@syncfusion/ej2-react-dropdowns",
81
- "/@syncfusion/ej2-react-filemanager",
82
- "/@syncfusion/ej2-react-gantt",
83
- "/@syncfusion/ej2-react-grids",
84
- "/@syncfusion/ej2-react-image-editor",
85
- "/@syncfusion/ej2-react-inputs",
86
- "/@syncfusion/ej2-react-maps",
87
- "/@syncfusion/ej2-react-pdfviewer",
88
- "/@syncfusion/ej2-react-pivotview",
89
- "/@syncfusion/ej2-react-popups",
90
- "/@syncfusion/ej2-react-progressbar",
91
- "/@syncfusion/ej2-react-querybuilder",
92
- "/@syncfusion/ej2-react-ribbon",
93
- "/@syncfusion/ej2-react-schedule",
94
- "/@syncfusion/ej2-react-spreadsheet",
95
- "/@syncfusion/ej2-ribbon",
96
- "/@syncfusion/ej2-richtexteditor",
97
- "/@syncfusion/ej2-schedule",
98
- "/@syncfusion/ej2-splitbuttons",
99
- "/@syncfusion/ej2-spreadsheet",
100
- "/@syncfusion/ej2-svg-base",
101
- "/@syncfusion/ej2-treegrid",
102
- "/@syncfusion/ej2-treemap",
103
- "/@syncfusion/ej2-vue-base",
104
- "/@syncfusion/ej2-vue-calendars",
105
- "/@syncfusion/ej2-vue-charts",
106
- "/@syncfusion/ej2-vue-circulargauge",
107
- "/@syncfusion/ej2-vue-diagrams",
108
- "/@syncfusion/ej2-vue-documenteditor",
109
- "/@syncfusion/ej2-vue-dropdowns",
110
- "/@syncfusion/ej2-vue-filemanager",
111
- "/@syncfusion/ej2-vue-gantt",
112
- "/@syncfusion/ej2-vue-grids",
113
- "/@syncfusion/ej2-vue-image-editor",
114
- "/@syncfusion/ej2-vue-inputs",
115
- "/@syncfusion/ej2-vue-maps",
116
- "/@syncfusion/ej2-vue-pdfviewer",
117
- "/@syncfusion/ej2-vue-pivotview",
118
- "/@syncfusion/ej2-vue-popups",
119
- "/@syncfusion/ej2-vue-progressbar",
120
- "/@syncfusion/ej2-vue-querybuilder",
121
- "/@syncfusion/ej2-vue-ribbon",
122
- "/@syncfusion/ej2-vue-schedule",
123
- "/@syncfusion/ej2-vue-spreadsheet"
124
- ],
125
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-23.1.36.tgz",
126
- "_shasum": "2d04974b81487ea7e2e6ba9510111549f49d1958",
127
- "_spec": "@syncfusion/ej2-base@*",
128
- "_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
129
- "author": {
130
- "name": "Syncfusion Inc."
131
- },
132
- "bin": {
133
- "syncfusion-license": "bin/syncfusion-license.js"
134
- },
135
- "bugs": {
136
- "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/issues"
137
- },
138
- "bundleDependencies": false,
139
- "dependencies": {
140
- "@syncfusion/ej2-icons": "~23.1.36"
141
- },
142
- "deprecated": false,
143
- "description": "A common package of Essential JS 2 base libraries, methods and class definitions",
144
- "devDependencies": {},
145
- "es2015": "./dist/es6/ej2-base.es5.js",
146
- "homepage": "https://www.syncfusion.com/javascript-ui-controls",
147
- "keywords": [
148
- "ej2",
149
- "syncfusion",
150
- "ej2-base",
151
- "web-components",
152
- "typescript",
153
- "base",
154
- "common",
155
- "core",
156
- "library",
157
- "ajax",
158
- "animation",
159
- "internationalization",
160
- "drag",
161
- "drop",
162
- "drag-drop",
163
- "template",
164
- "template-engine",
165
- "rtl",
166
- "right-to-left",
167
- "persistence",
168
- "state-persistence",
169
- "theme",
170
- "styles"
171
- ],
172
- "license": "SEE LICENSE IN license",
173
- "main": "./dist/ej2-base.umd.min.js",
174
- "module": "./index.js",
175
- "name": "@syncfusion/ej2-base",
176
- "repository": {
177
- "type": "git",
178
- "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
179
- },
180
- "typings": "index.d.ts",
181
- "version": "23.1.40",
182
- "sideEffects": true
183
- }
2
+ "_from": "@syncfusion/ej2-base@*",
3
+ "_id": "@syncfusion/ej2-base@23.1.38",
4
+ "_inBundle": false,
5
+ "_integrity": "sha512-Ew9FYxzz/3upk/+56r8JXVLuH78GLS6LG6ikBnm1ywYhRYz6LIaYHachox4M9vYq7d6JLT06LgeDuKYDBvwrUA==",
6
+ "_location": "/@syncfusion/ej2-base",
7
+ "_phantomChildren": {},
8
+ "_requested": {
9
+ "type": "range",
10
+ "registry": true,
11
+ "raw": "@syncfusion/ej2-base@*",
12
+ "name": "@syncfusion/ej2-base",
13
+ "escapedName": "@syncfusion%2fej2-base",
14
+ "scope": "@syncfusion",
15
+ "rawSpec": "*",
16
+ "saveSpec": null,
17
+ "fetchSpec": "*"
18
+ },
19
+ "_requiredBy": [
20
+ "/",
21
+ "/@syncfusion/ej2",
22
+ "/@syncfusion/ej2-angular-base",
23
+ "/@syncfusion/ej2-angular-buttons",
24
+ "/@syncfusion/ej2-angular-calendars",
25
+ "/@syncfusion/ej2-angular-charts",
26
+ "/@syncfusion/ej2-angular-documenteditor",
27
+ "/@syncfusion/ej2-angular-dropdowns",
28
+ "/@syncfusion/ej2-angular-gantt",
29
+ "/@syncfusion/ej2-angular-grids",
30
+ "/@syncfusion/ej2-angular-image-editor",
31
+ "/@syncfusion/ej2-angular-inplace-editor",
32
+ "/@syncfusion/ej2-angular-navigations",
33
+ "/@syncfusion/ej2-angular-pdfviewer",
34
+ "/@syncfusion/ej2-angular-pivotview",
35
+ "/@syncfusion/ej2-angular-querybuilder",
36
+ "/@syncfusion/ej2-angular-ribbon",
37
+ "/@syncfusion/ej2-angular-richtexteditor",
38
+ "/@syncfusion/ej2-angular-splitbuttons",
39
+ "/@syncfusion/ej2-angular-spreadsheet",
40
+ "/@syncfusion/ej2-barcode-generator",
41
+ "/@syncfusion/ej2-buttons",
42
+ "/@syncfusion/ej2-calendars",
43
+ "/@syncfusion/ej2-charts",
44
+ "/@syncfusion/ej2-circulargauge",
45
+ "/@syncfusion/ej2-data",
46
+ "/@syncfusion/ej2-diagrams",
47
+ "/@syncfusion/ej2-documenteditor",
48
+ "/@syncfusion/ej2-drawings",
49
+ "/@syncfusion/ej2-dropdowns",
50
+ "/@syncfusion/ej2-excel-export",
51
+ "/@syncfusion/ej2-filemanager",
52
+ "/@syncfusion/ej2-gantt",
53
+ "/@syncfusion/ej2-grids",
54
+ "/@syncfusion/ej2-heatmap",
55
+ "/@syncfusion/ej2-image-editor",
56
+ "/@syncfusion/ej2-inplace-editor",
57
+ "/@syncfusion/ej2-inputs",
58
+ "/@syncfusion/ej2-kanban",
59
+ "/@syncfusion/ej2-layouts",
60
+ "/@syncfusion/ej2-lineargauge",
61
+ "/@syncfusion/ej2-lists",
62
+ "/@syncfusion/ej2-maps",
63
+ "/@syncfusion/ej2-navigations",
64
+ "/@syncfusion/ej2-notifications",
65
+ "/@syncfusion/ej2-pdf",
66
+ "/@syncfusion/ej2-pdfviewer",
67
+ "/@syncfusion/ej2-pivotview",
68
+ "/@syncfusion/ej2-popups",
69
+ "/@syncfusion/ej2-progressbar",
70
+ "/@syncfusion/ej2-querybuilder",
71
+ "/@syncfusion/ej2-react-base",
72
+ "/@syncfusion/ej2-react-buttons",
73
+ "/@syncfusion/ej2-react-calendars",
74
+ "/@syncfusion/ej2-react-charts",
75
+ "/@syncfusion/ej2-react-documenteditor",
76
+ "/@syncfusion/ej2-react-dropdowns",
77
+ "/@syncfusion/ej2-react-gantt",
78
+ "/@syncfusion/ej2-react-grids",
79
+ "/@syncfusion/ej2-react-image-editor",
80
+ "/@syncfusion/ej2-react-inplace-editor",
81
+ "/@syncfusion/ej2-react-navigations",
82
+ "/@syncfusion/ej2-react-pdfviewer",
83
+ "/@syncfusion/ej2-react-pivotview",
84
+ "/@syncfusion/ej2-react-querybuilder",
85
+ "/@syncfusion/ej2-react-ribbon",
86
+ "/@syncfusion/ej2-react-richtexteditor",
87
+ "/@syncfusion/ej2-react-splitbuttons",
88
+ "/@syncfusion/ej2-react-spreadsheet",
89
+ "/@syncfusion/ej2-ribbon",
90
+ "/@syncfusion/ej2-richtexteditor",
91
+ "/@syncfusion/ej2-schedule",
92
+ "/@syncfusion/ej2-splitbuttons",
93
+ "/@syncfusion/ej2-spreadsheet",
94
+ "/@syncfusion/ej2-svg-base",
95
+ "/@syncfusion/ej2-treegrid",
96
+ "/@syncfusion/ej2-treemap",
97
+ "/@syncfusion/ej2-vue-base",
98
+ "/@syncfusion/ej2-vue-buttons",
99
+ "/@syncfusion/ej2-vue-calendars",
100
+ "/@syncfusion/ej2-vue-charts",
101
+ "/@syncfusion/ej2-vue-documenteditor",
102
+ "/@syncfusion/ej2-vue-dropdowns",
103
+ "/@syncfusion/ej2-vue-gantt",
104
+ "/@syncfusion/ej2-vue-grids",
105
+ "/@syncfusion/ej2-vue-image-editor",
106
+ "/@syncfusion/ej2-vue-inplace-editor",
107
+ "/@syncfusion/ej2-vue-navigations",
108
+ "/@syncfusion/ej2-vue-pdfviewer",
109
+ "/@syncfusion/ej2-vue-pivotview",
110
+ "/@syncfusion/ej2-vue-querybuilder",
111
+ "/@syncfusion/ej2-vue-ribbon",
112
+ "/@syncfusion/ej2-vue-richtexteditor",
113
+ "/@syncfusion/ej2-vue-splitbuttons",
114
+ "/@syncfusion/ej2-vue-spreadsheet"
115
+ ],
116
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-23.1.38.tgz",
117
+ "_shasum": "afe76a06937dbec7b6fb8197fdae74a5f50cce31",
118
+ "_spec": "@syncfusion/ej2-base@*",
119
+ "_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
120
+ "author": {
121
+ "name": "Syncfusion Inc."
122
+ },
123
+ "bin": {
124
+ "syncfusion-license": "bin/syncfusion-license.js"
125
+ },
126
+ "bugs": {
127
+ "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/issues"
128
+ },
129
+ "bundleDependencies": false,
130
+ "dependencies": {
131
+ "@syncfusion/ej2-icons": "~23.1.36"
132
+ },
133
+ "deprecated": false,
134
+ "description": "A common package of Essential JS 2 base libraries, methods and class definitions",
135
+ "devDependencies": {},
136
+ "es2015": "./dist/es6/ej2-base.es5.js",
137
+ "homepage": "https://www.syncfusion.com/javascript-ui-controls",
138
+ "keywords": [
139
+ "ej2",
140
+ "syncfusion",
141
+ "ej2-base",
142
+ "web-components",
143
+ "typescript",
144
+ "base",
145
+ "common",
146
+ "core",
147
+ "library",
148
+ "ajax",
149
+ "animation",
150
+ "internationalization",
151
+ "drag",
152
+ "drop",
153
+ "drag-drop",
154
+ "template",
155
+ "template-engine",
156
+ "rtl",
157
+ "right-to-left",
158
+ "persistence",
159
+ "state-persistence",
160
+ "theme",
161
+ "styles"
162
+ ],
163
+ "license": "SEE LICENSE IN license",
164
+ "main": "./dist/ej2-base.umd.min.js",
165
+ "module": "./index.js",
166
+ "name": "@syncfusion/ej2-base",
167
+ "repository": {
168
+ "type": "git",
169
+ "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
170
+ },
171
+ "typings": "index.d.ts",
172
+ "version": "23.1.41",
173
+ "sideEffects": true
174
+ }
package/src/fetch.js CHANGED
@@ -78,7 +78,7 @@ var Fetch = /** @class */ (function () {
78
78
  return this.fetchResponse.then(function (response) {
79
79
  _this.triggerEvent(_this['onLoad'], response);
80
80
  if (!response.ok) {
81
- throw new Error(response.statusText);
81
+ throw response;
82
82
  }
83
83
  var responseType = 'text';
84
84
  for (var _i = 0, _a = Object.keys(contentTypes); _i < _a.length; _i++) {
@@ -341,6 +341,7 @@ var DateParser = /** @class */ (function () {
341
341
  // eslint-disable-next-line
342
342
  matchString = ((prop === 'month') && (!parseOptions.isIslamic) && (parseOptions.culture === 'en' || parseOptions.culture === 'en-GB' || parseOptions.culture === 'en-US'))
343
343
  ? matchString[0].toUpperCase() + matchString.substring(1).toLowerCase() : matchString;
344
+ matchString = ((prop !== 'month') && (prop === 'designator') && parseOptions.culture === 'en-GB') ? matchString.toLowerCase() : matchString;
344
345
  // eslint-disable-next-line
345
346
  retOptions[prop] = parseOptions[prop][matchString];
346
347
  }
@@ -31,7 +31,6 @@ export declare class SanitizeHtmlHelper {
31
31
  static beforeSanitize(): BeforeSanitizeHtml;
32
32
  static sanitize(value: string): string;
33
33
  static serializeValue(item: BeforeSanitizeHtml, value: string): string;
34
- private static sanitizeQuotes;
35
34
  private static removeElement;
36
35
  private static removeXssTags;
37
36
  private static removeJsEvents;
@@ -128,7 +128,7 @@ var SanitizeHtmlHelper = /** @class */ (function () {
128
128
  this.removeAttrs = item.selectors.attributes;
129
129
  this.removeTags = item.selectors.tags;
130
130
  this.wrapElement = document.createElement('div');
131
- this.wrapElement.innerHTML = this.sanitizeQuotes(value);
131
+ this.wrapElement.innerHTML = value;
132
132
  this.removeXssTags();
133
133
  this.removeJsEvents();
134
134
  this.removeXssAttrs();
@@ -136,47 +136,6 @@ var SanitizeHtmlHelper = /** @class */ (function () {
136
136
  this.removeElement();
137
137
  return tempEleValue.replace(/&amp;/g, '&');
138
138
  };
139
- SanitizeHtmlHelper.sanitizeQuotes = function (input) {
140
- var sanityChars = [96, 39, 34];
141
- var escape = 92;
142
- var sanitizedValue = '';
143
- var quoteCounts = {
144
- 96: 0,
145
- 39: 0,
146
- 34: 0
147
- };
148
- var isPreviousCharBackslash = false;
149
- for (var i = 0; i < input.length; i++) {
150
- var currentChar = input.charCodeAt(i);
151
- if (sanityChars.indexOf(currentChar) !== -1 && !isPreviousCharBackslash) {
152
- quoteCounts[currentChar + '']++;
153
- }
154
- isPreviousCharBackslash = currentChar === escape;
155
- }
156
- try {
157
- // Replace the quotes which has total count is in odd number
158
- // Previous char is not backslash, open parenthesis and
159
- // Next is not close parenthesis
160
- for (var i = 0; i < input.length; i++) {
161
- var currentChar = input.charCodeAt(i);
162
- var previousChar = i > 0 ? input.charCodeAt(i - 1) : null;
163
- var nextChar = i < input.length - 1 ? input.charCodeAt(i + 1) : null;
164
- if (sanityChars.indexOf(currentChar) !== -1 && previousChar !== escape) {
165
- if (quoteCounts[currentChar + ''] % 2 === 1 && previousChar !== 40 && nextChar !== 41) {
166
- sanitizedValue += String.fromCharCode(escape);
167
- }
168
- sanitizedValue += input[i + ''];
169
- }
170
- else {
171
- sanitizedValue += input[i + ''];
172
- }
173
- }
174
- return sanitizedValue;
175
- }
176
- catch (error) {
177
- return input;
178
- }
179
- };
180
139
  SanitizeHtmlHelper.removeElement = function () {
181
140
  // Removes an element's attibute to avoid html tag validation
182
141
  var nodes = this.wrapElement.children;
package/src/template.js CHANGED
@@ -181,7 +181,7 @@ function evalExp(str, nameSpace, helper, ignorePrefix) {
181
181
  }
182
182
  else {
183
183
  // evaluate normal expression
184
- cnt = cnt !== '' ? '"+' + addNameSpace(cnt.replace(/,/gi, '+' + nameSpace + '.'), (localKeys.indexOf(cnt) === -1), nameSpace, localKeys, ignorePrefix) + '+"' : ' ';
184
+ cnt = cnt !== '' ? '"+' + addNameSpace(cnt.replace(/,/gi, '+' + nameSpace + '.'), (localKeys.indexOf(cnt) === -1), nameSpace, localKeys, ignorePrefix) + '+"' : '${}';
185
185
  }
186
186
  }
187
187
  return cnt;