@clr/angular 18.0.0-beta.2 → 18.0.0-beta.4
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 +5 -5
- package/fesm2022/clr-angular-button.mjs.map +1 -1
- package/fesm2022/clr-angular-data-datagrid.mjs +18 -12
- package/fesm2022/clr-angular-data-datagrid.mjs.map +1 -1
- package/fesm2022/clr-angular-data.mjs +11 -9102
- package/fesm2022/clr-angular-data.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-combobox.mjs +336 -43
- package/fesm2022/clr-angular-forms-combobox.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-common.mjs +8 -6
- package/fesm2022/clr-angular-forms-common.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-datepicker.mjs +5 -5
- package/fesm2022/clr-angular-forms-datepicker.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-file-input.mjs +8 -6
- package/fesm2022/clr-angular-forms-file-input.mjs.map +1 -1
- package/fesm2022/clr-angular-forms.mjs +68 -8460
- package/fesm2022/clr-angular-forms.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 +2 -3
- package/fesm2022/clr-angular-modal.mjs.map +1 -1
- package/fesm2022/clr-angular-popover-common.mjs +1 -1
- package/fesm2022/clr-angular-popover-common.mjs.map +1 -1
- package/fesm2022/clr-angular-popover-signpost.mjs +4 -4
- package/fesm2022/clr-angular-popover-signpost.mjs.map +1 -1
- package/fesm2022/clr-angular-popover-tooltip.mjs +4 -4
- package/fesm2022/clr-angular-popover-tooltip.mjs.map +1 -1
- package/fesm2022/clr-angular-popover.mjs +12 -2326
- package/fesm2022/clr-angular-popover.mjs.map +1 -1
- package/fesm2022/clr-angular-stepper.mjs +1 -1
- package/fesm2022/clr-angular-stepper.mjs.map +1 -1
- package/fesm2022/clr-angular-utils.mjs +9 -439
- package/fesm2022/clr-angular-utils.mjs.map +1 -1
- package/fesm2022/clr-angular-wizard.mjs +427 -224
- package/fesm2022/clr-angular-wizard.mjs.map +1 -1
- package/fesm2022/clr-angular.mjs +94 -38683
- package/fesm2022/clr-angular.mjs.map +1 -1
- package/package.json +7 -2
- package/schematics/collection.json +10 -0
- package/schematics/ng-update/index.d.ts +2 -0
- package/schematics/ng-update/index.js +66 -0
- package/schematics/ng-update/index.js.map +1 -0
- package/schematics/ng-update/migrations/css-migration.d.ts +5 -0
- package/schematics/ng-update/migrations/css-migration.js +167 -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 +136 -0
- package/schematics/ng-update/migrations/import-migration.js.map +1 -0
- package/schematics/ng-update/migrations/template-migration.d.ts +5 -0
- package/schematics/ng-update/migrations/template-migration.js +175 -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 +101 -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 +68 -0
- package/schematics/ng-update/replacements/symbol-replacements.js.map +1 -0
- package/schematics/ng-update/replacements/template-replacements.d.ts +14 -0
- package/schematics/ng-update/replacements/template-replacements.js +53 -0
- package/schematics/ng-update/replacements/template-replacements.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/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 -23
- package/types/clr-angular-data.d.ts +4 -2126
- package/types/clr-angular-emphasis.d.ts +4 -220
- package/types/clr-angular-forms-combobox.d.ts +56 -10
- package/types/clr-angular-forms-datepicker.d.ts +1 -1
- package/types/clr-angular-forms.d.ts +26 -2078
- 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 +1 -1
- package/types/clr-angular-popover-signpost.d.ts +1 -1
- package/types/clr-angular-popover-tooltip.d.ts +1 -1
- package/types/clr-angular-popover.d.ts +7 -593
- package/types/clr-angular-stepper.d.ts +1 -1
- package/types/clr-angular-utils.d.ts +10 -162
- package/types/clr-angular-wizard.d.ts +89 -35
- package/types/clr-angular.d.ts +22 -10270
|
@@ -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
|
|
|
@@ -172,164 +173,6 @@ declare function fadeSlide(direction: string): AnimationMetadata[];
|
|
|
172
173
|
|
|
173
174
|
declare function slide(direction: string): AnimationMetadata[];
|
|
174
175
|
|
|
175
|
-
/**
|
|
176
|
-
* This is an abstract class because we need it to still be a valid token for dependency injection after transpiling.
|
|
177
|
-
* This does not mean you should extend it, simply implementing it is fine.
|
|
178
|
-
*/
|
|
179
|
-
declare abstract class LoadingListener {
|
|
180
|
-
abstract loadingStateChange(state: ClrLoadingState | string): void;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
declare enum ClrLoadingState {
|
|
184
|
-
DEFAULT = 0,
|
|
185
|
-
LOADING = 1,
|
|
186
|
-
SUCCESS = 2,
|
|
187
|
-
ERROR = 3
|
|
188
|
-
}
|
|
189
|
-
declare class ClrLoading implements OnDestroy {
|
|
190
|
-
private listener;
|
|
191
|
-
static ngAcceptInputType_loadingState: boolean | ClrLoadingState | null | string;
|
|
192
|
-
private _loadingState;
|
|
193
|
-
constructor(listener: LoadingListener);
|
|
194
|
-
get loadingState(): boolean | string | ClrLoadingState;
|
|
195
|
-
set loadingState(value: boolean | string | ClrLoadingState);
|
|
196
|
-
ngOnDestroy(): void;
|
|
197
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ClrLoading, [{ optional: true; }]>;
|
|
198
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ClrLoading, "[clrLoading]", never, { "loadingState": { "alias": "clrLoading"; "required": false; }; }, {}, never, never, false, never>;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
declare const CLR_LOADING_DIRECTIVES: Type<any>[];
|
|
202
|
-
declare class ClrLoadingModule {
|
|
203
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ClrLoadingModule, never>;
|
|
204
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ClrLoadingModule, [typeof ClrLoading], [typeof i2.CommonModule], [typeof ClrLoading]>;
|
|
205
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ClrLoadingModule>;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
declare const IF_ACTIVE_ID: InjectionToken<number>;
|
|
209
|
-
declare function tokenFactory(): number;
|
|
210
|
-
declare const IF_ACTIVE_ID_PROVIDER: {
|
|
211
|
-
provide: InjectionToken<number>;
|
|
212
|
-
useFactory: typeof tokenFactory;
|
|
213
|
-
};
|
|
214
|
-
declare class IfActiveService {
|
|
215
|
-
/********
|
|
216
|
-
* @property _currentChange
|
|
217
|
-
*
|
|
218
|
-
* @description
|
|
219
|
-
* A RXJS Subject that updates and provides subscriptions to for the current current state of a component template
|
|
220
|
-
* implemting the IfActive structural directive.
|
|
221
|
-
*
|
|
222
|
-
*/
|
|
223
|
-
private _currentChange;
|
|
224
|
-
/*********
|
|
225
|
-
* @property _current
|
|
226
|
-
*
|
|
227
|
-
* @description
|
|
228
|
-
* A property holding the current value for current/closed state of an IfActive structural directive.
|
|
229
|
-
*/
|
|
230
|
-
private _current;
|
|
231
|
-
/*********
|
|
232
|
-
*
|
|
233
|
-
* @description
|
|
234
|
-
* A getter function that provides an observable for the _current Subject.
|
|
235
|
-
*
|
|
236
|
-
*/
|
|
237
|
-
get currentChange(): Observable<number>;
|
|
238
|
-
/*********
|
|
239
|
-
*
|
|
240
|
-
* @description
|
|
241
|
-
* A property that gets/sets the current state of _current for this instance of IfActive structural directive.
|
|
242
|
-
* And, broadcasts the new value to all subscribers.
|
|
243
|
-
*
|
|
244
|
-
*/
|
|
245
|
-
get current(): number;
|
|
246
|
-
set current(value: number);
|
|
247
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IfActiveService, never>;
|
|
248
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<IfActiveService>;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
declare class ClrIfActive implements OnDestroy {
|
|
252
|
-
private ifActiveService;
|
|
253
|
-
private id;
|
|
254
|
-
private template;
|
|
255
|
-
private container;
|
|
256
|
-
/**********
|
|
257
|
-
* @property activeChange
|
|
258
|
-
*
|
|
259
|
-
* @description
|
|
260
|
-
* An event emitter that emits when the active property is set to allow for 2way binding when the directive is
|
|
261
|
-
* used with de-structured / de-sugared syntax.
|
|
262
|
-
*
|
|
263
|
-
*/
|
|
264
|
-
activeChange: EventEmitter<boolean>;
|
|
265
|
-
private subscription;
|
|
266
|
-
private wasActive;
|
|
267
|
-
constructor(ifActiveService: IfActiveService, id: number, template: TemplateRef<any>, container: ViewContainerRef);
|
|
268
|
-
/**
|
|
269
|
-
* @description
|
|
270
|
-
* A property that gets/sets IfActiveService.active with value.
|
|
271
|
-
*
|
|
272
|
-
*/
|
|
273
|
-
get active(): boolean | string;
|
|
274
|
-
set active(value: boolean | string);
|
|
275
|
-
ngOnDestroy(): void;
|
|
276
|
-
/**
|
|
277
|
-
* @description
|
|
278
|
-
* Function that takes a any value and either created an embedded view for the associated ViewContainerRef or,
|
|
279
|
-
* Clears all views from the ViewContainerRef
|
|
280
|
-
*/
|
|
281
|
-
updateView(value: boolean): void;
|
|
282
|
-
private checkAndUpdateView;
|
|
283
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ClrIfActive, never>;
|
|
284
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ClrIfActive, "[clrIfActive]", never, { "active": { "alias": "clrIfActive"; "required": false; }; }, { "activeChange": "clrIfActiveChange"; }, never, never, true, never>;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
declare class IfExpandService implements LoadingListener$1 {
|
|
288
|
-
expandable: number;
|
|
289
|
-
hasExpandTemplate: boolean;
|
|
290
|
-
protected _loading: boolean;
|
|
291
|
-
protected _expanded: boolean;
|
|
292
|
-
protected _expandChange: Subject<boolean>;
|
|
293
|
-
get loading(): boolean;
|
|
294
|
-
set loading(value: boolean);
|
|
295
|
-
get expanded(): boolean;
|
|
296
|
-
set expanded(value: boolean);
|
|
297
|
-
get expandChange(): Observable<boolean>;
|
|
298
|
-
toggle(): void;
|
|
299
|
-
loadingStateChange(state: ClrLoadingState$1): void;
|
|
300
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IfExpandService, never>;
|
|
301
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<IfExpandService>;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
declare class ClrIfExpanded implements OnInit, OnDestroy {
|
|
305
|
-
private template;
|
|
306
|
-
private container;
|
|
307
|
-
private el;
|
|
308
|
-
private renderer;
|
|
309
|
-
private expand;
|
|
310
|
-
expandedChange: EventEmitter<boolean>;
|
|
311
|
-
private _expanded;
|
|
312
|
-
/**
|
|
313
|
-
* Subscriptions to all the services and queries changes
|
|
314
|
-
*/
|
|
315
|
-
private _subscriptions;
|
|
316
|
-
constructor(template: TemplateRef<any>, container: ViewContainerRef, el: ElementRef<HTMLElement>, renderer: Renderer2, expand: IfExpandService);
|
|
317
|
-
get expanded(): boolean | string;
|
|
318
|
-
set expanded(value: boolean | string);
|
|
319
|
-
ngOnInit(): void;
|
|
320
|
-
ngOnDestroy(): void;
|
|
321
|
-
private updateView;
|
|
322
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ClrIfExpanded, [{ optional: true; }, null, null, null, null]>;
|
|
323
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ClrIfExpanded, "[clrIfExpanded]", never, { "expanded": { "alias": "clrIfExpanded"; "required": false; }; }, { "expandedChange": "clrIfExpandedChange"; }, never, never, true, never>;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
declare const CONDITIONAL_DIRECTIVES: Type<any>[];
|
|
327
|
-
declare class ClrConditionalModule {
|
|
328
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ClrConditionalModule, never>;
|
|
329
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ClrConditionalModule, never, [typeof i2.CommonModule, typeof ClrIfActive, typeof ClrIfExpanded], [typeof ClrIfActive, typeof ClrIfExpanded]>;
|
|
330
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ClrConditionalModule>;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
176
|
interface ClrCommonStrings {
|
|
334
177
|
/**
|
|
335
178
|
* Open button
|
|
@@ -598,6 +441,11 @@ interface ClrCommonStrings {
|
|
|
598
441
|
comboboxSelected: string;
|
|
599
442
|
comboboxNoResults: string;
|
|
600
443
|
comboboxOpen: string;
|
|
444
|
+
comboboxSelectAll: string;
|
|
445
|
+
comboboxUnselectAll: string;
|
|
446
|
+
comboboxAllSelected: string;
|
|
447
|
+
comboboxShowAll: string;
|
|
448
|
+
comboboxShowLess: string;
|
|
601
449
|
/**
|
|
602
450
|
* Wizard: Screen-reader text for "step" (read before step number).
|
|
603
451
|
*/
|
|
@@ -1061,5 +909,5 @@ declare abstract class OompaLoompa implements AfterContentChecked, OnDestroy {
|
|
|
1061
909
|
static ɵdir: i0.ɵɵDirectiveDeclaration<OompaLoompa, never, never, {}, {}, never, never, true, never>;
|
|
1062
910
|
}
|
|
1063
911
|
|
|
1064
|
-
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 };
|
|
1065
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
|
*/
|
|
@@ -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.
|
|
@@ -1198,12 +1255,14 @@ 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
|
-
private _title;
|
|
1207
1266
|
private _forceForward;
|
|
1208
1267
|
private _stopNext;
|
|
1209
1268
|
private _stopCancel;
|
|
@@ -1211,10 +1270,7 @@ declare class ClrWizard implements OnDestroy, AfterContentInit, DoCheck {
|
|
|
1211
1270
|
private _disableStepnav;
|
|
1212
1271
|
private differ;
|
|
1213
1272
|
private subscriptions;
|
|
1214
|
-
private readonly modal;
|
|
1215
1273
|
constructor(platformId: any, commonStrings: ClrCommonStringsService, navService: WizardNavigationService, pageCollection: PageCollectionService, buttonService: ButtonHubService, headerActionService: HeaderActionService, elementRef: ElementRef<HTMLElement>, differs: IterableDiffers);
|
|
1216
|
-
get title(): ElementRef<HTMLElement>;
|
|
1217
|
-
set title(title: ElementRef<HTMLElement>);
|
|
1218
1274
|
/**
|
|
1219
1275
|
* Resets page completed states when navigating backwards.
|
|
1220
1276
|
* Set using `[clrWizardForceForwardNavigation]` input.
|
|
@@ -1268,6 +1324,9 @@ declare class ClrWizard implements OnDestroy, AfterContentInit, DoCheck {
|
|
|
1268
1324
|
get isLast(): boolean;
|
|
1269
1325
|
get isFirst(): boolean;
|
|
1270
1326
|
get isInline(): boolean;
|
|
1327
|
+
get showHeader(): boolean;
|
|
1328
|
+
get showFooter(): boolean;
|
|
1329
|
+
get footerAlign(): ClrWizardFooterAlign;
|
|
1271
1330
|
get stopModalAnimations(): boolean;
|
|
1272
1331
|
ngAfterContentInit(): void;
|
|
1273
1332
|
ngDoCheck(): void;
|
|
@@ -1370,13 +1429,32 @@ declare class ClrWizard implements OnDestroy, AfterContentInit, DoCheck {
|
|
|
1370
1429
|
private initializeButtons;
|
|
1371
1430
|
private emitWizardFinished;
|
|
1372
1431
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClrWizard, never>;
|
|
1373
|
-
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"; "currentPageChange": "clrWizardCurrentPageChange"; "onMoveNext": "clrWizardOnNext"; "onMovePrevious": "clrWizardOnPrevious"; }, ["wizardTitle", "pages", "headerActions"], ["clr-wizard-
|
|
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;
|
|
1374
1435
|
}
|
|
1375
1436
|
|
|
1376
|
-
declare class ClrWizardStepnav {
|
|
1437
|
+
declare class ClrWizardStepnav implements AfterViewInit, OnDestroy {
|
|
1377
1438
|
pageService: PageCollectionService;
|
|
1439
|
+
private navService;
|
|
1440
|
+
private elementRef;
|
|
1378
1441
|
label: string;
|
|
1379
|
-
|
|
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;
|
|
1380
1458
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClrWizardStepnav, never>;
|
|
1381
1459
|
static ɵcmp: i0.ɵɵComponentDeclaration<ClrWizardStepnav, "clr-wizard-stepnav", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, never, false, never>;
|
|
1382
1460
|
}
|
|
@@ -1385,7 +1463,7 @@ declare class ClrWizardStepnavItem implements OnInit, OnDestroy {
|
|
|
1385
1463
|
navService: WizardNavigationService;
|
|
1386
1464
|
pageCollection: PageCollectionService;
|
|
1387
1465
|
commonStrings: ClrCommonStringsService;
|
|
1388
|
-
|
|
1466
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
1389
1467
|
page: ClrWizardPage;
|
|
1390
1468
|
private subscription;
|
|
1391
1469
|
/**
|
|
@@ -1412,37 +1490,13 @@ declare class ClrWizardStepnavItem implements OnInit, OnDestroy {
|
|
|
1412
1490
|
ngOnInit(): void;
|
|
1413
1491
|
ngOnDestroy(): void;
|
|
1414
1492
|
click(): void;
|
|
1493
|
+
protected scrollIntoView(): void;
|
|
1415
1494
|
private pageGuard;
|
|
1416
1495
|
private ensureCurrentStepIsScrolledIntoView;
|
|
1417
1496
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClrWizardStepnavItem, never>;
|
|
1418
1497
|
static ɵcmp: i0.ɵɵComponentDeclaration<ClrWizardStepnavItem, "[clr-wizard-stepnav-item]", never, { "page": { "alias": "page"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
1419
1498
|
}
|
|
1420
1499
|
|
|
1421
|
-
declare const DEFAULT_BUTTON_TYPES: any;
|
|
1422
|
-
declare const CUSTOM_BUTTON_TYPES: any;
|
|
1423
|
-
declare class ClrWizardButton {
|
|
1424
|
-
navService: WizardNavigationService;
|
|
1425
|
-
buttonService: ButtonHubService;
|
|
1426
|
-
type: string;
|
|
1427
|
-
disabled: boolean;
|
|
1428
|
-
hidden: boolean;
|
|
1429
|
-
wasClicked: EventEmitter<string>;
|
|
1430
|
-
constructor(navService: WizardNavigationService, buttonService: ButtonHubService);
|
|
1431
|
-
get isCancel(): boolean;
|
|
1432
|
-
get isNext(): boolean;
|
|
1433
|
-
get isPrevious(): boolean;
|
|
1434
|
-
get isFinish(): boolean;
|
|
1435
|
-
get isDanger(): boolean;
|
|
1436
|
-
get isPrimaryAction(): boolean;
|
|
1437
|
-
get _disabledAttribute(): string | null;
|
|
1438
|
-
get isDisabled(): boolean;
|
|
1439
|
-
get isHidden(): boolean;
|
|
1440
|
-
click(): void;
|
|
1441
|
-
private checkDefaultAndCustomType;
|
|
1442
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ClrWizardButton, never>;
|
|
1443
|
-
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>;
|
|
1444
|
-
}
|
|
1445
|
-
|
|
1446
1500
|
declare const CLR_WIZARD_DIRECTIVES: any[];
|
|
1447
1501
|
declare class ClrWizardModule {
|
|
1448
1502
|
constructor();
|
|
@@ -1451,4 +1505,4 @@ declare class ClrWizardModule {
|
|
|
1451
1505
|
static ɵinj: i0.ɵɵInjectorDeclaration<ClrWizardModule>;
|
|
1452
1506
|
}
|
|
1453
1507
|
|
|
1454
|
-
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 };
|