energy-components 1.22.0 → 2.0.0-beta.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 (80) hide show
  1. package/README.md +21 -6
  2. package/dist/components/accordion.es.js +17 -17
  3. package/dist/components/avatar.es.js +7 -7
  4. package/dist/components/breadcrumbs.es.js +32 -32
  5. package/dist/components/button.es.js +24 -24
  6. package/dist/components/checkbox.es.js +14 -17
  7. package/dist/components/collapsable.es.js +1 -1
  8. package/dist/components/{collapsable.scss_vue_type_style_index_0_src_true_lang-f-OHx-l3.js → collapsable.scss_vue_type_style_index_0_src_true_lang-BERfoghR.js} +10 -10
  9. package/dist/components/datepicker.es.js +4644 -4639
  10. package/dist/components/directAccess.es.js +45 -50
  11. package/dist/components/dragAndDrop.es.js +44 -46
  12. package/dist/components/dropdown.es.js +154 -163
  13. package/dist/components/fileUploadItem.es.js +18 -18
  14. package/dist/components/filterChip.es.js +9 -9
  15. package/dist/components/filterTag.es.js +7 -7
  16. package/dist/components/{floating-ui.vue-DHEoOe5S.js → floating-ui.vue-C-DgKOwt.js} +1 -1
  17. package/dist/components/functions-D3GA3OzJ.js +24 -0
  18. package/dist/components/icon-svg-DxlNo61Q.js +869 -0
  19. package/dist/components/iconList.es.js +25 -29
  20. package/dist/components/iconSvg.es.js +1 -1
  21. package/dist/components/index.es.js +46 -46
  22. package/dist/components/indicator.es.js +27 -28
  23. package/dist/components/infoBox.es.js +17 -17
  24. package/dist/components/link.es.js +51 -55
  25. package/dist/components/modal.es.js +20 -20
  26. package/dist/components/multiselect.es.js +2 -3
  27. package/dist/components/overlay.es.js +20 -15
  28. package/dist/components/pagination.es.js +111 -111
  29. package/dist/components/persistentToast.es.js +11 -11
  30. package/dist/components/popover.es.js +18 -18
  31. package/dist/components/popoverMenu.es.js +22 -22
  32. package/dist/components/progressBar.es.js +8 -8
  33. package/dist/components/quantitySelector.es.js +12 -12
  34. package/dist/components/radioButton.es.js +26 -26
  35. package/dist/components/selectionChip.es.js +5 -5
  36. package/dist/components/sidedrawer.es.js +19 -19
  37. package/dist/components/style/accordionGroup.css +1 -1
  38. package/dist/components/style/actionButton.css +1 -1
  39. package/dist/components/style/button.css +1 -1
  40. package/dist/components/style/checkbox.css +1 -1
  41. package/dist/components/style/datepicker.css +1 -1
  42. package/dist/components/style/directAccess.css +1 -1
  43. package/dist/components/style/dragAndDrop.css +1 -1
  44. package/dist/components/style/filterChip.css +1 -1
  45. package/dist/components/style/icon-svg.css +1 -1
  46. package/dist/components/style/iconList.css +1 -1
  47. package/dist/components/style/link.css +1 -1
  48. package/dist/components/style/modal.css +1 -1
  49. package/dist/components/style/overlay.css +1 -1
  50. package/dist/components/style/pagination.css +1 -1
  51. package/dist/components/style/persistentToast.css +1 -1
  52. package/dist/components/style/selectionChip.css +1 -1
  53. package/dist/components/style/sidedrawer.css +1 -1
  54. package/dist/components/style/tabBar.css +1 -1
  55. package/dist/components/style/tableslotedcomponent.css +1 -1
  56. package/dist/components/switch.es.js +9 -9
  57. package/dist/components/tabBar.es.js +32 -33
  58. package/dist/components/tablepaginatedcomponent.es.js +35 -36
  59. package/dist/components/tableslotedcomponent.es.js +116 -121
  60. package/dist/components/tag.es.js +6 -6
  61. package/dist/components/textArea.es.js +103 -106
  62. package/dist/components/textField.es.js +21 -22
  63. package/dist/components/toggle.es.js +23 -23
  64. package/dist/components/tooltip.es.js +59 -59
  65. package/dist/energy-components.css +1 -0
  66. package/dist/energy-components.es.js +9101 -24972
  67. package/dist/energy-components.umd.js +2 -2
  68. package/dist/style.css +1 -1
  69. package/dist/types/src/components/icon-svg/icon-list.d.ts +8 -9
  70. package/dist/types/src/components/input/filter-chip/filter-chip.vue.d.ts +2 -2
  71. package/dist/types/src/components/input/selection-chip/selection-chip.vue.d.ts +2 -2
  72. package/dist/types/src/components/navigation/direct-access/direct-access.vue.d.ts +2 -2
  73. package/dist/types/src/components/overlay/modal/modal.vue.d.ts +1 -1
  74. package/dist/types/src/helpers/functions.d.ts +1 -0
  75. package/dist/types/style.d.ts +1 -0
  76. package/dist/types/tsconfig.tsbuildinfo +1 -1
  77. package/package.json +24 -17
  78. package/dist/components/functions-DIHwdgF0.js +0 -18
  79. package/dist/components/icon-svg-K8-vLJgV.js +0 -16718
  80. package/dist/composables/index.es.js +0 -37
