@mhmo91/schmancy 0.2.176 → 0.2.177
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/{avatar-CrxW01Pl.js → avatar-CbR-jibC.js} +2 -2
- package/dist/{avatar-CrxW01Pl.js.map → avatar-CbR-jibC.js.map} +1 -1
- package/dist/{avatar-D0VOHKSQ.cjs → avatar-DnFccDmD.cjs} +2 -2
- package/dist/{avatar-D0VOHKSQ.cjs.map → avatar-DnFccDmD.cjs.map} +1 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/content-drawer.cjs +1 -1
- package/dist/content-drawer.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/nav-drawer.cjs +1 -1
- package/dist/nav-drawer.js +1 -1
- package/dist/{table-Cfe1Zloe.cjs → table-BA5yn5_q.cjs} +12 -12
- package/dist/{table-Cfe1Zloe.cjs.map → table-BA5yn5_q.cjs.map} +1 -1
- package/dist/{table-DPXzmJkJ.js → table-CRLXjzqK.js} +73 -66
- package/dist/{table-DPXzmJkJ.js.map → table-CRLXjzqK.js.map} +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.js +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/package.json +1 -1
- package/types/src/table/table.d.ts +4 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { html as
|
|
3
|
-
import { property as
|
|
1
|
+
import { _ as g } from "./tslib.es6-ujVQHAQ4.js";
|
|
2
|
+
import { html as c, noChange as P, LitElement as H } from "lit";
|
|
3
|
+
import { property as f } from "lit/decorators/property.js";
|
|
4
4
|
import { directive as W, PartType as q } from "lit/directive.js";
|
|
5
5
|
import { AsyncDirective as U } from "lit/async-directive.js";
|
|
6
6
|
import { repeat as G } from "lit/directives/repeat.js";
|
|
7
|
-
import { $ as
|
|
8
|
-
import { property as _, customElement as
|
|
9
|
-
var J = Object.defineProperty, X = Object.getOwnPropertyDescriptor,
|
|
7
|
+
import { $ as D } from "./litElement.mixin-DJC1EaoO.js";
|
|
8
|
+
import { property as _, customElement as M, state as z } from "lit/decorators.js";
|
|
9
|
+
var J = Object.defineProperty, X = Object.getOwnPropertyDescriptor, b = (s, t, e, i) => {
|
|
10
10
|
for (var r, l = i > 1 ? void 0 : i ? X(t, e) : t, o = s.length - 1; o >= 0; o--) (r = s[o]) && (l = (i ? r(t, e, l) : r(l)) || l);
|
|
11
11
|
return i && l && J(t, e, l), l;
|
|
12
12
|
};
|
|
13
|
-
let
|
|
13
|
+
let v = class extends D() {
|
|
14
14
|
constructor() {
|
|
15
15
|
super(...arguments), this.columns = [], this.cols = this.columns.map(() => "1fr").join(" ");
|
|
16
16
|
}
|
|
17
17
|
renderCell(s) {
|
|
18
|
-
if (s.render) return
|
|
18
|
+
if (s.render) return c`
|
|
19
19
|
<div class="overflow-hidden text-ellipsis">
|
|
20
20
|
<schmancy-typography align="${s.align || "left"}" maxLines="2" weight="${s.weight || "normal"}">
|
|
21
21
|
${s.render(this.item)}
|
|
@@ -23,7 +23,7 @@ let f = class extends M() {
|
|
|
23
23
|
</div>
|
|
24
24
|
`;
|
|
25
25
|
const t = s.key ? this.item[s.key] : "";
|
|
26
|
-
return
|
|
26
|
+
return c`
|
|
27
27
|
<div class="overflow-hidden text-ellipsis">
|
|
28
28
|
<schmancy-typography align="${s.align || "left"}" maxLines="2" weight="${s.weight || "normal"}">
|
|
29
29
|
${t}
|
|
@@ -32,7 +32,7 @@ let f = class extends M() {
|
|
|
32
32
|
`;
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return
|
|
35
|
+
return c`
|
|
36
36
|
<schmancy-list-item class="w-full">
|
|
37
37
|
<schmancy-grid .cols=${this.cols} align="center" gap="md">
|
|
38
38
|
${this.columns.map((s) => this.renderCell(s))}
|
|
@@ -41,25 +41,25 @@ let f = class extends M() {
|
|
|
41
41
|
`;
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
-
|
|
45
|
-
class C extends Event {
|
|
46
|
-
constructor(t) {
|
|
47
|
-
super(C.eventName, { bubbles: !1 }), this.first = t.first, this.last = t.last;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
C.eventName = "rangeChanged";
|
|
44
|
+
b([_({ type: Array, attribute: !1 })], v.prototype, "columns", 2), b([_({ type: Object, attribute: !1 })], v.prototype, "item", 2), b([_({ type: String })], v.prototype, "cols", 2), v = b([M("schmancy-table-row")], v);
|
|
51
45
|
class S extends Event {
|
|
52
46
|
constructor(t) {
|
|
53
47
|
super(S.eventName, { bubbles: !1 }), this.first = t.first, this.last = t.last;
|
|
54
48
|
}
|
|
55
49
|
}
|
|
56
|
-
S.eventName = "
|
|
50
|
+
S.eventName = "rangeChanged";
|
|
57
51
|
class E extends Event {
|
|
52
|
+
constructor(t) {
|
|
53
|
+
super(E.eventName, { bubbles: !1 }), this.first = t.first, this.last = t.last;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
E.eventName = "visibilityChanged";
|
|
57
|
+
class L extends Event {
|
|
58
58
|
constructor() {
|
|
59
|
-
super(
|
|
59
|
+
super(L.eventName, { bubbles: !1 });
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
L.eventName = "unpinned";
|
|
63
63
|
class Y {
|
|
64
64
|
constructor(t) {
|
|
65
65
|
this._element = null;
|
|
@@ -153,7 +153,7 @@ class K extends Y {
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
let k = typeof window < "u" ? window.ResizeObserver : void 0;
|
|
156
|
-
const
|
|
156
|
+
const x = Symbol("virtualizerRef"), w = "virtualizer-sizer";
|
|
157
157
|
let O;
|
|
158
158
|
class Q {
|
|
159
159
|
constructor(t) {
|
|
@@ -174,7 +174,7 @@ class Q {
|
|
|
174
174
|
}
|
|
175
175
|
_initHostElement(t) {
|
|
176
176
|
const e = this._hostElement = t.hostElement;
|
|
177
|
-
this._applyVirtualizerStyles(), e[
|
|
177
|
+
this._applyVirtualizerStyles(), e[x] = this;
|
|
178
178
|
}
|
|
179
179
|
connected() {
|
|
180
180
|
this._initObservers();
|
|
@@ -182,10 +182,10 @@ class Q {
|
|
|
182
182
|
this._clippingAncestors = function(e, i = !1) {
|
|
183
183
|
let r = !1;
|
|
184
184
|
return function(l, o = !1) {
|
|
185
|
-
const
|
|
186
|
-
let
|
|
187
|
-
for (;
|
|
188
|
-
return
|
|
185
|
+
const a = [];
|
|
186
|
+
let h = o ? l : V(l);
|
|
187
|
+
for (; h !== null; ) a.push(h), h = V(h);
|
|
188
|
+
return a;
|
|
189
189
|
}(e, i).filter((l) => {
|
|
190
190
|
if (r) return !1;
|
|
191
191
|
const o = getComputedStyle(l);
|
|
@@ -209,8 +209,8 @@ class Q {
|
|
|
209
209
|
_getSizer() {
|
|
210
210
|
const t = this._hostElement;
|
|
211
211
|
if (!this._sizer) {
|
|
212
|
-
let e = t.querySelector(`[${
|
|
213
|
-
e || (e = document.createElement("div"), e.setAttribute(
|
|
212
|
+
let e = t.querySelector(`[${w}]`);
|
|
213
|
+
e || (e = document.createElement("div"), e.setAttribute(w, ""), t.appendChild(e)), Object.assign(e.style, { position: "absolute", margin: "-2px 0 0 0", padding: 0, visibility: "hidden", fontSize: "2px" }), e.textContent = " ", e.setAttribute(w, ""), this._sizer = e;
|
|
214
214
|
}
|
|
215
215
|
return this._sizer;
|
|
216
216
|
}
|
|
@@ -254,7 +254,7 @@ class Q {
|
|
|
254
254
|
const { width: e, height: i } = t.getBoundingClientRect();
|
|
255
255
|
return Object.assign({ width: e, height: i }, function(r) {
|
|
256
256
|
const l = window.getComputedStyle(r);
|
|
257
|
-
return { marginTop:
|
|
257
|
+
return { marginTop: C(l.marginTop), marginRight: C(l.marginRight), marginBottom: C(l.marginBottom), marginLeft: C(l.marginLeft) };
|
|
258
258
|
}(t));
|
|
259
259
|
}
|
|
260
260
|
async _schedule(t) {
|
|
@@ -286,26 +286,26 @@ class Q {
|
|
|
286
286
|
t.type === "scroll" && (t.currentTarget === window || this._clippingAncestors.includes(t.currentTarget)) && this._handleScrollEvent();
|
|
287
287
|
}
|
|
288
288
|
_handleLayoutMessage(t) {
|
|
289
|
-
t.type === "stateChanged" ? this._updateDOM(t) : t.type === "visibilityChanged" ? (this._firstVisible = t.firstVisible, this._lastVisible = t.lastVisible, this._notifyVisibility()) : t.type === "unpinned" && this._hostElement.dispatchEvent(new
|
|
289
|
+
t.type === "stateChanged" ? this._updateDOM(t) : t.type === "visibilityChanged" ? (this._firstVisible = t.firstVisible, this._lastVisible = t.lastVisible, this._notifyVisibility()) : t.type === "unpinned" && this._hostElement.dispatchEvent(new L());
|
|
290
290
|
}
|
|
291
291
|
get _children() {
|
|
292
292
|
const t = [];
|
|
293
293
|
let e = this._hostElement.firstElementChild;
|
|
294
|
-
for (; e; ) e.hasAttribute(
|
|
294
|
+
for (; e; ) e.hasAttribute(w) || t.push(e), e = e.nextElementSibling;
|
|
295
295
|
return t;
|
|
296
296
|
}
|
|
297
297
|
_updateView() {
|
|
298
298
|
var r;
|
|
299
299
|
const t = this._hostElement, e = (r = this._scrollerController) == null ? void 0 : r.element, i = this._layout;
|
|
300
300
|
if (t && e && i) {
|
|
301
|
-
let l, o,
|
|
301
|
+
let l, o, a, h;
|
|
302
302
|
const n = t.getBoundingClientRect();
|
|
303
|
-
l = 0, o = 0,
|
|
304
|
-
const
|
|
305
|
-
|
|
306
|
-
for (const m of
|
|
307
|
-
const T = e.getBoundingClientRect(), $ = { left: n.left - T.left, top: n.top - T.top },
|
|
308
|
-
i.viewportSize = { width:
|
|
303
|
+
l = 0, o = 0, a = window.innerHeight, h = window.innerWidth;
|
|
304
|
+
const y = this._clippingAncestors.map((m) => m.getBoundingClientRect());
|
|
305
|
+
y.unshift(n);
|
|
306
|
+
for (const m of y) l = Math.max(l, m.top), o = Math.max(o, m.left), a = Math.min(a, m.bottom), h = Math.min(h, m.right);
|
|
307
|
+
const T = e.getBoundingClientRect(), $ = { left: n.left - T.left, top: n.top - T.top }, F = { width: e.scrollWidth, height: e.scrollHeight }, N = l - n.top + t.scrollTop, A = o - n.left + t.scrollLeft, B = Math.max(0, a - l), j = Math.max(0, h - o);
|
|
308
|
+
i.viewportSize = { width: j, height: B }, i.viewportScroll = { top: N, left: A }, i.totalScrollSize = F, i.offsetWithinScroller = $;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
_sizeHostElement(t) {
|
|
@@ -317,9 +317,9 @@ class Q {
|
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
_positionChildren(t) {
|
|
320
|
-
t && t.forEach(({ top: e, left: i, width: r, height: l, xOffset: o, yOffset:
|
|
321
|
-
const n = this._children[
|
|
322
|
-
n && (n.style.position = "absolute", n.style.boxSizing = "border-box", n.style.transform = `translate(${i}px, ${e}px)`, r !== void 0 && (n.style.width = r + "px"), l !== void 0 && (n.style.height = l + "px"), n.style.left = o === void 0 ? null : o + "px", n.style.top =
|
|
320
|
+
t && t.forEach(({ top: e, left: i, width: r, height: l, xOffset: o, yOffset: a }, h) => {
|
|
321
|
+
const n = this._children[h - this._first];
|
|
322
|
+
n && (n.style.position = "absolute", n.style.boxSizing = "border-box", n.style.transform = `translate(${i}px, ${e}px)`, r !== void 0 && (n.style.width = r + "px"), l !== void 0 && (n.style.height = l + "px"), n.style.left = o === void 0 ? null : o + "px", n.style.top = a === void 0 ? null : a + "px");
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
325
|
async _adjustRange(t) {
|
|
@@ -348,10 +348,10 @@ class Q {
|
|
|
348
348
|
e && (t != null && t.has(e)) && this._updateScrollIntoViewCoordinates(this._layout.getScrollIntoViewCoordinates(this._scrollIntoViewTarget));
|
|
349
349
|
}
|
|
350
350
|
_notifyRange() {
|
|
351
|
-
this._hostElement.dispatchEvent(new
|
|
351
|
+
this._hostElement.dispatchEvent(new S({ first: this._first, last: this._last }));
|
|
352
352
|
}
|
|
353
353
|
_notifyVisibility() {
|
|
354
|
-
this._hostElement.dispatchEvent(new
|
|
354
|
+
this._hostElement.dispatchEvent(new E({ first: this._firstVisible, last: this._lastVisible }));
|
|
355
355
|
}
|
|
356
356
|
get layoutComplete() {
|
|
357
357
|
return this._layoutCompletePromise || (this._layoutCompletePromise = new Promise((t, e) => {
|
|
@@ -384,7 +384,7 @@ class Q {
|
|
|
384
384
|
this._scheduleLayoutComplete(), this._itemsChanged = !1, this._rangeChanged = !1;
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function C(s) {
|
|
388
388
|
const t = s ? parseFloat(s) : NaN;
|
|
389
389
|
return Number.isNaN(t) ? 0 : t;
|
|
390
390
|
}
|
|
@@ -394,7 +394,7 @@ function V(s) {
|
|
|
394
394
|
const t = s.parentNode;
|
|
395
395
|
return t && t.nodeType === Node.DOCUMENT_FRAGMENT_NODE && t.host || null;
|
|
396
396
|
}
|
|
397
|
-
const R = (s) => s, I = (s, t) =>
|
|
397
|
+
const R = (s) => s, I = (s, t) => c`${t}: ${JSON.stringify(s, null, 2)}`, Z = W(class extends U {
|
|
398
398
|
constructor(s) {
|
|
399
399
|
if (super(s), this._virtualizer = null, this._first = 0, this._last = -1, this._renderItem = (t, e) => I(t, e + this._first), this._keyFunction = (t, e) => R(t, this._first), this._items = [], s.type !== q.CHILD) throw new Error("The virtualize directive can only be used in child expressions");
|
|
400
400
|
}
|
|
@@ -407,7 +407,7 @@ const R = (s) => s, I = (s, t) => h`${t}: ${JSON.stringify(s, null, 2)}`, Z = W(
|
|
|
407
407
|
update(s, [t]) {
|
|
408
408
|
this._setFunctions(t);
|
|
409
409
|
const e = this._items !== t.items;
|
|
410
|
-
return this._items = t.items || [], this._virtualizer ? this._updateVirtualizerConfig(s, t) : this._initialize(s, t), e ?
|
|
410
|
+
return this._items = t.items || [], this._virtualizer ? this._updateVirtualizerConfig(s, t) : this._initialize(s, t), e ? P : this.render();
|
|
411
411
|
}
|
|
412
412
|
async _updateVirtualizerConfig(s, t) {
|
|
413
413
|
if (!await this._virtualizer.updateLayoutConfig(t.layout || {})) {
|
|
@@ -449,44 +449,51 @@ class p extends H {
|
|
|
449
449
|
}
|
|
450
450
|
render() {
|
|
451
451
|
const { items: t, renderItem: e, keyFunction: i, layout: r, scroller: l } = this;
|
|
452
|
-
return
|
|
452
|
+
return c`${Z({ items: t, renderItem: e, keyFunction: i, layout: r, scroller: l })}`;
|
|
453
453
|
}
|
|
454
454
|
element(t) {
|
|
455
455
|
var e;
|
|
456
|
-
return (e = this[
|
|
456
|
+
return (e = this[x]) == null ? void 0 : e.element(t);
|
|
457
457
|
}
|
|
458
458
|
get layoutComplete() {
|
|
459
459
|
var t;
|
|
460
|
-
return (t = this[
|
|
460
|
+
return (t = this[x]) == null ? void 0 : t.layoutComplete;
|
|
461
461
|
}
|
|
462
462
|
scrollToIndex(t, e = "start") {
|
|
463
463
|
var i;
|
|
464
464
|
(i = this.element(t)) == null || i.scrollIntoView({ block: e });
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
|
|
467
|
+
g([f({ attribute: !1 })], p.prototype, "items", void 0), g([f()], p.prototype, "renderItem", void 0), g([f()], p.prototype, "keyFunction", void 0), g([f({ attribute: !1 })], p.prototype, "layout", void 0), g([f({ reflect: !0, type: Boolean })], p.prototype, "scroller", void 0), customElements.define("lit-virtualizer", p);
|
|
468
468
|
var tt = Object.defineProperty, et = Object.getOwnPropertyDescriptor, d = (s, t, e, i) => {
|
|
469
469
|
for (var r, l = i > 1 ? void 0 : i ? et(t, e) : t, o = s.length - 1; o >= 0; o--) (r = s[o]) && (l = (i ? r(t, e, l) : r(l)) || l);
|
|
470
470
|
return i && l && tt(t, e, l), l;
|
|
471
471
|
};
|
|
472
|
-
let u = class extends
|
|
472
|
+
let u = class extends D() {
|
|
473
473
|
constructor() {
|
|
474
474
|
super(), this.columns = [], this.data = [], this.keyField = "id", this.cols = "1fr", this.sortable = !1, this.sortColumn = null, this.sortDirection = null, this.filteredData = [], this.filteredData = this.data;
|
|
475
475
|
}
|
|
476
476
|
willUpdate(s) {
|
|
477
477
|
(s.has("data") || s.has("sortColumn") || s.has("sortDirection")) && this.processData();
|
|
478
478
|
}
|
|
479
|
+
isDate(s) {
|
|
480
|
+
return s && typeof s == "object" && Object.prototype.toString.call(s) === "[object Date]";
|
|
481
|
+
}
|
|
479
482
|
processData() {
|
|
480
483
|
let s = [...this.data];
|
|
481
484
|
this.sortable && this.sortColumn && this.sortDirection && s.sort((t, e) => {
|
|
482
485
|
const i = t[this.sortColumn], r = e[this.sortColumn];
|
|
483
|
-
if (
|
|
486
|
+
if (i == null) return this.sortDirection === "asc" ? 1 : -1;
|
|
487
|
+
if (r == null) return this.sortDirection === "asc" ? -1 : 1;
|
|
484
488
|
if (typeof i == "number" && typeof r == "number") return this.sortDirection === "asc" ? i - r : r - i;
|
|
485
|
-
|
|
486
|
-
{
|
|
487
|
-
const
|
|
488
|
-
return this.sortDirection === "asc" ?
|
|
489
|
+
const l = typeof i == "string" && !isNaN(Number(i)), o = typeof r == "string" && !isNaN(Number(r));
|
|
490
|
+
if (l && o) {
|
|
491
|
+
const n = parseFloat(i), y = parseFloat(r);
|
|
492
|
+
return this.sortDirection === "asc" ? n - y : y - n;
|
|
489
493
|
}
|
|
494
|
+
if (this.isDate(i) && this.isDate(r)) return this.sortDirection === "asc" ? i.getTime() - r.getTime() : r.getTime() - i.getTime();
|
|
495
|
+
const a = String(i), h = String(r);
|
|
496
|
+
return this.sortDirection === "asc" ? a.localeCompare(h) : h.localeCompare(a);
|
|
490
497
|
}), this.filteredData = s;
|
|
491
498
|
}
|
|
492
499
|
toggleSort(s) {
|
|
@@ -495,20 +502,20 @@ let u = class extends M() {
|
|
|
495
502
|
t === this.sortColumn ? this.sortDirection === "asc" ? this.sortDirection = "desc" : this.sortDirection === "desc" ? this.sortDirection = null : this.sortDirection = "asc" : (this.sortColumn = t, this.sortDirection = "asc"), this.dispatchEvent(new CustomEvent("sort-change", { detail: { column: this.sortColumn, direction: this.sortDirection }, bubbles: !0, composed: !0 }));
|
|
496
503
|
}
|
|
497
504
|
renderSortIndicator(s) {
|
|
498
|
-
return this.sortable && s.sortable !== !1 && s.key && s.key === this.sortColumn ?
|
|
505
|
+
return this.sortable && s.sortable !== !1 && s.key && s.key === this.sortColumn ? c`
|
|
499
506
|
<span class="ml-1">
|
|
500
|
-
${this.sortDirection === "asc" ?
|
|
507
|
+
${this.sortDirection === "asc" ? c`<schmancy-icon size="16px">arrow_upward</schmancy-icon>` : this.sortDirection === "desc" ? c`<schmancy-icon size="16px">arrow_downward</schmancy-icon>` : null}
|
|
501
508
|
</span>
|
|
502
509
|
` : null;
|
|
503
510
|
}
|
|
504
511
|
render() {
|
|
505
512
|
const s = (t) => ({ "flex items-center": !0, "cursor-pointer gap-1": this.sortable && t.sortable !== !1 && t.key });
|
|
506
|
-
return
|
|
513
|
+
return c`
|
|
507
514
|
<schmancy-surface fill="all" type="container" rounded="all" elevation="2">
|
|
508
515
|
<schmancy-grid class="h-full w-full" cols="1fr" rows="auto 1fr">
|
|
509
516
|
<schmancy-surface rounded="top" elevation="1" type="containerHighest" class="sticky top-0 z-10">
|
|
510
517
|
<schmancy-grid align="center" class="px-4 py-3" .cols=${this.cols} gap="md" rows="1fr">
|
|
511
|
-
${this.columns.map((t) =>
|
|
518
|
+
${this.columns.map((t) => c`
|
|
512
519
|
<div
|
|
513
520
|
class=${this.classMap(s(t))}
|
|
514
521
|
@click=${() => this.sortable && t.sortable !== !1 ? this.toggleSort(t) : null}
|
|
@@ -522,12 +529,12 @@ let u = class extends M() {
|
|
|
522
529
|
</schmancy-grid>
|
|
523
530
|
</schmancy-surface>
|
|
524
531
|
|
|
525
|
-
${this.filteredData.length > 0 ?
|
|
532
|
+
${this.filteredData.length > 0 ? c`
|
|
526
533
|
<lit-virtualizer
|
|
527
534
|
scroller
|
|
528
535
|
class="w-full h-full relative overflow-auto"
|
|
529
536
|
.items=${this.filteredData}
|
|
530
|
-
.renderItem=${(t, e) =>
|
|
537
|
+
.renderItem=${(t, e) => c`
|
|
531
538
|
<schmancy-table-row
|
|
532
539
|
class="w-full border-b border-solid border-outlineVariant"
|
|
533
540
|
.columns=${this.columns}
|
|
@@ -540,7 +547,7 @@ let u = class extends M() {
|
|
|
540
547
|
></schmancy-table-row>
|
|
541
548
|
`}
|
|
542
549
|
></lit-virtualizer>
|
|
543
|
-
` :
|
|
550
|
+
` : c`
|
|
544
551
|
<div class="flex items-center justify-center w-full h-full p-8 text-center">
|
|
545
552
|
<schmancy-typography type="body" token="lg"> No data available </schmancy-typography>
|
|
546
553
|
</div>
|
|
@@ -550,9 +557,9 @@ let u = class extends M() {
|
|
|
550
557
|
`;
|
|
551
558
|
}
|
|
552
559
|
};
|
|
553
|
-
d([_({ type: Array, attribute: !1 })], u.prototype, "columns", 2), d([_({ type: Array, attribute: !1 })], u.prototype, "data", 2), d([_({ type: String })], u.prototype, "keyField", 2), d([_({ type: String })], u.prototype, "cols", 2), d([_({ type: Boolean })], u.prototype, "sortable", 2), d([
|
|
560
|
+
d([_({ type: Array, attribute: !1 })], u.prototype, "columns", 2), d([_({ type: Array, attribute: !1 })], u.prototype, "data", 2), d([_({ type: String })], u.prototype, "keyField", 2), d([_({ type: String })], u.prototype, "cols", 2), d([_({ type: Boolean })], u.prototype, "sortable", 2), d([z()], u.prototype, "sortColumn", 2), d([z()], u.prototype, "sortDirection", 2), d([z()], u.prototype, "filteredData", 2), u = d([M("schmancy-table")], u);
|
|
554
561
|
export {
|
|
555
|
-
|
|
562
|
+
v as S,
|
|
556
563
|
u as a
|
|
557
564
|
};
|
|
558
|
-
//# sourceMappingURL=table-
|
|
565
|
+
//# sourceMappingURL=table-CRLXjzqK.js.map
|