energy-components 1.6.0-beta.0 → 1.6.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.
- package/dist/components/accordion.es.js +13 -13
- package/dist/components/button.es.js +11 -11
- package/dist/components/checkbox.es.js +7 -7
- package/dist/components/dropdown.es.js +278 -148
- package/dist/components/filterChip.es.js +4 -4
- package/dist/components/{icon-svg-CeKfjk3j.js → icon-svg-DGp2yHJn.js} +700 -670
- package/dist/components/iconList.es.js +5 -5
- package/dist/components/iconSvg.es.js +1 -1
- package/dist/components/index.es.js +62 -59
- package/dist/components/infoBox.es.js +48 -33
- package/dist/components/link.es.js +15 -15
- package/dist/components/modal.es.js +69 -39
- package/dist/components/multiselect.es.js +230 -184
- package/dist/components/multiselectcontentwrapper.es.js +140 -0
- package/dist/components/pagination.es.js +118 -86
- package/dist/components/persistentToast.es.js +29 -23
- package/dist/components/quantitySelector.es.js +9 -9
- package/dist/components/radioButton.es.js +16 -16
- package/dist/components/selectionChip.es.js +5 -5
- package/dist/components/sidedrawer.es.js +36 -28
- package/dist/components/style/datepicker.css +1 -1
- package/dist/components/style/dropdown.css +1 -1
- package/dist/components/style/infoBox.css +1 -1
- package/dist/components/style/modal.css +1 -1
- package/dist/components/style/multiselect.css +1 -1
- package/dist/components/style/multiselectcontentwrapper.css +1 -0
- package/dist/components/style/pagination.css +1 -1
- package/dist/components/style/persistentToast.css +1 -1
- package/dist/components/style/sidedrawer.css +1 -1
- package/dist/components/style/tablepaginatedcomponent.css +1 -1
- package/dist/components/style/tableslotedcomponent.css +1 -1
- package/dist/components/style/textField.css +1 -1
- package/dist/components/switch.es.js +10 -10
- package/dist/components/tabBar.es.js +12 -12
- package/dist/components/tablepaginatedcomponent.es.js +69 -66
- package/dist/components/tableslotedcomponent.es.js +147 -138
- package/dist/components/tag.es.js +5 -5
- package/dist/components/textArea.es.js +22 -22
- package/dist/components/textField.es.js +93 -84
- package/dist/components/tooltip.es.js +61 -61
- package/dist/energy-components.es.js +7354 -6797
- package/dist/energy-components.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/components/feedback/info-box/info-box.vue.d.ts +20 -1
- package/dist/types/src/components/feedback/persistent-toast/persistent-toast.vue.d.ts +1 -0
- package/dist/types/src/components/index.d.ts +1 -0
- package/dist/types/src/components/input/dropdown/Multiselect/MultiselectContentWrapper.vue.d.ts +86 -0
- package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +582 -0
- package/dist/types/src/components/input/text-field/text-field.vue.d.ts +10 -3
- package/dist/types/src/components/layout/sidedrawer/sidedrawer.vue.d.ts +15 -0
- package/dist/types/src/components/navigation/pagination/pagination.vue.d.ts +63 -31
- package/dist/types/src/components/overlay/modal/modal.vue.d.ts +27 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -1,16 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as w, toRefs as I, getCurrentInstance as ee, ref as p, computed as m, watchEffect as le, watch as te, onMounted as se, openBlock as n, createElementBlock as c, normalizeClass as u, createElementVNode as i, Fragment as g, renderList as x, renderSlot as h, createVNode as f, normalizeStyle as ae, toDisplayString as U, createCommentVNode as b, unref as C, Transition as O, withCtx as N, nextTick as oe } from "vue";
|
|
2
|
+
import { R as ne } from "./icon-svg-DGp2yHJn.js";
|
|
3
|
+
import E from "./checkbox.es.js";
|
|
4
|
+
import { g as ce } from "./getInstance-GhoEcxLF.js";
|
|
5
|
+
import { _ as ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
import './style/tableslotedcomponent.css';const de = { key: 0 }, re = ["data-header", "onClick"], ue = ["for"], be = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "rds-flex rds-flex-align-center"
|
|
9
|
+
}, _e = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "table__sortable-icon rds-flex rds-flex-center-center rds-flex-col"
|
|
12
|
+
}, ke = {
|
|
5
13
|
key: 0,
|
|
6
14
|
class: "table__cell table__cell--heading body-1 table__cell--right"
|
|
7
|
-
}, pe = ["
|
|
15
|
+
}, pe = ["for"], fe = {
|
|
8
16
|
key: 0,
|
|
9
17
|
class: "loading-overlay"
|
|
10
|
-
},
|
|
18
|
+
}, ye = ["onClick"], ve = ["column-key", "data-cell"], ge = ["title"], he = {
|
|
11
19
|
key: 0,
|
|
12
20
|
class: "table__cell table__cell--shadow table__cell--right"
|
|
13
|
-
},
|
|
21
|
+
}, $e = ["for"], me = ["colspan"], Ce = ["colspan"], Se = /* @__PURE__ */ w({
|
|
14
22
|
__name: "TableSlotedComponent",
|
|
15
23
|
props: {
|
|
16
24
|
loading: { type: Boolean, default: !1 },
|
|
@@ -31,102 +39,107 @@ import './style/tableslotedcomponent.css';const de = { key: 0 }, _e = ["data-hea
|
|
|
31
39
|
mockItems: {}
|
|
32
40
|
},
|
|
33
41
|
emits: ["selectAll", "onClickCheckbox", "onItemExpansion", "onHeaderSort"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
42
|
+
setup(L, { expose: j, emit: q }) {
|
|
43
|
+
const o = L, y = q, { item: k, listChecked: z, selectableKey: d } = I(o), S = ee(), F = p(), B = p(`table-${ce()}`), _ = p([]), $ = p([]), K = p([]), P = p(!0), G = m(() => {
|
|
36
44
|
const e = "table";
|
|
37
45
|
let t = e;
|
|
38
|
-
return t = `${t} ${e}--${
|
|
39
|
-
}), J =
|
|
46
|
+
return t = `${t} ${e}--${o.variant}`, o.condensed && (t = `${t} ${e}--condensed`), t;
|
|
47
|
+
}), J = m(() => {
|
|
40
48
|
const e = "table__body";
|
|
41
49
|
let t = e;
|
|
42
|
-
return t = `${t} ${e}--${
|
|
43
|
-
}), Q =
|
|
50
|
+
return t = `${t} ${e}--${o.variant}`, o.condensed && (t = `${t} ${e}--condensed`), t;
|
|
51
|
+
}), Q = m(() => o.mockItems ? Array.from({ length: o.mockItems }, () => ({
|
|
44
52
|
expandible: !1,
|
|
45
53
|
visible: !1
|
|
46
|
-
})) : []),
|
|
47
|
-
if (
|
|
48
|
-
const t = e[
|
|
49
|
-
return
|
|
54
|
+
})) : []), v = m(() => o.loading && _.value.length === 0 ? Q.value : _.value), W = (e) => {
|
|
55
|
+
if (d != null && d.value) {
|
|
56
|
+
const t = e[d.value];
|
|
57
|
+
return z.value.includes(t);
|
|
50
58
|
}
|
|
51
59
|
return !1;
|
|
52
60
|
}, X = (e) => {
|
|
53
|
-
|
|
54
|
-
|
|
61
|
+
if (d != null && d.value) {
|
|
62
|
+
const t = String(e[d.value]);
|
|
63
|
+
y("onClickCheckbox", t);
|
|
64
|
+
}
|
|
65
|
+
}, D = async (e, t = !1) => {
|
|
55
66
|
var l;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
67
|
+
if (e.expandible) {
|
|
68
|
+
if (!o.isMobileDevice) {
|
|
69
|
+
const a = _.value.map(
|
|
70
|
+
(s) => s === e ? { ...s, visible: !s.visible } : s
|
|
71
|
+
);
|
|
72
|
+
_.value = a;
|
|
73
|
+
}
|
|
74
|
+
y("onItemExpansion", {
|
|
75
|
+
...e,
|
|
76
|
+
visible: o.isMobileDevice ? e.visible : !e.visible,
|
|
77
|
+
isMobileDevice: o.isMobileDevice
|
|
78
|
+
}), t && (await oe(), (l = document.querySelector(".table__group--is-open")) == null || l.scrollIntoView({ behavior: "smooth" }));
|
|
79
|
+
}
|
|
80
|
+
}, Y = (e) => {
|
|
81
|
+
y("selectAll", e);
|
|
82
|
+
}, A = (e) => e.align ? `table__cell--${e.align}` : "table__cell--left", Z = (e, t) => t === "actions" ? !1 : e.status === "BLOCKED" || e.status === "BUSINESS_BLOCK" || e.status === "PT_BLOCKED" ? !0 : !!e.$disabled, V = (e, t, l) => {
|
|
63
83
|
var a, s;
|
|
64
84
|
if (!t) return "---";
|
|
65
85
|
if (e === "date") {
|
|
66
|
-
const
|
|
67
|
-
if (
|
|
86
|
+
const r = (s = (a = k.value.items[l]) == null ? void 0 : a.rawElem) == null ? void 0 : s.operationHour;
|
|
87
|
+
if (r) return `${t} ${r}`;
|
|
68
88
|
}
|
|
69
89
|
return t;
|
|
70
|
-
},
|
|
90
|
+
}, R = (e, t) => {
|
|
71
91
|
if (!t.sortable) return;
|
|
72
92
|
const l = ["", "asc", "desc"], s = (l.indexOf(t.sort || "") + 1) % l.length;
|
|
73
|
-
if (
|
|
74
|
-
|
|
93
|
+
if ($.value.forEach((r) => {
|
|
94
|
+
r.sortable && r.key !== t.key && (r.sort = "");
|
|
75
95
|
}), t.sort = l[s], t.sort === "")
|
|
76
96
|
return y("onHeaderSort", {});
|
|
77
97
|
y("onHeaderSort", {
|
|
78
98
|
sortBy: t.key,
|
|
79
99
|
order: t.sort
|
|
80
100
|
});
|
|
81
|
-
}, I = (e) => {
|
|
82
|
-
const t = {
|
|
83
|
-
name: "filter",
|
|
84
|
-
class: "",
|
|
85
|
-
style: {
|
|
86
|
-
transform: "translateY(6px)"
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
return e.sort === "asc" && (t.class = "sortable_icon--active", t.style.transform = `${t.style.transform} scale(-1)`), e.sort === "desc" && (t.class = "sortable_icon--active"), t;
|
|
90
101
|
}, H = (e = !1) => {
|
|
91
|
-
|
|
92
|
-
var
|
|
102
|
+
const t = k.value.items.map((l, a) => {
|
|
103
|
+
var r;
|
|
104
|
+
const s = (r = _.value[a]) == null ? void 0 : r.visible;
|
|
93
105
|
return {
|
|
94
|
-
...
|
|
95
|
-
visible: e
|
|
106
|
+
...l,
|
|
107
|
+
visible: e && s !== void 0 ? s : !1
|
|
96
108
|
};
|
|
97
109
|
});
|
|
110
|
+
_.value = t;
|
|
98
111
|
}, T = (e = !1) => {
|
|
99
|
-
|
|
112
|
+
P.value = !e, $.value = [
|
|
100
113
|
...k.value.header.map((t) => ("sort" in t || Object.assign(t, { sort: "" }), t))
|
|
101
|
-
], H(e)
|
|
114
|
+
], H(e);
|
|
102
115
|
};
|
|
103
116
|
T();
|
|
104
117
|
const M = (e) => Object.keys(e);
|
|
105
|
-
return
|
|
118
|
+
return le(() => {
|
|
106
119
|
var e;
|
|
107
|
-
T(!0), (e =
|
|
108
|
-
k.value.items[t] &&
|
|
120
|
+
T(!0), (e = o.itemsExpanded) != null && e.length && o.itemsExpanded.forEach((t) => {
|
|
121
|
+
k.value.items[t] && D(k.value.items[t], !0);
|
|
109
122
|
});
|
|
110
|
-
}),
|
|
111
|
-
|
|
123
|
+
}), te(() => o.isMobileDevice, () => {
|
|
124
|
+
_.value = [...k.value.items].map((e) => ({
|
|
112
125
|
...e,
|
|
113
126
|
visible: !1
|
|
114
127
|
}));
|
|
115
|
-
}),
|
|
128
|
+
}), j({
|
|
116
129
|
clearVisibleDetails: H
|
|
117
|
-
}),
|
|
130
|
+
}), se(() => {
|
|
118
131
|
var e;
|
|
119
|
-
|
|
120
|
-
}), (e, t) => (
|
|
121
|
-
class:
|
|
132
|
+
F.value = (e = S == null ? void 0 : S.vnode) == null ? void 0 : e.scopeId;
|
|
133
|
+
}), (e, t) => (n(), c("div", {
|
|
134
|
+
class: u(["table__container", G.value])
|
|
122
135
|
}, [
|
|
123
136
|
i("table", null, [
|
|
124
|
-
e.hideHeaders ?
|
|
137
|
+
e.hideHeaders ? b("", !0) : (n(), c("thead", de, [
|
|
125
138
|
i("tr", null, [
|
|
126
|
-
(
|
|
139
|
+
(n(!0), c(g, null, x($.value, (l, a) => (n(), c("th", {
|
|
127
140
|
key: `header-${a}`,
|
|
128
141
|
"data-header": `data-header-${l.key}`,
|
|
129
|
-
class:
|
|
142
|
+
class: u(["table__cell table__cell--heading body-1", [
|
|
130
143
|
A(l),
|
|
131
144
|
{
|
|
132
145
|
"table__cell--shadow": l.sticky,
|
|
@@ -134,63 +147,63 @@ import './style/tableslotedcomponent.css';const de = { key: 0 }, _e = ["data-hea
|
|
|
134
147
|
"table__cell--sortable": l.sortable
|
|
135
148
|
}
|
|
136
149
|
]]),
|
|
137
|
-
onClick: (s) =>
|
|
150
|
+
onClick: (s) => R(s, l)
|
|
138
151
|
}, [
|
|
139
152
|
h(e.$slots, `header-${l.key}`, { item: l }, () => [
|
|
140
|
-
l.type === "selectAll" ? (
|
|
141
|
-
|
|
153
|
+
l.type === "selectAll" ? (n(), c(g, { key: 0 }, [
|
|
154
|
+
f(E, {
|
|
142
155
|
id: `checkbox_${l.key}`,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
onClick: l.callback
|
|
147
|
-
}, null, 8, be),
|
|
156
|
+
"is-checked": l.allSelected,
|
|
157
|
+
"onUpdate:modelValue": l.callback
|
|
158
|
+
}, null, 8, ["id", "is-checked", "onUpdate:modelValue"]),
|
|
148
159
|
i("label", {
|
|
149
160
|
for: `checkbox_${l.key}`,
|
|
150
161
|
class: "rds-checkbox__label"
|
|
151
|
-
}, null, 8,
|
|
152
|
-
], 64)) : (
|
|
162
|
+
}, null, 8, ue)
|
|
163
|
+
], 64)) : (n(), c("div", be, [
|
|
153
164
|
i("span", {
|
|
154
|
-
style:
|
|
165
|
+
style: ae({
|
|
155
166
|
color: (l == null ? void 0 : l.sort) !== "" ? "#00ADC3" : ""
|
|
156
167
|
}),
|
|
157
168
|
class: "rds-title-02"
|
|
158
|
-
},
|
|
159
|
-
l.sortable ? (
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
169
|
+
}, U(l.text || ""), 5),
|
|
170
|
+
l.sortable ? (n(), c("span", _e, [
|
|
171
|
+
i("span", {
|
|
172
|
+
class: u(["table__sortable-icon--up sortable-icon", `${l.sort === "asc" ? "active" : ""}`])
|
|
173
|
+
}, "▲", 2),
|
|
174
|
+
i("span", {
|
|
175
|
+
class: u(["table__sortable-icon--down sortable-icon", `${l.sort === "desc" ? "active" : ""}`])
|
|
176
|
+
}, "▼", 2)
|
|
177
|
+
])) : b("", !0)
|
|
178
|
+
]))
|
|
165
179
|
], !0)
|
|
166
|
-
], 10,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
id:
|
|
180
|
+
], 10, re))), 128)),
|
|
181
|
+
C(d) && !e.hideSelectAll ? (n(), c("th", ke, [
|
|
182
|
+
f(E, {
|
|
183
|
+
id: `checkbox-all-${B.value}`,
|
|
170
184
|
class: "rds-checkbox table__checkbox",
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
for: "All",
|
|
185
|
+
"is-checked": o.checkedAll,
|
|
186
|
+
"onUpdate:modelValue": Y
|
|
187
|
+
}, null, 8, ["id", "is-checked"]),
|
|
188
|
+
i("label", {
|
|
189
|
+
for: `checkbox-all-${B.value}`,
|
|
177
190
|
class: "rds-checkbox__label rds-checkbox__label--no-text"
|
|
178
|
-
}, null,
|
|
179
|
-
])) :
|
|
191
|
+
}, null, 8, pe)
|
|
192
|
+
])) : b("", !0)
|
|
180
193
|
])
|
|
181
194
|
])),
|
|
182
195
|
i("tbody", {
|
|
183
|
-
class:
|
|
196
|
+
class: u(J.value)
|
|
184
197
|
}, [
|
|
185
|
-
|
|
186
|
-
default:
|
|
187
|
-
e.loading ? (
|
|
188
|
-
|
|
189
|
-
])) :
|
|
198
|
+
f(O, { name: "fade" }, {
|
|
199
|
+
default: N(() => [
|
|
200
|
+
e.loading ? (n(), c("div", fe, [
|
|
201
|
+
f(ne, { name: "loading" })
|
|
202
|
+
])) : b("", !0)
|
|
190
203
|
]),
|
|
191
204
|
_: 1
|
|
192
205
|
}),
|
|
193
|
-
|
|
206
|
+
v.value.length !== 0 ? (n(!0), c(g, { key: 0 }, x(v.value, (l, a) => (n(), c(g, {
|
|
194
207
|
key: `row-${a}}`
|
|
195
208
|
}, [
|
|
196
209
|
i("tr", {
|
|
@@ -198,24 +211,24 @@ import './style/tableslotedcomponent.css';const de = { key: 0 }, _e = ["data-hea
|
|
|
198
211
|
ref: (s) => {
|
|
199
212
|
K.value[a] = s;
|
|
200
213
|
},
|
|
201
|
-
class:
|
|
214
|
+
class: u(["table__group", [
|
|
202
215
|
{ "table__group--odd": a % 2 === 0 },
|
|
203
216
|
{ "table__group--is-open rds-background-grey": l.visible },
|
|
204
217
|
{ "table__group--expandible": l.expandible },
|
|
205
218
|
l.$class || ""
|
|
206
219
|
]]),
|
|
207
|
-
onClick: () =>
|
|
220
|
+
onClick: () => D(l)
|
|
208
221
|
}, [
|
|
209
|
-
(
|
|
210
|
-
key: `column-${
|
|
211
|
-
"column-key":
|
|
222
|
+
(n(!0), c(g, null, x($.value, (s, r) => (n(), c("td", {
|
|
223
|
+
key: `column-${r}`,
|
|
224
|
+
"column-key": r,
|
|
212
225
|
"data-cell": `data-cell-${s.key}`,
|
|
213
|
-
class:
|
|
226
|
+
class: u(["table__cell rds-body-01", [
|
|
214
227
|
A(s),
|
|
215
228
|
{
|
|
216
229
|
"table__cell--shadow": s.sticky,
|
|
217
230
|
"table__cell--no-sticky": !s.sticky,
|
|
218
|
-
"table__cell--disabled":
|
|
231
|
+
"table__cell--disabled": Z(l, s.key)
|
|
219
232
|
},
|
|
220
233
|
l[`$${s.key}_class`] || ""
|
|
221
234
|
]])
|
|
@@ -225,69 +238,65 @@ import './style/tableslotedcomponent.css';const de = { key: 0 }, _e = ["data-hea
|
|
|
225
238
|
item: l
|
|
226
239
|
}, () => [
|
|
227
240
|
i("span", {
|
|
228
|
-
title:
|
|
229
|
-
},
|
|
241
|
+
title: V(s.key, String(l[s.key] || ""), a)
|
|
242
|
+
}, U(V(s.key, String(l[s.key] || ""), a)), 9, ge)
|
|
230
243
|
], !0)
|
|
231
|
-
], 10,
|
|
232
|
-
|
|
244
|
+
], 10, ve))), 128)),
|
|
245
|
+
C(d) ? (n(), c("td", he, [
|
|
233
246
|
h(e.$slots, "td-checkbox", { item: l }, () => [
|
|
234
|
-
|
|
235
|
-
id: `add-${a}-${l[
|
|
236
|
-
ref_for: !0,
|
|
237
|
-
ref: () => {
|
|
238
|
-
U.value[String(l[$(r)] || "")] = !0;
|
|
239
|
-
},
|
|
247
|
+
f(E, {
|
|
248
|
+
id: `add-${a}-${l[C(d)]}`,
|
|
240
249
|
name: "checkbox-item",
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
onClick: (s) => X(l)
|
|
246
|
-
}, null, 8, me),
|
|
250
|
+
"is-checked": W(l) || o.checkedAll,
|
|
251
|
+
disabled: !1,
|
|
252
|
+
"onUpdate:modelValue": (s) => X(l)
|
|
253
|
+
}, null, 8, ["id", "is-checked", "onUpdate:modelValue"]),
|
|
247
254
|
i("label", {
|
|
248
|
-
for: `add-${a}-${l[
|
|
255
|
+
for: `add-${a}-${l[C(d)]}`,
|
|
249
256
|
class: "rds-checkbox__label rds-checkbox__label--no-text"
|
|
250
|
-
}, null, 8,
|
|
257
|
+
}, null, 8, $e)
|
|
251
258
|
], !0)
|
|
252
|
-
])) :
|
|
253
|
-
], 10,
|
|
254
|
-
|
|
259
|
+
])) : b("", !0)
|
|
260
|
+
], 10, ye),
|
|
261
|
+
v.value[a].visible ? (n(), c("tr", {
|
|
255
262
|
key: 0,
|
|
256
|
-
class:
|
|
263
|
+
class: u(["table__group table__group--dropdown", [
|
|
257
264
|
{
|
|
258
265
|
"table__group--odd": a % 2 === 0
|
|
259
266
|
}
|
|
260
267
|
]])
|
|
261
268
|
}, [
|
|
262
269
|
i("td", {
|
|
263
|
-
class:
|
|
270
|
+
class: u(["table__cell table__group--dropdown rds-background-grey", {
|
|
264
271
|
"table__group--dropdown-disabled": l.status !== "ACTIVE",
|
|
265
272
|
"table__cell--table": !l.expandible
|
|
266
273
|
}]),
|
|
267
274
|
colspan: M(l).length
|
|
268
275
|
}, [
|
|
269
276
|
h(e.$slots, "expandible", { item: l }, void 0, !0)
|
|
270
|
-
], 10,
|
|
271
|
-
], 2)) :
|
|
272
|
-
|
|
277
|
+
], 10, me)
|
|
278
|
+
], 2)) : b("", !0),
|
|
279
|
+
v.value[a].visible ? (n(), c("tr", {
|
|
273
280
|
key: 1,
|
|
274
281
|
class: "table__group--spacer",
|
|
275
282
|
colspan: M(l).length
|
|
276
|
-
}, null, 8,
|
|
277
|
-
], 64))), 128)) :
|
|
283
|
+
}, null, 8, Ce)) : b("", !0)
|
|
284
|
+
], 64))), 128)) : b("", !0)
|
|
278
285
|
], 2)
|
|
279
286
|
]),
|
|
280
|
-
|
|
281
|
-
default:
|
|
282
|
-
e.showEmptyState && !e.loading &&
|
|
283
|
-
t[
|
|
284
|
-
|
|
287
|
+
f(O, { name: "fade" }, {
|
|
288
|
+
default: N(() => [
|
|
289
|
+
e.showEmptyState && !e.loading && v.value.length === 0 ? h(e.$slots, "empty", { key: 0 }, () => [
|
|
290
|
+
t[0] || (t[0] = i("div", { class: "table__empty-state" }, [
|
|
291
|
+
i("h3", { class: "rds-title-02" }, " No hay elementos a mostrar. ")
|
|
292
|
+
], -1))
|
|
293
|
+
], !0) : b("", !0)
|
|
285
294
|
]),
|
|
286
295
|
_: 3
|
|
287
296
|
})
|
|
288
297
|
], 2));
|
|
289
298
|
}
|
|
290
|
-
}),
|
|
299
|
+
}), Ve = /* @__PURE__ */ ie(Se, [["__scopeId", "data-v-d17d793d"]]);
|
|
291
300
|
export {
|
|
292
|
-
|
|
301
|
+
Ve as default
|
|
293
302
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as h, toRefs as x, computed as u, openBlock as o, createElementBlock as $, normalizeClass as r, unref as t, createBlock as p, createCommentVNode as d, createTextVNode as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as h, toRefs as x, computed as u, openBlock as o, createElementBlock as $, normalizeClass as r, unref as t, createBlock as p, createCommentVNode as d, createTextVNode as S, toDisplayString as B } from "vue";
|
|
2
|
+
import { R as f } from "./icon-svg-DGp2yHJn.js";
|
|
3
3
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import './style/tag.css';const C = /* @__PURE__ */ h({
|
|
5
5
|
__name: "tag",
|
|
@@ -76,7 +76,7 @@ import './style/tag.css';const C = /* @__PURE__ */ h({
|
|
|
76
76
|
class: r(["rds-e-tag__icon", i.value]),
|
|
77
77
|
"aria-hidden": "true"
|
|
78
78
|
}, null, 8, ["name", "class"])) : d("", !0),
|
|
79
|
-
|
|
79
|
+
S(" " + B(t(_)) + " ", 1),
|
|
80
80
|
t(c) ? (o(), p(f, {
|
|
81
81
|
key: 1,
|
|
82
82
|
name: "arrow_right",
|
|
@@ -85,7 +85,7 @@ import './style/tag.css';const C = /* @__PURE__ */ h({
|
|
|
85
85
|
}, null, 8, ["class"])) : d("", !0)
|
|
86
86
|
], 2));
|
|
87
87
|
}
|
|
88
|
-
}),
|
|
88
|
+
}), D = /* @__PURE__ */ k(C, [["__scopeId", "data-v-e784d437"]]);
|
|
89
89
|
export {
|
|
90
|
-
|
|
90
|
+
D as default
|
|
91
91
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as G, mergeModels as J, useModel as K, toRefs as L, ref as O, computed as o, openBlock as s, createElementBlock as f, normalizeClass as h, createElementVNode as a, withDirectives as Q, unref as e, vModelText as W, renderSlot as y, createBlock as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as G, mergeModels as J, useModel as K, toRefs as L, ref as O, computed as o, openBlock as s, createElementBlock as f, normalizeClass as h, createElementVNode as a, withDirectives as Q, unref as e, vModelText as W, renderSlot as y, createBlock as I, mergeProps as q, toHandlers as T, createCommentVNode as i, createTextVNode as X, toDisplayString as u } from "vue";
|
|
2
|
+
import { R as $ } from "./icon-svg-DGp2yHJn.js";
|
|
3
3
|
import { _ as Y } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import './style/textArea.css';function b(t, _ = !0, d = !0) {
|
|
5
5
|
return _ && !t.trim() ? (console.warn("Advertencia: El valor no puede estar vacío"), !1) : d && !/^[\w\-:]+$/.test(t) ? (console.warn("Advertencia: El valor contiene caracteres inválidos"), !1) : !0;
|
|
@@ -138,23 +138,23 @@ const Z = { class: "rds-e-textarea__container" }, ee = { class: "rds-e-textarea_
|
|
|
138
138
|
setup(t) {
|
|
139
139
|
const _ = t, d = K(t, "modelValue"), {
|
|
140
140
|
label: w,
|
|
141
|
-
id:
|
|
141
|
+
id: S,
|
|
142
142
|
disabled: p,
|
|
143
143
|
maxlength: m,
|
|
144
144
|
minlength: g,
|
|
145
145
|
modelValue: c,
|
|
146
146
|
icon: A,
|
|
147
|
-
rightIcon:
|
|
148
|
-
helper:
|
|
147
|
+
rightIcon: k,
|
|
148
|
+
helper: D,
|
|
149
149
|
error: x,
|
|
150
|
-
helperText:
|
|
150
|
+
helperText: R,
|
|
151
151
|
clearable: V,
|
|
152
|
-
lengthError:
|
|
153
|
-
} = L(_), v = O(!1),
|
|
152
|
+
lengthError: z
|
|
153
|
+
} = L(_), v = O(!1), F = () => {
|
|
154
154
|
v.value = !1;
|
|
155
|
-
},
|
|
155
|
+
}, P = () => {
|
|
156
156
|
v.value = !0;
|
|
157
|
-
}, B = o(() => c.value.length === m.value), E = o(() => c.value.length === 0 ? !1 : c.value.length < g.value), N = o(() =>
|
|
157
|
+
}, B = o(() => c.value.length === m.value), E = o(() => c.value.length === 0 ? !1 : c.value.length < g.value), N = o(() => z.value && (B.value || E.value)), j = o(() => {
|
|
158
158
|
const r = [];
|
|
159
159
|
return c.value && r.push("rds-e-textarea--filled"), x.value && r.push("rds-e-textarea--error"), p.value && r.push("rds-e-textarea--disabled"), N.value && r.push("rds-e-textarea--error"), r.join(" ");
|
|
160
160
|
}), l = o(() => {
|
|
@@ -167,7 +167,7 @@ const Z = { class: "rds-e-textarea__container" }, ee = { class: "rds-e-textarea_
|
|
|
167
167
|
}
|
|
168
168
|
}, n = {
|
|
169
169
|
left: { ...r },
|
|
170
|
-
right: { ...r, name:
|
|
170
|
+
right: { ...r, name: k.value }
|
|
171
171
|
};
|
|
172
172
|
return V.value && (n.right = {
|
|
173
173
|
...r,
|
|
@@ -177,16 +177,16 @@ const Z = { class: "rds-e-textarea__container" }, ee = { class: "rds-e-textarea_
|
|
|
177
177
|
click: () => d.value = ""
|
|
178
178
|
}
|
|
179
179
|
}), n;
|
|
180
|
-
}),
|
|
180
|
+
}), H = o(() => c.value.length);
|
|
181
181
|
return (r, n) => {
|
|
182
|
-
var C,
|
|
182
|
+
var C, M;
|
|
183
183
|
return s(), f("div", {
|
|
184
|
-
class: h(["rds-e-textarea",
|
|
184
|
+
class: h(["rds-e-textarea", j.value])
|
|
185
185
|
}, [
|
|
186
186
|
a("div", Z, [
|
|
187
187
|
a("div", ee, [
|
|
188
188
|
Q(a("textarea", {
|
|
189
|
-
id: (C = e(
|
|
189
|
+
id: (C = e(S)) == null ? void 0 : C.toString(),
|
|
190
190
|
"onUpdate:modelValue": n[0] || (n[0] = (U) => d.value = U),
|
|
191
191
|
type: "text",
|
|
192
192
|
class: h(["rds-e-textarea__input", { "rds-e-textarea__input--active": v.value }]),
|
|
@@ -195,8 +195,8 @@ const Z = { class: "rds-e-textarea__container" }, ee = { class: "rds-e-textarea_
|
|
|
195
195
|
minlength: e(g),
|
|
196
196
|
rows: t.rows,
|
|
197
197
|
disabled: e(p),
|
|
198
|
-
onBlur:
|
|
199
|
-
onFocus:
|
|
198
|
+
onBlur: F,
|
|
199
|
+
onFocus: P
|
|
200
200
|
}, null, 42, te), [
|
|
201
201
|
[W, d.value]
|
|
202
202
|
]),
|
|
@@ -216,14 +216,14 @@ const Z = { class: "rds-e-textarea__container" }, ee = { class: "rds-e-textarea_
|
|
|
216
216
|
])
|
|
217
217
|
], -1)),
|
|
218
218
|
a("label", {
|
|
219
|
-
for: (
|
|
219
|
+
for: (M = e(S)) == null ? void 0 : M.toString(),
|
|
220
220
|
class: h(["rds-e-textarea__label", {
|
|
221
221
|
"rds-e-textarea__label--with-icon": l.value.left.name,
|
|
222
222
|
"rds-e-textarea__label--active": v.value
|
|
223
223
|
}])
|
|
224
224
|
}, [
|
|
225
225
|
y(r.$slots, "left-icon", {}, () => [
|
|
226
|
-
l.value.left.name ? (s(),
|
|
226
|
+
l.value.left.name ? (s(), I($, q({
|
|
227
227
|
key: 0,
|
|
228
228
|
class: ["rds-e-textarea__icon rds-e-textarea__icon--left", { "rds-e-textarea__icon--hidden": v.value }],
|
|
229
229
|
"aria-hidden": "true"
|
|
@@ -237,9 +237,9 @@ const Z = { class: "rds-e-textarea__container" }, ee = { class: "rds-e-textarea_
|
|
|
237
237
|
"rds-e-textarea__counter--clearable": e(V)
|
|
238
238
|
}])
|
|
239
239
|
}, [
|
|
240
|
-
t.counter && !e(
|
|
240
|
+
t.counter && !e(k) ? (s(), f("p", ae, u(H.value) + "/" + u(e(m)), 1)) : i("", !0),
|
|
241
241
|
y(r.$slots, "right-icon", {}, () => [
|
|
242
|
-
l.value.right.name && !l.value.left.name ? (s(),
|
|
242
|
+
l.value.right.name && !l.value.left.name ? (s(), I($, q({
|
|
243
243
|
key: 0,
|
|
244
244
|
class: "rds-e-textarea__icon rds-e-textarea__icon--right",
|
|
245
245
|
"aria-hidden": "true"
|
|
@@ -255,7 +255,7 @@ const Z = { class: "rds-e-textarea__container" }, ee = { class: "rds-e-textarea_
|
|
|
255
255
|
E.value ? (s(), f("li", ne, " Min text length is " + u(e(g)), 1)) : i("", !0),
|
|
256
256
|
a("li", null, [
|
|
257
257
|
y(r.$slots, "helper-text", {}, () => [
|
|
258
|
-
e(
|
|
258
|
+
e(D) || e(x) ? (s(), f("span", se, u(e(R)), 1)) : i("", !0)
|
|
259
259
|
], !0)
|
|
260
260
|
])
|
|
261
261
|
], 2)
|