@progress/kendo-angular-common 21.4.0-develop.1 → 21.4.0-develop.3
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.
|
@@ -17,16 +17,20 @@ export const isObjectPresent = (value) => {
|
|
|
17
17
|
* @hidden
|
|
18
18
|
*/
|
|
19
19
|
export const isString = (value) => value instanceof String || typeof value === 'string';
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
export const isObject = (value) => isPresent(value) && !Array.isArray(value) && typeof value === 'object';
|
|
20
24
|
/**
|
|
21
25
|
* @hidden
|
|
22
26
|
*/
|
|
23
|
-
export const
|
|
27
|
+
export const isSet = (value) => isPresent(value) && value instanceof Set;
|
|
24
28
|
/**
|
|
25
29
|
* @hidden
|
|
26
30
|
*/
|
|
27
31
|
export const splitStringToArray = (value) => value.trim().replace(/\s+/g, " ").split(' ');
|
|
28
32
|
/**
|
|
29
|
-
* Receives CSS class declarations either as an object, string or array and returns an array of the class names.
|
|
33
|
+
* Receives CSS class declarations either as an object, string, set or array and returns an array of the class names.
|
|
30
34
|
*
|
|
31
35
|
* @hidden
|
|
32
36
|
*/
|
|
@@ -34,6 +38,9 @@ export const parseCSSClassNames = (value) => {
|
|
|
34
38
|
if (Array.isArray(value)) {
|
|
35
39
|
return parseArrayClassNames(value);
|
|
36
40
|
}
|
|
41
|
+
if (isSet(value)) {
|
|
42
|
+
return parseArrayClassNames(Array.from(value));
|
|
43
|
+
}
|
|
37
44
|
if (isObject(value)) {
|
|
38
45
|
return parseObjectClassNames(value);
|
|
39
46
|
}
|
|
@@ -98,16 +98,20 @@ const isObjectPresent = (value) => {
|
|
|
98
98
|
* @hidden
|
|
99
99
|
*/
|
|
100
100
|
const isString = (value) => value instanceof String || typeof value === 'string';
|
|
101
|
+
/**
|
|
102
|
+
* @hidden
|
|
103
|
+
*/
|
|
104
|
+
const isObject = (value) => isPresent(value) && !Array.isArray(value) && typeof value === 'object';
|
|
101
105
|
/**
|
|
102
106
|
* @hidden
|
|
103
107
|
*/
|
|
104
|
-
const
|
|
108
|
+
const isSet = (value) => isPresent(value) && value instanceof Set;
|
|
105
109
|
/**
|
|
106
110
|
* @hidden
|
|
107
111
|
*/
|
|
108
112
|
const splitStringToArray = (value) => value.trim().replace(/\s+/g, " ").split(' ');
|
|
109
113
|
/**
|
|
110
|
-
* Receives CSS class declarations either as an object, string or array and returns an array of the class names.
|
|
114
|
+
* Receives CSS class declarations either as an object, string, set or array and returns an array of the class names.
|
|
111
115
|
*
|
|
112
116
|
* @hidden
|
|
113
117
|
*/
|
|
@@ -115,6 +119,9 @@ const parseCSSClassNames = (value) => {
|
|
|
115
119
|
if (Array.isArray(value)) {
|
|
116
120
|
return parseArrayClassNames(value);
|
|
117
121
|
}
|
|
122
|
+
if (isSet(value)) {
|
|
123
|
+
return parseArrayClassNames(Array.from(value));
|
|
124
|
+
}
|
|
118
125
|
if (isObject(value)) {
|
|
119
126
|
return parseObjectClassNames(value);
|
|
120
127
|
}
|
|
@@ -1786,5 +1793,5 @@ const replaceMessagePlaceholder = (message, name, value) => (message ?? '').repl
|
|
|
1786
1793
|
* Generated bundle index. Do not edit.
|
|
1787
1794
|
*/
|
|
1788
1795
|
|
|
1789
|
-
export { DraggableDirective, EventsOutsideAngularDirective, KENDO_ADORNMENTS, KENDO_COMMON, KENDO_DRAGGABLE, KENDO_EVENTS, KENDO_RESIZESENSOR, KENDO_TEMPLATE_CONTEXT, KENDO_TOGGLEBUTTONTABSTOP, KENDO_WATERMARK, KendoInput, Keys, MultiTabStop, PrefixTemplateDirective, PreventableEvent, ResizeBatchService, ResizeCompatService, ResizeObserverService, ResizeSensorComponent, ScrollbarWidthService, SeparatorComponent, SuffixTemplateDirective, TemplateContextDirective, ToggleButtonTabStopDirective, WatermarkOverlayComponent, anyChanged, applyAttributes, areObjectsEqual, closest, closestBySelector, closestInScope, contains, findElement, findFocusable, findFocusableChild, firefoxMaxHeight, focusableSelector, getLicenseMessage, getter, guid, hasClasses, hasObservers, isChanged, isControlRequired, isDocumentAvailable, isFirefox, isFocusable, isFocusableWithTabKey, isObject, isObjectPresent, isPresent, isSafari, isString, isVisible, matchesClasses, matchesNodeName, normalizeKeys, parseAttributes, parseCSSClassNames, processCssValue, removeHTMLAttributes, replaceMessagePlaceholder, rtlScrollPosition, scrollbarWidth, setHTMLAttributes, setter, shouldShowValidationUI, splitStringToArray };
|
|
1796
|
+
export { DraggableDirective, EventsOutsideAngularDirective, KENDO_ADORNMENTS, KENDO_COMMON, KENDO_DRAGGABLE, KENDO_EVENTS, KENDO_RESIZESENSOR, KENDO_TEMPLATE_CONTEXT, KENDO_TOGGLEBUTTONTABSTOP, KENDO_WATERMARK, KendoInput, Keys, MultiTabStop, PrefixTemplateDirective, PreventableEvent, ResizeBatchService, ResizeCompatService, ResizeObserverService, ResizeSensorComponent, ScrollbarWidthService, SeparatorComponent, SuffixTemplateDirective, TemplateContextDirective, ToggleButtonTabStopDirective, WatermarkOverlayComponent, anyChanged, applyAttributes, areObjectsEqual, closest, closestBySelector, closestInScope, contains, findElement, findFocusable, findFocusableChild, firefoxMaxHeight, focusableSelector, getLicenseMessage, getter, guid, hasClasses, hasObservers, isChanged, isControlRequired, isDocumentAvailable, isFirefox, isFocusable, isFocusableWithTabKey, isObject, isObjectPresent, isPresent, isSafari, isSet, isString, isVisible, matchesClasses, matchesNodeName, normalizeKeys, parseAttributes, parseCSSClassNames, processCssValue, removeHTMLAttributes, replaceMessagePlaceholder, rtlScrollPosition, scrollbarWidth, setHTMLAttributes, setter, shouldShowValidationUI, splitStringToArray };
|
|
1790
1797
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-common",
|
|
3
|
-
"version": "21.4.0-develop.
|
|
3
|
+
"version": "21.4.0-develop.3",
|
|
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": "21.4.0-develop.
|
|
26
|
+
"@progress/kendo-angular-schematics": "21.4.0-develop.3"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|
|
@@ -14,16 +14,20 @@ export declare const isObjectPresent: (value: any) => boolean;
|
|
|
14
14
|
* @hidden
|
|
15
15
|
*/
|
|
16
16
|
export declare const isString: (value: any) => value is string;
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
export declare const isObject: (value: any) => value is object;
|
|
17
21
|
/**
|
|
18
22
|
* @hidden
|
|
19
23
|
*/
|
|
20
|
-
export declare const
|
|
24
|
+
export declare const isSet: (value: any) => value is Set<any>;
|
|
21
25
|
/**
|
|
22
26
|
* @hidden
|
|
23
27
|
*/
|
|
24
28
|
export declare const splitStringToArray: (value: string) => string[];
|
|
25
29
|
/**
|
|
26
|
-
* Receives CSS class declarations either as an object, string or array and returns an array of the class names.
|
|
30
|
+
* Receives CSS class declarations either as an object, string, set or array and returns an array of the class names.
|
|
27
31
|
*
|
|
28
32
|
* @hidden
|
|
29
33
|
*/
|