@clr/angular 18.0.0-beta.1 → 18.0.0-beta.11
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 +1 -1
- package/fesm2022/clr-angular-accordion.mjs.map +1 -1
- package/fesm2022/clr-angular-button.mjs +6 -6
- package/fesm2022/clr-angular-button.mjs.map +1 -1
- package/fesm2022/clr-angular-data-datagrid.mjs +45 -35
- package/fesm2022/clr-angular-data-datagrid.mjs.map +1 -1
- package/fesm2022/clr-angular-data-tree-view.mjs +3 -3
- package/fesm2022/clr-angular-data-tree-view.mjs.map +1 -1
- package/fesm2022/clr-angular-data.mjs +11 -9116
- package/fesm2022/clr-angular-data.mjs.map +1 -1
- package/fesm2022/clr-angular-emphasis-alert.mjs +2 -2
- package/fesm2022/clr-angular-emphasis-alert.mjs.map +1 -1
- package/fesm2022/clr-angular-emphasis.mjs +12 -778
- package/fesm2022/clr-angular-emphasis.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-checkbox.mjs +13 -44
- package/fesm2022/clr-angular-forms-checkbox.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-combobox.mjs +420 -90
- package/fesm2022/clr-angular-forms-combobox.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-common.mjs +62 -57
- package/fesm2022/clr-angular-forms-common.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-datalist.mjs +2 -14
- package/fesm2022/clr-angular-forms-datalist.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-datepicker.mjs +20 -28
- package/fesm2022/clr-angular-forms-datepicker.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-file-input.mjs +78 -62
- package/fesm2022/clr-angular-forms-file-input.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-input.mjs +4 -18
- package/fesm2022/clr-angular-forms-input.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-number-input.mjs +2 -14
- package/fesm2022/clr-angular-forms-number-input.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-password.mjs +2 -14
- package/fesm2022/clr-angular-forms-password.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-radio.mjs +13 -44
- package/fesm2022/clr-angular-forms-radio.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-range.mjs +3 -16
- package/fesm2022/clr-angular-forms-range.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-select.mjs +3 -16
- package/fesm2022/clr-angular-forms-select.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-textarea.mjs +4 -17
- package/fesm2022/clr-angular-forms-textarea.mjs.map +1 -1
- package/fesm2022/clr-angular-forms.mjs +68 -8560
- package/fesm2022/clr-angular-forms.mjs.map +1 -1
- package/fesm2022/clr-angular-icon.mjs +10 -0
- package/fesm2022/clr-angular-icon.mjs.map +1 -1
- package/fesm2022/clr-angular-layout-nav.mjs +27 -25
- package/fesm2022/clr-angular-layout-nav.mjs.map +1 -1
- package/fesm2022/clr-angular-layout-tabs.mjs +1 -1
- package/fesm2022/clr-angular-layout-tabs.mjs.map +1 -1
- package/fesm2022/clr-angular-layout.mjs +15 -2057
- package/fesm2022/clr-angular-layout.mjs.map +1 -1
- package/fesm2022/clr-angular-modal.mjs +4 -5
- package/fesm2022/clr-angular-modal.mjs.map +1 -1
- package/fesm2022/clr-angular-popover-common.mjs +151 -85
- package/fesm2022/clr-angular-popover-common.mjs.map +1 -1
- package/fesm2022/clr-angular-popover-dropdown.mjs +7 -4
- package/fesm2022/clr-angular-popover-dropdown.mjs.map +1 -1
- package/fesm2022/clr-angular-popover-signpost.mjs +30 -15
- package/fesm2022/clr-angular-popover-signpost.mjs.map +1 -1
- package/fesm2022/clr-angular-popover-tooltip.mjs +7 -7
- package/fesm2022/clr-angular-popover-tooltip.mjs.map +1 -1
- package/fesm2022/clr-angular-popover.mjs +12 -2242
- package/fesm2022/clr-angular-popover.mjs.map +1 -1
- package/fesm2022/clr-angular-stepper.mjs +5 -5
- package/fesm2022/clr-angular-stepper.mjs.map +1 -1
- package/fesm2022/clr-angular-utils.mjs +20 -485
- package/fesm2022/clr-angular-utils.mjs.map +1 -1
- package/fesm2022/clr-angular-wizard.mjs +434 -223
- package/fesm2022/clr-angular-wizard.mjs.map +1 -1
- package/fesm2022/clr-angular.mjs +94 -38740
- package/fesm2022/clr-angular.mjs.map +1 -1
- package/package.json +10 -5
- package/popover/common/README.md +14 -12
- package/schematics/collection.json +14 -0
- package/schematics/ng-update/index.d.ts +2 -0
- package/schematics/ng-update/index.js +69 -0
- package/schematics/ng-update/index.js.map +1 -0
- package/schematics/ng-update/migrations/css-migration.d.ts +6 -0
- package/schematics/ng-update/migrations/css-migration.js +177 -0
- package/schematics/ng-update/migrations/css-migration.js.map +1 -0
- package/schematics/ng-update/migrations/import-migration.d.ts +4 -0
- package/schematics/ng-update/migrations/import-migration.js +187 -0
- package/schematics/ng-update/migrations/import-migration.js.map +1 -0
- package/schematics/ng-update/migrations/template-migration.d.ts +6 -0
- package/schematics/ng-update/migrations/template-migration.js +261 -0
- package/schematics/ng-update/migrations/template-migration.js.map +1 -0
- package/schematics/ng-update/replacements/css-replacements.d.ts +17 -0
- package/schematics/ng-update/replacements/css-replacements.js +74 -0
- package/schematics/ng-update/replacements/css-replacements.js.map +1 -0
- package/schematics/ng-update/replacements/import-replacements.d.ts +13 -0
- package/schematics/ng-update/replacements/import-replacements.js +108 -0
- package/schematics/ng-update/replacements/import-replacements.js.map +1 -0
- package/schematics/ng-update/replacements/symbol-replacements.d.ts +12 -0
- package/schematics/ng-update/replacements/symbol-replacements.js +67 -0
- package/schematics/ng-update/replacements/symbol-replacements.js.map +1 -0
- package/schematics/ng-update/replacements/template-replacements.d.ts +19 -0
- package/schematics/ng-update/replacements/template-replacements.js +57 -0
- package/schematics/ng-update/replacements/template-replacements.js.map +1 -0
- package/schematics/ng-update/tests/test-helpers.d.ts +6 -0
- package/schematics/ng-update/tests/test-helpers.js +34 -0
- package/schematics/ng-update/tests/test-helpers.js.map +1 -0
- package/schematics/ng-update/utils/file-visitor.d.ts +8 -0
- package/schematics/ng-update/utils/file-visitor.js +44 -0
- package/schematics/ng-update/utils/file-visitor.js.map +1 -0
- package/schematics/ng-update/utils/regexp-utils.d.ts +16 -0
- package/schematics/ng-update/utils/regexp-utils.js +34 -0
- package/schematics/ng-update/utils/regexp-utils.js.map +1 -0
- package/schematics/vitest.config.d.ts +2 -0
- package/schematics/vitest.config.js +17 -0
- package/schematics/vitest.config.js.map +1 -0
- package/types/clr-angular-accordion.d.ts +1 -1
- package/types/clr-angular-button.d.ts +1 -1
- package/types/clr-angular-data-datagrid.d.ts +23 -33
- package/types/clr-angular-data-tree-view.d.ts +10 -1
- package/types/clr-angular-data.d.ts +4 -2136
- package/types/clr-angular-emphasis.d.ts +4 -220
- package/types/clr-angular-forms-combobox.d.ts +64 -11
- package/types/clr-angular-forms-common.d.ts +9 -9
- package/types/clr-angular-forms-datepicker.d.ts +8 -1
- package/types/clr-angular-forms-file-input.d.ts +6 -3
- package/types/clr-angular-forms.d.ts +26 -2062
- package/types/clr-angular-layout-nav.d.ts +6 -2
- package/types/clr-angular-layout-tabs.d.ts +1 -1
- package/types/clr-angular-layout.d.ts +6 -463
- package/types/clr-angular-popover-common.d.ts +38 -13
- package/types/clr-angular-popover-dropdown.d.ts +2 -1
- package/types/clr-angular-popover-signpost.d.ts +15 -7
- package/types/clr-angular-popover-tooltip.d.ts +1 -1
- package/types/clr-angular-popover.d.ts +7 -559
- package/types/clr-angular-stepper.d.ts +1 -1
- package/types/clr-angular-utils.d.ts +13 -175
- package/types/clr-angular-wizard.d.ts +92 -35
- package/types/clr-angular.d.ts +22 -10238
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { FormGroup } from '@angular/forms';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { OnDestroy, EventEmitter, ElementRef, Renderer2, NgZone, Type, TemplateRef, Injector, ViewContainerRef, InjectionToken, OnChanges, SimpleChanges,
|
|
3
|
+
import { OnDestroy, EventEmitter, ElementRef, Renderer2, NgZone, Type, TemplateRef, Injector, ViewContainerRef, InjectionToken, OnChanges, SimpleChanges, AfterViewInit, QueryList, FactoryProvider, ChangeDetectorRef, AfterViewChecked, AfterContentChecked } from '@angular/core';
|
|
4
4
|
import * as i2 from '@angular/common';
|
|
5
5
|
import * as _angular_animations from '@angular/animations';
|
|
6
6
|
import { AnimationMetadata, AnimationEvent, AnimationBuilder } from '@angular/animations';
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
export * from '@clr/angular/utils/loading';
|
|
8
|
+
export * from '@clr/angular/utils/conditional';
|
|
9
9
|
import { CdkTrapFocus, FocusTrapFactory } from '@angular/cdk/a11y';
|
|
10
|
+
import { Subscription, Observable, Observer, Subject } from 'rxjs';
|
|
10
11
|
import { Directionality } from '@angular/cdk/bidi';
|
|
11
12
|
import { CdkDrag, DragDropConfig, DragDrop } from '@angular/cdk/drag-drop';
|
|
12
13
|
|
|
@@ -94,7 +95,6 @@ declare class EmptyAnchor {
|
|
|
94
95
|
/**
|
|
95
96
|
* HostWrapper must be called in OnInit to ensure that the Views are ready. If its called in a constructor the view is
|
|
96
97
|
* still undefined.
|
|
97
|
-
* TODO - make sure these comment annotations do not break ng-packgr.
|
|
98
98
|
*/
|
|
99
99
|
declare class HostWrapper<W> implements Injector {
|
|
100
100
|
private injector;
|
|
@@ -173,164 +173,6 @@ declare function fadeSlide(direction: string): AnimationMetadata[];
|
|
|
173
173
|
|
|
174
174
|
declare function slide(direction: string): AnimationMetadata[];
|
|
175
175
|
|
|
176
|
-
/**
|
|
177
|
-
* This is an abstract class because we need it to still be a valid token for dependency injection after transpiling.
|
|
178
|
-
* This does not mean you should extend it, simply implementing it is fine.
|
|
179
|
-
*/
|
|
180
|
-
declare abstract class LoadingListener {
|
|
181
|
-
abstract loadingStateChange(state: ClrLoadingState | string): void;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
declare enum ClrLoadingState {
|
|
185
|
-
DEFAULT = 0,
|
|
186
|
-
LOADING = 1,
|
|
187
|
-
SUCCESS = 2,
|
|
188
|
-
ERROR = 3
|
|
189
|
-
}
|
|
190
|
-
declare class ClrLoading implements OnDestroy {
|
|
191
|
-
private listener;
|
|
192
|
-
static ngAcceptInputType_loadingState: boolean | ClrLoadingState | null | string;
|
|
193
|
-
private _loadingState;
|
|
194
|
-
constructor(listener: LoadingListener);
|
|
195
|
-
get loadingState(): boolean | string | ClrLoadingState;
|
|
196
|
-
set loadingState(value: boolean | string | ClrLoadingState);
|
|
197
|
-
ngOnDestroy(): void;
|
|
198
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ClrLoading, [{ optional: true; }]>;
|
|
199
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ClrLoading, "[clrLoading]", never, { "loadingState": { "alias": "clrLoading"; "required": false; }; }, {}, never, never, false, never>;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
declare const CLR_LOADING_DIRECTIVES: Type<any>[];
|
|
203
|
-
declare class ClrLoadingModule {
|
|
204
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ClrLoadingModule, never>;
|
|
205
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ClrLoadingModule, [typeof ClrLoading], [typeof i2.CommonModule], [typeof ClrLoading]>;
|
|
206
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ClrLoadingModule>;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
declare const IF_ACTIVE_ID: InjectionToken<number>;
|
|
210
|
-
declare function tokenFactory(): number;
|
|
211
|
-
declare const IF_ACTIVE_ID_PROVIDER: {
|
|
212
|
-
provide: InjectionToken<number>;
|
|
213
|
-
useFactory: typeof tokenFactory;
|
|
214
|
-
};
|
|
215
|
-
declare class IfActiveService {
|
|
216
|
-
/********
|
|
217
|
-
* @property _currentChange
|
|
218
|
-
*
|
|
219
|
-
* @description
|
|
220
|
-
* A RXJS Subject that updates and provides subscriptions to for the current current state of a component template
|
|
221
|
-
* implemting the IfActive structural directive.
|
|
222
|
-
*
|
|
223
|
-
*/
|
|
224
|
-
private _currentChange;
|
|
225
|
-
/*********
|
|
226
|
-
* @property _current
|
|
227
|
-
*
|
|
228
|
-
* @description
|
|
229
|
-
* A property holding the current value for current/closed state of an IfActive structural directive.
|
|
230
|
-
*/
|
|
231
|
-
private _current;
|
|
232
|
-
/*********
|
|
233
|
-
*
|
|
234
|
-
* @description
|
|
235
|
-
* A getter function that provides an observable for the _current Subject.
|
|
236
|
-
*
|
|
237
|
-
*/
|
|
238
|
-
get currentChange(): Observable<number>;
|
|
239
|
-
/*********
|
|
240
|
-
*
|
|
241
|
-
* @description
|
|
242
|
-
* A property that gets/sets the current state of _current for this instance of IfActive structural directive.
|
|
243
|
-
* And, broadcasts the new value to all subscribers.
|
|
244
|
-
*
|
|
245
|
-
*/
|
|
246
|
-
get current(): number;
|
|
247
|
-
set current(value: number);
|
|
248
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IfActiveService, never>;
|
|
249
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<IfActiveService>;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
declare class ClrIfActive implements OnDestroy {
|
|
253
|
-
private ifActiveService;
|
|
254
|
-
private id;
|
|
255
|
-
private template;
|
|
256
|
-
private container;
|
|
257
|
-
/**********
|
|
258
|
-
* @property activeChange
|
|
259
|
-
*
|
|
260
|
-
* @description
|
|
261
|
-
* An event emitter that emits when the active property is set to allow for 2way binding when the directive is
|
|
262
|
-
* used with de-structured / de-sugared syntax.
|
|
263
|
-
*
|
|
264
|
-
*/
|
|
265
|
-
activeChange: EventEmitter<boolean>;
|
|
266
|
-
private subscription;
|
|
267
|
-
private wasActive;
|
|
268
|
-
constructor(ifActiveService: IfActiveService, id: number, template: TemplateRef<any>, container: ViewContainerRef);
|
|
269
|
-
/**
|
|
270
|
-
* @description
|
|
271
|
-
* A property that gets/sets IfActiveService.active with value.
|
|
272
|
-
*
|
|
273
|
-
*/
|
|
274
|
-
get active(): boolean | string;
|
|
275
|
-
set active(value: boolean | string);
|
|
276
|
-
ngOnDestroy(): void;
|
|
277
|
-
/**
|
|
278
|
-
* @description
|
|
279
|
-
* Function that takes a any value and either created an embedded view for the associated ViewContainerRef or,
|
|
280
|
-
* Clears all views from the ViewContainerRef
|
|
281
|
-
*/
|
|
282
|
-
updateView(value: boolean): void;
|
|
283
|
-
private checkAndUpdateView;
|
|
284
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ClrIfActive, never>;
|
|
285
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ClrIfActive, "[clrIfActive]", never, { "active": { "alias": "clrIfActive"; "required": false; }; }, { "activeChange": "clrIfActiveChange"; }, never, never, true, never>;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
declare class IfExpandService implements LoadingListener$1 {
|
|
289
|
-
expandable: number;
|
|
290
|
-
hasExpandTemplate: boolean;
|
|
291
|
-
protected _loading: boolean;
|
|
292
|
-
protected _expanded: boolean;
|
|
293
|
-
protected _expandChange: Subject<boolean>;
|
|
294
|
-
get loading(): boolean;
|
|
295
|
-
set loading(value: boolean);
|
|
296
|
-
get expanded(): boolean;
|
|
297
|
-
set expanded(value: boolean);
|
|
298
|
-
get expandChange(): Observable<boolean>;
|
|
299
|
-
toggle(): void;
|
|
300
|
-
loadingStateChange(state: ClrLoadingState$1): void;
|
|
301
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IfExpandService, never>;
|
|
302
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<IfExpandService>;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
declare class ClrIfExpanded implements OnInit, OnDestroy {
|
|
306
|
-
private template;
|
|
307
|
-
private container;
|
|
308
|
-
private el;
|
|
309
|
-
private renderer;
|
|
310
|
-
private expand;
|
|
311
|
-
expandedChange: EventEmitter<boolean>;
|
|
312
|
-
private _expanded;
|
|
313
|
-
/**
|
|
314
|
-
* Subscriptions to all the services and queries changes
|
|
315
|
-
*/
|
|
316
|
-
private _subscriptions;
|
|
317
|
-
constructor(template: TemplateRef<any>, container: ViewContainerRef, el: ElementRef<HTMLElement>, renderer: Renderer2, expand: IfExpandService);
|
|
318
|
-
get expanded(): boolean | string;
|
|
319
|
-
set expanded(value: boolean | string);
|
|
320
|
-
ngOnInit(): void;
|
|
321
|
-
ngOnDestroy(): void;
|
|
322
|
-
private updateView;
|
|
323
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ClrIfExpanded, [{ optional: true; }, null, null, null, null]>;
|
|
324
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ClrIfExpanded, "[clrIfExpanded]", never, { "expanded": { "alias": "clrIfExpanded"; "required": false; }; }, { "expandedChange": "clrIfExpandedChange"; }, never, never, true, never>;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
declare const CONDITIONAL_DIRECTIVES: Type<any>[];
|
|
328
|
-
declare class ClrConditionalModule {
|
|
329
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ClrConditionalModule, never>;
|
|
330
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ClrConditionalModule, never, [typeof i2.CommonModule, typeof ClrIfActive, typeof ClrIfExpanded], [typeof ClrIfActive, typeof ClrIfExpanded]>;
|
|
331
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ClrConditionalModule>;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
176
|
interface ClrCommonStrings {
|
|
335
177
|
/**
|
|
336
178
|
* Open button
|
|
@@ -599,6 +441,11 @@ interface ClrCommonStrings {
|
|
|
599
441
|
comboboxSelected: string;
|
|
600
442
|
comboboxNoResults: string;
|
|
601
443
|
comboboxOpen: string;
|
|
444
|
+
comboboxSelectAll: string;
|
|
445
|
+
comboboxUnselectAll: string;
|
|
446
|
+
comboboxAllSelected: string;
|
|
447
|
+
comboboxShowAll: string;
|
|
448
|
+
comboboxShowLess: string;
|
|
602
449
|
/**
|
|
603
450
|
* Wizard: Screen-reader text for "step" (read before step number).
|
|
604
451
|
*/
|
|
@@ -762,7 +609,6 @@ declare class ClrKeyFocus {
|
|
|
762
609
|
static ɵcmp: i0.ɵɵComponentDeclaration<ClrKeyFocus, "[clrKeyFocus]", never, { "direction": { "alias": "clrDirection"; "required": false; }; "focusOnLoad": { "alias": "clrFocusOnLoad"; "required": false; }; "focusableItems": { "alias": "clrKeyFocus"; "required": false; }; }, { "focusChange": "clrFocusChange"; }, ["clrKeyFocusItems"], ["*"], false, never>;
|
|
763
610
|
}
|
|
764
611
|
|
|
765
|
-
declare function normalizeKey(key: string): string;
|
|
766
612
|
declare function preventArrowKeyScroll(event: KeyboardEvent): void;
|
|
767
613
|
declare function isKeyEitherLetterOrNumber(event: KeyboardEvent): boolean;
|
|
768
614
|
|
|
@@ -977,14 +823,6 @@ declare enum Keys {
|
|
|
977
823
|
PageDown = "PageDown",
|
|
978
824
|
PageUp = "PageUp"
|
|
979
825
|
}
|
|
980
|
-
declare enum IEKeys {
|
|
981
|
-
ArrowUp = "Up",
|
|
982
|
-
ArrowDown = "Down",
|
|
983
|
-
ArrowRight = "Right",
|
|
984
|
-
ArrowLeft = "Left",
|
|
985
|
-
Space = "Spacebar",
|
|
986
|
-
Escape = "Esc"
|
|
987
|
-
}
|
|
988
826
|
|
|
989
827
|
/**
|
|
990
828
|
* A (clockwise) enumeration for positions around an element.
|
|
@@ -1014,11 +852,11 @@ declare enum IEKeys {
|
|
|
1014
852
|
*
|
|
1015
853
|
*
|
|
1016
854
|
* Consumers tell us that they want something to display on the TOP_LEFT of the trigger and that they want the
|
|
1017
|
-
* _content_ container to
|
|
1018
|
-
* In order to calculate the position for the content I need to match up the
|
|
855
|
+
* _content_ container to orient AT the bottom left.
|
|
856
|
+
* In order to calculate the position for the content I need to match up the origin/trigger ClrPosition with the
|
|
1019
857
|
* content ClrPosition.
|
|
1020
858
|
*
|
|
1021
|
-
*
|
|
859
|
+
* Origin TOP_LEFT **AT** Content BOTTOM_LEFT.
|
|
1022
860
|
* -----------
|
|
1023
861
|
* | |
|
|
1024
862
|
* | |
|
|
@@ -1071,5 +909,5 @@ declare abstract class OompaLoompa implements AfterContentChecked, OnDestroy {
|
|
|
1071
909
|
static ɵdir: i0.ɵɵDirectiveDeclaration<OompaLoompa, never, never, {}, {}, never, never, true, never>;
|
|
1072
910
|
}
|
|
1073
911
|
|
|
1074
|
-
export { ArrowKeyDirection, BASIC_FOCUSABLE_ITEM_PROVIDER, BaseExpandableAnimation, BasicFocusableItem,
|
|
912
|
+
export { ArrowKeyDirection, BASIC_FOCUSABLE_ITEM_PROVIDER, BaseExpandableAnimation, BasicFocusableItem, CdkDragModule, CdkDragModule_CdkDrag, CdkTrapFocusModule, CdkTrapFocusModule_CdkTrapFocus, ClrCommonStringsService, ClrDestroyService, ClrExpandableAnimation, ClrExpandableAnimationDirective, ClrExpandableAnimationModule, ClrFocusOnViewInit, ClrFocusOnViewInitModule, ClrHostWrappingModule, ClrKeyFocus, ClrKeyFocusItem, ClrKeyFocusModule, ClrOutsideClickModule, ClrPosition, ClrRovingTabindex, ClrStandaloneCdkTrapFocus, ClrTemplateRefModule, DATEPICKER_ENABLE_BREAKPOINT, DomAdapter, EXPANDABLE_ANIMATION_DIRECTIVES, EXTRA_LARGE_BREAKPOINT, EmptyAnchor, FOCUS_ON_VIEW_INIT, FOCUS_ON_VIEW_INIT_DIRECTIVES, FOCUS_SERVICE_PROVIDER, FocusService, FocusableItem, HostWrapper, Keys, LARGE_BREAKPOINT, Linkers, MEDIUM_BREAKPOINT, MOCK_DOM_ADAPTER_PROVIDER, MockDomAdapter, MockFocusableItem, OUSTIDE_CLICK_DIRECTIVES, OompaLoompa, OutsideClick, SMALL_BREAKPOINT, ScrollingService, TemplateRefContainer, WillyWonka, assertNever, clrFocusServiceFactory, collapse, commonStringsDefault, customFocusableItemProvider, defaultAnimationTiming, defaultExpandAnimation, fade, fadeSlide, isBooleanAttributeSet, isKeyEitherLetterOrNumber, preventArrowKeyScroll, slide, triggerAllFormControlValidation, uniqueIdFactory, wrapObservable };
|
|
1075
913
|
export type { ClrCommonStrings, HeadingLevel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, QueryList, TemplateRef, OnInit, OnDestroy, AfterContentInit, DoCheck, ElementRef, IterableDiffers } from '@angular/core';
|
|
2
|
+
import { EventEmitter, QueryList, TemplateRef, OnInit, OnDestroy, AfterContentInit, DoCheck, ElementRef, IterableDiffers, AfterViewInit } from '@angular/core';
|
|
3
3
|
import { HeadingLevel, ClrCommonStringsService } from '@clr/angular/utils';
|
|
4
4
|
import { Observable, Subscription } from 'rxjs';
|
|
5
5
|
import * as i12 from '@angular/common';
|
|
@@ -7,6 +7,18 @@ import * as i13 from '@clr/angular/icon';
|
|
|
7
7
|
import * as i14 from '@clr/angular/modal';
|
|
8
8
|
import * as i15 from '@clr/angular/emphasis/alert';
|
|
9
9
|
|
|
10
|
+
declare enum ClrWizardFooterAlign {
|
|
11
|
+
START = "start",
|
|
12
|
+
END = "end"
|
|
13
|
+
}
|
|
14
|
+
declare function footerAlignAttribute(value: ClrWizardFooterAlign | string): ClrWizardFooterAlign;
|
|
15
|
+
|
|
16
|
+
declare enum ClrWizardStepnavLayout {
|
|
17
|
+
VERTICAL = "vertical",
|
|
18
|
+
HORIZONTAL = "horizontal"
|
|
19
|
+
}
|
|
20
|
+
declare function stepnavLayoutAttribute(value: ClrWizardStepnavLayout | string): ClrWizardStepnavLayout;
|
|
21
|
+
|
|
10
22
|
declare class ButtonHubService {
|
|
11
23
|
buttonsReady: boolean;
|
|
12
24
|
private _previousBtnClicked;
|
|
@@ -870,6 +882,10 @@ declare class WizardNavigationService implements OnDestroy {
|
|
|
870
882
|
* @memberof WizardNavigationService
|
|
871
883
|
*/
|
|
872
884
|
wizardDisableStepnav: boolean;
|
|
885
|
+
/**
|
|
886
|
+
* The layout of the wizard stepnav, either 'vertical' or 'horizontal'.
|
|
887
|
+
*/
|
|
888
|
+
stepnavLayout: ClrWizardStepnavLayout;
|
|
873
889
|
/**
|
|
874
890
|
* @memberof WizardNavigationService
|
|
875
891
|
*/
|
|
@@ -911,7 +927,7 @@ declare class WizardNavigationService implements OnDestroy {
|
|
|
911
927
|
*
|
|
912
928
|
* @memberof WizardNavigationService
|
|
913
929
|
*/
|
|
914
|
-
get
|
|
930
|
+
get currentPageChange(): Observable<ClrWizardPage>;
|
|
915
931
|
/**
|
|
916
932
|
* @memberof WizardNavigationService
|
|
917
933
|
*/
|
|
@@ -1117,6 +1133,31 @@ declare class HeaderActionService {
|
|
|
1117
1133
|
static ɵprov: i0.ɵɵInjectableDeclaration<HeaderActionService>;
|
|
1118
1134
|
}
|
|
1119
1135
|
|
|
1136
|
+
declare const DEFAULT_BUTTON_TYPES: any;
|
|
1137
|
+
declare const CUSTOM_BUTTON_TYPES: any;
|
|
1138
|
+
declare class ClrWizardButton {
|
|
1139
|
+
navService: WizardNavigationService;
|
|
1140
|
+
buttonService: ButtonHubService;
|
|
1141
|
+
type: string;
|
|
1142
|
+
disabled: boolean;
|
|
1143
|
+
hidden: boolean;
|
|
1144
|
+
wasClicked: EventEmitter<string>;
|
|
1145
|
+
constructor(navService: WizardNavigationService, buttonService: ButtonHubService);
|
|
1146
|
+
get isCancel(): boolean;
|
|
1147
|
+
get isNext(): boolean;
|
|
1148
|
+
get isPrevious(): boolean;
|
|
1149
|
+
get isFinish(): boolean;
|
|
1150
|
+
get isDanger(): boolean;
|
|
1151
|
+
get isPrimaryAction(): boolean;
|
|
1152
|
+
get _disabledAttribute(): string | null;
|
|
1153
|
+
get isDisabled(): boolean;
|
|
1154
|
+
get isHidden(): boolean;
|
|
1155
|
+
click(): void;
|
|
1156
|
+
private checkDefaultAndCustomType;
|
|
1157
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClrWizardButton, never>;
|
|
1158
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ClrWizardButton, "clr-wizard-button", never, { "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "clrWizardButtonDisabled"; "required": false; }; "hidden": { "alias": "clrWizardButtonHidden"; "required": false; }; }, { "wasClicked": "clrWizardButtonClicked"; }, never, ["*"], false, never>;
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1120
1161
|
declare class ClrWizardTitle {
|
|
1121
1162
|
headingLevel: HeadingLevel;
|
|
1122
1163
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClrWizardTitle, never>;
|
|
@@ -1135,6 +1176,10 @@ declare class ClrWizard implements OnDestroy, AfterContentInit, DoCheck {
|
|
|
1135
1176
|
* Set the aria-label for the stepnav section of the wizard. Set using `[clrWizardStepnavAriaLabel]` input.
|
|
1136
1177
|
*/
|
|
1137
1178
|
stepnavAriaLabel: string;
|
|
1179
|
+
/**
|
|
1180
|
+
* Set the wizard stepnav layout to 'vertical' (default) or 'horizontal'. Set using `[clrWizardStepnavLayout]` input.
|
|
1181
|
+
*/
|
|
1182
|
+
stepnavLayout: ClrWizardStepnavLayout;
|
|
1138
1183
|
/**
|
|
1139
1184
|
* Set the modal size of the wizard. Set using `[clrWizardSize]` input.
|
|
1140
1185
|
*/
|
|
@@ -1148,6 +1193,18 @@ declare class ClrWizard implements OnDestroy, AfterContentInit, DoCheck {
|
|
|
1148
1193
|
* If you can't use this option, you will likely need to provide custom CSS to set the wizard's height and margins.
|
|
1149
1194
|
*/
|
|
1150
1195
|
inPageFillContentArea: boolean;
|
|
1196
|
+
/**
|
|
1197
|
+
* Hide the wizard footer entirely. Set using `[clrWizardHideFooter]` input.
|
|
1198
|
+
* Useful when a nested wizard or stepper handles its own navigation.
|
|
1199
|
+
*/
|
|
1200
|
+
hideFooter: boolean;
|
|
1201
|
+
/**
|
|
1202
|
+
* Align the footer buttons to 'start' (left) or 'end' (right).
|
|
1203
|
+
* By default, modal wizards align to 'end' and in-page wizards align to 'start'.
|
|
1204
|
+
* Nested wizards inherit the default unless this input is explicitly set.
|
|
1205
|
+
* Set using `[clrWizardFooterAlign]` input.
|
|
1206
|
+
*/
|
|
1207
|
+
_footerAlign: ClrWizardFooterAlign | null;
|
|
1151
1208
|
/**
|
|
1152
1209
|
* Tells the modal part of the wizard whether it should have a close "X"
|
|
1153
1210
|
* in the top right corner. Set using `[clrWizardClosable]` input.
|
|
@@ -1181,10 +1238,10 @@ declare class ClrWizard implements OnDestroy, AfterContentInit, DoCheck {
|
|
|
1181
1238
|
*/
|
|
1182
1239
|
onReset: EventEmitter<any>;
|
|
1183
1240
|
/**
|
|
1184
|
-
* Emits when the current page has changed. Listen via `(
|
|
1241
|
+
* Emits when the current page has changed. Listen via `(clrWizardCurrentPageChange)` event.
|
|
1185
1242
|
* output. Useful for non-blocking validation.
|
|
1186
1243
|
*/
|
|
1187
|
-
|
|
1244
|
+
currentPageChange: EventEmitter<any>;
|
|
1188
1245
|
/**
|
|
1189
1246
|
* Emits when the wizard moves to the next page. Listen via `(clrWizardOnNext)` event.
|
|
1190
1247
|
* Can be combined with the `[clrWizardPreventDefaultNext]` input to create
|
|
@@ -1198,10 +1255,13 @@ declare class ClrWizard implements OnDestroy, AfterContentInit, DoCheck {
|
|
|
1198
1255
|
onMovePrevious: EventEmitter<any>;
|
|
1199
1256
|
pageTitle: ElementRef<HTMLElement>;
|
|
1200
1257
|
pages: QueryList<ClrWizardPage>;
|
|
1258
|
+
wizardButtons: QueryList<ClrWizardButton>;
|
|
1201
1259
|
headerActions: QueryList<ClrWizardHeaderAction>;
|
|
1202
1260
|
_open: boolean;
|
|
1203
1261
|
wizardId: string;
|
|
1204
1262
|
protected wizardTitle: ClrWizardTitle;
|
|
1263
|
+
protected ClrWizardFooterAlign: typeof ClrWizardFooterAlign;
|
|
1264
|
+
protected ClrWizardStepnavLayout: typeof ClrWizardStepnavLayout;
|
|
1205
1265
|
private readonly bodyElementRef;
|
|
1206
1266
|
private _forceForward;
|
|
1207
1267
|
private _stopNext;
|
|
@@ -1210,7 +1270,6 @@ declare class ClrWizard implements OnDestroy, AfterContentInit, DoCheck {
|
|
|
1210
1270
|
private _disableStepnav;
|
|
1211
1271
|
private differ;
|
|
1212
1272
|
private subscriptions;
|
|
1213
|
-
private readonly modal;
|
|
1214
1273
|
constructor(platformId: any, commonStrings: ClrCommonStringsService, navService: WizardNavigationService, pageCollection: PageCollectionService, buttonService: ButtonHubService, headerActionService: HeaderActionService, elementRef: ElementRef<HTMLElement>, differs: IterableDiffers);
|
|
1215
1274
|
/**
|
|
1216
1275
|
* Resets page completed states when navigating backwards.
|
|
@@ -1265,6 +1324,9 @@ declare class ClrWizard implements OnDestroy, AfterContentInit, DoCheck {
|
|
|
1265
1324
|
get isLast(): boolean;
|
|
1266
1325
|
get isFirst(): boolean;
|
|
1267
1326
|
get isInline(): boolean;
|
|
1327
|
+
get showHeader(): boolean;
|
|
1328
|
+
get showFooter(): boolean;
|
|
1329
|
+
get footerAlign(): ClrWizardFooterAlign;
|
|
1268
1330
|
get stopModalAnimations(): boolean;
|
|
1269
1331
|
ngAfterContentInit(): void;
|
|
1270
1332
|
ngDoCheck(): void;
|
|
@@ -1367,13 +1429,32 @@ declare class ClrWizard implements OnDestroy, AfterContentInit, DoCheck {
|
|
|
1367
1429
|
private initializeButtons;
|
|
1368
1430
|
private emitWizardFinished;
|
|
1369
1431
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClrWizard, never>;
|
|
1370
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ClrWizard, "clr-wizard", never, { "stepnavAriaLabel": { "alias": "clrWizardStepnavAriaLabel"; "required": false; }; "size": { "alias": "clrWizardSize"; "required": false; }; "inPage": { "alias": "clrWizardInPage"; "required": false; }; "inPageFillContentArea": { "alias": "clrWizardInPageFillContentArea"; "required": false; }; "closable": { "alias": "clrWizardClosable"; "required": false; }; "_stopModalAnimations": { "alias": "clrWizardPreventModalAnimation"; "required": false; }; "forceForward": { "alias": "clrWizardForceForwardNavigation"; "required": false; }; "clrWizardOpen": { "alias": "clrWizardOpen"; "required": false; }; "stopNext": { "alias": "clrWizardPreventDefaultNext"; "required": false; }; "stopCancel": { "alias": "clrWizardPreventDefaultCancel"; "required": false; }; "stopNavigation": { "alias": "clrWizardPreventNavigation"; "required": false; }; "disableStepnav": { "alias": "clrWizardDisableStepnav"; "required": false; }; }, { "_openChanged": "clrWizardOpenChange"; "onCancel": "clrWizardOnCancel"; "wizardFinished": "clrWizardOnFinish"; "onReset": "clrWizardOnReset"; "
|
|
1432
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ClrWizard, "clr-wizard", never, { "stepnavAriaLabel": { "alias": "clrWizardStepnavAriaLabel"; "required": false; }; "stepnavLayout": { "alias": "clrWizardStepnavLayout"; "required": false; }; "size": { "alias": "clrWizardSize"; "required": false; }; "inPage": { "alias": "clrWizardInPage"; "required": false; }; "inPageFillContentArea": { "alias": "clrWizardInPageFillContentArea"; "required": false; }; "hideFooter": { "alias": "clrWizardHideFooter"; "required": false; }; "_footerAlign": { "alias": "clrWizardFooterAlign"; "required": false; }; "closable": { "alias": "clrWizardClosable"; "required": false; }; "_stopModalAnimations": { "alias": "clrWizardPreventModalAnimation"; "required": false; }; "forceForward": { "alias": "clrWizardForceForwardNavigation"; "required": false; }; "clrWizardOpen": { "alias": "clrWizardOpen"; "required": false; }; "stopNext": { "alias": "clrWizardPreventDefaultNext"; "required": false; }; "stopCancel": { "alias": "clrWizardPreventDefaultCancel"; "required": false; }; "stopNavigation": { "alias": "clrWizardPreventNavigation"; "required": false; }; "disableStepnav": { "alias": "clrWizardDisableStepnav"; "required": false; }; }, { "_openChanged": "clrWizardOpenChange"; "onCancel": "clrWizardOnCancel"; "wizardFinished": "clrWizardOnFinish"; "onReset": "clrWizardOnReset"; "currentPageChange": "clrWizardCurrentPageChange"; "onMoveNext": "clrWizardOnNext"; "onMovePrevious": "clrWizardOnPrevious"; }, ["wizardTitle", "pages", "wizardButtons", "headerActions"], ["*", "clr-wizard-button", "clr-wizard-title", "clr-wizard-header-action"], false, never>;
|
|
1433
|
+
static ngAcceptInputType_stepnavLayout: ClrWizardStepnavLayout | string;
|
|
1434
|
+
static ngAcceptInputType__footerAlign: ClrWizardFooterAlign | string;
|
|
1371
1435
|
}
|
|
1372
1436
|
|
|
1373
|
-
declare class ClrWizardStepnav {
|
|
1437
|
+
declare class ClrWizardStepnav implements AfterViewInit, OnDestroy {
|
|
1374
1438
|
pageService: PageCollectionService;
|
|
1439
|
+
private navService;
|
|
1440
|
+
private elementRef;
|
|
1375
1441
|
label: string;
|
|
1376
|
-
|
|
1442
|
+
protected showScrollLeftButton: boolean;
|
|
1443
|
+
protected showScrollRightButton: boolean;
|
|
1444
|
+
private readonly stepnavItems;
|
|
1445
|
+
private subscription;
|
|
1446
|
+
private intersectionObserver;
|
|
1447
|
+
private firstItemVisible;
|
|
1448
|
+
private lastItemVisible;
|
|
1449
|
+
constructor(pageService: PageCollectionService, navService: WizardNavigationService, elementRef: ElementRef<HTMLElement>);
|
|
1450
|
+
protected get stepnavLayout(): ClrWizardStepnavLayout;
|
|
1451
|
+
ngAfterViewInit(): void;
|
|
1452
|
+
ngOnDestroy(): void;
|
|
1453
|
+
protected scrollLeft(): void;
|
|
1454
|
+
protected scrollRight(): void;
|
|
1455
|
+
private setupIntersectionObserver;
|
|
1456
|
+
private observeEdgeItems;
|
|
1457
|
+
private scroll;
|
|
1377
1458
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClrWizardStepnav, never>;
|
|
1378
1459
|
static ɵcmp: i0.ɵɵComponentDeclaration<ClrWizardStepnav, "clr-wizard-stepnav", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, never, false, never>;
|
|
1379
1460
|
}
|
|
@@ -1382,7 +1463,7 @@ declare class ClrWizardStepnavItem implements OnInit, OnDestroy {
|
|
|
1382
1463
|
navService: WizardNavigationService;
|
|
1383
1464
|
pageCollection: PageCollectionService;
|
|
1384
1465
|
commonStrings: ClrCommonStringsService;
|
|
1385
|
-
|
|
1466
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
1386
1467
|
page: ClrWizardPage;
|
|
1387
1468
|
private subscription;
|
|
1388
1469
|
/**
|
|
@@ -1409,37 +1490,13 @@ declare class ClrWizardStepnavItem implements OnInit, OnDestroy {
|
|
|
1409
1490
|
ngOnInit(): void;
|
|
1410
1491
|
ngOnDestroy(): void;
|
|
1411
1492
|
click(): void;
|
|
1493
|
+
protected scrollIntoView(): void;
|
|
1412
1494
|
private pageGuard;
|
|
1413
1495
|
private ensureCurrentStepIsScrolledIntoView;
|
|
1414
1496
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClrWizardStepnavItem, never>;
|
|
1415
1497
|
static ɵcmp: i0.ɵɵComponentDeclaration<ClrWizardStepnavItem, "[clr-wizard-stepnav-item]", never, { "page": { "alias": "page"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
1416
1498
|
}
|
|
1417
1499
|
|
|
1418
|
-
declare const DEFAULT_BUTTON_TYPES: any;
|
|
1419
|
-
declare const CUSTOM_BUTTON_TYPES: any;
|
|
1420
|
-
declare class ClrWizardButton {
|
|
1421
|
-
navService: WizardNavigationService;
|
|
1422
|
-
buttonService: ButtonHubService;
|
|
1423
|
-
type: string;
|
|
1424
|
-
disabled: boolean;
|
|
1425
|
-
hidden: boolean;
|
|
1426
|
-
wasClicked: EventEmitter<string>;
|
|
1427
|
-
constructor(navService: WizardNavigationService, buttonService: ButtonHubService);
|
|
1428
|
-
get isCancel(): boolean;
|
|
1429
|
-
get isNext(): boolean;
|
|
1430
|
-
get isPrevious(): boolean;
|
|
1431
|
-
get isFinish(): boolean;
|
|
1432
|
-
get isDanger(): boolean;
|
|
1433
|
-
get isPrimaryAction(): boolean;
|
|
1434
|
-
get _disabledAttribute(): string | null;
|
|
1435
|
-
get isDisabled(): boolean;
|
|
1436
|
-
get isHidden(): boolean;
|
|
1437
|
-
click(): void;
|
|
1438
|
-
private checkDefaultAndCustomType;
|
|
1439
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ClrWizardButton, never>;
|
|
1440
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ClrWizardButton, "clr-wizard-button", never, { "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "clrWizardButtonDisabled"; "required": false; }; "hidden": { "alias": "clrWizardButtonHidden"; "required": false; }; }, { "wasClicked": "clrWizardButtonClicked"; }, never, ["*"], false, never>;
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
1500
|
declare const CLR_WIZARD_DIRECTIVES: any[];
|
|
1444
1501
|
declare class ClrWizardModule {
|
|
1445
1502
|
constructor();
|
|
@@ -1448,4 +1505,4 @@ declare class ClrWizardModule {
|
|
|
1448
1505
|
static ɵinj: i0.ɵɵInjectorDeclaration<ClrWizardModule>;
|
|
1449
1506
|
}
|
|
1450
1507
|
|
|
1451
|
-
export { CLR_WIZARD_DIRECTIVES, CUSTOM_BUTTON_TYPES, ClrWizard, ClrWizardButton, ClrWizardHeaderAction, ClrWizardModule, ClrWizardPage, ClrWizardPageButtons, ClrWizardPageHeaderActions, ClrWizardPageNavTitle, ClrWizardPageTitle, ClrWizardStepnav, ClrWizardStepnavItem, ClrWizardTitle, DEFAULT_BUTTON_TYPES };
|
|
1508
|
+
export { CLR_WIZARD_DIRECTIVES, CUSTOM_BUTTON_TYPES, ClrWizard, ClrWizardButton, ClrWizardFooterAlign, ClrWizardHeaderAction, ClrWizardModule, ClrWizardPage, ClrWizardPageButtons, ClrWizardPageHeaderActions, ClrWizardPageNavTitle, ClrWizardPageTitle, ClrWizardStepnav, ClrWizardStepnavItem, ClrWizardStepnavLayout, ClrWizardTitle, DEFAULT_BUTTON_TYPES, footerAlignAttribute, stepnavLayoutAttribute };
|