energy-components 2.5.1 → 2.7.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/dragAndDrop.es.js +93 -75
- package/dist/components/dropdown.es.js +414 -272
- package/dist/components/radioButton.es.js +51 -37
- package/dist/components/sidebar.es.js +18 -19
- package/dist/components/sidedrawer.es.js +49 -39
- package/dist/components/style/dragAndDrop.css +1 -1
- package/dist/components/style/dropdown.css +1 -1
- package/dist/components/style/pagination.css +1 -1
- package/dist/components/style/radioButton.css +1 -1
- package/dist/components/style/sidebar.css +1 -1
- package/dist/components/style/sidedrawer.css +1 -1
- package/dist/components/style/table.css +1 -1
- package/dist/components/style/tableRenderer.css +1 -1
- package/dist/components/style/textField.css +1 -1
- package/dist/components/table.es.js +59 -55
- package/dist/components/tableRenderer.es.js +131 -126
- package/dist/components/textField.es.js +84 -60
- package/dist/energy-components.css +1 -1
- package/dist/energy-components.es.js +5151 -4936
- package/dist/energy-components.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/src/components/content/table/table-renderer.vue.d.ts +2 -0
- package/dist/types/src/components/content/table/table.vue.d.ts +9 -0
- package/dist/types/src/components/input/drag-and-drop/drag-and-drop.vue.d.ts +15 -0
- package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +25 -0
- package/dist/types/src/components/input/radio-button/radio-button.vue.d.ts +15 -0
- package/dist/types/src/components/input/text-field/text-field.vue.d.ts +49 -2
- package/dist/types/src/components/layout/sidedrawer/sidedrawer.vue.d.ts +15 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/llms/rdsdrag-and-drop.md +1 -0
- package/llms/rdsdropdown.md +2 -0
- package/llms/rdsradio-button.md +1 -0
- package/llms/rdssidedrawer.md +1 -0
- package/llms/rdstable.md +2 -0
- package/llms/rdstext-field.md +3 -1
- package/package.json +1 -1
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
import { reactive as
|
|
1
|
+
import { reactive as re, ref as j, watch as M, getCurrentInstance as oe, onUnmounted as ae, defineComponent as ie, computed as g, onMounted as ce, nextTick as T, openBlock as o, createElementBlock as a, normalizeClass as y, createElementVNode as d, normalizeStyle as V, Fragment as w, renderList as D, unref as A, withModifiers as W, createCommentVNode as k, renderSlot as K, createVNode as H, toDisplayString as U } from "vue";
|
|
2
2
|
import F from "./checkbox.es.js";
|
|
3
|
-
import
|
|
4
|
-
import { g as
|
|
5
|
-
import { _ as
|
|
6
|
-
import './style/tableRenderer.css';const P = 150,
|
|
3
|
+
import de from "./loader.es.js";
|
|
4
|
+
import { g as ue } from "./getInstance-GhoEcxLF.js";
|
|
5
|
+
import { _ as be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
import './style/tableRenderer.css';const P = 150, ye = 50;
|
|
7
7
|
function X(s, u) {
|
|
8
8
|
if (!s) return u;
|
|
9
9
|
const n = Number.parseFloat(s);
|
|
10
10
|
return Number.isNaN(n) ? u : n;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
const u =
|
|
14
|
-
const
|
|
12
|
+
function fe(s) {
|
|
13
|
+
const u = re({}), n = j(null), h = () => {
|
|
14
|
+
const b = new Set(s.value.map((i) => i.key));
|
|
15
15
|
for (const i of Object.keys(u))
|
|
16
|
-
|
|
16
|
+
b.has(i) || delete u[i];
|
|
17
17
|
for (const i of s.value)
|
|
18
18
|
u[i.key] === void 0 && (u[i.key] = X(i.width, P));
|
|
19
19
|
};
|
|
20
|
-
|
|
21
|
-
let v = 0, p = 0,
|
|
22
|
-
function
|
|
23
|
-
document.removeEventListener("pointermove", x), document.removeEventListener("pointerup",
|
|
20
|
+
h(), M(s, h, { deep: !0 });
|
|
21
|
+
let v = 0, p = 0, C = null;
|
|
22
|
+
function z() {
|
|
23
|
+
document.removeEventListener("pointermove", x), document.removeEventListener("pointerup", $), document.removeEventListener("pointercancel", $), document.body.style.cursor = "", document.body.style.userSelect = "";
|
|
24
24
|
}
|
|
25
|
-
function x(
|
|
25
|
+
function x(b) {
|
|
26
26
|
const i = n.value;
|
|
27
27
|
if (!i) return;
|
|
28
|
-
const f = s.value.find((
|
|
29
|
-
u[i] = Math.max(m, p +
|
|
28
|
+
const f = s.value.find((S) => S.key === i), m = X(f?.minWidth, ye), R = b.clientX - v;
|
|
29
|
+
u[i] = Math.max(m, p + R);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
n.value && (
|
|
31
|
+
function $(b) {
|
|
32
|
+
n.value && (C?.(n.value), n.value = null, z());
|
|
33
33
|
}
|
|
34
|
-
function _(
|
|
34
|
+
function _(b) {
|
|
35
35
|
const i = new Set(s.value.map((f) => f.key));
|
|
36
|
-
for (const [f, m] of Object.entries(
|
|
36
|
+
for (const [f, m] of Object.entries(b))
|
|
37
37
|
i.has(f) && (!Number.isFinite(m) || m <= 0 || (u[f] = m));
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
const
|
|
41
|
-
if (
|
|
42
|
-
n.value =
|
|
39
|
+
function L(b, i, f, m) {
|
|
40
|
+
const R = s.value.find((B) => B.key === b);
|
|
41
|
+
if (!R || R.resizable !== !0) return;
|
|
42
|
+
n.value = b, v = i.clientX, p = m || u[b] || P, C = f, i.currentTarget?.setPointerCapture?.(i.pointerId), document.addEventListener("pointermove", x), document.addEventListener("pointerup", $), document.addEventListener("pointercancel", $), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
n.value && (n.value = null,
|
|
44
|
+
function N() {
|
|
45
|
+
n.value && (n.value = null, z());
|
|
46
46
|
}
|
|
47
|
-
return
|
|
48
|
-
|
|
49
|
-
}), { columnWidths: u, resizingKey: n, startResize:
|
|
47
|
+
return oe() && ae(() => {
|
|
48
|
+
z();
|
|
49
|
+
}), { columnWidths: u, resizingKey: n, startResize: L, stopResize: N, applyMeasuredWidths: _ };
|
|
50
50
|
}
|
|
51
|
-
const
|
|
51
|
+
const me = { key: 0 }, _e = ["aria-sort", "onClick"], ke = ["onPointerdown"], ve = {
|
|
52
52
|
key: 0,
|
|
53
53
|
class: "header-content header-content--center"
|
|
54
|
-
},
|
|
54
|
+
}, pe = ["for"], ge = {
|
|
55
55
|
key: 0,
|
|
56
56
|
class: "rds-e-table-renderer__sortable-icon rds-flex rds-flex-center-center rds-flex-col"
|
|
57
|
-
},
|
|
57
|
+
}, he = {
|
|
58
58
|
key: 0,
|
|
59
59
|
class: "loading-row"
|
|
60
|
-
},
|
|
60
|
+
}, Ce = ["colspan"], $e = { class: "loading-overlay" }, Re = ["onClick"], Se = ["data-label"], we = ["for"], ze = {
|
|
61
61
|
key: 0,
|
|
62
62
|
class: "rds-e-table-renderer__group--dropdown"
|
|
63
|
-
},
|
|
63
|
+
}, xe = ["colspan"], Ae = {
|
|
64
64
|
key: 1,
|
|
65
65
|
class: "rds-e-table-renderer__group--spacer"
|
|
66
|
-
},
|
|
66
|
+
}, Le = ["colspan"], Ee = { key: 2 }, De = ["colspan"], We = { class: "rds-e-table-renderer__empty-state" }, Ke = { class: "rds-title-02" }, Ne = /* @__PURE__ */ ie({
|
|
67
67
|
__name: "table-renderer",
|
|
68
68
|
props: {
|
|
69
69
|
headers: {},
|
|
@@ -78,6 +78,8 @@ const be = { key: 0 }, fe = ["aria-sort", "onClick"], me = ["onPointerdown"], _e
|
|
|
78
78
|
emptyStateText: { default: "No hay elementos a mostrar." },
|
|
79
79
|
selectedKeys: { default: () => [] },
|
|
80
80
|
expandedKeys: { default: () => [] },
|
|
81
|
+
selectAllAriaLabel: {},
|
|
82
|
+
rowAriaLabel: {},
|
|
81
83
|
resizableColumns: { type: Boolean },
|
|
82
84
|
rowClass: {},
|
|
83
85
|
cellClass: {},
|
|
@@ -85,17 +87,17 @@ const be = { key: 0 }, fe = ["aria-sort", "onClick"], me = ["onPointerdown"], _e
|
|
|
85
87
|
},
|
|
86
88
|
emits: ["headerClick", "toggleSelectAll", "toggleRowSelection", "rowClick", "columnResize"],
|
|
87
89
|
setup(s, { emit: u }) {
|
|
88
|
-
const n = s,
|
|
90
|
+
const n = s, h = u, v = ue(), { columnWidths: p, resizingKey: C, startResize: z, stopResize: x, applyMeasuredWidths: $ } = fe(g(() => n.headers)), _ = g(() => !!n.resizableColumns), L = j(null), N = g(() => [
|
|
89
91
|
`rds-e-table-renderer--${n.variant}`,
|
|
90
92
|
{ "rds-e-table-renderer--condensed": n.condensed },
|
|
91
93
|
{ "rds-e-table-renderer--resizable": _.value }
|
|
92
|
-
]),
|
|
94
|
+
]), b = g(() => [
|
|
93
95
|
`rds-e-table-renderer__body--${n.variant}`,
|
|
94
96
|
{ "rds-e-table-renderer__body--condensed": n.condensed }
|
|
95
|
-
]), i =
|
|
97
|
+
]), i = g(() => n.headers.reduce((e, l) => {
|
|
96
98
|
const t = p[l.key];
|
|
97
99
|
return e + (typeof t == "number" ? t : 0);
|
|
98
|
-
}, 0)), f =
|
|
100
|
+
}, 0)), f = g(() => {
|
|
99
101
|
if (_.value)
|
|
100
102
|
return {
|
|
101
103
|
minWidth: "100%",
|
|
@@ -104,22 +106,22 @@ const be = { key: 0 }, fe = ["aria-sort", "onClick"], me = ["onPointerdown"], _e
|
|
|
104
106
|
}), m = (e, l) => {
|
|
105
107
|
const t = e[n.rowKey];
|
|
106
108
|
return t !== void 0 ? t : l;
|
|
107
|
-
},
|
|
109
|
+
}, R = (e) => {
|
|
108
110
|
const l = e[n.rowKey];
|
|
109
111
|
return n.selectedKeys.includes(l);
|
|
110
|
-
},
|
|
112
|
+
}, S = (e) => {
|
|
111
113
|
const l = e[n.rowKey];
|
|
112
114
|
return n.expandedKeys.includes(l);
|
|
113
|
-
},
|
|
115
|
+
}, B = (e) => n.isRowDisabled ? n.isRowDisabled(e) : !1, q = g(() => n.selectAllAriaLabel || "Seleccionar todo"), O = (e, l) => n.rowAriaLabel ? n.rowAriaLabel(e, l) : `Seleccionar fila ${l + 1}`, I = (e) => ({
|
|
114
116
|
[`rds-e-table-renderer__cell--${e.align || "left"}`]: !0,
|
|
115
117
|
"rds-e-table-renderer__cell--sortable": e.sortable,
|
|
116
118
|
"rds-e-table-renderer__cell--shadow": e.sticky,
|
|
117
119
|
"rds-e-table-renderer__cell--no-sticky": !e.sticky,
|
|
118
120
|
"rds-e-table-renderer__cell--right": e.align === "right",
|
|
119
121
|
"rds-e-table-renderer__cell--center": e.align === "center",
|
|
120
|
-
"rds-e-table-renderer__cell--resizing":
|
|
121
|
-
}),
|
|
122
|
-
const e =
|
|
122
|
+
"rds-e-table-renderer__cell--resizing": C.value === e.key
|
|
123
|
+
}), G = (e) => !_.value || e.type === "selection" || e.type === "actions" ? !1 : e.resizable === !0, E = () => {
|
|
124
|
+
const e = L.value;
|
|
123
125
|
if (!e) return;
|
|
124
126
|
const l = e.querySelectorAll("thead th");
|
|
125
127
|
if (!l.length) return;
|
|
@@ -128,194 +130,197 @@ const be = { key: 0 }, fe = ["aria-sort", "onClick"], me = ["onPointerdown"], _e
|
|
|
128
130
|
const c = l[r]?.getBoundingClientRect?.().width || 0;
|
|
129
131
|
c > 0 && (t[n.headers[r].key] = c);
|
|
130
132
|
}
|
|
131
|
-
|
|
132
|
-
},
|
|
133
|
-
|
|
133
|
+
$(t);
|
|
134
|
+
}, J = (e, l) => {
|
|
135
|
+
E();
|
|
134
136
|
const t = p[e];
|
|
135
|
-
|
|
137
|
+
z(e, l, Q, t);
|
|
136
138
|
};
|
|
137
|
-
function
|
|
138
|
-
|
|
139
|
+
function Q(e) {
|
|
140
|
+
h("columnResize", { key: e, width: p[e] }), x();
|
|
139
141
|
}
|
|
140
|
-
const
|
|
142
|
+
const Y = (e) => {
|
|
141
143
|
if (e.sortable)
|
|
142
144
|
return e.sort === "asc" ? "ascending" : e.sort === "desc" ? "descending" : "none";
|
|
143
|
-
},
|
|
145
|
+
}, Z = (e, l) => {
|
|
144
146
|
const t = n.rowClass ? n.rowClass(e, l) : "";
|
|
145
147
|
return [
|
|
146
148
|
{ "rds-e-table-renderer__group--odd": l % 2 === 0 },
|
|
147
|
-
{ "rds-e-table-renderer__group--is-open rds-background-grey":
|
|
149
|
+
{ "rds-e-table-renderer__group--is-open rds-background-grey": S(e) },
|
|
148
150
|
{ "rds-e-table-renderer__group--expandible": !0 },
|
|
149
151
|
t
|
|
150
152
|
];
|
|
151
|
-
},
|
|
153
|
+
}, ee = (e, l, t) => {
|
|
152
154
|
const r = n.cellClass ? n.cellClass(e, l, t) : "";
|
|
153
155
|
return [
|
|
154
156
|
[`rds-e-table-renderer__cell--${l.align || "left"}`],
|
|
155
157
|
{ "rds-e-table-renderer__cell--shadow": l.sticky },
|
|
158
|
+
{ "rds-e-table-renderer__cell--no-sticky": !l.sticky },
|
|
156
159
|
r
|
|
157
160
|
];
|
|
158
|
-
},
|
|
161
|
+
}, te = (e, l, t) => {
|
|
159
162
|
if (l.formatter) return l.formatter(e[l.key], e, t);
|
|
160
163
|
const r = e[l.key];
|
|
161
164
|
return r ?? "---";
|
|
162
|
-
},
|
|
163
|
-
e.sortable &&
|
|
164
|
-
},
|
|
165
|
-
|
|
165
|
+
}, le = (e) => {
|
|
166
|
+
e.sortable && h("headerClick", e);
|
|
167
|
+
}, ne = (e) => {
|
|
168
|
+
h("rowClick", e);
|
|
166
169
|
};
|
|
167
|
-
return
|
|
168
|
-
|
|
169
|
-
|
|
170
|
+
return ce(() => {
|
|
171
|
+
T(() => {
|
|
172
|
+
E();
|
|
170
173
|
});
|
|
171
174
|
}), M(() => n.headers, () => {
|
|
172
|
-
|
|
173
|
-
_.value && (
|
|
175
|
+
T(() => {
|
|
176
|
+
_.value && (C.value || E());
|
|
174
177
|
});
|
|
175
178
|
}, { deep: !0 }), M(_, (e) => {
|
|
176
179
|
if (!e) {
|
|
177
180
|
x();
|
|
178
181
|
return;
|
|
179
182
|
}
|
|
180
|
-
|
|
181
|
-
|
|
183
|
+
T(() => {
|
|
184
|
+
C.value || E();
|
|
182
185
|
});
|
|
183
186
|
}), (e, l) => (o(), a("div", {
|
|
184
|
-
class:
|
|
187
|
+
class: y(["rds-e-table-renderer__container", N.value])
|
|
185
188
|
}, [
|
|
186
189
|
d("table", {
|
|
187
190
|
ref_key: "tableRef",
|
|
188
|
-
ref:
|
|
191
|
+
ref: L,
|
|
189
192
|
style: V(f.value)
|
|
190
193
|
}, [
|
|
191
194
|
d("colgroup", null, [
|
|
192
|
-
(o(!0), a(
|
|
195
|
+
(o(!0), a(w, null, D(s.headers, (t, r) => (o(), a("col", {
|
|
193
196
|
key: `col-${t.key}-${r}`,
|
|
194
|
-
style: V({ width: _.value ? `${
|
|
197
|
+
style: V({ width: _.value ? `${A(p)[t.key]}px` : t.width || "auto" })
|
|
195
198
|
}, null, 4))), 128))
|
|
196
199
|
]),
|
|
197
|
-
s.hideHeaders ? k("", !0) : (o(), a("thead",
|
|
200
|
+
s.hideHeaders ? k("", !0) : (o(), a("thead", me, [
|
|
198
201
|
d("tr", null, [
|
|
199
|
-
(o(!0), a(
|
|
202
|
+
(o(!0), a(w, null, D(s.headers, (t, r) => (o(), a("th", {
|
|
200
203
|
key: `th-${t.key}-${r}`,
|
|
201
|
-
class:
|
|
202
|
-
"aria-sort":
|
|
204
|
+
class: y(["rds-e-table-renderer__cell rds-e-table-renderer__cell--heading rds-body-01", I(t)]),
|
|
205
|
+
"aria-sort": Y(t),
|
|
203
206
|
scope: "col",
|
|
204
|
-
onClick: (c) =>
|
|
207
|
+
onClick: (c) => le(t)
|
|
205
208
|
}, [
|
|
206
|
-
|
|
209
|
+
G(t) ? (o(), a("div", {
|
|
207
210
|
key: 0,
|
|
208
211
|
class: "rds-e-table-renderer__resize-handle",
|
|
209
|
-
onClick: l[0] || (l[0] =
|
|
212
|
+
onClick: l[0] || (l[0] = W(() => {
|
|
210
213
|
}, ["stop"])),
|
|
211
|
-
onPointerdown:
|
|
212
|
-
}, null, 40,
|
|
213
|
-
|
|
214
|
-
t.type === "selection" ? (o(), a(
|
|
215
|
-
s.hideSelectAll ? k("", !0) : (o(), a("div",
|
|
214
|
+
onPointerdown: W((c) => J(t.key, c), ["stop"])
|
|
215
|
+
}, null, 40, ke)) : k("", !0),
|
|
216
|
+
K(e.$slots, `header-${t.key}`, { header: t }, () => [
|
|
217
|
+
t.type === "selection" ? (o(), a(w, { key: 0 }, [
|
|
218
|
+
s.hideSelectAll ? k("", !0) : (o(), a("div", ve, [
|
|
216
219
|
H(F, {
|
|
217
|
-
id: `checkbox-all-${
|
|
220
|
+
id: `checkbox-all-${A(v)}-${t.key}`,
|
|
221
|
+
"accessibility-label": q.value,
|
|
218
222
|
"model-value": t.allSelected,
|
|
219
223
|
"onUpdate:modelValue": l[1] || (l[1] = (c) => e.$emit("toggleSelectAll", c)),
|
|
220
|
-
onClick: l[2] || (l[2] =
|
|
224
|
+
onClick: l[2] || (l[2] = W(() => {
|
|
221
225
|
}, ["stop"]))
|
|
222
|
-
}, null, 8, ["id", "model-value"]),
|
|
226
|
+
}, null, 8, ["id", "accessibility-label", "model-value"]),
|
|
223
227
|
d("label", {
|
|
224
|
-
for: `checkbox-all-${
|
|
228
|
+
for: `checkbox-all-${A(v)}-${t.key}`,
|
|
225
229
|
class: "rds-checkbox__label rds-checkbox__label--no-text"
|
|
226
|
-
}, null, 8,
|
|
230
|
+
}, null, 8, pe)
|
|
227
231
|
]))
|
|
228
232
|
], 64)) : (o(), a("div", {
|
|
229
233
|
key: 1,
|
|
230
|
-
class:
|
|
234
|
+
class: y(["header-content", `header-content--${t.align || "left"}`])
|
|
231
235
|
}, [
|
|
232
236
|
d("span", {
|
|
233
|
-
class:
|
|
237
|
+
class: y(["rds-title-02 header-content__text", { "text-active": !!t.sort }])
|
|
234
238
|
}, U(t.text), 3),
|
|
235
|
-
t.sortable ? (o(), a("span",
|
|
239
|
+
t.sortable ? (o(), a("span", ge, [
|
|
236
240
|
d("span", {
|
|
237
|
-
class:
|
|
241
|
+
class: y(["rds-e-table-renderer__sortable-icon--up sortable-icon", { active: t.sort === "asc" }])
|
|
238
242
|
}, "▲", 2),
|
|
239
243
|
d("span", {
|
|
240
|
-
class:
|
|
244
|
+
class: y(["rds-e-table-renderer__sortable-icon--down sortable-icon", { active: t.sort === "desc" }])
|
|
241
245
|
}, "▼", 2)
|
|
242
246
|
])) : k("", !0)
|
|
243
247
|
], 2))
|
|
244
248
|
], !0)
|
|
245
|
-
], 10,
|
|
249
|
+
], 10, _e))), 128))
|
|
246
250
|
])
|
|
247
251
|
])),
|
|
248
252
|
d("tbody", {
|
|
249
|
-
class: b
|
|
253
|
+
class: y(b.value)
|
|
250
254
|
}, [
|
|
251
|
-
s.loading ? (o(), a("tr",
|
|
255
|
+
s.loading ? (o(), a("tr", he, [
|
|
252
256
|
d("td", {
|
|
253
257
|
colspan: s.headers.length,
|
|
254
258
|
class: "loading-cell"
|
|
255
259
|
}, [
|
|
256
|
-
d("div",
|
|
257
|
-
H(
|
|
260
|
+
d("div", $e, [
|
|
261
|
+
H(de, { size: 20 })
|
|
258
262
|
])
|
|
259
|
-
], 8,
|
|
263
|
+
], 8, Ce)
|
|
260
264
|
])) : k("", !0),
|
|
261
|
-
s.rows.length > 0 ? (o(!0), a(
|
|
265
|
+
s.rows.length > 0 ? (o(!0), a(w, { key: 1 }, D(s.rows, (t, r) => (o(), a(w, {
|
|
262
266
|
key: m(t, r)
|
|
263
267
|
}, [
|
|
264
268
|
d("tr", {
|
|
265
|
-
class:
|
|
266
|
-
onClick: (c) =>
|
|
269
|
+
class: y(["rds-e-table-renderer__group", Z(t, r)]),
|
|
270
|
+
onClick: (c) => ne(t)
|
|
267
271
|
}, [
|
|
268
|
-
(o(!0), a(
|
|
269
|
-
key: `td-${c.key}-${
|
|
270
|
-
class:
|
|
272
|
+
(o(!0), a(w, null, D(s.headers, (c, se) => (o(), a("td", {
|
|
273
|
+
key: `td-${c.key}-${se}`,
|
|
274
|
+
class: y(["rds-e-table-renderer__cell rds-body-01", ee(t, c, r)]),
|
|
271
275
|
"data-label": c.text
|
|
272
276
|
}, [
|
|
273
|
-
|
|
277
|
+
K(e.$slots, `td-${c.key}`, {
|
|
274
278
|
item: t,
|
|
275
279
|
value: t[c.key],
|
|
276
280
|
index: r
|
|
277
281
|
}, () => [
|
|
278
282
|
c.type === "selection" ? (o(), a("div", {
|
|
279
283
|
key: 0,
|
|
280
|
-
class:
|
|
284
|
+
class: y(["cell-content", `cell-content--${c.align || "left"}`])
|
|
281
285
|
}, [
|
|
282
286
|
H(F, {
|
|
283
|
-
id: `chk-${
|
|
284
|
-
"
|
|
285
|
-
|
|
287
|
+
id: `chk-${A(v)}-${r}-${c.key}`,
|
|
288
|
+
"accessibility-label": O(t, r),
|
|
289
|
+
"model-value": R(t),
|
|
290
|
+
disabled: B(t),
|
|
286
291
|
"onUpdate:modelValue": () => e.$emit("toggleRowSelection", t),
|
|
287
|
-
onClick: l[3] || (l[3] =
|
|
292
|
+
onClick: l[3] || (l[3] = W(() => {
|
|
288
293
|
}, ["stop"]))
|
|
289
|
-
}, null, 8, ["id", "model-value", "disabled", "onUpdate:modelValue"]),
|
|
294
|
+
}, null, 8, ["id", "accessibility-label", "model-value", "disabled", "onUpdate:modelValue"]),
|
|
290
295
|
d("label", {
|
|
291
|
-
for: `chk-${
|
|
296
|
+
for: `chk-${A(v)}-${r}-${c.key}`,
|
|
292
297
|
class: "rds-checkbox__label rds-checkbox__label--no-text"
|
|
293
|
-
}, null, 8,
|
|
298
|
+
}, null, 8, we)
|
|
294
299
|
], 2)) : (o(), a("div", {
|
|
295
300
|
key: 1,
|
|
296
|
-
class:
|
|
297
|
-
}, U(
|
|
301
|
+
class: y(["cell-text", `cell-text--${c.align || "left"}`])
|
|
302
|
+
}, U(te(t, c, r)), 3))
|
|
298
303
|
], !0)
|
|
299
|
-
], 10,
|
|
300
|
-
], 10,
|
|
301
|
-
|
|
304
|
+
], 10, Se))), 128))
|
|
305
|
+
], 10, Re),
|
|
306
|
+
S(t) ? (o(), a("tr", ze, [
|
|
302
307
|
d("td", {
|
|
303
308
|
colspan: s.headers.length,
|
|
304
309
|
class: "rds-e-table-renderer__cell rds-e-table-renderer__group--dropdown rds-background-grey"
|
|
305
310
|
}, [
|
|
306
|
-
|
|
307
|
-
], 8,
|
|
311
|
+
K(e.$slots, "expandible", { item: t }, void 0, !0)
|
|
312
|
+
], 8, xe)
|
|
308
313
|
])) : k("", !0),
|
|
309
|
-
!s.condensed &&
|
|
314
|
+
!s.condensed && S(t) ? (o(), a("tr", Ae, [
|
|
310
315
|
d("td", {
|
|
311
316
|
colspan: s.headers.length
|
|
312
|
-
}, null, 8,
|
|
317
|
+
}, null, 8, Le)
|
|
313
318
|
])) : k("", !0)
|
|
314
319
|
], 64))), 128)) : !s.loading && s.showEmptyState ? (o(), a("tr", Ee, [
|
|
315
320
|
d("td", {
|
|
316
321
|
colspan: s.headers.length
|
|
317
322
|
}, [
|
|
318
|
-
|
|
323
|
+
K(e.$slots, "empty", {}, () => [
|
|
319
324
|
d("div", We, [
|
|
320
325
|
d("h3", Ke, U(s.emptyStateText), 1)
|
|
321
326
|
])
|
|
@@ -326,7 +331,7 @@ const be = { key: 0 }, fe = ["aria-sort", "onClick"], me = ["onPointerdown"], _e
|
|
|
326
331
|
], 4)
|
|
327
332
|
], 2));
|
|
328
333
|
}
|
|
329
|
-
}),
|
|
334
|
+
}), Ve = /* @__PURE__ */ be(Ne, [["__scopeId", "data-v-e6dc6c54"]]);
|
|
330
335
|
export {
|
|
331
|
-
|
|
336
|
+
Ve as default
|
|
332
337
|
};
|