@progress/kendo-angular-common 16.3.1-develop.3 → 16.4.0-develop.2
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.
|
@@ -3,15 +3,14 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { isPresent } from "./ng-class-parser";
|
|
6
|
+
import { take } from "rxjs/operators";
|
|
6
7
|
/**
|
|
7
8
|
* @hidden
|
|
8
9
|
*/
|
|
9
|
-
export const setHTMLAttributes = (attributes, renderer, element) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
}
|
|
10
|
+
export const setHTMLAttributes = (attributes, renderer, element, zone) => {
|
|
11
|
+
zone ? zone.onStable.pipe(take(1)).subscribe(() => {
|
|
12
|
+
applyAttributes(attributes, renderer, element);
|
|
13
|
+
}) : applyAttributes(attributes, renderer, element);
|
|
15
14
|
};
|
|
16
15
|
/**
|
|
17
16
|
* @hidden
|
|
@@ -33,3 +32,13 @@ export const parseAttributes = (target, source) => {
|
|
|
33
32
|
});
|
|
34
33
|
return targetObj;
|
|
35
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* @hidden
|
|
37
|
+
*/
|
|
38
|
+
export const applyAttributes = (attributes, renderer, element) => {
|
|
39
|
+
for (const attribute in attributes) {
|
|
40
|
+
if (attribute && isPresent(attributes[attribute])) {
|
|
41
|
+
renderer.setAttribute(element, attribute, attributes[attribute]);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
6
|
import { EventEmitter, Directive, Input, Output, NgModule, Injectable, Component, HostBinding, ViewChild, Optional, isDevMode } from '@angular/core';
|
|
7
7
|
import { detectDesktopBrowser, detectMobileOS } from '@progress/kendo-common';
|
|
8
|
+
import { take, auditTime } from 'rxjs/operators';
|
|
8
9
|
import { Draggable } from '@progress/kendo-draggable';
|
|
9
10
|
import * as i1 from '@angular/common';
|
|
10
11
|
import { CommonModule } from '@angular/common';
|
|
11
|
-
import { auditTime, take } from 'rxjs/operators';
|
|
12
12
|
import { merge, fromEvent, from, Subscription } from 'rxjs';
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -140,12 +140,10 @@ const parseArrayClassNames = (value) => {
|
|
|
140
140
|
/**
|
|
141
141
|
* @hidden
|
|
142
142
|
*/
|
|
143
|
-
const setHTMLAttributes = (attributes, renderer, element) => {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
}
|
|
143
|
+
const setHTMLAttributes = (attributes, renderer, element, zone) => {
|
|
144
|
+
zone ? zone.onStable.pipe(take(1)).subscribe(() => {
|
|
145
|
+
applyAttributes(attributes, renderer, element);
|
|
146
|
+
}) : applyAttributes(attributes, renderer, element);
|
|
149
147
|
};
|
|
150
148
|
/**
|
|
151
149
|
* @hidden
|
|
@@ -167,6 +165,16 @@ const parseAttributes = (target, source) => {
|
|
|
167
165
|
});
|
|
168
166
|
return targetObj;
|
|
169
167
|
};
|
|
168
|
+
/**
|
|
169
|
+
* @hidden
|
|
170
|
+
*/
|
|
171
|
+
const applyAttributes = (attributes, renderer, element) => {
|
|
172
|
+
for (const attribute in attributes) {
|
|
173
|
+
if (attribute && isPresent(attributes[attribute])) {
|
|
174
|
+
renderer.setAttribute(element, attribute, attributes[attribute]);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
};
|
|
170
178
|
|
|
171
179
|
/**
|
|
172
180
|
* @hidden
|
|
@@ -1448,5 +1456,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1448
1456
|
* Generated bundle index. Do not edit.
|
|
1449
1457
|
*/
|
|
1450
1458
|
|
|
1451
|
-
export { AdornmentsModule, DraggableDirective, DraggableModule, EventsModule, EventsOutsideAngularDirective, KendoInput, Keys, MultiTabStop, PrefixTemplateDirective, PreventableEvent, ResizeBatchService, ResizeCompatService, ResizeObserverService, ResizeSensorComponent, ResizeSensorModule, ScrollbarWidthService, SeparatorComponent, SuffixTemplateDirective, ToggleButtonTabStopDirective, ToggleButtonTabStopModule, WatermarkModule, WatermarkOverlayComponent, anyChanged, closest, closestBySelector, closestInScope, contains, findElement, findFocusable, findFocusableChild, focusableSelector, guid, hasClasses, hasObservers, isChanged, isControlRequired, isDocumentAvailable, isFirefox, isFocusable, isFocusableWithTabKey, isObject, isObjectPresent, isPresent, isSafari, isString, isVisible, matchesClasses, matchesNodeName, parseAttributes, parseCSSClassNames, removeHTMLAttributes, rtlScrollPosition, scrollbarWidth, setHTMLAttributes, shouldShowValidationUI, splitStringToArray };
|
|
1459
|
+
export { AdornmentsModule, DraggableDirective, DraggableModule, EventsModule, EventsOutsideAngularDirective, KendoInput, Keys, MultiTabStop, PrefixTemplateDirective, PreventableEvent, ResizeBatchService, ResizeCompatService, ResizeObserverService, ResizeSensorComponent, ResizeSensorModule, ScrollbarWidthService, SeparatorComponent, SuffixTemplateDirective, ToggleButtonTabStopDirective, ToggleButtonTabStopModule, WatermarkModule, WatermarkOverlayComponent, anyChanged, applyAttributes, closest, closestBySelector, closestInScope, contains, findElement, findFocusable, findFocusableChild, focusableSelector, guid, hasClasses, hasObservers, isChanged, isControlRequired, isDocumentAvailable, isFirefox, isFocusable, isFocusableWithTabKey, isObject, isObjectPresent, isPresent, isSafari, isString, isVisible, matchesClasses, matchesNodeName, parseAttributes, parseCSSClassNames, removeHTMLAttributes, rtlScrollPosition, scrollbarWidth, setHTMLAttributes, shouldShowValidationUI, splitStringToArray };
|
|
1452
1460
|
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
6
|
import { EventEmitter, Directive, Input, Output, NgModule, Injectable, Component, HostBinding, ViewChild, Optional, isDevMode } from '@angular/core';
|
|
7
7
|
import { detectDesktopBrowser, detectMobileOS } from '@progress/kendo-common';
|
|
8
|
+
import { take, auditTime } from 'rxjs/operators';
|
|
8
9
|
import { Draggable } from '@progress/kendo-draggable';
|
|
9
10
|
import * as i1 from '@angular/common';
|
|
10
11
|
import { CommonModule } from '@angular/common';
|
|
11
|
-
import { auditTime, take } from 'rxjs/operators';
|
|
12
12
|
import { merge, fromEvent, from, Subscription } from 'rxjs';
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -140,12 +140,10 @@ const parseArrayClassNames = (value) => {
|
|
|
140
140
|
/**
|
|
141
141
|
* @hidden
|
|
142
142
|
*/
|
|
143
|
-
const setHTMLAttributes = (attributes, renderer, element) => {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
}
|
|
143
|
+
const setHTMLAttributes = (attributes, renderer, element, zone) => {
|
|
144
|
+
zone ? zone.onStable.pipe(take(1)).subscribe(() => {
|
|
145
|
+
applyAttributes(attributes, renderer, element);
|
|
146
|
+
}) : applyAttributes(attributes, renderer, element);
|
|
149
147
|
};
|
|
150
148
|
/**
|
|
151
149
|
* @hidden
|
|
@@ -167,6 +165,16 @@ const parseAttributes = (target, source) => {
|
|
|
167
165
|
});
|
|
168
166
|
return targetObj;
|
|
169
167
|
};
|
|
168
|
+
/**
|
|
169
|
+
* @hidden
|
|
170
|
+
*/
|
|
171
|
+
const applyAttributes = (attributes, renderer, element) => {
|
|
172
|
+
for (const attribute in attributes) {
|
|
173
|
+
if (attribute && isPresent(attributes[attribute])) {
|
|
174
|
+
renderer.setAttribute(element, attribute, attributes[attribute]);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
};
|
|
170
178
|
|
|
171
179
|
/**
|
|
172
180
|
* @hidden
|
|
@@ -1437,5 +1445,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1437
1445
|
* Generated bundle index. Do not edit.
|
|
1438
1446
|
*/
|
|
1439
1447
|
|
|
1440
|
-
export { AdornmentsModule, DraggableDirective, DraggableModule, EventsModule, EventsOutsideAngularDirective, KendoInput, Keys, MultiTabStop, PrefixTemplateDirective, PreventableEvent, ResizeBatchService, ResizeCompatService, ResizeObserverService, ResizeSensorComponent, ResizeSensorModule, ScrollbarWidthService, SeparatorComponent, SuffixTemplateDirective, ToggleButtonTabStopDirective, ToggleButtonTabStopModule, WatermarkModule, WatermarkOverlayComponent, anyChanged, closest, closestBySelector, closestInScope, contains, findElement, findFocusable, findFocusableChild, focusableSelector, guid, hasClasses, hasObservers, isChanged, isControlRequired, isDocumentAvailable, isFirefox, isFocusable, isFocusableWithTabKey, isObject, isObjectPresent, isPresent, isSafari, isString, isVisible, matchesClasses, matchesNodeName, parseAttributes, parseCSSClassNames, removeHTMLAttributes, rtlScrollPosition, scrollbarWidth, setHTMLAttributes, shouldShowValidationUI, splitStringToArray };
|
|
1448
|
+
export { AdornmentsModule, DraggableDirective, DraggableModule, EventsModule, EventsOutsideAngularDirective, KendoInput, Keys, MultiTabStop, PrefixTemplateDirective, PreventableEvent, ResizeBatchService, ResizeCompatService, ResizeObserverService, ResizeSensorComponent, ResizeSensorModule, ScrollbarWidthService, SeparatorComponent, SuffixTemplateDirective, ToggleButtonTabStopDirective, ToggleButtonTabStopModule, WatermarkModule, WatermarkOverlayComponent, anyChanged, applyAttributes, closest, closestBySelector, closestInScope, contains, findElement, findFocusable, findFocusableChild, focusableSelector, guid, hasClasses, hasObservers, isChanged, isControlRequired, isDocumentAvailable, isFirefox, isFocusable, isFocusableWithTabKey, isObject, isObjectPresent, isPresent, isSafari, isString, isVisible, matchesClasses, matchesNodeName, parseAttributes, parseCSSClassNames, removeHTMLAttributes, rtlScrollPosition, scrollbarWidth, setHTMLAttributes, shouldShowValidationUI, splitStringToArray };
|
|
1441
1449
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-common",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.4.0-develop.2",
|
|
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": "^0.2.1",
|
|
24
24
|
"@progress/kendo-draggable": "^3.0.2",
|
|
25
25
|
"tslib": "^2.3.1",
|
|
26
|
-
"@progress/kendo-angular-schematics": "16.
|
|
26
|
+
"@progress/kendo-angular-schematics": "16.4.0-develop.2"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Renderer2 } from "@angular/core";
|
|
5
|
+
import { NgZone, Renderer2 } from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* @hidden
|
|
8
8
|
*/
|
|
9
9
|
export declare const setHTMLAttributes: (attributes: {
|
|
10
10
|
[key: string]: string;
|
|
11
|
-
}, renderer: Renderer2, element: Element) => void;
|
|
11
|
+
}, renderer: Renderer2, element: Element, zone?: NgZone) => void;
|
|
12
12
|
/**
|
|
13
13
|
* @hidden
|
|
14
14
|
*/
|
|
@@ -25,3 +25,9 @@ export declare const parseAttributes: (target: {
|
|
|
25
25
|
}) => {
|
|
26
26
|
[key: string]: string;
|
|
27
27
|
};
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
export declare const applyAttributes: (attributes: {
|
|
32
|
+
[key: string]: string;
|
|
33
|
+
}, renderer: Renderer2, element: Element) => void;
|