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