@rxap/directives 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 (137) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/compodoc/changelog.html +34 -0
  3. package/compodoc/dependencies.html +7 -7
  4. package/compodoc/directives/AvatarBackgroundImageDirective.html +216 -386
  5. package/compodoc/directives/BackgroundImageDirective.html +230 -243
  6. package/compodoc/directives/ConfirmClick.html +466 -0
  7. package/compodoc/directives/ContenteditableDirective.html +137 -373
  8. package/compodoc/directives/FullWidthDirective.html +8 -139
  9. package/compodoc/directives/IfTruthyDirective.html +136 -182
  10. package/compodoc/directives/IsDevModeDirective.html +4 -74
  11. package/compodoc/directives/MethodDirective.html +272 -346
  12. package/compodoc/directives/MethodTemplateDirective.html +736 -697
  13. package/compodoc/directives/MovableDividerDirective.html +103 -243
  14. package/compodoc/directives/PreventDefaultDirective.html +6 -65
  15. package/compodoc/directives/ShareButtonDirective.html +14 -62
  16. package/compodoc/directives/StopImmediatePropagationDirective.html +6 -65
  17. package/compodoc/directives/StopPropagationDirective.html +6 -65
  18. package/compodoc/injectables/ShareService.html +6 -5
  19. package/compodoc/interfaces/ContenteditableEvent.html +25 -32
  20. package/compodoc/interfaces/IfTruthyDirectiveTemplateContext.html +22 -36
  21. package/compodoc/interfaces/MethodTemplateDirectiveContext.html +42 -66
  22. package/compodoc/interfaces/MethodTemplateDirectiveErrorContext.html +42 -66
  23. package/compodoc/interfaces/ShareData.html +3 -2
  24. package/compodoc/js/menu-wc.js +3 -3
  25. package/compodoc/js/menu-wc_es5.js +1 -1
  26. package/compodoc/js/search/search_index.js +2 -2
  27. package/compodoc/overview.html +2 -2
  28. package/compodoc/properties.html +1 -1
  29. package/docs/documentation.json +2282 -2793
  30. package/docs/html/assets/hierarchy.js +1 -1
  31. package/docs/html/assets/search.js +1 -1
  32. package/docs/html/classes/AvatarBackgroundImageDirective.html +9 -16
  33. package/docs/html/classes/BackgroundImageDirective.html +8 -17
  34. package/docs/html/classes/ConfirmClick.html +3 -3
  35. package/docs/html/classes/ContenteditableDirective.html +8 -7
  36. package/docs/html/classes/FullWidthDirective.html +2 -3
  37. package/docs/html/classes/IfTruthyDirective.html +3 -9
  38. package/docs/html/classes/IsDevModeDirective.html +4 -4
  39. package/docs/html/classes/MethodDirective.html +8 -7
  40. package/docs/html/classes/MethodTemplateDirective.html +10 -15
  41. package/docs/html/classes/MovableDividerDirective.html +3 -13
  42. package/docs/html/classes/PreventDefaultDirective.html +2 -2
  43. package/docs/html/classes/ShareButtonDirective.html +2 -2
  44. package/docs/html/classes/ShareService.html +2 -2
  45. package/docs/html/classes/StopImmediatePropagationDirective.html +2 -2
  46. package/docs/html/classes/StopPropagationDirective.html +2 -2
  47. package/docs/html/enums/BackgroundPositionOptions.html +2 -2
  48. package/docs/html/enums/BackgroundRepeatOptions.html +2 -2
  49. package/docs/html/enums/BackgroundSizeOptions.html +2 -2
  50. package/docs/html/enums/GlobalStyleOptions.html +2 -2
  51. package/docs/html/hierarchy.html +1 -1
  52. package/docs/html/index.html +2 -2
  53. package/docs/html/interfaces/ContenteditableEvent.html +2 -2
  54. package/docs/html/interfaces/IfTruthyDirectiveTemplateContext.html +2 -2
  55. package/docs/html/interfaces/MethodTemplateDirectiveContext.html +2 -2
  56. package/docs/html/interfaces/MethodTemplateDirectiveErrorContext.html +2 -2
  57. package/docs/html/interfaces/ShareData.html +2 -2
  58. package/docs/html/modules.html +1 -1
  59. package/docs/html/types/BackgroundPosition.html +1 -1
  60. package/docs/html/types/BackgroundRepeat.html +1 -1
  61. package/docs/html/types/BackgroundSize.html +1 -1
  62. package/docs/markdown/README.md +1 -1
  63. package/docs/markdown/classes/AvatarBackgroundImageDirective.md +40 -103
  64. package/docs/markdown/classes/BackgroundImageDirective.md +24 -83
  65. package/docs/markdown/classes/ConfirmClick.md +8 -20
  66. package/docs/markdown/classes/ContenteditableDirective.md +21 -34
  67. package/docs/markdown/classes/FullWidthDirective.md +2 -10
  68. package/docs/markdown/classes/IfTruthyDirective.md +14 -71
  69. package/docs/markdown/classes/IsDevModeDirective.md +5 -17
  70. package/docs/markdown/classes/MethodDirective.md +40 -44
  71. package/docs/markdown/classes/MethodTemplateDirective.md +50 -86
  72. package/docs/markdown/classes/MovableDividerDirective.md +11 -71
  73. package/docs/markdown/classes/PreventDefaultDirective.md +3 -3
  74. package/docs/markdown/classes/ShareButtonDirective.md +9 -9
  75. package/docs/markdown/classes/ShareService.md +4 -4
  76. package/docs/markdown/classes/StopImmediatePropagationDirective.md +3 -3
  77. package/docs/markdown/classes/StopPropagationDirective.md +3 -3
  78. package/docs/markdown/enumerations/BackgroundPositionOptions.md +4 -4
  79. package/docs/markdown/enumerations/BackgroundRepeatOptions.md +3 -3
  80. package/docs/markdown/enumerations/BackgroundSizeOptions.md +5 -5
  81. package/docs/markdown/enumerations/GlobalStyleOptions.md +4 -4
  82. package/docs/markdown/globals.md +2 -2
  83. package/docs/markdown/interfaces/ContenteditableEvent.md +4 -4
  84. package/docs/markdown/interfaces/IfTruthyDirectiveTemplateContext.md +3 -3
  85. package/docs/markdown/interfaces/MethodTemplateDirectiveContext.md +3 -3
  86. package/docs/markdown/interfaces/MethodTemplateDirectiveErrorContext.md +4 -4
  87. package/docs/markdown/interfaces/ShareData.md +6 -6
  88. package/docs/markdown/type-aliases/BackgroundPosition.md +2 -2
  89. package/docs/markdown/type-aliases/BackgroundRepeat.md +2 -2
  90. package/docs/markdown/type-aliases/BackgroundSize.md +2 -2
  91. package/docs/wiki/Class.AvatarBackgroundImageDirective.md +39 -102
  92. package/docs/wiki/Class.BackgroundImageDirective.md +23 -82
  93. package/docs/wiki/Class.ConfirmClick.md +7 -19
  94. package/docs/wiki/Class.ContenteditableDirective.md +20 -33
  95. package/docs/wiki/Class.FullWidthDirective.md +1 -9
  96. package/docs/wiki/Class.IfTruthyDirective.md +13 -70
  97. package/docs/wiki/Class.IsDevModeDirective.md +4 -16
  98. package/docs/wiki/Class.MethodDirective.md +39 -43
  99. package/docs/wiki/Class.MethodTemplateDirective.md +49 -85
  100. package/docs/wiki/Class.MovableDividerDirective.md +10 -70
  101. package/docs/wiki/Class.PreventDefaultDirective.md +2 -2
  102. package/docs/wiki/Class.ShareButtonDirective.md +8 -8
  103. package/docs/wiki/Class.ShareService.md +3 -3
  104. package/docs/wiki/Class.StopImmediatePropagationDirective.md +2 -2
  105. package/docs/wiki/Class.StopPropagationDirective.md +2 -2
  106. package/docs/wiki/Enumeration.BackgroundPositionOptions.md +3 -3
  107. package/docs/wiki/Enumeration.BackgroundRepeatOptions.md +2 -2
  108. package/docs/wiki/Enumeration.BackgroundSizeOptions.md +4 -4
  109. package/docs/wiki/Enumeration.GlobalStyleOptions.md +3 -3
  110. package/docs/wiki/Interface.ContenteditableEvent.md +3 -3
  111. package/docs/wiki/Interface.IfTruthyDirectiveTemplateContext.md +2 -2
  112. package/docs/wiki/Interface.MethodTemplateDirectiveContext.md +2 -2
  113. package/docs/wiki/Interface.MethodTemplateDirectiveErrorContext.md +3 -3
  114. package/docs/wiki/Interface.ShareData.md +5 -5
  115. package/docs/wiki/TypeAlias.BackgroundPosition.md +1 -1
  116. package/docs/wiki/TypeAlias.BackgroundRepeat.md +1 -1
  117. package/docs/wiki/TypeAlias.BackgroundSize.md +1 -1
  118. package/docs/wiki/globals.md +1 -1
  119. package/fesm2022/rxap-directives.mjs +291 -392
  120. package/fesm2022/rxap-directives.mjs.map +1 -1
  121. package/package.json +22 -17
  122. package/types/rxap-directives.d.ts +272 -0
  123. package/index.d.ts +0 -14
  124. package/lib/avatar-background-image.directive.d.ts +0 -14
  125. package/lib/background-image.directive.d.ts +0 -42
  126. package/lib/confirm-click.d.ts +0 -10
  127. package/lib/contenteditable.directive.d.ts +0 -21
  128. package/lib/full-width.directive.d.ts +0 -6
  129. package/lib/if-truthy.directive.d.ts +0 -28
  130. package/lib/is-dev-mode.directive.d.ts +0 -12
  131. package/lib/method-template.directive.d.ts +0 -46
  132. package/lib/method.directive.d.ts +0 -29
  133. package/lib/movable-divider.directive.d.ts +0 -28
  134. package/lib/prevent-default.directive.d.ts +0 -6
  135. package/lib/share-button.directive.d.ts +0 -25
  136. package/lib/stop-immediate-propagation.directive.d.ts +0 -6
  137. package/lib/stop-propagation.directive.d.ts +0 -6
