From 8b34653c40deae9c089b62843d229acf51405f30 Mon Sep 17 00:00:00 2001 From: Serge Date: Tue, 23 Jul 2024 12:17:46 +0200 Subject: [PATCH] chore(ngx-core): use ngx- selectors chore(ngx-message-box): use ngx- selectors chore(ngx-message-box-dialog): use ngx- selectors chore(ngx-layout): use ngx- selectors chore(ngx-list-loader): use ngx- selectors chore(ngx-numeric-stepper): use ngx- selectors chore(ngx-overlay): use ngx- selectors chore(ngx-search-container): use ngx- selectors chore(ngx-sidenav): use ngx- selectors chore(ngx-snackbar): use ngx- selectors chore(ngx-splitter): use ngx- selectors chore(ngx-status): use ngx- selectors chore(ngx-time-picker): use ngx- selectors chore(ngx-tooltip): use ngx- selectors chore(ngx-user-card): use ngx- selectors chore(ngx-user-tooltip): use ngx- selectors --- projects/core/src/cache.ts | 6 +- projects/core/src/custom-array.module.ts | 2 +- projects/core/src/directives/destroy.ts | 2 +- .../directives/input-autosize.directive.ts | 8 +- .../src/directives/single-click.directive.ts | 6 +- projects/core/src/services/dialog.service.ts | 4 +- .../core/src/services/lazy-loader.service.ts | 2 +- projects/core/src/services/media.service.ts | 12 +-- .../core/src/styles/mixins/_menu-theme.scss | 2 +- projects/core/src/styles/mixins/_menu.scss | 6 +- .../datepicker-buttons.component.html | 6 +- .../datepicker-buttons.component.scss | 6 +- .../datepicker-buttons.component.ts | 10 +-- .../datepicker-mask-validator.service.ts | 2 +- .../datepicker-mask.directive.ts | 12 +-- .../datepicker-with-time.component.html | 4 +- .../datepicker-with-time.component.scss | 10 +-- .../datepicker-with-time.component.ts | 8 +- .../message-box-demo.component.html | 34 ++++----- .../message-box-demo.component.scss | 2 +- .../message-box/message-box-demo.component.ts | 4 +- .../numeric-stepper-demo.component.html | 36 ++++----- .../numeric-stepper-demo.component.ts | 6 +- .../app/overlay/overlay-demo.component.html | 46 +++++------ .../app/overlay/overlay-demo.component.scss | 4 +- .../app/snackbar/snackbar-demo.component.html | 46 +++++------ .../app/splitter/splitter-demo.component.html | 76 +++++++++---------- .../app/splitter/splitter-demo.component.scss | 4 +- .../time-picker-demo.component.html | 18 ++--- .../time-picker-demo.component.scss | 4 +- projects/layout/src/_layout-theme.scss | 4 +- projects/layout/src/layout.component.scss | 2 +- projects/layout/src/layout.component.ts | 8 +- .../list-loader/src/_list-loader-theme.scss | 2 +- .../src/list-loader.component.scss | 2 +- .../list-loader/src/list-loader.component.ts | 2 +- .../src/_message-box-dialog-theme.scss | 4 +- .../src/message-box-dialog.component.scss | 2 +- .../src/message-box-dialog.component.ts | 2 +- .../src/message-box-dialog.service.ts | 4 +- .../message-box/src/_message-box-theme.scss | 2 +- .../src/message-box.component.scss | 2 +- .../message-box/src/message-box.component.ts | 2 +- .../src/_numeric-stepper-theme.scss | 8 +- .../src/numeric-stepper.component.scss | 20 ++--- .../src/numeric-stepper.component.ts | 16 ++-- projects/overlay/src/overlay.component.ts | 6 +- .../src/_search-container-theme.scss | 8 +- .../src/search-container.component.html | 4 +- .../src/search-container.component.scss | 6 +- .../src/search-container.component.ts | 12 +-- projects/sidenav/src/sidenav.service.ts | 4 +- projects/snackbar/src/snackbar.component.ts | 8 +- projects/splitter/src/_splitter-theme.scss | 4 +- projects/splitter/src/split-area.directive.ts | 2 +- projects/splitter/src/splitter.component.html | 2 +- projects/splitter/src/splitter.component.scss | 14 ++-- projects/splitter/src/splitter.component.ts | 6 +- projects/status/src/_status-theme.scss | 14 ++-- .../status-detail-dialog.service.ts | 6 +- .../status-detail.component.html | 4 +- .../status-detail.component.scss | 6 +- .../status-detail/status-detail.component.ts | 2 +- projects/status/src/status.component.html | 4 +- projects/status/src/status.component.scss | 4 +- projects/status/src/status.component.ts | 8 +- projects/status/src/status.service.ts | 6 +- .../src/time-picker.component.html | 4 +- .../src/time-picker.component.scss | 4 +- .../time-picker/src/time-picker.component.ts | 6 +- projects/tooltip/src/tooltip.directive.ts | 20 ++--- projects/tooltip/src/tooltip.service.ts | 14 ++-- projects/user-card/src/_user-card-theme.scss | 2 +- .../user-card/src/user-card.component.html | 6 +- .../user-card/src/user-card.component.scss | 6 +- projects/user-card/src/user-card.component.ts | 2 +- .../src/user-tooltip.component.html | 2 +- .../src/user-tooltip.component.ts | 2 +- .../user-tooltip/src/user-tooltip.service.ts | 4 +- 79 files changed, 336 insertions(+), 336 deletions(-) diff --git a/projects/core/src/cache.ts b/projects/core/src/cache.ts index 132b093c..b3328d16 100644 --- a/projects/core/src/cache.ts +++ b/projects/core/src/cache.ts @@ -1,11 +1,11 @@ import { catchError, Observable, throwError } from 'rxjs'; -export interface CacheEntry { +export interface NgxCacheEntry { timeStamp: number; data$: T; } -export class Cache extends Map> { +export class NgxCache extends Map> { public constructor(public duty = 86400000) { super(); } @@ -44,7 +44,7 @@ export class Cache extends Map> { } } -export class ObservableCache extends Cache, K> { +export class NgxObservableCache extends NgxCache, K> { // eslint-disable-next-line rxjs/finnish public override getCache(key: K, defaultValueFn?: (timeStamp: number) => Observable): Observable { const data$ = super.getCache(key, defaultValueFn); diff --git a/projects/core/src/custom-array.module.ts b/projects/core/src/custom-array.module.ts index 16fb71d9..c37f87a6 100644 --- a/projects/core/src/custom-array.module.ts +++ b/projects/core/src/custom-array.module.ts @@ -20,7 +20,7 @@ declare global { } @NgModule() -export class CustomArrayModule { +export class NgxCustomArrayModule { public constructor() { (Array.prototype as void[]).filterMap = function (this: T[], predicate: (value: T, index: number, _array: T[]) => U | undefined): TruthyTypesOf[] { return this.map(predicate).filter(v => v !== undefined); diff --git a/projects/core/src/directives/destroy.ts b/projects/core/src/directives/destroy.ts index 6ec29b81..8a4b901e 100644 --- a/projects/core/src/directives/destroy.ts +++ b/projects/core/src/directives/destroy.ts @@ -2,7 +2,7 @@ import { Directive, OnDestroy } from '@angular/core'; import { Subject } from 'rxjs'; @Directive() -export class Destroy implements OnDestroy { +export class NgxDestroy implements OnDestroy { protected destroyed$ = new Subject(); public ngOnDestroy(): void { diff --git a/projects/core/src/directives/input-autosize.directive.ts b/projects/core/src/directives/input-autosize.directive.ts index 512fad40..e3942cc6 100644 --- a/projects/core/src/directives/input-autosize.directive.ts +++ b/projects/core/src/directives/input-autosize.directive.ts @@ -2,14 +2,14 @@ import { Directive, ElementRef, inject, NgZone, OnInit } from '@angular/core'; import { MatInput } from '@angular/material/input'; import { debounceTime, fromEvent, mergeWith, of, startWith, takeUntil } from 'rxjs'; -import { Destroy } from './destroy'; +import { NgxDestroy } from './destroy'; @Directive({ - selector: '[inputAutosize][matInput], [inputAutosize] [matInput]', - exportAs: 'inputAutosize', + selector: '[ngx-input-autosize][matInput], [ngx-input-autosize] [matInput]', + exportAs: 'ngx-input-autosize', standalone: true }) -export class InputAutosizeDirective extends Destroy implements OnInit { +export class NgxInputAutosizeDirective extends NgxDestroy implements OnInit { private elementRef = inject>(ElementRef); private ngZone = inject(NgZone); private matInput = inject(MatInput); diff --git a/projects/core/src/directives/single-click.directive.ts b/projects/core/src/directives/single-click.directive.ts index 884f833f..15c23501 100644 --- a/projects/core/src/directives/single-click.directive.ts +++ b/projects/core/src/directives/single-click.directive.ts @@ -2,13 +2,13 @@ import { Directive, EventEmitter, HostListener, Input, OnInit, Output } from '@a import { ReplaySubject } from 'rxjs'; import { takeUntil, throttleTime } from 'rxjs/operators'; -import { Destroy } from './destroy'; +import { NgxDestroy } from './destroy'; @Directive({ - selector: '[singleClick]', + selector: '[ngx-single-click]', standalone: true }) -export class SingleClickDirective extends Destroy implements OnInit { +export class NgxSingleClickDirective extends NgxDestroy implements OnInit { @Input() public throttleTime = 2000; diff --git a/projects/core/src/services/dialog.service.ts b/projects/core/src/services/dialog.service.ts index eb140ed2..f7a426c4 100644 --- a/projects/core/src/services/dialog.service.ts +++ b/projects/core/src/services/dialog.service.ts @@ -2,7 +2,7 @@ import { Type } from '@angular/core'; import { MatDialog, MatDialogConfig, MatDialogRef } from '@angular/material/dialog'; import { Observable, ReplaySubject, switchMap, take, throttleTime } from 'rxjs'; -import { AbstractLazyModule, LazyLoaderService } from './lazy-loader.service'; +import { AbstractLazyModule, NgxLazyLoaderService } from './lazy-loader.service'; export abstract class DialogService { protected openDialogSub$ = new ReplaySubject>(1); @@ -10,7 +10,7 @@ export abstract class DialogService { protected dialogRef!: MatDialogRef; public constructor( - private lazyLoaderService: LazyLoaderService, + private lazyLoaderService: NgxLazyLoaderService, private dialog: MatDialog, matDialogConfig?: MatDialogConfig ) { diff --git a/projects/core/src/services/lazy-loader.service.ts b/projects/core/src/services/lazy-loader.service.ts index e76aff34..3b4195a9 100644 --- a/projects/core/src/services/lazy-loader.service.ts +++ b/projects/core/src/services/lazy-loader.service.ts @@ -16,7 +16,7 @@ export abstract class AbstractLazyModule { @Injectable({ providedIn: 'root' }) -export class LazyLoaderService { +export class NgxLazyLoaderService { public constructor( private injector: Injector ) {} diff --git a/projects/core/src/services/media.service.ts b/projects/core/src/services/media.service.ts index 60d46345..009f700b 100644 --- a/projects/core/src/services/media.service.ts +++ b/projects/core/src/services/media.service.ts @@ -1,13 +1,13 @@ import { Inject, Injectable, InjectionToken, NgZone, OnDestroy, Optional } from '@angular/core'; import { BehaviorSubject, distinctUntilChanged, map, Observable, shareReplay } from 'rxjs'; -export interface MediaQueryDefinition { +export interface NgxMediaQueryDefinition { alias: string; mediaQuery: string; overlapping?: boolean; } -export const mediaQueryDefinitions = new InjectionToken('MEDIA_QUERY_DEFINITIONS'); +export const mediaQueryDefinitions = new InjectionToken('MEDIA_QUERY_DEFINITIONS'); export const defaultMediaQueryDefinitions = [ { @@ -70,7 +70,7 @@ export const defaultMediaQueryDefinitions = [ alias: 'xl', mediaQuery: '(min-width: 1920px) and (max-width: 5000px)' } -] as MediaQueryDefinition[]; +] as NgxMediaQueryDefinition[]; export const simplifiedMediaQueryDefinitions = [ { @@ -86,12 +86,12 @@ export const simplifiedMediaQueryDefinitions = [ alias: 'lg', mediaQuery: '(min-width: 1280px)' } -] as MediaQueryDefinition[]; +] as NgxMediaQueryDefinition[]; @Injectable({ providedIn: 'root' }) -export class MediaService implements OnDestroy { +export class NgxMediaService implements OnDestroy { public readonly isHandset$: Observable; public readonly isMobile$: Observable; public mediaChanged$ = new BehaviorSubject('lg'); @@ -99,7 +99,7 @@ export class MediaService implements OnDestroy { public constructor( private zone: NgZone, - @Optional() @Inject(mediaQueryDefinitions) mediaDefinitions?: MediaQueryDefinition[] + @Optional() @Inject(mediaQueryDefinitions) mediaDefinitions?: NgxMediaQueryDefinition[] ) { if (!mediaDefinitions) { mediaDefinitions = simplifiedMediaQueryDefinitions; diff --git a/projects/core/src/styles/mixins/_menu-theme.scss b/projects/core/src/styles/mixins/_menu-theme.scss index 455161c2..fbabf6c9 100644 --- a/projects/core/src/styles/mixins/_menu-theme.scss +++ b/projects/core/src/styles/mixins/_menu-theme.scss @@ -5,7 +5,7 @@ .ngx-menu, [ngx-menu] { - .menu-content { + .ngx-menu-content { background-color: #fff; border-color: rgba(0, 0, 0, 0.3); diff --git a/projects/core/src/styles/mixins/_menu.scss b/projects/core/src/styles/mixins/_menu.scss index 08d36591..92148937 100644 --- a/projects/core/src/styles/mixins/_menu.scss +++ b/projects/core/src/styles/mixins/_menu.scss @@ -5,7 +5,7 @@ display: flex; flex-direction: column; - .menu-content { + .ngx-menu-content { overflow-x: hidden; overflow-y: auto; display: block; @@ -17,8 +17,8 @@ 0 1px 5px 0 rgba(0, 0, 0, 0.12); height: 100%; - .menu-header, - .menu-footer { + .ngx-menu-header, + .ngx-menu-footer { flex: 0 0 auto; padding: 0.5rem; } diff --git a/projects/date-picker/src/datepicker-buttons/datepicker-buttons.component.html b/projects/date-picker/src/datepicker-buttons/datepicker-buttons.component.html index e2aed2b9..e0662a08 100644 --- a/projects/date-picker/src/datepicker-buttons/datepicker-buttons.component.html +++ b/projects/date-picker/src/datepicker-buttons/datepicker-buttons.component.html @@ -1,9 +1,9 @@ - - - diff --git a/projects/date-picker/src/datepicker-buttons/datepicker-buttons.component.scss b/projects/date-picker/src/datepicker-buttons/datepicker-buttons.component.scss index f77a43bb..cbe6d303 100644 --- a/projects/date-picker/src/datepicker-buttons/datepicker-buttons.component.scss +++ b/projects/date-picker/src/datepicker-buttons/datepicker-buttons.component.scss @@ -1,7 +1,7 @@ -datepicker-buttons { +ngx-datepicker-buttons { font-size: 80%; - .date-picker-button { + .ngx-date-picker-button { max-width: 20px; max-height: 20px; @@ -21,7 +21,7 @@ datepicker-buttons { .mat-form-field.mat-form-field-appearance-legacy { font-size: inherit; - datepicker-buttons { + ngx-datepicker-buttons { .mat-icon-button { font-size: 130%; } diff --git a/projects/date-picker/src/datepicker-buttons/datepicker-buttons.component.ts b/projects/date-picker/src/datepicker-buttons/datepicker-buttons.component.ts index c064616a..5783feb7 100644 --- a/projects/date-picker/src/datepicker-buttons/datepicker-buttons.component.ts +++ b/projects/date-picker/src/datepicker-buttons/datepicker-buttons.component.ts @@ -4,16 +4,16 @@ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, In import { AbstractControl } from '@angular/forms'; import { MatButtonModule } from '@angular/material/button'; import { DateAdapter } from '@angular/material/core'; -import { MatDatepicker, MatDateRangeInput, MatDateRangePicker } from '@angular/material/datepicker'; +import { MatDateRangeInput, MatDateRangePicker, MatDatepicker } from '@angular/material/datepicker'; import { MatFormFieldControl } from '@angular/material/form-field'; import { MatIconModule } from '@angular/material/icon'; import { MatTooltipModule } from '@angular/material/tooltip'; -import { Destroy } from '@hug/ngx-core'; +import { NgxDestroy } from '@hug/ngx-core'; import { set } from 'date-fns'; -import { filter, ReplaySubject, switchMap, takeUntil, tap } from 'rxjs'; +import { ReplaySubject, filter, switchMap, takeUntil, tap } from 'rxjs'; @Component({ - selector: 'datepicker-buttons', + selector: 'ngx-datepicker-buttons', templateUrl: './datepicker-buttons.component.html', styleUrls: ['./datepicker-buttons.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush, @@ -26,7 +26,7 @@ import { filter, ReplaySubject, switchMap, takeUntil, tap } from 'rxjs'; MatTooltipModule ] }) -export class DatepickerButtonsComponent extends Destroy implements OnInit { +export class NgxDatepickerButtonsComponent extends NgxDestroy implements OnInit { @Output() public readonly dateChange = new EventEmitter(); @Input() public forInput!: MatFormFieldControl; diff --git a/projects/date-picker/src/datepicker-mask/datepicker-mask-validator.service.ts b/projects/date-picker/src/datepicker-mask/datepicker-mask-validator.service.ts index e2483d11..a6ccbd0b 100644 --- a/projects/date-picker/src/datepicker-mask/datepicker-mask-validator.service.ts +++ b/projects/date-picker/src/datepicker-mask/datepicker-mask-validator.service.ts @@ -3,7 +3,7 @@ import { FormControl, ValidationErrors, Validator } from '@angular/forms'; import { isValid } from 'date-fns'; @Injectable() -export class DatepickerMaskValidatorService implements Validator { +export class NgxDatepickerMaskValidatorService implements Validator { private invalid = false; public validate({ value }: FormControl): ValidationErrors | null { diff --git a/projects/date-picker/src/datepicker-mask/datepicker-mask.directive.ts b/projects/date-picker/src/datepicker-mask/datepicker-mask.directive.ts index fb3aba07..71c7fa63 100644 --- a/projects/date-picker/src/datepicker-mask/datepicker-mask.directive.ts +++ b/projects/date-picker/src/datepicker-mask/datepicker-mask.directive.ts @@ -2,26 +2,26 @@ import { Directive, ElementRef, forwardRef, Inject, Input, OnInit, Optional, Renderer2 } from '@angular/core'; import { AbstractControl, NG_VALIDATORS, NgControl } from '@angular/forms'; import { DateAdapter, MAT_DATE_FORMATS, MatDateFormats } from '@angular/material/core'; -import { Destroy, filterMap, KeyCodes, subscribeWith } from '@hug/ngx-core'; +import { filterMap, KeyCodes, NgxDestroy, subscribeWith } from '@hug/ngx-core'; import { addDays, addHours, addMinutes, addMonths, addSeconds, addYears, isValid, parse, set } from 'date-fns'; import { isNil } from 'lodash-es'; import { delay, EMPTY, filter, fromEvent, mergeWith, of, startWith, switchMap, takeUntil, tap, timeInterval } from 'rxjs'; -import { DatepickerMaskValidatorService } from './datepicker-mask-validator.service'; +import { NgxDatepickerMaskValidatorService } from './datepicker-mask-validator.service'; @Directive({ selector: '[matDatepicker][dateFormat],[matDatepicker][dateTimeFormat],[matStartDate][dateFormat],[matEndDate][dateFormat],[matStartDate][dateTimeFormat],[matEndDate][dateTimeFormat]', providers: [ - DatepickerMaskValidatorService, + NgxDatepickerMaskValidatorService, { provide: NG_VALIDATORS, - useExisting: forwardRef(() => DatepickerMaskValidatorService), + useExisting: forwardRef(() => NgxDatepickerMaskValidatorService), multi: true } ] }) -export class DatepickerMaskDirective extends Destroy implements OnInit { +export class NgxDatepickerMaskDirective extends NgxDestroy implements OnInit { // eslint-disable-next-line @angular-eslint/no-input-rename @Input('dateTimeFormat') public set dateTimeFormat(value: string) { @@ -57,7 +57,7 @@ export class DatepickerMaskDirective extends Destroy implements OnInit { private elementRef: ElementRef, private ngControl: NgControl, private renderer: Renderer2, - private validator: DatepickerMaskValidatorService, + private validator: NgxDatepickerMaskValidatorService, private dateAdapter: DateAdapter ) { super(); diff --git a/projects/date-picker/src/datepicker-with-time/datepicker-with-time.component.html b/projects/date-picker/src/datepicker-with-time/datepicker-with-time.component.html index 37c529c1..7ae3382b 100644 --- a/projects/date-picker/src/datepicker-with-time/datepicker-with-time.component.html +++ b/projects/date-picker/src/datepicker-with-time/datepicker-with-time.component.html @@ -1,6 +1,6 @@ - -
+ +
diff --git a/projects/date-picker/src/datepicker-with-time/datepicker-with-time.component.scss b/projects/date-picker/src/datepicker-with-time/datepicker-with-time.component.scss index 75160528..545b6a76 100644 --- a/projects/date-picker/src/datepicker-with-time/datepicker-with-time.component.scss +++ b/projects/date-picker/src/datepicker-with-time/datepicker-with-time.component.scss @@ -1,16 +1,16 @@ -deja-time-picker.datepicker-with-time { +ngx-time-picker.ngx-datepicker-with-time { .time-range { display: flex; align-items: center; - .time-picker-separator { + .ngx-time-picker-separator { text-align: center; margin: 0 0.5rem; } } } -.datepicker-with-time.action-buttons { +.ngx-datepicker-with-time.action-buttons { padding: 1.5rem 0 1rem 0; display: flex; justify-content: center; @@ -30,11 +30,11 @@ deja-time-picker.datepicker-with-time { } .mat-calendar, - deja-time-picker.datepicker-with-time { + ngx-time-picker.ngx-datepicker-with-time { flex: 0 0 auto; } - .datepicker-with-time.action-buttons { + .ngx-datepicker-with-time.action-buttons { flex: 1 0 100%; padding: 0 0 1rem 0; } diff --git a/projects/date-picker/src/datepicker-with-time/datepicker-with-time.component.ts b/projects/date-picker/src/datepicker-with-time/datepicker-with-time.component.ts index 0cdd9b55..c9fc4410 100644 --- a/projects/date-picker/src/datepicker-with-time/datepicker-with-time.component.ts +++ b/projects/date-picker/src/datepicker-with-time/datepicker-with-time.component.ts @@ -2,8 +2,8 @@ import { TemplatePortal } from '@angular/cdk/portal'; import { AfterViewInit, ChangeDetectionStrategy, Component, ElementRef, Inject, OnDestroy, Optional, TemplateRef, ViewChild, ViewContainerRef, ViewEncapsulation } from '@angular/core'; import { MatButtonModule } from '@angular/material/button'; import { DateAdapter } from '@angular/material/core'; -import { MatDatepicker, MatDatepickerInput, MatDateSelectionModel } from '@angular/material/datepicker'; -import { Destroy } from '@hug/ngx-core'; +import { MatDateSelectionModel, MatDatepicker, MatDatepickerInput } from '@angular/material/datepicker'; +import { NgxDestroy } from '@hug/ngx-core'; import { DateOrDuration, TimePickerComponent } from '@hug/ngx-time-picker'; import { cloneDeep } from 'lodash-es'; import { delay, filter, map, takeUntil, tap } from 'rxjs'; @@ -12,7 +12,7 @@ import { DATE_TIME_ADAPTER, DateTimeAdapter } from '../date-adapter/date-time-ad @Component({ - selector: 'datepicker-with-time', + selector: 'ngx-datepicker-with-time', templateUrl: './datepicker-with-time.component.html', styleUrls: ['./datepicker-with-time.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush, @@ -23,7 +23,7 @@ import { DATE_TIME_ADAPTER, DateTimeAdapter } from '../date-adapter/date-time-ad TimePickerComponent ] }) -export class DatepickerWithTimeComponent extends Destroy implements AfterViewInit, OnDestroy { +export class NgxDatepickerWithTimeComponent extends NgxDestroy implements AfterViewInit, OnDestroy { @ViewChild(TemplateRef) private template?: TemplateRef; diff --git a/projects/demo-app/src/app/message-box/message-box-demo.component.html b/projects/demo-app/src/app/message-box/message-box-demo.component.html index 45749231..5398af5b 100644 --- a/projects/demo-app/src/app/message-box/message-box-demo.component.html +++ b/projects/demo-app/src/app/message-box/message-box-demo.component.html @@ -11,33 +11,33 @@ MessageBox - + Du texte dans la message box - + - + Du texte dans la message box - + - + Un message "warn" horizontal avec titre - + - + Un message "info" horizontal - + - + Un message "warn" horizontal - + - + Un message "danger" horizontal avec une action au format template @@ -46,14 +46,14 @@ clear - + - Un message horizontal sans type ni titre + Un message horizontal sans type ni titre - Un message horizontal sans type ni titre - Un message horizontal sans type ni titre - Un message horizontal sans type ni titre - Un message horizontal sans type ni titre + Un message horizontal sans type ni titre + Un message horizontal sans type ni titre + Un message horizontal sans type ni titre + Un message horizontal sans type ni titre diff --git a/projects/demo-app/src/app/message-box/message-box-demo.component.scss b/projects/demo-app/src/app/message-box/message-box-demo.component.scss index 5427390b..559ea269 100644 --- a/projects/demo-app/src/app/message-box/message-box-demo.component.scss +++ b/projects/demo-app/src/app/message-box/message-box-demo.component.scss @@ -1,5 +1,5 @@ :host { - message-box { + ngx-message-box { margin-bottom: 1rem; } } diff --git a/projects/demo-app/src/app/message-box/message-box-demo.component.ts b/projects/demo-app/src/app/message-box/message-box-demo.component.ts index f0ea203f..e3213c25 100644 --- a/projects/demo-app/src/app/message-box/message-box-demo.component.ts +++ b/projects/demo-app/src/app/message-box/message-box-demo.component.ts @@ -5,7 +5,7 @@ import { MatCardModule } from '@angular/material/card'; import { MatIconModule } from '@angular/material/icon'; import { MatTabsModule } from '@angular/material/tabs'; import { MatToolbarModule } from '@angular/material/toolbar'; -import { Destroy } from '@hug/ngx-core'; +import { NgxDestroy } from '@hug/ngx-core'; import { MessageBoxAction, MessageBoxComponent } from '@hug/ngx-message-box'; import { MessageBoxDialogButtons, MessageBoxDialogService } from '@hug/ngx-message-box-dialog'; import { Subject, switchMap, takeUntil } from 'rxjs'; @@ -26,7 +26,7 @@ import { Subject, switchMap, takeUntil } from 'rxjs'; NgIf ] }) -export class MessageBoxDemoComponent extends Destroy { +export class MessageBoxDemoComponent extends NgxDestroy { protected tabIndex = 1; protected closeAction = [ diff --git a/projects/demo-app/src/app/numeric-stepper/numeric-stepper-demo.component.html b/projects/demo-app/src/app/numeric-stepper/numeric-stepper-demo.component.html index 84253ce6..76abd030 100644 --- a/projects/demo-app/src/app/numeric-stepper/numeric-stepper-demo.component.html +++ b/projects/demo-app/src/app/numeric-stepper/numeric-stepper-demo.component.html @@ -4,40 +4,40 @@ - +
Numeric Stepper in Material Form Field with different appearances -
+
Outline cm - +
Legacy - +
Standard - +
Fill - +
@@ -48,7 +48,7 @@
Outline appearance - + cm {{ error }} @@ -58,7 +58,7 @@ Legacy - + {{ error }} @@ -66,7 +66,7 @@
Standard - + {{ error }} @@ -74,7 +74,7 @@
min/max with disabled arrows - + {{ error }} @@ -88,7 +88,7 @@
Outline appearance - + cm {{ error }} @@ -97,7 +97,7 @@
Legacy - + {{ error }} @@ -105,7 +105,7 @@
Standard - + {{ error }} @@ -113,7 +113,7 @@
Fill - + {{ error }} @@ -126,7 +126,7 @@
Outline - + cm {{ error }} @@ -135,7 +135,7 @@
Legacy - + {{ error }} @@ -143,7 +143,7 @@
Standard - + {{ error }} @@ -151,7 +151,7 @@
Fill - + {{ error }} diff --git a/projects/demo-app/src/app/numeric-stepper/numeric-stepper-demo.component.ts b/projects/demo-app/src/app/numeric-stepper/numeric-stepper-demo.component.ts index 9cfb77f1..4485ea37 100644 --- a/projects/demo-app/src/app/numeric-stepper/numeric-stepper-demo.component.ts +++ b/projects/demo-app/src/app/numeric-stepper/numeric-stepper-demo.component.ts @@ -6,9 +6,9 @@ import { MatFormFieldModule } from '@angular/material/form-field'; import { MatInputModule } from '@angular/material/input'; import { MatTabsModule } from '@angular/material/tabs'; import { MatToolbarModule } from '@angular/material/toolbar'; -import { Destroy } from '@hug/ngx-core'; +import { NgxDestroy } from '@hug/ngx-core'; import { NumericStepperComponent } from '@hug/ngx-numeric-stepper'; -import { debounceTime, distinctUntilChanged, map, Subject, takeUntil } from 'rxjs'; +import { Subject, debounceTime, distinctUntilChanged, map, takeUntil } from 'rxjs'; interface NumberFormControls { numberValue3: FormControl; @@ -46,7 +46,7 @@ const numberValidator = (control: AbstractControl): string[] | null => { DecimalPipe ] }) -export class NumericStepperDemoComponent extends Destroy { +export class NumericStepperDemoComponent extends NgxDestroy { protected tabIndex = 1; protected value1 = 90; diff --git a/projects/demo-app/src/app/overlay/overlay-demo.component.html b/projects/demo-app/src/app/overlay/overlay-demo.component.html index bc42e7ad..8c48ad96 100644 --- a/projects/demo-app/src/app/overlay/overlay-demo.component.html +++ b/projects/demo-app/src/app/overlay/overlay-demo.component.html @@ -6,45 +6,45 @@ TODO
- -