energy-components 1.7.0 → 1.8.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 (93) hide show
  1. package/dist/components/accordion.es.js +13 -13
  2. package/dist/components/accordionGroup.es.js +2 -2
  3. package/dist/components/actionButton.es.js +2 -2
  4. package/dist/components/breadcrumbs.es.js +3 -3
  5. package/dist/components/button.es.js +2 -2
  6. package/dist/components/card.es.js +5 -5
  7. package/dist/components/checkbox.es.js +5 -5
  8. package/dist/components/datepicker.es.js +588 -590
  9. package/dist/components/divider.es.js +2 -2
  10. package/dist/components/dragAndDrop.es.js +187 -0
  11. package/dist/components/dropdown.es.js +92 -92
  12. package/dist/components/filterChip.es.js +2 -2
  13. package/dist/components/floatingActionButton.es.js +2 -2
  14. package/dist/components/{icon-svg-BmDOQ0kL.js → icon-svg-_WCkLP8-.js} +12 -63
  15. package/dist/components/iconList.es.js +4 -4
  16. package/dist/components/iconSvg.es.js +1 -1
  17. package/dist/components/index.es.js +81 -75
  18. package/dist/components/indicator.es.js +6 -6
  19. package/dist/components/infoBox.es.js +16 -16
  20. package/dist/components/link.es.js +2 -2
  21. package/dist/components/modal.es.js +26 -26
  22. package/dist/components/multiselect.es.js +5 -5
  23. package/dist/components/multiselectcontentwrapper.es.js +6 -6
  24. package/dist/components/overlay.es.js +3 -3
  25. package/dist/components/pagination.es.js +1 -1
  26. package/dist/components/persistentToast.es.js +12 -12
  27. package/dist/components/progressBar.es.js +86 -0
  28. package/dist/components/quantitySelector.es.js +9 -9
  29. package/dist/components/{radio-group.vue_vue_type_script_setup_true_lang-B-kg-575.js → radio-group.vue_vue_type_script_setup_true_lang-DpguLlRK.js} +2 -2
  30. package/dist/components/radioButton.es.js +4 -4
  31. package/dist/components/radioGroup.es.js +1 -1
  32. package/dist/components/selectionChip.es.js +3 -3
  33. package/dist/components/sidebar.es.js +13 -13
  34. package/dist/components/sidedrawer.es.js +11 -11
  35. package/dist/components/style/actionButton.css +1 -1
  36. package/dist/components/style/button.css +1 -1
  37. package/dist/components/style/dragAndDrop.css +1 -0
  38. package/dist/components/style/progressBar.css +1 -0
  39. package/dist/components/style/switch.css +1 -1
  40. package/dist/components/style/tabBar.css +1 -1
  41. package/dist/components/style/textField.css +1 -1
  42. package/dist/components/switch.es.js +45 -38
  43. package/dist/components/tabBar.es.js +70 -55
  44. package/dist/components/tablepaginatedcomponent.es.js +22 -22
  45. package/dist/components/tableslotedcomponent.es.js +26 -26
  46. package/dist/components/tag.es.js +2 -2
  47. package/dist/components/textArea.es.js +2 -2
  48. package/dist/components/textField.es.js +30 -30
  49. package/dist/components/toggle.es.js +2 -2
  50. package/dist/components/tooltip.es.js +319 -311
  51. package/dist/energy-components.es.js +4689 -4450
  52. package/dist/energy-components.umd.js +2 -1
  53. package/dist/style.css +1 -1
  54. package/dist/types/src/components/buttons/action-button/action-button.vue.d.ts +1 -1
  55. package/dist/types/src/components/buttons/button/button.vue.d.ts +6 -11
  56. package/dist/types/src/components/buttons/floating-action-button/floating-action-button.vue.d.ts +1 -1
  57. package/dist/types/src/components/content/accordion/accordion.vue.d.ts +6 -17
  58. package/dist/types/src/components/content/acordion-group/accordion-group.vue.d.ts +6 -11
  59. package/dist/types/src/components/content/card/card.vue.d.ts +6 -11
  60. package/dist/types/src/components/content/divider/divider.vue.d.ts +1 -1
  61. package/dist/types/src/components/content/table/table-paginated/TablePaginatedComponent.vue.d.ts +88 -0
  62. package/dist/types/src/components/content/table/table-sloted/TableSlotedComponent.vue.d.ts +32 -31
  63. package/dist/types/src/components/content/tag/tag.vue.d.ts +1 -1
  64. package/dist/types/src/components/feedback/indicator/indicator.vue.d.ts +1 -4
  65. package/dist/types/src/components/feedback/info-box/info-box.vue.d.ts +8 -18
  66. package/dist/types/src/components/feedback/persistent-toast/persistent-toast.vue.d.ts +8 -12
  67. package/dist/types/src/components/feedback/progress-bar/progress-bar.vue.d.ts +101 -0
  68. package/dist/types/src/components/icon-svg/icon-svg.vue.d.ts +1 -1
  69. package/dist/types/src/components/index.d.ts +2 -0
  70. package/dist/types/src/components/input/checkbox/checkbox.vue.d.ts +6 -11
  71. package/dist/types/src/components/input/datepicker/datepicker.vue.d.ts +258 -0
  72. package/dist/types/src/components/input/drag-and-drop/drag-and-drop.vue.d.ts +203 -0
  73. package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +30 -550
  74. package/dist/types/src/components/input/filter-chip/filter-chip.vue.d.ts +1 -3
  75. package/dist/types/src/components/input/quantity-selector/quantity-selector.vue.d.ts +1 -4
  76. package/dist/types/src/components/input/radio-button/radio-button.vue.d.ts +1 -1
  77. package/dist/types/src/components/input/radio-button/radio-group.vue.d.ts +6 -11
  78. package/dist/types/src/components/input/selection-chip/selection-chip.vue.d.ts +1 -3
  79. package/dist/types/src/components/input/switch/switch.vue.d.ts +24 -21
  80. package/dist/types/src/components/input/text-area/text-area.vue.d.ts +12 -15
  81. package/dist/types/src/components/input/text-field/text-field.vue.d.ts +12 -19
  82. package/dist/types/src/components/input/toggle/toggle.vue.d.ts +1 -1
  83. package/dist/types/src/components/layout/sidebar/sidebar.vue.d.ts +10 -17
  84. package/dist/types/src/components/layout/sidedrawer/sidedrawer.vue.d.ts +8 -16
  85. package/dist/types/src/components/navigation/link/link.vue.d.ts +7 -11
  86. package/dist/types/src/components/navigation/pagination/pagination.vue.d.ts +1 -1
  87. package/dist/types/src/components/navigation/tab-bar/tab-bar.vue.d.ts +24 -18
  88. package/dist/types/src/components/overlay/modal/modal.vue.d.ts +10 -141
  89. package/dist/types/src/components/overlay/overlay/overlay.vue.d.ts +5 -10
  90. package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +8 -20
  91. package/dist/types/src/helpers/mobileMockup.vue.d.ts +1 -1
  92. package/dist/types/tsconfig.tsbuildinfo +1 -1
  93. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