@@ -164,46 +164,42 @@
164
164
  <li>
165
165
  <span class="modifier">Public</span>
166
166
  <span class="modifier"></span>
167
- <a href="#repeat" >repeat</a>
167
+ <span class="modifier">Readonly</span>
168
+ <a href="#imageUrl" >imageUrl</a>
168
169
  </li>
169
170
  <li>
170
171
  <span class="modifier">Public</span>
171
- <span class="modifier"></span>
172
- <a href="#size" >size</a>
173
- </li>
174
- </ul>
175
- </td>
176
- </tr>
177
-
178
-
179
- <tr>
180
- <td class="col-md-4">
181
- <h6><b>Inputs</b></h6>
182
- </td>
183
- </tr>
184
- <tr>
185
- <td class="col-md-4">
186
- <ul class="index-list">
187
- <li>
172
+ <span class="modifier">Readonly</span>
188
173
  <a href="#name" >name</a>
189
174
  </li>
190
175
  <li>
191
- <a href="#rxapAvatarBackgroundImage" >rxapAvatarBackgroundImage</a>
192
- </li>
193
- <li>
194
- <a href="#placeholderImageUrl" >placeholderImageUrl</a>
176
+ <span class="modifier">Protected</span>
177
+ <span class="modifier"></span>
178
+ <span class="modifier">Readonly</span>
179
+ <a href="#placeholder" >placeholder</a>
195
180
  </li>
