From 1af7f2c28d32244b22fb2921fe9655f7ee7abf7e Mon Sep 17 00:00:00 2001 From: Ivan Donchev Date: Tue, 12 Nov 2024 13:33:44 +0200 Subject: [PATCH] fix: build and lint fixes --- projects/angular/clarity.api.md | 82 +++++++++++++++--------- projects/angular/src/modal/index.ts | 1 + projects/angular/src/modal/side-panel.ts | 2 +- projects/angular/src/wizard/wizard.ts | 4 +- 4 files changed, 56 insertions(+), 33 deletions(-) diff --git a/projects/angular/clarity.api.md b/projects/angular/clarity.api.md index 3dfa2b67b0..de05a2c157 100644 --- a/projects/angular/clarity.api.md +++ b/projects/angular/clarity.api.md @@ -281,14 +281,14 @@ export class ClrAccordionModule { static ɵinj: i0.ɵɵInjectorDeclaration; // Warning: (ae-forgotten-export) The symbol "i1_49" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i2_36" needs to be exported by the entry point index.d.ts - // Warning: (ae-forgotten-export) The symbol "i3_28" needs to be exported by the entry point index.d.ts + // Warning: (ae-forgotten-export) The symbol "i3_29" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i4_19" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i5_15" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i6_10" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i7_9" needs to be exported by the entry point index.d.ts // // (undocumented) - static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; } // @public (undocumented) @@ -1017,6 +1017,7 @@ export interface ClrCommonStrings { show: string; showColumns: string; showColumnsMenuDescription: string; + sidePanelPin: string; signpostClose: string; signpostToggle: string; singleActionableAriaLabel: string; @@ -2696,11 +2697,11 @@ export class ClrLayoutModule { static ɵinj: i0.ɵɵInjectorDeclaration; // Warning: (ae-forgotten-export) The symbol "i1_37" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i2_27" needs to be exported by the entry point index.d.ts - // Warning: (ae-forgotten-export) The symbol "i3_20" needs to be exported by the entry point index.d.ts + // Warning: (ae-forgotten-export) The symbol "i3_21" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i4_15" needs to be exported by the entry point index.d.ts // // (undocumented) - static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; } // @public (undocumented) @@ -2811,7 +2812,7 @@ export class ClrMainContainerModule { export class ClrModal implements OnChanges, OnDestroy { // Warning: (ae-forgotten-export) The symbol "ScrollingService" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "ModalStackService" needs to be exported by the entry point index.d.ts - constructor(_scrollingService: ScrollingService, commonStrings: ClrCommonStringsService, modalStackService: ModalStackService, configuration: ClrModalConfigurationService); + constructor(_scrollingService: ScrollingService, commonStrings: ClrCommonStringsService, modalStackService: ModalStackService, configuration: ClrModalConfigurationService, elementRef: ElementRef); // (undocumented) altClose: EventEmitter; // (undocumented) @@ -2850,9 +2851,14 @@ export class ClrModal implements OnChanges, OnDestroy { // (undocumented) _openChanged: EventEmitter; // (undocumented) + pinnable: boolean; + // (undocumented) + get pinned(): boolean; + set pinned(pinned: boolean); + // (undocumented) size: string; // (undocumented) - skipAnimation: string; + skipAnimation: boolean; // (undocumented) staticBackdrop: boolean; // (undocumented) @@ -2860,6 +2866,8 @@ export class ClrModal implements OnChanges, OnDestroy { // (undocumented) title: ElementRef; // (undocumented) + togglePinned(): void; + // (undocumented) static ɵcmp: i0.ɵɵComponentDeclaration; // (undocumented) static ɵfac: i0.ɵɵFactoryDeclaration; @@ -2888,6 +2896,14 @@ export class ClrModalConfigurationService { static ɵprov: i0.ɵɵInjectableDeclaration; } +// @public (undocumented) +export class ClrModalHostDirective { + // (undocumented) + static ɵdir: i0.ɵɵDirectiveDeclaration; + // (undocumented) + static ɵfac: i0.ɵɵFactoryDeclaration; +} + // @public (undocumented) export class ClrModalModule { constructor(); @@ -2897,9 +2913,10 @@ export class ClrModalModule { static ɵinj: i0.ɵɵInjectorDeclaration; // Warning: (ae-forgotten-export) The symbol "i1_32" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i2_24" needs to be exported by the entry point index.d.ts + // Warning: (ae-forgotten-export) The symbol "i3_19" needs to be exported by the entry point index.d.ts // // (undocumented) - static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; } // @public (undocumented) @@ -2925,12 +2942,12 @@ export class ClrNavigationModule { static ɵinj: i0.ɵɵInjectorDeclaration; // Warning: (ae-forgotten-export) The symbol "i1_39" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i2_28" needs to be exported by the entry point index.d.ts - // Warning: (ae-forgotten-export) The symbol "i3_19" needs to be exported by the entry point index.d.ts + // Warning: (ae-forgotten-export) The symbol "i3_20" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i4_13" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i5_10" needs to be exported by the entry point index.d.ts // // (undocumented) - static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; } // @public (undocumented) @@ -3221,10 +3238,10 @@ export class ClrPopoverModule { // (undocumented) static ɵinj: i0.ɵɵInjectorDeclaration; // Warning: (ae-forgotten-export) The symbol "i2_31" needs to be exported by the entry point index.d.ts - // Warning: (ae-forgotten-export) The symbol "i3_24" needs to be exported by the entry point index.d.ts + // Warning: (ae-forgotten-export) The symbol "i3_25" needs to be exported by the entry point index.d.ts // // (undocumented) - static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; } // @public @@ -3560,7 +3577,7 @@ export enum ClrSide { } // @public (undocumented) -export class ClrSidePanel implements OnInit { +export class ClrSidePanel implements OnInit, AfterViewInit { constructor(element: ElementRef, configuration: ClrModalConfigurationService); // (undocumented) altClose: EventEmitter; @@ -3572,8 +3589,13 @@ export class ClrSidePanel implements OnInit { get clrSidePanelBackdrop(): boolean; set clrSidePanelBackdrop(backdrop: boolean); // (undocumented) + get clrSidePanelPinnable(): boolean; + set clrSidePanelPinnable(pinnable: boolean); + // (undocumented) labelledById: string; // (undocumented) + ngAfterViewInit(): void; + // (undocumented) ngOnInit(): void; // (undocumented) open(): void; @@ -3586,11 +3608,11 @@ export class ClrSidePanel implements OnInit { // (undocumented) size: string; // (undocumented) - skipAnimation: string; + skipAnimation: boolean; // (undocumented) staticBackdrop: boolean; // (undocumented) - static ɵcmp: i0.ɵɵComponentDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; // (undocumented) static ɵfac: i0.ɵɵFactoryDeclaration; } @@ -3604,7 +3626,7 @@ export class ClrSidePanelModule { // Warning: (ae-forgotten-export) The symbol "i1_47" needs to be exported by the entry point index.d.ts // // (undocumented) - static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; } // @public (undocumented) @@ -3649,10 +3671,10 @@ export class ClrSignpostModule { static ɵinj: i0.ɵɵInjectorDeclaration; // Warning: (ae-forgotten-export) The symbol "i1_44" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i2_32" needs to be exported by the entry point index.d.ts - // Warning: (ae-forgotten-export) The symbol "i3_23" needs to be exported by the entry point index.d.ts + // Warning: (ae-forgotten-export) The symbol "i3_24" needs to be exported by the entry point index.d.ts // // (undocumented) - static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; } // @public (undocumented) @@ -3902,13 +3924,13 @@ export class ClrStepperModule { static ɵinj: i0.ɵɵInjectorDeclaration; // Warning: (ae-forgotten-export) The symbol "i1_48" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i2_35" needs to be exported by the entry point index.d.ts - // Warning: (ae-forgotten-export) The symbol "i3_27" needs to be exported by the entry point index.d.ts + // Warning: (ae-forgotten-export) The symbol "i3_28" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i4_18" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i5_14" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i8_8" needs to be exported by the entry point index.d.ts // // (undocumented) - static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; } // @public (undocumented) @@ -4110,7 +4132,7 @@ export class ClrTabsModule { static ɵinj: i0.ɵɵInjectorDeclaration; // Warning: (ae-forgotten-export) The symbol "i1_41" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i2_29" needs to be exported by the entry point index.d.ts - // Warning: (ae-forgotten-export) The symbol "i3_21" needs to be exported by the entry point index.d.ts + // Warning: (ae-forgotten-export) The symbol "i3_22" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i4_14" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i5_11" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i6_8" needs to be exported by the entry point index.d.ts @@ -4118,7 +4140,7 @@ export class ClrTabsModule { // Warning: (ae-forgotten-export) The symbol "i11_3" needs to be exported by the entry point index.d.ts // // (undocumented) - static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; } // @public (undocumented) @@ -4183,12 +4205,12 @@ export class ClrTimelineModule { static ɵinj: i0.ɵɵInjectorDeclaration; // Warning: (ae-forgotten-export) The symbol "i1_51" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i2_37" needs to be exported by the entry point index.d.ts - // Warning: (ae-forgotten-export) The symbol "i3_29" needs to be exported by the entry point index.d.ts + // Warning: (ae-forgotten-export) The symbol "i3_30" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i4_20" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i5_16" needs to be exported by the entry point index.d.ts // // (undocumented) - static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; } // @public (undocumented) @@ -4293,10 +4315,10 @@ export class ClrTooltipModule { static ɵinj: i0.ɵɵInjectorDeclaration; // Warning: (ae-forgotten-export) The symbol "i1_45" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i2_33" needs to be exported by the entry point index.d.ts - // Warning: (ae-forgotten-export) The symbol "i3_25" needs to be exported by the entry point index.d.ts + // Warning: (ae-forgotten-export) The symbol "i3_26" needs to be exported by the entry point index.d.ts // // (undocumented) - static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; } // @public (undocumented) @@ -4535,12 +4557,12 @@ export class ClrVerticalNavModule { static ɵinj: i0.ɵɵInjectorDeclaration; // Warning: (ae-forgotten-export) The symbol "i1_43" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i2_30" needs to be exported by the entry point index.d.ts - // Warning: (ae-forgotten-export) The symbol "i3_22" needs to be exported by the entry point index.d.ts + // Warning: (ae-forgotten-export) The symbol "i3_23" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i4_16" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i5_12" needs to be exported by the entry point index.d.ts // // (undocumented) - static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; } // @public (undocumented) @@ -4614,7 +4636,7 @@ export class ClrWizard implements OnDestroy, AfterContentInit, DoCheck { get stopCancel(): boolean; set stopCancel(value: boolean); // (undocumented) - get stopModalAnimations(): string; + get stopModalAnimations(): boolean; _stopModalAnimations: boolean; get stopNavigation(): boolean; set stopNavigation(value: boolean); @@ -4702,7 +4724,7 @@ export class ClrWizardModule { static ɵinj: i0.ɵɵInjectorDeclaration; // Warning: (ae-forgotten-export) The symbol "i1_46" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i2_34" needs to be exported by the entry point index.d.ts - // Warning: (ae-forgotten-export) The symbol "i3_26" needs to be exported by the entry point index.d.ts + // Warning: (ae-forgotten-export) The symbol "i3_27" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i4_17" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i5_13" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "i6_9" needs to be exported by the entry point index.d.ts @@ -4713,7 +4735,7 @@ export class ClrWizardModule { // Warning: (ae-forgotten-export) The symbol "i11_5" needs to be exported by the entry point index.d.ts // // (undocumented) - static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; } // @public diff --git a/projects/angular/src/modal/index.ts b/projects/angular/src/modal/index.ts index 8f8c816d4a..de16cfd4fc 100644 --- a/projects/angular/src/modal/index.ts +++ b/projects/angular/src/modal/index.ts @@ -8,6 +8,7 @@ export * from './modal'; export * from './modal.module'; export * from './modal-configuration.service'; +export * from './modal-host.directive'; export * from './side-panel.module'; export * from './modal-body'; export * from './side-panel'; diff --git a/projects/angular/src/modal/side-panel.ts b/projects/angular/src/modal/side-panel.ts index c6acc4848c..8a32b9fea6 100644 --- a/projects/angular/src/modal/side-panel.ts +++ b/projects/angular/src/modal/side-panel.ts @@ -32,7 +32,7 @@ export class ClrSidePanel implements OnInit, AfterViewInit { @Output('clrSidePanelOpenChange') openChange = new EventEmitter(false); @Input('clrSidePanelCloseButtonAriaLabel') closeButtonAriaLabel: string | undefined; @Input('clrSidePanelSize') size: string; - @Input('clrSidePanelSkipAnimation') skipAnimation = 'false'; + @Input('clrSidePanelSkipAnimation') skipAnimation = false; @Input('clrSidePanelLabelledById') labelledById: string; @Input('clrSidePanelStaticBackdrop') staticBackdrop = false; @Input('clrSidePanelPreventClose') preventClose = false; diff --git a/projects/angular/src/wizard/wizard.ts b/projects/angular/src/wizard/wizard.ts index 69eb4a8981..6fe65fff46 100644 --- a/projects/angular/src/wizard/wizard.ts +++ b/projects/angular/src/wizard/wizard.ts @@ -263,8 +263,8 @@ export class ClrWizard implements OnDestroy, AfterContentInit, DoCheck { return this.elementRef.nativeElement.classList.contains('clr-wizard--inline'); } - get stopModalAnimations(): string { - return this._stopModalAnimations ? 'true' : 'false'; + get stopModalAnimations(): boolean { + return this._stopModalAnimations; } ngAfterContentInit(): void {