energy-components 1.10.0-beta.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/components/accordion.es.js +1 -1
  2. package/dist/components/avatar.es.js +1 -1
  3. package/dist/components/breadcrumbs.es.js +2 -3
  4. package/dist/components/button.es.js +1 -1
  5. package/dist/components/checkbox.es.js +1 -1
  6. package/dist/components/directAccess.es.js +1 -1
  7. package/dist/components/dragAndDrop.es.js +1 -1
  8. package/dist/components/dropdown.es.js +19 -18
  9. package/dist/components/fileUploadItem.es.js +1 -1
  10. package/dist/components/filterChip.es.js +1 -1
  11. package/dist/components/{icon-svg-YXBqzlJN.js → icon-svg-DuzOdbk1.js} +4360 -2853
  12. package/dist/components/iconList.es.js +1 -1
  13. package/dist/components/iconSvg.es.js +1 -1
  14. package/dist/components/index.es.js +1 -1
  15. package/dist/components/infoBox.es.js +1 -1
  16. package/dist/components/link.es.js +1 -1
  17. package/dist/components/modal.es.js +1 -1
  18. package/dist/components/multiselectcontentwrapper.es.js +25 -22
  19. package/dist/components/persistentToast.es.js +1 -1
  20. package/dist/components/progressBar.es.js +1 -1
  21. package/dist/components/quantitySelector.es.js +1 -1
  22. package/dist/components/radioButton.es.js +1 -1
  23. package/dist/components/selectionChip.es.js +1 -1
  24. package/dist/components/sidedrawer.es.js +1 -1
  25. package/dist/components/style/dropdown.css +1 -1
  26. package/dist/components/style/multiselect.css +1 -1
  27. package/dist/components/style/multiselectcontentwrapper.css +1 -1
  28. package/dist/components/style/tag.css +1 -1
  29. package/dist/components/style/textField.css +1 -1
  30. package/dist/components/switch.es.js +1 -1
  31. package/dist/components/tabBar.es.js +1 -1
  32. package/dist/components/tableslotedcomponent.es.js +1 -1
  33. package/dist/components/tag.es.js +15 -15
  34. package/dist/components/textArea.es.js +1 -1
  35. package/dist/components/textField.es.js +64 -53
  36. package/dist/components/tooltip.es.js +293 -295
  37. package/dist/energy-components.es.js +6988 -5469
  38. package/dist/energy-components.umd.js +2 -2
  39. package/dist/style.css +1 -1
  40. package/dist/types/src/components/input/drag-and-drop/drag-and-drop.vue.d.ts +1 -1
  41. package/dist/types/src/components/input/dropdown/Multiselect/MultiselectContentWrapper.vue.d.ts +9 -2
  42. package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +4 -4
  43. package/dist/types/src/components/input/quantity-selector/quantity-selector.vue.d.ts +1 -1
  44. package/dist/types/src/components/input/text-field/text-field.vue.d.ts +17 -0
  45. package/dist/types/src/setupTests.d.ts +1 -0
  46. package/dist/types/tsconfig.tsbuildinfo +1 -1
  47. package/package.json +4 -2
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as R, toRefs as B, ref as l, watch as D, nextTick as N, inject as v, onMounted as V, onBeforeUnmount as q, createElementBlock as w, openBlock as _, createElementVNode as n, toDisplayString as h, createBlock as H, createCommentVNode as P, createVNode as T, unref as d, mergeProps as j, normalizeClass as y, renderSlot as A, createTextVNode as E } from "vue";
2
- import { R as I } from "./icon-svg-YXBqzlJN.js";
2
+ import { R as I } from "./icon-svg-DuzOdbk1.js";
3
3
  import O from "./tag.es.js";
