@syncfusion/ej2-base 19.3.43 → 19.3.56
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.
- package/CHANGELOG.md +22 -0
- package/dist/ej2-base.umd.min.js +2 -2
- package/dist/ej2-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-base.es2015.js +28 -13
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +18 -5
- package/dist/es6/ej2-base.es5.js.map +1 -1
- package/dist/global/ej2-base.min.js +2 -2
- package/dist/global/ej2-base.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +7 -73
- package/src/browser.js +6 -0
- package/src/dom.js +3 -2
- package/src/intl/intl-base.js +1 -1
- package/src/template.js +1 -1
- package/src/util.js +7 -1
- package/styles/bootstrap-dark.css +31 -0
- package/styles/bootstrap.css +31 -0
- package/styles/bootstrap4.css +31 -0
- package/styles/bootstrap5-dark.css +36 -1
- package/styles/bootstrap5.css +36 -1
- package/styles/common/_core.scss +36 -0
- package/styles/fabric-dark.css +32 -1
- package/styles/fabric.css +32 -1
- package/styles/highcontrast-light.css +32 -1
- package/styles/highcontrast.css +32 -1
- package/styles/material-dark.css +31 -0
- package/styles/material.css +31 -0
- package/styles/tailwind-dark.css +31 -0
- package/styles/tailwind.css +31 -0
|
@@ -348,6 +348,12 @@ function throwError(message) {
|
|
|
348
348
|
function print(element, printWindow) {
|
|
349
349
|
const div = document.createElement('div');
|
|
350
350
|
const links = [].slice.call(document.getElementsByTagName('head')[0].querySelectorAll('base, link, style'));
|
|
351
|
+
const blinks = [].slice.call(document.getElementsByTagName('body')[0].querySelectorAll('link, style'));
|
|
352
|
+
if (blinks.length) {
|
|
353
|
+
for (let l = 0, len = blinks.length; l < len; l++) {
|
|
354
|
+
links.push(blinks[l]);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
351
357
|
let reference = '';
|
|
352
358
|
if (isNullOrUndefined(printWindow)) {
|
|
353
359
|
printWindow = window.open('', 'print', 'height=452,width=1024,tabbar=no');
|
|
@@ -379,7 +385,7 @@ function print(element, printWindow) {
|
|
|
379
385
|
*/
|
|
380
386
|
function formatUnit(value) {
|
|
381
387
|
const result = value + '';
|
|
382
|
-
if (result
|
|
388
|
+
if (result.match(/auto|cm|mm|in|px|pt|pc|%|em|ex|ch|rem|vw|vh|vmin|vmax/)) {
|
|
383
389
|
return result;
|
|
384
390
|
}
|
|
385
391
|
return result + 'px';
|
|
@@ -3898,7 +3904,7 @@ var IntlBase;
|
|
|
3898
3904
|
if (day < 4) {
|
|
3899
3905
|
weeknum = Math.floor((daynum + day - 1) / 7) + 1;
|
|
3900
3906
|
if (weeknum > 52) {
|
|
3901
|
-
const nYear = new Date(
|
|
3907
|
+
const nYear = new Date(date.getFullYear() + 1, 0, 1);
|
|
3902
3908
|
let nday = nYear.getDay();
|
|
3903
3909
|
nday = nday >= 0 ? nday : nday + 7;
|
|
3904
3910
|
weeknum = nday < 4 ? 1 : 53;
|
|
@@ -4200,6 +4206,12 @@ class Browser {
|
|
|
4200
4206
|
if ('undefined' === typeof browserDetails[key]) {
|
|
4201
4207
|
return browserDetails[key] = regX.test(Browser.userAgent);
|
|
4202
4208
|
}
|
|
4209
|
+
if (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1 && Browser.isTouch === true) {
|
|
4210
|
+
browserDetails['isIos'] = true;
|
|
4211
|
+
browserDetails['isDevice'] = true;
|
|
4212
|
+
browserDetails['isTouch'] = true;
|
|
4213
|
+
browserDetails['isPointer'] = true;
|
|
4214
|
+
}
|
|
4203
4215
|
return browserDetails[key];
|
|
4204
4216
|
}
|
|
4205
4217
|
//Properties
|
|
@@ -4778,7 +4790,8 @@ function selectAll(selector, context = document, needsVDOM) {
|
|
|
4778
4790
|
* @private
|
|
4779
4791
|
*/
|
|
4780
4792
|
function querySelectId(selector) {
|
|
4781
|
-
|
|
4793
|
+
const charRegex = /(!|"|\$|%|&|'|\(|\)|\*|\/|:|;|<|=|\?|@|\]|\^|`|{|}|\||\+|~)/g;
|
|
4794
|
+
if (selector.match(/#[0-9]/g) || selector.match(charRegex)) {
|
|
4782
4795
|
const idList = selector.split(',');
|
|
4783
4796
|
for (let i = 0; i < idList.length; i++) {
|
|
4784
4797
|
const list = idList[i].split(' ');
|
|
@@ -4786,7 +4799,7 @@ function querySelectId(selector) {
|
|
|
4786
4799
|
if (list[j].indexOf('#') > -1) {
|
|
4787
4800
|
if (!list[j].match(/\[.*\]/)) {
|
|
4788
4801
|
const splitId = list[j].split('#');
|
|
4789
|
-
if (splitId[1].match(/^\d/)) {
|
|
4802
|
+
if (splitId[1].match(/^\d/) || splitId[1].match(charRegex)) {
|
|
4790
4803
|
const setId = list[j].split('.');
|
|
4791
4804
|
setId[0] = setId[0].replace(/#/, '[id=\'') + '\']';
|
|
4792
4805
|
list[j] = setId.join('.');
|
|
@@ -8540,16 +8553,18 @@ function compile$1(template, helper, ignorePrefix) {
|
|
|
8540
8553
|
}
|
|
8541
8554
|
str = str.replace(str, str1);
|
|
8542
8555
|
}
|
|
8543
|
-
else if(str.match(
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
var
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8556
|
+
else if (str.match(/(?:href='')/) === null) {
|
|
8557
|
+
if(str.match(hrefRegex)) {
|
|
8558
|
+
var check = str.match(hrefRegex);
|
|
8559
|
+
var str1 = str;
|
|
8560
|
+
for (var i=0; i < check.length; i++) {
|
|
8561
|
+
var check1 = str.match(hrefRegex)[i].split('href=')[1];
|
|
8562
|
+
var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;
|
|
8563
|
+
change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;
|
|
8564
|
+
str1 = str1.replace(check1, change);
|
|
8565
|
+
}
|
|
8566
|
+
str = str.replace(str, str1);
|
|
8551
8567
|
}
|
|
8552
|
-
str = str.replace(str, str1);
|
|
8553
8568
|
}
|
|
8554
8569
|
`;
|
|
8555
8570
|
const fnCode = "var str=\"" + evalExpResult + "\";" + condtion + " return str;";
|