@skf-design-system/ui-components 1.0.0-alpha.31 → 1.0.0-alpha.33

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.
@@ -1,13 +1,12 @@
1
- import "../collapse/collapse.js";
2
1
  import { SkfElement as h } from "../../internal/components/skf-element.js";
3
2
  import m from "../../styles/component.styles.js";
4
3
  import { html as f } from "lit";
5
4
  import { property as a, queryAssignedNodes as d } from "lit/decorators.js";
6
5
  import { classMap as c } from "lit/directives/class-map.js";
7
6
  import { styles as g } from "./accordion.styles.js";
8
- var y = Object.defineProperty, s = (p, t, i, o) => {
9
- for (var r = void 0, l = p.length - 1, u; l >= 0; l--)
10
- (u = p[l]) && (r = u(t, i, r) || r);
7
+ var y = Object.defineProperty, s = (u, t, i, o) => {
8
+ for (var r = void 0, l = u.length - 1, p; l >= 0; l--)
9
+ (p = u[l]) && (r = p(t, i, r) || r);
11
10
  return r && y(t, i, r), r;
12
11
  };
13
12
  const n = class n extends h {
@@ -1,8 +1,6 @@
1
1
  import { SkfAccordion as o } from "./accordion.component.js";
2
- import { SkfAccordionItem as e } from "./accordion-item.js";
3
2
  o.define("skf-accordion");
4
3
  export {
5
4
  o as SkfAccordion,
6
- e as SkfAccordionItem,
7
5
  o as default
8
6
  };
@@ -1,4 +1,3 @@
1
- import "../icon/icon.js";
2
1
  import { SkfElement as y } from "../../internal/components/skf-element.js";
3
2
  import b from "../../styles/component.styles.js";
4
3
  import { html as p, nothing as f } from "lit";
@@ -1,5 +1,3 @@
1
- import "../icon/icon.js";
2
- import "../loader/loader.js";
3
1
  import { SkfElement as b } from "../../internal/components/skf-element.js";
4
2
  import f from "../../styles/component.styles.js";
5
3
  import { html as h, LitElement as m, nothing as u } from "lit";
@@ -1,4 +1,3 @@
1
- import "../icon/icon.js";
2
1
  import { FormBase as c } from "../../internal/components/formBase.js";
3
2
  import { watch as h } from "../../internal/helpers/watch.js";
4
3
  import { Asterisk as v } from "../../internal/templates/asterisk.js";
@@ -1,4 +1,3 @@
1
- import "../icon/icon.js";
2
1
  import { SkfElement as c } from "../../internal/components/skf-element.js";
3
2
  import h from "../../styles/component.styles.js";
4
3
  import { property as s } from "lit/decorators.js";
@@ -3,9 +3,6 @@ var _ = (t) => {
3
3
  };
4
4
  var w = (t, e, o) => e.has(t) || _("Cannot " + o);
5
5
  var f = (t, e, o) => (w(t, e, "read from private field"), o ? o.call(t) : e.get(t)), g = (t, e, o) => e.has(t) ? _("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, o), h = (t, e, o, a) => (w(t, e, "write to private field"), a ? a.call(t, o) : e.set(t, o), o);
6
- import "../button/button.js";
7
- import "../heading/heading.js";
8
- import "../icon/icon.js";
9
6
  import { SkfElement as v } from "../../internal/components/skf-element.js";
10
7
  import { watch as C } from "../../internal/helpers/watch.js";
11
8
  import B from "../../styles/component.styles.js";
@@ -1,6 +1,6 @@
1
1
  import { SkfElement } from '../../internal/components/skf-element.js';
2
- import type { Icon, IconColor, IconSize, SeverityFgColor } from '@skf-design-system/ui-assets';
3
- import { type CSSResultGroup, type TemplateResult } from 'lit';
2
+ import { type Icon, type IconColor, type IconSize, type SeverityFgColor } from '@skf-design-system/ui-assets';
3
+ import { type CSSResultGroup } from 'lit';
4
4
  /**
5
5
  * The `<skf-icon>` component is used to clarify interface elements. When used, should always be paired with (possibly invisible) text
6
6
  *
@@ -22,12 +22,10 @@ export declare class SkfIcon extends SkfElement {
22
22
  * @type { "arrowDown" | "arrowDownUp" | "arrowLeft" | "arrowRight" | "arrowUp" | "article" | "artificialIntelligence" | "asset" | "attachment" | "bandCursor" | "bands" | "batteryEmpty" | "batteryFull" | "batteryLow" | "bearingFault" | "book" | "bulb" | "burger" | "cPM" | "calendar" | "calendarBooked" | "calendarEmpty" | "calendarNotBooked" | "calendarRecurring" | "caretDown" | "caretUp" | "caretUpDown" | "chat" | "check" | "checkCircle" | "checkSmall" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "chevronUpDown" | "close" | "closeAllFaults" | "closeFault" | "closeSmall" | "columnGraph" | "comment" | "connection1" | "connection2" | "connection3" | "connection4" | "danger" | "defectFrequencies" | "defectFrequenciesAlternative" | "doubleChevronLeft" | "doubleChevronRight" | "download" | "draft" | "draftFilled" | "draftOutlined" | "dragNDrop" | "drop" | "duplicate" | "edit" | "emailFilled" | "emailOutlined" | "exclamation" | "eye" | "eyeHidden" | "eyeVisible" | "filter" | "forbidden" | "fullScreen" | "fullScreenExit" | "functionalLocation" | "harmonicCursor" | "heatmap" | "hierarchy" | "history" | "historyAlt" | "hourglassFramedFilled" | "hourglassFramedOutlined" | "hourglassOutlined" | "hz" | "iMX" | "image" | "infoCircleFilled" | "infoCircleOutlined" | "integration" | "kebab" | "link" | "listGroup" | "listItem" | "locationPin" | "lock" | "logOut" | "meatballs" | "microphone" | "minus" | "minusSmall" | "noData" | "o" | "openInNew" | "overlayBaseline" | "pDF" | "paper" | "pause" | "pieChart" | "pin" | "play" | "plus" | "powerOff" | "printer" | "proCollect" | "recAction" | "received" | "refresh" | "reorder" | "replace" | "reply" | "rewalkableRoute" | "routes" | "search" | "send" | "sensorA" | "sensorB" | "settings" | "sidebandCursor" | "singleCursor" | "spectrum" | "starFilled" | "starOutlined" | "statusCircle" | "stop" | "structuralVibration" | "sync" | "timewave" | "trash" | "trend" | "trendingUp" | "undo" | "unknownCircle" | "unknownDiamond" | "unlink" | "unlock" | "unscheduledAction" | "upload" | "user" | "viewFull" | "viewHorizontal" | "viewVertical" | "warning" | "warningCircle" | "warningDiamond" | "zoomIn" | "zoomOut" }
23
23
  */
24
24
  name: Icon;
25
- private _icon;
26
- handleNameChanged(): void;
27
25
  /**
28
26
  * Size of the icon
29
27
  * @type { "xs" | "sm" | "md" | "lg" }
30
28
  */
31
29
  size: IconSize;
32
- render(): TemplateResult<1>;
30
+ render(): import("lit").TemplateResult<1>;
33
31
  }
@@ -1,64 +1,52 @@
1
- import { SkfElement as f } from "../../internal/components/skf-element.js";
2
- import { watch as d } from "../../internal/helpers/watch.js";
3
- import u from "../../styles/component.styles.js";
1
+ import { SkfElement as c } from "../../internal/components/skf-element.js";
2
+ import { ICONS as f } from "@skf-design-system/ui-assets";
3
+ import d from "../../styles/component.styles.js";
4
4
  import { html as h } from "lit";
5
- import { property as s, state as y } from "lit/decorators.js";
6
- import { classMap as v } from "lit/directives/class-map.js";
7
- import { ifDefined as m } from "lit/directives/if-defined.js";
8
- import _ from "./icon.styles.js";
9
- var b = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, o = (c, e, p, i) => {
10
- for (var t = i > 1 ? void 0 : i ? $(e, p) : e, l = c.length - 1, a; l >= 0; l--)
11
- (a = c[l]) && (t = (i ? a(e, p, t) : a(t)) || t);
12
- return i && t && b(e, p, t), t;
5
+ import { property as o } from "lit/decorators.js";
6
+ import { classMap as u } from "lit/directives/class-map.js";
7
+ import { ifDefined as l } from "lit/directives/if-defined.js";
8
+ import v from "./icon.styles.js";
9
+ var y = Object.defineProperty, i = (p, e, a, $) => {
10
+ for (var r = void 0, s = p.length - 1, n; s >= 0; s--)
11
+ (n = p[s]) && (r = n(e, a, r) || r);
12
+ return r && y(e, a, r), r;
13
13
  };
14
- const n = class n extends f {
14
+ const m = class m extends c {
15
15
  constructor() {
16
- super(...arguments), this.color = "primary", this._icon = h``, this.size = "md";
17
- }
18
- handleNameChanged() {
19
- import("@skf-design-system/ui-assets").then((e) => {
20
- this._icon = e[this.name];
21
- }).catch((e) => {
22
- console.error(e);
23
- });
16
+ super(...arguments), this.color = "primary", this.size = "md";
24
17
  }
25
18
  render() {
19
+ const e = f[this.name];
26
20
  return h`
27
21
  <div
28
- aria-hidden=${m(this.label ? void 0 : "true")}
29
- aria-label=${m(this.label)}
30
- class=${v({
22
+ aria-hidden=${l(this.label ? void 0 : "true")}
23
+ aria-label=${l(this.label)}
24
+ class=${u({
31
25
  icon: !0,
32
26
  [`icon--color-${this.color}`]: !0,
33
27
  [`icon--size-${this.size}`]: !0
34
28
  })}
35
- role=${m(this.label ? "img" : void 0)}
29
+ role=${l(this.label ? "img" : void 0)}
36
30
  >
37
- ${this._icon}
31
+ ${e}
38
32
  </div>
39
33
  `;
40
34
  }
41
35
  };
42
- n.styles = [u, _];
43
- let r = n;
44
- o([
45
- s({ reflect: !0 })
46
- ], r.prototype, "color", 2);
47
- o([
48
- s()
49
- ], r.prototype, "label", 2);
50
- o([
51
- s()
52
- ], r.prototype, "name", 2);
53
- o([
54
- y()
55
- ], r.prototype, "_icon", 2);
56
- o([
57
- d("name")
58
- ], r.prototype, "handleNameChanged", 1);
59
- o([
60
- s({ reflect: !0 })
61
- ], r.prototype, "size", 2);
36
+ m.styles = [d, v];
37
+ let t = m;
38
+ i([
39
+ o({ reflect: !0 })
40
+ ], t.prototype, "color");
41
+ i([
42
+ o()
43
+ ], t.prototype, "label");
44
+ i([
45
+ o()
46
+ ], t.prototype, "name");
47
+ i([
48
+ o({ reflect: !0 })
49
+ ], t.prototype, "size");
62
50
  export {
63
- r as SkfIcon
51
+ t as SkfIcon
64
52
  };
@@ -1,4 +1,3 @@
1
- import "../icon/icon.js";
2
1
  import { FormBase as b } from "../../internal/components/formBase.js";
3
2
  import "../../internal/components/hint/hint.js";
4
3
  import { hintSeverity as v } from "../../internal/helpers/hintSeverity.js";
@@ -1,12 +1,11 @@
1
- import "../icon/icon.js";
2
- import y from "./link.styles.js";
1
+ import m from "./link.styles.js";
3
2
  import { SkfElement as d } from "../../internal/components/skf-element.js";
4
3
  import u from "../../styles/component.styles.js";
5
4
  import "lit";
6
5
  import { property as r } from "lit/decorators.js";
7
6
  import { classMap as k } from "lit/directives/class-map.js";
8
7
  import { ifDefined as c } from "lit/directives/if-defined.js";
9
- import { html as f, literal as m } from "lit/static-html.js";
8
+ import { html as f, literal as y } from "lit/static-html.js";
10
9
  var v = Object.defineProperty, g = Object.getOwnPropertyDescriptor, o = (h, t, i, l) => {
11
10
  for (var n = l > 1 ? void 0 : l ? g(t, i) : t, p = h.length - 1, a; p >= 0; p--)
12
11
  (a = h[p]) && (n = (l ? a(t, i, n) : a(n)) || n);
@@ -52,7 +51,7 @@ const e = (s = class extends d {
52
51
  `;
53
52
  }
54
53
  render() {
55
- const t = this.as === "a", i = t ? m`a` : m`button`;
54
+ const t = this.as === "a", i = t ? y`a` : y`button`;
56
55
  return f`
57
56
  <${i}
58
57
  ?disabled=${c(t ? void 0 : this.disabled)}
@@ -76,7 +75,7 @@ const e = (s = class extends d {
76
75
  </${i}>
77
76
  `;
78
77
  }
79
- }, s.styles = [u, y], s.classMap = {}, s);
78
+ }, s.styles = [u, m], s.classMap = {}, s);
80
79
  o([
81
80
  r({ type: String, reflect: !0 })
82
81
  ], e.prototype, "as", 2);
@@ -116,7 +115,7 @@ o([
116
115
  o([
117
116
  r({ attribute: !1 })
118
117
  ], e.prototype, "onClick", 1);
119
- let E = e;
118
+ let D = e;
120
119
  export {
121
- E as SkfLink
120
+ D as SkfLink
122
121
  };
@@ -1,4 +1,3 @@
1
- import "../icon/icon.js";
2
1
  import { FormBase as c } from "../../internal/components/formBase.js";
3
2
  import { watch as n } from "../../internal/helpers/watch.js";
4
3
  import { Asterisk as p } from "../../internal/templates/asterisk.js";
@@ -12,7 +12,6 @@ import { property as o, state as h, query as p } from "lit/decorators.js";
12
12
  import { classMap as E } from "lit/directives/class-map.js";
13
13
  import { ifDefined as m } from "lit/directives/if-defined.js";
14
14
  import "../../internal/components/hint/hint.js";
15
- import "../tag/tag.js";
16
15
  import { GlobalClickController as k, KeyboardNavigationController as L, DeveloperFeedbackController as A } from "./select.controllers.js";
17
16
  import { styles as P } from "./select.styles.js";
18
17
  var T = Object.defineProperty, D = Object.getOwnPropertyDescriptor, s = (u, t, e, l) => {
@@ -3,7 +3,6 @@ import f from "../../styles/component.styles.js";
3
3
  import { LitElement as m, html as h } from "lit";
4
4
  import { property as n, queryAssignedNodes as _ } from "lit/decorators.js";
5
5
  import { ifDefined as p } from "lit/directives/if-defined.js";
6
- import "../icon/icon.js";
7
6
  import { styles as y } from "./select-option.styles.js";
8
7
  var v = Object.defineProperty, b = Object.getOwnPropertyDescriptor, o = (d, t, s, i) => {
9
8
  for (var r = i > 1 ? void 0 : i ? b(t, s) : t, a = d.length - 1, c; a >= 0; a--)
@@ -2,8 +2,7 @@ var v = (e) => {
2
2
  throw TypeError(e);
3
3
  };
4
4
  var u = (e, i, t) => i.has(e) || v("Cannot " + t);
5
- var d = (e, i, t) => (u(e, i, "read from private field"), t ? t.call(e) : i.get(e)), _ = (e, i, t) => i.has(e) ? v("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(e) : i.set(e, t), r = (e, i, t, s) => (u(e, i, "write to private field"), s ? s.call(e, t) : i.set(e, t), t);
6
- import "../icon/icon.js";
5
+ var m = (e, i, t) => (u(e, i, "read from private field"), t ? t.call(e) : i.get(e)), _ = (e, i, t) => i.has(e) ? v("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(e) : i.set(e, t), r = (e, i, t, s) => (u(e, i, "write to private field"), s ? s.call(e, t) : i.set(e, t), t);
7
6
  import { SkfElement as b } from "../../internal/components/skf-element.js";
8
7
  import { watch as g } from "../../internal/helpers/watch.js";
9
8
  import C from "../../styles/component.styles.js";
@@ -14,8 +13,8 @@ import { ifDefined as x } from "lit/directives/if-defined.js";
14
13
  import { literal as w, unsafeStatic as U, html as S } from "lit/static-html.js";
15
14
  import { styles as I } from "./stepper-item.styles.js";
16
15
  var O = Object.defineProperty, P = Object.getOwnPropertyDescriptor, l = (e, i, t, s) => {
17
- for (var p = s > 1 ? void 0 : s ? P(i, t) : i, h = e.length - 1, m; h >= 0; h--)
18
- (m = e[h]) && (p = (s ? m(i, t, p) : m(p)) || p);
16
+ for (var p = s > 1 ? void 0 : s ? P(i, t) : i, h = e.length - 1, d; h >= 0; h--)
17
+ (d = e[h]) && (p = (s ? d(i, t, p) : d(p)) || p);
19
18
  return s && p && O(i, t, p), p;
20
19
  }, o, n;
21
20
  const f = class f extends b {
@@ -44,7 +43,7 @@ const f = class f extends b {
44
43
  this._setInternalState = "activeCompleted";
45
44
  return;
46
45
  }
47
- if (d(this, o)) {
46
+ if (m(this, o)) {
48
47
  r(this, o, !1);
49
48
  return;
50
49
  }
@@ -55,7 +54,7 @@ const f = class f extends b {
55
54
  this.emit("skf-stepper-item-select", {
56
55
  detail: {
57
56
  item: this,
58
- triggerActiveIndexUpdate: d(this, n)
57
+ triggerActiveIndexUpdate: m(this, n)
59
58
  }
60
59
  }), r(this, n, !1);
61
60
  }
@@ -1,8 +1,7 @@
1
- import "../card/card.js";
2
- import { SkfElement as c } from "../../internal/components/skf-element.js";
1
+ import { SkfElement as p } from "../../internal/components/skf-element.js";
3
2
  import b from "../../styles/component.styles.js";
4
3
  import { html as f } from "lit";
5
- import { property as o, queryAssignedElements as p } from "lit/decorators.js";
4
+ import { property as o, queryAssignedElements as c } from "lit/decorators.js";
6
5
  import { classMap as u } from "lit/directives/class-map.js";
7
6
  import { styles as y } from "./tab-group.styles.js";
8
7
  var g = Object.defineProperty, i = (h, t, s, r) => {
@@ -10,7 +9,7 @@ var g = Object.defineProperty, i = (h, t, s, r) => {
10
9
  (d = h[n]) && (e = d(t, s, e) || e);
11
10
  return e && g(t, s, e), e;
12
11
  };
13
- const l = class l extends c {
12
+ const l = class l extends p {
14
13
  constructor() {
15
14
  super(...arguments), this.defaultSelected = 0, this.noBorder = !1, this.noPadding = !1, this.stretch = !1, this.variant = "expanded", this._handleKeyDown = (t) => {
16
15
  if (["ArrowLeft", "ArrowRight"].includes(t.key)) {
@@ -88,10 +87,10 @@ i([
88
87
  o({ reflect: !0 })
89
88
  ], a.prototype, "variant");
90
89
  i([
91
- p({ slot: "tabs" })
90
+ c({ slot: "tabs" })
92
91
  ], a.prototype, "tabs");
93
92
  i([
94
- p()
93
+ c()
95
94
  ], a.prototype, "panels");
96
95
  export {
97
96
  a as SkfTabGroup
@@ -1,4 +1,3 @@
1
- import "../icon/icon.js";
2
1
  import { SkfElement as u } from "../../internal/components/skf-element.js";
3
2
  import f from "../../styles/component.styles.js";
4
3
  import { html as a, nothing as p } from "lit";
@@ -1,4 +1,3 @@
1
- import "../icon/icon.js";
2
1
  import { FormBase as m } from "../../internal/components/formBase.js";
3
2
  import "../../internal/components/hint/hint.js";
4
3
  import { Asterisk as c } from "../../internal/templates/asterisk.js";
@@ -1486,19 +1486,6 @@
1486
1486
  "description": "Name of the icon to display",
1487
1487
  "attribute": "name"
1488
1488
  },
1489
- {
1490
- "kind": "field",
1491
- "name": "_icon",
1492
- "type": {
1493
- "text": "TemplateResult"
1494
- },
1495
- "privacy": "private",
1496
- "default": "html``"
1497
- },
1498
- {
1499
- "kind": "method",
1500
- "name": "handleNameChanged"
1501
- },
1502
1489
  {
1503
1490
  "kind": "field",
1504
1491
  "name": "size",
@@ -1,4 +1,3 @@
1
- import "../../../components/icon/icon.js";
2
1
  import { SkfElement as l } from "../skf-element.js";
3
2
  import { ICON_SEVERITY as n } from "../../constants/iconSeverity.js";
4
3
  import v from "../../../styles/component.styles.js";
@@ -1,6 +1,5 @@
1
- import "../../components/select/select.component.js";
2
1
  import { autoUpdate as n } from "@floating-ui/dom";
3
- class p {
2
+ class c {
4
3
  constructor(t, o = !0) {
5
4
  this.active = !1, this.autoStart = !0, this.host = t, t.addController(this), this.autoStart = o;
6
5
  }
@@ -40,5 +39,5 @@ class p {
40
39
  }
41
40
  }
42
41
  export {
43
- p as PopoverController
42
+ c as PopoverController
44
43
  };
package/package.json CHANGED
@@ -31,10 +31,10 @@
31
31
  "type": "git",
32
32
  "url": "git+https://github.com/SKF-Internal/ui-components.git"
33
33
  },
34
- "sideEffects": true,
34
+ "sideEffects": false,
35
35
  "type": "module",
36
36
  "types": "./dist/index.d.ts",
37
- "version": "1.0.0-alpha.31",
37
+ "version": "1.0.0-alpha.33",
38
38
  "dependencies": {
39
39
  "@floating-ui/dom": "^1.6.12"
40
40
  },