@rxap/directives 16.0.0-dev.2 → 16.0.0-dev.4

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 (37) hide show
  1. package/CHANGELOG.md +272 -0
  2. package/README.md +8 -22
  3. package/esm2022/index.mjs +1 -1
  4. package/esm2022/lib/avatar-background-image.directive.mjs +17 -18
  5. package/esm2022/lib/background-image.directive.mjs +12 -13
  6. package/esm2022/lib/confirm-click.mjs +6 -7
  7. package/esm2022/lib/contenteditable.directive.mjs +8 -9
  8. package/esm2022/lib/full-width.directive.mjs +7 -8
  9. package/esm2022/lib/if-truthy.directive.mjs +12 -13
  10. package/esm2022/lib/method-template.directive.mjs +22 -20
  11. package/esm2022/lib/method.directive.mjs +16 -17
  12. package/esm2022/lib/movable-divider.directive.mjs +11 -11
  13. package/esm2022/lib/prevent-default.directive.mjs +7 -8
  14. package/esm2022/lib/share-button.directive.mjs +17 -14
  15. package/esm2022/lib/stop-immediate-propagation.directive.mjs +7 -8
  16. package/esm2022/lib/stop-propagation.directive.mjs +7 -8
  17. package/esm2022/rxap-directives.mjs +1 -1
  18. package/fesm2022/rxap-directives.mjs +105 -96
  19. package/fesm2022/rxap-directives.mjs.map +1 -1
  20. package/lib/avatar-background-image.directive.d.ts +3 -3
  21. package/lib/background-image.directive.d.ts +1 -1
  22. package/lib/confirm-click.d.ts +1 -1
  23. package/lib/contenteditable.directive.d.ts +2 -2
  24. package/lib/if-truthy.directive.d.ts +6 -6
  25. package/lib/method-template.directive.d.ts +5 -4
  26. package/lib/method.directive.d.ts +5 -5
  27. package/package.json +49 -39
  28. package/LICENSE +0 -21
  29. package/collection.json +0 -10
  30. package/migration.json +0 -10
  31. package/src/migrations/v11-2-0/index.d.ts +0 -2
  32. package/src/migrations/v11-2-0/index.js +0 -29
  33. package/src/migrations/v11-2-0/index.js.map +0 -1
  34. package/src/schematics/ng-add/index.d.ts +0 -2
  35. package/src/schematics/ng-add/index.js +0 -8
  36. package/src/schematics/ng-add/index.js.map +0 -1
  37. package/src/schematics/ng-add/schema.json +0 -7
@@ -1,21 +1,20 @@
1
- import { Directive, HostListener } from '@angular/core';
1
+ import { Directive, HostListener, } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- class StopPropagationDirective {
3
+ export class StopPropagationDirective {
4
4
  onClick($event) {
5
5
  $event.stopPropagation();
6
6
  }
7
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: StopPropagationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
8
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: StopPropagationDirective, isStandalone: true, selector: "[rxapStopPropagation]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 }); }
7
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: StopPropagationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
8
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: StopPropagationDirective, isStandalone: true, selector: "[rxapStopPropagation]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 }); }
9
9
  }
10
- export { StopPropagationDirective };
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: StopPropagationDirective, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: StopPropagationDirective, decorators: [{
12
11
  type: Directive,
13
12
  args: [{
14
13
  selector: '[rxapStopPropagation]',
15
- standalone: true
14
+ standalone: true,
16
15
  }]
17
16
  }], propDecorators: { onClick: [{
18
17
  type: HostListener,
19
18
  args: ['click', ['$event']]
20
19
  }] } });
