@rxap/directives 16.0.0-dev.0 → 16.0.0-dev.10

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 (45) hide show
  1. package/CHANGELOG.md +309 -0
  2. package/LICENSE +621 -21
  3. package/LICENSE.md +621 -0
  4. package/README.md +8 -22
  5. package/esm2022/index.mjs +1 -1
  6. package/esm2022/lib/avatar-background-image.directive.mjs +16 -30
  7. package/esm2022/lib/background-image.directive.mjs +12 -25
  8. package/esm2022/lib/confirm-click.mjs +6 -7
  9. package/esm2022/lib/contenteditable.directive.mjs +9 -22
  10. package/esm2022/lib/full-width.directive.mjs +7 -20
  11. package/esm2022/lib/if-truthy.directive.mjs +13 -26
  12. package/esm2022/lib/method-template.directive.mjs +23 -33
  13. package/esm2022/lib/method.directive.mjs +17 -30
  14. package/esm2022/lib/movable-divider.directive.mjs +16 -36
  15. package/esm2022/lib/prevent-default.directive.mjs +8 -21
  16. package/esm2022/lib/share-button.directive.mjs +20 -34
  17. package/esm2022/lib/stop-immediate-propagation.directive.mjs +8 -21
  18. package/esm2022/lib/stop-propagation.directive.mjs +8 -21
  19. package/esm2022/rxap-directives.mjs +1 -1
  20. package/fesm2022/rxap-directives.mjs +123 -256
  21. package/fesm2022/rxap-directives.mjs.map +1 -1
  22. package/lib/avatar-background-image.directive.d.ts +3 -8
  23. package/lib/background-image.directive.d.ts +2 -7
  24. package/lib/confirm-click.d.ts +1 -1
  25. package/lib/contenteditable.directive.d.ts +3 -8
  26. package/lib/full-width.directive.d.ts +1 -6
  27. package/lib/if-truthy.directive.d.ts +7 -12
  28. package/lib/method-template.directive.d.ts +6 -10
  29. package/lib/method.directive.d.ts +5 -10
  30. package/lib/movable-divider.directive.d.ts +1 -6
  31. package/lib/prevent-default.directive.d.ts +1 -6
  32. package/lib/share-button.directive.d.ts +1 -6
  33. package/lib/stop-immediate-propagation.directive.d.ts +1 -6
  34. package/lib/stop-propagation.directive.d.ts +1 -6
  35. package/package.json +55 -41
  36. package/theme.css +1 -0
  37. package/collection.json +0 -10
  38. package/migration.json +0 -10
  39. package/src/migrations/v11-2-0/index.d.ts +0 -2
  40. package/src/migrations/v11-2-0/index.js +0 -29
  41. package/src/migrations/v11-2-0/index.js.map +0 -1
  42. package/src/schematics/ng-add/index.d.ts +0 -2
  43. package/src/schematics/ng-add/index.js +0 -8
  44. package/src/schematics/ng-add/index.js.map +0 -1
  45. package/src/schematics/ng-add/schema.json +0 -7
@@ -1,10 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
- import { isDevMode, ElementRef, Renderer2, Directive, Inject, Input, NgModule, HostListener, Injectable, HostBinding, EventEmitter, Output, TemplateRef, ViewContainerRef, ChangeDetectorRef } from '@angular/core';
2
+ import { isDevMode, ElementRef, Renderer2, Directive, Inject, Input, HostListener, Injectable, HostBinding, EventEmitter, Output, TemplateRef, ViewContainerRef, ChangeDetectorRef } from '@angular/core';
3
3
  import * as i1 from '@rxap/services';
4
4
  import { ImageLoaderService, AvatarImageService } from '@rxap/services';
5
5
  import { __decorate, __metadata } from 'tslib';
