@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.
- package/CHANGELOG.md +111 -0
- package/README.md +1 -1
- package/esm2022/index.mjs +13 -13
- package/esm2022/lib/confirm/confirm.component.mjs +6 -8
- package/esm2022/lib/confirm/confirm.directive.mjs +4 -4
- package/esm2022/lib/copy-to-clipboard/copy-to-clipboard.component.mjs +6 -13
- package/esm2022/lib/empty-router-outlet/empty-router-outlet.component.mjs +3 -3
- package/esm2022/lib/json-viewer/json-viewer.component.mjs +12 -14
- package/esm2022/lib/navigate-back-button/navigate-back-button.component.mjs +6 -8
- package/fesm2022/rxap-components.mjs +158 -189
- package/fesm2022/rxap-components.mjs.map +1 -1
- package/index.d.ts +6 -6
- package/lib/confirm/confirm.directive.d.ts +3 -3
- package/lib/copy-to-clipboard/copy-to-clipboard.component.d.ts +1 -1
- package/lib/empty-router-outlet/empty-router-outlet.component.d.ts +1 -1
- package/lib/json-viewer/json-viewer.tokens.d.ts +1 -1
- package/package.json +33 -36
- package/theme.css +1 -1
- package/esm2022/lib/dark-mode-toggle-button/dark-mode-toggle-button.component.mjs +0 -30
- package/lib/dark-mode-toggle-button/dark-mode-toggle-button.component.d.ts +0 -8
|
@@ -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 {
|
|
3
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@angular/
|
|
7
|
-
import * as i2 from "@angular/material/
|
|
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
|
|
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: [
|
|
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,
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF2aWdhdGUtYmFjay1idXR0b24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvYW5ndWxhci9jb21wb25lbnRzL3NyYy9saWIvbmF2aWdhdGUtYmFjay1idXR0b24vbmF2aWdhdGUtYmFjay1idXR0b24uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvYW5ndWxhci9jb21wb25lbnRzL3NyYy9saWIvbmF2aWdhdGUtYmFjay1idXR0b24vbmF2aWdhdGUtYmFjay1idXR0b24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEdBQ1YsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQzNELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQzs7OztBQVl2RCxNQUFNLE9BQU8sMkJBQTJCO0lBRS9CLFlBQVk7UUFDakIsTUFBTSxDQUFDLE9BQU8sQ0FBQyxJQUFJLEVBQUUsQ0FBQztJQUN4QixDQUFDOzhHQUpVLDJCQUEyQjtrR0FBM0IsMkJBQTJCLDRJQ2pCeEMsa1RBUUEsa1BET2EsZUFBZSwyUUFBRSxhQUFhOzsyRkFFOUIsMkJBQTJCO2tCQVZ2QyxTQUFTOytCQUNFLDJCQUEyQixtQkFHcEIsdUJBQXVCLENBQUMsTUFBTSxRQUV6QyxFQUFFLEtBQUssRUFBRSwyQkFBMkIsRUFBRSxjQUNoQyxJQUFJLFdBQ1AsQ0FBRSxlQUFlLEVBQUUsYUFBYSxDQUFFIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtcbiAgQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3ksXG4gIENvbXBvbmVudCxcbn0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBNYXRCdXR0b25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9tYXRlcmlhbC9idXR0b24nO1xuaW1wb3J0IHsgTWF0SWNvbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL21hdGVyaWFsL2ljb24nO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdyeGFwLW5hdmlnYXRlLWJhY2stYnV0dG9uJyxcbiAgdGVtcGxhdGVVcmw6ICcuL25hdmlnYXRlLWJhY2stYnV0dG9uLmNvbXBvbmVudC5odG1sJyxcbiAgc3R5bGVVcmxzOiBbICcuL25hdmlnYXRlLWJhY2stYnV0dG9uLmNvbXBvbmVudC5zY3NzJyBdLFxuICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCxcbiAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEBhbmd1bGFyLWVzbGludC9uby1ob3N0LW1ldGFkYXRhLXByb3BlcnR5XG4gIGhvc3Q6IHsgY2xhc3M6ICdyeGFwLW5hdmlnYXRlLWJhY2stYnV0dG9uJyB9LFxuICBzdGFuZGFsb25lOiB0cnVlLFxuICBpbXBvcnRzOiBbIE1hdEJ1dHRvbk1vZHVsZSwgTWF0SWNvbk1vZHVsZSBdLFxufSlcbmV4cG9ydCBjbGFzcyBOYXZpZ2F0ZUJhY2tCdXR0b25Db21wb25lbnQge1xuXG4gIHB1YmxpYyBuYXZpZ2F0ZUJhY2soKSB7XG4gICAgd2luZG93Lmhpc3RvcnkuYmFjaygpO1xuICB9XG5cbn1cbiIsIjxkaXYgY2xhc3M9XCJyeGFwLWNvbnRhaW5lciBmbGV4IGZsZXgtcm93IGp1c3RpZnktc3RhcnQgaXRlbXMtY2VudGVyIGdhcC04XCI+XG4gIDxkaXYgY2xhc3M9XCJncm93LTBcIj5cbiAgICA8YnV0dG9uIHR5cGU9XCJidXR0b25cIiAoY2xpY2spPVwibmF2aWdhdGVCYWNrKClcIiBjb2xvcj1cImFjY2VudFwiIG1hdC1zdHJva2VkLWJ1dHRvbj5cbiAgICAgIDxtYXQtaWNvbj5uYXZpZ2F0ZV9iZWZvcmU8L21hdC1pY29uPlxuICAgIDwvYnV0dG9uPlxuICA8L2Rpdj5cbiAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxuPC9kaXY+XG4iXX0=
|
|
@@ -1,159 +1,34 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
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
|
|
8
|
-
import {
|
|
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 {
|
|
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
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
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
|
|
46
|
-
|
|
47
|
-
|
|
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:
|
|
111
|
-
static { this.ɵ
|
|
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:
|
|
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: [
|
|
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
|
-
|
|
128
|
+
json = json.toJSON();
|
|
253
129
|
}
|
|
254
|
-
|
|
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-
|
|
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-
|
|
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
|
|
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
|
|
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: [
|
|
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
|
|
407
|
-
constructor(
|
|
408
|
-
this.
|
|
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:
|
|
411
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type:
|
|
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:
|
|
293
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmComponent, decorators: [{
|
|
414
294
|
type: Component,
|
|
415
|
-
args: [{ selector: 'rxap-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
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
|
|
427
|
-
|
|
428
|
-
|
|
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
|
-
|
|
431
|
-
|
|
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:
|
|
434
|
-
type:
|
|
435
|
-
args: [{
|
|
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
|
|
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,
|
|
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
|