@progress/kendo-angular-common 17.0.0-develop.3 → 17.0.0-develop.31
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/adornments/prefix.directive.d.ts +1 -1
- package/adornments/separator-orientation.d.ts +1 -1
- package/adornments/separator.component.d.ts +1 -1
- package/adornments/suffix.directive.d.ts +1 -1
- package/draggable/draggable.directive.d.ts +1 -1
- package/{esm2020 → esm2022}/adornments/adornments.module.mjs +4 -4
- package/{esm2020 → esm2022}/adornments/prefix.directive.mjs +8 -7
- package/{esm2020 → esm2022}/adornments/separator.component.mjs +13 -15
- package/{esm2020 → esm2022}/adornments/suffix.directive.mjs +8 -7
- package/{esm2020 → esm2022}/draggable/draggable.directive.mjs +10 -7
- package/{esm2020 → esm2022}/draggable/draggable.module.mjs +4 -4
- package/{esm2020 → esm2022}/events/events-outside-angular.directive.mjs +9 -4
- package/{esm2020 → esm2022}/events/events.module.mjs +4 -4
- package/{esm2020 → esm2022}/preventable-event.mjs +1 -3
- package/{esm2020 → esm2022}/resize-sensor/compat.service.mjs +6 -0
- package/{esm2020 → esm2022}/resize-sensor/observer.service.mjs +6 -3
- package/{esm2020 → esm2022}/resize-sensor/resize-batch.service.mjs +7 -5
- package/{esm2020 → esm2022}/resize-sensor/resize-sensor.component.mjs +15 -13
- package/{esm2020 → esm2022}/resize-sensor/resize-sensor.module.mjs +4 -4
- package/{esm2020 → esm2022}/resize-sensor/resize.service.mjs +7 -3
- package/{esm2020 → esm2022}/template-context/template-context.directive.mjs +8 -6
- package/{esm2020 → esm2022}/toggle-button-tab-stop/toggle-button-tab-stop.directive.mjs +44 -28
- package/{esm2020 → esm2022}/toggle-button-tab-stop/toggle-button-tab-stop.mjs +1 -0
- package/{esm2020 → esm2022}/toggle-button-tab-stop/toggle-button-tab-stop.module.mjs +4 -4
- package/{esm2020 → esm2022}/utils/scrollbar-width.service.mjs +4 -4
- package/{esm2020 → esm2022}/watermark/watermark.component.mjs +11 -12
- package/{esm2020 → esm2022}/watermark/watermark.module.mjs +4 -4
- package/events/events-outside-angular.directive.d.ts +1 -1
- package/{fesm2020 → fesm2022}/progress-kendo-angular-common.mjs +182 -141
- package/package.json +10 -16
- package/resize-sensor/resize-sensor.component.d.ts +1 -1
- package/template-context/template-context.directive.d.ts +1 -1
- package/toggle-button-tab-stop/toggle-button-tab-stop.directive.d.ts +1 -1
- package/fesm2015/progress-kendo-angular-common.mjs +0 -1628
- /package/{esm2020 → esm2022}/adornments/separator-orientation.mjs +0 -0
- /package/{esm2020 → esm2022}/adornments.mjs +0 -0
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/dom-queries/closest-by-selector.mjs +0 -0
- /package/{esm2020 → esm2022}/dom-queries/closest-in-scope.mjs +0 -0
- /package/{esm2020 → esm2022}/dom-queries/closest.mjs +0 -0
- /package/{esm2020 → esm2022}/dom-queries/contains.mjs +0 -0
- /package/{esm2020 → esm2022}/dom-queries/find-element.mjs +0 -0
- /package/{esm2020 → esm2022}/dom-queries/find-focusable-child.mjs +0 -0
- /package/{esm2020 → esm2022}/dom-queries/find-focusable.mjs +0 -0
- /package/{esm2020 → esm2022}/dom-queries/has-classes.mjs +0 -0
- /package/{esm2020 → esm2022}/dom-queries/is-focusable-with-tab-key.mjs +0 -0
- /package/{esm2020 → esm2022}/dom-queries/is-focusable.mjs +0 -0
- /package/{esm2020 → esm2022}/dom-queries/is-visible.mjs +0 -0
- /package/{esm2020 → esm2022}/dom-queries/matches-classes.mjs +0 -0
- /package/{esm2020 → esm2022}/dom-queries/matches-node-name.mjs +0 -0
- /package/{esm2020 → esm2022}/dom-queries/rtl-scroll-position.mjs +0 -0
- /package/{esm2020 → esm2022}/dom-queries.mjs +0 -0
- /package/{esm2020 → esm2022}/draggable.mjs +0 -0
- /package/{esm2020 → esm2022}/enums/keys.mjs +0 -0
- /package/{esm2020 → esm2022}/enums.mjs +0 -0
- /package/{esm2020 → esm2022}/events.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-common.mjs +0 -0
- /package/{esm2020 → esm2022}/resize-sensor.mjs +0 -0
- /package/{esm2020 → esm2022}/template-context/index.mjs +0 -0
- /package/{esm2020 → esm2022}/toggle-button-tab-stop.mjs +0 -0
- /package/{esm2020 → esm2022}/tokens.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/any-changed.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/detect-browser.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/focusable-selectors.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/forms-utils.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/guid.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/has-observers.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/html-attributes.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/is-changed.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/is-document-available.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/ng-class-parser.mjs +0 -0
- /package/{esm2020 → esm2022}/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/watermark/index.mjs +0 -0
- /package/{esm2020 → esm2022}/watermark/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/watermark/validation.mjs +0 -0
|
@@ -186,13 +186,16 @@ const isControlRequired = (control) => {
|
|
|
186
186
|
};
|
|
187
187
|
|
|
188
188
|
class DraggableDirective {
|
|
189
|
+
element;
|
|
190
|
+
ngZone;
|
|
191
|
+
enableDrag = true;
|
|
192
|
+
kendoPress = new EventEmitter();
|
|
193
|
+
kendoDrag = new EventEmitter();
|
|
194
|
+
kendoRelease = new EventEmitter();
|
|
195
|
+
draggable;
|
|
189
196
|
constructor(element, ngZone) {
|
|
190
197
|
this.element = element;
|
|
191
198
|
this.ngZone = ngZone;
|
|
192
|
-
this.enableDrag = true;
|
|
193
|
-
this.kendoPress = new EventEmitter();
|
|
194
|
-
this.kendoDrag = new EventEmitter();
|
|
195
|
-
this.kendoRelease = new EventEmitter();
|
|
196
199
|
}
|
|
197
200
|
ngOnInit() {
|
|
198
201
|
this.toggleDraggable();
|
|
@@ -224,10 +227,10 @@ class DraggableDirective {
|
|
|
224
227
|
this.draggable = undefined;
|
|
225
228
|
}
|
|
226
229
|
}
|
|
230
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DraggableDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
231
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DraggableDirective, isStandalone: true, selector: "[kendoDraggable]", inputs: { enableDrag: "enableDrag" }, outputs: { kendoPress: "kendoPress", kendoDrag: "kendoDrag", kendoRelease: "kendoRelease" }, usesOnChanges: true, ngImport: i0 });
|
|
227
232
|
}
|
|
228
|
-
|
|
229
|
-
DraggableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DraggableDirective, isStandalone: true, selector: "[kendoDraggable]", inputs: { enableDrag: "enableDrag" }, outputs: { kendoPress: "kendoPress", kendoDrag: "kendoDrag", kendoRelease: "kendoRelease" }, usesOnChanges: true, ngImport: i0 });
|
|
230
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DraggableDirective, decorators: [{
|
|
233
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DraggableDirective, decorators: [{
|
|
231
234
|
type: Directive,
|
|
232
235
|
args: [{
|
|
233
236
|
selector: '[kendoDraggable]',
|
|
@@ -248,11 +251,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
248
251
|
* IMPORTANT: NgModule export kept for backwards compatibility
|
|
249
252
|
*/
|
|
250
253
|
class DraggableModule {
|
|
254
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DraggableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
255
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DraggableModule, imports: [DraggableDirective], exports: [DraggableDirective] });
|
|
256
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DraggableModule });
|
|
251
257
|
}
|
|
252
|
-
|
|
253
|
-
DraggableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: DraggableModule, imports: [DraggableDirective], exports: [DraggableDirective] });
|
|
254
|
-
DraggableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DraggableModule });
|
|
255
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DraggableModule, decorators: [{
|
|
258
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DraggableModule, decorators: [{
|
|
256
259
|
type: NgModule,
|
|
257
260
|
args: [{
|
|
258
261
|
exports: [DraggableDirective],
|
|
@@ -393,11 +396,16 @@ const isDocumentNode = (container) => container.nodeType === 9;
|
|
|
393
396
|
* @hidden
|
|
394
397
|
*/
|
|
395
398
|
class EventsOutsideAngularDirective {
|
|
399
|
+
element;
|
|
400
|
+
ngZone;
|
|
401
|
+
renderer;
|
|
402
|
+
events = {};
|
|
403
|
+
scope;
|
|
404
|
+
subscriptions;
|
|
396
405
|
constructor(element, ngZone, renderer) {
|
|
397
406
|
this.element = element;
|
|
398
407
|
this.ngZone = ngZone;
|
|
399
408
|
this.renderer = renderer;
|
|
400
|
-
this.events = {};
|
|
401
409
|
}
|
|
402
410
|
ngOnInit() {
|
|
403
411
|
if (!this.element || !this.element.nativeElement) {
|
|
@@ -421,10 +429,10 @@ class EventsOutsideAngularDirective {
|
|
|
421
429
|
this.subscriptions = null;
|
|
422
430
|
}
|
|
423
431
|
}
|
|
432
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EventsOutsideAngularDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
433
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EventsOutsideAngularDirective, isStandalone: true, selector: "[kendoEventsOutsideAngular]", inputs: { events: ["kendoEventsOutsideAngular", "events"], scope: "scope" }, ngImport: i0 });
|
|
424
434
|
}
|
|
425
|
-
|
|
426
|
-
EventsOutsideAngularDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EventsOutsideAngularDirective, isStandalone: true, selector: "[kendoEventsOutsideAngular]", inputs: { events: ["kendoEventsOutsideAngular", "events"], scope: "scope" }, ngImport: i0 });
|
|
427
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EventsOutsideAngularDirective, decorators: [{
|
|
435
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EventsOutsideAngularDirective, decorators: [{
|
|
428
436
|
type: Directive,
|
|
429
437
|
args: [{
|
|
430
438
|
selector: '[kendoEventsOutsideAngular]',
|
|
@@ -442,11 +450,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
442
450
|
* IMPORTANT: NgModule export kept for backwards compatibility
|
|
443
451
|
*/
|
|
444
452
|
class EventsModule {
|
|
453
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EventsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
454
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: EventsModule, imports: [EventsOutsideAngularDirective], exports: [EventsOutsideAngularDirective] });
|
|
455
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EventsModule });
|
|
445
456
|
}
|
|
446
|
-
|
|
447
|
-
EventsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: EventsModule, imports: [EventsOutsideAngularDirective], exports: [EventsOutsideAngularDirective] });
|
|
448
|
-
EventsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EventsModule });
|
|
449
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EventsModule, decorators: [{
|
|
457
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EventsModule, decorators: [{
|
|
450
458
|
type: NgModule,
|
|
451
459
|
args: [{
|
|
452
460
|
imports: [EventsOutsideAngularDirective],
|
|
@@ -455,11 +463,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
455
463
|
}] });
|
|
456
464
|
|
|
457
465
|
class ResizeService {
|
|
466
|
+
resizeBatchService;
|
|
467
|
+
resize = new EventEmitter();
|
|
468
|
+
acceptedSize = false;
|
|
469
|
+
lastWidth;
|
|
470
|
+
lastHeight;
|
|
471
|
+
state = 0 /* ServiceState.Initial */;
|
|
472
|
+
parentElement;
|
|
458
473
|
constructor(resizeBatchService) {
|
|
459
474
|
this.resizeBatchService = resizeBatchService;
|
|
460
|
-
this.resize = new EventEmitter();
|
|
461
|
-
this.acceptedSize = false;
|
|
462
|
-
this.state = 0 /* ServiceState.Initial */;
|
|
463
475
|
}
|
|
464
476
|
acceptSize(size = this.measure()) {
|
|
465
477
|
this.lastWidth = size.width;
|
|
@@ -523,6 +535,12 @@ const WRAP_STYLE = 'position: absolute; display: block; left: 0; top: 0; right:
|
|
|
523
535
|
const EXPAND_CHILD_STYLE = 'position: absolute; left: 0; top: 0; transition: 0s;';
|
|
524
536
|
const SHRINK_CHILD_STYLE = EXPAND_CHILD_STYLE + 'width: 200%; height: 200%;';
|
|
525
537
|
class ResizeCompatService extends ResizeService {
|
|
538
|
+
element;
|
|
539
|
+
ngZone;
|
|
540
|
+
expand;
|
|
541
|
+
expandChild;
|
|
542
|
+
shrink;
|
|
543
|
+
subscription;
|
|
526
544
|
constructor(resizeBatchService, element, ngZone) {
|
|
527
545
|
super(resizeBatchService);
|
|
528
546
|
this.element = element;
|
|
@@ -607,14 +625,17 @@ const HAS_OBSERVER = typeof ResizeObserver !== 'undefined';
|
|
|
607
625
|
* @hidden
|
|
608
626
|
*/
|
|
609
627
|
class ResizeObserverService extends ResizeService {
|
|
628
|
+
element;
|
|
629
|
+
ngZone;
|
|
630
|
+
resizeObserver;
|
|
631
|
+
static supported() {
|
|
632
|
+
return HAS_OBSERVER;
|
|
633
|
+
}
|
|
610
634
|
constructor(resizeBatchService, element, ngZone) {
|
|
611
635
|
super(resizeBatchService);
|
|
612
636
|
this.element = element;
|
|
613
637
|
this.ngZone = ngZone;
|
|
614
638
|
}
|
|
615
|
-
static supported() {
|
|
616
|
-
return HAS_OBSERVER;
|
|
617
|
-
}
|
|
618
639
|
destroy() {
|
|
619
640
|
super.destroy();
|
|
620
641
|
if (this.resizeObserver) {
|
|
@@ -640,10 +661,12 @@ class ResizeObserverService extends ResizeService {
|
|
|
640
661
|
* @hidden
|
|
641
662
|
*/
|
|
642
663
|
class ResizeBatchService {
|
|
664
|
+
ngZone;
|
|
665
|
+
scheduled = [];
|
|
666
|
+
resolvedPromise = Promise.resolve(null);
|
|
667
|
+
subscription;
|
|
643
668
|
constructor(ngZone) {
|
|
644
669
|
this.ngZone = ngZone;
|
|
645
|
-
this.scheduled = [];
|
|
646
|
-
this.resolvedPromise = Promise.resolve(null);
|
|
647
670
|
this.flush = this.flush.bind(this);
|
|
648
671
|
}
|
|
649
672
|
schedule(instance, method) {
|
|
@@ -687,10 +710,10 @@ class ResizeBatchService {
|
|
|
687
710
|
this.scheduled = [];
|
|
688
711
|
this.unsubscribe();
|
|
689
712
|
}
|
|
713
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResizeBatchService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
714
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResizeBatchService, providedIn: 'root' });
|
|
690
715
|
}
|
|
691
|
-
|
|
692
|
-
ResizeBatchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ResizeBatchService, providedIn: 'root' });
|
|
693
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ResizeBatchService, decorators: [{
|
|
716
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResizeBatchService, decorators: [{
|
|
694
717
|
type: Injectable,
|
|
695
718
|
args: [{
|
|
696
719
|
providedIn: 'root'
|
|
@@ -708,17 +731,19 @@ const DEFAULT_RATE_LIMIT = 10;
|
|
|
708
731
|
* Triggers a "resize" event whenever the parent DOM element size changes.
|
|
709
732
|
*/
|
|
710
733
|
class ResizeSensorComponent {
|
|
734
|
+
/**
|
|
735
|
+
* The maximum number of resize events to emit per second.
|
|
736
|
+
*
|
|
737
|
+
* Defaults to 10.
|
|
738
|
+
*/
|
|
739
|
+
rateLimit = DEFAULT_RATE_LIMIT;
|
|
740
|
+
/**
|
|
741
|
+
* Fires when the parent DOM element has been resized.
|
|
742
|
+
*/
|
|
743
|
+
resize = new EventEmitter();
|
|
744
|
+
subscription;
|
|
745
|
+
resizeService;
|
|
711
746
|
constructor(resizeBatchService, element, ngZone) {
|
|
712
|
-
/**
|
|
713
|
-
* The maximum number of resize events to emit per second.
|
|
714
|
-
*
|
|
715
|
-
* Defaults to 10.
|
|
716
|
-
*/
|
|
717
|
-
this.rateLimit = DEFAULT_RATE_LIMIT;
|
|
718
|
-
/**
|
|
719
|
-
* Fires when the parent DOM element has been resized.
|
|
720
|
-
*/
|
|
721
|
-
this.resize = new EventEmitter();
|
|
722
747
|
const serviceType = ResizeObserverService.supported() ? ResizeObserverService : ResizeCompatService;
|
|
723
748
|
this.resizeService = new serviceType(resizeBatchService, element, ngZone);
|
|
724
749
|
const throttleTime = 1000 / (this.rateLimit || DEFAULT_RATE_LIMIT);
|
|
@@ -740,10 +765,10 @@ class ResizeSensorComponent {
|
|
|
740
765
|
acceptSize(size) {
|
|
741
766
|
this.resizeService.acceptSize(size);
|
|
742
767
|
}
|
|
768
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResizeSensorComponent, deps: [{ token: ResizeBatchService }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
769
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ResizeSensorComponent, isStandalone: true, selector: "kendo-resize-sensor", inputs: { rateLimit: "rateLimit" }, outputs: { resize: "resize" }, ngImport: i0, template: '', isInline: true });
|
|
743
770
|
}
|
|
744
|
-
|
|
745
|
-
ResizeSensorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ResizeSensorComponent, isStandalone: true, selector: "kendo-resize-sensor", inputs: { rateLimit: "rateLimit" }, outputs: { resize: "resize" }, ngImport: i0, template: '', isInline: true });
|
|
746
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ResizeSensorComponent, decorators: [{
|
|
771
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResizeSensorComponent, decorators: [{
|
|
747
772
|
type: Component,
|
|
748
773
|
args: [{
|
|
749
774
|
selector: 'kendo-resize-sensor',
|
|
@@ -761,11 +786,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
761
786
|
* IMPORTANT: NgModule export kept for backwards compatibility
|
|
762
787
|
*/
|
|
763
788
|
class ResizeSensorModule {
|
|
789
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResizeSensorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
790
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ResizeSensorModule, imports: [ResizeSensorComponent], exports: [ResizeSensorComponent] });
|
|
791
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResizeSensorModule, providers: [ResizeBatchService] });
|
|
764
792
|
}
|
|
765
|
-
|
|
766
|
-
ResizeSensorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ResizeSensorModule, imports: [ResizeSensorComponent], exports: [ResizeSensorComponent] });
|
|
767
|
-
ResizeSensorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ResizeSensorModule, providers: [ResizeBatchService], imports: [ResizeSensorComponent] });
|
|
768
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ResizeSensorModule, decorators: [{
|
|
793
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResizeSensorModule, decorators: [{
|
|
769
794
|
type: NgModule,
|
|
770
795
|
args: [{
|
|
771
796
|
imports: [ResizeSensorComponent],
|
|
@@ -919,14 +944,13 @@ let bannerPresentOnPage = false;
|
|
|
919
944
|
* @hidden
|
|
920
945
|
*/
|
|
921
946
|
class WatermarkOverlayComponent {
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
}
|
|
947
|
+
watermarkStyle = watermarkStyles;
|
|
948
|
+
banner;
|
|
949
|
+
isOpen = true;
|
|
950
|
+
bannerMounted = false;
|
|
951
|
+
bannerStyles = bannerStyles;
|
|
952
|
+
buttonStyles = buttonStyles;
|
|
953
|
+
licenseKeyUrl = licenseKeyUrl;
|
|
930
954
|
ngOnInit() {
|
|
931
955
|
if (!bannerPresentOnPage) {
|
|
932
956
|
this.bannerMounted = true;
|
|
@@ -949,9 +973,8 @@ class WatermarkOverlayComponent {
|
|
|
949
973
|
get isBannerRendered() {
|
|
950
974
|
return isDocumentAvailable() && this.banner && this.banner.nativeElement;
|
|
951
975
|
}
|
|
952
|
-
}
|
|
953
|
-
|
|
954
|
-
WatermarkOverlayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: WatermarkOverlayComponent, isStandalone: true, selector: "div[kendoWatermarkOverlay]", host: { properties: { "style": "this.watermarkStyle" } }, viewQueries: [{ propertyName: "banner", first: true, predicate: ["banner"], descendants: true }], ngImport: i0, template: `
|
|
976
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WatermarkOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
977
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: WatermarkOverlayComponent, isStandalone: true, selector: "div[kendoWatermarkOverlay]", host: { properties: { "style": "this.watermarkStyle" } }, viewQueries: [{ propertyName: "banner", first: true, predicate: ["banner"], descendants: true }], ngImport: i0, template: `
|
|
955
978
|
<div #banner *ngIf="isOpen && bannerMounted" [ngStyle]="bannerStyles">
|
|
956
979
|
<span [ngStyle]="{ display: 'flex', alignSelf: 'center', marginRight: '8px' }">
|
|
957
980
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
@@ -978,7 +1001,8 @@ WatermarkOverlayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.
|
|
|
978
1001
|
</div>
|
|
979
1002
|
</div>
|
|
980
1003
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
981
|
-
|
|
1004
|
+
}
|
|
1005
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WatermarkOverlayComponent, decorators: [{
|
|
982
1006
|
type: Component,
|
|
983
1007
|
args: [{
|
|
984
1008
|
selector: 'div[kendoWatermarkOverlay]',
|
|
@@ -1025,11 +1049,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1025
1049
|
* IMPORTANT: NgModule export kept for backwards compatibility
|
|
1026
1050
|
*/
|
|
1027
1051
|
class WatermarkModule {
|
|
1052
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WatermarkModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1053
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: WatermarkModule, imports: [WatermarkOverlayComponent], exports: [WatermarkOverlayComponent] });
|
|
1054
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WatermarkModule });
|
|
1028
1055
|
}
|
|
1029
|
-
|
|
1030
|
-
WatermarkModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: WatermarkModule, imports: [WatermarkOverlayComponent], exports: [WatermarkOverlayComponent] });
|
|
1031
|
-
WatermarkModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WatermarkModule, imports: [WatermarkOverlayComponent] });
|
|
1032
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WatermarkModule, decorators: [{
|
|
1056
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WatermarkModule, decorators: [{
|
|
1033
1057
|
type: NgModule,
|
|
1034
1058
|
args: [{
|
|
1035
1059
|
exports: [WatermarkOverlayComponent],
|
|
@@ -1069,10 +1093,7 @@ function shouldShowValidationUI(isPackageValid) {
|
|
|
1069
1093
|
* ```
|
|
1070
1094
|
*/
|
|
1071
1095
|
class PrefixTemplateDirective {
|
|
1072
|
-
|
|
1073
|
-
this.templateRef = templateRef;
|
|
1074
|
-
this._showSeparator = false;
|
|
1075
|
-
}
|
|
1096
|
+
templateRef;
|
|
1076
1097
|
/**
|
|
1077
1098
|
* Sets the `showSeparator` attribute of the `prefixTemplate`.
|
|
1078
1099
|
*
|
|
@@ -1084,10 +1105,14 @@ class PrefixTemplateDirective {
|
|
|
1084
1105
|
get showSeparator() {
|
|
1085
1106
|
return this._showSeparator;
|
|
1086
1107
|
}
|
|
1108
|
+
_showSeparator = false;
|
|
1109
|
+
constructor(templateRef) {
|
|
1110
|
+
this.templateRef = templateRef;
|
|
1111
|
+
}
|
|
1112
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PrefixTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1113
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: PrefixTemplateDirective, isStandalone: true, selector: "[kendoPrefixTemplate]", inputs: { showSeparator: "showSeparator" }, ngImport: i0 });
|
|
1087
1114
|
}
|
|
1088
|
-
|
|
1089
|
-
PrefixTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PrefixTemplateDirective, isStandalone: true, selector: "[kendoPrefixTemplate]", inputs: { showSeparator: "showSeparator" }, ngImport: i0 });
|
|
1090
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PrefixTemplateDirective, decorators: [{
|
|
1115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PrefixTemplateDirective, decorators: [{
|
|
1091
1116
|
type: Directive,
|
|
1092
1117
|
args: [{
|
|
1093
1118
|
selector: '[kendoPrefixTemplate]',
|
|
@@ -1121,10 +1146,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1121
1146
|
* ```
|
|
1122
1147
|
*/
|
|
1123
1148
|
class SuffixTemplateDirective {
|
|
1124
|
-
|
|
1125
|
-
this.templateRef = templateRef;
|
|
1126
|
-
this._showSeparator = false;
|
|
1127
|
-
}
|
|
1149
|
+
templateRef;
|
|
1128
1150
|
/**
|
|
1129
1151
|
* Sets the `showSeparator` attribute of the `suffixTemplate`.
|
|
1130
1152
|
*
|
|
@@ -1136,10 +1158,14 @@ class SuffixTemplateDirective {
|
|
|
1136
1158
|
get showSeparator() {
|
|
1137
1159
|
return this._showSeparator;
|
|
1138
1160
|
}
|
|
1161
|
+
_showSeparator = false;
|
|
1162
|
+
constructor(templateRef) {
|
|
1163
|
+
this.templateRef = templateRef;
|
|
1164
|
+
}
|
|
1165
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuffixTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1166
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SuffixTemplateDirective, isStandalone: true, selector: "[kendoSuffixTemplate]", inputs: { showSeparator: "showSeparator" }, ngImport: i0 });
|
|
1139
1167
|
}
|
|
1140
|
-
|
|
1141
|
-
SuffixTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SuffixTemplateDirective, isStandalone: true, selector: "[kendoSuffixTemplate]", inputs: { showSeparator: "showSeparator" }, ngImport: i0 });
|
|
1142
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SuffixTemplateDirective, decorators: [{
|
|
1168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuffixTemplateDirective, decorators: [{
|
|
1143
1169
|
type: Directive,
|
|
1144
1170
|
args: [{
|
|
1145
1171
|
selector: '[kendoSuffixTemplate]',
|
|
@@ -1171,18 +1197,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1171
1197
|
* ```
|
|
1172
1198
|
*/
|
|
1173
1199
|
class SeparatorComponent {
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
this.orientation = 'vertical';
|
|
1181
|
-
/**
|
|
1182
|
-
* @hidden
|
|
1183
|
-
*/
|
|
1184
|
-
this.hostClass = true;
|
|
1185
|
-
}
|
|
1200
|
+
/**
|
|
1201
|
+
* Specifies the orientation of the separator. Applicable for the adornments of the [`TextAreaComponent`](slug:api_inputs_textareacomponent).
|
|
1202
|
+
*
|
|
1203
|
+
* @default 'vertical'
|
|
1204
|
+
*/
|
|
1205
|
+
orientation = 'vertical';
|
|
1186
1206
|
/**
|
|
1187
1207
|
* @hidden
|
|
1188
1208
|
*/
|
|
@@ -1195,10 +1215,14 @@ class SeparatorComponent {
|
|
|
1195
1215
|
get horizontal() {
|
|
1196
1216
|
return this.orientation === 'horizontal';
|
|
1197
1217
|
}
|
|
1218
|
+
/**
|
|
1219
|
+
* @hidden
|
|
1220
|
+
*/
|
|
1221
|
+
hostClass = true;
|
|
1222
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1223
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SeparatorComponent, isStandalone: true, selector: "kendo-separator", inputs: { orientation: "orientation" }, host: { properties: { "class.k-input-separator-vertical": "this.vertical", "class.k-input-separator-horizontal": "this.horizontal", "class.k-input-separator": "this.hostClass" } }, ngImport: i0, template: ``, isInline: true });
|
|
1198
1224
|
}
|
|
1199
|
-
|
|
1200
|
-
SeparatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: SeparatorComponent, isStandalone: true, selector: "kendo-separator", inputs: { orientation: "orientation" }, host: { properties: { "class.k-input-separator-vertical": "this.vertical", "class.k-input-separator-horizontal": "this.horizontal", "class.k-input-separator": "this.hostClass" } }, ngImport: i0, template: ``, isInline: true });
|
|
1201
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SeparatorComponent, decorators: [{
|
|
1225
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SeparatorComponent, decorators: [{
|
|
1202
1226
|
type: Component,
|
|
1203
1227
|
args: [{
|
|
1204
1228
|
selector: 'kendo-separator',
|
|
@@ -1222,9 +1246,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1222
1246
|
* @hidden
|
|
1223
1247
|
*/
|
|
1224
1248
|
class TemplateContextDirective {
|
|
1225
|
-
constructor(viewContainerRef) {
|
|
1226
|
-
this.viewContainerRef = viewContainerRef;
|
|
1227
|
-
}
|
|
1228
1249
|
set templateContext(context) {
|
|
1229
1250
|
if (this.insertedViewRef) {
|
|
1230
1251
|
this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.insertedViewRef));
|
|
@@ -1234,10 +1255,15 @@ class TemplateContextDirective {
|
|
|
1234
1255
|
this.insertedViewRef = this.viewContainerRef.createEmbeddedView(context.templateRef, context);
|
|
1235
1256
|
}
|
|
1236
1257
|
}
|
|
1258
|
+
insertedViewRef;
|
|
1259
|
+
viewContainerRef;
|
|
1260
|
+
constructor(viewContainerRef) {
|
|
1261
|
+
this.viewContainerRef = viewContainerRef;
|
|
1262
|
+
}
|
|
1263
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TemplateContextDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1264
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TemplateContextDirective, isStandalone: true, selector: "[templateContext]", inputs: { templateContext: "templateContext" }, ngImport: i0 });
|
|
1237
1265
|
}
|
|
1238
|
-
|
|
1239
|
-
TemplateContextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TemplateContextDirective, isStandalone: true, selector: "[templateContext]", inputs: { templateContext: "templateContext" }, ngImport: i0 });
|
|
1240
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TemplateContextDirective, decorators: [{
|
|
1266
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TemplateContextDirective, decorators: [{
|
|
1241
1267
|
type: Directive,
|
|
1242
1268
|
args: [{
|
|
1243
1269
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -1252,6 +1278,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1252
1278
|
* @hidden
|
|
1253
1279
|
*/
|
|
1254
1280
|
class MultiTabStop {
|
|
1281
|
+
escape;
|
|
1255
1282
|
}
|
|
1256
1283
|
|
|
1257
1284
|
const tags = ['kendo-splitbutton', 'kendo-combobox', 'kendo-multicolumncombobox', 'kendo-datepicker', 'kendo-timepicker', 'kendo-datetimepicker'];
|
|
@@ -1275,6 +1302,29 @@ const tags = ['kendo-splitbutton', 'kendo-combobox', 'kendo-multicolumncombobox'
|
|
|
1275
1302
|
* ```
|
|
1276
1303
|
*/
|
|
1277
1304
|
class ToggleButtonTabStopDirective {
|
|
1305
|
+
hostEl;
|
|
1306
|
+
renderer;
|
|
1307
|
+
zone;
|
|
1308
|
+
hostComponent;
|
|
1309
|
+
/**
|
|
1310
|
+
* @hidden
|
|
1311
|
+
*
|
|
1312
|
+
* Allows setting the interactive state of the toggle button.
|
|
1313
|
+
*
|
|
1314
|
+
* @default true
|
|
1315
|
+
*/
|
|
1316
|
+
active;
|
|
1317
|
+
/**
|
|
1318
|
+
* Defines the value of the `aria-label` attribute of the toggle button when active.
|
|
1319
|
+
*
|
|
1320
|
+
* @default "toggle popup"
|
|
1321
|
+
*/
|
|
1322
|
+
toggleButtonAriaLabel = 'toggle popup';
|
|
1323
|
+
button;
|
|
1324
|
+
sub = new Subscription();
|
|
1325
|
+
focusButton;
|
|
1326
|
+
isSplitButton;
|
|
1327
|
+
observer;
|
|
1278
1328
|
/**
|
|
1279
1329
|
* @hidden
|
|
1280
1330
|
*/
|
|
@@ -1283,31 +1333,6 @@ class ToggleButtonTabStopDirective {
|
|
|
1283
1333
|
this.renderer = renderer;
|
|
1284
1334
|
this.zone = zone;
|
|
1285
1335
|
this.hostComponent = hostComponent;
|
|
1286
|
-
/**
|
|
1287
|
-
* Defines the value of the `aria-label` attribute of the toggle button when active.
|
|
1288
|
-
*
|
|
1289
|
-
* @default "toggle popup"
|
|
1290
|
-
*/
|
|
1291
|
-
this.toggleButtonAriaLabel = 'toggle popup';
|
|
1292
|
-
this.sub = new Subscription();
|
|
1293
|
-
this.onFocus = () => {
|
|
1294
|
-
this.renderer.setStyle(this.button, 'box-shadow', 'inset 0 0 0 1px rgba(0, 0, 0, 0.08)');
|
|
1295
|
-
};
|
|
1296
|
-
this.onBlur = () => {
|
|
1297
|
-
this.renderer.removeStyle(this.button, 'box-shadow');
|
|
1298
|
-
};
|
|
1299
|
-
this.onClick = (e) => {
|
|
1300
|
-
const splitButtonToggleEnter = e instanceof KeyboardEvent && e.keyCode === Keys.Enter;
|
|
1301
|
-
const isClick = e instanceof PointerEvent;
|
|
1302
|
-
(splitButtonToggleEnter || isClick) && (this.focusButton = true);
|
|
1303
|
-
};
|
|
1304
|
-
this.onKeyDown = (e) => {
|
|
1305
|
-
if (e.keyCode === Keys.ArrowDown && e.altKey) {
|
|
1306
|
-
e.stopImmediatePropagation();
|
|
1307
|
-
this.focusButton = true;
|
|
1308
|
-
this.button.click();
|
|
1309
|
-
}
|
|
1310
|
-
};
|
|
1311
1336
|
if (isDevMode() && tags.indexOf(hostEl.nativeElement.tagName.toLowerCase()) === -1) {
|
|
1312
1337
|
console.warn(`The kendoToggleButtonTabStop directive can be applied to the following components only: ${tags}`);
|
|
1313
1338
|
}
|
|
@@ -1385,6 +1410,24 @@ class ToggleButtonTabStopDirective {
|
|
|
1385
1410
|
this.observer && this.observer.disconnect();
|
|
1386
1411
|
this.observer = null;
|
|
1387
1412
|
}
|
|
1413
|
+
onFocus = () => {
|
|
1414
|
+
this.renderer.setStyle(this.button, 'box-shadow', 'inset 0 0 0 1px rgba(0, 0, 0, 0.08)');
|
|
1415
|
+
};
|
|
1416
|
+
onBlur = () => {
|
|
1417
|
+
this.renderer.removeStyle(this.button, 'box-shadow');
|
|
1418
|
+
};
|
|
1419
|
+
onClick = (e) => {
|
|
1420
|
+
const splitButtonToggleEnter = e instanceof KeyboardEvent && e.keyCode === Keys.Enter;
|
|
1421
|
+
const isClick = e instanceof PointerEvent;
|
|
1422
|
+
(splitButtonToggleEnter || isClick) && (this.focusButton = true);
|
|
1423
|
+
};
|
|
1424
|
+
onKeyDown = (e) => {
|
|
1425
|
+
if (e.keyCode === Keys.ArrowDown && e.altKey) {
|
|
1426
|
+
e.stopImmediatePropagation();
|
|
1427
|
+
this.focusButton = true;
|
|
1428
|
+
this.button.click();
|
|
1429
|
+
}
|
|
1430
|
+
};
|
|
1388
1431
|
addListeners() {
|
|
1389
1432
|
if (this.button) {
|
|
1390
1433
|
this.zone.runOutsideAngular(() => this.button.addEventListener('focus', this.onFocus));
|
|
@@ -1442,10 +1485,10 @@ class ToggleButtonTabStopDirective {
|
|
|
1442
1485
|
this.observer.observe(mainFocusableElement, mutationConfig);
|
|
1443
1486
|
});
|
|
1444
1487
|
}
|
|
1488
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToggleButtonTabStopDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: MultiTabStop }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1489
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ToggleButtonTabStopDirective, isStandalone: true, selector: "[kendoToggleButtonTabStop]", inputs: { active: ["kendoToggleButtonTabStop", "active"], toggleButtonAriaLabel: "toggleButtonAriaLabel" }, usesOnChanges: true, ngImport: i0 });
|
|
1445
1490
|
}
|
|
1446
|
-
|
|
1447
|
-
ToggleButtonTabStopDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ToggleButtonTabStopDirective, isStandalone: true, selector: "[kendoToggleButtonTabStop]", inputs: { active: ["kendoToggleButtonTabStop", "active"], toggleButtonAriaLabel: "toggleButtonAriaLabel" }, usesOnChanges: true, ngImport: i0 });
|
|
1448
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToggleButtonTabStopDirective, decorators: [{
|
|
1491
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToggleButtonTabStopDirective, decorators: [{
|
|
1449
1492
|
type: Directive,
|
|
1450
1493
|
args: [{
|
|
1451
1494
|
selector: '[kendoToggleButtonTabStop]',
|
|
@@ -1519,11 +1562,11 @@ const KENDO_TEMPLATE_CONTEXT = [
|
|
|
1519
1562
|
* IMPORTANT: NgModule export kept for backwards compatibility
|
|
1520
1563
|
*/
|
|
1521
1564
|
class AdornmentsModule {
|
|
1565
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AdornmentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1566
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: AdornmentsModule, imports: [PrefixTemplateDirective, SuffixTemplateDirective, SeparatorComponent], exports: [PrefixTemplateDirective, SuffixTemplateDirective, SeparatorComponent] });
|
|
1567
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AdornmentsModule });
|
|
1522
1568
|
}
|
|
1523
|
-
|
|
1524
|
-
AdornmentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: AdornmentsModule, imports: [PrefixTemplateDirective, SuffixTemplateDirective, SeparatorComponent], exports: [PrefixTemplateDirective, SuffixTemplateDirective, SeparatorComponent] });
|
|
1525
|
-
AdornmentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdornmentsModule, imports: [SeparatorComponent] });
|
|
1526
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdornmentsModule, decorators: [{
|
|
1569
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AdornmentsModule, decorators: [{
|
|
1527
1570
|
type: NgModule,
|
|
1528
1571
|
args: [{
|
|
1529
1572
|
imports: [...KENDO_ADORNMENTS],
|
|
@@ -1532,9 +1575,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1532
1575
|
}] });
|
|
1533
1576
|
|
|
1534
1577
|
class PreventableEvent {
|
|
1535
|
-
|
|
1536
|
-
this.prevented = false;
|
|
1537
|
-
}
|
|
1578
|
+
prevented = false;
|
|
1538
1579
|
/**
|
|
1539
1580
|
* Prevents the default action for a specified event.
|
|
1540
1581
|
* In this way, the source component suppresses
|
|
@@ -1576,16 +1617,16 @@ const scrollbarWidth = () => {
|
|
|
1576
1617
|
* @hidden
|
|
1577
1618
|
*/
|
|
1578
1619
|
class ScrollbarWidthService {
|
|
1620
|
+
changes = new EventEmitter();
|
|
1579
1621
|
constructor() {
|
|
1580
|
-
this.changes = new EventEmitter();
|
|
1581
1622
|
if (typeof window !== 'undefined' && isDocumentAvailable()) {
|
|
1582
1623
|
document.body.style.setProperty(propName, `${scrollbarWidth()}px`);
|
|
1583
1624
|
}
|
|
1584
1625
|
}
|
|
1626
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ScrollbarWidthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1627
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ScrollbarWidthService, providedIn: 'root' });
|
|
1585
1628
|
}
|
|
1586
|
-
|
|
1587
|
-
ScrollbarWidthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ScrollbarWidthService, providedIn: 'root' });
|
|
1588
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ScrollbarWidthService, decorators: [{
|
|
1629
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ScrollbarWidthService, decorators: [{
|
|
1589
1630
|
type: Injectable,
|
|
1590
1631
|
args: [{
|
|
1591
1632
|
providedIn: 'root'
|
|
@@ -1597,11 +1638,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1597
1638
|
* IMPORTANT: NgModule export kept for backwards compatibility
|
|
1598
1639
|
*/
|
|
1599
1640
|
class ToggleButtonTabStopModule {
|
|
1641
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToggleButtonTabStopModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1642
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ToggleButtonTabStopModule, imports: [ToggleButtonTabStopDirective], exports: [ToggleButtonTabStopDirective] });
|
|
1643
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToggleButtonTabStopModule });
|
|
1600
1644
|
}
|
|
1601
|
-
|
|
1602
|
-
ToggleButtonTabStopModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ToggleButtonTabStopModule, imports: [ToggleButtonTabStopDirective], exports: [ToggleButtonTabStopDirective] });
|
|
1603
|
-
ToggleButtonTabStopModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToggleButtonTabStopModule });
|
|
1604
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToggleButtonTabStopModule, decorators: [{
|
|
1645
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToggleButtonTabStopModule, decorators: [{
|
|
1605
1646
|
type: NgModule,
|
|
1606
1647
|
args: [{
|
|
1607
1648
|
imports: [ToggleButtonTabStopDirective],
|