@rxap/directives 19.1.0 → 19.2.0-dev.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 +28 -0
- package/compodoc/changelog.html +27 -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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Class: StopImmediatePropagationDirective
|
|
4
4
|
|
|
5
|
-
Defined in: [stop-immediate-propagation.directive.ts:10](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [stop-immediate-propagation.directive.ts:10](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/stop-immediate-propagation.directive.ts#L10)
|
|
6
6
|
|
|
7
7
|
## Constructors
|
|
8
8
|
|
|
@@ -20,7 +20,7 @@ Defined in: [stop-immediate-propagation.directive.ts:10](https://gitlab.com/rxap
|
|
|
20
20
|
|
|
21
21
|
> **onClick**(`$event`): `void`
|
|
22
22
|
|
|
23
|
-
Defined in: [stop-immediate-propagation.directive.ts:13](https://gitlab.com/rxap/packages/-/blob/
|
|
23
|
+
Defined in: [stop-immediate-propagation.directive.ts:13](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/stop-immediate-propagation.directive.ts#L13)
|
|
24
24
|
|
|
25
25
|
#### Parameters
|
|
26
26
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Class: StopPropagationDirective
|
|
4
4
|
|
|
5
|
-
Defined in: [stop-propagation.directive.ts:10](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [stop-propagation.directive.ts:10](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/stop-propagation.directive.ts#L10)
|
|
6
6
|
|
|
7
7
|
## Constructors
|
|
8
8
|
|
|
@@ -20,7 +20,7 @@ Defined in: [stop-propagation.directive.ts:10](https://gitlab.com/rxap/packages/
|
|
|
20
20
|
|
|
21
21
|
> **onClick**(`$event`): `void`
|
|
22
22
|
|
|
23
|
-
Defined in: [stop-propagation.directive.ts:13](https://gitlab.com/rxap/packages/-/blob/
|
|
23
|
+
Defined in: [stop-propagation.directive.ts:13](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/stop-propagation.directive.ts#L13)
|
|
24
24
|
|
|
25
25
|
#### Parameters
|
|
26
26
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Enumeration: BackgroundPositionOptions
|
|
4
4
|
|
|
5
|
-
Defined in: [background-image.directive.ts:
|
|
5
|
+
Defined in: [background-image.directive.ts:41](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/background-image.directive.ts#L41)
|
|
6
6
|
|
|
7
7
|
## Enumeration Members
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ Defined in: [background-image.directive.ts:42](https://gitlab.com/rxap/packages/
|
|
|
10
10
|
|
|
11
11
|
> **CENTER**: `"center"`
|
|
12
12
|
|
|
13
|
-
Defined in: [background-image.directive.ts:
|
|
13
|
+
Defined in: [background-image.directive.ts:42](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/background-image.directive.ts#L42)
|
|
14
14
|
|
|
15
15
|
***
|
|
16
16
|
|
|
@@ -18,4 +18,4 @@ Defined in: [background-image.directive.ts:43](https://gitlab.com/rxap/packages/
|
|
|
18
18
|
|
|
19
19
|
> **CENTER\_CENTER**: `"center center"`
|
|
20
20
|
|
|
21
|
-
Defined in: [background-image.directive.ts:
|
|
21
|
+
Defined in: [background-image.directive.ts:43](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/background-image.directive.ts#L43)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Enumeration: BackgroundRepeatOptions
|
|
4
4
|
|
|
5
|
-
Defined in: [background-image.directive.ts:
|
|
5
|
+
Defined in: [background-image.directive.ts:33](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/background-image.directive.ts#L33)
|
|
6
6
|
|
|
7
7
|
## Enumeration Members
|
|
8
8
|
|
|
@@ -10,4 +10,4 @@ Defined in: [background-image.directive.ts:34](https://gitlab.com/rxap/packages/
|
|
|
10
10
|
|
|
11
11
|
> **NO\_REPEAT**: `"no-repeat"`
|
|
12
12
|
|
|
13
|
-
Defined in: [background-image.directive.ts:
|
|
13
|
+
Defined in: [background-image.directive.ts:34](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/background-image.directive.ts#L34)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Enumeration: BackgroundSizeOptions
|
|
4
4
|
|
|
5
|
-
Defined in: [background-image.directive.ts:
|
|
5
|
+
Defined in: [background-image.directive.ts:20](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/background-image.directive.ts#L20)
|
|
6
6
|
|
|
7
7
|
## Enumeration Members
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ Defined in: [background-image.directive.ts:21](https://gitlab.com/rxap/packages/
|
|
|
10
10
|
|
|
11
11
|
> **AUTO**: `"auto"`
|
|
12
12
|
|
|
13
|
-
Defined in: [background-image.directive.ts:
|
|
13
|
+
Defined in: [background-image.directive.ts:21](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/background-image.directive.ts#L21)
|
|
14
14
|
|
|
15
15
|
***
|
|
16
16
|
|
|
@@ -18,7 +18,7 @@ Defined in: [background-image.directive.ts:22](https://gitlab.com/rxap/packages/
|
|
|
18
18
|
|
|
19
19
|
> **CONTAIN**: `"contain"`
|
|
20
20
|
|
|
21
|
-
Defined in: [background-image.directive.ts:
|
|
21
|
+
Defined in: [background-image.directive.ts:23](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/background-image.directive.ts#L23)
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
@@ -26,4 +26,4 @@ Defined in: [background-image.directive.ts:24](https://gitlab.com/rxap/packages/
|
|
|
26
26
|
|
|
27
27
|
> **COVER**: `"cover"`
|
|
28
28
|
|
|
29
|
-
Defined in: [background-image.directive.ts:
|
|
29
|
+
Defined in: [background-image.directive.ts:22](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/background-image.directive.ts#L22)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Enumeration: GlobalStyleOptions
|
|
4
4
|
|
|
5
|
-
Defined in: [background-image.directive.ts:
|
|
5
|
+
Defined in: [background-image.directive.ts:13](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/background-image.directive.ts#L13)
|
|
6
6
|
|
|
7
7
|
## Enumeration Members
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ Defined in: [background-image.directive.ts:14](https://gitlab.com/rxap/packages/
|
|
|
10
10
|
|
|
11
11
|
> **INHERIT**: `"inherit"`
|
|
12
12
|
|
|
13
|
-
Defined in: [background-image.directive.ts:
|
|
13
|
+
Defined in: [background-image.directive.ts:15](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/background-image.directive.ts#L15)
|
|
14
14
|
|
|
15
15
|
***
|
|
16
16
|
|
|
@@ -18,4 +18,4 @@ Defined in: [background-image.directive.ts:16](https://gitlab.com/rxap/packages/
|
|
|
18
18
|
|
|
19
19
|
> **INITIAL**: `"initial"`
|
|
20
20
|
|
|
21
|
-
Defined in: [background-image.directive.ts:
|
|
21
|
+
Defined in: [background-image.directive.ts:14](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/background-image.directive.ts#L14)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: ContenteditableEvent
|
|
4
4
|
|
|
5
|
-
Defined in: [contenteditable.directive.ts:13](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [contenteditable.directive.ts:13](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/contenteditable.directive.ts#L13)
|
|
6
6
|
|
|
7
7
|
## Properties
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ Defined in: [contenteditable.directive.ts:13](https://gitlab.com/rxap/packages/-
|
|
|
10
10
|
|
|
11
11
|
> `optional` **parameters**: `any`
|
|
12
12
|
|
|
13
|
-
Defined in: [contenteditable.directive.ts:15](https://gitlab.com/rxap/packages/-/blob/
|
|
13
|
+
Defined in: [contenteditable.directive.ts:15](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/contenteditable.directive.ts#L15)
|
|
14
14
|
|
|
15
15
|
***
|
|
16
16
|
|
|
@@ -18,4 +18,4 @@ Defined in: [contenteditable.directive.ts:15](https://gitlab.com/rxap/packages/-
|
|
|
18
18
|
|
|
19
19
|
> **value**: `string`
|
|
20
20
|
|
|
21
|
-
Defined in: [contenteditable.directive.ts:14](https://gitlab.com/rxap/packages/-/blob/
|
|
21
|
+
Defined in: [contenteditable.directive.ts:14](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/contenteditable.directive.ts#L14)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: IfTruthyDirectiveTemplateContext\<Data\>
|
|
4
4
|
|
|
5
|
-
Defined in: [if-truthy.directive.ts:12](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [if-truthy.directive.ts:12](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/if-truthy.directive.ts#L12)
|
|
6
6
|
|
|
7
7
|
## Type Parameters
|
|
8
8
|
|
|
@@ -14,4 +14,4 @@ Defined in: [if-truthy.directive.ts:12](https://gitlab.com/rxap/packages/-/blob/
|
|
|
14
14
|
|
|
15
15
|
> **$implicit**: `Data`
|
|
16
16
|
|
|
17
|
-
Defined in: [if-truthy.directive.ts:13](https://gitlab.com/rxap/packages/-/blob/
|
|
17
|
+
Defined in: [if-truthy.directive.ts:13](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/if-truthy.directive.ts#L13)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: MethodTemplateDirectiveContext\<ReturnType\>
|
|
4
4
|
|
|
5
|
-
Defined in: [method-template.directive.ts:19](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [method-template.directive.ts:19](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/method-template.directive.ts#L19)
|
|
6
6
|
|
|
7
7
|
## Type Parameters
|
|
8
8
|
|
|
@@ -14,4 +14,4 @@ Defined in: [method-template.directive.ts:19](https://gitlab.com/rxap/packages/-
|
|
|
14
14
|
|
|
15
15
|
> **$implicit**: `ReturnType`
|
|
16
16
|
|
|
17
|
-
Defined in: [method-template.directive.ts:20](https://gitlab.com/rxap/packages/-/blob/
|
|
17
|
+
Defined in: [method-template.directive.ts:20](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/method-template.directive.ts#L20)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: MethodTemplateDirectiveErrorContext
|
|
4
4
|
|
|
5
|
-
Defined in: [method-template.directive.ts:23](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [method-template.directive.ts:23](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/method-template.directive.ts#L23)
|
|
6
6
|
|
|
7
7
|
## Properties
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ Defined in: [method-template.directive.ts:23](https://gitlab.com/rxap/packages/-
|
|
|
10
10
|
|
|
11
11
|
> **$implicit**: `Error`
|
|
12
12
|
|
|
13
|
-
Defined in: [method-template.directive.ts:24](https://gitlab.com/rxap/packages/-/blob/
|
|
13
|
+
Defined in: [method-template.directive.ts:24](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/method-template.directive.ts#L24)
|
|
14
14
|
|
|
15
15
|
***
|
|
16
16
|
|
|
@@ -18,4 +18,4 @@ Defined in: [method-template.directive.ts:24](https://gitlab.com/rxap/packages/-
|
|
|
18
18
|
|
|
19
19
|
> **message**: `string`
|
|
20
20
|
|
|
21
|
-
Defined in: [method-template.directive.ts:25](https://gitlab.com/rxap/packages/-/blob/
|
|
21
|
+
Defined in: [method-template.directive.ts:25](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/method-template.directive.ts#L25)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: ShareData
|
|
4
4
|
|
|
5
|
-
Defined in: [share-button.directive.ts:10](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [share-button.directive.ts:10](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/share-button.directive.ts#L10)
|
|
6
6
|
|
|
7
7
|
## Properties
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ Defined in: [share-button.directive.ts:10](https://gitlab.com/rxap/packages/-/bl
|
|
|
10
10
|
|
|
11
11
|
> `optional` **files**: `File`[]
|
|
12
12
|
|
|
13
|
-
Defined in: [share-button.directive.ts:11](https://gitlab.com/rxap/packages/-/blob/
|
|
13
|
+
Defined in: [share-button.directive.ts:11](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/share-button.directive.ts#L11)
|
|
14
14
|
|
|
15
15
|
***
|
|
16
16
|
|
|
@@ -18,7 +18,7 @@ Defined in: [share-button.directive.ts:11](https://gitlab.com/rxap/packages/-/bl
|
|
|
18
18
|
|
|
19
19
|
> `optional` **text**: `string`
|
|
20
20
|
|
|
21
|
-
Defined in: [share-button.directive.ts:12](https://gitlab.com/rxap/packages/-/blob/
|
|
21
|
+
Defined in: [share-button.directive.ts:12](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/share-button.directive.ts#L12)
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
@@ -26,7 +26,7 @@ Defined in: [share-button.directive.ts:12](https://gitlab.com/rxap/packages/-/bl
|
|
|
26
26
|
|
|
27
27
|
> `optional` **title**: `string`
|
|
28
28
|
|
|
29
|
-
Defined in: [share-button.directive.ts:13](https://gitlab.com/rxap/packages/-/blob/
|
|
29
|
+
Defined in: [share-button.directive.ts:13](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/share-button.directive.ts#L13)
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
@@ -34,4 +34,4 @@ Defined in: [share-button.directive.ts:13](https://gitlab.com/rxap/packages/-/bl
|
|
|
34
34
|
|
|
35
35
|
> `optional` **url**: `string`
|
|
36
36
|
|
|
37
|
-
Defined in: [share-button.directive.ts:14](https://gitlab.com/rxap/packages/-/blob/
|
|
37
|
+
Defined in: [share-button.directive.ts:14](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/share-button.directive.ts#L14)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> **BackgroundPosition**: [`GlobalStyleOptions`](../wiki/Enumeration.GlobalStyleOptions) \| [`BackgroundPositionOptions`](../wiki/Enumeration.BackgroundPositionOptions) \| `string`
|
|
6
6
|
|
|
7
|
-
Defined in: [background-image.directive.ts:
|
|
7
|
+
Defined in: [background-image.directive.ts:46](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/background-image.directive.ts#L46)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> **BackgroundRepeat**: [`GlobalStyleOptions`](../wiki/Enumeration.GlobalStyleOptions) \| [`BackgroundRepeatOptions`](../wiki/Enumeration.BackgroundRepeatOptions)
|
|
6
6
|
|
|
7
|
-
Defined in: [background-image.directive.ts:
|
|
7
|
+
Defined in: [background-image.directive.ts:37](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/background-image.directive.ts#L37)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> **BackgroundSize**: [`GlobalStyleOptions`](../wiki/Enumeration.GlobalStyleOptions) \| [`BackgroundSizeOptions`](../wiki/Enumeration.BackgroundSizeOptions) \| `string`
|
|
6
6
|
|
|
7
|
-
Defined in: [background-image.directive.ts:
|
|
7
|
+
Defined in: [background-image.directive.ts:26](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/directives/src/lib/background-image.directive.ts#L26)
|
package/docs/wiki/globals.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ElementRef, Renderer2, Directive, Inject, Input, Injectable, HostListener, EventEmitter, HostBinding, Output, isDevMode, TemplateRef, ViewContainerRef, ChangeDetectorRef, input, output, inject } from '@angular/core';
|
|
3
3
|
import * as i1 from '@rxap/services';
|
|
4
4
|
import { ImageLoaderService, AvatarImageService } from '@rxap/services';
|
|
5
5
|
import { coerceBoolean, DebounceCall } from '@rxap/utilities';
|
|
@@ -57,9 +57,8 @@ class BackgroundImageDirective {
|
|
|
57
57
|
for (const propertyKey of Object.keys(changes)) {
|
|
58
58
|
switch (propertyKey) {
|
|
59
59
|
case 'imageUrl':
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
60
|
+
// call unconditionally so clearing the value (null/empty) is handled
|
|
61
|
+
this.imageUrlChange(changes['imageUrl'].currentValue);
|
|
63
62
|
break;
|
|
64
63
|
case 'size':
|
|
65
64
|
this.sizeChange(changes['size'].currentValue);
|
|
@@ -83,17 +82,22 @@ class BackgroundImageDirective {
|
|
|
83
82
|
this.renderer.setStyle(this.host.nativeElement, 'background-size', size);
|
|
84
83
|
}
|
|
85
84
|
async imageUrlChange(imageUrl) {
|
|
85
|
+
// track the most recently requested url so out-of-order loads can be ignored
|
|
86
|
+
this._latestImageUrl = imageUrl;
|
|
86
87
|
if (this.placeholderImageUrl) {
|
|
87
88
|
this.renderer.setStyle(this.host.nativeElement, 'background-image', `url("${this.placeholderImageUrl}")`);
|
|
88
89
|
}
|
|
89
90
|
if (imageUrl) {
|
|
90
91
|
await this.imageLoader.load(imageUrl);
|
|
92
|
+
// a newer imageUrl was requested while this one was loading - drop the stale result
|
|
93
|
+
if (this._latestImageUrl !== imageUrl) {
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
91
96
|
this.renderer.setStyle(this.host.nativeElement, 'background-image', `url("${imageUrl}")`);
|
|
92
97
|
}
|
|
93
|
-
else {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
98
|
+
else if (!this.placeholderImageUrl) {
|
|
99
|
+
// clearing the image and no placeholder to fall back to
|
|
100
|
+
this.renderer.removeStyle(this.host.nativeElement, 'background-image');
|
|
97
101
|
}
|
|
98
102
|
}
|
|
99
103
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: BackgroundImageDirective, deps: [{ token: ElementRef }, { token: Renderer2 }, { token: ImageLoaderService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
@@ -217,12 +221,23 @@ class ContenteditableDirective {
|
|
|
217
221
|
parameters: this.parameters,
|
|
218
222
|
};
|
|
219
223
|
this.change.emit(event);
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
224
|
+
try {
|
|
225
|
+
const result = await this.method?.call(event);
|
|
226
|
+
if (result && typeof result === 'string') {
|
|
227
|
+
// the handler returned a canonical value - apply and remember it
|
|
228
|
+
this.initial = this.elementRef.nativeElement.innerText = result;
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
// successful save without a return value - keep the user's text and
|
|
232
|
+
// update the baseline (do NOT revert what was just typed)
|
|
233
|
+
this.initial = value;
|
|
234
|
+
}
|
|
223
235
|
}
|
|
224
|
-
|
|
225
|
-
|
|
236
|
+
catch {
|
|
237
|
+
// the save failed - revert to the last known good value if available
|
|
238
|
+
if (this.initial) {
|
|
239
|
+
this.elementRef.nativeElement.innerText = this.initial;
|
|
240
|
+
}
|
|
226
241
|
}
|
|
227
242
|
}
|
|
228
243
|
}
|
|
@@ -311,6 +326,8 @@ class IfTruthyDirective {
|
|
|
311
326
|
if (result) {
|
|
312
327
|
this.viewContainerRef.createEmbeddedView(this.templateRef, { $implicit: result });
|
|
313
328
|
}
|
|
329
|
+
// remember the last applied result so unchanged values don't rebuild the view
|
|
330
|
+
this._last = result;
|
|
314
331
|
}
|
|
315
332
|
this.cdr.detectChanges();
|
|
316
333
|
}
|