@rxap/components 16.0.0-dev.8 → 16.0.0

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.
@@ -1,20 +1,18 @@
1
1
  import { ChangeDetectionStrategy, Component, } from '@angular/core';
2
- import { MatIconModule } from '@angular/material/icon';
3
2
  import { MatButtonModule } from '@angular/material/button';
4
- import { FlexModule } from '@angular/flex-layout';
3
+ import { MatIconModule } from '@angular/material/icon';
5
4
  import * as i0 from "@angular/core";
6
- import * as i1 from "@angular/flex-layout";
7
- import * as i2 from "@angular/material/button";
8
- import * as i3 from "@angular/material/icon";
5
+ import * as i1 from "@angular/material/button";
6
+ import * as i2 from "@angular/material/icon";
9
7
  export class NavigateBackButtonComponent {
10
8
  navigateBack() {
11
9
  window.history.back();
12
10
  }
13
11
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NavigateBackButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
14
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: NavigateBackButtonComponent, isStandalone: true, selector: "rxap-navigate-back-button", host: { classAttribute: "rxap-navigate-back-button" }, ngImport: i0, template: "<div class=\"container\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\">\n <button (click)=\"navigateBack()\" color=\"accent\" mat-stroked-button>\n <mat-icon>navigate_before</mat-icon>\n </button>\n </div>\n <ng-content></ng-content>\n</div>\n", styles: [".container ::ng-deep h1,.container ::ng-deep h2,.container ::ng-deep h3,.container ::ng-deep h4,.container ::ng-deep h5,.container ::ng-deep h6{margin:0}\n"], dependencies: [{ kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i1.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"] }, { kind: "directive", type: i1.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"] }, { kind: "directive", type: i1.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"] }, { kind: "directive", type: i1.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"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
12
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: NavigateBackButtonComponent, isStandalone: true, selector: "rxap-navigate-back-button", host: { classAttribute: "rxap-navigate-back-button" }, ngImport: i0, template: "<div class=\"rxap-container flex flex-row justify-start items-center gap-8\">\n <div class=\"grow-0\">\n <button type=\"button\" (click)=\"navigateBack()\" color=\"accent\" mat-stroked-button>\n <mat-icon>navigate_before</mat-icon>\n </button>\n </div>\n <ng-content></ng-content>\n</div>\n", styles: [".rxap-container ::ng-deep h1,.rxap-container ::ng-deep h2,.rxap-container ::ng-deep h3,.rxap-container ::ng-deep h4,.rxap-container ::ng-deep h5,.rxap-container ::ng-deep h6{margin:0}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
15
13
  }
16
14
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NavigateBackButtonComponent, decorators: [{
17
15
  type: Component,
18
- args: [{ selector: 'rxap-navigate-back-button', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-navigate-back-button' }, standalone: true, imports: [FlexModule, MatButtonModule, MatIconModule], template: "<div class=\"container\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\">\n <button (click)=\"navigateBack()\" color=\"accent\" mat-stroked-button>\n <mat-icon>navigate_before</mat-icon>\n </button>\n </div>\n <ng-content></ng-content>\n</div>\n", styles: [".container ::ng-deep h1,.container ::ng-deep h2,.container ::ng-deep h3,.container ::ng-deep h4,.container ::ng-deep h5,.container ::ng-deep h6{margin:0}\n"] }]
16
+ args: [{ selector: 'rxap-navigate-back-button', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-navigate-back-button' }, standalone: true, imports: [MatButtonModule, MatIconModule], template: "<div class=\"rxap-container flex flex-row justify-start items-center gap-8\">\n <div class=\"grow-0\">\n <button type=\"button\" (click)=\"navigateBack()\" color=\"accent\" mat-stroked-button>\n <mat-icon>navigate_before</mat-icon>\n </button>\n </div>\n <ng-content></ng-content>\n</div>\n", styles: [".rxap-container ::ng-deep h1,.rxap-container ::ng-deep h2,.rxap-container ::ng-deep h3,.rxap-container ::ng-deep h4,.rxap-container ::ng-deep h5,.rxap-container ::ng-deep h6{margin:0}\n"] }]
19
17
  }] });
20
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF2aWdhdGUtYmFjay1idXR0b24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvYW5ndWxhci9jb21wb25lbnRzL3NyYy9saWIvbmF2aWdhdGUtYmFjay1idXR0b24vbmF2aWdhdGUtYmFjay1idXR0b24uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvYW5ndWxhci9jb21wb25lbnRzL3NyYy9saWIvbmF2aWdhdGUtYmFjay1idXR0b24vbmF2aWdhdGUtYmFjay1idXR0b24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEdBQ1YsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ3ZELE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUMzRCxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sc0JBQXNCLENBQUM7Ozs7O0FBWWxELE1BQU0sT0FBTywyQkFBMkI7SUFFL0IsWUFBWTtRQUNqQixNQUFNLENBQUMsT0FBTyxDQUFDLElBQUksRUFBRSxDQUFDO0lBQ3hCLENBQUM7OEdBSlUsMkJBQTJCO2tHQUEzQiwyQkFBMkIsNElDbEJ4QyxvVEFRQSxvTkRRYSxVQUFVLGcxRUFBRSxlQUFlLDJRQUFFLGFBQWE7OzJGQUUxQywyQkFBMkI7a0JBVnZDLFNBQVM7K0JBQ0UsMkJBQTJCLG1CQUdwQix1QkFBdUIsQ0FBQyxNQUFNLFFBRXpDLEVBQUUsS0FBSyxFQUFFLDJCQUEyQixFQUFFLGNBQ2hDLElBQUksV0FDUCxDQUFFLFVBQVUsRUFBRSxlQUFlLEVBQUUsYUFBYSxDQUFFIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtcbiAgQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3ksXG4gIENvbXBvbmVudCxcbn0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBNYXRJY29uTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvbWF0ZXJpYWwvaWNvbic7XG5pbXBvcnQgeyBNYXRCdXR0b25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9tYXRlcmlhbC9idXR0b24nO1xuaW1wb3J0IHsgRmxleE1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2ZsZXgtbGF5b3V0JztcblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAncnhhcC1uYXZpZ2F0ZS1iYWNrLWJ1dHRvbicsXG4gIHRlbXBsYXRlVXJsOiAnLi9uYXZpZ2F0ZS1iYWNrLWJ1dHRvbi5jb21wb25lbnQuaHRtbCcsXG4gIHN0eWxlVXJsczogWyAnLi9uYXZpZ2F0ZS1iYWNrLWJ1dHRvbi5jb21wb25lbnQuc2NzcycgXSxcbiAgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsXG4gIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBAYW5ndWxhci1lc2xpbnQvbm8taG9zdC1tZXRhZGF0YS1wcm9wZXJ0eVxuICBob3N0OiB7IGNsYXNzOiAncnhhcC1uYXZpZ2F0ZS1iYWNrLWJ1dHRvbicgfSxcbiAgc3RhbmRhbG9uZTogdHJ1ZSxcbiAgaW1wb3J0czogWyBGbGV4TW9kdWxlLCBNYXRCdXR0b25Nb2R1bGUsIE1hdEljb25Nb2R1bGUgXSxcbn0pXG5leHBvcnQgY2xhc3MgTmF2aWdhdGVCYWNrQnV0dG9uQ29tcG9uZW50IHtcblxuICBwdWJsaWMgbmF2aWdhdGVCYWNrKCkge1xuICAgIHdpbmRvdy5oaXN0b3J5LmJhY2soKTtcbiAgfVxuXG59XG4iLCI8ZGl2IGNsYXNzPVwiY29udGFpbmVyXCIgZnhMYXlvdXQ9XCJyb3dcIiBmeExheW91dEFsaWduPVwic3RhcnQgY2VudGVyXCIgZnhMYXlvdXRHYXA9XCIzMnB4XCI+XG4gIDxkaXYgZnhGbGV4PVwibm9ncm93XCI+XG4gICAgPGJ1dHRvbiAoY2xpY2spPVwibmF2aWdhdGVCYWNrKClcIiBjb2xvcj1cImFjY2VudFwiIG1hdC1zdHJva2VkLWJ1dHRvbj5cbiAgICAgIDxtYXQtaWNvbj5uYXZpZ2F0ZV9iZWZvcmU8L21hdC1pY29uPlxuICAgIDwvYnV0dG9uPlxuICA8L2Rpdj5cbiAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxuPC9kaXY+XG4iXX0=
18
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF2aWdhdGUtYmFjay1idXR0b24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvYW5ndWxhci9jb21wb25lbnRzL3NyYy9saWIvbmF2aWdhdGUtYmFjay1idXR0b24vbmF2aWdhdGUtYmFjay1idXR0b24uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvYW5ndWxhci9jb21wb25lbnRzL3NyYy9saWIvbmF2aWdhdGUtYmFjay1idXR0b24vbmF2aWdhdGUtYmFjay1idXR0b24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEdBQ1YsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQzNELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQzs7OztBQVl2RCxNQUFNLE9BQU8sMkJBQTJCO0lBRS9CLFlBQVk7UUFDakIsTUFBTSxDQUFDLE9BQU8sQ0FBQyxJQUFJLEVBQUUsQ0FBQztJQUN4QixDQUFDOzhHQUpVLDJCQUEyQjtrR0FBM0IsMkJBQTJCLDRJQ2pCeEMsa1RBUUEsa1BET2EsZUFBZSwyUUFBRSxhQUFhOzsyRkFFOUIsMkJBQTJCO2tCQVZ2QyxTQUFTOytCQUNFLDJCQUEyQixtQkFHcEIsdUJBQXVCLENBQUMsTUFBTSxRQUV6QyxFQUFFLEtBQUssRUFBRSwyQkFBMkIsRUFBRSxjQUNoQyxJQUFJLFdBQ1AsQ0FBRSxlQUFlLEVBQUUsYUFBYSxDQUFFIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtcbiAgQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3ksXG4gIENvbXBvbmVudCxcbn0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBNYXRCdXR0b25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9tYXRlcmlhbC9idXR0b24nO1xuaW1wb3J0IHsgTWF0SWNvbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL21hdGVyaWFsL2ljb24nO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdyeGFwLW5hdmlnYXRlLWJhY2stYnV0dG9uJyxcbiAgdGVtcGxhdGVVcmw6ICcuL25hdmlnYXRlLWJhY2stYnV0dG9uLmNvbXBvbmVudC5odG1sJyxcbiAgc3R5bGVVcmxzOiBbICcuL25hdmlnYXRlLWJhY2stYnV0dG9uLmNvbXBvbmVudC5zY3NzJyBdLFxuICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCxcbiAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEBhbmd1bGFyLWVzbGludC9uby1ob3N0LW1ldGFkYXRhLXByb3BlcnR5XG4gIGhvc3Q6IHsgY2xhc3M6ICdyeGFwLW5hdmlnYXRlLWJhY2stYnV0dG9uJyB9LFxuICBzdGFuZGFsb25lOiB0cnVlLFxuICBpbXBvcnRzOiBbIE1hdEJ1dHRvbk1vZHVsZSwgTWF0SWNvbk1vZHVsZSBdLFxufSlcbmV4cG9ydCBjbGFzcyBOYXZpZ2F0ZUJhY2tCdXR0b25Db21wb25lbnQge1xuXG4gIHB1YmxpYyBuYXZpZ2F0ZUJhY2soKSB7XG4gICAgd2luZG93Lmhpc3RvcnkuYmFjaygpO1xuICB9XG5cbn1cbiIsIjxkaXYgY2xhc3M9XCJyeGFwLWNvbnRhaW5lciBmbGV4IGZsZXgtcm93IGp1c3RpZnktc3RhcnQgaXRlbXMtY2VudGVyIGdhcC04XCI+XG4gIDxkaXYgY2xhc3M9XCJncm93LTBcIj5cbiAgICA8YnV0dG9uIHR5cGU9XCJidXR0b25cIiAoY2xpY2spPVwibmF2aWdhdGVCYWNrKClcIiBjb2xvcj1cImFjY2VudFwiIG1hdC1zdHJva2VkLWJ1dHRvbj5cbiAgICAgIDxtYXQtaWNvbj5uYXZpZ2F0ZV9iZWZvcmU8L21hdC1pY29uPlxuICAgIDwvYnV0dG9uPlxuICA8L2Rpdj5cbiAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxuPC9kaXY+XG4iXX0=
@@ -1,159 +1,34 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, Component, ChangeDetectionStrategy, Output, ElementRef, Directive, Inject, Input, HostListener, NgModule, InjectionToken, ChangeDetectorRef, forwardRef } from '@angular/core';
3
- import * as i3 from '@angular/material/icon';
4
- import { MatIconModule } from '@angular/material/icon';
5
- import * as i1$1 from '@angular/material/button';
2
+ import { Component, ChangeDetectionStrategy, InjectionToken, isDevMode, ChangeDetectorRef, forwardRef, Inject, Input, EventEmitter, Output, ElementRef, Directive, HostListener, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/material/button';
6
4
  import { MatButtonModule } from '@angular/material/button';
7
- import * as i1 from '@angular/flex-layout';
8
- import { FlexModule } from '@angular/flex-layout';
9
- import * as i1$2 from '@angular/cdk/overlay';
10
- import { Overlay } from '@angular/cdk/overlay';
11
- import { ComponentPortal } from '@angular/cdk/portal';
12
- import { take, tap } from 'rxjs/operators';
13
- import { Subscription, Observable } from 'rxjs';
14
- import { RouterOutlet } from '@angular/router';
15
- import { isPromiseLike, clone, Required } from '@rxap/utilities';
16
- import { ErrorStateMatcher } from '@angular/material/core';
17
- import { SubscriptionHandler, isTeardownLogic } from '@rxap/rxjs';
5
+ import * as i2 from '@angular/material/icon';
6
+ import { MatIconModule } from '@angular/material/icon';
18
7
  import { NgFor, NgClass, NgIf } from '@angular/common';
19
- import { __decorate, __metadata } from 'tslib';
8
+ import { SubscriptionHandler, isTeardownLogic } from '@rxap/rxjs';
9
+ import { isPromiseLike } from '@rxap/utilities';
10
+ import { Observable, Subscription } from 'rxjs';
11
+ import { ErrorStateMatcher } from '@angular/material/core';
12
+ import { RouterOutlet } from '@angular/router';
20
13
  import * as i4 from '@angular/material/snack-bar';
21
14
  import { MatSnackBar, MatSnackBarModule } from '@angular/material/snack-bar';
22
- import * as i2 from '@angular/cdk/clipboard';
15
+ import * as i2$1 from '@angular/cdk/clipboard';
23
16
  import { ClipboardModule } from '@angular/cdk/clipboard';
24
- import * as i3$1 from '@rxap/services';
25
- import { ThemeService } from '@rxap/services';
26
- import { StopPropagationDirective } from '@rxap/directives';
27
-
28
- class ConfirmComponent {
29
- constructor() {
30
- this.confirmed = new EventEmitter();
31
- this.unconfirmed = new EventEmitter();
32
- }
33
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
34
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: ConfirmComponent, isStandalone: true, selector: "rxap-confirm", outputs: { confirmed: "confirmed", unconfirmed: "unconfirmed" }, ngImport: i0, template: "<div class=\"container shadow-lg hover:shadow-xl\" fxLayout=\"row\" fxLayoutGap=\"4px\">\n <button (click)=\"confirmed.emit()\" class=\"accept\" mat-icon-button type=\"button\">\n <mat-icon>done</mat-icon>\n </button>\n <button (click)=\"unconfirmed.emit()\" class=\"decline\" mat-icon-button type=\"button\">\n <mat-icon>clear</mat-icon>\n </button>\n</div>\n", styles: [".container{border-radius:8px;padding:4px;background-color:var(--background-color, white)}.container .accept{color:var(--accept-color, rgb(115, 190, 105))}.container .decline{color:var(--decline-color, rgb(204, 73, 51))}\n"], dependencies: [{ kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i1.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"] }, { kind: "directive", type: i1.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"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
35
- }
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmComponent, decorators: [{
37
- type: Component,
38
- args: [{ selector: 'rxap-confirm', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [FlexModule, MatButtonModule, MatIconModule], template: "<div class=\"container shadow-lg hover:shadow-xl\" fxLayout=\"row\" fxLayoutGap=\"4px\">\n <button (click)=\"confirmed.emit()\" class=\"accept\" mat-icon-button type=\"button\">\n <mat-icon>done</mat-icon>\n </button>\n <button (click)=\"unconfirmed.emit()\" class=\"decline\" mat-icon-button type=\"button\">\n <mat-icon>clear</mat-icon>\n </button>\n</div>\n", styles: [".container{border-radius:8px;padding:4px;background-color:var(--background-color, white)}.container .accept{color:var(--accept-color, rgb(115, 190, 105))}.container .decline{color:var(--decline-color, rgb(204, 73, 51))}\n"] }]
39
- }], propDecorators: { confirmed: [{
40
- type: Output
41
- }], unconfirmed: [{
42
- type: Output
43
- }] } });
17
+ import * as i1$1 from '@angular/cdk/overlay';
18
+ import { Overlay } from '@angular/cdk/overlay';
19
+ import { ComponentPortal } from '@angular/cdk/portal';
20
+ import { take, tap } from 'rxjs/operators';
44
21
 
45
- class ConfirmDirective {
46
- // use a set input to allow auto import detection if the eventValue
47
- // is not set
48
- set eventValue(value) {
49
- if (value !== '') {
50
- this._eventValue = value;
51
- }
52
- }
53
- constructor(overlay, elementRef) {
54
- this.overlay = overlay;
55
- this.elementRef = elementRef;
56
- this.confirmed = new EventEmitter();
57
- this.unconfirmed = new EventEmitter();
58
- this.subscription = null;
59
- this.isOverlyOpen = false;
60
- this.positionStrategy = this.overlay
61
- .position()
62
- .flexibleConnectedTo(this.elementRef.nativeElement)
63
- .withPositions([
64
- {
65
- originX: 'start',
66
- originY: 'bottom',
67
- overlayX: 'start',
68
- overlayY: 'top',
69
- },
70
- ])
71
- .withDefaultOffsetY(10);
72
- }
73
- onClick($event) {
74
- this.openConfirmOverly();
75
- }
76
- ngOnDestroy() {
77
- this.subscription?.unsubscribe();
78
- this.overlayRef?.dispose();
79
- }
80
- openConfirmOverly() {
81
- if (this.isOverlyOpen) {
82
- return;
83
- }
84
- this.isOverlyOpen = true;
85
- this.overlayRef = this.overlay.create({
86
- scrollStrategy: this.overlay.scrollStrategies.close(),
87
- positionStrategy: this.positionStrategy,
88
- });
89
- const componentPortal = new ComponentPortal(ConfirmComponent);
90
- const componentRef = this.overlayRef.attach(componentPortal);
91
- this.subscription?.unsubscribe();
92
- this.subscription = new Subscription();
93
- this.subscription.add(componentRef.instance.confirmed
94
- .pipe(take(1), tap(() => this.onConfirmed(this._eventValue)), tap(() => this.overlayRef?.dispose()), tap(() => this.isOverlyOpen = false), tap(() => (this.subscription = null)), tap(() => this.subscription?.unsubscribe()))
95
- .subscribe());
96
- this.subscription.add(componentRef.instance.unconfirmed
97
- .pipe(take(1), tap(() => this.onUnconfirmed(this._eventValue)), tap(() => this.overlayRef?.dispose()), tap(() => this.isOverlyOpen = false), tap(() => (this.subscription = null)), tap(() => this.subscription?.unsubscribe()))
98
- .subscribe());
99
- this.subscription.add(this.overlayRef
100
- .detachments()
101
- .pipe(take(1), tap(() => this.isOverlyOpen = false), tap(() => (this.subscription = null)), tap(() => this.subscription?.unsubscribe()))
102
- .subscribe());
103
- }
104
- onConfirmed(eventValue) {
105
- this.confirmed.emit(eventValue);
106
- }
107
- onUnconfirmed(eventValue) {
108
- this.unconfirmed.emit(eventValue);
22
+ class NavigateBackButtonComponent {
23
+ navigateBack() {
24
+ window.history.back();
109
25
  }
110
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmDirective, deps: [{ token: Overlay }, { token: ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
111
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: ConfirmDirective, isStandalone: true, selector: "[rxapConfirm]", inputs: { eventValue: ["rxapConfirm", "eventValue"] }, outputs: { confirmed: "confirmed", unconfirmed: "unconfirmed" }, host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 }); }
112
- }
113
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmDirective, decorators: [{
114
- type: Directive,
115
- args: [{
116
- selector: '[rxapConfirm]',
117
- standalone: true,
118
- }]
119
- }], ctorParameters: function () { return [{ type: i1$2.Overlay, decorators: [{
120
- type: Inject,
121
- args: [Overlay]
122
- }] }, { type: i0.ElementRef, decorators: [{
123
- type: Inject,
124
- args: [ElementRef]
125
- }] }]; }, propDecorators: { eventValue: [{
126
- type: Input,
127
- args: ['rxapConfirm']
128
- }], confirmed: [{
129
- type: Output
130
- }], unconfirmed: [{
131
- type: Output
132
- }], onClick: [{
133
- type: HostListener,
134
- args: ['click', ['$event']]
135
- }] } });
136
-
137
- class ConfirmModule {
138
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
139
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: ConfirmModule, imports: [ConfirmDirective, ConfirmComponent], exports: [ConfirmDirective] }); }
140
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmModule, imports: [ConfirmComponent] }); }
141
- }
142
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmModule, decorators: [{
143
- type: NgModule,
144
- args: [{
145
- imports: [ConfirmDirective, ConfirmComponent],
146
- exports: [ConfirmDirective],
147
- }]
148
- }] });
149
-
150
- class EmptyRouterOutletComponent {
151
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: EmptyRouterOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
152
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: EmptyRouterOutletComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<router-outlet></router-outlet>\n", dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
26
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NavigateBackButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
27
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: NavigateBackButtonComponent, isStandalone: true, selector: "rxap-navigate-back-button", host: { classAttribute: "rxap-navigate-back-button" }, ngImport: i0, template: "<div class=\"rxap-container flex flex-row justify-start items-center gap-8\">\n <div class=\"grow-0\">\n <button type=\"button\" (click)=\"navigateBack()\" color=\"accent\" mat-stroked-button>\n <mat-icon>navigate_before</mat-icon>\n </button>\n </div>\n <ng-content></ng-content>\n</div>\n", styles: [".rxap-container ::ng-deep h1,.rxap-container ::ng-deep h2,.rxap-container ::ng-deep h3,.rxap-container ::ng-deep h4,.rxap-container ::ng-deep h5,.rxap-container ::ng-deep h6{margin:0}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
153
28
  }
154
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: EmptyRouterOutletComponent, decorators: [{
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NavigateBackButtonComponent, decorators: [{
155
30
  type: Component,
156
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [RouterOutlet], template: "<router-outlet></router-outlet>\n" }]
31
+ args: [{ selector: 'rxap-navigate-back-button', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-navigate-back-button' }, standalone: true, imports: [MatButtonModule, MatIconModule], template: "<div class=\"rxap-container flex flex-row justify-start items-center gap-8\">\n <div class=\"grow-0\">\n <button type=\"button\" (click)=\"navigateBack()\" color=\"accent\" mat-stroked-button>\n <mat-icon>navigate_before</mat-icon>\n </button>\n </div>\n <ng-content></ng-content>\n</div>\n", styles: [".rxap-container ::ng-deep h1,.rxap-container ::ng-deep h2,.rxap-container ::ng-deep h3,.rxap-container ::ng-deep h4,.rxap-container ::ng-deep h5,.rxap-container ::ng-deep h6{margin:0}\n"] }]
157
32
  }] });
158
33
 
159
34
  const JSON_VIEW_IGNORED_PROPERTIES = new InjectionToken('rxap/form-system/inspector/ignored-properties', {
@@ -204,6 +79,9 @@ class JsonViewerComponent {
204
79
  ngOnChanges(changes) {
205
80
  const jsonChange = changes['json'];
206
81
  if (jsonChange) {
82
+ if (isDevMode()) {
83
+ console.debug('json change');
84
+ }
207
85
  this.setInspectValue(jsonChange.currentValue);
208
86
  }
209
87
  }
@@ -246,15 +124,10 @@ class JsonViewerComponent {
246
124
  console.warn('The inspection value is not an object!');
247
125
  }
248
126
  else {
249
- json = clone(json);
250
- let inspectValue;
251
127
  if (typeof json['toJSON'] === 'function') {
252
- inspectValue = json.toJSON();
128
+ json = json.toJSON();
253
129
  }
254
- else {
255
- inspectValue = this.cleanObject(json);
256
- }
257
- this.inspectValue = inspectValue;
130
+ this.inspectValue = this.cleanObject(structuredClone(json));
258
131
  this.buildSegments(this.inspectValue);
259
132
  this.cdr.markForCheck();
260
133
  }
@@ -332,11 +205,11 @@ class JsonViewerComponent {
332
205
  return segment;
333
206
  }
334
207
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: JsonViewerComponent, deps: [{ token: JSON_VIEW_IGNORED_PROPERTIES }, { token: JSON_VIEW_IGNORED_TYPES }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
335
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: JsonViewerComponent, isStandalone: true, selector: "rxap-json-viewer", inputs: { json: "json", expanded: "expanded" }, host: { classAttribute: "rxap-json-viewer" }, usesOnChanges: true, ngImport: i0, template: "<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 text-primary\">{{ segment.key }}</span>\n <span class=\"segment-separator\">: </span>\n <span *ngIf=\"!segment.expanded || !isExpandable(segment)\"\n class=\"segment-value text-white dark:text-black\">{{ 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", styles: ["@charset \"UTF-8\";.container{width:100%;height:100%;overflow:hidden;position:relative;font-family:monospace;font-size:16px}.container .segment .segment-main .toggler{font-size:8px;line-height:12px}.container .segment{padding:2px;margin:1px 1px 1px 12px}.container .segment .segment-main{word-wrap:break-word}.container .segment .segment-main .toggler{position:absolute;margin-left:-14px;margin-top:3px;vertical-align:middle}.container .segment .segment-main .toggler:after{display:inline-block;content:\"\\25ba\";transition:transform .1s ease-in}.container .segment .children{margin-left:12px}.container .segment-type-object>.segment-main,.container .segment-type-array>.segment-main{white-space:nowrap}.container .expanded>.toggler:after{transform:rotate(90deg)}.container .expandable,.container .expandable>.toggler{cursor:pointer}.container .segment .segment-main .toggler{color:#787878}.container .segment .segment-main .segment-separator{color:#999}.container .segment-type-string>.segment-main>.segment-value{color:var(--json-string-color, #FF6B6B)}.container .segment-type-number>.segment-main>.segment-value{color:var(--json-number-color, #009688)}.container .segment-type-boolean>.segment-main>.segment-value{color:var(--json-boolean-color, #b938a4)}.container .segment-type-date>.segment-main>.segment-value{color:var(--json-date-color, #05668D)}.container .segment-type-array>.segment-main>.segment-value{color:var(--json-array-color, #999)}.container .segment-type-object>.segment-main>.segment-value{color:var(--json-object-color, #999)}.container .segment-type-function>.segment-main>.segment-value{color:var(--json-function-color, #999)}.container .segment-type-null>.segment-main>.segment-value{color:var(--json-null-color, #fff)}.container .segment-type-undefined>.segment-main>.segment-value{color:var(--json-undefined-color, #fff)}.container .segment-type-null>.segment-main>.segment-value{background-color:var(--warn-color, darkred)}.container .segment-type-undefined>.segment-main>.segment-key{color:#999}.container .segment-type-undefined>.segment-main>.segment-value{background-color:#999}\n"], dependencies: [{ kind: "component", type: i0.forwardRef(function () { return JsonViewerComponent; }), selector: "rxap-json-viewer", inputs: ["json", "expanded"] }, { kind: "directive", type: i0.forwardRef(function () { return NgFor; }), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i0.forwardRef(function () { return NgClass; }), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(function () { return NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
208
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: JsonViewerComponent, isStandalone: true, selector: "rxap-json-viewer", inputs: { json: "json", expanded: "expanded" }, host: { classAttribute: "rxap-json-viewer" }, usesOnChanges: true, ngImport: i0, template: "<section class=\"rxap-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 text-primary\">{{ segment.key }}</span>\n <span class=\"segment-separator\">: </span>\n <span *ngIf=\"!segment.expanded || !isExpandable(segment)\"\n class=\"segment-value text-white dark:text-black\">{{ 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", styles: ["@charset \"UTF-8\";.rxap-container{width:100%;height:100%;overflow:hidden;position:relative;font-family:monospace;font-size:16px}.rxap-container .segment .segment-main .toggler{font-size:8px;line-height:12px}.rxap-container .segment{padding:2px;margin:1px 1px 1px 12px}.rxap-container .segment .segment-main{word-wrap:break-word}.rxap-container .segment .segment-main .toggler{position:absolute;margin-left:-14px;margin-top:3px;vertical-align:middle}.rxap-container .segment .segment-main .toggler:after{display:inline-block;content:\"\\25ba\";transition:transform .1s ease-in}.rxap-container .segment .children{margin-left:12px}.rxap-container .segment-type-object>.segment-main,.rxap-container .segment-type-array>.segment-main{white-space:nowrap}.rxap-container .expanded>.toggler:after{transform:rotate(90deg)}.rxap-container .expandable,.rxap-container .expandable>.toggler{cursor:pointer}.rxap-container .segment .segment-main .toggler{color:#787878}.rxap-container .segment .segment-main .segment-separator{color:#999}.rxap-container .segment-type-string>.segment-main>.segment-value{color:var(--json-string-color, #FF6B6B)}.rxap-container .segment-type-number>.segment-main>.segment-value{color:var(--json-number-color, #009688)}.rxap-container .segment-type-boolean>.segment-main>.segment-value{color:var(--json-boolean-color, #b938a4)}.rxap-container .segment-type-date>.segment-main>.segment-value{color:var(--json-date-color, #05668D)}.rxap-container .segment-type-array>.segment-main>.segment-value{color:var(--json-array-color, #999)}.rxap-container .segment-type-object>.segment-main>.segment-value{color:var(--json-object-color, #999)}.rxap-container .segment-type-function>.segment-main>.segment-value{color:var(--json-function-color, #999)}.rxap-container .segment-type-null>.segment-main>.segment-value{color:var(--json-null-color, #fff)}.rxap-container .segment-type-undefined>.segment-main>.segment-value{color:var(--json-undefined-color, #fff)}.rxap-container .segment-type-null>.segment-main>.segment-value{background-color:var(--warn-500, darkred)}.rxap-container .segment-type-undefined>.segment-main>.segment-key{color:#999}.rxap-container .segment-type-undefined>.segment-main>.segment-value{background-color:#999}\n"], dependencies: [{ kind: "component", type: i0.forwardRef(function () { return JsonViewerComponent; }), selector: "rxap-json-viewer", inputs: ["json", "expanded"] }, { kind: "directive", type: i0.forwardRef(function () { return NgFor; }), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i0.forwardRef(function () { return NgClass; }), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(function () { return NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
336
209
  }
337
210
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: JsonViewerComponent, decorators: [{
338
211
  type: Component,
339
- args: [{ selector: 'rxap-json-viewer', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-json-viewer' }, standalone: true, imports: [NgFor, NgClass, NgIf, forwardRef(() => JsonViewerComponent)], template: "<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 text-primary\">{{ segment.key }}</span>\n <span class=\"segment-separator\">: </span>\n <span *ngIf=\"!segment.expanded || !isExpandable(segment)\"\n class=\"segment-value text-white dark:text-black\">{{ 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", styles: ["@charset \"UTF-8\";.container{width:100%;height:100%;overflow:hidden;position:relative;font-family:monospace;font-size:16px}.container .segment .segment-main .toggler{font-size:8px;line-height:12px}.container .segment{padding:2px;margin:1px 1px 1px 12px}.container .segment .segment-main{word-wrap:break-word}.container .segment .segment-main .toggler{position:absolute;margin-left:-14px;margin-top:3px;vertical-align:middle}.container .segment .segment-main .toggler:after{display:inline-block;content:\"\\25ba\";transition:transform .1s ease-in}.container .segment .children{margin-left:12px}.container .segment-type-object>.segment-main,.container .segment-type-array>.segment-main{white-space:nowrap}.container .expanded>.toggler:after{transform:rotate(90deg)}.container .expandable,.container .expandable>.toggler{cursor:pointer}.container .segment .segment-main .toggler{color:#787878}.container .segment .segment-main .segment-separator{color:#999}.container .segment-type-string>.segment-main>.segment-value{color:var(--json-string-color, #FF6B6B)}.container .segment-type-number>.segment-main>.segment-value{color:var(--json-number-color, #009688)}.container .segment-type-boolean>.segment-main>.segment-value{color:var(--json-boolean-color, #b938a4)}.container .segment-type-date>.segment-main>.segment-value{color:var(--json-date-color, #05668D)}.container .segment-type-array>.segment-main>.segment-value{color:var(--json-array-color, #999)}.container .segment-type-object>.segment-main>.segment-value{color:var(--json-object-color, #999)}.container .segment-type-function>.segment-main>.segment-value{color:var(--json-function-color, #999)}.container .segment-type-null>.segment-main>.segment-value{color:var(--json-null-color, #fff)}.container .segment-type-undefined>.segment-main>.segment-value{color:var(--json-undefined-color, #fff)}.container .segment-type-null>.segment-main>.segment-value{background-color:var(--warn-color, darkred)}.container .segment-type-undefined>.segment-main>.segment-key{color:#999}.container .segment-type-undefined>.segment-main>.segment-value{background-color:#999}\n"] }]
212
+ args: [{ selector: 'rxap-json-viewer', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-json-viewer' }, standalone: true, imports: [NgFor, NgClass, NgIf, forwardRef(() => JsonViewerComponent)], template: "<section class=\"rxap-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 text-primary\">{{ segment.key }}</span>\n <span class=\"segment-separator\">: </span>\n <span *ngIf=\"!segment.expanded || !isExpandable(segment)\"\n class=\"segment-value text-white dark:text-black\">{{ 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", styles: ["@charset \"UTF-8\";.rxap-container{width:100%;height:100%;overflow:hidden;position:relative;font-family:monospace;font-size:16px}.rxap-container .segment .segment-main .toggler{font-size:8px;line-height:12px}.rxap-container .segment{padding:2px;margin:1px 1px 1px 12px}.rxap-container .segment .segment-main{word-wrap:break-word}.rxap-container .segment .segment-main .toggler{position:absolute;margin-left:-14px;margin-top:3px;vertical-align:middle}.rxap-container .segment .segment-main .toggler:after{display:inline-block;content:\"\\25ba\";transition:transform .1s ease-in}.rxap-container .segment .children{margin-left:12px}.rxap-container .segment-type-object>.segment-main,.rxap-container .segment-type-array>.segment-main{white-space:nowrap}.rxap-container .expanded>.toggler:after{transform:rotate(90deg)}.rxap-container .expandable,.rxap-container .expandable>.toggler{cursor:pointer}.rxap-container .segment .segment-main .toggler{color:#787878}.rxap-container .segment .segment-main .segment-separator{color:#999}.rxap-container .segment-type-string>.segment-main>.segment-value{color:var(--json-string-color, #FF6B6B)}.rxap-container .segment-type-number>.segment-main>.segment-value{color:var(--json-number-color, #009688)}.rxap-container .segment-type-boolean>.segment-main>.segment-value{color:var(--json-boolean-color, #b938a4)}.rxap-container .segment-type-date>.segment-main>.segment-value{color:var(--json-date-color, #05668D)}.rxap-container .segment-type-array>.segment-main>.segment-value{color:var(--json-array-color, #999)}.rxap-container .segment-type-object>.segment-main>.segment-value{color:var(--json-object-color, #999)}.rxap-container .segment-type-function>.segment-main>.segment-value{color:var(--json-function-color, #999)}.rxap-container .segment-type-null>.segment-main>.segment-value{color:var(--json-null-color, #fff)}.rxap-container .segment-type-undefined>.segment-main>.segment-value{color:var(--json-undefined-color, #fff)}.rxap-container .segment-type-null>.segment-main>.segment-value{background-color:var(--warn-500, darkred)}.rxap-container .segment-type-undefined>.segment-main>.segment-key{color:#999}.rxap-container .segment-type-undefined>.segment-main>.segment-value{background-color:#999}\n"] }]
340
213
  }], ctorParameters: function () { return [{ type: Array, decorators: [{
341
214
  type: Inject,
342
215
  args: [JSON_VIEW_IGNORED_PROPERTIES]
@@ -352,6 +225,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImpor
352
225
  type: Input
353
226
  }] } });
354
227
 
228
+ class EmptyRouterOutletComponent {
229
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: EmptyRouterOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
230
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: EmptyRouterOutletComponent, isStandalone: true, selector: "rxap-empty-router-outlet", ngImport: i0, template: "<router-outlet></router-outlet>\n", dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
231
+ }
232
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: EmptyRouterOutletComponent, decorators: [{
233
+ type: Component,
234
+ args: [{ selector: 'rxap-empty-router-outlet', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [RouterOutlet], template: "<router-outlet></router-outlet>\n" }]
235
+ }] });
236
+
355
237
  class CopyToClipboardButtonComponent {
356
238
  constructor(snackbar) {
357
239
  this.snackbar = snackbar;
@@ -363,7 +245,7 @@ class CopyToClipboardButtonComponent {
363
245
  });
364
246
  }
365
247
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CopyToClipboardButtonComponent, deps: [{ token: MatSnackBar }], target: i0.ɵɵFactoryTarget.Component }); }
366
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: CopyToClipboardButtonComponent, isStandalone: true, selector: "rxap-copy-to-clipboard-button", inputs: { value: "value" }, ngImport: i0, template: "<button\n (cdkCopyToClipboardCopied)=\"copied()\"\n (click)=\"$event.stopPropagation()\"\n [cdkCopyToClipboard]=\"value\"\n mat-icon-button\n type=\"button\"\n>\n <mat-icon>content_copy</mat-icon>\n</button>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: ClipboardModule }, { kind: "directive", type: i2.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatSnackBarModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
248
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: CopyToClipboardButtonComponent, isStandalone: true, selector: "rxap-copy-to-clipboard-button", inputs: { value: "value" }, ngImport: i0, template: "<button\n (cdkCopyToClipboardCopied)=\"copied()\"\n (click)=\"$event.stopPropagation()\"\n [cdkCopyToClipboard]=\"value\"\n mat-icon-button\n type=\"button\"\n>\n <mat-icon>content_copy</mat-icon>\n</button>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: ClipboardModule }, { kind: "directive", type: i2$1.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatSnackBarModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
367
249
  }
368
250
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CopyToClipboardButtonComponent, decorators: [{
369
251
  type: Component,
@@ -386,61 +268,148 @@ class CopyToClipboardComponent {
386
268
  this.disabled = false;
387
269
  }
388
270
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CopyToClipboardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
389
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: CopyToClipboardComponent, isStandalone: true, selector: "rxap-copy-to-clipboard", inputs: { active: "active", disabled: "disabled", value: "value" }, ngImport: i0, template: "<div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"2px\">\n <rxap-copy-to-clipboard-button *ngIf=\"active\" [value]=\"value\" fxFlex=\"40px\"></rxap-copy-to-clipboard-button>\n <span #ref class=\"content\" fxFlex=\"nogrow\"><ng-content></ng-content></span>\n <span *ngIf=\"!ref.innerHTML.trim()\" class=\"content\" fxFlex=\"nogrow\">{{ value }}</span>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i1.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"] }, { kind: "directive", type: i1.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"] }, { kind: "directive", type: i1.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"] }, { kind: "directive", type: i1.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"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CopyToClipboardButtonComponent, selector: "rxap-copy-to-clipboard-button", inputs: ["value"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
271
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: CopyToClipboardComponent, isStandalone: true, selector: "rxap-copy-to-clipboard", inputs: { active: "active", disabled: "disabled", value: "value" }, ngImport: i0, template: "<div class=\"flex flex-row gap-0.5 items-center\">\n <rxap-copy-to-clipboard-button *ngIf=\"active\" [value]=\"value\" class=\"w-[40px]\"></rxap-copy-to-clipboard-button>\n <span #ref class=\"content grow-0\"><ng-content></ng-content></span>\n <span *ngIf=\"!ref.innerHTML.trim()\" class=\"content grow-0\">{{ value }}</span>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CopyToClipboardButtonComponent, selector: "rxap-copy-to-clipboard-button", inputs: ["value"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
390
272
  }
391
- __decorate([
392
- Required,
393
- __metadata("design:type", String)
394
- ], CopyToClipboardComponent.prototype, "value", void 0);
395
273
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CopyToClipboardComponent, decorators: [{
396
274
  type: Component,
397
- args: [{ selector: 'rxap-copy-to-clipboard', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [FlexModule, NgIf, CopyToClipboardButtonComponent], template: "<div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"2px\">\n <rxap-copy-to-clipboard-button *ngIf=\"active\" [value]=\"value\" fxFlex=\"40px\"></rxap-copy-to-clipboard-button>\n <span #ref class=\"content\" fxFlex=\"nogrow\"><ng-content></ng-content></span>\n <span *ngIf=\"!ref.innerHTML.trim()\" class=\"content\" fxFlex=\"nogrow\">{{ value }}</span>\n</div>\n" }]
275
+ args: [{ selector: 'rxap-copy-to-clipboard', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgIf, CopyToClipboardButtonComponent], template: "<div class=\"flex flex-row gap-0.5 items-center\">\n <rxap-copy-to-clipboard-button *ngIf=\"active\" [value]=\"value\" class=\"w-[40px]\"></rxap-copy-to-clipboard-button>\n <span #ref class=\"content grow-0\"><ng-content></ng-content></span>\n <span *ngIf=\"!ref.innerHTML.trim()\" class=\"content grow-0\">{{ value }}</span>\n</div>\n" }]
398
276
  }], propDecorators: { active: [{
399
277
  type: Input
400
278
  }], disabled: [{
401
279
  type: Input
402
280
  }], value: [{
403
- type: Input
281
+ type: Input,
282
+ args: [{ required: true }]
404
283
  }] } });
405
284
 
406
- class DarkModeToggleButtonComponent {
407
- constructor(theme) {
408
- this.theme = theme;
285
+ class ConfirmComponent {
286
+ constructor() {
287
+ this.confirmed = new EventEmitter();
288
+ this.unconfirmed = new EventEmitter();
409
289
  }
410
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DarkModeToggleButtonComponent, deps: [{ token: ThemeService }], target: i0.ɵɵFactoryTarget.Component }); }
411
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: DarkModeToggleButtonComponent, isStandalone: true, selector: "rxap-dark-mode-toggle-button", ngImport: i0, template: "<button (click)=\"theme.toggleDarkTheme()\" mat-icon-button rxapStopPropagation>\n <mat-icon *ngIf=\"theme.darkMode\">brightness_2</mat-icon>\n <mat-icon *ngIf=\"!theme.darkMode\">brightness_5</mat-icon>\n</button>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: StopPropagationDirective, selector: "[rxapStopPropagation]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
290
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
291
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: ConfirmComponent, isStandalone: true, selector: "rxap-confirm", outputs: { confirmed: "confirmed", unconfirmed: "unconfirmed" }, ngImport: i0, template: "<div class=\"rxap-container shadow-lg hover:shadow-xl flex flex-row gap-1\">\n <button (click)=\"confirmed.emit()\" class=\"accept\" mat-icon-button type=\"button\">\n <mat-icon>done</mat-icon>\n </button>\n <button (click)=\"unconfirmed.emit()\" class=\"decline\" mat-icon-button type=\"button\">\n <mat-icon>clear</mat-icon>\n </button>\n</div>\n", styles: [".rxap-container{border-radius:8px;padding:4px;background-color:var(--background-color, white)}.rxap-container .accept{color:var(--accept-color, rgb(115, 190, 105))}.rxap-container .decline{color:var(--decline-color, rgb(204, 73, 51))}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
412
292
  }
413
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DarkModeToggleButtonComponent, decorators: [{
293
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmComponent, decorators: [{
414
294
  type: Component,
415
- args: [{ selector: 'rxap-dark-mode-toggle-button', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
416
- MatButtonModule,
417
- StopPropagationDirective,
418
- NgIf,
419
- MatIconModule,
420
- ], template: "<button (click)=\"theme.toggleDarkTheme()\" mat-icon-button rxapStopPropagation>\n <mat-icon *ngIf=\"theme.darkMode\">brightness_2</mat-icon>\n <mat-icon *ngIf=\"!theme.darkMode\">brightness_5</mat-icon>\n</button>\n" }]
421
- }], ctorParameters: function () { return [{ type: i3$1.ThemeService, decorators: [{
422
- type: Inject,
423
- args: [ThemeService]
424
- }] }]; } });
295
+ args: [{ selector: 'rxap-confirm', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatButtonModule, MatIconModule], template: "<div class=\"rxap-container shadow-lg hover:shadow-xl flex flex-row gap-1\">\n <button (click)=\"confirmed.emit()\" class=\"accept\" mat-icon-button type=\"button\">\n <mat-icon>done</mat-icon>\n </button>\n <button (click)=\"unconfirmed.emit()\" class=\"decline\" mat-icon-button type=\"button\">\n <mat-icon>clear</mat-icon>\n </button>\n</div>\n", styles: [".rxap-container{border-radius:8px;padding:4px;background-color:var(--background-color, white)}.rxap-container .accept{color:var(--accept-color, rgb(115, 190, 105))}.rxap-container .decline{color:var(--decline-color, rgb(204, 73, 51))}\n"] }]
296
+ }], propDecorators: { confirmed: [{
297
+ type: Output
298
+ }], unconfirmed: [{
299
+ type: Output
300
+ }] } });
425
301
 
