yukit-web 1.1.3 → 1.2.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/fesm2022/yukit-web.mjs
CHANGED
|
@@ -16,7 +16,7 @@ import * as i1$32 from "@spartan-ng/brain/tooltip";
|
|
|
16
16
|
import { BrnTooltip, provideBrnTooltipDefaultOptions } from "@spartan-ng/brain/tooltip";
|
|
17
17
|
import { DEFAULT_TOOLTIP_CONTENT_CLASSES, DEFAULT_TOOLTIP_SVG_CLASS, tooltipPositionVariants } from "yukit-web/helm/tooltip";
|
|
18
18
|
import { NgIcon, provideIcons } from "@ng-icons/core";
|
|
19
|
-
import { lucideArchiveRestore, lucideArrowLeft, lucideCheck, lucideChevronDown, lucideChevronLeft, lucideChevronRight, lucideChevronUp, lucideChevronsUpDown, lucideCircleAlert, lucideClipboardCopy, lucideCopy, lucideDownload, lucideEllipsis, lucideEye, lucideEyeOff, lucideFileDown, lucideFileSpreadsheet, lucideFileText, lucideImagePlus, lucideInfo, lucideLayoutGrid, lucideList, lucideMinus, lucidePaperclip, lucidePencil, lucidePlus, lucidePrinter, lucideSaveCheck, lucideSearch, lucideSettings2, lucideShare, lucideStar, lucideTrash2, lucideUndo2, lucideUpload, lucideX } from "@ng-icons/lucide";
|
|
19
|
+
import { lucideArchiveRestore, lucideArrowLeft, lucideCheck, lucideChevronDown, lucideChevronLeft, lucideChevronRight, lucideChevronUp, lucideChevronsUpDown, lucideCircleAlert, lucideClipboardCopy, lucideCopy, lucideDownload, lucideEllipsis, lucideEye, lucideEyeOff, lucideFileDown, lucideFileSpreadsheet, lucideFileText, lucideImagePlus, lucideInfo, lucideLayoutGrid, lucideList, lucideMinus, lucidePaperclip, lucidePencil, lucidePin, lucidePlus, lucidePrinter, lucideSaveCheck, lucideSearch, lucideSettings2, lucideShare, lucideStar, lucideTrash2, lucideUndo2, lucideUpload, lucideX } from "@ng-icons/lucide";
|
|
20
20
|
import * as i1$31 from "yukit-web/helm/badge";
|
|
21
21
|
import { HlmBadge } from "yukit-web/helm/badge";
|
|
22
22
|
import * as i1$30 from "yukit-web/helm/breadcrumb";
|
|
@@ -75,7 +75,7 @@ import { HlmDatePickerImports, injectHlmDatePickerConfig, injectHlmDatePickerMul
|
|
|
75
75
|
import { BrnDatePickerTriggerToken, provideBrnDatePicker } from "@spartan-ng/brain/date-picker";
|
|
76
76
|
import * as i1$11 from "yukit-web/helm/table";
|
|
77
77
|
import { HlmCaption, HlmTBody, HlmTFoot, HlmTHead, HlmTable, HlmTableContainer, HlmTd, HlmTh, HlmTr } from "yukit-web/helm/table";
|
|
78
|
-
import { columnFilteringFeature, columnVisibilityFeature, createCoreRowModel, createFilteredRowModel, createPaginatedRowModel, createSortedRowModel, rowPaginationFeature, rowSelectionFeature, rowSortingFeature, sortFns } from "@tanstack/table-core";
|
|
78
|
+
import { columnFilteringFeature, columnPinningFeature, columnVisibilityFeature, createCoreRowModel, createFilteredRowModel, createPaginatedRowModel, createSortedRowModel, rowPaginationFeature, rowSelectionFeature, rowSortingFeature, sortFns } from "@tanstack/table-core";
|
|
79
79
|
import { FlexRenderDirective, flexRenderComponent, injectTable } from "@tanstack/angular-table";
|
|
80
80
|
import * as i1$10 from "yukit-web/helm/item";
|
|
81
81
|
import { HlmItem, HlmItemActions, HlmItemContent, HlmItemDescription, HlmItemFooter, HlmItemGroup, HlmItemHeader, HlmItemMedia, HlmItemSeparator, HlmItemTitle } from "yukit-web/helm/item";
|
|
@@ -11132,11 +11132,13 @@ const YuwTableImports = [
|
|
|
11132
11132
|
const YUW_DATATABLE_FEATURES = {
|
|
11133
11133
|
columnMeta: {},
|
|
11134
11134
|
columnFilteringFeature,
|
|
11135
|
+
columnPinningFeature,
|
|
11135
11136
|
columnVisibilityFeature,
|
|
11136
11137
|
rowPaginationFeature,
|
|
11137
11138
|
rowSelectionFeature,
|
|
11138
11139
|
rowSortingFeature
|
|
11139
11140
|
};
|
|
11141
|
+
const YUW_DATATABLE_SELECT_COLUMN_ID = "select";
|
|
11140
11142
|
function textOf(cell) {
|
|
11141
11143
|
return (cell?.innerText ?? "").replace(/\s+/g, " ").trim();
|
|
11142
11144
|
}
|
|
@@ -11158,14 +11160,14 @@ const DATATABLE_ALIGN_CLASS = {
|
|
|
11158
11160
|
const datatableContainerVariants = cva("", {
|
|
11159
11161
|
variants: { appearance: {
|
|
11160
11162
|
default: "",
|
|
11161
|
-
card: "scroll-fade-x rounded-(--radius-container-sm) border bg-(--neutrals-surface)"
|
|
11163
|
+
card: "scroll-fade-x yuw-datatable-scroll-fade rounded-(--radius-container-sm) border bg-(--neutrals-surface) [--yuw-datatable-surface:var(--neutrals-surface)]"
|
|
11162
11164
|
} },
|
|
11163
11165
|
defaultVariants: { appearance: "default" }
|
|
11164
11166
|
});
|
|
11165
11167
|
const datatableHeadVariants = cva("", {
|
|
11166
11168
|
variants: { appearance: {
|
|
11167
11169
|
default: "",
|
|
11168
|
-
card: "bg-(--neutrals-background) [&_tr]:border-b-0"
|
|
11170
|
+
card: "bg-(--neutrals-background) [--yuw-datatable-surface:var(--neutrals-background)] [&_tr]:border-b-0"
|
|
11169
11171
|
} },
|
|
11170
11172
|
defaultVariants: { appearance: "default" }
|
|
11171
11173
|
});
|
|
@@ -11190,6 +11192,7 @@ const datatableRowVariants = cva("", {
|
|
|
11190
11192
|
} },
|
|
11191
11193
|
defaultVariants: { appearance: "default" }
|
|
11192
11194
|
});
|
|
11195
|
+
const DATATABLE_ACTIONS_CELL_CLASS = "yuw-datatable-actions w-px text-end";
|
|
11193
11196
|
const DATATABLE_WRAP_CONTENT_CLASS = "whitespace-normal max-w-0";
|
|
11194
11197
|
var YuwDatatableComponent = class YuwDatatableComponent {
|
|
11195
11198
|
ngOnInit() {
|
|
@@ -11200,6 +11203,8 @@ var YuwDatatableComponent = class YuwDatatableComponent {
|
|
|
11200
11203
|
}));
|
|
11201
11204
|
}
|
|
11202
11205
|
constructor() {
|
|
11206
|
+
this._destroyRef = inject(DestroyRef);
|
|
11207
|
+
this._container = viewChild.required("containerElement", ...ngDevMode ? [{ debugName: "_container" }] : /* istanbul ignore next */ []);
|
|
11203
11208
|
this._table = viewChild.required("tableElement", ...ngDevMode ? [{ debugName: "_table" }] : /* istanbul ignore next */ []);
|
|
11204
11209
|
this.customPagination = contentChild(YuwDatatablePaginationDirective, ...ngDevMode ? [{ debugName: "customPagination" }] : /* istanbul ignore next */ []);
|
|
11205
11210
|
this.appearance = input("default", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
|
|
@@ -11218,6 +11223,7 @@ var YuwDatatableComponent = class YuwDatatableComponent {
|
|
|
11218
11223
|
...ngDevMode ? { debugName: "loadingRows" } : /* istanbul ignore next */ {},
|
|
11219
11224
|
transform: numberAttribute
|
|
11220
11225
|
});
|
|
11226
|
+
this.maxPinnedColumns = input(void 0, ...ngDevMode ? [{ debugName: "maxPinnedColumns" }] : /* istanbul ignore next */ []);
|
|
11221
11227
|
this.nextPageLabel = input.required(...ngDevMode ? [{ debugName: "nextPageLabel" }] : /* istanbul ignore next */ []);
|
|
11222
11228
|
this.paginated = input(false, {
|
|
11223
11229
|
...ngDevMode ? { debugName: "paginated" } : /* istanbul ignore next */ {},
|
|
@@ -11229,6 +11235,8 @@ var YuwDatatableComponent = class YuwDatatableComponent {
|
|
|
11229
11235
|
}, ...ngDevMode ? [{ debugName: "pagination" }] : /* istanbul ignore next */ []);
|
|
11230
11236
|
this.paginationAriaLabel = input.required(...ngDevMode ? [{ debugName: "paginationAriaLabel" }] : /* istanbul ignore next */ []);
|
|
11231
11237
|
this.paginationEllipsisSrText = input.required(...ngDevMode ? [{ debugName: "paginationEllipsisSrText" }] : /* istanbul ignore next */ []);
|
|
11238
|
+
this.pinColumnLabel = input(void 0, ...ngDevMode ? [{ debugName: "pinColumnLabel" }] : /* istanbul ignore next */ []);
|
|
11239
|
+
this.pinnedColumns = model([], ...ngDevMode ? [{ debugName: "pinnedColumns" }] : /* istanbul ignore next */ []);
|
|
11232
11240
|
this.previousPageLabel = input.required(...ngDevMode ? [{ debugName: "previousPageLabel" }] : /* istanbul ignore next */ []);
|
|
11233
11241
|
this.rowClass = input(void 0, ...ngDevMode ? [{ debugName: "rowClass" }] : /* istanbul ignore next */ []);
|
|
11234
11242
|
this.rowSelection = model({}, ...ngDevMode ? [{ debugName: "rowSelection" }] : /* istanbul ignore next */ []);
|
|
@@ -11270,7 +11278,8 @@ var YuwDatatableComponent = class YuwDatatableComponent {
|
|
|
11270
11278
|
columnFilters: this.columnFilters(),
|
|
11271
11279
|
columnVisibility: this.columnVisibility(),
|
|
11272
11280
|
rowSelection: this.rowSelection(),
|
|
11273
|
-
pagination: this.pagination()
|
|
11281
|
+
pagination: this.pagination(),
|
|
11282
|
+
columnPinning: this._columnPinning()
|
|
11274
11283
|
},
|
|
11275
11284
|
onSortingChange: (updater) => this.sorting.update((current) => typeof updater === "function" ? updater(current) : updater),
|
|
11276
11285
|
onColumnFiltersChange: (updater) => this.columnFilters.update((current) => typeof updater === "function" ? updater(current) : updater),
|
|
@@ -11289,25 +11298,60 @@ var YuwDatatableComponent = class YuwDatatableComponent {
|
|
|
11289
11298
|
return this.table.getSelectedRowModel().rows.map((row) => row.original);
|
|
11290
11299
|
}, ...ngDevMode ? [{ debugName: "_selectedRows" }] : /* istanbul ignore next */ []);
|
|
11291
11300
|
this.selectedRowsChange = outputFromObservable(toObservable(this._selectedRows).pipe(skip(1)));
|
|
11301
|
+
this._actionsCellClass = computed(() => cn(datatableCellVariants({ appearance: this.appearance() }), this.cellClass(), DATATABLE_ACTIONS_CELL_CLASS), ...ngDevMode ? [{ debugName: "_actionsCellClass" }] : /* istanbul ignore next */ []);
|
|
11302
|
+
this._actionsHeaderClass = computed(() => cn(datatableHeaderCellVariants({ appearance: this.appearance() }), this.cellClass(), DATATABLE_ACTIONS_CELL_CLASS), ...ngDevMode ? [{ debugName: "_actionsHeaderClass" }] : /* istanbul ignore next */ []);
|
|
11303
|
+
this._columnIds = computed(() => this.columns().map((column, index) => column.id ?? ("accessorKey" in column ? String(column.accessorKey) : String(index))), ...ngDevMode ? [{ debugName: "_columnIds" }] : /* istanbul ignore next */ []);
|
|
11292
11304
|
this._cellClasses = computed(() => {
|
|
11293
11305
|
const header = datatableHeaderCellVariants({ appearance: this.appearance() });
|
|
11294
11306
|
const cell = datatableCellVariants({ appearance: this.appearance() });
|
|
11295
11307
|
const shared = this.cellClass();
|
|
11308
|
+
const ids = this._columnIds();
|
|
11296
11309
|
return new Map(this.columns().map((column, index) => {
|
|
11297
11310
|
const meta = column.meta;
|
|
11298
11311
|
const align = DATATABLE_ALIGN_CLASS[meta?.align ?? "start"];
|
|
11299
11312
|
const width = meta?.cellClass;
|
|
11300
11313
|
const floor = meta?.wrap ? meta.minWidth ?? "min-w-48" : void 0;
|
|
11301
|
-
return [
|
|
11314
|
+
return [ids[index], {
|
|
11302
11315
|
header: cn(header, align, shared, floor, meta?.headerClass ?? width),
|
|
11303
11316
|
cell: cn(cell, align, shared, meta?.wrap && "whitespace-normal max-w-0", floor, width)
|
|
11304
11317
|
}];
|
|
11305
11318
|
}));
|
|
11306
11319
|
}, ...ngDevMode ? [{ debugName: "_cellClasses" }] : /* istanbul ignore next */ []);
|
|
11307
|
-
this.
|
|
11320
|
+
this._rowActionIds = computed(() => new Set(this._columnIds().filter((_, index) => this.columns()[index].meta?.rowAction)), ...ngDevMode ? [{ debugName: "_rowActionIds" }] : /* istanbul ignore next */ []);
|
|
11321
|
+
this._pinnableIds = computed(() => new Set(this._columnIds().filter((_, index) => this.columns()[index].meta?.pinnable)), ...ngDevMode ? [{ debugName: "_pinnableIds" }] : /* istanbul ignore next */ []);
|
|
11322
|
+
this._userPinnedIds = computed(() => {
|
|
11323
|
+
const pinned = new Set(this.pinnedColumns());
|
|
11324
|
+
return this._columnIds().filter((id) => pinned.has(id) && this._pinnableIds().has(id));
|
|
11325
|
+
}, ...ngDevMode ? [{ debugName: "_userPinnedIds" }] : /* istanbul ignore next */ []);
|
|
11326
|
+
this._columnPinning = computed(() => {
|
|
11327
|
+
const pinned = this._userPinnedIds();
|
|
11328
|
+
const select = this._columnIds().includes("select") ? [YUW_DATATABLE_SELECT_COLUMN_ID] : [];
|
|
11329
|
+
return {
|
|
11330
|
+
start: pinned.length ? [...select, ...pinned] : [],
|
|
11331
|
+
end: [...this._rowActionIds()]
|
|
11332
|
+
};
|
|
11333
|
+
}, ...ngDevMode ? [{ debugName: "_columnPinning" }] : /* istanbul ignore next */ []);
|
|
11334
|
+
this._columnCount = computed(() => {
|
|
11335
|
+
this._columnPinning();
|
|
11336
|
+
const actions = this.table.getEndVisibleLeafColumns().length;
|
|
11337
|
+
return this.table.getVisibleLeafColumns().length - actions + (actions ? 1 : 0);
|
|
11338
|
+
}, ...ngDevMode ? [{ debugName: "_columnCount" }] : /* istanbul ignore next */ []);
|
|
11308
11339
|
this._containerClass = computed(() => datatableContainerVariants({ appearance: this.appearance() }), ...ngDevMode ? [{ debugName: "_containerClass" }] : /* istanbul ignore next */ []);
|
|
11340
|
+
this._hasRowActions = computed(() => this._rowActionIds().size > 0, ...ngDevMode ? [{ debugName: "_hasRowActions" }] : /* istanbul ignore next */ []);
|
|
11309
11341
|
this._headClass = computed(() => datatableHeadVariants({ appearance: this.appearance() }), ...ngDevMode ? [{ debugName: "_headClass" }] : /* istanbul ignore next */ []);
|
|
11310
11342
|
this._isEmpty = computed(() => !this.loading() && this.table.getRowModel().rows.length === 0, ...ngDevMode ? [{ debugName: "_isEmpty" }] : /* istanbul ignore next */ []);
|
|
11343
|
+
this._pinLimitReached = computed(() => {
|
|
11344
|
+
const max = this.maxPinnedColumns();
|
|
11345
|
+
return max !== void 0 && this._userPinnedIds().length >= max;
|
|
11346
|
+
}, ...ngDevMode ? [{ debugName: "_pinLimitReached" }] : /* istanbul ignore next */ []);
|
|
11347
|
+
this._pinnedIds = computed(() => new Set(this._userPinnedIds()), ...ngDevMode ? [{ debugName: "_pinnedIds" }] : /* istanbul ignore next */ []);
|
|
11348
|
+
this._pinOffsets = computed(() => {
|
|
11349
|
+
const start = this._columnPinning().start;
|
|
11350
|
+
return new Map(start.map((id, index) => [id, {
|
|
11351
|
+
left: `var(--yuw-datatable-pin-${index}, 0px)`,
|
|
11352
|
+
last: index === start.length - 1
|
|
11353
|
+
}]));
|
|
11354
|
+
}, ...ngDevMode ? [{ debugName: "_pinOffsets" }] : /* istanbul ignore next */ []);
|
|
11311
11355
|
this._rowClass = computed(() => datatableRowVariants({ appearance: this.appearance() }), ...ngDevMode ? [{ debugName: "_rowClass" }] : /* istanbul ignore next */ []);
|
|
11312
11356
|
this._rowClasses = computed(() => {
|
|
11313
11357
|
const base = cn("yuw-reveal-host", this._rowClass());
|
|
@@ -11327,6 +11371,15 @@ var YuwDatatableComponent = class YuwDatatableComponent {
|
|
|
11327
11371
|
const data = this.data();
|
|
11328
11372
|
untracked(() => this._clearSelectionOnNewData(data));
|
|
11329
11373
|
});
|
|
11374
|
+
afterEveryRender({
|
|
11375
|
+
earlyRead: () => this._readPinnedWidths(),
|
|
11376
|
+
write: (widths) => this._writePinOffsets(widths)
|
|
11377
|
+
});
|
|
11378
|
+
afterNextRender(() => {
|
|
11379
|
+
const observer = new ResizeObserver(() => this._writePinOffsets(this._readPinnedWidths()));
|
|
11380
|
+
observer.observe(this._table().nativeElement);
|
|
11381
|
+
this._destroyRef.onDestroy(() => observer.disconnect());
|
|
11382
|
+
});
|
|
11330
11383
|
}
|
|
11331
11384
|
snapshot() {
|
|
11332
11385
|
const snapshot = readTableSnapshot(this._table().nativeElement);
|
|
@@ -11349,10 +11402,26 @@ var YuwDatatableComponent = class YuwDatatableComponent {
|
|
|
11349
11402
|
event.preventDefault();
|
|
11350
11403
|
this.rowClicked.emit(row);
|
|
11351
11404
|
}
|
|
11405
|
+
togglePin(id) {
|
|
11406
|
+
this.pinnedColumns.update((pinned) => pinned.includes(id) ? pinned.filter((pinnedId) => pinnedId !== id) : [...pinned, id]);
|
|
11407
|
+
}
|
|
11352
11408
|
_clearSelectionOnNewData(data) {
|
|
11353
11409
|
if (this._selectionData !== void 0 && data !== this._selectionData && Object.keys(this.rowSelection()).length) this.rowSelection.set({});
|
|
11354
11410
|
this._selectionData = data;
|
|
11355
11411
|
}
|
|
11412
|
+
_readPinnedWidths() {
|
|
11413
|
+
const head = this._table().nativeElement.tHead;
|
|
11414
|
+
const cells = head?.rows[head.rows.length - 1]?.querySelectorAll(".yuw-datatable-pinned") ?? [];
|
|
11415
|
+
return Array.from(cells, (cell) => cell.getBoundingClientRect().width);
|
|
11416
|
+
}
|
|
11417
|
+
_writePinOffsets(widths) {
|
|
11418
|
+
const container = this._container().nativeElement;
|
|
11419
|
+
const total = widths.reduce((offset, width, index) => {
|
|
11420
|
+
container.style.setProperty(`--yuw-datatable-pin-${index}`, `${offset}px`);
|
|
11421
|
+
return offset + width;
|
|
11422
|
+
}, 0);
|
|
11423
|
+
container.style.setProperty("--yuw-datatable-pinned-width", `${total}px`);
|
|
11424
|
+
}
|
|
11356
11425
|
static {
|
|
11357
11426
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
11358
11427
|
minVersion: "12.0.0",
|
|
@@ -11441,6 +11510,13 @@ var YuwDatatableComponent = class YuwDatatableComponent {
|
|
|
11441
11510
|
isRequired: false,
|
|
11442
11511
|
transformFunction: null
|
|
11443
11512
|
},
|
|
11513
|
+
maxPinnedColumns: {
|
|
11514
|
+
classPropertyName: "maxPinnedColumns",
|
|
11515
|
+
publicName: "maxPinnedColumns",
|
|
11516
|
+
isSignal: true,
|
|
11517
|
+
isRequired: false,
|
|
11518
|
+
transformFunction: null
|
|
11519
|
+
},
|
|
11444
11520
|
nextPageLabel: {
|
|
11445
11521
|
classPropertyName: "nextPageLabel",
|
|
11446
11522
|
publicName: "nextPageLabel",
|
|
@@ -11476,6 +11552,20 @@ var YuwDatatableComponent = class YuwDatatableComponent {
|
|
|
11476
11552
|
isRequired: true,
|
|
11477
11553
|
transformFunction: null
|
|
11478
11554
|
},
|
|
11555
|
+
pinColumnLabel: {
|
|
11556
|
+
classPropertyName: "pinColumnLabel",
|
|
11557
|
+
publicName: "pinColumnLabel",
|
|
11558
|
+
isSignal: true,
|
|
11559
|
+
isRequired: false,
|
|
11560
|
+
transformFunction: null
|
|
11561
|
+
},
|
|
11562
|
+
pinnedColumns: {
|
|
11563
|
+
classPropertyName: "pinnedColumns",
|
|
11564
|
+
publicName: "pinnedColumns",
|
|
11565
|
+
isSignal: true,
|
|
11566
|
+
isRequired: false,
|
|
11567
|
+
transformFunction: null
|
|
11568
|
+
},
|
|
11479
11569
|
previousPageLabel: {
|
|
11480
11570
|
classPropertyName: "previousPageLabel",
|
|
11481
11571
|
publicName: "previousPageLabel",
|
|
@@ -11537,6 +11627,7 @@ var YuwDatatableComponent = class YuwDatatableComponent {
|
|
|
11537
11627
|
columnFilters: "columnFiltersChange",
|
|
11538
11628
|
columnVisibility: "columnVisibilityChange",
|
|
11539
11629
|
pagination: "paginationChange",
|
|
11630
|
+
pinnedColumns: "pinnedColumnsChange",
|
|
11540
11631
|
rowSelection: "rowSelectionChange",
|
|
11541
11632
|
sorting: "sortingChange",
|
|
11542
11633
|
rowClicked: "rowClicked",
|
|
@@ -11546,7 +11637,8 @@ var YuwDatatableComponent = class YuwDatatableComponent {
|
|
|
11546
11637
|
providers: [provideIcons({
|
|
11547
11638
|
lucideChevronDown,
|
|
11548
11639
|
lucideChevronUp,
|
|
11549
|
-
lucideChevronsUpDown
|
|
11640
|
+
lucideChevronsUpDown,
|
|
11641
|
+
lucidePin
|
|
11550
11642
|
})],
|
|
11551
11643
|
queries: [{
|
|
11552
11644
|
propertyName: "customPagination",
|
|
@@ -11556,6 +11648,12 @@ var YuwDatatableComponent = class YuwDatatableComponent {
|
|
|
11556
11648
|
isSignal: true
|
|
11557
11649
|
}],
|
|
11558
11650
|
viewQueries: [{
|
|
11651
|
+
propertyName: "_container",
|
|
11652
|
+
first: true,
|
|
11653
|
+
predicate: ["containerElement"],
|
|
11654
|
+
descendants: true,
|
|
11655
|
+
isSignal: true
|
|
11656
|
+
}, {
|
|
11559
11657
|
propertyName: "_table",
|
|
11560
11658
|
first: true,
|
|
11561
11659
|
predicate: ["tableElement"],
|
|
@@ -11563,7 +11661,7 @@ var YuwDatatableComponent = class YuwDatatableComponent {
|
|
|
11563
11661
|
isSignal: true
|
|
11564
11662
|
}],
|
|
11565
11663
|
ngImport: i0,
|
|
11566
|
-
template: "<div yuwTableContainer [class]=\"_containerClass()\">\n <table #tableElement yuwTable [class]=\"_tableClass()\">\n @if (caption()) {\n <caption yuwCaption>{{ caption() }}</caption>\n }\n\n <thead yuwTHead [class]=\"_headClass()\" [attr.inert]=\"loading() ? '' : null\">\n @for (headerGroup of table.getHeaderGroups(); track headerGroup.id) {\n <tr yuwTr [class]=\"_rowClass()\">\n @for (header of headerGroup.headers; track header.id) {\n @let sorted = header.column.getIsSorted();\n
|
|
11664
|
+
template: "<div #containerElement yuwTableContainer [class]=\"_containerClass()\">\n <table #tableElement yuwTable [class]=\"_tableClass()\">\n @if (caption()) {\n <caption yuwCaption>{{ caption() }}</caption>\n }\n\n <thead yuwTHead [class]=\"_headClass()\" [attr.inert]=\"loading() ? '' : null\">\n @for (headerGroup of table.getHeaderGroups(); track headerGroup.id) {\n <tr yuwTr [class]=\"_rowClass()\">\n @for (header of headerGroup.headers; track header.id) {\n @if (!_rowActionIds().has(header.column.id)) {\n @let sorted = header.column.getIsSorted();\n @let headerClasses = _cellClasses().get(header.column.id);\n @let pin = _pinOffsets().get(header.column.id);\n <th\n yuwTh\n scope=\"col\"\n [attr.colspan]=\"header.colSpan\"\n [attr.aria-sort]=\"sorted ? _ariaSort[sorted] : null\"\n [class]=\"headerClasses?.header\"\n [class.yuw-datatable-pinned]=\"!!pin\"\n [class.yuw-datatable-pinned-last]=\"!!pin?.last\"\n [style.left]=\"pin?.left ?? null\"\n >\n @if (!header.isPlaceholder) {\n <span class=\"inline-flex items-center gap-2\">\n @if (_pinnableIds().has(header.column.id)) {\n @let pinned = _pinnedIds().has(header.column.id);\n <button\n type=\"button\"\n class=\"yuw-datatable-pin\"\n [attr.aria-label]=\"pinColumnLabel() ?? null\"\n [attr.aria-pressed]=\"pinned\"\n [disabled]=\"!pinned && _pinLimitReached()\"\n (click)=\"togglePin(header.column.id)\"\n >\n <ng-icon name=\"lucidePin\" class=\"text-xs\" aria-hidden=\"true\" />\n </button>\n }\n\n @if (sortable() && header.column.getCanSort()) {\n <button\n type=\"button\"\n class=\"inline-flex items-center gap-1 select-none hover:text-foreground/80\"\n (click)=\"header.column.toggleSorting()\"\n >\n <ng-container\n *flexRender=\"header.column.columnDef.header; props: header.getContext(); let rendered\"\n >\n {{ rendered }}\n </ng-container>\n\n <ng-icon [name]=\"_sortIcon[sorted || 'none']\" class=\"shrink-0 text-xs\" aria-hidden=\"true\" />\n </button>\n } @else {\n <ng-container\n *flexRender=\"header.column.columnDef.header; props: header.getContext(); let rendered\"\n >\n {{ rendered }}\n </ng-container>\n }\n </span>\n }\n </th>\n }\n }\n\n @if (_hasRowActions()) {\n <th yuwTh scope=\"col\" [class]=\"_actionsHeaderClass()\">\n <span>\n @for (header of headerGroup.headers; track header.id) {\n @if (_rowActionIds().has(header.column.id) && !header.isPlaceholder) {\n <ng-container\n *flexRender=\"header.column.columnDef.header; props: header.getContext(); let rendered\"\n >\n {{ rendered }}\n </ng-container>\n }\n }\n </span>\n </th>\n }\n </tr>\n }\n </thead>\n\n <tbody yuwTBody>\n @if (loading()) {\n @for (row of _skeletonRows(); track row) {\n <tr yuwTr [class]=\"_rowClass()\">\n @for (column of table.getVisibleLeafColumns(); track column.id) {\n @if (!_rowActionIds().has(column.id)) {\n @let pin = _pinOffsets().get(column.id);\n <td\n yuwTd\n [class]=\"_cellClasses().get(column.id)?.cell\"\n [class.yuw-datatable-pinned]=\"!!pin\"\n [class.yuw-datatable-pinned-last]=\"!!pin?.last\"\n [style.left]=\"pin?.left ?? null\"\n >\n <span yuwSkeleton class=\"block h-4 w-full\"></span>\n </td>\n }\n }\n\n @if (_hasRowActions()) {\n <td yuwTd [class]=\"_actionsCellClass()\"></td>\n }\n </tr>\n }\n } @else if (_isEmpty()) {\n <tr yuwTr [class]=\"_rowClass()\">\n <td yuwTd [attr.colspan]=\"_columnCount()\" class=\"h-24 text-center text-muted-foreground\">\n {{ emptyText() ?? '' }}\n </td>\n </tr>\n } @else {\n @for (row of table.getRowModel().rows; track row.id) {\n <tr\n yuwTr\n [class]=\"_rowClasses().get(row.id)\"\n [attr.data-state]=\"row.getIsSelected() ? 'selected' : null\"\n role=\"button\"\n tabindex=\"0\"\n (click)=\"onRowClick(row.original)\"\n (keydown)=\"onRowKeydown($event, row.original)\"\n >\n @for (cell of row.getVisibleCells(); track cell.id) {\n @if (!_rowActionIds().has(cell.column.id)) {\n @let pin = _pinOffsets().get(cell.column.id);\n <td\n yuwTd\n [class]=\"_cellClasses().get(cell.column.id)?.cell\"\n [class.yuw-datatable-pinned]=\"!!pin\"\n [class.yuw-datatable-pinned-last]=\"!!pin?.last\"\n [style.left]=\"pin?.left ?? null\"\n >\n <ng-container *flexRender=\"cell.column.columnDef.cell; props: cell.getContext(); let rendered\">\n {{ rendered }}\n </ng-container>\n </td>\n }\n }\n\n @if (_hasRowActions()) {\n <td yuwTd [class]=\"_actionsCellClass()\">\n <div class=\"yuw-datatable-actions-group\">\n @for (cell of row.getEndVisibleCells(); track cell.id) {\n <ng-container *flexRender=\"cell.column.columnDef.cell; props: cell.getContext(); let rendered\">\n {{ rendered }}\n </ng-container>\n }\n </div>\n </td>\n }\n </tr>\n }\n }\n </tbody>\n </table>\n</div>\n\n@if (paginated()) {\n <div class=\"flex items-center flex-wrap justify-end gap-4 py-3 px-1 max-lg:justify-center\">\n @if (customPagination()) {\n <ng-content select=\"[yuwDatatablePagination]\" />\n }\n <yuw-pagination\n [page]=\"currentPage()\"\n (pageChange)=\"onPageChange($event)\"\n [totalPages]=\"totalPages()\"\n [previousLabel]=\"previousPageLabel()\"\n [nextLabel]=\"nextPageLabel()\"\n [ellipsisSrText]=\"paginationEllipsisSrText()\"\n [ariaLabel]=\"paginationAriaLabel()\"\n color=\"neutral\"\n size=\"icon-sm\"\n class=\"flex\"\n />\n </div>\n}\n",
|
|
11567
11665
|
dependencies: [
|
|
11568
11666
|
{
|
|
11569
11667
|
kind: "directive",
|
|
@@ -11672,15 +11770,20 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
11672
11770
|
providers: [provideIcons({
|
|
11673
11771
|
lucideChevronDown,
|
|
11674
11772
|
lucideChevronUp,
|
|
11675
|
-
lucideChevronsUpDown
|
|
11773
|
+
lucideChevronsUpDown,
|
|
11774
|
+
lucidePin
|
|
11676
11775
|
})],
|
|
11677
11776
|
host: { class: "contents" },
|
|
11678
11777
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
11679
|
-
template: "<div yuwTableContainer [class]=\"_containerClass()\">\n <table #tableElement yuwTable [class]=\"_tableClass()\">\n @if (caption()) {\n <caption yuwCaption>{{ caption() }}</caption>\n }\n\n <thead yuwTHead [class]=\"_headClass()\" [attr.inert]=\"loading() ? '' : null\">\n @for (headerGroup of table.getHeaderGroups(); track headerGroup.id) {\n <tr yuwTr [class]=\"_rowClass()\">\n @for (header of headerGroup.headers; track header.id) {\n @let sorted = header.column.getIsSorted();\n
|
|
11778
|
+
template: "<div #containerElement yuwTableContainer [class]=\"_containerClass()\">\n <table #tableElement yuwTable [class]=\"_tableClass()\">\n @if (caption()) {\n <caption yuwCaption>{{ caption() }}</caption>\n }\n\n <thead yuwTHead [class]=\"_headClass()\" [attr.inert]=\"loading() ? '' : null\">\n @for (headerGroup of table.getHeaderGroups(); track headerGroup.id) {\n <tr yuwTr [class]=\"_rowClass()\">\n @for (header of headerGroup.headers; track header.id) {\n @if (!_rowActionIds().has(header.column.id)) {\n @let sorted = header.column.getIsSorted();\n @let headerClasses = _cellClasses().get(header.column.id);\n @let pin = _pinOffsets().get(header.column.id);\n <th\n yuwTh\n scope=\"col\"\n [attr.colspan]=\"header.colSpan\"\n [attr.aria-sort]=\"sorted ? _ariaSort[sorted] : null\"\n [class]=\"headerClasses?.header\"\n [class.yuw-datatable-pinned]=\"!!pin\"\n [class.yuw-datatable-pinned-last]=\"!!pin?.last\"\n [style.left]=\"pin?.left ?? null\"\n >\n @if (!header.isPlaceholder) {\n <span class=\"inline-flex items-center gap-2\">\n @if (_pinnableIds().has(header.column.id)) {\n @let pinned = _pinnedIds().has(header.column.id);\n <button\n type=\"button\"\n class=\"yuw-datatable-pin\"\n [attr.aria-label]=\"pinColumnLabel() ?? null\"\n [attr.aria-pressed]=\"pinned\"\n [disabled]=\"!pinned && _pinLimitReached()\"\n (click)=\"togglePin(header.column.id)\"\n >\n <ng-icon name=\"lucidePin\" class=\"text-xs\" aria-hidden=\"true\" />\n </button>\n }\n\n @if (sortable() && header.column.getCanSort()) {\n <button\n type=\"button\"\n class=\"inline-flex items-center gap-1 select-none hover:text-foreground/80\"\n (click)=\"header.column.toggleSorting()\"\n >\n <ng-container\n *flexRender=\"header.column.columnDef.header; props: header.getContext(); let rendered\"\n >\n {{ rendered }}\n </ng-container>\n\n <ng-icon [name]=\"_sortIcon[sorted || 'none']\" class=\"shrink-0 text-xs\" aria-hidden=\"true\" />\n </button>\n } @else {\n <ng-container\n *flexRender=\"header.column.columnDef.header; props: header.getContext(); let rendered\"\n >\n {{ rendered }}\n </ng-container>\n }\n </span>\n }\n </th>\n }\n }\n\n @if (_hasRowActions()) {\n <th yuwTh scope=\"col\" [class]=\"_actionsHeaderClass()\">\n <span>\n @for (header of headerGroup.headers; track header.id) {\n @if (_rowActionIds().has(header.column.id) && !header.isPlaceholder) {\n <ng-container\n *flexRender=\"header.column.columnDef.header; props: header.getContext(); let rendered\"\n >\n {{ rendered }}\n </ng-container>\n }\n }\n </span>\n </th>\n }\n </tr>\n }\n </thead>\n\n <tbody yuwTBody>\n @if (loading()) {\n @for (row of _skeletonRows(); track row) {\n <tr yuwTr [class]=\"_rowClass()\">\n @for (column of table.getVisibleLeafColumns(); track column.id) {\n @if (!_rowActionIds().has(column.id)) {\n @let pin = _pinOffsets().get(column.id);\n <td\n yuwTd\n [class]=\"_cellClasses().get(column.id)?.cell\"\n [class.yuw-datatable-pinned]=\"!!pin\"\n [class.yuw-datatable-pinned-last]=\"!!pin?.last\"\n [style.left]=\"pin?.left ?? null\"\n >\n <span yuwSkeleton class=\"block h-4 w-full\"></span>\n </td>\n }\n }\n\n @if (_hasRowActions()) {\n <td yuwTd [class]=\"_actionsCellClass()\"></td>\n }\n </tr>\n }\n } @else if (_isEmpty()) {\n <tr yuwTr [class]=\"_rowClass()\">\n <td yuwTd [attr.colspan]=\"_columnCount()\" class=\"h-24 text-center text-muted-foreground\">\n {{ emptyText() ?? '' }}\n </td>\n </tr>\n } @else {\n @for (row of table.getRowModel().rows; track row.id) {\n <tr\n yuwTr\n [class]=\"_rowClasses().get(row.id)\"\n [attr.data-state]=\"row.getIsSelected() ? 'selected' : null\"\n role=\"button\"\n tabindex=\"0\"\n (click)=\"onRowClick(row.original)\"\n (keydown)=\"onRowKeydown($event, row.original)\"\n >\n @for (cell of row.getVisibleCells(); track cell.id) {\n @if (!_rowActionIds().has(cell.column.id)) {\n @let pin = _pinOffsets().get(cell.column.id);\n <td\n yuwTd\n [class]=\"_cellClasses().get(cell.column.id)?.cell\"\n [class.yuw-datatable-pinned]=\"!!pin\"\n [class.yuw-datatable-pinned-last]=\"!!pin?.last\"\n [style.left]=\"pin?.left ?? null\"\n >\n <ng-container *flexRender=\"cell.column.columnDef.cell; props: cell.getContext(); let rendered\">\n {{ rendered }}\n </ng-container>\n </td>\n }\n }\n\n @if (_hasRowActions()) {\n <td yuwTd [class]=\"_actionsCellClass()\">\n <div class=\"yuw-datatable-actions-group\">\n @for (cell of row.getEndVisibleCells(); track cell.id) {\n <ng-container *flexRender=\"cell.column.columnDef.cell; props: cell.getContext(); let rendered\">\n {{ rendered }}\n </ng-container>\n }\n </div>\n </td>\n }\n </tr>\n }\n }\n </tbody>\n </table>\n</div>\n\n@if (paginated()) {\n <div class=\"flex items-center flex-wrap justify-end gap-4 py-3 px-1 max-lg:justify-center\">\n @if (customPagination()) {\n <ng-content select=\"[yuwDatatablePagination]\" />\n }\n <yuw-pagination\n [page]=\"currentPage()\"\n (pageChange)=\"onPageChange($event)\"\n [totalPages]=\"totalPages()\"\n [previousLabel]=\"previousPageLabel()\"\n [nextLabel]=\"nextPageLabel()\"\n [ellipsisSrText]=\"paginationEllipsisSrText()\"\n [ariaLabel]=\"paginationAriaLabel()\"\n color=\"neutral\"\n size=\"icon-sm\"\n class=\"flex\"\n />\n </div>\n}\n"
|
|
11680
11779
|
}]
|
|
11681
11780
|
}],
|
|
11682
11781
|
ctorParameters: () => [],
|
|
11683
11782
|
propDecorators: {
|
|
11783
|
+
_container: [{
|
|
11784
|
+
type: i0.ViewChild,
|
|
11785
|
+
args: ["containerElement", { isSignal: true }]
|
|
11786
|
+
}],
|
|
11684
11787
|
_table: [{
|
|
11685
11788
|
type: i0.ViewChild,
|
|
11686
11789
|
args: ["tableElement", { isSignal: true }]
|
|
@@ -11775,6 +11878,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
11775
11878
|
required: false
|
|
11776
11879
|
}]
|
|
11777
11880
|
}],
|
|
11881
|
+
maxPinnedColumns: [{
|
|
11882
|
+
type: i0.Input,
|
|
11883
|
+
args: [{
|
|
11884
|
+
isSignal: true,
|
|
11885
|
+
alias: "maxPinnedColumns",
|
|
11886
|
+
required: false
|
|
11887
|
+
}]
|
|
11888
|
+
}],
|
|
11778
11889
|
nextPageLabel: [{
|
|
11779
11890
|
type: i0.Input,
|
|
11780
11891
|
args: [{
|
|
@@ -11818,6 +11929,25 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
11818
11929
|
required: true
|
|
11819
11930
|
}]
|
|
11820
11931
|
}],
|
|
11932
|
+
pinColumnLabel: [{
|
|
11933
|
+
type: i0.Input,
|
|
11934
|
+
args: [{
|
|
11935
|
+
isSignal: true,
|
|
11936
|
+
alias: "pinColumnLabel",
|
|
11937
|
+
required: false
|
|
11938
|
+
}]
|
|
11939
|
+
}],
|
|
11940
|
+
pinnedColumns: [{
|
|
11941
|
+
type: i0.Input,
|
|
11942
|
+
args: [{
|
|
11943
|
+
isSignal: true,
|
|
11944
|
+
alias: "pinnedColumns",
|
|
11945
|
+
required: false
|
|
11946
|
+
}]
|
|
11947
|
+
}, {
|
|
11948
|
+
type: i0.Output,
|
|
11949
|
+
args: ["pinnedColumnsChange"]
|
|
11950
|
+
}],
|
|
11821
11951
|
previousPageLabel: [{
|
|
11822
11952
|
type: i0.Input,
|
|
11823
11953
|
args: [{
|
|
@@ -12158,15 +12288,12 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
12158
12288
|
}]
|
|
12159
12289
|
}
|
|
12160
12290
|
});
|
|
12161
|
-
function buildYuwActionsColumn(label, onEdit,
|
|
12291
|
+
function buildYuwActionsColumn(label, onEdit, header = "") {
|
|
12162
12292
|
return {
|
|
12163
12293
|
id: "actions",
|
|
12164
12294
|
header,
|
|
12165
12295
|
enableSorting: false,
|
|
12166
|
-
meta:
|
|
12167
|
-
align: "end",
|
|
12168
|
-
cellClass
|
|
12169
|
-
} : { align: "end" },
|
|
12296
|
+
meta: { rowAction: true },
|
|
12170
12297
|
cell: ({ row }) => flexRenderComponent(YuwActionsCellComponent, { inputs: {
|
|
12171
12298
|
label,
|
|
12172
12299
|
onEdit: () => onEdit(row.original)
|
|
@@ -20163,10 +20290,7 @@ function buildYuwsIconActionColumn(column) {
|
|
|
20163
20290
|
id: column.id,
|
|
20164
20291
|
header: column.header ?? "",
|
|
20165
20292
|
enableSorting: false,
|
|
20166
|
-
meta: {
|
|
20167
|
-
align: "end",
|
|
20168
|
-
cellClass: "w-12"
|
|
20169
|
-
},
|
|
20293
|
+
meta: { rowAction: true },
|
|
20170
20294
|
cell: ({ row }) => column.visible?.(row.original) ?? true ? flexRenderComponent(YuwsIconActionCellComponent, { inputs: {
|
|
20171
20295
|
icon: column.icon,
|
|
20172
20296
|
label: column.label,
|
|
@@ -20181,10 +20305,7 @@ function buildYuwsMenuActionsColumn(column) {
|
|
|
20181
20305
|
id: "actions",
|
|
20182
20306
|
header: column.header ?? "",
|
|
20183
20307
|
enableSorting: false,
|
|
20184
|
-
meta: {
|
|
20185
|
-
align: "end",
|
|
20186
|
-
cellClass: "w-12"
|
|
20187
|
-
},
|
|
20308
|
+
meta: { rowAction: true },
|
|
20188
20309
|
cell: ({ row }) => {
|
|
20189
20310
|
const actions = column.actions(row.original);
|
|
20190
20311
|
return actions.length ? flexRenderComponent(YuwsMenuActionsCellComponent, { inputs: {
|
|
@@ -20196,7 +20317,7 @@ function buildYuwsMenuActionsColumn(column) {
|
|
|
20196
20317
|
}
|
|
20197
20318
|
function buildYuwsSelectColumn(labels) {
|
|
20198
20319
|
return {
|
|
20199
|
-
id:
|
|
20320
|
+
id: YUW_DATATABLE_SELECT_COLUMN_ID,
|
|
20200
20321
|
header: ({ table }) => {
|
|
20201
20322
|
const rows = table.getRowModel().rows;
|
|
20202
20323
|
const selected = rows.filter((row) => row.getIsSelected()).length;
|
|
@@ -21726,6 +21847,7 @@ var YuwsListTableComponent = class YuwsListTableComponent {
|
|
|
21726
21847
|
...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
|
|
21727
21848
|
transform: booleanAttribute
|
|
21728
21849
|
});
|
|
21850
|
+
this.pinColumnLabel = input(...ngDevMode ? [void 0, { debugName: "pinColumnLabel" }] : /* istanbul ignore next */ []);
|
|
21729
21851
|
this.rowClass = input(...ngDevMode ? [void 0, { debugName: "rowClass" }] : /* istanbul ignore next */ []);
|
|
21730
21852
|
this.selectable = input(false, {
|
|
21731
21853
|
...ngDevMode ? { debugName: "selectable" } : /* istanbul ignore next */ {},
|
|
@@ -21805,6 +21927,13 @@ var YuwsListTableComponent = class YuwsListTableComponent {
|
|
|
21805
21927
|
isRequired: false,
|
|
21806
21928
|
transformFunction: null
|
|
21807
21929
|
},
|
|
21930
|
+
pinColumnLabel: {
|
|
21931
|
+
classPropertyName: "pinColumnLabel",
|
|
21932
|
+
publicName: "pinColumnLabel",
|
|
21933
|
+
isSignal: true,
|
|
21934
|
+
isRequired: false,
|
|
21935
|
+
transformFunction: null
|
|
21936
|
+
},
|
|
21808
21937
|
rowClass: {
|
|
21809
21938
|
classPropertyName: "rowClass",
|
|
21810
21939
|
publicName: "rowClass",
|
|
@@ -21840,7 +21969,7 @@ var YuwsListTableComponent = class YuwsListTableComponent {
|
|
|
21840
21969
|
isSignal: true
|
|
21841
21970
|
}],
|
|
21842
21971
|
ngImport: i0,
|
|
21843
|
-
template: "<yuw-datatable\n sortable\n paginated\n appearance=\"card\"\n [nextPageLabel]=\"labels().next\"\n [previousPageLabel]=\"labels().previous\"\n [paginationEllipsisSrText]=\"labels().ellipsis\"\n [paginationAriaLabel]=\"labels().ariaLabel\"\n [emptyText]=\"emptyText()\"\n [columns]=\"columns()\"\n [data]=\"data()\"\n [totalItems]=\"total()\"\n [loading]=\"loading()\"\n [rowClass]=\"rowClass()\"\n [selectable]=\"selectable()\"\n [pagination]=\"list().pagination()\"\n [sorting]=\"list().sorting()\"\n [(columnVisibility)]=\"columnVisibility\"\n (paginationChange)=\"list().pagination.set($event)\"\n (sortingChange)=\"list().sorting.set($event)\"\n (rowClicked)=\"rowClicked.emit($event)\"\n (selectedRowsChange)=\"selectedRowsChange.emit($event)\"\n>\n <yuws-page-size yuwDatatablePagination [list]=\"list()\" [labels]=\"labels().pageSize\" [disabled]=\"loading()\" />\n</yuw-datatable>\n",
|
|
21972
|
+
template: "<yuw-datatable\n sortable\n paginated\n appearance=\"card\"\n [nextPageLabel]=\"labels().next\"\n [previousPageLabel]=\"labels().previous\"\n [paginationEllipsisSrText]=\"labels().ellipsis\"\n [paginationAriaLabel]=\"labels().ariaLabel\"\n [emptyText]=\"emptyText()\"\n [columns]=\"columns()\"\n [data]=\"data()\"\n [totalItems]=\"total()\"\n [loading]=\"loading()\"\n [pinColumnLabel]=\"pinColumnLabel()\"\n [rowClass]=\"rowClass()\"\n [selectable]=\"selectable()\"\n [pagination]=\"list().pagination()\"\n [sorting]=\"list().sorting()\"\n [(columnVisibility)]=\"columnVisibility\"\n (paginationChange)=\"list().pagination.set($event)\"\n (sortingChange)=\"list().sorting.set($event)\"\n (rowClicked)=\"rowClicked.emit($event)\"\n (selectedRowsChange)=\"selectedRowsChange.emit($event)\"\n>\n <yuws-page-size yuwDatatablePagination [list]=\"list()\" [labels]=\"labels().pageSize\" [disabled]=\"loading()\" />\n</yuw-datatable>\n",
|
|
21844
21973
|
dependencies: [
|
|
21845
21974
|
{
|
|
21846
21975
|
kind: "component",
|
|
@@ -21857,11 +21986,14 @@ var YuwsListTableComponent = class YuwsListTableComponent {
|
|
|
21857
21986
|
"emptyText",
|
|
21858
21987
|
"loading",
|
|
21859
21988
|
"loadingRows",
|
|
21989
|
+
"maxPinnedColumns",
|
|
21860
21990
|
"nextPageLabel",
|
|
21861
21991
|
"paginated",
|
|
21862
21992
|
"pagination",
|
|
21863
21993
|
"paginationAriaLabel",
|
|
21864
21994
|
"paginationEllipsisSrText",
|
|
21995
|
+
"pinColumnLabel",
|
|
21996
|
+
"pinnedColumns",
|
|
21865
21997
|
"previousPageLabel",
|
|
21866
21998
|
"rowClass",
|
|
21867
21999
|
"rowSelection",
|
|
@@ -21875,6 +22007,7 @@ var YuwsListTableComponent = class YuwsListTableComponent {
|
|
|
21875
22007
|
"columnFiltersChange",
|
|
21876
22008
|
"columnVisibilityChange",
|
|
21877
22009
|
"paginationChange",
|
|
22010
|
+
"pinnedColumnsChange",
|
|
21878
22011
|
"rowSelectionChange",
|
|
21879
22012
|
"sortingChange",
|
|
21880
22013
|
"rowClicked",
|
|
@@ -21916,7 +22049,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
21916
22049
|
YuwDatatablePaginationDirective,
|
|
21917
22050
|
YuwsPageSizeComponent
|
|
21918
22051
|
],
|
|
21919
|
-
template: "<yuw-datatable\n sortable\n paginated\n appearance=\"card\"\n [nextPageLabel]=\"labels().next\"\n [previousPageLabel]=\"labels().previous\"\n [paginationEllipsisSrText]=\"labels().ellipsis\"\n [paginationAriaLabel]=\"labels().ariaLabel\"\n [emptyText]=\"emptyText()\"\n [columns]=\"columns()\"\n [data]=\"data()\"\n [totalItems]=\"total()\"\n [loading]=\"loading()\"\n [rowClass]=\"rowClass()\"\n [selectable]=\"selectable()\"\n [pagination]=\"list().pagination()\"\n [sorting]=\"list().sorting()\"\n [(columnVisibility)]=\"columnVisibility\"\n (paginationChange)=\"list().pagination.set($event)\"\n (sortingChange)=\"list().sorting.set($event)\"\n (rowClicked)=\"rowClicked.emit($event)\"\n (selectedRowsChange)=\"selectedRowsChange.emit($event)\"\n>\n <yuws-page-size yuwDatatablePagination [list]=\"list()\" [labels]=\"labels().pageSize\" [disabled]=\"loading()\" />\n</yuw-datatable>\n"
|
|
22052
|
+
template: "<yuw-datatable\n sortable\n paginated\n appearance=\"card\"\n [nextPageLabel]=\"labels().next\"\n [previousPageLabel]=\"labels().previous\"\n [paginationEllipsisSrText]=\"labels().ellipsis\"\n [paginationAriaLabel]=\"labels().ariaLabel\"\n [emptyText]=\"emptyText()\"\n [columns]=\"columns()\"\n [data]=\"data()\"\n [totalItems]=\"total()\"\n [loading]=\"loading()\"\n [pinColumnLabel]=\"pinColumnLabel()\"\n [rowClass]=\"rowClass()\"\n [selectable]=\"selectable()\"\n [pagination]=\"list().pagination()\"\n [sorting]=\"list().sorting()\"\n [(columnVisibility)]=\"columnVisibility\"\n (paginationChange)=\"list().pagination.set($event)\"\n (sortingChange)=\"list().sorting.set($event)\"\n (rowClicked)=\"rowClicked.emit($event)\"\n (selectedRowsChange)=\"selectedRowsChange.emit($event)\"\n>\n <yuws-page-size yuwDatatablePagination [list]=\"list()\" [labels]=\"labels().pageSize\" [disabled]=\"loading()\" />\n</yuw-datatable>\n"
|
|
21920
22053
|
}]
|
|
21921
22054
|
}],
|
|
21922
22055
|
propDecorators: {
|
|
@@ -21983,6 +22116,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
21983
22116
|
required: false
|
|
21984
22117
|
}]
|
|
21985
22118
|
}],
|
|
22119
|
+
pinColumnLabel: [{
|
|
22120
|
+
type: i0.Input,
|
|
22121
|
+
args: [{
|
|
22122
|
+
isSignal: true,
|
|
22123
|
+
alias: "pinColumnLabel",
|
|
22124
|
+
required: false
|
|
22125
|
+
}]
|
|
22126
|
+
}],
|
|
21986
22127
|
rowClass: [{
|
|
21987
22128
|
type: i0.Input,
|
|
21988
22129
|
args: [{
|
|
@@ -25845,6 +25986,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
25845
25986
|
}]
|
|
25846
25987
|
}
|
|
25847
25988
|
});
|
|
25848
|
-
export { DATATABLE_ALIGN_CLASS, DATATABLE_LAYOUT_CLASS, DATATABLE_WRAP_CONTENT_CLASS, YUWS_AVATAR_NAME_HEADER_CLASS, YUWS_NO_DATA_PLACEHOLDER, YUW_DATATABLE_FEATURES, YUW_DATATABLE_WRAP_MIN_WIDTH, YUW_DATE_RANGES, YUW_MENU_INDICATOR_ITEM_CLASS, YUW_MENU_ITEM_CLASS, YUW_MENU_LABEL_CLASS, YUW_MENU_PANEL_CLASS, YUW_MENU_SEPARATOR_CLASS, YUW_PASSWORD_REVEAL_STATES, YUW_SIDEBAR_RAIL_ICON_SIZE, YUW_SIDEBAR_RAIL_WIDTH, YUW_TABLE_SHARE_FORMATS, YuwAccordion, YuwAccordionContentComponent, YuwAccordionImports, YuwAccordionItem, YuwAccordionTriggerComponent, YuwActionsCellComponent, YuwAlertActionDirective, YuwAlertComponent, YuwAlertDescriptionDirective, YuwAlertDialogComponent, YuwAlertDialogMediaDirective, YuwAlertDialogTriggerDirective, YuwAlertImports, YuwAlertTitleDirective, YuwAttachmentActionDirective, YuwAttachmentActionsDirective, YuwAttachmentContentDirective, YuwAttachmentDescriptionDirective, YuwAttachmentDirective, YuwAttachmentGroupDirective, YuwAttachmentMediaDirective, YuwAttachmentTitleDirective, YuwAttachmentTriggerDirective, YuwAvatarComponent, YuwBadgeComponent, YuwBreadcrumbComponent, YuwBreadcrumbTrailService, YuwButtonComponent, YuwButtonGroupComponent, YuwButtonGroupContentDirective, YuwCalendarComponent, YuwCaptionDirective, YuwCardActionDirective, YuwCardContentDirective, YuwCardDescriptionDirective, YuwCardDirective, YuwCardFooterDirective, YuwCardHeaderDirective, YuwCardImports, YuwCardTitleDirective, YuwCheckboxComponent, YuwClassDirective, YuwComboboxComponent, YuwComboboxItemDirective, YuwComboboxTriggerButtonDirective, YuwComboboxTriggerDirective, YuwCommandComponent, YuwCommandDialogComponent, YuwContextMenuCheckboxDirective, YuwContextMenuCheckboxIndicatorComponent, YuwContextMenuDirective, YuwContextMenuGroupDirective, YuwContextMenuImports, YuwContextMenuItemDirective, YuwContextMenuLabelDirective, YuwContextMenuRadioDirective, YuwContextMenuRadioIndicatorComponent, YuwContextMenuSeparatorDirective, YuwContextMenuShortcutDirective, YuwContextMenuSubDirective, YuwContextMenuSubIndicatorComponent, YuwContextMenuSubTriggerDirective, YuwContextMenuTriggerDirective, YuwDatatableComponent, YuwDatatablePaginationDirective, YuwDatatableRowSelect, YuwDatepickerComponent, YuwDatepickerTriggerDirective, YuwDialogCloseDirective, YuwDialogComponent, YuwDialogFooterDirective, YuwDialogImports, YuwDialogTriggerDirective, YuwEmptyContentDirective, YuwEmptyDescriptionDirective, YuwEmptyDirective, YuwEmptyHeaderDirective, YuwEmptyImports, YuwEmptyMediaDirective, YuwEmptyTitleDirective, YuwFieldBase, YuwInputAddonImports, YuwInputComponent, YuwInputFileComponent, YuwInputOtpComponent, YuwItemActionsDirective, YuwItemContentDirective, YuwItemDescriptionDirective, YuwItemDirective, YuwItemFooterDirective, YuwItemGroupDirective, YuwItemHeaderDirective, YuwItemImports, YuwItemMediaDirective, YuwItemSeparatorDirective, YuwItemTitleDirective, YuwLabel, YuwLayoutComponent, YuwLeftAddonDirective, YuwMouseScrollXDirective, YuwMouseScrollYDirective, YuwPaginationComponent, YuwPasswordInputComponent, YuwPopoverComponent, YuwPopoverTriggerDirective, YuwProgressComponent, YuwRadioGroupComponent, YuwRightAddonDirective, YuwSearchInputComponent, YuwSheetCloseDirective, YuwSheetComponent, YuwSheetFooterDirective, YuwSheetHeaderDirective, YuwSheetImports, YuwSheetTriggerDirective, YuwSidebarComponent, YuwSidebarContentDirective, YuwSidebarContentExtraDirective, YuwSidebarFooterDirective, YuwSidebarFooterExtraDirective, YuwSidebarGroupContentDirective, YuwSidebarGroupDirective, YuwSidebarGroupLabelDirective, YuwSidebarHeaderDirective, YuwSidebarInsetDirective, YuwSidebarMenuAvatarButtonDirective, YuwSidebarMenuBadgeDirective, YuwSidebarMenuButtonDirective, YuwSidebarMenuDirective, YuwSidebarMenuItemDirective, YuwSidebarMenuSubButtonDirective, YuwSidebarMenuSubDirective, YuwSidebarMenuSubItemDirective, YuwSidebarRailDirective, YuwSidebarRailService, YuwSidebarSeparatorDirective, YuwSidebarService, YuwSidebarSubmenuService, YuwSidebarTriggerComponent, YuwSidebarWrapperDirective, YuwSkeletonDirective, YuwSpinnerComponent, YuwStepIndicatorDirective, YuwStepPanelDirective, YuwStepperComponent, YuwSwitchCardComponent, YuwSwitchComponent, YuwTBodyDirective, YuwTFootDirective, YuwTHeadDirective, YuwTabContentDirective, YuwTabPanelDirective, YuwTableContainerDirective, YuwTableDirective, YuwTableImports, YuwTabsComponent, YuwTdDirective, YuwTextFieldBase, YuwTextareaComponent, YuwThDirective, YuwToasterComponent, YuwToggleGroupComponent, YuwTooltipDirective, YuwTrDirective, YuwValueAccessorBase, YuwsActiveStatusCellComponent, YuwsAdvanceOnEnterDirective, YuwsAvatarNameCellComponent, YuwsBadgeListCellComponent, YuwsCardGridComponent, YuwsCardGridItemComponent, YuwsClampedTextCellComponent, YuwsConfirmDialogComponent, YuwsCopyButtonComponent, YuwsFilterComboboxComponent, YuwsFilterContentDirective, YuwsFlagCellComponent, YuwsFormSheetComponent, YuwsIconActionCellComponent, YuwsImageCellComponent, YuwsImageFieldComponent, YuwsImageUploadComponent, YuwsLinkCellComponent, YuwsListPaginationComponent, YuwsListTableComponent, YuwsListToolbarComponent, YuwsMenuActionsCellComponent, YuwsOverflowListCellComponent, YuwsPageHeaderComponent, YuwsPageSizeComponent, YuwsSelectCellComponent, YuwsStackedTextCellComponent, YuwsStatCardComponent, YuwsStatusToggleCellComponent, YuwsTitleSkeletonDirective, YuwsWeekdayPickerComponent, buildInputOtpGroups, buildYuwActionsColumn, buildYuwTableSnapshot, buildYuwsActiveStatusColumn, buildYuwsDateTimeColumn, buildYuwsIconActionColumn, buildYuwsMenuActionsColumn, buildYuwsOptionalTextColumn, buildYuwsSelectColumn, buildYuwsStatusToggleColumn, cn, createPagedList, createYuwsSheetEditor, datatableCellVariants, datatableContainerVariants, datatableHeadVariants, datatableHeaderCellVariants, datatableRowVariants, getPaginationRange, provideValueAccessor, provideYuwSidebarConfig, shareTable, totalInputOtpLength, yuwCommandDefaultFilter, yuwCountdownToast, yuwDatePresets, yuwQuarterRange, yuwToast, yuwsDateFilterValue, yuwsInitialsOf, yuwsMediaQuerySignal, yuwsPendingRowClass, yuwsReadFileAsDataUrl, yuwsResolveDateFilter, yuwsStandardDatePresets };
|
|
25989
|
+
export { DATATABLE_ACTIONS_CELL_CLASS, DATATABLE_ALIGN_CLASS, DATATABLE_LAYOUT_CLASS, DATATABLE_WRAP_CONTENT_CLASS, YUWS_AVATAR_NAME_HEADER_CLASS, YUWS_NO_DATA_PLACEHOLDER, YUW_DATATABLE_FEATURES, YUW_DATATABLE_SELECT_COLUMN_ID, YUW_DATATABLE_WRAP_MIN_WIDTH, YUW_DATE_RANGES, YUW_MENU_INDICATOR_ITEM_CLASS, YUW_MENU_ITEM_CLASS, YUW_MENU_LABEL_CLASS, YUW_MENU_PANEL_CLASS, YUW_MENU_SEPARATOR_CLASS, YUW_PASSWORD_REVEAL_STATES, YUW_SIDEBAR_RAIL_ICON_SIZE, YUW_SIDEBAR_RAIL_WIDTH, YUW_TABLE_SHARE_FORMATS, YuwAccordion, YuwAccordionContentComponent, YuwAccordionImports, YuwAccordionItem, YuwAccordionTriggerComponent, YuwActionsCellComponent, YuwAlertActionDirective, YuwAlertComponent, YuwAlertDescriptionDirective, YuwAlertDialogComponent, YuwAlertDialogMediaDirective, YuwAlertDialogTriggerDirective, YuwAlertImports, YuwAlertTitleDirective, YuwAttachmentActionDirective, YuwAttachmentActionsDirective, YuwAttachmentContentDirective, YuwAttachmentDescriptionDirective, YuwAttachmentDirective, YuwAttachmentGroupDirective, YuwAttachmentMediaDirective, YuwAttachmentTitleDirective, YuwAttachmentTriggerDirective, YuwAvatarComponent, YuwBadgeComponent, YuwBreadcrumbComponent, YuwBreadcrumbTrailService, YuwButtonComponent, YuwButtonGroupComponent, YuwButtonGroupContentDirective, YuwCalendarComponent, YuwCaptionDirective, YuwCardActionDirective, YuwCardContentDirective, YuwCardDescriptionDirective, YuwCardDirective, YuwCardFooterDirective, YuwCardHeaderDirective, YuwCardImports, YuwCardTitleDirective, YuwCheckboxComponent, YuwClassDirective, YuwComboboxComponent, YuwComboboxItemDirective, YuwComboboxTriggerButtonDirective, YuwComboboxTriggerDirective, YuwCommandComponent, YuwCommandDialogComponent, YuwContextMenuCheckboxDirective, YuwContextMenuCheckboxIndicatorComponent, YuwContextMenuDirective, YuwContextMenuGroupDirective, YuwContextMenuImports, YuwContextMenuItemDirective, YuwContextMenuLabelDirective, YuwContextMenuRadioDirective, YuwContextMenuRadioIndicatorComponent, YuwContextMenuSeparatorDirective, YuwContextMenuShortcutDirective, YuwContextMenuSubDirective, YuwContextMenuSubIndicatorComponent, YuwContextMenuSubTriggerDirective, YuwContextMenuTriggerDirective, YuwDatatableComponent, YuwDatatablePaginationDirective, YuwDatatableRowSelect, YuwDatepickerComponent, YuwDatepickerTriggerDirective, YuwDialogCloseDirective, YuwDialogComponent, YuwDialogFooterDirective, YuwDialogImports, YuwDialogTriggerDirective, YuwEmptyContentDirective, YuwEmptyDescriptionDirective, YuwEmptyDirective, YuwEmptyHeaderDirective, YuwEmptyImports, YuwEmptyMediaDirective, YuwEmptyTitleDirective, YuwFieldBase, YuwInputAddonImports, YuwInputComponent, YuwInputFileComponent, YuwInputOtpComponent, YuwItemActionsDirective, YuwItemContentDirective, YuwItemDescriptionDirective, YuwItemDirective, YuwItemFooterDirective, YuwItemGroupDirective, YuwItemHeaderDirective, YuwItemImports, YuwItemMediaDirective, YuwItemSeparatorDirective, YuwItemTitleDirective, YuwLabel, YuwLayoutComponent, YuwLeftAddonDirective, YuwMouseScrollXDirective, YuwMouseScrollYDirective, YuwPaginationComponent, YuwPasswordInputComponent, YuwPopoverComponent, YuwPopoverTriggerDirective, YuwProgressComponent, YuwRadioGroupComponent, YuwRightAddonDirective, YuwSearchInputComponent, YuwSheetCloseDirective, YuwSheetComponent, YuwSheetFooterDirective, YuwSheetHeaderDirective, YuwSheetImports, YuwSheetTriggerDirective, YuwSidebarComponent, YuwSidebarContentDirective, YuwSidebarContentExtraDirective, YuwSidebarFooterDirective, YuwSidebarFooterExtraDirective, YuwSidebarGroupContentDirective, YuwSidebarGroupDirective, YuwSidebarGroupLabelDirective, YuwSidebarHeaderDirective, YuwSidebarInsetDirective, YuwSidebarMenuAvatarButtonDirective, YuwSidebarMenuBadgeDirective, YuwSidebarMenuButtonDirective, YuwSidebarMenuDirective, YuwSidebarMenuItemDirective, YuwSidebarMenuSubButtonDirective, YuwSidebarMenuSubDirective, YuwSidebarMenuSubItemDirective, YuwSidebarRailDirective, YuwSidebarRailService, YuwSidebarSeparatorDirective, YuwSidebarService, YuwSidebarSubmenuService, YuwSidebarTriggerComponent, YuwSidebarWrapperDirective, YuwSkeletonDirective, YuwSpinnerComponent, YuwStepIndicatorDirective, YuwStepPanelDirective, YuwStepperComponent, YuwSwitchCardComponent, YuwSwitchComponent, YuwTBodyDirective, YuwTFootDirective, YuwTHeadDirective, YuwTabContentDirective, YuwTabPanelDirective, YuwTableContainerDirective, YuwTableDirective, YuwTableImports, YuwTabsComponent, YuwTdDirective, YuwTextFieldBase, YuwTextareaComponent, YuwThDirective, YuwToasterComponent, YuwToggleGroupComponent, YuwTooltipDirective, YuwTrDirective, YuwValueAccessorBase, YuwsActiveStatusCellComponent, YuwsAdvanceOnEnterDirective, YuwsAvatarNameCellComponent, YuwsBadgeListCellComponent, YuwsCardGridComponent, YuwsCardGridItemComponent, YuwsClampedTextCellComponent, YuwsConfirmDialogComponent, YuwsCopyButtonComponent, YuwsFilterComboboxComponent, YuwsFilterContentDirective, YuwsFlagCellComponent, YuwsFormSheetComponent, YuwsIconActionCellComponent, YuwsImageCellComponent, YuwsImageFieldComponent, YuwsImageUploadComponent, YuwsLinkCellComponent, YuwsListPaginationComponent, YuwsListTableComponent, YuwsListToolbarComponent, YuwsMenuActionsCellComponent, YuwsOverflowListCellComponent, YuwsPageHeaderComponent, YuwsPageSizeComponent, YuwsSelectCellComponent, YuwsStackedTextCellComponent, YuwsStatCardComponent, YuwsStatusToggleCellComponent, YuwsTitleSkeletonDirective, YuwsWeekdayPickerComponent, buildInputOtpGroups, buildYuwActionsColumn, buildYuwTableSnapshot, buildYuwsActiveStatusColumn, buildYuwsDateTimeColumn, buildYuwsIconActionColumn, buildYuwsMenuActionsColumn, buildYuwsOptionalTextColumn, buildYuwsSelectColumn, buildYuwsStatusToggleColumn, cn, createPagedList, createYuwsSheetEditor, datatableCellVariants, datatableContainerVariants, datatableHeadVariants, datatableHeaderCellVariants, datatableRowVariants, getPaginationRange, provideValueAccessor, provideYuwSidebarConfig, shareTable, totalInputOtpLength, yuwCommandDefaultFilter, yuwCountdownToast, yuwDatePresets, yuwQuarterRange, yuwToast, yuwsDateFilterValue, yuwsInitialsOf, yuwsMediaQuerySignal, yuwsPendingRowClass, yuwsReadFileAsDataUrl, yuwsResolveDateFilter, yuwsStandardDatePresets };
|
|
25849
25990
|
|
|
25850
25991
|
//# sourceMappingURL=yukit-web.mjs.map
|