6
- import { Required, DebounceCall, coerceBoolean } from '@rxap/utilities';
7
- import { ToggleSubject } from '@rxap/utilities/rxjs';
6
+ import { DebounceCall, coerceBoolean } from '@rxap/utilities';
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,13 +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, 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
107
  }]
107
108
  }], ctorParameters: function () { return [{ type: i0.ElementRef, decorators: [{
108
109
  type: Inject,
@@ -125,105 +126,60 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
125
126
  }], position: [{
126
127
  type: Input
127
128
  }] } });
128
- class BackgroundImageDirectiveModule {
129
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: BackgroundImageDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
130
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: BackgroundImageDirectiveModule, declarations: [BackgroundImageDirective], exports: [BackgroundImageDirective] }); }
131
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: BackgroundImageDirectiveModule }); }
132
- }
133
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: BackgroundImageDirectiveModule, decorators: [{
134
- type: NgModule,
135
- args: [{
136
- declarations: [BackgroundImageDirective],
137
- exports: [BackgroundImageDirective],
138
- }]
139
- }] });
140
129
 
141
130
  class PreventDefaultDirective {
142
131
  onClick($event) {
143
132
  $event.preventDefault();
144
133
  }
145
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PreventDefaultDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
146
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: PreventDefaultDirective, 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 }); }
147
136
  }
148
- 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: [{
149
138
  type: Directive,
150
139
  args: [{
151
- selector: '[rxapPreventDefault]'
140
+ selector: '[rxapPreventDefault]',
141
+ standalone: true,
152
142
  }]
153
143
  }], propDecorators: { onClick: [{
154
144
  type: HostListener,
155
145
  args: ['click', ['$event']]
156
146
  }] } });
157
- class PreventDefaultDirectiveModule {
158
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PreventDefaultDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
159
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: PreventDefaultDirectiveModule, declarations: [PreventDefaultDirective], exports: [PreventDefaultDirective] }); }
160
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PreventDefaultDirectiveModule }); }
161
- }
162
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PreventDefaultDirectiveModule, decorators: [{
163
- type: NgModule,
164
- args: [{
165
- exports: [PreventDefaultDirective],
166
- declarations: [PreventDefaultDirective]
167
- }]
168
- }] });
169
147
 
170
148
  class StopImmediatePropagationDirective {
171
149
  onClick($event) {
172
150
  $event.stopImmediatePropagation();
173
151
  }
174
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: StopImmediatePropagationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
175
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: StopImmediatePropagationDirective, 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 }); }
176
154
  }
177
- 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: [{
178
156
  type: Directive,
179
157
  args: [{
180
- selector: '[rxapStopImmediatePropagation]'
158
+ selector: '[rxapStopImmediatePropagation]',
159
+ standalone: true,
181
160
  }]
182
161
  }], propDecorators: { onClick: [{
183
162
  type: HostListener,
184
163
  args: ['click', ['$event']]
185
164
  }] } });
186
- class StopImmediatePropagationDirectiveModule {
187
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: StopImmediatePropagationDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
188
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: StopImmediatePropagationDirectiveModule, declarations: [StopImmediatePropagationDirective], exports: [StopImmediatePropagationDirective] }); }
189
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: StopImmediatePropagationDirectiveModule }); }
190
- }
191
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: StopImmediatePropagationDirectiveModule, decorators: [{
192
- type: NgModule,
193
- args: [{
194
- exports: [StopImmediatePropagationDirective],
195
- declarations: [StopImmediatePropagationDirective]
196
- }]
197
- }] });
198
165
 
199
166
  class StopPropagationDirective {
200
167
  onClick($event) {
201
168
  $event.stopPropagation();
202
169
  }
203
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: StopPropagationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
204
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: StopPropagationDirective, 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 }); }
205
172
  }
206
- 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: [{
207
174
  type: Directive,
208
175
  args: [{
209
- selector: '[rxapStopPropagation]'
176
+ selector: '[rxapStopPropagation]',
177
+ standalone: true,
210
178
  }]
211
179
  }], propDecorators: { onClick: [{
212
180
  type: HostListener,
213
181
  args: ['click', ['$event']]
214
182
  }] } });
