sp-component 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/sp-accordion-item.css.js +1 -1
- package/dist/components/accordion/sp-accordion.css.js +1 -1
- package/dist/components/alert/sp-alert.css.js +1 -1
- package/dist/components/autocomplete/sp-autocomplete.css.js +1 -1
- package/dist/components/autocomplete/sp-autocomplete.template.d.ts.map +1 -1
- package/dist/components/autocomplete/sp-autocomplete.template.js +14 -13
- package/dist/components/avatar/sp-avatar.css.js +1 -1
- package/dist/components/badge/sp-badge.css.js +1 -1
- package/dist/components/badge/sp-badge.d.ts +2 -0
- package/dist/components/badge/sp-badge.d.ts.map +1 -1
- package/dist/components/badge/sp-badge.js +34 -31
- package/dist/components/breadcrumb/sp-breadcrumb-item.css.js +1 -1
- package/dist/components/breadcrumb/sp-breadcrumb.css.js +1 -1
- package/dist/components/button/sp-button.css.js +1 -1
- package/dist/components/calendar/sp-calendar-date-picker.css.js +1 -1
- package/dist/components/calendar/sp-calendar.css.js +1 -1
- package/dist/components/calendar/sp-calendar.d.ts +1 -0
- package/dist/components/calendar/sp-calendar.d.ts.map +1 -1
- package/dist/components/calendar/sp-calendar.js +29 -29
- package/dist/components/card/sp-card.css.js +1 -1
- package/dist/components/card/sp-card.template.d.ts.map +1 -1
- package/dist/components/card/sp-card.template.js +25 -16
- package/dist/components/carousel/sp-carousel-slide.css.js +2 -2
- package/dist/components/carousel/sp-carousel.css.js +1 -1
- package/dist/components/checkbox/sp-checkbox.css.js +1 -1
- package/dist/components/checkbox-group/sp-checkbox-group.css.js +1 -1
- package/dist/components/color-picker/sp-color-picker.css.js +1 -1
- package/dist/components/color-picker/sp-color-picker.template.d.ts.map +1 -1
- package/dist/components/color-picker/sp-color-picker.template.js +15 -14
- package/dist/components/combobox/sp-combobox.css.js +1 -1
- package/dist/components/combobox/sp-combobox.d.ts.map +1 -1
- package/dist/components/combobox/sp-combobox.js +26 -20
- package/dist/components/command-palette/sp-command-palette.css.js +1 -1
- package/dist/components/confirm-dialog/sp-confirm-dialog.css.js +1 -1
- package/dist/components/copy-button/sp-copy-button.css.js +1 -1
- package/dist/components/divider/sp-divider.css.js +1 -1
- package/dist/components/drawer/sp-drawer.css.js +1 -1
- package/dist/components/drawer/sp-drawer.d.ts +4 -0
- package/dist/components/drawer/sp-drawer.d.ts.map +1 -1
- package/dist/components/drawer/sp-drawer.js +78 -69
- package/dist/components/empty-state/sp-empty-state.css.js +1 -1
- package/dist/components/file-upload/sp-file-upload.css.js +1 -1
- package/dist/components/form-field/sp-form-field.css.js +1 -1
- package/dist/components/gallery/sp-gallery.css.js +1 -1
- package/dist/components/icon/sp-icon.css.js +2 -2
- package/dist/components/input/sp-input.css.js +1 -1
- package/dist/components/kbd/sp-kbd.css.js +1 -1
- package/dist/components/menu/sp-menu-item.css.js +1 -1
- package/dist/components/menu/sp-menu.css.js +1 -1
- package/dist/components/menu/sp-menu.d.ts +1 -0
- package/dist/components/menu/sp-menu.d.ts.map +1 -1
- package/dist/components/menu/sp-menu.js +33 -33
- package/dist/components/modal/sp-modal.css.js +1 -1
- package/dist/components/modal/sp-modal.d.ts +2 -0
- package/dist/components/modal/sp-modal.d.ts.map +1 -1
- package/dist/components/modal/sp-modal.js +60 -51
- package/dist/components/navbar/sp-navbar.css.js +2 -2
- package/dist/components/number-input/sp-number-input.css.js +1 -1
- package/dist/components/number-input/sp-number-input.d.ts.map +1 -1
- package/dist/components/number-input/sp-number-input.js +55 -52
- package/dist/components/otp-input/sp-otp-input.css.js +1 -1
- package/dist/components/pagination/sp-pagination.css.js +1 -1
- package/dist/components/popover/sp-popover.css.js +1 -1
- package/dist/components/progress-bar/sp-progress-bar.css.js +1 -1
- package/dist/components/radio/sp-radio-group.css.js +1 -1
- package/dist/components/radio/sp-radio.css.js +1 -1
- package/dist/components/radio/sp-radio.d.ts +1 -0
- package/dist/components/radio/sp-radio.d.ts.map +1 -1
- package/dist/components/radio/sp-radio.js +19 -16
- package/dist/components/rating/sp-rating.css.js +2 -2
- package/dist/components/scroll-area/sp-scroll-area.css.js +1 -1
- package/dist/components/scroll-area/sp-scroll-area.d.ts +1 -0
- package/dist/components/scroll-area/sp-scroll-area.d.ts.map +1 -1
- package/dist/components/scroll-area/sp-scroll-area.js +43 -44
- package/dist/components/select/sp-select.css.js +1 -1
- package/dist/components/sidebar/sp-sidebar.css.js +1 -1
- package/dist/components/skeleton/sp-skeleton.css.js +1 -1
- package/dist/components/slider/sp-slider.css.js +1 -1
- package/dist/components/spinner/sp-spinner.css.js +1 -1
- package/dist/components/split-panel/sp-split-panel.css.js +1 -1
- package/dist/components/stat/sp-stat.css.js +1 -1
- package/dist/components/stepper/sp-stepper.css.js +1 -1
- package/dist/components/switch/sp-switch.css.js +1 -1
- package/dist/components/table/sp-table.css.js +1 -1
- package/dist/components/table/sp-table.d.ts +80 -17
- package/dist/components/table/sp-table.d.ts.map +1 -1
- package/dist/components/table/sp-table.js +237 -82
- package/dist/components/table/sp-table.template.d.ts.map +1 -1
- package/dist/components/table/sp-table.template.js +337 -67
- package/dist/components/table/sp-table.types.d.ts +22 -0
- package/dist/components/table/sp-table.types.d.ts.map +1 -1
- package/dist/components/tabs/sp-tab.css.js +2 -2
- package/dist/components/tabs/sp-tabs.css.js +1 -1
- package/dist/components/tag/sp-tag.css.js +1 -1
- package/dist/components/tag-input/sp-tag-input.css.js +2 -2
- package/dist/components/textarea/sp-textarea.css.js +1 -1
- package/dist/components/time-picker/sp-time-picker.css.js +1 -1
- package/dist/components/timeline/sp-timeline.css.js +1 -1
- package/dist/components/toast/sp-toast.css.js +1 -1
- package/dist/components/toast/sp-toast.d.ts +1 -0
- package/dist/components/toast/sp-toast.d.ts.map +1 -1
- package/dist/components/toast/sp-toast.js +32 -33
- package/dist/components/toast-stack/sp-toast-stack.css.js +1 -1
- package/dist/components/tooltip/sp-tooltip.css.js +2 -2
- package/dist/components/tree/sp-tree-item.css.js +1 -1
- package/dist/components/tree/sp-tree.css.js +2 -2
- package/dist/components/visually-hidden/sp-visually-hidden.css.js +2 -2
- package/dist/config.d.ts +28 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +44 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/package.json +13 -9
|
@@ -1,92 +1,247 @@
|
|
|
1
|
-
import { unsafeCSS as
|
|
2
|
-
import { property as
|
|
3
|
-
import
|
|
4
|
-
import { tableTemplate as
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
(n =
|
|
8
|
-
return
|
|
1
|
+
import { unsafeCSS as u, LitElement as g } from "lit";
|
|
2
|
+
import { property as l, state as p, customElement as f } from "lit/decorators.js";
|
|
3
|
+
import y from "./sp-table.css.js";
|
|
4
|
+
import { tableTemplate as m } from "./sp-table.template.js";
|
|
5
|
+
var S = Object.defineProperty, b = Object.getOwnPropertyDescriptor, i = (t, e, s, o) => {
|
|
6
|
+
for (var a = o > 1 ? void 0 : o ? b(e, s) : e, h = t.length - 1, n; h >= 0; h--)
|
|
7
|
+
(n = t[h]) && (a = (o ? n(e, s, a) : n(a)) || a);
|
|
8
|
+
return o && a && S(e, s, a), a;
|
|
9
9
|
};
|
|
10
|
-
let
|
|
10
|
+
let r = class extends g {
|
|
11
11
|
constructor() {
|
|
12
|
-
super(...arguments), this.columns = [], this.data = [], this.loading = !1, this.bordered = !1, this.striped = !1, this.hoverable = !0, this.compact = !1, this.emptyText = "No data available", this.sortKey = "", this.sortDirection = "none", this.stickyHeader = !1, this.selectable = !1, this.caption = "", this.selectedRows = /* @__PURE__ */ new Set(), this.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
);
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
this.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}, this.
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
12
|
+
super(...arguments), this.columns = [], this.data = [], this.loading = !1, this.bordered = !1, this.striped = !1, this.hoverable = !0, this.compact = !1, this.emptyText = "No data available", this.sortKey = "", this.sortDirection = "none", this.stickyHeader = !1, this.selectable = !1, this.caption = "", this.reorderable = !1, this.searchable = !1, this.pageSize = 0, this.pageSizeOptions = [10, 25, 50, 100], this.actions = [], this.virtual = !1, this.rowHeight = 48, this.maxHeight = "400px", this.selectedRows = /* @__PURE__ */ new Set(), this._columnOrder = [], this._hiddenCols = /* @__PURE__ */ new Set(), this._filters = {}, this._globalSearch = "", this._page = 1, this._showColPicker = !1, this._dragOverIndex = -1, this._dragFromIndex = -1, this._openFilterCol = null, this._scrollTop = 0, this._containerH = 400, this._onVirtualScroll = (t) => {
|
|
13
|
+
this._scrollTop = t.target.scrollTop;
|
|
14
|
+
}, this._handlePageSizeChange = (t) => {
|
|
15
|
+
this.pageSize = t, this._page = 1, this.selectedRows = /* @__PURE__ */ new Set(), this._emit("sp-page-size-change", { pageSize: t });
|
|
16
|
+
}, this._handleRowSelect = (t, e) => {
|
|
17
|
+
const s = new Set(this.selectedRows);
|
|
18
|
+
e ? s.add(t) : s.delete(t), this.selectedRows = s, this._emit("sp-selection-change", { indices: Array.from(s) });
|
|
19
|
+
}, this._handleSelectAll = (t) => {
|
|
20
|
+
const e = t ? this._pagedData.map((s, o) => o) : [];
|
|
21
|
+
this.selectedRows = new Set(e), this._emit("sp-selection-change", { indices: e });
|
|
22
|
+
}, this._handleSort = (t) => {
|
|
23
|
+
t.sortable && (this.sortKey === t.key ? (this.sortDirection = this.sortDirection === "asc" ? "desc" : this.sortDirection === "desc" ? "none" : "asc", this.sortDirection === "none" && (this.sortKey = "")) : (this.sortKey = t.key, this.sortDirection = "asc"), this._page = 1, this._emit("sp-sort", { key: this.sortKey, direction: this.sortDirection }));
|
|
24
|
+
}, this._handleDragStart = (t, e) => {
|
|
25
|
+
this._dragFromIndex = e, t.dataTransfer && (t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", String(e)));
|
|
26
|
+
}, this._handleDragOver = (t, e) => {
|
|
27
|
+
t.preventDefault(), t.dataTransfer && (t.dataTransfer.dropEffect = "move"), this._dragOverIndex = e;
|
|
28
|
+
}, this._handleDragLeave = () => {
|
|
29
|
+
this._dragOverIndex = -1;
|
|
30
|
+
}, this._handleDrop = (t, e) => {
|
|
31
|
+
var d, _;
|
|
32
|
+
if (t.preventDefault(), this._dragOverIndex = -1, this._dragFromIndex === -1 || this._dragFromIndex === e) return;
|
|
33
|
+
const s = [...this._columnOrder], o = this._orderedColumns, a = (d = o[this._dragFromIndex]) == null ? void 0 : d.key, h = (_ = o[e]) == null ? void 0 : _.key;
|
|
34
|
+
if (!a || !h) return;
|
|
35
|
+
const n = s.indexOf(a), c = s.indexOf(h);
|
|
36
|
+
n === -1 || c === -1 || (s.splice(n, 1), s.splice(c, 0, a), this._columnOrder = s, this._dragFromIndex = -1, this._emit("sp-column-reorder", { order: s }));
|
|
37
|
+
}, this._handleDragEnd = () => {
|
|
38
|
+
this._dragFromIndex = -1, this._dragOverIndex = -1;
|
|
39
|
+
}, this._toggleFilterCol = (t) => {
|
|
40
|
+
this._openFilterCol = this._openFilterCol === t ? null : t;
|
|
41
|
+
}, this._handleFilter = (t, e) => {
|
|
42
|
+
this._filters = { ...this._filters, [t]: e }, this._page = 1, this.selectedRows = /* @__PURE__ */ new Set();
|
|
43
|
+
}, this._handleGlobalSearch = (t) => {
|
|
44
|
+
this._globalSearch = t, this._page = 1, this.selectedRows = /* @__PURE__ */ new Set();
|
|
45
|
+
}, this._clearFilters = () => {
|
|
46
|
+
this._filters = {}, this._globalSearch = "", this._page = 1, this.selectedRows = /* @__PURE__ */ new Set();
|
|
47
|
+
}, this._toggleColumn = (t) => {
|
|
48
|
+
const e = new Set(this._hiddenCols);
|
|
49
|
+
e.has(t) ? e.delete(t) : e.add(t), this._hiddenCols = e;
|
|
50
|
+
}, this._goToPage = (t) => {
|
|
51
|
+
this._page = Math.max(1, Math.min(t, this._totalPages)), this.selectedRows = /* @__PURE__ */ new Set();
|
|
52
|
+
}, this._handleAction = (t, e, s) => {
|
|
53
|
+
t.onClick(e, s), this._emit("sp-row-action", { action: t.label, row: e, index: s });
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
// ── Lifecycle ─────────────────────────────────────────────
|
|
57
|
+
firstUpdated() {
|
|
58
|
+
this.virtual && this._setupVirtualScroll();
|
|
59
|
+
}
|
|
60
|
+
updated(t) {
|
|
61
|
+
if (t.has("columns")) {
|
|
62
|
+
const e = this._columnOrder, s = this.columns.map((n) => n.key), o = e.filter((n) => s.includes(n)), a = s.filter((n) => !o.includes(n));
|
|
63
|
+
this._columnOrder = [...o, ...a];
|
|
64
|
+
const h = new Set(this._hiddenCols);
|
|
65
|
+
this.columns.forEach((n) => {
|
|
66
|
+
n.hidden && h.add(n.key);
|
|
67
|
+
}), this._hiddenCols = h, this._page = 1;
|
|
68
|
+
}
|
|
69
|
+
t.has("data") && (this._page = 1, this.selectedRows = /* @__PURE__ */ new Set()), t.has("virtual") && this.virtual && this._setupVirtualScroll();
|
|
70
|
+
}
|
|
71
|
+
disconnectedCallback() {
|
|
72
|
+
var t;
|
|
73
|
+
super.disconnectedCallback(), (t = this._resizeObs) == null || t.disconnect();
|
|
74
|
+
}
|
|
75
|
+
_setupVirtualScroll() {
|
|
76
|
+
const t = this.renderRoot.querySelector(".sp-table-wrapper");
|
|
77
|
+
t && (this._containerH = t.clientHeight || 400, this._resizeObs = new ResizeObserver((e) => {
|
|
78
|
+
var o;
|
|
79
|
+
const s = (o = e[0]) == null ? void 0 : o.contentRect.height;
|
|
80
|
+
s && s > 0 && (this._containerH = s);
|
|
81
|
+
}), this._resizeObs.observe(t));
|
|
82
|
+
}
|
|
83
|
+
// ── Derived getters ───────────────────────────────────────
|
|
84
|
+
get _orderedColumns() {
|
|
85
|
+
if (!this._columnOrder.length) return this.columns;
|
|
86
|
+
const t = new Map(this.columns.map((e) => [e.key, e]));
|
|
87
|
+
return this._columnOrder.map((e) => t.get(e)).filter(Boolean);
|
|
88
|
+
}
|
|
89
|
+
get _visibleColumns() {
|
|
90
|
+
return this._orderedColumns.filter((t) => !this._hiddenCols.has(t.key));
|
|
91
|
+
}
|
|
92
|
+
get _filteredData() {
|
|
93
|
+
let t = this.data;
|
|
94
|
+
const e = this._globalSearch.trim().toLowerCase();
|
|
95
|
+
e && (t = t.filter(
|
|
96
|
+
(s) => Object.values(s).some((o) => String(o ?? "").toLowerCase().includes(e))
|
|
97
|
+
));
|
|
98
|
+
for (const [s, o] of Object.entries(this._filters)) {
|
|
99
|
+
const a = o.trim().toLowerCase();
|
|
100
|
+
a && (t = t.filter(
|
|
101
|
+
(h) => String(h[s] ?? "").toLowerCase().includes(a)
|
|
37
102
|
));
|
|
103
|
+
}
|
|
104
|
+
if (this.sortKey && this.sortDirection !== "none") {
|
|
105
|
+
const s = this.sortDirection === "asc" ? 1 : -1;
|
|
106
|
+
t = [...t].sort((o, a) => {
|
|
107
|
+
const h = String(o[this.sortKey] ?? ""), n = String(a[this.sortKey] ?? "");
|
|
108
|
+
return h.localeCompare(n, void 0, { numeric: !0, sensitivity: "base" }) * s;
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
return t;
|
|
112
|
+
}
|
|
113
|
+
get _pagedData() {
|
|
114
|
+
if (this.virtual) return this._filteredData;
|
|
115
|
+
if (!this.pageSize) return this._filteredData;
|
|
116
|
+
const t = (this._page - 1) * this.pageSize;
|
|
117
|
+
return this._filteredData.slice(t, t + this.pageSize);
|
|
118
|
+
}
|
|
119
|
+
get _totalPages() {
|
|
120
|
+
return this.pageSize ? Math.max(1, Math.ceil(this._filteredData.length / this.pageSize)) : 1;
|
|
121
|
+
}
|
|
122
|
+
get _virtualSlice() {
|
|
123
|
+
const t = this._filteredData, e = t.length, s = this.rowHeight, o = 3, a = Math.max(0, Math.floor(this._scrollTop / s) - o), h = Math.ceil((this._containerH || 400) / s) + o * 2, n = Math.min(e, a + h);
|
|
124
|
+
return {
|
|
125
|
+
rows: t.slice(a, n),
|
|
126
|
+
startIndex: a,
|
|
127
|
+
topPad: a * s,
|
|
128
|
+
bottomPad: Math.max(0, (e - n) * s)
|
|
38
129
|
};
|
|
39
130
|
}
|
|
131
|
+
get _hasActiveFilters() {
|
|
132
|
+
return !!this._globalSearch.trim() || Object.values(this._filters).some((t) => !!t.trim());
|
|
133
|
+
}
|
|
134
|
+
// ── Helpers ───────────────────────────────────────────────
|
|
135
|
+
_emit(t, e) {
|
|
136
|
+
this.dispatchEvent(new CustomEvent(t, { detail: e, bubbles: !0, composed: !0 }));
|
|
137
|
+
}
|
|
40
138
|
render() {
|
|
41
|
-
return
|
|
139
|
+
return m.call(this);
|
|
42
140
|
}
|
|
43
141
|
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
],
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
],
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
],
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
],
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
],
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
],
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
],
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
],
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
],
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
],
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
],
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
],
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
],
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
],
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
],
|
|
142
|
+
r.styles = u(y);
|
|
143
|
+
i([
|
|
144
|
+
l({ type: Array })
|
|
145
|
+
], r.prototype, "columns", 2);
|
|
146
|
+
i([
|
|
147
|
+
l({ type: Array })
|
|
148
|
+
], r.prototype, "data", 2);
|
|
149
|
+
i([
|
|
150
|
+
l({ type: Boolean, reflect: !0 })
|
|
151
|
+
], r.prototype, "loading", 2);
|
|
152
|
+
i([
|
|
153
|
+
l({ type: Boolean, reflect: !0 })
|
|
154
|
+
], r.prototype, "bordered", 2);
|
|
155
|
+
i([
|
|
156
|
+
l({ type: Boolean, reflect: !0 })
|
|
157
|
+
], r.prototype, "striped", 2);
|
|
158
|
+
i([
|
|
159
|
+
l({ type: Boolean, reflect: !0 })
|
|
160
|
+
], r.prototype, "hoverable", 2);
|
|
161
|
+
i([
|
|
162
|
+
l({ type: Boolean, reflect: !0 })
|
|
163
|
+
], r.prototype, "compact", 2);
|
|
164
|
+
i([
|
|
165
|
+
l({ type: String })
|
|
166
|
+
], r.prototype, "emptyText", 2);
|
|
167
|
+
i([
|
|
168
|
+
l({ type: String })
|
|
169
|
+
], r.prototype, "sortKey", 2);
|
|
170
|
+
i([
|
|
171
|
+
l({ type: String })
|
|
172
|
+
], r.prototype, "sortDirection", 2);
|
|
173
|
+
i([
|
|
174
|
+
l({ type: Boolean, reflect: !0, attribute: "sticky-header" })
|
|
175
|
+
], r.prototype, "stickyHeader", 2);
|
|
176
|
+
i([
|
|
177
|
+
l({ type: Boolean, reflect: !0 })
|
|
178
|
+
], r.prototype, "selectable", 2);
|
|
179
|
+
i([
|
|
180
|
+
l({ type: String })
|
|
181
|
+
], r.prototype, "caption", 2);
|
|
182
|
+
i([
|
|
183
|
+
l({ type: Boolean, reflect: !0 })
|
|
184
|
+
], r.prototype, "reorderable", 2);
|
|
185
|
+
i([
|
|
186
|
+
l({ type: Boolean, reflect: !0 })
|
|
187
|
+
], r.prototype, "searchable", 2);
|
|
188
|
+
i([
|
|
189
|
+
l({ type: Number, attribute: "page-size" })
|
|
190
|
+
], r.prototype, "pageSize", 2);
|
|
191
|
+
i([
|
|
192
|
+
l({ type: Array, attribute: "page-size-options" })
|
|
193
|
+
], r.prototype, "pageSizeOptions", 2);
|
|
194
|
+
i([
|
|
195
|
+
l({ type: Array })
|
|
196
|
+
], r.prototype, "actions", 2);
|
|
197
|
+
i([
|
|
198
|
+
l({ type: Boolean, reflect: !0 })
|
|
199
|
+
], r.prototype, "virtual", 2);
|
|
200
|
+
i([
|
|
201
|
+
l({ type: Number, attribute: "row-height" })
|
|
202
|
+
], r.prototype, "rowHeight", 2);
|
|
203
|
+
i([
|
|
204
|
+
l({ type: String, attribute: "max-height" })
|
|
205
|
+
], r.prototype, "maxHeight", 2);
|
|
206
|
+
i([
|
|
207
|
+
p()
|
|
208
|
+
], r.prototype, "selectedRows", 2);
|
|
209
|
+
i([
|
|
210
|
+
p()
|
|
211
|
+
], r.prototype, "_columnOrder", 2);
|
|
212
|
+
i([
|
|
213
|
+
p()
|
|
214
|
+
], r.prototype, "_hiddenCols", 2);
|
|
215
|
+
i([
|
|
216
|
+
p()
|
|
217
|
+
], r.prototype, "_filters", 2);
|
|
218
|
+
i([
|
|
219
|
+
p()
|
|
220
|
+
], r.prototype, "_globalSearch", 2);
|
|
221
|
+
i([
|
|
222
|
+
p()
|
|
223
|
+
], r.prototype, "_page", 2);
|
|
224
|
+
i([
|
|
225
|
+
p()
|
|
226
|
+
], r.prototype, "_showColPicker", 2);
|
|
227
|
+
i([
|
|
228
|
+
p()
|
|
229
|
+
], r.prototype, "_dragOverIndex", 2);
|
|
230
|
+
i([
|
|
231
|
+
p()
|
|
232
|
+
], r.prototype, "_dragFromIndex", 2);
|
|
233
|
+
i([
|
|
234
|
+
p()
|
|
235
|
+
], r.prototype, "_openFilterCol", 2);
|
|
236
|
+
i([
|
|
237
|
+
p()
|
|
238
|
+
], r.prototype, "_scrollTop", 2);
|
|
239
|
+
i([
|
|
240
|
+
p()
|
|
241
|
+
], r.prototype, "_containerH", 2);
|
|
242
|
+
r = i([
|
|
243
|
+
f("sp-table")
|
|
244
|
+
], r);
|
|
90
245
|
export {
|
|
91
|
-
|
|
246
|
+
r as SpTableComponent
|
|
92
247
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sp-table.template.d.ts","sourceRoot":"","sources":["../../../src/components/table/sp-table.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAEzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"sp-table.template.d.ts","sourceRoot":"","sources":["../../../src/components/table/sp-table.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAEzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGtD,wBAAgB,aAAa,CAAC,IAAI,EAAE,gBAAgB,GAAG,cAAc,CA8apE"}
|