@progress/kendo-angular-common 23.3.0-develop.20 → 23.3.0-develop.21
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.
|
@@ -558,17 +558,39 @@ class ResizeService {
|
|
|
558
558
|
}
|
|
559
559
|
|
|
560
560
|
// eslint-disable import/no-deprecated
|
|
561
|
-
|
|
562
|
-
const
|
|
561
|
+
const applyStyles = (el, styles) => {
|
|
562
|
+
for (const prop in styles) {
|
|
563
|
+
el.style.setProperty(prop, styles[prop]);
|
|
564
|
+
}
|
|
565
|
+
};
|
|
566
|
+
const div = (styles) => {
|
|
563
567
|
const el = document.createElement('div');
|
|
564
|
-
el
|
|
568
|
+
applyStyles(el, styles);
|
|
565
569
|
return el;
|
|
566
570
|
};
|
|
567
571
|
const computedProp = (elem, prop) => getComputedStyle(elem, null).getPropertyValue(prop);
|
|
568
|
-
const
|
|
569
|
-
'
|
|
570
|
-
|
|
571
|
-
|
|
572
|
+
const WRAP_STYLES = {
|
|
573
|
+
'position': 'absolute',
|
|
574
|
+
'display': 'block',
|
|
575
|
+
'left': '0',
|
|
576
|
+
'top': '0',
|
|
577
|
+
'right': '0',
|
|
578
|
+
'bottom': '0',
|
|
579
|
+
'z-index': '-1',
|
|
580
|
+
'overflow': 'hidden',
|
|
581
|
+
'visibility': 'hidden'
|
|
582
|
+
};
|
|
583
|
+
const EXPAND_CHILD_STYLES = {
|
|
584
|
+
'position': 'absolute',
|
|
585
|
+
'left': '0',
|
|
586
|
+
'top': '0',
|
|
587
|
+
'transition': '0s'
|
|
588
|
+
};
|
|
589
|
+
const SHRINK_CHILD_STYLES = {
|
|
590
|
+
...EXPAND_CHILD_STYLES,
|
|
591
|
+
'width': '200%',
|
|
592
|
+
'height': '200%'
|
|
593
|
+
};
|
|
572
594
|
class ResizeCompatService extends ResizeService {
|
|
573
595
|
element;
|
|
574
596
|
ngZone;
|
|
@@ -623,14 +645,14 @@ class ResizeCompatService extends ResizeService {
|
|
|
623
645
|
}
|
|
624
646
|
render() {
|
|
625
647
|
const element = this.element?.nativeElement;
|
|
626
|
-
element
|
|
648
|
+
applyStyles(element, WRAP_STYLES);
|
|
627
649
|
element.setAttribute('dir', 'ltr');
|
|
628
|
-
this.expand = div(
|
|
629
|
-
this.expandChild = div(
|
|
650
|
+
this.expand = div(WRAP_STYLES);
|
|
651
|
+
this.expandChild = div(EXPAND_CHILD_STYLES);
|
|
630
652
|
this.expand.appendChild(this.expandChild);
|
|
631
653
|
element.appendChild(this.expand);
|
|
632
|
-
this.shrink = div(
|
|
633
|
-
const shrinkChild = div(
|
|
654
|
+
this.shrink = div(WRAP_STYLES);
|
|
655
|
+
const shrinkChild = div(SHRINK_CHILD_STYLES);
|
|
634
656
|
this.shrink.appendChild(shrinkChild);
|
|
635
657
|
element.appendChild(this.shrink);
|
|
636
658
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-common",
|
|
3
|
-
"version": "23.3.0-develop.
|
|
3
|
+
"version": "23.3.0-develop.21",
|
|
4
4
|
"description": "Kendo UI for Angular - Utility Package",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@progress/kendo-common": "^1.0.1",
|
|
24
24
|
"@progress/kendo-draggable": "^3.0.2",
|
|
25
25
|
"tslib": "^2.3.1",
|
|
26
|
-
"@progress/kendo-angular-schematics": "23.3.0-develop.
|
|
26
|
+
"@progress/kendo-angular-schematics": "23.3.0-develop.21"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|