@progress/kendo-angular-common 3.2.2 → 11.0.0-develop.100
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.
- package/LICENSE.md +1 -1
- package/NOTICE.txt +119 -79
- package/README.md +1 -1
- package/dom-queries/closest-in-scope.d.ts +2 -2
- package/dom-queries/closest.d.ts +2 -2
- package/dom-queries/contains.d.ts +2 -2
- package/dom-queries/find-element.d.ts +1 -1
- package/dom-queries/find-focusable-child.d.ts +1 -1
- package/dom-queries/find-focusable.d.ts +1 -1
- package/dom-queries/has-classes.d.ts +1 -1
- package/dom-queries/is-focusable-with-tab-key.d.ts +1 -1
- package/dom-queries/is-focusable.d.ts +1 -1
- package/dom-queries/is-visible.d.ts +1 -1
- package/dom-queries/matches-classes.d.ts +1 -1
- package/dom-queries/matches-node-name.d.ts +2 -2
- package/dom-queries/rtl-scroll-position.d.ts +1 -1
- package/dom-queries.d.ts +1 -1
- package/draggable/draggable.directive.d.ts +2 -2
- package/draggable/draggable.module.d.ts +1 -1
- package/draggable.d.ts +1 -1
- package/enums/keys.d.ts +1 -1
- package/enums.d.ts +1 -1
- package/{esm2015/dom-queries/closest-in-scope.js → esm2020/dom-queries/closest-in-scope.mjs} +2 -1
- package/{esm2015/dom-queries/closest.js → esm2020/dom-queries/closest.mjs} +1 -1
- package/{esm2015/dom-queries/contains.js → esm2020/dom-queries/contains.mjs} +1 -1
- package/{esm2015/dom-queries/find-element.js → esm2020/dom-queries/find-element.mjs} +1 -1
- package/{esm2015/dom-queries/find-focusable-child.js → esm2020/dom-queries/find-focusable-child.mjs} +1 -1
- package/{esm2015/dom-queries/find-focusable.js → esm2020/dom-queries/find-focusable.mjs} +1 -1
- package/{esm2015/dom-queries/has-classes.js → esm2020/dom-queries/has-classes.mjs} +1 -1
- package/{esm2015/dom-queries/is-focusable-with-tab-key.js → esm2020/dom-queries/is-focusable-with-tab-key.mjs} +1 -1
- package/{esm2015/dom-queries/is-focusable.js → esm2020/dom-queries/is-focusable.mjs} +1 -1
- package/{esm2015/dom-queries/is-visible.js → esm2020/dom-queries/is-visible.mjs} +1 -1
- package/{esm2015/dom-queries/matches-classes.js → esm2020/dom-queries/matches-classes.mjs} +1 -1
- package/{esm2015/dom-queries/matches-node-name.js → esm2020/dom-queries/matches-node-name.mjs} +1 -1
- package/{esm2015/dom-queries/rtl-scroll-position.js → esm2020/dom-queries/rtl-scroll-position.mjs} +1 -1
- package/{esm2015/dom-queries.js → esm2020/dom-queries.mjs} +1 -1
- package/{esm2015/draggable/draggable.directive.js → esm2020/draggable/draggable.directive.mjs} +7 -7
- package/{esm2015/draggable/draggable.module.js → esm2020/draggable/draggable.module.mjs} +5 -5
- package/{esm2015/draggable.js → esm2020/draggable.mjs} +1 -1
- package/{esm2015/enums/keys.js → esm2020/enums/keys.mjs} +1 -1
- package/{esm2015/enums.js → esm2020/enums.mjs} +1 -1
- package/{esm2015/events/events-outside-angular.directive.js → esm2020/events/events-outside-angular.directive.mjs} +8 -8
- package/{esm2015/events/events.module.js → esm2020/events/events.module.mjs} +5 -5
- package/{esm2015/events.js → esm2020/events.mjs} +1 -1
- package/{esm2015/main.js → esm2020/index.mjs} +3 -2
- package/{esm2015/preventable-event.js → esm2020/preventable-event.mjs} +1 -1
- package/{esm2015/kendo-angular-common.js → esm2020/progress-kendo-angular-common.mjs} +2 -2
- package/{esm2015/resize-sensor/compat.service.js → esm2020/resize-sensor/compat.service.mjs} +7 -5
- package/{esm2015/resize-sensor/observer.service.js → esm2020/resize-sensor/observer.service.mjs} +1 -1
- package/{esm2015/resize-sensor/resize-batch.service.js → esm2020/resize-sensor/resize-batch.service.mjs} +5 -5
- package/{esm2015/resize-sensor/resize-sensor.component.js → esm2020/resize-sensor/resize-sensor.component.mjs} +6 -5
- package/{esm2015/resize-sensor/resize-sensor.module.js → esm2020/resize-sensor/resize-sensor.module.mjs} +5 -5
- package/{esm2015/resize-sensor/resize.service.js → esm2020/resize-sensor/resize.service.mjs} +3 -3
- package/{esm2015/resize-sensor.js → esm2020/resize-sensor.mjs} +1 -1
- package/{esm2015/tokens.js → esm2020/tokens.mjs} +1 -1
- package/{esm2015/utils/any-changed.js → esm2020/utils/any-changed.mjs} +1 -1
- package/{esm2015/utils/guid.js → esm2020/utils/guid.mjs} +1 -1
- package/{esm2015/utils/has-observers.js → esm2020/utils/has-observers.mjs} +1 -1
- package/{esm2015/utils/is-changed.js → esm2020/utils/is-changed.mjs} +1 -1
- package/{esm2015/utils/is-document-available.js → esm2020/utils/is-document-available.mjs} +1 -1
- package/esm2020/utils/ng-class-parser.mjs +65 -0
- package/{esm2015/utils/scrollbar-width.service.js → esm2020/utils/scrollbar-width.service.mjs} +21 -6
- package/{esm2015/utils.js → esm2020/utils.mjs} +1 -2
- package/events/events-outside-angular.directive.d.ts +2 -2
- package/events/events.module.d.ts +1 -1
- package/events.d.ts +1 -1
- package/fesm2015/progress-kendo-angular-common.mjs +815 -0
- package/{fesm2015/kendo-angular-common.js → fesm2020/progress-kendo-angular-common.mjs} +122 -58
- package/{main.d.ts → index.d.ts} +3 -2
- package/package.json +24 -55
- package/preventable-event.d.ts +1 -1
- package/{kendo-angular-common.d.ts → progress-kendo-angular-common.d.ts} +2 -2
- package/resize-sensor/compat.service.d.ts +3 -3
- package/resize-sensor/observer.service.d.ts +1 -1
- package/resize-sensor/resize-batch.service.d.ts +2 -2
- package/resize-sensor/resize-sensor.component.d.ts +1 -1
- package/resize-sensor/resize-sensor.module.d.ts +1 -1
- package/resize-sensor/resize.service.d.ts +3 -3
- package/resize-sensor.d.ts +1 -1
- package/tokens.d.ts +1 -1
- package/utils/any-changed.d.ts +1 -1
- package/utils/guid.d.ts +1 -1
- package/utils/has-observers.d.ts +1 -1
- package/utils/is-changed.d.ts +1 -1
- package/utils/is-document-available.d.ts +1 -1
- package/utils/ng-class-parser.d.ts +26 -0
- package/utils/scrollbar-width.service.d.ts +5 -1
- package/utils.d.ts +1 -2
- package/bundles/kendo-angular-common.umd.js +0 -5
- package/esm2015/utils/get-scrollbar-width.js +0 -21
- package/utils/get-scrollbar-width.d.ts +0 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
import * as i0 from '@angular/core';
|
|
@@ -47,23 +47,6 @@ const guid = () => {
|
|
|
47
47
|
return id;
|
|
48
48
|
};
|
|
49
49
|
|
|
50
|
-
const canCreateElement = () => isDocumentAvailable() && document.createElement;
|
|
51
|
-
/**
|
|
52
|
-
* @hidden
|
|
53
|
-
*/
|
|
54
|
-
function getScrollbarWidth() {
|
|
55
|
-
let scrollbarWidth = 0;
|
|
56
|
-
if (canCreateElement()) {
|
|
57
|
-
const div = document.createElement('div');
|
|
58
|
-
div.style.cssText = 'overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block';
|
|
59
|
-
div.innerHTML = ' ';
|
|
60
|
-
document.body.appendChild(div);
|
|
61
|
-
scrollbarWidth = div.offsetWidth - div.scrollWidth;
|
|
62
|
-
document.body.removeChild(div);
|
|
63
|
-
}
|
|
64
|
-
return scrollbarWidth;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
50
|
class DraggableDirective {
|
|
68
51
|
constructor(element, ngZone) {
|
|
69
52
|
this.element = element;
|
|
@@ -93,20 +76,20 @@ class DraggableDirective {
|
|
|
93
76
|
press: (e) => this.kendoPress.next(e),
|
|
94
77
|
release: (e) => this.kendoRelease.next(e)
|
|
95
78
|
});
|
|
96
|
-
this.ngZone.runOutsideAngular(() => this.draggable
|
|
79
|
+
this.ngZone.runOutsideAngular(() => this.draggable?.bindTo(this.element.nativeElement));
|
|
97
80
|
}
|
|
98
81
|
}
|
|
99
82
|
}
|
|
100
83
|
destroyDraggable() {
|
|
101
84
|
if (this.draggable) {
|
|
102
85
|
this.draggable.destroy();
|
|
103
|
-
this.draggable =
|
|
86
|
+
this.draggable = undefined;
|
|
104
87
|
}
|
|
105
88
|
}
|
|
106
89
|
}
|
|
107
|
-
DraggableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
108
|
-
DraggableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
109
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
90
|
+
DraggableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DraggableDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
91
|
+
DraggableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: DraggableDirective, selector: "[kendoDraggable]", inputs: { enableDrag: "enableDrag" }, outputs: { kendoPress: "kendoPress", kendoDrag: "kendoDrag", kendoRelease: "kendoRelease" }, usesOnChanges: true, ngImport: i0 });
|
|
92
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DraggableDirective, decorators: [{
|
|
110
93
|
type: Directive,
|
|
111
94
|
args: [{
|
|
112
95
|
selector: '[kendoDraggable]'
|
|
@@ -126,10 +109,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
126
109
|
*/
|
|
127
110
|
class DraggableModule {
|
|
128
111
|
}
|
|
129
|
-
DraggableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
130
|
-
DraggableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
131
|
-
DraggableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
132
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
112
|
+
DraggableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DraggableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
113
|
+
DraggableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DraggableModule, declarations: [DraggableDirective], imports: [CommonModule], exports: [DraggableDirective] });
|
|
114
|
+
DraggableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DraggableModule, imports: [[CommonModule]] });
|
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DraggableModule, decorators: [{
|
|
133
116
|
type: NgModule,
|
|
134
117
|
args: [{
|
|
135
118
|
declarations: [DraggableDirective],
|
|
@@ -145,6 +128,7 @@ const closestInScope = (node, predicate, scope) => {
|
|
|
145
128
|
if (node !== scope) {
|
|
146
129
|
return node;
|
|
147
130
|
}
|
|
131
|
+
return undefined;
|
|
148
132
|
};
|
|
149
133
|
|
|
150
134
|
const closest = (node, predicate) => {
|
|
@@ -266,9 +250,9 @@ class EventsOutsideAngularDirective {
|
|
|
266
250
|
const events = this.events;
|
|
267
251
|
this.subscriptions = [];
|
|
268
252
|
this.ngZone.runOutsideAngular(() => {
|
|
269
|
-
for (
|
|
270
|
-
if (
|
|
271
|
-
this.subscriptions
|
|
253
|
+
for (const name in events) {
|
|
254
|
+
if (Object.hasOwnProperty.call(events, name)) {
|
|
255
|
+
this.subscriptions?.push(this.renderer.listen(this.element.nativeElement, name, this.scope ? events[name].bind(this.scope) : events[name]));
|
|
272
256
|
}
|
|
273
257
|
}
|
|
274
258
|
});
|
|
@@ -282,9 +266,9 @@ class EventsOutsideAngularDirective {
|
|
|
282
266
|
}
|
|
283
267
|
}
|
|
284
268
|
}
|
|
285
|
-
EventsOutsideAngularDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
286
|
-
EventsOutsideAngularDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
287
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
269
|
+
EventsOutsideAngularDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EventsOutsideAngularDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
270
|
+
EventsOutsideAngularDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: { events: ["kendoEventsOutsideAngular", "events"], scope: "scope" }, ngImport: i0 });
|
|
271
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EventsOutsideAngularDirective, decorators: [{
|
|
288
272
|
type: Directive,
|
|
289
273
|
args: [{
|
|
290
274
|
selector: '[kendoEventsOutsideAngular]'
|
|
@@ -301,10 +285,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
301
285
|
*/
|
|
302
286
|
class EventsModule {
|
|
303
287
|
}
|
|
304
|
-
EventsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
305
|
-
EventsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
306
|
-
EventsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
307
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
288
|
+
EventsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EventsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
289
|
+
EventsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EventsModule, declarations: [EventsOutsideAngularDirective], exports: [EventsOutsideAngularDirective] });
|
|
290
|
+
EventsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EventsModule });
|
|
291
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EventsModule, decorators: [{
|
|
308
292
|
type: NgModule,
|
|
309
293
|
args: [{
|
|
310
294
|
declarations: [EventsOutsideAngularDirective],
|
|
@@ -339,12 +323,12 @@ class ResizeService {
|
|
|
339
323
|
}
|
|
340
324
|
checkSize() {
|
|
341
325
|
if (!this.parentElement) {
|
|
342
|
-
return;
|
|
326
|
+
return false;
|
|
343
327
|
}
|
|
344
328
|
const { width, height } = this.measure();
|
|
345
329
|
const sameSize = width === this.lastWidth && height === this.lastHeight;
|
|
346
330
|
if (sameSize) {
|
|
347
|
-
return;
|
|
331
|
+
return false;
|
|
348
332
|
}
|
|
349
333
|
this.lastWidth = width;
|
|
350
334
|
this.lastHeight = height;
|
|
@@ -369,7 +353,8 @@ class ResizeService {
|
|
|
369
353
|
}
|
|
370
354
|
|
|
371
355
|
// eslint-disable import/no-deprecated
|
|
372
|
-
|
|
356
|
+
// TODO:NG13 CSP
|
|
357
|
+
const div = (style) => {
|
|
373
358
|
const el = document.createElement('div');
|
|
374
359
|
el.style.cssText = style;
|
|
375
360
|
return el;
|
|
@@ -400,7 +385,7 @@ class ResizeCompatService extends ResizeService {
|
|
|
400
385
|
this.subscription.unsubscribe();
|
|
401
386
|
}
|
|
402
387
|
if (this.expand) {
|
|
403
|
-
const element = this.element
|
|
388
|
+
const element = this.element?.nativeElement;
|
|
404
389
|
element.removeChild(this.expand);
|
|
405
390
|
element.removeChild(this.shrink);
|
|
406
391
|
this.expand.removeChild(this.expandChild);
|
|
@@ -412,9 +397,10 @@ class ResizeCompatService extends ResizeService {
|
|
|
412
397
|
this.reset();
|
|
413
398
|
return true;
|
|
414
399
|
}
|
|
400
|
+
return false;
|
|
415
401
|
}
|
|
416
402
|
init() {
|
|
417
|
-
const parentElement = this.parentElement = this.element
|
|
403
|
+
const parentElement = this.parentElement = this.element?.nativeElement.parentElement;
|
|
418
404
|
if (computedProp(parentElement, 'position') === 'static') {
|
|
419
405
|
parentElement.style.position = 'relative';
|
|
420
406
|
}
|
|
@@ -425,7 +411,7 @@ class ResizeCompatService extends ResizeService {
|
|
|
425
411
|
this.subscribe();
|
|
426
412
|
}
|
|
427
413
|
render() {
|
|
428
|
-
const element = this.element
|
|
414
|
+
const element = this.element?.nativeElement;
|
|
429
415
|
element.style.cssText = WRAP_STYLE;
|
|
430
416
|
element.setAttribute('dir', 'ltr');
|
|
431
417
|
this.expand = div(WRAP_STYLE);
|
|
@@ -544,9 +530,9 @@ class ResizeBatchService {
|
|
|
544
530
|
this.unsubscribe();
|
|
545
531
|
}
|
|
546
532
|
}
|
|
547
|
-
ResizeBatchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
548
|
-
ResizeBatchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
549
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
533
|
+
ResizeBatchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeBatchService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
534
|
+
ResizeBatchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeBatchService });
|
|
535
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeBatchService, decorators: [{
|
|
550
536
|
type: Injectable
|
|
551
537
|
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
|
552
538
|
|
|
@@ -594,9 +580,9 @@ class ResizeSensorComponent {
|
|
|
594
580
|
this.resizeService.acceptSize(size);
|
|
595
581
|
}
|
|
596
582
|
}
|
|
597
|
-
ResizeSensorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
598
|
-
ResizeSensorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
599
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
583
|
+
ResizeSensorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeSensorComponent, deps: [{ token: ResizeBatchService }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
584
|
+
ResizeSensorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: { rateLimit: "rateLimit" }, outputs: { resize: "resize" }, ngImport: i0, template: '', isInline: true });
|
|
585
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeSensorComponent, decorators: [{
|
|
600
586
|
type: Component,
|
|
601
587
|
args: [{
|
|
602
588
|
selector: 'kendo-resize-sensor',
|
|
@@ -614,10 +600,10 @@ const COMPONENT_DIRECTIVES = [ResizeSensorComponent];
|
|
|
614
600
|
*/
|
|
615
601
|
class ResizeSensorModule {
|
|
616
602
|
}
|
|
617
|
-
ResizeSensorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
618
|
-
ResizeSensorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
619
|
-
ResizeSensorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
620
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
603
|
+
ResizeSensorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeSensorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
604
|
+
ResizeSensorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeSensorModule, declarations: [ResizeSensorComponent], exports: [ResizeSensorComponent] });
|
|
605
|
+
ResizeSensorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeSensorModule, providers: [ResizeBatchService] });
|
|
606
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeSensorModule, decorators: [{
|
|
621
607
|
type: NgModule,
|
|
622
608
|
args: [{
|
|
623
609
|
declarations: [COMPONENT_DIRECTIVES],
|
|
@@ -694,6 +680,68 @@ var Keys;
|
|
|
694
680
|
Keys[Keys["Tab"] = 9] = "Tab";
|
|
695
681
|
})(Keys || (Keys = {}));
|
|
696
682
|
|
|
683
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
684
|
+
/**
|
|
685
|
+
* @hidden
|
|
686
|
+
*/
|
|
687
|
+
const isPresent = (value) => value !== null && value !== undefined;
|
|
688
|
+
/**
|
|
689
|
+
* @hidden
|
|
690
|
+
*/
|
|
691
|
+
const isString = (value) => value instanceof String || typeof value === 'string';
|
|
692
|
+
/**
|
|
693
|
+
* @hidden
|
|
694
|
+
*/
|
|
695
|
+
const isObject = (value) => isPresent(value) && !Array.isArray(value) && typeof value === 'object';
|
|
696
|
+
/**
|
|
697
|
+
* @hidden
|
|
698
|
+
*/
|
|
699
|
+
const splitStringToArray = (value) => value.trim().replace(/\s+/g, " ").split(' ');
|
|
700
|
+
/**
|
|
701
|
+
* Receives CSS class declarations either as an object, string or array and returns an array of the class names.
|
|
702
|
+
*
|
|
703
|
+
* @hidden
|
|
704
|
+
*/
|
|
705
|
+
const parseCSSClassNames = (value) => {
|
|
706
|
+
if (Array.isArray(value)) {
|
|
707
|
+
return parseArrayClassNames(value);
|
|
708
|
+
}
|
|
709
|
+
if (isObject(value)) {
|
|
710
|
+
return parseObjectClassNames(value);
|
|
711
|
+
}
|
|
712
|
+
if (isString(value)) {
|
|
713
|
+
return parseStringClassNames(value);
|
|
714
|
+
}
|
|
715
|
+
};
|
|
716
|
+
const parseObjectClassNames = (value) => {
|
|
717
|
+
const classes = [];
|
|
718
|
+
Object.keys(value).forEach((className) => {
|
|
719
|
+
const currentClassName = splitStringToArray(className);
|
|
720
|
+
if (value[className] && currentClassName.length) {
|
|
721
|
+
classes.push(...currentClassName);
|
|
722
|
+
}
|
|
723
|
+
});
|
|
724
|
+
return classes;
|
|
725
|
+
};
|
|
726
|
+
const parseStringClassNames = (value) => {
|
|
727
|
+
const classes = [];
|
|
728
|
+
const classesArray = splitStringToArray(value);
|
|
729
|
+
classesArray.forEach((className) => {
|
|
730
|
+
classes.push(className);
|
|
731
|
+
});
|
|
732
|
+
return classes;
|
|
733
|
+
};
|
|
734
|
+
const parseArrayClassNames = (value) => {
|
|
735
|
+
const classes = [];
|
|
736
|
+
value.forEach((className) => {
|
|
737
|
+
const current = splitStringToArray(className);
|
|
738
|
+
if (current[0]) {
|
|
739
|
+
classes.push(...current);
|
|
740
|
+
}
|
|
741
|
+
});
|
|
742
|
+
return classes;
|
|
743
|
+
};
|
|
744
|
+
|
|
697
745
|
class PreventableEvent {
|
|
698
746
|
constructor() {
|
|
699
747
|
this.prevented = false;
|
|
@@ -718,7 +766,23 @@ class PreventableEvent {
|
|
|
718
766
|
}
|
|
719
767
|
}
|
|
720
768
|
|
|
769
|
+
const canCreateElement = () => isDocumentAvailable() && document.createElement;
|
|
721
770
|
const propName = '--kendo-scrollbar-width';
|
|
771
|
+
/**
|
|
772
|
+
* @hidden
|
|
773
|
+
*/
|
|
774
|
+
const scrollbarWidth = () => {
|
|
775
|
+
let scrollbarWidth = 0;
|
|
776
|
+
if (canCreateElement()) {
|
|
777
|
+
const div = document.createElement('div');
|
|
778
|
+
div.style.cssText = 'overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block';
|
|
779
|
+
div.innerHTML = ' ';
|
|
780
|
+
document.body.appendChild(div);
|
|
781
|
+
scrollbarWidth = div.offsetWidth - div.scrollWidth;
|
|
782
|
+
document.body.removeChild(div);
|
|
783
|
+
}
|
|
784
|
+
return scrollbarWidth;
|
|
785
|
+
};
|
|
722
786
|
/**
|
|
723
787
|
* @hidden
|
|
724
788
|
*/
|
|
@@ -726,13 +790,13 @@ class ScrollbarWidthService {
|
|
|
726
790
|
constructor() {
|
|
727
791
|
this.changes = new EventEmitter();
|
|
728
792
|
if (typeof window !== 'undefined' && isDocumentAvailable()) {
|
|
729
|
-
document.body.style.setProperty(propName, `${
|
|
793
|
+
document.body.style.setProperty(propName, `${scrollbarWidth()}px`);
|
|
730
794
|
}
|
|
731
795
|
}
|
|
732
796
|
}
|
|
733
|
-
ScrollbarWidthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
734
|
-
ScrollbarWidthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
735
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
797
|
+
ScrollbarWidthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ScrollbarWidthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
798
|
+
ScrollbarWidthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ScrollbarWidthService, providedIn: 'root' });
|
|
799
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ScrollbarWidthService, decorators: [{
|
|
736
800
|
type: Injectable,
|
|
737
801
|
args: [{
|
|
738
802
|
providedIn: 'root'
|
|
@@ -743,5 +807,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
743
807
|
* Generated bundle index. Do not edit.
|
|
744
808
|
*/
|
|
745
809
|
|
|
746
|
-
export { DraggableDirective, DraggableModule, EventsModule, EventsOutsideAngularDirective, KendoInput, Keys, PreventableEvent, ResizeBatchService, ResizeCompatService, ResizeObserverService, ResizeSensorComponent, ResizeSensorModule, ScrollbarWidthService, anyChanged, closest, closestInScope, contains, findElement, findFocusable, findFocusableChild,
|
|
810
|
+
export { DraggableDirective, DraggableModule, EventsModule, EventsOutsideAngularDirective, KendoInput, Keys, PreventableEvent, ResizeBatchService, ResizeCompatService, ResizeObserverService, ResizeSensorComponent, ResizeSensorModule, ScrollbarWidthService, anyChanged, closest, closestInScope, contains, findElement, findFocusable, findFocusableChild, guid, hasClasses, hasObservers, isChanged, isDocumentAvailable, isFocusable, isFocusableWithTabKey, isObject, isPresent, isString, isVisible, matchesClasses, matchesNodeName, parseCSSClassNames, rtlScrollPosition, scrollbarWidth, splitStringToArray };
|
|
747
811
|
|
package/{main.d.ts → index.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
export * from './draggable';
|
|
@@ -9,5 +9,6 @@ export * from './resize-sensor';
|
|
|
9
9
|
export * from './tokens';
|
|
10
10
|
export * from './utils';
|
|
11
11
|
export * from './enums';
|
|
12
|
+
export * from './utils/ng-class-parser';
|
|
12
13
|
export { PreventableEvent } from './preventable-event';
|
|
13
|
-
export { ScrollbarWidthService } from './utils/scrollbar-width.service';
|
|
14
|
+
export { ScrollbarWidthService, scrollbarWidth } from './utils/scrollbar-width.service';
|
package/package.json
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0-develop.100",
|
|
4
4
|
"description": "Kendo UI for Angular - Utility Package",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
7
7
|
"homepage": "https://www.telerik.com/kendo-angular-ui/components/",
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "git",
|
|
10
|
-
"url": "https://github.com/telerik/kendo-angular-common.git"
|
|
11
|
-
},
|
|
12
8
|
"bugs": {
|
|
13
9
|
"url": "https://github.com/telerik/kendo-angular"
|
|
14
10
|
},
|
|
@@ -17,64 +13,37 @@
|
|
|
17
13
|
"Kendo UI",
|
|
18
14
|
"Progress"
|
|
19
15
|
],
|
|
20
|
-
"dependencies": {
|
|
21
|
-
"@progress/kendo-draggable": "^3.0.2",
|
|
22
|
-
"tslib": "^2.3.1",
|
|
23
|
-
"@progress/kendo-schematics": "^3.0.0"
|
|
24
|
-
},
|
|
25
16
|
"peerDependencies": {
|
|
26
|
-
"@angular/animations": "
|
|
27
|
-
"@angular/common": "
|
|
28
|
-
"@angular/core": "
|
|
29
|
-
"@angular/forms": "12 - 15",
|
|
17
|
+
"@angular/animations": "13 - 15",
|
|
18
|
+
"@angular/common": "13 - 15",
|
|
19
|
+
"@angular/core": "13 - 15",
|
|
30
20
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
31
21
|
},
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
"ghooks": {
|
|
37
|
-
"commit-msg": "validate-commit-msg"
|
|
38
|
-
},
|
|
39
|
-
"validate-commit-msg": {
|
|
40
|
-
"types": [
|
|
41
|
-
"feat",
|
|
42
|
-
"fix",
|
|
43
|
-
"docs",
|
|
44
|
-
"style",
|
|
45
|
-
"refactor",
|
|
46
|
-
"perf",
|
|
47
|
-
"test",
|
|
48
|
-
"chore",
|
|
49
|
-
"revert"
|
|
50
|
-
],
|
|
51
|
-
"warnOnFail": false,
|
|
52
|
-
"maxSubjectLength": 100
|
|
53
|
-
}
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@progress/kendo-draggable": "^3.0.2",
|
|
24
|
+
"tslib": "^2.3.1"
|
|
54
25
|
},
|
|
55
26
|
"publishConfig": {
|
|
56
27
|
"access": "public"
|
|
57
28
|
},
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
29
|
+
"module": "fesm2015/progress-kendo-angular-common.mjs",
|
|
30
|
+
"es2020": "fesm2020/progress-kendo-angular-common.mjs",
|
|
31
|
+
"esm2020": "esm2020/progress-kendo-angular-common.mjs",
|
|
32
|
+
"fesm2020": "fesm2020/progress-kendo-angular-common.mjs",
|
|
33
|
+
"fesm2015": "fesm2015/progress-kendo-angular-common.mjs",
|
|
34
|
+
"typings": "progress-kendo-angular-common.d.ts",
|
|
35
|
+
"exports": {
|
|
36
|
+
"./package.json": {
|
|
37
|
+
"default": "./package.json"
|
|
63
38
|
},
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
39
|
+
".": {
|
|
40
|
+
"types": "./progress-kendo-angular-common.d.ts",
|
|
41
|
+
"esm2020": "./esm2020/progress-kendo-angular-common.mjs",
|
|
42
|
+
"es2020": "./fesm2020/progress-kendo-angular-common.mjs",
|
|
43
|
+
"es2015": "./fesm2015/progress-kendo-angular-common.mjs",
|
|
44
|
+
"node": "./fesm2015/progress-kendo-angular-common.mjs",
|
|
45
|
+
"default": "./fesm2020/progress-kendo-angular-common.mjs"
|
|
46
|
+
}
|
|
72
47
|
},
|
|
73
|
-
"main": "bundles/kendo-angular-common.umd.js",
|
|
74
|
-
"module": "fesm2015/kendo-angular-common.js",
|
|
75
|
-
"es2015": "fesm2015/kendo-angular-common.js",
|
|
76
|
-
"esm2015": "esm2015/kendo-angular-common.js",
|
|
77
|
-
"fesm2015": "fesm2015/kendo-angular-common.js",
|
|
78
|
-
"typings": "kendo-angular-common.d.ts",
|
|
79
48
|
"sideEffects": false
|
|
80
49
|
}
|
package/preventable-event.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
export declare abstract class PreventableEvent {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
/**
|
|
6
6
|
* Generated bundle index. Do not edit.
|
|
7
7
|
*/
|
|
8
8
|
/// <amd-module name="@progress/kendo-angular-common" />
|
|
9
|
-
export * from './
|
|
9
|
+
export * from './index';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
import { ElementRef, NgZone } from '@angular/core';
|
|
@@ -11,8 +11,8 @@ export declare class ResizeCompatService extends ResizeService {
|
|
|
11
11
|
private expand;
|
|
12
12
|
private expandChild;
|
|
13
13
|
private shrink;
|
|
14
|
-
private subscription
|
|
15
|
-
constructor(resizeBatchService: ResizeBatchService, element: ElementRef, ngZone: NgZone);
|
|
14
|
+
private subscription?;
|
|
15
|
+
constructor(resizeBatchService: ResizeBatchService, element: ElementRef | null, ngZone: NgZone);
|
|
16
16
|
checkChanges(): void;
|
|
17
17
|
destroy(): void;
|
|
18
18
|
protected checkSize(): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
import { ElementRef, NgZone } from '@angular/core';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
import { NgZone, OnDestroy } from '@angular/core';
|
|
@@ -11,7 +11,7 @@ export declare class ResizeBatchService implements OnDestroy {
|
|
|
11
11
|
private ngZone;
|
|
12
12
|
private scheduled;
|
|
13
13
|
private resolvedPromise;
|
|
14
|
-
private subscription
|
|
14
|
+
private subscription?;
|
|
15
15
|
constructor(ngZone: NgZone);
|
|
16
16
|
schedule(instance: any, method: any): void;
|
|
17
17
|
isScheduled(instance: any): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
import { EventEmitter, OnDestroy, AfterViewChecked, ElementRef, NgZone } from '@angular/core';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
import * as i0 from "@angular/core";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
import { EventEmitter } from '@angular/core';
|
|
@@ -13,8 +13,8 @@ export declare abstract class ResizeService {
|
|
|
13
13
|
protected resizeBatchService: ResizeBatchService;
|
|
14
14
|
resize: EventEmitter<any>;
|
|
15
15
|
acceptedSize: boolean;
|
|
16
|
-
lastWidth
|
|
17
|
-
lastHeight
|
|
16
|
+
lastWidth?: number;
|
|
17
|
+
lastHeight?: number;
|
|
18
18
|
protected state: ServiceState;
|
|
19
19
|
protected parentElement: any;
|
|
20
20
|
protected abstract init(): void;
|
package/resize-sensor.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
export { ResizeSensorComponent } from './resize-sensor/resize-sensor.component';
|
package/tokens.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
export declare class KendoInput {
|
package/utils/any-changed.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
import { SimpleChanges } from '@angular/core';
|
package/utils/guid.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
/**
|
package/utils/has-observers.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
import { EventEmitter } from '@angular/core';
|
package/utils/is-changed.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
import { SimpleChanges } from '@angular/core';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
/**
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 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 declare const isPresent: (value: any) => boolean;
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare const isString: (value: any) => value is string;
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare const isObject: (value: any) => value is object;
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
export declare const splitStringToArray: (value: string) => string[];
|
|
21
|
+
/**
|
|
22
|
+
* Receives CSS class declarations either as an object, string or array and returns an array of the class names.
|
|
23
|
+
*
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
export declare const parseCSSClassNames: (value: any) => Array<string>;
|