196
181
  <li>
182
+ <span class="modifier">Public</span>
183
+ <span class="modifier"></span>
184
+ <span class="modifier">Readonly</span>
197
185
  <a href="#position" >position</a>
198
186
  </li>
199
187
  <li>
188
+ <span class="modifier">Public</span>
189
+ <span class="modifier"></span>
190
+ <span class="modifier">Readonly</span>
200
191
  <a href="#repeat" >repeat</a>
201
192
  </li>
202
193
  <li>
203
- <a href="#rxapBackgroundImage" >rxapBackgroundImage</a>
194
+ <span class="modifier">Public</span>
195
+ <span class="modifier"></span>
196
+ <span class="modifier">Readonly</span>
197
+ <a href="#size" >size</a>
204
198
  </li>
205
199
  <li>
206
- <a href="#size" >size</a>
200
+ <span class="modifier">Public</span>
201
+ <span class="modifier">Readonly</span>
202
+ <a href="#placeholderImageUrl" >placeholderImageUrl</a>
207
203
  </li>
208
204
  </ul>
209
205
  </td>
@@ -212,313 +208,169 @@
212
208
 
213
209
 
214
210
 
215
- <tr>
216
- <td class="col-md-4">
217
- <h6><b>Accessors</b></h6>
218
- </td>
219
- </tr>
220
- <tr>
221
- <td class="col-md-4">
222
- <ul class="index-list">
223
- <li>
224
- <a href="#name" >name</a>
225
- </li>
226
- </ul>
227
- </td>
228
- </tr>
211
+
212
+
229
213
  </tbody>
230
214
  </table>
231
215
  </section>
232
216
 
233
- <section data-compodoc="block-constructor">
234
- <h3 id="constructor">Constructor</h3>
235
- <table class="table table-sm table-bordered">
236
- <tbody>
237
- <tr>
238
- <td class="col-md-4">
239
- <code>constructor(host: ElementRef, renderer: Renderer2, imageLoader: ImageLoaderService, avatarImage: AvatarImageService)</code>
240
- </td>
241
- </tr>
242
- <tr>
243
- <td class="col-md-4">
244
- <div class="io-line">Defined in <a href="" data-line="26" class="link-to-prism">src/lib/avatar-background-image.directive.ts:26</a></div>
245
- </td>
246
- </tr>
247
217
 
