@clr/angular 18.2.2 → 18.4.0
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/fesm2022/clr-angular-accordion.mjs +28 -28
- package/fesm2022/clr-angular-accordion.mjs.map +1 -1
- package/fesm2022/clr-angular-button.mjs +27 -27
- package/fesm2022/clr-angular-button.mjs.map +1 -1
- package/fesm2022/clr-angular-card.mjs +417 -0
- package/fesm2022/clr-angular-card.mjs.map +1 -0
- package/fesm2022/clr-angular-collapsible-panel.mjs +6 -6
- package/fesm2022/clr-angular-collapsible-panel.mjs.map +1 -1
- package/fesm2022/clr-angular-data-datagrid.mjs +1578 -415
- package/fesm2022/clr-angular-data-datagrid.mjs.map +1 -1
- package/fesm2022/clr-angular-data-stack-view.mjs +23 -23
- package/fesm2022/clr-angular-data-stack-view.mjs.map +1 -1
- package/fesm2022/clr-angular-data-tree-view.mjs +283 -48
- package/fesm2022/clr-angular-data-tree-view.mjs.map +1 -1
- package/fesm2022/clr-angular-data.mjs +4 -4
- package/fesm2022/clr-angular-data.mjs.map +1 -1
- package/fesm2022/clr-angular-emphasis-alert.mjs +26 -26
- package/fesm2022/clr-angular-emphasis-alert.mjs.map +1 -1
- package/fesm2022/clr-angular-emphasis-badge.mjs +3 -3
- package/fesm2022/clr-angular-emphasis-badge.mjs.map +1 -1
- package/fesm2022/clr-angular-emphasis-label.mjs +3 -3
- package/fesm2022/clr-angular-emphasis-label.mjs.map +1 -1
- package/fesm2022/clr-angular-emphasis.mjs +4 -4
- package/fesm2022/clr-angular-emphasis.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-checkbox.mjs +23 -14
- package/fesm2022/clr-angular-forms-checkbox.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-combobox.mjs +35 -35
- package/fesm2022/clr-angular-forms-combobox.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-common.mjs +69 -69
- package/fesm2022/clr-angular-forms-common.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-datalist.mjs +17 -17
- package/fesm2022/clr-angular-forms-datalist.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-datepicker.mjs +73 -73
- package/fesm2022/clr-angular-forms-datepicker.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-file-input.mjs +36 -36
- package/fesm2022/clr-angular-forms-file-input.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-input.mjs +10 -10
- package/fesm2022/clr-angular-forms-input.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-number-input.mjs +12 -12
- package/fesm2022/clr-angular-forms-number-input.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-password.mjs +11 -11
- package/fesm2022/clr-angular-forms-password.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-radio.mjs +17 -24
- package/fesm2022/clr-angular-forms-radio.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-range.mjs +10 -10
- package/fesm2022/clr-angular-forms-range.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-select.mjs +10 -10
- package/fesm2022/clr-angular-forms-select.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-textarea.mjs +10 -10
- package/fesm2022/clr-angular-forms-textarea.mjs.map +1 -1
- package/fesm2022/clr-angular-forms.mjs +4 -4
- package/fesm2022/clr-angular-forms.mjs.map +1 -1
- package/fesm2022/clr-angular-icon.mjs +101 -47
- package/fesm2022/clr-angular-icon.mjs.map +1 -1
- package/fesm2022/clr-angular-layout-breadcrumbs.mjs +10 -10
- package/fesm2022/clr-angular-layout-breadcrumbs.mjs.map +1 -1
- package/fesm2022/clr-angular-layout-main-container.mjs +7 -7
- package/fesm2022/clr-angular-layout-main-container.mjs.map +1 -1
- package/fesm2022/clr-angular-layout-nav.mjs +22 -22
- package/fesm2022/clr-angular-layout-nav.mjs.map +1 -1
- package/fesm2022/clr-angular-layout-tabs.mjs +35 -35
- package/fesm2022/clr-angular-layout-tabs.mjs.map +1 -1
- package/fesm2022/clr-angular-layout-vertical-nav.mjs +31 -31
- package/fesm2022/clr-angular-layout-vertical-nav.mjs.map +1 -1
- package/fesm2022/clr-angular-layout.mjs +4 -4
- package/fesm2022/clr-angular-layout.mjs.map +1 -1
- package/fesm2022/clr-angular-modal.mjs +29 -27
- package/fesm2022/clr-angular-modal.mjs.map +1 -1
- package/fesm2022/clr-angular-popover-common.mjs +70 -35
- package/fesm2022/clr-angular-popover-common.mjs.map +1 -1
- package/fesm2022/clr-angular-popover-dropdown.mjs +63 -26
- package/fesm2022/clr-angular-popover-dropdown.mjs.map +1 -1
- package/fesm2022/clr-angular-popover-signpost.mjs +27 -25
- package/fesm2022/clr-angular-popover-signpost.mjs.map +1 -1
- package/fesm2022/clr-angular-popover-tooltip.mjs +19 -19
- package/fesm2022/clr-angular-popover-tooltip.mjs.map +1 -1
- package/fesm2022/clr-angular-popover.mjs +4 -4
- package/fesm2022/clr-angular-popover.mjs.map +1 -1
- package/fesm2022/clr-angular-progress-progress-bars.mjs +7 -7
- package/fesm2022/clr-angular-progress-progress-bars.mjs.map +1 -1
- package/fesm2022/clr-angular-progress-spinner.mjs +7 -7
- package/fesm2022/clr-angular-progress-spinner.mjs.map +1 -1
- package/fesm2022/clr-angular-stepper.mjs +31 -31
- package/fesm2022/clr-angular-stepper.mjs.map +1 -1
- package/fesm2022/clr-angular-timeline.mjs +24 -24
- package/fesm2022/clr-angular-timeline.mjs.map +1 -1
- package/fesm2022/clr-angular-utils-conditional.mjs +16 -16
- package/fesm2022/clr-angular-utils-conditional.mjs.map +1 -1
- package/fesm2022/clr-angular-utils-loading.mjs +7 -7
- package/fesm2022/clr-angular-utils-loading.mjs.map +1 -1
- package/fesm2022/clr-angular-utils.mjs +149 -150
- package/fesm2022/clr-angular-utils.mjs.map +1 -1
- package/fesm2022/clr-angular-wizard.mjs +51 -51
- package/fesm2022/clr-angular-wizard.mjs.map +1 -1
- package/fesm2022/clr-angular.mjs +9 -4
- package/fesm2022/clr-angular.mjs.map +1 -1
- package/package.json +9 -5
- package/types/clr-angular-card.d.ts +110 -0
- package/types/clr-angular-data-datagrid.d.ts +427 -57
- package/types/clr-angular-data-tree-view.d.ts +126 -88
- package/types/clr-angular-forms-checkbox.d.ts +3 -0
- package/types/clr-angular-forms-datepicker.d.ts +1 -1
- package/types/clr-angular-forms-file-input.d.ts +1 -1
- package/types/clr-angular-forms-radio.d.ts +1 -2
- package/types/clr-angular-icon.d.ts +22 -2
- package/types/clr-angular-popover-common.d.ts +6 -0
- package/types/clr-angular-popover-dropdown.d.ts +33 -4
- package/types/clr-angular-utils.d.ts +61 -20
- package/types/clr-angular.d.ts +8 -6
- package/schematics/vitest.config.d.ts +0 -2
- package/schematics/vitest.config.js +0 -17
- package/schematics/vitest.config.js.map +0 -1
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import { FormControl, FormGroup } from '@angular/forms';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Injectable, EventEmitter, Output, Input, Directive, NgModule, TemplateRef, ViewChild, Component, ElementRef, HostListener, HostBinding, InjectionToken, PLATFORM_ID, DOCUMENT, Inject,
|
|
3
|
+
import { Injectable, EventEmitter, Output, Input, Directive, NgModule, TemplateRef, ViewChild, Component, ElementRef, HostListener, HostBinding, InjectionToken, PLATFORM_ID, DOCUMENT, Inject, ContentChildren, Optional, SkipSelf, Renderer2 } from '@angular/core';
|
|
4
4
|
import { CommonModule, isPlatformBrowser } from '@angular/common';
|
|
5
5
|
import * as i2 from '@angular/animations';
|
|
6
6
|
import { animation, style, animate, state, transition, trigger, useAnimation } from '@angular/animations';
|
|
7
7
|
export * from '@clr/angular/utils/loading';
|
|
8
8
|
export * from '@clr/angular/utils/conditional';
|
|
9
9
|
import { Subject, fromEvent, Observable, isObservable, of } from 'rxjs';
|
|
10
|
-
import { takeUntil } from 'rxjs/operators';
|
|
11
|
-
import * as i1 from '@angular/cdk/a11y';
|
|
10
|
+
import { takeUntil, take } from 'rxjs/operators';
|
|
12
11
|
import { CdkTrapFocus } from '@angular/cdk/a11y';
|
|
13
|
-
import
|
|
14
|
-
import { CdkDrag, CDK_DROP_LIST, CDK_DRAG_CONFIG } from '@angular/cdk/drag-drop';
|
|
15
|
-
import * as i1$1 from '@angular/cdk/bidi';
|
|
12
|
+
import { CdkDrag } from '@angular/cdk/drag-drop';
|
|
16
13
|
|
|
17
14
|
/*
|
|
18
15
|
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
@@ -87,10 +84,10 @@ class DomAdapter {
|
|
|
87
84
|
focus(element) {
|
|
88
85
|
element.focus();
|
|
89
86
|
}
|
|
90
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
91
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
87
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: DomAdapter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
88
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: DomAdapter }); }
|
|
92
89
|
}
|
|
93
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: DomAdapter, decorators: [{
|
|
94
91
|
type: Injectable
|
|
95
92
|
}] });
|
|
96
93
|
|
|
@@ -120,10 +117,10 @@ class MockDomAdapter extends DomAdapter {
|
|
|
120
117
|
computedHeight(_element) {
|
|
121
118
|
return this._computedHeight;
|
|
122
119
|
}
|
|
123
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
124
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
120
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: MockDomAdapter, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
121
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: MockDomAdapter }); }
|
|
125
122
|
}
|
|
126
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: MockDomAdapter, decorators: [{
|
|
127
124
|
type: Injectable
|
|
128
125
|
}] });
|
|
129
126
|
const MOCK_DOM_ADAPTER_PROVIDER = {
|
|
@@ -162,10 +159,10 @@ class OutsideClick {
|
|
|
162
159
|
ngOnDestroy() {
|
|
163
160
|
this.documentClickListener();
|
|
164
161
|
}
|
|
165
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
166
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.
|
|
162
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: OutsideClick, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
163
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.25", type: OutsideClick, isStandalone: false, selector: "[clrOutsideClick]", inputs: { strict: ["clrStrict", "strict"] }, outputs: { outsideClick: "clrOutsideClick" }, ngImport: i0 }); }
|
|
167
164
|
}
|
|
168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: OutsideClick, decorators: [{
|
|
169
166
|
type: Directive,
|
|
170
167
|
args: [{
|
|
171
168
|
selector: '[clrOutsideClick]',
|
|
@@ -187,11 +184,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImpor
|
|
|
187
184
|
*/
|
|
188
185
|
const OUSTIDE_CLICK_DIRECTIVES = [OutsideClick];
|
|
189
186
|
class ClrOutsideClickModule {
|
|
190
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
191
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.
|
|
192
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.
|
|
187
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrOutsideClickModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
188
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: ClrOutsideClickModule, declarations: [OutsideClick], imports: [CommonModule], exports: [OutsideClick] }); }
|
|
189
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrOutsideClickModule, imports: [CommonModule] }); }
|
|
193
190
|
}
|
|
194
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
191
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrOutsideClickModule, decorators: [{
|
|
195
192
|
type: NgModule,
|
|
196
193
|
args: [{
|
|
197
194
|
imports: [CommonModule],
|
|
@@ -214,14 +211,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImpor
|
|
|
214
211
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
215
212
|
*/
|
|
216
213
|
class TemplateRefContainer {
|
|
217
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
218
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
214
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: TemplateRefContainer, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
215
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: TemplateRefContainer, isStandalone: false, selector: "ng-component", viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: `
|
|
219
216
|
<ng-template>
|
|
220
217
|
<ng-content></ng-content>
|
|
221
218
|
</ng-template>
|
|
222
219
|
`, isInline: true }); }
|
|
223
220
|
}
|
|
224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
221
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: TemplateRefContainer, decorators: [{
|
|
225
222
|
type: Component,
|
|
226
223
|
args: [{
|
|
227
224
|
template: `
|
|
@@ -243,11 +240,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImpor
|
|
|
243
240
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
244
241
|
*/
|
|
245
242
|
class ClrTemplateRefModule {
|
|
246
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
247
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.
|
|
248
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.
|
|
243
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrTemplateRefModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
244
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: ClrTemplateRefModule, declarations: [TemplateRefContainer], imports: [CommonModule], exports: [TemplateRefContainer] }); }
|
|
245
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrTemplateRefModule, imports: [CommonModule] }); }
|
|
249
246
|
}
|
|
250
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
247
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrTemplateRefModule, decorators: [{
|
|
251
248
|
type: NgModule,
|
|
252
249
|
args: [{
|
|
253
250
|
imports: [CommonModule],
|
|
@@ -294,10 +291,10 @@ const EXTRA_LARGE_BREAKPOINT = 1200;
|
|
|
294
291
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
295
292
|
*/
|
|
296
293
|
class EmptyAnchor {
|
|
297
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
298
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
294
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: EmptyAnchor, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
295
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: EmptyAnchor, isStandalone: false, selector: "ng-component", ngImport: i0, template: '', isInline: true }); }
|
|
299
296
|
}
|
|
300
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
297
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: EmptyAnchor, decorators: [{
|
|
301
298
|
type: Component,
|
|
302
299
|
args: [{
|
|
303
300
|
template: '',
|
|
@@ -354,11 +351,11 @@ class HostWrapper {
|
|
|
354
351
|
* Internal module, please do not export!
|
|
355
352
|
*/
|
|
356
353
|
class ClrHostWrappingModule {
|
|
357
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
358
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.
|
|
359
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.
|
|
354
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrHostWrappingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
355
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: ClrHostWrappingModule, declarations: [EmptyAnchor], exports: [EmptyAnchor] }); }
|
|
356
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrHostWrappingModule }); }
|
|
360
357
|
}
|
|
361
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
358
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrHostWrappingModule, decorators: [{
|
|
362
359
|
type: NgModule,
|
|
363
360
|
args: [{
|
|
364
361
|
declarations: [EmptyAnchor],
|
|
@@ -454,7 +451,11 @@ class BaseExpandableAnimation {
|
|
|
454
451
|
this.startHeight = this.domAdapter.computedHeight(this.element.nativeElement) || 0;
|
|
455
452
|
}
|
|
456
453
|
initAnimationEffects() {
|
|
457
|
-
|
|
454
|
+
// `clip` rather than `hidden`: both clip the content that grows past the animated height, but
|
|
455
|
+
// `hidden` also turns this element into a scroll container, and a scroll container is what a
|
|
456
|
+
// `position: sticky` descendant anchors itself to. Anything sticky inside would come loose for
|
|
457
|
+
// the length of the animation - which is what the datagrid's static columns do. See CDE-3127.
|
|
458
|
+
this.renderer.setStyle(this.element.nativeElement, 'overflow', 'clip');
|
|
458
459
|
}
|
|
459
460
|
cleanupAnimationEffects(cancelAnimations = false) {
|
|
460
461
|
this.renderer.removeStyle(this.element.nativeElement, 'overflow');
|
|
@@ -473,10 +474,10 @@ class BaseExpandableAnimation {
|
|
|
473
474
|
}
|
|
474
475
|
});
|
|
475
476
|
}
|
|
476
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
477
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.
|
|
477
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: BaseExpandableAnimation, deps: [{ token: i0.ElementRef }, { token: DomAdapter }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
478
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.25", type: BaseExpandableAnimation, isStandalone: true, ngImport: i0 }); }
|
|
478
479
|
}
|
|
479
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
480
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: BaseExpandableAnimation, decorators: [{
|
|
480
481
|
type: Directive
|
|
481
482
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: DomAdapter }, { type: i0.Renderer2 }] });
|
|
482
483
|
|
|
@@ -504,10 +505,10 @@ class ClrExpandableAnimation extends BaseExpandableAnimation {
|
|
|
504
505
|
this.cleanupAnimationEffects();
|
|
505
506
|
}
|
|
506
507
|
}
|
|
507
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
508
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
508
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrExpandableAnimation, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
509
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: ClrExpandableAnimation, isStandalone: false, selector: "clr-expandable-animation", inputs: { clrExpandTrigger: "clrExpandTrigger" }, host: { listeners: { "@expandAnimation.start": "animationStart($event)", "@expandAnimation.done": "animationDone($event)" }, properties: { "@expandAnimation": "this.expandAnimation" } }, providers: [DomAdapter], usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, styles: [":host{display:block}\n"], animations: [trigger('expandAnimation', [transition('true <=> false', [useAnimation(defaultExpandAnimation)])])] }); }
|
|
509
510
|
}
|
|
510
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
511
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrExpandableAnimation, decorators: [{
|
|
511
512
|
type: Component,
|
|
512
513
|
args: [{ selector: 'clr-expandable-animation', template: `<ng-content></ng-content>`, animations: [trigger('expandAnimation', [transition('true <=> false', [useAnimation(defaultExpandAnimation)])])], providers: [DomAdapter], standalone: false, styles: [":host{display:block}\n"] }]
|
|
513
514
|
}], propDecorators: { clrExpandTrigger: [{
|
|
@@ -554,10 +555,10 @@ class ClrExpandableAnimationDirective extends BaseExpandableAnimation {
|
|
|
554
555
|
this.player.onDone(() => this.cleanupAnimationEffects(true));
|
|
555
556
|
this.player.play();
|
|
556
557
|
}
|
|
557
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
558
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.
|
|
558
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrExpandableAnimationDirective, deps: [{ token: i0.ElementRef }, { token: DomAdapter }, { token: i0.Renderer2 }, { token: i2.AnimationBuilder }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
559
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.25", type: ClrExpandableAnimationDirective, isStandalone: false, selector: "[clrExpandableAnimation]", inputs: { expanded: ["clrExpandableAnimation", "expanded"] }, host: { properties: { "class.clr-expandable-animation": "true" } }, providers: [DomAdapter], usesInheritance: true, usesOnChanges: true, ngImport: i0 }); }
|
|
559
560
|
}
|
|
560
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
561
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrExpandableAnimationDirective, decorators: [{
|
|
561
562
|
type: Directive,
|
|
562
563
|
args: [{
|
|
563
564
|
selector: '[clrExpandableAnimation]',
|
|
@@ -580,11 +581,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImpor
|
|
|
580
581
|
*/
|
|
581
582
|
const EXPANDABLE_ANIMATION_DIRECTIVES = [ClrExpandableAnimation, ClrExpandableAnimationDirective];
|
|
582
583
|
class ClrExpandableAnimationModule {
|
|
583
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
584
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.
|
|
585
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.
|
|
584
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrExpandableAnimationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
585
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: ClrExpandableAnimationModule, declarations: [ClrExpandableAnimation, ClrExpandableAnimationDirective], imports: [CommonModule], exports: [ClrExpandableAnimation, ClrExpandableAnimationDirective] }); }
|
|
586
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrExpandableAnimationModule, imports: [CommonModule] }); }
|
|
586
587
|
}
|
|
587
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
588
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrExpandableAnimationModule, decorators: [{
|
|
588
589
|
type: NgModule,
|
|
589
590
|
args: [{
|
|
590
591
|
imports: [CommonModule],
|
|
@@ -730,6 +731,14 @@ const commonStringsDefault = {
|
|
|
730
731
|
pickColumns: 'Manage Columns',
|
|
731
732
|
showColumns: 'Show Columns',
|
|
732
733
|
sortColumn: 'Sort Column',
|
|
734
|
+
sortColumnAscending: 'Sort Ascending',
|
|
735
|
+
sortColumnDescending: 'Sort Descending',
|
|
736
|
+
clearColumnSort: 'Clear Sort',
|
|
737
|
+
filterColumn: 'Filter Column',
|
|
738
|
+
columnActions: 'Column actions',
|
|
739
|
+
datagridColumnActionsAriaLabel: '{COLUMN} column actions',
|
|
740
|
+
pinColumn: 'Pin Column',
|
|
741
|
+
unpinColumn: 'Unpin Column',
|
|
733
742
|
firstPage: 'First Page',
|
|
734
743
|
lastPage: 'Last Page',
|
|
735
744
|
nextPage: 'Next Page',
|
|
@@ -755,7 +764,7 @@ const commonStringsDefault = {
|
|
|
755
764
|
detailExpandableAriaLabel: 'Toggle more row content',
|
|
756
765
|
datagridFilterAriaLabel: '{COLUMN} filter',
|
|
757
766
|
datagridFilterLabel: '{COLUMN} filter',
|
|
758
|
-
datagridFilterDialogAriaLabel: 'Filter
|
|
767
|
+
datagridFilterDialogAriaLabel: 'Filter',
|
|
759
768
|
columnSeparatorAriaLabel: 'Column resize handle',
|
|
760
769
|
columnSeparatorDescription: 'Use left or right key to resize the column',
|
|
761
770
|
fromLabel: 'From',
|
|
@@ -839,6 +848,9 @@ const commonStringsDefault = {
|
|
|
839
848
|
// Breadcrumbs
|
|
840
849
|
breadcrumbsLabel: 'breadcrumbs',
|
|
841
850
|
expandBreadcrumbsLabel: 'Expand breadcrumbs',
|
|
851
|
+
// Card
|
|
852
|
+
expandCardAriaLabel: 'Expand card',
|
|
853
|
+
collapseCardAriaLabel: 'Collapse card',
|
|
842
854
|
};
|
|
843
855
|
|
|
844
856
|
/*
|
|
@@ -876,10 +888,10 @@ class ClrCommonStringsService {
|
|
|
876
888
|
}
|
|
877
889
|
return output;
|
|
878
890
|
}
|
|
879
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
880
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
891
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrCommonStringsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
892
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrCommonStringsService, providedIn: 'root' }); }
|
|
881
893
|
}
|
|
882
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
894
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrCommonStringsService, decorators: [{
|
|
883
895
|
type: Injectable,
|
|
884
896
|
args: [{
|
|
885
897
|
providedIn: 'root',
|
|
@@ -976,10 +988,10 @@ class ClrFocusOnViewInit {
|
|
|
976
988
|
}
|
|
977
989
|
}
|
|
978
990
|
}
|
|
979
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
980
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.
|
|
991
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrFocusOnViewInit, deps: [{ token: i0.ElementRef }, { token: PLATFORM_ID }, { token: FOCUS_ON_VIEW_INIT }, { token: DOCUMENT }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
992
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.25", type: ClrFocusOnViewInit, isStandalone: false, selector: "[clrFocusOnViewInit]", inputs: { isEnabled: ["clrFocusOnViewInit", "isEnabled"] }, ngImport: i0 }); }
|
|
981
993
|
}
|
|
982
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
994
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrFocusOnViewInit, decorators: [{
|
|
983
995
|
type: Directive,
|
|
984
996
|
args: [{
|
|
985
997
|
selector: '[clrFocusOnViewInit]',
|
|
@@ -1007,11 +1019,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImpor
|
|
|
1007
1019
|
*/
|
|
1008
1020
|
const FOCUS_ON_VIEW_INIT_DIRECTIVES = [ClrFocusOnViewInit];
|
|
1009
1021
|
class ClrFocusOnViewInitModule {
|
|
1010
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1011
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.
|
|
1012
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.
|
|
1022
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrFocusOnViewInitModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1023
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: ClrFocusOnViewInitModule, declarations: [ClrFocusOnViewInit], imports: [CommonModule], exports: [ClrFocusOnViewInit] }); }
|
|
1024
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrFocusOnViewInitModule, providers: [FOCUS_ON_VIEW_INIT_PROVIDER], imports: [CommonModule] }); }
|
|
1013
1025
|
}
|
|
1014
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1026
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrFocusOnViewInitModule, decorators: [{
|
|
1015
1027
|
type: NgModule,
|
|
1016
1028
|
args: [{
|
|
1017
1029
|
imports: [CommonModule],
|
|
@@ -1036,27 +1048,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImpor
|
|
|
1036
1048
|
*/
|
|
1037
1049
|
class ClrStandaloneCdkTrapFocus extends CdkTrapFocus {
|
|
1038
1050
|
/**
|
|
1039
|
-
*
|
|
1040
|
-
*
|
|
1041
|
-
* https://github.com/storybookjs/storybook/issues/23534
|
|
1051
|
+
* The base class resolves its dependencies with `inject()`, so it takes no constructor arguments
|
|
1052
|
+
* (`@angular/cdk` 22 declares it that way). The explicit constructor stays as a workaround for the
|
|
1053
|
+
* Angular "ɵɵinvalidFactoryDep" error in storybook: https://github.com/storybookjs/storybook/issues/23534
|
|
1042
1054
|
*/
|
|
1043
|
-
|
|
1044
|
-
|
|
1055
|
+
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
|
|
1056
|
+
constructor() {
|
|
1057
|
+
super();
|
|
1045
1058
|
}
|
|
1046
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1047
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.
|
|
1059
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrStandaloneCdkTrapFocus, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1060
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.25", type: ClrStandaloneCdkTrapFocus, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
|
|
1048
1061
|
}
|
|
1049
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1062
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrStandaloneCdkTrapFocus, decorators: [{
|
|
1050
1063
|
type: Directive,
|
|
1051
1064
|
args: [{
|
|
1052
1065
|
standalone: true,
|
|
1053
1066
|
}]
|
|
1054
|
-
}], ctorParameters: () => [
|
|
1055
|
-
type: Optional
|
|
1056
|
-
}, {
|
|
1057
|
-
type: Inject,
|
|
1058
|
-
args: [DOCUMENT]
|
|
1059
|
-
}] }] });
|
|
1067
|
+
}], ctorParameters: () => [] });
|
|
1060
1068
|
|
|
1061
1069
|
/*
|
|
1062
1070
|
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
@@ -1097,10 +1105,10 @@ class ClrKeyFocusItem {
|
|
|
1097
1105
|
this.elementRef.nativeElement.focus();
|
|
1098
1106
|
}
|
|
1099
1107
|
}
|
|
1100
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1101
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.
|
|
1108
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrKeyFocusItem, deps: [{ token: i0.ElementRef }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1109
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.25", type: ClrKeyFocusItem, isStandalone: false, selector: "[clrKeyFocusItem]", ngImport: i0 }); }
|
|
1102
1110
|
}
|
|
1103
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrKeyFocusItem, decorators: [{
|
|
1104
1112
|
type: Directive,
|
|
1105
1113
|
args: [{
|
|
1106
1114
|
selector: '[clrKeyFocusItem]',
|
|
@@ -1315,10 +1323,10 @@ class ClrKeyFocus {
|
|
|
1315
1323
|
this.initializeFocus();
|
|
1316
1324
|
});
|
|
1317
1325
|
}
|
|
1318
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1319
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
1326
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrKeyFocus, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1327
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: ClrKeyFocus, isStandalone: false, selector: "[clrKeyFocus]", inputs: { direction: ["clrDirection", "direction"], focusOnLoad: ["clrFocusOnLoad", "focusOnLoad"], focusableItems: ["clrKeyFocus", "focusableItems"] }, outputs: { focusChange: "clrFocusChange" }, host: { listeners: { "keydown": "handleKeyboardEvent($event)", "click": "setClickedItemCurrent($event)" } }, queries: [{ propertyName: "clrKeyFocusItems", predicate: ClrKeyFocusItem, descendants: true }], ngImport: i0, template: '<ng-content></ng-content>', isInline: true }); }
|
|
1320
1328
|
}
|
|
1321
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1329
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrKeyFocus, decorators: [{
|
|
1322
1330
|
type: Component,
|
|
1323
1331
|
args: [{
|
|
1324
1332
|
selector: '[clrKeyFocus]',
|
|
@@ -1430,10 +1438,10 @@ class ClrRovingTabindex extends ClrKeyFocus {
|
|
|
1430
1438
|
this.renderer.setAttribute(item.nativeElement, 'tabindex', value.toString());
|
|
1431
1439
|
}
|
|
1432
1440
|
}
|
|
1433
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1434
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
1441
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrRovingTabindex, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1442
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: ClrRovingTabindex, isStandalone: false, selector: "[clrRovingTabindex]", inputs: { rovingIndexItems: ["clrRovingTabindex", "rovingIndexItems"], rovingTabindexDisabled: ["clrRovingTabindexDisabled", "rovingTabindexDisabled"] }, usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true }); }
|
|
1435
1443
|
}
|
|
1436
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1444
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrRovingTabindex, decorators: [{
|
|
1437
1445
|
type: Component,
|
|
1438
1446
|
args: [{
|
|
1439
1447
|
selector: '[clrRovingTabindex]',
|
|
@@ -1456,11 +1464,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImpor
|
|
|
1456
1464
|
*/
|
|
1457
1465
|
const KEY_FOCUS_DIRECTIVES = [ClrKeyFocus, ClrRovingTabindex, ClrKeyFocusItem];
|
|
1458
1466
|
class ClrKeyFocusModule {
|
|
1459
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1460
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.
|
|
1461
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.
|
|
1467
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrKeyFocusModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1468
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: ClrKeyFocusModule, declarations: [ClrKeyFocus, ClrRovingTabindex, ClrKeyFocusItem], imports: [CommonModule], exports: [ClrKeyFocus, ClrRovingTabindex, ClrKeyFocusItem] }); }
|
|
1469
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrKeyFocusModule, imports: [CommonModule] }); }
|
|
1462
1470
|
}
|
|
1463
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1471
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrKeyFocusModule, decorators: [{
|
|
1464
1472
|
type: NgModule,
|
|
1465
1473
|
args: [{
|
|
1466
1474
|
imports: [CommonModule],
|
|
@@ -1552,10 +1560,10 @@ class BasicFocusableItem {
|
|
|
1552
1560
|
this.el.nativeElement.click();
|
|
1553
1561
|
}
|
|
1554
1562
|
}
|
|
1555
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1556
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
1563
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: BasicFocusableItem, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1564
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: BasicFocusableItem }); }
|
|
1557
1565
|
}
|
|
1558
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1566
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: BasicFocusableItem, decorators: [{
|
|
1559
1567
|
type: Injectable
|
|
1560
1568
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: undefined, decorators: [{
|
|
1561
1569
|
type: Inject,
|
|
@@ -1705,7 +1713,10 @@ class FocusService {
|
|
|
1705
1713
|
// Turning the value into an Observable isn't great, but it's the fastest way to avoid code duplication.
|
|
1706
1714
|
// If performance ever matters for this, we can refactor using additional private methods.
|
|
1707
1715
|
const nextObs = isObservable(next) ? next : of(next);
|
|
1708
|
-
|
|
1716
|
+
// take(1) unsubscribes once this move has its item, rather than leaving the subscription open.
|
|
1717
|
+
// Left subscribed, every later emission would call moveTo() again with whatever is the first
|
|
1718
|
+
// item at that point and focus back to it.
|
|
1719
|
+
nextObs.pipe(take(1)).subscribe(item => {
|
|
1709
1720
|
if (item) {
|
|
1710
1721
|
this.moveTo(item);
|
|
1711
1722
|
moved = true;
|
|
@@ -1727,10 +1738,10 @@ class FocusService {
|
|
|
1727
1738
|
unlistenFuncs?.forEach(unlisten => unlisten());
|
|
1728
1739
|
this._unlistenFuncsMap.delete(el);
|
|
1729
1740
|
}
|
|
1730
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1731
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
1741
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FocusService, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1742
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FocusService }); }
|
|
1732
1743
|
}
|
|
1733
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1744
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FocusService, decorators: [{
|
|
1734
1745
|
type: Injectable
|
|
1735
1746
|
}], ctorParameters: () => [{ type: i0.Renderer2 }] });
|
|
1736
1747
|
function clrFocusServiceFactory(existing, renderer) {
|
|
@@ -1760,62 +1771,54 @@ class ScrollingService {
|
|
|
1760
1771
|
this._document.body.classList.remove('no-scrolling');
|
|
1761
1772
|
}
|
|
1762
1773
|
}
|
|
1763
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1764
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
1774
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ScrollingService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1775
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ScrollingService }); }
|
|
1765
1776
|
}
|
|
1766
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1777
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ScrollingService, decorators: [{
|
|
1767
1778
|
type: Injectable
|
|
1768
1779
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1769
1780
|
type: Inject,
|
|
1770
1781
|
args: [DOCUMENT]
|
|
1771
1782
|
}] }] });
|
|
1772
1783
|
|
|
1784
|
+
/*
|
|
1785
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
1786
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
1787
|
+
* This software is released under MIT license.
|
|
1788
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
1789
|
+
*/
|
|
1773
1790
|
/**
|
|
1774
1791
|
* This is just a copy of CdkDrag so it can be used independent of the rest of the CdkDragDropModule.
|
|
1775
1792
|
*/
|
|
1776
1793
|
class CdkDragModule_CdkDrag extends CdkDrag {
|
|
1777
1794
|
/**
|
|
1778
|
-
*
|
|
1779
|
-
*
|
|
1780
|
-
* https://github.com/storybookjs/storybook/issues/23534
|
|
1795
|
+
* The base class resolves its dependencies with `inject()`, so it takes no constructor arguments
|
|
1796
|
+
* (`@angular/cdk` 22 declares it that way). The explicit constructor stays as a workaround for the
|
|
1797
|
+
* Angular "ɵɵinvalidFactoryDep" error in storybook: https://github.com/storybookjs/storybook/issues/23534
|
|
1781
1798
|
*/
|
|
1782
|
-
|
|
1783
|
-
|
|
1799
|
+
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
|
|
1800
|
+
constructor() {
|
|
1801
|
+
super();
|
|
1784
1802
|
}
|
|
1785
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1786
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.
|
|
1803
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CdkDragModule_CdkDrag, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1804
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.25", type: CdkDragModule_CdkDrag, isStandalone: false, selector: "[cdkDrag]", usesInheritance: true, ngImport: i0 }); }
|
|
1787
1805
|
}
|
|
1788
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1806
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CdkDragModule_CdkDrag, decorators: [{
|
|
1789
1807
|
type: Directive,
|
|
1790
1808
|
args: [{
|
|
1791
1809
|
selector: '[cdkDrag]',
|
|
1792
1810
|
standalone: false,
|
|
1793
1811
|
}]
|
|
1794
|
-
}], ctorParameters: () => [
|
|
1795
|
-
type: Optional
|
|
1796
|
-
}, {
|
|
1797
|
-
type: Inject,
|
|
1798
|
-
args: [CDK_DROP_LIST]
|
|
1799
|
-
}] }, { type: undefined, decorators: [{
|
|
1800
|
-
type: Optional
|
|
1801
|
-
}, {
|
|
1802
|
-
type: Inject,
|
|
1803
|
-
args: [DOCUMENT]
|
|
1804
|
-
}] }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{
|
|
1805
|
-
type: Optional
|
|
1806
|
-
}, {
|
|
1807
|
-
type: Inject,
|
|
1808
|
-
args: [CDK_DRAG_CONFIG]
|
|
1809
|
-
}] }, { type: i1$1.Directionality }, { type: i2$1.DragDrop }, { type: i0.ChangeDetectorRef }] });
|
|
1812
|
+
}], ctorParameters: () => [] });
|
|
1810
1813
|
/**
|
|
1811
1814
|
* This module allows us to avoid importing all of CdkDragDropModule which results in a smaller application bundle.
|
|
1812
1815
|
*/
|
|
1813
1816
|
class CdkDragModule {
|
|
1814
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1815
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.
|
|
1816
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.
|
|
1817
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CdkDragModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1818
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: CdkDragModule, declarations: [CdkDragModule_CdkDrag], exports: [CdkDragModule_CdkDrag] }); }
|
|
1819
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CdkDragModule }); }
|
|
1817
1820
|
}
|
|
1818
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1821
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CdkDragModule, decorators: [{
|
|
1819
1822
|
type: NgModule,
|
|
1820
1823
|
args: [{
|
|
1821
1824
|
declarations: [CdkDragModule_CdkDrag],
|
|
@@ -1834,37 +1837,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImpor
|
|
|
1834
1837
|
*/
|
|
1835
1838
|
class CdkTrapFocusModule_CdkTrapFocus extends CdkTrapFocus {
|
|
1836
1839
|
/**
|
|
1837
|
-
*
|
|
1838
|
-
*
|
|
1839
|
-
* https://github.com/storybookjs/storybook/issues/23534
|
|
1840
|
+
* The base class resolves its dependencies with `inject()`, so it takes no constructor arguments
|
|
1841
|
+
* (`@angular/cdk` 22 declares it that way). The explicit constructor stays as a workaround for the
|
|
1842
|
+
* Angular "ɵɵinvalidFactoryDep" error in storybook: https://github.com/storybookjs/storybook/issues/23534
|
|
1840
1843
|
*/
|
|
1841
|
-
|
|
1842
|
-
|
|
1844
|
+
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
|
|
1845
|
+
constructor() {
|
|
1846
|
+
super();
|
|
1843
1847
|
}
|
|
1844
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1845
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.
|
|
1848
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CdkTrapFocusModule_CdkTrapFocus, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1849
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.25", type: CdkTrapFocusModule_CdkTrapFocus, isStandalone: false, selector: "[cdkTrapFocus]", usesInheritance: true, ngImport: i0 }); }
|
|
1846
1850
|
}
|
|
1847
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1851
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CdkTrapFocusModule_CdkTrapFocus, decorators: [{
|
|
1848
1852
|
type: Directive,
|
|
1849
1853
|
args: [{
|
|
1850
1854
|
selector: '[cdkTrapFocus]',
|
|
1851
1855
|
standalone: false,
|
|
1852
1856
|
}]
|
|
1853
|
-
}], ctorParameters: () => [
|
|
1854
|
-
type: Optional
|
|
1855
|
-
}, {
|
|
1856
|
-
type: Inject,
|
|
1857
|
-
args: [DOCUMENT]
|
|
1858
|
-
}] }] });
|
|
1857
|
+
}], ctorParameters: () => [] });
|
|
1859
1858
|
/**
|
|
1860
1859
|
* This module allows us to avoid importing all of A11yModule which results in a smaller application bundle.
|
|
1861
1860
|
*/
|
|
1862
1861
|
class CdkTrapFocusModule {
|
|
1863
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1864
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.
|
|
1865
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.
|
|
1862
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CdkTrapFocusModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1863
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: CdkTrapFocusModule, declarations: [CdkTrapFocusModule_CdkTrapFocus], exports: [CdkTrapFocusModule_CdkTrapFocus] }); }
|
|
1864
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CdkTrapFocusModule }); }
|
|
1866
1865
|
}
|
|
1867
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1866
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CdkTrapFocusModule, decorators: [{
|
|
1868
1867
|
type: NgModule,
|
|
1869
1868
|
args: [{
|
|
1870
1869
|
declarations: [CdkTrapFocusModule_CdkTrapFocus],
|
|
@@ -1907,10 +1906,10 @@ class ClrDestroyService extends Subject {
|
|
|
1907
1906
|
this.next();
|
|
1908
1907
|
this.complete();
|
|
1909
1908
|
}
|
|
1910
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1911
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
1909
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrDestroyService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1910
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrDestroyService }); }
|
|
1912
1911
|
}
|
|
1913
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1912
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ClrDestroyService, decorators: [{
|
|
1914
1913
|
type: Injectable
|
|
1915
1914
|
}] });
|
|
1916
1915
|
|
|
@@ -2027,10 +2026,10 @@ class WillyWonka {
|
|
|
2027
2026
|
this._chocolate.next();
|
|
2028
2027
|
}
|
|
2029
2028
|
}
|
|
2030
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
2031
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.
|
|
2029
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WillyWonka, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2030
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.25", type: WillyWonka, isStandalone: true, ngImport: i0 }); }
|
|
2032
2031
|
}
|
|
2033
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
2032
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WillyWonka, decorators: [{
|
|
2034
2033
|
type: Directive
|
|
2035
2034
|
}] });
|
|
2036
2035
|
|
|
@@ -2057,10 +2056,10 @@ class OompaLoompa {
|
|
|
2057
2056
|
ngOnDestroy() {
|
|
2058
2057
|
this.subscription.unsubscribe();
|
|
2059
2058
|
}
|
|
2060
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
2061
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.
|
|
2059
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: OompaLoompa, deps: [{ token: i0.ChangeDetectorRef }, { token: WillyWonka }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2060
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.25", type: OompaLoompa, isStandalone: true, ngImport: i0 }); }
|
|
2062
2061
|
}
|
|
2063
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
2062
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: OompaLoompa, decorators: [{
|
|
2064
2063
|
type: Directive
|
|
2065
2064
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: WillyWonka }] });
|
|
2066
2065
|
|