215
- class StopPropagationDirectiveModule {
216
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: StopPropagationDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
217
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: StopPropagationDirectiveModule, declarations: [StopPropagationDirective], exports: [StopPropagationDirective] }); }
218
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: StopPropagationDirectiveModule }); }
219
- }
220
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: StopPropagationDirectiveModule, decorators: [{
221
- type: NgModule,
222
- args: [{
223
- exports: [StopPropagationDirective],
224
- declarations: [StopPropagationDirective]
225
- }]
226
- }] });
227
183
 
228
184
  class ShareService {
229
185
  async share(data) {
@@ -243,10 +199,10 @@ class ShareService {
243
199
  isShareSupported() {
244
200
  return !!navigator.share;
245
201
  }
246
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ShareService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
247
- 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' }); }
248
204
  }
249
- 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: [{
250
206
  type: Injectable,
251
207
  args: [{ providedIn: 'root' }]
252
208
  }] });
@@ -255,82 +211,57 @@ class ShareButtonDirective {
255
211
  this.shareService = shareService;
256
212
  }
257
213
  share() {
258
- 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
+ })
259
220
  .then(() => console.log('share successfully'))
260
221
  .catch(err => console.error('share failed', err.message));
261
222
  }
262
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ShareButtonDirective, deps: [{ token: ShareService }], target: i0.ɵɵFactoryTarget.Directive }); }
263
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ShareButtonDirective, 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 }); }
264
225
  }
265
- __decorate([
266
- Required,
267
- __metadata("design:type", String)
268
- ], ShareButtonDirective.prototype, "title", void 0);
269
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ShareButtonDirective, decorators: [{
226
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ShareButtonDirective, decorators: [{
270
227
  type: Directive,
271
228
  args: [{
272
- selector: '[rxapShareButton]'
229
+ selector: '[rxapShareButton]',
230
+ standalone: true,
273
231
  }]
274
232
  }], ctorParameters: function () { return [{ type: ShareService }]; }, propDecorators: { url: [{
275
233
  type: Input
276
234
  }], text: [{
277
235
  type: Input
278
236
  }], title: [{
279
- type: Input
237
+ type: Input,
238
+ args: [{ required: true }]
280
239
  }], files: [{
281
240
  type: Input
282
241
  }], share: [{
283
242
  type: HostListener,
284
243
  args: ['click']
285
244
  }] } });
286
- class ShareButtonDirectiveModule {
287
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ShareButtonDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
288
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: ShareButtonDirectiveModule, declarations: [ShareButtonDirective], exports: [ShareButtonDirective] }); }
289
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ShareButtonDirectiveModule }); }
290
- }
291
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ShareButtonDirectiveModule, decorators: [{
292
- type: NgModule,
293
- args: [{
294
- exports: [ShareButtonDirective],
295
- declarations: [ShareButtonDirective]
296
- }]
297
- }] });
298
245
 
299
246
  class FullWidthDirective {
300
247
  constructor() {
301
248
  this.width = '100%';
302
249
  }
303
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FullWidthDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
304
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FullWidthDirective, selector: "[rxapFullWidth]", host: { properties: { "style.width": "this.width" } }, ngImport: i0 }); }
250
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FullWidthDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
251
+ 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 }); }
305
252
  }
306
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FullWidthDirective, decorators: [{
253
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FullWidthDirective, decorators: [{
307
254
  type: Directive,
308
255
  args: [{
309
256
  selector: '[rxapFullWidth]',
257
+ standalone: true,
310
258
  }]
311
259
  }], propDecorators: { width: [{
312
260
  type: HostBinding,
313
261
  args: ['style.width']
314
262
  }] } });