21
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcC1wcm9wYWdhdGlvbi5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2RpcmVjdGl2ZXMvc3JjL2xpYi9zdG9wLXByb3BhZ2F0aW9uLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULFlBQVksRUFDYixNQUFNLGVBQWUsQ0FBQzs7QUFFdkIsTUFJYSx3QkFBd0I7SUFHNUIsT0FBTyxDQUFDLE1BQWE7UUFDMUIsTUFBTSxDQUFDLGVBQWUsRUFBRSxDQUFDO0lBQzNCLENBQUM7OEdBTFUsd0JBQXdCO2tHQUF4Qix3QkFBd0I7O1NBQXhCLHdCQUF3QjsyRkFBeEIsd0JBQXdCO2tCQUpwQyxTQUFTO21CQUFDO29CQUNULFFBQVEsRUFBSSx1QkFBdUI7b0JBQ25DLFVBQVUsRUFBRSxJQUFJO2lCQUNqQjs4QkFJUSxPQUFPO3NCQURiLFlBQVk7dUJBQUMsT0FBTyxFQUFFLENBQUUsUUFBUSxDQUFFIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtcbiAgRGlyZWN0aXZlLFxuICBIb3N0TGlzdGVuZXJcbn0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBEaXJlY3RpdmUoe1xuICBzZWxlY3RvcjogICAnW3J4YXBTdG9wUHJvcGFnYXRpb25dJyxcbiAgc3RhbmRhbG9uZTogdHJ1ZVxufSlcbmV4cG9ydCBjbGFzcyBTdG9wUHJvcGFnYXRpb25EaXJlY3RpdmUge1xuXG4gIEBIb3N0TGlzdGVuZXIoJ2NsaWNrJywgWyAnJGV2ZW50JyBdKVxuICBwdWJsaWMgb25DbGljaygkZXZlbnQ6IEV2ZW50KTogdm9pZCB7XG4gICAgJGV2ZW50LnN0b3BQcm9wYWdhdGlvbigpO1xuICB9XG5cbn1cblxuXG4iXX0=
20
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcC1wcm9wYWdhdGlvbi5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9hbmd1bGFyL2RpcmVjdGl2ZXMvc3JjL2xpYi9zdG9wLXByb3BhZ2F0aW9uLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULFlBQVksR0FDYixNQUFNLGVBQWUsQ0FBQzs7QUFNdkIsTUFBTSxPQUFPLHdCQUF3QjtJQUc1QixPQUFPLENBQUMsTUFBYTtRQUMxQixNQUFNLENBQUMsZUFBZSxFQUFFLENBQUM7SUFDM0IsQ0FBQzs4R0FMVSx3QkFBd0I7a0dBQXhCLHdCQUF3Qjs7MkZBQXhCLHdCQUF3QjtrQkFKcEMsU0FBUzttQkFBQztvQkFDVCxRQUFRLEVBQUUsdUJBQXVCO29CQUNqQyxVQUFVLEVBQUUsSUFBSTtpQkFDakI7OEJBSVEsT0FBTztzQkFEYixZQUFZO3VCQUFDLE9BQU8sRUFBRSxDQUFFLFFBQVEsQ0FBRSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7XG4gIERpcmVjdGl2ZSxcbiAgSG9zdExpc3RlbmVyLFxufSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQERpcmVjdGl2ZSh7XG4gIHNlbGVjdG9yOiAnW3J4YXBTdG9wUHJvcGFnYXRpb25dJyxcbiAgc3RhbmRhbG9uZTogdHJ1ZSxcbn0pXG5leHBvcnQgY2xhc3MgU3RvcFByb3BhZ2F0aW9uRGlyZWN0aXZlIHtcblxuICBASG9zdExpc3RlbmVyKCdjbGljaycsIFsgJyRldmVudCcgXSlcbiAgcHVibGljIG9uQ2xpY2soJGV2ZW50OiBFdmVudCk6IHZvaWQge1xuICAgICRldmVudC5zdG9wUHJvcGFnYXRpb24oKTtcbiAgfVxuXG59XG5cblxuIl19
@@ -2,4 +2,4 @@
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
4
  export * from './index';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnhhcC1kaXJlY3RpdmVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vbGlicy9kaXJlY3RpdmVzL3NyYy9yeGFwLWRpcmVjdGl2ZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9pbmRleCc7XG4iXX0=
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnhhcC1kaXJlY3RpdmVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvYW5ndWxhci9kaXJlY3RpdmVzL3NyYy9yeGFwLWRpcmVjdGl2ZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9pbmRleCc7XG4iXX0=
@@ -4,7 +4,7 @@ import * as i1 from '@rxap/services';
4
4
  import { ImageLoaderService, AvatarImageService } from '@rxap/services';
5
5
  import { __decorate, __metadata } from 'tslib';
6
6
  import { Required, DebounceCall, coerceBoolean } from '@rxap/utilities';
7
- import { ToggleSubject } from '@rxap/utilities/rxjs';
7
+ import { ToggleSubject } from '@rxap/rxjs';
8
8
  import { Subscription, fromEvent } from 'rxjs';
9
9
  import { tap } from 'rxjs/operators';
10
10
 
