@statistikzh/leu 0.15.0 → 0.16.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/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +16 -0
- package/dist/Accordion.js +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/ChartWrapper.js +40 -29
- package/dist/Checkbox.js +1 -1
- package/dist/CheckboxGroup.js +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ChipGroup.js +1 -1
- package/dist/ChipLink.js +1 -1
- package/dist/ChipRemovable.js +1 -1
- package/dist/ChipSelectable.js +1 -1
- package/dist/Dialog.js +1 -1
- package/dist/Dropdown.js +1 -1
- package/dist/Icon.js +1 -1
- package/dist/Input.js +1 -1
- package/dist/{LeuElement-BhAmogDy.js → LeuElement-C0BZ_nPB.js} +1 -1
- package/dist/Menu.js +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/Message.d.ts +63 -0
- package/dist/Message.js +268 -0
- package/dist/Pagination.js +1 -1
- package/dist/Placeholder.js +1 -1
- package/dist/Popup.js +1 -1
- package/dist/Radio.js +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/Range.js +1 -1
- package/dist/ScrollTop.js +1 -1
- package/dist/Select.js +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/VisuallyHidden.js +1 -1
- package/dist/components/{visualization → chart-wrapper}/ChartWrapper.d.ts.map +1 -1
- package/dist/components/{visualization → chart-wrapper}/leu-chart-wrapper.d.ts.map +1 -1
- package/dist/components/{visualization → chart-wrapper}/stories/chart-wrapper.stories.d.ts +19 -0
- package/dist/components/{visualization → chart-wrapper}/stories/chart-wrapper.stories.d.ts.map +1 -1
- package/dist/components/chart-wrapper/test/chart-wrapper.test.d.ts.map +1 -0
- package/dist/components/message/Message.d.ts +59 -0
- package/dist/components/message/Message.d.ts.map +1 -0
- package/dist/components/message/leu-message.d.ts +3 -0
- package/dist/components/message/leu-message.d.ts.map +1 -0
- package/dist/components/message/stories/message.stories.d.ts +179 -0
- package/dist/components/message/stories/message.stories.d.ts.map +1 -0
- package/dist/components/message/test/message.test.d.ts +2 -0
- package/dist/components/message/test/message.test.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/leu-accordion.js +1 -1
- package/dist/leu-button-group.js +1 -1
- package/dist/leu-button.js +1 -1
- package/dist/leu-chart-wrapper.js +1 -1
- package/dist/leu-checkbox-group.js +1 -1
- package/dist/leu-checkbox.js +1 -1
- package/dist/leu-chip-group.js +1 -1
- package/dist/leu-chip-link.js +1 -1
- package/dist/leu-chip-removable.js +1 -1
- package/dist/leu-chip-selectable.js +1 -1
- package/dist/leu-dialog.js +1 -1
- package/dist/leu-dropdown.js +1 -1
- package/dist/leu-icon.js +1 -1
- package/dist/leu-input.js +1 -1
- package/dist/leu-menu-item.js +1 -1
- package/dist/leu-menu.js +1 -1
- package/dist/leu-message.d.ts +5 -0
- package/dist/leu-message.js +12 -0
- package/dist/leu-pagination.js +1 -1
- package/dist/leu-placeholder.js +1 -1
- package/dist/leu-popup.js +1 -1
- package/dist/leu-radio-group.js +1 -1
- package/dist/leu-radio.js +1 -1
- package/dist/leu-range.js +1 -1
- package/dist/leu-scroll-top.js +1 -1
- package/dist/leu-select.js +1 -1
- package/dist/leu-spinner.js +1 -1
- package/dist/leu-table.js +1 -1
- package/dist/leu-visually-hidden.js +1 -1
- package/dist/theme.css +18 -18
- package/dist/vscode.html-custom-data.json +54 -17
- package/dist/vue/index.d.ts +55 -23
- package/dist/web-types.json +125 -44
- package/package.json +1 -1
- package/release-please-config.json +1 -0
- package/scripts/postcss-leu-font-styles.cjs +10 -10
- package/src/components/{visualization → chart-wrapper}/ChartWrapper.ts +13 -10
- package/src/components/{visualization → chart-wrapper}/chart-wrapper.css +20 -11
- package/src/components/{visualization → chart-wrapper}/stories/chart-wrapper.stories.ts +7 -1
- package/src/components/{visualization → chart-wrapper}/test/chart-wrapper.test.ts +13 -10
- package/src/components/message/Message.ts +118 -0
- package/src/components/message/leu-message.ts +5 -0
- package/src/components/message/message.css +163 -0
- package/src/components/message/stories/message.mdx +76 -0
- package/src/components/message/stories/message.stories.ts +149 -0
- package/src/components/message/test/message.test.ts +96 -0
- package/src/docs/contributing.mdx +1 -1
- package/src/index.ts +1 -0
- package/src/styles/custom-media.css +1 -0
- package/src/styles/theme.css +89 -1
- package/dist/components/visualization/test/chart-wrapper.test.d.ts.map +0 -1
- package/src/styles/custom-properties.css +0 -89
- /package/dist/components/{visualization → chart-wrapper}/ChartWrapper.d.ts +0 -0
- /package/dist/components/{visualization → chart-wrapper}/leu-chart-wrapper.d.ts +0 -0
- /package/dist/components/{visualization → chart-wrapper}/test/chart-wrapper.test.d.ts +0 -0
- /package/src/components/{visualization → chart-wrapper}/leu-chart-wrapper.ts +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LeuMessage } from './Message.js';
|
|
2
|
+
import './_tslib-CNEFicEt.js';
|
|
3
|
+
import 'lit';
|
|
4
|
+
import 'lit/decorators.js';
|
|
5
|
+
import 'lit/directives/class-map.js';
|
|
6
|
+
import './LeuElement-C0BZ_nPB.js';
|
|
7
|
+
import './Icon.js';
|
|
8
|
+
import './hasSlotController-Bm2tipvG.js';
|
|
9
|
+
|
|
10
|
+
LeuMessage.define("leu-message");
|
|
11
|
+
|
|
12
|
+
export { LeuMessage };
|
package/dist/leu-pagination.js
CHANGED
|
@@ -3,7 +3,7 @@ import './_tslib-CNEFicEt.js';
|
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/live.js';
|
|
5
5
|
import 'lit/decorators.js';
|
|
6
|
-
import './LeuElement-
|
|
6
|
+
import './LeuElement-C0BZ_nPB.js';
|
|
7
7
|
import './Button.js';
|
|
8
8
|
import 'lit/directives/class-map.js';
|
|
9
9
|
import 'lit/directives/if-defined.js';
|
package/dist/leu-placeholder.js
CHANGED
package/dist/leu-popup.js
CHANGED
package/dist/leu-radio-group.js
CHANGED
package/dist/leu-radio.js
CHANGED
package/dist/leu-range.js
CHANGED
package/dist/leu-scroll-top.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LeuScrollTop } from './ScrollTop.js';
|
|
2
2
|
import 'lit';
|
|
3
3
|
import 'lit/directives/class-map.js';
|
|
4
|
-
import './LeuElement-
|
|
4
|
+
import './LeuElement-C0BZ_nPB.js';
|
|
5
5
|
import './Button.js';
|
|
6
6
|
import './_tslib-CNEFicEt.js';
|
|
7
7
|
import 'lit/directives/if-defined.js';
|
package/dist/leu-select.js
CHANGED
|
@@ -3,7 +3,7 @@ import 'lit';
|
|
|
3
3
|
import 'lit/directives/class-map.js';
|
|
4
4
|
import 'lit/directives/ref.js';
|
|
5
5
|
import 'lit/directives/if-defined.js';
|
|
6
|
-
import './LeuElement-
|
|
6
|
+
import './LeuElement-C0BZ_nPB.js';
|
|
7
7
|
import './hasSlotController-Bm2tipvG.js';
|
|
8
8
|
import './Button.js';
|
|
9
9
|
import './_tslib-CNEFicEt.js';
|
package/dist/leu-spinner.js
CHANGED
package/dist/leu-table.js
CHANGED
|
@@ -3,7 +3,7 @@ import 'lit';
|
|
|
3
3
|
import 'lit/directives/class-map.js';
|
|
4
4
|
import 'lit/directives/style-map.js';
|
|
5
5
|
import 'lit/directives/ref.js';
|
|
6
|
-
import './LeuElement-
|
|
6
|
+
import './LeuElement-C0BZ_nPB.js';
|
|
7
7
|
import './Icon.js';
|
|
8
8
|
import './Pagination.js';
|
|
9
9
|
import './_tslib-CNEFicEt.js';
|
package/dist/theme.css
CHANGED
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
|
|
63
63
|
--leu-t-tiny-regular-spacing: 0.5625rem;
|
|
64
64
|
|
|
65
|
-
--leu-t-tiny-regular-font: var(--leu-t-tiny-regular-font-size) / var(--leu-t-tiny-regular-line-height) var(--leu-font-family-regular);
|
|
65
|
+
--leu-t-tiny-regular-font: normal var(--leu-t-tiny-regular-font-size) / var(--leu-t-tiny-regular-line-height) var(--leu-font-family-regular);
|
|
66
66
|
|
|
67
67
|
--leu-t-tiny-black-font-size: 0.75rem;
|
|
68
68
|
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
|
|
71
71
|
--leu-t-tiny-black-spacing: 0.5625rem;
|
|
72
72
|
|
|
73
|
-
--leu-t-tiny-black-font: var(--leu-t-tiny-black-font-size) / var(--leu-t-tiny-black-line-height) var(--leu-font-family-black);
|
|
73
|
+
--leu-t-tiny-black-font: normal var(--leu-t-tiny-black-font-size) / var(--leu-t-tiny-black-line-height) var(--leu-font-family-black);
|
|
74
74
|
|
|
75
75
|
--leu-t-small-regular-font-size: 0.875rem;
|
|
76
76
|
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
|
|
79
79
|
--leu-t-small-regular-spacing: 0.625rem;
|
|
80
80
|
|
|
81
|
-
--leu-t-small-regular-font: var(--leu-t-small-regular-font-size) / var(--leu-t-small-regular-line-height) var(--leu-font-family-regular);
|
|
81
|
+
--leu-t-small-regular-font: normal var(--leu-t-small-regular-font-size) / var(--leu-t-small-regular-line-height) var(--leu-font-family-regular);
|
|
82
82
|
|
|
83
83
|
--leu-t-small-black-font-size: 0.875rem;
|
|
84
84
|
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
|
|
87
87
|
--leu-t-small-black-spacing: 0.625rem;
|
|
88
88
|
|
|
89
|
-
--leu-t-small-black-font: var(--leu-t-small-black-font-size) / var(--leu-t-small-black-line-height) var(--leu-font-family-black);
|
|
89
|
+
--leu-t-small-black-font: normal var(--leu-t-small-black-font-size) / var(--leu-t-small-black-line-height) var(--leu-font-family-black);
|
|
90
90
|
|
|
91
91
|
--leu-t-regular-regular-font-size: 1rem;
|
|
92
92
|
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
|
|
95
95
|
--leu-t-regular-regular-spacing: 0.75rem;
|
|
96
96
|
|
|
97
|
-
--leu-t-regular-regular-font: var(--leu-t-regular-regular-font-size) / var(--leu-t-regular-regular-line-height) var(--leu-font-family-regular);
|
|
97
|
+
--leu-t-regular-regular-font: normal var(--leu-t-regular-regular-font-size) / var(--leu-t-regular-regular-line-height) var(--leu-font-family-regular);
|
|
98
98
|
|
|
99
99
|
--leu-t-regular-black-font-size: 1rem;
|
|
100
100
|
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
|
|
103
103
|
--leu-t-regular-black-spacing: 0.75rem;
|
|
104
104
|
|
|
105
|
-
--leu-t-regular-black-font: var(--leu-t-regular-black-font-size) / var(--leu-t-regular-black-line-height) var(--leu-font-family-black);
|
|
105
|
+
--leu-t-regular-black-font: normal var(--leu-t-regular-black-font-size) / var(--leu-t-regular-black-line-height) var(--leu-font-family-black);
|
|
106
106
|
|
|
107
107
|
--leu-t-bigger-regular-regular-font-size: 1.125rem;
|
|
108
108
|
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
|
|
111
111
|
--leu-t-bigger-regular-regular-spacing: 0.8125rem;
|
|
112
112
|
|
|
113
|
-
--leu-t-bigger-regular-regular-font: var(--leu-t-bigger-regular-regular-font-size) / var(--leu-t-bigger-regular-regular-line-height) var(--leu-font-family-regular);
|
|
113
|
+
--leu-t-bigger-regular-regular-font: normal var(--leu-t-bigger-regular-regular-font-size) / var(--leu-t-bigger-regular-regular-line-height) var(--leu-font-family-regular);
|
|
114
114
|
|
|
115
115
|
--leu-t-bigger-regular-black-font-size: 1.125rem;
|
|
116
116
|
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
|
|
119
119
|
--leu-t-bigger-regular-black-spacing: 0.75rem;
|
|
120
120
|
|
|
121
|
-
--leu-t-bigger-regular-black-font: var(--leu-t-bigger-regular-black-font-size) / var(--leu-t-bigger-regular-black-line-height) var(--leu-font-family-black);
|
|
121
|
+
--leu-t-bigger-regular-black-font: normal var(--leu-t-bigger-regular-black-font-size) / var(--leu-t-bigger-regular-black-line-height) var(--leu-font-family-black);
|
|
122
122
|
|
|
123
123
|
--leu-t-medium-regular-font-size: 1.25rem;
|
|
124
124
|
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
|
|
127
127
|
--leu-t-medium-regular-spacing: 0.9375rem;
|
|
128
128
|
|
|
129
|
-
--leu-t-medium-regular-font: var(--leu-t-medium-regular-font-size) / var(--leu-t-medium-regular-line-height) var(--leu-font-family-regular);
|
|
129
|
+
--leu-t-medium-regular-font: normal var(--leu-t-medium-regular-font-size) / var(--leu-t-medium-regular-line-height) var(--leu-font-family-regular);
|
|
130
130
|
|
|
131
131
|
--leu-t-medium-black-font-size: 1.25rem;
|
|
132
132
|
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
|
|
135
135
|
--leu-t-medium-black-spacing: 0.8125rem;
|
|
136
136
|
|
|
137
|
-
--leu-t-medium-black-font: var(--leu-t-medium-black-font-size) / var(--leu-t-medium-black-line-height) var(--leu-font-family-black);
|
|
137
|
+
--leu-t-medium-black-font: normal var(--leu-t-medium-black-font-size) / var(--leu-t-medium-black-line-height) var(--leu-font-family-black);
|
|
138
138
|
|
|
139
139
|
--leu-t-large-regular-font-size: 1.5rem;
|
|
140
140
|
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
|
|
143
143
|
--leu-t-large-regular-spacing: 1.125rem;
|
|
144
144
|
|
|
145
|
-
--leu-t-large-regular-font: var(--leu-t-large-regular-font-size) / var(--leu-t-large-regular-line-height) var(--leu-font-family-regular);
|
|
145
|
+
--leu-t-large-regular-font: normal var(--leu-t-large-regular-font-size) / var(--leu-t-large-regular-line-height) var(--leu-font-family-regular);
|
|
146
146
|
|
|
147
147
|
--leu-t-large-black-font-size: 1.5rem;
|
|
148
148
|
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
|
|
151
151
|
--leu-t-large-black-spacing: 0.9375rem;
|
|
152
152
|
|
|
153
|
-
--leu-t-large-black-font: var(--leu-t-large-black-font-size) / var(--leu-t-large-black-line-height) var(--leu-font-family-black);
|
|
153
|
+
--leu-t-large-black-font: normal var(--leu-t-large-black-font-size) / var(--leu-t-large-black-line-height) var(--leu-font-family-black);
|
|
154
154
|
|
|
155
155
|
--leu-t-small-big-black-font-size: 1.75rem;
|
|
156
156
|
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
|
|
159
159
|
--leu-t-small-big-black-spacing: 1.0625rem;
|
|
160
160
|
|
|
161
|
-
--leu-t-small-big-black-font: var(--leu-t-small-big-black-font-size) / var(--leu-t-small-big-black-line-height) var(--leu-font-family-black);
|
|
161
|
+
--leu-t-small-big-black-font: normal var(--leu-t-small-big-black-font-size) / var(--leu-t-small-big-black-line-height) var(--leu-font-family-black);
|
|
162
162
|
|
|
163
163
|
--leu-t-big-black-font-size: 2rem;
|
|
164
164
|
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
|
|
167
167
|
--leu-t-big-black-spacing: 1.1875rem;
|
|
168
168
|
|
|
169
|
-
--leu-t-big-black-font: var(--leu-t-big-black-font-size) / var(--leu-t-big-black-line-height) var(--leu-font-family-black);
|
|
169
|
+
--leu-t-big-black-font: normal var(--leu-t-big-black-font-size) / var(--leu-t-big-black-line-height) var(--leu-font-family-black);
|
|
170
170
|
|
|
171
171
|
--leu-t-bigger-big-black-font-size: 2.5rem;
|
|
172
172
|
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
|
|
175
175
|
--leu-t-bigger-big-black-spacing: 1.5rem;
|
|
176
176
|
|
|
177
|
-
--leu-t-bigger-big-black-font: var(--leu-t-bigger-big-black-font-size) / var(--leu-t-bigger-big-black-line-height) var(--leu-font-family-black);
|
|
177
|
+
--leu-t-bigger-big-black-font: normal var(--leu-t-bigger-big-black-font-size) / var(--leu-t-bigger-big-black-line-height) var(--leu-font-family-black);
|
|
178
178
|
|
|
179
179
|
--leu-t-small-huge-black-font-size: 3rem;
|
|
180
180
|
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
|
|
183
183
|
--leu-t-small-huge-black-spacing: 1.5rem;
|
|
184
184
|
|
|
185
|
-
--leu-t-small-huge-black-font: var(--leu-t-small-huge-black-font-size) / var(--leu-t-small-huge-black-line-height) var(--leu-font-family-black);
|
|
185
|
+
--leu-t-small-huge-black-font: normal var(--leu-t-small-huge-black-font-size) / var(--leu-t-small-huge-black-line-height) var(--leu-font-family-black);
|
|
186
186
|
|
|
187
187
|
--leu-t-huge-black-font-size: 3.5rem;
|
|
188
188
|
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
|
|
191
191
|
--leu-t-huge-black-spacing: 1.75rem;
|
|
192
192
|
|
|
193
|
-
--leu-t-huge-black-font: var(--leu-t-huge-black-font-size) / var(--leu-t-huge-black-line-height) var(--leu-font-family-black);
|
|
193
|
+
--leu-t-huge-black-font: normal var(--leu-t-huge-black-font-size) / var(--leu-t-huge-black-line-height) var(--leu-font-family-black);
|
|
194
194
|
|
|
195
195
|
--leu-t-giant-black-font-size: 4.5rem;
|
|
196
196
|
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
|
|
199
199
|
--leu-t-giant-black-spacing: 2.25rem;
|
|
200
200
|
|
|
201
|
-
--leu-t-giant-black-font: var(--leu-t-giant-black-font-size) / var(--leu-t-giant-black-line-height) var(--leu-font-family-black);
|
|
201
|
+
--leu-t-giant-black-font: normal var(--leu-t-giant-black-font-size) / var(--leu-t-giant-black-line-height) var(--leu-font-family-black);
|
|
202
202
|
|
|
203
203
|
--leu-t-curve-tiny-regular-font-size: var(--leu-t-tiny-regular-font-size);
|
|
204
204
|
|
|
@@ -120,6 +120,23 @@
|
|
|
120
120
|
}
|
|
121
121
|
]
|
|
122
122
|
},
|
|
123
|
+
{
|
|
124
|
+
"name": "leu-chart-wrapper",
|
|
125
|
+
"description": "A wrapper element for charts.\n---\n\n\n### **Slots:**\n - **title** - The title of the chart. Use a heading tag (h2-4) depending on your context.\n- **description** - A description of the chart. Content is wrapped in a `<p>` tag by the component.\n- **chart** - The actual chart\n- **caption** - A caption for the chart, e.g. a source or explanation of the data.\n- **download** - A download button or dropdown to export the chart in different formats.",
|
|
126
|
+
"attributes": [
|
|
127
|
+
{
|
|
128
|
+
"name": "pending",
|
|
129
|
+
"description": "Whether the chart is currently loading or not.\nWhen set to `true`, a spinner will be shown in the chart container.",
|
|
130
|
+
"values": []
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"references": [
|
|
134
|
+
{
|
|
135
|
+
"name": "Documentation",
|
|
136
|
+
"url": "https://statistikzh.github.io/leu/?path=/story/chart-wrapper"
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
},
|
|
123
140
|
{
|
|
124
141
|
"name": "leu-checkbox",
|
|
125
142
|
"description": "\n---\n",
|
|
@@ -474,6 +491,43 @@
|
|
|
474
491
|
}
|
|
475
492
|
]
|
|
476
493
|
},
|
|
494
|
+
{
|
|
495
|
+
"name": "leu-message",
|
|
496
|
+
"description": "\n---\n\n\n### **Events:**\n - **leu:remove** - Fired when the close button is clicked.\n\n### **Slots:**\n - **default** - The content of the message. The title of the message should marked up with a `<strong>` tag.\n- **cta** - A call to action button that is only allowed for `size=large`\n\n### **CSS Properties:**\n - **--leu-message-accent-color** - Sets the color of the message. According to the design system, it is only allowd for `info` _(default: undefined)_",
|
|
497
|
+
"attributes": [
|
|
498
|
+
{
|
|
499
|
+
"name": "type",
|
|
500
|
+
"description": "The type of the message. `error` and `success` will be displayed as filled boxes.",
|
|
501
|
+
"values": [
|
|
502
|
+
{ "name": "error" },
|
|
503
|
+
{ "name": "success" },
|
|
504
|
+
{ "name": "info" },
|
|
505
|
+
{ "name": "warning" }
|
|
506
|
+
]
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"name": "size",
|
|
510
|
+
"description": "The size of the message. A call to action button is only allowed for `large` messages.",
|
|
511
|
+
"values": [{ "name": "regular" }, { "name": "large" }]
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"name": "removable",
|
|
515
|
+
"description": "Wheter the message is removable or not. The component will not remove itself when the close button is clicked.",
|
|
516
|
+
"values": []
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"name": "popup",
|
|
520
|
+
"description": "Wheter the message is used as a popup or not. This will add a drop shadow but will not position the message absolutely.",
|
|
521
|
+
"values": []
|
|
522
|
+
}
|
|
523
|
+
],
|
|
524
|
+
"references": [
|
|
525
|
+
{
|
|
526
|
+
"name": "Documentation",
|
|
527
|
+
"url": "https://statistikzh.github.io/leu/?path=/story/message"
|
|
528
|
+
}
|
|
529
|
+
]
|
|
530
|
+
},
|
|
477
531
|
{
|
|
478
532
|
"name": "leu-pagination",
|
|
479
533
|
"description": "\n---\n\n\n### **Events:**\n - **leu:pagechange**",
|
|
@@ -700,23 +754,6 @@
|
|
|
700
754
|
}
|
|
701
755
|
]
|
|
702
756
|
},
|
|
703
|
-
{
|
|
704
|
-
"name": "leu-chart-wrapper",
|
|
705
|
-
"description": "A wrapper element for charts.\n---\n\n\n### **Slots:**\n - **title** - The title of the chart. Use a heading tag (h2-4) depending on your context.\n- **description** - A description of the chart. Content is wrapped in a `<p>` tag by the component.\n- **chart** - The actual chart\n- **caption** - A caption for the chart, e.g. a source or explanation of the data.\n- **download** - A download button or dropdown to export the chart in different formats.",
|
|
706
|
-
"attributes": [
|
|
707
|
-
{
|
|
708
|
-
"name": "pending",
|
|
709
|
-
"description": "Whether the chart is currently loading or not.\nWhen set to `true`, a spinner will be shown in the chart container.",
|
|
710
|
-
"values": []
|
|
711
|
-
}
|
|
712
|
-
],
|
|
713
|
-
"references": [
|
|
714
|
-
{
|
|
715
|
-
"name": "Documentation",
|
|
716
|
-
"url": "https://statistikzh.github.io/leu/?path=/story/chart-wrapper"
|
|
717
|
-
}
|
|
718
|
-
]
|
|
719
|
-
},
|
|
720
757
|
{
|
|
721
758
|
"name": "leu-visually-hidden",
|
|
722
759
|
"description": "\n---\n",
|
package/dist/vue/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { DefineComponent } from "vue";
|
|
|
3
3
|
import type { LeuAccordion } from "../Accordion.js";
|
|
4
4
|
import type { LeuButton } from "../Button.js";
|
|
5
5
|
import type { LeuButtonGroup } from "../ButtonGroup.js";
|
|
6
|
+
import type { LeuChartWrapper } from "../ChartWrapper.js";
|
|
6
7
|
import type { LeuCheckbox } from "../Checkbox.js";
|
|
7
8
|
import type { LeuCheckboxGroup } from "../CheckboxGroup.js";
|
|
8
9
|
import type { LeuChipGroup } from "../ChipGroup.js";
|
|
@@ -15,6 +16,7 @@ import type { LeuIcon } from "../Icon.js";
|
|
|
15
16
|
import type { LeuInput, CustomEvent } from "../Input.js";
|
|
16
17
|
import type { LeuMenu } from "../Menu.js";
|
|
17
18
|
import type { LeuMenuItem } from "../MenuItem.js";
|
|
19
|
+
import type { LeuMessage, CustomEvent } from "../Message.js";
|
|
18
20
|
import type { LeuPagination, CustomEvent } from "../Pagination.js";
|
|
19
21
|
import type { LeuPlaceholder } from "../Placeholder.js";
|
|
20
22
|
import type { LeuPopup } from "../Popup.js";
|
|
@@ -25,7 +27,6 @@ import type { LeuScrollTop } from "../ScrollTop.js";
|
|
|
25
27
|
import type { LeuSelect } from "../Select.js";
|
|
26
28
|
import type { LeuSpinner } from "../Spinner.js";
|
|
27
29
|
import type { LeuTable } from "../Table.js";
|
|
28
|
-
import type { LeuChartWrapper } from "../ChartWrapper.js";
|
|
29
30
|
import type { LeuVisuallyHidden } from "../VisuallyHidden.js";
|
|
30
31
|
|
|
31
32
|
type LeuAccordionProps = {
|
|
@@ -77,6 +78,14 @@ type LeuButtonGroupProps = {
|
|
|
77
78
|
oninput?: (e: CustomEvent<never>) => void;
|
|
78
79
|
};
|
|
79
80
|
|
|
81
|
+
type LeuChartWrapperProps = {
|
|
82
|
+
/** Whether the chart is currently loading or not.
|
|
83
|
+
When set to `true`, a spinner will be shown in the chart container. */
|
|
84
|
+
pending?: LeuChartWrapper["pending"];
|
|
85
|
+
/** */
|
|
86
|
+
hasSlotController?: LeuChartWrapper["hasSlotController"];
|
|
87
|
+
};
|
|
88
|
+
|
|
80
89
|
type LeuCheckboxProps = {
|
|
81
90
|
/** */
|
|
82
91
|
checked?: LeuCheckbox["checked"];
|
|
@@ -255,6 +264,20 @@ type LeuMenuItemProps = {
|
|
|
255
264
|
componentRole?: LeuMenuItem["componentRole"];
|
|
256
265
|
};
|
|
257
266
|
|
|
267
|
+
type LeuMessageProps = {
|
|
268
|
+
/** The type of the message. `error` and `success` will be displayed as filled boxes. */
|
|
269
|
+
type?: LeuMessage["type"];
|
|
270
|
+
/** The size of the message. A call to action button is only allowed for `large` messages. */
|
|
271
|
+
size?: LeuMessage["size"];
|
|
272
|
+
/** Wheter the message is removable or not. The component will not remove itself when the close button is clicked. */
|
|
273
|
+
removable?: LeuMessage["removable"];
|
|
274
|
+
/** Wheter the message is used as a popup or not. This will add a drop shadow but will not position the message absolutely. */
|
|
275
|
+
popup?: LeuMessage["popup"];
|
|
276
|
+
|
|
277
|
+
/** Fired when the close button is clicked. */
|
|
278
|
+
"onleu:remove"?: (e: CustomEvent<CustomEvent>) => void;
|
|
279
|
+
};
|
|
280
|
+
|
|
258
281
|
type LeuPaginationProps = {
|
|
259
282
|
/** */
|
|
260
283
|
defaultPage?: LeuPagination["defaultPage"];
|
|
@@ -426,14 +449,6 @@ type LeuTableProps = {
|
|
|
426
449
|
_resizeObserver?: LeuTable["_resizeObserver"];
|
|
427
450
|
};
|
|
428
451
|
|
|
429
|
-
type LeuChartWrapperProps = {
|
|
430
|
-
/** Whether the chart is currently loading or not.
|
|
431
|
-
When set to `true`, a spinner will be shown in the chart container. */
|
|
432
|
-
pending?: LeuChartWrapper["pending"];
|
|
433
|
-
/** */
|
|
434
|
-
hasSlotController?: LeuChartWrapper["hasSlotController"];
|
|
435
|
-
};
|
|
436
|
-
|
|
437
452
|
type LeuVisuallyHiddenProps = {};
|
|
438
453
|
|
|
439
454
|
export type CustomElements = {
|
|
@@ -473,6 +488,20 @@ export type CustomElements = {
|
|
|
473
488
|
*/
|
|
474
489
|
"leu-button-group": DefineComponent<LeuButtonGroupProps>;
|
|
475
490
|
|
|
491
|
+
/**
|
|
492
|
+
* A wrapper element for charts.
|
|
493
|
+
* ---
|
|
494
|
+
*
|
|
495
|
+
*
|
|
496
|
+
* ### **Slots:**
|
|
497
|
+
* - **title** - The title of the chart. Use a heading tag (h2-4) depending on your context.
|
|
498
|
+
* - **description** - A description of the chart. Content is wrapped in a `<p>` tag by the component.
|
|
499
|
+
* - **chart** - The actual chart
|
|
500
|
+
* - **caption** - A caption for the chart, e.g. a source or explanation of the data.
|
|
501
|
+
* - **download** - A download button or dropdown to export the chart in different formats.
|
|
502
|
+
*/
|
|
503
|
+
"leu-chart-wrapper": DefineComponent<LeuChartWrapperProps>;
|
|
504
|
+
|
|
476
505
|
/**
|
|
477
506
|
*
|
|
478
507
|
* ---
|
|
@@ -614,6 +643,23 @@ export type CustomElements = {
|
|
|
614
643
|
*/
|
|
615
644
|
"leu-menu-item": DefineComponent<LeuMenuItemProps>;
|
|
616
645
|
|
|
646
|
+
/**
|
|
647
|
+
*
|
|
648
|
+
* ---
|
|
649
|
+
*
|
|
650
|
+
*
|
|
651
|
+
* ### **Events:**
|
|
652
|
+
* - **leu:remove** - Fired when the close button is clicked.
|
|
653
|
+
*
|
|
654
|
+
* ### **Slots:**
|
|
655
|
+
* - **default** - The content of the message. The title of the message should marked up with a `<strong>` tag.
|
|
656
|
+
* - **cta** - A call to action button that is only allowed for `size=large`
|
|
657
|
+
*
|
|
658
|
+
* ### **CSS Properties:**
|
|
659
|
+
* - **--leu-message-accent-color** - Sets the color of the message. According to the design system, it is only allowd for `info` _(default: undefined)_
|
|
660
|
+
*/
|
|
661
|
+
"leu-message": DefineComponent<LeuMessageProps>;
|
|
662
|
+
|
|
617
663
|
/**
|
|
618
664
|
*
|
|
619
665
|
* ---
|
|
@@ -713,20 +759,6 @@ export type CustomElements = {
|
|
|
713
759
|
*/
|
|
714
760
|
"leu-table": DefineComponent<LeuTableProps>;
|
|
715
761
|
|
|
716
|
-
/**
|
|
717
|
-
* A wrapper element for charts.
|
|
718
|
-
* ---
|
|
719
|
-
*
|
|
720
|
-
*
|
|
721
|
-
* ### **Slots:**
|
|
722
|
-
* - **title** - The title of the chart. Use a heading tag (h2-4) depending on your context.
|
|
723
|
-
* - **description** - A description of the chart. Content is wrapped in a `<p>` tag by the component.
|
|
724
|
-
* - **chart** - The actual chart
|
|
725
|
-
* - **caption** - A caption for the chart, e.g. a source or explanation of the data.
|
|
726
|
-
* - **download** - A download button or dropdown to export the chart in different formats.
|
|
727
|
-
*/
|
|
728
|
-
"leu-chart-wrapper": DefineComponent<LeuChartWrapperProps>;
|
|
729
|
-
|
|
730
762
|
/**
|
|
731
763
|
*
|
|
732
764
|
* ---
|