315
- class FullWidthDirectiveModule {
316
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FullWidthDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
317
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: FullWidthDirectiveModule, declarations: [FullWidthDirective], exports: [FullWidthDirective] }); }
318
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FullWidthDirectiveModule }); }
319
- }
320
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FullWidthDirectiveModule, decorators: [{
321
- type: NgModule,
322
- args: [{
323
- declarations: [FullWidthDirective],
324
- exports: [FullWidthDirective]
325
- }]
326
- }] });
327
263
 
328
264
  class AvatarBackgroundImageDirective extends BackgroundImageDirective {
329
- set name(name) {
330
- if (!this.placeholderImageUrl) {
331
- this.placeholderImageUrl = this.avatarImage.get({ name });
332
- }
333
- }
334
265
  constructor(host, renderer, imageLoader, avatarImage) {
335
266
  super(host, renderer, imageLoader);
336
267
  this.avatarImage = avatarImage;
@@ -338,14 +269,19 @@ class AvatarBackgroundImageDirective extends BackgroundImageDirective {
338
269
  this.size = BackgroundSizeOptions.COVER;
339
270
  this.repeat = BackgroundRepeatOptions.NO_REPEAT;
340
271
  }
341
- 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 }); }
342
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: AvatarBackgroundImageDirective, selector: "[rxapAvatarBackgroundImage]", inputs: { name: "name", imageUrl: ["rxapAvatarBackgroundImage", "imageUrl"] }, usesInheritance: true, ngImport: i0 }); }
272
+ set name(name) {
273
+ if (!this.placeholderImageUrl) {
274
+ this.placeholderImageUrl = this.avatarImage.get({ name });
275
+ }
276
+ }
277
+ 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 }); }
278
+ 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 }); }
343
279
  }
344
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: AvatarBackgroundImageDirective, decorators: [{
280
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AvatarBackgroundImageDirective, decorators: [{
345
281
  type: Directive,
346
282
  args: [{
347
- // tslint:disable-next-line:directive-selector
348
283
  selector: '[rxapAvatarBackgroundImage]',
284
+ standalone: true,
349
285
  }]
350
286
  }], ctorParameters: function () { return [{ type: i0.ElementRef, decorators: [{
351
287
  type: Inject,
@@ -359,24 +295,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
359
295
  }] }, { type: i1.AvatarImageService, decorators: [{
360
296
  type: Inject,
361
297
  args: [AvatarImageService]
362
- }] }]; }, propDecorators: { name: [{
363
- type: Input
364
- }], imageUrl: [{
298
+ }] }]; }, propDecorators: { imageUrl: [{
365
299
  type: Input,
366
300
  args: ['rxapAvatarBackgroundImage']
301
+ }], name: [{
302
+ type: Input
367
303
  }] } });
368
- class AvatarBackgroundImageDirectiveModule {
369
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: AvatarBackgroundImageDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
370
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: AvatarBackgroundImageDirectiveModule, declarations: [AvatarBackgroundImageDirective], exports: [AvatarBackgroundImageDirective] }); }
371
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: AvatarBackgroundImageDirectiveModule }); }
372
- }
373
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: AvatarBackgroundImageDirectiveModule, decorators: [{
374
- type: NgModule,
375
- args: [{
376
- declarations: [AvatarBackgroundImageDirective],
377
- exports: [AvatarBackgroundImageDirective],
378
- }]
379
- }] });
380
304
 
381
305
  class ContenteditableDirective {
382
306
  constructor(elementRef) {
@@ -393,7 +317,7 @@ class ContenteditableDirective {
393
317
  if (value && value.length >= 2) {
394
318
  const event = {
395
319
  value,
396
- parameters: this.parameters
320
+ parameters: this.parameters,
397
321
  };
398
322
  this.change.emit(event);
399
323
  const result = await this.method?.call(event);
@@ -405,8 +329,8 @@ class ContenteditableDirective {
405
329
  }
406
330
  }
407
331
  }
408
- 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 }); }
409
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ContenteditableDirective, 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 }); }
332
+ 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 }); }
333
+ 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 }); }
410
334
  }