@@ -57,18 +57,18 @@ class BackgroundImageDirective {
57
57
  for (const propertyKey of Object.keys(changes)) {
58
58
  switch (propertyKey) {
59
59
  case 'imageUrl':
60
- if (changes.imageUrl.currentValue) {
61
- this.imageUrlChange(changes.imageUrl.currentValue);
60
+ if (changes['imageUrl'].currentValue) {
61
+ this.imageUrlChange(changes['imageUrl'].currentValue);
62
62
  }
63
63
  break;
64
64
  case 'size':
65
- this.sizeChange(changes.size.currentValue);
65
+ this.sizeChange(changes['size'].currentValue);
66
66
  break;
67
67
  case 'repeat':
68
- this.repeatChange(changes.repeat.currentValue);
68
+ this.repeatChange(changes['repeat'].currentValue);
69
69
  break;
70
70
  case 'position':
71
- this.positionChange(changes.position.currentValue);
71
+ this.positionChange(changes['position'].currentValue);
72
72
  break;
73
73
  }
74
74
  }
@@ -96,14 +96,14 @@ class BackgroundImageDirective {
96
96
  }
97
97
  }
98
98
  }
99
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: BackgroundImageDirective, deps: [{ token: ElementRef }, { token: Renderer2 }, { token: ImageLoaderService }], target: i0.ɵɵFactoryTarget.Directive }); }
100
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: BackgroundImageDirective, isStandalone: true, selector: "[rxapBackgroundImage]", inputs: { imageUrl: ["rxapBackgroundImage", "imageUrl"], placeholderImageUrl: "placeholderImageUrl", size: "size", repeat: "repeat", position: "position" }, usesOnChanges: true, ngImport: i0 }); }
99
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: BackgroundImageDirective, deps: [{ token: ElementRef }, { token: Renderer2 }, { token: ImageLoaderService }], target: i0.ɵɵFactoryTarget.Directive }); }
100
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: BackgroundImageDirective, isStandalone: true, selector: "[rxapBackgroundImage]", inputs: { imageUrl: ["rxapBackgroundImage", "imageUrl"], placeholderImageUrl: "placeholderImageUrl", size: "size", repeat: "repeat", position: "position" }, usesOnChanges: true, ngImport: i0 }); }
101
101
  }
