@progress/kendo-angular-common 17.1.2-develop.5 → 17.2.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.
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
export const areObjectsEqual = (firstObject, secondObject) => {
|
|
6
|
+
if (Object.keys(firstObject).length !== Object.keys(secondObject).length) {
|
|
7
|
+
return false;
|
|
8
|
+
}
|
|
9
|
+
const equalSettings = Object.entries(firstObject)
|
|
10
|
+
.filter(([key, value]) => value === secondObject[key.toString()]);
|
|
11
|
+
return equalSettings.length === Object.keys(firstObject).length;
|
|
12
|
+
};
|
package/esm2022/utils.mjs
CHANGED
|
@@ -185,6 +185,15 @@ const isControlRequired = (control) => {
|
|
|
185
185
|
return control.validator(control)?.hasOwnProperty('required');
|
|
186
186
|
};
|
|
187
187
|
|
|
188
|
+
const areObjectsEqual = (firstObject, secondObject) => {
|
|
189
|
+
if (Object.keys(firstObject).length !== Object.keys(secondObject).length) {
|
|
190
|
+
return false;
|
|
191
|
+
}
|
|
192
|
+
const equalSettings = Object.entries(firstObject)
|
|
193
|
+
.filter(([key, value]) => value === secondObject[key.toString()]);
|
|
194
|
+
return equalSettings.length === Object.keys(firstObject).length;
|
|
195
|
+
};
|
|
196
|
+
|
|
188
197
|
class DraggableDirective {
|
|
189
198
|
element;
|
|
190
199
|
ngZone;
|
|
@@ -1551,5 +1560,5 @@ const KENDO_TEMPLATE_CONTEXT = [
|
|
|
1551
1560
|
* Generated bundle index. Do not edit.
|
|
1552
1561
|
*/
|
|
1553
1562
|
|
|
1554
|
-
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, 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 };
|
|
1563
|
+
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, 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 };
|
|
1555
1564
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-common",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.2.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": "^1.0.1",
|
|
24
24
|
"@progress/kendo-draggable": "^3.0.2",
|
|
25
25
|
"tslib": "^2.3.1",
|
|
26
|
-
"@progress/kendo-angular-schematics": "17.
|
|
26
|
+
"@progress/kendo-angular-schematics": "17.2.0-develop.2"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|
|
@@ -0,0 +1,5 @@
|
|
|
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
|
+
export declare const areObjectsEqual: (firstObject: any, secondObject: any) => boolean;
|
package/utils.d.ts
CHANGED