@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,926 +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
- var _a, _b;
91
- (_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
92
- (_b = this.overlayRef) === null || _b === void 0 ? void 0 : _b.dispose();
93
- }
94
- openConfirmOverly() {
95
- var _a;
96
- if (this.isOverlyOpen) {
97
- return;
98
- }
99
- this.isOverlyOpen = true;
100
- this.overlayRef = this.overlay.create({
101
- scrollStrategy: this.overlay.scrollStrategies.close(),
102
- positionStrategy: this.positionStrategy,
103
- });
104
- const componentPortal = new ComponentPortal(ConfirmComponent);
105
- const componentRef = this.overlayRef.attach(componentPortal);
106
- (_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
107
- this.subscription = new Subscription();
108
- this.subscription.add(componentRef.instance.confirmed
109
- .pipe(take(1), tap(() => this.onConfirmed(this._eventValue)), tap(() => { var _a; return (_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.dispose(); }), tap(() => this.isOverlyOpen = false), tap(() => (this.subscription = null)), tap(() => { var _a; return (_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe(); }))
110
- .subscribe());
111
- this.subscription.add(componentRef.instance.unconfirmed
112
- .pipe(take(1), tap(() => this.onUnconfirmed(this._eventValue)), tap(() => { var _a; return (_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.dispose(); }), tap(() => this.isOverlyOpen = false), tap(() => (this.subscription = null)), tap(() => { var _a; return (_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe(); }))
113
- .subscribe());
114
- this.subscription.add(this.overlayRef
115
- .detachments()
116
- .pipe(take(1), tap(() => this.isOverlyOpen = false), tap(() => (this.subscription = null)), tap(() => { var _a; return (_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe(); }))
117
- .subscribe());
118
- }
119
- onConfirmed(eventValue) {
120
- this.confirmed.emit(eventValue);
121
- }
122
- onUnconfirmed(eventValue) {
123
- this.unconfirmed.emit(eventValue);
124
- }
125
- }
126
- 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 });
127
- 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 });
128
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ConfirmDirective, decorators: [{
129
- type: Directive,
130
- args: [{
131
- selector: '[rxapConfirm]',
132
- }]
133
- }], ctorParameters: function () {
134
- return [{ type: i1$1.Overlay, decorators: [{
135
- type: Inject,
136
- args: [Overlay]
137
- }] }, { type: i0.ElementRef, decorators: [{
138
- type: Inject,
139
- args: [ElementRef]
140
- }] }];
141
- }, propDecorators: { eventValue: [{
142
- type: Input,
143
- args: ['rxapConfirm']
144
- }], confirmed: [{
145
- type: Output
146
- }], unconfirmed: [{
147
- type: Output
148
- }], onClick: [{
149
- type: HostListener,
150
- args: ['click', ['$event']]
151
- }] } });
152
-
153
- const DEFAULT_ROUND_BUTTON_COLOR = 'accent';
154
- const BUTTON_HOST_ATTRIBUTES = [
155
- 'mat-button',
156
- 'mat-flat-button',
157
- 'mat-icon-button',
158
- 'mat-raised-button',
159
- 'mat-stroked-button',
160
- 'mat-mini-fab',
161
- 'mat-fab',
162
- ];
163
- class ButtonComponent extends MatButton {
164
- constructor(cdr, overlay, injector, elementRef, _focusMonitor, _animationMode) {
165
- super(elementRef, _focusMonitor, _animationMode);
166
- this.cdr = cdr;
167
- this.overlay = overlay;
168
- this.injector = injector;
169
- this.elementRef = elementRef;
170
- this.action = null;
171
- this.icon = null;
172
- this.tooltip = '';
173
- this.tooltipDisabled = false;
174
- this.label = '';
175
- this.show = true;
176
- this.confirm = false;
177
- this.confirmed$ = new EventEmitter();
178
- this.unconfirmed$ = new EventEmitter();
179
- this.types = ButtonTypes;
180
- this._subscription = new Subscription();
181
- /** Whether the button is icon button. */
182
- this.isIconButton = this._hasHostAttributes('mat-icon-button');
183
- this.isRoundButton = this._hasHostAttributes('mat-fab', 'mat-mini-fab');
184
- }
185
- get svgIcon() {
186
- if (this.icon) {
187
- return IsSvgIcon(this.icon);
188
- }
189
- return false;
190
- }
191
- get materialIcon() {
192
- if (this.icon) {
193
- return IsMaterialIcon(this.icon);
194
- }
195
- return false;
196
- }
197
- get iconName() {
198
- if (this.icon) {
199
- if (IsSvgIcon(this.icon)) {
200
- return this.icon.svgIcon;
201
- }
202
- else {
203
- return this.icon.icon;
204
- }
205
- }
206
- return null;
207
- }
208
- get name() {
209
- return this.definition.name;
210
- }
211
- contextChange(context = []) {
212
- this.disabled = !!applyContextToFunctionOrConstant(this.definition.disabled, context, this.disabled);
213
- this.icon = applyContextToFunctionOrConstant(this.definition.icon, context, this.icon);
214
- this.label = applyContextToFunctionOrConstant(this.definition.label, context, this.label);
215
- this.tooltip = applyContextToFunctionOrConstant(this.definition.tooltip, context, this.tooltip);
216
- this.tooltipDisabled = !!applyContextToFunctionOrConstant(this.definition.tooltipDisabled, context, this.tooltipDisabled);
217
- this.confirm = applyContextToFunctionOrConstant(this.definition.confirm, context, this.confirm);
218
- this.color = applyContextToFunctionOrConstant(this.definition.theme, context, this.color);
219
- this.action = applyContextToFunctionOrConstant(this.definition.action, context, this.action);
220
- if (this.definition.hide) {
221
- this.show = !applyContextToFunctionOrConstant(this.definition.hide, context, this.show);
222
- }
223
- if (this.definition.show) {
224
- this.show = !!applyContextToFunctionOrConstant(this.definition.show, context, this.show);
225
- }
226
- }
227
- contextAllChange(contextAll = []) {
228
- this.cdr.detach();
229
- this.show = false;
230
- this.disabled = true;
231
- if (contextAll.length) {
232
- this.contextChange(contextAll[0]);
233
- }
234
- for (const context of contextAll) {
235
- this.disabled = !!applyContextToFunctionOrConstant(this.definition.disabled, context, this.disabled);
236
- if (this.definition.hide) {
237
- this.show = !applyContextToFunctionOrConstant(this.definition.hide, context, this.show);
238
- }
239
- if (this.definition.show) {
240
- this.show = !!applyContextToFunctionOrConstant(this.definition.show, context, this.show);
241
- }
242
- }
243
- this.cdr.reattach();
244
- }
245
- ngOnChanges(changes) {
246
- if (changes.context && !changes.context.firstChange) {
247
- this.contextChange(changes.context.currentValue);
248
- }
249
- if (changes.contextAll && !changes.contextAll.firstChange) {
250
- this.contextAllChange(changes.contextAll.currentValue);
251
- }
252
- }
253
- ngOnInit() {
254
- if (this.context) {
255
- this.contextChange(this.context);
256
- }
257
- if (this.contextAll) {
258
- this.contextAllChange(this.contextAll);
259
- }
260
- if (!this.context && !this.contextAll) {
261
- this.contextChange();
262
- }
263
- this.updateClasses();
264
- this._confirmDirective = new ConfirmDirective(this.overlay, this.elementRef);
265
- this._subscription.add(this._confirmDirective.unconfirmed.subscribe(this.unconfirmed$));
266
- this._subscription.add(this._confirmDirective.confirmed.subscribe(this.confirm));
267
- }
268
- onClick($event) {
269
- if (this.confirm) {
270
- this._confirmDirective.onClick($event);
271
- }
272
- const actions = this.getActions();
273
- if (actions.length) {
274
- actions.forEach((action) => {
275
- this.emitClick(action);
276
- });
277
- }
278
- else {
279
- this.emitClick(null);
280
- }
281
- }
282
- emitClick($event) {
283
- if (this.definition.click$) {
284
- this.definition.click$.next($event !== null && $event !== void 0 ? $event : null);
285
- }
286
- }
287
- getActions() {
288
- if (this.contextAll && this.contextAll.length) {
289
- return this.contextAll
290
- .map((context) => applyContextToFunctionOrConstant(this.definition.action, context, null))
291
- .filter(Boolean);
292
- }
293
- else if (this.action) {
294
- return [this.action];
295
- }
296
- return [];
297
- }
298
- _hasHostAttributes(...attributes) {
299
- const descriptor = Object.getOwnPropertyDescriptor(this, 'definition');
300
- const hasDefinition = !!descriptor && descriptor.hasOwnProperty('value');
301
- if (hasDefinition) {
302
- for (const attribute of attributes) {
303
- switch (attribute) {
304
- case 'mat-icon-button':
305
- if (this.definition.type === ButtonTypes.Icon) {
306
- return true;
307
- }
308
- break;
309
- case 'mat-fab':
310
- if (this.definition.type === ButtonTypes.Fab) {
311
- return true;
312
- }
313
- break;
314
- case 'mat-mini-fab':
315
- if (this.definition.type === ButtonTypes.MiniFab) {
316
- return true;
317
- }
318
- break;
319
- case 'mat-raised-button':
320
- if (this.definition.type === ButtonTypes.Raised) {
321
- return true;
322
- }
323
- break;
324
- // TODO : add support for all mat button types
325
- }
326
- }
327
- }
328
- return super._hasHostAttributes(...attributes);
329
- }
330
- ngOnDestroy() {
331
- super.ngOnDestroy();
332
- this._confirmDirective.ngOnDestroy();
333
- this._subscription.unsubscribe();
334
- }
335
- updateClasses() {
336
- this.isRoundButton = this._hasHostAttributes('mat-fab', 'mat-mini-fab');
337
- this.isIconButton = this._hasHostAttributes('mat-icon-button');
338
- for (const attr of BUTTON_HOST_ATTRIBUTES) {
339
- if (this._hasHostAttributes(attr)) {
340
- this._getHostElement().classList.add(attr);
341
- }
342
- }
343
- if (this.isRoundButton) {
344
- this.color = DEFAULT_ROUND_BUTTON_COLOR;
345
- }
346
- }
347
- }
348
- 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 });
349
- 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 });
350
- __decorate([
351
- Required,
352
- __metadata("design:type", Object)
353
- ], ButtonComponent.prototype, "definition", void 0);
354
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ButtonComponent, decorators: [{
355
- type: Component,
356
- args: [{ selector: 'button[rxap-button]', inputs: ['disabled', 'disableRipple', 'color'], host: {
357
- '[attr.disabled]': 'disabled || null',
358
- '[class._mat-animation-noopable]': '_animationMode === "NoopAnimations"',
359
- class: 'mat-focus-indicator',
360
- }, 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"] }]
361
- }], ctorParameters: function () {
362
- return [{ type: i0.ChangeDetectorRef, decorators: [{
363
- type: Inject,
364
- args: [ChangeDetectorRef]
365
- }] }, { type: i1$1.Overlay, decorators: [{
366
- type: Inject,
367
- args: [Overlay]
368
- }] }, { type: undefined, decorators: [{
369
- type: Inject,
370
- args: [INJECTOR]
371
- }] }, { type: i0.ElementRef, decorators: [{
372
- type: Inject,
373
- args: [ElementRef]
374
- }] }, { type: i8.FocusMonitor, decorators: [{
375
- type: Inject,
376
- args: [FocusMonitor]
377
- }] }, { type: undefined, decorators: [{
378
- type: Optional
379
- }, {
380
- type: Inject,
381
- args: [ANIMATION_MODULE_TYPE]
382
- }] }];
383
- }, propDecorators: { svgIcon: [{
384
- type: HostBinding,
385
- args: ['attr.data-svg-icon']
386
- }], materialIcon: [{
387
- type: HostBinding,
388
- args: ['attr.data-material-icon']
389
- }], iconName: [{
390
- type: HostBinding,
391
- args: ['attr.data-icon']
392
- }], name: [{
393
- type: HostBinding,
394
- args: ['attr.data-name']
395
- }], context: [{
396
- type: Input
397
- }], contextAll: [{
398
- type: Input
399
- }], action: [{
400
- type: Input
401
- }], definition: [{
402
- type: Input,
403
- args: ['rxap-button']
404
- }], icon: [{
405
- type: Input
406
- }], tooltip: [{
407
- type: HostBinding,
408
- args: ['attr.data-tooltip']
409
- }, {
410
- type: Input
411
- }], tooltipDisabled: [{
412
- type: HostBinding,
413
- args: ['attr.data-tooltip-disabled']
414
- }, {
415
- type: Input
416
- }], label: [{
417
- type: HostBinding,
418
- args: ['attr.data-disabled']
419
- }, {
420
- type: HostBinding,
421
- args: ['attr.data-label']
422
- }, {
423
- type: Input
424
- }], show: [{
425
- type: HostBinding,
426
- args: ['attr.data-show']
427
- }, {
428
- type: Input
429
- }], confirm: [{
430
- type: HostBinding,
431
- args: ['attr.data-confirm']
432
- }, {
433
- type: Input
434
- }], confirmed$: [{
435
- type: Output,
436
- args: ['confirmed']
437
- }], unconfirmed$: [{
438
- type: Output,
439
- args: ['unconfirmed']
440
- }], onClick: [{
441
- type: HostListener,
442
- args: ['click', ['$event']]
443
- }] } });
444
-
445
- class ConfirmComponentModule {
446
- }
447
- ConfirmComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ConfirmComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
448
- ConfirmComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: ConfirmComponentModule, declarations: [ConfirmComponent, ConfirmDirective], imports: [FlexModule,
449
- MatButtonModule,
450
- MatIconModule,
451
- OverlayModule], exports: [ConfirmComponent, ConfirmDirective] });
452
- ConfirmComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ConfirmComponentModule, imports: [FlexModule,
453
- MatButtonModule,
454
- MatIconModule,
455
- OverlayModule] });
456
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ConfirmComponentModule, decorators: [{
457
- type: NgModule,
458
- args: [{
459
- declarations: [ConfirmComponent, ConfirmDirective],
460
- imports: [
461
- FlexModule,
462
- MatButtonModule,
463
- MatIconModule,
464
- OverlayModule
465
- ],
466
- exports: [ConfirmComponent, ConfirmDirective]
467
- }]
468
- }] });
469
-
470
- class ButtonComponentModule {
471
- }
472
- ButtonComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ButtonComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
473
- ButtonComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: ButtonComponentModule, declarations: [ButtonComponent], imports: [MatRippleModule,
474
- FlexLayoutModule,
475
- CommonModule,
476
- MatIconModule,
477
- MatButtonModule,
478
- MatTooltipModule,
479
- ConfirmComponentModule,
480
- IconDirectiveModule], exports: [ButtonComponent] });
481
- ButtonComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ButtonComponentModule, imports: [MatRippleModule,
482
- FlexLayoutModule,
483
- CommonModule,
484
- MatIconModule,
485
- MatButtonModule,
486
- MatTooltipModule,
487
- ConfirmComponentModule,
488
- IconDirectiveModule] });
489
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ButtonComponentModule, decorators: [{
490
- type: NgModule,
491
- args: [{
492
- declarations: [ButtonComponent],
493
- imports: [
494
- MatRippleModule,
495
- FlexLayoutModule,
496
- CommonModule,
497
- MatIconModule,
498
- MatButtonModule,
499
- MatTooltipModule,
500
- ConfirmComponentModule,
501
- IconDirectiveModule
502
- ],
503
- exports: [ButtonComponent]
504
- }]
505
- }] });
506
-
507
- class EmptyRouterOutletComponent {
508
- }
509
- EmptyRouterOutletComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EmptyRouterOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
510
- 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 });
511
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EmptyRouterOutletComponent, decorators: [{
512
- type: Component,
513
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<router-outlet></router-outlet>\n" }]
514
- }] });
515
-
516
- class EmptyRouterOutletModule {
517
- }
518
- EmptyRouterOutletModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EmptyRouterOutletModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
519
- EmptyRouterOutletModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: EmptyRouterOutletModule, declarations: [EmptyRouterOutletComponent], imports: [RouterModule], exports: [EmptyRouterOutletComponent] });
520
- EmptyRouterOutletModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EmptyRouterOutletModule, imports: [RouterModule] });
521
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EmptyRouterOutletModule, decorators: [{
522
- type: NgModule,
523
- args: [{
524
- declarations: [EmptyRouterOutletComponent],
525
- imports: [
526
- RouterModule
527
- ],
528
- exports: [EmptyRouterOutletComponent]
529
- }]
530
- }] });
531
-
532
- const JSON_VIEW_IGNORED_PROPERTIES = new InjectionToken('rxap/form-system/inspector/ignored-properties', {
533
- providedIn: 'root',
534
- factory: () => [
535
- '_subscriptions',
536
- 'subscriptions',
537
- 'injector',
538
- /\$$/
539
- ]
540
- });
541
- const JSON_VIEW_IGNORED_TYPES = new InjectionToken('rxap/form-system/inspector/ignored-types', {
542
- providedIn: 'root',
543
- factory: () => [
544
- Observable,
545
- Promise,
546
- Subscription,
547
- SubscriptionHandler,
548
- ErrorStateMatcher
549
- ]
550
- });
551
-
552
- class JsonViewerComponent {
553
- constructor(ignoredProperties, ignoredTypes, cdr) {
554
- this.cdr = cdr;
555
- this.ignoredProperties = [];
556
- this.ignoredTypes = [];
557
- this.subscriptions = new Subscription();
558
- this.segments = [];
559
- function flat(acc, cur) {
560
- if (Array.isArray(cur)) {
561
- acc.push(...cur.reduce(flat, []));
562
- }
563
- else {
564
- acc.push(cur);
565
- }
566
- return acc;
567
- }
568
- this.ignoredProperties = ignoredProperties.reduce(flat, []);
569
- this.ignoredTypes = ignoredTypes.reduce(flat, []);
570
- }
571
- ngOnInit() {
572
- this.setInspectValue(this.json);
573
- }
574
- ngOnChanges(changes) {
575
- const jsonChange = changes['json'];
576
- if (jsonChange) {
577
- this.setInspectValue(jsonChange.currentValue);
578
- }
579
- }
580
- cleanObject(obj, stack = []) {
581
- if (stack.some(item => item === obj)) {
582
- return '__circular__';
583
- }
584
- stack = stack.slice();
585
- stack.unshift(obj);
586
- return Object
587
- .entries(obj)
588
- .filter(([key, value]) => !isPromiseLike(value))
589
- .filter(([key, value]) => !isTeardownLogic(value))
590
- .filter(([key, value]) => this.ignoredProperties.every(ip => typeof ip === 'string' ? key !== ip : !key.match(ip)))
591
- .filter(([key, value]) => [...this.ignoredTypes].every(type => !(value instanceof type)))
592
- .map(([key, value]) => {
593
- if (value && typeof value === 'object') {
594
- if (Array.isArray(value)) {
595
- return [key, value.map(item => this.cleanObject(item, stack))];
596
- }
597
- if (typeof value === 'object') {
598
- return [key, this.cleanObject(value, stack)];
599
- }
600
- }
601
- return [key, value];
602
- })
603
- .sort((a, b) => a[0].localeCompare(b[0]))
604
- .reduce((controlView, [key, value]) => (Object.assign(Object.assign({}, controlView), { [key]: value })), {});
605
- }
606
- setInspectValue(json) {
607
- if (typeof json !== 'object' || json === null || json === undefined) {
608
- console.warn('The inspection value is not an object!');
609
- }
610
- else {
611
- json = clone(json);
612
- let inspectValue;
613
- if (typeof json['toJSON'] === 'function') {
614
- inspectValue = json.toJSON();
615
- }
616
- else {
617
- inspectValue = this.cleanObject(json);
618
- }
619
- this.inspectValue = inspectValue;
620
- this.buildSegments(this.inspectValue);
621
- this.cdr.markForCheck();
622
- }
623
- }
624
- buildSegments(inspectValue) {
625
- this.segments = [];
626
- if (typeof inspectValue === 'object') {
627
- Object.keys(inspectValue).forEach(key => {
628
- this.segments.push(this.parseKeyValue(key, inspectValue[key]));
629
- });
630
- }
631
- else {
632
- this.segments.push(this.parseKeyValue(`(${typeof inspectValue})`, inspectValue));
633
- }
634
- }
635
- isExpandable(segment) {
636
- return segment.type === 'object' || segment.type === 'array';
637
- }
638
- toggle(segment) {
639
- if (this.isExpandable(segment)) {
640
- segment.expanded = !segment.expanded;
641
- }
642
- }
643
- parseKeyValue(key, value) {
644
- const segment = {
645
- key: key,
646
- value: value,
647
- type: undefined,
648
- description: '' + value,
649
- expanded: this.expanded
650
- };
651
- switch (typeof segment.value) {
652
- case 'number': {
653
- segment.type = 'number';
654
- break;
655
- }
656
- case 'boolean': {
657
- segment.type = 'boolean';
658
- break;
659
- }
660
- case 'function': {
661
- segment.type = 'function';
662
- break;
663
- }
664
- case 'string': {
665
- segment.type = 'string';
666
- segment.description = '"' + segment.value + '"';
667
- break;
668
- }
669
- case 'undefined': {
670
- segment.type = 'undefined';
671
- segment.description = 'undefined';
672
- break;
673
- }
674
- case 'object': {
675
- // yea, null is object
676
- if (segment.value === null) {
677
- segment.type = 'null';
678
- segment.description = 'null';
679
- }
680
- else if (Array.isArray(segment.value)) {
681
- segment.type = 'array';
682
- segment.description = 'Array[' + segment.value.length + '] ' + JSON.stringify(segment.value);
683
- }
684
- else if (segment.value instanceof Date) {
685
- segment.type = 'date';
686
- }
687
- else {
688
- segment.type = 'object';
689
- segment.description = 'Object ' + JSON.stringify(segment.value);
690
- }
691
- break;
692
- }
693
- }
694
- return segment;
695
- }
696
- }
697
- 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 });
698
- 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 });
699
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: JsonViewerComponent, decorators: [{
700
- type: Component,
701
- 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"] }]
702
- }], ctorParameters: function () {
703
- return [{ type: Array, decorators: [{
704
- type: Inject,
705
- args: [JSON_VIEW_IGNORED_PROPERTIES]
706
- }] }, { type: Array, decorators: [{
707
- type: Inject,
708
- args: [JSON_VIEW_IGNORED_TYPES]
709
- }] }, { type: i0.ChangeDetectorRef, decorators: [{
710
- type: Inject,
711
- args: [ChangeDetectorRef]
712
- }] }];
713
- }, propDecorators: { json: [{
714
- type: Input
715
- }], expanded: [{
716
- type: Input
717
- }] } });
718
-
719
- class JsonViewerModule {
720
- }
721
- JsonViewerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: JsonViewerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
722
- JsonViewerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: JsonViewerModule, declarations: [JsonViewerComponent], imports: [CommonModule], exports: [JsonViewerComponent] });
723
- JsonViewerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: JsonViewerModule, imports: [CommonModule] });
724
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: JsonViewerModule, decorators: [{
725
- type: NgModule,
726
- args: [{
727
- declarations: [JsonViewerComponent],
728
- imports: [
729
- CommonModule
730
- ],
731
- exports: [JsonViewerComponent]
732
- }]
733
- }] });
734
-
735
- class CopyToClipboardButtonComponent {
736
- constructor(snackbar) {
737
- this.snackbar = snackbar;
738
- this.value = '';
739
- }
740
- copied() {
741
- this.snackbar.open('Erfolgreich in die Zwischenablage kopiert.', 'OK', {
742
- duration: 2500,
743
- });
744
- }
745
- }
746
- CopyToClipboardButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardButtonComponent, deps: [{ token: MatSnackBar }], target: i0.ɵɵFactoryTarget.Component });
747
- 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 });
748
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardButtonComponent, decorators: [{
749
- type: Component,
750
- 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" }]
751
- }], ctorParameters: function () {
752
- return [{ type: i4.MatSnackBar, decorators: [{
753
- type: Inject,
754
- args: [MatSnackBar]
755
- }] }];
756
- }, propDecorators: { value: [{
757
- type: Input
758
- }] } });
759
-
760
- class CopyToClipboardComponent {
761
- constructor() {
762
- this.active = true;
763
- this.disabled = false;
764
- }
765
- }
766
- CopyToClipboardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
767
- 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 });
768
- __decorate([
769
- Required,
770
- __metadata("design:type", String)
771
- ], CopyToClipboardComponent.prototype, "value", void 0);
772
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardComponent, decorators: [{
773
- type: Component,
774
- 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" }]
775
- }], propDecorators: { active: [{
776
- type: Input
777
- }], disabled: [{
778
- type: Input
779
- }], value: [{
780
- type: Input
781
- }] } });
782
-
783
- class CopyToClipboardButtonComponentModule {
784
- }
785
- CopyToClipboardButtonComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardButtonComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
786
- CopyToClipboardButtonComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardButtonComponentModule, declarations: [CopyToClipboardButtonComponent], imports: [MatIconModule,
787
- MatButtonModule,
788
- ClipboardModule,
789
- MatSnackBarModule], exports: [CopyToClipboardButtonComponent] });
790
- CopyToClipboardButtonComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardButtonComponentModule, imports: [MatIconModule,
791
- MatButtonModule,
792
- ClipboardModule,
793
- MatSnackBarModule] });
794
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardButtonComponentModule, decorators: [{
795
- type: NgModule,
796
- args: [{
797
- declarations: [CopyToClipboardButtonComponent],
798
- imports: [
799
- MatIconModule,
800
- MatButtonModule,
801
- ClipboardModule,
802
- MatSnackBarModule
803
- ],
804
- exports: [CopyToClipboardButtonComponent]
805
- }]
806
- }] });
807
-
808
- class CopyToClipboardModule {
809
- }
810
- CopyToClipboardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
811
- CopyToClipboardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardModule, declarations: [CopyToClipboardComponent], imports: [FlexLayoutModule,
812
- ClipboardModule,
813
- CommonModule,
814
- MatIconModule,
815
- MatButtonModule,
816
- MatSnackBarModule,
817
- CopyToClipboardButtonComponentModule], exports: [CopyToClipboardComponent] });
818
- CopyToClipboardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardModule, imports: [FlexLayoutModule,
819
- ClipboardModule,
820
- CommonModule,
821
- MatIconModule,
822
- MatButtonModule,
823
- MatSnackBarModule,
824
- CopyToClipboardButtonComponentModule] });
825
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardModule, decorators: [{
826
- type: NgModule,
827
- args: [{
828
- declarations: [CopyToClipboardComponent],
829
- imports: [
830
- FlexLayoutModule,
831
- ClipboardModule,
832
- CommonModule,
833
- MatIconModule,
834
- MatButtonModule,
835
- MatSnackBarModule,
836
- CopyToClipboardButtonComponentModule,
837
- ],
838
- exports: [CopyToClipboardComponent]
839
- }]
840
- }] });
841
-
842
- class DarkModeToggleButtonComponent {
843
- constructor(theme) {
844
- this.theme = theme;
845
- }
846
- }
847
- DarkModeToggleButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DarkModeToggleButtonComponent, deps: [{ token: ThemeService }], target: i0.ɵɵFactoryTarget.Component });
848
- 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 });
849
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DarkModeToggleButtonComponent, decorators: [{
850
- type: Component,
851
- 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" }]
852
- }], ctorParameters: function () {
853
- return [{ type: i5$1.ThemeService, decorators: [{
854
- type: Inject,
855
- args: [ThemeService]
856
- }] }];
857
- } });
858
-
859
- class DarkModeToggleButtonComponentModule {
860
- }
861
- DarkModeToggleButtonComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DarkModeToggleButtonComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
862
- DarkModeToggleButtonComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: DarkModeToggleButtonComponentModule, declarations: [DarkModeToggleButtonComponent], imports: [MatButtonModule,
863
- MatIconModule,
864
- CommonModule,
865
- StopPropagationDirectiveModule], exports: [DarkModeToggleButtonComponent] });
866
- DarkModeToggleButtonComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DarkModeToggleButtonComponentModule, imports: [MatButtonModule,
867
- MatIconModule,
868
- CommonModule,
869
- StopPropagationDirectiveModule] });
870
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DarkModeToggleButtonComponentModule, decorators: [{
871
- type: NgModule,
872
- args: [{
873
- declarations: [DarkModeToggleButtonComponent],
874
- imports: [
875
- MatButtonModule,
876
- MatIconModule,
877
- CommonModule,
878
- StopPropagationDirectiveModule,
879
- ],
880
- exports: [DarkModeToggleButtonComponent]
881
- }]
882
- }] });
883
-
884
- class NavigateBackButtonComponent {
885
- navigateBack() {
886
- window.history.back();
887
- }
888
- }
889
- NavigateBackButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: NavigateBackButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
890
- 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 });
891
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: NavigateBackButtonComponent, decorators: [{
892
- type: Component,
893
- 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" }]
894
- }] });
895
-
896
- class NavigateBackButtonComponentModule {
897
- }
898
- NavigateBackButtonComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: NavigateBackButtonComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
899
- NavigateBackButtonComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: NavigateBackButtonComponentModule, declarations: [NavigateBackButtonComponent], imports: [FlexLayoutModule,
900
- MatButtonModule,
901
- MatIconModule], exports: [NavigateBackButtonComponent] });
902
- NavigateBackButtonComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: NavigateBackButtonComponentModule, imports: [FlexLayoutModule,
903
- MatButtonModule,
904
- MatIconModule] });
905
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: NavigateBackButtonComponentModule, decorators: [{
906
- type: NgModule,
907
- args: [{
908
- declarations: [NavigateBackButtonComponent],
909
- imports: [
910
- FlexLayoutModule,
911
- MatButtonModule,
912
- MatIconModule
913
- ],
914
- exports: [NavigateBackButtonComponent]
915
- }]
916
- }] });
917
-
918
- // region button
919
- // endregion
920
-
921
- /**
922
- * Generated bundle index. Do not edit.
923
- */
924
-
925
- 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 };
926
- //# sourceMappingURL=rxap-components.mjs.map