@rxap/components 14.0.3 → 16.0.0-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/esm2022/index.mjs +29 -0
  2. package/esm2022/lib/confirm/confirm.component.mjs +25 -0
  3. package/esm2022/lib/confirm/confirm.component.module.mjs +34 -0
  4. package/esm2022/lib/confirm/confirm.directive.mjs +100 -0
  5. package/esm2022/lib/copy-to-clipboard/copy-to-clipboard.component.mjs +31 -0
  6. package/esm2022/lib/copy-to-clipboard/copy-to-clipboard.component.module.mjs +45 -0
  7. package/esm2022/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.mjs +31 -0
  8. package/esm2022/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.module.mjs +33 -0
  9. package/esm2022/lib/dark-mode-toggle-button/dark-mode-toggle-button.component.mjs +24 -0
  10. package/esm2022/lib/dark-mode-toggle-button/dark-mode-toggle-button.component.module.mjs +33 -0
  11. package/esm2022/lib/empty-router-outlet/empty-router-outlet.component.mjs +13 -0
  12. package/esm2022/lib/empty-router-outlet/empty-router-outlet.component.module.mjs +21 -0
  13. package/esm2022/lib/json-viewer/json-viewer.component.mjs +173 -0
  14. package/esm2022/lib/json-viewer/json-viewer.component.module.mjs +21 -0
  15. package/esm2022/lib/navigate-back-button/navigate-back-button.component.mjs +18 -0
  16. package/esm2022/lib/navigate-back-button/navigate-back-button.component.module.mjs +29 -0
  17. package/fesm2022/rxap-components.mjs +579 -0
  18. package/fesm2022/rxap-components.mjs.map +1 -0
  19. package/index.d.ts +0 -2
  20. package/lib/confirm/confirm.component.d.ts +1 -1
  21. package/lib/confirm/confirm.component.module.d.ts +2 -2
  22. package/lib/confirm/confirm.directive.d.ts +1 -1
  23. package/lib/copy-to-clipboard/copy-to-clipboard.component.d.ts +1 -1
  24. package/lib/copy-to-clipboard/copy-to-clipboard.component.module.d.ts +3 -3
  25. package/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.d.ts +2 -2
  26. package/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.module.d.ts +3 -3
  27. package/lib/dark-mode-toggle-button/dark-mode-toggle-button.component.d.ts +1 -1
  28. package/lib/dark-mode-toggle-button/dark-mode-toggle-button.component.module.d.ts +2 -2
  29. package/lib/empty-router-outlet/empty-router-outlet.component.d.ts +1 -1
  30. package/lib/json-viewer/json-viewer.component.d.ts +1 -1
  31. package/lib/navigate-back-button/navigate-back-button.component.d.ts +1 -1
  32. package/lib/navigate-back-button/navigate-back-button.component.module.d.ts +2 -2
  33. package/package.json +19 -25
  34. package/esm2020/index.mjs +0 -33
  35. package/esm2020/lib/button/button.component.mjs +0 -309
  36. package/esm2020/lib/button/button.component.module.mjs +0 -48
  37. package/esm2020/lib/confirm/confirm.component.mjs +0 -24
  38. package/esm2020/lib/confirm/confirm.component.module.mjs +0 -33
  39. package/esm2020/lib/confirm/confirm.directive.mjs +0 -99
  40. package/esm2020/lib/copy-to-clipboard/copy-to-clipboard.component.mjs +0 -30
  41. package/esm2020/lib/copy-to-clipboard/copy-to-clipboard.component.module.mjs +0 -44
  42. package/esm2020/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.mjs +0 -30
  43. package/esm2020/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.module.mjs +0 -32
  44. package/esm2020/lib/dark-mode-toggle-button/dark-mode-toggle-button.component.mjs +0 -23
  45. package/esm2020/lib/dark-mode-toggle-button/dark-mode-toggle-button.component.module.mjs +0 -32
  46. package/esm2020/lib/empty-router-outlet/empty-router-outlet.component.mjs +0 -12
  47. package/esm2020/lib/empty-router-outlet/empty-router-outlet.component.module.mjs +0 -20
  48. package/esm2020/lib/json-viewer/json-viewer.component.mjs +0 -172
  49. package/esm2020/lib/json-viewer/json-viewer.component.module.mjs +0 -20
  50. package/esm2020/lib/navigate-back-button/navigate-back-button.component.mjs +0 -17
  51. package/esm2020/lib/navigate-back-button/navigate-back-button.component.module.mjs +0 -28
  52. package/fesm2015/rxap-components.mjs +0 -926
  53. package/fesm2015/rxap-components.mjs.map +0 -1
  54. package/fesm2020/rxap-components.mjs +0 -914
  55. package/fesm2020/rxap-components.mjs.map +0 -1
  56. package/lib/button/button.component.d.ts +0 -49
  57. package/lib/button/button.component.module.d.ts +0 -15
  58. /package/{esm2020 → esm2022}/lib/json-viewer/json-viewer.tokens.mjs +0 -0
  59. /package/{esm2020 → esm2022}/rxap-components.mjs +0 -0