411
335
  __decorate([
412
336
  DebounceCall(1000),
@@ -414,10 +338,11 @@ __decorate([
414
338
  __metadata("design:paramtypes", [Object]),
415
339
  __metadata("design:returntype", Promise)
416
340
  ], ContenteditableDirective.prototype, "onInput", null);
417
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ContenteditableDirective, decorators: [{
341
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ContenteditableDirective, decorators: [{
418
342
  type: Directive,
419
343
  args: [{
420
- selector: '[rxapContenteditable]'
344
+ selector: '[rxapContenteditable]',
345
+ standalone: true,
421
346
  }]
422
347
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { contenteditable: [{
423
348
  type: HostBinding,
@@ -442,18 +367,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
442
367
  type: HostListener,
443
368
  args: ['input', ['$event']]
444
369
  }] } });
445
- class ContenteditableDirectiveModule {
446
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ContenteditableDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
447
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: ContenteditableDirectiveModule, declarations: [ContenteditableDirective], exports: [ContenteditableDirective] }); }
448
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ContenteditableDirectiveModule }); }
449
- }
450
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ContenteditableDirectiveModule, decorators: [{
451
- type: NgModule,
452
- args: [{
453
- declarations: [ContenteditableDirective],
454
- exports: [ContenteditableDirective]
455
- }]
456
- }] });
457
370
 
458
371
  class ConfirmClick {
459
372
  constructor() {
@@ -470,10 +383,10 @@ class ConfirmClick {
470
383
  onConfirm() {
471
384
  this.execute();
472
385
  }
473
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ConfirmClick, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
474
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ConfirmClick }); }
386
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmClick, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
387
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmClick }); }
475
388
  }
476
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ConfirmClick, decorators: [{
389
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmClick, decorators: [{
477
390
  type: Injectable
478
391
  }], propDecorators: { hasConfirmDirective: [{
479
392
  type: Input,
@@ -487,11 +400,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
487
400
  }] } });
488
401
 
489
402
  class MethodDirective {
490
- set hasConfirmDirective(value) {
491
- this._hasConfirmDirective = coerceBoolean(value);
492
- }
493
403
  constructor() {
494
- this._hasConfirmDirective = false;
495
404
  this.immediately = false;
496
405
  this.executed$ = new EventEmitter();
497
406
  this.failure$ = new EventEmitter();
@@ -500,6 +409,10 @@ class MethodDirective {
500
409
  * true - a remote method call is in progress
501
410
  */
502
411
  this.executing$ = new ToggleSubject();
412
+ this._hasConfirmDirective = false;
413
+ }
414
+ set hasConfirmDirective(value) {
415
+ this._hasConfirmDirective = coerceBoolean(value);
503
416
  }
504
417
  ngOnInit() {
505
418
  if (this.immediately) {
@@ -552,19 +465,17 @@ class MethodDirective {
552
465
  successful(result) {
553
466
  this.successful$.emit(result);
554
467
  }
555
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MethodDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
556
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: MethodDirective, 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 }); }
468
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MethodDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
469
+ 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 }); }
557
470
  }
