@progress/kendo-angular-common 15.3.0-develop.5 → 15.3.0-develop.6

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.
@@ -0,0 +1,14 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * @hidden
7
+ */
8
+ export const setHTMLAttributes = (attributes, renderer, element) => {
9
+ for (const attribute in attributes) {
10
+ if (attribute) {
11
+ renderer.setAttribute(element, attribute, attributes[attribute]);
12
+ }
13
+ }
14
+ };
package/esm2020/utils.mjs CHANGED
@@ -8,3 +8,4 @@ export { anyChanged } from './utils/any-changed';
8
8
  export { hasObservers } from './utils/has-observers';
9
9
  export { guid } from './utils/guid';
10
10
  export { isSafari, isFirefox } from './utils/detect-browser';
11
+ export { setHTMLAttributes } from './utils/set-html-attributes';
@@ -69,6 +69,17 @@ const isFirefox = (userAgent) => {
69
69
  return (desktopBrowser && desktopBrowser.mozilla) || (mobileOS && mobileOS.browser === 'firefox');
70
70
  };
71
71
 
72
+ /**
73
+ * @hidden
74
+ */
75
+ const setHTMLAttributes = (attributes, renderer, element) => {
76
+ for (const attribute in attributes) {
77
+ if (attribute) {
78
+ renderer.setAttribute(element, attribute, attributes[attribute]);
79
+ }
80
+ }
81
+ };
82
+
72
83
  class DraggableDirective {
73
84
  constructor(element, ngZone) {
74
85
  this.element = element;
@@ -1230,5 +1241,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
1230
1241
  * Generated bundle index. Do not edit.
1231
1242
  */
1232
1243
 
1233
- export { AdornmentsModule, DraggableDirective, DraggableModule, EventsModule, EventsOutsideAngularDirective, KendoInput, Keys, PrefixTemplateDirective, PreventableEvent, ResizeBatchService, ResizeCompatService, ResizeObserverService, ResizeSensorComponent, ResizeSensorModule, ScrollbarWidthService, SeparatorComponent, SuffixTemplateDirective, WatermarkModule, WatermarkOverlayComponent, anyChanged, closest, closestBySelector, closestInScope, contains, findElement, findFocusable, findFocusableChild, focusableSelector, guid, hasClasses, hasObservers, isChanged, isDocumentAvailable, isFirefox, isFocusable, isFocusableWithTabKey, isObject, isPresent, isSafari, isString, isVisible, matchesClasses, matchesNodeName, parseCSSClassNames, rtlScrollPosition, scrollbarWidth, shouldShowValidationUI, splitStringToArray };
1244
+ export { AdornmentsModule, DraggableDirective, DraggableModule, EventsModule, EventsOutsideAngularDirective, KendoInput, Keys, PrefixTemplateDirective, PreventableEvent, ResizeBatchService, ResizeCompatService, ResizeObserverService, ResizeSensorComponent, ResizeSensorModule, ScrollbarWidthService, SeparatorComponent, SuffixTemplateDirective, WatermarkModule, WatermarkOverlayComponent, anyChanged, closest, closestBySelector, closestInScope, contains, findElement, findFocusable, findFocusableChild, focusableSelector, guid, hasClasses, hasObservers, isChanged, isDocumentAvailable, isFirefox, isFocusable, isFocusableWithTabKey, isObject, isPresent, isSafari, isString, isVisible, matchesClasses, matchesNodeName, parseCSSClassNames, rtlScrollPosition, scrollbarWidth, setHTMLAttributes, shouldShowValidationUI, splitStringToArray };
1234
1245
 
@@ -69,6 +69,17 @@ const isFirefox = (userAgent) => {
69
69
  return (desktopBrowser && desktopBrowser.mozilla) || (mobileOS && mobileOS.browser === 'firefox');
70
70
  };
71
71
 
72
+ /**
73
+ * @hidden
74
+ */
75
+ const setHTMLAttributes = (attributes, renderer, element) => {
76
+ for (const attribute in attributes) {
77
+ if (attribute) {
78
+ renderer.setAttribute(element, attribute, attributes[attribute]);
79
+ }
80
+ }
81
+ };
82
+
72
83
  class DraggableDirective {
73
84
  constructor(element, ngZone) {
74
85
  this.element = element;
@@ -1222,5 +1233,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
1222
1233
  * Generated bundle index. Do not edit.
1223
1234
  */
1224
1235
 
1225
- export { AdornmentsModule, DraggableDirective, DraggableModule, EventsModule, EventsOutsideAngularDirective, KendoInput, Keys, PrefixTemplateDirective, PreventableEvent, ResizeBatchService, ResizeCompatService, ResizeObserverService, ResizeSensorComponent, ResizeSensorModule, ScrollbarWidthService, SeparatorComponent, SuffixTemplateDirective, WatermarkModule, WatermarkOverlayComponent, anyChanged, closest, closestBySelector, closestInScope, contains, findElement, findFocusable, findFocusableChild, focusableSelector, guid, hasClasses, hasObservers, isChanged, isDocumentAvailable, isFirefox, isFocusable, isFocusableWithTabKey, isObject, isPresent, isSafari, isString, isVisible, matchesClasses, matchesNodeName, parseCSSClassNames, rtlScrollPosition, scrollbarWidth, shouldShowValidationUI, splitStringToArray };
1236
+ export { AdornmentsModule, DraggableDirective, DraggableModule, EventsModule, EventsOutsideAngularDirective, KendoInput, Keys, PrefixTemplateDirective, PreventableEvent, ResizeBatchService, ResizeCompatService, ResizeObserverService, ResizeSensorComponent, ResizeSensorModule, ScrollbarWidthService, SeparatorComponent, SuffixTemplateDirective, WatermarkModule, WatermarkOverlayComponent, anyChanged, closest, closestBySelector, closestInScope, contains, findElement, findFocusable, findFocusableChild, focusableSelector, guid, hasClasses, hasObservers, isChanged, isDocumentAvailable, isFirefox, isFocusable, isFocusableWithTabKey, isObject, isPresent, isSafari, isString, isVisible, matchesClasses, matchesNodeName, parseCSSClassNames, rtlScrollPosition, scrollbarWidth, setHTMLAttributes, shouldShowValidationUI, splitStringToArray };
1226
1237
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-common",
3
- "version": "15.3.0-develop.5",
3
+ "version": "15.3.0-develop.6",
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": "15.3.0-develop.5"
26
+ "@progress/kendo-angular-schematics": "15.3.0-develop.6"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public"
@@ -0,0 +1,11 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Renderer2 } from "@angular/core";
6
+ /**
7
+ * @hidden
8
+ */
9
+ export declare const setHTMLAttributes: (attributes: {
10
+ [key: string]: string;
11
+ }, renderer: Renderer2, element: Element) => void;
package/utils.d.ts CHANGED
@@ -8,3 +8,4 @@ export { anyChanged } from './utils/any-changed';
8
8
  export { hasObservers } from './utils/has-observers';
9
9
  export { guid } from './utils/guid';
10
10
  export { isSafari, isFirefox } from './utils/detect-browser';
11
+ export { setHTMLAttributes } from './utils/set-html-attributes';