@luzmo/lucero 2.5.0 → 2.5.1
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/components/action-button/action-button.d.ts +3 -2
- package/components/action-button/index.cjs +1 -1
- package/components/action-button/index.js +1 -1
- package/components/action-button-B4_uvHiN.cjs +22 -0
- package/components/action-button-DU95RNNi.js +138 -0
- package/components/action-menu/action-menu.d.ts +16 -1
- package/components/action-menu/index.cjs +1 -1
- package/components/action-menu/index.d.ts +1 -0
- package/components/action-menu/index.js +1 -1
- package/components/{action-menu-D1hTsg9A.js → action-menu-B6nNYwlL.js} +40 -22
- package/components/action-menu-C_vyFNJt.cjs +58 -0
- package/components/badge/index.cjs +1 -1
- package/components/badge/index.js +1 -1
- package/components/badge-Bp-1d70q.js +96 -0
- package/components/badge-CNeUkS4b.cjs +23 -0
- package/components/button/index.cjs +1 -1
- package/components/button/index.js +1 -1
- package/components/button-B1V_2tHk.cjs +20 -0
- package/components/button-QXavBh1X.js +126 -0
- package/components/calendar/index.cjs +1 -1
- package/components/calendar/index.js +1 -1
- package/components/{calendar-D1UtHvpY.js → calendar-BNGwCJsG.js} +1 -1
- package/components/{calendar-pQxEWdYC.cjs → calendar-CLGqcox8.cjs} +1 -1
- package/components/date-range-picker/index.cjs +1 -1
- package/components/date-range-picker/index.js +1 -1
- package/components/{date-range-picker-DKVmGpUC.js → date-range-picker-5SDPe2fQ.js} +1 -1
- package/components/{date-range-picker-D149LIGC.cjs → date-range-picker-CLfEEYkE.cjs} +1 -1
- package/components/date-time-picker/index.cjs +1 -1
- package/components/date-time-picker/index.js +1 -1
- package/components/{date-time-picker-CRpvRk9T.cjs → date-time-picker-DXTksnPd.cjs} +1 -1
- package/components/{date-time-picker-6c19YzwF.js → date-time-picker-s3xujamC.js} +1 -1
- package/components/index.cjs +1 -1
- package/components/index.js +21 -20
- package/components/notice/index.cjs +1 -1
- package/components/notice/index.js +1 -1
- package/components/{notice-CsWaqcq3.cjs → notice-CQFyo6OE.cjs} +1 -1
- package/components/{notice-N0-lxEf_.js → notice-CQI5kFRd.js} +1 -1
- package/components/picker/index.cjs +1 -1
- package/components/picker/index.js +1 -1
- package/components/{picker-COeWCv60.cjs → picker-C1tD-4ac.cjs} +1 -1
- package/components/{picker-uKcRswTQ.js → picker-Czkf6auL.js} +1 -1
- package/components/progress-steps/index.cjs +1 -1
- package/components/progress-steps/index.js +1 -1
- package/components/progress-steps/progress-steps.d.ts +0 -5
- package/components/{progress-steps-BvCzsq9Z.js → progress-steps-CXJEaaUg.js} +2 -5
- package/components/{progress-steps-CvdQQwHc.cjs → progress-steps-Dqh53oC1.cjs} +2 -2
- package/components/prompt-box/index.cjs +1 -1
- package/components/prompt-box/index.js +1 -1
- package/components/{prompt-box-Cz_m2wso.js → prompt-box-CA8bsoZP.js} +2 -2
- package/components/{prompt-box-sp9_-Hnx.cjs → prompt-box-DyODaKXV.cjs} +1 -1
- package/components/question-box/index.cjs +1 -1
- package/components/question-box/index.js +1 -1
- package/components/{question-box-Bcm-P-UV.js → question-box-DSwTpxAW.js} +3 -3
- package/components/{question-box-DZnuGMBB.cjs → question-box-cBeVshAq.cjs} +1 -1
- package/components/search/index.cjs +1 -1
- package/components/search/index.js +1 -1
- package/components/{search-DEjLSJ96.js → search-CFTOvmWA.js} +1 -1
- package/components/{search-PxJEuwHt.cjs → search-DJ6KwOam.cjs} +1 -1
- package/components/status-light/index.cjs +1 -1
- package/components/status-light/index.js +1 -1
- package/components/{status-light-DwUnjE3t.js → status-light-B1T3aGJs.js} +1 -1
- package/components/status-light-COApWq-B.cjs +21 -0
- package/components/table/index.cjs +1 -1
- package/components/table/index.js +1 -1
- package/components/{table-B75GjBhD.js → table-BckZkgeh.js} +180 -171
- package/components/table-Bcq2K21l.cjs +180 -0
- package/components/tabs/index.cjs +1 -1
- package/components/tabs/index.js +1 -1
- package/components/{tabs-DxOD4QNt.cjs → tabs-CMU8X4ho.cjs} +1 -1
- package/components/{tabs-BD_ATrBg.js → tabs-D8U2PxcE.js} +1 -1
- package/components/tags/index.cjs +1 -1
- package/components/tags/index.js +1 -1
- package/components/tags-D8F1o4UZ.cjs +47 -0
- package/components/tags-ZzY_q4TH.js +208 -0
- package/components/template-property-DNDi7lQv.js +47 -0
- package/components/template-property-yhcAmPXk.cjs +18 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +2 -1
- package/custom-elements.json +1 -1
- package/package.json +1 -1
- package/standalone/action-button.js +1 -1
- package/standalone/action-menu.js +5 -3
- package/standalone/badge.js +1 -1
- package/standalone/button.js +1 -1
- package/standalone/calendar.js +1 -1
- package/standalone/chunks/action-button-BJGE_BDu.js +6 -0
- package/standalone/chunks/badge-SNXdnyCZ.js +7 -0
- package/standalone/chunks/button-DHan4NJY.js +4 -0
- package/standalone/chunks/{button-Q1n9DH9a.js → button-DTL9dD2r.js} +1 -1
- package/standalone/chunks/{calendar-DcFjY2tw.js → calendar-BOzu003d.js} +1 -1
- package/standalone/chunks/{picker-FCQK0vdE.js → picker-jZI5AjVJ.js} +1 -1
- package/standalone/chunks/{segments-factory-eS38mJRz.js → segments-factory-Da9ojsLC.js} +1 -1
- package/standalone/chunks/template-property-Dn64faHO.js +2 -0
- package/standalone/date-range-picker.js +1 -1
- package/standalone/date-time-picker.js +1 -1
- package/standalone/manifest.json +8 -7
- package/standalone/notice.js +1 -1
- package/standalone/picker.js +1 -1
- package/standalone/progress-steps.js +2 -2
- package/standalone/prompt-box.js +1 -1
- package/standalone/question-box.js +1 -1
- package/standalone/search.js +1 -1
- package/standalone/status-light.js +1 -1
- package/standalone/table.js +27 -27
- package/standalone/tabs.js +1 -1
- package/standalone/tags.js +1 -1
- package/standalone/utils.js +1 -1
- package/utils/index.d.ts +1 -0
- package/utils/template-property.d.ts +13 -0
- package/components/action-button-BRijXjEz.js +0 -138
- package/components/action-button-CX1uYbQp.cjs +0 -22
- package/components/action-menu-BNZWjeDd.cjs +0 -56
- package/components/badge-D2Hjf-Ww.js +0 -96
- package/components/badge-D8pIDEoq.cjs +0 -23
- package/components/button-Bvnidb4x.cjs +0 -20
- package/components/button-DIV_j_U3.js +0 -126
- package/components/status-light-D3hdx8Pd.cjs +0 -21
- package/components/table-CHrAaVU1.cjs +0 -180
- package/components/tags-BIpFgOYy.js +0 -208
- package/components/tags-fLCGajv_.cjs +0 -47
- package/standalone/chunks/action-button-FSsfXYe9.js +0 -6
- package/standalone/chunks/badge-DD-tMgzi.js +0 -7
- package/standalone/chunks/button-Bv3v7VbN.js +0 -4
|
@@ -22,19 +22,20 @@ import { t as r } from "./roving-tabindex-pomAn3z-.js";
|
|
|
22
22
|
import { r as i, t as a } from "./language-resolution-BaKYDD1a.js";
|
|
23
23
|
import { r as o } from "./match-media-C5X2OZiD.js";
|
|
24
24
|
import "./checkbox-CydI9yXG.js";
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
25
|
+
import { n as s } from "./template-property-DNDi7lQv.js";
|
|
26
|
+
import { html as c, nothing as l, unsafeCSS as u } from "lit";
|
|
27
|
+
import { property as d, query as f, state as p } from "lit/decorators.js";
|
|
28
|
+
import { luzmoAngleDown as m, luzmoArrowDown as h, luzmoArrowUp as g, luzmoIcon as _ } from "@luzmo/icons";
|
|
29
|
+
import { ifDefined as v } from "lit/directives/if-defined.js";
|
|
30
|
+
import { classMap as y } from "lit/directives/class-map.js";
|
|
31
|
+
import { styleMap as b } from "lit/directives/style-map.js";
|
|
31
32
|
import { repeat as ee } from "lit/directives/repeat.js";
|
|
32
33
|
import { createTable as te, getCoreRowModel as ne, getSortedRowModel as re } from "@tanstack/table-core";
|
|
33
|
-
import { Virtualizer as ie, elementScroll as
|
|
34
|
+
import { Virtualizer as ie, elementScroll as ae, observeElementOffset as oe, observeElementRect as se } from "@tanstack/virtual-core";
|
|
34
35
|
//#region src/components/table/controllers/table-announcer.ts
|
|
35
|
-
var
|
|
36
|
+
var ce = "data-luzmo-table-announcer", x, S = 0, C = 0, le = () => {
|
|
36
37
|
let e = document.createElement("div");
|
|
37
|
-
return e.setAttribute(
|
|
38
|
+
return e.setAttribute(ce, ""), e.setAttribute("aria-live", "polite"), e.setAttribute("aria-atomic", "true"), Object.assign(e.style, {
|
|
38
39
|
position: "absolute",
|
|
39
40
|
inlineSize: "1px",
|
|
40
41
|
blockSize: "1px",
|
|
@@ -45,13 +46,13 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
45
46
|
clipPath: "inset(50%)",
|
|
46
47
|
whiteSpace: "nowrap"
|
|
47
48
|
}), e;
|
|
48
|
-
},
|
|
49
|
+
}, ue = class {
|
|
49
50
|
constructor(e) {
|
|
50
51
|
e.addController(this);
|
|
51
52
|
}
|
|
52
53
|
announce(e) {
|
|
53
54
|
if (typeof document > "u" || !C) return;
|
|
54
|
-
x ??=
|
|
55
|
+
x ??= le(), x.isConnected || document.body.append(x);
|
|
55
56
|
let t = x;
|
|
56
57
|
t.textContent = "", cancelAnimationFrame(S), S = requestAnimationFrame(() => {
|
|
57
58
|
t.textContent = e;
|
|
@@ -63,25 +64,25 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
63
64
|
hostDisconnected() {
|
|
64
65
|
--C, C === 0 && (cancelAnimationFrame(S), x?.remove(), x = void 0);
|
|
65
66
|
}
|
|
66
|
-
}, w = (e) => typeof e == "number" && Number.isFinite(e) ? e : void 0, T = (e) => `luzmo-table-details-${[...e].map((e) => /^[A-Za-z0-9]$/.test(e) ? e : `_${e.codePointAt(0).toString(16)}_`).join("")}`, E = (e) => w(e.minWidth) ?? (e.resizable ? 48 : 0), D = (e) => w(e.maxWidth) ?? 1e4, O = (e, t) => Math.min(D(t), Math.max(E(t), Math.round(e))),
|
|
67
|
+
}, w = (e) => typeof e == "number" && Number.isFinite(e) ? e : void 0, T = (e) => `luzmo-table-details-${[...e].map((e) => /^[A-Za-z0-9]$/.test(e) ? e : `_${e.codePointAt(0).toString(16)}_`).join("")}`, E = (e) => w(e.minWidth) ?? (e.resizable ? 48 : 0), D = (e) => w(e.maxWidth) ?? 1e4, O = (e, t) => Math.min(D(t), Math.max(E(t), Math.round(e))), de = (e, t) => {
|
|
67
68
|
let n = w(t) ?? w(e.width);
|
|
68
69
|
if (n !== void 0) return `${O(n, e)}px`;
|
|
69
70
|
let r = w(e.minWidth) ?? (e.resizable ? 48 : 0), i = w(e.maxWidth);
|
|
70
71
|
return i === void 0 ? r > 0 ? `minmax(${r}px, 1fr)` : "minmax(0px, 1fr)" : `minmax(${r}px, ${i}px)`;
|
|
71
|
-
},
|
|
72
|
+
}, fe = (e, t, n) => {
|
|
72
73
|
let r = [];
|
|
73
74
|
n.selects && r.push("var(--table-checkbox-cell-inline-size)"), n.expandable && r.push("var(--table-disclosure-cell-inline-size)");
|
|
74
|
-
for (let n of e) r.push(
|
|
75
|
+
for (let n of e) r.push(de(n, w(t[n.id])));
|
|
75
76
|
return r.join(" ");
|
|
76
|
-
},
|
|
77
|
+
}, pe = (e, t) => {
|
|
77
78
|
let n = w(t) ?? w(e.width);
|
|
78
79
|
return n === void 0 ? w(e.minWidth) ?? (e.resizable ? 48 : 0) : O(n, e);
|
|
79
|
-
},
|
|
80
|
+
}, me = (e, t, n) => {
|
|
80
81
|
let r = [];
|
|
81
82
|
n.selects && r.push("var(--table-checkbox-cell-inline-size)"), n.expandable && r.push("var(--table-disclosure-cell-inline-size)");
|
|
82
|
-
let i = e.reduce((e, n) => e +
|
|
83
|
+
let i = e.reduce((e, n) => e + pe(n, w(t[n.id])), 0);
|
|
83
84
|
return r.push(`${i}px`), `calc(${r.join(" + ")})`;
|
|
84
|
-
},
|
|
85
|
+
}, he = (e) => ({
|
|
85
86
|
id: e.id,
|
|
86
87
|
header: typeof e.header == "string" ? e.header : e.id,
|
|
87
88
|
width: w(e.width),
|
|
@@ -89,7 +90,7 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
89
90
|
maxWidth: w(e.maxWidth),
|
|
90
91
|
resizable: e.resizable !== !1,
|
|
91
92
|
lineClamp: w(e.lineClamp)
|
|
92
|
-
}),
|
|
93
|
+
}), ge = (e, t) => {
|
|
93
94
|
let n = e === "PageDown" || e === "PageUp";
|
|
94
95
|
switch (e) {
|
|
95
96
|
case "ArrowRight":
|
|
@@ -112,7 +113,7 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
112
113
|
};
|
|
113
114
|
default: return;
|
|
114
115
|
}
|
|
115
|
-
},
|
|
116
|
+
}, _e = (e, t, n) => t.action === "min" ? E(n) : t.action === "max" ? D(n) : O(e + (t.action === "increase" ? 1 : -1) * t.amount, n), k = {
|
|
116
117
|
selectAll: "Select All",
|
|
117
118
|
selectRow: "Select row {index}",
|
|
118
119
|
sortAscending: "Sorted by {column}, ascending",
|
|
@@ -121,7 +122,7 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
121
122
|
collapseRow: "Collapse {label}",
|
|
122
123
|
resizeColumn: "Resize {column}",
|
|
123
124
|
columnWidth: "{column}, {width} pixels"
|
|
124
|
-
},
|
|
125
|
+
}, ve = (e) => e.rowType === "information" || e._$rowType$ === 1, ye = (e) => e === "asc" ? "ascending" : e === "desc" ? "descending" : "none", be = (e) => e === "asc" ? "desc" : "asc", A = (e = {}, t) => {
|
|
125
126
|
let n = Object.fromEntries(Object.entries(e).filter(([, e]) => typeof e == "string" && e !== "")), r = {
|
|
126
127
|
...k,
|
|
127
128
|
...n
|
|
@@ -131,12 +132,12 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
131
132
|
let n = e;
|
|
132
133
|
for (let [e, r] of Object.entries(t)) n = n.replaceAll(`{${e}}`, r);
|
|
133
134
|
return n;
|
|
134
|
-
},
|
|
135
|
+
}, xe = (e, t) => e.map((e, n) => ({
|
|
135
136
|
item: e,
|
|
136
137
|
value: t ? t(e, n) : String(n),
|
|
137
138
|
index: n,
|
|
138
|
-
information:
|
|
139
|
-
})),
|
|
139
|
+
information: ve(e)
|
|
140
|
+
})), Se = (e, t) => typeof e == "function" ? e(t) : e, Ce = class {
|
|
140
141
|
constructor() {
|
|
141
142
|
this.records = [], this.sorting = [], this.manualSorting = !1, this.rowSelection = {}, this.selectedOrder = [], this.columns = [], this.table = te({
|
|
142
143
|
data: [],
|
|
@@ -150,7 +151,7 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
150
151
|
enableRowSelection: (e) => !!this.selects && !e.original.information,
|
|
151
152
|
enableMultiRowSelection: () => this.selects === "multiple",
|
|
152
153
|
onRowSelectionChange: (e) => {
|
|
153
|
-
this.pendingSelection =
|
|
154
|
+
this.pendingSelection = Se(e, this.rowSelection);
|
|
154
155
|
}
|
|
155
156
|
}), this.compare = (e, t) => typeof e == "number" && typeof t == "number" ? e - t : ((!this.collator || this.collatorLocale !== this.locale) && (this.collatorLocale = this.locale, this.collator = new Intl.Collator(this.locale, {
|
|
156
157
|
numeric: !0,
|
|
@@ -230,11 +231,11 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
230
231
|
}
|
|
231
232
|
}));
|
|
232
233
|
}
|
|
233
|
-
},
|
|
234
|
+
}, we = /* @__PURE__ */ new Set([
|
|
234
235
|
"luzmo-table-cell",
|
|
235
236
|
"luzmo-table-head-cell",
|
|
236
237
|
"luzmo-table-checkbox-cell"
|
|
237
|
-
]), M = (e) => e.find((e) => e instanceof HTMLElement && e.classList.contains("resize-handle")),
|
|
238
|
+
]), M = (e) => e.find((e) => e instanceof HTMLElement && e.classList.contains("resize-handle")), Te = class {
|
|
238
239
|
constructor(e, t) {
|
|
239
240
|
this.handlePointerDown = (e) => {
|
|
240
241
|
if (!this.options.owns(e) || e.button !== 0) return;
|
|
@@ -278,12 +279,12 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
278
279
|
if (e.defaultPrevented || !this.options.owns(e)) return;
|
|
279
280
|
let t = e.composedPath();
|
|
280
281
|
if (!M(t)) return;
|
|
281
|
-
let n =
|
|
282
|
+
let n = ge(e.code, this.options.isLTR()), r = this.cellFromPath(t);
|
|
282
283
|
n && r?.localName === "luzmo-table-head-cell" && (e.preventDefault(), e.stopPropagation(), this.resizeColumn(r, n));
|
|
283
284
|
}
|
|
284
285
|
resizeColumn(e, t) {
|
|
285
286
|
let n = this.options.headCells().indexOf(e), r = e.toLayout(Math.max(n, 0)), i = e.currentWidth || Math.round(e.getBoundingClientRect().width);
|
|
286
|
-
this.setColumnWidth(r,
|
|
287
|
+
this.setColumnWidth(r, _e(i, t, r), !0);
|
|
287
288
|
}
|
|
288
289
|
setColumnWidth(e, t, n) {
|
|
289
290
|
let r = O(t, e), i = {
|
|
@@ -312,9 +313,9 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
312
313
|
return (!this.widthFormatter || this.formatterLanguage !== t) && (this.formatterLanguage = t, this.widthFormatter = new Intl.NumberFormat(t)), this.widthFormatter.format(e);
|
|
313
314
|
}
|
|
314
315
|
cellFromPath(e) {
|
|
315
|
-
return e.find((e) => e instanceof HTMLElement &&
|
|
316
|
+
return e.find((e) => e instanceof HTMLElement && we.has(e.localName));
|
|
316
317
|
}
|
|
317
|
-
},
|
|
318
|
+
}, Ee = "textarea, select, [contenteditable=\"\"], [contenteditable=\"true\"], input:not([type=\"checkbox\"]):not([type=\"radio\"]):not([type=\"button\"]):not([type=\"submit\"]):not([type=\"reset\"])", De = class extends r {
|
|
318
319
|
constructor(e, { rows: t, isLTR: n, ...r }) {
|
|
319
320
|
super(e, r), this.handleFocusout = (e) => {
|
|
320
321
|
let t = e.relatedTarget;
|
|
@@ -324,7 +325,7 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
324
325
|
}, this.handleKeydown = (e) => {
|
|
325
326
|
if (e.defaultPrevented || !this.acceptsEventCode(e.code) || !this.owns(e)) return;
|
|
326
327
|
let t = e.composedPath()[0];
|
|
327
|
-
if (t instanceof HTMLElement && t.matches(
|
|
328
|
+
if (t instanceof HTMLElement && t.matches(Ee)) return;
|
|
328
329
|
let n = this.cellFromPath(e.composedPath());
|
|
329
330
|
if (!n) return;
|
|
330
331
|
let r = this.navigationTarget(n, e);
|
|
@@ -390,7 +391,7 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
390
391
|
}, N = Symbol("table-details-closing"), P = (e) => {
|
|
391
392
|
let t = e.nextElementSibling;
|
|
392
393
|
return t?.localName === "luzmo-table-row-details" ? t : null;
|
|
393
|
-
}, F = (e) => e instanceof HTMLElement,
|
|
394
|
+
}, F = (e) => e instanceof HTMLElement, Oe = class {
|
|
394
395
|
constructor(e, t) {
|
|
395
396
|
this.closingDetails = /* @__PURE__ */ new Set(), this.handleDetailsCollapsed = (e) => {
|
|
396
397
|
if (!this.options.owns(e)) return;
|
|
@@ -468,7 +469,7 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
468
469
|
rows() {
|
|
469
470
|
return this.isDataMode() ? [...this.host.shadowRoot?.querySelectorAll("luzmo-table-row") ?? []] : this.declarativeRows();
|
|
470
471
|
}
|
|
471
|
-
}, I = (e) => e instanceof HTMLElement,
|
|
472
|
+
}, I = (e) => e instanceof HTMLElement, ke = class {
|
|
472
473
|
constructor(e, t) {
|
|
473
474
|
this.handleBodyScroll = (e) => {
|
|
474
475
|
this.options.owns(e) && e.composedPath().find((e) => I(e) && e.localName === "luzmo-table-body") && this.host.requestUpdate();
|
|
@@ -487,7 +488,7 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
487
488
|
return this.isDataMode() ? typeof this.host.renderDetails == "function" : this.declarativeRows().some((e) => e.nextElementSibling?.localName === "luzmo-table-row-details");
|
|
488
489
|
}
|
|
489
490
|
layouts() {
|
|
490
|
-
return this.isDataMode() && !this.slottedHead() ? this.host.columns.map(
|
|
491
|
+
return this.isDataMode() && !this.slottedHead() ? this.host.columns.map(he) : this.headCells().map((e, t) => e.toLayout(t));
|
|
491
492
|
}
|
|
492
493
|
headCells() {
|
|
493
494
|
return [...this.head()?.querySelectorAll(":scope > luzmo-table-head-cell") ?? []];
|
|
@@ -497,7 +498,7 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
497
498
|
selects: !!this.host.selects,
|
|
498
499
|
expandable: this.hasExpansion()
|
|
499
500
|
}, t = this.layouts();
|
|
500
|
-
this.host.style.setProperty("--table-grid-columns",
|
|
501
|
+
this.host.style.setProperty("--table-grid-columns", fe(t, this.host.columnWidths, e) || "none"), this.host.style.setProperty("--table-min-inline-size", me(t, this.host.columnWidths, e));
|
|
501
502
|
}
|
|
502
503
|
syncPresentation() {
|
|
503
504
|
this.syncHead(), this.syncColumns(), this.isDataMode() || this.syncDeclarativeRows();
|
|
@@ -582,9 +583,9 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
582
583
|
rows() {
|
|
583
584
|
return this.isDataMode() ? [...this.host.shadowRoot?.querySelectorAll("luzmo-table-row") ?? []] : this.declarativeRows();
|
|
584
585
|
}
|
|
585
|
-
}, L = Symbol("table-virtual-range-updated"),
|
|
586
|
+
}, L = Symbol("table-virtual-range-updated"), Ae = 40, je = 4, R = (e) => e.getBoundingClientRect().height, Me = class {
|
|
586
587
|
constructor(e, t) {
|
|
587
|
-
this.connected = !1, this.keys = [], this.estimatedSize =
|
|
588
|
+
this.connected = !1, this.keys = [], this.estimatedSize = Ae, this.host = e, this.options = t, e.addController(this);
|
|
588
589
|
}
|
|
589
590
|
get enabled() {
|
|
590
591
|
return !!this.virtualizer;
|
|
@@ -632,11 +633,11 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
632
633
|
getScrollElement: this.options.getScrollElement,
|
|
633
634
|
estimateSize: () => this.estimatedSize,
|
|
634
635
|
getItemKey: (e) => this.keys[e] ?? e,
|
|
635
|
-
overscan:
|
|
636
|
+
overscan: je,
|
|
636
637
|
useAnimationFrameWithResizeObserver: !0,
|
|
637
|
-
scrollToFn:
|
|
638
|
-
observeElementRect:
|
|
639
|
-
observeElementOffset:
|
|
638
|
+
scrollToFn: ae,
|
|
639
|
+
observeElementRect: se,
|
|
640
|
+
observeElementOffset: oe,
|
|
640
641
|
measureElement: (e) => this.options.isRendered(e) && R(e) || this.estimatedSize,
|
|
641
642
|
onChange: (e) => {
|
|
642
643
|
let t = this.reportRange(e);
|
|
@@ -658,11 +659,11 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
658
659
|
last: r
|
|
659
660
|
}), !0);
|
|
660
661
|
}
|
|
661
|
-
},
|
|
662
|
+
}, Ne = ":host{grid-template-columns:var(--table-grid-columns);min-inline-size:var(--table-min-inline-size,0);box-sizing:border-box;display:grid;overflow:hidden;border-block-start:none!important;border-inline:none!important;border-block-end-width:var(--table-row-divider-width)!important;border-block-end-style:solid!important;border-block-end-color:var(--highcontrast-table-row-divider-color,var(--luzmo-table-border-color,var(--table-row-divider-color)))!important}:host([data-last-row]){border-block-end-width:0!important}:host([hidden]){display:none!important}.cell{outline:none;grid-column:1/-1;grid-template-rows:1fr;min-inline-size:0;display:grid;overflow:hidden}:host([data-last-row]) .cell{--table-focus-end-start-radius:var(--table-corner-radius);--table-focus-end-end-radius:var(--table-corner-radius)}.cell:focus-visible{outline:var(--luzmo-indicator-width,2px) solid var(--highcontrast-table-details-focus-indicator-color,var(--luzmo-indicator-color,currentColor));outline-offset:calc(var(--luzmo-indicator-width,2px) * -1);border-start-start-radius:var(--table-focus-start-start-radius,0);border-start-end-radius:var(--table-focus-start-end-radius,0);border-end-end-radius:var(--table-focus-end-end-radius,0);border-end-start-radius:var(--table-focus-end-start-radius,0)}.content{padding-block:var(--table-details-padding-block);padding-inline:var(--table-details-padding-inline);overflow:hidden}:host([opening]) .content,:host([closing]) .content{min-block-size:0}:host([opening]) .cell{animation:table-details-open var(--luzmo-animation-duration) ease-out}:host([closing]) .cell{animation:table-details-close var(--luzmo-animation-duration) ease-in}@keyframes table-details-open{0%{opacity:0;grid-template-rows:0fr}}@keyframes table-details-close{to{opacity:0;grid-template-rows:0fr}}@media (prefers-reduced-motion:reduce){:host([opening]) .cell,:host([closing]) .cell{animation:none}}:host{--table-row-divider-color:var(--luzmo-border-color);--table-row-divider-width:var(--luzmo-border-width);--table-details-padding-block:var(--luzmo-spacing-4);--table-details-padding-inline:var(--luzmo-table-cell-padding-inline,var(--table-cell-padding-inline))}@media (forced-colors:active){:host{--highcontrast-table-row-divider-color:CanvasText;--highcontrast-table-details-focus-indicator-color:Highlight}}";
|
|
662
663
|
//#endregion
|
|
663
664
|
//#region src/components/table/table-styles.ts
|
|
664
665
|
function z(e, t) {
|
|
665
|
-
return [...Array.isArray(e) ? e : e ? [e] : [],
|
|
666
|
+
return [...Array.isArray(e) ? e : e ? [e] : [], u(t)];
|
|
666
667
|
}
|
|
667
668
|
//#endregion
|
|
668
669
|
//#region src/components/table/table-row-details.ts
|
|
@@ -678,7 +679,7 @@ var B = class extends e {
|
|
|
678
679
|
};
|
|
679
680
|
}
|
|
680
681
|
static get styles() {
|
|
681
|
-
return z(super.styles,
|
|
682
|
+
return z(super.styles, Ne);
|
|
682
683
|
}
|
|
683
684
|
disconnectedCallback() {
|
|
684
685
|
window.clearTimeout(this._closeFallback), super.disconnectedCallback();
|
|
@@ -697,7 +698,7 @@ var B = class extends e {
|
|
|
697
698
|
}
|
|
698
699
|
}
|
|
699
700
|
render() {
|
|
700
|
-
return
|
|
701
|
+
return c`
|
|
701
702
|
<div
|
|
702
703
|
class="cell"
|
|
703
704
|
role="gridcell"
|
|
@@ -711,19 +712,19 @@ var B = class extends e {
|
|
|
711
712
|
super.updated(e), e.has("_phase") && (this.toggleAttribute("opening", this._phase === "opening"), this.toggleAttribute("closing", this._phase === "closing"), window.clearTimeout(this._closeFallback), this._phase === "closing" && (this._closeFallback = window.setTimeout(this._finishClosing, 200)));
|
|
712
713
|
}
|
|
713
714
|
};
|
|
714
|
-
t([
|
|
715
|
+
t([d({ reflect: !0 })], B.prototype, "role", void 0), t([d({
|
|
715
716
|
type: Boolean,
|
|
716
717
|
reflect: !0
|
|
717
|
-
})], B.prototype, "open", void 0), t([
|
|
718
|
+
})], B.prototype, "open", void 0), t([p()], B.prototype, "_phase", void 0);
|
|
718
719
|
//#endregion
|
|
719
720
|
//#region src/components/table/table-templates.ts
|
|
720
721
|
var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
721
722
|
let n = t[e.accessorKey ?? e.id];
|
|
722
723
|
return typeof n == "string" || typeof n == "number" ? String(n) : "";
|
|
723
|
-
},
|
|
724
|
+
}, Pe = (e, t, n) => {
|
|
724
725
|
let r = e.map((e) => {
|
|
725
726
|
let r = V(e), i = typeof e.header == "string" ? e.header : e.id;
|
|
726
|
-
return
|
|
727
|
+
return c`
|
|
727
728
|
<luzmo-table-head-cell
|
|
728
729
|
column-id=${e.id}
|
|
729
730
|
?sortable=${!!e.sortable}
|
|
@@ -739,68 +740,68 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
739
740
|
>
|
|
740
741
|
`;
|
|
741
742
|
});
|
|
742
|
-
return
|
|
743
|
+
return c`
|
|
743
744
|
<luzmo-table-head .expandable=${n.expandable}
|
|
744
745
|
>${r}</luzmo-table-head
|
|
745
746
|
>
|
|
746
747
|
`;
|
|
747
|
-
},
|
|
748
|
+
}, Fe = (e, t, n) => {
|
|
748
749
|
let { item: r, index: i } = e;
|
|
749
|
-
return n ? n(r, i) : e.information ?
|
|
750
|
+
return n ? n(r, i) : e.information ? c`<luzmo-table-cell span-all
|
|
750
751
|
>${t[0] ? H(t[0], r) : ""}</luzmo-table-cell
|
|
751
|
-
>` : t.map((e) =>
|
|
752
|
+
>` : t.map((e) => c`
|
|
752
753
|
<luzmo-table-cell .columnLineClamp=${e.lineClamp}
|
|
753
754
|
>${e.cell ? e.cell(r, i) : H(e, r)}</luzmo-table-cell
|
|
754
755
|
>
|
|
755
756
|
`);
|
|
756
|
-
},
|
|
757
|
+
}, Ie = (e, t, { columns: n, renderItem: r, itemLabel: i, selectRowLabel: a }) => i ? i(e.item, e.index) : (!r && n[0] ? H(n[0], e.item) : "") || j(a, { index: String(t + 1) }), U = (e) => c`
|
|
757
758
|
<div
|
|
758
759
|
class="virtual-spacer"
|
|
759
760
|
aria-hidden="true"
|
|
760
|
-
style=${
|
|
761
|
+
style=${b({ blockSize: `${e}px` })}
|
|
761
762
|
></div>
|
|
762
|
-
`,
|
|
763
|
+
`, Le = (e) => {
|
|
763
764
|
let { rows: t, columns: n, renderItem: r, selects: i, rowIndexOffset: a } = e, o = a !== void 0;
|
|
764
|
-
return
|
|
765
|
+
return c`
|
|
765
766
|
<luzmo-table-body>
|
|
766
|
-
${o ? U(e.paddingStart) :
|
|
767
|
-
${ee(t, ({ record: e }) => e.value, ({ record: t, position:
|
|
768
|
-
let u = !!i && !t.information, d = e.expandable && !t.information, f = d && e.isExpanded(t.value), p =
|
|
767
|
+
${o ? U(e.paddingStart) : l}
|
|
768
|
+
${ee(t, ({ record: e }) => e.value, ({ record: t, position: s }) => {
|
|
769
|
+
let u = !!i && !t.information, d = e.expandable && !t.information, f = d && e.isExpanded(t.value), p = s === e.rowCount - 1, m = e.ariaIndexes?.get(t.value), h = m?.row ?? (a === void 0 ? void 0 : s + a), g = c`${c`
|
|
769
770
|
<luzmo-table-row
|
|
770
771
|
value=${t.value}
|
|
771
|
-
data-index=${
|
|
772
|
-
aria-rowindex=${
|
|
772
|
+
data-index=${v(o ? void 0 : s)}
|
|
773
|
+
aria-rowindex=${v(h)}
|
|
773
774
|
?data-last-row=${p}
|
|
774
775
|
.selectable=${u}
|
|
775
776
|
.selected=${u && e.isSelected(t.value)}
|
|
776
777
|
.selectionColumn=${!!i}
|
|
777
778
|
.selectsSingle=${i === "single"}
|
|
778
779
|
.emphasized=${e.emphasized}
|
|
779
|
-
.checkboxLabel=${u ?
|
|
780
|
+
.checkboxLabel=${u ? Ie(t, s, e) : ""}
|
|
780
781
|
.checkboxSize=${e.checkboxSize}
|
|
781
782
|
.expandable=${d}
|
|
782
783
|
.expanded=${f}
|
|
783
784
|
.expansionColumn=${e.expandable && !d}
|
|
784
785
|
.spanAll=${t.information}
|
|
785
|
-
.disclosureLabel=${d ? e.expandLabel(t,
|
|
786
|
+
.disclosureLabel=${d ? e.expandLabel(t, s) : ""}
|
|
786
787
|
.detailsId=${d ? T(t.value) : ""}
|
|
787
|
-
>${
|
|
788
|
+
>${Fe(t, n, r)}</luzmo-table-row
|
|
788
789
|
>
|
|
789
|
-
`}${d ?
|
|
790
|
+
`}${d ? c`
|
|
790
791
|
<luzmo-table-row-details
|
|
791
792
|
id=${T(t.value)}
|
|
792
793
|
.open=${f}
|
|
793
|
-
aria-rowindex=${
|
|
794
|
+
aria-rowindex=${v(m?.details)}
|
|
794
795
|
?data-last-row=${p}
|
|
795
796
|
>${e.renderDetails?.(t.item, t.index)}</luzmo-table-row-details
|
|
796
797
|
>
|
|
797
|
-
` :
|
|
798
|
-
return o ?
|
|
798
|
+
` : l}`;
|
|
799
|
+
return o ? c`<div class="row-group" data-index=${s}>${g}</div>` : g;
|
|
799
800
|
})}
|
|
800
|
-
${o ? U(e.paddingEnd) :
|
|
801
|
+
${o ? U(e.paddingEnd) : l}
|
|
801
802
|
</luzmo-table-body>
|
|
802
803
|
`;
|
|
803
|
-
},
|
|
804
|
+
}, Re = ":host{box-sizing:border-box;font-family:var(--luzmo-font-family);font-size:var(--table-font-size);line-height:var(--luzmo-line-height);color:var(--table-font-color);background-color:var(--luzmo-table-background-color,var(--table-background-color));border-radius:var(--luzmo-table-border-radius,var(--table-border-radius));flex-direction:column;display:flex;position:relative;overflow:hidden;border-width:var(--table-border-width)!important;border-style:solid!important;border-color:var(--highcontrast-table-border-color,var(--luzmo-table-border-color,var(--table-border-color)))!important}slot.data::slotted(luzmo-table-body){display:none}:host{--table-font-size:var(--luzmo-font-size-m);--table-font-color:var(--luzmo-font-color);--table-background-color:var(--luzmo-background-color);--table-border-width:var(--luzmo-border-width);--table-border-color:var(--luzmo-border-color);--table-column-divider-width:0px;--table-column-divider-color:var(--table-border-color);--table-border-radius:var(--luzmo-border-radius);--table-row-min-block-size:calc(var(--luzmo-component-height) + var(--luzmo-spacing-3));--table-row-density-offset:0px;--table-cell-padding-block:var(--luzmo-spacing-2);--table-cell-padding-inline:var(--luzmo-spacing-4);--table-checkbox-cell-inline-size:calc(var(--luzmo-icon-size-m) + var(--luzmo-spacing-4) * 2);--table-disclosure-cell-inline-size:var(--table-checkbox-cell-inline-size);--table-sort-icon-size:var(--luzmo-icon-size-m);--table-row-selected-background-color:var(--luzmo-background-color-highlight);--table-row-selected-hover-background-color:var(--luzmo-background-color-highlight-hover);--table-body-overflow:hidden;--table-corner-radius:max(0px, calc(var(--luzmo-table-border-radius,var(--table-border-radius)) - var(--table-border-width)))}:host([size=s]){--table-font-size:var(--luzmo-font-size-s);--table-row-min-block-size:calc(var(--luzmo-component-height-s) + var(--luzmo-spacing-2));--table-cell-padding-inline:var(--luzmo-spacing-3);--table-checkbox-cell-inline-size:calc(var(--luzmo-icon-size-s) + var(--luzmo-spacing-3) * 2);--table-sort-icon-size:var(--luzmo-icon-size-s)}:host([size=l]){--table-font-size:var(--luzmo-font-size-l);--table-row-min-block-size:calc(var(--luzmo-component-height-l) + var(--luzmo-spacing-3));--table-cell-padding-inline:var(--luzmo-spacing-5);--table-checkbox-cell-inline-size:calc(var(--luzmo-icon-size-l) + var(--luzmo-spacing-5) * 2);--table-sort-icon-size:var(--luzmo-icon-size-l)}:host([size=xl]){--table-font-size:var(--luzmo-font-size-xl);--table-row-min-block-size:calc(var(--luzmo-component-height-xl) + var(--luzmo-spacing-5));--table-cell-padding-inline:var(--luzmo-spacing-5);--table-checkbox-cell-inline-size:calc(var(--luzmo-icon-size-xl) + var(--luzmo-spacing-5) * 2);--table-sort-icon-size:var(--luzmo-icon-size-xl)}:host([density=compact]){--table-row-density-offset:calc(var(--luzmo-spacing-3) * -1);--table-cell-padding-block:var(--luzmo-spacing-1)}:host([density=spacious]){--table-row-density-offset:var(--luzmo-spacing-3);--table-cell-padding-block:var(--luzmo-spacing-3)}:host([emphasized]){--table-row-selected-background-color:rgba(var(--luzmo-primary-rgb), .1);--table-row-selected-hover-background-color:rgba(var(--luzmo-primary-rgb), .16)}:host([quiet]){--table-border-width:0px;--table-background-color:rgba(var(--luzmo-background-color-rgb), 0);--table-border-radius:0px}:host([scroller]),:host([virtualized]){--table-body-overflow:auto}@media (forced-colors:active){:host{--highcontrast-table-border-color:CanvasText;--highcontrast-table-column-divider-color:CanvasText}}", ze = [
|
|
804
805
|
"items",
|
|
805
806
|
"itemValue",
|
|
806
807
|
"selects",
|
|
@@ -814,7 +815,7 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
814
815
|
"_lightDomVersion",
|
|
815
816
|
N,
|
|
816
817
|
i
|
|
817
|
-
],
|
|
818
|
+
], Be = [
|
|
818
819
|
"labels",
|
|
819
820
|
"selectAllLabel",
|
|
820
821
|
"emphasized",
|
|
@@ -823,7 +824,7 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
823
824
|
"luzmo-table-cell",
|
|
824
825
|
"luzmo-table-head-cell",
|
|
825
826
|
"luzmo-table-checkbox-cell"
|
|
826
|
-
]),
|
|
827
|
+
]), Ve = [
|
|
827
828
|
"a[href]",
|
|
828
829
|
"button",
|
|
829
830
|
"input",
|
|
@@ -838,7 +839,7 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
838
839
|
"[role=\"checkbox\"]",
|
|
839
840
|
"[role=\"switch\"]",
|
|
840
841
|
"[role=\"menuitem\"]"
|
|
841
|
-
].join(","),
|
|
842
|
+
].join(","), He = "textarea, select, [contenteditable=\"\"], [contenteditable=\"true\"], input:not([type=\"checkbox\"]):not([type=\"radio\"]):not([type=\"button\"]):not([type=\"submit\"]):not([type=\"reset\"])", Ue = [
|
|
842
843
|
"columns",
|
|
843
844
|
"columnWidths",
|
|
844
845
|
"selects",
|
|
@@ -847,13 +848,13 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
847
848
|
"_lightDomVersion"
|
|
848
849
|
], G = (e) => e instanceof HTMLElement, K = class extends n(e) {
|
|
849
850
|
static get styles() {
|
|
850
|
-
return z(super.styles,
|
|
851
|
+
return z(super.styles, Re);
|
|
851
852
|
}
|
|
852
853
|
constructor() {
|
|
853
|
-
super(), this.role = "grid", this.emphasized = !1, this.quiet = !1, this.scroller = !1, this.selected = [], this.expanded = [], this.columnWidths = {}, this.columns = [], this.virtualized = !1, this.labels = {}, this._clientSort = !0, this._mode = "declarative", this._rows = [], this._rowKeys = [], this._warnedSlottedRows = !1, this.model = new
|
|
854
|
+
super(), this.role = "grid", this.emphasized = !1, this.quiet = !1, this.scroller = !1, this.selected = [], this.expanded = [], this.columnWidths = {}, this.columns = [], this.virtualized = !1, this.labels = {}, this._clientSort = !0, this._mode = "declarative", this._rows = [], this._rowKeys = [], this._warnedSlottedRows = !1, this.model = new Ce(), this.language = new a(this), this.announcer = new ue(this), this.layout = new ke(this, {
|
|
854
855
|
model: this.model,
|
|
855
856
|
owns: (e) => this._owns(e)
|
|
856
|
-
}), this.resize = new
|
|
857
|
+
}), this.resize = new Te(this, {
|
|
857
858
|
owns: (e) => this._owns(e),
|
|
858
859
|
isLTR: () => this.isLTR,
|
|
859
860
|
language: () => this.language.language,
|
|
@@ -864,7 +865,7 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
864
865
|
announce: (e) => {
|
|
865
866
|
this.announcer.announce(e);
|
|
866
867
|
}
|
|
867
|
-
}), this.expansion = new
|
|
868
|
+
}), this.expansion = new Oe(this, {
|
|
868
869
|
owns: (e) => this._owns(e),
|
|
869
870
|
focusDisclosure: (e) => {
|
|
870
871
|
this._activeCell = e, this.navigation.focusElement(e);
|
|
@@ -873,13 +874,13 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
873
874
|
this._lightDomVersion += 1;
|
|
874
875
|
}), this.directionManaged = /* @__PURE__ */ new Set(), this.directionObserver = new MutationObserver(() => {
|
|
875
876
|
for (let e of this.directionManaged) this._syncDirection(e);
|
|
876
|
-
}), this.navigation = new
|
|
877
|
+
}), this.navigation = new De(this, {
|
|
877
878
|
direction: "grid",
|
|
878
879
|
elements: () => this._gridRows().flat(),
|
|
879
880
|
rows: () => this._gridRows(),
|
|
880
881
|
isLTR: () => this.isLTR,
|
|
881
882
|
focusInIndex: (e) => this._gridEntryIndex(e)
|
|
882
|
-
}), this.virtualizer = new
|
|
883
|
+
}), this.virtualizer = new Me(this, {
|
|
883
884
|
getScrollElement: () => this.shadowRoot?.querySelector("luzmo-table-body") ?? null,
|
|
884
885
|
getRowElements: () => this.virtualizer.enabled ? [...this.shadowRoot?.querySelectorAll(".row-group") ?? []] : this._rowElements(),
|
|
885
886
|
isRendered: (e) => !!e.querySelector("luzmo-table-row")?.hasUpdated,
|
|
@@ -907,7 +908,7 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
907
908
|
}
|
|
908
909
|
if (!r) return;
|
|
909
910
|
let i = t.indexOf(r);
|
|
910
|
-
if (!t.slice(0, i).some((e) => G(e) && (e.localName === "luzmo-table-checkbox-cell" || e.localName === "luzmo-table-disclosure-cell" || e.matches(
|
|
911
|
+
if (!t.slice(0, i).some((e) => G(e) && (e.localName === "luzmo-table-checkbox-cell" || e.localName === "luzmo-table-disclosure-cell" || e.matches(Ve)))) {
|
|
911
912
|
if (this.selects) {
|
|
912
913
|
this._toggleRow(r);
|
|
913
914
|
return;
|
|
@@ -921,7 +922,7 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
921
922
|
}, this.handleKeydown = (e) => {
|
|
922
923
|
if (e.defaultPrevented || !this._owns(e)) return;
|
|
923
924
|
let t = e.composedPath(), n = this._cellFromPath(t), r = this._gridElementFromPath(t), i = t[0], a = i === r;
|
|
924
|
-
if (!a && G(i) && i.matches(
|
|
925
|
+
if (!a && G(i) && i.matches(He)) return;
|
|
925
926
|
if (e.code === "Escape") {
|
|
926
927
|
this.expansion.collapseFromPath(t);
|
|
927
928
|
return;
|
|
@@ -1010,15 +1011,15 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
1010
1011
|
let t = e;
|
|
1011
1012
|
e.has("selects") && this.selects !== "single" && this.selects !== "multiple" && (this.selects = void 0);
|
|
1012
1013
|
let n = Array.isArray(this.items) ? "data" : "declarative", r = n !== this._mode;
|
|
1013
|
-
if (r && (this._mode = n, this._sort = void 0, this._clientSort = !0, this._activeCell = void 0, this._warnedSlottedRows = !1, this.hasUpdated && !e.has("selected") && (this.selected = []), this.hasUpdated && !e.has("expanded") && (this.expanded = []), this.expansion.clear()), this._isDataMode && !this._sort && (this._sort = this._initialSort()), this.virtualizer.enabled = this._isDataMode && this.virtualized, (!this.hasUpdated || r ||
|
|
1014
|
+
if (r && (this._mode = n, this._sort = void 0, this._clientSort = !0, this._activeCell = void 0, this._warnedSlottedRows = !1, this.hasUpdated && !e.has("selected") && (this.selected = []), this.hasUpdated && !e.has("expanded") && (this.expanded = []), this.expansion.clear()), this._isDataMode && !this._sort && (this._sort = this._initialSort()), this.virtualizer.enabled = this._isDataMode && this.virtualized, (!this.hasUpdated || r || Ue.some((e) => t.has(e))) && this.layout.applyGridMetrics(), this._modelSynced = !this.hasUpdated || r || ze.some((e) => t.has(e)), !this._modelSynced) return;
|
|
1014
1015
|
this.model.selects = this.selects, this.model.locale = this.language.language, this.model.setRecords(this._createRecords()), this.model.setSelected(this.selected), this.model.setSorting(this._isDataMode ? this._sort : void 0, !this._clientSort);
|
|
1015
1016
|
let i = this.model.rows;
|
|
1016
1017
|
(i.length !== this._rows.length || i.some((e, t) => e.value !== this._rows[t]?.value)) && (this._rowKeys = i.map((e) => e.value)), this._rows = i;
|
|
1017
1018
|
}
|
|
1018
1019
|
render() {
|
|
1019
|
-
return
|
|
1020
|
+
return c`
|
|
1020
1021
|
<slot class=${this._mode}></slot>
|
|
1021
|
-
${this._isDataMode ? this._renderData() :
|
|
1022
|
+
${this._isDataMode ? this._renderData() : l}
|
|
1022
1023
|
`;
|
|
1023
1024
|
}
|
|
1024
1025
|
updated(e) {
|
|
@@ -1029,7 +1030,7 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
1029
1030
|
this.setAttribute("aria-rowcount", String(this._rows.length + e + +!!this._head()));
|
|
1030
1031
|
} else this.removeAttribute("aria-rowcount");
|
|
1031
1032
|
let n = e;
|
|
1032
|
-
(t ||
|
|
1033
|
+
(t || Be.some((e) => n.has(e))) && (this.layout.syncPresentation(), this._isDataMode && this._warnSlottedRows()), (t || n.has("columnWidths") || n.has("virtualized") || n.has("renderItem") || n.has(L)) && this._refreshNavigation();
|
|
1033
1034
|
}
|
|
1034
1035
|
_renderData() {
|
|
1035
1036
|
let e = A(this.labels, this.selectAllLabel), t = this._slottedHead(), n = !!t || this.columns.length > 0, r = this.virtualizer.enabled ? this.virtualizer.sync(this._rowKeys) : void 0, i = r ? r.filter((e) => this._rows[e.index]).map((e) => ({
|
|
@@ -1039,12 +1040,12 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
1039
1040
|
record: e,
|
|
1040
1041
|
position: t
|
|
1041
1042
|
})), a = r?.[0], o = r?.at(-1);
|
|
1042
|
-
return
|
|
1043
|
-
${t || this.columns.length === 0 ?
|
|
1043
|
+
return c`
|
|
1044
|
+
${t || this.columns.length === 0 ? l : Pe(this.columns, this._sort, {
|
|
1044
1045
|
expandable: this.layout.hasExpansion(),
|
|
1045
1046
|
resizeLabel: (t) => j(e.resizeColumn, { column: t })
|
|
1046
1047
|
})}
|
|
1047
|
-
${
|
|
1048
|
+
${Le({
|
|
1048
1049
|
rows: i,
|
|
1049
1050
|
rowCount: this._rows.length,
|
|
1050
1051
|
columns: this.columns,
|
|
@@ -1103,7 +1104,7 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
1103
1104
|
};
|
|
1104
1105
|
}
|
|
1105
1106
|
_createRecords() {
|
|
1106
|
-
return this._isDataMode ?
|
|
1107
|
+
return this._isDataMode ? xe(this.items ?? [], this.itemValue) : this._declarativeRows().map((e, t) => ({
|
|
1107
1108
|
item: {},
|
|
1108
1109
|
value: e.value || String(t),
|
|
1109
1110
|
index: t,
|
|
@@ -1238,27 +1239,35 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
1238
1239
|
return M(e) ?? e.find((e) => G(e) && (e.localName === "luzmo-table-disclosure-cell" || e.classList.contains("cell") && e.getAttribute("role") === "gridcell")) ?? this._cellFromPath(e);
|
|
1239
1240
|
}
|
|
1240
1241
|
};
|
|
1241
|
-
t([
|
|
1242
|
+
t([d({ reflect: !0 })], K.prototype, "role", void 0), t([d({ reflect: !0 })], K.prototype, "density", void 0), t([d({
|
|
1242
1243
|
type: Boolean,
|
|
1243
1244
|
reflect: !0
|
|
1244
|
-
})], K.prototype, "emphasized", void 0), t([
|
|
1245
|
+
})], K.prototype, "emphasized", void 0), t([d({
|
|
1245
1246
|
type: Boolean,
|
|
1246
1247
|
reflect: !0
|
|
1247
|
-
})], K.prototype, "quiet", void 0), t([
|
|
1248
|
+
})], K.prototype, "quiet", void 0), t([d({
|
|
1248
1249
|
type: Boolean,
|
|
1249
1250
|
reflect: !0
|
|
1250
|
-
})], K.prototype, "scroller", void 0), t([
|
|
1251
|
+
})], K.prototype, "scroller", void 0), t([d({ reflect: !0 })], K.prototype, "selects", void 0), t([d({ attribute: !1 })], K.prototype, "selected", void 0), t([d({
|
|
1251
1252
|
reflect: !0,
|
|
1252
1253
|
attribute: "select-all-label"
|
|
1253
|
-
})], K.prototype, "selectAllLabel", void 0), t([
|
|
1254
|
+
})], K.prototype, "selectAllLabel", void 0), t([d({ attribute: !1 })], K.prototype, "items", void 0), t([d({ attribute: !1 })], K.prototype, "itemValue", void 0), t([d({ attribute: !1 })], K.prototype, "itemLabel", void 0), t([s({
|
|
1255
|
+
slot: "row",
|
|
1256
|
+
context: ["item", "index"],
|
|
1257
|
+
implicit: "item"
|
|
1258
|
+
})], K.prototype, "renderItem", void 0), t([d({ attribute: !1 })], K.prototype, "expanded", void 0), t([s({
|
|
1259
|
+
slot: "details",
|
|
1260
|
+
context: ["item", "index"],
|
|
1261
|
+
implicit: "item"
|
|
1262
|
+
})], K.prototype, "renderDetails", void 0), t([d({ attribute: !1 })], K.prototype, "columnWidths", void 0), t([d({ attribute: !1 })], K.prototype, "columns", void 0), t([d({
|
|
1254
1263
|
type: Boolean,
|
|
1255
1264
|
reflect: !0
|
|
1256
|
-
})], K.prototype, "virtualized", void 0), t([
|
|
1265
|
+
})], K.prototype, "virtualized", void 0), t([d({ attribute: !1 })], K.prototype, "labels", void 0), t([p()], K.prototype, "_sort", void 0), t([p()], K.prototype, "_clientSort", void 0), t([p()], K.prototype, "_lightDomVersion", void 0);
|
|
1257
1266
|
//#endregion
|
|
1258
1267
|
//#region src/components/table/table-body.module.scss?inline
|
|
1259
|
-
var
|
|
1268
|
+
var We = ":host{box-sizing:border-box;min-block-size:0;min-inline-size:0;overflow-x:auto;overflow-y:var(--table-body-overflow,visible);overflow-anchor:none;outline:none;flex:auto;display:block}:host::-webkit-scrollbar{width:var(--luzmo-table-scrollbar-width,var(--table-body-scrollbar-width));height:var(--luzmo-table-scrollbar-width,var(--table-body-scrollbar-width))}:host::-webkit-scrollbar-track{background:var(--luzmo-table-scrollbar-track-background,var(--table-body-scrollbar-track-background));border-radius:var(--luzmo-table-scrollbar-track-border-radius,var(--table-body-scrollbar-track-border-radius))}:host::-webkit-scrollbar-thumb{background:var(--luzmo-table-scrollbar-thumb-background,var(--table-body-scrollbar-thumb-background));border-radius:var(--luzmo-table-scrollbar-thumb-border-radius,var(--table-body-scrollbar-thumb-border-radius))}:host::-webkit-scrollbar-thumb:hover{background:var(--luzmo-table-scrollbar-thumb-hover-background,var(--table-body-scrollbar-thumb-hover-background))}:host{scrollbar-width:var(--luzmo-scrollbar-width,thin);scrollbar-color:var(--luzmo-table-scrollbar-thumb-background,var(--table-body-scrollbar-thumb-background)) var(--luzmo-table-scrollbar-track-background,var(--table-body-scrollbar-track-background))}::slotted(.row-group),::slotted(.virtual-spacer){min-inline-size:var(--table-min-inline-size,0);overflow-anchor:none;display:flow-root}:host(:focus-visible){outline:var(--table-body-focus-indicator-width) solid var(--highcontrast-table-body-focus-indicator-color,var(--table-body-focus-indicator-color));outline-offset:calc(var(--table-body-focus-indicator-width) * -1);border-end-end-radius:var(--table-corner-radius,0);border-end-start-radius:var(--table-corner-radius,0)}:host{--table-body-scrollbar-width:var(--luzmo-scrollbar-size);--table-body-scrollbar-track-background:var(--luzmo-scrollbar-track-background);--table-body-scrollbar-track-border-radius:var(--luzmo-scrollbar-track-border-radius);--table-body-scrollbar-thumb-background:var(--luzmo-scrollbar-thumb-background);--table-body-scrollbar-thumb-border-radius:var(--luzmo-scrollbar-thumb-border-radius);--table-body-scrollbar-thumb-hover-background:var(--luzmo-scrollbar-thumb-hover-background);--table-body-focus-indicator-width:calc(var(--luzmo-indicator-width) * 2);--table-body-focus-indicator-color:var(--luzmo-indicator-color)}@media (forced-colors:active){:host{--highcontrast-table-body-focus-indicator-color:Highlight}}", q = class extends e {
|
|
1260
1269
|
static get styles() {
|
|
1261
|
-
return z(super.styles,
|
|
1270
|
+
return z(super.styles, We);
|
|
1262
1271
|
}
|
|
1263
1272
|
constructor() {
|
|
1264
1273
|
super(), this.role = "rowgroup", this._handleScroll = () => {
|
|
@@ -1275,54 +1284,54 @@ var Ue = ":host{box-sizing:border-box;min-block-size:0;min-inline-size:0;overflo
|
|
|
1275
1284
|
this.resizeObserver?.disconnect(), this.mutationObserver?.disconnect(), super.disconnectedCallback();
|
|
1276
1285
|
}
|
|
1277
1286
|
render() {
|
|
1278
|
-
return
|
|
1287
|
+
return c`<slot @slotchange=${this._syncTabStop}></slot>`;
|
|
1279
1288
|
}
|
|
1280
1289
|
_syncTabStop() {
|
|
1281
1290
|
this.scrollHeight > this.clientHeight || this.scrollWidth > this.clientWidth ? this.setAttribute("tabindex", "0") : this.removeAttribute("tabindex");
|
|
1282
1291
|
}
|
|
1283
1292
|
};
|
|
1284
|
-
t([
|
|
1293
|
+
t([d({ reflect: !0 })], q.prototype, "role", void 0);
|
|
1285
1294
|
//#endregion
|
|
1286
1295
|
//#region src/components/table/table-cell.module.scss?inline
|
|
1287
|
-
var
|
|
1296
|
+
var Ge = ":host{box-sizing:border-box;min-inline-size:0;padding-block:var(--table-cell-padding-block);padding-inline:var(--luzmo-table-cell-padding-inline,var(--table-cell-padding-inline));outline:none;align-self:stretch;align-items:center;display:flex;border-block:none!important;border-inline-start:none!important;border-inline-end-width:var(--luzmo-table-column-divider-width,var(--table-column-divider-width))!important;border-inline-end-style:solid!important;border-inline-end-color:var(--highcontrast-table-column-divider-color,var(--luzmo-table-column-divider-color,var(--table-column-divider-color)))!important}:host([span-all]){grid-column:1/-1;border-inline-end-width:0!important}:host(:last-of-type){border-inline-end-width:0!important}.content{overflow-wrap:anywhere;min-inline-size:0;overflow:hidden}.content.clamped{-webkit-line-clamp:var(--table-cell-line-clamp);line-clamp:var(--table-cell-line-clamp);-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:host(:focus-visible){outline:var(--luzmo-indicator-width,2px) solid var(--highcontrast-table-cell-focus-indicator-color,var(--luzmo-indicator-color,currentColor));outline-offset:calc(var(--luzmo-indicator-width,2px) * -1);border-start-start-radius:var(--table-focus-start-start-radius,0);border-start-end-radius:var(--table-focus-start-end-radius,0);border-end-end-radius:var(--table-focus-end-end-radius,0);border-end-start-radius:var(--table-focus-end-start-radius,0)}:host{--table-cell-focus-indicator-width:var(--luzmo-indicator-width);--table-cell-focus-indicator-color:var(--luzmo-indicator-color)}@media (forced-colors:active){:host{--highcontrast-table-cell-focus-indicator-color:Highlight}}", J = class extends e {
|
|
1288
1297
|
constructor(...e) {
|
|
1289
1298
|
super(...e), this.role = "gridcell", this.spanAll = !1;
|
|
1290
1299
|
}
|
|
1291
1300
|
static get styles() {
|
|
1292
|
-
return z(super.styles,
|
|
1301
|
+
return z(super.styles, Ge);
|
|
1293
1302
|
}
|
|
1294
1303
|
willUpdate(e) {
|
|
1295
1304
|
super.willUpdate(e), e.has("lineClamp") && !w(this.lineClamp) && (this.lineClamp = void 0);
|
|
1296
1305
|
}
|
|
1297
1306
|
render() {
|
|
1298
1307
|
let e = w(this.lineClamp) ?? w(this.columnLineClamp);
|
|
1299
|
-
return
|
|
1308
|
+
return c`
|
|
1300
1309
|
<div
|
|
1301
|
-
class=${
|
|
1310
|
+
class=${y({
|
|
1302
1311
|
content: !0,
|
|
1303
1312
|
clamped: e !== void 0
|
|
1304
1313
|
})}
|
|
1305
|
-
style=${
|
|
1314
|
+
style=${b(e ? { "--table-cell-line-clamp": String(e) } : {})}
|
|
1306
1315
|
>
|
|
1307
1316
|
<slot></slot>
|
|
1308
1317
|
</div>
|
|
1309
1318
|
`;
|
|
1310
1319
|
}
|
|
1311
1320
|
};
|
|
1312
|
-
t([
|
|
1321
|
+
t([d({ reflect: !0 })], J.prototype, "role", void 0), t([d({
|
|
1313
1322
|
type: Number,
|
|
1314
1323
|
reflect: !0,
|
|
1315
1324
|
attribute: "line-clamp"
|
|
1316
|
-
})], J.prototype, "lineClamp", void 0), t([
|
|
1325
|
+
})], J.prototype, "lineClamp", void 0), t([d({
|
|
1317
1326
|
type: Boolean,
|
|
1318
1327
|
reflect: !0,
|
|
1319
1328
|
attribute: "span-all"
|
|
1320
|
-
})], J.prototype, "spanAll", void 0), t([
|
|
1329
|
+
})], J.prototype, "spanAll", void 0), t([p()], J.prototype, "columnLineClamp", void 0);
|
|
1321
1330
|
//#endregion
|
|
1322
1331
|
//#region src/components/table/table-checkbox-cell.module.scss?inline
|
|
1323
|
-
var
|
|
1332
|
+
var Ke = ":host{flex:0 0 var(--table-checkbox-cell-inline-size);box-sizing:border-box;padding-block:var(--table-cell-padding-block);outline:none;justify-content:center;align-self:stretch;align-items:center;display:flex;border-block:none!important;border-inline-start:none!important;border-inline-end-width:var(--luzmo-table-column-divider-width,var(--table-column-divider-width))!important;border-inline-end-style:solid!important;border-inline-end-color:var(--highcontrast-table-column-divider-color,var(--luzmo-table-column-divider-color,var(--table-column-divider-color)))!important}:host(:focus-visible){outline:var(--luzmo-indicator-width,2px) solid var(--highcontrast-table-checkbox-cell-focus-indicator-color,var(--luzmo-indicator-color,currentColor));outline-offset:calc(var(--luzmo-indicator-width,2px) * -1);border-start-start-radius:var(--table-focus-start-start-radius,0);border-start-end-radius:var(--table-focus-start-end-radius,0);border-end-end-radius:var(--table-focus-end-end-radius,0);border-end-start-radius:var(--table-focus-end-start-radius,0)}.checkbox{margin:0}.label{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}:host{--table-checkbox-cell-focus-indicator-width:var(--luzmo-indicator-width);--table-checkbox-cell-focus-indicator-color:var(--luzmo-indicator-color)}@media (forced-colors:active){:host{--highcontrast-table-checkbox-cell-focus-indicator-color:Highlight}}", Y = class extends e {
|
|
1324
1333
|
static get styles() {
|
|
1325
|
-
return z(super.styles,
|
|
1334
|
+
return z(super.styles, Ke);
|
|
1326
1335
|
}
|
|
1327
1336
|
constructor() {
|
|
1328
1337
|
super(), this.role = "gridcell", this.headCell = !1, this.checked = !1, this.indeterminate = !1, this.disabled = !1, this.selectsSingle = !1, this.emphasized = !1, this.label = "", this.size = "m", this.handleClick = (e) => {
|
|
@@ -1330,7 +1339,7 @@ var Ge = ":host{flex:0 0 var(--table-checkbox-cell-inline-size);box-sizing:borde
|
|
|
1330
1339
|
}, this.addEventListener("click", this.handleClick);
|
|
1331
1340
|
}
|
|
1332
1341
|
render() {
|
|
1333
|
-
return this.headCell && this.selectsSingle ?
|
|
1342
|
+
return this.headCell && this.selectsSingle ? l : c`
|
|
1334
1343
|
<luzmo-checkbox
|
|
1335
1344
|
class="checkbox"
|
|
1336
1345
|
tabindex="-1"
|
|
@@ -1339,9 +1348,9 @@ var Ge = ":host{flex:0 0 var(--table-checkbox-cell-inline-size);box-sizing:borde
|
|
|
1339
1348
|
.indeterminate=${this.indeterminate}
|
|
1340
1349
|
?disabled=${this.disabled}
|
|
1341
1350
|
?emphasized=${this.emphasized}
|
|
1342
|
-
aria-hidden=${
|
|
1351
|
+
aria-hidden=${v(this.selectsSingle ? "true" : void 0)}
|
|
1343
1352
|
>
|
|
1344
|
-
${this.label ?
|
|
1353
|
+
${this.label ? c`<span class="label">${this.label}</span>` : l}
|
|
1345
1354
|
</luzmo-checkbox>
|
|
1346
1355
|
`;
|
|
1347
1356
|
}
|
|
@@ -1349,32 +1358,32 @@ var Ge = ":host{flex:0 0 var(--table-checkbox-cell-inline-size);box-sizing:borde
|
|
|
1349
1358
|
super.willUpdate(e), (e.has("headCell") || e.has("selectsSingle")) && (this.role = this.headCell && !this.selectsSingle ? "columnheader" : "gridcell"), e.has("selectsSingle") && (this.selectsSingle ? (this.setAttribute("aria-hidden", "true"), this.tabIndex = -1) : this.removeAttribute("aria-hidden"));
|
|
1350
1359
|
}
|
|
1351
1360
|
};
|
|
1352
|
-
t([
|
|
1361
|
+
t([d({ reflect: !0 })], Y.prototype, "role", void 0), t([d({
|
|
1353
1362
|
type: Boolean,
|
|
1354
1363
|
reflect: !0,
|
|
1355
1364
|
attribute: "head-cell"
|
|
1356
|
-
})], Y.prototype, "headCell", void 0), t([
|
|
1365
|
+
})], Y.prototype, "headCell", void 0), t([d({
|
|
1357
1366
|
type: Boolean,
|
|
1358
1367
|
reflect: !0
|
|
1359
|
-
})], Y.prototype, "checked", void 0), t([
|
|
1368
|
+
})], Y.prototype, "checked", void 0), t([d({
|
|
1360
1369
|
type: Boolean,
|
|
1361
1370
|
reflect: !0
|
|
1362
|
-
})], Y.prototype, "indeterminate", void 0), t([
|
|
1371
|
+
})], Y.prototype, "indeterminate", void 0), t([d({
|
|
1363
1372
|
type: Boolean,
|
|
1364
1373
|
reflect: !0
|
|
1365
|
-
})], Y.prototype, "disabled", void 0), t([
|
|
1374
|
+
})], Y.prototype, "disabled", void 0), t([d({
|
|
1366
1375
|
type: Boolean,
|
|
1367
1376
|
reflect: !0,
|
|
1368
1377
|
attribute: "selects-single"
|
|
1369
|
-
})], Y.prototype, "selectsSingle", void 0), t([
|
|
1378
|
+
})], Y.prototype, "selectsSingle", void 0), t([d({
|
|
1370
1379
|
type: Boolean,
|
|
1371
1380
|
reflect: !0
|
|
1372
|
-
})], Y.prototype, "emphasized", void 0), t([
|
|
1381
|
+
})], Y.prototype, "emphasized", void 0), t([d({ reflect: !0 })], Y.prototype, "label", void 0), t([p()], Y.prototype, "size", void 0), t([f("luzmo-checkbox")], Y.prototype, "checkbox", void 0);
|
|
1373
1382
|
//#endregion
|
|
1374
1383
|
//#region src/components/table/table-head.module.scss?inline
|
|
1375
|
-
var
|
|
1384
|
+
var qe = ":host{grid-template-columns:var(--table-grid-columns);min-inline-size:var(--table-min-inline-size,0);box-sizing:border-box;min-block-size:calc(var(--luzmo-table-row-min-block-size,var(--table-row-min-block-size)) + var(--table-row-density-offset));background-color:var(--table-head-background-color);flex:none;align-items:stretch;display:grid;border-block-start:none!important;border-inline:none!important;border-block-end-width:var(--table-head-divider-width)!important;border-block-end-style:solid!important;border-block-end-color:var(--highcontrast-table-head-divider-color,var(--luzmo-table-border-color,var(--table-head-divider-color)))!important}luzmo-table-checkbox-cell,.leading::slotted(luzmo-table-head-cell:first-of-type){--table-focus-start-start-radius:var(--table-corner-radius)}.disclosure-spacer{box-sizing:border-box;inline-size:var(--table-disclosure-cell-inline-size);align-self:stretch;border-block:none!important;border-inline-start:none!important;border-inline-end-width:var(--luzmo-table-column-divider-width,var(--table-column-divider-width))!important;border-inline-end-style:solid!important;border-inline-end-color:var(--highcontrast-table-column-divider-color,var(--luzmo-table-column-divider-color,var(--table-column-divider-color)))!important}:host{--table-head-background-color:rgba(var(--luzmo-background-color-rgb), 0);--table-head-divider-color:var(--luzmo-border-color);--table-head-divider-width:var(--luzmo-border-width)}@media (forced-colors:active){:host{--highcontrast-table-head-divider-color:CanvasText}}", X = class extends e {
|
|
1376
1385
|
static get styles() {
|
|
1377
|
-
return z(super.styles,
|
|
1386
|
+
return z(super.styles, qe);
|
|
1378
1387
|
}
|
|
1379
1388
|
constructor() {
|
|
1380
1389
|
super(), this.role = "row", this.selected = !1, this.checked = !1, this.indeterminate = !1, this.emphasized = !1, this.checkboxLabel = "", this.checkboxSize = "m", this.expandable = !1, this.handleSorted = (e) => {
|
|
@@ -1384,7 +1393,7 @@ var Ke = ":host{grid-template-columns:var(--table-grid-columns);min-inline-size:
|
|
|
1384
1393
|
}, this.addEventListener("luzmo-table-sorted", this.handleSorted);
|
|
1385
1394
|
}
|
|
1386
1395
|
render() {
|
|
1387
|
-
return
|
|
1396
|
+
return c`${this.selects ? c`
|
|
1388
1397
|
<luzmo-table-checkbox-cell
|
|
1389
1398
|
head-cell
|
|
1390
1399
|
.checked=${this.checked}
|
|
@@ -1394,20 +1403,20 @@ var Ke = ":host{grid-template-columns:var(--table-grid-columns);min-inline-size:
|
|
|
1394
1403
|
.label=${this.checkboxLabel}
|
|
1395
1404
|
.size=${this.checkboxSize}
|
|
1396
1405
|
></luzmo-table-checkbox-cell>
|
|
1397
|
-
` :
|
|
1406
|
+
` : l}${this.expandable ? c`<span class="disclosure-spacer" role="gridcell"></span>` : l}<slot
|
|
1398
1407
|
class=${!this.selects && !this.expandable ? "leading" : ""}
|
|
1399
1408
|
></slot>`;
|
|
1400
1409
|
}
|
|
1401
1410
|
};
|
|
1402
|
-
t([
|
|
1411
|
+
t([d({ reflect: !0 })], X.prototype, "role", void 0), t([d({
|
|
1403
1412
|
type: Boolean,
|
|
1404
1413
|
reflect: !0
|
|
1405
|
-
})], X.prototype, "selected", void 0), t([
|
|
1414
|
+
})], X.prototype, "selected", void 0), t([p()], X.prototype, "selects", void 0), t([p()], X.prototype, "checked", void 0), t([p()], X.prototype, "indeterminate", void 0), t([p()], X.prototype, "emphasized", void 0), t([p()], X.prototype, "checkboxLabel", void 0), t([p()], X.prototype, "checkboxSize", void 0), t([p()], X.prototype, "expandable", void 0);
|
|
1406
1415
|
//#endregion
|
|
1407
1416
|
//#region src/components/table/table-head-cell.module.scss?inline
|
|
1408
|
-
var
|
|
1417
|
+
var Je = ":host{align-self:stretch;align-items:center;gap:var(--luzmo-spacing-2);box-sizing:border-box;min-inline-size:0;padding-block:var(--table-cell-padding-block);padding-inline:var(--luzmo-table-cell-padding-inline,var(--table-cell-padding-inline));font-weight:var(--table-head-cell-font-weight);color:var(--table-head-cell-font-color);text-align:start;outline:none;display:flex;position:relative;border-block:none!important;border-inline-start:none!important;border-inline-end-width:var(--luzmo-table-column-divider-width,var(--table-column-divider-width))!important;border-inline-end-style:solid!important;border-inline-end-color:var(--highcontrast-table-column-divider-color,var(--luzmo-table-column-divider-color,var(--table-column-divider-color)))!important}:host(:last-of-type){--table-focus-start-end-radius:var(--table-corner-radius);border-inline-end-width:0!important}.content{overflow-wrap:anywhere;flex:auto;min-inline-size:0;overflow:hidden}.content.clamped{-webkit-line-clamp:var(--table-cell-line-clamp);line-clamp:var(--table-cell-line-clamp);-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.resize-handle{z-index:1;inline-size:var(--luzmo-component-height-xs);box-sizing:border-box;cursor:col-resize;touch-action:none;justify-content:center;align-items:stretch;display:flex;position:absolute;inset-block:0;inset-inline-end:calc(var(--luzmo-spacing-4) * -1)}.resize-handle:before{content:\"\";inline-size:var(--luzmo-indicator-gap,2px);background:var(--luzmo-indicator-color,currentColor);opacity:0}.resize-handle:hover:before,.resize-handle:active:before,.resize-handle:focus-visible:before{opacity:1}:host(:last-of-type) .resize-handle{justify-content:flex-end;inset-inline-end:0}.resize-handle:focus,.resize-handle:focus-visible{outline:none}:host([sortable]){cursor:pointer;-webkit-user-select:none;user-select:none}:host([sortable]:hover){color:var(--table-head-cell-font-color-hover)}:host([active]){color:var(--table-head-cell-font-color-down)}:host(:focus-visible){outline:var(--luzmo-indicator-width,2px) solid var(--highcontrast-table-head-cell-focus-indicator-color,var(--luzmo-indicator-color,currentColor));outline-offset:calc(var(--luzmo-indicator-width,2px) * -1);border-start-start-radius:var(--table-focus-start-start-radius,0);border-start-end-radius:var(--table-focus-start-end-radius,0);border-end-end-radius:var(--table-focus-end-end-radius,0);border-end-start-radius:var(--table-focus-end-start-radius,0)}.sort-icon{inline-size:var(--table-sort-icon-size);block-size:var(--table-sort-icon-size);flex:none;display:inline-flex}.sort-icon svg{fill:currentColor;block-size:100%;inline-size:100%}@media (forced-colors:active){.resize-handle:before{background:canvastext}}:host{--table-head-cell-font-weight:var(--luzmo-font-weight-bold);--table-head-cell-font-color:var(--luzmo-font-color);--table-head-cell-font-color-hover:var(--luzmo-font-color-hover);--table-head-cell-font-color-down:var(--luzmo-font-color-down);--table-head-cell-focus-indicator-width:var(--luzmo-indicator-width);--table-head-cell-focus-indicator-color:var(--luzmo-indicator-color)}@media (forced-colors:active){:host{--highcontrast-table-head-cell-focus-indicator-color:Highlight}}", Z = class extends e {
|
|
1409
1418
|
static get styles() {
|
|
1410
|
-
return z(super.styles,
|
|
1419
|
+
return z(super.styles, Je);
|
|
1411
1420
|
}
|
|
1412
1421
|
constructor() {
|
|
1413
1422
|
super(), this.role = "columnheader", this.active = !1, this.sortable = !1, this.sortKey = "", this.columnId = "", this.resizable = !1, this.currentWidth = 0, this.resizeLabel = "", this.handleClick = (e) => {
|
|
@@ -1432,9 +1441,9 @@ var qe = ":host{align-self:stretch;align-items:center;gap:var(--luzmo-spacing-2)
|
|
|
1432
1441
|
};
|
|
1433
1442
|
}
|
|
1434
1443
|
render() {
|
|
1435
|
-
let e = w(this.lineClamp), t = this.sortable && this.sortDirection ?
|
|
1436
|
-
>${
|
|
1437
|
-
>` :
|
|
1444
|
+
let e = w(this.lineClamp), t = this.sortable && this.sortDirection ? c`<span class="sort-icon" aria-hidden="true"
|
|
1445
|
+
>${_(this.sortDirection === "asc" ? g : h)}</span
|
|
1446
|
+
>` : l, n = this.toLayout(0), r = this.resizable ? c`
|
|
1438
1447
|
<div
|
|
1439
1448
|
class="resize-handle"
|
|
1440
1449
|
tabindex="0"
|
|
@@ -1443,17 +1452,17 @@ var qe = ":host{align-self:stretch;align-items:center;gap:var(--luzmo-spacing-2)
|
|
|
1443
1452
|
aria-valuemin=${E(n)}
|
|
1444
1453
|
aria-valuemax=${D(n)}
|
|
1445
1454
|
aria-valuenow=${Math.round(this.currentWidth)}
|
|
1446
|
-
aria-label=${
|
|
1455
|
+
aria-label=${v(this.resizeLabel || void 0)}
|
|
1447
1456
|
aria-keyshortcuts="ArrowLeft ArrowRight PageUp PageDown Home End"
|
|
1448
1457
|
></div>
|
|
1449
|
-
` :
|
|
1450
|
-
return
|
|
1458
|
+
` : l;
|
|
1459
|
+
return c`
|
|
1451
1460
|
<div
|
|
1452
|
-
class=${
|
|
1461
|
+
class=${y({
|
|
1453
1462
|
content: !0,
|
|
1454
1463
|
clamped: e !== void 0
|
|
1455
1464
|
})}
|
|
1456
|
-
style=${
|
|
1465
|
+
style=${b(e ? { "--table-cell-line-clamp": String(e) } : {})}
|
|
1457
1466
|
>
|
|
1458
1467
|
<slot></slot>
|
|
1459
1468
|
</div>
|
|
@@ -1461,10 +1470,10 @@ var qe = ":host{align-self:stretch;align-items:center;gap:var(--luzmo-spacing-2)
|
|
|
1461
1470
|
`;
|
|
1462
1471
|
}
|
|
1463
1472
|
updated(e) {
|
|
1464
|
-
super.updated(e), (e.has("sortable") || e.has("sortDirection")) && (this.sortable ? this.setAttribute("aria-sort",
|
|
1473
|
+
super.updated(e), (e.has("sortable") || e.has("sortDirection")) && (this.sortable ? this.setAttribute("aria-sort", ye(this.sortDirection)) : this.removeAttribute("aria-sort"));
|
|
1465
1474
|
}
|
|
1466
1475
|
_sort() {
|
|
1467
|
-
this.sortable && (this.sortDirection =
|
|
1476
|
+
this.sortable && (this.sortDirection = be(this.sortDirection), this.dispatchEvent(new CustomEvent("luzmo-table-sorted", {
|
|
1468
1477
|
bubbles: !0,
|
|
1469
1478
|
composed: !0,
|
|
1470
1479
|
cancelable: !0,
|
|
@@ -1475,82 +1484,82 @@ var qe = ":host{align-self:stretch;align-items:center;gap:var(--luzmo-spacing-2)
|
|
|
1475
1484
|
})));
|
|
1476
1485
|
}
|
|
1477
1486
|
};
|
|
1478
|
-
t([
|
|
1487
|
+
t([d({ reflect: !0 })], Z.prototype, "role", void 0), t([d({
|
|
1479
1488
|
type: Boolean,
|
|
1480
1489
|
reflect: !0
|
|
1481
|
-
})], Z.prototype, "active", void 0), t([
|
|
1490
|
+
})], Z.prototype, "active", void 0), t([d({
|
|
1482
1491
|
type: Boolean,
|
|
1483
1492
|
reflect: !0
|
|
1484
|
-
})], Z.prototype, "sortable", void 0), t([
|
|
1493
|
+
})], Z.prototype, "sortable", void 0), t([d({
|
|
1485
1494
|
reflect: !0,
|
|
1486
1495
|
attribute: "sort-direction"
|
|
1487
|
-
})], Z.prototype, "sortDirection", void 0), t([
|
|
1496
|
+
})], Z.prototype, "sortDirection", void 0), t([d({
|
|
1488
1497
|
reflect: !0,
|
|
1489
1498
|
attribute: "sort-key"
|
|
1490
|
-
})], Z.prototype, "sortKey", void 0), t([
|
|
1499
|
+
})], Z.prototype, "sortKey", void 0), t([d({
|
|
1491
1500
|
reflect: !0,
|
|
1492
1501
|
attribute: "column-id"
|
|
1493
|
-
})], Z.prototype, "columnId", void 0), t([
|
|
1502
|
+
})], Z.prototype, "columnId", void 0), t([d({
|
|
1494
1503
|
type: Number,
|
|
1495
1504
|
reflect: !0
|
|
1496
|
-
})], Z.prototype, "width", void 0), t([
|
|
1505
|
+
})], Z.prototype, "width", void 0), t([d({
|
|
1497
1506
|
type: Number,
|
|
1498
1507
|
reflect: !0,
|
|
1499
1508
|
attribute: "min-width"
|
|
1500
|
-
})], Z.prototype, "minWidth", void 0), t([
|
|
1509
|
+
})], Z.prototype, "minWidth", void 0), t([d({
|
|
1501
1510
|
type: Number,
|
|
1502
1511
|
reflect: !0,
|
|
1503
1512
|
attribute: "max-width"
|
|
1504
|
-
})], Z.prototype, "maxWidth", void 0), t([
|
|
1513
|
+
})], Z.prototype, "maxWidth", void 0), t([d({
|
|
1505
1514
|
type: Boolean,
|
|
1506
1515
|
reflect: !0
|
|
1507
|
-
})], Z.prototype, "resizable", void 0), t([
|
|
1516
|
+
})], Z.prototype, "resizable", void 0), t([d({
|
|
1508
1517
|
type: Number,
|
|
1509
1518
|
reflect: !0,
|
|
1510
1519
|
attribute: "line-clamp"
|
|
1511
|
-
})], Z.prototype, "lineClamp", void 0), t([
|
|
1520
|
+
})], Z.prototype, "lineClamp", void 0), t([p()], Z.prototype, "currentWidth", void 0), t([p()], Z.prototype, "resizeLabel", void 0);
|
|
1512
1521
|
//#endregion
|
|
1513
1522
|
//#region src/components/table/table-disclosure-cell.module.scss?inline
|
|
1514
|
-
var
|
|
1523
|
+
var Ye = ":host{flex:0 0 var(--table-disclosure-cell-inline-size);box-sizing:border-box;min-inline-size:var(--table-disclosure-cell-inline-size);outline:none;justify-content:center;align-self:stretch;align-items:center;display:flex;border-block:none!important;border-inline-start:none!important;border-inline-end-width:var(--luzmo-table-column-divider-width,var(--table-column-divider-width))!important;border-inline-end-style:solid!important;border-inline-end-color:var(--highcontrast-table-column-divider-color,var(--luzmo-table-column-divider-color,var(--table-column-divider-color)))!important}:host(:focus-visible){outline:var(--luzmo-indicator-width,2px) solid var(--highcontrast-table-disclosure-cell-focus-indicator-color,var(--luzmo-indicator-color,currentColor));outline-offset:calc(var(--luzmo-indicator-width,2px) * -1);border-start-start-radius:var(--table-focus-start-start-radius,0);border-start-end-radius:var(--table-focus-start-end-radius,0);border-end-end-radius:var(--table-focus-end-end-radius,0);border-end-start-radius:var(--table-focus-end-start-radius,0)}.button{block-size:100%;inline-size:100%;min-inline-size:var(--luzmo-component-height-xs);min-block-size:var(--luzmo-component-height-xs);background:rgba(var(--luzmo-background-color-rgb), 0);color:inherit;cursor:pointer;border:0;outline:none;justify-content:center;align-items:center;margin:0;padding:0;display:inline-flex}.icon{inline-size:var(--table-sort-icon-size);block-size:var(--table-sort-icon-size);display:inline-flex;transform:rotate(-90deg)}.icon svg{fill:currentColor;block-size:100%;inline-size:100%}:host([expanded]) .icon{transform:rotate(0)}:host([dir=rtl]:not([expanded])) .icon{transform:rotate(90deg)}@media (prefers-reduced-motion:no-preference){.icon{transition:transform var(--luzmo-animation-duration) ease}}:host{--table-disclosure-cell-focus-indicator-width:var(--luzmo-indicator-width);--table-disclosure-cell-focus-indicator-color:var(--luzmo-indicator-color)}@media (forced-colors:active){:host{--highcontrast-table-disclosure-cell-focus-indicator-color:Highlight}}", Q = class extends e {
|
|
1515
1524
|
constructor(...e) {
|
|
1516
1525
|
super(...e), this.role = "gridcell", this.expanded = !1, this.label = "";
|
|
1517
1526
|
}
|
|
1518
1527
|
static get styles() {
|
|
1519
|
-
return z(super.styles,
|
|
1528
|
+
return z(super.styles, Ye);
|
|
1520
1529
|
}
|
|
1521
1530
|
render() {
|
|
1522
|
-
return
|
|
1531
|
+
return c`
|
|
1523
1532
|
<button
|
|
1524
1533
|
type="button"
|
|
1525
1534
|
class="button"
|
|
1526
1535
|
tabindex="-1"
|
|
1527
1536
|
aria-expanded=${String(this.expanded)}
|
|
1528
|
-
aria-label=${
|
|
1537
|
+
aria-label=${v(this.label || void 0)}
|
|
1529
1538
|
>
|
|
1530
1539
|
<span class="icon" aria-hidden="true"
|
|
1531
|
-
>${
|
|
1540
|
+
>${_(m)}</span
|
|
1532
1541
|
>
|
|
1533
1542
|
</button>
|
|
1534
1543
|
`;
|
|
1535
1544
|
}
|
|
1536
1545
|
};
|
|
1537
|
-
t([
|
|
1546
|
+
t([d({ reflect: !0 })], Q.prototype, "role", void 0), t([d({
|
|
1538
1547
|
type: Boolean,
|
|
1539
1548
|
reflect: !0
|
|
1540
|
-
})], Q.prototype, "expanded", void 0), t([
|
|
1549
|
+
})], Q.prototype, "expanded", void 0), t([d({ reflect: !0 })], Q.prototype, "label", void 0);
|
|
1541
1550
|
//#endregion
|
|
1542
1551
|
//#region src/components/table/table-row.module.scss?inline
|
|
1543
|
-
var
|
|
1552
|
+
var Xe = ":host{grid-template-columns:var(--table-grid-columns);min-inline-size:var(--table-min-inline-size,0);box-sizing:border-box;min-block-size:calc(var(--luzmo-table-row-min-block-size,var(--table-row-min-block-size)) + var(--table-row-density-offset));align-items:stretch;display:grid;border-block-start:none!important;border-inline:none!important;border-block-end-width:var(--table-row-divider-width)!important;border-block-end-style:solid!important;border-block-end-color:var(--highcontrast-table-row-divider-color,var(--luzmo-table-border-color,var(--table-row-divider-color)))!important}:host([data-last-row]:not([expanded])){border-block-end-width:0!important}:host([data-last-row]:not([expanded])) .leading:not(slot),:host([data-last-row]:not([expanded])) slot.leading::slotted(luzmo-table-cell:first-of-type){--table-focus-end-start-radius:var(--table-corner-radius)}:host([data-last-row]:not([expanded])) ::slotted(luzmo-table-cell:last-of-type){--table-focus-end-end-radius:var(--table-corner-radius)}:host([selectable]){cursor:pointer}:host([selectable]:hover){background-color:var(--table-row-hover-background-color)}:host([selected]){background-color:var(--luzmo-table-row-selected-background-color,var(--table-row-selected-background-color))}:host([selected]:hover){background-color:var(--luzmo-table-row-selected-background-color,var(--table-row-selected-hover-background-color))}.selection-spacer{inline-size:var(--table-checkbox-cell-inline-size)}.selection-spacer,.disclosure-spacer{box-sizing:border-box;align-self:stretch;border-block:none!important;border-inline-start:none!important;border-inline-end-width:var(--luzmo-table-column-divider-width,var(--table-column-divider-width))!important;border-inline-end-style:solid!important;border-inline-end-color:var(--highcontrast-table-column-divider-color,var(--luzmo-table-column-divider-color,var(--table-column-divider-color)))!important}.disclosure-spacer{inline-size:var(--table-disclosure-cell-inline-size)}@media (forced-colors:active){:host([selected]){forced-color-adjust:none;color:highlighttext;background-color:highlight}}:host{--table-row-divider-color:var(--luzmo-border-color);--table-row-divider-width:var(--luzmo-border-width);--table-row-hover-background-color:var(--luzmo-background-color-hover)}@media (forced-colors:active){:host{--highcontrast-table-row-divider-color:CanvasText}}", $ = class extends e {
|
|
1544
1553
|
constructor(...e) {
|
|
1545
1554
|
super(...e), this.role = "row", this.value = "", this.selected = !1, this.selectable = !1, this.expanded = !1, this.expandable = !1, this.selectsSingle = !1, this.emphasized = !1, this.selectionColumn = !1, this.expansionColumn = !1, this.spanAll = !1, this.checkboxLabel = "", this.disclosureLabel = "", this.detailsId = "", this.checkboxSize = "m";
|
|
1546
1555
|
}
|
|
1547
1556
|
static get styles() {
|
|
1548
|
-
return z(super.styles,
|
|
1557
|
+
return z(super.styles, Xe);
|
|
1549
1558
|
}
|
|
1550
1559
|
render() {
|
|
1551
|
-
if (this.spanAll) return
|
|
1552
|
-
let e = this.selectable || this.selectionColumn, t = !e && (this.expandable || this.expansionColumn), n =
|
|
1553
|
-
this.selectable ? n =
|
|
1560
|
+
if (this.spanAll) return c`<slot class="leading"></slot>`;
|
|
1561
|
+
let e = this.selectable || this.selectionColumn, t = !e && (this.expandable || this.expansionColumn), n = l;
|
|
1562
|
+
this.selectable ? n = c`
|
|
1554
1563
|
<luzmo-table-checkbox-cell
|
|
1555
1564
|
class="leading"
|
|
1556
1565
|
.checked=${this.selected}
|
|
@@ -1559,15 +1568,15 @@ var Ye = ":host{grid-template-columns:var(--table-grid-columns);min-inline-size:
|
|
|
1559
1568
|
.label=${this.checkboxLabel}
|
|
1560
1569
|
.size=${this.checkboxSize}
|
|
1561
1570
|
></luzmo-table-checkbox-cell>
|
|
1562
|
-
` : this.selectionColumn && (n =
|
|
1563
|
-
let r =
|
|
1564
|
-
return this.expandable ? r =
|
|
1571
|
+
` : this.selectionColumn && (n = c`<span class="selection-spacer"></span>`);
|
|
1572
|
+
let r = l;
|
|
1573
|
+
return this.expandable ? r = c`
|
|
1565
1574
|
<luzmo-table-disclosure-cell
|
|
1566
1575
|
class=${t ? "leading" : ""}
|
|
1567
1576
|
.expanded=${this.expanded}
|
|
1568
1577
|
.label=${this.disclosureLabel}
|
|
1569
1578
|
></luzmo-table-disclosure-cell>
|
|
1570
|
-
` : this.expansionColumn && (r =
|
|
1579
|
+
` : this.expansionColumn && (r = c`<span class="disclosure-spacer"></span>`), c`${n}${r}<slot
|
|
1571
1580
|
class=${!e && !t ? "leading" : ""}
|
|
1572
1581
|
></slot>`;
|
|
1573
1582
|
}
|
|
@@ -1575,18 +1584,18 @@ var Ye = ":host{grid-template-columns:var(--table-grid-columns);min-inline-size:
|
|
|
1575
1584
|
super.updated(e), (e.has("selectable") || e.has("selected")) && (this.selectable ? this.setAttribute("aria-selected", String(this.selected)) : this.removeAttribute("aria-selected")), (e.has("expandable") || e.has("expanded") || e.has("detailsId")) && (this.expandable && this.detailsId ? this.setAttribute("aria-controls", this.detailsId) : this.removeAttribute("aria-controls"));
|
|
1576
1585
|
}
|
|
1577
1586
|
};
|
|
1578
|
-
t([
|
|
1587
|
+
t([d({ reflect: !0 })], $.prototype, "role", void 0), t([d({ reflect: !0 })], $.prototype, "value", void 0), t([d({
|
|
1579
1588
|
type: Boolean,
|
|
1580
1589
|
reflect: !0
|
|
1581
|
-
})], $.prototype, "selected", void 0), t([
|
|
1590
|
+
})], $.prototype, "selected", void 0), t([d({
|
|
1582
1591
|
type: Boolean,
|
|
1583
1592
|
reflect: !0
|
|
1584
|
-
})], $.prototype, "selectable", void 0), t([
|
|
1593
|
+
})], $.prototype, "selectable", void 0), t([d({
|
|
1585
1594
|
type: Boolean,
|
|
1586
1595
|
reflect: !0
|
|
1587
|
-
})], $.prototype, "expanded", void 0), t([
|
|
1596
|
+
})], $.prototype, "expanded", void 0), t([d({
|
|
1588
1597
|
type: Boolean,
|
|
1589
1598
|
reflect: !0
|
|
1590
|
-
})], $.prototype, "expandable", void 0), t([
|
|
1599
|
+
})], $.prototype, "expandable", void 0), t([p()], $.prototype, "selectsSingle", void 0), t([p()], $.prototype, "emphasized", void 0), t([p()], $.prototype, "selectionColumn", void 0), t([p()], $.prototype, "expansionColumn", void 0), t([p()], $.prototype, "spanAll", void 0), t([p()], $.prototype, "checkboxLabel", void 0), t([p()], $.prototype, "disclosureLabel", void 0), t([p()], $.prototype, "detailsId", void 0), t([p()], $.prototype, "checkboxSize", void 0), typeof customElements < "u" && !customElements.get("luzmo-table") && customElements.define("luzmo-table", K), typeof customElements < "u" && !customElements.get("luzmo-table-head") && customElements.define("luzmo-table-head", X), typeof customElements < "u" && !customElements.get("luzmo-table-head-cell") && customElements.define("luzmo-table-head-cell", Z), typeof customElements < "u" && !customElements.get("luzmo-table-body") && customElements.define("luzmo-table-body", q), typeof customElements < "u" && !customElements.get("luzmo-table-row") && customElements.define("luzmo-table-row", $), typeof customElements < "u" && !customElements.get("luzmo-table-cell") && customElements.define("luzmo-table-cell", J), typeof customElements < "u" && !customElements.get("luzmo-table-checkbox-cell") && customElements.define("luzmo-table-checkbox-cell", Y), typeof customElements < "u" && !customElements.get("luzmo-table-disclosure-cell") && customElements.define("luzmo-table-disclosure-cell", Q), typeof customElements < "u" && !customElements.get("luzmo-table-row-details") && customElements.define("luzmo-table-row-details", B);
|
|
1591
1600
|
//#endregion
|
|
1592
1601
|
export { Y as a, K as c, X as i, B as l, Q as n, J as o, Z as r, q as s, $ as t, k as u };
|