- import { defineComponent as R, toRefs as B, ref as l, watch as D, nextTick as N, inject as _, onMounted as V, onBeforeUnmount as q, openBlock as v, createElementBlock as w, createElementVNode as n, toDisplayString as h, unref as d, createBlock as H, mergeProps as P, createCommentVNode as T, createVNode as j, normalizeClass as y, renderSlot as A, createTextVNode as E } from "vue";
2
- import { R as I } from "./icon-svg-BmDOQ0kL.js";
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-_WCkLP8-.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({
@@ -50,9 +50,9 @@ import './style/accordion.css';const b = { class: "rds-e-accordion" }, z = { cla
50
50
  i.value.style.maxHeight = t.value ? `${e}px` : "0px";
51
51
  }, r = (e) => {
52
52
  e === void 0 ? t.value = !t.value : t.value = e, k("update:open", t.value), x();
53
- }, u = () => {
54
- r(!0);
55
53
  }, p = () => {
54
+ r(!0);
55
+ }, u = () => {
56
56
  r(!1);
57
57
  };
58
58
  D(
@@ -62,12 +62,12 @@ import './style/accordion.css';const b = { class: "rds-e-accordion" }, z = { cla
62
62
  }),
63
63
  { immediate: !0 }
64
64
  );
65
- const m = _("registerRDSAccordionChild"), f = _("unregisterRDSAccordionChild");
65
+ const m = v("registerRDSAccordionChild"), f = v("unregisterRDSAccordionChild");
66
66
  return V(() => {
67
67
  m && m({
68
68
  id: o.id,
69
- open: u,
70
- close: p
69
+ open: p,
70
+ close: u
71
71
  });
72
72
  }), q(() => {
73
73
  f && f(o.id);
@@ -75,23 +75,23 @@ import './style/accordion.css';const b = { class: "rds-e-accordion" }, z = { cla
75
75
  /**
76
76
  * Abre el panel.
77
77
  */
78
- openPanel: u,
78
+ openPanel: p,
79
79
  /**
80
80
  * Cierra el panel.
81
81
  */
82
- closePanel: p
83
- }), (e, g) => (v(), w("div", b, [
82
+ closePanel: u
83
+ }), (e, g) => (_(), w("div", b, [
84
84
  n("div", {
85
85
  class: "rds-e-accordion-title_container",
86
86
  onClick: g[0] || (g[0] = () => r())
87
87
  }, [
88
88
  n("span", z, h(c.title), 1),
89
89
  n("div", M, [
90
- d(a) && d(a).icon ? (v(), H(O, P({
90
+ d(a) && d(a).icon ? (_(), H(O, j({
91
91
  key: 0,
92
92
  class: "rds-e-accordion-title_tag"
93
- }, d(a), { small: "" }), null, 16)) : T("", !0),
94
- j(I, {
93
+ }, d(a), { small: "" }), null, 16)) : P("", !0),
94
+ T(I, {
95
95
  class: y(["rds-e-accordion-title_icon", { "rds-e-accordion-title_icon--open": t.value }]),
96
96
  name: "arrow_down"
97
97
  }, null, 8, ["class"])
@@ -1,4 +1,4 @@
1
- import { defineComponent as s, ref as t, provide as r, openBlock as d, createElementBlock as i, renderSlot as a } from "vue";
1
+ import { defineComponent as s, ref as t, provide as r, createElementBlock as d, openBlock as i, renderSlot as a } from "vue";
2
2
  import { _ as p } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
3
  import './style/accordionGroup.css';const u = { class: "rds-e-accordion-group" }, _ = /* @__PURE__ */ s({
4
4
  __name: "accordion-group",
@@ -22,7 +22,7 @@ import './style/accordionGroup.css';const u = { class: "rds-e-accordion-group" }
22
22
  closeAll: () => {
23
23
  o.value.forEach((e) => e.close());
24
24
  }
25
- }), (e, c) => (d(), i("div", u, [
25
+ }), (e, c) => (i(), d("div", u, [
26
26
  a(e.$slots, "default", {}, void 0, !0)
27
27
  ]));
28
28
  }
@@ -1,4 +1,4 @@
1
- import { defineComponent as o, openBlock as a, createBlock as r, mergeProps as n } from "vue";
1
+ import { defineComponent as o, createBlock as a, openBlock as r, mergeProps as n } from "vue";
2
2
  import s from "./button.es.js";
3
3
  import { _ as l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/actionButton.css';const p = /* @__PURE__ */ o({
@@ -53,7 +53,7 @@ import './style/actionButton.css';const p = /* @__PURE__ */ o({
53
53
  }
54
54
  },
55
55
  setup(e) {
56
- return (t, i) => (a(), r(s, n({ class: "rds-e-btn--action" }, { ...t.$props, ...t.$attrs }, {
56
+ return (t, i) => (r(), a(s, n({ class: "rds-e-btn--action" }, { ...t.$props, ...t.$attrs }, {
57
57
  text: "",
58
58
  "is-action": ""
59
59
  }), null, 16));
@@ -1,4 +1,4 @@
1
- import { defineComponent as g, toRefs as h, ref as y, watchEffect as C, onMounted as L, openBlock as c, createElementBlock as l, Fragment as I, renderList as w, normalizeClass as x, unref as B, createVNode as j, mergeProps as E, toHandlers as P, withCtx as T, createCommentVNode as D } from "vue";
1
+ import { defineComponent as g, toRefs as h, ref as y, watchEffect as C, onMounted as L, createElementBlock as c, openBlock as l, Fragment as I, renderList as w, normalizeClass as x, unref as B, createVNode as j, mergeProps as E, toHandlers as P, withCtx as T, createCommentVNode as D } from "vue";
2
2
  import N from "./link.es.js";
3
3
  import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/breadcrumbs.css';const R = { key: 0 }, V = /* @__PURE__ */ g({
@@ -69,7 +69,7 @@ import './style/breadcrumbs.css';const R = { key: 0 }, V = /* @__PURE__ */ g({
69
69
  u();
70
70
  }), L(() => {
71
71
  u();
72
- }), (e, a) => (c(!0), l(I, null, w(n.value, (r, i) => (c(), l("ul", {
72
+ }), (e, a) => (l(!0), c(I, null, w(n.value, (r, i) => (l(), c("ul", {
73
73
  key: i,
74
74
  class: x(["rds-e-breadcrumbs", `${B(o) ? "rds-e-breadcrumbs--inverse" : ""}`])
75
75
  }, [
@@ -78,7 +78,7 @@ import './style/breadcrumbs.css';const R = { key: 0 }, V = /* @__PURE__ */ g({
78
78
  ref_for: !0
79
79
  }, b(r, i), P(_(r))), {
80
80
  default: T(() => [
81
- r != null && r.clickable ? (c(), l("span", R, "...")) : D("", !0)
81
+ r != null && r.clickable ? (l(), c("span", R, "...")) : D("", !0)
82
82
  ]),
83
83
  _: 2
84
84
  }, 1040, ["class"])
@@ -1,5 +1,5 @@
1
- import { defineComponent as B, toRefs as S, computed as l, openBlock as b, createElementBlock as x, unref as o, normalizeClass as m, 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-BmDOQ0kL.js";
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-_WCkLP8-.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
- import { defineComponent as s, openBlock as r, createElementBlock as o, normalizeClass as a, renderSlot as n } from "vue";
2
- import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js";
1
+ import { defineComponent as s, createElementBlock as o, openBlock as r, normalizeClass as a, renderSlot as c } from "vue";
2
+ import { _ as n } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
3
  import './style/card.css';const d = /* @__PURE__ */ s({
4
4
  __name: "card",
5
5
  props: {
@@ -15,10 +15,10 @@ import './style/card.css';const d = /* @__PURE__ */ s({
15
15
  return (t, l) => (r(), o("div", {
16
16
  class: a(["rds-e-card", e.customClass])
17
17
  }, [
18
- n(t.$slots, "default", {}, void 0, !0)
18
+ c(t.$slots, "default", {}, void 0, !0)
19
19
  ], 2));
20
20
  }
21
- }), f = /* @__PURE__ */ c(d, [["__scopeId", "data-v-f2e83835"]]);
21
+ }), _ = /* @__PURE__ */ n(d, [["__scopeId", "data-v-f2e83835"]]);
22
22
  export {
23
- f as default
23
+ _ as default
24
24
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as x, ref as d, watch as v, onMounted as y, onBeforeUnmount as w, openBlock as b, createElementBlock as g, normalizeClass as o, createElementVNode as n, renderSlot as S, createTextVNode as B, toDisplayString as C, createBlock as E, createCommentVNode as L } from "vue";
2
- import { R as V } from "./icon-svg-BmDOQ0kL.js";
1
+ import { defineComponent as x, ref as d, watch as v, onMounted as y, onBeforeUnmount as w, createElementBlock as g, openBlock as b, normalizeClass as o, createElementVNode as n, renderSlot as S, createTextVNode as B, createBlock as C, createCommentVNode as E, toDisplayString as L } from "vue";
2
+ import { R as V } from "./icon-svg-_WCkLP8-.js";
3
3
  import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/checkbox.css';const D = ["id", "checked", "aria-label", "required", "disabled"], N = ["for"], q = /* @__PURE__ */ x({
5
5
  __name: "checkbox",
@@ -112,13 +112,13 @@ import './style/checkbox.css';const D = ["id", "checked", "aria-label", "require
112
112
  }
113
113
  ])
114
114
  }, [
115
- B(C(e.label) + " ", 1),
116
- e.icon ? (b(), E(V, {
115
+ B(L(e.label) + " ", 1),
116
+ e.icon ? (b(), C(V, {
117
117
  key: 0,
118
118
  class: "rds-e-checkbox__label-box--icon",
119
119
  name: e.icon,
120
120
  size: "sm"
121
- }, null, 8, ["name"])) : L("", !0)
121
+ }, null, 8, ["name"])) : E("", !0)
122
122
  ], 2)
123
123
  ], !0)
124
124
  ], 10, N)