@skf-design-system/ui-components 1.0.1-beta.0 → 1.0.1-beta.1

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.
Files changed (67) hide show
  1. package/dist/components/accordion/accordion.component.js +3 -3
  2. package/dist/components/alert/alert.component.js +8 -8
  3. package/dist/components/button/button.component.d.ts +3 -3
  4. package/dist/components/button/button.component.js +59 -55
  5. package/dist/components/card/card.component.js +4 -4
  6. package/dist/components/checkbox/checkbox.component.d.ts +3 -1
  7. package/dist/components/checkbox/checkbox.component.js +69 -56
  8. package/dist/components/date-picker/datepicker.calendar.component.d.ts +72 -0
  9. package/dist/components/date-picker/datepicker.calendar.component.js +382 -0
  10. package/dist/components/date-picker/datepicker.calendar.styles.d.ts +1 -0
  11. package/dist/components/date-picker/datepicker.calendar.styles.js +192 -0
  12. package/dist/components/date-picker/datepicker.component.d.ts +74 -0
  13. package/dist/components/date-picker/datepicker.component.js +241 -0
  14. package/dist/components/date-picker/datepicker.d.ts +10 -0
  15. package/dist/components/date-picker/datepicker.helpers.d.ts +40 -0
  16. package/dist/components/date-picker/datepicker.helpers.js +69 -0
  17. package/dist/components/date-picker/datepicker.js +8 -0
  18. package/dist/components/date-picker/datepicker.styles.d.ts +1 -0
  19. package/dist/components/date-picker/datepicker.styles.js +99 -0
  20. package/dist/components/date-picker-input/datepicker-input.component.d.ts +107 -0
  21. package/dist/components/date-picker-input/datepicker-input.component.js +397 -0
  22. package/dist/components/date-picker-input/datepicker-input.d.ts +8 -0
  23. package/dist/components/date-picker-input/datepicker-input.helpers.d.ts +4 -0
  24. package/dist/components/date-picker-input/datepicker-input.helpers.js +29 -0
  25. package/dist/components/date-picker-input/datepicker-input.js +6 -0
  26. package/dist/components/date-picker-input/datepicker-input.styles.d.ts +1 -0
  27. package/dist/components/date-picker-input/datepicker-input.styles.js +22 -0
  28. package/dist/components/dialog/dialog.component.js +19 -19
  29. package/dist/components/divider/divider.component.js +12 -12
  30. package/dist/components/heading/heading.component.js +13 -13
  31. package/dist/components/icon/icon.component.js +19 -19
  32. package/dist/components/input/input.component.d.ts +1 -0
  33. package/dist/components/input/input.component.js +87 -80
  34. package/dist/components/link/link.component.js +28 -28
  35. package/dist/components/loader/loader.component.js +19 -19
  36. package/dist/components/logo/logo.component.js +6 -6
  37. package/dist/components/popover/popover.component.js +12 -12
  38. package/dist/components/progress/progress.component.js +7 -7
  39. package/dist/components/radio/radio.component.js +4 -4
  40. package/dist/components/select-option-group/select-option-group.component.js +9 -9
  41. package/dist/components/stepper/stepper.component.js +9 -9
  42. package/dist/components/stepper/stepper.helpers.js +5 -5
  43. package/dist/components/stepper-item/stepper-item.component.js +23 -23
  44. package/dist/components/tab/tab.component.js +4 -4
  45. package/dist/components/tab-panel/tab-panel.component.js +12 -12
  46. package/dist/components/tag/tag.component.js +9 -9
  47. package/dist/components/textarea/textarea.component.js +3 -3
  48. package/dist/components/toast/toast.component.js +13 -13
  49. package/dist/components/toast-wrapper/toast-wrapper.component.js +10 -10
  50. package/dist/components/tooltip/tooltip.component.js +2 -2
  51. package/dist/custom-elements.json +941 -161
  52. package/dist/index.d.ts +2 -0
  53. package/dist/index.js +72 -66
  54. package/dist/internal/components/hint/hint.component.js +13 -13
  55. package/dist/internal/controllers/popover.controller.d.ts +2 -1
  56. package/dist/internal/controllers/popover.controller.js +2 -2
  57. package/dist/internal/helpers/dateFormatter.d.ts +2 -0
  58. package/dist/internal/helpers/utilityTypes.d.ts +22 -0
  59. package/dist/react/index.d.ts +1 -0
  60. package/dist/react/index.js +1 -0
  61. package/dist/react/skf-datepicker/index.d.ts +12 -0
  62. package/dist/react/skf-datepicker/index.js +18 -0
  63. package/dist/types/jsx/custom-element-jsx.d.ts +45 -3
  64. package/dist/types/vue/index.d.ts +44 -1
  65. package/dist/vscode.html-custom-data.json +39 -1
  66. package/dist/web-types.json +107 -10
  67. package/package.json +3 -2