248
- <tr>
249
- <td class="col-md-4">
250
- <div>
251
- <b>Parameters :</b>
252
- <table class="params">
253
- <thead>
254
- <tr>
255
- <td>Name</td>
256
- <td>Type</td>
257
- <td>Optional</td>
258
- </tr>
259
- </thead>
260
- <tbody>
261
- <tr>
262
- <td>host</td>
263
-
264
- <td>
265
- <code>ElementRef</code>
266
- </td>
267
-
268
- <td>
269
- No
270
- </td>
271
-
272
- </tr>
273
- <tr>
274
- <td>renderer</td>
275
-
276
- <td>
277
- <code>Renderer2</code>
278
- </td>
279
-
280
- <td>
281
- No
282
- </td>
283
-
284
- </tr>
285
- <tr>
286
- <td>imageLoader</td>
287
-
288
- <td>
289
- <code>ImageLoaderService</code>
290
- </td>
291
-
292
- <td>
293
- No
294
- </td>
295
-
296
- </tr>
297
- <tr>
298
- <td>avatarImage</td>
299
-
300
- <td>
301
- <code>AvatarImageService</code>
302
- </td>
303
-
304
- <td>
305
- No
306
- </td>
307
-
308
- </tr>
309
- </tbody>
310
- </table>
311
- </div>
312
- </td>
313
- </tr>
314
- </tbody>
315
- </table>
316
- </section>
317
218
 
318
- <section data-compodoc="block-inputs">
319
- <h3 id="inputs">Inputs</h3>
320
- <table class="table table-sm table-bordered">
321
- <tbody>
322
- <tr>
323
- <td class="col-md-4">
324
- <a name="name"></a>
325
- <b>name</b>
326
- </td>
327
- </tr>
328
- <tr>
329
- <td class="col-md-4">
330
- <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
331
219
 
332
- </td>
333
- </tr>
334
- <tr>
335
- <td class="col-md-2" colspan="2">
336
- <div class="io-line">Defined in <a href="" data-line="42" class="link-to-prism">src/lib/avatar-background-image.directive.ts:42</a></div>
337
- </td>
338
- </tr>
339
- </tbody>
340
- </table>
341
- <table class="table table-sm table-bordered">
342
- <tbody>
343
- <tr>
344
- <td class="col-md-4">
345
- <a name="rxapAvatarBackgroundImage"></a>
346
- <b>rxapAvatarBackgroundImage</b>
347
- </td>
348
- </tr>
349
- <tr>
350
- <td class="col-md-4">
351
- <i>Type : </i> <code>string | null | undefined</code>
352
220
 
353
- </td>
354
- </tr>
355
- <tr>
356
- <td class="col-md-4">
357
- <i>Default value : </i><code>null</code>
358
- </td>
359
- </tr>
360
- <tr>
361
- <td class="col-md-2" colspan="2">
362
- <div class="io-line">Defined in <a href="" data-line="24" class="link-to-prism">src/lib/avatar-background-image.directive.ts:24</a></div>
363
- </td>
364
- </tr>
365
- </tbody>
366
- </table>
367
- <table class="table table-sm table-bordered">
368
- <tbody>
369
- <tr>
370
- <td class="col-md-4">
371
- <a name="placeholderImageUrl"></a>
372
- <b>placeholderImageUrl</b>
373
- </td>
374
- </tr>
375
- <tr>
376
- <td class="col-md-4">
377
- <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
378
221
 
379
- </td>
380
- </tr>
381
- <tr>
382
- <td class="col-md-4" colspan="2">
383
- <div class="io-line">Inherited from <code><a href="../directives/BackgroundImageDirective.html" target="_self" >BackgroundImageDirective</a></code>
384
- </div>
385
- </td>
386
- </tr>
387
- <tr>
388
- <td class="col-md-2" colspan="2">
389
- <div class="io-line">Defined in <code><a href="../directives/BackgroundImageDirective.html#source" target="_self" >BackgroundImageDirective:60</a></code>
390
- </div>
391
- </td>
392
- </tr>
393
- </tbody>
394
- </table>
395
- <table class="table table-sm table-bordered">
396
- <tbody>
397
- <tr>
398
- <td class="col-md-4">
399
- <a name="position"></a>
400
- <b>position</b>
401
- </td>
402
- </tr>
222
+
223
+ <section data-compodoc="block-properties">
224
+
225
+ <h3 id="inputs">
226
+ Properties
227
+ </h3>
228
+ <table class="table table-sm table-bordered">
229
+ <tbody>
230
+ <tr>
231
+ <td class="col-md-4">
232
+ <a name="imageUrl"></a>
233
+ <span class="name">
234
+ <span class="modifier">Public</span>
235
+ <span class="modifier"></span>
236
+ <span class="modifier">Readonly</span>
237
+ <span ><b>imageUrl</b></span>
238
+ <a href="#imageUrl"><span class="icon ion-ios-link"></span></a>
239
+ </span>
240
+ </td>
241
+ </tr>
403
242
  <tr>
