@skf-design-system/ui-components 1.0.2-beta.1 → 1.0.2-beta.10
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/README.md +25 -1
- package/dist/components/accordion/accordion-item.component.js +49 -38
- package/dist/components/accordion/accordion.component.d.ts +2 -2
- package/dist/components/accordion/accordion.component.js +12 -12
- package/dist/components/alert/alert.component.d.ts +8 -3
- package/dist/components/alert/alert.component.js +59 -50
- package/dist/components/alert/alert.styles.js +51 -47
- package/dist/components/breadcrumb/breadcrumb-item.component.js +30 -32
- package/dist/components/breadcrumb/breadcrumb-item.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-item.styles.js +16 -15
- package/dist/components/breadcrumb/breadcrumb.component.d.ts +5 -2
- package/dist/components/breadcrumb/breadcrumb.component.js +51 -46
- package/dist/components/breadcrumb/breadcrumb.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb.styles.js +13 -10
- package/dist/components/button/button.component.js +63 -67
- package/dist/components/button/button.styles.js +5 -4
- package/dist/components/card/card.component.d.ts +5 -0
- package/dist/components/card/card.component.js +46 -24
- package/dist/components/card/card.styles.js +31 -14
- package/dist/components/checkbox/checkbox.component.d.ts +6 -5
- package/dist/components/checkbox/checkbox.component.js +67 -69
- package/dist/components/checkbox/checkbox.styles.js +1 -1
- package/dist/components/{date-picker/datepicker.calendar.component.d.ts → datepicker/datepicker-calendar.component.d.ts} +8 -1
- package/dist/components/{date-picker/datepicker.calendar.component.js → datepicker/datepicker-calendar.component.js} +109 -115
- package/dist/components/datepicker/datepicker-calendar.d.ts +8 -0
- package/dist/components/datepicker/datepicker-calendar.js +6 -0
- package/dist/components/{date-picker/datepicker.component.d.ts → datepicker/datepicker-popup.component.d.ts} +9 -20
- package/dist/components/datepicker/datepicker-popup.component.js +272 -0
- package/dist/components/datepicker/datepicker-popup.d.ts +8 -0
- package/dist/components/{date-picker/datepicker.helpers.d.ts → datepicker/datepicker-popup.helpers.d.ts} +3 -3
- package/dist/components/datepicker/datepicker-popup.helpers.js +83 -0
- package/dist/components/datepicker/datepicker-popup.js +6 -0
- package/dist/components/{date-picker/datepicker.styles.js → datepicker/datepicker-popup.styles.js} +3 -3
- package/dist/components/{date-picker-input/datepicker-input.component.d.ts → datepicker/datepicker.component.d.ts} +21 -14
- package/dist/components/datepicker/datepicker.component.js +455 -0
- package/dist/components/datepicker/datepicker.d.ts +8 -0
- package/dist/components/datepicker/datepicker.js +6 -0
- package/dist/components/dialog/dialog.component.d.ts +3 -2
- package/dist/components/dialog/dialog.component.js +49 -49
- package/dist/components/dialog/dialog.d.ts +2 -2
- package/dist/components/divider/divider.component.d.ts +3 -0
- package/dist/components/divider/divider.component.js +43 -22
- package/dist/components/divider/divider.styles.js +9 -9
- package/dist/components/drawer/drawer.component.d.ts +12 -4
- package/dist/components/drawer/drawer.component.js +84 -61
- package/dist/components/drawer/drawer.d.ts +2 -2
- package/dist/components/drawer/drawer.styles.js +47 -40
- package/dist/components/header/header.component.d.ts +4 -2
- package/dist/components/header/header.component.js +64 -57
- package/dist/components/header/header.d.ts +2 -2
- package/dist/components/header/header.styles.js +2 -2
- package/dist/components/heading/heading.component.d.ts +5 -1
- package/dist/components/heading/heading.component.js +54 -27
- package/dist/components/heading/heading.styles.js +34 -36
- package/dist/components/icon/icon.component.d.ts +4 -0
- package/dist/components/icon/icon.component.js +62 -43
- package/dist/components/icon/icon.styles.js +60 -60
- package/dist/components/input/input.component.d.ts +4 -8
- package/dist/components/input/input.component.js +90 -97
- package/dist/components/input/input.controllers.d.ts +0 -1
- package/dist/components/input/input.controllers.js +14 -19
- package/dist/components/link/link.component.d.ts +15 -18
- package/dist/components/link/link.component.js +104 -107
- package/dist/components/link/link.styles.js +53 -45
- package/dist/components/loader/loader.component.d.ts +5 -3
- package/dist/components/loader/loader.component.js +39 -28
- package/dist/components/loader/loader.styles.js +6 -10
- package/dist/components/logo/logo.component.d.ts +4 -1
- package/dist/components/logo/logo.component.js +55 -51
- package/dist/components/logo/logo.styles.js +26 -16
- package/dist/components/menu/menu-item.component.d.ts +1 -1
- package/dist/components/menu/menu-item.component.js +8 -8
- package/dist/components/menu/menu-item.d.ts +2 -2
- package/dist/components/menu/menu-item.styles.js +13 -9
- package/dist/components/menu/menu.component.d.ts +5 -2
- package/dist/components/menu/menu.component.js +8 -8
- package/dist/components/menu/menu.d.ts +2 -2
- package/dist/components/nav/nav-item.component.d.ts +6 -2
- package/dist/components/nav/nav-item.component.js +44 -25
- package/dist/components/nav/nav-item.styles.js +29 -25
- package/dist/components/nav/nav.component.d.ts +9 -0
- package/dist/components/nav/nav.component.js +47 -21
- package/dist/components/nav/nav.d.ts +2 -2
- package/dist/components/nav/nav.styles.js +15 -9
- package/dist/components/popover/popover.component.d.ts +10 -3
- package/dist/components/popover/popover.component.js +30 -22
- package/dist/components/popover/popover.d.ts +2 -2
- package/dist/components/progress/progress.component.d.ts +2 -0
- package/dist/components/progress/progress.component.js +38 -29
- package/dist/components/progress/progress.d.ts +2 -2
- package/dist/components/progress/progress.styles.js +10 -8
- package/dist/components/radio/radio.component.d.ts +4 -2
- package/dist/components/radio/radio.component.js +96 -91
- package/dist/components/radio/radio.styles.js +1 -1
- package/dist/components/segmented-button/segmented-button-item.component.js +1 -1
- package/dist/components/segmented-button/segmented-button-item.d.ts +2 -2
- package/dist/components/segmented-button/segmented-button-item.styles.js +1 -1
- package/dist/components/segmented-button/segmented-button.component.js +22 -24
- package/dist/components/segmented-button/segmented-button.d.ts +2 -2
- package/dist/components/select/select-option-group.component.d.ts +4 -0
- package/dist/components/select/select-option-group.component.js +37 -18
- package/dist/components/select/select-option-group.d.ts +2 -2
- package/dist/components/select/select-option-group.style.js +12 -6
- package/dist/components/select/select-option.component.d.ts +9 -4
- package/dist/components/select/select-option.component.js +70 -58
- package/dist/components/select/select-option.styles.js +43 -31
- package/dist/components/select/select.component.d.ts +21 -12
- package/dist/components/select/select.component.js +125 -87
- package/dist/components/select/select.controllers.js +15 -20
- package/dist/components/select/select.styles.js +8 -2
- package/dist/components/stepper/stepper-item.component.d.ts +1 -1
- package/dist/components/stepper/stepper-item.component.js +59 -56
- package/dist/components/stepper/stepper-item.d.ts +2 -2
- package/dist/components/stepper/stepper-item.styles.js +4 -4
- package/dist/components/stepper/stepper.component.js +2 -3
- package/dist/components/stepper/stepper.d.ts +2 -2
- package/dist/components/stepper/stepper.helpers.js +6 -7
- package/dist/components/switch/switch.component.d.ts +4 -2
- package/dist/components/switch/switch.component.js +64 -58
- package/dist/components/switch/switch.d.ts +2 -2
- package/dist/components/switch/switch.styles.js +1 -1
- package/dist/components/{tab-panel → tabs}/tab-panel.component.d.ts +1 -1
- package/dist/components/tabs/tab-panel.component.js +39 -0
- package/dist/components/{tab-panel → tabs}/tab-panel.d.ts +2 -2
- package/dist/components/{tab → tabs}/tab.component.d.ts +3 -3
- package/dist/components/{tab → tabs}/tab.component.js +17 -14
- package/dist/components/{tab → tabs}/tab.d.ts +2 -2
- package/dist/components/{tab → tabs}/tab.styles.js +2 -2
- package/dist/components/{tab-group/tab-group.component.d.ts → tabs/tabs.component.d.ts} +3 -4
- package/dist/components/{tab-group/tab-group.component.js → tabs/tabs.component.js} +35 -36
- package/dist/components/tabs/tabs.d.ts +8 -0
- package/dist/components/tabs/tabs.js +6 -0
- package/dist/components/{tab-group/tab-group.styles.js → tabs/tabs.styles.js} +16 -16
- package/dist/components/tag/tag.component.d.ts +10 -2
- package/dist/components/tag/tag.component.js +77 -65
- package/dist/components/tag/tag.d.ts +2 -2
- package/dist/components/tag/tag.styles.js +63 -50
- package/dist/components/textarea/textarea.component.d.ts +4 -2
- package/dist/components/textarea/textarea.component.js +102 -95
- package/dist/components/toast/toast-item.styles.js +13 -10
- package/dist/components/toast/toast.component.js +9 -9
- package/dist/components/toast/toast.singleton.d.ts +1 -1
- package/dist/components/toast/toast.singleton.js +19 -20
- package/dist/components/tooltip/tooltip.component.d.ts +9 -2
- package/dist/components/tooltip/tooltip.component.js +15 -11
- package/dist/components/tooltip/tooltip.d.ts +2 -2
- package/dist/custom-elements.json +1681 -1112
- package/dist/index.d.ts +8 -7
- package/dist/index.js +96 -93
- package/dist/internal/base-classes/popover/popover.base.d.ts +24 -5
- package/dist/internal/base-classes/popover/popover.base.js +41 -44
- package/dist/internal/base-classes/popover/popover.styles.js +4 -5
- package/dist/internal/components/formBase.d.ts +1 -0
- package/dist/internal/components/formBase.js +11 -19
- package/dist/internal/components/hint/hint.component.d.ts +4 -0
- package/dist/internal/components/hint/hint.component.js +47 -20
- package/dist/internal/components/hint/hint.styles.js +29 -25
- package/dist/internal/components/skf-element.d.ts +1 -3
- package/dist/internal/components/skf-element.js +4 -9
- package/dist/internal/controllers/popover.controller.d.ts +2 -0
- package/dist/internal/controllers/popover.controller.js +11 -14
- package/dist/internal/helpers/stateMap.d.ts +14 -0
- package/dist/internal/helpers/stateMap.js +68 -0
- package/dist/internal/helpers/uuid.d.ts +8 -10
- package/dist/internal/helpers/uuid.js +4 -11
- package/dist/internal/helpers/watch.d.ts +1 -1
- package/dist/internal/helpers/watch.js +12 -12
- package/dist/internal/templates/asterisk.d.ts +1 -1
- package/dist/internal/templates/asterisk.js +4 -4
- package/dist/internal/types.d.ts +4 -0
- package/dist/styles/component.styles.js +37 -36
- package/dist/styles/global-alt.css +1 -0
- package/dist/styles/global.css +1 -1
- package/dist/translations/en.d.ts +3 -0
- package/dist/translations/en.js +27 -0
- package/dist/translations/es.d.ts +3 -0
- package/dist/translations/es.js +27 -0
- package/dist/translations/index.d.ts +4 -0
- package/dist/translations/pt.d.ts +3 -0
- package/dist/translations/pt.js +27 -0
- package/dist/translations/sv.d.ts +3 -0
- package/dist/translations/sv.js +27 -0
- package/dist/types/jsx/custom-element-jsx.d.ts +1988 -866
- package/dist/types/vue/index.d.ts +220 -169
- package/dist/utilities/localize.d.ts +28 -0
- package/dist/utilities/localize.js +13 -0
- package/dist/vscode.html-custom-data.json +265 -188
- package/dist/web-types.json +731 -548
- package/package.json +38 -51
- package/dist/components/accordion/accordion-item.test.d.ts +0 -1
- package/dist/components/accordion/accordion.test.d.ts +0 -1
- package/dist/components/checkbox/checkbox.test.d.ts +0 -1
- package/dist/components/date-picker/datepicker.component.js +0 -261
- package/dist/components/date-picker/datepicker.d.ts +0 -10
- package/dist/components/date-picker/datepicker.helpers.js +0 -76
- package/dist/components/date-picker/datepicker.js +0 -8
- package/dist/components/date-picker-input/datepicker-input.component.js +0 -442
- package/dist/components/date-picker-input/datepicker-input.d.ts +0 -8
- package/dist/components/date-picker-input/datepicker-input.js +0 -6
- package/dist/components/input/input.test.d.ts +0 -1
- package/dist/components/radio/radio.test.d.ts +0 -1
- package/dist/components/switch/switch.test.d.ts +0 -1
- package/dist/components/tab-group/tab-group.d.ts +0 -8
- package/dist/components/tab-group/tab-group.js +0 -6
- package/dist/components/tab-panel/tab-panel.component.js +0 -36
- package/dist/internal/playwright/index.d.ts +0 -1
- /package/dist/components/{date-picker/datepicker.calendar.styles.d.ts → datepicker/datepicker-calendar.styles.d.ts} +0 -0
- /package/dist/components/{date-picker/datepicker.calendar.styles.js → datepicker/datepicker-calendar.styles.js} +0 -0
- /package/dist/components/{date-picker/datepicker.styles.d.ts → datepicker/datepicker-popup.styles.d.ts} +0 -0
- /package/dist/components/{date-picker-input/datepicker-input.helpers.d.ts → datepicker/datepicker.helpers.d.ts} +0 -0
- /package/dist/components/{date-picker-input/datepicker-input.helpers.js → datepicker/datepicker.helpers.js} +0 -0
- /package/dist/components/{date-picker-input/datepicker-input.styles.d.ts → datepicker/datepicker.styles.d.ts} +0 -0
- /package/dist/components/{date-picker-input/datepicker-input.styles.js → datepicker/datepicker.styles.js} +0 -0
- /package/dist/components/select/{select.stories.icons.d.ts → stories/select.stories.icons.d.ts} +0 -0
- /package/dist/components/{tab-panel → tabs}/tab-panel.js +0 -0
- /package/dist/components/{tab-panel → tabs}/tab-panel.styles.d.ts +0 -0
- /package/dist/components/{tab-panel → tabs}/tab-panel.styles.js +0 -0
- /package/dist/components/{tab → tabs}/tab.js +0 -0
- /package/dist/components/{tab → tabs}/tab.styles.d.ts +0 -0
- /package/dist/components/{tab-group/tab-group.styles.d.ts → tabs/tabs.styles.d.ts} +0 -0
@@ -1,79 +1,83 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
import { html as n } from "lit";
|
4
|
-
import { property as p } from "lit/decorators.js";
|
5
|
-
import { classMap as a } from "lit/directives/class-map.js";
|
6
|
-
import { styles as d } from "./logo.styles.js";
|
7
|
-
var g = Object.defineProperty, v = (e, l, s, y) => {
|
8
|
-
for (var c = void 0, r = e.length - 1, h; r >= 0; r--)
|
9
|
-
(h = e[r]) && (c = h(l, s, c) || c);
|
10
|
-
return c && g(l, s, c), c;
|
1
|
+
var f = (c) => {
|
2
|
+
throw TypeError(c);
|
11
3
|
};
|
12
|
-
|
4
|
+
var g = (c, t, r) => t.has(c) || f("Cannot " + r);
|
5
|
+
var a = (c, t, r) => (g(c, t, "read from private field"), r ? r.call(c) : t.get(c)), v = (c, t, r) => t.has(c) ? f("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(c) : t.set(c, r), n = (c, t, r, e) => (g(c, t, "write to private field"), e ? e.call(c, r) : t.set(c, r), r);
|
6
|
+
import { SkfElement as w } from "../../internal/components/skf-element.js";
|
7
|
+
import { stateMap as H } from "../../internal/helpers/stateMap.js";
|
8
|
+
import { watch as M } from "../../internal/helpers/watch.js";
|
9
|
+
import { componentStyles as V } from "../../styles/component.styles.js";
|
10
|
+
import { html as x } from "lit";
|
11
|
+
import { property as d } from "lit/decorators.js";
|
12
|
+
import { styles as z } from "./logo.styles.js";
|
13
|
+
var C = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, m = (c, t, r, e) => {
|
14
|
+
for (var s = e > 1 ? void 0 : e ? _(t, r) : t, i = c.length - 1, l; i >= 0; i--)
|
15
|
+
(l = c[i]) && (s = (e ? l(t, r, s) : l(s)) || s);
|
16
|
+
return e && s && C(t, r, s), s;
|
17
|
+
}, h, p;
|
18
|
+
const y = class y extends w {
|
13
19
|
constructor() {
|
14
|
-
super(...arguments)
|
20
|
+
super(...arguments);
|
21
|
+
v(this, h);
|
22
|
+
v(this, p);
|
23
|
+
n(this, h, this.attachInternals()), n(this, p, a(this, h).states), this.title = "SKF logotype", this.color = "primary";
|
24
|
+
}
|
25
|
+
_handleStateChange() {
|
26
|
+
const r = ["inverse", "primary", "secondary"];
|
27
|
+
H(a(this, p), r).set(this.color);
|
15
28
|
}
|
16
29
|
render() {
|
17
|
-
return
|
18
|
-
<svg
|
19
|
-
class=${a({
|
20
|
-
logo: !0,
|
21
|
-
"logo--color-inverse": this.color === "inverse",
|
22
|
-
"logo--color-secondary": this.color === "secondary"
|
23
|
-
})}
|
24
|
-
viewBox="0 0 1300 300"
|
25
|
-
xmlns="http://www.w3.org/2000/svg"
|
26
|
-
x="0px"
|
27
|
-
y="0px"
|
28
|
-
>
|
30
|
+
return x`
|
31
|
+
<svg id="root" viewBox="0 0 1300 300" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px">
|
29
32
|
<title>${this.title}</title>
|
30
33
|
<g>
|
31
|
-
<
|
32
|
-
|
33
|
-
d="M363.7,300c6.2,0,11.2-5,11.2-11.3v-165c0-6.2-5-11.3-11.3-11.2H157.5c-4.1,0-7.5-3.4-7.5-7.5V45
|
34
|
+
<path
|
35
|
+
d="M363.7,300c6.2,0,11.2-5,11.2-11.3v-165c0-6.2-5-11.3-11.3-11.2H157.5c-4.1,0-7.5-3.4-7.5-7.5V45
|
34
36
|
c0-4.1,3.4-7.5,7.5-7.5l60,0c4.1,0,7.5,3.4,7.5,7.5v18.8c0,6.2,5,11.2,11.2,11.2h90c6.2,0,11.3-5,11.3-11.2V11.2
|
35
37
|
c0-6.2-5-11.2-11.3-11.2L48.7,0c-6.2,0-11.2,5-11.2,11.3v127.5c0,6.2,5,11.2,11.3,11.2H255c4.1,0,7.5,3.4,7.5,7.5V255
|
36
38
|
c0,4.1-3.4,7.5-7.5,7.5H120c-4.1,0-7.5-3.4-7.5-7.5v-56.2c0-6.2-5-11.2-11.3-11.2h-90c-6.2,0-11.3,5-11.3,11.2v90
|
37
39
|
C0,295,5,300,11.3,300H363.7z"
|
38
|
-
|
39
|
-
|
40
|
-
|
40
|
+
/>
|
41
|
+
<path
|
42
|
+
d="M562.5,192.3c0-1,0.8-1.9,1.9-1.9c0.5,0,1,0.2,1.3,0.5c0.3,0.3,104.9,105,105.8,105.9
|
41
43
|
c0.6,0.6,3.4,3.2,7.9,3.2h134.4c6.2,0,11.2-5,11.2-11.2v-90c0-6.2-5-11.2-11.2-11.2h-97c-4.3,0-7.1-2.4-7.8-3.1
|
42
44
|
c-1.4-1.4-70.2-70.3-70.6-70.6c-0.3-0.3-0.6-0.8-0.6-1.3c0-0.5,0.2-1,0.6-1.3c0.3-0.3,32.3-32.4,32.8-32.9
|
43
45
|
c1.8-1.8,4.6-3.2,7.9-3.2c2.8,0,97.1,0,97.1,0c6.2,0,11.3-5,11.3-11.2l0-52.5c0-6.2-5-11.2-11.2-11.2h-96.9
|
44
46
|
c-4.5,0-7.2,2.6-7.9,3.2C670.9,3.8,566,108.8,565.7,109.1c-0.3,0.3-0.8,0.5-1.3,0.5c-1,0-1.9-0.8-1.9-1.9l0-96.5
|
45
47
|
c0-6.2-5-11.2-11.3-11.2H442.5c-6.2,0-11.2,5-11.2,11.2v90c0,6.2,5,11.3,11.2,11.3c4.1,0,7.5,3.4,7.5,7.5v60
|
46
48
|
c0,4.1-3.4,7.5-7.5,7.5c-6.2,0-11.2,5-11.2,11.2v90c0,6.2,5,11.3,11.2,11.3h108.7c6.2,0,11.3-5,11.3-11.3L562.5,192.3z"
|
47
|
-
|
48
|
-
|
49
|
-
|
49
|
+
/>
|
50
|
+
<path
|
51
|
+
d="M1001.2,300c6.2,0,11.3-5,11.3-11.3v-90c0-6.2-5-11.2-11.3-11.2c-4.1,0-7.5-3.4-7.5-7.5v-22.5
|
50
52
|
c0-4.2,3.4-7.5,7.5-7.5h41.2c4.1,0,7.5,3.4,7.5,7.5c0,6.2,5,11.2,11.3,11.2h90.1c6.2,0,11.2-5,11.2-11.2V105
|
51
53
|
c0-6.2-5-11.2-11.2-11.2h-90.1c-6.2,0-11.3,5-11.3,11.2c0,4.1-3.4,7.5-7.5,7.5l-41.2,0c-4.1,0-7.5-3.4-7.5-7.5V45
|
52
54
|
c0-4.1,3.4-7.5,7.5-7.5h116.3c4.1,0,7.5,3.4,7.5,7.5v18.8c0,6.2,5,11.2,11.3,11.2h127.5c6.2,0,11.3-5,11.3-11.2V11.2
|
53
55
|
c0-6.2-5-11.2-11.3-11.2H892.5c-6.2,0-11.2,5-11.2,11.2v90c0,6.2,5,11.3,11.2,11.3c4.1,0,7.5,3.4,7.5,7.5v60
|
54
56
|
c0,4.1-3.4,7.5-7.5,7.5c-6.2,0-11.2,5-11.2,11.2v90c0,6.2,5,11.3,11.2,11.3H1001.2z"
|
55
|
-
|
56
|
-
|
57
|
+
/>
|
58
|
+
<path
|
59
|
+
d="M1207.4,262.9c0-17.5,13.2-30.7,30.1-30.7c16.7,0,30,13.2,30,30.7c0,17.8-13.2,30.9-30,30.9
|
60
|
+
C1220.7,293.8,1207.4,280.7,1207.4,262.9z M1237.6,300c20.2,0,37.4-15.7,37.4-37.1c0-21.2-17.2-36.9-37.4-36.9
|
61
|
+
c-20.4,0-37.6,15.7-37.6,36.9C1200,284.3,1217.2,300,1237.6,300z M1230.9,265.5h6.5l9.9,16.3h6.4l-10.7-16.5
|
62
|
+
c5.5-0.7,9.7-3.6,9.7-10.3c0-7.4-4.4-10.7-13.3-10.7h-14.3v37.6h5.7V265.5z M1230.9,260.7V249h7.7c4,0,8.2,0.9,8.2,5.5
|
63
|
+
c0,5.8-4.3,6.1-9.1,6.1H1230.9z"
|
64
|
+
/>
|
57
65
|
</g>
|
58
|
-
<path
|
59
|
-
d="M1207.4,262.9c0-17.5,13.2-30.7,30.1-30.7c16.7,0,30,13.2,30,30.7c0,17.8-13.2,30.9-30,30.9
|
60
|
-
C1220.7,293.8,1207.4,280.7,1207.4,262.9z M1237.6,300c20.2,0,37.4-15.7,37.4-37.1c0-21.2-17.2-36.9-37.4-36.9
|
61
|
-
c-20.4,0-37.6,15.7-37.6,36.9C1200,284.3,1217.2,300,1237.6,300z M1230.9,265.5h6.5l9.9,16.3h6.4l-10.7-16.5
|
62
|
-
c5.5-0.7,9.7-3.6,9.7-10.3c0-7.4-4.4-10.7-13.3-10.7h-14.3v37.6h5.7V265.5z M1230.9,260.7V249h7.7c4,0,8.2,0.9,8.2,5.5
|
63
|
-
c0,5.8-4.3,6.1-9.1,6.1H1230.9z"
|
64
|
-
/>
|
65
66
|
</svg>
|
66
67
|
`;
|
67
68
|
}
|
68
69
|
};
|
69
|
-
|
70
|
-
let
|
71
|
-
|
72
|
-
|
73
|
-
],
|
74
|
-
|
75
|
-
|
76
|
-
],
|
70
|
+
h = new WeakMap(), p = new WeakMap(), y.styles = [V, z];
|
71
|
+
let o = y;
|
72
|
+
m([
|
73
|
+
d({ type: String })
|
74
|
+
], o.prototype, "title", 2);
|
75
|
+
m([
|
76
|
+
d({ type: String })
|
77
|
+
], o.prototype, "color", 2);
|
78
|
+
m([
|
79
|
+
M("color")
|
80
|
+
], o.prototype, "_handleStateChange", 1);
|
77
81
|
export {
|
78
|
-
|
82
|
+
o as SkfLogo
|
79
83
|
};
|
@@ -1,25 +1,35 @@
|
|
1
1
|
import { css as o } from "lit";
|
2
|
-
const
|
3
|
-
|
2
|
+
const r = o`
|
3
|
+
@layer components {
|
4
|
+
@layer base {
|
5
|
+
:host {
|
6
|
+
display: inline-flex;
|
7
|
+
}
|
4
8
|
|
5
|
-
|
6
|
-
|
7
|
-
}
|
9
|
+
#root {
|
10
|
+
--_skf-logo-color: var(--skf-logo-primary);
|
8
11
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
12
|
+
aspect-ratio: 13 / 3;
|
13
|
+
block-size: var(--mod-logo-height, var(--skf-size-32));
|
14
|
+
fill: var(--_skf-logo-color);
|
15
|
+
}
|
16
|
+
}
|
14
17
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
+
@layer mods {
|
19
|
+
:host(:state(secondary)) {
|
20
|
+
#root {
|
21
|
+
--_skf-logo-color: var(--skf-logo-secondary);
|
22
|
+
}
|
23
|
+
}
|
18
24
|
|
19
|
-
|
20
|
-
|
25
|
+
:host(:state(inverse)) {
|
26
|
+
#root {
|
27
|
+
--_skf-logo-color: var(--skf-logo-inverse);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
21
31
|
}
|
22
32
|
`;
|
23
33
|
export {
|
24
|
-
|
34
|
+
r as styles
|
25
35
|
};
|
@@ -1,13 +1,13 @@
|
|
1
|
-
import { SkfLink as
|
1
|
+
import { SkfLink as t } from "../link/link.component.js";
|
2
2
|
import "lit";
|
3
|
-
import { styles as
|
4
|
-
const
|
5
|
-
|
6
|
-
super(), this.role = "menuitem"
|
3
|
+
import { styles as l } from "./menu-item.styles.js";
|
4
|
+
const s = class s extends t {
|
5
|
+
connectedCallback() {
|
6
|
+
super.connectedCallback(), this.role = "menuitem";
|
7
7
|
}
|
8
8
|
};
|
9
|
-
|
10
|
-
let
|
9
|
+
s.styles = [t.styles, l];
|
10
|
+
let e = s;
|
11
11
|
export {
|
12
|
-
|
12
|
+
e as SkfMenuItem
|
13
13
|
};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { SkfMenuItem } from './menu-item.component';
|
2
|
-
export * from './menu-item.component';
|
1
|
+
import { SkfMenuItem } from './menu-item.component.js';
|
2
|
+
export * from './menu-item.component.js';
|
3
3
|
export default SkfMenuItem;
|
4
4
|
declare global {
|
5
5
|
interface HTMLElementTagNameMap {
|
@@ -1,19 +1,23 @@
|
|
1
|
-
import { css as
|
2
|
-
const
|
1
|
+
import { css as o } from "lit";
|
2
|
+
const r = o`
|
3
3
|
@layer components {
|
4
|
-
|
4
|
+
:host {
|
5
|
+
display: block;
|
6
|
+
}
|
7
|
+
|
8
|
+
#root {
|
5
9
|
block-size: var(--skf-size-44);
|
6
10
|
display: flex;
|
7
11
|
padding-inline: var(--skf-spacing-75);
|
12
|
+
}
|
13
|
+
}
|
8
14
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
}
|
13
|
-
}
|
15
|
+
@layer states {
|
16
|
+
:host(:not([aria-disabled]):hover) #root {
|
17
|
+
background-color: var(--skf-color-blue-lightest);
|
14
18
|
}
|
15
19
|
}
|
16
20
|
`;
|
17
21
|
export {
|
18
|
-
|
22
|
+
r as styles
|
19
23
|
};
|
@@ -11,16 +11,19 @@ import type { CSSResultGroup } from 'lit';
|
|
11
11
|
* @attribute {"top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end"} [placement='bottom-start'] - The placement of the menu
|
12
12
|
* @attribute {string} anchor - The id of the element the menu will be anchored to
|
13
13
|
*
|
14
|
+
* @property {(void) => void} open() - Method that opens the menu
|
15
|
+
* @property {(void) => void} close() - Method that closes the menu
|
16
|
+
*
|
14
17
|
* @event {CustomEvent} skf-opened - Fired when the menu is opened
|
15
18
|
* @event {CustomEvent} skf-closed - Fired when the menu is closed
|
16
19
|
*
|
17
|
-
* @slot - The menu
|
20
|
+
* @slot - The menu content
|
18
21
|
*
|
19
22
|
* @tagname skf-menu
|
20
23
|
*/
|
21
24
|
export declare class SkfMenu extends SkfPopoverBase {
|
22
25
|
static styles: CSSResultGroup;
|
23
|
-
|
26
|
+
connectedCallback(): void;
|
24
27
|
/** @internal */
|
25
28
|
addEventListeners($element: HTMLElement | Element): void;
|
26
29
|
}
|
@@ -1,16 +1,16 @@
|
|
1
1
|
import { SkfPopoverBase as t } from "../../internal/base-classes/popover/popover.base.js";
|
2
|
-
import { styles as
|
3
|
-
const
|
4
|
-
|
5
|
-
super(), this.placement = "bottom-start", this.role = "menu", this.triggerEvent = "click", this.variant = "menu", t.classMap = { menu: !0 };
|
2
|
+
import { styles as a } from "./menu.styles.js";
|
3
|
+
const e = class e extends t {
|
4
|
+
connectedCallback() {
|
5
|
+
super.connectedCallback(), this.placement = "bottom-start", this.role = "menu", this.triggerEvent = "click", this.variant = "menu", t.classMap = { menu: !0 };
|
6
6
|
}
|
7
7
|
/** @internal */
|
8
8
|
addEventListeners(i) {
|
9
|
-
i.addEventListener(this.triggerEvent, this.open
|
9
|
+
i.addEventListener(this.triggerEvent, this.open, { signal: this.signal });
|
10
10
|
}
|
11
11
|
};
|
12
|
-
|
13
|
-
let
|
12
|
+
e.styles = [t.styles, a];
|
13
|
+
let s = e;
|
14
14
|
export {
|
15
|
-
|
15
|
+
s as SkfMenu
|
16
16
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import '../link/link.js';
|
2
|
-
import type SkfLink from '../link/link.js';
|
3
2
|
import { SkfElement } from '../../internal/components/skf-element';
|
3
|
+
import type { Icon } from '../../internal/types.js';
|
4
4
|
import { type CSSResultGroup } from 'lit';
|
5
5
|
/**
|
6
6
|
* The `<skf-nav>` is a component that displays a list of <nav-items>.
|
@@ -10,9 +10,13 @@ import { type CSSResultGroup } from 'lit';
|
|
10
10
|
* @tagname skf-nav-item
|
11
11
|
*/
|
12
12
|
export declare class SkfNavItem extends SkfElement {
|
13
|
+
#private;
|
13
14
|
static styles: CSSResultGroup;
|
14
15
|
href: string;
|
15
|
-
icon?:
|
16
|
+
icon?: Icon;
|
17
|
+
vertical: boolean;
|
16
18
|
connectedCallback(): void;
|
19
|
+
/** @internal */
|
20
|
+
_handleStateChange(): void;
|
17
21
|
render(): import("lit").TemplateResult<1>;
|
18
22
|
}
|
@@ -1,38 +1,57 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
import { componentStyles as c } from "../../styles/component.styles.js";
|
4
|
-
import { html as h } from "lit";
|
5
|
-
import { property as f } from "lit/decorators.js";
|
6
|
-
import { ifDefined as u } from "lit/directives/if-defined.js";
|
7
|
-
import { styles as a } from "./nav-item.styles.js";
|
8
|
-
var d = Object.defineProperty, p = (i, s, n, y) => {
|
9
|
-
for (var r = void 0, t = i.length - 1, l; t >= 0; t--)
|
10
|
-
(l = i[t]) && (r = l(s, n, r) || r);
|
11
|
-
return r && d(s, n, r), r;
|
1
|
+
var y = (t) => {
|
2
|
+
throw TypeError(t);
|
12
3
|
};
|
13
|
-
|
4
|
+
var u = (t, e, r) => e.has(t) || y("Cannot " + r);
|
5
|
+
var h = (t, e, r) => (u(t, e, "read from private field"), r ? r.call(t) : e.get(t)), f = (t, e, r) => e.has(t) ? y("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), m = (t, e, r, s) => (u(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r);
|
6
|
+
import "../link/link.js";
|
7
|
+
import { SkfElement as d } from "../../internal/components/skf-element.js";
|
8
|
+
import { stateMap as g } from "../../internal/helpers/stateMap.js";
|
9
|
+
import { watch as C } from "../../internal/helpers/watch.js";
|
10
|
+
import { componentStyles as b } from "../../styles/component.styles.js";
|
11
|
+
import { html as O } from "lit";
|
12
|
+
import { property as _, state as P } from "lit/decorators.js";
|
13
|
+
import { ifDefined as S } from "lit/directives/if-defined.js";
|
14
|
+
import { styles as w } from "./nav-item.styles.js";
|
15
|
+
var D = Object.defineProperty, j = Object.getOwnPropertyDescriptor, l = (t, e, r, s) => {
|
16
|
+
for (var o = s > 1 ? void 0 : s ? j(e, r) : e, a = t.length - 1, c; a >= 0; a--)
|
17
|
+
(c = t[a]) && (o = (s ? c(e, r, o) : c(o)) || o);
|
18
|
+
return s && o && D(e, r, o), o;
|
19
|
+
}, n, p;
|
20
|
+
const v = class v extends d {
|
14
21
|
constructor() {
|
15
|
-
super(...arguments)
|
22
|
+
super(...arguments);
|
23
|
+
f(this, n);
|
24
|
+
f(this, p);
|
25
|
+
m(this, n, this.attachInternals()), m(this, p, h(this, n).states), this.href = "", this.vertical = !1;
|
16
26
|
}
|
17
27
|
connectedCallback() {
|
18
|
-
super.connectedCallback(), this.role = "
|
28
|
+
super.connectedCallback(), this.role = "listitem";
|
29
|
+
}
|
30
|
+
_handleStateChange() {
|
31
|
+
g(h(this, p), "vertical").set(this.vertical);
|
19
32
|
}
|
20
33
|
render() {
|
21
|
-
return
|
22
|
-
<skf-link color="inverse" href=${this.href} icon=${
|
34
|
+
return O`
|
35
|
+
<skf-link color="inverse" href=${this.href} icon=${S(this.icon)}>
|
23
36
|
<slot></slot>
|
24
37
|
</skf-link>
|
25
38
|
`;
|
26
39
|
}
|
27
40
|
};
|
28
|
-
|
29
|
-
let
|
30
|
-
|
31
|
-
|
32
|
-
],
|
33
|
-
|
34
|
-
|
35
|
-
],
|
41
|
+
n = new WeakMap(), p = new WeakMap(), v.styles = [b, w];
|
42
|
+
let i = v;
|
43
|
+
l([
|
44
|
+
_({ type: String })
|
45
|
+
], i.prototype, "href", 2);
|
46
|
+
l([
|
47
|
+
_({ type: String })
|
48
|
+
], i.prototype, "icon", 2);
|
49
|
+
l([
|
50
|
+
P()
|
51
|
+
], i.prototype, "vertical", 2);
|
52
|
+
l([
|
53
|
+
C("vertical")
|
54
|
+
], i.prototype, "_handleStateChange", 1);
|
36
55
|
export {
|
37
|
-
|
56
|
+
i as SkfNavItem
|
38
57
|
};
|
@@ -1,36 +1,40 @@
|
|
1
1
|
import { css as t } from "lit";
|
2
2
|
const s = t`
|
3
3
|
@layer components {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
4
|
+
@layer base {
|
5
|
+
skf-link::part(root) {
|
6
|
+
block-size: var(--skf-header-height);
|
7
|
+
display: flex;
|
8
|
+
padding-inline: var(--skf-spacing-100);
|
9
|
+
position: relative;
|
10
|
+
}
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
12
|
+
skf-link::part(root)::after {
|
13
|
+
content: '';
|
14
|
+
position: absolute;
|
15
|
+
transition: translate calc(var(--skf-motion-duration-fast) * 1ms)
|
16
|
+
var(--skf-motion-easing-ease-in);
|
17
|
+
}
|
17
18
|
|
18
|
-
|
19
|
-
|
20
|
-
|
19
|
+
skf-link::part(root):hover::after {
|
20
|
+
--_skf-nav-link-translate: 0;
|
21
|
+
}
|
21
22
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
23
|
+
:host(:not(:state(vertical))) skf-link::part(root)::after {
|
24
|
+
border-bottom: var(--skf-size-4) solid var(--skf-border-color-inverse);
|
25
|
+
inset-block-end: 0;
|
26
|
+
inset-inline: 0;
|
27
|
+
translate: 0 var(--_skf-nav-link-translate, 100%);
|
28
|
+
}
|
27
29
|
}
|
28
30
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
31
|
+
@layer mods {
|
32
|
+
:host(:state(vertical)) skf-link::part(root)::after {
|
33
|
+
border-left: var(--skf-size-4) solid var(--skf-border-color-inverse);
|
34
|
+
inset-block: 0;
|
35
|
+
inset-inline-start: 0;
|
36
|
+
translate: var(--_skf-nav-link-translate, -100%) 0;
|
37
|
+
}
|
34
38
|
}
|
35
39
|
}
|
36
40
|
`;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { SkfElement } from '../../internal/components/skf-element';
|
2
|
+
import { type Language } from '../../utilities/localize.js';
|
2
3
|
import { type CSSResultGroup } from 'lit';
|
3
4
|
/**
|
4
5
|
* The `<skf-nav>` is a component that displays a list of <nav-items>.
|
@@ -10,8 +11,16 @@ import { type CSSResultGroup } from 'lit';
|
|
10
11
|
* @tagname skf-nav
|
11
12
|
*/
|
12
13
|
export declare class SkfNav extends SkfElement {
|
14
|
+
#private;
|
13
15
|
static styles: CSSResultGroup;
|
16
|
+
/** Sets the internal language of the component */
|
17
|
+
lang: Language;
|
18
|
+
/** If true, the navigation will be displayed vertically */
|
14
19
|
vertical: boolean;
|
20
|
+
/** @internal */
|
21
|
+
private _items;
|
15
22
|
connectedCallback(): void;
|
23
|
+
/** @internal */
|
24
|
+
_handleStateChange(): void;
|
16
25
|
render(): import("lit").TemplateResult<1>;
|
17
26
|
}
|
@@ -1,34 +1,60 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
import { html as p } from "lit";
|
4
|
-
import { property as c } from "lit/decorators.js";
|
5
|
-
import { ifDefined as f } from "lit/directives/if-defined.js";
|
6
|
-
import { styles as u } from "./nav.styles.js";
|
7
|
-
var v = Object.defineProperty, d = (i, a, l, h) => {
|
8
|
-
for (var e = void 0, r = i.length - 1, n; r >= 0; r--)
|
9
|
-
(n = i[r]) && (e = n(a, l, e) || e);
|
10
|
-
return e && v(a, l, e), e;
|
1
|
+
var u = (t) => {
|
2
|
+
throw TypeError(t);
|
11
3
|
};
|
12
|
-
|
4
|
+
var g = (t, e, r) => e.has(t) || u("Cannot " + r);
|
5
|
+
var p = (t, e, r) => (g(t, e, "read from private field"), r ? r.call(t) : e.get(t)), c = (t, e, r) => e.has(t) ? u("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), m = (t, e, r, i) => (g(t, e, "write to private field"), i ? i.call(t, r) : e.set(t, r), r);
|
6
|
+
import { SkfElement as d } from "../../internal/components/skf-element.js";
|
7
|
+
import { stateMap as C } from "../../internal/helpers/stateMap.js";
|
8
|
+
import { watch as b } from "../../internal/helpers/watch.js";
|
9
|
+
import { componentStyles as w } from "../../styles/component.styles.js";
|
10
|
+
import { LocalizeController as O } from "../../utilities/localize.js";
|
11
|
+
import { html as P } from "lit";
|
12
|
+
import { property as _, queryAssignedElements as D } from "lit/decorators.js";
|
13
|
+
import { ifDefined as E } from "lit/directives/if-defined.js";
|
14
|
+
import { styles as S } from "./nav.styles.js";
|
15
|
+
var j = Object.defineProperty, x = Object.getOwnPropertyDescriptor, h = (t, e, r, i) => {
|
16
|
+
for (var o = i > 1 ? void 0 : i ? x(e, r) : e, f = t.length - 1, v; f >= 0; f--)
|
17
|
+
(v = t[f]) && (o = (i ? v(e, r, o) : v(o)) || o);
|
18
|
+
return i && o && j(e, r, o), o;
|
19
|
+
}, a, l, n;
|
20
|
+
const y = class y extends d {
|
13
21
|
constructor() {
|
14
|
-
super(...arguments)
|
22
|
+
super(...arguments);
|
23
|
+
c(this, a);
|
24
|
+
c(this, l);
|
25
|
+
c(this, n);
|
26
|
+
m(this, a, new O(this)), m(this, l, this.attachInternals()), m(this, n, p(this, l).states), this.lang = "en", this.vertical = !1;
|
15
27
|
}
|
16
28
|
connectedCallback() {
|
17
|
-
super.connectedCallback(), this.ariaLabel = this.
|
29
|
+
super.connectedCallback(), this.ariaLabel = p(this, a).term("mainNavigation"), this.role = "navigation";
|
30
|
+
}
|
31
|
+
_handleStateChange() {
|
32
|
+
C(p(this, n), "vertical").set(this.vertical), this._items.forEach((r) => {
|
33
|
+
r.vertical = this.vertical;
|
34
|
+
});
|
18
35
|
}
|
19
36
|
render() {
|
20
|
-
return
|
21
|
-
<ul aria-orientation=${
|
37
|
+
return P`
|
38
|
+
<ul aria-orientation=${E(this.vertical ? "vertical" : void 0)}>
|
22
39
|
<slot></slot>
|
23
40
|
</ul>
|
24
41
|
`;
|
25
42
|
}
|
26
43
|
};
|
27
|
-
|
28
|
-
let
|
29
|
-
|
30
|
-
|
31
|
-
],
|
44
|
+
a = new WeakMap(), l = new WeakMap(), n = new WeakMap(), y.styles = [w, S];
|
45
|
+
let s = y;
|
46
|
+
h([
|
47
|
+
_({ type: String })
|
48
|
+
], s.prototype, "lang", 2);
|
49
|
+
h([
|
50
|
+
_({ type: Boolean })
|
51
|
+
], s.prototype, "vertical", 2);
|
52
|
+
h([
|
53
|
+
D({ selector: "skf-nav-item" })
|
54
|
+
], s.prototype, "_items", 2);
|
55
|
+
h([
|
56
|
+
b("vertical")
|
57
|
+
], s.prototype, "_handleStateChange", 1);
|
32
58
|
export {
|
33
|
-
|
59
|
+
s as SkfNav
|
34
60
|
};
|
@@ -1,17 +1,23 @@
|
|
1
1
|
import { css as t } from "lit";
|
2
|
-
const
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
const o = t`
|
3
|
+
@layer components {
|
4
|
+
@layer base {
|
5
|
+
:host(:not(:state(vertical))) {
|
6
|
+
width: fit-content;
|
7
|
+
}
|
6
8
|
|
7
|
-
|
8
|
-
|
9
|
+
ul {
|
10
|
+
display: flex;
|
11
|
+
}
|
12
|
+
}
|
9
13
|
|
10
|
-
|
11
|
-
|
14
|
+
@layer mods {
|
15
|
+
:host(:state(vertical)) ul {
|
16
|
+
flex-direction: column;
|
17
|
+
}
|
12
18
|
}
|
13
19
|
}
|
14
20
|
`;
|
15
21
|
export {
|
16
|
-
|
22
|
+
o as styles
|
17
23
|
};
|