102
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: BackgroundImageDirective, decorators: [{
102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: BackgroundImageDirective, decorators: [{
103
103
  type: Directive,
104
104
  args: [{
105
105
  selector: '[rxapBackgroundImage]',
106
- standalone: true
106
+ standalone: true,
107
107
  }]
108
108
  }], ctorParameters: function () { return [{ type: i0.ElementRef, decorators: [{
109
109
  type: Inject,
@@ -131,14 +131,14 @@ class PreventDefaultDirective {
131
131
  onClick($event) {
132
132
  $event.preventDefault();
133
133
  }
134
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PreventDefaultDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
135
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: PreventDefaultDirective, isStandalone: true, selector: "[rxapPreventDefault]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 }); }
134
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: PreventDefaultDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
135
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: PreventDefaultDirective, isStandalone: true, selector: "[rxapPreventDefault]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 }); }
136
136
  }
137
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PreventDefaultDirective, decorators: [{
137
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: PreventDefaultDirective, decorators: [{
138
138
  type: Directive,
139
139
  args: [{
140
140
  selector: '[rxapPreventDefault]',
141
- standalone: true
141
+ standalone: true,
142
142
  }]
143
143
  }], propDecorators: { onClick: [{
144
144
  type: HostListener,
@@ -149,14 +149,14 @@ class StopImmediatePropagationDirective {
149
149
  onClick($event) {
150
150
  $event.stopImmediatePropagation();
151
151
  }
152
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: StopImmediatePropagationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
153
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: StopImmediatePropagationDirective, isStandalone: true, selector: "[rxapStopImmediatePropagation]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 }); }
152
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: StopImmediatePropagationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
153
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: StopImmediatePropagationDirective, isStandalone: true, selector: "[rxapStopImmediatePropagation]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 }); }
154
154
  }
155
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: StopImmediatePropagationDirective, decorators: [{
155
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: StopImmediatePropagationDirective, decorators: [{
156
156
  type: Directive,
157
157
  args: [{
158
158
  selector: '[rxapStopImmediatePropagation]',
159
- standalone: true
159
+ standalone: true,
160
160
  }]
161
161
  }], propDecorators: { onClick: [{
162
162
  type: HostListener,
@@ -167,14 +167,14 @@ class StopPropagationDirective {
167
167
  onClick($event) {
168
168
  $event.stopPropagation();
169
169
  }
170
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: StopPropagationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
171
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: StopPropagationDirective, isStandalone: true, selector: "[rxapStopPropagation]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 }); }
170
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: StopPropagationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
171
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: StopPropagationDirective, isStandalone: true, selector: "[rxapStopPropagation]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 }); }
172
172
  }
173
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: StopPropagationDirective, decorators: [{
173
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: StopPropagationDirective, decorators: [{
174
174
  type: Directive,
175
175
  args: [{
176
176
  selector: '[rxapStopPropagation]',
177
- standalone: true
177
+ standalone: true,
178
178
  }]
179
179
  }], propDecorators: { onClick: [{
180
180
  type: HostListener,
@@ -199,10 +199,10 @@ class ShareService {
199
199
  isShareSupported() {
200
200
  return !!navigator.share;
201
201
  }
202
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ShareService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
203
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ShareService, providedIn: 'root' }); }
202
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ShareService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
203
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ShareService, providedIn: 'root' }); }
204
204
  }
205
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ShareService, decorators: [{
205
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ShareService, decorators: [{
206
206
  type: Injectable,
207
207
  args: [{ providedIn: 'root' }]
208
208
  }] });
@@ -211,22 +211,27 @@ class ShareButtonDirective {
211
211
  this.shareService = shareService;
212
212
  }
213
213
  share() {
214
- this.shareService.share({ url: this.url, text: this.text, files: this.files, title: this.title })
214
+ this.shareService.share({
215
+ url: this.url,
216
+ text: this.text,
217
+ files: this.files,
218
+ title: this.title,
219
+ })
215
220
  .then(() => console.log('share successfully'))
216
221
  .catch(err => console.error('share failed', err.message));
217
222
  }
218
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ShareButtonDirective, deps: [{ token: ShareService }], target: i0.ɵɵFactoryTarget.Directive }); }
219
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ShareButtonDirective, isStandalone: true, selector: "[rxapShareButton]", inputs: { url: "url", text: "text", title: "title", files: "files" }, host: { listeners: { "click": "share()" } }, ngImport: i0 }); }
223
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ShareButtonDirective, deps: [{ token: ShareService }], target: i0.ɵɵFactoryTarget.Directive }); }
224
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: ShareButtonDirective, isStandalone: true, selector: "[rxapShareButton]", inputs: { url: "url", text: "text", title: "title", files: "files" }, host: { listeners: { "click": "share()" } }, ngImport: i0 }); }
220
225
  }
221
226
  __decorate([
222
227
  Required,
223
228
  __metadata("design:type", String)
224
229
  ], ShareButtonDirective.prototype, "title", void 0);
225
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ShareButtonDirective, decorators: [{
230
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ShareButtonDirective, decorators: [{
226
231
  type: Directive,
227
232
  args: [{
228
233
  selector: '[rxapShareButton]',
229
- standalone: true
234
+ standalone: true,
230
235
  }]
231
236
  }], ctorParameters: function () { return [{ type: ShareService }]; }, propDecorators: { url: [{
232
237
  type: Input
@@ -245,14 +250,14 @@ class FullWidthDirective {
245
250
  constructor() {
246
251
  this.width = '100%';
247
252
  }
248
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FullWidthDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
249
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FullWidthDirective, isStandalone: true, selector: "[rxapFullWidth]", host: { properties: { "style.width": "this.width" } }, ngImport: i0 }); }
253
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FullWidthDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
254
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: FullWidthDirective, isStandalone: true, selector: "[rxapFullWidth]", host: { properties: { "style.width": "this.width" } }, ngImport: i0 }); }
250
255
  }
251
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FullWidthDirective, decorators: [{
256
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FullWidthDirective, decorators: [{
252
257
  type: Directive,
253
258
  args: [{
254
259
  selector: '[rxapFullWidth]',
255
- standalone: true
260
+ standalone: true,
256
261
  }]
257
262
  }], propDecorators: { width: [{
258
263
  type: HostBinding,
@@ -260,11 +265,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
260
265
  }] } });
261
266
 
262
267
  class AvatarBackgroundImageDirective extends BackgroundImageDirective {
263
- set name(name) {
264
- if (!this.placeholderImageUrl) {
265
- this.placeholderImageUrl = this.avatarImage.get({ name });
266
- }
267
- }
268
268
  constructor(host, renderer, imageLoader, avatarImage) {
269
269
  super(host, renderer, imageLoader);
270
270
  this.avatarImage = avatarImage;
@@ -272,15 +272,20 @@ class AvatarBackgroundImageDirective extends BackgroundImageDirective {
272
272
  this.size = BackgroundSizeOptions.COVER;
273
273
  this.repeat = BackgroundRepeatOptions.NO_REPEAT;
274
274
  }
275
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: AvatarBackgroundImageDirective, deps: [{ token: ElementRef }, { token: Renderer2 }, { token: ImageLoaderService }, { token: AvatarImageService }], target: i0.ɵɵFactoryTarget.Directive }); }
276
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: AvatarBackgroundImageDirective, isStandalone: true, selector: "[rxapAvatarBackgroundImage]", inputs: { name: "name", imageUrl: ["rxapAvatarBackgroundImage", "imageUrl"] }, usesInheritance: true, ngImport: i0 }); }
275
+ set name(name) {
276
+ if (!this.placeholderImageUrl) {
277
+ this.placeholderImageUrl = this.avatarImage.get({ name });
278
+ }
279
+ }
280
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AvatarBackgroundImageDirective, deps: [{ token: ElementRef }, { token: Renderer2 }, { token: ImageLoaderService }, { token: AvatarImageService }], target: i0.ɵɵFactoryTarget.Directive }); }
281
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: AvatarBackgroundImageDirective, isStandalone: true, selector: "[rxapAvatarBackgroundImage]", inputs: { imageUrl: ["rxapAvatarBackgroundImage", "imageUrl"], name: "name" }, usesInheritance: true, ngImport: i0 }); }
277
282
  }
