Skip to content

Commit

Permalink
refactor: use bootstrap-italia types for attribute with any type
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoninoBonanno committed Feb 23, 2023
1 parent 78db693 commit 6eb88d7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="it-carousel-wrapper splide {{typeClass}}"
<div #carousel class="it-carousel-wrapper splide {{typeClass}}"
[class.it-full-carousel]="isFullCarousel"
[class.it-big-img]="isBigImg"
data-bs-carousel-splide #carousel>
data-bs-carousel-splide>

<div class="it-header-block" *ngIf="title">
<div class="it-header-block-title">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { AfterViewInit, Component, ContentChildren, ElementRef, Input, QueryList
import { CarouselType } from '../../../../interfaces/core';
import { BooleanInput, isTrueBooleanInput } from '../../../../utils/boolean-input';
import { CarouselItemComponent } from '../carousel-item/carousel-item.component';

import { CarouselBI } from 'bootstrap-italia';

@Component({
Expand Down Expand Up @@ -46,9 +45,10 @@ export class CarouselComponent implements AfterViewInit {

@ContentChildren(CarouselItemComponent) items?: QueryList<CarouselItemComponent>;

@ViewChild('carousel')
private carouselDiv!: ElementRef<HTMLDivElement>;
private carousel?: any;

private carousel?: CarouselBI;

@ViewChild('carousel') private carouselDiv!: ElementRef<HTMLDivElement>;

get typeClass(): string {
const typeClass = 'it-carousel-landscape-abstract';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { AbstractFormComponent } from '../../../abstracts/abstract-form-componen
import { ItValidators } from '../../../validators/it-validators';
import { Observable } from 'rxjs';
import { BooleanInput, isTrueBooleanInput } from '../../../utils/boolean-input';

import { InputPassword } from 'bootstrap-italia';

@Component({
Expand Down Expand Up @@ -58,10 +57,10 @@ export class PasswordInputComponent extends AbstractFormComponent<string> {
*/
@Input() showStrengthMeter?: BooleanInput;

inputPasswordBs?: any;

@ViewChild('input')
private inputElement?: ElementRef<HTMLInputElement>;
inputPasswordBs?: InputPassword;

@ViewChild('input') private inputElement?: ElementRef<HTMLInputElement>;

override ngOnInit() {
super.ngOnInit();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ export class UploadDragDropComponent extends AbstractComponent {
isLoading: boolean = false;
isSuccess: boolean = false;

donut?: any;
donut?: ProgressDonut;

@ViewChild('donutElement')
private donutElement?: ElementRef<HTMLDivElement>;
@ViewChild('donutElement') private donutElement?: ElementRef<HTMLDivElement>;

filename?: string;
extension?: string;
Expand Down

0 comments on commit 6eb88d7

Please sign in to comment.