@@ -1,914 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { EventEmitter, Component, ChangeDetectionStrategy, Output, ElementRef, Directive, Inject, Input, HostListener, ChangeDetectorRef, INJECTOR, ViewEncapsulation, Optional, HostBinding, NgModule, InjectionToken } from '@angular/core';
3
- import { __decorate, __metadata } from 'tslib';
4
- import { IsSvgIcon, IsMaterialIcon, applyContextToFunctionOrConstant, Required, isPromiseLike, clone } from '@rxap/utilities';
5
- import * as i1$1 from '@angular/cdk/overlay';
6
- import { Overlay, OverlayModule } from '@angular/cdk/overlay';
7
- import * as i2 from '@angular/material/button';
8
- import { MatButton, MatButtonModule } from '@angular/material/button';
9
- import * as i8 from '@angular/cdk/a11y';
10
- import { FocusMonitor } from '@angular/cdk/a11y';
11
- import { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';
12
- import * as i1 from '@angular/flex-layout';
13
- import { FlexModule, FlexLayoutModule } from '@angular/flex-layout';
14
- import * as i3 from '@angular/material/icon';
15
- import { MatIconModule } from '@angular/material/icon';
16
- import { ComponentPortal } from '@angular/cdk/portal';
17
- import { take, tap } from 'rxjs/operators';
18
- import { Subscription, Observable } from 'rxjs';
19
- import { ButtonTypes, SubscriptionHandler, isTeardownLogic } from '@rxap/utilities/rxjs';
20
- import * as i1$2 from '@angular/material/core';
21
- import { MatRippleModule, ErrorStateMatcher } from '@angular/material/core';
22
- import * as i1$3 from '@angular/common';
23
- import { CommonModule } from '@angular/common';
24
- import * as i5 from '@angular/material/tooltip';
25
- import { MatTooltipModule } from '@angular/material/tooltip';
26
- import * as i6 from '@rxap/material-directives/icon';
27
- import { IconDirectiveModule } from '@rxap/material-directives/icon';
28
- import * as i1$4 from '@angular/router';
29
- import { RouterModule } from '@angular/router';
30
- import * as i4 from '@angular/material/snack-bar';
31
- import { MatSnackBar, MatSnackBarModule } from '@angular/material/snack-bar';
32
- import * as i3$1 from '@angular/cdk/clipboard';
33
- import { ClipboardModule } from '@angular/cdk/clipboard';
34
- import * as i5$1 from '@rxap/services';
35
- import { ThemeService } from '@rxap/services';
36
- import * as i4$1 from '@rxap/directives';
37
- import { StopPropagationDirectiveModule } from '@rxap/directives';
38
-
39
- class ConfirmComponent {
40
- constructor() {
41
- this.confirmed = new EventEmitter();
42
- this.unconfirmed = new EventEmitter();
43
- }
44
- }
45
- ConfirmComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ConfirmComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
46
- ConfirmComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: ConfirmComponent, selector: "rxap-confirm", outputs: { confirmed: "confirmed", unconfirmed: "unconfirmed" }, host: { classAttribute: "rxap-confirm" }, ngImport: i0, 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"], dependencies: [{ 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: "component", type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
47
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ConfirmComponent, decorators: [{
48
- type: Component,
49
- args: [{ selector: 'rxap-confirm', host: {
50
- class: 'rxap-confirm'
51
- }, 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"] }]
52
- }], propDecorators: { confirmed: [{
53
- type: Output
54
- }], unconfirmed: [{
55
- type: Output
56
- }] } });
57
-
58
- class ConfirmDirective {
59
- constructor(overlay, elementRef) {
60
- this.overlay = overlay;
61
- this.elementRef = elementRef;
62
- this.confirmed = new EventEmitter();
63
- this.unconfirmed = new EventEmitter();
64
- this.subscription = null;
65
- this.isOverlyOpen = false;
66
- this.positionStrategy = this.overlay
67
- .position()
68
- .flexibleConnectedTo(this.elementRef.nativeElement)
69
- .withPositions([
70
- {
71
- originX: 'start',
72
- originY: 'bottom',
73
- overlayX: 'start',
74
- overlayY: 'top',
75
- },
76
- ])
77
- .withDefaultOffsetY(10);
78
- }
79
- // use a set input to allow auto import detection if the eventValue
80
- // is not set
81
- set eventValue(value) {
82
- if (value !== '') {
83
- this._eventValue = value;
84
- }
85
- }
86
- onClick($event) {
87
- this.openConfirmOverly();
88
- }
89
- ngOnDestroy() {
90
- this.subscription?.unsubscribe();
91
- this.overlayRef?.dispose();
92
- }
93
- openConfirmOverly() {
94
- if (this.isOverlyOpen) {
95
- return;
96
- }
97
- this.isOverlyOpen = true;
98
- this.overlayRef = this.overlay.create({
99
- scrollStrategy: this.overlay.scrollStrategies.close(),
100
- positionStrategy: this.positionStrategy,
101
- });
102
- const componentPortal = new ComponentPortal(ConfirmComponent);
103
- const componentRef = this.overlayRef.attach(componentPortal);
104
- this.subscription?.unsubscribe();
105
- this.subscription = new Subscription();
106
- this.subscription.add(componentRef.instance.confirmed
107
- .pipe(take(1), tap(() => this.onConfirmed(this._eventValue)), tap(() => this.overlayRef?.dispose()), tap(() => this.isOverlyOpen = false), tap(() => (this.subscription = null)), tap(() => this.subscription?.unsubscribe()))
108
- .subscribe());
109
- this.subscription.add(componentRef.instance.unconfirmed
110
- .pipe(take(1), tap(() => this.onUnconfirmed(this._eventValue)), tap(() => this.overlayRef?.dispose()), tap(() => this.isOverlyOpen = false), tap(() => (this.subscription = null)), tap(() => this.subscription?.unsubscribe()))
111
- .subscribe());
112
- this.subscription.add(this.overlayRef
113
- .detachments()
114
- .pipe(take(1), tap(() => this.isOverlyOpen = false), tap(() => (this.subscription = null)), tap(() => this.subscription?.unsubscribe()))
115
- .subscribe());
116
- }
117
- onConfirmed(eventValue) {
118
- this.confirmed.emit(eventValue);
119
- }
120
- onUnconfirmed(eventValue) {
121
- this.unconfirmed.emit(eventValue);
122
- }
123
- }
124
- ConfirmDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ConfirmDirective, deps: [{ token: Overlay }, { token: ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
125
- ConfirmDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: ConfirmDirective, selector: "[rxapConfirm]", inputs: { eventValue: ["rxapConfirm", "eventValue"] }, outputs: { confirmed: "confirmed", unconfirmed: "unconfirmed" }, host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 });
126
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ConfirmDirective, decorators: [{
127
- type: Directive,
128
- args: [{
129
- selector: '[rxapConfirm]',
130
- }]
131
- }], ctorParameters: function () { return [{ type: i1$1.Overlay, decorators: [{
132
- type: Inject,
133
- args: [Overlay]
134
- }] }, { type: i0.ElementRef, decorators: [{
135
- type: Inject,
136
- args: [ElementRef]
137
- }] }]; }, propDecorators: { eventValue: [{
138
- type: Input,
139
- args: ['rxapConfirm']
140
- }], confirmed: [{
141
- type: Output
142
- }], unconfirmed: [{
143
- type: Output
144
- }], onClick: [{
145
- type: HostListener,
146
- args: ['click', ['$event']]
147
- }] } });
148
-
149
- const DEFAULT_ROUND_BUTTON_COLOR = 'accent';
150
- const BUTTON_HOST_ATTRIBUTES = [
151
- 'mat-button',
152
- 'mat-flat-button',
153
- 'mat-icon-button',
154
- 'mat-raised-button',
155
- 'mat-stroked-button',
156
- 'mat-mini-fab',
157
- 'mat-fab',
158
- ];
159
- class ButtonComponent extends MatButton {
160
- constructor(cdr, overlay, injector, elementRef, _focusMonitor, _animationMode) {
161
- super(elementRef, _focusMonitor, _animationMode);
162
- this.cdr = cdr;
163
- this.overlay = overlay;
164
- this.injector = injector;
165
- this.elementRef = elementRef;
166
- this.action = null;
167
- this.icon = null;
168
- this.tooltip = '';
169
- this.tooltipDisabled = false;
170
- this.label = '';
171
- this.show = true;
172
- this.confirm = false;
173
- this.confirmed$ = new EventEmitter();
174
- this.unconfirmed$ = new EventEmitter();
175
- this.types = ButtonTypes;
176
- this._subscription = new Subscription();
177
- /** Whether the button is icon button. */
178
- this.isIconButton = this._hasHostAttributes('mat-icon-button');
179
- this.isRoundButton = this._hasHostAttributes('mat-fab', 'mat-mini-fab');
180
- }
181
- get svgIcon() {
182
- if (this.icon) {
183
- return IsSvgIcon(this.icon);
184
- }
185
- return false;
186
- }
187
- get materialIcon() {
188
- if (this.icon) {
189
- return IsMaterialIcon(this.icon);
190
- }
191
- return false;
192
- }
193
- get iconName() {
194
- if (this.icon) {
195
- if (IsSvgIcon(this.icon)) {
196
- return this.icon.svgIcon;
197
- }
198
- else {
199
- return this.icon.icon;
200
- }
201
- }
202
- return null;
203
- }
204
- get name() {
205
- return this.definition.name;
206
- }
207
- contextChange(context = []) {
208
- this.disabled = !!applyContextToFunctionOrConstant(this.definition.disabled, context, this.disabled);
209
- this.icon = applyContextToFunctionOrConstant(this.definition.icon, context, this.icon);
210
- this.label = applyContextToFunctionOrConstant(this.definition.label, context, this.label);
211
- this.tooltip = applyContextToFunctionOrConstant(this.definition.tooltip, context, this.tooltip);
212
- this.tooltipDisabled = !!applyContextToFunctionOrConstant(this.definition.tooltipDisabled, context, this.tooltipDisabled);
213
- this.confirm = applyContextToFunctionOrConstant(this.definition.confirm, context, this.confirm);
214
- this.color = applyContextToFunctionOrConstant(this.definition.theme, context, this.color);
215
- this.action = applyContextToFunctionOrConstant(this.definition.action, context, this.action);
216
- if (this.definition.hide) {
217
- this.show = !applyContextToFunctionOrConstant(this.definition.hide, context, this.show);
218
- }
219
- if (this.definition.show) {
220
- this.show = !!applyContextToFunctionOrConstant(this.definition.show, context, this.show);
221
- }
222
- }
223
- contextAllChange(contextAll = []) {
224
- this.cdr.detach();
225
- this.show = false;
226
- this.disabled = true;
227
- if (contextAll.length) {
228
- this.contextChange(contextAll[0]);
229
- }
230
- for (const context of contextAll) {
231
- this.disabled = !!applyContextToFunctionOrConstant(this.definition.disabled, context, this.disabled);
232
- if (this.definition.hide) {
233
- this.show = !applyContextToFunctionOrConstant(this.definition.hide, context, this.show);
234
- }
235
- if (this.definition.show) {
236
- this.show = !!applyContextToFunctionOrConstant(this.definition.show, context, this.show);
237
- }
238
- }
239
- this.cdr.reattach();
240
- }
241
- ngOnChanges(changes) {
242
- if (changes.context && !changes.context.firstChange) {
243
- this.contextChange(changes.context.currentValue);
244
- }
245
- if (changes.contextAll && !changes.contextAll.firstChange) {
246
- this.contextAllChange(changes.contextAll.currentValue);
247
- }
248
- }
249
- ngOnInit() {
250
- if (this.context) {
251
- this.contextChange(this.context);
252
- }
253
- if (this.contextAll) {
254
- this.contextAllChange(this.contextAll);
255
- }
256
- if (!this.context && !this.contextAll) {
257
- this.contextChange();
258
- }
259
- this.updateClasses();
260
- this._confirmDirective = new ConfirmDirective(this.overlay, this.elementRef);
261
- this._subscription.add(this._confirmDirective.unconfirmed.subscribe(this.unconfirmed$));
262
- this._subscription.add(this._confirmDirective.confirmed.subscribe(this.confirm));
263
- }
264
- onClick($event) {
265
- if (this.confirm) {
266
- this._confirmDirective.onClick($event);
267
- }
268
- const actions = this.getActions();
269
- if (actions.length) {
270
- actions.forEach((action) => {
271
- this.emitClick(action);
272
- });
273
- }
274
- else {
275
- this.emitClick(null);
276
- }
277
- }
278
- emitClick($event) {
279
- if (this.definition.click$) {
280
- this.definition.click$.next($event ?? null);
281
- }
282
- }
283
- getActions() {
284
- if (this.contextAll && this.contextAll.length) {
285
- return this.contextAll
286
- .map((context) => applyContextToFunctionOrConstant(this.definition.action, context, null))
287
- .filter(Boolean);
288
- }
289
- else if (this.action) {
290
- return [this.action];
291
- }
292
- return [];
293
- }
294
- _hasHostAttributes(...attributes) {
295
- const descriptor = Object.getOwnPropertyDescriptor(this, 'definition');
296
- const hasDefinition = !!descriptor && descriptor.hasOwnProperty('value');
297
- if (hasDefinition) {
298
- for (const attribute of attributes) {
299
- switch (attribute) {
300
- case 'mat-icon-button':
301
- if (this.definition.type === ButtonTypes.Icon) {
302
- return true;
303
- }
304
- break;
305
- case 'mat-fab':
306
- if (this.definition.type === ButtonTypes.Fab) {
307
- return true;
308
- }
309
- break;
310
- case 'mat-mini-fab':
311
- if (this.definition.type === ButtonTypes.MiniFab) {
312
- return true;
313
- }
314
- break;
315
- case 'mat-raised-button':
316
- if (this.definition.type === ButtonTypes.Raised) {
317
- return true;
318
- }
319
- break;
320
- // TODO : add support for all mat button types
321
- }
322
- }
323
- }
324
- return super._hasHostAttributes(...attributes);
325
- }
326
- ngOnDestroy() {
327
- super.ngOnDestroy();
328
- this._confirmDirective.ngOnDestroy();
329
- this._subscription.unsubscribe();
330
- }
331
- updateClasses() {
332
- this.isRoundButton = this._hasHostAttributes('mat-fab', 'mat-mini-fab');
333
- this.isIconButton = this._hasHostAttributes('mat-icon-button');
334
- for (const attr of BUTTON_HOST_ATTRIBUTES) {
335
- if (this._hasHostAttributes(attr)) {
336
- this._getHostElement().classList.add(attr);
337
- }
338
- }
339
- if (this.isRoundButton) {
340
- this.color = DEFAULT_ROUND_BUTTON_COLOR;
341
- }
342
- }
343
- }
344
- ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ButtonComponent, deps: [{ token: ChangeDetectorRef }, { token: Overlay }, { token: INJECTOR }, { token: ElementRef }, { token: FocusMonitor }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });
345
- ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: ButtonComponent, selector: "button[rxap-button]", inputs: { disabled: "disabled", disableRipple: "disableRipple", color: "color", context: "context", contextAll: "contextAll", action: "action", definition: ["rxap-button", "definition"], icon: "icon", tooltip: "tooltip", tooltipDisabled: "tooltipDisabled", label: "label", show: "show", confirm: "confirm" }, outputs: { confirmed$: "confirmed", unconfirmed$: "unconfirmed" }, host: { listeners: { "click": "onClick($event)" }, properties: { "attr.disabled": "disabled || null", "class._mat-animation-noopable": "_animationMode === \"NoopAnimations\"", "attr.data-svg-icon": "this.svgIcon", "attr.data-material-icon": "this.materialIcon", "attr.data-icon": "this.iconName", "attr.data-name": "this.name", "attr.data-tooltip": "this.tooltip", "attr.data-tooltip-disabled": "this.tooltipDisabled", "attr.data-disabled": "this.label", "attr.data-label": "this.label", "attr.data-show": "this.show", "attr.data-confirm": "this.confirm" }, classAttribute: "mat-focus-indicator" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<span [matTooltipDisabled]=\"tooltipDisabled\" [matTooltip]=\"tooltip\" class=\"mat-button-wrapper\">\n <ng-template\n [ngIfElse]=\"labelOrIconTemplate\"\n [ngIfThen]=\"labelWithIconTemplate\"\n [ngIf]=\"icon && label\">\n </ng-template>\n</span>\n<div [class.mat-button-ripple-round]=\"isRoundButton || isIconButton\" [matRippleCentered]=\"isIconButton\"\n [matRippleDisabled]=\"_isRippleDisabled()\"\n [matRippleTrigger]=\"_getHostElement()\"\n class=\"mat-button-ripple\"\n matRipple></div>\n<div class=\"mat-button-focus-overlay\"></div>\n\n<ng-template #labelTemplate>{{label}}</ng-template>\n<ng-template #labelWithIconTemplate>\n <span fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\".8rem\">\n <mat-icon [inline]=\"true\" [rxapIcon]=\"icon\" fxFlex=\"nogrow\"></mat-icon>\n <span fxFlex=\"nogrow\">{{label}}</span>\n </span>\n</ng-template>\n<ng-template #iconTemplate>\n <mat-icon [rxapIcon]=\"icon\"></mat-icon>\n</ng-template>\n<ng-template #labelOrIconTemplate>\n <ng-template [ngIfElse]=\"labelTemplate\"\n [ngIfThen]=\"iconTemplate\"\n [ngIf]=\"icon\">\n </ng-template>\n</ng-template>\n", styles: [".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media (hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translateZ(0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow .28s cubic-bezier(.4,0,.2,1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none!important;animation:none!important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{inset:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;overflow:visible;transform:translateZ(0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow .28s cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none!important;animation:none!important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;overflow:visible;transform:translateZ(0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow .28s cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none!important;animation:none!important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{inset:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity .2s cubic-bezier(.35,0,.25,1),background-color .2s cubic-bezier(.35,0,.25,1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}.inline.mat-icon-button{width:inherit;height:inherit;padding:.6rem}.mat-icon-button{line-height:initial}\n"], dependencies: [{ kind: "directive", type: i1$2.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { 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: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: i6.IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
346
- __decorate([
347
- Required,
348
- __metadata("design:type", Object)
349
- ], ButtonComponent.prototype, "definition", void 0);
350
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ButtonComponent, decorators: [{
351
- type: Component,
352
- args: [{ selector: 'button[rxap-button]', inputs: ['disabled', 'disableRipple', 'color'], host: {
353
- '[attr.disabled]': 'disabled || null',
354
- '[class._mat-animation-noopable]': '_animationMode === "NoopAnimations"',
355
- class: 'mat-focus-indicator',
356
- }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<span [matTooltipDisabled]=\"tooltipDisabled\" [matTooltip]=\"tooltip\" class=\"mat-button-wrapper\">\n <ng-template\n [ngIfElse]=\"labelOrIconTemplate\"\n [ngIfThen]=\"labelWithIconTemplate\"\n [ngIf]=\"icon && label\">\n </ng-template>\n</span>\n<div [class.mat-button-ripple-round]=\"isRoundButton || isIconButton\" [matRippleCentered]=\"isIconButton\"\n [matRippleDisabled]=\"_isRippleDisabled()\"\n [matRippleTrigger]=\"_getHostElement()\"\n class=\"mat-button-ripple\"\n matRipple></div>\n<div class=\"mat-button-focus-overlay\"></div>\n\n<ng-template #labelTemplate>{{label}}</ng-template>\n<ng-template #labelWithIconTemplate>\n <span fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\".8rem\">\n <mat-icon [inline]=\"true\" [rxapIcon]=\"icon\" fxFlex=\"nogrow\"></mat-icon>\n <span fxFlex=\"nogrow\">{{label}}</span>\n </span>\n</ng-template>\n<ng-template #iconTemplate>\n <mat-icon [rxapIcon]=\"icon\"></mat-icon>\n</ng-template>\n<ng-template #labelOrIconTemplate>\n <ng-template [ngIfElse]=\"labelTemplate\"\n [ngIfThen]=\"iconTemplate\"\n [ngIf]=\"icon\">\n </ng-template>\n</ng-template>\n", styles: [".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media (hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translateZ(0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow .28s cubic-bezier(.4,0,.2,1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none!important;animation:none!important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{inset:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;overflow:visible;transform:translateZ(0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow .28s cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none!important;animation:none!important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;overflow:visible;transform:translateZ(0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow .28s cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none!important;animation:none!important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{inset:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity .2s cubic-bezier(.35,0,.25,1),background-color .2s cubic-bezier(.35,0,.25,1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}.inline.mat-icon-button{width:inherit;height:inherit;padding:.6rem}.mat-icon-button{line-height:initial}\n"] }]
357
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef, decorators: [{
358
- type: Inject,
359
- args: [ChangeDetectorRef]
360
- }] }, { type: i1$1.Overlay, decorators: [{
361
- type: Inject,
362
- args: [Overlay]
363
- }] }, { type: undefined, decorators: [{
364
- type: Inject,
365
- args: [INJECTOR]
366
- }] }, { type: i0.ElementRef, decorators: [{
367
- type: Inject,
368
- args: [ElementRef]
369
- }] }, { type: i8.FocusMonitor, decorators: [{
370
- type: Inject,
371
- args: [FocusMonitor]
372
- }] }, { type: undefined, decorators: [{
373
- type: Optional
374
- }, {
375
- type: Inject,
376
- args: [ANIMATION_MODULE_TYPE]
377
- }] }]; }, propDecorators: { svgIcon: [{
378
- type: HostBinding,
379
- args: ['attr.data-svg-icon']
380
- }], materialIcon: [{
381
- type: HostBinding,
382
- args: ['attr.data-material-icon']
383
- }], iconName: [{
384
- type: HostBinding,
385
- args: ['attr.data-icon']
386
- }], name: [{
387
- type: HostBinding,
388
- args: ['attr.data-name']
389
- }], context: [{
390
- type: Input
391
- }], contextAll: [{
392
- type: Input
393
- }], action: [{
394
- type: Input
395
- }], definition: [{
396
- type: Input,
397
- args: ['rxap-button']
398
- }], icon: [{
399
- type: Input
400
- }], tooltip: [{
401
- type: HostBinding,
402
- args: ['attr.data-tooltip']
403
- }, {
404
- type: Input
405
- }], tooltipDisabled: [{
406
- type: HostBinding,
407
- args: ['attr.data-tooltip-disabled']
408
- }, {
409
- type: Input
410
- }], label: [{
411
- type: HostBinding,
412
- args: ['attr.data-disabled']
413
- }, {
414
- type: HostBinding,
415
- args: ['attr.data-label']
416
- }, {
417
- type: Input
418
- }], show: [{
419
- type: HostBinding,
420
- args: ['attr.data-show']
421
- }, {
422
- type: Input
423
- }], confirm: [{
424
- type: HostBinding,
425
- args: ['attr.data-confirm']
426
- }, {
427
- type: Input
428
- }], confirmed$: [{
429
- type: Output,
430
- args: ['confirmed']
431
- }], unconfirmed$: [{
432
- type: Output,
433
- args: ['unconfirmed']
434
- }], onClick: [{
435
- type: HostListener,
436
- args: ['click', ['$event']]
437
- }] } });
438
-
439
- class ConfirmComponentModule {
440
- }
441
- ConfirmComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ConfirmComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
442
- ConfirmComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: ConfirmComponentModule, declarations: [ConfirmComponent, ConfirmDirective], imports: [FlexModule,
443
- MatButtonModule,
444
- MatIconModule,
445
- OverlayModule], exports: [ConfirmComponent, ConfirmDirective] });
446
- ConfirmComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ConfirmComponentModule, imports: [FlexModule,
447
- MatButtonModule,
448
- MatIconModule,
449
- OverlayModule] });
450
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ConfirmComponentModule, decorators: [{
451
- type: NgModule,
452
- args: [{
453
- declarations: [ConfirmComponent, ConfirmDirective],
454
- imports: [
455
- FlexModule,
456
- MatButtonModule,
457
- MatIconModule,
458
- OverlayModule
459
- ],
460
- exports: [ConfirmComponent, ConfirmDirective]
461
- }]
462
- }] });
463
-
464
- class ButtonComponentModule {
465
- }
466
- ButtonComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ButtonComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
467
- ButtonComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: ButtonComponentModule, declarations: [ButtonComponent], imports: [MatRippleModule,
468
- FlexLayoutModule,
469
- CommonModule,
470
- MatIconModule,
471
- MatButtonModule,
472
- MatTooltipModule,
473
- ConfirmComponentModule,
474
- IconDirectiveModule], exports: [ButtonComponent] });
475
- ButtonComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ButtonComponentModule, imports: [MatRippleModule,
476
- FlexLayoutModule,
477
- CommonModule,
478
- MatIconModule,
479
- MatButtonModule,
480
- MatTooltipModule,
481
- ConfirmComponentModule,
482
- IconDirectiveModule] });
483
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ButtonComponentModule, decorators: [{
484
- type: NgModule,
485
- args: [{
486
- declarations: [ButtonComponent],
487
- imports: [
488
- MatRippleModule,
489
- FlexLayoutModule,
490
- CommonModule,
491
- MatIconModule,
492
- MatButtonModule,
493
- MatTooltipModule,
494
- ConfirmComponentModule,
495
- IconDirectiveModule
496
- ],
497
- exports: [ButtonComponent]
498
- }]
499
- }] });
500
-
501
- class EmptyRouterOutletComponent {
502
- }
503
- EmptyRouterOutletComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EmptyRouterOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
504
- EmptyRouterOutletComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: EmptyRouterOutletComponent, selector: "ng-component", ngImport: i0, template: "<router-outlet></router-outlet>\n", dependencies: [{ kind: "directive", type: i1$4.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
505
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EmptyRouterOutletComponent, decorators: [{
506
- type: Component,
507
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<router-outlet></router-outlet>\n" }]
508
- }] });
509
-
510
- class EmptyRouterOutletModule {
511
- }
512
- EmptyRouterOutletModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EmptyRouterOutletModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
513
- EmptyRouterOutletModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: EmptyRouterOutletModule, declarations: [EmptyRouterOutletComponent], imports: [RouterModule], exports: [EmptyRouterOutletComponent] });
514
- EmptyRouterOutletModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EmptyRouterOutletModule, imports: [RouterModule] });
515
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EmptyRouterOutletModule, decorators: [{
516
- type: NgModule,
517
- args: [{
518
- declarations: [EmptyRouterOutletComponent],
519
- imports: [
520
- RouterModule
521
- ],
522
- exports: [EmptyRouterOutletComponent]
523
- }]
524
- }] });
525
-
526
- const JSON_VIEW_IGNORED_PROPERTIES = new InjectionToken('rxap/form-system/inspector/ignored-properties', {
527
- providedIn: 'root',
528
- factory: () => [
529
- '_subscriptions',
530
- 'subscriptions',
531
- 'injector',
532
- /\$$/
533
- ]
534
- });
535
- const JSON_VIEW_IGNORED_TYPES = new InjectionToken('rxap/form-system/inspector/ignored-types', {
536
- providedIn: 'root',
537
- factory: () => [
538
- Observable,
539
- Promise,
540
- Subscription,
541
- SubscriptionHandler,
542
- ErrorStateMatcher
543
- ]
544
- });
545
-
546
- class JsonViewerComponent {
547
- constructor(ignoredProperties, ignoredTypes, cdr) {
548
- this.cdr = cdr;
549
- this.ignoredProperties = [];
550
- this.ignoredTypes = [];
551
- this.subscriptions = new Subscription();
552
- this.segments = [];
553
- function flat(acc, cur) {
554
- if (Array.isArray(cur)) {
555
- acc.push(...cur.reduce(flat, []));
556
- }
557
- else {
558
- acc.push(cur);
559
- }
560
- return acc;
561
- }
562
- this.ignoredProperties = ignoredProperties.reduce(flat, []);
563
- this.ignoredTypes = ignoredTypes.reduce(flat, []);
564
- }
565
- ngOnInit() {
566
- this.setInspectValue(this.json);
567
- }
568
- ngOnChanges(changes) {
569
- const jsonChange = changes['json'];
570
- if (jsonChange) {
571
- this.setInspectValue(jsonChange.currentValue);
572
- }
573
- }
574
- cleanObject(obj, stack = []) {
575
- if (stack.some(item => item === obj)) {
576
- return '__circular__';
577
- }
578
- stack = stack.slice();
579
- stack.unshift(obj);
580
- return Object
581
- .entries(obj)
582
- .filter(([key, value]) => !isPromiseLike(value))
583
- .filter(([key, value]) => !isTeardownLogic(value))
584
- .filter(([key, value]) => this.ignoredProperties.every(ip => typeof ip === 'string' ? key !== ip : !key.match(ip)))
585
- .filter(([key, value]) => [...this.ignoredTypes].every(type => !(value instanceof type)))
586
- .map(([key, value]) => {
587
- if (value && typeof value === 'object') {
588
- if (Array.isArray(value)) {
589
- return [key, value.map(item => this.cleanObject(item, stack))];
590
- }
591
- if (typeof value === 'object') {
592
- return [key, this.cleanObject(value, stack)];
593
- }
594
- }
595
- return [key, value];
596
- })
597
- .sort((a, b) => a[0].localeCompare(b[0]))
598
- .reduce((controlView, [key, value]) => ({ ...controlView, [key]: value }), {});
599
- }
600
- setInspectValue(json) {
601
- if (typeof json !== 'object' || json === null || json === undefined) {
602
- console.warn('The inspection value is not an object!');
603
- }
604
- else {
605
- json = clone(json);
606
- let inspectValue;
607
- if (typeof json['toJSON'] === 'function') {
608
- inspectValue = json.toJSON();
609
- }
610
- else {
611
- inspectValue = this.cleanObject(json);
612
- }
613
- this.inspectValue = inspectValue;
614
- this.buildSegments(this.inspectValue);
615
- this.cdr.markForCheck();
616
- }
617
- }
618
- buildSegments(inspectValue) {
619
- this.segments = [];
620
- if (typeof inspectValue === 'object') {
621
- Object.keys(inspectValue).forEach(key => {
622
- this.segments.push(this.parseKeyValue(key, inspectValue[key]));
623
- });
624
- }
625
- else {
626
- this.segments.push(this.parseKeyValue(`(${typeof inspectValue})`, inspectValue));
627
- }
628
- }
629
- isExpandable(segment) {
630
- return segment.type === 'object' || segment.type === 'array';
631
- }
632
- toggle(segment) {
633
- if (this.isExpandable(segment)) {
634
- segment.expanded = !segment.expanded;
635
- }
636
- }
637
- parseKeyValue(key, value) {
638
- const segment = {
639
- key: key,
640
- value: value,
641
- type: undefined,
642
- description: '' + value,
643
- expanded: this.expanded
644
- };
645
- switch (typeof segment.value) {
646
- case 'number': {
647
- segment.type = 'number';
648
- break;
649
- }
650
- case 'boolean': {
651
- segment.type = 'boolean';
652
- break;
653
- }
654
- case 'function': {
655
- segment.type = 'function';
656
- break;
657
- }
658
- case 'string': {
659
- segment.type = 'string';
660
- segment.description = '"' + segment.value + '"';
661
- break;
662
- }
663
- case 'undefined': {
664
- segment.type = 'undefined';
665
- segment.description = 'undefined';
666
- break;
667
- }
668
- case 'object': {
669
- // yea, null is object
670
- if (segment.value === null) {
671
- segment.type = 'null';
672
- segment.description = 'null';
673
- }
674
- else if (Array.isArray(segment.value)) {
675
- segment.type = 'array';
676
- segment.description = 'Array[' + segment.value.length + '] ' + JSON.stringify(segment.value);
677
- }
678
- else if (segment.value instanceof Date) {
679
- segment.type = 'date';
680
- }
681
- else {
682
- segment.type = 'object';
683
- segment.description = 'Object ' + JSON.stringify(segment.value);
684
- }
685
- break;
686
- }
687
- }
688
- return segment;
689
- }
690
- }
691
- JsonViewerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: JsonViewerComponent, deps: [{ token: JSON_VIEW_IGNORED_PROPERTIES }, { token: JSON_VIEW_IGNORED_TYPES }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
692
- JsonViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: JsonViewerComponent, 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\">{{ segment.key }}</span>\n <span class=\"segment-separator\">: </span>\n <span *ngIf=\"!segment.expanded || !isExpandable(segment)\" class=\"segment-value\">{{ segment.description }}</span>\n </section>\n <section *ngIf=\"segment.expanded && isExpandable(segment)\" class=\"children\">\n <rxap-json-viewer [expanded]=\"expanded\" [json]=\"segment.value\"></rxap-json-viewer>\n </section>\n </section>\n</section>\n", styles: ["@charset \"UTF-8\";.container{width:100%;height:100%;overflow:hidden;position:relative}.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}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: JsonViewerComponent, selector: "rxap-json-viewer", inputs: ["json", "expanded"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
693
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: JsonViewerComponent, decorators: [{
694
- type: Component,
695
- 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)\" class=\"segment-value\">{{ segment.description }}</span>\n </section>\n <section *ngIf=\"segment.expanded && isExpandable(segment)\" class=\"children\">\n <rxap-json-viewer [expanded]=\"expanded\" [json]=\"segment.value\"></rxap-json-viewer>\n </section>\n </section>\n</section>\n", styles: ["@charset \"UTF-8\";.container{width:100%;height:100%;overflow:hidden;position:relative}.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}\n"] }]
696
- }], ctorParameters: function () { return [{ type: Array, decorators: [{
697
- type: Inject,
698
- args: [JSON_VIEW_IGNORED_PROPERTIES]
699
- }] }, { type: Array, decorators: [{
700
- type: Inject,
701
- args: [JSON_VIEW_IGNORED_TYPES]
702
- }] }, { type: i0.ChangeDetectorRef, decorators: [{
703
- type: Inject,
704
- args: [ChangeDetectorRef]
705
- }] }]; }, propDecorators: { json: [{
706
- type: Input
707
- }], expanded: [{
708
- type: Input
709
- }] } });
710
-
711
- class JsonViewerModule {
712
- }
713
- JsonViewerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: JsonViewerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
714
- JsonViewerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: JsonViewerModule, declarations: [JsonViewerComponent], imports: [CommonModule], exports: [JsonViewerComponent] });
715
- JsonViewerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: JsonViewerModule, imports: [CommonModule] });
716
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: JsonViewerModule, decorators: [{
717
- type: NgModule,
718
- args: [{
719
- declarations: [JsonViewerComponent],
720
- imports: [
721
- CommonModule
722
- ],
723
- exports: [JsonViewerComponent]
724
- }]
725
- }] });
726
-
727
- class CopyToClipboardButtonComponent {
728
- constructor(snackbar) {
729
- this.snackbar = snackbar;
730
- this.value = '';
731
- }
732
- copied() {
733
- this.snackbar.open('Erfolgreich in die Zwischenablage kopiert.', 'OK', {
734
- duration: 2500,
735
- });
736
- }
737
- }
738
- CopyToClipboardButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardButtonComponent, deps: [{ token: MatSnackBar }], target: i0.ɵɵFactoryTarget.Component });
739
- CopyToClipboardButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: CopyToClipboardButtonComponent, selector: "rxap-copy-to-clipboard-button", inputs: { value: "value" }, host: { classAttribute: "rxap-copy-to-clipboard-button" }, ngImport: i0, template: "<button\n [cdkCopyToClipboard]=\"value\"\n (click)=\"$event.stopPropagation()\"\n (cdkCopyToClipboardCopied)=\"copied()\"\n mat-icon-button\n type=\"button\"\n>\n <mat-icon>content_copy</mat-icon>\n</button>\n", styles: [""], dependencies: [{ kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i3$1.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
740
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardButtonComponent, decorators: [{
741
- type: Component,
742
- args: [{ selector: 'rxap-copy-to-clipboard-button', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-copy-to-clipboard-button' }, template: "<button\n [cdkCopyToClipboard]=\"value\"\n (click)=\"$event.stopPropagation()\"\n (cdkCopyToClipboardCopied)=\"copied()\"\n mat-icon-button\n type=\"button\"\n>\n <mat-icon>content_copy</mat-icon>\n</button>\n" }]
743
- }], ctorParameters: function () { return [{ type: i4.MatSnackBar, decorators: [{
744
- type: Inject,
745
- args: [MatSnackBar]
746
- }] }]; }, propDecorators: { value: [{
747
- type: Input
748
- }] } });
749
-
750
- class CopyToClipboardComponent {
751
- constructor() {
752
- this.active = true;
753
- this.disabled = false;
754
- }
755
- }
756
- CopyToClipboardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
757
- CopyToClipboardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: CopyToClipboardComponent, selector: "rxap-copy-to-clipboard", inputs: { active: "active", disabled: "disabled", value: "value" }, ngImport: i0, template: "<div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\".2rem\">\n <rxap-copy-to-clipboard-button fxFlex=\"40px\" *ngIf=\"active\" [value]=\"value\"></rxap-copy-to-clipboard-button>\n <span #ref fxFlex=\"nogrow\" class=\"content\"><ng-content></ng-content></span>\n <span *ngIf=\"!ref.innerHTML.trim()\" fxFlex=\"nogrow\" class=\"content\">{{ value }}</span>\n</div>\n", styles: [""], dependencies: [{ 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: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CopyToClipboardButtonComponent, selector: "rxap-copy-to-clipboard-button", inputs: ["value"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
758
- __decorate([
759
- Required,
760
- __metadata("design:type", String)
761
- ], CopyToClipboardComponent.prototype, "value", void 0);
762
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardComponent, decorators: [{
763
- type: Component,
764
- args: [{ selector: 'rxap-copy-to-clipboard', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\".2rem\">\n <rxap-copy-to-clipboard-button fxFlex=\"40px\" *ngIf=\"active\" [value]=\"value\"></rxap-copy-to-clipboard-button>\n <span #ref fxFlex=\"nogrow\" class=\"content\"><ng-content></ng-content></span>\n <span *ngIf=\"!ref.innerHTML.trim()\" fxFlex=\"nogrow\" class=\"content\">{{ value }}</span>\n</div>\n" }]
765
- }], propDecorators: { active: [{
766
- type: Input
767
- }], disabled: [{
768
- type: Input
769
- }], value: [{
770
- type: Input
771
- }] } });
772
-
773
- class CopyToClipboardButtonComponentModule {
774
- }
775
- CopyToClipboardButtonComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardButtonComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
776
- CopyToClipboardButtonComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardButtonComponentModule, declarations: [CopyToClipboardButtonComponent], imports: [MatIconModule,
777
- MatButtonModule,
778
- ClipboardModule,
779
- MatSnackBarModule], exports: [CopyToClipboardButtonComponent] });
780
- CopyToClipboardButtonComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardButtonComponentModule, imports: [MatIconModule,
781
- MatButtonModule,
782
- ClipboardModule,
783
- MatSnackBarModule] });
784
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardButtonComponentModule, decorators: [{
785
- type: NgModule,
786
- args: [{
787
- declarations: [CopyToClipboardButtonComponent],
788
- imports: [
789
- MatIconModule,
790
- MatButtonModule,
791
- ClipboardModule,
792
- MatSnackBarModule
793
- ],
794
- exports: [CopyToClipboardButtonComponent]
795
- }]
796
- }] });
797
-
798
- class CopyToClipboardModule {
799
- }
800
- CopyToClipboardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
801
- CopyToClipboardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardModule, declarations: [CopyToClipboardComponent], imports: [FlexLayoutModule,
802
- ClipboardModule,
803
- CommonModule,
804
- MatIconModule,
805
- MatButtonModule,
806
- MatSnackBarModule,
807
- CopyToClipboardButtonComponentModule], exports: [CopyToClipboardComponent] });
808
- CopyToClipboardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardModule, imports: [FlexLayoutModule,
809
- ClipboardModule,
810
- CommonModule,
811
- MatIconModule,
812
- MatButtonModule,
813
- MatSnackBarModule,
814
- CopyToClipboardButtonComponentModule] });
815
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardModule, decorators: [{
816
- type: NgModule,
817
- args: [{
818
- declarations: [CopyToClipboardComponent],
819
- imports: [
820
- FlexLayoutModule,
821
- ClipboardModule,
822
- CommonModule,
823
- MatIconModule,
824
- MatButtonModule,
825
- MatSnackBarModule,
826
- CopyToClipboardButtonComponentModule,
827
- ],
828
- exports: [CopyToClipboardComponent]
829
- }]
830
- }] });
831
-
832
- class DarkModeToggleButtonComponent {
833
- constructor(theme) {
834
- this.theme = theme;
835
- }
836
- }
837
- DarkModeToggleButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DarkModeToggleButtonComponent, deps: [{ token: ThemeService }], target: i0.ɵɵFactoryTarget.Component });
838
- DarkModeToggleButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: DarkModeToggleButtonComponent, selector: "rxap-dark-mode-toggle-button", host: { classAttribute: "rxap-dark-mode-toggle-button" }, ngImport: i0, template: "<button rxapStopPropagation mat-icon-button (click)=\"theme.toggleDarkTheme()\">\n <mat-icon *ngIf=\"theme.darkMode\">brightness_2</mat-icon>\n <mat-icon *ngIf=\"!theme.darkMode\">brightness_5</mat-icon>\n</button>\n", styles: [""], dependencies: [{ kind: "component", type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4$1.StopPropagationDirective, selector: "[rxapStopPropagation]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
839
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DarkModeToggleButtonComponent, decorators: [{
840
- type: Component,
841
- args: [{ selector: 'rxap-dark-mode-toggle-button', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-dark-mode-toggle-button' }, template: "<button rxapStopPropagation mat-icon-button (click)=\"theme.toggleDarkTheme()\">\n <mat-icon *ngIf=\"theme.darkMode\">brightness_2</mat-icon>\n <mat-icon *ngIf=\"!theme.darkMode\">brightness_5</mat-icon>\n</button>\n" }]
842
- }], ctorParameters: function () { return [{ type: i5$1.ThemeService, decorators: [{
843
- type: Inject,
844
- args: [ThemeService]
845
- }] }]; } });
846
-
847
- class DarkModeToggleButtonComponentModule {
848
- }
849
- DarkModeToggleButtonComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DarkModeToggleButtonComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
850
- DarkModeToggleButtonComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: DarkModeToggleButtonComponentModule, declarations: [DarkModeToggleButtonComponent], imports: [MatButtonModule,
851
- MatIconModule,
852
- CommonModule,
853
- StopPropagationDirectiveModule], exports: [DarkModeToggleButtonComponent] });
854
- DarkModeToggleButtonComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DarkModeToggleButtonComponentModule, imports: [MatButtonModule,
855
- MatIconModule,
856
- CommonModule,
857
- StopPropagationDirectiveModule] });
858
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DarkModeToggleButtonComponentModule, decorators: [{
859
- type: NgModule,
860
- args: [{
861
- declarations: [DarkModeToggleButtonComponent],
862
- imports: [
863
- MatButtonModule,
864
- MatIconModule,
865
- CommonModule,
866
- StopPropagationDirectiveModule,
867
- ],
868
- exports: [DarkModeToggleButtonComponent]
869
- }]
870
- }] });
871
-
872
- class NavigateBackButtonComponent {
873
- navigateBack() {
874
- window.history.back();
875
- }
876
- }
877
- NavigateBackButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: NavigateBackButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
878
- NavigateBackButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: NavigateBackButtonComponent, selector: "rxap-navigate-back-button", host: { classAttribute: "rxap-navigate-back-button" }, ngImport: i0, template: "<div fxLayout=\"row\" fxLayoutGap=\"32px\" fxLayoutAlign=\"start center\">\n <div fxFlex=\"nogrow\">\n <button (click)=\"navigateBack()\" mat-stroked-button color=\"accent\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </div>\n <ng-content></ng-content>\n</div>\n", styles: [""], dependencies: [{ 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: "component", type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
879
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: NavigateBackButtonComponent, decorators: [{
880
- type: Component,
881
- args: [{ selector: 'rxap-navigate-back-button', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-navigate-back-button' }, template: "<div fxLayout=\"row\" fxLayoutGap=\"32px\" fxLayoutAlign=\"start center\">\n <div fxFlex=\"nogrow\">\n <button (click)=\"navigateBack()\" mat-stroked-button color=\"accent\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </div>\n <ng-content></ng-content>\n</div>\n" }]
882
- }] });
883
-
884
- class NavigateBackButtonComponentModule {
885
- }
886
- NavigateBackButtonComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: NavigateBackButtonComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
887
- NavigateBackButtonComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: NavigateBackButtonComponentModule, declarations: [NavigateBackButtonComponent], imports: [FlexLayoutModule,
888
- MatButtonModule,
889
- MatIconModule], exports: [NavigateBackButtonComponent] });
890
- NavigateBackButtonComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: NavigateBackButtonComponentModule, imports: [FlexLayoutModule,
891
- MatButtonModule,
892
- MatIconModule] });
893
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: NavigateBackButtonComponentModule, decorators: [{
894
- type: NgModule,
895
- args: [{
896
- declarations: [NavigateBackButtonComponent],
897
- imports: [
898
- FlexLayoutModule,
899
- MatButtonModule,
900
- MatIconModule
901
- ],
902
- exports: [NavigateBackButtonComponent]
903
- }]
904
- }] });
905
-
906
- // region button
907
- // endregion
908
-
909
- /**
910
- * Generated bundle index. Do not edit.
911
- */
912
-
913
- export { ButtonComponent, ButtonComponentModule, ConfirmComponent, ConfirmComponentModule, ConfirmDirective, CopyToClipboardButtonComponent, CopyToClipboardButtonComponentModule, CopyToClipboardComponent, CopyToClipboardModule, DarkModeToggleButtonComponent, DarkModeToggleButtonComponentModule, EmptyRouterOutletComponent, EmptyRouterOutletModule, JSON_VIEW_IGNORED_PROPERTIES, JSON_VIEW_IGNORED_TYPES, JsonViewerComponent, JsonViewerModule, NavigateBackButtonComponent, NavigateBackButtonComponentModule };
914
- //# sourceMappingURL=rxap-components.mjs.map