278
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: AvatarBackgroundImageDirective, decorators: [{
283
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AvatarBackgroundImageDirective, decorators: [{
279
284
  type: Directive,
280
285
  args: [{
281
286
  // tslint:disable-next-line:directive-selector
282
287
  selector: '[rxapAvatarBackgroundImage]',
283
- standalone: true
288
+ standalone: true,
284
289
  }]
285
290
  }], ctorParameters: function () { return [{ type: i0.ElementRef, decorators: [{
286
291
  type: Inject,
@@ -294,11 +299,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
294
299
  }] }, { type: i1.AvatarImageService, decorators: [{
295
300
  type: Inject,
296
301
  args: [AvatarImageService]
297
- }] }]; }, propDecorators: { name: [{
298
- type: Input
299
- }], imageUrl: [{
302
+ }] }]; }, propDecorators: { imageUrl: [{
300
303
  type: Input,
301
304
  args: ['rxapAvatarBackgroundImage']
305
+ }], name: [{
306
+ type: Input
302
307
  }] } });
303
308
 
304
309
  class ContenteditableDirective {
@@ -316,7 +321,7 @@ class ContenteditableDirective {
316
321
  if (value && value.length >= 2) {
317
322
  const event = {
318
323
  value,
319
- parameters: this.parameters
324
+ parameters: this.parameters,
320
325
  };
321
326
  this.change.emit(event);
322
327
  const result = await this.method?.call(event);
@@ -328,8 +333,8 @@ class ContenteditableDirective {
328
333
  }
329
334
  }
330
335
  }
331
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ContenteditableDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
332
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ContenteditableDirective, isStandalone: true, selector: "[rxapContenteditable]", inputs: { method: ["rxapContenteditable", "method"], parameters: "parameters", initial: "initial" }, outputs: { change: "rxapContenteditable" }, host: { listeners: { "click": "onClick($event)", "input": "onInput($event)" }, properties: { "attr.contenteditable": "this.contenteditable", "attr.spellcheck": "this.spellcheck" } }, ngImport: i0 }); }
336
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ContenteditableDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
337
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: ContenteditableDirective, isStandalone: true, selector: "[rxapContenteditable]", inputs: { method: ["rxapContenteditable", "method"], parameters: "parameters", initial: "initial" }, outputs: { change: "rxapContenteditable" }, host: { listeners: { "click": "onClick($event)", "input": "onInput($event)" }, properties: { "attr.contenteditable": "this.contenteditable", "attr.spellcheck": "this.spellcheck" } }, ngImport: i0 }); }
333
338
  }
