@rxap/components 13.0.0 → 13.0.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.
- package/esm2020/lib/button/button.component.mjs +5 -5
- package/esm2020/lib/confirm/confirm.directive.mjs +36 -23
- package/fesm2015/rxap-components.mjs +41 -27
- package/fesm2015/rxap-components.mjs.map +1 -1
- package/fesm2020/rxap-components.mjs +39 -26
- package/fesm2020/rxap-components.mjs.map +1 -1
- package/lib/button/button.component.d.ts +1 -1
- package/lib/confirm/confirm.directive.d.ts +7 -2
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rxap-components.mjs","sources":["../../../../libs/components/src/lib/confirm/confirm.component.ts","../../../../libs/components/src/lib/confirm/confirm.component.html","../../../../libs/components/src/lib/confirm/confirm.directive.ts","../../../../libs/components/src/lib/button/button.component.ts","../../../../libs/components/src/lib/button/button.component.html","../../../../libs/components/src/lib/confirm/confirm.component.module.ts","../../../../libs/components/src/lib/button/button.component.module.ts","../../../../libs/components/src/lib/empty-router-outlet/empty-router-outlet.component.ts","../../../../libs/components/src/lib/empty-router-outlet/empty-router-outlet.component.html","../../../../libs/components/src/lib/empty-router-outlet/empty-router-outlet.component.module.ts","../../../../libs/components/src/lib/json-viewer/json-viewer.tokens.ts","../../../../libs/components/src/lib/json-viewer/json-viewer.component.ts","../../../../libs/components/src/lib/json-viewer/json-viewer.component.html","../../../../libs/components/src/lib/json-viewer/json-viewer.component.module.ts","../../../../libs/components/src/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.ts","../../../../libs/components/src/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.html","../../../../libs/components/src/lib/copy-to-clipboard/copy-to-clipboard.component.ts","../../../../libs/components/src/lib/copy-to-clipboard/copy-to-clipboard.component.html","../../../../libs/components/src/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.module.ts","../../../../libs/components/src/lib/copy-to-clipboard/copy-to-clipboard.component.module.ts","../../../../libs/components/src/lib/dark-mode-toggle-button/dark-mode-toggle-button.component.ts","../../../../libs/components/src/lib/dark-mode-toggle-button/dark-mode-toggle-button.component.html","../../../../libs/components/src/lib/dark-mode-toggle-button/dark-mode-toggle-button.component.module.ts","../../../../libs/components/src/lib/navigate-back-button/navigate-back-button.component.ts","../../../../libs/components/src/lib/navigate-back-button/navigate-back-button.component.html","../../../../libs/components/src/lib/navigate-back-button/navigate-back-button.component.module.ts","../../../../libs/components/src/index.ts","../../../../libs/components/src/rxap-components.ts"],"sourcesContent":["import {\n Component,\n ChangeDetectionStrategy,\n EventEmitter,\n Output\n} from '@angular/core';\n\n@Component({\n selector: 'rxap-confirm',\n templateUrl: './confirm.component.html',\n styleUrls: [ './confirm.component.scss' ],\n host: {\n class: 'rxap-confirm'\n },\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ConfirmComponent {\n\n @Output()\n public confirmed = new EventEmitter<void>();\n\n @Output()\n public unconfirmed = new EventEmitter<void>();\n\n}\n","<div class=\"container mat-elevation-z2\" fxLayout=\"row\" fxLayoutGap=\"4px\">\n <button type=\"button\" (click)=\"confirmed.emit()\" class=\"accept\" mat-icon-button>\n <mat-icon>done</mat-icon>\n </button>\n <button type=\"button\" (click)=\"unconfirmed.emit()\" class=\"decline\" mat-icon-button>\n <mat-icon>clear</mat-icon>\n </button>\n</div>\n","import {\n Directive,\n HostListener,\n ElementRef,\n EventEmitter,\n Output,\n OnDestroy,\n Input,\n Inject,\n} from '@angular/core';\nimport { ConfirmComponent } from './confirm.component';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { tap, take } from 'rxjs/operators';\nimport { Subscription } from 'rxjs';\n\n@Directive({\n selector: '[rxapConfirm]',\n})\nexport class ConfirmDirective<T = any> implements OnDestroy {\n // use a set input to allow auto import detection if the eventValue\n // is not set\n @Input('rxapConfirm')\n public set eventValue(value: T | '') {\n if (value !== '') {\n this._eventValue = value;\n }\n }\n\n @Output()\n public confirmed = new EventEmitter<T | undefined>();\n\n @Output()\n public unconfirmed = new EventEmitter<T | undefined>();\n\n private subscription: Subscription | null = null;\n\n private overlayRef?: OverlayRef;\n\n private _eventValue?: T;\n\n constructor(\n @Inject(Overlay)\n private readonly overlay: Overlay,\n @Inject(ElementRef)\n private readonly elementRef: ElementRef\n ) {}\n\n @HostListener('click')\n public onClick() {\n if (this.subscription) {\n return;\n }\n\n this.overlayRef = this.overlay.create({\n scrollStrategy: this.overlay.scrollStrategies.close(),\n positionStrategy: this.overlay\n .position()\n .flexibleConnectedTo(this.elementRef.nativeElement)\n .withPositions([\n {\n originX: 'start',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'top',\n },\n ])\n .withDefaultOffsetY(10),\n });\n const componentPortal = new ComponentPortal(ConfirmComponent);\n\n const componentRef = this.overlayRef.attach(componentPortal);\n\n this.subscription = new Subscription();\n\n this.subscription.add(\n componentRef.instance.confirmed\n .pipe(\n take(1),\n tap(() => this.confirmed.emit(this._eventValue)),\n tap(() => this.overlayRef?.dispose()),\n tap(() => (this.subscription = null)),\n tap(() => this.subscription?.unsubscribe())\n )\n .subscribe()\n );\n\n this.subscription.add(\n componentRef.instance.unconfirmed\n .pipe(\n take(1),\n tap(() => this.unconfirmed.emit(this._eventValue)),\n tap(() => this.overlayRef?.dispose()),\n tap(() => (this.subscription = null)),\n tap(() => this.subscription?.unsubscribe())\n )\n .subscribe()\n );\n\n this.subscription.add(\n this.overlayRef\n .detachments()\n .pipe(\n take(1),\n tap(() => (this.subscription = null)),\n tap(() => this.subscription?.unsubscribe())\n )\n .subscribe()\n );\n }\n\n public ngOnDestroy() {\n this.subscription?.unsubscribe();\n this.overlayRef?.dispose();\n }\n}\n","import type { Injector } from '@angular/core';\nimport {\n Component,\n OnInit,\n ChangeDetectionStrategy,\n OnChanges,\n Input,\n HostBinding,\n ElementRef,\n ChangeDetectorRef,\n SimpleChanges,\n Inject,\n Optional,\n ViewEncapsulation,\n HostListener,\n EventEmitter,\n Output,\n OnDestroy,\n INJECTOR\n} from '@angular/core';\nimport {\n Required,\n Action,\n IsSvgIcon,\n IsMaterialIcon,\n IconConfig,\n applyContextToFunctionOrConstant\n} from '@rxap/utilities';\nimport { Overlay } from '@angular/cdk/overlay';\nimport { MatButton } from '@angular/material/button';\nimport { FocusMonitor } from '@angular/cdk/a11y';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\nimport { ConfirmDirective } from '../confirm/confirm.directive';\nimport { Subscription } from 'rxjs';\nimport {\n ButtonDefinition,\n ButtonTypes\n} from '@rxap/utilities/rxjs';\n\nconst DEFAULT_ROUND_BUTTON_COLOR = 'accent';\n\nconst BUTTON_HOST_ATTRIBUTES = [\n 'mat-button',\n 'mat-flat-button',\n 'mat-icon-button',\n 'mat-raised-button',\n 'mat-stroked-button',\n 'mat-mini-fab',\n 'mat-fab',\n];\n\n@Component({\n selector: 'button[rxap-button]',\n templateUrl: './button.component.html',\n styleUrls: ['./button.component.scss'],\n inputs: ['disabled', 'disableRipple', 'color'],\n host: {\n '[attr.disabled]': 'disabled || null',\n '[class._mat-animation-noopable]': '_animationMode === \"NoopAnimations\"',\n class: 'mat-focus-indicator',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ButtonComponent\n extends MatButton\n implements OnInit, OnChanges, OnDestroy\n{\n @HostBinding('attr.data-svg-icon')\n public get svgIcon(): boolean {\n if (this.icon) {\n return IsSvgIcon(this.icon);\n }\n\n return false;\n }\n\n @HostBinding('attr.data-material-icon')\n public get materialIcon(): boolean {\n if (this.icon) {\n return IsMaterialIcon(this.icon);\n }\n\n return false;\n }\n\n @HostBinding('attr.data-icon')\n public get iconName(): string | null {\n if (this.icon) {\n if (IsSvgIcon(this.icon)) {\n return this.icon.svgIcon;\n } else {\n return this.icon.icon;\n }\n }\n\n return null;\n }\n\n @HostBinding('attr.data-name')\n public get name(): string {\n return this.definition.name;\n }\n\n @Input() public context?: any[];\n @Input() public contextAll?: any[][];\n\n @Input()\n public action: Action | null = null;\n\n @Input('rxap-button')\n @Required\n public definition!: ButtonDefinition<any[]>;\n\n @Input()\n public icon: IconConfig | null = null;\n\n @HostBinding('attr.data-tooltip')\n @Input()\n public tooltip = '';\n\n @HostBinding('attr.data-tooltip-disabled')\n @Input()\n public tooltipDisabled = false;\n\n @HostBinding('attr.data-disabled')\n @HostBinding('attr.data-label')\n @Input()\n public label = '';\n\n @HostBinding('attr.data-show')\n @Input()\n public show = true;\n\n @HostBinding('attr.data-confirm')\n @Input()\n public confirm = false;\n\n @Output('confirmed')\n public confirmed$ = new EventEmitter();\n\n @Output('unconfirmed')\n public unconfirmed$ = new EventEmitter();\n\n public readonly types = ButtonTypes;\n private _confirmDirective!: ConfirmDirective;\n private _subscription = new Subscription();\n\n constructor(\n @Inject(ChangeDetectorRef)\n public readonly cdr: ChangeDetectorRef,\n @Inject(Overlay)\n public readonly overlay: Overlay,\n @Inject(INJECTOR)\n public readonly injector: Injector,\n @Inject(ElementRef)\n public readonly elementRef: ElementRef,\n @Inject(FocusMonitor)\n _focusMonitor: FocusMonitor,\n @Optional() @Inject(ANIMATION_MODULE_TYPE) _animationMode: string\n ) {\n super(elementRef, _focusMonitor, _animationMode);\n }\n\n public contextChange(context: any[] = []) {\n this.disabled = !!applyContextToFunctionOrConstant(\n this.definition.disabled,\n context,\n this.disabled\n );\n this.icon = applyContextToFunctionOrConstant(\n this.definition.icon,\n context,\n this.icon\n );\n this.label = applyContextToFunctionOrConstant(\n this.definition.label,\n context,\n this.label\n )!;\n this.tooltip = applyContextToFunctionOrConstant(\n this.definition.tooltip,\n context,\n this.tooltip\n )!;\n this.tooltipDisabled = !!applyContextToFunctionOrConstant(\n this.definition.tooltipDisabled,\n context,\n this.tooltipDisabled\n );\n this.confirm = applyContextToFunctionOrConstant(\n this.definition.confirm,\n context,\n this.confirm\n )!;\n this.color = applyContextToFunctionOrConstant(\n this.definition.theme,\n context,\n this.color\n ) as any;\n this.action = applyContextToFunctionOrConstant(\n this.definition.action,\n context,\n this.action\n );\n\n if (this.definition.hide) {\n this.show = !applyContextToFunctionOrConstant(\n this.definition.hide,\n context,\n this.show\n );\n }\n\n if (this.definition.show) {\n this.show = !!applyContextToFunctionOrConstant(\n this.definition.show,\n context,\n this.show\n );\n }\n }\n\n public contextAllChange(contextAll: any[][] = []) {\n this.cdr.detach();\n\n this.show = false;\n this.disabled = true;\n\n if (contextAll.length) {\n this.contextChange(contextAll[0]);\n }\n\n for (const context of contextAll) {\n this.disabled = !!applyContextToFunctionOrConstant(\n this.definition.disabled,\n context,\n this.disabled\n );\n if (this.definition.hide) {\n this.show = !applyContextToFunctionOrConstant(\n this.definition.hide,\n context,\n this.show\n );\n }\n\n if (this.definition.show) {\n this.show = !!applyContextToFunctionOrConstant(\n this.definition.show,\n context,\n this.show\n );\n }\n }\n\n this.cdr.reattach();\n }\n\n public ngOnChanges(changes: SimpleChanges): void {\n if (changes.context && !changes.context.firstChange) {\n this.contextChange(changes.context.currentValue);\n }\n if (changes.contextAll && !changes.contextAll.firstChange) {\n this.contextAllChange(changes.contextAll.currentValue);\n }\n }\n\n public ngOnInit() {\n if (this.context) {\n this.contextChange(this.context);\n }\n if (this.contextAll) {\n this.contextAllChange(this.contextAll);\n }\n if (!this.context && !this.contextAll) {\n this.contextChange();\n }\n this.updateClasses();\n this._confirmDirective = new ConfirmDirective(\n this.overlay,\n this.elementRef\n );\n this._subscription.add(\n this._confirmDirective.unconfirmed.subscribe(this.unconfirmed$)\n );\n this._subscription.add(\n this._confirmDirective.confirmed.subscribe(this.confirm)\n );\n }\n\n @HostListener('click')\n public onClick() {\n if (this.confirm) {\n this._confirmDirective.onClick();\n }\n const actions = this.getActions();\n if (actions.length) {\n actions.forEach((action) => {\n this.emitClick(action);\n });\n } else {\n this.emitClick(null);\n }\n }\n\n public emitClick($event: Action | null): void {\n if (this.definition.click$) {\n this.definition.click$.next($event ?? null);\n }\n }\n\n public getActions(): Action[] {\n if (this.contextAll && this.contextAll.length) {\n return this.contextAll\n .map((context) =>\n applyContextToFunctionOrConstant(\n this.definition.action,\n context,\n null\n )\n )\n .filter(Boolean) as Action[];\n } else if (this.action) {\n return [this.action];\n }\n return [];\n }\n\n public _hasHostAttributes(...attributes: string[]): boolean {\n const descriptor = Object.getOwnPropertyDescriptor(this, 'definition');\n const hasDefinition = !!descriptor && descriptor.hasOwnProperty('value');\n\n if (hasDefinition) {\n for (const attribute of attributes) {\n switch (attribute) {\n case 'mat-icon-button':\n if (this.definition.type === ButtonTypes.Icon) {\n return true;\n }\n break;\n\n case 'mat-fab':\n if (this.definition.type === ButtonTypes.Fab) {\n return true;\n }\n break;\n\n case 'mat-mini-fab':\n if (this.definition.type === ButtonTypes.MiniFab) {\n return true;\n }\n break;\n\n case 'mat-raised-button':\n if (this.definition.type === ButtonTypes.Raised) {\n return true;\n }\n break;\n\n // TODO : add support for all mat button types\n }\n }\n }\n\n return super._hasHostAttributes(...attributes);\n }\n\n /** Whether the button is icon button. */\n public isIconButton: boolean = this._hasHostAttributes('mat-icon-button');\n public isRoundButton: boolean = this._hasHostAttributes(\n 'mat-fab',\n 'mat-mini-fab'\n );\n\n public ngOnDestroy() {\n super.ngOnDestroy();\n this._confirmDirective.ngOnDestroy();\n this._subscription.unsubscribe();\n }\n\n public updateClasses(): void {\n this.isRoundButton = this._hasHostAttributes('mat-fab', 'mat-mini-fab');\n this.isIconButton = this._hasHostAttributes('mat-icon-button');\n\n for (const attr of BUTTON_HOST_ATTRIBUTES) {\n if (this._hasHostAttributes(attr)) {\n (this._getHostElement() as HTMLElement).classList.add(attr);\n }\n }\n\n if (this.isRoundButton) {\n this.color = DEFAULT_ROUND_BUTTON_COLOR;\n }\n }\n}\n","<span [matTooltipDisabled]=\"tooltipDisabled\" [matTooltip]=\"tooltip\" class=\"mat-button-wrapper\">\n <ng-template\n [ngIfElse]=\"labelOrIconTemplate\"\n [ngIfThen]=\"labelWithIconTemplate\"\n [ngIf]=\"icon && label\">\n </ng-template>\n</span>\n<div [class.mat-button-ripple-round]=\"isRoundButton || isIconButton\" [matRippleCentered]=\"isIconButton\"\n [matRippleDisabled]=\"_isRippleDisabled()\"\n [matRippleTrigger]=\"_getHostElement()\"\n class=\"mat-button-ripple\"\n matRipple></div>\n<div class=\"mat-button-focus-overlay\"></div>\n\n<ng-template #labelTemplate>{{label}}</ng-template>\n<ng-template #labelWithIconTemplate>\n <span fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\".8rem\">\n <mat-icon [inline]=\"true\" [rxapIcon]=\"icon\" fxFlex=\"nogrow\"></mat-icon>\n <span fxFlex=\"nogrow\">{{label}}</span>\n </span>\n</ng-template>\n<ng-template #iconTemplate>\n <mat-icon [rxapIcon]=\"icon\"></mat-icon>\n</ng-template>\n<ng-template #labelOrIconTemplate>\n <ng-template [ngIfElse]=\"labelTemplate\"\n [ngIfThen]=\"iconTemplate\"\n [ngIf]=\"icon\">\n </ng-template>\n</ng-template>\n","import { NgModule } from '@angular/core';\nimport { ConfirmComponent } from './confirm.component';\nimport { FlexModule } from '@angular/flex-layout';\nimport { MatIconModule } from '@angular/material/icon';\nimport { ConfirmDirective } from './confirm.directive';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { MatButtonModule } from '@angular/material/button';\n\n@NgModule({\n declarations: [ ConfirmComponent, ConfirmDirective ],\n imports: [\n FlexModule,\n MatButtonModule,\n MatIconModule,\n OverlayModule\n ],\n exports: [ ConfirmComponent, ConfirmDirective ]\n})\nexport class ConfirmComponentModule {}\n","import { NgModule } from '@angular/core';\nimport { ButtonComponent } from './button.component';\nimport { MatRippleModule } from '@angular/material/core';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { CommonModule } from '@angular/common';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { ConfirmComponentModule } from '../confirm/confirm.component.module';\nimport { IconDirectiveModule } from '@rxap/material-directives/icon';\n\n\n@NgModule({\n declarations: [ ButtonComponent ],\n imports: [\n MatRippleModule,\n FlexLayoutModule,\n CommonModule,\n MatIconModule,\n MatButtonModule,\n MatTooltipModule,\n ConfirmComponentModule,\n IconDirectiveModule\n ],\n exports: [ ButtonComponent ]\n})\nexport class ButtonComponentModule {}\n","import {\n Component,\n ChangeDetectionStrategy\n} from '@angular/core';\n\n@Component({\n templateUrl: './empty-router-outlet.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class EmptyRouterOutletComponent {}\n","<router-outlet></router-outlet>\n","import { NgModule } from '@angular/core';\nimport { EmptyRouterOutletComponent } from './empty-router-outlet.component';\nimport { RouterModule } from '@angular/router';\n\n\n@NgModule({\n declarations: [ EmptyRouterOutletComponent ],\n imports: [\n RouterModule\n ],\n exports: [ EmptyRouterOutletComponent ]\n})\nexport class EmptyRouterOutletModule {}\n","import { InjectionToken } from '@angular/core';\nimport {\n Observable,\n Subscription\n} from 'rxjs';\nimport { ErrorStateMatcher } from '@angular/material/core';\nimport { SubscriptionHandler } from '@rxap/utilities/rxjs';\n\nexport const JSON_VIEW_IGNORED_PROPERTIES = new InjectionToken('rxap/form-system/inspector/ignored-properties', {\n providedIn: 'root',\n factory: () => [\n '_subscriptions',\n 'subscriptions',\n 'injector',\n /\\$$/\n ]\n});\n\nexport const JSON_VIEW_IGNORED_TYPES = new InjectionToken('rxap/form-system/inspector/ignored-types', {\n providedIn: 'root',\n factory: () => [\n Observable,\n Promise,\n Subscription,\n SubscriptionHandler,\n ErrorStateMatcher\n ]\n});\n","import {\n Component,\n OnInit,\n ChangeDetectionStrategy,\n Input,\n OnChanges,\n SimpleChanges,\n Inject,\n ChangeDetectorRef\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport {\n isPromiseLike,\n clone\n} from '@rxap/utilities';\nimport {\n JSON_VIEW_IGNORED_PROPERTIES,\n JSON_VIEW_IGNORED_TYPES\n} from './json-viewer.tokens';\nimport { isTeardownLogic } from '@rxap/utilities/rxjs';\n\nexport interface Segment {\n key: string;\n value: any;\n type: undefined | string;\n description: string;\n expanded: boolean;\n}\n\n@Component({\n selector: 'rxap-json-viewer',\n templateUrl: './json-viewer.component.html',\n styleUrls: [ './json-viewer.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-json-viewer' }\n})\nexport class JsonViewerComponent implements OnInit, OnChanges {\n\n // TODO : add object input. The json input will not be cleaned\n @Input() public json: any;\n @Input() public expanded: any;\n\n public inspectValue: any;\n\n public ignoredProperties: Array<string | RegExp> = [];\n public ignoredTypes: any[] = [];\n\n public subscriptions = new Subscription();\n\n public segments: Segment[] = [];\n\n constructor(\n @Inject(JSON_VIEW_IGNORED_PROPERTIES) ignoredProperties: Array<string | RegExp | Array<string | RegExp>>,\n @Inject(JSON_VIEW_IGNORED_TYPES) ignoredTypes: Array<any | any[]>,\n @Inject(ChangeDetectorRef) public cdr: ChangeDetectorRef\n ) {\n function flat(acc: any[], cur: any | any[]): any[] {\n if (Array.isArray(cur)) {\n acc.push(...cur.reduce(flat, []));\n } else {\n acc.push(cur);\n }\n\n return acc;\n }\n\n this.ignoredProperties = ignoredProperties.reduce(flat, []);\n this.ignoredTypes = ignoredTypes.reduce(flat, []);\n }\n\n public ngOnInit() {\n this.setInspectValue(this.json);\n }\n\n public ngOnChanges(changes: SimpleChanges): void {\n const jsonChange = changes[ 'json' ];\n if (jsonChange) {\n this.setInspectValue(jsonChange.currentValue);\n }\n }\n\n public cleanObject(obj: any, stack: any[] = []): any {\n if (stack.some(item => item === obj)) {\n return '__circular__';\n }\n stack = stack.slice();\n stack.unshift(obj);\n return Object\n .entries(obj)\n .filter(([ key, value ]) => !isPromiseLike(value))\n .filter(([ key, value ]) => !isTeardownLogic(value))\n .filter(([ key, value ]) => this.ignoredProperties.every(ip => typeof ip === 'string' ? key !== ip : !key.match(ip)))\n .filter(([ key, value ]) => [ ...this.ignoredTypes ].every(type => !(value instanceof type)))\n .map(([ key, value ]) => {\n if (value && typeof value === 'object') {\n if (Array.isArray(value)) {\n return [ key, value.map(item => this.cleanObject(item, stack)) ];\n }\n if (typeof value === 'object') {\n return [ key, this.cleanObject(value, stack) ];\n }\n }\n return [ key, value ];\n })\n .sort((a, b) => a[ 0 ].localeCompare(b[ 0 ]))\n .reduce((controlView, [ key, value ]) => ({ ...controlView, [ key ]: value }), {});\n }\n\n public setInspectValue(json: any): void {\n if (typeof json !== 'object' || json === null || json === undefined) {\n console.warn('The inspection value is not an object!');\n } else {\n json = clone(json);\n let inspectValue: any;\n if (typeof json[ 'toJSON' ] === 'function') {\n inspectValue = json.toJSON();\n } else {\n inspectValue = this.cleanObject(json);\n }\n this.inspectValue = inspectValue;\n this.buildSegments(this.inspectValue);\n this.cdr.markForCheck();\n }\n }\n\n public buildSegments(inspectValue: any) {\n this.segments = [];\n\n if (typeof inspectValue === 'object') {\n Object.keys(inspectValue).forEach(key => {\n this.segments.push(this.parseKeyValue(key, inspectValue[ key ]));\n });\n } else {\n this.segments.push(this.parseKeyValue(`(${typeof inspectValue})`, inspectValue));\n }\n }\n\n public isExpandable(segment: Segment) {\n return segment.type === 'object' || segment.type === 'array';\n }\n\n public toggle(segment: Segment) {\n if (this.isExpandable(segment)) {\n segment.expanded = !segment.expanded;\n }\n }\n\n private parseKeyValue(key: any, value: any): Segment {\n const segment: Segment = {\n key: key,\n value: value,\n type: undefined,\n description: '' + value,\n expanded: this.expanded\n };\n\n switch (typeof segment.value) {\n case 'number': {\n segment.type = 'number';\n break;\n }\n case 'boolean': {\n segment.type = 'boolean';\n break;\n }\n case 'function': {\n segment.type = 'function';\n break;\n }\n case 'string': {\n segment.type = 'string';\n segment.description = '\"' + segment.value + '\"';\n break;\n }\n case 'undefined': {\n segment.type = 'undefined';\n segment.description = 'undefined';\n break;\n }\n case 'object': {\n // yea, null is object\n if (segment.value === null) {\n segment.type = 'null';\n segment.description = 'null';\n } else if (Array.isArray(segment.value)) {\n segment.type = 'array';\n segment.description = 'Array[' + segment.value.length + '] ' + JSON.stringify(segment.value);\n } else if (segment.value instanceof Date) {\n segment.type = 'date';\n } else {\n segment.type = 'object';\n segment.description = 'Object ' + JSON.stringify(segment.value);\n }\n break;\n }\n }\n\n return segment;\n }\n\n}\n","<section class=\"container\">\n <section\n *ngFor=\"let segment of segments\"\n [ngClass]=\"['segment', 'segment-type-' + segment.type]\">\n <section\n (click)=\"toggle(segment)\"\n [ngClass]=\"{\n 'segment-main': true,\n 'expandable': isExpandable(segment),\n 'expanded': segment.expanded\n }\">\n <div *ngIf=\"isExpandable(segment)\" class=\"toggler\"></div>\n <span class=\"segment-key\">{{ segment.key }}</span>\n <span class=\"segment-separator\">: </span>\n <span *ngIf=\"!segment.expanded || !isExpandable(segment)\" class=\"segment-value\">{{ segment.description }}</span>\n </section>\n <section *ngIf=\"segment.expanded && isExpandable(segment)\" class=\"children\">\n <rxap-json-viewer [expanded]=\"expanded\" [json]=\"segment.value\"></rxap-json-viewer>\n </section>\n </section>\n</section>\n","import { NgModule } from '@angular/core';\nimport { JsonViewerComponent } from './json-viewer.component';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [ JsonViewerComponent ],\n imports: [\n CommonModule\n ],\n exports: [ JsonViewerComponent ]\n})\nexport class JsonViewerModule {}\n","import {\n Component,\n ChangeDetectionStrategy,\n Input,\n Inject,\n} from '@angular/core';\nimport { MatSnackBar } from '@angular/material/snack-bar';\n\n@Component({\n selector: 'rxap-copy-to-clipboard-button',\n templateUrl: './copy-to-clipboard-button.component.html',\n styleUrls: ['./copy-to-clipboard-button.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-copy-to-clipboard-button' },\n})\nexport class CopyToClipboardButtonComponent {\n @Input()\n public value: string = '';\n\n constructor(@Inject(MatSnackBar) private readonly snackbar: MatSnackBar) {}\n\n public copied() {\n this.snackbar.open('Erfolgreich in die Zwischenablage kopiert.', 'OK', {\n duration: 2500,\n });\n }\n}\n","<button\n [cdkCopyToClipboard]=\"value\"\n (click)=\"$event.stopPropagation()\"\n (cdkCopyToClipboardCopied)=\"copied()\"\n mat-icon-button\n type=\"button\"\n>\n <mat-icon>content_copy</mat-icon>\n</button>\n","import {\n Component,\n ChangeDetectionStrategy,\n Input\n} from '@angular/core';\nimport { Required } from '@rxap/utilities';\n\n@Component({\n selector: 'rxap-copy-to-clipboard',\n templateUrl: './copy-to-clipboard.component.html',\n styleUrls: [ './copy-to-clipboard.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class CopyToClipboardComponent {\n\n @Input() public active: boolean = true;\n @Input() public disabled: boolean = false;\n @Input() @Required public value!: string;\n\n}\n","<div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\".2rem\">\n <rxap-copy-to-clipboard-button fxFlex=\"40px\" *ngIf=\"active\" [value]=\"value\"></rxap-copy-to-clipboard-button>\n <span #ref fxFlex=\"nogrow\" class=\"content\"><ng-content></ng-content></span>\n <span *ngIf=\"!ref.innerHTML.trim()\" fxFlex=\"nogrow\" class=\"content\">{{ value }}</span>\n</div>\n","import { NgModule } from '@angular/core';\nimport { CopyToClipboardButtonComponent } from './copy-to-clipboard-button.component';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatButtonModule } from '@angular/material/button';\nimport { ClipboardModule } from '@angular/cdk/clipboard';\nimport { MatSnackBarModule } from '@angular/material/snack-bar';\n\n@NgModule({\n declarations: [ CopyToClipboardButtonComponent ],\n imports: [\n MatIconModule,\n MatButtonModule,\n ClipboardModule,\n MatSnackBarModule\n ],\n exports: [ CopyToClipboardButtonComponent ]\n})\nexport class CopyToClipboardButtonComponentModule {}\n","import { NgModule } from '@angular/core';\nimport { CopyToClipboardComponent } from './copy-to-clipboard.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { ClipboardModule } from '@angular/cdk/clipboard';\nimport { CommonModule } from '@angular/common';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatSnackBarModule } from '@angular/material/snack-bar';\nimport { CopyToClipboardButtonComponentModule } from '../copy-to-clipboard-button/copy-to-clipboard-button.component.module';\n\n\n@NgModule({\n declarations: [ CopyToClipboardComponent ],\n imports: [\n FlexLayoutModule,\n ClipboardModule,\n CommonModule,\n MatIconModule,\n MatButtonModule,\n MatSnackBarModule,\n CopyToClipboardButtonComponentModule,\n ],\n exports: [ CopyToClipboardComponent ]\n})\nexport class CopyToClipboardModule {}\n","import { Component, ChangeDetectionStrategy, Inject } from '@angular/core';\nimport { ThemeService } from '@rxap/services';\n\n@Component({\n selector: 'rxap-dark-mode-toggle-button',\n templateUrl: './dark-mode-toggle-button.component.html',\n styleUrls: ['./dark-mode-toggle-button.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-dark-mode-toggle-button' },\n})\nexport class DarkModeToggleButtonComponent {\n constructor(\n @Inject(ThemeService)\n public readonly theme: ThemeService\n ) {}\n}\n","<button rxapStopPropagation mat-icon-button (click)=\"theme.toggleDarkTheme()\">\n <mat-icon *ngIf=\"theme.darkMode\">brightness_2</mat-icon>\n <mat-icon *ngIf=\"!theme.darkMode\">brightness_5</mat-icon>\n</button>\n","import { NgModule } from '@angular/core';\nimport { DarkModeToggleButtonComponent } from './dark-mode-toggle-button.component';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { CommonModule } from '@angular/common';\nimport { StopPropagationDirectiveModule } from '@rxap/directives';\n\n\n@NgModule({\n declarations: [DarkModeToggleButtonComponent],\n imports: [\n MatButtonModule,\n MatIconModule,\n CommonModule,\n StopPropagationDirectiveModule,\n ],\n exports: [DarkModeToggleButtonComponent]\n})\nexport class DarkModeToggleButtonComponentModule { }\n","import {\n Component,\n ChangeDetectionStrategy\n} from '@angular/core';\n\n@Component({\n selector: 'rxap-navigate-back-button',\n templateUrl: './navigate-back-button.component.html',\n styleUrls: [ './navigate-back-button.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-navigate-back-button' }\n})\nexport class NavigateBackButtonComponent {\n\n public navigateBack() {\n window.history.back();\n }\n\n}\n","<div fxLayout=\"row\" fxLayoutGap=\"32px\" fxLayoutAlign=\"start center\">\n <div fxFlex=\"nogrow\">\n <button (click)=\"navigateBack()\" mat-stroked-button color=\"accent\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </div>\n <ng-content></ng-content>\n</div>\n","import { NgModule } from '@angular/core';\nimport { NavigateBackButtonComponent } from './navigate-back-button.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\n\n\n@NgModule({\n declarations: [ NavigateBackButtonComponent ],\n imports: [\n FlexLayoutModule,\n MatButtonModule,\n MatIconModule\n ],\n exports: [ NavigateBackButtonComponent ]\n})\nexport class NavigateBackButtonComponentModule {}\n","// region button\n\nexport * from './lib/button/button.component.module';\nexport * from './lib/button/button.component';\n\n// endregion\n\n// region confirm\n\nexport * from './lib/confirm/confirm.component';\nexport * from './lib/confirm/confirm.component.module';\nexport * from './lib/confirm/confirm.directive';\n\n// endregion\n\nexport * from './lib/empty-router-outlet/empty-router-outlet.component.module';\nexport * from './lib/empty-router-outlet/empty-router-outlet.component';\n\n// region json viewer\n\nexport * from './lib/json-viewer/json-viewer.component.module';\nexport * from './lib/json-viewer/json-viewer.component';\nexport * from './lib/json-viewer/json-viewer.tokens';\n\n// endregion\n\n// region copy to clipboard\n\nexport * from './lib/copy-to-clipboard/copy-to-clipboard.component.module';\nexport * from './lib/copy-to-clipboard/copy-to-clipboard.component';\n\n// endregion\n\n// region copy to clipboard button\n\nexport * from './lib/copy-to-clipboard-button/copy-to-clipboard-button.component';\nexport * from './lib/copy-to-clipboard-button/copy-to-clipboard-button.component.module';\n\n// endregion\n\n// region dark-mode-toggle-button\n\nexport * from './lib/dark-mode-toggle-button/dark-mode-toggle-button.component'\nexport * from './lib/dark-mode-toggle-button/dark-mode-toggle-button.component.module'\n\n// endregion\n\n// region navigate-back-button\n\nexport * from './lib/navigate-back-button/navigate-back-button.component';\nexport * from './lib/navigate-back-button/navigate-back-button.component.module';\n\n// endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgBa,gBAAgB;IAT7B;QAYS,cAAS,GAAG,IAAI,YAAY,EAAQ,CAAC;QAGrC,gBAAW,GAAG,IAAI,YAAY,EAAQ,CAAC;KAE/C;;6GARY,gBAAgB;iGAAhB,gBAAgB,+JChB7B,2WAQA;2FDQa,gBAAgB;kBAT5B,SAAS;+BACS,cAAc,QAGd;wBACf,KAAK,EAAE,cAAc;qBACtB,mBACgB,uBAAuB,CAAC,MAAM;8BAKxC,SAAS;sBADf,MAAM;gBAIA,WAAW;sBADjB,MAAM;;;MEFI,gBAAgB;IAsB3B,YAEmB,OAAgB,EAEhB,UAAsB;QAFtB,YAAO,GAAP,OAAO,CAAS;QAEhB,eAAU,GAAV,UAAU,CAAY;QAflC,cAAS,GAAG,IAAI,YAAY,EAAiB,CAAC;QAG9C,gBAAW,GAAG,IAAI,YAAY,EAAiB,CAAC;QAE/C,iBAAY,GAAwB,IAAI,CAAC;KAW7C;;;IAxBJ,IACW,UAAU,CAAC,KAAa;QACjC,IAAI,KAAK,KAAK,EAAE,EAAE;YAChB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;SAC1B;KACF;IAsBM,OAAO;QACZ,IAAI,IAAI,CAAC,YAAY,EAAE;YACrB,OAAO;SACR;QAED,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;YACpC,cAAc,EAAE,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,KAAK,EAAE;YACrD,gBAAgB,EAAE,IAAI,CAAC,OAAO;iBAC3B,QAAQ,EAAE;iBACV,mBAAmB,CAAC,IAAI,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confirm/confirm.component.ts","../../../../libs/components/src/lib/confirm/confirm.component.html","../../../../libs/components/src/lib/confirm/confirm.directive.ts","../../../../libs/components/src/lib/button/button.component.ts","../../../../libs/components/src/lib/button/button.component.html","../../../../libs/components/src/lib/confirm/confirm.component.module.ts","../../../../libs/components/src/lib/button/button.component.module.ts","../../../../libs/components/src/lib/empty-router-outlet/empty-router-outlet.component.ts","../../../../libs/components/src/lib/empty-router-outlet/empty-router-outlet.component.html","../../../../libs/components/src/lib/empty-router-outlet/empty-router-outlet.component.module.ts","../../../../libs/components/src/lib/json-viewer/json-viewer.tokens.ts","../../../../libs/components/src/lib/json-viewer/json-viewer.component.ts","../../../../libs/components/src/lib/json-viewer/json-viewer.component.html","../../../../libs/components/src/lib/json-viewer/json-viewer.component.module.ts","../../../../libs/components/src/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.ts","../../../../libs/components/src/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.html","../../../../libs/components/src/lib/copy-to-clipboard/copy-to-clipboard.component.ts","../../../../libs/components/src/lib/copy-to-clipboard/copy-to-clipboard.component.html","../../../../libs/components/src/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.module.ts","../../../../libs/components/src/lib/copy-to-clipboard/copy-to-clipboard.component.module.ts","../../../../libs/components/src/lib/dark-mode-toggle-button/dark-mode-toggle-button.component.ts","../../../../libs/components/src/lib/dark-mode-toggle-button/dark-mode-toggle-button.component.html","../../../../libs/components/src/lib/dark-mode-toggle-button/dark-mode-toggle-button.component.module.ts","../../../../libs/components/src/lib/navigate-back-button/navigate-back-button.component.ts","../../../../libs/components/src/lib/navigate-back-button/navigate-back-button.component.html","../../../../libs/components/src/lib/navigate-back-button/navigate-back-button.component.module.ts","../../../../libs/components/src/index.ts","../../../../libs/components/src/rxap-components.ts"],"sourcesContent":["import {\n Component,\n ChangeDetectionStrategy,\n EventEmitter,\n Output\n} from '@angular/core';\n\n@Component({\n selector: 'rxap-confirm',\n templateUrl: './confirm.component.html',\n styleUrls: [ './confirm.component.scss' ],\n host: {\n class: 'rxap-confirm'\n },\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ConfirmComponent {\n\n @Output()\n public confirmed = new EventEmitter<void>();\n\n @Output()\n public unconfirmed = new EventEmitter<void>();\n\n}\n","<div class=\"container mat-elevation-z2\" fxLayout=\"row\" fxLayoutGap=\"4px\">\n <button type=\"button\" (click)=\"confirmed.emit()\" class=\"accept\" mat-icon-button>\n <mat-icon>done</mat-icon>\n </button>\n <button type=\"button\" (click)=\"unconfirmed.emit()\" class=\"decline\" mat-icon-button>\n <mat-icon>clear</mat-icon>\n </button>\n</div>\n","import {\n Directive,\n HostListener,\n ElementRef,\n EventEmitter,\n Output,\n OnDestroy,\n Input,\n Inject,\n} from '@angular/core';\nimport { ConfirmComponent } from './confirm.component';\nimport {\n Overlay,\n OverlayRef,\n PositionStrategy\n} from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { tap, take } from 'rxjs/operators';\nimport { Subscription } from 'rxjs';\n\n@Directive({\n selector: '[rxapConfirm]',\n})\nexport class ConfirmDirective<T = any> implements OnDestroy {\n // use a set input to allow auto import detection if the eventValue\n // is not set\n @Input('rxapConfirm')\n public set eventValue(value: T | '') {\n if (value !== '') {\n this._eventValue = value;\n }\n }\n\n @Output()\n public confirmed = new EventEmitter<T | undefined>();\n\n @Output()\n public unconfirmed = new EventEmitter<T | undefined>();\n\n private subscription: Subscription | null = null;\n\n private overlayRef?: OverlayRef;\n\n private _eventValue?: T;\n\n protected positionStrategy?: PositionStrategy;\n\n protected isOverlyOpen = false;\n\n constructor(\n @Inject(Overlay)\n private readonly overlay: Overlay,\n @Inject(ElementRef)\n private readonly elementRef: ElementRef\n ) {\n this.positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.elementRef.nativeElement)\n .withPositions([\n {\n originX: 'start',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'top',\n },\n ])\n .withDefaultOffsetY(10);\n }\n\n @HostListener('click', [ '$event' ])\n public onClick($event?: Event) {\n this.openConfirmOverly();\n }\n\n public ngOnDestroy() {\n this.subscription?.unsubscribe();\n this.overlayRef?.dispose();\n }\n\n protected openConfirmOverly() {\n if (this.isOverlyOpen) {\n return;\n }\n this.isOverlyOpen = true;\n this.overlayRef = this.overlay.create({\n scrollStrategy: this.overlay.scrollStrategies.close(),\n positionStrategy: this.positionStrategy,\n });\n const componentPortal = new ComponentPortal(ConfirmComponent);\n const componentRef = this.overlayRef.attach(componentPortal);\n\n this.subscription?.unsubscribe();\n this.subscription = new Subscription();\n\n this.subscription.add(\n componentRef.instance.confirmed\n .pipe(\n take(1),\n tap(() => this.onConfirmed(this._eventValue)),\n tap(() => this.overlayRef?.dispose()),\n tap(() => this.isOverlyOpen = false),\n tap(() => (this.subscription = null)),\n tap(() => this.subscription?.unsubscribe())\n )\n .subscribe()\n );\n\n this.subscription.add(\n componentRef.instance.unconfirmed\n .pipe(\n take(1),\n tap(() => this.onUnconfirmed(this._eventValue)),\n tap(() => this.overlayRef?.dispose()),\n tap(() => this.isOverlyOpen = false),\n tap(() => (this.subscription = null)),\n tap(() => this.subscription?.unsubscribe())\n )\n .subscribe()\n );\n\n this.subscription.add(\n this.overlayRef\n .detachments()\n .pipe(\n take(1),\n tap(() => this.isOverlyOpen = false),\n tap(() => (this.subscription = null)),\n tap(() => this.subscription?.unsubscribe())\n )\n .subscribe()\n );\n }\n\n protected onConfirmed(eventValue?: T) {\n this.confirmed.emit(eventValue);\n }\n\n protected onUnconfirmed(eventValue?: T) {\n this.unconfirmed.emit(eventValue);\n }\n\n}\n","import type { Injector } from '@angular/core';\nimport {\n Component,\n OnInit,\n ChangeDetectionStrategy,\n OnChanges,\n Input,\n HostBinding,\n ElementRef,\n ChangeDetectorRef,\n SimpleChanges,\n Inject,\n Optional,\n ViewEncapsulation,\n HostListener,\n EventEmitter,\n Output,\n OnDestroy,\n INJECTOR\n} from '@angular/core';\nimport {\n Required,\n Action,\n IsSvgIcon,\n IsMaterialIcon,\n IconConfig,\n applyContextToFunctionOrConstant\n} from '@rxap/utilities';\nimport { Overlay } from '@angular/cdk/overlay';\nimport { MatButton } from '@angular/material/button';\nimport { FocusMonitor } from '@angular/cdk/a11y';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\nimport { ConfirmDirective } from '../confirm/confirm.directive';\nimport { Subscription } from 'rxjs';\nimport {\n ButtonDefinition,\n ButtonTypes\n} from '@rxap/utilities/rxjs';\n\nconst DEFAULT_ROUND_BUTTON_COLOR = 'accent';\n\nconst BUTTON_HOST_ATTRIBUTES = [\n 'mat-button',\n 'mat-flat-button',\n 'mat-icon-button',\n 'mat-raised-button',\n 'mat-stroked-button',\n 'mat-mini-fab',\n 'mat-fab',\n];\n\n@Component({\n selector: 'button[rxap-button]',\n templateUrl: './button.component.html',\n styleUrls: ['./button.component.scss'],\n inputs: ['disabled', 'disableRipple', 'color'],\n host: {\n '[attr.disabled]': 'disabled || null',\n '[class._mat-animation-noopable]': '_animationMode === \"NoopAnimations\"',\n class: 'mat-focus-indicator',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ButtonComponent\n extends MatButton\n implements OnInit, OnChanges, OnDestroy\n{\n @HostBinding('attr.data-svg-icon')\n public get svgIcon(): boolean {\n if (this.icon) {\n return IsSvgIcon(this.icon);\n }\n\n return false;\n }\n\n @HostBinding('attr.data-material-icon')\n public get materialIcon(): boolean {\n if (this.icon) {\n return IsMaterialIcon(this.icon);\n }\n\n return false;\n }\n\n @HostBinding('attr.data-icon')\n public get iconName(): string | null {\n if (this.icon) {\n if (IsSvgIcon(this.icon)) {\n return this.icon.svgIcon;\n } else {\n return this.icon.icon;\n }\n }\n\n return null;\n }\n\n @HostBinding('attr.data-name')\n public get name(): string {\n return this.definition.name;\n }\n\n @Input() public context?: any[];\n @Input() public contextAll?: any[][];\n\n @Input()\n public action: Action | null = null;\n\n @Input('rxap-button')\n @Required\n public definition!: ButtonDefinition<any[]>;\n\n @Input()\n public icon: IconConfig | null = null;\n\n @HostBinding('attr.data-tooltip')\n @Input()\n public tooltip = '';\n\n @HostBinding('attr.data-tooltip-disabled')\n @Input()\n public tooltipDisabled = false;\n\n @HostBinding('attr.data-disabled')\n @HostBinding('attr.data-label')\n @Input()\n public label = '';\n\n @HostBinding('attr.data-show')\n @Input()\n public show = true;\n\n @HostBinding('attr.data-confirm')\n @Input()\n public confirm = false;\n\n @Output('confirmed')\n public confirmed$ = new EventEmitter();\n\n @Output('unconfirmed')\n public unconfirmed$ = new EventEmitter();\n\n public readonly types = ButtonTypes;\n private _confirmDirective!: ConfirmDirective;\n private _subscription = new Subscription();\n\n constructor(\n @Inject(ChangeDetectorRef)\n public readonly cdr: ChangeDetectorRef,\n @Inject(Overlay)\n public readonly overlay: Overlay,\n @Inject(INJECTOR)\n public readonly injector: Injector,\n @Inject(ElementRef)\n public readonly elementRef: ElementRef,\n @Inject(FocusMonitor)\n _focusMonitor: FocusMonitor,\n @Optional() @Inject(ANIMATION_MODULE_TYPE) _animationMode: string\n ) {\n super(elementRef, _focusMonitor, _animationMode);\n }\n\n public contextChange(context: any[] = []) {\n this.disabled = !!applyContextToFunctionOrConstant(\n this.definition.disabled,\n context,\n this.disabled\n );\n this.icon = applyContextToFunctionOrConstant(\n this.definition.icon,\n context,\n this.icon\n );\n this.label = applyContextToFunctionOrConstant(\n this.definition.label,\n context,\n this.label\n )!;\n this.tooltip = applyContextToFunctionOrConstant(\n this.definition.tooltip,\n context,\n this.tooltip\n )!;\n this.tooltipDisabled = !!applyContextToFunctionOrConstant(\n this.definition.tooltipDisabled,\n context,\n this.tooltipDisabled\n );\n this.confirm = applyContextToFunctionOrConstant(\n this.definition.confirm,\n context,\n this.confirm\n )!;\n this.color = applyContextToFunctionOrConstant(\n this.definition.theme,\n context,\n this.color\n ) as any;\n this.action = applyContextToFunctionOrConstant(\n this.definition.action,\n context,\n this.action\n );\n\n if (this.definition.hide) {\n this.show = !applyContextToFunctionOrConstant(\n this.definition.hide,\n context,\n this.show\n );\n }\n\n if (this.definition.show) {\n this.show = !!applyContextToFunctionOrConstant(\n this.definition.show,\n context,\n this.show\n );\n }\n }\n\n public contextAllChange(contextAll: any[][] = []) {\n this.cdr.detach();\n\n this.show = false;\n this.disabled = true;\n\n if (contextAll.length) {\n this.contextChange(contextAll[0]);\n }\n\n for (const context of contextAll) {\n this.disabled = !!applyContextToFunctionOrConstant(\n this.definition.disabled,\n context,\n this.disabled\n );\n if (this.definition.hide) {\n this.show = !applyContextToFunctionOrConstant(\n this.definition.hide,\n context,\n this.show\n );\n }\n\n if (this.definition.show) {\n this.show = !!applyContextToFunctionOrConstant(\n this.definition.show,\n context,\n this.show\n );\n }\n }\n\n this.cdr.reattach();\n }\n\n public ngOnChanges(changes: SimpleChanges): void {\n if (changes.context && !changes.context.firstChange) {\n this.contextChange(changes.context.currentValue);\n }\n if (changes.contextAll && !changes.contextAll.firstChange) {\n this.contextAllChange(changes.contextAll.currentValue);\n }\n }\n\n public ngOnInit() {\n if (this.context) {\n this.contextChange(this.context);\n }\n if (this.contextAll) {\n this.contextAllChange(this.contextAll);\n }\n if (!this.context && !this.contextAll) {\n this.contextChange();\n }\n this.updateClasses();\n this._confirmDirective = new ConfirmDirective(\n this.overlay,\n this.elementRef\n );\n this._subscription.add(\n this._confirmDirective.unconfirmed.subscribe(this.unconfirmed$)\n );\n this._subscription.add(\n this._confirmDirective.confirmed.subscribe(this.confirm)\n );\n }\n\n @HostListener('click', [ '$event' ])\n public onClick($event: Event) {\n if (this.confirm) {\n this._confirmDirective.onClick($event);\n }\n const actions = this.getActions();\n if (actions.length) {\n actions.forEach((action) => {\n this.emitClick(action);\n });\n } else {\n this.emitClick(null);\n }\n }\n\n public emitClick($event: Action | null): void {\n if (this.definition.click$) {\n this.definition.click$.next($event ?? null);\n }\n }\n\n public getActions(): Action[] {\n if (this.contextAll && this.contextAll.length) {\n return this.contextAll\n .map((context) =>\n applyContextToFunctionOrConstant(\n this.definition.action,\n context,\n null\n )\n )\n .filter(Boolean) as Action[];\n } else if (this.action) {\n return [this.action];\n }\n return [];\n }\n\n public _hasHostAttributes(...attributes: string[]): boolean {\n const descriptor = Object.getOwnPropertyDescriptor(this, 'definition');\n const hasDefinition = !!descriptor && descriptor.hasOwnProperty('value');\n\n if (hasDefinition) {\n for (const attribute of attributes) {\n switch (attribute) {\n case 'mat-icon-button':\n if (this.definition.type === ButtonTypes.Icon) {\n return true;\n }\n break;\n\n case 'mat-fab':\n if (this.definition.type === ButtonTypes.Fab) {\n return true;\n }\n break;\n\n case 'mat-mini-fab':\n if (this.definition.type === ButtonTypes.MiniFab) {\n return true;\n }\n break;\n\n case 'mat-raised-button':\n if (this.definition.type === ButtonTypes.Raised) {\n return true;\n }\n break;\n\n // TODO : add support for all mat button types\n }\n }\n }\n\n return super._hasHostAttributes(...attributes);\n }\n\n /** Whether the button is icon button. */\n public isIconButton: boolean = this._hasHostAttributes('mat-icon-button');\n public isRoundButton: boolean = this._hasHostAttributes(\n 'mat-fab',\n 'mat-mini-fab'\n );\n\n public ngOnDestroy() {\n super.ngOnDestroy();\n this._confirmDirective.ngOnDestroy();\n this._subscription.unsubscribe();\n }\n\n public updateClasses(): void {\n this.isRoundButton = this._hasHostAttributes('mat-fab', 'mat-mini-fab');\n this.isIconButton = this._hasHostAttributes('mat-icon-button');\n\n for (const attr of BUTTON_HOST_ATTRIBUTES) {\n if (this._hasHostAttributes(attr)) {\n (this._getHostElement() as HTMLElement).classList.add(attr);\n }\n }\n\n if (this.isRoundButton) {\n this.color = DEFAULT_ROUND_BUTTON_COLOR;\n }\n }\n}\n","<span [matTooltipDisabled]=\"tooltipDisabled\" [matTooltip]=\"tooltip\" class=\"mat-button-wrapper\">\n <ng-template\n [ngIfElse]=\"labelOrIconTemplate\"\n [ngIfThen]=\"labelWithIconTemplate\"\n [ngIf]=\"icon && label\">\n </ng-template>\n</span>\n<div [class.mat-button-ripple-round]=\"isRoundButton || isIconButton\" [matRippleCentered]=\"isIconButton\"\n [matRippleDisabled]=\"_isRippleDisabled()\"\n [matRippleTrigger]=\"_getHostElement()\"\n class=\"mat-button-ripple\"\n matRipple></div>\n<div class=\"mat-button-focus-overlay\"></div>\n\n<ng-template #labelTemplate>{{label}}</ng-template>\n<ng-template #labelWithIconTemplate>\n <span fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\".8rem\">\n <mat-icon [inline]=\"true\" [rxapIcon]=\"icon\" fxFlex=\"nogrow\"></mat-icon>\n <span fxFlex=\"nogrow\">{{label}}</span>\n </span>\n</ng-template>\n<ng-template #iconTemplate>\n <mat-icon [rxapIcon]=\"icon\"></mat-icon>\n</ng-template>\n<ng-template #labelOrIconTemplate>\n <ng-template [ngIfElse]=\"labelTemplate\"\n [ngIfThen]=\"iconTemplate\"\n [ngIf]=\"icon\">\n </ng-template>\n</ng-template>\n","import { NgModule } from '@angular/core';\nimport { ConfirmComponent } from './confirm.component';\nimport { FlexModule } from '@angular/flex-layout';\nimport { MatIconModule } from '@angular/material/icon';\nimport { ConfirmDirective } from './confirm.directive';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { MatButtonModule } from '@angular/material/button';\n\n@NgModule({\n declarations: [ ConfirmComponent, ConfirmDirective ],\n imports: [\n FlexModule,\n MatButtonModule,\n MatIconModule,\n OverlayModule\n ],\n exports: [ ConfirmComponent, ConfirmDirective ]\n})\nexport class ConfirmComponentModule {}\n","import { NgModule } from '@angular/core';\nimport { ButtonComponent } from './button.component';\nimport { MatRippleModule } from '@angular/material/core';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { CommonModule } from '@angular/common';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { ConfirmComponentModule } from '../confirm/confirm.component.module';\nimport { IconDirectiveModule } from '@rxap/material-directives/icon';\n\n\n@NgModule({\n declarations: [ ButtonComponent ],\n imports: [\n MatRippleModule,\n FlexLayoutModule,\n CommonModule,\n MatIconModule,\n MatButtonModule,\n MatTooltipModule,\n ConfirmComponentModule,\n IconDirectiveModule\n ],\n exports: [ ButtonComponent ]\n})\nexport class ButtonComponentModule {}\n","import {\n Component,\n ChangeDetectionStrategy\n} from '@angular/core';\n\n@Component({\n templateUrl: './empty-router-outlet.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class EmptyRouterOutletComponent {}\n","<router-outlet></router-outlet>\n","import { NgModule } from '@angular/core';\nimport { EmptyRouterOutletComponent } from './empty-router-outlet.component';\nimport { RouterModule } from '@angular/router';\n\n\n@NgModule({\n declarations: [ EmptyRouterOutletComponent ],\n imports: [\n RouterModule\n ],\n exports: [ EmptyRouterOutletComponent ]\n})\nexport class EmptyRouterOutletModule {}\n","import { InjectionToken } from '@angular/core';\nimport {\n Observable,\n Subscription\n} from 'rxjs';\nimport { ErrorStateMatcher } from '@angular/material/core';\nimport { SubscriptionHandler } from '@rxap/utilities/rxjs';\n\nexport const JSON_VIEW_IGNORED_PROPERTIES = new InjectionToken('rxap/form-system/inspector/ignored-properties', {\n providedIn: 'root',\n factory: () => [\n '_subscriptions',\n 'subscriptions',\n 'injector',\n /\\$$/\n ]\n});\n\nexport const JSON_VIEW_IGNORED_TYPES = new InjectionToken('rxap/form-system/inspector/ignored-types', {\n providedIn: 'root',\n factory: () => [\n Observable,\n Promise,\n Subscription,\n SubscriptionHandler,\n ErrorStateMatcher\n ]\n});\n","import {\n Component,\n OnInit,\n ChangeDetectionStrategy,\n Input,\n OnChanges,\n SimpleChanges,\n Inject,\n ChangeDetectorRef\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport {\n isPromiseLike,\n clone\n} from '@rxap/utilities';\nimport {\n JSON_VIEW_IGNORED_PROPERTIES,\n JSON_VIEW_IGNORED_TYPES\n} from './json-viewer.tokens';\nimport { isTeardownLogic } from '@rxap/utilities/rxjs';\n\nexport interface Segment {\n key: string;\n value: any;\n type: undefined | string;\n description: string;\n expanded: boolean;\n}\n\n@Component({\n selector: 'rxap-json-viewer',\n templateUrl: './json-viewer.component.html',\n styleUrls: [ './json-viewer.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-json-viewer' }\n})\nexport class JsonViewerComponent implements OnInit, OnChanges {\n\n // TODO : add object input. The json input will not be cleaned\n @Input() public json: any;\n @Input() public expanded: any;\n\n public inspectValue: any;\n\n public ignoredProperties: Array<string | RegExp> = [];\n public ignoredTypes: any[] = [];\n\n public subscriptions = new Subscription();\n\n public segments: Segment[] = [];\n\n constructor(\n @Inject(JSON_VIEW_IGNORED_PROPERTIES) ignoredProperties: Array<string | RegExp | Array<string | RegExp>>,\n @Inject(JSON_VIEW_IGNORED_TYPES) ignoredTypes: Array<any | any[]>,\n @Inject(ChangeDetectorRef) public cdr: ChangeDetectorRef\n ) {\n function flat(acc: any[], cur: any | any[]): any[] {\n if (Array.isArray(cur)) {\n acc.push(...cur.reduce(flat, []));\n } else {\n acc.push(cur);\n }\n\n return acc;\n }\n\n this.ignoredProperties = ignoredProperties.reduce(flat, []);\n this.ignoredTypes = ignoredTypes.reduce(flat, []);\n }\n\n public ngOnInit() {\n this.setInspectValue(this.json);\n }\n\n public ngOnChanges(changes: SimpleChanges): void {\n const jsonChange = changes[ 'json' ];\n if (jsonChange) {\n this.setInspectValue(jsonChange.currentValue);\n }\n }\n\n public cleanObject(obj: any, stack: any[] = []): any {\n if (stack.some(item => item === obj)) {\n return '__circular__';\n }\n stack = stack.slice();\n stack.unshift(obj);\n return Object\n .entries(obj)\n .filter(([ key, value ]) => !isPromiseLike(value))\n .filter(([ key, value ]) => !isTeardownLogic(value))\n .filter(([ key, value ]) => this.ignoredProperties.every(ip => typeof ip === 'string' ? key !== ip : !key.match(ip)))\n .filter(([ key, value ]) => [ ...this.ignoredTypes ].every(type => !(value instanceof type)))\n .map(([ key, value ]) => {\n if (value && typeof value === 'object') {\n if (Array.isArray(value)) {\n return [ key, value.map(item => this.cleanObject(item, stack)) ];\n }\n if (typeof value === 'object') {\n return [ key, this.cleanObject(value, stack) ];\n }\n }\n return [ key, value ];\n })\n .sort((a, b) => a[ 0 ].localeCompare(b[ 0 ]))\n .reduce((controlView, [ key, value ]) => ({ ...controlView, [ key ]: value }), {});\n }\n\n public setInspectValue(json: any): void {\n if (typeof json !== 'object' || json === null || json === undefined) {\n console.warn('The inspection value is not an object!');\n } else {\n json = clone(json);\n let inspectValue: any;\n if (typeof json[ 'toJSON' ] === 'function') {\n inspectValue = json.toJSON();\n } else {\n inspectValue = this.cleanObject(json);\n }\n this.inspectValue = inspectValue;\n this.buildSegments(this.inspectValue);\n this.cdr.markForCheck();\n }\n }\n\n public buildSegments(inspectValue: any) {\n this.segments = [];\n\n if (typeof inspectValue === 'object') {\n Object.keys(inspectValue).forEach(key => {\n this.segments.push(this.parseKeyValue(key, inspectValue[ key ]));\n });\n } else {\n this.segments.push(this.parseKeyValue(`(${typeof inspectValue})`, inspectValue));\n }\n }\n\n public isExpandable(segment: Segment) {\n return segment.type === 'object' || segment.type === 'array';\n }\n\n public toggle(segment: Segment) {\n if (this.isExpandable(segment)) {\n segment.expanded = !segment.expanded;\n }\n }\n\n private parseKeyValue(key: any, value: any): Segment {\n const segment: Segment = {\n key: key,\n value: value,\n type: undefined,\n description: '' + value,\n expanded: this.expanded\n };\n\n switch (typeof segment.value) {\n case 'number': {\n segment.type = 'number';\n break;\n }\n case 'boolean': {\n segment.type = 'boolean';\n break;\n }\n case 'function': {\n segment.type = 'function';\n break;\n }\n case 'string': {\n segment.type = 'string';\n segment.description = '\"' + segment.value + '\"';\n break;\n }\n case 'undefined': {\n segment.type = 'undefined';\n segment.description = 'undefined';\n break;\n }\n case 'object': {\n // yea, null is object\n if (segment.value === null) {\n segment.type = 'null';\n segment.description = 'null';\n } else if (Array.isArray(segment.value)) {\n segment.type = 'array';\n segment.description = 'Array[' + segment.value.length + '] ' + JSON.stringify(segment.value);\n } else if (segment.value instanceof Date) {\n segment.type = 'date';\n } else {\n segment.type = 'object';\n segment.description = 'Object ' + JSON.stringify(segment.value);\n }\n break;\n }\n }\n\n return segment;\n }\n\n}\n","<section class=\"container\">\n <section\n *ngFor=\"let segment of segments\"\n [ngClass]=\"['segment', 'segment-type-' + segment.type]\">\n <section\n (click)=\"toggle(segment)\"\n [ngClass]=\"{\n 'segment-main': true,\n 'expandable': isExpandable(segment),\n 'expanded': segment.expanded\n }\">\n <div *ngIf=\"isExpandable(segment)\" class=\"toggler\"></div>\n <span class=\"segment-key\">{{ segment.key }}</span>\n <span class=\"segment-separator\">: </span>\n <span *ngIf=\"!segment.expanded || !isExpandable(segment)\" class=\"segment-value\">{{ segment.description }}</span>\n </section>\n <section *ngIf=\"segment.expanded && isExpandable(segment)\" class=\"children\">\n <rxap-json-viewer [expanded]=\"expanded\" [json]=\"segment.value\"></rxap-json-viewer>\n </section>\n </section>\n</section>\n","import { NgModule } from '@angular/core';\nimport { JsonViewerComponent } from './json-viewer.component';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [ JsonViewerComponent ],\n imports: [\n CommonModule\n ],\n exports: [ JsonViewerComponent ]\n})\nexport class JsonViewerModule {}\n","import {\n Component,\n ChangeDetectionStrategy,\n Input,\n Inject,\n} from '@angular/core';\nimport { MatSnackBar } from '@angular/material/snack-bar';\n\n@Component({\n selector: 'rxap-copy-to-clipboard-button',\n templateUrl: './copy-to-clipboard-button.component.html',\n styleUrls: ['./copy-to-clipboard-button.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-copy-to-clipboard-button' },\n})\nexport class CopyToClipboardButtonComponent {\n @Input()\n public value: string = '';\n\n constructor(@Inject(MatSnackBar) private readonly snackbar: MatSnackBar) {}\n\n public copied() {\n this.snackbar.open('Erfolgreich in die Zwischenablage kopiert.', 'OK', {\n duration: 2500,\n });\n }\n}\n","<button\n [cdkCopyToClipboard]=\"value\"\n (click)=\"$event.stopPropagation()\"\n (cdkCopyToClipboardCopied)=\"copied()\"\n mat-icon-button\n type=\"button\"\n>\n <mat-icon>content_copy</mat-icon>\n</button>\n","import {\n Component,\n ChangeDetectionStrategy,\n Input\n} from '@angular/core';\nimport { Required } from '@rxap/utilities';\n\n@Component({\n selector: 'rxap-copy-to-clipboard',\n templateUrl: './copy-to-clipboard.component.html',\n styleUrls: [ './copy-to-clipboard.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class CopyToClipboardComponent {\n\n @Input() public active: boolean = true;\n @Input() public disabled: boolean = false;\n @Input() @Required public value!: string;\n\n}\n","<div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\".2rem\">\n <rxap-copy-to-clipboard-button fxFlex=\"40px\" *ngIf=\"active\" [value]=\"value\"></rxap-copy-to-clipboard-button>\n <span #ref fxFlex=\"nogrow\" class=\"content\"><ng-content></ng-content></span>\n <span *ngIf=\"!ref.innerHTML.trim()\" fxFlex=\"nogrow\" class=\"content\">{{ value }}</span>\n</div>\n","import { NgModule } from '@angular/core';\nimport { CopyToClipboardButtonComponent } from './copy-to-clipboard-button.component';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatButtonModule } from '@angular/material/button';\nimport { ClipboardModule } from '@angular/cdk/clipboard';\nimport { MatSnackBarModule } from '@angular/material/snack-bar';\n\n@NgModule({\n declarations: [ CopyToClipboardButtonComponent ],\n imports: [\n MatIconModule,\n MatButtonModule,\n ClipboardModule,\n MatSnackBarModule\n ],\n exports: [ CopyToClipboardButtonComponent ]\n})\nexport class CopyToClipboardButtonComponentModule {}\n","import { NgModule } from '@angular/core';\nimport { CopyToClipboardComponent } from './copy-to-clipboard.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { ClipboardModule } from '@angular/cdk/clipboard';\nimport { CommonModule } from '@angular/common';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatSnackBarModule } from '@angular/material/snack-bar';\nimport { CopyToClipboardButtonComponentModule } from '../copy-to-clipboard-button/copy-to-clipboard-button.component.module';\n\n\n@NgModule({\n declarations: [ CopyToClipboardComponent ],\n imports: [\n FlexLayoutModule,\n ClipboardModule,\n CommonModule,\n MatIconModule,\n MatButtonModule,\n MatSnackBarModule,\n CopyToClipboardButtonComponentModule,\n ],\n exports: [ CopyToClipboardComponent ]\n})\nexport class CopyToClipboardModule {}\n","import { Component, ChangeDetectionStrategy, Inject } from '@angular/core';\nimport { ThemeService } from '@rxap/services';\n\n@Component({\n selector: 'rxap-dark-mode-toggle-button',\n templateUrl: './dark-mode-toggle-button.component.html',\n styleUrls: ['./dark-mode-toggle-button.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-dark-mode-toggle-button' },\n})\nexport class DarkModeToggleButtonComponent {\n constructor(\n @Inject(ThemeService)\n public readonly theme: ThemeService\n ) {}\n}\n","<button rxapStopPropagation mat-icon-button (click)=\"theme.toggleDarkTheme()\">\n <mat-icon *ngIf=\"theme.darkMode\">brightness_2</mat-icon>\n <mat-icon *ngIf=\"!theme.darkMode\">brightness_5</mat-icon>\n</button>\n","import { NgModule } from '@angular/core';\nimport { DarkModeToggleButtonComponent } from './dark-mode-toggle-button.component';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { CommonModule } from '@angular/common';\nimport { StopPropagationDirectiveModule } from '@rxap/directives';\n\n\n@NgModule({\n declarations: [DarkModeToggleButtonComponent],\n imports: [\n MatButtonModule,\n MatIconModule,\n CommonModule,\n StopPropagationDirectiveModule,\n ],\n exports: [DarkModeToggleButtonComponent]\n})\nexport class DarkModeToggleButtonComponentModule { }\n","import {\n Component,\n ChangeDetectionStrategy\n} from '@angular/core';\n\n@Component({\n selector: 'rxap-navigate-back-button',\n templateUrl: './navigate-back-button.component.html',\n styleUrls: [ './navigate-back-button.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-navigate-back-button' }\n})\nexport class NavigateBackButtonComponent {\n\n public navigateBack() {\n window.history.back();\n }\n\n}\n","<div fxLayout=\"row\" fxLayoutGap=\"32px\" fxLayoutAlign=\"start center\">\n <div fxFlex=\"nogrow\">\n <button (click)=\"navigateBack()\" mat-stroked-button color=\"accent\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </div>\n <ng-content></ng-content>\n</div>\n","import { NgModule } from '@angular/core';\nimport { NavigateBackButtonComponent } from './navigate-back-button.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\n\n\n@NgModule({\n declarations: [ NavigateBackButtonComponent ],\n imports: [\n FlexLayoutModule,\n MatButtonModule,\n MatIconModule\n ],\n exports: [ NavigateBackButtonComponent ]\n})\nexport class NavigateBackButtonComponentModule {}\n","// region button\n\nexport * from './lib/button/button.component.module';\nexport * from './lib/button/button.component';\n\n// endregion\n\n// region confirm\n\nexport * from './lib/confirm/confirm.component';\nexport * from './lib/confirm/confirm.component.module';\nexport * from './lib/confirm/confirm.directive';\n\n// endregion\n\nexport * from './lib/empty-router-outlet/empty-router-outlet.component.module';\nexport * from './lib/empty-router-outlet/empty-router-outlet.component';\n\n// region json viewer\n\nexport * from './lib/json-viewer/json-viewer.component.module';\nexport * from './lib/json-viewer/json-viewer.component';\nexport * from './lib/json-viewer/json-viewer.tokens';\n\n// endregion\n\n// region copy to clipboard\n\nexport * from './lib/copy-to-clipboard/copy-to-clipboard.component.module';\nexport * from './lib/copy-to-clipboard/copy-to-clipboard.component';\n\n// endregion\n\n// region copy to clipboard button\n\nexport * from './lib/copy-to-clipboard-button/copy-to-clipboard-button.component';\nexport * from './lib/copy-to-clipboard-button/copy-to-clipboard-button.component.module';\n\n// endregion\n\n// region dark-mode-toggle-button\n\nexport * from './lib/dark-mode-toggle-button/dark-mode-toggle-button.component'\nexport * from './lib/dark-mode-toggle-button/dark-mode-toggle-button.component.module'\n\n// endregion\n\n// region navigate-back-button\n\nexport * from './lib/navigate-back-button/navigate-back-button.component';\nexport * from './lib/navigate-back-button/navigate-back-button.component.module';\n\n// endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgBa,gBAAgB;IAT7B;QAYS,cAAS,GAAG,IAAI,YAAY,EAAQ,CAAC;QAGrC,gBAAW,GAAG,IAAI,YAAY,EAAQ,CAAC;KAE/C;;6GARY,gBAAgB;iGAAhB,gBAAgB,+JChB7B,2WAQA;2FDQa,gBAAgB;kBAT5B,SAAS;+BACS,cAAc,QAGd;wBACf,KAAK,EAAE,cAAc;qBACtB,mBACgB,uBAAuB,CAAC,MAAM;8BAKxC,SAAS;sBADf,MAAM;gBAIA,WAAW;sBADjB,MAAM;;;MEEI,gBAAgB;IA0B3B,YAEmB,OAAgB,EAEhB,UAAsB;QAFtB,YAAO,GAAP,OAAO,CAAS;QAEhB,eAAU,GAAV,UAAU,CAAY;QAnBlC,cAAS,GAAG,IAAI,YAAY,EAAiB,CAAC;QAG9C,gBAAW,GAAG,IAAI,YAAY,EAAiB,CAAC;QAE/C,iBAAY,GAAwB,IAAI,CAAC;QAQvC,iBAAY,GAAG,KAAK,CAAC;QAQ7B,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,OAAO;aACjC,QAAQ,EAAE;aACV,mBAAmB,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;aAClD,aAAa,CAAC;YACb;gBACE,OAAO,EAAE,OAAO;gBAChB,OAAO,EAAE,QAAQ;gBACjB,QAAQ,EAAE,OAAO;gBACjB,QAAQ,EAAE,KAAK;aAChB;SACF,CAAC;aACD,kBAAkB,CAAC,EAAE,CAAC,CAAC;KAC3B;;;IAzCD,IACW,UAAU,CAAC,KAAa;QACjC,IAAI,KAAK,KAAK,EAAE,EAAE;YAChB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;SAC1B;KACF;IAuCM,OA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BAA2B,wHCZxC,gSAQA;2FDIa,2BAA2B;kBAPvC,SAAS;+BACS,2BAA2B,mBAG3B,uBAAuB,CAAC,MAAM,QACzC,EAAE,KAAK,EAAE,2BAA2B,EAAE;;;MEMjC,iCAAiC;;8HAAjC,iCAAiC;+HAAjC,iCAAiC,iBAR5B,2BAA2B,aAEzC,gBAAgB;QAChB,eAAe;QACf,aAAa,aAEC,2BAA2B;+HAEhC,iCAAiC,YAP9B;YACZ,gBAAgB;YAChB,eAAe;YACf,aAAa;SACd;2FAGU,iCAAiC;kBAT7C,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAE,2BAA2B,CAAE;oBAC7C,OAAO,EAAO;wBACZ,gBAAgB;wBAChB,eAAe;wBACf,aAAa;qBACd;oBACD,OAAO,EAAO,CAAE,2BAA2B,CAAE;iBAC9C;;;ACfD;AAoDA;;ACpDA;;;;;;"}
|
|
@@ -62,6 +62,19 @@ class ConfirmDirective {
|
|
|
62
62
|
this.confirmed = new EventEmitter();
|
|
63
63
|
this.unconfirmed = new EventEmitter();
|
|
64
64
|
this.subscription = null;
|
|
65
|
+
this.isOverlyOpen = false;
|
|
66
|
+
this.positionStrategy = this.overlay
|
|
67
|
+
.position()
|
|
68
|
+
.flexibleConnectedTo(this.elementRef.nativeElement)
|
|
69
|
+
.withPositions([
|
|
70
|
+
{
|
|
71
|
+
originX: 'start',
|
|
72
|
+
originY: 'bottom',
|
|
73
|
+
overlayX: 'start',
|
|
74
|
+
overlayY: 'top',
|
|
75
|
+
},
|
|
76
|
+
])
|
|
77
|
+
.withDefaultOffsetY(10);
|
|
65
78
|
}
|
|
66
79
|
// use a set input to allow auto import detection if the eventValue
|
|
67
80
|
// is not set
|
|
@@ -70,46 +83,46 @@ class ConfirmDirective {
|
|
|
70
83
|
this._eventValue = value;
|
|
71
84
|
}
|
|
72
85
|
}
|
|
73
|
-
onClick() {
|
|
74
|
-
|
|
86
|
+
onClick($event) {
|
|
87
|
+
this.openConfirmOverly();
|
|
88
|
+
}
|
|
89
|
+
ngOnDestroy() {
|
|
90
|
+
this.subscription?.unsubscribe();
|
|
91
|
+
this.overlayRef?.dispose();
|
|
92
|
+
}
|
|
93
|
+
openConfirmOverly() {
|
|
94
|
+
if (this.isOverlyOpen) {
|
|
75
95
|
return;
|
|
76
96
|
}
|
|
97
|
+
this.isOverlyOpen = true;
|
|
77
98
|
this.overlayRef = this.overlay.create({
|
|
78
99
|
scrollStrategy: this.overlay.scrollStrategies.close(),
|
|
79
|
-
positionStrategy: this.
|
|
80
|
-
.position()
|
|
81
|
-
.flexibleConnectedTo(this.elementRef.nativeElement)
|
|
82
|
-
.withPositions([
|
|
83
|
-
{
|
|
84
|
-
originX: 'start',
|
|
85
|
-
originY: 'bottom',
|
|
86
|
-
overlayX: 'start',
|
|
87
|
-
overlayY: 'top',
|
|
88
|
-
},
|
|
89
|
-
])
|
|
90
|
-
.withDefaultOffsetY(10),
|
|
100
|
+
positionStrategy: this.positionStrategy,
|
|
91
101
|
});
|
|
92
102
|
const componentPortal = new ComponentPortal(ConfirmComponent);
|
|
93
103
|
const componentRef = this.overlayRef.attach(componentPortal);
|
|
104
|
+
this.subscription?.unsubscribe();
|
|
94
105
|
this.subscription = new Subscription();
|
|
95
106
|
this.subscription.add(componentRef.instance.confirmed
|
|
96
|
-
.pipe(take(1), tap(() => this.
|
|
107
|
+
.pipe(take(1), tap(() => this.onConfirmed(this._eventValue)), tap(() => this.overlayRef?.dispose()), tap(() => this.isOverlyOpen = false), tap(() => (this.subscription = null)), tap(() => this.subscription?.unsubscribe()))
|
|
97
108
|
.subscribe());
|
|
98
109
|
this.subscription.add(componentRef.instance.unconfirmed
|
|
99
|
-
.pipe(take(1), tap(() => this.
|
|
110
|
+
.pipe(take(1), tap(() => this.onUnconfirmed(this._eventValue)), tap(() => this.overlayRef?.dispose()), tap(() => this.isOverlyOpen = false), tap(() => (this.subscription = null)), tap(() => this.subscription?.unsubscribe()))
|
|
100
111
|
.subscribe());
|
|
101
112
|
this.subscription.add(this.overlayRef
|
|
102
113
|
.detachments()
|
|
103
|
-
.pipe(take(1), tap(() => (this.subscription = null)), tap(() => this.subscription?.unsubscribe()))
|
|
114
|
+
.pipe(take(1), tap(() => this.isOverlyOpen = false), tap(() => (this.subscription = null)), tap(() => this.subscription?.unsubscribe()))
|
|
104
115
|
.subscribe());
|
|
105
116
|
}
|
|
106
|
-
|
|
107
|
-
this.
|
|
108
|
-
|
|
117
|
+
onConfirmed(eventValue) {
|
|
118
|
+
this.confirmed.emit(eventValue);
|
|
119
|
+
}
|
|
120
|
+
onUnconfirmed(eventValue) {
|
|
121
|
+
this.unconfirmed.emit(eventValue);
|
|
109
122
|
}
|
|
110
123
|
}
|
|
111
124
|
ConfirmDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ConfirmDirective, deps: [{ token: Overlay }, { token: ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
112
|
-
ConfirmDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: ConfirmDirective, selector: "[rxapConfirm]", inputs: { eventValue: ["rxapConfirm", "eventValue"] }, outputs: { confirmed: "confirmed", unconfirmed: "unconfirmed" }, host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
|
|
125
|
+
ConfirmDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: ConfirmDirective, selector: "[rxapConfirm]", inputs: { eventValue: ["rxapConfirm", "eventValue"] }, outputs: { confirmed: "confirmed", unconfirmed: "unconfirmed" }, host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 });
|
|
113
126
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ConfirmDirective, decorators: [{
|
|
114
127
|
type: Directive,
|
|
115
128
|
args: [{
|
|
@@ -130,7 +143,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
130
143
|
type: Output
|
|
131
144
|
}], onClick: [{
|
|
132
145
|
type: HostListener,
|
|
133
|
-
args: ['click']
|
|
146
|
+
args: ['click', ['$event']]
|
|
134
147
|
}] } });
|
|
135
148
|
|
|
136
149
|
const DEFAULT_ROUND_BUTTON_COLOR = 'accent';
|
|
@@ -248,9 +261,9 @@ class ButtonComponent extends MatButton {
|
|
|
248
261
|
this._subscription.add(this._confirmDirective.unconfirmed.subscribe(this.unconfirmed$));
|
|
249
262
|
this._subscription.add(this._confirmDirective.confirmed.subscribe(this.confirm));
|
|
250
263
|
}
|
|
251
|
-
onClick() {
|
|
264
|
+
onClick($event) {
|
|
252
265
|
if (this.confirm) {
|
|
253
|
-
this._confirmDirective.onClick();
|
|
266
|
+
this._confirmDirective.onClick($event);
|
|
254
267
|
}
|
|
255
268
|
const actions = this.getActions();
|
|
256
269
|
if (actions.length) {
|
|
@@ -329,7 +342,7 @@ class ButtonComponent extends MatButton {
|
|
|
329
342
|
}
|
|
330
343
|
}
|
|
331
344
|
ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ButtonComponent, deps: [{ token: ChangeDetectorRef }, { token: Overlay }, { token: INJECTOR }, { token: ElementRef }, { token: FocusMonitor }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
332
|
-
ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: ButtonComponent, selector: "button[rxap-button]", inputs: { disabled: "disabled", disableRipple: "disableRipple", color: "color", context: "context", contextAll: "contextAll", action: "action", definition: ["rxap-button", "definition"], icon: "icon", tooltip: "tooltip", tooltipDisabled: "tooltipDisabled", label: "label", show: "show", confirm: "confirm" }, outputs: { confirmed$: "confirmed", unconfirmed$: "unconfirmed" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.disabled": "disabled || null", "class._mat-animation-noopable": "_animationMode === \"NoopAnimations\"", "attr.data-svg-icon": "this.svgIcon", "attr.data-material-icon": "this.materialIcon", "attr.data-icon": "this.iconName", "attr.data-name": "this.name", "attr.data-tooltip": "this.tooltip", "attr.data-tooltip-disabled": "this.tooltipDisabled", "attr.data-disabled": "this.label", "attr.data-label": "this.label", "attr.data-show": "this.show", "attr.data-confirm": "this.confirm" }, classAttribute: "mat-focus-indicator" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<span [matTooltipDisabled]=\"tooltipDisabled\" [matTooltip]=\"tooltip\" class=\"mat-button-wrapper\">\n <ng-template\n [ngIfElse]=\"labelOrIconTemplate\"\n [ngIfThen]=\"labelWithIconTemplate\"\n [ngIf]=\"icon && label\">\n </ng-template>\n</span>\n<div [class.mat-button-ripple-round]=\"isRoundButton || isIconButton\" [matRippleCentered]=\"isIconButton\"\n [matRippleDisabled]=\"_isRippleDisabled()\"\n [matRippleTrigger]=\"_getHostElement()\"\n class=\"mat-button-ripple\"\n matRipple></div>\n<div class=\"mat-button-focus-overlay\"></div>\n\n<ng-template #labelTemplate>{{label}}</ng-template>\n<ng-template #labelWithIconTemplate>\n <span fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\".8rem\">\n <mat-icon [inline]=\"true\" [rxapIcon]=\"icon\" fxFlex=\"nogrow\"></mat-icon>\n <span fxFlex=\"nogrow\">{{label}}</span>\n </span>\n</ng-template>\n<ng-template #iconTemplate>\n <mat-icon [rxapIcon]=\"icon\"></mat-icon>\n</ng-template>\n<ng-template #labelOrIconTemplate>\n <ng-template [ngIfElse]=\"labelTemplate\"\n [ngIfThen]=\"iconTemplate\"\n [ngIf]=\"icon\">\n </ng-template>\n</ng-template>\n", styles: [".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media (hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate(0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow .28s cubic-bezier(.4,0,.2,1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;overflow:visible;transform:translate(0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow .28s cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;overflow:visible;transform:translate(0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow .28s cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity .2s cubic-bezier(.35,0,.25,1),background-color .2s cubic-bezier(.35,0,.25,1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}.inline.mat-icon-button{width:inherit;height:inherit;padding:.6rem}.mat-icon-button{line-height:initial}\n"], components: [{ type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i2$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { type: i3.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i3.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i6.IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }, { type: i3.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
345
|
+
ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: ButtonComponent, selector: "button[rxap-button]", inputs: { disabled: "disabled", disableRipple: "disableRipple", color: "color", context: "context", contextAll: "contextAll", action: "action", definition: ["rxap-button", "definition"], icon: "icon", tooltip: "tooltip", tooltipDisabled: "tooltipDisabled", label: "label", show: "show", confirm: "confirm" }, outputs: { confirmed$: "confirmed", unconfirmed$: "unconfirmed" }, host: { listeners: { "click": "onClick($event)" }, properties: { "attr.disabled": "disabled || null", "class._mat-animation-noopable": "_animationMode === \"NoopAnimations\"", "attr.data-svg-icon": "this.svgIcon", "attr.data-material-icon": "this.materialIcon", "attr.data-icon": "this.iconName", "attr.data-name": "this.name", "attr.data-tooltip": "this.tooltip", "attr.data-tooltip-disabled": "this.tooltipDisabled", "attr.data-disabled": "this.label", "attr.data-label": "this.label", "attr.data-show": "this.show", "attr.data-confirm": "this.confirm" }, classAttribute: "mat-focus-indicator" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<span [matTooltipDisabled]=\"tooltipDisabled\" [matTooltip]=\"tooltip\" class=\"mat-button-wrapper\">\n <ng-template\n [ngIfElse]=\"labelOrIconTemplate\"\n [ngIfThen]=\"labelWithIconTemplate\"\n [ngIf]=\"icon && label\">\n </ng-template>\n</span>\n<div [class.mat-button-ripple-round]=\"isRoundButton || isIconButton\" [matRippleCentered]=\"isIconButton\"\n [matRippleDisabled]=\"_isRippleDisabled()\"\n [matRippleTrigger]=\"_getHostElement()\"\n class=\"mat-button-ripple\"\n matRipple></div>\n<div class=\"mat-button-focus-overlay\"></div>\n\n<ng-template #labelTemplate>{{label}}</ng-template>\n<ng-template #labelWithIconTemplate>\n <span fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\".8rem\">\n <mat-icon [inline]=\"true\" [rxapIcon]=\"icon\" fxFlex=\"nogrow\"></mat-icon>\n <span fxFlex=\"nogrow\">{{label}}</span>\n </span>\n</ng-template>\n<ng-template #iconTemplate>\n <mat-icon [rxapIcon]=\"icon\"></mat-icon>\n</ng-template>\n<ng-template #labelOrIconTemplate>\n <ng-template [ngIfElse]=\"labelTemplate\"\n [ngIfThen]=\"iconTemplate\"\n [ngIf]=\"icon\">\n </ng-template>\n</ng-template>\n", styles: [".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media (hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate(0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow .28s cubic-bezier(.4,0,.2,1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;overflow:visible;transform:translate(0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow .28s cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;overflow:visible;transform:translate(0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow .28s cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity .2s cubic-bezier(.35,0,.25,1),background-color .2s cubic-bezier(.35,0,.25,1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}.inline.mat-icon-button{width:inherit;height:inherit;padding:.6rem}.mat-icon-button{line-height:initial}\n"], components: [{ type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i2$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { type: i3.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i3.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i6.IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }, { type: i3.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
333
346
|
__decorate([
|
|
334
347
|
Required,
|
|
335
348
|
__metadata("design:type", Object)
|
|
@@ -420,7 +433,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
420
433
|
args: ['unconfirmed']
|
|
421
434
|
}], onClick: [{
|
|
422
435
|
type: HostListener,
|
|
423
|
-
args: ['click']
|
|
436
|
+
args: ['click', ['$event']]
|
|
424
437
|
}] } });
|
|
425
438
|
|
|
426
439
|
class ConfirmComponentModule {
|