@rxap/directives 19.1.0 → 19.2.0
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 +32 -0
- package/compodoc/changelog.html +29 -0
- package/compodoc/dependencies.html +4 -4
- package/compodoc/directives/AvatarBackgroundImageDirective.html +5 -5
- package/compodoc/directives/BackgroundImageDirective.html +20 -15
- package/compodoc/directives/ContenteditableDirective.html +15 -5
- package/compodoc/directives/IfTruthyDirective.html +5 -2
- package/compodoc/interfaces/ContenteditableEvent.html +15 -5
- package/compodoc/interfaces/IfTruthyDirectiveTemplateContext.html +3 -0
- package/compodoc/js/menu-wc.js +5 -0
- package/compodoc/js/menu-wc_es5.js +1 -1
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/compodoc/todo.html +269 -0
- package/docs/documentation.json +854 -854
- package/docs/html/classes/AvatarBackgroundImageDirective.html +4 -4
- package/docs/html/classes/BackgroundImageDirective.html +4 -4
- package/docs/html/classes/ConfirmClick.html +2 -2
- package/docs/html/classes/ContenteditableDirective.html +2 -2
- package/docs/html/classes/FullWidthDirective.html +2 -2
- package/docs/html/classes/IfTruthyDirective.html +4 -4
- package/docs/html/classes/IsDevModeDirective.html +4 -4
- package/docs/html/classes/MethodDirective.html +4 -4
- package/docs/html/classes/MethodTemplateDirective.html +5 -5
- package/docs/html/classes/MovableDividerDirective.html +4 -4
- 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 +11 -11
- package/docs/markdown/classes/BackgroundImageDirective.md +10 -10
- package/docs/markdown/classes/ConfirmClick.md +6 -6
- package/docs/markdown/classes/ContenteditableDirective.md +11 -11
- package/docs/markdown/classes/FullWidthDirective.md +3 -3
- package/docs/markdown/classes/IfTruthyDirective.md +10 -10
- package/docs/markdown/classes/IsDevModeDirective.md +5 -5
- package/docs/markdown/classes/MethodDirective.md +19 -19
- package/docs/markdown/classes/MethodTemplateDirective.md +27 -27
- package/docs/markdown/classes/MovableDividerDirective.md +10 -10
- 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 +10 -10
- package/docs/wiki/Class.BackgroundImageDirective.md +9 -9
- package/docs/wiki/Class.ConfirmClick.md +5 -5
- package/docs/wiki/Class.ContenteditableDirective.md +10 -10
- package/docs/wiki/Class.FullWidthDirective.md +2 -2
- package/docs/wiki/Class.IfTruthyDirective.md +9 -9
- package/docs/wiki/Class.IsDevModeDirective.md +4 -4
- package/docs/wiki/Class.MethodDirective.md +18 -18
- package/docs/wiki/Class.MethodTemplateDirective.md +26 -26
- package/docs/wiki/Class.MovableDividerDirective.md +9 -9
- 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 +30 -13
- package/fesm2022/rxap-directives.mjs.map +1 -1
- package/lib/background-image.directive.d.ts +1 -0
- package/package.json +9 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
## 19.2.0 (2026-11-20)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for angular-directives to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
5
|
+
## 19.2.0-dev.0 (2026-06-19)
|
|
6
|
+
|
|
7
|
+
### 🚀 Features
|
|
8
|
+
|
|
9
|
+
- **angular:** enhance share button directive with input/output properties and improved share service
|
|
10
|
+
- add isDevMode directive
|
|
11
|
+
|
|
12
|
+
### 🩹 Fixes
|
|
13
|
+
|
|
14
|
+
- **generators:** read package.json and node_modules from disk, not the virtual Tree
|
|
15
|
+
- **angular-directives:** clearable background, load race, contenteditable save and if-truthy churn
|
|
16
|
+
- **generators:** match package name with .some() in init devDependency coercion
|
|
17
|
+
- update package groups
|
|
18
|
+
- update package groups
|
|
19
|
+
- update package groups
|
|
20
|
+
- peer dependency issue
|
|
21
|
+
- ensure the project name is not included in the project tag list
|
|
22
|
+
- remove @Required decorator
|
|
23
|
+
- add licence file to publishable packages
|
|
24
|
+
- add browser-tailwind as imp dep if project has tailwind configuration
|
|
25
|
+
- add tailwind bundle build target and configurations
|
|
26
|
+
- update package dependency versions
|
|
27
|
+
- restructure and merge mono repos packages, schematics, plugins and nest
|
|
28
|
+
|
|
29
|
+
### ❤️ Thank You
|
|
30
|
+
|
|
31
|
+
- Merzough Münker
|
|
32
|
+
|
|
1
33
|
# Change Log
|
|
2
34
|
|
|
3
35
|
All notable changes to this project will be documented in this file.
|
package/compodoc/changelog.html
CHANGED
|
@@ -82,6 +82,35 @@
|
|
|
82
82
|
<div class="content getting-started">
|
|
83
83
|
<div class="content-data">
|
|
84
84
|
|
|
85
|
+
<h2>19.2.0 (2026-11-20)</h2>
|
|
86
|
+
<p>This was a version bump only for angular-directives to align it with other projects, there were no code changes.</p>
|
|
87
|
+
<h2>19.2.0-dev.0 (2026-06-19)</h2>
|
|
88
|
+
<h3>🚀 Features</h3>
|
|
89
|
+
<ul>
|
|
90
|
+
<li><strong>angular:</strong> enhance share button directive with input/output properties and improved share service</li>
|
|
91
|
+
<li>add isDevMode directive</li>
|
|
92
|
+
</ul>
|
|
93
|
+
<h3>🩹 Fixes</h3>
|
|
94
|
+
<ul>
|
|
95
|
+
<li><strong>generators:</strong> read package.json and node_modules from disk, not the virtual Tree</li>
|
|
96
|
+
<li><strong>angular-directives:</strong> clearable background, load race, contenteditable save and if-truthy churn</li>
|
|
97
|
+
<li><strong>generators:</strong> match package name with .some() in init devDependency coercion</li>
|
|
98
|
+
<li>update package groups</li>
|
|
99
|
+
<li>update package groups</li>
|
|
100
|
+
<li>update package groups</li>
|
|
101
|
+
<li>peer dependency issue</li>
|
|
102
|
+
<li>ensure the project name is not included in the project tag list</li>
|
|
103
|
+
<li>remove @Required decorator</li>
|
|
104
|
+
<li>add licence file to publishable packages</li>
|
|
105
|
+
<li>add browser-tailwind as imp dep if project has tailwind configuration</li>
|
|
106
|
+
<li>add tailwind bundle build target and configurations</li>
|
|
107
|
+
<li>update package dependency versions</li>
|
|
108
|
+
<li>restructure and merge mono repos packages, schematics, plugins and nest</li>
|
|
109
|
+
</ul>
|
|
110
|
+
<h3>❤️ Thank You</h3>
|
|
111
|
+
<ul>
|
|
112
|
+
<li>Merzough Münker</li>
|
|
113
|
+
</ul>
|
|
85
114
|
<h1>Change Log</h1>
|
|
86
115
|
<p>All notable changes to this project will be documented in this file.
|
|
87
116
|
See <a href="https://conventionalcommits.org">Conventional Commits</a> for commit guidelines.</p>
|
|
@@ -115,13 +115,13 @@
|
|
|
115
115
|
<li>
|
|
116
116
|
<b>@angular/core</b> : ^19.2.1</li>
|
|
117
117
|
<li>
|
|
118
|
-
<b>@rxap/pattern</b> : ^1.1.
|
|
118
|
+
<b>@rxap/pattern</b> : ^1.1.15</li>
|
|
119
119
|
<li>
|
|
120
|
-
<b>@rxap/rxjs</b> : ^1.1.
|
|
120
|
+
<b>@rxap/rxjs</b> : ^1.1.17</li>
|
|
121
121
|
<li>
|
|
122
|
-
<b>@rxap/services</b> : ^19.0
|
|
122
|
+
<b>@rxap/services</b> : ^19.1.0</li>
|
|
123
123
|
<li>
|
|
124
|
-
<b>@rxap/utilities</b> : ^16.5.
|
|
124
|
+
<b>@rxap/utilities</b> : ^16.5.1</li>
|
|
125
125
|
<li>
|
|
126
126
|
<b>rxjs</b> : ^7.8.1</li>
|
|
127
127
|
</ul>
|
|
@@ -386,7 +386,7 @@
|
|
|
386
386
|
</tr>
|
|
387
387
|
<tr>
|
|
388
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:
|
|
389
|
+
<div class="io-line">Defined in <code><a href="../directives/BackgroundImageDirective.html#source" target="_self" >BackgroundImageDirective:60</a></code>
|
|
390
390
|
</div>
|
|
391
391
|
</td>
|
|
392
392
|
</tr>
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
</tr>
|
|
415
415
|
<tr>
|
|
416
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:
|
|
417
|
+
<div class="io-line">Defined in <code><a href="../directives/BackgroundImageDirective.html#source" target="_self" >BackgroundImageDirective:69</a></code>
|
|
418
418
|
</div>
|
|
419
419
|
</td>
|
|
420
420
|
</tr>
|
|
@@ -442,7 +442,7 @@
|
|
|
442
442
|
</tr>
|
|
443
443
|
<tr>
|
|
444
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:
|
|
445
|
+
<div class="io-line">Defined in <code><a href="../directives/BackgroundImageDirective.html#source" target="_self" >BackgroundImageDirective:66</a></code>
|
|
446
446
|
</div>
|
|
447
447
|
</td>
|
|
448
448
|
</tr>
|
|
@@ -475,7 +475,7 @@
|
|
|
475
475
|
</tr>
|
|
476
476
|
<tr>
|
|
477
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:
|
|
478
|
+
<div class="io-line">Defined in <code><a href="../directives/BackgroundImageDirective.html#source" target="_self" >BackgroundImageDirective:57</a></code>
|
|
479
479
|
</div>
|
|
480
480
|
</td>
|
|
481
481
|
</tr>
|
|
@@ -503,7 +503,7 @@
|
|
|
503
503
|
</tr>
|
|
504
504
|
<tr>
|
|
505
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:
|
|
506
|
+
<div class="io-line">Defined in <code><a href="../directives/BackgroundImageDirective.html#source" target="_self" >BackgroundImageDirective:63</a></code>
|
|
507
507
|
</div>
|
|
508
508
|
</td>
|
|
509
509
|
</tr>
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
</tr>
|
|
202
202
|
<tr>
|
|
203
203
|
<td class="col-md-4">
|
|
204
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
204
|
+
<div class="io-line">Defined in <a href="" data-line="69" class="link-to-prism">src/lib/background-image.directive.ts:69</a></div>
|
|
205
205
|
</td>
|
|
206
206
|
</tr>
|
|
207
207
|
|
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
</tr>
|
|
282
282
|
<tr>
|
|
283
283
|
<td class="col-md-2" colspan="2">
|
|
284
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
284
|
+
<div class="io-line">Defined in <a href="" data-line="60" class="link-to-prism">src/lib/background-image.directive.ts:60</a></div>
|
|
285
285
|
</td>
|
|
286
286
|
</tr>
|
|
287
287
|
</tbody>
|
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
</tr>
|
|
303
303
|
<tr>
|
|
304
304
|
<td class="col-md-2" colspan="2">
|
|
305
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
305
|
+
<div class="io-line">Defined in <a href="" data-line="69" class="link-to-prism">src/lib/background-image.directive.ts:69</a></div>
|
|
306
306
|
</td>
|
|
307
307
|
</tr>
|
|
308
308
|
</tbody>
|
|
@@ -323,7 +323,7 @@
|
|
|
323
323
|
</tr>
|
|
324
324
|
<tr>
|
|
325
325
|
<td class="col-md-2" colspan="2">
|
|
326
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
326
|
+
<div class="io-line">Defined in <a href="" data-line="66" class="link-to-prism">src/lib/background-image.directive.ts:66</a></div>
|
|
327
327
|
</td>
|
|
328
328
|
</tr>
|
|
329
329
|
</tbody>
|
|
@@ -349,7 +349,7 @@
|
|
|
349
349
|
</tr>
|
|
350
350
|
<tr>
|
|
351
351
|
<td class="col-md-2" colspan="2">
|
|
352
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
352
|
+
<div class="io-line">Defined in <a href="" data-line="57" class="link-to-prism">src/lib/background-image.directive.ts:57</a></div>
|
|
353
353
|
</td>
|
|
354
354
|
</tr>
|
|
355
355
|
</tbody>
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
</tr>
|
|
371
371
|
<tr>
|
|
372
372
|
<td class="col-md-2" colspan="2">
|
|
373
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
373
|
+
<div class="io-line">Defined in <a href="" data-line="63" class="link-to-prism">src/lib/background-image.directive.ts:63</a></div>
|
|
374
374
|
</td>
|
|
375
375
|
</tr>
|
|
376
376
|
</tbody>
|
|
@@ -391,7 +391,6 @@
|
|
|
391
391
|
ElementRef,
|
|
392
392
|
Inject,
|
|
393
393
|
Input,
|
|
394
|
-
isDevMode,
|
|
395
394
|
OnChanges,
|
|
396
395
|
OnInit,
|
|
397
396
|
Renderer2,
|
|
@@ -485,9 +484,8 @@ export class BackgroundImageDirective implements OnChanges, OnInit {
|
|
|
485
484
|
for (const propertyKey of Object.keys(changes)) {
|
|
486
485
|
switch (propertyKey) {
|
|
487
486
|
case 'imageUrl':
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
}
|
|
487
|
+
// call unconditionally so clearing the value (null/empty) is handled
|
|
488
|
+
this.imageUrlChange(changes['imageUrl'].currentValue);
|
|
491
489
|
break;
|
|
492
490
|
|
|
493
491
|
case 'size':
|
|
@@ -525,7 +523,11 @@ export class BackgroundImageDirective implements OnChanges, OnInit {
|
|
|
525
523
|
this.renderer.setStyle(this.host.nativeElement, 'background-size', size);
|
|
526
524
|
}
|
|
527
525
|
|
|
528
|
-
private
|
|
526
|
+
private _latestImageUrl: string | null | undefined;
|
|
527
|
+
|
|
528
|
+
private async imageUrlChange(imageUrl: string | null | undefined): Promise<void> {
|
|
529
|
+
// track the most recently requested url so out-of-order loads can be ignored
|
|
530
|
+
this._latestImageUrl = imageUrl;
|
|
529
531
|
if (this.placeholderImageUrl) {
|
|
530
532
|
this.renderer.setStyle(
|
|
531
533
|
this.host.nativeElement,
|
|
@@ -535,15 +537,18 @@ export class BackgroundImageDirective implements OnChanges, OnInit {
|
|
|
535
537
|
}
|
|
536
538
|
if (imageUrl) {
|
|
537
539
|
await this.imageLoader.load(imageUrl);
|
|
540
|
+
// a newer imageUrl was requested while this one was loading - drop the stale result
|
|
541
|
+
if (this._latestImageUrl !== imageUrl) {
|
|
542
|
+
return;
|
|
543
|
+
}
|
|
538
544
|
this.renderer.setStyle(
|
|
539
545
|
this.host.nativeElement,
|
|
540
546
|
'background-image',
|
|
541
547
|
`url("${ imageUrl }")`,
|
|
542
548
|
);
|
|
543
|
-
} else {
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
}
|
|
549
|
+
} else if (!this.placeholderImageUrl) {
|
|
550
|
+
// clearing the image and no placeholder to fall back to
|
|
551
|
+
this.renderer.removeStyle(this.host.nativeElement, 'background-image');
|
|
547
552
|
}
|
|
548
553
|
}
|
|
549
554
|
}
|
|
@@ -841,11 +841,21 @@ export class ContenteditableDirective {
|
|
|
841
841
|
parameters: this.parameters,
|
|
842
842
|
};
|
|
843
843
|
this.change.emit(event);
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
844
|
+
try {
|
|
845
|
+
const result = await this.method?.call(event);
|
|
846
|
+
if (result && typeof result === 'string') {
|
|
847
|
+
// the handler returned a canonical value - apply and remember it
|
|
848
|
+
this.initial = this.elementRef.nativeElement.innerText = result;
|
|
849
|
+
} else {
|
|
850
|
+
// successful save without a return value - keep the user's text and
|
|
851
|
+
// update the baseline (do NOT revert what was just typed)
|
|
852
|
+
this.initial = value;
|
|
853
|
+
}
|
|
854
|
+
} catch {
|
|
855
|
+
// the save failed - revert to the last known good value if available
|
|
856
|
+
if (this.initial) {
|
|
857
|
+
this.elementRef.nativeElement.innerText = this.initial;
|
|
858
|
+
}
|
|
849
859
|
}
|
|
850
860
|
}
|
|
851
861
|
}
|
|
@@ -416,8 +416,8 @@
|
|
|
416
416
|
|
|
417
417
|
<tr>
|
|
418
418
|
<td class="col-md-4">
|
|
419
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
420
|
-
class="link-to-prism">src/lib/if-truthy.directive.ts:
|
|
419
|
+
<div class="io-line">Defined in <a href="" data-line="81"
|
|
420
|
+
class="link-to-prism">src/lib/if-truthy.directive.ts:81</a></div>
|
|
421
421
|
</td>
|
|
422
422
|
</tr>
|
|
423
423
|
|
|
@@ -634,6 +634,9 @@ export class IfTruthyDirective<Data, Parameters = any> implements OnC
|
|
|
634
634
|
this.viewContainerRef.createEmbeddedView(this.templateRef, { $implicit: result });
|
|
635
635
|
}
|
|
636
636
|
|
|
637
|
+
// remember the last applied result so unchanged values don't rebuild the view
|
|
638
|
+
this._last = result;
|
|
639
|
+
|
|
637
640
|
}
|
|
638
641
|
|
|
639
642
|
this.cdr.detectChanges();
|
|
@@ -300,11 +300,21 @@ export class ContenteditableDirective {
|
|
|
300
300
|
parameters: this.parameters,
|
|
301
301
|
};
|
|
302
302
|
this.change.emit(event);
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
303
|
+
try {
|
|
304
|
+
const result = await this.method?.call(event);
|
|
305
|
+
if (result && typeof result === 'string') {
|
|
306
|
+
// the handler returned a canonical value - apply and remember it
|
|
307
|
+
this.initial = this.elementRef.nativeElement.innerText = result;
|
|
308
|
+
} else {
|
|
309
|
+
// successful save without a return value - keep the user's text and
|
|
310
|
+
// update the baseline (do NOT revert what was just typed)
|
|
311
|
+
this.initial = value;
|
|
312
|
+
}
|
|
313
|
+
} catch {
|
|
314
|
+
// the save failed - revert to the last known good value if available
|
|
315
|
+
if (this.initial) {
|
|
316
|
+
this.elementRef.nativeElement.innerText = this.initial;
|
|
317
|
+
}
|
|
308
318
|
}
|
|
309
319
|
}
|
|
310
320
|
}
|
|
@@ -266,6 +266,9 @@ export class IfTruthyDirective<Data, Parameters = any> implements OnC
|
|
|
266
266
|
this.viewContainerRef.createEmbeddedView(this.templateRef, { $implicit: result });
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
+
// remember the last applied result so unchanged values don't rebuild the view
|
|
270
|
+
this._last = result;
|
|
271
|
+
|
|
269
272
|
}
|
|
270
273
|
|
|
271
274
|
this.cdr.detectChanges();
|
package/compodoc/js/menu-wc.js
CHANGED
|
@@ -42,6 +42,11 @@ customElements.define('compodoc-menu', class extends HTMLElement {
|
|
|
42
42
|
<a href="license.html" data-type="chapter-link">
|
|
43
43
|
<span class="icon ion-ios-paper"></span>LICENSE
|
|
44
44
|
</a>
|
|
45
|
+
</li>
|
|
46
|
+
<li class="link">
|
|
47
|
+
<a href="todo.html" data-type="chapter-link">
|
|
48
|
+
<span class="icon ion-ios-paper"></span>TODO
|
|
49
|
+
</a>
|
|
45
50
|
</li>
|
|
46
51
|
<li class="link">
|
|
47
52
|
<a href="dependencies.html" data-type="chapter-link">
|
|
@@ -33,7 +33,7 @@ customElements.define('compodoc-menu', /*#__PURE__*/function (_HTMLElement) {
|
|
|
33
33
|
}, {
|
|
34
34
|
key: "render",
|
|
35
35
|
value: function render(isNormalMode) {
|
|
36
|
-
var tp = lithtml.html("\n <nav>\n <ul class=\"list\">\n <li class=\"title\">\n <a href=\"index.html\" data-type=\"index-link\">angular-directives</a>\n </li>\n\n <li class=\"divider\"></li>\n ".concat(isNormalMode ? "<div id=\"book-search-input\" role=\"search\"><input type=\"text\" placeholder=\"Type to search\"></div>" : '', "\n <li class=\"chapter\">\n <a data-type=\"chapter-link\" href=\"index.html\"><span class=\"icon ion-ios-home\"></span>Getting started</a>\n <ul class=\"links\">\n <li class=\"link\">\n <a href=\"overview.html\" data-type=\"chapter-link\">\n <span class=\"icon ion-ios-keypad\"></span>Overview\n </a>\n </li>\n <li class=\"link\">\n <a href=\"index.html\" data-type=\"chapter-link\">\n <span class=\"icon ion-ios-paper\"></span>README\n </a>\n </li>\n <li class=\"link\">\n <a href=\"changelog.html\" data-type=\"chapter-link\">\n <span class=\"icon ion-ios-paper\"></span>CHANGELOG\n </a>\n </li>\n <li class=\"link\">\n <a href=\"license.html\" data-type=\"chapter-link\">\n <span class=\"icon ion-ios-paper\"></span>LICENSE\n </a>\n </li>\n <li class=\"link\">\n <a href=\"dependencies.html\" data-type=\"chapter-link\">\n <span class=\"icon ion-ios-list\"></span>Dependencies\n </a>\n </li>\n <li class=\"link\">\n <a href=\"properties.html\" data-type=\"chapter-link\">\n <span class=\"icon ion-ios-apps\"></span>Properties\n </a>\n </li>\n </ul>\n </li>\n <li class=\"chapter\">\n <div class=\"simple menu-toggler\" data-bs-toggle=\"collapse\" ").concat(isNormalMode ? 'data-bs-target="#directives-links"' : 'data-bs-target="#xs-directives-links"', ">\n <span class=\"icon ion-md-code-working\"></span>\n <span>Directives</span>\n <span class=\"icon ion-ios-arrow-down\"></span>\n </div>\n <ul class=\"links collapse \" ").concat(isNormalMode ? 'id="directives-links"' : 'id="xs-directives-links"', ">\n <li class=\"link\">\n <a href=\"directives/AvatarBackgroundImageDirective.html\" data-type=\"entity-link\" >AvatarBackgroundImageDirective</a>\n </li>\n <li class=\"link\">\n <a href=\"directives/BackgroundImageDirective.html\" data-type=\"entity-link\" >BackgroundImageDirective</a>\n </li>\n <li class=\"link\">\n <a href=\"directives/ContenteditableDirective.html\" data-type=\"entity-link\" >ContenteditableDirective</a>\n </li>\n <li class=\"link\">\n <a href=\"directives/FullWidthDirective.html\" data-type=\"entity-link\" >FullWidthDirective</a>\n </li>\n <li class=\"link\">\n <a href=\"directives/IfTruthyDirective.html\" data-type=\"entity-link\" >IfTruthyDirective</a>\n </li>\n <li class=\"link\">\n <a href=\"directives/IsDevModeDirective.html\" data-type=\"entity-link\" >IsDevModeDirective</a>\n </li>\n <li class=\"link\">\n <a href=\"directives/MethodDirective.html\" data-type=\"entity-link\" >MethodDirective</a>\n </li>\n <li class=\"link\">\n <a href=\"directives/MethodTemplateDirective.html\" data-type=\"entity-link\" >MethodTemplateDirective</a>\n </li>\n <li class=\"link\">\n <a href=\"directives/MovableDividerDirective.html\" data-type=\"entity-link\" >MovableDividerDirective</a>\n </li>\n <li class=\"link\">\n <a href=\"directives/PreventDefaultDirective.html\" data-type=\"entity-link\" >PreventDefaultDirective</a>\n </li>\n <li class=\"link\">\n <a href=\"directives/ShareButtonDirective.html\" data-type=\"entity-link\" >ShareButtonDirective</a>\n </li>\n <li class=\"link\">\n <a href=\"directives/StopImmediatePropagationDirective.html\" data-type=\"entity-link\" >StopImmediatePropagationDirective</a>\n </li>\n <li class=\"link\">\n <a href=\"directives/StopPropagationDirective.html\" data-type=\"entity-link\" >StopPropagationDirective</a>\n </li>\n </ul>\n </li>\n <li class=\"chapter\">\n <div class=\"simple menu-toggler\" data-bs-toggle=\"collapse\" ").concat(isNormalMode ? 'data-bs-target="#injectables-links"' : 'data-bs-target="#xs-injectables-links"', ">\n <span class=\"icon ion-md-arrow-round-down\"></span>\n <span>Injectables</span>\n <span class=\"icon ion-ios-arrow-down\"></span>\n </div>\n <ul class=\"links collapse \" ").concat(isNormalMode ? 'id="injectables-links"' : 'id="xs-injectables-links"', ">\n <li class=\"link\">\n <a href=\"injectables/ConfirmClick.html\" data-type=\"entity-link\" >ConfirmClick</a>\n </li>\n <li class=\"link\">\n <a href=\"injectables/ShareService.html\" data-type=\"entity-link\" >ShareService</a>\n </li>\n </ul>\n </li>\n <li class=\"chapter\">\n <div class=\"simple menu-toggler\" data-bs-toggle=\"collapse\" ").concat(isNormalMode ? 'data-bs-target="#interfaces-links"' : 'data-bs-target="#xs-interfaces-links"', ">\n <span class=\"icon ion-md-information-circle-outline\"></span>\n <span>Interfaces</span>\n <span class=\"icon ion-ios-arrow-down\"></span>\n </div>\n <ul class=\"links collapse \" ").concat(isNormalMode ? ' id="interfaces-links"' : 'id="xs-interfaces-links"', ">\n <li class=\"link\">\n <a href=\"interfaces/ContenteditableEvent.html\" data-type=\"entity-link\" >ContenteditableEvent</a>\n </li>\n <li class=\"link\">\n <a href=\"interfaces/IfTruthyDirectiveTemplateContext.html\" data-type=\"entity-link\" >IfTruthyDirectiveTemplateContext</a>\n </li>\n <li class=\"link\">\n <a href=\"interfaces/MethodTemplateDirectiveContext.html\" data-type=\"entity-link\" >MethodTemplateDirectiveContext</a>\n </li>\n <li class=\"link\">\n <a href=\"interfaces/MethodTemplateDirectiveErrorContext.html\" data-type=\"entity-link\" >MethodTemplateDirectiveErrorContext</a>\n </li>\n <li class=\"link\">\n <a href=\"interfaces/ShareData.html\" data-type=\"entity-link\" >ShareData</a>\n </li>\n </ul>\n </li>\n <li class=\"chapter\">\n <div class=\"simple menu-toggler\" data-bs-toggle=\"collapse\" ").concat(isNormalMode ? 'data-bs-target="#miscellaneous-links"' : 'data-bs-target="#xs-miscellaneous-links"', ">\n <span class=\"icon ion-ios-cube\"></span>\n <span>Miscellaneous</span>\n <span class=\"icon ion-ios-arrow-down\"></span>\n </div>\n <ul class=\"links collapse \" ").concat(isNormalMode ? 'id="miscellaneous-links"' : 'id="xs-miscellaneous-links"', ">\n <li class=\"link\">\n <a href=\"miscellaneous/enumerations.html\" data-type=\"entity-link\">Enums</a>\n </li>\n <li class=\"link\">\n <a href=\"miscellaneous/functions.html\" data-type=\"entity-link\">Functions</a>\n </li>\n <li class=\"link\">\n <a href=\"miscellaneous/typealiases.html\" data-type=\"entity-link\">Type aliases</a>\n </li>\n <li class=\"link\">\n <a href=\"miscellaneous/variables.html\" data-type=\"entity-link\">Variables</a>\n </li>\n </ul>\n </li>\n <li class=\"divider\"></li>\n <li class=\"copyright\">\n Documentation generated using <a href=\"https://compodoc.app/\" target=\"_blank\" rel=\"noopener noreferrer\">\n <img data-src=\"images/compodoc-vectorise.png\" class=\"img-responsive\" data-type=\"compodoc-logo\">\n </a>\n </li>\n </ul>\n </nav>\n "));
|
|
36
|
+
var tp = lithtml.html("\n <nav>\n <ul class=\"list\">\n <li class=\"title\">\n <a href=\"index.html\" data-type=\"index-link\">angular-directives</a>\n </li>\n\n <li class=\"divider\"></li>\n ".concat(isNormalMode ? "<div id=\"book-search-input\" role=\"search\"><input type=\"text\" placeholder=\"Type to search\"></div>" : '', "\n <li class=\"chapter\">\n <a data-type=\"chapter-link\" href=\"index.html\"><span class=\"icon ion-ios-home\"></span>Getting started</a>\n <ul class=\"links\">\n <li class=\"link\">\n <a href=\"overview.html\" data-type=\"chapter-link\">\n <span class=\"icon ion-ios-keypad\"></span>Overview\n </a>\n </li>\n <li class=\"link\">\n <a href=\"index.html\" data-type=\"chapter-link\">\n <span class=\"icon ion-ios-paper\"></span>README\n </a>\n </li>\n <li class=\"link\">\n <a href=\"changelog.html\" data-type=\"chapter-link\">\n <span class=\"icon ion-ios-paper\"></span>CHANGELOG\n </a>\n </li>\n <li class=\"link\">\n <a href=\"license.html\" data-type=\"chapter-link\">\n <span class=\"icon ion-ios-paper\"></span>LICENSE\n </a>\n </li>\n <li class=\"link\">\n <a href=\"todo.html\" data-type=\"chapter-link\">\n <span class=\"icon ion-ios-paper\"></span>TODO\n </a>\n </li>\n <li class=\"link\">\n <a href=\"dependencies.html\" data-type=\"chapter-link\">\n <span class=\"icon ion-ios-list\"></span>Dependencies\n </a>\n </li>\n <li class=\"link\">\n <a href=\"properties.html\" data-type=\"chapter-link\">\n <span class=\"icon ion-ios-apps\"></span>Properties\n </a>\n </li>\n </ul>\n </li>\n <li class=\"chapter\">\n <div class=\"simple menu-toggler\" data-bs-toggle=\"collapse\" ").concat(isNormalMode ? 'data-bs-target="#directives-links"' : 'data-bs-target="#xs-directives-links"', ">\n <span class=\"icon ion-md-code-working\"></span>\n <span>Directives</span>\n <span class=\"icon ion-ios-arrow-down\"></span>\n </div>\n <ul class=\"links collapse \" ").concat(isNormalMode ? 'id="directives-links"' : 'id="xs-directives-links"', ">\n <li class=\"link\">\n <a href=\"directives/AvatarBackgroundImageDirective.html\" data-type=\"entity-link\" >AvatarBackgroundImageDirective</a>\n </li>\n <li class=\"link\">\n <a href=\"directives/BackgroundImageDirective.html\" data-type=\"entity-link\" >BackgroundImageDirective</a>\n </li>\n <li class=\"link\">\n <a href=\"directives/ContenteditableDirective.html\" data-type=\"entity-link\" >ContenteditableDirective</a>\n </li>\n <li class=\"link\">\n <a href=\"directives/FullWidthDirective.html\" data-type=\"entity-link\" >FullWidthDirective</a>\n </li>\n <li class=\"link\">\n <a href=\"directives/IfTruthyDirective.html\" data-type=\"entity-link\" >IfTruthyDirective</a>\n </li>\n <li class=\"link\">\n <a href=\"directives/IsDevModeDirective.html\" data-type=\"entity-link\" >IsDevModeDirective</a>\n </li>\n <li class=\"link\">\n <a href=\"directives/MethodDirective.html\" data-type=\"entity-link\" >MethodDirective</a>\n </li>\n <li class=\"link\">\n <a href=\"directives/MethodTemplateDirective.html\" data-type=\"entity-link\" >MethodTemplateDirective</a>\n </li>\n <li class=\"link\">\n <a href=\"directives/MovableDividerDirective.html\" data-type=\"entity-link\" >MovableDividerDirective</a>\n </li>\n <li class=\"link\">\n <a href=\"directives/PreventDefaultDirective.html\" data-type=\"entity-link\" >PreventDefaultDirective</a>\n </li>\n <li class=\"link\">\n <a href=\"directives/ShareButtonDirective.html\" data-type=\"entity-link\" >ShareButtonDirective</a>\n </li>\n <li class=\"link\">\n <a href=\"directives/StopImmediatePropagationDirective.html\" data-type=\"entity-link\" >StopImmediatePropagationDirective</a>\n </li>\n <li class=\"link\">\n <a href=\"directives/StopPropagationDirective.html\" data-type=\"entity-link\" >StopPropagationDirective</a>\n </li>\n </ul>\n </li>\n <li class=\"chapter\">\n <div class=\"simple menu-toggler\" data-bs-toggle=\"collapse\" ").concat(isNormalMode ? 'data-bs-target="#injectables-links"' : 'data-bs-target="#xs-injectables-links"', ">\n <span class=\"icon ion-md-arrow-round-down\"></span>\n <span>Injectables</span>\n <span class=\"icon ion-ios-arrow-down\"></span>\n </div>\n <ul class=\"links collapse \" ").concat(isNormalMode ? 'id="injectables-links"' : 'id="xs-injectables-links"', ">\n <li class=\"link\">\n <a href=\"injectables/ConfirmClick.html\" data-type=\"entity-link\" >ConfirmClick</a>\n </li>\n <li class=\"link\">\n <a href=\"injectables/ShareService.html\" data-type=\"entity-link\" >ShareService</a>\n </li>\n </ul>\n </li>\n <li class=\"chapter\">\n <div class=\"simple menu-toggler\" data-bs-toggle=\"collapse\" ").concat(isNormalMode ? 'data-bs-target="#interfaces-links"' : 'data-bs-target="#xs-interfaces-links"', ">\n <span class=\"icon ion-md-information-circle-outline\"></span>\n <span>Interfaces</span>\n <span class=\"icon ion-ios-arrow-down\"></span>\n </div>\n <ul class=\"links collapse \" ").concat(isNormalMode ? ' id="interfaces-links"' : 'id="xs-interfaces-links"', ">\n <li class=\"link\">\n <a href=\"interfaces/ContenteditableEvent.html\" data-type=\"entity-link\" >ContenteditableEvent</a>\n </li>\n <li class=\"link\">\n <a href=\"interfaces/IfTruthyDirectiveTemplateContext.html\" data-type=\"entity-link\" >IfTruthyDirectiveTemplateContext</a>\n </li>\n <li class=\"link\">\n <a href=\"interfaces/MethodTemplateDirectiveContext.html\" data-type=\"entity-link\" >MethodTemplateDirectiveContext</a>\n </li>\n <li class=\"link\">\n <a href=\"interfaces/MethodTemplateDirectiveErrorContext.html\" data-type=\"entity-link\" >MethodTemplateDirectiveErrorContext</a>\n </li>\n <li class=\"link\">\n <a href=\"interfaces/ShareData.html\" data-type=\"entity-link\" >ShareData</a>\n </li>\n </ul>\n </li>\n <li class=\"chapter\">\n <div class=\"simple menu-toggler\" data-bs-toggle=\"collapse\" ").concat(isNormalMode ? 'data-bs-target="#miscellaneous-links"' : 'data-bs-target="#xs-miscellaneous-links"', ">\n <span class=\"icon ion-ios-cube\"></span>\n <span>Miscellaneous</span>\n <span class=\"icon ion-ios-arrow-down\"></span>\n </div>\n <ul class=\"links collapse \" ").concat(isNormalMode ? 'id="miscellaneous-links"' : 'id="xs-miscellaneous-links"', ">\n <li class=\"link\">\n <a href=\"miscellaneous/enumerations.html\" data-type=\"entity-link\">Enums</a>\n </li>\n <li class=\"link\">\n <a href=\"miscellaneous/functions.html\" data-type=\"entity-link\">Functions</a>\n </li>\n <li class=\"link\">\n <a href=\"miscellaneous/typealiases.html\" data-type=\"entity-link\">Type aliases</a>\n </li>\n <li class=\"link\">\n <a href=\"miscellaneous/variables.html\" data-type=\"entity-link\">Variables</a>\n </li>\n </ul>\n </li>\n <li class=\"divider\"></li>\n <li class=\"copyright\">\n Documentation generated using <a href=\"https://compodoc.app/\" target=\"_blank\" rel=\"noopener noreferrer\">\n <img data-src=\"images/compodoc-vectorise.png\" class=\"img-responsive\" data-type=\"compodoc-logo\">\n </a>\n </li>\n </ul>\n </nav>\n "));
|
|
37
37
|
this.innerHTML = tp.strings;
|
|
38
38
|
}
|
|
39
39
|
}]);
|