334
339
  __decorate([
335
340
  DebounceCall(1000),
@@ -337,11 +342,11 @@ __decorate([
337
342
  __metadata("design:paramtypes", [Object]),
338
343
  __metadata("design:returntype", Promise)
339
344
  ], ContenteditableDirective.prototype, "onInput", null);
340
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ContenteditableDirective, decorators: [{
345
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ContenteditableDirective, decorators: [{
341
346
  type: Directive,
342
347
  args: [{
343
348
  selector: '[rxapContenteditable]',
344
- standalone: true
349
+ standalone: true,
345
350
  }]
346
351
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { contenteditable: [{
347
352
  type: HostBinding,
@@ -382,10 +387,10 @@ class ConfirmClick {
382
387
  onConfirm() {
383
388
  this.execute();
384
389
  }
385
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ConfirmClick, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
386
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ConfirmClick }); }
390
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmClick, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
391
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmClick }); }
387
392
  }
388
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ConfirmClick, decorators: [{
393
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmClick, decorators: [{
389
394
  type: Injectable
390
395
  }], propDecorators: { hasConfirmDirective: [{
391
396
  type: Input,
@@ -399,11 +404,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
399
404
  }] } });
400
405
 
401
406
  class MethodDirective {
402
- set hasConfirmDirective(value) {
403
- this._hasConfirmDirective = coerceBoolean(value);
404
- }
405
407
  constructor() {
406
- this._hasConfirmDirective = false;
407
408
  this.immediately = false;
408
409
  this.executed$ = new EventEmitter();
409
410
  this.failure$ = new EventEmitter();
@@ -412,6 +413,10 @@ class MethodDirective {
412
413
  * true - a remote method call is in progress
413
414
  */
414
415
  this.executing$ = new ToggleSubject();
416
+ this._hasConfirmDirective = false;
417
+ }
418
+ set hasConfirmDirective(value) {
419
+ this._hasConfirmDirective = coerceBoolean(value);
415
420
  }
416
421
  ngOnInit() {
417
422
  if (this.immediately) {
@@ -464,20 +469,17 @@ class MethodDirective {
464
469
  successful(result) {
465
470
  this.successful$.emit(result);
466
471
  }
467
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MethodDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
468
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: MethodDirective, isStandalone: true, selector: "[rxapMethod]", inputs: { hasConfirmDirective: ["rxapConfirm", "hasConfirmDirective"], method: ["rxapMethod", "method"], parameters: "parameters", immediately: "immediately" }, outputs: { executed$: "executed", failure$: "failure", successful$: "successful" }, host: { listeners: { "confirmed": "onConfirmed()", "click": "onClick()" } }, exportAs: ["rxapMethod"], ngImport: i0 }); }
472
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MethodDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
473
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: MethodDirective, isStandalone: true, selector: "[rxapMethod]", inputs: { method: ["rxapMethod", "method"], parameters: "parameters", immediately: "immediately", hasConfirmDirective: ["rxapConfirm", "hasConfirmDirective"] }, outputs: { executed$: "executed", failure$: "failure", successful$: "successful" }, host: { listeners: { "confirmed": "onConfirmed()", "click": "onClick()" } }, exportAs: ["rxapMethod"], ngImport: i0 }); }
469
474
  }
470
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MethodDirective, decorators: [{
475
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MethodDirective, decorators: [{
471
476
  type: Directive,
472
477
  args: [{
473
478
  selector: '[rxapMethod]',
474
479
  exportAs: 'rxapMethod',
475
- standalone: true
480
+ standalone: true,
476
481
  }]
477
- }], ctorParameters: function () { return []; }, propDecorators: { hasConfirmDirective: [{
478
- type: Input,
479
- args: ['rxapConfirm']
480
- }], method: [{
482
+ }], propDecorators: { method: [{
481
483
  type: Input,
482
484
  args: ['rxapMethod']
483
485
  }], parameters: [{
@@ -493,6 +495,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
493
495
  }], successful$: [{
494
496
  type: Output,
495
497
  args: ['successful']
498
+ }], hasConfirmDirective: [{
499
+ type: Input,
500
+ args: ['rxapConfirm']
496
501
  }], onConfirmed: [{
497
502
  type: HostListener,
498
503
  args: ['confirmed']
@@ -537,10 +542,11 @@ class MovableDividerDirective {
537
542
  console.log({
538
543
  clientWidth: this.containerElement.clientWidth,
539
544
  clientX: $event.clientX,
540
- clientLeft: this.containerElement.getBoundingClientRect().left
545
+ clientLeft: this.containerElement.getBoundingClientRect().left,
541
546
  });
542
547
  }
543
- this._fixedElementWidth = this.containerElement.clientWidth - $event.clientX + this.containerElement.getBoundingClientRect().left;
548
+ this._fixedElementWidth =
549
+ this.containerElement.clientWidth - $event.clientX + this.containerElement.getBoundingClientRect().left;
544
550
  }
545
551
  else {
546
552
  throw new Error(`The origin '${this.origin}' is not supported.`);
@@ -556,8 +562,8 @@ class MovableDividerDirective {
556
562
  onMousedown() {
557
563
  this._moveDivider = true;
558
564
  }
559
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MovableDividerDirective, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
560
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: MovableDividerDirective, isStandalone: true, selector: "[rxapMovableDivider]", inputs: { containerElement: "containerElement", fixedElement: "fixedElement", origin: "origin" }, host: { listeners: { "mousedown": "onMousedown()" }, properties: { "style.cursor": "this.cursor" } }, ngImport: i0 }); }
565
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MovableDividerDirective, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
566
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: MovableDividerDirective, isStandalone: true, selector: "[rxapMovableDivider]", inputs: { containerElement: "containerElement", fixedElement: "fixedElement", origin: "origin" }, host: { listeners: { "mousedown": "onMousedown()" }, properties: { "style.cursor": "this.cursor" } }, ngImport: i0 }); }
561
567
  }
562
568
  __decorate([
563
569
  Required,
@@ -567,11 +573,11 @@ __decorate([
567
573
  Required,
568
574
  __metadata("design:type", HTMLDivElement)
569
575
  ], MovableDividerDirective.prototype, "fixedElement", void 0);
570
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MovableDividerDirective, decorators: [{
576
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MovableDividerDirective, decorators: [{
571
577
  type: Directive,
572
578
  args: [{
573
579
  selector: '[rxapMovableDivider]',
574
- standalone: true
580
+ standalone: true,
575
581
  }]
576
582
  }], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { containerElement: [{
577
583
  type: Input
@@ -589,6 +595,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
589
595
 
590
596
  // TODO : mv to rxap package
591
597
  class IfTruthyDirective {
598
+ constructor(templateRef, viewContainerRef, cdr) {
599
+ this.templateRef = templateRef;
600
+ this.viewContainerRef = viewContainerRef;
601
+ this.cdr = cdr;
602
+ }
592
603
  /**
593
604
  * Asserts the correct type of the context for the template that `NgForOf` will render.
594
605
  *
@@ -598,11 +609,6 @@ class IfTruthyDirective {
598
609
  static ngTemplateContextGuard(dir, ctx) {
599
610
  return true;
600
611
  }
601
- constructor(templateRef, viewContainerRef, cdr) {
602
- this.templateRef = templateRef;
603
- this.viewContainerRef = viewContainerRef;
604
- this.cdr = cdr;
605
- }
606
612
  ngOnChanges(changes) {
607
613
  if (this.method && this.parameters) {
608
614
  this.execute();
@@ -626,14 +632,14 @@ class IfTruthyDirective {
626
632
  }
627
633
  return true;
628
634
  }
629
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: IfTruthyDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
630
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: IfTruthyDirective, isStandalone: true, selector: "[rxapIfTruthy]", inputs: { method: ["rxapIfTruthy", "method"], parameters: ["rxapIfTruthyParameters", "parameters"], trackBy: ["rxapIfTruthyTrackBy", "trackBy"] }, usesOnChanges: true, ngImport: i0 }); }
635
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: IfTruthyDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
636
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: IfTruthyDirective, isStandalone: true, selector: "[rxapIfTruthy]", inputs: { method: ["rxapIfTruthy", "method"], parameters: ["rxapIfTruthyParameters", "parameters"], trackBy: ["rxapIfTruthyTrackBy", "trackBy"] }, usesOnChanges: true, ngImport: i0 }); }
631
637
  }
632
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: IfTruthyDirective, decorators: [{
638
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: IfTruthyDirective, decorators: [{
633
639
  type: Directive,
634
640
  args: [{
635
641
  selector: '[rxapIfTruthy]',
636
- standalone: true
642
+ standalone: true,
637
643
  }]
638
644
  }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { method: [{
639
645
  type: Input,
@@ -647,9 +653,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
647
653
  }] } });
648
654
 
649
655
  class MethodTemplateDirective {
650
- static ngTemplateContextGuard(dir, ctx) {
651
- return true;
652
- }
653
656
  constructor(template, viewContainerRef, cdr) {
654
657
  this.template = template;
655
658
  this.viewContainerRef = viewContainerRef;
@@ -665,8 +668,11 @@ class MethodTemplateDirective {
665
668
  this.executing$ = new ToggleSubject();
666
669
  this.embedded = new EventEmitter();
667
670
  }
671
+ static ngTemplateContextGuard(dir, ctx) {
672
+ return true;
673
+ }
668
674
  ngOnChanges(changes) {
669
- const parametersChanges = changes.parameters;
675
+ const parametersChanges = changes['parameters'];
670
676
  if (parametersChanges) {
671
677
  this.execute(parametersChanges.currentValue);
672
678
  }
@@ -705,12 +711,6 @@ class MethodTemplateDirective {
705
711
  updateParameters(parameters) {
706
712
  this.parameters = { ...(this.parameters ?? {}), ...parameters };
707
713
  }
708
- renderLoadingTemplate() {
709
- if (this.loadingTemplate) {
710
- this.viewContainerRef.clear();
711
- this.viewContainerRef.createEmbeddedView(this.loadingTemplate);
712
- }
713
- }
714
714
  executed(result) {
715
715
  this.executed$.emit(result);
716
716
  }
@@ -724,7 +724,10 @@ class MethodTemplateDirective {
724
724
  if (this.errorTemplate) {
725
725
  this.viewContainerRef.clear();
726
726
  if (this.errorTemplate) {
727
- this.viewContainerRef.createEmbeddedView(this.errorTemplate, { $implicit: error, message: error.message });
727
+ this.viewContainerRef.createEmbeddedView(this.errorTemplate, {
728
+ $implicit: error,
729
+ message: error.message,
730
+ });
728
731
  }
729
732
  }
730
733
  }
@@ -741,15 +744,21 @@ class MethodTemplateDirective {
741
744
  this.embedded.emit();
742
745
  this.cdr.detectChanges();
743
746
  }
744
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MethodTemplateDirective, deps: [{ token: TemplateRef }, { token: ViewContainerRef }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
745
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: MethodTemplateDirective, isStandalone: true, selector: "[rxapMethod]", inputs: { method: ["rxapMethodCall", "method"], parameters: ["rxapMethodParameters", "parameters"], errorTemplate: ["rxapMethodError", "errorTemplate"], loadingTemplate: ["rxapMethodLoading", "loadingTemplate"], withoutParameters: ["rxapMethodWithoutParameters", "withoutParameters"], immediately: "immediately" }, outputs: { executed$: "executed", failure$: "failure", successful$: "successful", executing$: "executing", embedded: "embedded" }, host: { listeners: { "confirmed": "onConfirmed()" } }, exportAs: ["rxapMethod"], usesOnChanges: true, ngImport: i0 }); }
747
+ renderLoadingTemplate() {
748
+ if (this.loadingTemplate) {
749
+ this.viewContainerRef.clear();
750
+ this.viewContainerRef.createEmbeddedView(this.loadingTemplate);
751
+ }
752
+ }
753
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MethodTemplateDirective, deps: [{ token: TemplateRef }, { token: ViewContainerRef }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
754
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: MethodTemplateDirective, isStandalone: true, selector: "[rxapMethod]", inputs: { method: ["rxapMethodCall", "method"], parameters: ["rxapMethodParameters", "parameters"], errorTemplate: ["rxapMethodError", "errorTemplate"], loadingTemplate: ["rxapMethodLoading", "loadingTemplate"], withoutParameters: ["rxapMethodWithoutParameters", "withoutParameters"], immediately: "immediately" }, outputs: { executed$: "executed", failure$: "failure", successful$: "successful", executing$: "executing", embedded: "embedded" }, host: { listeners: { "confirmed": "onConfirmed()" } }, exportAs: ["rxapMethod"], usesOnChanges: true, ngImport: i0 }); }
746
755
  }
747
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MethodTemplateDirective, decorators: [{
756
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MethodTemplateDirective, decorators: [{
748
757
  type: Directive,
749
758
  args: [{
750
759
  selector: '[rxapMethod]',
751
760
  exportAs: 'rxapMethod',
752
- standalone: true
761
+ standalone: true,
753
762
  }]
754
763
  }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
755
764
  type: Inject,