@baloise/ds-core 20.0.0-next.8 → 20.0.0-next.9
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/components/ds-alert-container.js +1 -1
- package/components/ds-notification.js +1 -1
- package/components/ds-snackbar.js +1 -1
- package/components/ds-steps.js +1 -1
- package/components/ds-toast.js +1 -1
- package/components/index.js +1 -1
- package/components/p-o0H7eIVX.js +2 -1
- package/components/p-u5aa74vh.js +2 -1
- package/dist/cjs/ds-alert-container.cjs.entry.js +7 -11
- package/dist/cjs/ds-notification.cjs.entry.js +9 -15
- package/dist/cjs/ds-snackbar.cjs.entry.js +23 -11
- package/dist/cjs/ds-steps.cjs.entry.js +1 -8
- package/dist/cjs/ds-toast.cjs.entry.js +21 -9
- package/dist/cjs/index-DD7qcaNz.js +1 -1
- package/dist/collection/components/alert/alert-container.interfaces.js +1 -1
- package/dist/collection/components/alert/alert-container.js +9 -14
- package/dist/collection/components/alert/snackbar/snackbar.host.css +1 -1
- package/dist/collection/components/alert/snackbar/snackbar.js +22 -10
- package/dist/collection/components/alert/toast/toast.host.css +1 -1
- package/dist/collection/components/alert/toast/toast.js +20 -8
- package/dist/collection/components/notification/notification.host.css +1 -1
- package/dist/collection/components/notification/notification.interfaces.js +1 -2
- package/dist/collection/components/notification/notification.js +11 -17
- package/dist/collection/components/steps/steps/steps.js +1 -8
- package/dist/collection/components/steps/test/steps.component.play.js +29 -1
- package/dist/collection/global/constants/version.constant.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/p-14e27a87da.entry.js +4 -0
- package/dist/design-system/p-573457cd4b.entry.js +4 -0
- package/dist/design-system/p-936673f9f9.entry.js +4 -0
- package/dist/design-system/p-MUUOiuTm.js +1 -1
- package/dist/design-system/p-bec54c38fc.entry.js +4 -0
- package/dist/design-system/p-c8f95bd01a.entry.js +4 -0
- package/dist/esm/ds-alert-container.entry.js +7 -11
- package/dist/esm/ds-notification.entry.js +9 -15
- package/dist/esm/ds-snackbar.entry.js +23 -11
- package/dist/esm/ds-steps.entry.js +1 -8
- package/dist/esm/ds-toast.entry.js +21 -9
- package/dist/esm/index-MUUOiuTm.js +1 -1
- package/dist/types/components/alert/alert-container.d.ts +5 -6
- package/dist/types/components/alert/alert-container.interfaces.d.ts +1 -1
- package/dist/types/components/alert/snackbar/snackbar.d.ts +10 -6
- package/dist/types/components/alert/toast/toast.d.ts +8 -4
- package/dist/types/components/notification/notification.d.ts +5 -5
- package/dist/types/components/notification/notification.interfaces.d.ts +2 -2
- package/dist/types/components.d.ts +2 -6
- package/docs/cem.json +6 -10
- package/docs/components.json +469 -484
- package/package.json +28 -5
- package/sbom.cdx.json +3195 -3195
- package/dist/design-system/p-33165c2b03.entry.js +0 -4
- package/dist/design-system/p-a71c22bc50.entry.js +0 -4
- package/dist/design-system/p-dfebad2acc.entry.js +0 -4
- package/dist/design-system/p-e743fa4c17.entry.js +0 -4
- package/dist/design-system/p-f0b0376beb.entry.js +0 -4
|
@@ -12,11 +12,10 @@ export declare class AlertContainer implements DsComponentInterface {
|
|
|
12
12
|
alerts: AlertComponent[];
|
|
13
13
|
private maxVisibleItems;
|
|
14
14
|
private animationDurationMs;
|
|
15
|
-
private containerEl;
|
|
16
15
|
private alertTimers;
|
|
17
16
|
/**
|
|
18
17
|
* PUBLIC PROPERTY API
|
|
19
|
-
*
|
|
18
|
+
* ─────────────────────────────────────────────────────
|
|
20
19
|
*/
|
|
21
20
|
/**
|
|
22
21
|
* If `true`, alerts animate in and out.
|
|
@@ -25,14 +24,14 @@ export declare class AlertContainer implements DsComponentInterface {
|
|
|
25
24
|
/**
|
|
26
25
|
* Defines the container size constraint for the alert layout.
|
|
27
26
|
*/
|
|
28
|
-
readonly container
|
|
27
|
+
readonly container?: AlertContainerSize;
|
|
29
28
|
/**
|
|
30
29
|
* Defines the display type: `toast` (top-right overlay) or `snackbar` (bottom banner).
|
|
31
30
|
*/
|
|
32
31
|
readonly type: AlertType;
|
|
33
32
|
/**
|
|
34
33
|
* PUBLIC METHODS
|
|
35
|
-
*
|
|
34
|
+
* ─────────────────────────────────────────────────────
|
|
36
35
|
*/
|
|
37
36
|
/**
|
|
38
37
|
* Adds an alert to the queue and returns its generated ID.
|
|
@@ -48,7 +47,7 @@ export declare class AlertContainer implements DsComponentInterface {
|
|
|
48
47
|
removeAll(): Promise<void>;
|
|
49
48
|
/**
|
|
50
49
|
* PRIVATE METHODS
|
|
51
|
-
*
|
|
50
|
+
* ─────────────────────────────────────────────────────
|
|
52
51
|
*/
|
|
53
52
|
private activeTimer;
|
|
54
53
|
private getDuration;
|
|
@@ -56,7 +55,7 @@ export declare class AlertContainer implements DsComponentInterface {
|
|
|
56
55
|
private hasDuplications;
|
|
57
56
|
/**
|
|
58
57
|
* RENDER
|
|
59
|
-
*
|
|
58
|
+
* ─────────────────────────────────────────────────────
|
|
60
59
|
*/
|
|
61
60
|
render(): any;
|
|
62
61
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ButtonTarget } from '../button/button.interfaces';
|
|
2
2
|
export declare const ALERT_TYPES: readonly ["toast", "snackbar"];
|
|
3
|
-
export declare const ALERT_CONTAINER_SIZES: readonly ["
|
|
3
|
+
export declare const ALERT_CONTAINER_SIZES: readonly ["fluid", "detail-page", "compact", "blog-page", "wide"];
|
|
4
4
|
export declare const ALERT_COLORS: readonly ["base", "info", "success", "warning", "danger", "outline-base", "outline-purple", "outline-green", "outline-yellow", "outline-red"];
|
|
5
5
|
export type AlertType = (typeof ALERT_TYPES)[number];
|
|
6
6
|
export type AlertContainerSize = (typeof ALERT_CONTAINER_SIZES)[number];
|
|
@@ -20,6 +20,10 @@ export declare class Snackbar implements DsComponentInterface, AlertComponent, D
|
|
|
20
20
|
isMobile: boolean;
|
|
21
21
|
mobileOpenState: boolean;
|
|
22
22
|
didLoad: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* PUBLIC PROPERTY API
|
|
25
|
+
* ─────────────────────────────────────────────────────
|
|
26
|
+
*/
|
|
23
27
|
/**
|
|
24
28
|
* Defines the color of the element
|
|
25
29
|
* Color type primary is deprecated, please use info instead.
|
|
@@ -94,17 +98,17 @@ export declare class Snackbar implements DsComponentInterface, AlertComponent, D
|
|
|
94
98
|
dsDidLoad: EventEmitter<void>;
|
|
95
99
|
/**
|
|
96
100
|
* LIFECYCLE
|
|
97
|
-
*
|
|
101
|
+
* ─────────────────────────────────────────────────────
|
|
98
102
|
*/
|
|
99
103
|
componentDidLoad(): void;
|
|
100
104
|
/**
|
|
101
|
-
* LISTENERS
|
|
102
|
-
*
|
|
105
|
+
* PUBLIC LISTENERS
|
|
106
|
+
* ─────────────────────────────────────────────────────
|
|
103
107
|
*/
|
|
104
108
|
listenToBreakpoint(breakpoints: DsBreakpoints): void;
|
|
105
109
|
/**
|
|
106
110
|
* PUBLIC METHODS
|
|
107
|
-
*
|
|
111
|
+
* ─────────────────────────────────────────────────────
|
|
108
112
|
*/
|
|
109
113
|
/**
|
|
110
114
|
* Closes this notification
|
|
@@ -112,13 +116,13 @@ export declare class Snackbar implements DsComponentInterface, AlertComponent, D
|
|
|
112
116
|
close(): Promise<void>;
|
|
113
117
|
/**
|
|
114
118
|
* PRIVATE METHODS
|
|
115
|
-
*
|
|
119
|
+
* ─────────────────────────────────────────────────────
|
|
116
120
|
*/
|
|
117
121
|
private generateSvgContent;
|
|
118
122
|
private generateIconName;
|
|
119
123
|
/**
|
|
120
124
|
* RENDER
|
|
121
|
-
*
|
|
125
|
+
* ─────────────────────────────────────────────────────
|
|
122
126
|
*/
|
|
123
127
|
render(): any;
|
|
124
128
|
}
|
|
@@ -20,6 +20,10 @@ export declare class Toast implements DsComponentInterface, AlertComponent, DsCo
|
|
|
20
20
|
animated: boolean;
|
|
21
21
|
didLoad: boolean;
|
|
22
22
|
didPause: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* PUBLIC PROPERTY API
|
|
25
|
+
* ─────────────────────────────────────────────────────
|
|
26
|
+
*/
|
|
23
27
|
/**
|
|
24
28
|
* Defines the color of the element
|
|
25
29
|
* Color type primary is deprecated, please use info instead.
|
|
@@ -109,12 +113,12 @@ export declare class Toast implements DsComponentInterface, AlertComponent, DsCo
|
|
|
109
113
|
dsDidResume: EventEmitter<void>;
|
|
110
114
|
/**
|
|
111
115
|
* LIFECYCLE
|
|
112
|
-
*
|
|
116
|
+
* ─────────────────────────────────────────────────────
|
|
113
117
|
*/
|
|
114
118
|
componentDidLoad(): void;
|
|
115
119
|
/**
|
|
116
120
|
* PUBLIC METHODS
|
|
117
|
-
*
|
|
121
|
+
* ─────────────────────────────────────────────────────
|
|
118
122
|
*/
|
|
119
123
|
/**
|
|
120
124
|
* Closes this notification
|
|
@@ -126,13 +130,13 @@ export declare class Toast implements DsComponentInterface, AlertComponent, DsCo
|
|
|
126
130
|
configChanged(state: DsConfigState): Promise<void>;
|
|
127
131
|
/**
|
|
128
132
|
* PRIVATE METHODS
|
|
129
|
-
*
|
|
133
|
+
* ─────────────────────────────────────────────────────
|
|
130
134
|
*/
|
|
131
135
|
private generateSvgContent;
|
|
132
136
|
private generateIconName;
|
|
133
137
|
/**
|
|
134
138
|
* RENDER
|
|
135
|
-
*
|
|
139
|
+
* ─────────────────────────────────────────────────────
|
|
136
140
|
*/
|
|
137
141
|
render(): any;
|
|
138
142
|
}
|
|
@@ -19,7 +19,7 @@ export declare class Notification implements DsComponentInterface {
|
|
|
19
19
|
private timer;
|
|
20
20
|
/**
|
|
21
21
|
* PUBLIC PROPERTY API
|
|
22
|
-
*
|
|
22
|
+
* ─────────────────────────────────────────────────────
|
|
23
23
|
*/
|
|
24
24
|
/**
|
|
25
25
|
* If `true` the notification will be displayed as an alert, otherwise as a status message.
|
|
@@ -37,7 +37,7 @@ export declare class Notification implements DsComponentInterface {
|
|
|
37
37
|
* Defines the color of the element
|
|
38
38
|
* Color type primary is deprecated, please use info instead.
|
|
39
39
|
*/
|
|
40
|
-
readonly color
|
|
40
|
+
readonly color?: NotificationColor;
|
|
41
41
|
/**
|
|
42
42
|
* Defines the heading of the notification.
|
|
43
43
|
*/
|
|
@@ -60,12 +60,12 @@ export declare class Notification implements DsComponentInterface {
|
|
|
60
60
|
dsDidLoad: EventEmitter<void>;
|
|
61
61
|
/**
|
|
62
62
|
* LIFECYCLE
|
|
63
|
-
*
|
|
63
|
+
* ─────────────────────────────────────────────────────
|
|
64
64
|
*/
|
|
65
65
|
componentDidLoad(): void;
|
|
66
66
|
/**
|
|
67
67
|
* PUBLIC METHODS
|
|
68
|
-
*
|
|
68
|
+
* ─────────────────────────────────────────────────────
|
|
69
69
|
*/
|
|
70
70
|
/**
|
|
71
71
|
* Closes this notification
|
|
@@ -73,7 +73,7 @@ export declare class Notification implements DsComponentInterface {
|
|
|
73
73
|
close(): Promise<void>;
|
|
74
74
|
/**
|
|
75
75
|
* RENDER
|
|
76
|
-
*
|
|
76
|
+
* ─────────────────────────────────────────────────────
|
|
77
77
|
*/
|
|
78
78
|
render(): any;
|
|
79
79
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const NOTIFICATION_SIZES: readonly ["sm", "md", "lg", "
|
|
2
|
-
export declare const NOTIFICATION_COLORS: readonly ["
|
|
1
|
+
export declare const NOTIFICATION_SIZES: readonly ["sm", "md", "lg", "small", "medium", "large"];
|
|
2
|
+
export declare const NOTIFICATION_COLORS: readonly ["base", "info", "success", "warning", "danger", "outline-base", "outline-purple", "outline-green", "outline-yellow", "outline-red"];
|
|
3
3
|
export type NotificationSize = (typeof NOTIFICATION_SIZES)[number];
|
|
4
4
|
export type NotificationColor = (typeof NOTIFICATION_COLORS)[number];
|
|
5
5
|
export interface NotificationCustomEvent<T> extends CustomEvent<T> {
|
|
@@ -191,9 +191,8 @@ export namespace Components {
|
|
|
191
191
|
"animated": boolean;
|
|
192
192
|
/**
|
|
193
193
|
* Defines the container size constraint for the alert layout.
|
|
194
|
-
* @default ''
|
|
195
194
|
*/
|
|
196
|
-
"container"
|
|
195
|
+
"container"?: AlertContainerSize;
|
|
197
196
|
/**
|
|
198
197
|
* Removes the alert with the given ID.
|
|
199
198
|
*/
|
|
@@ -1982,9 +1981,8 @@ export namespace Components {
|
|
|
1982
1981
|
"closeHandler": () => void;
|
|
1983
1982
|
/**
|
|
1984
1983
|
* Defines the color of the element Color type primary is deprecated, please use info instead.
|
|
1985
|
-
* @default ''
|
|
1986
1984
|
*/
|
|
1987
|
-
"color"
|
|
1985
|
+
"color"?: NotificationColor;
|
|
1988
1986
|
/**
|
|
1989
1987
|
* Defines the heading of the notification.
|
|
1990
1988
|
* @default ''
|
|
@@ -5008,7 +5006,6 @@ declare namespace LocalJSX {
|
|
|
5008
5006
|
"animated"?: boolean;
|
|
5009
5007
|
/**
|
|
5010
5008
|
* Defines the container size constraint for the alert layout.
|
|
5011
|
-
* @default ''
|
|
5012
5009
|
*/
|
|
5013
5010
|
"container"?: AlertContainerSize;
|
|
5014
5011
|
/**
|
|
@@ -6883,7 +6880,6 @@ declare namespace LocalJSX {
|
|
|
6883
6880
|
"closable"?: boolean;
|
|
6884
6881
|
/**
|
|
6885
6882
|
* Defines the color of the element Color type primary is deprecated, please use info instead.
|
|
6886
|
-
* @default ''
|
|
6887
6883
|
*/
|
|
6888
6884
|
"color"?: NotificationColor;
|
|
6889
6885
|
/**
|
package/docs/cem.json
CHANGED
|
@@ -504,7 +504,7 @@
|
|
|
504
504
|
"name": "container",
|
|
505
505
|
"description": "Defines the container size constraint for the alert layout.",
|
|
506
506
|
"type": {
|
|
507
|
-
"text": "\"
|
|
507
|
+
"text": "\"blog-page\" | \"compact\" | \"detail-page\" | \"fluid\" | \"wide\" | undefined",
|
|
508
508
|
"references": [
|
|
509
509
|
{
|
|
510
510
|
"name": "AlertContainerSize",
|
|
@@ -512,7 +512,6 @@
|
|
|
512
512
|
}
|
|
513
513
|
]
|
|
514
514
|
},
|
|
515
|
-
"default": "''",
|
|
516
515
|
"fieldName": "container"
|
|
517
516
|
},
|
|
518
517
|
{
|
|
@@ -548,7 +547,7 @@
|
|
|
548
547
|
"name": "container",
|
|
549
548
|
"description": "Defines the container size constraint for the alert layout.",
|
|
550
549
|
"type": {
|
|
551
|
-
"text": "\"
|
|
550
|
+
"text": "\"blog-page\" | \"compact\" | \"detail-page\" | \"fluid\" | \"wide\" | undefined",
|
|
552
551
|
"references": [
|
|
553
552
|
{
|
|
554
553
|
"name": "AlertContainerSize",
|
|
@@ -556,7 +555,6 @@
|
|
|
556
555
|
}
|
|
557
556
|
]
|
|
558
557
|
},
|
|
559
|
-
"default": "''",
|
|
560
558
|
"readonly": true,
|
|
561
559
|
"attribute": "container"
|
|
562
560
|
},
|
|
@@ -10248,7 +10246,7 @@
|
|
|
10248
10246
|
"name": "color",
|
|
10249
10247
|
"description": "Defines the color of the element\nColor type primary is deprecated, please use info instead.",
|
|
10250
10248
|
"type": {
|
|
10251
|
-
"text": "\"
|
|
10249
|
+
"text": "\"base\" | \"danger\" | \"info\" | \"outline-base\" | \"outline-green\" | \"outline-purple\" | \"outline-red\" | \"outline-yellow\" | \"success\" | \"warning\" | undefined",
|
|
10252
10250
|
"references": [
|
|
10253
10251
|
{
|
|
10254
10252
|
"name": "NotificationColor",
|
|
@@ -10256,7 +10254,6 @@
|
|
|
10256
10254
|
}
|
|
10257
10255
|
]
|
|
10258
10256
|
},
|
|
10259
|
-
"default": "''",
|
|
10260
10257
|
"fieldName": "color"
|
|
10261
10258
|
},
|
|
10262
10259
|
{
|
|
@@ -10281,7 +10278,7 @@
|
|
|
10281
10278
|
"name": "size",
|
|
10282
10279
|
"description": "Defines the size of the notification, small, medium or large.",
|
|
10283
10280
|
"type": {
|
|
10284
|
-
"text": "\"
|
|
10281
|
+
"text": "\"large\" | \"lg\" | \"md\" | \"medium\" | \"sm\" | \"small\" | undefined",
|
|
10285
10282
|
"references": [
|
|
10286
10283
|
{
|
|
10287
10284
|
"name": "NotificationSize",
|
|
@@ -10320,7 +10317,7 @@
|
|
|
10320
10317
|
"name": "color",
|
|
10321
10318
|
"description": "Defines the color of the element\nColor type primary is deprecated, please use info instead.",
|
|
10322
10319
|
"type": {
|
|
10323
|
-
"text": "\"
|
|
10320
|
+
"text": "\"base\" | \"danger\" | \"info\" | \"outline-base\" | \"outline-green\" | \"outline-purple\" | \"outline-red\" | \"outline-yellow\" | \"success\" | \"warning\" | undefined",
|
|
10324
10321
|
"references": [
|
|
10325
10322
|
{
|
|
10326
10323
|
"name": "NotificationColor",
|
|
@@ -10328,7 +10325,6 @@
|
|
|
10328
10325
|
}
|
|
10329
10326
|
]
|
|
10330
10327
|
},
|
|
10331
|
-
"default": "''",
|
|
10332
10328
|
"readonly": true,
|
|
10333
10329
|
"attribute": "color"
|
|
10334
10330
|
},
|
|
@@ -10359,7 +10355,7 @@
|
|
|
10359
10355
|
"name": "size",
|
|
10360
10356
|
"description": "Defines the size of the notification, small, medium or large.",
|
|
10361
10357
|
"type": {
|
|
10362
|
-
"text": "\"
|
|
10358
|
+
"text": "\"large\" | \"lg\" | \"md\" | \"medium\" | \"sm\" | \"small\" | undefined",
|
|
10363
10359
|
"references": [
|
|
10364
10360
|
{
|
|
10365
10361
|
"name": "NotificationSize",
|