@designsystem-se/af 39.2.1 → 39.2.2
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/digi-bar-chart.js +67 -17
- package/components/digi-calendar-datepicker.js +1 -1
- package/components/digi-calendar-week-view.js +51 -6
- package/components/digi-calendar.js +1 -1
- package/components/digi-chart-line.js +57 -14
- package/components/digi-navigation-vertical-menu.js +27 -13
- package/components/digi-tablist.js +36 -13
- package/components/{p-CrUxQ9d0.js → p-C5A2t93y.js} +1 -1
- package/dist/cjs/{calendar-week-view-heading-level.enum-NEkm5SUq.js → calendar-week-view-heading-level.enum-BI2f9bbk.js} +7 -0
- package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
- package/dist/cjs/{digi-button_5.cjs.entry.js → digi-badge-notification_8.cjs.entry.js} +436 -7
- package/dist/cjs/digi-bar-chart.cjs.entry.js +67 -17
- package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +1 -2
- package/dist/cjs/digi-calendar_2.cjs.entry.js +1 -1
- package/dist/cjs/digi-chart-line.cjs.entry.js +57 -14
- package/dist/cjs/digi-code-block_3.cjs.entry.js +1 -2
- package/dist/cjs/digi-dialog.cjs.entry.js +1 -2
- package/dist/cjs/digi-footer.cjs.entry.js +1 -2
- package/dist/cjs/digi-form-error-list.cjs.entry.js +1 -2
- package/dist/cjs/digi-form-receipt.cjs.entry.js +1 -2
- package/dist/cjs/digi-form-select-filter.cjs.entry.js +1 -2
- package/dist/cjs/digi-header-navigation.cjs.entry.js +1 -2
- package/dist/cjs/digi-header.cjs.entry.js +1 -2
- package/dist/cjs/digi-navigation-pagination.cjs.entry.js +1 -2
- package/dist/cjs/digi-navigation-vertical-menu.cjs.entry.js +27 -13
- package/dist/cjs/digi-notification-alert.cjs.entry.js +1 -2
- package/dist/cjs/digi-notification-error-page.cjs.entry.js +1 -2
- package/dist/cjs/digi-title-logo.cjs.entry.js +1 -2
- package/dist/cjs/digi-tools-feedback.cjs.entry.js +1 -2
- package/dist/cjs/index-Cn1hHaSy.js +2 -14
- package/dist/cjs/index.cjs.js +6 -7
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/_calendar/calendar/calendar.css +5 -6
- package/dist/collection/components/_calendar/week-view/calendar-week-view.js +53 -8
- package/dist/collection/components/_chart/bar-chart/bar-chart.css +1 -1
- package/dist/collection/components/_chart/bar-chart/bar-chart.js +66 -16
- package/dist/collection/components/_chart/chart-line/chart-line.js +57 -14
- package/dist/collection/components/_navigation/navigation-tablist/navigation-tablist.js +36 -13
- package/dist/collection/components/_navigation/navigation-vertical-menu/navigation-vertical-menu.js +27 -13
- package/dist/collection/design-tokens/components/_logo.variables.scss +2 -0
- package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/p-0f7e995a.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-26f6a310.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-3b42582a.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-4384644b.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-47513f97.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-569c628c.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-668d38d9.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-66f34ca5.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-6cb1c6ea.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-6e256f0c.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-71a8478d.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-9df345c4.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-BBOpiDGx.js +1 -0
- package/dist/digi-arbetsformedlingen/p-a1deddb1.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-beebbc90.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-ee58a938.entry.js → p-c7ade486.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-d065e751.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-d150094c.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-df8efa59.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-e2b0b070.entry.js +1 -0
- package/dist/esm/{calendar-week-view-heading-level.enum-DH_-wpLB.js → calendar-week-view-heading-level.enum-BBOpiDGx.js} +8 -1
- package/dist/esm/digi-arbetsformedlingen.js +1 -1
- package/dist/esm/{digi-button_5.entry.js → digi-badge-notification_8.entry.js} +435 -9
- package/dist/esm/digi-bar-chart.entry.js +67 -17
- package/dist/esm/digi-calendar-datepicker.entry.js +1 -2
- package/dist/esm/digi-calendar_2.entry.js +1 -1
- package/dist/esm/digi-chart-line.entry.js +57 -14
- package/dist/esm/digi-code-block_3.entry.js +1 -2
- package/dist/esm/digi-dialog.entry.js +1 -2
- package/dist/esm/digi-footer.entry.js +1 -2
- package/dist/esm/digi-form-error-list.entry.js +1 -2
- package/dist/esm/digi-form-receipt.entry.js +1 -2
- package/dist/esm/digi-form-select-filter.entry.js +1 -2
- package/dist/esm/digi-header-navigation.entry.js +1 -2
- package/dist/esm/digi-header.entry.js +1 -2
- package/dist/esm/digi-navigation-pagination.entry.js +1 -2
- package/dist/esm/digi-navigation-vertical-menu.entry.js +27 -13
- package/dist/esm/digi-notification-alert.entry.js +1 -2
- package/dist/esm/digi-notification-error-page.entry.js +1 -2
- package/dist/esm/digi-title-logo.entry.js +1 -2
- package/dist/esm/digi-tools-feedback.entry.js +1 -2
- package/dist/esm/index-BnKuq1L7.js +2 -14
- package/dist/esm/index.js +1 -2
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/_calendar/week-view/calendar-week-view.d.ts +4 -2
- package/dist/types/components/_chart/bar-chart/bar-chart.d.ts +4 -2
- package/dist/types/components/_chart/chart-line/chart-line.d.ts +3 -1
- package/dist/types/components/_navigation/navigation-tablist/navigation-tablist.d.ts +4 -2
- package/dist/types/components/_navigation/navigation-vertical-menu/navigation-vertical-menu.d.ts +7 -2
- package/dist/types/components.d.ts +3 -3
- package/hydrate/index.js +236 -64
- package/hydrate/index.mjs +236 -64
- package/package.json +1 -1
- package/dist/cjs/badge-notification-shape.enum-CEyEo2G5.js +0 -8
- package/dist/cjs/digi-badge-notification.cjs.entry.js +0 -65
- package/dist/cjs/digi-tablist-panel.cjs.entry.js +0 -20
- package/dist/cjs/digi-tablist.cjs.entry.js +0 -289
- package/dist/digi-arbetsformedlingen/p-0394e694.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-09b52191.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-0c88f210.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-151248bf.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-26099889.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-52a27991.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-5ee5766d.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-626c1bf5.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-674a7a94.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-6c1fd994.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-7682ad6f.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-7f180ce2.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-88bec555.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-CKoZU0-H.js +0 -1
- package/dist/digi-arbetsformedlingen/p-DH_-wpLB.js +0 -1
- package/dist/digi-arbetsformedlingen/p-a556608d.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-b3410fbd.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e002ceb8.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e6ee5a17.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-ec6dd177.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-eee1b91f.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-fea63204.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-ff73fa2f.entry.js +0 -1
- package/dist/esm/badge-notification-shape.enum-CKoZU0-H.js +0 -8
- package/dist/esm/digi-badge-notification.entry.js +0 -63
- package/dist/esm/digi-tablist-panel.entry.js +0 -18
- package/dist/esm/digi-tablist.entry.js +0 -287
package/dist/collection/components/_navigation/navigation-vertical-menu/navigation-vertical-menu.js
CHANGED
|
@@ -81,16 +81,28 @@ export class NavigationVerticalMenu {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
componentWillLoad() {
|
|
84
|
-
this.
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
this.syncNav();
|
|
85
|
+
// Angular attaches the host first and slots children on the next frame
|
|
86
|
+
// (Stencil 4.36+). React/vanilla that already have slotted nodes skip
|
|
87
|
+
// the delay. Do not warn here — Angular/React may still be projecting.
|
|
88
|
+
if (!this.hostElement.children.length) {
|
|
89
|
+
return new Promise((resolve) => {
|
|
90
|
+
requestAnimationFrame(() => {
|
|
91
|
+
this.syncNav();
|
|
92
|
+
resolve();
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
}
|
|
87
96
|
}
|
|
88
97
|
componentDidLoad() {
|
|
89
98
|
this.initCurrentActiveLevel();
|
|
90
99
|
this.afOnReady.emit();
|
|
91
100
|
}
|
|
92
101
|
componentWillUpdate() {
|
|
93
|
-
this.
|
|
102
|
+
this.syncNav();
|
|
103
|
+
}
|
|
104
|
+
syncNav(options) {
|
|
105
|
+
this.getListItems(options);
|
|
94
106
|
this.initNav();
|
|
95
107
|
this.setLevelClass();
|
|
96
108
|
}
|
|
@@ -140,12 +152,12 @@ export class NavigationVerticalMenu {
|
|
|
140
152
|
}
|
|
141
153
|
}
|
|
142
154
|
setLevelClass() {
|
|
143
|
-
this.hostElement
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
155
|
+
const rootList = this.hostElement.querySelector('ul');
|
|
156
|
+
if (!rootList) {
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
rootList.classList.remove('primary', 'secondary');
|
|
160
|
+
rootList.classList.add('digi-navigation-vertical-menu__list--root', this.afVariation);
|
|
149
161
|
}
|
|
150
162
|
initNav() {
|
|
151
163
|
const $ul = this.hostElement.querySelectorAll('ul');
|
|
@@ -158,10 +170,12 @@ export class NavigationVerticalMenu {
|
|
|
158
170
|
this.initNav();
|
|
159
171
|
this.setClasses(e);
|
|
160
172
|
}
|
|
161
|
-
getListItems() {
|
|
173
|
+
getListItems(options) {
|
|
162
174
|
const menuItems = this.hostElement.children;
|
|
163
175
|
if (!menuItems || menuItems.length <= 0) {
|
|
164
|
-
|
|
176
|
+
if (options === null || options === void 0 ? void 0 : options.warnIfEmpty) {
|
|
177
|
+
logger.warn(`The slot contains no children elements.`, this.hostElement);
|
|
178
|
+
}
|
|
165
179
|
return;
|
|
166
180
|
}
|
|
167
181
|
this.listItems = [...Array.from(menuItems)].map((filter) => {
|
|
@@ -180,7 +194,7 @@ export class NavigationVerticalMenu {
|
|
|
180
194
|
};
|
|
181
195
|
}
|
|
182
196
|
render() {
|
|
183
|
-
return (h("nav", { key: '
|
|
197
|
+
return (h("nav", { key: 'df2239de80363247c33eadf6995331a74a40966f', class: Object.assign({ 'digi-navigation-vertical-menu': true }, this.cssModifiers), id: this.afId, "aria-label": this.afAriaLabel }, h("slot", { key: 'dc2e22c2cfd00786964855ea3bc2b7271879510c', onSlotchange: () => this.syncNav() })));
|
|
184
198
|
}
|
|
185
199
|
static get is() { return "digi-navigation-vertical-menu"; }
|
|
186
200
|
static get encapsulation() { return "scoped"; }
|
|
@@ -15,4 +15,6 @@
|
|
|
15
15
|
--digi--logo--secondary--symbol: var(--digi--color--logotype--secondary--symbol);
|
|
16
16
|
--digi--logo--primary--text: var(--digi--color--logotype--primary--text);
|
|
17
17
|
--digi--logo--secondary--text: var(--digi--color--logotype--secondary--text);
|
|
18
|
+
}g: 1.375rem;
|
|
19
|
+
--digi--title-logo-gap: 9px;
|
|
18
20
|
}
|