@pathscale/ui 0.0.103 → 0.1.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.
|
@@ -5,6 +5,22 @@ export type StreamingTableProps<TData> = {
|
|
|
5
5
|
columns: StreamingColumnDef<TData>[];
|
|
6
6
|
getRowId?: (row: TData) => string;
|
|
7
7
|
streamingConfig?: StreamingConfig;
|
|
8
|
+
/** Enable filtering (default: false) */
|
|
9
|
+
enableFiltering?: boolean;
|
|
10
|
+
/** External control of filter value */
|
|
11
|
+
filterValue?: string;
|
|
12
|
+
/** Callback when filter changes */
|
|
13
|
+
onFilterChange?: (value: string) => void;
|
|
14
|
+
/** Custom global filter function (filters across all columns) */
|
|
15
|
+
globalFilterFn?: (row: TData, filterValue: string, columns: StreamingColumnDef<TData>[]) => boolean;
|
|
16
|
+
/** Enable pagination (default: false) */
|
|
17
|
+
enablePagination?: boolean;
|
|
18
|
+
/** Number of rows per page (default: 10) */
|
|
19
|
+
pageSize?: number;
|
|
20
|
+
/** Initial page index (default: 0) */
|
|
21
|
+
initialPage?: number;
|
|
22
|
+
/** Enable sorting (default: false) */
|
|
23
|
+
enableSorting?: boolean;
|
|
8
24
|
} & Omit<TableProps, "children">;
|
|
9
25
|
declare const StreamingTable: <TData>(props: StreamingTableProps<TData>) => import("solid-js").JSX.Element;
|
|
10
26
|
export default StreamingTable;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import type { JSX } from "solid-js";
|
|
2
|
+
export type SortDirection = "asc" | "desc" | null;
|
|
3
|
+
export interface SortingState {
|
|
4
|
+
columnId: string | null;
|
|
5
|
+
direction: SortDirection;
|
|
6
|
+
}
|
|
2
7
|
export interface StreamingColumnDef<T> {
|
|
8
|
+
/** Unique identifier for the column (required for sorting) */
|
|
9
|
+
id?: string;
|
|
3
10
|
/** Header text or JSX element */
|
|
4
11
|
header: JSX.Element | string;
|
|
5
12
|
/** For simple field access */
|
|
@@ -12,12 +19,16 @@ export interface StreamingColumnDef<T> {
|
|
|
12
19
|
original: T;
|
|
13
20
|
};
|
|
14
21
|
}) => JSX.Element;
|
|
22
|
+
/** Custom sorting function */
|
|
23
|
+
sortingFn?: (rowA: T, rowB: T) => number;
|
|
15
24
|
/** Extra config (sorting, filters, etc.) */
|
|
16
25
|
meta?: Record<string, any>;
|
|
17
26
|
/** Enable column filter */
|
|
18
27
|
enableColumnFilter?: boolean;
|
|
19
28
|
/** Enable sorting for this column */
|
|
20
29
|
enableSorting?: boolean;
|
|
30
|
+
/** Custom filter function for this column */
|
|
31
|
+
filterFn?: (row: T, filterValue: string) => boolean;
|
|
21
32
|
}
|
|
22
33
|
export interface StreamingConfig {
|
|
23
34
|
/** Maximum buffer size (default: 1000) */
|
|
@@ -25,3 +36,11 @@ export interface StreamingConfig {
|
|
|
25
36
|
/** Append-only mode - don't remove stale rows (default: false) */
|
|
26
37
|
appendMode?: boolean;
|
|
27
38
|
}
|
|
39
|
+
export interface PaginationConfig {
|
|
40
|
+
/** Enable pagination (default: false) */
|
|
41
|
+
enablePagination?: boolean;
|
|
42
|
+
/** Number of rows per page (default: 10) */
|
|
43
|
+
pageSize?: number;
|
|
44
|
+
/** Initial page index (default: 0) */
|
|
45
|
+
initialPage?: number;
|
|
46
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -11998,15 +11998,27 @@ function createStreamingTableStore() {
|
|
|
11998
11998
|
truncateToSize
|
|
11999
11999
|
};
|
|
12000
12000
|
}
|
|
12001
|
-
var StreamingTable_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<tbody>");
|
|
12002
|
-
const
|
|
12001
|
+
var StreamingTable_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<tbody>"), StreamingTable_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="flex justify-center items-center gap-2 mt-4"><span class="text-sm ml-2">Page <!> of '), StreamingTable_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>"), StreamingTable_tmpl$4 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div><span>");
|
|
12002
|
+
const StreamingTable = (props)=>{
|
|
12003
12003
|
const [local, tableProps] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
12004
12004
|
"data",
|
|
12005
12005
|
"columns",
|
|
12006
12006
|
"getRowId",
|
|
12007
|
-
"streamingConfig"
|
|
12007
|
+
"streamingConfig",
|
|
12008
|
+
"enableFiltering",
|
|
12009
|
+
"filterValue",
|
|
12010
|
+
"onFilterChange",
|
|
12011
|
+
"globalFilterFn",
|
|
12012
|
+
"enablePagination",
|
|
12013
|
+
"pageSize",
|
|
12014
|
+
"initialPage",
|
|
12015
|
+
"enableSorting"
|
|
12008
12016
|
]);
|
|
12009
12017
|
const store = createStreamingTableStore();
|
|
12018
|
+
const [sortingState, setSortingState] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)({
|
|
12019
|
+
columnId: null,
|
|
12020
|
+
direction: null
|
|
12021
|
+
});
|
|
12010
12022
|
const config = {
|
|
12011
12023
|
maxBufferSize: local.streamingConfig?.maxBufferSize ?? 1000,
|
|
12012
12024
|
appendMode: local.streamingConfig?.appendMode ?? false
|
|
@@ -12035,55 +12047,286 @@ const StreamingTable_StreamingTable = (props)=>{
|
|
|
12035
12047
|
});
|
|
12036
12048
|
}
|
|
12037
12049
|
});
|
|
12038
|
-
|
|
12039
|
-
|
|
12040
|
-
|
|
12041
|
-
|
|
12042
|
-
|
|
12043
|
-
|
|
12044
|
-
|
|
12045
|
-
|
|
12050
|
+
const defaultGlobalFilterFn = (row, filterValue, columns)=>{
|
|
12051
|
+
if (!filterValue || "" === filterValue.trim()) return true;
|
|
12052
|
+
const lowerFilter = filterValue.toLowerCase();
|
|
12053
|
+
return columns.some((col)=>{
|
|
12054
|
+
if (col.filterFn) return col.filterFn(row, filterValue);
|
|
12055
|
+
let value;
|
|
12056
|
+
if (col.accessorKey) value = row[col.accessorKey];
|
|
12057
|
+
else {
|
|
12058
|
+
if (!col.accessorFn) return false;
|
|
12059
|
+
value = col.accessorFn(row);
|
|
12060
|
+
}
|
|
12061
|
+
if (null == value) return false;
|
|
12062
|
+
return String(value).toLowerCase().includes(lowerFilter);
|
|
12063
|
+
});
|
|
12064
|
+
};
|
|
12065
|
+
const filteredRows = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
12066
|
+
const rows = store.rows();
|
|
12067
|
+
if (!local.enableFiltering) return rows;
|
|
12068
|
+
const currentFilterValue = local.filterValue ?? "";
|
|
12069
|
+
if (!currentFilterValue || "" === currentFilterValue.trim()) return rows;
|
|
12070
|
+
const filterFn = local.globalFilterFn ?? defaultGlobalFilterFn;
|
|
12071
|
+
return rows.filter((rowStore)=>{
|
|
12072
|
+
const rowData = rowStore.data();
|
|
12073
|
+
return filterFn(rowData, currentFilterValue, local.columns);
|
|
12074
|
+
});
|
|
12075
|
+
});
|
|
12076
|
+
const getColumnId = (col, index)=>col.id ?? col.accessorKey ?? `column-${index}`;
|
|
12077
|
+
const handleSort = (col, index)=>{
|
|
12078
|
+
if (!local.enableSorting || false === col.enableSorting) return;
|
|
12079
|
+
const columnId = getColumnId(col, index);
|
|
12080
|
+
const current = sortingState();
|
|
12081
|
+
let newDirection = "asc";
|
|
12082
|
+
if (current.columnId === columnId) {
|
|
12083
|
+
if ("asc" === current.direction) newDirection = "desc";
|
|
12084
|
+
else if ("desc" === current.direction) newDirection = null;
|
|
12085
|
+
}
|
|
12086
|
+
setSortingState({
|
|
12087
|
+
columnId: null === newDirection ? null : columnId,
|
|
12088
|
+
direction: newDirection
|
|
12089
|
+
});
|
|
12090
|
+
};
|
|
12091
|
+
const getSortValue = (row, col)=>{
|
|
12092
|
+
if (col.accessorKey) return row[col.accessorKey];
|
|
12093
|
+
if (col.accessorFn) return col.accessorFn(row);
|
|
12094
|
+
return null;
|
|
12095
|
+
};
|
|
12096
|
+
const defaultSortFn = (a, b)=>{
|
|
12097
|
+
if (null == a && null == b) return 0;
|
|
12098
|
+
if (null == a) return 1;
|
|
12099
|
+
if (null == b) return -1;
|
|
12100
|
+
if ("string" == typeof a && "string" == typeof b) return a.localeCompare(b);
|
|
12101
|
+
if ("number" == typeof a && "number" == typeof b) return a - b;
|
|
12102
|
+
if ("boolean" == typeof a && "boolean" == typeof b) return a === b ? 0 : a ? 1 : -1;
|
|
12103
|
+
if (a instanceof Date && b instanceof Date) return a.getTime() - b.getTime();
|
|
12104
|
+
return String(a).localeCompare(String(b));
|
|
12105
|
+
};
|
|
12106
|
+
const sortedRows = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
12107
|
+
const rows = filteredRows();
|
|
12108
|
+
const sorting = sortingState();
|
|
12109
|
+
if (!local.enableSorting || !sorting.direction || !sorting.columnId) return rows;
|
|
12110
|
+
const colIndex = local.columns.findIndex((col, idx)=>getColumnId(col, idx) === sorting.columnId);
|
|
12111
|
+
if (-1 === colIndex) return rows;
|
|
12112
|
+
const col = local.columns[colIndex];
|
|
12113
|
+
const sorted = [
|
|
12114
|
+
...rows
|
|
12115
|
+
].sort((rowStoreA, rowStoreB)=>{
|
|
12116
|
+
const rowA = rowStoreA.data();
|
|
12117
|
+
const rowB = rowStoreB.data();
|
|
12118
|
+
let result;
|
|
12119
|
+
if (col.sortingFn) result = col.sortingFn(rowA, rowB);
|
|
12120
|
+
else {
|
|
12121
|
+
const valueA = getSortValue(rowA, col);
|
|
12122
|
+
const valueB = getSortValue(rowB, col);
|
|
12123
|
+
result = defaultSortFn(valueA, valueB);
|
|
12124
|
+
}
|
|
12125
|
+
return "desc" === sorting.direction ? -result : result;
|
|
12126
|
+
});
|
|
12127
|
+
return sorted;
|
|
12128
|
+
});
|
|
12129
|
+
const renderSortIndicator = (col, index)=>{
|
|
12130
|
+
if (!local.enableSorting || false === col.enableSorting) return null;
|
|
12131
|
+
const columnId = getColumnId(col, index);
|
|
12132
|
+
const sorting = sortingState();
|
|
12133
|
+
if (sorting.columnId !== columnId || !sorting.direction) return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(icon_Icon, {
|
|
12134
|
+
name: "icon-[mdi-light--unfold-more-horizontal]",
|
|
12135
|
+
width: 16,
|
|
12136
|
+
height: 16,
|
|
12137
|
+
class: "opacity-30"
|
|
12138
|
+
});
|
|
12139
|
+
return "asc" === sorting.direction ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(icon_Icon, {
|
|
12140
|
+
name: "icon-[mdi-light--chevron-up]",
|
|
12141
|
+
width: 16,
|
|
12142
|
+
height: 16
|
|
12143
|
+
}) : (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(icon_Icon, {
|
|
12144
|
+
name: "icon-[mdi-light--chevron-down]",
|
|
12145
|
+
width: 16,
|
|
12146
|
+
height: 16
|
|
12147
|
+
});
|
|
12148
|
+
};
|
|
12149
|
+
const [currentPage, setCurrentPage] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(local.initialPage ?? 0);
|
|
12150
|
+
const pageSize = local.pageSize ?? 10;
|
|
12151
|
+
const enablePagination = local.enablePagination ?? false;
|
|
12152
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
12153
|
+
if (enablePagination) {
|
|
12154
|
+
if (local.enableFiltering) local.filterValue;
|
|
12155
|
+
if (local.enableSorting) sortingState();
|
|
12156
|
+
setCurrentPage(0);
|
|
12157
|
+
}
|
|
12158
|
+
});
|
|
12159
|
+
const paginatedRows = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
12160
|
+
const rows = sortedRows();
|
|
12161
|
+
if (!enablePagination) return rows;
|
|
12162
|
+
const start = currentPage() * pageSize;
|
|
12163
|
+
const end = start + pageSize;
|
|
12164
|
+
return rows.slice(start, end);
|
|
12165
|
+
});
|
|
12166
|
+
const totalPages = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
12167
|
+
if (!enablePagination) return 1;
|
|
12168
|
+
const total = sortedRows().length;
|
|
12169
|
+
return Math.max(1, Math.ceil(total / pageSize));
|
|
12170
|
+
});
|
|
12171
|
+
const goToPage = (page)=>{
|
|
12172
|
+
const maxPage = totalPages() - 1;
|
|
12173
|
+
if (page >= 0 && page <= maxPage) setCurrentPage(page);
|
|
12174
|
+
};
|
|
12175
|
+
const nextPage = ()=>goToPage(currentPage() + 1);
|
|
12176
|
+
const prevPage = ()=>goToPage(currentPage() - 1);
|
|
12177
|
+
const visiblePageNumbers = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
12178
|
+
const total = totalPages();
|
|
12179
|
+
const current = currentPage();
|
|
12180
|
+
const pages = [];
|
|
12181
|
+
if (total <= 5) for(let i = 0; i < total; i++)pages.push(i);
|
|
12182
|
+
else {
|
|
12183
|
+
let start = Math.max(0, current - 2);
|
|
12184
|
+
let end = Math.min(total - 1, current + 2);
|
|
12185
|
+
if (current < 2) end = Math.min(total - 1, 4);
|
|
12186
|
+
else if (current > total - 3) start = Math.max(0, total - 5);
|
|
12187
|
+
for(let i = start; i <= end; i++)pages.push(i);
|
|
12188
|
+
}
|
|
12189
|
+
return pages;
|
|
12190
|
+
});
|
|
12191
|
+
return (()=>{
|
|
12192
|
+
var _el$ = StreamingTable_tmpl$3();
|
|
12193
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(tableProps, {
|
|
12194
|
+
get children () {
|
|
12195
|
+
return [
|
|
12196
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Head, {
|
|
12197
|
+
get children () {
|
|
12198
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
|
|
12199
|
+
get each () {
|
|
12200
|
+
return local.columns;
|
|
12201
|
+
},
|
|
12202
|
+
children: (col, index)=>{
|
|
12203
|
+
const isSortable = local.enableSorting && false !== col.enableSorting;
|
|
12204
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.HeadCell, {
|
|
12205
|
+
get children () {
|
|
12206
|
+
var _el$8 = StreamingTable_tmpl$4(), _el$9 = _el$8.firstChild;
|
|
12207
|
+
_el$8.$$click = ()=>isSortable && handleSort(col, index());
|
|
12208
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$8, isSortable ? "flex items-center gap-2 cursor-pointer select-none" : "");
|
|
12209
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$9, ()=>col.header);
|
|
12210
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$8, ()=>renderSortIndicator(col, index()), null);
|
|
12211
|
+
return _el$8;
|
|
12212
|
+
}
|
|
12213
|
+
});
|
|
12214
|
+
}
|
|
12215
|
+
});
|
|
12216
|
+
}
|
|
12217
|
+
}),
|
|
12218
|
+
(()=>{
|
|
12219
|
+
var _el$2 = StreamingTable_tmpl$();
|
|
12220
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
12221
|
+
get when () {
|
|
12222
|
+
return paginatedRows().length > 0;
|
|
12046
12223
|
},
|
|
12047
|
-
|
|
12224
|
+
get fallback () {
|
|
12225
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Row, {
|
|
12048
12226
|
get children () {
|
|
12049
|
-
return
|
|
12227
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Cell, {
|
|
12228
|
+
get colSpan () {
|
|
12229
|
+
return local.columns.length;
|
|
12230
|
+
},
|
|
12231
|
+
style: {
|
|
12232
|
+
"text-align": "center"
|
|
12233
|
+
},
|
|
12234
|
+
children: "No data"
|
|
12235
|
+
});
|
|
12050
12236
|
}
|
|
12051
|
-
})
|
|
12052
|
-
|
|
12053
|
-
|
|
12054
|
-
|
|
12055
|
-
|
|
12056
|
-
|
|
12057
|
-
|
|
12058
|
-
|
|
12059
|
-
|
|
12060
|
-
|
|
12061
|
-
|
|
12062
|
-
|
|
12063
|
-
|
|
12064
|
-
|
|
12065
|
-
|
|
12237
|
+
});
|
|
12238
|
+
},
|
|
12239
|
+
get children () {
|
|
12240
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
|
|
12241
|
+
get each () {
|
|
12242
|
+
return paginatedRows();
|
|
12243
|
+
},
|
|
12244
|
+
children: (rowStore)=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Row, {
|
|
12245
|
+
get children () {
|
|
12246
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
|
|
12247
|
+
get each () {
|
|
12248
|
+
return local.columns;
|
|
12249
|
+
},
|
|
12250
|
+
children: (col)=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Cell, {
|
|
12251
|
+
get children () {
|
|
12252
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!col.cell)() ? col.cell({
|
|
12253
|
+
row: {
|
|
12254
|
+
original: rowStore.data()
|
|
12255
|
+
}
|
|
12256
|
+
}) : (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!col.accessorKey)() ? rowStore.data()[col.accessorKey] : (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!col.accessorFn)() ? col.accessorFn(rowStore.data()) : "";
|
|
12257
|
+
}
|
|
12258
|
+
})
|
|
12259
|
+
});
|
|
12260
|
+
}
|
|
12261
|
+
})
|
|
12262
|
+
});
|
|
12263
|
+
}
|
|
12264
|
+
}));
|
|
12265
|
+
return _el$2;
|
|
12266
|
+
})()
|
|
12267
|
+
];
|
|
12268
|
+
}
|
|
12269
|
+
})), null);
|
|
12270
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
12271
|
+
get when () {
|
|
12272
|
+
return enablePagination && totalPages() > 0;
|
|
12273
|
+
},
|
|
12274
|
+
get children () {
|
|
12275
|
+
var _el$3 = StreamingTable_tmpl$2(), _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$7 = _el$5.nextSibling;
|
|
12276
|
+
_el$7.nextSibling;
|
|
12277
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(pagination_Pagination, {
|
|
12278
|
+
get children () {
|
|
12279
|
+
return [
|
|
12280
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(button_Button, {
|
|
12281
|
+
class: "join-item",
|
|
12282
|
+
onClick: prevPage,
|
|
12283
|
+
get disabled () {
|
|
12284
|
+
return 0 === currentPage();
|
|
12285
|
+
},
|
|
12286
|
+
size: "sm",
|
|
12287
|
+
children: "\xAB"
|
|
12288
|
+
}),
|
|
12289
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
|
|
12290
|
+
get each () {
|
|
12291
|
+
return visiblePageNumbers();
|
|
12292
|
+
},
|
|
12293
|
+
children: (pageNum)=>{
|
|
12294
|
+
const isActive = ()=>pageNum === currentPage();
|
|
12295
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(button_Button, {
|
|
12296
|
+
class: "join-item",
|
|
12297
|
+
onClick: ()=>goToPage(pageNum),
|
|
12298
|
+
get active () {
|
|
12299
|
+
return isActive();
|
|
12066
12300
|
},
|
|
12067
|
-
|
|
12068
|
-
|
|
12069
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!col.cell)() ? col.cell({
|
|
12070
|
-
row: {
|
|
12071
|
-
original: rowStore.data()
|
|
12072
|
-
}
|
|
12073
|
-
}) : (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!col.accessorKey)() ? rowStore.data()[col.accessorKey] : (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!col.accessorFn)() ? col.accessorFn(rowStore.data()) : "";
|
|
12074
|
-
}
|
|
12075
|
-
})
|
|
12301
|
+
size: "sm",
|
|
12302
|
+
children: pageNum + 1
|
|
12076
12303
|
});
|
|
12077
12304
|
}
|
|
12305
|
+
}),
|
|
12306
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(button_Button, {
|
|
12307
|
+
class: "join-item",
|
|
12308
|
+
onClick: nextPage,
|
|
12309
|
+
get disabled () {
|
|
12310
|
+
return currentPage() === totalPages() - 1;
|
|
12311
|
+
},
|
|
12312
|
+
size: "sm",
|
|
12313
|
+
children: "\xBB"
|
|
12078
12314
|
})
|
|
12079
|
-
|
|
12080
|
-
|
|
12081
|
-
})
|
|
12082
|
-
|
|
12083
|
-
|
|
12084
|
-
|
|
12315
|
+
];
|
|
12316
|
+
}
|
|
12317
|
+
}), _el$4);
|
|
12318
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, ()=>currentPage() + 1, _el$7);
|
|
12319
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, totalPages, null);
|
|
12320
|
+
return _el$3;
|
|
12321
|
+
}
|
|
12322
|
+
}), null);
|
|
12323
|
+
return _el$;
|
|
12324
|
+
})();
|
|
12085
12325
|
};
|
|
12086
|
-
const
|
|
12326
|
+
const streaming_table_StreamingTable = StreamingTable;
|
|
12327
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
|
|
12328
|
+
"click"
|
|
12329
|
+
]);
|
|
12087
12330
|
var Tab_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<a role=tab>");
|
|
12088
12331
|
const Tab = (props)=>{
|
|
12089
12332
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -12676,4 +12919,4 @@ const WindowMockup = (props)=>{
|
|
|
12676
12919
|
})();
|
|
12677
12920
|
};
|
|
12678
12921
|
const windowmockup_WindowMockup = WindowMockup;
|
|
12679
|
-
export { accordion_Accordion as Accordion, alert_Alert as Alert, artboard_Artboard as Artboard, avatar as Avatar, background_Background as Background, Badge, bottom_sheet_BottomSheet as BottomSheet, Breadcrumbs, breadcrumbs_BreadcrumbsItem as BreadcrumbsItem, browsermockup_BrowserMockup as BrowserMockup, button_Button as Button, Calendar, card_Card as Card, carousel_Carousel as Carousel, chatbubble_ChatBubble as ChatBubble, checkbox_Checkbox as Checkbox, codemockup_CodeMockup as CodeMockup, CodeMockupLine, collapse_Collapse as Collapse, CollapseContent, CollapseDetails, CollapseTitle, connectionstatus_ConnectionStatus as ConnectionStatus, CopyButton, countdown_Countdown as Countdown, diff_Diff as Diff, divider as Divider, dock as Dock, Drawer, dropdown as Dropdown, EnhancedTable, FileInput, flex_Flex as Flex, footer_Footer as Footer, form_Form as Form, Grid, hero_Hero as Hero, icon_Icon as Icon, indicator_Indicator as Indicator, input as Input, join_Join as Join, kbd_Kbd as Kbd, link_Link as Link, loading_Loading as Loading, mask as Mask, menu_Menu as Menu, modal_Modal as Modal, navbar_Navbar as Navbar, pagination_Pagination as Pagination, phonemockup_PhoneMockup as PhoneMockup, Progress, props_table_PropsTable as PropsTable, radialprogress_RadialProgress as RadialProgress, radio_Radio as Radio, range_Range as Range, Rating, select_Select as Select, showcase_ShowcaseBlock as ShowcaseBlock, showcase_section_ShowcaseSection as ShowcaseSection, sidenav_Sidenav as Sidenav, sidenav_SidenavButton as SidenavButton, sidenav_SidenavGroup as SidenavGroup, sidenav_SidenavItem as SidenavItem, sidenav_SidenavLink as SidenavLink, sidenav_SidenavMenu as SidenavMenu, skeleton_Skeleton as Skeleton, Stack, stat_card_StatCard as StatCard, stats_Stats as Stats, status_Status as Status, steps as Steps, StreamingTable, Summary, SvgBackground, Swap, table_Table as Table, tabs_Tabs as Tabs, textarea_Textarea as Textarea, Timeline, timeline_TimelineEnd as TimelineEnd, timeline_TimelineItem as TimelineItem, timeline_TimelineMiddle as TimelineMiddle, timeline_TimelineStart as TimelineStart, toast_Toast as Toast, ToastContainer, toggle_Toggle as Toggle, tooltip_Tooltip as Tooltip, windowmockup_WindowMockup as WindowMockup, createStreamingTableStore, connectionstatus_ConnectionStatus as default, toastStore, useDesktop, useFormValidation };
|
|
12922
|
+
export { accordion_Accordion as Accordion, alert_Alert as Alert, artboard_Artboard as Artboard, avatar as Avatar, background_Background as Background, Badge, bottom_sheet_BottomSheet as BottomSheet, Breadcrumbs, breadcrumbs_BreadcrumbsItem as BreadcrumbsItem, browsermockup_BrowserMockup as BrowserMockup, button_Button as Button, Calendar, card_Card as Card, carousel_Carousel as Carousel, chatbubble_ChatBubble as ChatBubble, checkbox_Checkbox as Checkbox, codemockup_CodeMockup as CodeMockup, CodeMockupLine, collapse_Collapse as Collapse, CollapseContent, CollapseDetails, CollapseTitle, connectionstatus_ConnectionStatus as ConnectionStatus, CopyButton, countdown_Countdown as Countdown, diff_Diff as Diff, divider as Divider, dock as Dock, Drawer, dropdown as Dropdown, EnhancedTable, FileInput, flex_Flex as Flex, footer_Footer as Footer, form_Form as Form, Grid, hero_Hero as Hero, icon_Icon as Icon, indicator_Indicator as Indicator, input as Input, join_Join as Join, kbd_Kbd as Kbd, link_Link as Link, loading_Loading as Loading, mask as Mask, menu_Menu as Menu, modal_Modal as Modal, navbar_Navbar as Navbar, pagination_Pagination as Pagination, phonemockup_PhoneMockup as PhoneMockup, Progress, props_table_PropsTable as PropsTable, radialprogress_RadialProgress as RadialProgress, radio_Radio as Radio, range_Range as Range, Rating, select_Select as Select, showcase_ShowcaseBlock as ShowcaseBlock, showcase_section_ShowcaseSection as ShowcaseSection, sidenav_Sidenav as Sidenav, sidenav_SidenavButton as SidenavButton, sidenav_SidenavGroup as SidenavGroup, sidenav_SidenavItem as SidenavItem, sidenav_SidenavLink as SidenavLink, sidenav_SidenavMenu as SidenavMenu, skeleton_Skeleton as Skeleton, Stack, stat_card_StatCard as StatCard, stats_Stats as Stats, status_Status as Status, steps as Steps, streaming_table_StreamingTable as StreamingTable, Summary, SvgBackground, Swap, table_Table as Table, tabs_Tabs as Tabs, textarea_Textarea as Textarea, Timeline, timeline_TimelineEnd as TimelineEnd, timeline_TimelineItem as TimelineItem, timeline_TimelineMiddle as TimelineMiddle, timeline_TimelineStart as TimelineStart, toast_Toast as Toast, ToastContainer, toggle_Toggle as Toggle, tooltip_Tooltip as Tooltip, windowmockup_WindowMockup as WindowMockup, createStreamingTableStore, connectionstatus_ConnectionStatus as default, toastStore, useDesktop, useFormValidation };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.iconify{background-color:currentColor;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%}.iconify,.iconify-color{display:inline-block;height:1em;width:1em}.iconify-color{background-repeat:no-repeat;background-size:100% 100%}.icon-[mdi-light--chevron-down]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='m5.84 9.59 5.66 5.66 5.66-5.66-.71-.7-4.95 4.95-4.95-4.95z'/%3E%3C/svg%3E")}.icon-[mdi-light--chevron-down].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--chevron-down].iconify-color{background-image:var(--svg)}.icon-[mdi-light--chevron-left]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M14.41 18.16 8.75 12.5l5.66-5.66.7.71-4.95 4.95 4.95 4.95z'/%3E%3C/svg%3E")}.icon-[mdi-light--chevron-left].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--chevron-left].iconify-color{background-image:var(--svg)}.icon-[mdi-light--chevron-right]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='m8.59 18.16 5.66-5.66-5.66-5.66-.7.71 4.95 4.95-4.95 4.95z'/%3E%3C/svg%3E")}.icon-[mdi-light--chevron-right].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--chevron-right].iconify-color{background-image:var(--svg)}.icon-[mdi-light--eye]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M11.5 18c4 0 7.46-2.22 9.24-5.5C18.96 9.22 15.5 7 11.5 7s-7.46 2.22-9.24 5.5C4.04 15.78 7.5 18 11.5 18m0-12c4.56 0 8.5 2.65 10.36 6.5C20 16.35 16.06 19 11.5 19S3 16.35 1.14 12.5C3 8.65 6.94 6 11.5 6m0 2C14 8 16 10 16 12.5S14 17 11.5 17 7 15 7 12.5 9 8 11.5 8m0 1A3.5 3.5 0 0 0 8 12.5a3.5 3.5 0 0 0 3.5 3.5 3.5 3.5 0 0 0 3.5-3.5A3.5 3.5 0 0 0 11.5 9'/%3E%3C/svg%3E")}.icon-[mdi-light--eye].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--eye].iconify-color{background-image:var(--svg)}.icon-[mdi-light--eye-off]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M2.54 4.71 3.25 4 20 20.75l-.71.71-3.34-3.35c-1.37.57-2.87.89-4.45.89-4.56 0-8.5-2.65-10.36-6.5.97-2 2.49-3.67 4.36-4.82zM11.5 18c1.29 0 2.53-.23 3.67-.66l-1.12-1.13c-.73.5-1.6.79-2.55.79C9 17 7 15 7 12.5c0-.95.29-1.82.79-2.55L6.24 8.41a10.64 10.64 0 0 0-3.98 4.09C4.04 15.78 7.5 18 11.5 18m9.24-5.5C18.96 9.22 15.5 7 11.5 7c-1.15 0-2.27.19-3.31.53l-.78-.78C8.68 6.26 10.06 6 11.5 6c4.56 0 8.5 2.65 10.36 6.5a11.47 11.47 0 0 1-4.07 4.63l-.72-.73c1.53-.96 2.8-2.3 3.67-3.9M11.5 8C14 8 16 10 16 12.5c0 .82-.22 1.58-.6 2.24l-.74-.74c.22-.46.34-.96.34-1.5A3.5 3.5 0 0 0 11.5 9c-.54 0-1.04.12-1.5.34l-.74-.74c.66-.38 1.42-.6 2.24-.6M8 12.5a3.5 3.5 0 0 0 3.5 3.5c.67 0 1.29-.19 1.82-.5L8.5 10.68c-.31.53-.5 1.15-.5 1.82'/%3E%3C/svg%3E")}.icon-[mdi-light--eye-off].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--eye-off].iconify-color{background-image:var(--svg)}
|
|
1
|
+
.iconify{background-color:currentColor;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%}.iconify,.iconify-color{display:inline-block;height:1em;width:1em}.iconify-color{background-repeat:no-repeat;background-size:100% 100%}.icon-[mdi-light--chevron-down]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='m5.84 9.59 5.66 5.66 5.66-5.66-.71-.7-4.95 4.95-4.95-4.95z'/%3E%3C/svg%3E")}.icon-[mdi-light--chevron-down].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--chevron-down].iconify-color{background-image:var(--svg)}.icon-[mdi-light--chevron-left]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M14.41 18.16 8.75 12.5l5.66-5.66.7.71-4.95 4.95 4.95 4.95z'/%3E%3C/svg%3E")}.icon-[mdi-light--chevron-left].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--chevron-left].iconify-color{background-image:var(--svg)}.icon-[mdi-light--chevron-right]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='m8.59 18.16 5.66-5.66-5.66-5.66-.7.71 4.95 4.95-4.95 4.95z'/%3E%3C/svg%3E")}.icon-[mdi-light--chevron-right].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--chevron-right].iconify-color{background-image:var(--svg)}.icon-[mdi-light--chevron-up]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='m5.84 15.41 5.66-5.66 5.66 5.66-.71.7-4.95-4.95-4.95 4.95z'/%3E%3C/svg%3E")}.icon-[mdi-light--chevron-up].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--chevron-up].iconify-color{background-image:var(--svg)}.icon-[mdi-light--eye]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M11.5 18c4 0 7.46-2.22 9.24-5.5C18.96 9.22 15.5 7 11.5 7s-7.46 2.22-9.24 5.5C4.04 15.78 7.5 18 11.5 18m0-12c4.56 0 8.5 2.65 10.36 6.5C20 16.35 16.06 19 11.5 19S3 16.35 1.14 12.5C3 8.65 6.94 6 11.5 6m0 2C14 8 16 10 16 12.5S14 17 11.5 17 7 15 7 12.5 9 8 11.5 8m0 1A3.5 3.5 0 0 0 8 12.5a3.5 3.5 0 0 0 3.5 3.5 3.5 3.5 0 0 0 3.5-3.5A3.5 3.5 0 0 0 11.5 9'/%3E%3C/svg%3E")}.icon-[mdi-light--eye].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--eye].iconify-color{background-image:var(--svg)}.icon-[mdi-light--eye-off]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M2.54 4.71 3.25 4 20 20.75l-.71.71-3.34-3.35c-1.37.57-2.87.89-4.45.89-4.56 0-8.5-2.65-10.36-6.5.97-2 2.49-3.67 4.36-4.82zM11.5 18c1.29 0 2.53-.23 3.67-.66l-1.12-1.13c-.73.5-1.6.79-2.55.79C9 17 7 15 7 12.5c0-.95.29-1.82.79-2.55L6.24 8.41a10.64 10.64 0 0 0-3.98 4.09C4.04 15.78 7.5 18 11.5 18m9.24-5.5C18.96 9.22 15.5 7 11.5 7c-1.15 0-2.27.19-3.31.53l-.78-.78C8.68 6.26 10.06 6 11.5 6c4.56 0 8.5 2.65 10.36 6.5a11.47 11.47 0 0 1-4.07 4.63l-.72-.73c1.53-.96 2.8-2.3 3.67-3.9M11.5 8C14 8 16 10 16 12.5c0 .82-.22 1.58-.6 2.24l-.74-.74c.22-.46.34-.96.34-1.5A3.5 3.5 0 0 0 11.5 9c-.54 0-1.04.12-1.5.34l-.74-.74c.66-.38 1.42-.6 2.24-.6M8 12.5a3.5 3.5 0 0 0 3.5 3.5c.67 0 1.29-.19 1.82-.5L8.5 10.68c-.31.53-.5 1.15-.5 1.82'/%3E%3C/svg%3E")}.icon-[mdi-light--eye-off].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--eye-off].iconify-color{background-image:var(--svg)}.icon-[mdi-light--unfold-more-horizontal]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='m15.74 8.83-.7.71L11.5 6 7.96 9.54l-.7-.71 4.24-4.24zm0 7.34-4.24 4.24-4.24-4.24.7-.71L11.5 19l3.54-3.54z'/%3E%3C/svg%3E")}.icon-[mdi-light--unfold-more-horizontal].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--unfold-more-horizontal].iconify-color{background-image:var(--svg)}
|