404
243
  <td class="col-md-4">
405
- <i>Type : </i> <code><a href="../miscellaneous/typealiases.html#BackgroundPosition" target="_self" >BackgroundPosition</a></code>
406
-
244
+ <i>Default value : </i><code>input&lt;string | null | undefined&gt;(null, { alias: &#x27;rxapAvatarBackgroundImage&#x27; })</code>
407
245
  </td>
408
246
  </tr>
409
- <tr>
410
- <td class="col-md-4" colspan="2">
411
- <div class="io-line">Inherited from <code><a href="../directives/BackgroundImageDirective.html" target="_self" >BackgroundImageDirective</a></code>
412
- </div>
413
- </td>
414
- </tr>
415
247
  <tr>
416
- <td class="col-md-2" colspan="2">
417
- <div class="io-line">Defined in <code><a href="../directives/BackgroundImageDirective.html#source" target="_self" >BackgroundImageDirective:69</a></code>
248
+ <td class="col-md-4">
249
+ <div class="io-line">Inherited from <code><a href="../directives/BackgroundImageDirective.html" target="_self" >BackgroundImageDirective</a></code>
418
250
  </div>
419
251
  </td>
420
252
  </tr>
421
- </tbody>
422
- </table>
423
- <table class="table table-sm table-bordered">
424
- <tbody>
253
+ <tr>
254
+ <td class="col-md-4">
255
+ <div class="io-line">Defined in <code><a href="../directives/BackgroundImageDirective.html#source" target="_self" >BackgroundImageDirective:19</a></code>
256
+ </div>
257
+ </td>
258
+ </tr>
259
+
260
+
261
+ </tbody>
262
+ </table>
263
+ <table class="table table-sm table-bordered">
264
+ <tbody>
265
+ <tr>
266
+ <td class="col-md-4">
267
+ <a name="name"></a>
268
+ <span class="name">
269
+ <span class="modifier">Public</span>
270
+ <span class="modifier">Readonly</span>
271
+ <span ><b>name</b></span>
272
+ <a href="#name"><span class="icon ion-ios-link"></span></a>
273
+ </span>
274
+ </td>
275
+ </tr>
425
276
  <tr>
426
277
  <td class="col-md-4">
427
- <a name="repeat"></a>
428
- <b>repeat</b>
278
+ <i>Default value : </i><code>input&lt;string | null | undefined&gt;()</code>
429
279
  </td>
430
280
  </tr>
431
- <tr>
432
- <td class="col-md-4">
433
- <i>Type : </i> <code><a href="../miscellaneous/typealiases.html#BackgroundRepeat" target="_self" >BackgroundRepeat</a></code>
281
+ <tr>
282
+ <td class="col-md-4">
283
+ <div class="io-line">Defined in <a href="" data-line="31" class="link-to-prism">src/lib/avatar-background-image.directive.ts:31</a></div>
284
+ </td>
285
+ </tr>
434
286
 
435
- </td>
436
- </tr>
437
- <tr>
438
- <td class="col-md-4" colspan="2">
439
- <div class="io-line">Inherited from <code><a href="../directives/BackgroundImageDirective.html" target="_self" >BackgroundImageDirective</a></code>
440
- </div>
441
- </td>
442
- </tr>
443
- <tr>
444
- <td class="col-md-2" colspan="2">
445
- <div class="io-line">Defined in <code><a href="../directives/BackgroundImageDirective.html#source" target="_self" >BackgroundImageDirective:66</a></code>
287
+ <tr>
288
+ <td class="col-md-4">
289
+ <div class="io-description"><p>The name used to generate a placeholder avatar if no explicit
290
+ placeholderImageUrl is provided.</p>
446
291
  </div>
447
- </td>
448
- </tr>
449
- </tbody>
450
- </table>
451
- <table class="table table-sm table-bordered">
452
- <tbody>
453
- <tr>
454
- <td class="col-md-4">
455
- <a name="rxapBackgroundImage"></a>
456
- <b>rxapBackgroundImage</b>
457
- </td>
458
- </tr>
459
- <tr>
460
- <td class="col-md-4">
461
- <i>Type : </i> <code>string | null | undefined</code>
292
+ </td>
293
+ </tr>
462
294
 
463
- </td>
464
- </tr>
295
+ </tbody>
296
+ </table>
297
+ <table class="table table-sm table-bordered">
298
+ <tbody>
299
+ <tr>
300
+ <td class="col-md-4">
301
+ <a name="placeholder"></a>
302
+ <span class="name">
303
+ <span class="modifier">Protected</span>
304
+ <span class="modifier"></span>
305
+ <span class="modifier">Readonly</span>
306
+ <span ><b>placeholder</b></span>
307
+ <a href="#placeholder"><span class="icon ion-ios-link"></span></a>
308
+ </span>
309
+ </td>
310
+ </tr>
465
311
  <tr>
466
312
  <td class="col-md-4">
467
- <i>Default value : </i><code>null</code>
313
+ <i>Default value : </i><code>computed(() &#x3D;&gt; {
314
+ const placeholderImageUrl &#x3D; this.placeholderImageUrl();
315
+ if (placeholderImageUrl) {
316
+ return placeholderImageUrl;
317
+ }
318
+ const name &#x3D; this.name();
319
+ return name ? this.avatarImage.get({ name }) : undefined;
320
+ })</code>
468
321
  </td>
469
322
  </tr>
470
- <tr>
471
- <td class="col-md-4" colspan="2">
472
- <div class="io-line">Inherited from <code><a href="../directives/BackgroundImageDirective.html" target="_self" >BackgroundImageDirective</a></code>
473
- </div>
474
- </td>
475
- </tr>
476
323
  <tr>
477
- <td class="col-md-2" colspan="2">
478
- <div class="io-line">Defined in <code><a href="../directives/BackgroundImageDirective.html#source" target="_self" >BackgroundImageDirective:57</a></code>
324
+ <td class="col-md-4">
325
+ <div class="io-line">Inherited from <code><a href="../directives/BackgroundImageDirective.html" target="_self" >BackgroundImageDirective</a></code>
479
326
  </div>
480
327
  </td>
481
328
  </tr>
482
- </tbody>
483
- </table>
484
- <table class="table table-sm table-bordered">
485
- <tbody>
486
- <tr>
487
- <td class="col-md-4">
488
- <a name="size"></a>
489
- <b>size</b>
490
- </td>
491
- </tr>
329
+ <tr>
330
+ <td class="col-md-4">
331
+ <div class="io-line">Defined in <code><a href="../directives/BackgroundImageDirective.html#source" target="_self" >BackgroundImageDirective:33</a></code>
332
+ </div>
333
+ </td>
334
+ </tr>
335
+
336
+
337
+ </tbody>
338
+ </table>
339
+ <table class="table table-sm table-bordered">
340
+ <tbody>
341
+ <tr>
342
+ <td class="col-md-4">
343
+ <a name="position"></a>
344
+ <span class="name">
345
+ <span class="modifier">Public</span>
346
+ <span class="modifier"></span>
347
+ <span class="modifier">Readonly</span>
348
+ <span ><b>position</b></span>
349
+ <a href="#position"><span class="icon ion-ios-link"></span></a>
350
+ </span>
351
+ </td>
352
+ </tr>
492
353
  <tr>
493
354
  <td class="col-md-4">
494
- <i>Type : </i> <code><a href="../miscellaneous/typealiases.html#BackgroundSize" target="_self" >BackgroundSize</a></code>
495
-
355
+ <i>Default value : </i><code>input&lt;BackgroundPosition | null | undefined&gt;()</code>
496
356
  </td>
497
357
  </tr>
498
- <tr>
499
- <td class="col-md-4" colspan="2">
500
- <div class="io-line">Inherited from <code><a href="../directives/BackgroundImageDirective.html" target="_self" >BackgroundImageDirective</a></code>
501
- </div>
502
- </td>
503
- </tr>
504
358
  <tr>
505
- <td class="col-md-2" colspan="2">
506
- <div class="io-line">Defined in <code><a href="../directives/BackgroundImageDirective.html#source" target="_self" >BackgroundImageDirective:63</a></code>
359
+ <td class="col-md-4">
360
+ <div class="io-line">Inherited from <code><a href="../directives/BackgroundImageDirective.html" target="_self" >BackgroundImageDirective</a></code>
507
361
  </div>
508
362
  </td>
509
363
  </tr>
510
- </tbody>
511
- </table>
512
- </section>
513
-
514
-
364
+ <tr>
365
+ <td class="col-md-4">
366
+ <div class="io-line">Defined in <code><a href="../directives/BackgroundImageDirective.html#source" target="_self" >BackgroundImageDirective:25</a></code>
367
+ </div>
368
+ </td>
369
+ </tr>
515
370
 
516
371
 
517
- <section data-compodoc="block-properties">
518
-
519
- <h3 id="inputs">
520
- Properties
521
- </h3>
372
+ </tbody>
373
+ </table>
522
374
  <table class="table table-sm table-bordered">
523
375
  <tbody>
524
376
  <tr>
@@ -527,6 +379,7 @@
527
379
  <span class="name">
528
380
  <span class="modifier">Public</span>
529
381
  <span class="modifier"></span>
382
+ <span class="modifier">Readonly</span>
530
383
  <span ><b>repeat</b></span>
531
384
  <a href="#repeat"><span class="icon ion-ios-link"></span></a>
532
385
  </span>
@@ -534,12 +387,19 @@
534
387
  </tr>
535
388
  <tr>
536
389
  <td class="col-md-4">
537
- <i>Default value : </i><code>BackgroundRepeatOptions.NO_REPEAT</code>
390
+ <i>Default value : </i><code>input&lt;BackgroundRepeat | null | undefined&gt;(BackgroundRepeatOptions.NO_REPEAT)</code>
538
391
  </td>
539
392
  </tr>
393
+ <tr>
394
+ <td class="col-md-4">
395
+ <div class="io-line">Inherited from <code><a href="../directives/BackgroundImageDirective.html" target="_self" >BackgroundImageDirective</a></code>
396
+ </div>
397
+ </td>
398
+ </tr>
540
399
  <tr>
541
400
  <td class="col-md-4">
542
- <div class="io-line">Defined in <a href="" data-line="26" class="link-to-prism">src/lib/avatar-background-image.directive.ts:26</a></div>
401
+ <div class="io-line">Defined in <code><a href="../directives/BackgroundImageDirective.html#source" target="_self" >BackgroundImageDirective:23</a></code>
402
+ </div>
543
403
  </td>
544
404
  </tr>
545
405
 
@@ -554,6 +414,7 @@
554
414
  <span class="name">
555
415
  <span class="modifier">Public</span>
556
416
  <span class="modifier"></span>
417
+ <span class="modifier">Readonly</span>
557
418
  <span ><b>size</b></span>
558
419
  <a href="#size"><span class="icon ion-ios-link"></span></a>
559
420
  </span>
@@ -561,103 +422,74 @@
561
422
  </tr>
562
423
  <tr>
563
424
  <td class="col-md-4">
564
- <i>Default value : </i><code>BackgroundSizeOptions.COVER</code>
425
+ <i>Default value : </i><code>input&lt;BackgroundSize | null | undefined&gt;(BackgroundSizeOptions.COVER)</code>
565
426
  </td>
566
427
  </tr>
428
+ <tr>
429
+ <td class="col-md-4">
430
+ <div class="io-line">Inherited from <code><a href="../directives/BackgroundImageDirective.html" target="_self" >BackgroundImageDirective</a></code>
431
+ </div>
432
+ </td>
433
+ </tr>
567
434
  <tr>
568
435
  <td class="col-md-4">
569
- <div class="io-line">Defined in <a href="" data-line="25" class="link-to-prism">src/lib/avatar-background-image.directive.ts:25</a></div>
436
+ <div class="io-line">Defined in <code><a href="../directives/BackgroundImageDirective.html#source" target="_self" >BackgroundImageDirective:21</a></code>
437
+ </div>
570
438
  </td>
571
439
  </tr>
572
440
 
573
441
 
574
442
  </tbody>
575
443
  </table>
576
- </section>
577
-
578
- <section data-compodoc="block-accessors">
579
- <h3 id="accessors">
580
- Accessors
581
- </h3>
582
- <table class="table table-sm table-bordered">
583
- <tbody>
584
- <tr>
585
- <td class="col-md-4">
586
- <a name="name"></a>
587
- <span class="name"><b>name</b><a href="#name"><span class="icon ion-ios-link"></span></a></span>
588
- </td>
589
- </tr>
590
-
591
-
444
+ <table class="table table-sm table-bordered">
445
+ <tbody>
446
+ <tr>
447
+ <td class="col-md-4">
448
+ <a name="placeholderImageUrl"></a>
449
+ <span class="name">
450
+ <span class="modifier">Public</span>
451
+ <span class="modifier">Readonly</span>
452
+ <span ><b>placeholderImageUrl</b></span>
453
+ <a href="#placeholderImageUrl"><span class="icon ion-ios-link"></span></a>
454
+ </span>
455
+ </td>
456
+ </tr>
592
457
  <tr>
593
458
  <td class="col-md-4">
594
- <span class="accessor"><b>set</b><code>name(name: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>)</code></span>
459
+ <i>Default value : </i><code>input&lt;string | null | undefined&gt;()</code>
595
460
  </td>
596
461
  </tr>
597
- <tr>
598
- <td class="col-md-4">
599
- <div class="io-line">Defined in <a href="" data-line="42" class="link-to-prism">src/lib/avatar-background-image.directive.ts:42</a></div>
600
- </td>
601
- </tr>
462
+ <tr>
463
+ <td class="col-md-4">
464
+ <div class="io-line">Inherited from <code><a href="../directives/BackgroundImageDirective.html" target="_self" >BackgroundImageDirective</a></code>
465
+ </div>
466
+ </td>
467
+ </tr>
602
468
  <tr>
603
469
  <td class="col-md-4">
604
-
605
- <div class="io-description">
606
- <b>Parameters :</b>
607
- <table class="params">
608
- <thead>
609
- <tr>
610
- <td>Name</td>
611
- <td>Type</td>
612
- <td>Optional</td>
613
- </tr>
614
- </thead>
615
- <tbody>
616
- <tr>
617
- <td>name</td>
618
-
619
- <td>
620
- <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
621
- </td>
622
-
623
- <td>
624
- No
625
- </td>
626
-
627
- </tr>
628
- </tbody>
629
- </table>
630
- </div>
631
- <div>
632
- </div>
633
- <div class="io-description">
634
- <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
635
-
636
- </div>
470
+ <div class="io-line">Defined in <code><a href="../directives/BackgroundImageDirective.html#source" target="_self" >BackgroundImageDirective:53</a></code>
471
+ </div>
637
472
  </td>
638
473
  </tr>
639
- </tbody>
640
- </table>
474
+
475
+
476
+ </tbody>
477
+ </table>
641
478
  </section>
642
479
 
480
+
643
481
  </div>
644
482
 
645
483
 
646
484
  <div class="tab-pane fade tab-source-code" id="source">
647
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
648
- Directive,
649
- ElementRef,
650
- Inject,
651
- Input,
652
- Renderer2,
653
- } from &#x27;@angular/core&#x27;;
654
- import {
655
- AvatarImageService,
656
- ImageLoaderService,
657
- } from &#x27;@rxap/services&#x27;;
485
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { computed, Directive, inject, input } from &#x27;@angular/core&#x27;;
486
+ import { AvatarImageService } from &#x27;@rxap/services&#x27;;
658
487
  import {
659
488
  BackgroundImageDirective,
489
+ BackgroundPosition,
490
+ BackgroundRepeat,
660
491
  BackgroundRepeatOptions,
492
+ BackgroundSize,
661
493
  BackgroundSizeOptions,
662
494
  } from &#x27;./background-image.directive&#x27;;
