@kolektor/nucleus-material 0.0.12-pre.7931 → 0.1.130-pre.1

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.
Files changed (66) hide show
  1. package/README.md +7 -0
  2. package/esm2022/index.mjs +24 -0
  3. package/esm2022/kolektor-nucleus-material.mjs +5 -0
  4. package/esm2022/lib/dialog/dialog.component.mjs +22 -0
  5. package/esm2022/lib/dialog/dialog.module.mjs +19 -0
  6. package/esm2022/lib/dialog/dialog.service.mjs +45 -0
  7. package/esm2022/lib/dialog/models.mjs +10 -0
  8. package/esm2022/lib/loaded-content/loaded-content-component.mjs +72 -0
  9. package/esm2022/lib/loaded-content/loaded-content-directive.mjs +78 -0
  10. package/esm2022/lib/loaded-content/loaded-content-module.mjs +33 -0
  11. package/esm2022/lib/loaded-content/loading-state.mjs +105 -0
  12. package/esm2022/lib/snackbar/models.mjs +9 -0
  13. package/esm2022/lib/snackbar/progress-snackbar/progress-snackbar.component.mjs +31 -0
  14. package/esm2022/lib/snackbar/snackbar.module.mjs +20 -0
  15. package/esm2022/lib/snackbar/snackbar.service.mjs +51 -0
  16. package/esm2022/lib/swipe-tabs/swipe-tabs-directive.mjs +58 -0
  17. package/esm2022/lib/swipe-tabs/swipe-tabs-module.mjs +18 -0
  18. package/esm2022/lib/user-avatar/user-avatar-component.mjs +52 -0
  19. package/esm2022/lib/user-avatar/user-avatar-module.mjs +18 -0
  20. package/fesm2022/kolektor-nucleus-material.mjs +598 -0
  21. package/fesm2022/kolektor-nucleus-material.mjs.map +1 -0
  22. package/index.d.ts +17 -5
  23. package/lib/dialog/dialog.component.d.ts +10 -10
  24. package/lib/dialog/dialog.module.d.ts +10 -10
  25. package/lib/dialog/dialog.service.d.ts +17 -17
  26. package/lib/dialog/models.d.ts +24 -24
  27. package/lib/loaded-content/loaded-content-component.d.ts +22 -22
  28. package/lib/loaded-content/loaded-content-directive.d.ts +23 -23
  29. package/lib/loaded-content/loaded-content-module.d.ts +12 -12
  30. package/lib/loaded-content/loading-state.d.ts +32 -32
  31. package/lib/snackbar/models.d.ts +7 -7
  32. package/lib/snackbar/progress-snackbar/progress-snackbar.component.d.ts +10 -10
  33. package/lib/snackbar/snackbar.module.d.ts +10 -10
  34. package/lib/snackbar/snackbar.service.d.ts +13 -13
  35. package/lib/swipe-tabs/swipe-tabs-directive.d.ts +11 -11
  36. package/lib/swipe-tabs/swipe-tabs-module.d.ts +8 -8
  37. package/lib/user-avatar/user-avatar-component.d.ts +13 -14
  38. package/lib/user-avatar/user-avatar-module.d.ts +8 -8
  39. package/package.json +24 -29
  40. package/esm2020/kolektor-nucleus-material.mjs +0 -5
  41. package/esm2020/lib/dialog/dialog.component.mjs +0 -22
  42. package/esm2020/lib/dialog/dialog.module.mjs +0 -29
  43. package/esm2020/lib/dialog/dialog.service.mjs +0 -40
  44. package/esm2020/lib/dialog/models.mjs +0 -10
  45. package/esm2020/lib/loaded-content/loaded-content-component.mjs +0 -71
  46. package/esm2020/lib/loaded-content/loaded-content-directive.mjs +0 -79
  47. package/esm2020/lib/loaded-content/loaded-content-module.mjs +0 -39
  48. package/esm2020/lib/loaded-content/loading-state.mjs +0 -107
  49. package/esm2020/lib/native-styling/models.mjs +0 -9
  50. package/esm2020/lib/native-styling/native-styling.service.mjs +0 -67
  51. package/esm2020/lib/snackbar/models.mjs +0 -9
  52. package/esm2020/lib/snackbar/progress-snackbar/progress-snackbar.component.mjs +0 -29
  53. package/esm2020/lib/snackbar/snackbar.module.mjs +0 -33
  54. package/esm2020/lib/snackbar/snackbar.service.mjs +0 -50
  55. package/esm2020/lib/swipe-tabs/swipe-tabs-directive.mjs +0 -54
  56. package/esm2020/lib/swipe-tabs/swipe-tabs-module.mjs +0 -24
  57. package/esm2020/lib/user-avatar/user-avatar-component.mjs +0 -50
  58. package/esm2020/lib/user-avatar/user-avatar-module.mjs +0 -24
  59. package/esm2020/public-api.mjs +0 -30
  60. package/fesm2015/kolektor-nucleus-material.mjs +0 -712
  61. package/fesm2015/kolektor-nucleus-material.mjs.map +0 -1
  62. package/fesm2020/kolektor-nucleus-material.mjs +0 -704
  63. package/fesm2020/kolektor-nucleus-material.mjs.map +0 -1
  64. package/lib/native-styling/models.d.ts +0 -7
  65. package/lib/native-styling/native-styling.service.d.ts +0 -14
  66. package/public-api.d.ts +0 -19
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kolektor-nucleus-material.mjs","sources":["../../../../../../libs/ng/nucleus/nucleus-material/src/lib/dialog/dialog.component.ts","../../../../../../libs/ng/nucleus/nucleus-material/src/lib/dialog/dialog.component.html","../../../../../../libs/ng/nucleus/nucleus-material/src/lib/dialog/dialog.service.ts","../../../../../../libs/ng/nucleus/nucleus-material/src/lib/dialog/dialog.module.ts","../../../../../../libs/ng/nucleus/nucleus-material/src/lib/dialog/models.ts","../../../../../../libs/ng/nucleus/nucleus-material/src/lib/loaded-content/loading-state.ts","../../../../../../libs/ng/nucleus/nucleus-material/src/lib/loaded-content/loaded-content-component.ts","../../../../../../libs/ng/nucleus/nucleus-material/src/lib/loaded-content/loaded-content-component.html","../../../../../../libs/ng/nucleus/nucleus-material/src/lib/loaded-content/loaded-content-directive.ts","../../../../../../libs/ng/nucleus/nucleus-material/src/lib/loaded-content/loaded-content-module.ts","../../../../../../libs/ng/nucleus/nucleus-material/src/lib/swipe-tabs/swipe-tabs-directive.ts","../../../../../../libs/ng/nucleus/nucleus-material/src/lib/swipe-tabs/swipe-tabs-module.ts","../../../../../../libs/ng/nucleus/nucleus-material/src/lib/snackbar/models.ts","../../../../../../libs/ng/nucleus/nucleus-material/src/lib/snackbar/progress-snackbar/progress-snackbar.component.ts","../../../../../../libs/ng/nucleus/nucleus-material/src/lib/snackbar/progress-snackbar/progress-snackbar.component.html","../../../../../../libs/ng/nucleus/nucleus-material/src/lib/snackbar/snackbar.service.ts","../../../../../../libs/ng/nucleus/nucleus-material/src/lib/snackbar/snackbar.module.ts","../../../../../../libs/ng/nucleus/nucleus-material/src/lib/user-avatar/user-avatar-component.ts","../../../../../../libs/ng/nucleus/nucleus-material/src/lib/user-avatar/user-avatar-component.html","../../../../../../libs/ng/nucleus/nucleus-material/src/lib/user-avatar/user-avatar-module.ts","../../../../../../libs/ng/nucleus/nucleus-material/src/index.ts","../../../../../../libs/ng/nucleus/nucleus-material/src/kolektor-nucleus-material.ts"],"sourcesContent":["import { Component, Inject } from '@angular/core';\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { NucDialogData } from './models';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'nuc-dialog',\n templateUrl: './dialog.component.html',\n styleUrls: ['./dialog.component.scss'],\n})\nexport class NucDialogComponent {\n constructor(\n public dialogRef: MatDialogRef<NucDialogComponent>,\n @Inject(MAT_DIALOG_DATA) public dialogData: NucDialogData\n ) {}\n}\n","<ng-container *ngIf=\"dialogData\">\n <h2 mat-dialog-title *ngIf=\"dialogData.title\">\n {{ dialogData.title }}\n </h2>\n <mat-dialog-content>{{ dialogData.message }}</mat-dialog-content>\n <mat-dialog-actions>\n <ng-container *ngFor=\"let action of dialogData.actions\">\n <button\n color=\"{{ action.color || 'primary' }}\"\n *ngIf=\"action.value === undefined\"\n mat-button\n mat-dialog-close\n >\n {{ action.text }}\n </button>\n <button\n color=\"{{ action.color || 'primary' }}\"\n *ngIf=\"action.value !== undefined\"\n mat-button\n [mat-dialog-close]=\"action.value\"\n >\n {{ action.text }}\n </button>\n </ng-container>\n </mat-dialog-actions>\n</ng-container>\n","import { Injectable } from '@angular/core';\nimport { MatDialog, MatDialogConfig } from '@angular/material/dialog';\nimport { NucDialogData } from './models';\nimport { NucDialogComponent } from './dialog.component';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class NucDialogService {\n constructor(private _matDialog: MatDialog) {}\n\n /**\n * Opens a NucDialog with content from dialogData.\n *\n * @param dialogData NucDialogData containing title, message and possible actions.\n * @param dialogConfig Extra configuration options. Data property is ignored, since it will be set to dialogData.\n * @returns a promise with value that was specified inside pressed Nucleus action.\n */\n public async open(\n dialogData: NucDialogData,\n dialogConfig?: MatDialogConfig\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ): Promise<any> {\n if (dialogData.actions && dialogData.actions.length > 0) {\n if (dialogConfig) {\n dialogConfig.data = dialogData;\n } else {\n dialogConfig = { data: dialogData };\n }\n return await this._matDialog\n .open(NucDialogComponent, dialogConfig)\n .beforeClosed()\n .toPromise();\n } else {\n console.error(\n 'Nucleus.AppCore: NucDialogData requires at least one action.'\n );\n }\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { NucDialogComponent } from './dialog.component';\n\n@NgModule({\n declarations: [NucDialogComponent],\n imports: [CommonModule, MatDialogModule, MatButtonModule],\n})\nexport class NucDialogModule {}\n","export interface NucDialogData {\n /** Optional title for the dialog. */\n title?: string;\n /** Message for the dialog. */\n message: string;\n /** Action(s) (buttons) for the dialog. At least one is required. */\n actions: NucAction[];\n}\n\nexport interface NucAction {\n /** Text for the action (button). */\n text: string;\n /** Return value for the action (button). */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n value?: any;\n /** Optional color of the action (button). */\n color?: NucColor;\n}\n\nexport enum NucColor {\n /** Primary color of the theme. */\n primary = 'primary',\n /** Accent color of the theme. */\n accent = 'accent',\n /** Warning color of the theme. */\n warn = 'warn',\n}\n","import { Observable, Subscription } from 'rxjs';\nimport { tap } from 'rxjs/operators';\nimport { HttpErrorResponse } from '@angular/common/http';\n\nexport enum LoadingStatus {\n completed,\n inProgress,\n failed,\n undefined,\n}\n\nexport class LoadingState {\n private _status: LoadingStatus = LoadingStatus.undefined;\n private _initialMessage: string;\n private _message?: string;\n private _errorDetails?: string;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private _resultFunction?: (result: any) => void;\n private _errorFunction?: (error: HttpErrorResponse) => void;\n private _completeFunction?: () => void;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private _loadObservable: Observable<any>;\n private _lastSubscription: Subscription;\n\n get status(): LoadingStatus {\n return this._status;\n }\n\n get message() {\n return this._message;\n }\n\n get errorDetails() {\n return this._errorDetails;\n }\n\n public load<T>(\n observable: Observable<T>,\n resultFunction?: (result: T) => void,\n errorFunction?: (error: HttpErrorResponse) => void,\n completeFunction?: () => void\n ) {\n return this._load(\n true,\n undefined,\n observable,\n resultFunction,\n errorFunction,\n completeFunction\n );\n }\n\n public loadWithMessage<T>(\n observable: Observable<T>,\n message: string,\n resultFunction?: (result: T) => void,\n errorFunction?: (error: HttpErrorResponse) => void,\n completeFunction?: () => void\n ): Subscription {\n this._initialMessage = message;\n return this._load(\n true,\n message,\n observable,\n resultFunction,\n errorFunction,\n completeFunction\n );\n }\n\n public invoke<T>(\n observable: Observable<T>,\n resultFunction?: (result: T) => void,\n errorFunction?: (error: HttpErrorResponse) => void,\n completeFunction?: () => void\n ): Subscription {\n return this._load(\n false,\n undefined,\n observable,\n resultFunction,\n errorFunction,\n completeFunction\n );\n }\n\n public invokeWithMessage<T>(\n observable: Observable<T>,\n message: string,\n resultFunction?: (result: T) => void,\n errorFunction?: (error: HttpErrorResponse) => void,\n completeFunction?: () => void\n ): Subscription {\n this._initialMessage = message;\n return this._load(\n false,\n message,\n observable,\n resultFunction,\n errorFunction,\n completeFunction\n );\n }\n\n public retry() {\n if (this._lastSubscription) {\n this._lastSubscription.unsubscribe();\n }\n this.setInProgress(this._initialMessage);\n this._lastSubscription = this._loadObservable.subscribe({\n next: this._resultFunction,\n error: this._errorFunction,\n complete: this._completeFunction,\n });\n return this._lastSubscription;\n }\n\n public setInProgress(message?: string) {\n this._status = LoadingStatus.inProgress;\n this._message = message;\n }\n\n public setCompleted() {\n this._status = LoadingStatus.completed;\n }\n\n public setFailed(message?: string, error?: string) {\n this._status = LoadingStatus.failed;\n this._message = message;\n this._errorDetails = error;\n }\n\n private _load<T>(\n saveAsLoadObservable: boolean,\n progressMessage: string | undefined,\n observable: Observable<T>,\n resultFunction?: (result: T) => void,\n errorFunction?: (error: HttpErrorResponse) => void,\n completeFunction?: () => void\n ): Subscription {\n if (this._lastSubscription) {\n this._lastSubscription.unsubscribe();\n }\n\n this.setInProgress(progressMessage);\n const obs = observable.pipe(\n tap({\n next: () => {\n if (!saveAsLoadObservable && this.message) {\n // if message was used one time we clear it\n this._message = undefined;\n }\n this.setCompleted();\n },\n error: (err) => {\n this.setFailed(undefined, LoadingState.getErrorDetails(err));\n },\n })\n );\n\n if (saveAsLoadObservable) {\n this._loadObservable = obs;\n this._resultFunction = resultFunction;\n this._errorFunction = errorFunction;\n this._completeFunction = completeFunction;\n }\n\n this._lastSubscription = obs.subscribe({\n next: resultFunction,\n error: errorFunction,\n complete: completeFunction,\n });\n return this._lastSubscription;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n public static getErrorDetails(error: any) {\n // this routine tries to get the best error details from:\n // - standard rfc7807 http error: https://datatracker.ietf.org/doc/html/rfc7807\n // - angular HttpError\n // - JS Error object\n\n const problem = error?.error;\n if (problem?.title && problem?.detail) {\n return `${problem.title}: ${problem.detail}`;\n } else {\n return problem?.title || problem?.detail || error.message || error;\n }\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { Component, Input, TemplateRef } from '@angular/core';\nimport { LoadingState, LoadingStatus } from './loading-state';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'nuc-loaded-content-component',\n templateUrl: './loaded-content-component.html',\n styleUrls: ['./loaded-content-component.scss'],\n})\nexport class NucLoadedContentComponent {\n private _errorDetailsVisible = false;\n\n @Input()\n completedTemplate: TemplateRef<any>;\n\n @Input()\n errorTemplate: TemplateRef<any>;\n\n @Input()\n inProgressTemplate: TemplateRef<any>;\n\n @Input()\n public state: LoadingState;\n\n @Input()\n public inProgressMessage: string;\n\n @Input()\n public errorMessage = 'We are having trouble loading the data.';\n\n @Input()\n public showRetry = true;\n\n public get message() {\n if (this.state.message != null) {\n return this.state.message;\n } else {\n if (this.state.status === LoadingStatus.failed) {\n return this.errorMessage;\n } else if (this.state.status === LoadingStatus.inProgress) {\n return this.inProgressMessage;\n }\n }\n return null;\n }\n\n public get showRetryButton() {\n return this.showRetry;\n }\n\n public get inProgress() {\n const inProgress = this.state.status === LoadingStatus.inProgress;\n if (inProgress) {\n this._errorDetailsVisible = false;\n }\n return inProgress;\n }\n\n public get failed() {\n return this.state.status === LoadingStatus.failed;\n }\n\n public get completed() {\n return this.state.status === LoadingStatus.completed;\n }\n\n public get errorDetailsVisible() {\n return this._errorDetailsVisible;\n }\n\n public showErrorDetails() {\n this._errorDetailsVisible = true;\n }\n}\n","<ng-container *ngIf=\"completed\">\n <ng-container *ngTemplateOutlet=\"completedTemplate\"></ng-container>\n</ng-container>\n\n<div class=\"indicators-container\" *ngIf=\"inProgress || failed\">\n <ng-container *ngIf=\"inProgress\">\n <ng-container\n *ngTemplateOutlet=\"inProgressTemplate ? inProgressTemplate: defaultInProgressTemplate\"\n ></ng-container>\n </ng-container>\n <ng-container *ngIf=\"failed\">\n <ng-container\n *ngTemplateOutlet=\"errorTemplate ? errorTemplate: defaultErrorTemplate\"\n ></ng-container>\n </ng-container>\n</div>\n\n<ng-template #defaultInProgressTemplate>\n <div class=\"spinner\">\n <mat-spinner [diameter]=\"45\"></mat-spinner>\n </div>\n <p>{{message}}</p>\n</ng-template>\n\n<ng-template #defaultErrorTemplate>\n <div>\n <p class=\"message\">\n <span>{{message}}</span>\n <mat-icon\n *ngIf=\"state.errorDetails && !errorDetailsVisible\"\n class=\"info-button\"\n color=\"warn\"\n (click)=\"showErrorDetails()\"\n >info</mat-icon\n >\n </p>\n\n <p *ngIf=\"errorDetailsVisible\" class=\"error-details mat-small\">\n {{state.errorDetails}}\n </p>\n\n <p *ngIf=\"showRetryButton\">\n <button mat-mini-fab color=\"primary\" (click)=\"state.retry()\">\n <mat-icon>refresh</mat-icon>\n </button>\n </p>\n </div>\n</ng-template>\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport {\n ComponentFactoryResolver,\n ComponentRef,\n Directive,\n Input,\n TemplateRef,\n ViewContainerRef,\n} from '@angular/core';\nimport { NucLoadedContentComponent } from './loaded-content-component';\nimport { LoadingState } from './loading-state';\n\n// eslint-disable-next-line @angular-eslint/directive-selector\n@Directive({ selector: '[nucLoadedContent]' })\nexport class NucLoadedContentDirective {\n private _state: LoadingState;\n private _completedTemplateRef: TemplateRef<any>;\n private _errorTemplateRef: TemplateRef<any> | null = null;\n private _inProgressTemplateRef: TemplateRef<any> | null = null;\n private _component: ComponentRef<NucLoadedContentComponent>;\n\n constructor(\n private _viewContainer: ViewContainerRef,\n private templateRef: TemplateRef<any>,\n private _componentResolver: ComponentFactoryResolver\n ) {\n this._completedTemplateRef = templateRef;\n }\n\n @Input()\n set nucLoadedContent(state: LoadingState) {\n // add some error handling if state is null, etc.\n this._state = state;\n this._updateView();\n }\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('nucLoadedContentError')\n set errorTemplate(templateRef: TemplateRef<any> | null) {\n this._errorTemplateRef = templateRef;\n this._updateView();\n }\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('nucLoadedContentInProgress')\n set inProgressTemplate(templateRef: TemplateRef<any> | null) {\n this._inProgressTemplateRef = templateRef;\n this._updateView();\n }\n\n @Input('nucLoadedContentInProgressMessage')\n set inProgressMessage(inProgressMessage: string) {\n this._component.instance.inProgressMessage = inProgressMessage;\n }\n\n @Input('nucLoadedContentErrorMessage')\n set errorMessage(errorMessage: string) {\n this._component.instance.errorMessage = errorMessage;\n }\n\n @Input('nucLoadedContentShowRetry')\n set showRetry(showRetry: boolean) {\n this._component.instance.showRetry = showRetry;\n }\n\n private _updateView() {\n if (this._component == null) {\n const fac = this._componentResolver.resolveComponentFactory(\n NucLoadedContentComponent\n );\n this._component = this._viewContainer.createComponent(fac);\n }\n\n this._component.instance.state = this._state;\n this._component.instance.completedTemplate = this._completedTemplateRef;\n\n if (this._inProgressTemplateRef) {\n this._component.instance.inProgressTemplate = this._inProgressTemplateRef;\n }\n\n if (this._errorTemplateRef) {\n this._component.instance.errorTemplate = this._errorTemplateRef;\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { NucLoadedContentComponent } from './loaded-content-component';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { CommonModule } from '@angular/common';\nimport { NucLoadedContentDirective } from './loaded-content-directive';\n\n@NgModule({\n declarations: [NucLoadedContentDirective, NucLoadedContentComponent],\n imports: [\n CommonModule,\n MatProgressSpinnerModule,\n MatButtonModule,\n MatIconModule,\n ],\n exports: [NucLoadedContentDirective],\n})\nexport class NucLoadedContentModule {}\n","import { Directive, ElementRef, OnInit } from '@angular/core';\nimport { MatTabGroup } from '@angular/material/tabs';\nimport * as Hammer from 'hammerjs';\n\n// eslint-disable-next-line @angular-eslint/directive-selector\n@Directive({ selector: '[nucSwipe]' })\nexport class NucSwipeTabsDirective implements OnInit {\n constructor(\n private element: ElementRef<EventTarget>,\n private tabGroup: MatTabGroup\n ) {}\n\n ngOnInit() {\n const hammerJs = new Hammer.Manager(this.element.nativeElement, {\n inputClass: Hammer.TouchInput,\n });\n\n hammerJs.add(\n new Hammer.Pan({\n direction: Hammer.DIRECTION_HORIZONTAL,\n threshold: 30,\n })\n );\n\n hammerJs.on('panleft panright', (event) => {\n if (event.isFinal) {\n const tabs = this.tabGroup._tabs.map((x) => x.disabled);\n const currentIndex = this.tabGroup.selectedIndex ?? 0;\n let nextIndex = currentIndex;\n\n if (\n event.type === 'panright' &&\n event.direction === 4 &&\n currentIndex > 0\n ) {\n // if user pans right, go to the left\n for (let i = currentIndex - 1; i >= 0; i--) {\n if (!tabs[i]) {\n nextIndex = i;\n break;\n }\n }\n } else if (\n event.type === 'panleft' &&\n event.direction === 2 &&\n currentIndex < this.tabGroup._tabs.length - 1\n ) {\n // if user pans left, go to the right\n for (let i = currentIndex + 1; i < tabs.length; i++) {\n if (!tabs[i]) {\n nextIndex = i;\n break;\n }\n }\n }\n this.tabGroup.selectedIndex = nextIndex;\n }\n });\n }\n}\n","import { NgModule } from '@angular/core';\nimport { NucSwipeTabsDirective } from './swipe-tabs-directive';\nimport { CommonModule } from '@angular/common';\n\n@NgModule({\n declarations: [NucSwipeTabsDirective],\n imports: [CommonModule],\n exports: [NucSwipeTabsDirective],\n})\nexport class NucSwipeTabsModule {}\n","export enum NucSnackbarType {\n Info = 'info',\n Warning = 'warning',\n Danger = 'danger',\n Success = 'success',\n Progress = 'progress',\n}\n","import {\n AfterViewInit,\n Component,\n ElementRef,\n Inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport { MAT_SNACK_BAR_DATA } from '@angular/material/snack-bar';\n\n@Component({\n selector: 'lib-progress-snackbar',\n templateUrl: './progress-snackbar.component.html',\n styleUrls: ['./progress-snackbar.component.scss'],\n encapsulation: ViewEncapsulation.None,\n // eslint-disable-next-line @angular-eslint/no-host-metadata-property\n host: {\n class: 'mat-simple-snackbar',\n },\n})\nexport class ProgressSnackbarComponent implements AfterViewInit {\n constructor(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Inject(MAT_SNACK_BAR_DATA) public data: any,\n private elem: ElementRef\n ) {}\n\n ngAfterViewInit() {\n const element = this.elem.nativeElement;\n const circle = element.querySelector('circle');\n const message = element.querySelector('.message');\n const color = window.getComputedStyle(message).color;\n circle.style.stroke = color;\n }\n}\n","<div class=\"mat-simple-snack-bar-content message\">\n <mat-spinner\n style=\"vertical-align: middle; display: inline-flex; margin-right: 8px\"\n diameter=\"16\"\n strokeWidth=\"1.5\"\n mode=\"indeterminate\"\n class=\"spinner\"\n color=\"red\"\n ></mat-spinner>\n {{ data.message }}\n</div>\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { Injectable, NgZone } from '@angular/core';\nimport {\n MatSnackBar,\n MatSnackBarConfig,\n MatSnackBarRef,\n} from '@angular/material/snack-bar';\nimport { NucSnackbarType } from './models';\nimport { ProgressSnackbarComponent } from './progress-snackbar/progress-snackbar.component';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class NucSnackbarService {\n constructor(private matSnackBar: MatSnackBar, private zone: NgZone) {}\n\n public openSnackbar(\n type: NucSnackbarType,\n message: string,\n action: string | undefined,\n duration: number\n ) {\n let ref: MatSnackBarRef<any> | undefined;\n\n this.zone.run(() => {\n const panelClass = `${type}-snackbar`;\n\n if (type === NucSnackbarType.Progress) {\n this.matSnackBar.openFromComponent(ProgressSnackbarComponent, {\n duration,\n panelClass,\n data: {\n message,\n },\n });\n } else {\n this.matSnackBar.open(message, action, {\n duration,\n panelClass,\n });\n }\n });\n\n return ref as MatSnackBarRef<any>; //TODO: this is not OK, ref might not be available to consumer of the method\n }\n\n public openSnackbarWithConfig(\n message: string,\n action: string | undefined,\n config: MatSnackBarConfig\n ) {\n let ref: MatSnackBarRef<any> | undefined;\n\n this.zone.run(() => {\n ref = this.matSnackBar.open(message, action, config);\n });\n return ref as MatSnackBarRef<any>; //TODO: this is not OK, ref might not be available to consumer of the method\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatSnackBarModule } from '@angular/material/snack-bar';\nimport { ProgressSnackbarComponent } from './progress-snackbar/progress-snackbar.component';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\n\n@NgModule({\n declarations: [ProgressSnackbarComponent],\n imports: [CommonModule, MatSnackBarModule, MatProgressSpinnerModule],\n exports: [],\n})\nexport class NucSnackbarModule {}\n","import { Component, Input } from '@angular/core';\nexport type AvatarSize = 'small' | 'medium' | 'large' | 'xlarge';\nexport type Background = true | false;\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'nuc-user-avatar',\n templateUrl: './user-avatar-component.html',\n styleUrls: ['./user-avatar-component.scss'],\n})\nexport class NucUserAvatarComponent {\n @Input() name: string;\n @Input() image: string;\n @Input() size: AvatarSize = 'medium';\n @Input() background: Background = false;\n\n getUserInitials() {\n const nameParts = this.name.split(' ');\n return (\n nameParts[0].charAt(0).toUpperCase() +\n '' +\n nameParts[nameParts.length - 1].charAt(0).toUpperCase()\n );\n }\n\n getHslString(): string {\n if (!this.background) {\n return `hsl(${0},${0}%,${100}%)`;\n }\n\n let hash = 0;\n for (let i = 0; i < this.name.length; i++) {\n /*\n * Javascript uses double precision floating-point format for all numerical datatypes.\n * Except when using bitwise operations, where operators are converted to 32-bit signed integers.\n * Result of bitwise operations are then converted back to double precision floating-point format.\n *\n * We make a bitwise OR operation between the new hash and 0.\n * This keeps only the lower 32 bits in the new hash value.\n */\n // eslint-disable-next-line no-bitwise\n hash = (this.name.charCodeAt(i) + ((hash << 15) - hash)) | 0;\n }\n\n const hue = Math.abs(hash % 360);\n\n const lightness = 49.2;\n const saturation = 42.6;\n\n return `hsl(${hue},${saturation}%,${lightness}%)`;\n }\n}\n","<ng-container *ngIf=\"image\">\n <div class=\"user-avatar size-{{size}}\">\n <img src=\"{{image}}\" />\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"!image\">\n <div\n class=\"user-avatar size-{{size}} unselectable\"\n [style.background-color]=\"getHslString()\"\n [ngClass]=\"{'white-text': background, 'black-text border': !background}\"\n >\n {{getUserInitials()}}\n </div>\n</ng-container>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NucUserAvatarComponent } from './user-avatar-component';\n\n@NgModule({\n declarations: [NucUserAvatarComponent],\n imports: [CommonModule],\n exports: [NucUserAvatarComponent],\n})\nexport class NucUserAvatarModule {}\n","// dialog\nexport * from './lib/dialog/dialog.service';\nexport * from './lib/dialog/dialog.module';\nexport * from './lib/dialog/models';\n\n// loaded-content\nexport * from './lib/loaded-content/loading-state';\nexport * from './lib/loaded-content/loaded-content-component';\nexport * from './lib/loaded-content/loaded-content-directive';\nexport * from './lib/loaded-content/loaded-content-module';\n\n// swipe-tabs\nexport * from './lib/swipe-tabs/swipe-tabs-directive';\nexport * from './lib/swipe-tabs/swipe-tabs-module';\n\n// dialog component\nexport * from './lib/dialog/dialog.service';\nexport * from './lib/dialog/dialog.module';\nexport * from './lib/dialog/models';\n\n// snackbar component\nexport * from './lib/snackbar/snackbar.service';\nexport * from './lib/snackbar/snackbar.module';\nexport * from './lib/snackbar/models';\n\n// user-avatar\nexport * from './lib/user-avatar/user-avatar-component';\nexport * from './lib/user-avatar/user-avatar-module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2","i1"],"mappings":";;;;;;;;;;;;;;;;;;MAUa,kBAAkB,CAAA;IAC7B,WACS,CAAA,SAA2C,EAClB,UAAyB,EAAA;QADlD,IAAS,CAAA,SAAA,GAAT,SAAS,CAAkC;QAClB,IAAU,CAAA,UAAA,GAAV,UAAU,CAAe;KACvD;AAJO,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,8CAGnB,eAAe,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAHd,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,kBAAkB,kDCV/B,qxBA0BA,EAAA,MAAA,EAAA,CAAA,wIAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,IAAA,CAAA,OAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,cAAA,EAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,IAAA,CAAA,IA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f,YAAA,EAAA,CAAA,sBAAsB,CAC3B,EAAA,OAAA,EAAA,CAAA,YAAY,aACZ,sBAAsB,CAAA,EAAA,CAAA,CAAA,EAAA;AAErB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAHpB,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAGX,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAL/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;oBACtC,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,sBAAsB,CAAC;AAClC,iBAAA,CAAA;;;ACRD;;ACAA;;AAEG;;;;"}
package/index.d.ts CHANGED
@@ -1,5 +1,17 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@kolektor/nucleus-material" />
5
- export * from './public-api';
1
+ export * from './lib/dialog/dialog.service';
2
+ export * from './lib/dialog/dialog.module';
3
+ export * from './lib/dialog/models';
4
+ export * from './lib/loaded-content/loading-state';
5
+ export * from './lib/loaded-content/loaded-content-component';
6
+ export * from './lib/loaded-content/loaded-content-directive';
7
+ export * from './lib/loaded-content/loaded-content-module';
8
+ export * from './lib/swipe-tabs/swipe-tabs-directive';
9
+ export * from './lib/swipe-tabs/swipe-tabs-module';
10
+ export * from './lib/dialog/dialog.service';
11
+ export * from './lib/dialog/dialog.module';
12
+ export * from './lib/dialog/models';
13
+ export * from './lib/snackbar/snackbar.service';
14
+ export * from './lib/snackbar/snackbar.module';
15
+ export * from './lib/snackbar/models';
16
+ export * from './lib/user-avatar/user-avatar-component';
17
+ export * from './lib/user-avatar/user-avatar-module';
@@ -1,10 +1,10 @@
1
- import { MatDialogRef } from '@angular/material/dialog';
2
- import { NucDialogData } from './models';
3
- import * as i0 from "@angular/core";
4
- export declare class NucDialogComponent {
5
- dialogRef: MatDialogRef<NucDialogComponent>;
6
- dialogData: NucDialogData;
7
- constructor(dialogRef: MatDialogRef<NucDialogComponent>, dialogData: NucDialogData);
8
- static ɵfac: i0.ɵɵFactoryDeclaration<NucDialogComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<NucDialogComponent, "nuc-dialog", never, {}, {}, never, never, false, never>;
10
- }
1
+ import { MatDialogRef } from '@angular/material/dialog';
2
+ import { NucDialogData } from './models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class NucDialogComponent {
5
+ dialogRef: MatDialogRef<NucDialogComponent>;
6
+ dialogData: NucDialogData;
7
+ constructor(dialogRef: MatDialogRef<NucDialogComponent>, dialogData: NucDialogData);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<NucDialogComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<NucDialogComponent, "nuc-dialog", never, {}, {}, never, never, false, never>;
10
+ }
@@ -1,10 +1,10 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./dialog.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/material/dialog";
5
- import * as i4 from "@angular/material/button";
6
- export declare class NucDialogModule {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<NucDialogModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<NucDialogModule, [typeof i1.NucDialogComponent], [typeof i2.CommonModule, typeof i3.MatDialogModule, typeof i4.MatButtonModule], never>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<NucDialogModule>;
10
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./dialog.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/material/dialog";
5
+ import * as i4 from "@angular/material/button";
6
+ export declare class NucDialogModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<NucDialogModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NucDialogModule, [typeof i1.NucDialogComponent], [typeof i2.CommonModule, typeof i3.MatDialogModule, typeof i4.MatButtonModule], never>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<NucDialogModule>;
10
+ }
@@ -1,17 +1,17 @@
1
- import { MatDialog, MatDialogConfig } from '@angular/material/dialog';
2
- import { NucDialogData } from './models';
3
- import * as i0 from "@angular/core";
4
- export declare class NucDialogService {
5
- private _matDialog;
6
- constructor(_matDialog: MatDialog);
7
- /**
8
- * Opens a NucDialog with content from dialogData.
9
- *
10
- * @param dialogData NucDialogData containing title, message and possible actions.
11
- * @param dialogConfig Extra configuration options. Data property is ignored, since it will be set to dialogData.
12
- * @returns a promise with value that was specified inside pressed Nucleus action.
13
- */
14
- open(dialogData: NucDialogData, dialogConfig?: MatDialogConfig): Promise<any>;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<NucDialogService, never>;
16
- static ɵprov: i0.ɵɵInjectableDeclaration<NucDialogService>;
17
- }
1
+ import { MatDialog, MatDialogConfig } from '@angular/material/dialog';
2
+ import { NucDialogData } from './models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class NucDialogService {
5
+ private _matDialog;
6
+ constructor(_matDialog: MatDialog);
7
+ /**
8
+ * Opens a NucDialog with content from dialogData.
9
+ *
10
+ * @param dialogData NucDialogData containing title, message and possible actions.
11
+ * @param dialogConfig Extra configuration options. Data property is ignored, since it will be set to dialogData.
12
+ * @returns a promise with value that was specified inside pressed Nucleus action.
13
+ */
14
+ open(dialogData: NucDialogData, dialogConfig?: MatDialogConfig): Promise<any>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<NucDialogService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<NucDialogService>;
17
+ }
@@ -1,24 +1,24 @@
1
- export interface NucDialogData {
2
- /** Optional title for the dialog. */
3
- title?: string;
4
- /** Message for the dialog. */
5
- message: string;
6
- /** Action(s) (buttons) for the dialog. At least one is required. */
7
- actions: NucAction[];
8
- }
9
- export interface NucAction {
10
- /** Text for the action (button). */
11
- text: string;
12
- /** Return value for the action (button). */
13
- value?: any;
14
- /** Optional color of the action (button). */
15
- color?: NucColor;
16
- }
17
- export declare enum NucColor {
18
- /** Primary color of the theme. */
19
- primary = "primary",
20
- /** Accent color of the theme. */
21
- accent = "accent",
22
- /** Warning color of the theme. */
23
- warn = "warn"
24
- }
1
+ export interface NucDialogData {
2
+ /** Optional title for the dialog. */
3
+ title?: string;
4
+ /** Message for the dialog. */
5
+ message: string;
6
+ /** Action(s) (buttons) for the dialog. At least one is required. */
7
+ actions: NucAction[];
8
+ }
9
+ export interface NucAction {
10
+ /** Text for the action (button). */
11
+ text: string;
12
+ /** Return value for the action (button). */
13
+ value?: any;
14
+ /** Optional color of the action (button). */
15
+ color?: NucColor;
16
+ }
17
+ export declare enum NucColor {
18
+ /** Primary color of the theme. */
19
+ primary = "primary",
20
+ /** Accent color of the theme. */
21
+ accent = "accent",
22
+ /** Warning color of the theme. */
23
+ warn = "warn"
24
+ }
@@ -1,22 +1,22 @@
1
- import { TemplateRef } from '@angular/core';
2
- import { LoadingState } from './loading-state';
3
- import * as i0 from "@angular/core";
4
- export declare class NucLoadedContentComponent {
5
- private _errorDetailsVisible;
6
- completedTemplate: TemplateRef<any>;
7
- errorTemplate: TemplateRef<any>;
8
- inProgressTemplate: TemplateRef<any>;
9
- state: LoadingState;
10
- inProgressMessage: string;
11
- errorMessage: string;
12
- showRetry: boolean;
13
- get message(): string;
14
- get showRetryButton(): boolean;
15
- get inProgress(): boolean;
16
- get failed(): boolean;
17
- get completed(): boolean;
18
- get errorDetailsVisible(): boolean;
19
- showErrorDetails(): void;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<NucLoadedContentComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<NucLoadedContentComponent, "nuc-loaded-content-component", never, { "completedTemplate": "completedTemplate"; "errorTemplate": "errorTemplate"; "inProgressTemplate": "inProgressTemplate"; "state": "state"; "inProgressMessage": "inProgressMessage"; "errorMessage": "errorMessage"; "showRetry": "showRetry"; }, {}, never, never, false, never>;
22
- }
1
+ import { TemplateRef } from '@angular/core';
2
+ import { LoadingState } from './loading-state';
3
+ import * as i0 from "@angular/core";
4
+ export declare class NucLoadedContentComponent {
5
+ private _errorDetailsVisible;
6
+ completedTemplate: TemplateRef<any>;
7
+ errorTemplate: TemplateRef<any>;
8
+ inProgressTemplate: TemplateRef<any>;
9
+ state: LoadingState;
10
+ inProgressMessage: string;
11
+ errorMessage: string;
12
+ showRetry: boolean;
13
+ get message(): string | null;
14
+ get showRetryButton(): boolean;
15
+ get inProgress(): boolean;
16
+ get failed(): boolean;
17
+ get completed(): boolean;
18
+ get errorDetailsVisible(): boolean;
19
+ showErrorDetails(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<NucLoadedContentComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<NucLoadedContentComponent, "nuc-loaded-content-component", never, { "completedTemplate": { "alias": "completedTemplate"; "required": false; }; "errorTemplate": { "alias": "errorTemplate"; "required": false; }; "inProgressTemplate": { "alias": "inProgressTemplate"; "required": false; }; "state": { "alias": "state"; "required": false; }; "inProgressMessage": { "alias": "inProgressMessage"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "showRetry": { "alias": "showRetry"; "required": false; }; }, {}, never, never, false, never>;
22
+ }
@@ -1,23 +1,23 @@
1
- import { ComponentFactoryResolver, TemplateRef, ViewContainerRef } from '@angular/core';
2
- import { LoadingState } from './loading-state';
3
- import * as i0 from "@angular/core";
4
- export declare class NucLoadedContentDirective {
5
- private _viewContainer;
6
- private templateRef;
7
- private _componentResolver;
8
- private _state;
9
- private _completedTemplateRef;
10
- private _errorTemplateRef;
11
- private _inProgressTemplateRef;
12
- private _component;
13
- constructor(_viewContainer: ViewContainerRef, templateRef: TemplateRef<any>, _componentResolver: ComponentFactoryResolver);
14
- set nucLoadedContent(state: LoadingState);
15
- set errorTemplate(templateRef: TemplateRef<any> | null);
16
- set inProgressTemplate(templateRef: TemplateRef<any> | null);
17
- set inProgressMessage(inProgressMessage: string);
18
- set errorMessage(errorMessage: string);
19
- set showRetry(showRetry: boolean);
20
- private _updateView;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<NucLoadedContentDirective, never>;
22
- static ɵdir: i0.ɵɵDirectiveDeclaration<NucLoadedContentDirective, "[nucLoadedContent]", never, { "nucLoadedContent": "nucLoadedContent"; "errorTemplate": "nucLoadedContentError"; "inProgressTemplate": "nucLoadedContentInProgress"; "inProgressMessage": "nucLoadedContentInProgressMessage"; "errorMessage": "nucLoadedContentErrorMessage"; "showRetry": "nucLoadedContentShowRetry"; }, {}, never, never, false, never>;
23
- }
1
+ import { ComponentFactoryResolver, TemplateRef, ViewContainerRef } from '@angular/core';
2
+ import { LoadingState } from './loading-state';
3
+ import * as i0 from "@angular/core";
4
+ export declare class NucLoadedContentDirective {
5
+ private _viewContainer;
6
+ private templateRef;
7
+ private _componentResolver;
8
+ private _state;
9
+ private _completedTemplateRef;
10
+ private _errorTemplateRef;
11
+ private _inProgressTemplateRef;
12
+ private _component;
13
+ constructor(_viewContainer: ViewContainerRef, templateRef: TemplateRef<any>, _componentResolver: ComponentFactoryResolver);
14
+ set nucLoadedContent(state: LoadingState);
15
+ set errorTemplate(templateRef: TemplateRef<any> | null);
16
+ set inProgressTemplate(templateRef: TemplateRef<any> | null);
17
+ set inProgressMessage(inProgressMessage: string);
18
+ set errorMessage(errorMessage: string);
19
+ set showRetry(showRetry: boolean);
20
+ private _updateView;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<NucLoadedContentDirective, never>;
22
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NucLoadedContentDirective, "[nucLoadedContent]", never, { "nucLoadedContent": { "alias": "nucLoadedContent"; "required": false; }; "errorTemplate": { "alias": "nucLoadedContentError"; "required": false; }; "inProgressTemplate": { "alias": "nucLoadedContentInProgress"; "required": false; }; "inProgressMessage": { "alias": "nucLoadedContentInProgressMessage"; "required": false; }; "errorMessage": { "alias": "nucLoadedContentErrorMessage"; "required": false; }; "showRetry": { "alias": "nucLoadedContentShowRetry"; "required": false; }; }, {}, never, never, false, never>;
23
+ }
@@ -1,12 +1,12 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./loaded-content-directive";
3
- import * as i2 from "./loaded-content-component";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "@angular/material/progress-spinner";
6
- import * as i5 from "@angular/material/button";
7
- import * as i6 from "@angular/material/icon";
8
- export declare class NucLoadedContentModule {
9
- static ɵfac: i0.ɵɵFactoryDeclaration<NucLoadedContentModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<NucLoadedContentModule, [typeof i1.NucLoadedContentDirective, typeof i2.NucLoadedContentComponent], [typeof i3.CommonModule, typeof i4.MatProgressSpinnerModule, typeof i5.MatButtonModule, typeof i6.MatIconModule], [typeof i1.NucLoadedContentDirective]>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<NucLoadedContentModule>;
12
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./loaded-content-directive";
3
+ import * as i2 from "./loaded-content-component";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "@angular/material/progress-spinner";
6
+ import * as i5 from "@angular/material/button";
7
+ import * as i6 from "@angular/material/icon";
8
+ export declare class NucLoadedContentModule {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<NucLoadedContentModule, never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NucLoadedContentModule, [typeof i1.NucLoadedContentDirective, typeof i2.NucLoadedContentComponent], [typeof i3.CommonModule, typeof i4.MatProgressSpinnerModule, typeof i5.MatButtonModule, typeof i6.MatIconModule], [typeof i1.NucLoadedContentDirective]>;
11
+ static ɵinj: i0.ɵɵInjectorDeclaration<NucLoadedContentModule>;
12
+ }
@@ -1,32 +1,32 @@
1
- import { Observable, Subscription } from 'rxjs';
2
- import { HttpErrorResponse } from '@angular/common/http';
3
- export declare enum LoadingStatus {
4
- completed = 0,
5
- inProgress = 1,
6
- failed = 2,
7
- undefined = 3
8
- }
9
- export declare class LoadingState {
10
- private _status;
11
- private _initialMessage;
12
- private _message;
13
- private _errorDetails;
14
- private _resultFunction;
15
- private _errorFunction;
16
- private _completeFunction;
17
- private _loadObservable;
18
- private _lastSubscription;
19
- get status(): LoadingStatus;
20
- get message(): string;
21
- get errorDetails(): string;
22
- load<T>(observable: Observable<T>, resultFunction?: (result: T) => void, errorFunction?: (error: HttpErrorResponse) => void, completeFunction?: () => void): Subscription;
23
- loadWithMessage<T>(observable: Observable<T>, message: string, resultFunction?: (result: T) => void, errorFunction?: (error: HttpErrorResponse) => void, completeFunction?: () => void): Subscription;
24
- invoke<T>(observable: Observable<T>, resultFunction?: (result: T) => void, errorFunction?: (error: HttpErrorResponse) => void, completeFunction?: () => void): Subscription;
25
- invokeWithMessage<T>(observable: Observable<T>, message: string, resultFunction?: (result: T) => void, errorFunction?: (error: HttpErrorResponse) => void, completeFunction?: () => void): Subscription;
26
- retry(): Subscription;
27
- setInProgress(message?: string): void;
28
- setCompleted(): void;
29
- setFailed(message?: string, error?: string): void;
30
- private _load;
31
- static getErrorDetails(error: any): any;
32
- }
1
+ import { Observable, Subscription } from 'rxjs';
2
+ import { HttpErrorResponse } from '@angular/common/http';
3
+ export declare enum LoadingStatus {
4
+ completed = 0,
5
+ inProgress = 1,
6
+ failed = 2,
7
+ undefined = 3
8
+ }
9
+ export declare class LoadingState {
10
+ private _status;
11
+ private _initialMessage;
12
+ private _message?;
13
+ private _errorDetails?;
14
+ private _resultFunction?;
15
+ private _errorFunction?;
16
+ private _completeFunction?;
17
+ private _loadObservable;
18
+ private _lastSubscription;
19
+ get status(): LoadingStatus;
20
+ get message(): string | undefined;
21
+ get errorDetails(): string | undefined;
22
+ load<T>(observable: Observable<T>, resultFunction?: (result: T) => void, errorFunction?: (error: HttpErrorResponse) => void, completeFunction?: () => void): Subscription;
23
+ loadWithMessage<T>(observable: Observable<T>, message: string, resultFunction?: (result: T) => void, errorFunction?: (error: HttpErrorResponse) => void, completeFunction?: () => void): Subscription;
24
+ invoke<T>(observable: Observable<T>, resultFunction?: (result: T) => void, errorFunction?: (error: HttpErrorResponse) => void, completeFunction?: () => void): Subscription;
25
+ invokeWithMessage<T>(observable: Observable<T>, message: string, resultFunction?: (result: T) => void, errorFunction?: (error: HttpErrorResponse) => void, completeFunction?: () => void): Subscription;
26
+ retry(): Subscription;
27
+ setInProgress(message?: string): void;
28
+ setCompleted(): void;
29
+ setFailed(message?: string, error?: string): void;
30
+ private _load;
31
+ static getErrorDetails(error: any): any;
32
+ }
@@ -1,7 +1,7 @@
1
- export declare enum NucSnackbarType {
2
- Info = "info",
3
- Warning = "warning",
4
- Danger = "danger",
5
- Success = "success",
6
- Progress = "progress"
7
- }
1
+ export declare enum NucSnackbarType {
2
+ Info = "info",
3
+ Warning = "warning",
4
+ Danger = "danger",
5
+ Success = "success",
6
+ Progress = "progress"
7
+ }
@@ -1,10 +1,10 @@
1
- import { AfterViewInit, ElementRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class ProgressSnackbarComponent implements AfterViewInit {
4
- data: any;
5
- private elem;
6
- constructor(data: any, elem: ElementRef);
7
- ngAfterViewInit(): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<ProgressSnackbarComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<ProgressSnackbarComponent, "lib-progress-snackbar", never, {}, {}, never, never, false, never>;
10
- }
1
+ import { AfterViewInit, ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ProgressSnackbarComponent implements AfterViewInit {
4
+ data: any;
5
+ private elem;
6
+ constructor(data: any, elem: ElementRef);
7
+ ngAfterViewInit(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProgressSnackbarComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProgressSnackbarComponent, "lib-progress-snackbar", never, {}, {}, never, never, false, never>;
10
+ }
@@ -1,10 +1,10 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./progress-snackbar/progress-snackbar.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/material/snack-bar";
5
- import * as i4 from "@angular/material/progress-spinner";
6
- export declare class NucSnackbarModule {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<NucSnackbarModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<NucSnackbarModule, [typeof i1.ProgressSnackbarComponent], [typeof i2.CommonModule, typeof i3.MatSnackBarModule, typeof i4.MatProgressSpinnerModule], never>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<NucSnackbarModule>;
10
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./progress-snackbar/progress-snackbar.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/material/snack-bar";
5
+ import * as i4 from "@angular/material/progress-spinner";
6
+ export declare class NucSnackbarModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<NucSnackbarModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NucSnackbarModule, [typeof i1.ProgressSnackbarComponent], [typeof i2.CommonModule, typeof i3.MatSnackBarModule, typeof i4.MatProgressSpinnerModule], never>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<NucSnackbarModule>;
10
+ }
@@ -1,13 +1,13 @@
1
- import { NgZone } from '@angular/core';
2
- import { MatSnackBar, MatSnackBarConfig, MatSnackBarRef, TextOnlySnackBar } from '@angular/material/snack-bar';
3
- import { NucSnackbarType } from './models';
4
- import * as i0 from "@angular/core";
5
- export declare class NucSnackbarService {
6
- private matSnackBar;
7
- private zone;
8
- constructor(matSnackBar: MatSnackBar, zone: NgZone);
9
- openSnackbar(type: NucSnackbarType, message: string, action: string | null, duration: number): MatSnackBarRef<any>;
10
- openSnackbarWithConfig(message: string, action: string | null, config: MatSnackBarConfig): MatSnackBarRef<TextOnlySnackBar>;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<NucSnackbarService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<NucSnackbarService>;
13
- }
1
+ import { NgZone } from '@angular/core';
2
+ import { MatSnackBar, MatSnackBarConfig, MatSnackBarRef } from '@angular/material/snack-bar';
3
+ import { NucSnackbarType } from './models';
4
+ import * as i0 from "@angular/core";
5
+ export declare class NucSnackbarService {
6
+ private matSnackBar;
7
+ private zone;
8
+ constructor(matSnackBar: MatSnackBar, zone: NgZone);
9
+ openSnackbar(type: NucSnackbarType, message: string, action: string | undefined, duration: number): MatSnackBarRef<any>;
10
+ openSnackbarWithConfig(message: string, action: string | undefined, config: MatSnackBarConfig): MatSnackBarRef<any>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<NucSnackbarService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<NucSnackbarService>;
13
+ }
@@ -1,11 +1,11 @@
1
- import { ElementRef, OnInit } from '@angular/core';
2
- import { MatTabGroup } from '@angular/material/tabs';
3
- import * as i0 from "@angular/core";
4
- export declare class NucSwipeTabsDirective implements OnInit {
5
- private element;
6
- private tabGroup;
7
- constructor(element: ElementRef<EventTarget>, tabGroup: MatTabGroup);
8
- ngOnInit(): void;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<NucSwipeTabsDirective, never>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<NucSwipeTabsDirective, "[nucSwipe]", never, {}, {}, never, never, false, never>;
11
- }
1
+ import { ElementRef, OnInit } from '@angular/core';
2
+ import { MatTabGroup } from '@angular/material/tabs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class NucSwipeTabsDirective implements OnInit {
5
+ private element;
6
+ private tabGroup;
7
+ constructor(element: ElementRef<EventTarget>, tabGroup: MatTabGroup);
8
+ ngOnInit(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<NucSwipeTabsDirective, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NucSwipeTabsDirective, "[nucSwipe]", never, {}, {}, never, never, false, never>;
11
+ }
@@ -1,8 +1,8 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./swipe-tabs-directive";
3
- import * as i2 from "@angular/common";
4
- export declare class NucSwipeTabsModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<NucSwipeTabsModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<NucSwipeTabsModule, [typeof i1.NucSwipeTabsDirective], [typeof i2.CommonModule], [typeof i1.NucSwipeTabsDirective]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<NucSwipeTabsModule>;
8
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./swipe-tabs-directive";
3
+ import * as i2 from "@angular/common";
4
+ export declare class NucSwipeTabsModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<NucSwipeTabsModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NucSwipeTabsModule, [typeof i1.NucSwipeTabsDirective], [typeof i2.CommonModule], [typeof i1.NucSwipeTabsDirective]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<NucSwipeTabsModule>;
8
+ }