558
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MethodDirective, decorators: [{
471
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MethodDirective, decorators: [{
559
472
  type: Directive,
560
473
  args: [{
561
474
  selector: '[rxapMethod]',
562
- exportAs: 'rxapMethod'
475
+ exportAs: 'rxapMethod',
476
+ standalone: true,
563
477
  }]
564
- }], ctorParameters: function () { return []; }, propDecorators: { hasConfirmDirective: [{
565
- type: Input,
566
- args: ['rxapConfirm']
567
- }], method: [{
478
+ }], propDecorators: { method: [{
568
479
  type: Input,
569
480
  args: ['rxapMethod']
570
481
  }], parameters: [{
@@ -580,6 +491,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
580
491
  }], successful$: [{
581
492
  type: Output,
582
493
  args: ['successful']
494
+ }], hasConfirmDirective: [{
495
+ type: Input,
496
+ args: ['rxapConfirm']
583
497
  }], onConfirmed: [{
584
498
  type: HostListener,
585
499
  args: ['confirmed']
@@ -587,18 +501,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
587
501
  type: HostListener,
588
502
  args: ['click']
589
503
  }] } });
590
- class MethodDirectiveModule {
591
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MethodDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
592
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: MethodDirectiveModule, declarations: [MethodDirective], exports: [MethodDirective] }); }
593
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MethodDirectiveModule }); }
594
- }
595
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MethodDirectiveModule, decorators: [{
596
- type: NgModule,
597
- args: [{
598
- declarations: [MethodDirective],
599
- exports: [MethodDirective]
600
- }]
601
- }] });
602
504
 
603
505
  class MovableDividerDirective {
604
506
  constructor(renderer) {
@@ -636,10 +538,11 @@ class MovableDividerDirective {
636
538
  console.log({
637
539
  clientWidth: this.containerElement.clientWidth,
638
540
  clientX: $event.clientX,
639
- clientLeft: this.containerElement.getBoundingClientRect().left
541
+ clientLeft: this.containerElement.getBoundingClientRect().left,
640
542
  });
641
543
  }
642
- this._fixedElementWidth = this.containerElement.clientWidth - $event.clientX + this.containerElement.getBoundingClientRect().left;
544
+ this._fixedElementWidth =
545
+ this.containerElement.clientWidth - $event.clientX + this.containerElement.getBoundingClientRect().left;
643
546
  }
644
547
  else {
645
548
  throw new Error(`The origin '${this.origin}' is not supported.`);
@@ -655,26 +558,21 @@ class MovableDividerDirective {
655
558
  onMousedown() {
656
559
  this._moveDivider = true;
657
560
  }
658
- 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 }); }
659
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: MovableDividerDirective, selector: "[rxapMovableDivider]", inputs: { containerElement: "containerElement", fixedElement: "fixedElement", origin: "origin" }, host: { listeners: { "mousedown": "onMousedown()" }, properties: { "style.cursor": "this.cursor" } }, ngImport: i0 }); }
561
+ 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 }); }
562
+ 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 }); }
660
563
  }
661
- __decorate([
662
- Required,
663
- __metadata("design:type", HTMLDivElement)
664
- ], MovableDividerDirective.prototype, "containerElement", void 0);
665
- __decorate([
666
- Required,
667
- __metadata("design:type", HTMLDivElement)
668
- ], MovableDividerDirective.prototype, "fixedElement", void 0);
669
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MovableDividerDirective, decorators: [{
564
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MovableDividerDirective, decorators: [{
670
565
  type: Directive,
671
566
  args: [{
672
- selector: '[rxapMovableDivider]'
567
+ selector: '[rxapMovableDivider]',
568
+ standalone: true,
673
569
  }]
674
570
  }], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { containerElement: [{
675
- type: Input
571
+ type: Input,
572
+ args: [{ required: true }]
676
573
  }], fixedElement: [{
677
- type: Input
574
+ type: Input,
575
+ args: [{ required: true }]
678
576
  }], origin: [{
679
577
  type: Input
680
578
  }], cursor: [{
@@ -684,21 +582,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
684
582
  type: HostListener,
685
583
  args: ['mousedown']
686
584
  }] } });
687
- class MovableDividerDirectiveModule {
688
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MovableDividerDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
689
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: MovableDividerDirectiveModule, declarations: [MovableDividerDirective], exports: [MovableDividerDirective] }); }
690
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MovableDividerDirectiveModule }); }
691
- }
692
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MovableDividerDirectiveModule, decorators: [{
693
- type: NgModule,
694
- args: [{
695
- declarations: [MovableDividerDirective],
696
- exports: [MovableDividerDirective]
697
- }]
698
- }] });
699
585
 