4
4
  import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  import './style/accordion.css';const b = { class: "rds-e-accordion" }, z = { class: "rds-e-accordion-title" }, M = { class: "rds-e-accordion-title_right" }, U = /* @__PURE__ */ R({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as _, computed as a, createElementBlock as s, openBlock as r, withKeys as o, normalizeStyle as u, normalizeClass as h, createBlock as k, createCommentVNode as b, toDisplayString as z } from "vue";
2
- import { R as C } from "./icon-svg-YXBqzlJN.js";
2
+ import { R as C } from "./icon-svg-DuzOdbk1.js";
3
3
  import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/avatar.css';const A = ["aria-label"], B = ["src", "alt"], D = {
5
5
  key: 1,
@@ -74,9 +74,8 @@ import './style/breadcrumbs.css';const R = { key: 0 }, V = /* @__PURE__ */ g({
74
74
  class: x(["rds-e-breadcrumbs", `${B(o) ? "rds-e-breadcrumbs--inverse" : ""}`])
75
75
  }, [
76
76
  j(N, E({
77
- class: k(r),
78
- ref_for: !0
79
- }, b(r, i), P(_(r))), {
77
+ class: k(r)
78
+ }, { ref_for: !0 }, b(r, i), P(_(r))), {
80
79
  default: T(() => [
81
80
  r != null && r.clickable ? (l(), c("span", R, "...")) : D("", !0)
82
81
  ]),
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as B, toRefs as S, computed as l, createElementBlock as x, openBlock as b, normalizeClass as m, unref as o, createBlock as I, createCommentVNode as k, createElementVNode as $, renderSlot as C, createTextVNode as N, toDisplayString as R } from "vue";
2
- import { R as V } from "./icon-svg-YXBqzlJN.js";
2
+ import { R as V } from "./icon-svg-DuzOdbk1.js";
3
3
  import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/button.css';const E = ["type", "disabled"], L = { class: "rds-e-btn__text" }, w = /* @__PURE__ */ B({
5
5
  __name: "button",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as y, ref as n, watch as b, onMounted as w, onBeforeUnmount as g, createElementBlock as S, openBlock as f, normalizeClass as d, createElementVNode as r, renderSlot as B, createTextVNode as C, createBlock as _, createCommentVNode as E, toDisplayString as L } from "vue";
2
- import { R as V } from "./icon-svg-YXBqzlJN.js";
2
+ import { R as V } from "./icon-svg-DuzOdbk1.js";
3
3
  import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/checkbox.css';const N = ["id", "checked", "aria-label", "required", "disabled"], R = ["for"], q = /* @__PURE__ */ y({
5
5
  __name: "checkbox",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as j, toRefs as E, computed as o, createBlock as d, openBlock as i, resolveDynamicComponent as I, unref as t, normalizeClass as N, withCtx as O, renderSlot as u, createElementVNode as m, createCommentVNode as w, createElementBlock as T, normalizeStyle as b, toDisplayString as V } from "vue";
2
- import { R as S } from "./icon-svg-YXBqzlJN.js";
2
+ import { R as S } from "./icon-svg-DuzOdbk1.js";
3
3
  import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/directAccess.css';const A = { class: "rds-e-direct-access__artwork-container" }, M = ["src", "alt", "aria-hidden"], F = { class: "rds-e-direct-access__text-container" }, G = { class: "rds-e-direct-access__text" }, H = /* @__PURE__ */ j({
5
5
  __name: "direct-access",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as k, ref as _, computed as c, createElementBlock as b, openBlock as x, withModifiers as f, normalizeClass as q, createElementVNode as u, renderSlot as L, createVNode as M, createCommentVNode as z, toDisplayString as D } from "vue";
2
2
  import { g as A } from "./getInstance-GhoEcxLF.js";
