@rxap/components 16.0.0-dev.1 → 16.0.0-dev.3
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 +227 -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 +10 -10
- 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 +87 -220
- 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 +55 -47
- package/LICENSE +0 -21
- 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,41 @@
|
|
|
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 { RouterModule } from '@angular/router';
|
|
14
|
+
import { RouterOutlet } from '@angular/router';
|
|
16
15
|
import { isPromiseLike, clone, Required } from '@rxap/utilities';
|
|
17
16
|
import { ErrorStateMatcher } from '@angular/material/core';
|
|
18
|
-
import { SubscriptionHandler, isTeardownLogic } from '@rxap/
|
|
19
|
-
import
|
|
20
|
-
import { CommonModule } from '@angular/common';
|
|
17
|
+
import { SubscriptionHandler, isTeardownLogic } from '@rxap/rxjs';
|
|
18
|
+
import { NgFor, NgClass, NgIf } from '@angular/common';
|
|
21
19
|
import { __decorate, __metadata } from 'tslib';
|
|
22
|
-
import * as i4 from '@angular/material/
|
|
23
|
-
import {
|
|
24
|
-
import * as
|
|
20
|
+
import * as i4 from '@angular/material/snack-bar';
|
|
21
|
+
import { MatSnackBar, MatSnackBarModule } from '@angular/material/snack-bar';
|
|
22
|
+
import * as i2 from '@angular/cdk/clipboard';
|
|
25
23
|
import { ClipboardModule } from '@angular/cdk/clipboard';
|
|
26
|
-
import * as
|
|
24
|
+
import * as i3$1 from '@rxap/services';
|
|
27
25
|
import { ThemeService } from '@rxap/services';
|
|
28
|
-
import
|
|
29
|
-
import { StopPropagationDirectiveModule } from '@rxap/directives';
|
|
26
|
+
import { StopPropagationDirective } from '@rxap/directives';
|
|
30
27
|
|
|
31
28
|
class ConfirmComponent {
|
|
32
29
|
constructor() {
|
|
33
30
|
this.confirmed = new EventEmitter();
|
|
34
31
|
this.unconfirmed = new EventEmitter();
|
|
35
32
|
}
|
|
36
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
37
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
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 }); }
|
|
38
35
|
}
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmComponent, decorators: [{
|
|
40
37
|
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"] }]
|
|
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"] }]
|
|
44
39
|
}], propDecorators: { confirmed: [{
|
|
45
40
|
type: Output
|
|
46
41
|
}], unconfirmed: [{
|
|
@@ -112,15 +107,16 @@ class ConfirmDirective {
|
|
|
112
107
|
onUnconfirmed(eventValue) {
|
|
113
108
|
this.unconfirmed.emit(eventValue);
|
|
114
109
|
}
|
|
115
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
116
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
110
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmDirective, deps: [{ token: Overlay }, { token: ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
111
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: ConfirmDirective, isStandalone: true, selector: "[rxapConfirm]", inputs: { eventValue: ["rxapConfirm", "eventValue"] }, outputs: { confirmed: "confirmed", unconfirmed: "unconfirmed" }, host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 }); }
|
|
117
112
|
}
|
|
118
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
113
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmDirective, decorators: [{
|
|
119
114
|
type: Directive,
|
|
120
115
|
args: [{
|
|
121
116
|
selector: '[rxapConfirm]',
|
|
117
|
+
standalone: true,
|
|
122
118
|
}]
|
|
123
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
119
|
+
}], ctorParameters: function () { return [{ type: i1$2.Overlay, decorators: [{
|
|
124
120
|
type: Inject,
|
|
125
121
|
args: [Overlay]
|
|
126
122
|
}] }, { type: i0.ElementRef, decorators: [{
|
|
@@ -138,54 +134,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
138
134
|
args: ['click', ['$event']]
|
|
139
135
|
}] } });
|
|
140
136
|
|
|
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] }); }
|
|
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] }); }
|
|
151
141
|
}
|
|
152
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmModule, decorators: [{
|
|
153
143
|
type: NgModule,
|
|
154
144
|
args: [{
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
FlexModule,
|
|
158
|
-
MatLegacyButtonModule,
|
|
159
|
-
MatIconModule,
|
|
160
|
-
OverlayModule
|
|
161
|
-
],
|
|
162
|
-
exports: [ConfirmComponent, ConfirmDirective]
|
|
145
|
+
imports: [ConfirmDirective, ConfirmComponent],
|
|
146
|
+
exports: [ConfirmDirective],
|
|
163
147
|
}]
|
|
164
148
|
}] });
|
|
165
149
|
|
|
166
150
|
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.
|
|
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 }); }
|
|
169
153
|
}
|
|
170
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: EmptyRouterOutletComponent, decorators: [{
|
|
171
155
|
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
|
-
}]
|
|
156
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [RouterOutlet], template: "<router-outlet></router-outlet>\n" }]
|
|
189
157
|
}] });
|
|
190
158
|
|
|
191
159
|
const JSON_VIEW_IGNORED_PROPERTIES = new InjectionToken('rxap/form-system/inspector/ignored-properties', {
|
|
@@ -194,8 +162,8 @@ const JSON_VIEW_IGNORED_PROPERTIES = new InjectionToken('rxap/form-system/inspec
|
|
|
194
162
|
'_subscriptions',
|
|
195
163
|
'subscriptions',
|
|
196
164
|
'injector',
|
|
197
|
-
|
|
198
|
-
]
|
|
165
|
+
/\$$/,
|
|
166
|
+
],
|
|
199
167
|
});
|
|
200
168
|
const JSON_VIEW_IGNORED_TYPES = new InjectionToken('rxap/form-system/inspector/ignored-types', {
|
|
201
169
|
providedIn: 'root',
|
|
@@ -204,13 +172,16 @@ const JSON_VIEW_IGNORED_TYPES = new InjectionToken('rxap/form-system/inspector/i
|
|
|
204
172
|
Promise,
|
|
205
173
|
Subscription,
|
|
206
174
|
SubscriptionHandler,
|
|
207
|
-
ErrorStateMatcher
|
|
208
|
-
]
|
|
175
|
+
ErrorStateMatcher,
|
|
176
|
+
],
|
|
209
177
|
});
|
|
210
178
|
|
|
211
179
|
class JsonViewerComponent {
|
|
212
180
|
constructor(ignoredProperties, ignoredTypes, cdr) {
|
|
213
181
|
this.cdr = cdr;
|
|
182
|
+
// TODO : add object input. The json input will not be cleaned
|
|
183
|
+
this.json = {};
|
|
184
|
+
this.expanded = false;
|
|
214
185
|
this.ignoredProperties = [];
|
|
215
186
|
this.ignoredTypes = [];
|
|
216
187
|
this.subscriptions = new Subscription();
|
|
@@ -237,6 +208,9 @@ class JsonViewerComponent {
|
|
|
237
208
|
}
|
|
238
209
|
}
|
|
239
210
|
cleanObject(obj, stack = []) {
|
|
211
|
+
if (typeof obj === 'string') {
|
|
212
|
+
return obj;
|
|
213
|
+
}
|
|
240
214
|
if (stack.some(item => item === obj)) {
|
|
241
215
|
return '__circular__';
|
|
242
216
|
}
|
|
@@ -246,7 +220,9 @@ class JsonViewerComponent {
|
|
|
246
220
|
.entries(obj)
|
|
247
221
|
.filter(([key, value]) => !isPromiseLike(value))
|
|
248
222
|
.filter(([key, value]) => !isTeardownLogic(value))
|
|
249
|
-
.filter(([key, value]) => this.ignoredProperties.every(ip => typeof ip === 'string' ?
|
|
223
|
+
.filter(([key, value]) => this.ignoredProperties.every(ip => typeof ip === 'string' ?
|
|
224
|
+
key !== ip :
|
|
225
|
+
!key.match(ip)))
|
|
250
226
|
.filter(([key, value]) => [...this.ignoredTypes].every(type => !(value instanceof type)))
|
|
251
227
|
.map(([key, value]) => {
|
|
252
228
|
if (value && typeof value === 'object') {
|
|
@@ -260,7 +236,10 @@ class JsonViewerComponent {
|
|
|
260
236
|
return [key, value];
|
|
261
237
|
})
|
|
262
238
|
.sort((a, b) => a[0].localeCompare(b[0]))
|
|
263
|
-
.reduce((controlView, [key, value]) => ({
|
|
239
|
+
.reduce((controlView, [key, value]) => ({
|
|
240
|
+
...controlView,
|
|
241
|
+
[key]: value,
|
|
242
|
+
}), {});
|
|
264
243
|
}
|
|
265
244
|
setInspectValue(json) {
|
|
266
245
|
if (typeof json !== 'object' || json === null || json === undefined) {
|
|
@@ -305,7 +284,7 @@ class JsonViewerComponent {
|
|
|
305
284
|
value: value,
|
|
306
285
|
type: undefined,
|
|
307
286
|
description: '' + value,
|
|
308
|
-
expanded: this.expanded
|
|
287
|
+
expanded: this.expanded,
|
|
309
288
|
};
|
|
310
289
|
switch (typeof segment.value) {
|
|
311
290
|
case 'number': {
|
|
@@ -352,12 +331,12 @@ class JsonViewerComponent {
|
|
|
352
331
|
}
|
|
353
332
|
return segment;
|
|
354
333
|
}
|
|
355
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
356
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
334
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: JsonViewerComponent, deps: [{ token: JSON_VIEW_IGNORED_PROPERTIES }, { token: JSON_VIEW_IGNORED_TYPES }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
335
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: JsonViewerComponent, isStandalone: true, selector: "rxap-json-viewer", inputs: { json: "json", expanded: "expanded" }, host: { classAttribute: "rxap-json-viewer" }, usesOnChanges: true, ngImport: i0, template: "<section class=\"container\">\n <section\n *ngFor=\"let segment of segments\"\n [ngClass]=\"['segment', 'segment-type-' + segment.type]\">\n <section\n (click)=\"toggle(segment)\"\n [ngClass]=\"{\n 'segment-main': true,\n 'expandable': isExpandable(segment),\n 'expanded': segment.expanded\n }\">\n <div *ngIf=\"isExpandable(segment)\" class=\"toggler\"></div>\n <span class=\"segment-key text-primary\">{{ segment.key }}</span>\n <span class=\"segment-separator\">: </span>\n <span *ngIf=\"!segment.expanded || !isExpandable(segment)\"\n class=\"segment-value text-white dark:text-black\">{{ segment.description }}</span>\n </section>\n <section *ngIf=\"segment.expanded && isExpandable(segment)\" class=\"children\">\n <rxap-json-viewer [expanded]=\"expanded\" [json]=\"segment.value\"></rxap-json-viewer>\n </section>\n </section>\n</section>\n", styles: ["@charset \"UTF-8\";.container{width:100%;height:100%;overflow:hidden;position:relative;font-family:monospace;font-size:16px}.container .segment .segment-main .toggler{font-size:8px;line-height:12px}.container .segment{padding:2px;margin:1px 1px 1px 12px}.container .segment .segment-main{word-wrap:break-word}.container .segment .segment-main .toggler{position:absolute;margin-left:-14px;margin-top:3px;vertical-align:middle}.container .segment .segment-main .toggler:after{display:inline-block;content:\"\\25ba\";transition:transform .1s ease-in}.container .segment .children{margin-left:12px}.container .segment-type-object>.segment-main,.container .segment-type-array>.segment-main{white-space:nowrap}.container .expanded>.toggler:after{transform:rotate(90deg)}.container .expandable,.container .expandable>.toggler{cursor:pointer}.container .segment .segment-main .toggler{color:#787878}.container .segment .segment-main .segment-separator{color:#999}.container .segment-type-string>.segment-main>.segment-value{color:var(--json-string-color, #FF6B6B)}.container .segment-type-number>.segment-main>.segment-value{color:var(--json-number-color, #009688)}.container .segment-type-boolean>.segment-main>.segment-value{color:var(--json-boolean-color, #b938a4)}.container .segment-type-date>.segment-main>.segment-value{color:var(--json-date-color, #05668D)}.container .segment-type-array>.segment-main>.segment-value{color:var(--json-array-color, #999)}.container .segment-type-object>.segment-main>.segment-value{color:var(--json-object-color, #999)}.container .segment-type-function>.segment-main>.segment-value{color:var(--json-function-color, #999)}.container .segment-type-null>.segment-main>.segment-value{color:var(--json-null-color, #fff)}.container .segment-type-undefined>.segment-main>.segment-value{color:var(--json-undefined-color, #fff)}.container .segment-type-null>.segment-main>.segment-value{background-color:var(--warn-color, darkred)}.container .segment-type-undefined>.segment-main>.segment-key{color:#999}.container .segment-type-undefined>.segment-main>.segment-value{background-color:#999}\n"], dependencies: [{ kind: "component", type: i0.forwardRef(function () { return JsonViewerComponent; }), selector: "rxap-json-viewer", inputs: ["json", "expanded"] }, { kind: "directive", type: i0.forwardRef(function () { return NgFor; }), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i0.forwardRef(function () { return NgClass; }), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(function () { return NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
357
336
|
}
|
|
358
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
337
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: JsonViewerComponent, decorators: [{
|
|
359
338
|
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)\"
|
|
339
|
+
args: [{ selector: 'rxap-json-viewer', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-json-viewer' }, standalone: true, imports: [NgFor, NgClass, NgIf, forwardRef(() => JsonViewerComponent)], template: "<section class=\"container\">\n <section\n *ngFor=\"let segment of segments\"\n [ngClass]=\"['segment', 'segment-type-' + segment.type]\">\n <section\n (click)=\"toggle(segment)\"\n [ngClass]=\"{\n 'segment-main': true,\n 'expandable': isExpandable(segment),\n 'expanded': segment.expanded\n }\">\n <div *ngIf=\"isExpandable(segment)\" class=\"toggler\"></div>\n <span class=\"segment-key text-primary\">{{ segment.key }}</span>\n <span class=\"segment-separator\">: </span>\n <span *ngIf=\"!segment.expanded || !isExpandable(segment)\"\n class=\"segment-value text-white dark:text-black\">{{ segment.description }}</span>\n </section>\n <section *ngIf=\"segment.expanded && isExpandable(segment)\" class=\"children\">\n <rxap-json-viewer [expanded]=\"expanded\" [json]=\"segment.value\"></rxap-json-viewer>\n </section>\n </section>\n</section>\n", styles: ["@charset \"UTF-8\";.container{width:100%;height:100%;overflow:hidden;position:relative;font-family:monospace;font-size:16px}.container .segment .segment-main .toggler{font-size:8px;line-height:12px}.container .segment{padding:2px;margin:1px 1px 1px 12px}.container .segment .segment-main{word-wrap:break-word}.container .segment .segment-main .toggler{position:absolute;margin-left:-14px;margin-top:3px;vertical-align:middle}.container .segment .segment-main .toggler:after{display:inline-block;content:\"\\25ba\";transition:transform .1s ease-in}.container .segment .children{margin-left:12px}.container .segment-type-object>.segment-main,.container .segment-type-array>.segment-main{white-space:nowrap}.container .expanded>.toggler:after{transform:rotate(90deg)}.container .expandable,.container .expandable>.toggler{cursor:pointer}.container .segment .segment-main .toggler{color:#787878}.container .segment .segment-main .segment-separator{color:#999}.container .segment-type-string>.segment-main>.segment-value{color:var(--json-string-color, #FF6B6B)}.container .segment-type-number>.segment-main>.segment-value{color:var(--json-number-color, #009688)}.container .segment-type-boolean>.segment-main>.segment-value{color:var(--json-boolean-color, #b938a4)}.container .segment-type-date>.segment-main>.segment-value{color:var(--json-date-color, #05668D)}.container .segment-type-array>.segment-main>.segment-value{color:var(--json-array-color, #999)}.container .segment-type-object>.segment-main>.segment-value{color:var(--json-object-color, #999)}.container .segment-type-function>.segment-main>.segment-value{color:var(--json-function-color, #999)}.container .segment-type-null>.segment-main>.segment-value{color:var(--json-null-color, #fff)}.container .segment-type-undefined>.segment-main>.segment-value{color:var(--json-undefined-color, #fff)}.container .segment-type-null>.segment-main>.segment-value{background-color:var(--warn-color, darkred)}.container .segment-type-undefined>.segment-main>.segment-key{color:#999}.container .segment-type-undefined>.segment-main>.segment-value{background-color:#999}\n"] }]
|
|
361
340
|
}], ctorParameters: function () { return [{ type: Array, decorators: [{
|
|
362
341
|
type: Inject,
|
|
363
342
|
args: [JSON_VIEW_IGNORED_PROPERTIES]
|
|
@@ -373,22 +352,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
373
352
|
type: Input
|
|
374
353
|
}] } });
|
|
375
354
|
|
|
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
355
|
class CopyToClipboardButtonComponent {
|
|
393
356
|
constructor(snackbar) {
|
|
394
357
|
this.snackbar = snackbar;
|
|
@@ -399,15 +362,20 @@ class CopyToClipboardButtonComponent {
|
|
|
399
362
|
duration: 2500,
|
|
400
363
|
});
|
|
401
364
|
}
|
|
402
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
403
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
365
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CopyToClipboardButtonComponent, deps: [{ token: MatSnackBar }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
366
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: CopyToClipboardButtonComponent, isStandalone: true, selector: "rxap-copy-to-clipboard-button", inputs: { value: "value" }, ngImport: i0, template: "<button\n (cdkCopyToClipboardCopied)=\"copied()\"\n (click)=\"$event.stopPropagation()\"\n [cdkCopyToClipboard]=\"value\"\n mat-icon-button\n type=\"button\"\n>\n <mat-icon>content_copy</mat-icon>\n</button>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: ClipboardModule }, { kind: "directive", type: i2.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatSnackBarModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
404
367
|
}
|
|
405
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
368
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CopyToClipboardButtonComponent, decorators: [{
|
|
406
369
|
type: Component,
|
|
407
|
-
args: [{ selector: 'rxap-copy-to-clipboard-button', changeDetection: ChangeDetectionStrategy.OnPush,
|
|
408
|
-
|
|
370
|
+
args: [{ selector: 'rxap-copy-to-clipboard-button', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
371
|
+
MatButtonModule,
|
|
372
|
+
ClipboardModule,
|
|
373
|
+
MatIconModule,
|
|
374
|
+
MatSnackBarModule,
|
|
375
|
+
], 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" }]
|
|
376
|
+
}], ctorParameters: function () { return [{ type: i4.MatSnackBar, decorators: [{
|
|
409
377
|
type: Inject,
|
|
410
|
-
args: [
|
|
378
|
+
args: [MatSnackBar]
|
|
411
379
|
}] }]; }, propDecorators: { value: [{
|
|
412
380
|
type: Input
|
|
413
381
|
}] } });
|
|
@@ -417,16 +385,16 @@ class CopyToClipboardComponent {
|
|
|
417
385
|
this.active = true;
|
|
418
386
|
this.disabled = false;
|
|
419
387
|
}
|
|
420
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
421
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
388
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CopyToClipboardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
389
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: CopyToClipboardComponent, isStandalone: true, selector: "rxap-copy-to-clipboard", inputs: { active: "active", disabled: "disabled", value: "value" }, ngImport: i0, template: "<div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"2px\">\n <rxap-copy-to-clipboard-button *ngIf=\"active\" [value]=\"value\" fxFlex=\"40px\"></rxap-copy-to-clipboard-button>\n <span #ref class=\"content\" fxFlex=\"nogrow\"><ng-content></ng-content></span>\n <span *ngIf=\"!ref.innerHTML.trim()\" class=\"content\" fxFlex=\"nogrow\">{{ value }}</span>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i1.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i1.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i1.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CopyToClipboardButtonComponent, selector: "rxap-copy-to-clipboard-button", inputs: ["value"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
422
390
|
}
|
|
423
391
|
__decorate([
|
|
424
392
|
Required,
|
|
425
393
|
__metadata("design:type", String)
|
|
426
394
|
], CopyToClipboardComponent.prototype, "value", void 0);
|
|
427
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
395
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CopyToClipboardComponent, decorators: [{
|
|
428
396
|
type: Component,
|
|
429
|
-
args: [{ selector: 'rxap-copy-to-clipboard', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"
|
|
397
|
+
args: [{ selector: 'rxap-copy-to-clipboard', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [FlexModule, NgIf, CopyToClipboardButtonComponent], template: "<div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"2px\">\n <rxap-copy-to-clipboard-button *ngIf=\"active\" [value]=\"value\" fxFlex=\"40px\"></rxap-copy-to-clipboard-button>\n <span #ref class=\"content\" fxFlex=\"nogrow\"><ng-content></ng-content></span>\n <span *ngIf=\"!ref.innerHTML.trim()\" class=\"content\" fxFlex=\"nogrow\">{{ value }}</span>\n</div>\n" }]
|
|
430
398
|
}], propDecorators: { active: [{
|
|
431
399
|
type: Input
|
|
432
400
|
}], disabled: [{
|
|
@@ -435,137 +403,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
435
403
|
type: Input
|
|
436
404
|
}] } });
|
|
437
405
|
|
|
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
406
|
class DarkModeToggleButtonComponent {
|
|
498
407
|
constructor(theme) {
|
|
499
408
|
this.theme = theme;
|
|
500
409
|
}
|
|
501
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
502
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
410
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DarkModeToggleButtonComponent, deps: [{ token: ThemeService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
411
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: DarkModeToggleButtonComponent, isStandalone: true, selector: "rxap-dark-mode-toggle-button", ngImport: i0, template: "<button (click)=\"theme.toggleDarkTheme()\" mat-icon-button rxapStopPropagation>\n <mat-icon *ngIf=\"theme.darkMode\">brightness_2</mat-icon>\n <mat-icon *ngIf=\"!theme.darkMode\">brightness_5</mat-icon>\n</button>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: StopPropagationDirective, selector: "[rxapStopPropagation]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
503
412
|
}
|
|
504
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
413
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DarkModeToggleButtonComponent, decorators: [{
|
|
505
414
|
type: Component,
|
|
506
|
-
args: [{ selector: 'rxap-dark-mode-toggle-button', changeDetection: ChangeDetectionStrategy.OnPush,
|
|
507
|
-
|
|
415
|
+
args: [{ selector: 'rxap-dark-mode-toggle-button', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
416
|
+
MatButtonModule,
|
|
417
|
+
StopPropagationDirective,
|
|
418
|
+
NgIf,
|
|
419
|
+
MatIconModule,
|
|
420
|
+
], template: "<button (click)=\"theme.toggleDarkTheme()\" mat-icon-button rxapStopPropagation>\n <mat-icon *ngIf=\"theme.darkMode\">brightness_2</mat-icon>\n <mat-icon *ngIf=\"!theme.darkMode\">brightness_5</mat-icon>\n</button>\n" }]
|
|
421
|
+
}], ctorParameters: function () { return [{ type: i3$1.ThemeService, decorators: [{
|
|
508
422
|
type: Inject,
|
|
509
423
|
args: [ThemeService]
|
|
510
424
|
}] }]; } });
|
|
511
425
|
|
|
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
426
|
class NavigateBackButtonComponent {
|
|
538
427
|
navigateBack() {
|
|
539
428
|
window.history.back();
|
|
540
429
|
}
|
|
541
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
542
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
430
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NavigateBackButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
431
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: NavigateBackButtonComponent, isStandalone: true, selector: "rxap-navigate-back-button", host: { classAttribute: "rxap-navigate-back-button" }, ngImport: i0, template: "<div class=\"container\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\">\n <button (click)=\"navigateBack()\" color=\"accent\" mat-stroked-button>\n <mat-icon>navigate_before</mat-icon>\n </button>\n </div>\n <ng-content></ng-content>\n</div>\n", styles: [".container ::ng-deep h1,.container ::ng-deep h2,.container ::ng-deep h3,.container ::ng-deep h4,.container ::ng-deep h5,.container ::ng-deep h6{margin:0}\n"], dependencies: [{ kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i1.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i1.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i1.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
543
432
|
}
|
|
544
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
433
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NavigateBackButtonComponent, decorators: [{
|
|
545
434
|
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
|
-
}]
|
|
435
|
+
args: [{ selector: 'rxap-navigate-back-button', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-navigate-back-button' }, standalone: true, imports: [FlexModule, MatButtonModule, MatIconModule], template: "<div class=\"container\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\">\n <button (click)=\"navigateBack()\" color=\"accent\" mat-stroked-button>\n <mat-icon>navigate_before</mat-icon>\n </button>\n </div>\n <ng-content></ng-content>\n</div>\n", styles: [".container ::ng-deep h1,.container ::ng-deep h2,.container ::ng-deep h3,.container ::ng-deep h4,.container ::ng-deep h5,.container ::ng-deep h6{margin:0}\n"] }]
|
|
569
436
|
}] });
|
|
570
437
|
|
|
571
438
|
// region confirm
|
|
@@ -575,5 +442,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
575
442
|
* Generated bundle index. Do not edit.
|
|
576
443
|
*/
|
|
577
444
|
|
|
578
|
-
export {
|
|
445
|
+
export { ConfirmDirective, ConfirmModule, CopyToClipboardButtonComponent, CopyToClipboardComponent, DarkModeToggleButtonComponent, EmptyRouterOutletComponent, JSON_VIEW_IGNORED_PROPERTIES, JSON_VIEW_IGNORED_TYPES, JsonViewerComponent, NavigateBackButtonComponent };
|
|
579
446
|
//# sourceMappingURL=rxap-components.mjs.map
|