@rxap/components 19.2.0 → 21.0.1-dev.1

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 (71) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/compodoc/changelog.html +38 -0
  3. package/compodoc/components/ConfirmComponent.html +106 -20
  4. package/compodoc/components/CopyToClipboardComponent.html +11 -14
  5. package/compodoc/components/JsonViewerComponent.html +126 -208
  6. package/compodoc/dependencies.html +9 -9
  7. package/compodoc/directives/ConfirmDirective.html +271 -309
  8. package/compodoc/graph/dependencies.svg +4 -58
  9. package/compodoc/interfaces/Segment.html +42 -52
  10. package/compodoc/js/menu-wc.js +0 -43
  11. package/compodoc/js/menu-wc_es5.js +1 -1
  12. package/compodoc/js/search/search_index.js +2 -2
  13. package/compodoc/modules.html +0 -17
  14. package/compodoc/overview.html +1 -101
  15. package/compodoc/properties.html +1 -1
  16. package/docs/documentation.json +642 -903
  17. package/docs/html/assets/navigation.js +1 -1
  18. package/docs/html/assets/search.js +1 -1
  19. package/docs/html/classes/ConfirmComponent.html +2 -2
  20. package/docs/html/classes/ConfirmDirective.html +7 -5
  21. package/docs/html/classes/CopyToClipboardButtonComponent.html +2 -2
  22. package/docs/html/classes/CopyToClipboardComponent.html +2 -2
  23. package/docs/html/classes/EmptyRouterOutletComponent.html +2 -2
  24. package/docs/html/classes/JsonViewerComponent.html +3 -16
  25. package/docs/html/classes/NavigateBackButtonComponent.html +2 -2
  26. package/docs/html/index.html +2 -2
  27. package/docs/html/interfaces/Segment.html +2 -2
  28. package/docs/html/modules.html +1 -1
  29. package/docs/html/variables/JSON_VIEW_IGNORED_PROPERTIES.html +1 -1
  30. package/docs/html/variables/JSON_VIEW_IGNORED_TYPES.html +1 -1
  31. package/docs/markdown/README.md +1 -1
  32. package/docs/markdown/classes/ConfirmComponent.md +6 -6
  33. package/docs/markdown/classes/ConfirmDirective.md +41 -43
  34. package/docs/markdown/classes/CopyToClipboardButtonComponent.md +4 -4
  35. package/docs/markdown/classes/CopyToClipboardComponent.md +9 -9
  36. package/docs/markdown/classes/EmptyRouterOutletComponent.md +2 -2
  37. package/docs/markdown/classes/JsonViewerComponent.md +20 -98
  38. package/docs/markdown/classes/NavigateBackButtonComponent.md +3 -3
  39. package/docs/markdown/globals.md +2 -3
  40. package/docs/markdown/interfaces/Segment.md +7 -7
  41. package/docs/markdown/variables/JSON_VIEW_IGNORED_PROPERTIES.md +2 -2
  42. package/docs/markdown/variables/JSON_VIEW_IGNORED_TYPES.md +2 -2
  43. package/docs/wiki/Class.ConfirmComponent.md +5 -5
  44. package/docs/wiki/Class.ConfirmDirective.md +40 -42
  45. package/docs/wiki/Class.CopyToClipboardButtonComponent.md +3 -3
  46. package/docs/wiki/Class.CopyToClipboardComponent.md +8 -8
  47. package/docs/wiki/Class.EmptyRouterOutletComponent.md +1 -1
  48. package/docs/wiki/Class.JsonViewerComponent.md +19 -97
  49. package/docs/wiki/Class.NavigateBackButtonComponent.md +2 -2
  50. package/docs/wiki/Interface.Segment.md +6 -6
  51. package/docs/wiki/Variable.JSON_VIEW_IGNORED_PROPERTIES.md +1 -1
  52. package/docs/wiki/Variable.JSON_VIEW_IGNORED_TYPES.md +1 -1
  53. package/docs/wiki/_Sidebar.md +0 -1
  54. package/docs/wiki/globals.md +1 -2
  55. package/fesm2022/rxap-components.mjs +100 -146
  56. package/fesm2022/rxap-components.mjs.map +1 -1
  57. package/package.json +23 -22
  58. package/types/rxap-components.d.ts +99 -0
  59. package/docs/html/classes/ConfirmModule.html +0 -2
  60. package/docs/markdown/classes/ConfirmModule.md +0 -19
  61. package/docs/wiki/Class.ConfirmModule.md +0 -15
  62. package/index.d.ts +0 -9
  63. package/lib/confirm/confirm.component.d.ts +0 -8
  64. package/lib/confirm/confirm.directive.d.ts +0 -23
  65. package/lib/confirm/confirm.module.d.ts +0 -8
  66. package/lib/copy-to-clipboard/copy-to-clipboard.component.d.ts +0 -12
  67. package/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.d.ts +0 -8
  68. package/lib/empty-router-outlet/empty-router-outlet.component.d.ts +0 -5
  69. package/lib/json-viewer/json-viewer.component.d.ts +0 -31
  70. package/lib/json-viewer/json-viewer.tokens.d.ts +0 -6
  71. package/lib/navigate-back-button/navigate-back-button.component.d.ts +0 -6
@@ -1,10 +1,11 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ChangeDetectionStrategy, InjectionToken, isDevMode, ChangeDetectorRef, forwardRef, Inject, Input, input, inject, computed, EventEmitter, Output, ElementRef, Directive, HostListener, NgModule } from '@angular/core';
2
+ import { ChangeDetectionStrategy, Component, InjectionToken, input, signal, inject, effect, untracked, isDevMode, forwardRef, computed, output, ElementRef, Directive } from '@angular/core';
3
3
  import * as i1 from '@angular/material/button';
4
4
  import { MatButtonModule } from '@angular/material/button';
5
5
  import * as i2 from '@angular/material/icon';
6
6
  import { MatIconModule } from '@angular/material/icon';
7
- import { NgFor, NgClass, NgIf } from '@angular/common';
7
+ import { __decorate, __metadata } from 'tslib';
8
+ import { NgClass } from '@angular/common';
8
9
  import { SubscriptionHandler, isTeardownLogic } from '@rxap/rxjs';