3
- import { R as U } from "./icon-svg-YXBqzlJN.js";
3
+ import { R as U } from "./icon-svg-DuzOdbk1.js";
4
4
  import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  import './style/dragAndDrop.css';const O = ["id", "accept", "multiple", "disabled"], P = ["for"], j = { class: "rds-e-drag-and-drop__icon-wrapper" }, G = { class: "rds-e-drag-and-drop__text-container" }, H = { class: "rds-e-drag-and-drop__text" }, J = {
6
6
  key: 0,
@@ -2,9 +2,9 @@ import { defineComponent as de, mergeModels as K, toRefs as ie, useModel as ue,
2
2
  import ve from "./multiselect.es.js";
3
3
  import be from "./checkbox.es.js";
4
4
  import { _ as ye } from "./radio-group.vue_vue_type_script_setup_true_lang-DpguLlRK.js";
5
- import ge from "./radioButton.es.js";
5
+ import we from "./radioButton.es.js";
6
6
  import z from "./textField.es.js";
7
- import { R as we } from "./icon-svg-YXBqzlJN.js";
7
+ import { R as ge } from "./icon-svg-DuzOdbk1.js";
8
8
  import { _ as he } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  import './style/dropdown.css';const ke = { class: "rds-e-dropdown" }, $e = { class: "rds-e-dropdown__option" }, Ce = { class: "rds-e-dropdown__option-container" }, De = { class: "rds-e-dropdown__option--prepend" }, Se = { class: "rds-e-dropdown__option--content" }, Ve = {
10
10
  key: 0,
@@ -168,7 +168,7 @@ import './style/dropdown.css';const ke = { class: "rds-e-dropdown" }, $e = { cla
168
168
  disabled: k,
169
169
  limit: E,
170
170
  multiple: $,
171
- options: g
171
+ options: w
172
172
  } = ie(s), r = ue(o, "modelValue"), i = D([]), v = D(), b = D(), L = D(""), x = D(!1), J = () => {
173
173
  x.value = !0;
174
174
  }, C = u(() => s.autocomplete && Object.keys(s.autocomplete).length > 0), Q = u(() => ({
@@ -195,10 +195,10 @@ import './style/dropdown.css';const ke = { class: "rds-e-dropdown" }, $e = { cla
195
195
  const I = u({
196
196
  get: () => r.value && typeof r.value == "object" && !Array.isArray(r.value) ? r.value.id : typeof r.value == "string" || typeof r.value == "number" ? r.value : null,
197
197
  set: (e) => {
198
- const l = g.value.find((t) => typeof t == "object" ? t.id === e : t === e);
198
+ const l = w.value.find((t) => typeof t == "object" ? t.id === e : t === e);
199
199
  r.value = l || null;
200
200
  }
201
- }), X = u(() => (g.value ?? []).every((e) => typeof e == "object" && (e == null ? void 0 : e.id) && (e == null ? void 0 : e.label))), Y = u(() => !$.value || s.closeOnSelect), q = u({
201
+ }), X = u(() => (w.value ?? []).every((e) => typeof e == "object" && (e == null ? void 0 : e.id) && (e == null ? void 0 : e.label))), Y = u(() => !$.value || s.closeOnSelect), q = u({
202
202
  get: () => r.value ? s.multiple ? Array.isArray(r.value) ? r.value.length > E.value ? s.limitText(E.value) : r.value.map((e) => typeof e == "string" ? e : e.label).join(", ") : "" : typeof r.value == "object" ? r.value.label : typeof r.value == "string" ? r.value : "" : "",
203
203
  set: () => null
204
204
  }), Z = u(() => ({
@@ -211,7 +211,7 @@ import './style/dropdown.css';const ke = { class: "rds-e-dropdown" }, $e = { cla
211
211
  "track-by": "id",
212
212
  label: "label"
213
213
  }), e;
214
- }), le = u(() => C.value && s.autocomplete.autocompleteFilter ? g.value.filter((e) => s.autocomplete.autocompleteFilter(e, L.value)) : g.value), B = (e) => {
214
+ }), le = u(() => C.value && s.autocomplete.autocompleteFilter ? w.value.filter((e) => s.autocomplete.autocompleteFilter(e, L.value)) : w.value), B = (e) => {
215
215
  if (r.value === e) return !0;
216
216
  if (Array.isArray(r.value)) {
217
217
  if (typeof e == "string") return r.value.includes(e);
@@ -220,9 +220,9 @@ import './style/dropdown.css';const ke = { class: "rds-e-dropdown" }, $e = { cla
220
220
  }
221
221
  return !1;
222
222
  }, te = (e) => {
223
- h("open", e);
223
+ h("open", e, s.id);
224
224
  }, oe = (e) => {
225
- h("close", e);
225
+ h("close", e, s.id);
226
226
  }, se = (e) => {
227
227
  F(() => {
228
228
  h("select", e);
@@ -230,12 +230,12 @@ import './style/dropdown.css';const ke = { class: "rds-e-dropdown" }, $e = { cla
230
230
  }, re = () => {
231
231
  F(() => {
232
232
  if ($.value) {
233
- const e = g.value.filter(
233
+ const e = w.value.filter(
234
234
  (l) => B(l)
235
235
  ) || [];
236
236
  h("change", e);
237
237
  } else {
238
- const e = g.value.find(
238
+ const e = w.value.find(
239
239
  (l) => B(l)
240
240
  );
241
241
  h("change", [e]);
@@ -321,7 +321,7 @@ import './style/dropdown.css';const ke = { class: "rds-e-dropdown" }, $e = { cla
321
321
  onClick: n((p) => t ? null : O(), ["prevent", "stop"])
322
322
  }, P({
323
323
  "right-icon": d(() => [
324
- S(a(we), {
324
+ S(a(ge), {
325
325
  name: "arrow_down",
326
326
  "aria-hidden": "true",
327
327
  class: fe(["rds-e-dropdown__input-caret", {
@@ -356,21 +356,21 @@ import './style/dropdown.css';const ke = { class: "rds-e-dropdown" }, $e = { cla
356
356
  small: o.small,
357
357
  "is-checked": B(t),
358
358
  disabled: a(k) || (t == null ? void 0 : t.$isDisabled) || !1,
359
- onClick: n((w) => N(t), ["prevent", "stop"])
359
+ onClick: n((g) => N(t), ["prevent", "stop"])
360
360
  }, null, 8, ["id", "small", "is-checked", "disabled", "onClick"])) : !a($) && o.showRadio ? (m(), W(a(ye), {
361
361
  key: 1,
362
362
  modelValue: I.value,
363
- "onUpdate:modelValue": l[2] || (l[2] = (w) => I.value = w),
363
+ "onUpdate:modelValue": l[2] || (l[2] = (g) => I.value = g),
364
364
  "group-name": `group-${o.id}`
365
365
  }, {
366
366
  default: d(() => [
367
- S(a(ge), {
367
+ S(a(we), {
368
368
  id: `${A}-${typeof t == "object" ? t.id : A}`,
369
369
  small: o.small,
370
370
  option: typeof t == "object" ? t.id : t,
371
371
  checked: B(t),
372
372
  disabled: a(k) || (t == null ? void 0 : t.$isDisabled) || !1,
373
- onClick: n((w) => N(t), ["prevent", "stop"])
373
+ onClick: n((g) => N(t), ["prevent", "stop"])
374
374
  }, null, 8, ["id", "small", "option", "checked", "disabled", "onClick"])
375
375
  ]),
376
376
  _: 2
@@ -378,9 +378,9 @@ import './style/dropdown.css';const ke = { class: "rds-e-dropdown" }, $e = { cla
378
378
  ]),
379
379
  c("div", Se, [
380
380
  f(e.$slots, "singleLabel", { option: t }, () => {
381
- var w;
381
+ var g;
382
382
  return [
383
- (w = j.value) != null && w.label ? (m(), y(me, { key: 0 }, [
383
+ (g = j.value) != null && g.label ? (m(), y(me, { key: 0 }, [
384
384
  c("span", null, M(t.label), 1),
385
385
  t != null && t.detail ? (m(), y("span", Ve, M(t.detail), 1)) : V("", !0)
386
386
  ], 64)) : (m(), y("span", Be, M(t), 1))
@@ -456,6 +456,7 @@ import './style/dropdown.css';const ke = { class: "rds-e-dropdown" }, $e = { cla
456
456
  modelValue: L.value,
457
457
  "onUpdate:modelValue": l[3] || (l[3] = (t) => L.value = t)
458
458
  }, Q.value, {
459
+ "full-width": "",
459
460
  onMousedown: l[4] || (l[4] = n(() => {
460
461
  }, ["stop", "prevent"])),
461
462
  onFocus: l[5] || (l[5] = n(() => {
@@ -485,7 +486,7 @@ import './style/dropdown.css';const ke = { class: "rds-e-dropdown" }, $e = { cla
485
486
  ]), 1040, ["modelValue", "class", "options", "close-on-select", "disabled", "multiple", "max-height", "small", "open-direction", "limit", "limit-text", "append-to-body"])
486
487
  ]));
487
488
  }
488
- }), Ke = /* @__PURE__ */ he(xe, [["__scopeId", "data-v-9000f56f"]]);
489
+ }), Ke = /* @__PURE__ */ he(xe, [["__scopeId", "data-v-00250720"]]);
489
490
  export {
490
491
  Ke as default
491
492
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as M, ref as N, computed as c, createElementBlock as l, openBlock as o, normalizeClass as $, createElementVNode as r, renderSlot as v, createVNode as p, createCommentVNode as n, toDisplayString as m, withModifiers as I } from "vue";
2
- import { R as g } from "./icon-svg-YXBqzlJN.js";
2
+ import { R as g } from "./icon-svg-DuzOdbk1.js";
3
3
  import z from "./progressBar.es.js";
4
4
  import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  import './style/fileUploadItem.css';const R = { class: "rds-e-file-upload-item__icon-container" }, w = { class: "rds-e-file-upload-item__details" }, E = { class: "rds-e-file-upload-item__info-wrapper" }, F = { class: "rds-e-file-upload-item__name" }, x = {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as g, ref as b, computed as c, createElementBlock as s, openBlock as l, normalizeClass as y, createCommentVNode as r, createElementVNode as _, createBlock as a, toDisplayString as n } from "vue";
2
- import { R as o } from "./icon-svg-YXBqzlJN.js";
2
+ import { R as o } from "./icon-svg-DuzOdbk1.js";
3
3
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/filterChip.css';const C = ["disabled"], I = {
5
5
  key: 0,