@@ -1,11 +1,11 @@
1
- import { defineComponent as q, toRefs as G, ref as u, computed as T, onBeforeUnmount as J, createElementBlock as x, openBlock as m, createElementVNode as v, createBlock as K, renderSlot as D, Teleport as Q, normalizeClass as N, createCommentVNode as O, unref as A, createVNode as Z, toDisplayString as E, createTextVNode as ee, nextTick as te } from "vue";
2
- import { a as oe, o as le, f as ae, s as ie, b as se, c as re, d as ne } from "./floating-ui.vue-DHEoOe5S.js";
3
- import { R as ue } from "./icon-svg-K8-vLJgV.js";
1
+ import { defineComponent as q, toRefs as G, ref as n, computed as T, onBeforeUnmount as J, createElementBlock as x, openBlock as f, createElementVNode as m, createBlock as K, renderSlot as A, Teleport as Q, normalizeClass as D, createCommentVNode as N, unref as O, createVNode as Z, toDisplayString as U, createTextVNode as ee, nextTick as te } from "vue";
2
+ import { a as oe, o as le, f as ae, s as ie, b as se, c as re, d as ne } from "./floating-ui.vue-C-DgKOwt.js";
3
+ import { I as ue } from "./icon-svg-DxlNo61Q.js";
4
4
  import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- import './style/tooltip.css';const ce = ["id"], fe = {
5
+ import './style/tooltip.css';const ce = ["id"], pe = {
6
6
  key: 0,
7
7
  class: "rds-e-tooltip__header"
8
- }, pe = { class: "rds-e-tooltip__title" }, me = { class: "rds-e-tooltip__content" }, ve = /* @__PURE__ */ q({
8
+ }, fe = { class: "rds-e-tooltip__title" }, me = { class: "rds-e-tooltip__content" }, ve = /* @__PURE__ */ q({
9
9
  __name: "tooltip",
10
10
  props: {
11
11
  /**
@@ -111,68 +111,68 @@ import './style/tooltip.css';const ce = ["id"], fe = {
111
111
  */
112
112
  "hide"
113
113
  ],
114
- setup(a, { expose: H, emit: V }) {
115
- const o = a, d = V, { large: S, fullWidth: j, title: i, inverse: I } = G(o), c = u(), s = u(), r = u(), e = u(!0), h = u("");
116
- let l = null, _ = !1, y = !1, t = null;
117
- const b = T(() => Math.min(Math.max(o.hideDelay, 0), 3e3)), U = T(() => ({
114
+ setup(a, { expose: E, emit: H }) {
115
+ const t = a, u = H, { large: S, fullWidth: I, title: v, inverse: V } = G(t), d = n(), i = n(), s = n(), e = n(!0), h = n("");
116
+ let l = null, _ = !1, y = !1, o = null;
117
+ const b = T(() => Math.min(Math.max(t.hideDelay, 0), 3e3)), j = T(() => ({
118
118
  "rds-e-tooltip__tooltip": !0,
119
119
  "rds-e-tooltip__tooltip-hidden": e.value,
120
120
  "rds-e-tooltip__tooltip--large": S.value,
121
- "rds-e-tooltip__tooltip--inverse": I.value
121
+ "rds-e-tooltip__tooltip--inverse": V.value
122
122
  })), k = async () => {
123
- const n = [
124
- le(o.offsetSpace),
123
+ const r = [
124
+ le(t.offsetSpace),
125
125
  ae(),
126
126
  ie(),
127
127
  se({
128
- apply({ availableHeight: f, availableWidth: p, elements: w }) {
128
+ apply({ availableHeight: c, availableWidth: p, elements: w }) {
129
129
  Object.assign(w.floating.style, {
130
- maxWidth: j.value ? `${Math.max(0, p)}px` : "380px",
130
+ maxWidth: I.value ? `${Math.max(0, p)}px` : "380px",
131
131
  width: "max-content",
132
- maxHeight: `${Math.max(0, f)}px`
132
+ maxHeight: `${Math.max(0, c)}px`
133
133
  });
134
134
  }
135
135
  })
136
136
  ];
137
- !o.hideArrow && r.value && n.push(re({
138
- element: r.value,
137
+ !t.hideArrow && s.value && r.push(re({
138
+ element: s.value,
139
139
  padding: S.value ? 16 : 8
140
140
  }));
141
- const { x: $, y: Y, middlewareData: C, placement: M } = await ne(
142
- c.value,
143
- s.value,
141
+ const { x: C, y: Y, middlewareData: M, placement: R } = await ne(
142
+ d.value,
143
+ i.value,
144
144
  {
145
- placement: o.placement,
146
- middleware: n
145
+ placement: t.placement,
146
+ middleware: r
147
147
  }
148
148
  );
149
- if (Object.assign(s.value.style, {
150
- left: `${$}px`,
149
+ if (Object.assign(i.value.style, {
150
+ left: `${C}px`,
151
151
  top: `${Y}px`
152
- }), !o.hideArrow && r.value && C.arrow) {
153
- const { x: f, y: p } = C.arrow, w = {
152
+ }), !t.hideArrow && s.value && M.arrow) {
153
+ const { x: c, y: p } = M.arrow, w = {
154
154
  left: "right",
155
155
  right: "left",
156
156
  bottom: "top",
157
157
  top: "bottom"
158
158
  };
159
- h.value = `rds-e-tooltip__tooltip-arrow--${M}`, Object.assign(r.value.style, {
160
- left: f != null ? `${f}px` : "",
159
+ h.value = `rds-e-tooltip__tooltip-arrow--${R}`, Object.assign(s.value.style, {
160
+ left: c != null ? `${c}px` : "",
161
161
  top: p != null ? `${p}px` : "",
162
162
  bottom: "",
163
163
  right: "",
164
- [w[M.split("-")[0]]]: "-4px"
164
+ [w[R.split("-")[0]]]: "-4px"
165
165
  });
166
- } else o.hideArrow && (h.value = "");
166
+ } else t.hideArrow && (h.value = "");
167
167
  }, W = () => {
168
- clearTimeout(l), e.value ? e.value = !0 : (e.value = !0, d("hide"));
168
+ clearTimeout(l), e.value ? e.value = !0 : (e.value = !0, u("hide"));
169
169
  }, B = () => {
170
- i != null && i.value || (e.value ? e.value = !0 : (e.value = !0, d("hide"))), clearTimeout(l);
170
+ v?.value || (e.value ? e.value = !0 : (e.value = !0, u("hide"))), clearTimeout(l);
171
171
  }, g = () => {
172
- o.suppressed || (clearTimeout(l), e.value = !1, d("show"), te(() => {
173
- k(), o.autoUpdate && c.value && s.value && (t == null || t(), t = oe(
174
- c.value,
175
- s.value,
172
+ t.suppressed || (clearTimeout(l), e.value = !1, u("show"), te(() => {
173
+ k(), t.autoUpdate && d.value && i.value && (o?.(), o = oe(
174
+ d.value,
175
+ i.value,
176
176
  () => {
177
177
  k();
178
178
  }
@@ -190,62 +190,62 @@ import './style/tooltip.css';const ce = ["id"], fe = {
190
190
  _ = !1, y || (l = setTimeout(() => {
191
191
  B();
192
192
  }, b.value));
193
- }, R = () => {
194
- e.value || (e.value = !0, d("hide"), t && (t(), t = null));
193
+ }, $ = () => {
194
+ e.value || (e.value = !0, u("hide"), o && (o(), o = null));
195
195
  }, X = () => {
196
- R();
196
+ $();
197
197
  };
198
- return H({
198
+ return E({
199
199
  show: g,
200
- hide: R,
200
+ hide: $,
201
201
  isOpen: T(() => !e.value)
202
202
  }), J(() => {
203
- clearTimeout(l), t && (t(), t = null);
204
- }), (n, $) => (m(), x("div", {
203
+ clearTimeout(l), o && (o(), o = null);
204
+ }), (r, C) => (f(), x("div", {
205
205
  id: a.id,
206
206
  class: "rds-e-tooltip"
207
207
  }, [
208
- v("div", {
208
+ m("div", {
209
209
  ref_key: "referenceRef",
210
- ref: c,
210
+ ref: d,
211
211
  class: "rds-e-tooltip__trigger",
212
212
  onBlur: W,
213
213
  onFocus: g,
214
214
  onMouseenter: z,
215
215
  onMouseleave: L
216
216
  }, [
217
- D(n.$slots, "default", {}, void 0, !0)
217
+ A(r.$slots, "default", {}, void 0, !0)
218
218
  ], 544),
219
- (m(), K(Q, {
219
+ (f(), K(Q, {
220
220
  to: a.teleportTo,
221
221
  disabled: !a.teleportTo
222
222
  }, [
223
- v("div", {
223
+ m("div", {
224
224
  ref_key: "floatingRef",
225
- ref: s,
226
- class: N(U.value),
225
+ ref: i,
226
+ class: D(j.value),
227
227
  onMouseenter: P,
228
228
  onMouseleave: F
229
229
  }, [
230
- A(i) ? (m(), x("div", fe, [
231
- v("h3", pe, E(A(i)), 1),
230
+ O(v) ? (f(), x("div", pe, [
231
+ m("h3", fe, U(O(v)), 1),
232
232
  Z(ue, {
233
233
  name: "close",
234
234
  "aria-hidden": "true",
235
235
  class: "rds-e-tooltip__icon",
236
236
  onClick: X
237
237
  })
238
- ])) : O("", !0),
239
- v("div", me, [
240
- D(n.$slots, "tooltip-content", {}, () => [
241
- ee(E(a.content), 1)
238
+ ])) : N("", !0),
239
+ m("div", me, [
240
+ A(r.$slots, "tooltip-content", {}, () => [
241
+ ee(U(a.content), 1)
242
242
  ], !0)
243
243
  ]),
244
- a.hideArrow ? O("", !0) : (m(), x("div", {
244
+ a.hideArrow ? N("", !0) : (f(), x("div", {
245
245
  key: 1,
246
246
  ref_key: "arrowRef",
247
- ref: r,
248
- class: N(["rds-e-tooltip__tooltip-arrow", h.value])
247
+ ref: s,
248
+ class: D(["rds-e-tooltip__tooltip-arrow", h.value])
249
249
  }, null, 2))
250
250
  ], 34)
251
251
  ], 8, ["to", "disabled"]))