426
- class NavigateBackButtonComponent {
427
- navigateBack() {
428
- window.history.back();
302
+ class ConfirmDirective {
303
+ // use a set input to allow auto import detection if the eventValue
304
+ // is not set
305
+ set eventValue(value) {
306
+ if (value !== '') {
307
+ this._eventValue = value;
308
+ }
429
309
  }
430
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NavigateBackButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
431
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: NavigateBackButtonComponent, isStandalone: true, selector: "rxap-navigate-back-button", host: { classAttribute: "rxap-navigate-back-button" }, ngImport: i0, template: "<div class=\"container\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\">\n <button (click)=\"navigateBack()\" color=\"accent\" mat-stroked-button>\n <mat-icon>navigate_before</mat-icon>\n </button>\n </div>\n <ng-content></ng-content>\n</div>\n", styles: [".container ::ng-deep h1,.container ::ng-deep h2,.container ::ng-deep h3,.container ::ng-deep h4,.container ::ng-deep h5,.container ::ng-deep h6{margin:0}\n"], dependencies: [{ kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i1.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"] }, { kind: "directive", type: i1.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"] }, { kind: "directive", type: i1.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"] }, { kind: "directive", type: i1.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"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
310
+ constructor(overlay, elementRef) {
311
+ this.overlay = overlay;
312
+ this.elementRef = elementRef;
313
+ this.confirmed = new EventEmitter();
314
+ this.unconfirmed = new EventEmitter();
315
+ this.subscription = null;
316
+ this.isOverlyOpen = false;
317
+ this.positionStrategy = this.overlay
318
+ .position()
319
+ .flexibleConnectedTo(this.elementRef.nativeElement)
320
+ .withPositions([
321
+ {
322
+ originX: 'start',
323
+ originY: 'bottom',
324
+ overlayX: 'start',
325
+ overlayY: 'top',
326
+ },
327
+ ])
328
+ .withDefaultOffsetY(10);
329
+ }
330
+ onClick($event) {
331
+ this.openConfirmOverly();
332
+ }
333
+ ngOnDestroy() {
334
+ this.subscription?.unsubscribe();
335
+ this.overlayRef?.dispose();
336
+ }
337
+ openConfirmOverly() {
338
+ if (this.isOverlyOpen) {
339
+ return;
340
+ }
341
+ this.isOverlyOpen = true;
342
+ this.overlayRef = this.overlay.create({
343
+ scrollStrategy: this.overlay.scrollStrategies.close(),
344
+ positionStrategy: this.positionStrategy,
345
+ });
346
+ const componentPortal = new ComponentPortal(ConfirmComponent);
347
+ const componentRef = this.overlayRef.attach(componentPortal);
348
+ this.subscription?.unsubscribe();
349
+ this.subscription = new Subscription();
350
+ this.subscription.add(componentRef.instance.confirmed
351
+ .pipe(take(1), tap(() => this.onConfirmed(this._eventValue)), tap(() => this.overlayRef?.dispose()), tap(() => this.isOverlyOpen = false), tap(() => (this.subscription = null)), tap(() => this.subscription?.unsubscribe()))
352
+ .subscribe());
353
+ this.subscription.add(componentRef.instance.unconfirmed
354
+ .pipe(take(1), tap(() => this.onUnconfirmed(this._eventValue)), tap(() => this.overlayRef?.dispose()), tap(() => this.isOverlyOpen = false), tap(() => (this.subscription = null)), tap(() => this.subscription?.unsubscribe()))
355
+ .subscribe());
356
+ this.subscription.add(this.overlayRef
357
+ .detachments()
358
+ .pipe(take(1), tap(() => this.isOverlyOpen = false), tap(() => (this.subscription = null)), tap(() => this.subscription?.unsubscribe()))
359
+ .subscribe());
360
+ }
361
+ onConfirmed(eventValue) {
362
+ this.confirmed.emit(eventValue);
363
+ }
364
+ onUnconfirmed(eventValue) {
365
+ this.unconfirmed.emit(eventValue);
366
+ }
367
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmDirective, deps: [{ token: Overlay }, { token: ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
368
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: ConfirmDirective, isStandalone: true, selector: "[rxapConfirm]", inputs: { eventValue: ["rxapConfirm", "eventValue"] }, outputs: { confirmed: "confirmed", unconfirmed: "unconfirmed" }, host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 }); }
432
369
  }
433
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NavigateBackButtonComponent, decorators: [{
434
- type: Component,
435
- args: [{ selector: 'rxap-navigate-back-button', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-navigate-back-button' }, standalone: true, imports: [FlexModule, MatButtonModule, MatIconModule], template: "<div class=\"container\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\">\n <button (click)=\"navigateBack()\" color=\"accent\" mat-stroked-button>\n <mat-icon>navigate_before</mat-icon>\n </button>\n </div>\n <ng-content></ng-content>\n</div>\n", styles: [".container ::ng-deep h1,.container ::ng-deep h2,.container ::ng-deep h3,.container ::ng-deep h4,.container ::ng-deep h5,.container ::ng-deep h6{margin:0}\n"] }]
370
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmDirective, decorators: [{
371
+ type: Directive,
372
+ args: [{
373
+ selector: '[rxapConfirm]',
374
+ standalone: true,
375
+ }]
376
+ }], ctorParameters: function () { return [{ type: i1$1.Overlay, decorators: [{
377
+ type: Inject,
378
+ args: [Overlay]
379
+ }] }, { type: i0.ElementRef, decorators: [{
380
+ type: Inject,
381
+ args: [ElementRef]
382
+ }] }]; }, propDecorators: { eventValue: [{
383
+ type: Input,
384
+ args: ['rxapConfirm']
385
+ }], confirmed: [{
386
+ type: Output
387
+ }], unconfirmed: [{
388
+ type: Output
389
+ }], onClick: [{
390
+ type: HostListener,
391
+ args: ['click', ['$event']]
392
+ }] } });
393
+
394
+ class ConfirmModule {
395
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
396
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: ConfirmModule, imports: [ConfirmDirective, ConfirmComponent], exports: [ConfirmDirective] }); }
397
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmModule, imports: [ConfirmComponent] }); }
398
+ }
399
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmModule, decorators: [{
400
+ type: NgModule,
401
+ args: [{
402
+ imports: [ConfirmDirective, ConfirmComponent],
403
+ exports: [ConfirmDirective],
404
+ }]
436
405
  }] });
437
406
 
438
- // region confirm
407
+ // region navigate-back-button
439
408
  // endregion
440
409
 
441
410
  /**
442
411
  * Generated bundle index. Do not edit.
443
412
  */
444
413
 
445
- export { ConfirmDirective, ConfirmModule, CopyToClipboardButtonComponent, CopyToClipboardComponent, DarkModeToggleButtonComponent, EmptyRouterOutletComponent, JSON_VIEW_IGNORED_PROPERTIES, JSON_VIEW_IGNORED_TYPES, JsonViewerComponent, NavigateBackButtonComponent };
414
+ export { ConfirmComponent, ConfirmDirective, ConfirmModule, CopyToClipboardButtonComponent, CopyToClipboardComponent, EmptyRouterOutletComponent, JSON_VIEW_IGNORED_PROPERTIES, JSON_VIEW_IGNORED_TYPES, JsonViewerComponent, NavigateBackButtonComponent };
446
415
  //# sourceMappingURL=rxap-components.mjs.map