@rxap/components 16.0.0-dev.0 → 16.0.0-dev.10
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 +270 -0
- package/LICENSE +621 -21
- package/LICENSE.md +621 -0
- package/README.md +8 -22
- package/esm2022/index.mjs +2 -9
- package/esm2022/lib/confirm/confirm.component.mjs +11 -11
- package/esm2022/lib/confirm/confirm.directive.mjs +9 -9
- package/esm2022/lib/confirm/confirm.module.mjs +17 -0
- package/esm2022/lib/copy-to-clipboard/copy-to-clipboard.component.mjs +12 -17
- package/esm2022/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.mjs +21 -14
- package/esm2022/lib/dark-mode-toggle-button/dark-mode-toggle-button.component.mjs +19 -13
- package/esm2022/lib/empty-router-outlet/empty-router-outlet.component.mjs +8 -9
- package/esm2022/lib/json-viewer/json-viewer.component.mjs +25 -15
- package/esm2022/lib/json-viewer/json-viewer.tokens.mjs +7 -7
- package/esm2022/lib/navigate-back-button/navigate-back-button.component.mjs +11 -9
- package/esm2022/rxap-components.mjs +1 -1
- package/fesm2022/rxap-components.mjs +90 -227
- package/fesm2022/rxap-components.mjs.map +1 -1
- package/index.d.ts +1 -8
- package/lib/confirm/confirm.component.d.ts +1 -1
- package/lib/confirm/confirm.directive.d.ts +1 -1
- package/lib/confirm/confirm.module.d.ts +8 -0
- package/lib/copy-to-clipboard/copy-to-clipboard.component.d.ts +1 -1
- package/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.d.ts +2 -2
- package/lib/dark-mode-toggle-button/dark-mode-toggle-button.component.d.ts +1 -1
- package/lib/empty-router-outlet/empty-router-outlet.component.d.ts +1 -1
- package/lib/json-viewer/json-viewer.component.d.ts +4 -4
- package/lib/json-viewer/json-viewer.tokens.d.ts +1 -1
- package/lib/navigate-back-button/navigate-back-button.component.d.ts +1 -1
- package/package.json +59 -47
- package/theme.css +1 -0
- package/collection.json +0 -10
- package/esm2022/lib/confirm/confirm.component.module.mjs +0 -34
- package/esm2022/lib/copy-to-clipboard/copy-to-clipboard.component.module.mjs +0 -45
- package/esm2022/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.module.mjs +0 -33
- package/esm2022/lib/dark-mode-toggle-button/dark-mode-toggle-button.component.module.mjs +0 -33
- package/esm2022/lib/empty-router-outlet/empty-router-outlet.component.module.mjs +0 -21
- package/esm2022/lib/json-viewer/json-viewer.component.module.mjs +0 -21
- package/esm2022/lib/navigate-back-button/navigate-back-button.component.module.mjs +0 -29
- package/lib/confirm/confirm.component.module.d.ts +0 -12
- package/lib/copy-to-clipboard/copy-to-clipboard.component.module.d.ts +0 -14
- package/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.module.d.ts +0 -11
- package/lib/dark-mode-toggle-button/dark-mode-toggle-button.component.module.d.ts +0 -11
- package/lib/empty-router-outlet/empty-router-outlet.component.module.d.ts +0 -8
- package/lib/json-viewer/json-viewer.component.module.d.ts +0 -8
- package/lib/navigate-back-button/navigate-back-button.component.module.d.ts +0 -10
- package/migration.json +0 -4
- package/src/schematics/ng-add/index.d.ts +0 -2
- package/src/schematics/ng-add/index.js +0 -8
- package/src/schematics/ng-add/index.js.map +0 -1
- package/src/schematics/ng-add/schema.json +0 -7
|
@@ -1,46 +1,40 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Component, ChangeDetectionStrategy, Output, ElementRef, Directive, Inject, Input, HostListener, NgModule, InjectionToken, ChangeDetectorRef } from '@angular/core';
|
|
3
|
-
import * as i1 from '@angular/flex-layout';
|
|
4
|
-
import { FlexModule, FlexLayoutModule } from '@angular/flex-layout';
|
|
5
|
-
import * as i2 from '@angular/material/legacy-button';
|
|
6
|
-
import { MatLegacyButtonModule } from '@angular/material/legacy-button';
|
|
2
|
+
import { EventEmitter, Component, ChangeDetectionStrategy, Output, ElementRef, Directive, Inject, Input, HostListener, NgModule, InjectionToken, ChangeDetectorRef, forwardRef } from '@angular/core';
|
|
7
3
|
import * as i3 from '@angular/material/icon';
|
|
8
4
|
import { MatIconModule } from '@angular/material/icon';
|
|
9
|
-
import * as i1$1 from '@angular/
|
|
10
|
-
import {
|
|
5
|
+
import * as i1$1 from '@angular/material/button';
|
|
6
|
+
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
11
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
12
12
|
import { take, tap } from 'rxjs/operators';
|
|
13
13
|
import { Subscription, Observable } from 'rxjs';
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import { isPromiseLike, clone, Required } from '@rxap/utilities';
|
|
14
|
+
import { RouterOutlet } from '@angular/router';
|
|
15
|
+
import { isPromiseLike, clone } from '@rxap/utilities';
|
|
17
16
|
import { ErrorStateMatcher } from '@angular/material/core';
|
|
18
|
-
import { SubscriptionHandler, isTeardownLogic } from '@rxap/
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
22
|
-
import * as
|
|
23
|
-
import { MatLegacySnackBar, MatLegacySnackBarModule } from '@angular/material/legacy-snack-bar';
|
|
24
|
-
import * as i3$1 from '@angular/cdk/clipboard';
|
|
17
|
+
import { SubscriptionHandler, isTeardownLogic } from '@rxap/rxjs';
|
|
18
|
+
import { NgFor, NgClass, NgIf } from '@angular/common';
|
|
19
|
+
import * as i4 from '@angular/material/snack-bar';
|
|
20
|
+
import { MatSnackBar, MatSnackBarModule } from '@angular/material/snack-bar';
|
|
21
|
+
import * as i2 from '@angular/cdk/clipboard';
|
|
25
22
|
import { ClipboardModule } from '@angular/cdk/clipboard';
|
|
26
|
-
import * as
|
|
23
|
+
import * as i3$1 from '@rxap/services';
|
|
27
24
|
import { ThemeService } from '@rxap/services';
|
|
28
|
-
import
|
|
29
|
-
import { StopPropagationDirectiveModule } from '@rxap/directives';
|
|
25
|
+
import { StopPropagationDirective } from '@rxap/directives';
|
|
30
26
|
|
|
31
27
|
class ConfirmComponent {
|
|
32
28
|
constructor() {
|
|
33
29
|
this.confirmed = new EventEmitter();
|
|
34
30
|
this.unconfirmed = new EventEmitter();
|
|
35
31
|
}
|
|
36
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
37
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
32
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
33
|
+
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 }); }
|
|
38
34
|
}
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmComponent, decorators: [{
|
|
40
36
|
type: Component,
|
|
41
|
-
args: [{ selector: 'rxap-confirm',
|
|
42
|
-
class: 'rxap-confirm'
|
|
43
|
-
}, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"container mat-elevation-z2\" fxLayout=\"row\" fxLayoutGap=\"4px\">\n <button type=\"button\" (click)=\"confirmed.emit()\" class=\"accept\" mat-icon-button>\n <mat-icon>done</mat-icon>\n </button>\n <button type=\"button\" (click)=\"unconfirmed.emit()\" class=\"decline\" mat-icon-button>\n <mat-icon>clear</mat-icon>\n </button>\n</div>\n", styles: [".container{border-radius:8px;padding:4px;background-color:#fff}.container .accept{color:#73be69}.container .decline{color:#cc4933}\n"] }]
|
|
37
|
+
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"] }]
|
|
44
38
|
}], propDecorators: { confirmed: [{
|
|
45
39
|
type: Output
|
|
46
40
|
}], unconfirmed: [{
|
|
@@ -112,15 +106,16 @@ class ConfirmDirective {
|
|
|
112
106
|
onUnconfirmed(eventValue) {
|
|
113
107
|
this.unconfirmed.emit(eventValue);
|
|
114
108
|
}
|
|
115
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
116
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
109
|
+
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 }); }
|
|
110
|
+
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 }); }
|
|
117
111
|
}
|
|
118
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
112
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmDirective, decorators: [{
|
|
119
113
|
type: Directive,
|
|
120
114
|
args: [{
|
|
121
115
|
selector: '[rxapConfirm]',
|
|
116
|
+
standalone: true,
|
|
122
117
|
}]
|
|
123
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
118
|
+
}], ctorParameters: function () { return [{ type: i1$2.Overlay, decorators: [{
|
|
124
119
|
type: Inject,
|
|
125
120
|
args: [Overlay]
|
|
126
121
|
}] }, { type: i0.ElementRef, decorators: [{
|
|
@@ -138,54 +133,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
138
133
|
args: ['click', ['$event']]
|
|
139
134
|
}] } });
|
|
140
135
|
|
|
141
|
-
class
|
|
142
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
143
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.
|
|
144
|
-
|
|
145
|
-
MatIconModule,
|
|
146
|
-
OverlayModule], exports: [ConfirmComponent, ConfirmDirective] }); }
|
|
147
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ConfirmComponentModule, imports: [FlexModule,
|
|
148
|
-
MatLegacyButtonModule,
|
|
149
|
-
MatIconModule,
|
|
150
|
-
OverlayModule] }); }
|
|
136
|
+
class ConfirmModule {
|
|
137
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
138
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: ConfirmModule, imports: [ConfirmDirective, ConfirmComponent], exports: [ConfirmDirective] }); }
|
|
139
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmModule, imports: [ConfirmComponent] }); }
|
|
151
140
|
}
|
|
152
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmModule, decorators: [{
|
|
153
142
|
type: NgModule,
|
|
154
143
|
args: [{
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
FlexModule,
|
|
158
|
-
MatLegacyButtonModule,
|
|
159
|
-
MatIconModule,
|
|
160
|
-
OverlayModule
|
|
161
|
-
],
|
|
162
|
-
exports: [ConfirmComponent, ConfirmDirective]
|
|
144
|
+
imports: [ConfirmDirective, ConfirmComponent],
|
|
145
|
+
exports: [ConfirmDirective],
|
|
163
146
|
}]
|
|
164
147
|
}] });
|
|
165
148
|
|
|
166
149
|
class EmptyRouterOutletComponent {
|
|
167
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
168
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
150
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: EmptyRouterOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
151
|
+
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 }); }
|
|
169
152
|
}
|
|
170
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: EmptyRouterOutletComponent, decorators: [{
|
|
171
154
|
type: Component,
|
|
172
|
-
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<router-outlet></router-outlet>\n" }]
|
|
173
|
-
}] });
|
|
174
|
-
|
|
175
|
-
class EmptyRouterOutletModule {
|
|
176
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: EmptyRouterOutletModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
177
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: EmptyRouterOutletModule, declarations: [EmptyRouterOutletComponent], imports: [RouterModule], exports: [EmptyRouterOutletComponent] }); }
|
|
178
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: EmptyRouterOutletModule, imports: [RouterModule] }); }
|
|
179
|
-
}
|
|
180
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: EmptyRouterOutletModule, decorators: [{
|
|
181
|
-
type: NgModule,
|
|
182
|
-
args: [{
|
|
183
|
-
declarations: [EmptyRouterOutletComponent],
|
|
184
|
-
imports: [
|
|
185
|
-
RouterModule
|
|
186
|
-
],
|
|
187
|
-
exports: [EmptyRouterOutletComponent]
|
|
188
|
-
}]
|
|
155
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [RouterOutlet], template: "<router-outlet></router-outlet>\n" }]
|
|
189
156
|
}] });
|
|
190
157
|
|
|
191
158
|
const JSON_VIEW_IGNORED_PROPERTIES = new InjectionToken('rxap/form-system/inspector/ignored-properties', {
|
|
@@ -194,8 +161,8 @@ const JSON_VIEW_IGNORED_PROPERTIES = new InjectionToken('rxap/form-system/inspec
|
|
|
194
161
|
'_subscriptions',
|
|
195
162
|
'subscriptions',
|
|
196
163
|
'injector',
|
|
197
|
-
|
|
198
|
-
]
|
|
164
|
+
/\$$/,
|
|
165
|
+
],
|
|
199
166
|
});
|
|
200
167
|
const JSON_VIEW_IGNORED_TYPES = new InjectionToken('rxap/form-system/inspector/ignored-types', {
|
|
201
168
|
providedIn: 'root',
|
|
@@ -204,13 +171,16 @@ const JSON_VIEW_IGNORED_TYPES = new InjectionToken('rxap/form-system/inspector/i
|
|
|
204
171
|
Promise,
|
|
205
172
|
Subscription,
|
|
206
173
|
SubscriptionHandler,
|
|
207
|
-
ErrorStateMatcher
|
|
208
|
-
]
|
|
174
|
+
ErrorStateMatcher,
|
|
175
|
+
],
|
|
209
176
|
});
|
|
210
177
|
|
|
211
178
|
class JsonViewerComponent {
|
|
212
179
|
constructor(ignoredProperties, ignoredTypes, cdr) {
|
|
213
180
|
this.cdr = cdr;
|
|
181
|
+
// TODO : add object input. The json input will not be cleaned
|
|
182
|
+
this.json = {};
|
|
183
|
+
this.expanded = false;
|
|
214
184
|
this.ignoredProperties = [];
|
|
215
185
|
this.ignoredTypes = [];
|
|
216
186
|
this.subscriptions = new Subscription();
|
|
@@ -237,6 +207,9 @@ class JsonViewerComponent {
|
|
|
237
207
|
}
|
|
238
208
|
}
|
|
239
209
|
cleanObject(obj, stack = []) {
|
|
210
|
+
if (typeof obj === 'string') {
|
|
211
|
+
return obj;
|
|
212
|
+
}
|
|
240
213
|
if (stack.some(item => item === obj)) {
|
|
241
214
|
return '__circular__';
|
|
242
215
|
}
|
|
@@ -246,7 +219,9 @@ class JsonViewerComponent {
|
|
|
246
219
|
.entries(obj)
|
|
247
220
|
.filter(([key, value]) => !isPromiseLike(value))
|
|
248
221
|
.filter(([key, value]) => !isTeardownLogic(value))
|
|
249
|
-
.filter(([key, value]) => this.ignoredProperties.every(ip => typeof ip === 'string' ?
|
|
222
|
+
.filter(([key, value]) => this.ignoredProperties.every(ip => typeof ip === 'string' ?
|
|
223
|
+
key !== ip :
|
|
224
|
+
!key.match(ip)))
|
|
250
225
|
.filter(([key, value]) => [...this.ignoredTypes].every(type => !(value instanceof type)))
|
|
251
226
|
.map(([key, value]) => {
|
|
252
227
|
if (value && typeof value === 'object') {
|
|
@@ -260,7 +235,10 @@ class JsonViewerComponent {
|
|
|
260
235
|
return [key, value];
|
|
261
236
|
})
|
|
262
237
|
.sort((a, b) => a[0].localeCompare(b[0]))
|
|
263
|
-
.reduce((controlView, [key, value]) => ({
|
|
238
|
+
.reduce((controlView, [key, value]) => ({
|
|
239
|
+
...controlView,
|
|
240
|
+
[key]: value,
|
|
241
|
+
}), {});
|
|
264
242
|
}
|
|
265
243
|
setInspectValue(json) {
|
|
266
244
|
if (typeof json !== 'object' || json === null || json === undefined) {
|
|
@@ -305,7 +283,7 @@ class JsonViewerComponent {
|
|
|
305
283
|
value: value,
|
|
306
284
|
type: undefined,
|
|
307
285
|
description: '' + value,
|
|
308
|
-
expanded: this.expanded
|
|
286
|
+
expanded: this.expanded,
|
|
309
287
|
};
|
|
310
288
|
switch (typeof segment.value) {
|
|
311
289
|
case 'number': {
|
|
@@ -352,12 +330,12 @@ class JsonViewerComponent {
|
|
|
352
330
|
}
|
|
353
331
|
return segment;
|
|
354
332
|
}
|
|
355
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
356
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
333
|
+
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 }); }
|
|
334
|
+
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 }); }
|
|
357
335
|
}
|
|
358
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
336
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: JsonViewerComponent, decorators: [{
|
|
359
337
|
type: Component,
|
|
360
|
-
args: [{ selector: 'rxap-json-viewer', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-json-viewer' }, 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\">{{ segment.key }}</span>\n <span class=\"segment-separator\">: </span>\n <span *ngIf=\"!segment.expanded || !isExpandable(segment)\"
|
|
338
|
+
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"] }]
|
|
361
339
|
}], ctorParameters: function () { return [{ type: Array, decorators: [{
|
|
362
340
|
type: Inject,
|
|
363
341
|
args: [JSON_VIEW_IGNORED_PROPERTIES]
|
|
@@ -373,22 +351,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
373
351
|
type: Input
|
|
374
352
|
}] } });
|
|
375
353
|
|
|
376
|
-
class JsonViewerModule {
|
|
377
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: JsonViewerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
378
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: JsonViewerModule, declarations: [JsonViewerComponent], imports: [CommonModule], exports: [JsonViewerComponent] }); }
|
|
379
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: JsonViewerModule, imports: [CommonModule] }); }
|
|
380
|
-
}
|
|
381
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: JsonViewerModule, decorators: [{
|
|
382
|
-
type: NgModule,
|
|
383
|
-
args: [{
|
|
384
|
-
declarations: [JsonViewerComponent],
|
|
385
|
-
imports: [
|
|
386
|
-
CommonModule
|
|
387
|
-
],
|
|
388
|
-
exports: [JsonViewerComponent]
|
|
389
|
-
}]
|
|
390
|
-
}] });
|
|
391
|
-
|
|
392
354
|
class CopyToClipboardButtonComponent {
|
|
393
355
|
constructor(snackbar) {
|
|
394
356
|
this.snackbar = snackbar;
|
|
@@ -399,15 +361,20 @@ class CopyToClipboardButtonComponent {
|
|
|
399
361
|
duration: 2500,
|
|
400
362
|
});
|
|
401
363
|
}
|
|
402
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
403
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
364
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CopyToClipboardButtonComponent, deps: [{ token: MatSnackBar }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
365
|
+
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 }); }
|
|
404
366
|
}
|
|
405
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
367
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CopyToClipboardButtonComponent, decorators: [{
|
|
406
368
|
type: Component,
|
|
407
|
-
args: [{ selector: 'rxap-copy-to-clipboard-button', changeDetection: ChangeDetectionStrategy.OnPush,
|
|
408
|
-
|
|
369
|
+
args: [{ selector: 'rxap-copy-to-clipboard-button', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
370
|
+
MatButtonModule,
|
|
371
|
+
ClipboardModule,
|
|
372
|
+
MatIconModule,
|
|
373
|
+
MatSnackBarModule,
|
|
374
|
+
], 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" }]
|
|
375
|
+
}], ctorParameters: function () { return [{ type: i4.MatSnackBar, decorators: [{
|
|
409
376
|
type: Inject,
|
|
410
|
-
args: [
|
|
377
|
+
args: [MatSnackBar]
|
|
411
378
|
}] }]; }, propDecorators: { value: [{
|
|
412
379
|
type: Input
|
|
413
380
|
}] } });
|
|
@@ -417,155 +384,51 @@ class CopyToClipboardComponent {
|
|
|
417
384
|
this.active = true;
|
|
418
385
|
this.disabled = false;
|
|
419
386
|
}
|
|
420
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
421
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
387
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CopyToClipboardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
388
|
+
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 }); }
|
|
422
389
|
}
|
|
423
|
-
|
|
424
|
-
Required,
|
|
425
|
-
__metadata("design:type", String)
|
|
426
|
-
], CopyToClipboardComponent.prototype, "value", void 0);
|
|
427
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CopyToClipboardComponent, decorators: [{
|
|
390
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CopyToClipboardComponent, decorators: [{
|
|
428
391
|
type: Component,
|
|
429
|
-
args: [{ selector: 'rxap-copy-to-clipboard', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"
|
|
392
|
+
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" }]
|
|
430
393
|
}], propDecorators: { active: [{
|
|
431
394
|
type: Input
|
|
432
395
|
}], disabled: [{
|
|
433
396
|
type: Input
|
|
434
397
|
}], value: [{
|
|
435
|
-
type: Input
|
|
398
|
+
type: Input,
|
|
399
|
+
args: [{ required: true }]
|
|
436
400
|
}] } });
|
|
437
401
|
|
|
438
|
-
class CopyToClipboardButtonComponentModule {
|
|
439
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CopyToClipboardButtonComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
440
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: CopyToClipboardButtonComponentModule, declarations: [CopyToClipboardButtonComponent], imports: [MatIconModule,
|
|
441
|
-
MatLegacyButtonModule,
|
|
442
|
-
ClipboardModule,
|
|
443
|
-
MatLegacySnackBarModule], exports: [CopyToClipboardButtonComponent] }); }
|
|
444
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CopyToClipboardButtonComponentModule, imports: [MatIconModule,
|
|
445
|
-
MatLegacyButtonModule,
|
|
446
|
-
ClipboardModule,
|
|
447
|
-
MatLegacySnackBarModule] }); }
|
|
448
|
-
}
|
|
449
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CopyToClipboardButtonComponentModule, decorators: [{
|
|
450
|
-
type: NgModule,
|
|
451
|
-
args: [{
|
|
452
|
-
declarations: [CopyToClipboardButtonComponent],
|
|
453
|
-
imports: [
|
|
454
|
-
MatIconModule,
|
|
455
|
-
MatLegacyButtonModule,
|
|
456
|
-
ClipboardModule,
|
|
457
|
-
MatLegacySnackBarModule
|
|
458
|
-
],
|
|
459
|
-
exports: [CopyToClipboardButtonComponent]
|
|
460
|
-
}]
|
|
461
|
-
}] });
|
|
462
|
-
|
|
463
|
-
class CopyToClipboardModule {
|
|
464
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CopyToClipboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
465
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: CopyToClipboardModule, declarations: [CopyToClipboardComponent], imports: [FlexLayoutModule,
|
|
466
|
-
ClipboardModule,
|
|
467
|
-
CommonModule,
|
|
468
|
-
MatIconModule,
|
|
469
|
-
MatLegacyButtonModule,
|
|
470
|
-
MatLegacySnackBarModule,
|
|
471
|
-
CopyToClipboardButtonComponentModule], exports: [CopyToClipboardComponent] }); }
|
|
472
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CopyToClipboardModule, imports: [FlexLayoutModule,
|
|
473
|
-
ClipboardModule,
|
|
474
|
-
CommonModule,
|
|
475
|
-
MatIconModule,
|
|
476
|
-
MatLegacyButtonModule,
|
|
477
|
-
MatLegacySnackBarModule,
|
|
478
|
-
CopyToClipboardButtonComponentModule] }); }
|
|
479
|
-
}
|
|
480
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CopyToClipboardModule, decorators: [{
|
|
481
|
-
type: NgModule,
|
|
482
|
-
args: [{
|
|
483
|
-
declarations: [CopyToClipboardComponent],
|
|
484
|
-
imports: [
|
|
485
|
-
FlexLayoutModule,
|
|
486
|
-
ClipboardModule,
|
|
487
|
-
CommonModule,
|
|
488
|
-
MatIconModule,
|
|
489
|
-
MatLegacyButtonModule,
|
|
490
|
-
MatLegacySnackBarModule,
|
|
491
|
-
CopyToClipboardButtonComponentModule,
|
|
492
|
-
],
|
|
493
|
-
exports: [CopyToClipboardComponent]
|
|
494
|
-
}]
|
|
495
|
-
}] });
|
|
496
|
-
|
|
497
402
|
class DarkModeToggleButtonComponent {
|
|
498
403
|
constructor(theme) {
|
|
499
404
|
this.theme = theme;
|
|
500
405
|
}
|
|
501
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
502
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
406
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DarkModeToggleButtonComponent, deps: [{ token: ThemeService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
407
|
+
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 }); }
|
|
503
408
|
}
|
|
504
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
409
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DarkModeToggleButtonComponent, decorators: [{
|
|
505
410
|
type: Component,
|
|
506
|
-
args: [{ selector: 'rxap-dark-mode-toggle-button', changeDetection: ChangeDetectionStrategy.OnPush,
|
|
507
|
-
|
|
411
|
+
args: [{ selector: 'rxap-dark-mode-toggle-button', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
412
|
+
MatButtonModule,
|
|
413
|
+
StopPropagationDirective,
|
|
414
|
+
NgIf,
|
|
415
|
+
MatIconModule,
|
|
416
|
+
], 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" }]
|
|
417
|
+
}], ctorParameters: function () { return [{ type: i3$1.ThemeService, decorators: [{
|
|
508
418
|
type: Inject,
|
|
509
419
|
args: [ThemeService]
|
|
510
420
|
}] }]; } });
|
|
511
421
|
|
|
512
|
-
class DarkModeToggleButtonComponentModule {
|
|
513
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DarkModeToggleButtonComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
514
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: DarkModeToggleButtonComponentModule, declarations: [DarkModeToggleButtonComponent], imports: [MatLegacyButtonModule,
|
|
515
|
-
MatIconModule,
|
|
516
|
-
CommonModule,
|
|
517
|
-
StopPropagationDirectiveModule], exports: [DarkModeToggleButtonComponent] }); }
|
|
518
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DarkModeToggleButtonComponentModule, imports: [MatLegacyButtonModule,
|
|
519
|
-
MatIconModule,
|
|
520
|
-
CommonModule,
|
|
521
|
-
StopPropagationDirectiveModule] }); }
|
|
522
|
-
}
|
|
523
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DarkModeToggleButtonComponentModule, decorators: [{
|
|
524
|
-
type: NgModule,
|
|
525
|
-
args: [{
|
|
526
|
-
declarations: [DarkModeToggleButtonComponent],
|
|
527
|
-
imports: [
|
|
528
|
-
MatLegacyButtonModule,
|
|
529
|
-
MatIconModule,
|
|
530
|
-
CommonModule,
|
|
531
|
-
StopPropagationDirectiveModule,
|
|
532
|
-
],
|
|
533
|
-
exports: [DarkModeToggleButtonComponent]
|
|
534
|
-
}]
|
|
535
|
-
}] });
|
|
536
|
-
|
|
537
422
|
class NavigateBackButtonComponent {
|
|
538
423
|
navigateBack() {
|
|
539
424
|
window.history.back();
|
|
540
425
|
}
|
|
541
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
542
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
426
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NavigateBackButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
427
|
+
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 }); }
|
|
543
428
|
}
|
|
544
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
429
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NavigateBackButtonComponent, decorators: [{
|
|
545
430
|
type: Component,
|
|
546
|
-
args: [{ selector: 'rxap-navigate-back-button', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-navigate-back-button' }, template: "<div
|
|
547
|
-
}] });
|
|
548
|
-
|
|
549
|
-
class NavigateBackButtonComponentModule {
|
|
550
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: NavigateBackButtonComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
551
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: NavigateBackButtonComponentModule, declarations: [NavigateBackButtonComponent], imports: [FlexLayoutModule,
|
|
552
|
-
MatLegacyButtonModule,
|
|
553
|
-
MatIconModule], exports: [NavigateBackButtonComponent] }); }
|
|
554
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: NavigateBackButtonComponentModule, imports: [FlexLayoutModule,
|
|
555
|
-
MatLegacyButtonModule,
|
|
556
|
-
MatIconModule] }); }
|
|
557
|
-
}
|
|
558
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: NavigateBackButtonComponentModule, decorators: [{
|
|
559
|
-
type: NgModule,
|
|
560
|
-
args: [{
|
|
561
|
-
declarations: [NavigateBackButtonComponent],
|
|
562
|
-
imports: [
|
|
563
|
-
FlexLayoutModule,
|
|
564
|
-
MatLegacyButtonModule,
|
|
565
|
-
MatIconModule
|
|
566
|
-
],
|
|
567
|
-
exports: [NavigateBackButtonComponent]
|
|
568
|
-
}]
|
|
431
|
+
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"] }]
|
|
569
432
|
}] });
|
|
570
433
|
|
|
571
434
|
// region confirm
|
|
@@ -575,5 +438,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
575
438
|
* Generated bundle index. Do not edit.
|
|
576
439
|
*/
|
|
577
440
|
|
|
578
|
-
export {
|
|
441
|
+
export { ConfirmDirective, ConfirmModule, CopyToClipboardButtonComponent, CopyToClipboardComponent, DarkModeToggleButtonComponent, EmptyRouterOutletComponent, JSON_VIEW_IGNORED_PROPERTIES, JSON_VIEW_IGNORED_TYPES, JsonViewerComponent, NavigateBackButtonComponent };
|
|
579
442
|
//# sourceMappingURL=rxap-components.mjs.map
|