Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rfrt committed Aug 5, 2024
1 parent 87e439e commit 1ed67b6
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 16 deletions.
22 changes: 11 additions & 11 deletions projects/demo-app/src/app/status/status-demo.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface NgxTooltipModel {
card?: {
title?: string;
description?: string;
}
};
text?: string;
}
@Component({
Expand All @@ -42,60 +42,60 @@ export class StatusDemoComponent {
protected status4!: NgxStatus;

protected tabIndex = 1;

public constructor() {
this.status1 = {
title: "Mon titre de status",
title: 'Mon titre de status',
type: 'info',
text: 'Attention, voici mon texte',
technicalText: 'Ici mon texte technique',
date: new Date(),
duration: 5000,
className: 'maClassCss',
actions: [
{
{
label: 'Action 1',
callback: (): void => {
callback: (): void => {
console.log('Resultat Action 1');
return;
}
}
]
};
this.status2 = {
title: "Mon titre de status",
title: 'Mon titre de status',
type: 'warn',
text: 'Attention, voici mon texte',
technicalText: 'Ici mon texte technique',
date: new Date(),
duration: 5000,
className: 'maClassCss',
actions: [
{
{
label: 'Action 2',
callback: (): void => {
callback: (): void => {
console.log('Resultat Action 2');
return;
}
}
]
};
this.status3 = {
title: "Mon titre de status",
title: 'Mon titre de status',
type: 'danger',
technicalText: 'Ici mon texte technique',
date: new Date(),
duration: 5000,
className: 'customCssClass'
};
this.status4 = {
title: "Status rose",
title: 'Status rose',
type: 'danger',
date: new Date(),
duration: 5000,
className: 'maClassCssCouleurRose',
actions: [
{
{
label: 'Action 3',
callback: (): void => {
console.log('Resultat Action 3');
Expand Down
7 changes: 4 additions & 3 deletions projects/demo-app/src/app/tooltip/tooltip-demo.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { MatTabsModule } from '@angular/material/tabs';
import { MatToolbarModule } from '@angular/material/toolbar';
import { NgxTooltipDirective } from '@hug/ngx-tooltip';
import { Observable } from 'rxjs';

import { TooltipElementDemoService } from './tooltip-element-demo.service';

@Component({
Expand Down Expand Up @@ -43,15 +44,15 @@ export class TooltipDemoComponent {
protected complexeTooltip$(): (element: HTMLElement) => Observable<void> {
return (element: HTMLElement): Observable<void> => this.tooltipService.open$(element, {
card: {
title: "Titre de ce tooltip",
description: "At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat."
title: 'Titre de ce tooltip',
description: 'At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.'
}
});
}

protected simpleTooltip$(): (element: HTMLElement) => Observable<void> {
return (element: HTMLElement): Observable<void> => this.tooltipService.open$(element, {
text: "Ceci est un tooltip simple"
text: 'Ceci est un tooltip simple'
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface NgxTooltipModel {
card?: {
title?: string;
description?: string;
}
};
text?: string;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { MatCardModule } from '@angular/material/card';
import { NgxAbstractLazyModule } from '@hug/ngx-core';

import { TooltipElementDemoComponent } from './tooltip-element-demo.component';
import { MatCardModule } from '@angular/material/card';

@NgModule({
declarations: [TooltipElementDemoComponent],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Injectable, Type } from '@angular/core';
import { MatDialog, MatDialogConfig } from '@angular/material/dialog';
import { NgxAbstractLazyModule, NgxLazyLoaderService } from '@hug/ngx-core';
import { NgxTooltipComponentInterface, NgxTooltipService } from '@hug/ngx-tooltip';

import { NgxTooltipModel } from './tooltip-element-demo.component';

@Injectable({
Expand Down

0 comments on commit 1ed67b6

Please sign in to comment.