700
586
  // TODO : mv to rxap package
701
587
  class IfTruthyDirective {
588
+ constructor(templateRef, viewContainerRef, cdr) {
589
+ this.templateRef = templateRef;
590
+ this.viewContainerRef = viewContainerRef;
591
+ this.cdr = cdr;
592
+ }
702
593
  /**
703
594
  * Asserts the correct type of the context for the template that `NgForOf` will render.
704
595
  *
@@ -708,11 +599,6 @@ class IfTruthyDirective {
708
599
  static ngTemplateContextGuard(dir, ctx) {
709
600
  return true;
710
601
  }
711
- constructor(templateRef, viewContainerRef, cdr) {
712
- this.templateRef = templateRef;
713
- this.viewContainerRef = viewContainerRef;
714
- this.cdr = cdr;
715
- }
716
602
  ngOnChanges(changes) {
717
603
  if (this.method && this.parameters) {
718
604
  this.execute();
@@ -736,13 +622,14 @@ class IfTruthyDirective {
736
622
  }
737
623
  return true;
738
624
  }
739
- 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 }); }
740
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: IfTruthyDirective, selector: "[rxapIfTruthy]", inputs: { method: ["rxapIfTruthy", "method"], parameters: ["rxapIfTruthyParameters", "parameters"], trackBy: ["rxapIfTruthyTrackBy", "trackBy"] }, usesOnChanges: true, ngImport: i0 }); }
625
+ 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 }); }
626
+ 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 }); }
741
627
  }
742
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: IfTruthyDirective, decorators: [{
628
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: IfTruthyDirective, decorators: [{
743
629
  type: Directive,
744
630
  args: [{
745
- selector: '[rxapIfTruthy]'
631
+ selector: '[rxapIfTruthy]',
632
+ standalone: true,
746
633
  }]
747
634
  }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { method: [{
748
635
  type: Input,
@@ -754,23 +641,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
754
641
  type: Input,
755
642
  args: ['rxapIfTruthyTrackBy']
756
643
  }] } });
757
- class IfTruthyDirectiveModule {
758
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: IfTruthyDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
759
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: IfTruthyDirectiveModule, declarations: [IfTruthyDirective], exports: [IfTruthyDirective] }); }
760
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: IfTruthyDirectiveModule }); }
761
- }
762
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: IfTruthyDirectiveModule, decorators: [{
763
- type: NgModule,
764
- args: [{
765
- declarations: [IfTruthyDirective],
766
- exports: [IfTruthyDirective]
767
- }]
768
- }] });
769
644
 
770
645
  class MethodTemplateDirective {
771
- static ngTemplateContextGuard(dir, ctx) {
772
- return true;
773
- }
774
646
  constructor(template, viewContainerRef, cdr) {
775
647
  this.template = template;
776
648
  this.viewContainerRef = viewContainerRef;
@@ -786,8 +658,11 @@ class MethodTemplateDirective {
786
658
  this.executing$ = new ToggleSubject();
787
659
  this.embedded = new EventEmitter();
788
660
  }
661
+ static ngTemplateContextGuard(dir, ctx) {
662
+ return true;
663
+ }
789
664
  ngOnChanges(changes) {
790
- const parametersChanges = changes.parameters;
665
+ const parametersChanges = changes['parameters'];
791
666
  if (parametersChanges) {
792
667
  this.execute(parametersChanges.currentValue);
793
668
  }
@@ -826,12 +701,6 @@ class MethodTemplateDirective {
826
701
  updateParameters(parameters) {
827
702
  this.parameters = { ...(this.parameters ?? {}), ...parameters };
828
703
  }
829
- renderLoadingTemplate() {
830
- if (this.loadingTemplate) {
831
- this.viewContainerRef.clear();
832
- this.viewContainerRef.createEmbeddedView(this.loadingTemplate);
833
- }
834
- }
835
704
  executed(result) {
836
705
  this.executed$.emit(result);
837
706
  }
@@ -845,7 +714,10 @@ class MethodTemplateDirective {
845
714
  if (this.errorTemplate) {
846
715
  this.viewContainerRef.clear();
847
716
  if (this.errorTemplate) {
848
- this.viewContainerRef.createEmbeddedView(this.errorTemplate, { $implicit: error, message: error.message });
717
+ this.viewContainerRef.createEmbeddedView(this.errorTemplate, {
718
+ $implicit: error,
719
+ message: error.message,
720
+ });
849
721
  }
850
722
  }
851
723
  }
@@ -862,14 +734,21 @@ class MethodTemplateDirective {
862
734
  this.embedded.emit();
863
735
  this.cdr.detectChanges();
864
736
  }
865
- 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 }); }
866
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: MethodTemplateDirective, 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 }); }
737
+ renderLoadingTemplate() {
738
+ if (this.loadingTemplate) {
739
+ this.viewContainerRef.clear();
740
+ this.viewContainerRef.createEmbeddedView(this.loadingTemplate);
741
+ }
742
+ }
743
+ 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 }); }
744
+ 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 }); }
867
745
  }
868
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MethodTemplateDirective, decorators: [{
746
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MethodTemplateDirective, decorators: [{
869
747
  type: Directive,
870
748
  args: [{
871
749
  selector: '[rxapMethod]',
872
- exportAs: 'rxapMethod'
750
+ exportAs: 'rxapMethod',
751
+ standalone: true,
873
752
  }]
874
753
  }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
875
754
  type: Inject,
@@ -915,22 +794,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
915
794
  type: HostListener,
916
795
  args: ['confirmed']
917
796
  }] } });
918
- class MethodTemplateDirectiveModule {
919
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MethodTemplateDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
920
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: MethodTemplateDirectiveModule, declarations: [MethodTemplateDirective], exports: [MethodTemplateDirective] }); }
921
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MethodTemplateDirectiveModule }); }
922
- }
923
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MethodTemplateDirectiveModule, decorators: [{
924
- type: NgModule,
925
- args: [{
926
- declarations: [MethodTemplateDirective],
927
- exports: [MethodTemplateDirective]
928
- }]
929
- }] });
930
797
 
931
798
  /**
932
799
  * Generated bundle index. Do not edit.
933
800
  */
934
801
 
935
- export { AvatarBackgroundImageDirective, AvatarBackgroundImageDirectiveModule, BackgroundImageDirective, BackgroundImageDirectiveModule, BackgroundPositionOptions, BackgroundRepeatOptions, BackgroundSizeOptions, ConfirmClick, ContenteditableDirective, ContenteditableDirectiveModule, FullWidthDirective, FullWidthDirectiveModule, GlobalStyleOptions, IfTruthyDirective, IfTruthyDirectiveModule, MethodDirective, MethodDirectiveModule, MethodTemplateDirective, MethodTemplateDirectiveModule, MovableDividerDirective, MovableDividerDirectiveModule, PreventDefaultDirective, PreventDefaultDirectiveModule, ShareButtonDirective, ShareButtonDirectiveModule, ShareService, StopImmediatePropagationDirective, StopImmediatePropagationDirectiveModule, StopPropagationDirective, StopPropagationDirectiveModule };
802
+ export { AvatarBackgroundImageDirective, BackgroundImageDirective, BackgroundPositionOptions, BackgroundRepeatOptions, BackgroundSizeOptions, ConfirmClick, ContenteditableDirective, FullWidthDirective, GlobalStyleOptions, IfTruthyDirective, MethodDirective, MethodTemplateDirective, MovableDividerDirective, PreventDefaultDirective, ShareButtonDirective, ShareService, StopImmediatePropagationDirective, StopPropagationDirective };
936
803
  //# sourceMappingURL=rxap-directives.mjs.map