@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.
- package/CHANGELOG.md +36 -0
- package/compodoc/changelog.html +34 -0
- package/compodoc/dependencies.html +7 -7
- package/compodoc/directives/AvatarBackgroundImageDirective.html +216 -386
- package/compodoc/directives/BackgroundImageDirective.html +230 -243
- package/compodoc/directives/ConfirmClick.html +466 -0
- package/compodoc/directives/ContenteditableDirective.html +137 -373
- package/compodoc/directives/FullWidthDirective.html +8 -139
- package/compodoc/directives/IfTruthyDirective.html +136 -182
- package/compodoc/directives/IsDevModeDirective.html +4 -74
- package/compodoc/directives/MethodDirective.html +272 -346
- package/compodoc/directives/MethodTemplateDirective.html +736 -697
- package/compodoc/directives/MovableDividerDirective.html +103 -243
- package/compodoc/directives/PreventDefaultDirective.html +6 -65
- package/compodoc/directives/ShareButtonDirective.html +14 -62
- package/compodoc/directives/StopImmediatePropagationDirective.html +6 -65
- package/compodoc/directives/StopPropagationDirective.html +6 -65
- package/compodoc/injectables/ShareService.html +6 -5
- package/compodoc/interfaces/ContenteditableEvent.html +25 -32
- package/compodoc/interfaces/IfTruthyDirectiveTemplateContext.html +22 -36
- package/compodoc/interfaces/MethodTemplateDirectiveContext.html +42 -66
- package/compodoc/interfaces/MethodTemplateDirectiveErrorContext.html +42 -66
- package/compodoc/interfaces/ShareData.html +3 -2
- package/compodoc/js/menu-wc.js +3 -3
- package/compodoc/js/menu-wc_es5.js +1 -1
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/overview.html +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +2282 -2793
- package/docs/html/assets/hierarchy.js +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/AvatarBackgroundImageDirective.html +9 -16
- package/docs/html/classes/BackgroundImageDirective.html +8 -17
- package/docs/html/classes/ConfirmClick.html +3 -3
- package/docs/html/classes/ContenteditableDirective.html +8 -7
- package/docs/html/classes/FullWidthDirective.html +2 -3
- package/docs/html/classes/IfTruthyDirective.html +3 -9
- package/docs/html/classes/IsDevModeDirective.html +4 -4
- package/docs/html/classes/MethodDirective.html +8 -7
- package/docs/html/classes/MethodTemplateDirective.html +10 -15
- package/docs/html/classes/MovableDividerDirective.html +3 -13
- package/docs/html/classes/PreventDefaultDirective.html +2 -2
- package/docs/html/classes/ShareButtonDirective.html +2 -2
- package/docs/html/classes/ShareService.html +2 -2
- package/docs/html/classes/StopImmediatePropagationDirective.html +2 -2
- package/docs/html/classes/StopPropagationDirective.html +2 -2
- package/docs/html/enums/BackgroundPositionOptions.html +2 -2
- package/docs/html/enums/BackgroundRepeatOptions.html +2 -2
- package/docs/html/enums/BackgroundSizeOptions.html +2 -2
- package/docs/html/enums/GlobalStyleOptions.html +2 -2
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/ContenteditableEvent.html +2 -2
- package/docs/html/interfaces/IfTruthyDirectiveTemplateContext.html +2 -2
- package/docs/html/interfaces/MethodTemplateDirectiveContext.html +2 -2
- package/docs/html/interfaces/MethodTemplateDirectiveErrorContext.html +2 -2
- package/docs/html/interfaces/ShareData.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/html/types/BackgroundPosition.html +1 -1
- package/docs/html/types/BackgroundRepeat.html +1 -1
- package/docs/html/types/BackgroundSize.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/AvatarBackgroundImageDirective.md +40 -103
- package/docs/markdown/classes/BackgroundImageDirective.md +24 -83
- package/docs/markdown/classes/ConfirmClick.md +8 -20
- package/docs/markdown/classes/ContenteditableDirective.md +21 -34
- package/docs/markdown/classes/FullWidthDirective.md +2 -10
- package/docs/markdown/classes/IfTruthyDirective.md +14 -71
- package/docs/markdown/classes/IsDevModeDirective.md +5 -17
- package/docs/markdown/classes/MethodDirective.md +40 -44
- package/docs/markdown/classes/MethodTemplateDirective.md +50 -86
- package/docs/markdown/classes/MovableDividerDirective.md +11 -71
- package/docs/markdown/classes/PreventDefaultDirective.md +3 -3
- package/docs/markdown/classes/ShareButtonDirective.md +9 -9
- package/docs/markdown/classes/ShareService.md +4 -4
- package/docs/markdown/classes/StopImmediatePropagationDirective.md +3 -3
- package/docs/markdown/classes/StopPropagationDirective.md +3 -3
- package/docs/markdown/enumerations/BackgroundPositionOptions.md +4 -4
- package/docs/markdown/enumerations/BackgroundRepeatOptions.md +3 -3
- package/docs/markdown/enumerations/BackgroundSizeOptions.md +5 -5
- package/docs/markdown/enumerations/GlobalStyleOptions.md +4 -4
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/ContenteditableEvent.md +4 -4
- package/docs/markdown/interfaces/IfTruthyDirectiveTemplateContext.md +3 -3
- package/docs/markdown/interfaces/MethodTemplateDirectiveContext.md +3 -3
- package/docs/markdown/interfaces/MethodTemplateDirectiveErrorContext.md +4 -4
- package/docs/markdown/interfaces/ShareData.md +6 -6
- package/docs/markdown/type-aliases/BackgroundPosition.md +2 -2
- package/docs/markdown/type-aliases/BackgroundRepeat.md +2 -2
- package/docs/markdown/type-aliases/BackgroundSize.md +2 -2
- package/docs/wiki/Class.AvatarBackgroundImageDirective.md +39 -102
- package/docs/wiki/Class.BackgroundImageDirective.md +23 -82
- package/docs/wiki/Class.ConfirmClick.md +7 -19
- package/docs/wiki/Class.ContenteditableDirective.md +20 -33
- package/docs/wiki/Class.FullWidthDirective.md +1 -9
- package/docs/wiki/Class.IfTruthyDirective.md +13 -70
- package/docs/wiki/Class.IsDevModeDirective.md +4 -16
- package/docs/wiki/Class.MethodDirective.md +39 -43
- package/docs/wiki/Class.MethodTemplateDirective.md +49 -85
- package/docs/wiki/Class.MovableDividerDirective.md +10 -70
- package/docs/wiki/Class.PreventDefaultDirective.md +2 -2
- package/docs/wiki/Class.ShareButtonDirective.md +8 -8
- package/docs/wiki/Class.ShareService.md +3 -3
- package/docs/wiki/Class.StopImmediatePropagationDirective.md +2 -2
- package/docs/wiki/Class.StopPropagationDirective.md +2 -2
- package/docs/wiki/Enumeration.BackgroundPositionOptions.md +3 -3
- package/docs/wiki/Enumeration.BackgroundRepeatOptions.md +2 -2
- package/docs/wiki/Enumeration.BackgroundSizeOptions.md +4 -4
- package/docs/wiki/Enumeration.GlobalStyleOptions.md +3 -3
- package/docs/wiki/Interface.ContenteditableEvent.md +3 -3
- package/docs/wiki/Interface.IfTruthyDirectiveTemplateContext.md +2 -2
- package/docs/wiki/Interface.MethodTemplateDirectiveContext.md +2 -2
- package/docs/wiki/Interface.MethodTemplateDirectiveErrorContext.md +3 -3
- package/docs/wiki/Interface.ShareData.md +5 -5
- package/docs/wiki/TypeAlias.BackgroundPosition.md +1 -1
- package/docs/wiki/TypeAlias.BackgroundRepeat.md +1 -1
- package/docs/wiki/TypeAlias.BackgroundSize.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-directives.mjs +291 -392
- package/fesm2022/rxap-directives.mjs.map +1 -1
- package/package.json +22 -17
- package/types/rxap-directives.d.ts +272 -0
- package/index.d.ts +0 -14
- package/lib/avatar-background-image.directive.d.ts +0 -14
- package/lib/background-image.directive.d.ts +0 -42
- package/lib/confirm-click.d.ts +0 -10
- package/lib/contenteditable.directive.d.ts +0 -21
- package/lib/full-width.directive.d.ts +0 -6
- package/lib/if-truthy.directive.d.ts +0 -28
- package/lib/is-dev-mode.directive.d.ts +0 -12
- package/lib/method-template.directive.d.ts +0 -46
- package/lib/method.directive.d.ts +0 -29
- package/lib/movable-divider.directive.d.ts +0 -28
- package/lib/prevent-default.directive.d.ts +0 -6
- package/lib/share-button.directive.d.ts +0 -25
- package/lib/stop-immediate-propagation.directive.d.ts +0 -6
- 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
|
-
|
|
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"
|
|
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
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
<a href="#
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
216
|
-
|
|
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
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
</
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
</
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
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>
|
|
406
|
-
|
|
244
|
+
<i>Default value : </i><code>input<string | null | undefined>(null, { alias: 'rxapAvatarBackgroundImage' })</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-
|
|
417
|
-
|
|
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
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
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
|
-
<
|
|
428
|
-
<b>repeat</b>
|
|
278
|
+
<i>Default value : </i><code>input<string | null | undefined>()</code>
|
|
429
279
|
</td>
|
|
430
280
|
</tr>
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
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
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
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
|
-
|
|
448
|
-
|
|
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
|
-
|
|
464
|
-
|
|
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>
|
|
313
|
+
<i>Default value : </i><code>computed(() => {
|
|
314
|
+
const placeholderImageUrl = this.placeholderImageUrl();
|
|
315
|
+
if (placeholderImageUrl) {
|
|
316
|
+
return placeholderImageUrl;
|
|
317
|
+
}
|
|
318
|
+
const name = 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-
|
|
478
|
-
|
|
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
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
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>
|
|
495
|
-
|
|
355
|
+
<i>Default value : </i><code>input<BackgroundPosition | null | undefined>()</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-
|
|
506
|
-
|
|
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
|
-
|
|
511
|
-
|
|
512
|
-
</
|
|
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
|
-
|
|
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<BackgroundRepeat | null | undefined>(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
|
|
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<BackgroundSize | null | undefined>(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
|
|
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
|
-
|
|
577
|
-
|
|
578
|
-
<
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
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
|
-
<
|
|
459
|
+
<i>Default value : </i><code>input<string | null | undefined>()</code>
|
|
595
460
|
</td>
|
|
596
461
|
</tr>
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
</
|
|
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
|
-
|
|
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
|
-
|
|
640
|
-
|
|
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
|
-
|
|
649
|
-
ElementRef,
|
|
650
|
-
Inject,
|
|
651
|
-
Input,
|
|
652
|
-
Renderer2,
|
|
653
|
-
} from '@angular/core';
|
|
654
|
-
import {
|
|
655
|
-
AvatarImageService,
|
|
656
|
-
ImageLoaderService,
|
|
657
|
-
} from '@rxap/services';
|
|
485
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { computed, Directive, inject, input } from '@angular/core';
|
|
486
|
+
import { AvatarImageService } from '@rxap/services';
|
|
658
487
|
import {
|
|
659
488
|
BackgroundImageDirective,
|
|
489
|
+
BackgroundPosition,
|
|
490
|
+
BackgroundRepeat,
|
|
660
491
|
BackgroundRepeatOptions,
|
|
492
|
+
BackgroundSize,
|
|
661
493
|
BackgroundSizeOptions,
|
|
662
494
|
} from './background-image.directive';
|
|
663
495
|
|
|
@@ -666,33 +498,31 @@ import {
|
|
|
666
498
|
standalone: true,
|
|
667
499
|
})
|
|
668
500
|
export class AvatarBackgroundImageDirective extends BackgroundImageDirective {
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
public override
|
|
672
|
-
|
|
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 = this.avatarImage.get({ name });
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
}
|
|
501
|
+
private readonly avatarImage = inject<AvatarImageService>(AvatarImageService);
|
|
502
|
+
|
|
503
|
+
public override readonly imageUrl = input<string | null | undefined>(null, { alias: 'rxapAvatarBackgroundImage' });
|
|
504
|
+
|
|
505
|
+
public override readonly size = input<BackgroundSize | null | undefined>(BackgroundSizeOptions.COVER);
|
|
694
506
|
|
|
507
|
+
public override readonly repeat = input<BackgroundRepeat | null | undefined>(BackgroundRepeatOptions.NO_REPEAT);
|
|
695
508
|
|
|
509
|
+
public override readonly position = input<BackgroundPosition | null | undefined>();
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* The name used to generate a placeholder avatar if no explicit
|
|
513
|
+
* placeholderImageUrl is provided.
|
|
514
|
+
*/
|
|
515
|
+
public readonly name = input<string | null | undefined>();
|
|
516
|
+
|
|
517
|
+
protected override readonly placeholder = computed(() => {
|
|
518
|
+
const placeholderImageUrl = this.placeholderImageUrl();
|
|
519
|
+
if (placeholderImageUrl) {
|
|
520
|
+
return placeholderImageUrl;
|
|
521
|
+
}
|
|
522
|
+
const name = this.name();
|
|
523
|
+
return name ? this.avatarImage.get({ name }) : undefined;
|
|
524
|
+
});
|
|
525
|
+
}
|
|
696
526
|
</code></pre>
|
|
697
527
|
</div>
|
|
698
528
|
|