9
10
  import { isPromiseLike, clone } from '@rxap/utilities';
10
11
  import { Observable, Subscription } from 'rxjs';
@@ -13,23 +14,21 @@ import { RouterOutlet } from '@angular/router';
13
14
  import { MatSnackBar, MatSnackBarModule } from '@angular/material/snack-bar';
14
15
  import * as i2$1 from '@angular/cdk/clipboard';
15
16
  import { ClipboardModule } from '@angular/cdk/clipboard';
16
- import * as i1$1 from '@angular/cdk/overlay';
17
17
  import { Overlay } from '@angular/cdk/overlay';
18
18
  import { ComponentPortal } from '@angular/cdk/portal';
19
+ import { outputToObservable } from '@angular/core/rxjs-interop';
19
20
  import { take, tap } from 'rxjs/operators';
20
-
21
21
  class NavigateBackButtonComponent {
22
22
  navigateBack() {
23
23
  window.history.back();
24
24
  }
25
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: NavigateBackButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
26
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", type: NavigateBackButtonComponent, isStandalone: true, selector: "rxap-navigate-back-button", host: { classAttribute: "rxap-navigate-back-button" }, ngImport: i0, template: "<div class=\"rxap-container flex flex-row justify-start items-center gap-8\">\n <div class=\"grow-0\">\n <button type=\"button\" (click)=\"navigateBack()\" mat-stroked-button>\n <mat-icon>navigate_before</mat-icon>\n </button>\n </div>\n <ng-content></ng-content>\n</div>\n", styles: [".rxap-container ::ng-deep h1,.rxap-container ::ng-deep h2,.rxap-container ::ng-deep h3,.rxap-container ::ng-deep h4,.rxap-container ::ng-deep h5,.rxap-container ::ng-deep h6{margin:0}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
25
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NavigateBackButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
26
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: NavigateBackButtonComponent, isStandalone: true, selector: "rxap-navigate-back-button", host: { classAttribute: "rxap-navigate-back-button" }, ngImport: i0, template: "<div class=\"rxap-container flex flex-row justify-start items-center gap-8\">\n <div class=\"grow-0\">\n <button type=\"button\" (click)=\"navigateBack()\" mat-stroked-button>\n <mat-icon>navigate_before</mat-icon>\n </button>\n </div>\n <ng-content></ng-content>\n</div>\n", styles: [".rxap-container ::ng-deep h1,.rxap-container ::ng-deep h2,.rxap-container ::ng-deep h3,.rxap-container ::ng-deep h4,.rxap-container ::ng-deep h5,.rxap-container ::ng-deep h6{margin:0}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
27
27
  }
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: NavigateBackButtonComponent, decorators: [{
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NavigateBackButtonComponent, decorators: [{
29
29
  type: Component,
30
30
  args: [{ selector: 'rxap-navigate-back-button', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-navigate-back-button' }, imports: [MatButtonModule, MatIconModule], template: "<div class=\"rxap-container flex flex-row justify-start items-center gap-8\">\n <div class=\"grow-0\">\n <button type=\"button\" (click)=\"navigateBack()\" mat-stroked-button>\n <mat-icon>navigate_before</mat-icon>\n </button>\n </div>\n <ng-content></ng-content>\n</div>\n", styles: [".rxap-container ::ng-deep h1,.rxap-container ::ng-deep h2,.rxap-container ::ng-deep h3,.rxap-container ::ng-deep h4,.rxap-container ::ng-deep h5,.rxap-container ::ng-deep h6{margin:0}\n"] }]
31
31
  }] });
32
-
33
32
  const JSON_VIEW_IGNORED_PROPERTIES = new InjectionToken('rxap/form-system/inspector/ignored-properties', {
34
33
  providedIn: 'root',
35
34
  factory: () => [
@@ -49,17 +48,18 @@ const JSON_VIEW_IGNORED_TYPES = new InjectionToken('rxap/form-system/inspector/i
49
48
  ErrorStateMatcher,
50
49
  ],
51
50
  });
52
-
53
- class JsonViewerComponent {
54
- constructor(ignoredProperties, ignoredTypes, cdr) {
55
- this.cdr = cdr;
56
- // TODO : add object input. The json input will not be cleaned
57
- this.json = {};
58
- this.expanded = false;
51
+ let JsonViewerComponent = class JsonViewerComponent {
52
+ constructor() {
53
+ this.json = input({}, ...(ngDevMode ? [{ debugName: "json" }] : /* istanbul ignore next */ []));
54
+ this.expanded = input(false, ...(ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []));
55
+ this.inspectValue = signal(undefined, ...(ngDevMode ? [{ debugName: "inspectValue" }] : /* istanbul ignore next */ []));
59
56
  this.ignoredProperties = [];
60
57
  this.ignoredTypes = [];
61
58
  this.subscriptions = new Subscription();
62
- this.segments = [];
59
+ this.segments = signal([], ...(ngDevMode ? [{ debugName: "segments" }] : /* istanbul ignore next */ []));
60
+ this.initialized = false;
61
+ const ignoredProperties = inject(JSON_VIEW_IGNORED_PROPERTIES);
62
+ const ignoredTypes = inject(JSON_VIEW_IGNORED_TYPES);
63
63
  function flat(acc, cur) {
64
64
  if (Array.isArray(cur)) {
65
65
  acc.push(...cur.reduce(flat, []));
@@ -71,21 +71,19 @@ class JsonViewerComponent {
71
71
  }
72
72
  this.ignoredProperties = ignoredProperties.reduce(flat, []);
73
73
  this.ignoredTypes = ignoredTypes.reduce(flat, []);
74
- }
75
- ngOnInit() {
76
- this.setInspectValue(this.json);
77
- }
78
- ngOnChanges(changes) {
79
- const jsonChange = changes['json'];
80
- if (jsonChange) {
81
- if (isDevMode()) {
82
- console.debug('json change');
83
- }
84
- this.setInspectValue(jsonChange.currentValue);
85
- }
74
+ effect(() => {
75
+ const json = this.json();
76
+ untracked(() => {
77
+ if (isDevMode() && this.initialized) {
78
+ console.debug('json change');
79
+ }
80
+ this.initialized = true;
81
+ this.setInspectValue(json);
82
+ });
83
+ });
86
84
  }
87
85
  cleanObject(obj, stack = []) {
88
- if (typeof obj === 'string') {
86
+ if (typeof obj !== 'object' || obj === null) {
89
87
  return obj;
90
88
  }
91
89
  if (stack.some(item => item === obj)) {
@@ -126,20 +124,17 @@ class JsonViewerComponent {
126
124
  if (typeof json['toJSON'] === 'function') {
127
125
  json = json.toJSON();
128
126
  }
129
- this.inspectValue = this.cleanObject(clone(json));
130
- this.buildSegments(this.inspectValue);
131
- this.cdr.markForCheck();
127
+ const inspectValue = this.cleanObject(clone(json));
128
+ this.inspectValue.set(inspectValue);
129
+ this.buildSegments(inspectValue);
132
130
  }
133
131
  }
134
132
  buildSegments(inspectValue) {
135
- this.segments = [];
136
133
  if (typeof inspectValue === 'object') {
137
- Object.keys(inspectValue).forEach(key => {
138
- this.segments.push(this.parseKeyValue(key, inspectValue[key]));
139
- });
134
+ this.segments.set(Object.keys(inspectValue).map(key => this.parseKeyValue(key, inspectValue[key])));
140
135
  }
141
136
  else {
142
- this.segments.push(this.parseKeyValue(`(${typeof inspectValue})`, inspectValue));
137
+ this.segments.set([this.parseKeyValue(`(${typeof inspectValue})`, inspectValue)]);
143
138
  }
144
139
  }
145
140
  isExpandable(segment) {
@@ -148,6 +143,7 @@ class JsonViewerComponent {
148
143
  toggle(segment) {
149
144
  if (this.isExpandable(segment)) {
150
145
  segment.expanded = !segment.expanded;
146
+ this.segments.update(segments => [...segments]);
151
147
  }
152
148
  }
153
149
  parseKeyValue(key, value) {
@@ -156,7 +152,7 @@ class JsonViewerComponent {
156
152
  value: value,
157
153
  type: undefined,
158
154
  description: '' + value,
159
- expanded: this.expanded,
155
+ expanded: this.expanded(),
160
156
  };
161
157
  switch (typeof segment.value) {
162
158
  case 'number': {
@@ -203,39 +199,27 @@ class JsonViewerComponent {
203
199
  }
204
200
  return segment;
205
201
  }
206
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: JsonViewerComponent, deps: [{ token: JSON_VIEW_IGNORED_PROPERTIES }, { token: JSON_VIEW_IGNORED_TYPES }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
207
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", type: JsonViewerComponent, isStandalone: true, selector: "rxap-json-viewer", inputs: { json: "json", expanded: "expanded" }, host: { classAttribute: "rxap-json-viewer" }, usesOnChanges: true, ngImport: i0, template: "<section class=\"rxap-container\">\n <section\n *ngFor=\"let segment of segments\"\n [ngClass]=\"['segment', 'segment-type-' + segment.type]\">\n <section\n (click)=\"toggle(segment)\"\n [ngClass]=\"{\n 'segment-main': true,\n 'expandable': isExpandable(segment),\n 'expanded': segment.expanded\n }\">\n <div *ngIf=\"isExpandable(segment)\" class=\"toggler\"></div>\n <span class=\"segment-key text-primary\">{{ segment.key }}</span>\n <span class=\"segment-separator\">: </span>\n <span *ngIf=\"!segment.expanded || !isExpandable(segment)\"\n class=\"segment-value text-white dark:text-black\">{{ segment.description }}</span>\n </section>\n <section *ngIf=\"segment.expanded && isExpandable(segment)\" class=\"children\">\n <rxap-json-viewer [expanded]=\"expanded\" [json]=\"segment.value\"></rxap-json-viewer>\n </section>\n </section>\n</section>\n", styles: ["@charset \"UTF-8\";.rxap-container{width:100%;height:100%;overflow:hidden;position:relative;font-family:monospace;font-size:16px}.rxap-container .segment .segment-main .toggler{font-size:8px;line-height:12px}.rxap-container .segment{padding:2px;margin:1px 1px 1px 12px}.rxap-container .segment .segment-main{word-wrap:break-word}.rxap-container .segment .segment-main .toggler{position:absolute;margin-left:-14px;margin-top:3px;vertical-align:middle}.rxap-container .segment .segment-main .toggler:after{display:inline-block;content:\"\\25ba\";transition:transform .1s ease-in}.rxap-container .segment .children{margin-left:12px}.rxap-container .segment-type-object>.segment-main,.rxap-container .segment-type-array>.segment-main{white-space:nowrap}.rxap-container .expanded>.toggler:after{transform:rotate(90deg)}.rxap-container .expandable,.rxap-container .expandable>.toggler{cursor:pointer}.rxap-container .segment .segment-main .toggler{color:#787878}.rxap-container .segment .segment-main .segment-separator{color:#999}.rxap-container .segment-type-string>.segment-main>.segment-value{color:var(--json-string-color, #FF6B6B)}.rxap-container .segment-type-number>.segment-main>.segment-value{color:var(--json-number-color, #009688)}.rxap-container .segment-type-boolean>.segment-main>.segment-value{color:var(--json-boolean-color, #b938a4)}.rxap-container .segment-type-date>.segment-main>.segment-value{color:var(--json-date-color, #05668D)}.rxap-container .segment-type-array>.segment-main>.segment-value{color:var(--json-array-color, #999)}.rxap-container .segment-type-object>.segment-main>.segment-value{color:var(--json-object-color, #999)}.rxap-container .segment-type-function>.segment-main>.segment-value{color:var(--json-function-color, #999)}.rxap-container .segment-type-null>.segment-main>.segment-value{color:var(--json-null-color, #fff)}.rxap-container .segment-type-undefined>.segment-main>.segment-value{color:var(--json-undefined-color, #fff)}.rxap-container .segment-type-null>.segment-main>.segment-value{background-color:var(--warn-500, darkred)}.rxap-container .segment-type-undefined>.segment-main>.segment-key{color:#999}.rxap-container .segment-type-undefined>.segment-main>.segment-value{background-color:#999}\n"], dependencies: [{ kind: "component", type: i0.forwardRef(() => JsonViewerComponent), selector: "rxap-json-viewer", inputs: ["json", "expanded"] }, { kind: "directive", type: i0.forwardRef(() => NgFor), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i0.forwardRef(() => NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(() => NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
208
- }
209
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: JsonViewerComponent, decorators: [{
202
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: JsonViewerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
203
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: JsonViewerComponent, isStandalone: true, selector: "rxap-json-viewer", inputs: { json: { classPropertyName: "json", publicName: "json", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "rxap-json-viewer" }, ngImport: i0, template: "<section class=\"rxap-container\">\n @for (segment of segments(); track segment) {\n <section\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 @if (isExpandable(segment)) {\n <div class=\"toggler\"></div>\n }\n <span class=\"segment-key text-primary\">{{ segment.key }}</span>\n <span class=\"segment-separator\">: </span>\n @if (!segment.expanded || !isExpandable(segment)) {\n <span\n class=\"segment-value text-white dark:text-black\">{{ segment.description }}</span>\n }\n </section>\n @if (segment.expanded && isExpandable(segment)) {\n <section class=\"children\">\n <rxap-json-viewer [expanded]=\"expanded()\" [json]=\"segment.value\"></rxap-json-viewer>\n </section>\n }\n </section>\n }\n</section>\n", styles: ["@charset \"UTF-8\";.rxap-container{width:100%;height:100%;overflow:hidden;position:relative;font-family:monospace;font-size:16px}.rxap-container .segment .segment-main .toggler{font-size:8px;line-height:12px}.rxap-container .segment{padding:2px;margin:1px 1px 1px 12px}.rxap-container .segment .segment-main{word-wrap:break-word}.rxap-container .segment .segment-main .toggler{position:absolute;margin-left:-14px;margin-top:3px;vertical-align:middle}.rxap-container .segment .segment-main .toggler:after{display:inline-block;content:\"\\25ba\";transition:transform .1s ease-in}.rxap-container .segment .children{margin-left:12px}.rxap-container .segment-type-object>.segment-main,.rxap-container .segment-type-array>.segment-main{white-space:nowrap}.rxap-container .expanded>.toggler:after{transform:rotate(90deg)}.rxap-container .expandable,.rxap-container .expandable>.toggler{cursor:pointer}.rxap-container .segment .segment-main .toggler{color:#787878}.rxap-container .segment .segment-main .segment-separator{color:#999}.rxap-container .segment-type-string>.segment-main>.segment-value{color:var(--json-string-color, #FF6B6B)}.rxap-container .segment-type-number>.segment-main>.segment-value{color:var(--json-number-color, #009688)}.rxap-container .segment-type-boolean>.segment-main>.segment-value{color:var(--json-boolean-color, #b938a4)}.rxap-container .segment-type-date>.segment-main>.segment-value{color:var(--json-date-color, #05668D)}.rxap-container .segment-type-array>.segment-main>.segment-value{color:var(--json-array-color, #999)}.rxap-container .segment-type-object>.segment-main>.segment-value{color:var(--json-object-color, #999)}.rxap-container .segment-type-function>.segment-main>.segment-value{color:var(--json-function-color, #999)}.rxap-container .segment-type-null>.segment-main>.segment-value{color:var(--json-null-color, #fff)}.rxap-container .segment-type-undefined>.segment-main>.segment-value{color:var(--json-undefined-color, #fff)}.rxap-container .segment-type-null>.segment-main>.segment-value{background-color:var(--warn-500, darkred)}.rxap-container .segment-type-undefined>.segment-main>.segment-key{color:#999}.rxap-container .segment-type-undefined>.segment-main>.segment-value{background-color:#999}\n"], dependencies: [{ kind: "component", type: i0.forwardRef(() => JsonViewerComponent), selector: "rxap-json-viewer", inputs: ["json", "expanded"] }, { kind: "directive", type: i0.forwardRef(() => NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
204
+ };
205
+ JsonViewerComponent = __decorate([
206
+ __metadata("design:paramtypes", [])
207
+ ], JsonViewerComponent);
208
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: JsonViewerComponent, decorators: [{
210
209
  type: Component,
211
- args: [{ selector: 'rxap-json-viewer', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-json-viewer' }, imports: [NgFor, NgClass, NgIf, forwardRef(() => JsonViewerComponent)], template: "<section class=\"rxap-container\">\n <section\n *ngFor=\"let segment of segments\"\n [ngClass]=\"['segment', 'segment-type-' + segment.type]\">\n <section\n (click)=\"toggle(segment)\"\n [ngClass]=\"{\n 'segment-main': true,\n 'expandable': isExpandable(segment),\n 'expanded': segment.expanded\n }\">\n <div *ngIf=\"isExpandable(segment)\" class=\"toggler\"></div>\n <span class=\"segment-key text-primary\">{{ segment.key }}</span>\n <span class=\"segment-separator\">: </span>\n <span *ngIf=\"!segment.expanded || !isExpandable(segment)\"\n class=\"segment-value text-white dark:text-black\">{{ segment.description }}</span>\n </section>\n <section *ngIf=\"segment.expanded && isExpandable(segment)\" class=\"children\">\n <rxap-json-viewer [expanded]=\"expanded\" [json]=\"segment.value\"></rxap-json-viewer>\n </section>\n </section>\n</section>\n", styles: ["@charset \"UTF-8\";.rxap-container{width:100%;height:100%;overflow:hidden;position:relative;font-family:monospace;font-size:16px}.rxap-container .segment .segment-main .toggler{font-size:8px;line-height:12px}.rxap-container .segment{padding:2px;margin:1px 1px 1px 12px}.rxap-container .segment .segment-main{word-wrap:break-word}.rxap-container .segment .segment-main .toggler{position:absolute;margin-left:-14px;margin-top:3px;vertical-align:middle}.rxap-container .segment .segment-main .toggler:after{display:inline-block;content:\"\\25ba\";transition:transform .1s ease-in}.rxap-container .segment .children{margin-left:12px}.rxap-container .segment-type-object>.segment-main,.rxap-container .segment-type-array>.segment-main{white-space:nowrap}.rxap-container .expanded>.toggler:after{transform:rotate(90deg)}.rxap-container .expandable,.rxap-container .expandable>.toggler{cursor:pointer}.rxap-container .segment .segment-main .toggler{color:#787878}.rxap-container .segment .segment-main .segment-separator{color:#999}.rxap-container .segment-type-string>.segment-main>.segment-value{color:var(--json-string-color, #FF6B6B)}.rxap-container .segment-type-number>.segment-main>.segment-value{color:var(--json-number-color, #009688)}.rxap-container .segment-type-boolean>.segment-main>.segment-value{color:var(--json-boolean-color, #b938a4)}.rxap-container .segment-type-date>.segment-main>.segment-value{color:var(--json-date-color, #05668D)}.rxap-container .segment-type-array>.segment-main>.segment-value{color:var(--json-array-color, #999)}.rxap-container .segment-type-object>.segment-main>.segment-value{color:var(--json-object-color, #999)}.rxap-container .segment-type-function>.segment-main>.segment-value{color:var(--json-function-color, #999)}.rxap-container .segment-type-null>.segment-main>.segment-value{color:var(--json-null-color, #fff)}.rxap-container .segment-type-undefined>.segment-main>.segment-value{color:var(--json-undefined-color, #fff)}.rxap-container .segment-type-null>.segment-main>.segment-value{background-color:var(--warn-500, darkred)}.rxap-container .segment-type-undefined>.segment-main>.segment-key{color:#999}.rxap-container .segment-type-undefined>.segment-main>.segment-value{background-color:#999}\n"] }]
212
- }], ctorParameters: () => [{ type: Array, decorators: [{
213
- type: Inject,
214
- args: [JSON_VIEW_IGNORED_PROPERTIES]
215
- }] }, { type: Array, decorators: [{
216
- type: Inject,
217
- args: [JSON_VIEW_IGNORED_TYPES]
218
- }] }, { type: i0.ChangeDetectorRef, decorators: [{
219
- type: Inject,
220
- args: [ChangeDetectorRef]
221
- }] }], propDecorators: { json: [{
222
- type: Input
223
- }], expanded: [{
224
- type: Input
225
- }] } });
226
-
210
+ args: [{ selector: 'rxap-json-viewer', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-json-viewer' }, imports: [NgClass, forwardRef(() => JsonViewerComponent)], template: "<section class=\"rxap-container\">\n @for (segment of segments(); track segment) {\n <section\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 @if (isExpandable(segment)) {\n <div class=\"toggler\"></div>\n }\n <span class=\"segment-key text-primary\">{{ segment.key }}</span>\n <span class=\"segment-separator\">: </span>\n @if (!segment.expanded || !isExpandable(segment)) {\n <span\n class=\"segment-value text-white dark:text-black\">{{ segment.description }}</span>\n }\n </section>\n @if (segment.expanded && isExpandable(segment)) {\n <section class=\"children\">\n <rxap-json-viewer [expanded]=\"expanded()\" [json]=\"segment.value\"></rxap-json-viewer>\n </section>\n }\n </section>\n }\n</section>\n", styles: ["@charset \"UTF-8\";.rxap-container{width:100%;height:100%;overflow:hidden;position:relative;font-family:monospace;font-size:16px}.rxap-container .segment .segment-main .toggler{font-size:8px;line-height:12px}.rxap-container .segment{padding:2px;margin:1px 1px 1px 12px}.rxap-container .segment .segment-main{word-wrap:break-word}.rxap-container .segment .segment-main .toggler{position:absolute;margin-left:-14px;margin-top:3px;vertical-align:middle}.rxap-container .segment .segment-main .toggler:after{display:inline-block;content:\"\\25ba\";transition:transform .1s ease-in}.rxap-container .segment .children{margin-left:12px}.rxap-container .segment-type-object>.segment-main,.rxap-container .segment-type-array>.segment-main{white-space:nowrap}.rxap-container .expanded>.toggler:after{transform:rotate(90deg)}.rxap-container .expandable,.rxap-container .expandable>.toggler{cursor:pointer}.rxap-container .segment .segment-main .toggler{color:#787878}.rxap-container .segment .segment-main .segment-separator{color:#999}.rxap-container .segment-type-string>.segment-main>.segment-value{color:var(--json-string-color, #FF6B6B)}.rxap-container .segment-type-number>.segment-main>.segment-value{color:var(--json-number-color, #009688)}.rxap-container .segment-type-boolean>.segment-main>.segment-value{color:var(--json-boolean-color, #b938a4)}.rxap-container .segment-type-date>.segment-main>.segment-value{color:var(--json-date-color, #05668D)}.rxap-container .segment-type-array>.segment-main>.segment-value{color:var(--json-array-color, #999)}.rxap-container .segment-type-object>.segment-main>.segment-value{color:var(--json-object-color, #999)}.rxap-container .segment-type-function>.segment-main>.segment-value{color:var(--json-function-color, #999)}.rxap-container .segment-type-null>.segment-main>.segment-value{color:var(--json-null-color, #fff)}.rxap-container .segment-type-undefined>.segment-main>.segment-value{color:var(--json-undefined-color, #fff)}.rxap-container .segment-type-null>.segment-main>.segment-value{background-color:var(--warn-500, darkred)}.rxap-container .segment-type-undefined>.segment-main>.segment-key{color:#999}.rxap-container .segment-type-undefined>.segment-main>.segment-value{background-color:#999}\n"] }]
211
+ }], ctorParameters: () => [], propDecorators: { json: [{ type: i0.Input, args: [{ isSignal: true, alias: "json", required: false }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }] } });
227
212
  class EmptyRouterOutletComponent {
228
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: EmptyRouterOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
229
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", type: EmptyRouterOutletComponent, isStandalone: true, selector: "rxap-empty-router-outlet", ngImport: i0, template: "<router-outlet></router-outlet>\n", dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
213
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: EmptyRouterOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
214
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: EmptyRouterOutletComponent, isStandalone: true, selector: "rxap-empty-router-outlet", ngImport: i0, template: "<router-outlet></router-outlet>\n", dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
230
215
  }
231
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: EmptyRouterOutletComponent, decorators: [{
216
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: EmptyRouterOutletComponent, decorators: [{
232
217
  type: Component,
233
218
  args: [{ selector: 'rxap-empty-router-outlet', changeDetection: ChangeDetectionStrategy.OnPush, imports: [RouterOutlet], template: "<router-outlet></router-outlet>\n" }]
234
219
  }] });
235
-
236
220
  class CopyToClipboardButtonComponent {
237
221
  constructor() {
238
- this.value = input('');
222
+ this.value = input('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
239
223
  this.snackbar = inject(MatSnackBar);
240
224
  }
241
225
  copied() {
@@ -243,10 +227,10 @@ class CopyToClipboardButtonComponent {
243
227
  duration: 2500,
244
228
  });
245
229
  }
246
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: CopyToClipboardButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
247
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.16", type: CopyToClipboardButtonComponent, isStandalone: true, selector: "rxap-copy-to-clipboard-button", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<button\n (cdkCopyToClipboardCopied)=\"copied()\"\n (click)=\"$event.stopPropagation()\"\n [cdkCopyToClipboard]=\"value()\"\n mat-icon-button\n type=\"button\"\n>\n <mat-icon>content_copy</mat-icon>\n</button>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: ClipboardModule }, { kind: "directive", type: i2$1.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatSnackBarModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
230
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: CopyToClipboardButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
231
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.9", type: CopyToClipboardButtonComponent, isStandalone: true, selector: "rxap-copy-to-clipboard-button", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<button\n (cdkCopyToClipboardCopied)=\"copied()\"\n (click)=\"$event.stopPropagation()\"\n [cdkCopyToClipboard]=\"value()\"\n mat-icon-button\n type=\"button\"\n>\n <mat-icon>content_copy</mat-icon>\n</button>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: ClipboardModule }, { kind: "directive", type: i2$1.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatSnackBarModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
248
232
  }
249
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: CopyToClipboardButtonComponent, decorators: [{
233
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: CopyToClipboardButtonComponent, decorators: [{
250
234
  type: Component,
251
235
  args: [{ selector: 'rxap-copy-to-clipboard-button', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
252
236
  MatButtonModule,
@@ -254,59 +238,55 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImpo
254
238
  MatIconModule,
255
239
  MatSnackBarModule,
256
240
  ], template: "<button\n (cdkCopyToClipboardCopied)=\"copied()\"\n (click)=\"$event.stopPropagation()\"\n [cdkCopyToClipboard]=\"value()\"\n mat-icon-button\n type=\"button\"\n>\n <mat-icon>content_copy</mat-icon>\n</button>\n" }]
257
- }] });
258
-
241
+ }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }] } });
259
242
  class CopyToClipboardComponent {
260
243
  constructor() {
261
- this.active = input(true);
262
- this.disabled = input(false);
263
- this.value = input.required();
264
- this.containerClass = input('flex flex-row gap-2');
265
- this.position = input('before');
266
- this.isPositionBefore = computed(() => this.position() === 'before');
267
- this.isPositionAfter = computed(() => this.position() === 'after');
244
+ this.active = input(true, ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
245
+ this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
246
+ this.value = input.required(...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
247
+ this.containerClass = input('flex flex-row gap-2', ...(ngDevMode ? [{ debugName: "containerClass" }] : /* istanbul ignore next */ []));
248
+ this.position = input('before', ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
249
+ this.isPositionBefore = computed(() => this.position() === 'before', ...(ngDevMode ? [{ debugName: "isPositionBefore" }] : /* istanbul ignore next */ []));
250
+ this.isPositionAfter = computed(() => this.position() === 'after', ...(ngDevMode ? [{ debugName: "isPositionAfter" }] : /* istanbul ignore next */ []));
268
251
  }
269
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: CopyToClipboardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
270
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.16", type: CopyToClipboardComponent, isStandalone: true, selector: "rxap-copy-to-clipboard", inputs: { active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, containerClass: { classPropertyName: "containerClass", publicName: "containerClass", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"flex flex-row gap-2 items-center\">\n @if (active() && isPositionBefore()) {\n <rxap-copy-to-clipboard-button [value]=\"value()\" class=\"w-[40px]\"></rxap-copy-to-clipboard-button>\n }\n <span #ref class=\"grow {{ containerClass() }}\" [ngClass]=\"{ 'hidden': !ref.innerHTML.trim() }\"><ng-content></ng-content></span>\n @if (!ref.innerHTML.trim()) {\n <span class=\"grow\">{{ value() }}</span>\n }\n @if (active() && isPositionAfter()) {\n <rxap-copy-to-clipboard-button [value]=\"value()\" class=\"w-[40px]\"></rxap-copy-to-clipboard-button>\n }\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: CopyToClipboardButtonComponent, selector: "rxap-copy-to-clipboard-button", inputs: ["value"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
252
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: CopyToClipboardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
253
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: CopyToClipboardComponent, isStandalone: true, selector: "rxap-copy-to-clipboard", inputs: { active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, containerClass: { classPropertyName: "containerClass", publicName: "containerClass", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"flex flex-row gap-2 items-center\">\n @if (active() && isPositionBefore()) {\n <rxap-copy-to-clipboard-button [value]=\"value()\" class=\"w-[40px]\"></rxap-copy-to-clipboard-button>\n }\n <span #ref class=\"grow {{ containerClass() }}\" [ngClass]=\"{ 'hidden': !ref.innerHTML.trim() }\"><ng-content></ng-content></span>\n @if (!ref.innerHTML.trim()) {\n <span class=\"grow\">{{ value() }}</span>\n }\n @if (active() && isPositionAfter()) {\n <rxap-copy-to-clipboard-button [value]=\"value()\" class=\"w-[40px]\"></rxap-copy-to-clipboard-button>\n }\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: CopyToClipboardButtonComponent, selector: "rxap-copy-to-clipboard-button", inputs: ["value"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
271
254
  }
272
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: CopyToClipboardComponent, decorators: [{
255
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: CopyToClipboardComponent, decorators: [{
273
256
  type: Component,
274
257
  args: [{ selector: 'rxap-copy-to-clipboard', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CopyToClipboardButtonComponent, NgClass], template: "<div class=\"flex flex-row gap-2 items-center\">\n @if (active() && isPositionBefore()) {\n <rxap-copy-to-clipboard-button [value]=\"value()\" class=\"w-[40px]\"></rxap-copy-to-clipboard-button>\n }\n <span #ref class=\"grow {{ containerClass() }}\" [ngClass]=\"{ 'hidden': !ref.innerHTML.trim() }\"><ng-content></ng-content></span>\n @if (!ref.innerHTML.trim()) {\n <span class=\"grow\">{{ value() }}</span>\n }\n @if (active() && isPositionAfter()) {\n <rxap-copy-to-clipboard-button [value]=\"value()\" class=\"w-[40px]\"></rxap-copy-to-clipboard-button>\n }\n</div>\n" }]
275
- }] });
276
-
258
+ }], propDecorators: { active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], containerClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "containerClass", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }] } });
277
259
  class ConfirmComponent {
278
260
  constructor() {
279
- this.confirmed = new EventEmitter();
280
- this.unconfirmed = new EventEmitter();
261
+ this.confirmed = output();
262
+ this.unconfirmed = output();
281
263
  }
282
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: ConfirmComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
283
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", type: ConfirmComponent, isStandalone: true, selector: "rxap-confirm", outputs: { confirmed: "confirmed", unconfirmed: "unconfirmed" }, ngImport: i0, template: "<div class=\"rxap-container shadow-lg hover:shadow-xl flex flex-row gap-1\">\n <button (click)=\"confirmed.emit()\" class=\"accept\" mat-icon-button type=\"button\">\n <mat-icon>done</mat-icon>\n </button>\n <button (click)=\"unconfirmed.emit()\" class=\"decline\" mat-icon-button type=\"button\">\n <mat-icon>clear</mat-icon>\n </button>\n</div>\n", styles: [".rxap-container{border-radius:8px;padding:4px;background-color:var(--background-color, white)}.rxap-container .accept{color:var(--accept-color, rgb(115, 190, 105))}.rxap-container .decline{color:var(--decline-color, rgb(204, 73, 51))}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
264
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ConfirmComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
265
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: ConfirmComponent, isStandalone: true, selector: "rxap-confirm", outputs: { confirmed: "confirmed", unconfirmed: "unconfirmed" }, ngImport: i0, template: "<div class=\"rxap-container shadow-lg hover:shadow-xl flex flex-row gap-1\">\n <button (click)=\"confirmed.emit()\" class=\"accept\" mat-icon-button type=\"button\">\n <mat-icon>done</mat-icon>\n </button>\n <button (click)=\"unconfirmed.emit()\" class=\"decline\" mat-icon-button type=\"button\">\n <mat-icon>clear</mat-icon>\n </button>\n</div>\n", styles: [".rxap-container{border-radius:8px;padding:4px;background-color:var(--background-color, white)}.rxap-container .accept{color:var(--accept-color, rgb(115, 190, 105))}.rxap-container .decline{color:var(--decline-color, rgb(204, 73, 51))}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
284
266
  }
285
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: ConfirmComponent, decorators: [{
267
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ConfirmComponent, decorators: [{
286
268
  type: Component,
287
269
  args: [{ selector: 'rxap-confirm', changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButtonModule, MatIconModule], template: "<div class=\"rxap-container shadow-lg hover:shadow-xl flex flex-row gap-1\">\n <button (click)=\"confirmed.emit()\" class=\"accept\" mat-icon-button type=\"button\">\n <mat-icon>done</mat-icon>\n </button>\n <button (click)=\"unconfirmed.emit()\" class=\"decline\" mat-icon-button type=\"button\">\n <mat-icon>clear</mat-icon>\n </button>\n</div>\n", styles: [".rxap-container{border-radius:8px;padding:4px;background-color:var(--background-color, white)}.rxap-container .accept{color:var(--accept-color, rgb(115, 190, 105))}.rxap-container .decline{color:var(--decline-color, rgb(204, 73, 51))}\n"] }]
288
- }], propDecorators: { confirmed: [{
289
- type: Output
290
- }], unconfirmed: [{
291
- type: Output
292
- }] } });
293
-
270
+ }], propDecorators: { confirmed: [{ type: i0.Output, args: ["confirmed"] }], unconfirmed: [{ type: i0.Output, args: ["unconfirmed"] }] } });
294
271
  class ConfirmDirective {
295
- // use a set input to allow auto import detection if the eventValue
296
- // is not set
297
- set eventValue(value) {
298
- if (value !== '') {
299
- this._eventValue = value;
300
- }
301
- }
302
- constructor(overlay, elementRef) {
303
- this.overlay = overlay;
304
- this.elementRef = elementRef;
305
- this.confirmed = new EventEmitter();
306
- this.unconfirmed = new EventEmitter();
272
+ constructor() {
273
+ this.overlay = inject(Overlay);
274
+ this.elementRef = inject(ElementRef);
275
+ // an input is used to allow auto import detection if the eventValue
276
+ // is not set
277
+ this.eventValueInput = input('', { ...(ngDevMode ? { debugName: "eventValueInput" } : /* istanbul ignore next */ {}), alias: 'rxapConfirm' });
278
+ this.eventValue = computed(() => {
279
+ const value = this.eventValueInput();
280
+ return value !== '' ? value : undefined;
281
+ }, ...(ngDevMode ? [{ debugName: "eventValue" }] : /* istanbul ignore next */ []));
282
+ this.confirmed = output();
283
+ this.unconfirmed = output();
307
284
  this.subscription = null;
308
285
  this.isOverlyOpen = false;
309
- this.positionStrategy = this.overlay
286
+ this.positionStrategy = this.createPositionStrategy();
287
+ }
288
+ createPositionStrategy() {
289
+ return this.overlay
310
290
  .position()
311
291
  .flexibleConnectedTo(this.elementRef.nativeElement)
312
292
  .withPositions([
@@ -331,6 +311,10 @@ class ConfirmDirective {
331
311
  return;
332
312
  }
333
313
  this.isOverlyOpen = true;
314
+ if (this.overlayRef) {
315
+ // a position strategy can only be attached to a single overlay; the previous one is disposed
316
+ this.positionStrategy = this.createPositionStrategy();
317
+ }
334
318
  this.overlayRef = this.overlay.create({
335
319
  scrollStrategy: this.overlay.scrollStrategies.close(),
336
320
  positionStrategy: this.positionStrategy,
@@ -339,11 +323,11 @@ class ConfirmDirective {
339
323
  const componentRef = this.overlayRef.attach(componentPortal);
340
324
  this.subscription?.unsubscribe();
341
325
  this.subscription = new Subscription();
342
- this.subscription.add(componentRef.instance.confirmed
343
- .pipe(take(1), tap(() => this.onConfirmed(this._eventValue)), tap(() => this.overlayRef?.dispose()), tap(() => this.isOverlyOpen = false), tap(() => (this.subscription = null)), tap(() => this.subscription?.unsubscribe()))
326
+ this.subscription.add(outputToObservable(componentRef.instance.confirmed)
327
+ .pipe(take(1), tap(() => this.onConfirmed(this.eventValue())), tap(() => this.overlayRef?.dispose()), tap(() => this.isOverlyOpen = false), tap(() => (this.subscription = null)), tap(() => this.subscription?.unsubscribe()))
344
328
  .subscribe());
345
- this.subscription.add(componentRef.instance.unconfirmed
346
- .pipe(take(1), tap(() => this.onUnconfirmed(this._eventValue)), tap(() => this.overlayRef?.dispose()), tap(() => this.isOverlyOpen = false), tap(() => (this.subscription = null)), tap(() => this.subscription?.unsubscribe()))
329
+ this.subscription.add(outputToObservable(componentRef.instance.unconfirmed)
330
+ .pipe(take(1), tap(() => this.onUnconfirmed(this.eventValue())), tap(() => this.overlayRef?.dispose()), tap(() => this.isOverlyOpen = false), tap(() => (this.subscription = null)), tap(() => this.subscription?.unsubscribe()))
347
331
  .subscribe());
348
332
  this.subscription.add(this.overlayRef
349
333
  .detachments()
@@ -356,52 +340,22 @@ class ConfirmDirective {
356
340
  onUnconfirmed(eventValue) {
357
341
  this.unconfirmed.emit(eventValue);
358
342
  }
359
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: ConfirmDirective, deps: [{ token: Overlay }, { token: ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
360
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.16", type: ConfirmDirective, isStandalone: true, selector: "[rxapConfirm]", inputs: { eventValue: ["rxapConfirm", "eventValue"] }, outputs: { confirmed: "confirmed", unconfirmed: "unconfirmed" }, host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 }); }
343
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ConfirmDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
344
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.9", type: ConfirmDirective, isStandalone: true, selector: "[rxapConfirm]", inputs: { eventValueInput: { classPropertyName: "eventValueInput", publicName: "rxapConfirm", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { confirmed: "confirmed", unconfirmed: "unconfirmed" }, host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 }); }
361
345
  }
362
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: ConfirmDirective, decorators: [{
346
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ConfirmDirective, decorators: [{
363
347
  type: Directive,
364
348
  args: [{
365
349
  selector: '[rxapConfirm]',
366
350
  standalone: true,
351
+ host: {
352
+ '(click)': 'onClick($event)',
353
+ },
367
354
  }]
368
- }], ctorParameters: () => [{ type: i1$1.Overlay, decorators: [{
369
- type: Inject,
370
- args: [Overlay]
371
- }] }, { type: i0.ElementRef, decorators: [{
372
- type: Inject,
373
- args: [ElementRef]
374
- }] }], propDecorators: { eventValue: [{
375
- type: Input,
376
- args: ['rxapConfirm']
377
- }], confirmed: [{
378
- type: Output
379
- }], unconfirmed: [{
380
- type: Output
381
- }], onClick: [{
382
- type: HostListener,
383
- args: ['click', ['$event']]
384
- }] } });
385
-
386
- class ConfirmModule {
387
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: ConfirmModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
388
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.16", ngImport: i0, type: ConfirmModule, imports: [ConfirmDirective, ConfirmComponent], exports: [ConfirmDirective] }); }
389
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: ConfirmModule, imports: [ConfirmComponent] }); }
390
- }
391
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: ConfirmModule, decorators: [{
392
- type: NgModule,
393
- args: [{
394
- imports: [ConfirmDirective, ConfirmComponent],
395
- exports: [ConfirmDirective],
396
- }]
397
- }] });
398
-
355
+ }], ctorParameters: () => [], propDecorators: { eventValueInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "rxapConfirm", required: false }] }], confirmed: [{ type: i0.Output, args: ["confirmed"] }], unconfirmed: [{ type: i0.Output, args: ["unconfirmed"] }] } });
399
356
  // region navigate-back-button
400
357
  // endregion
401
-
402
358
  /**
403
359
  * Generated bundle index. Do not edit.
404
360
  */
405
-
406
- export { ConfirmComponent, ConfirmDirective, ConfirmModule, CopyToClipboardButtonComponent, CopyToClipboardComponent, EmptyRouterOutletComponent, JSON_VIEW_IGNORED_PROPERTIES, JSON_VIEW_IGNORED_TYPES, JsonViewerComponent, NavigateBackButtonComponent };
407
- //# sourceMappingURL=rxap-components.mjs.map
361
+ export { ConfirmComponent, ConfirmDirective, CopyToClipboardButtonComponent, CopyToClipboardComponent, EmptyRouterOutletComponent, JSON_VIEW_IGNORED_PROPERTIES, JSON_VIEW_IGNORED_TYPES, JsonViewerComponent, NavigateBackButtonComponent };