@@ -1,51 +1,51 @@
1
1
  import { SkfElement as f } from "../../internal/components/skf-element.js";
2
- import { ICONS as d } from "@skf-design-system/ui-assets";
3
- import u from "../../styles/component.styles.js";
4
- import { html as c } from "lit";
2
+ import { ICONS as c } from "@skf-design-system/ui-assets";
3
+ import d from "../../styles/component.styles.js";
4
+ import { html as h } from "lit";
5
5
  import { property as t } from "lit/decorators.js";
6
- import { classMap as h } from "lit/directives/class-map.js";
6
+ import { classMap as u } from "lit/directives/class-map.js";
7
7
  import { ifDefined as s } from "lit/directives/if-defined.js";
8
- import y from "./icon.styles.js";
9
- var $ = Object.defineProperty, o = (m, p, n, b) => {
10
- for (var e = void 0, i = m.length - 1, a; i >= 0; i--)
11
- (a = m[i]) && (e = a(p, n, e) || e);
12
- return e && $(p, n, e), e;
8
+ import v from "./icon.styles.js";
9
+ var y = Object.defineProperty, o = (m, p, a, $) => {
10
+ for (var r = void 0, i = m.length - 1, n; i >= 0; i--)
11
+ (n = m[i]) && (r = n(p, a, r) || r);
12
+ return r && y(p, a, r), r;
13
13
  };
14
14
  const l = class l extends f {
15
15
  constructor() {
16
16
  super(...arguments), this.color = "primary", this.size = "md";
17
17
  }
18
18
  render() {
19
- return c`
19
+ return h`
20
20
  <div
21
21
  aria-hidden=${s(this.label ? void 0 : "true")}
22
22
  aria-label=${s(this.label)}
23
- class=${h({
23
+ class=${u({
24
24
  icon: !0,
25
25
  [`icon--color-${this.color}`]: !0,
26
26
  [`icon--size-${this.size}`]: !0
27
27
  })}
28
28
  role=${s(this.label ? "img" : void 0)}
29
29
  >
30
- ${d[this.name]}
30
+ ${c[this.name]}
31
31
  </div>
32
32
  `;
33
33
  }
34
34
  };
35
- l.styles = [u, y];
36
- let r = l;
35
+ l.styles = [d, v];
36
+ let e = l;
37
37
  o([
38
38
  t({ reflect: !0 })
39
- ], r.prototype, "color");
39
+ ], e.prototype, "color");
40
40
  o([
41
41
  t()
42
- ], r.prototype, "label");
42
+ ], e.prototype, "label");
43
43
  o([
44
44
  t()
45
- ], r.prototype, "name");
45
+ ], e.prototype, "name");
46
46
  o([
47
47
  t({ reflect: !0 })
48
- ], r.prototype, "size");
48
+ ], e.prototype, "size");
49
49
  export {
50
- r as SkfIcon
50
+ e as SkfIcon
51
51
  };
@@ -105,6 +105,7 @@ export declare class SkfInput extends FormBase implements FormFieldBaseProps {
105
105
  private _passwordController;
106
106
  protected firstUpdated(): void;
107
107
  willUpdate(changedProperties: Map<string | number | symbol, unknown>): void;
108
+ valueChanged(): void;
108
109
  attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
109
110
  /** @internal */
110
111
  _handleInput: () => void;
@@ -2,22 +2,23 @@ import "../icon/icon.js";
2
2
  import { FormBase as b } from "../../internal/components/formBase.js";
3
3
  import "../../internal/components/hint/hint.js";
4
4
  import { hintSeverity as v } from "../../internal/helpers/hintSeverity.js";
5
- import { Asterisk as y } from "../../internal/templates/asterisk.js";
6
- import f from "../../styles/component.styles.js";
7
- import { html as h, nothing as d } from "lit";
8
- import { property as e, state as c, query as _, queryAssignedNodes as $ } from "lit/decorators.js";
5
+ import { watch as y } from "../../internal/helpers/watch.js";
6
+ import { Asterisk as f } from "../../internal/templates/asterisk.js";
7
+ import _ from "../../styles/component.styles.js";
8
+ import { html as h, nothing as u } from "lit";
9
+ import { property as i, state as c, query as $, queryAssignedNodes as g } from "lit/decorators.js";
9
10
  import { ifDefined as n } from "lit/directives/if-defined.js";
10
- import { live as g } from "lit/directives/live.js";
11
- import { InputNumberController as w, InputPasswordController as E } from "./input.controllers.js";
11
+ import { live as w } from "lit/directives/live.js";
12
+ import { InputNumberController as E, InputPasswordController as C } from "./input.controllers.js";
12
13
  import A from "./input.styles.js";
13
- var C = Object.defineProperty, S = Object.getOwnPropertyDescriptor, i = (m, s, r, a) => {
14
- for (var o = a > 1 ? void 0 : a ? S(s, r) : s, l = m.length - 1, u; l >= 0; l--)
15
- (u = m[l]) && (o = (a ? u(s, r, o) : u(o)) || o);
16
- return a && o && C(s, r, o), o;
14
+ var S = Object.defineProperty, L = Object.getOwnPropertyDescriptor, e = (m, s, r, a) => {
15
+ for (var o = a > 1 ? void 0 : a ? L(s, r) : s, l = m.length - 1, d; l >= 0; l--)
16
+ (d = m[l]) && (o = (a ? d(s, r, o) : d(o)) || o);
17
+ return a && o && S(s, r, o), o;
17
18
  };
18
19
  const p = class p extends b {
19
20
  constructor() {
20
- super(...arguments), this.buttonAriaLabelClear = "Clear input", this.buttonAriaLabelHide = "Hide password", this.buttonAriaLabelShow = "Show password", this.inputmode = "text", this.size = "md", this.type = "text", this.validateOn = "change", this.value = "", this.invalid = !1, this._buttonDown = !1, this._numberController = new w(this), this._passwordController = new E(this), this._handleInput = () => {
21
+ super(...arguments), this.buttonAriaLabelClear = "Clear input", this.buttonAriaLabelHide = "Hide password", this.buttonAriaLabelShow = "Show password", this.inputmode = "text", this.size = "md", this.type = "text", this.validateOn = "change", this.value = "", this.invalid = !1, this._buttonDown = !1, this._numberController = new E(this), this._passwordController = new C(this), this._handleInput = () => {
21
22
  this.value = this.$input.value || "", this.validateOn === "input" && (this._pristine = !1, this.validateInput());
22
23
  }, this._resetValue = (s) => {
23
24
  var r;
@@ -91,6 +92,9 @@ const p = class p extends b {
91
92
  } else
92
93
  this.removeAttribute("invalid"), !this._pristine && this.showValid && this.setAttribute("valid", "true"), this.hint = this.getAttribute("hint") ?? "";
93
94
  }
95
+ valueChanged() {
96
+ this._internals.setFormValue(this.value), console.log("updated internals", this.$input.value), this.validateInput();
97
+ }
94
98
  attributeChangedCallback(s, r, a) {
95
99
  if (super.attributeChangedCallback(s, r, a), s === "value" && this._internals.setFormValue(a), s === "custom-invalid")
96
100
  if (typeof a == "string") {
@@ -131,10 +135,10 @@ const p = class p extends b {
131
135
  <label>
132
136
  <div class=${this.hideLabel ? "visually-hidden" : ""} ?hidden=${s} id="label">
133
137
  <slot>${this.label}</slot>
134
- ${this.required ? y(this.requiredLabel) : null}
138
+ ${this.required ? f(this.requiredLabel) : null}
135
139
  </div>
136
140
  <div id="input">
137
- ${this.type === "search" ? h`<skf-icon class="skf-icon-host" name="search" size="sm"></skf-icon>` : d}
141
+ ${this.type === "search" ? h`<skf-icon class="skf-icon-host" name="search" size="sm"></skf-icon>` : u}
138
142
  <div
139
143
  data-leading=${n(this.leading)}
140
144
  data-trailing=${n(this.trailing)}
@@ -144,12 +148,12 @@ const p = class p extends b {
144
148
  ?disabled=${this.disabled}
145
149
  ?readonly=${this.readonly}
146
150
  ?required=${this.required}
147
- .value=${g(this.value)}
151
+ .value=${w(this.value)}
148
152
  @blur=${this._onBlur}
149
153
  @input=${this._handleInput}
150
154
  autocomplete=${this.autocomplete}
151
- aria-describedby=${n((o = this.hint) != null && o.trim() ? "hint" : d)}
152
- aria-errormessage=${n((l = this.hint) != null && l.trim() ? "hint" : d)}
155
+ aria-describedby=${n((o = this.hint) != null && o.trim() ? "hint" : u)}
156
+ aria-errormessage=${n((l = this.hint) != null && l.trim() ? "hint" : u)}
153
157
  aria-invalid=${!!this.invalid}
154
158
  autocomplete="off"
155
159
  data-testid="field-input"
@@ -170,9 +174,9 @@ const p = class p extends b {
170
174
  <div id="action">
171
175
  ${this._renderNumberButton("inc")} ${this._renderNumberButton("dec")}
172
176
  </div>
173
- ` : d}
174
- ${this.type === "password" ? this._renderPasswordButton() : d}
175
- ${this.type === "search" && this.value.length > 0 ? this._renderSearchButton() : d}
177
+ ` : u}
178
+ ${this.type === "password" ? this._renderPasswordButton() : u}
179
+ ${this.type === "search" && this.value.length > 0 ? this._renderSearchButton() : u}
176
180
  </div>
177
181
  </label>
178
182
  ${this.hint && h`
@@ -187,101 +191,104 @@ const p = class p extends b {
187
191
  `;
188
192
  }
189
193
  };
190
- p.styles = [f, A];
194
+ p.styles = [_, A];
191
195
  let t = p;
192
- i([
193
- e({ type: String })
196
+ e([
197
+ i({ type: String })
194
198
  ], t.prototype, "autocomplete", 2);
195
- i([
196
- e({ attribute: "button-aria-label-clear" })
199
+ e([
200
+ i({ attribute: "button-aria-label-clear" })
197
201
  ], t.prototype, "buttonAriaLabelClear", 2);
198
- i([
199
- e({ attribute: "button-aria-label-hide" })
202
+ e([
203
+ i({ attribute: "button-aria-label-hide" })
200
204
  ], t.prototype, "buttonAriaLabelHide", 2);
201
- i([
202
- e({ attribute: "button-aria-label-show" })
205
+ e([
206
+ i({ attribute: "button-aria-label-show" })
203
207
  ], t.prototype, "buttonAriaLabelShow", 2);
204
- i([
205
- e({ attribute: "custom-invalid", reflect: !0 })
208
+ e([
209
+ i({ attribute: "custom-invalid", reflect: !0 })
206
210
  ], t.prototype, "customInvalid", 1);
207
- i([
208
- e({ type: Boolean })
211
+ e([
212
+ i({ type: Boolean })
209
213
  ], t.prototype, "debug", 2);
210
- i([
211
- e({ type: Boolean, attribute: "hide-label" })
214
+ e([
215
+ i({ type: Boolean, attribute: "hide-label" })
212
216
  ], t.prototype, "hideLabel", 2);
213
- i([
214
- e()
217
+ e([
218
+ i()
215
219
  ], t.prototype, "hint", 2);
216
- i([
217
- e({ type: String })
220
+ e([
221
+ i({ type: String })
218
222
  ], t.prototype, "inputmode", 2);
219
- i([
220
- e()
223
+ e([
224
+ i()
221
225
  ], t.prototype, "label", 2);
222
- i([
223
- e()
226
+ e([
227
+ i()
224
228
  ], t.prototype, "leading", 2);
225
- i([
226
- e()
229
+ e([
230
+ i()
227
231
  ], t.prototype, "max", 2);
228
- i([
229
- e({ type: Number, attribute: "maxlength" })
232
+ e([
233
+ i({ type: Number, attribute: "maxlength" })
230
234
  ], t.prototype, "maxLength", 2);
231
- i([
232
- e()
235
+ e([
236
+ i()
233
237
  ], t.prototype, "min", 2);
234
- i([
235
- e({ type: Number, attribute: "minlength" })
238
+ e([
239
+ i({ type: Number, attribute: "minlength" })
236
240
  ], t.prototype, "minLength", 2);
237
- i([
238
- e()
241
+ e([
242
+ i({ reflect: !0 })
239
243
  ], t.prototype, "name", 2);
240
- i([
241
- e()
244
+ e([
245
+ i()
242
246
  ], t.prototype, "pattern", 2);
243
- i([
244
- e()
247
+ e([
248
+ i()
245
249
  ], t.prototype, "placeholder", 2);
246
- i([
247
- e({ type: Boolean })
250
+ e([
251
+ i({ type: Boolean })
248
252
  ], t.prototype, "readonly", 2);
249
- i([
250
- e({ attribute: "required-label" })
253
+ e([
254
+ i({ attribute: "required-label" })
251
255
  ], t.prototype, "requiredLabel", 2);
252
- i([
253
- e({ reflect: !0 })
256
+ e([
257
+ i({ reflect: !0 })
254
258
  ], t.prototype, "severity", 2);
255
- i([
256
- e({ type: Boolean, attribute: "show-valid" })
259
+ e([
260
+ i({ type: Boolean, attribute: "show-valid" })
257
261
  ], t.prototype, "showValid", 2);
258
- i([
259
- e({ reflect: !0 })
262
+ e([
263
+ i({ reflect: !0 })
260
264
  ], t.prototype, "size", 2);
261
- i([
262
- e()
265
+ e([
266
+ i()
263
267
  ], t.prototype, "trailing", 2);
264
- i([
265
- e()
268
+ e([
269
+ i()
266
270
  ], t.prototype, "type", 2);
267
- i([
268
- e({ type: String, attribute: "validate-on" })
271
+ e([
272
+ i({ type: String, attribute: "validate-on" })
269
273
  ], t.prototype, "validateOn", 2);
270
- i([
271
- e()
274
+ e([
275
+ i({ reflect: !0 })
272
276
  ], t.prototype, "value", 2);
273
- i([
277
+ e([
274
278
  c()
275
279
  ], t.prototype, "invalid", 2);
276
- i([
280
+ e([
277
281
  c()
278
282
  ], t.prototype, "_buttonDown", 2);
279
- i([
280
- _("input")
283
+ e([
284
+ $("input")
281
285
  ], t.prototype, "$input", 2);
282
- i([
283
- $({ flatten: !0 })
286
+ e([
287
+ g({ flatten: !0 })
284
288
  ], t.prototype, "_defaultSlot", 2);
289
+ e([
290
+ y("value", { waitUntilFirstUpdate: !0, afterUpdate: !0 })
291
+ ], t.prototype, "valueChanged", 1);
285
292
  export {
286
293
  t as SkfInput
287
294
  };
@@ -1,18 +1,18 @@
1
1
  import "../icon/icon.js";
2
- import u from "./link.styles.js";
3
- import { SkfElement as m } from "../../internal/components/skf-element.js";
4
- import y from "../../styles/component.styles.js";
2
+ import y from "./link.styles.js";
3
+ import { SkfElement as d } from "../../internal/components/skf-element.js";
4
+ import u from "../../styles/component.styles.js";
5
5
  import "lit";
6
6
  import { property as r } from "lit/decorators.js";
7
7
  import { classMap as k } from "lit/directives/class-map.js";
8
8
  import { ifDefined as c } from "lit/directives/if-defined.js";
9
- import { html as f, literal as d } from "lit/static-html.js";
10
- var g = Object.defineProperty, b = Object.getOwnPropertyDescriptor, i = (h, t, o, l) => {
11
- for (var n = l > 1 ? void 0 : l ? b(t, o) : t, p = h.length - 1, a; p >= 0; p--)
12
- (a = h[p]) && (n = (l ? a(t, o, n) : a(n)) || n);
13
- return l && n && g(t, o, n), n;
9
+ import { html as f, literal as m } from "lit/static-html.js";
10
+ var v = Object.defineProperty, g = Object.getOwnPropertyDescriptor, o = (h, t, i, l) => {
11
+ for (var n = l > 1 ? void 0 : l ? g(t, i) : t, p = h.length - 1, a; p >= 0; p--)
12
+ (a = h[p]) && (n = (l ? a(t, i, n) : a(n)) || n);
13
+ return l && n && v(t, i, n), n;
14
14
  }, s;
15
- const e = (s = class extends m {
15
+ const e = (s = class extends d {
16
16
  constructor() {
17
17
  super(...arguments), this.as = "a", this.color = "primary", this.iconPlacement = "left", this.stretch = !1, this.type = "button", this._preprocessOnClick = (t) => {
18
18
  this.as === "a" && this.onClick && t.preventDefault(), t.stopPropagation(), this.emit("click");
@@ -21,10 +21,10 @@ const e = (s = class extends m {
21
21
  set onClick(t) {
22
22
  if (!t) return;
23
23
  this._onClick = t;
24
- const o = (l) => {
24
+ const i = (l) => {
25
25
  t(l, this.href ?? this.route);
26
26
  };
27
- this._assertValidOnClick(t), this.removeEventListener("click", o), this.addEventListener("click", o);
27
+ this._assertValidOnClick(t), this.removeEventListener("click", i), this.addEventListener("click", i);
28
28
  }
29
29
  get onClick() {
30
30
  return this._onClick;
@@ -52,9 +52,9 @@ const e = (s = class extends m {
52
52
  `;
53
53
  }
54
54
  render() {
55
- const t = this.as === "a", o = t ? d`a` : d`button`;
55
+ const t = this.as === "a", i = t ? m`a` : m`button`;
56
56
  return f`
57
- <${o}
57
+ <${i}
58
58
  ?disabled=${c(t ? void 0 : this.disabled)}
59
59
  @click=${this._preprocessOnClick}
60
60
  class=${k({
@@ -73,47 +73,47 @@ const e = (s = class extends m {
73
73
  >
74
74
  ${this.icon && this._renderIcon()}
75
75
  <slot>Default link text</slot>
76
- </${o}>
76
+ </${i}>
77
77
  `;
78
78
  }
79
- }, s.styles = [y, u], s.classMap = {}, s);
80
- i([
79
+ }, s.styles = [u, y], s.classMap = {}, s);
80
+ o([
81
81
  r({ type: String, reflect: !0 })
82
82
  ], e.prototype, "as", 2);
83
- i([
83
+ o([
84
84
  r({ type: String, reflect: !0 })
85
85
  ], e.prototype, "color", 2);
86
- i([
86
+ o([
87
87
  r({ type: Boolean, reflect: !0 })
88
88
  ], e.prototype, "disabled", 2);
89
- i([
89
+ o([
90
90
  r({ type: String })
91
91
  ], e.prototype, "download", 2);
92
- i([
92
+ o([
93
93
  r({ type: String })
94
94
  ], e.prototype, "href", 2);
95
- i([
95
+ o([
96
96
  r({ type: String })
97
97
  ], e.prototype, "icon", 2);
98
- i([
98
+ o([
99
99
  r({ attribute: "icon-placement", reflect: !0 })
100
100
  ], e.prototype, "iconPlacement", 2);
101
- i([
101
+ o([
102
102
  r()
103
103
  ], e.prototype, "rel", 2);
104
- i([
104
+ o([
105
105
  r({ reflect: !0 })
106
106
  ], e.prototype, "route", 2);
107
- i([
107
+ o([
108
108
  r({ type: Boolean, reflect: !0 })
109
109
  ], e.prototype, "stretch", 2);
110
- i([
110
+ o([
111
111
  r()
112
112
  ], e.prototype, "target", 2);
113
- i([
113
+ o([
114
114
  r()
115
115
  ], e.prototype, "type", 2);
116
- i([
116
+ o([
117
117
  r({ attribute: !1 })
118
118
  ], e.prototype, "onClick", 1);
119
119
  let E = e;
@@ -1,24 +1,24 @@
1
- var v = (e) => {
2
- throw TypeError(e);
1
+ var v = (r) => {
2
+ throw TypeError(r);
3
3
  };
4
- var f = (e, r, t) => r.has(e) || v("Cannot " + t);
5
- var n = (e, r, t) => (f(e, r, "read from private field"), t ? t.call(e) : r.get(e)), h = (e, r, t) => r.has(e) ? v("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(e) : r.set(e, t), u = (e, r, t, a) => (f(e, r, "write to private field"), a ? a.call(e, t) : r.set(e, t), t);
4
+ var f = (r, e, t) => e.has(r) || v("Cannot " + t);
5
+ var p = (r, e, t) => (f(r, e, "read from private field"), t ? t.call(r) : e.get(r)), h = (r, e, t) => e.has(r) ? v("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), u = (r, e, t, a) => (f(r, e, "write to private field"), a ? a.call(r, t) : e.set(r, t), t);
6
6
  import { SkfElement as y } from "../../internal/components/skf-element.js";
7
7
  import _ from "../../styles/component.styles.js";
8
8
  import { html as b } from "lit";
9
- import { property as p } from "lit/decorators.js";
9
+ import { property as n } from "lit/decorators.js";
10
10
  import { classMap as g } from "lit/directives/class-map.js";
11
11
  import z from "./loader.styles.js";
12
- var x = Object.defineProperty, d = (e, r, t, a) => {
13
- for (var i = void 0, o = e.length - 1, m; o >= 0; o--)
14
- (m = e[o]) && (i = m(r, t, i) || i);
15
- return i && x(r, t, i), i;
12
+ var x = Object.defineProperty, c = (r, e, t, a) => {
13
+ for (var i = void 0, o = r.length - 1, m; o >= 0; o--)
14
+ (m = r[o]) && (i = m(e, t, i) || i);
15
+ return i && x(e, t, i), i;
16
16
  }, s;
17
- const c = class c extends y {
17
+ const d = class d extends y {
18
18
  constructor() {
19
19
  super();
20
20
  h(this, s);
21
- this.ariaLabel = "Loading...", this.invert = !1, this.size = "md", u(this, s, this.attachInternals()), n(this, s).role = "progressbar", n(this, s).ariaLive = "polite";
21
+ this.ariaLabel = "Loading...", this.invert = !1, this.size = "md", u(this, s, this.attachInternals()), p(this, s).role = "progressbar", p(this, s).ariaLive = "polite";
22
22
  }
23
23
  render() {
24
24
  return b`
@@ -36,16 +36,16 @@ const c = class c extends y {
36
36
  `;
37
37
  }
38
38
  };
39
- s = new WeakMap(), c.styles = [_, z];
40
- let l = c;
41
- d([
42
- p({ reflect: !0, attribute: "aria-label" })
39
+ s = new WeakMap(), d.styles = [_, z];
40
+ let l = d;
41
+ c([
42
+ n({ reflect: !0, attribute: "aria-label" })
43
43
  ], l.prototype, "ariaLabel");
44
- d([
45
- p({ type: Boolean })
44
+ c([
45
+ n({ type: Boolean })
46
46
  ], l.prototype, "invert");
47
- d([
48
- p({ type: String, reflect: !0 })
47
+ c([
48
+ n({ type: String, reflect: !0 })
49
49
  ], l.prototype, "size");
50
50
  export {
51
51
  l as SkfLoader
@@ -1,20 +1,20 @@
1
1
  import { SkfElement as i } from "../../internal/components/skf-element.js";
2
- import n from "../../styles/component.styles.js";
3
- import { html as m } from "lit";
2
+ import m from "../../styles/component.styles.js";
3
+ import { html as n } from "lit";
4
4
  import { property as p } from "lit/decorators.js";
5
5
  import { classMap as a } from "lit/directives/class-map.js";
6
6
  import { styles as d } from "./logo.styles.js";
7
- var f = Object.defineProperty, v = (e, l, s, g) => {
7
+ var g = Object.defineProperty, v = (e, l, s, y) => {
8
8
  for (var c = void 0, r = e.length - 1, h; r >= 0; r--)
9
9
  (h = e[r]) && (c = h(l, s, c) || c);
10
- return c && f(l, s, c), c;
10
+ return c && g(l, s, c), c;
11
11
  };
12
12
  const o = class o extends i {
13
13
  constructor() {
14
14
  super(...arguments), this.title = "SKF logotype", this.color = "primary";
15
15
  }
16
16
  render() {
17
- return m`
17
+ return n`
18
18
  <svg
19
19
  class=${a({
20
20
  logo: !0,
@@ -66,7 +66,7 @@ c0,5.8-4.3,6.1-9.1,6.1H1230.9z"
66
66
  `;
67
67
  }
68
68
  };
69
- o.styles = [n, d];
69
+ o.styles = [m, d];
70
70
  let t = o;
71
71
  v([
72
72
  p()
@@ -1,15 +1,15 @@
1
- import { SkfPopoverBase as n } from "../../internal/base-classes/popover/popover.base.js";
1
+ import { SkfPopoverBase as h } from "../../internal/base-classes/popover/popover.base.js";
2
2
  import { watch as d } from "../../internal/helpers/watch.js";
3
3
  import { property as f } from "lit/decorators.js";
4
- import { styles as w } from "./popover.styles.js";
5
- var l = Object.defineProperty, v = Object.getOwnPropertyDescriptor, h = (m, e, o, s) => {
6
- for (var r = s > 1 ? void 0 : s ? v(e, o) : e, i = m.length - 1, p; i >= 0; i--)
7
- (p = m[i]) && (r = (s ? p(e, o, r) : p(r)) || r);
8
- return s && r && l(e, o, r), r;
4
+ import { styles as v } from "./popover.styles.js";
5
+ var w = Object.defineProperty, l = Object.getOwnPropertyDescriptor, n = (m, e, s, o) => {
6
+ for (var r = o > 1 ? void 0 : o ? l(e, s) : e, i = m.length - 1, p; i >= 0; i--)
7
+ (p = m[i]) && (r = (o ? p(e, s, r) : p(r)) || r);
8
+ return o && r && w(e, s, r), r;
9
9
  };
10
- const a = class a extends n {
10
+ const a = class a extends h {
11
11
  constructor() {
12
- super(), this.offset = 8, this.hideArrow = !1, this.arrow = !this.hideArrow, this.placement = "bottom-start", n.classMap = { popover: !0 };
12
+ super(), this.offset = 8, this.hideArrow = !1, this.arrow = !this.hideArrow, this.placement = "bottom-start", h.classMap = { popover: !0 };
13
13
  }
14
14
  hideArrowChanged() {
15
15
  this.arrow = !this.hideArrow;
@@ -21,15 +21,15 @@ const a = class a extends n {
21
21
  e.removeEventListener("mouseenter", this.open);
22
22
  }
23
23
  };
24
- a.styles = [n.styles, w];
24
+ a.styles = [h.styles, v];
25
25
  let t = a;
26
- h([
26
+ n([
27
27
  f({ type: Number })
28
28
  ], t.prototype, "offset", 2);
29
- h([
29
+ n([
30
30
  f({ type: Boolean })
31
31
  ], t.prototype, "hideArrow", 2);
32
- h([
32
+ n([
33
33
  d("hideArrow")
34
34
  ], t.prototype, "hideArrowChanged", 1);
35
35
  export {
@@ -1,9 +1,9 @@
1
- var f = (t) => {
1
+ var h = (t) => {
2
2
  throw TypeError(t);
3
3
  };
4
- var h = (t, e, r) => e.has(t) || f("Cannot " + r);
5
- var d = (t, e, r) => (h(t, e, "read from private field"), r ? r.call(t) : e.get(t)), c = (t, e, r) => e.has(t) ? f("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), y = (t, e, r, p) => (h(t, e, "write to private field"), p ? p.call(t, r) : e.set(t, r), r);
6
- import { SkfElement as v } from "../../internal/components/skf-element.js";
4
+ var f = (t, e, r) => e.has(t) || h("Cannot " + r);
5
+ var c = (t, e, r) => (f(t, e, "read from private field"), r ? r.call(t) : e.get(t)), d = (t, e, r) => e.has(t) ? h("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), v = (t, e, r, p) => (f(t, e, "write to private field"), p ? p.call(t, r) : e.set(t, r), r);
6
+ import { SkfElement as y } from "../../internal/components/skf-element.js";
7
7
  import x from "../../styles/component.styles.js";
8
8
  import { html as b } from "lit";
9
9
  import { property as l } from "lit/decorators.js";
@@ -14,11 +14,11 @@ var N = Object.defineProperty, n = (t, e, r, p) => {
14
14
  (u = t[m]) && (s = u(e, r, s) || s);
15
15
  return s && N(e, r, s), s;
16
16
  }, o;
17
- const i = class i extends v {
17
+ const i = class i extends y {
18
18
  constructor() {
19
19
  super();
20
- c(this, o);
21
- this.animated = !1, this.max = 1, this.value = 0, y(this, o, this.attachInternals()), d(this, o).role = "progressbar";
20
+ d(this, o);
21
+ this.animated = !1, this.max = 1, this.value = 0, v(this, o, this.attachInternals()), c(this, o).role = "progressbar";
22
22
  }
23
23
  render() {
24
24
  const r = this.value / this.max * 100;
@@ -2,8 +2,8 @@ import "../icon/icon.js";
2
2
  import { FormBase as c } from "../../internal/components/formBase.js";
3
3
  import { watch as n } from "../../internal/helpers/watch.js";
4
4
  import { Asterisk as p } from "../../internal/templates/asterisk.js";
5
- import m from "../../styles/component.styles.js";
6
- import { html as v } from "lit";
5
+ import v from "../../styles/component.styles.js";
6
+ import { html as m } from "lit";
7
7
  import { property as r, state as f, query as y } from "lit/decorators.js";
8
8
  import { ifDefined as b } from "lit/directives/if-defined.js";
9
9
  import { live as _ } from "lit/directives/live.js";
@@ -76,7 +76,7 @@ const d = class d extends c {
76
76
  this.setValidity({});
77
77
  }
78
78
  render() {
79
- return v`
79
+ return m`
80
80
  <label id="root">
81
81
  <input
82
82
  ?disabled=${this.disabled}
@@ -95,7 +95,7 @@ const d = class d extends c {
95
95
  `;
96
96
  }
97
97
  };
98
- d.styles = [m, g];
98
+ d.styles = [v, g];
99
99
  let t = d;
100
100
  i([
101
101
  r({ type: Boolean })