@syncfusion/ej2-base 19.3.47 → 19.3.57
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 +18 -0
- package/{README.md → ReadMe.md} +0 -0
- package/dist/ej2-base.umd.min.js +1 -10
- package/dist/ej2-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-base.es2015.js +17 -14
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +7 -6
- package/dist/es6/ej2-base.es5.js.map +1 -1
- package/dist/global/ej2-base.min.js +1 -10
- package/dist/global/ej2-base.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/package.json +146 -155
- package/src/animation.js +1 -1
- package/src/dom.js +3 -2
- package/src/intl/intl-base.js +1 -1
- package/src/template.js +1 -1
- package/src/util.js +1 -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
|
@@ -385,7 +385,7 @@ function print(element, printWindow) {
|
|
|
385
385
|
*/
|
|
386
386
|
function formatUnit(value) {
|
|
387
387
|
const result = value + '';
|
|
388
|
-
if (result
|
|
388
|
+
if (result.match(/auto|cm|mm|in|px|pt|pc|%|em|ex|ch|rem|vw|vh|vmin|vmax/)) {
|
|
389
389
|
return result;
|
|
390
390
|
}
|
|
391
391
|
return result + 'px';
|
|
@@ -3904,7 +3904,7 @@ var IntlBase;
|
|
|
3904
3904
|
if (day < 4) {
|
|
3905
3905
|
weeknum = Math.floor((daynum + day - 1) / 7) + 1;
|
|
3906
3906
|
if (weeknum > 52) {
|
|
3907
|
-
const nYear = new Date(
|
|
3907
|
+
const nYear = new Date(date.getFullYear() + 1, 0, 1);
|
|
3908
3908
|
let nday = nYear.getDay();
|
|
3909
3909
|
nday = nday >= 0 ? nday : nday + 7;
|
|
3910
3910
|
weeknum = nday < 4 ? 1 : 53;
|
|
@@ -4790,7 +4790,8 @@ function selectAll(selector, context = document, needsVDOM) {
|
|
|
4790
4790
|
* @private
|
|
4791
4791
|
*/
|
|
4792
4792
|
function querySelectId(selector) {
|
|
4793
|
-
|
|
4793
|
+
const charRegex = /(!|"|\$|%|&|'|\(|\)|\*|\/|:|;|<|=|\?|@|\]|\^|`|{|}|\||\+|~)/g;
|
|
4794
|
+
if (selector.match(/#[0-9]/g) || selector.match(charRegex)) {
|
|
4794
4795
|
const idList = selector.split(',');
|
|
4795
4796
|
for (let i = 0; i < idList.length; i++) {
|
|
4796
4797
|
const list = idList[i].split(' ');
|
|
@@ -4798,7 +4799,7 @@ function querySelectId(selector) {
|
|
|
4798
4799
|
if (list[j].indexOf('#') > -1) {
|
|
4799
4800
|
if (!list[j].match(/\[.*\]/)) {
|
|
4800
4801
|
const splitId = list[j].split('#');
|
|
4801
|
-
if (splitId[1].match(/^\d/)) {
|
|
4802
|
+
if (splitId[1].match(/^\d/) || splitId[1].match(charRegex)) {
|
|
4802
4803
|
const setId = list[j].split('.');
|
|
4803
4804
|
setId[0] = setId[0].replace(/#/, '[id=\'') + '\']';
|
|
4804
4805
|
list[j] = setId.join('.');
|
|
@@ -6121,7 +6122,7 @@ Animation = Animation_1 = __decorate([
|
|
|
6121
6122
|
function rippleEffect(element, rippleOptions, done) {
|
|
6122
6123
|
const rippleModel = getRippleModel(rippleOptions);
|
|
6123
6124
|
if (rippleModel.rippleFlag === false || (rippleModel.rippleFlag === undefined && !isRippleEnabled)) {
|
|
6124
|
-
return
|
|
6125
|
+
return (() => { });
|
|
6125
6126
|
}
|
|
6126
6127
|
element.setAttribute('data-ripple', 'true');
|
|
6127
6128
|
EventHandler.add(element, 'mousedown', rippleHandler, { parent: element, rippleOptions: rippleModel });
|
|
@@ -8552,16 +8553,18 @@ function compile$1(template, helper, ignorePrefix) {
|
|
|
8552
8553
|
}
|
|
8553
8554
|
str = str.replace(str, str1);
|
|
8554
8555
|
}
|
|
8555
|
-
else if(str.match(
|
|
8556
|
-
|
|
8557
|
-
|
|
8558
|
-
|
|
8559
|
-
var
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
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);
|
|
8563
8567
|
}
|
|
8564
|
-
str = str.replace(str, str1);
|
|
8565
8568
|
}
|
|
8566
8569
|
`;
|
|
8567
8570
|
const fnCode = "var str=\"" + evalExpResult + "\";" + condtion + " return str;";
|