@fundamental-ngx/core 0.56.4 → 0.56.6
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/fesm2022/fundamental-ngx-core-combobox.mjs +1 -1
- package/fesm2022/fundamental-ngx-core-combobox.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-illustrated-message.mjs +47 -45
- package/fesm2022/fundamental-ngx-core-illustrated-message.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-popover.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-popover.mjs.map +1 -1
- package/illustrated-message/illustrated-message.component.d.ts +18 -48
- package/package.json +7 -7
|
@@ -2,88 +2,58 @@ import { AfterContentChecked, ChangeDetectorRef, ElementRef, OnChanges, OnDestro
|
|
|
2
2
|
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
3
3
|
import { CssClassBuilder, Nullable, RequireOnlyOne } from '@fundamental-ngx/cdk/utils';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
export interface SvgItemConfig {
|
|
6
|
+
url: string;
|
|
7
|
+
id: string;
|
|
8
|
+
file: string;
|
|
9
|
+
}
|
|
5
10
|
export interface SvgConfig {
|
|
11
|
+
large?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;
|
|
12
|
+
medium?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;
|
|
13
|
+
small?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;
|
|
14
|
+
xsmall?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;
|
|
6
15
|
scene?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;
|
|
7
16
|
dialog?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;
|
|
8
17
|
spot?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;
|
|
9
18
|
dot?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;
|
|
10
19
|
}
|
|
11
|
-
export
|
|
12
|
-
url: string;
|
|
13
|
-
id: string;
|
|
14
|
-
file: string;
|
|
15
|
-
}
|
|
16
|
-
export type IllustratedMessageType = 'scene' | 'dialog' | 'spot' | 'dot' | 'base';
|
|
20
|
+
export type IllustratedMessageType = 'large' | 'medium' | 'small' | 'xsmall' | 'base' | 'scene' | 'dialog' | 'spot' | 'dot';
|
|
17
21
|
export declare enum IllustratedMessageTypes {
|
|
22
|
+
LARGE = "large",
|
|
23
|
+
MEDIUM = "medium",
|
|
24
|
+
SMALL = "small",
|
|
25
|
+
EXTRA_SMALL = "xsmall",
|
|
26
|
+
BASE = "base",
|
|
18
27
|
SCENE = "scene",
|
|
19
28
|
DIALOG = "dialog",
|
|
20
29
|
SPOT = "spot",
|
|
21
|
-
DOT = "dot"
|
|
22
|
-
BASE = "base"
|
|
30
|
+
DOT = "dot"
|
|
23
31
|
}
|
|
24
32
|
export declare class IllustratedMessageComponent implements AfterContentChecked, OnChanges, OnDestroy, OnInit, CssClassBuilder {
|
|
25
33
|
readonly elementRef: ElementRef;
|
|
26
34
|
private _cdRef;
|
|
27
35
|
private _sanitizer;
|
|
28
|
-
/**
|
|
29
|
-
* The type of the Illustrated Message
|
|
30
|
-
* Options include: 'scene' | 'spot' | 'dialog' | 'dot' | 'base'.
|
|
31
|
-
*/
|
|
32
36
|
type: IllustratedMessageType;
|
|
33
|
-
/**
|
|
34
|
-
* An object containing url and id for each type used to construct the svg href
|
|
35
|
-
* For 'scene' type 'scene' and 'dialog' values are required
|
|
36
|
-
* In small screens (less than 600px) 'dialog' svg will be applied for 'scene' type
|
|
37
|
-
*/
|
|
38
37
|
svgConfig: SvgConfig;
|
|
39
|
-
/**
|
|
40
|
-
* aria-label for the svg
|
|
41
|
-
*/
|
|
42
38
|
svgAriaLabel: Nullable<string>;
|
|
43
|
-
/**
|
|
44
|
-
* When set to true will remove the illustration from the Illustrated Message
|
|
45
|
-
* The default is set to false
|
|
46
|
-
*/
|
|
47
39
|
noSvg: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Id of the Illustrated Message
|
|
50
|
-
* If not provided, a default one is generated
|
|
51
|
-
*/
|
|
52
40
|
id: string;
|
|
53
|
-
/** User's custom classes */
|
|
54
41
|
class: string;
|
|
55
|
-
/** @hidden */
|
|
56
42
|
_href: string;
|
|
57
|
-
/** @hidden */
|
|
58
43
|
_isSmallScreen: boolean;
|
|
59
|
-
/** @hidden */
|
|
60
44
|
_inlineSvg: SafeHtml | undefined;
|
|
61
|
-
/** @hidden */
|
|
62
45
|
_tempType: IllustratedMessageType;
|
|
63
|
-
/** @hidden */
|
|
64
46
|
private _subscriptions;
|
|
65
|
-
/** @hidden */
|
|
66
47
|
constructor(elementRef: ElementRef, _cdRef: ChangeDetectorRef, _sanitizer: DomSanitizer);
|
|
67
|
-
/**
|
|
68
|
-
* @hidden
|
|
69
|
-
* CssClassBuilder interface implementation
|
|
70
|
-
* function must return single string
|
|
71
|
-
* function is responsible for order which css classes are applied
|
|
72
|
-
*/
|
|
73
48
|
buildComponentCssClass(): string[];
|
|
74
|
-
/** @hidden */
|
|
75
49
|
ngOnChanges(changes: SimpleChanges): void;
|
|
76
|
-
/** @hidden */
|
|
77
50
|
ngOnInit(): void;
|
|
78
|
-
/** @hidden */
|
|
79
51
|
ngAfterContentChecked(): void;
|
|
80
|
-
/** @hidden */
|
|
81
52
|
ngOnDestroy(): void;
|
|
82
|
-
/** @hidden */
|
|
83
53
|
private _constructHref;
|
|
84
|
-
/** @hidden */
|
|
85
54
|
private _determineIllustratedMessageType;
|
|
86
|
-
|
|
55
|
+
private _normalizeType;
|
|
56
|
+
private _normalizeSvgConfig;
|
|
87
57
|
private _getHrefByType;
|
|
88
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<IllustratedMessageComponent, never>;
|
|
89
59
|
static ɵcmp: i0.ɵɵComponentDeclaration<IllustratedMessageComponent, "[fd-illustrated-message]", never, { "type": { "alias": "type"; "required": false; }; "svgConfig": { "alias": "svgConfig"; "required": false; }; "svgAriaLabel": { "alias": "svgAriaLabel"; "required": false; }; "noSvg": { "alias": "noSvg"; "required": false; }; "id": { "alias": "id"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["[fd-illustrated-message-figcaption]", "fd-illustrated-message-actions"], true, never>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fundamental-ngx/core",
|
|
3
|
-
"version": "0.56.
|
|
3
|
+
"version": "0.56.6",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
5
|
"ng-update": {
|
|
6
6
|
"migrations": "./schematics/migrations.json"
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"@angular/forms": "^19.0.0",
|
|
24
24
|
"@angular/platform-browser": "^19.0.0",
|
|
25
25
|
"@angular/router": "^19.0.0",
|
|
26
|
-
"@fundamental-ngx/cdk": "0.56.
|
|
27
|
-
"@fundamental-ngx/i18n": "0.56.
|
|
26
|
+
"@fundamental-ngx/cdk": "0.56.6",
|
|
27
|
+
"@fundamental-ngx/i18n": "0.56.6",
|
|
28
28
|
"@sap-theming/theming-base-content": "^11.30.0",
|
|
29
29
|
"fundamental-styles": "0.40.1",
|
|
30
30
|
"rxjs": "^7.8.0"
|
|
@@ -215,6 +215,10 @@
|
|
|
215
215
|
"types": "./menu/index.d.ts",
|
|
216
216
|
"default": "./fesm2022/fundamental-ngx-core-menu.mjs"
|
|
217
217
|
},
|
|
218
|
+
"./message-box": {
|
|
219
|
+
"types": "./message-box/index.d.ts",
|
|
220
|
+
"default": "./fesm2022/fundamental-ngx-core-message-box.mjs"
|
|
221
|
+
},
|
|
218
222
|
"./message-page": {
|
|
219
223
|
"types": "./message-page/index.d.ts",
|
|
220
224
|
"default": "./fesm2022/fundamental-ngx-core-message-page.mjs"
|
|
@@ -223,10 +227,6 @@
|
|
|
223
227
|
"types": "./message-strip/index.d.ts",
|
|
224
228
|
"default": "./fesm2022/fundamental-ngx-core-message-strip.mjs"
|
|
225
229
|
},
|
|
226
|
-
"./message-box": {
|
|
227
|
-
"types": "./message-box/index.d.ts",
|
|
228
|
-
"default": "./fesm2022/fundamental-ngx-core-message-box.mjs"
|
|
229
|
-
},
|
|
230
230
|
"./message-toast": {
|
|
231
231
|
"types": "./message-toast/index.d.ts",
|
|
232
232
|
"default": "./fesm2022/fundamental-ngx-core-message-toast.mjs"
|