@syncfusion/ej2-base 19.3.47 → 19.3.53
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 +2 -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 +4 -3
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +4 -3
- 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 +64 -7
- package/src/dom.js +3 -2
- package/src/util.js +1 -1
- package/styles/bootstrap5-dark.css +5 -1
- package/styles/bootstrap5.css +5 -1
- package/styles/fabric-dark.css +1 -1
- package/styles/fabric.css +1 -1
- package/styles/highcontrast-light.css +1 -1
- package/styles/highcontrast.css +1 -1
|
@@ -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';
|
|
@@ -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('.');
|