663
495
 
@@ -666,33 +498,31 @@ import {
666
498
  standalone: true,
667
499
  })
668
500
  export class AvatarBackgroundImageDirective extends BackgroundImageDirective {
669
- @Input(&#x27;rxapAvatarBackgroundImage&#x27;)
670
- public override imageUrl: string | null | undefined &#x3D; null;
671
- public override size &#x3D; BackgroundSizeOptions.COVER;
672
- public override repeat &#x3D; BackgroundRepeatOptions.NO_REPEAT;
673
-
674
- constructor(
675
- @Inject(ElementRef)
676
- host: ElementRef,
677
- @Inject(Renderer2)
678
- renderer: Renderer2,
679
- @Inject(ImageLoaderService)
680
- imageLoader: ImageLoaderService,
681
- @Inject(AvatarImageService)
682
- private readonly avatarImage: AvatarImageService,
683
- ) {
684
- super(host, renderer, imageLoader);
685
- }
686
-
687
- @Input()
688
- public set name(name: string) {
689
- if (!this.placeholderImageUrl) {
690
- this.placeholderImageUrl &#x3D; this.avatarImage.get({ name });
691
- }
692
- }
693
- }
501
+ private readonly avatarImage &#x3D; inject&lt;AvatarImageService&gt;(AvatarImageService);
502
+
503
+ public override readonly imageUrl &#x3D; input&lt;string | null | undefined&gt;(null, { alias: &#x27;rxapAvatarBackgroundImage&#x27; });
504
+
505
+ public override readonly size &#x3D; input&lt;BackgroundSize | null | undefined&gt;(BackgroundSizeOptions.COVER);
694
506
 
507
+ public override readonly repeat &#x3D; input&lt;BackgroundRepeat | null | undefined&gt;(BackgroundRepeatOptions.NO_REPEAT);
695
508
 
509
+ public override readonly position &#x3D; input&lt;BackgroundPosition | null | undefined&gt;();
510
+
511
+ /**
512
+ * The name used to generate a placeholder avatar if no explicit
513
+ * placeholderImageUrl is provided.
514
+ */
515
+ public readonly name &#x3D; input&lt;string | null | undefined&gt;();
516
+
517
+ protected override readonly placeholder &#x3D; computed(() &#x3D;&gt; {
518
+ const placeholderImageUrl &#x3D; this.placeholderImageUrl();
519
+ if (placeholderImageUrl) {
520
+ return placeholderImageUrl;
521
+ }
522
+ const name &#x3D; this.name();
523
+ return name ? this.avatarImage.get({ name }) : undefined;
524
+ });
525
+ }
696
526
  </code></pre>
697
527
  </div>
698
528