@tectra-ng/ui 0.1.3 → 0.1.5
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/accordion/README.md +61 -0
- package/breadcrumb/README.md +57 -0
- package/carousel/README.md +53 -0
- package/fesm2022/tectra-ng-ui-accordion.mjs +980 -0
- package/fesm2022/tectra-ng-ui-accordion.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-autocomplete.mjs +2 -2
- package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-breadcrumb.mjs +382 -0
- package/fesm2022/tectra-ng-ui-breadcrumb.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-carousel.mjs +939 -0
- package/fesm2022/tectra-ng-ui-carousel.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-cascade-select.mjs +2 -2
- package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-chips-input.mjs +2 -2
- package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-color-picker.mjs +2 -2
- package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-field.mjs +1 -1
- package/fesm2022/tectra-ng-ui-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-file-upload.mjs +1452 -0
- package/fesm2022/tectra-ng-ui-file-upload.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-galleria.mjs +1140 -0
- package/fesm2022/tectra-ng-ui-galleria.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-image.mjs +759 -0
- package/fesm2022/tectra-ng-ui-image.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-input-group.mjs +2 -2
- package/fesm2022/tectra-ng-ui-input-group.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input.mjs +2 -2
- package/fesm2022/tectra-ng-ui-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-listbox.mjs +2 -2
- package/fesm2022/tectra-ng-ui-listbox.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-menubar.mjs +742 -0
- package/fesm2022/tectra-ng-ui-menubar.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-multiselect.mjs +2 -2
- package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel-menu.mjs +610 -0
- package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-scroll-panel.mjs +319 -0
- package/fesm2022/tectra-ng-ui-scroll-panel.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-select.mjs +2 -2
- package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-splitter.mjs +750 -0
- package/fesm2022/tectra-ng-ui-splitter.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-stepper.mjs +1166 -0
- package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-table.mjs +194 -50
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tabs.mjs +1218 -0
- package/fesm2022/tectra-ng-ui-tabs.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-textarea.mjs +4 -1
- package/fesm2022/tectra-ng-ui-textarea.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toolbar.mjs +348 -0
- package/fesm2022/tectra-ng-ui-toolbar.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-tree-select.mjs +2 -2
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-table.mjs +80 -2
- package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
- package/field/README.md +1 -1
- package/file-upload/README.md +85 -0
- package/galleria/README.md +62 -0
- package/image/README.md +54 -0
- package/menubar/README.md +51 -0
- package/package.json +56 -4
- package/panel-menu/README.md +45 -0
- package/scroll-panel/README.md +35 -0
- package/splitter/README.md +62 -0
- package/stepper/README.md +66 -0
- package/table/README.md +1 -1
- package/tabs/README.md +69 -0
- package/toolbar/README.md +35 -0
- package/types/tectra-ng-ui-accordion.d.ts +304 -0
- package/types/tectra-ng-ui-accordion.d.ts.map +1 -0
- package/types/tectra-ng-ui-breadcrumb.d.ts +157 -0
- package/types/tectra-ng-ui-breadcrumb.d.ts.map +1 -0
- package/types/tectra-ng-ui-carousel.d.ts +263 -0
- package/types/tectra-ng-ui-carousel.d.ts.map +1 -0
- package/types/tectra-ng-ui-file-upload.d.ts +527 -0
- package/types/tectra-ng-ui-file-upload.d.ts.map +1 -0
- package/types/tectra-ng-ui-galleria.d.ts +407 -0
- package/types/tectra-ng-ui-galleria.d.ts.map +1 -0
- package/types/tectra-ng-ui-image.d.ts +259 -0
- package/types/tectra-ng-ui-image.d.ts.map +1 -0
- package/types/tectra-ng-ui-menubar.d.ts +201 -0
- package/types/tectra-ng-ui-menubar.d.ts.map +1 -0
- package/types/tectra-ng-ui-panel-menu.d.ts +244 -0
- package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -0
- package/types/tectra-ng-ui-scroll-panel.d.ts +94 -0
- package/types/tectra-ng-ui-scroll-panel.d.ts.map +1 -0
- package/types/tectra-ng-ui-splitter.d.ts +226 -0
- package/types/tectra-ng-ui-splitter.d.ts.map +1 -0
- package/types/tectra-ng-ui-stepper.d.ts +446 -0
- package/types/tectra-ng-ui-stepper.d.ts.map +1 -0
- package/types/tectra-ng-ui-table.d.ts +2 -4
- package/types/tectra-ng-ui-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tabs.d.ts +420 -0
- package/types/tectra-ng-ui-tabs.d.ts.map +1 -0
- package/types/tectra-ng-ui-textarea.d.ts +1 -0
- package/types/tectra-ng-ui-textarea.d.ts.map +1 -1
- package/types/tectra-ng-ui-toolbar.d.ts +85 -0
- package/types/tectra-ng-ui-toolbar.d.ts.map +1 -0
- package/types/tectra-ng-ui-tree-table.d.ts.map +1 -1
|
@@ -20,19 +20,21 @@ import * as i7 from "@tectra-ng/ui/button";
|
|
|
20
20
|
import { TxButton } from "@tectra-ng/ui/button";
|
|
21
21
|
import * as i8 from "@tectra-ng/ui/checkbox";
|
|
22
22
|
import { TxCheckbox } from "@tectra-ng/ui/checkbox";
|
|
23
|
-
import * as i9 from "@tectra-ng/ui/
|
|
23
|
+
import * as i9 from "@tectra-ng/ui/datepicker";
|
|
24
|
+
import { TxDatePicker } from "@tectra-ng/ui/datepicker";
|
|
25
|
+
import * as i10 from "@tectra-ng/ui/input";
|
|
24
26
|
import { TxInput } from "@tectra-ng/ui/input";
|
|
25
|
-
import * as
|
|
27
|
+
import * as i11 from "@tectra-ng/ui/input-number";
|
|
26
28
|
import { TxInputNumber } from "@tectra-ng/ui/input-number";
|
|
27
|
-
import * as
|
|
29
|
+
import * as i16 from "@tectra-ng/ui/menu";
|
|
28
30
|
import { TxMenu, TxMenuItemTemplate, TxMenuTrigger } from "@tectra-ng/ui/menu";
|
|
29
|
-
import * as
|
|
31
|
+
import * as i14 from "@tectra-ng/ui/paginator";
|
|
30
32
|
import { TxPaginator } from "@tectra-ng/ui/paginator";
|
|
31
|
-
import * as
|
|
33
|
+
import * as i15 from "@tectra-ng/ui/progress-spinner";
|
|
32
34
|
import { TxProgressSpinner } from "@tectra-ng/ui/progress-spinner";
|
|
33
|
-
import * as
|
|
35
|
+
import * as i13 from "@tectra-ng/ui/radio-button";
|
|
34
36
|
import { TxRadioButton } from "@tectra-ng/ui/radio-button";
|
|
35
|
-
import * as
|
|
37
|
+
import * as i12 from "@tectra-ng/ui/select";
|
|
36
38
|
import { TxSelect } from "@tectra-ng/ui/select";
|
|
37
39
|
import * as i6 from "@tectra-ng/ui/skeleton";
|
|
38
40
|
import { TxSkeleton } from "@tectra-ng/ui/skeleton";
|
|
@@ -391,14 +393,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
391
393
|
});
|
|
392
394
|
const TX_TABLE = new InjectionToken("TX_TABLE");
|
|
393
395
|
const MAX_RULES = 2;
|
|
394
|
-
function
|
|
395
|
-
|
|
396
|
-
const pad = (part) => String(part).padStart(2, "0");
|
|
397
|
-
return `${value.getFullYear()}-${pad(value.getMonth() + 1)}-${pad(value.getDate())}`;
|
|
398
|
-
}
|
|
399
|
-
function fromDateInput(value) {
|
|
400
|
-
const match = /^(\d{4})-(\d{2})-(\d{2})$/.exec(value);
|
|
401
|
-
return match ? new Date(Number(match[1]), Number(match[2]) - 1, Number(match[3])) : null;
|
|
396
|
+
function toDate(value) {
|
|
397
|
+
return value instanceof Date && !Number.isNaN(value.getTime()) ? value : null;
|
|
402
398
|
}
|
|
403
399
|
var TxTableColumnFilter = class TxTableColumnFilter {
|
|
404
400
|
table = inject(TX_TABLE);
|
|
@@ -476,10 +472,7 @@ var TxTableColumnFilter = class TxTableColumnFilter {
|
|
|
476
472
|
} : this.empty());
|
|
477
473
|
}
|
|
478
474
|
dateValue(value) {
|
|
479
|
-
return
|
|
480
|
-
}
|
|
481
|
-
parseDate(value) {
|
|
482
|
-
return fromDateInput(value);
|
|
475
|
+
return toDate(value);
|
|
483
476
|
}
|
|
484
477
|
setValue(index, value, live) {
|
|
485
478
|
if (live) {
|
|
@@ -604,14 +597,14 @@ var TxTableColumnFilter = class TxTableColumnFilter {
|
|
|
604
597
|
/>
|
|
605
598
|
}
|
|
606
599
|
@case ('date') {
|
|
607
|
-
<
|
|
608
|
-
txInput
|
|
609
|
-
type="date"
|
|
600
|
+
<tx-datepicker
|
|
610
601
|
size="small"
|
|
611
602
|
class="tx-table-filter__value"
|
|
612
|
-
[
|
|
613
|
-
[
|
|
614
|
-
|
|
603
|
+
[ariaLabel]="valueLabel()"
|
|
604
|
+
[placeholder]="column().filterPlaceholder"
|
|
605
|
+
[showClear]="true"
|
|
606
|
+
[ngModel]="dateValue(rule.value)"
|
|
607
|
+
(ngModelChange)="setValue(index, $event, live)"
|
|
615
608
|
/>
|
|
616
609
|
}
|
|
617
610
|
@case ('boolean') {
|
|
@@ -647,7 +640,7 @@ var TxTableColumnFilter = class TxTableColumnFilter {
|
|
|
647
640
|
size="small"
|
|
648
641
|
class="tx-table-filter__value"
|
|
649
642
|
[attr.aria-label]="valueLabel()"
|
|
650
|
-
[placeholder]="column().filterPlaceholder
|
|
643
|
+
[placeholder]="column().filterPlaceholder"
|
|
651
644
|
[value]="rule.value ?? ''"
|
|
652
645
|
(input)="setValue(index, $any($event.target).value, live)"
|
|
653
646
|
(keydown.enter)="apply()"
|
|
@@ -813,6 +806,82 @@ var TxTableColumnFilter = class TxTableColumnFilter {
|
|
|
813
806
|
"unstyled"
|
|
814
807
|
]
|
|
815
808
|
},
|
|
809
|
+
{
|
|
810
|
+
kind: "component",
|
|
811
|
+
type: TxDatePicker,
|
|
812
|
+
selector: "tx-datepicker",
|
|
813
|
+
inputs: [
|
|
814
|
+
"selectionMode",
|
|
815
|
+
"dateFormat",
|
|
816
|
+
"placeholder",
|
|
817
|
+
"inputId",
|
|
818
|
+
"name",
|
|
819
|
+
"ariaLabel",
|
|
820
|
+
"ariaLabelledBy",
|
|
821
|
+
"iconAriaLabel",
|
|
822
|
+
"inline",
|
|
823
|
+
"showIcon",
|
|
824
|
+
"iconDisplay",
|
|
825
|
+
"icon",
|
|
826
|
+
"showClear",
|
|
827
|
+
"showButtonBar",
|
|
828
|
+
"showOtherMonths",
|
|
829
|
+
"selectOtherMonths",
|
|
830
|
+
"showWeek",
|
|
831
|
+
"startWeekFromFirstDayOfYear",
|
|
832
|
+
"showTime",
|
|
833
|
+
"timeOnly",
|
|
834
|
+
"hourFormat",
|
|
835
|
+
"showSeconds",
|
|
836
|
+
"stepHour",
|
|
837
|
+
"stepMinute",
|
|
838
|
+
"stepSecond",
|
|
839
|
+
"timeSeparator",
|
|
840
|
+
"view",
|
|
841
|
+
"numberOfMonths",
|
|
842
|
+
"responsiveOptions",
|
|
843
|
+
"firstDayOfWeek",
|
|
844
|
+
"minDate",
|
|
845
|
+
"maxDate",
|
|
846
|
+
"disabledDates",
|
|
847
|
+
"disabledDays",
|
|
848
|
+
"maxDateCount",
|
|
849
|
+
"defaultDate",
|
|
850
|
+
"readonlyInput",
|
|
851
|
+
"keepInvalid",
|
|
852
|
+
"hideOnDateTimeSelect",
|
|
853
|
+
"showOnFocus",
|
|
854
|
+
"touchUI",
|
|
855
|
+
"dataType",
|
|
856
|
+
"multipleSeparator",
|
|
857
|
+
"rangeSeparator",
|
|
858
|
+
"shortYearCutoff",
|
|
859
|
+
"size",
|
|
860
|
+
"variant",
|
|
861
|
+
"fluid",
|
|
862
|
+
"invalid",
|
|
863
|
+
"disabled",
|
|
864
|
+
"readonly",
|
|
865
|
+
"required",
|
|
866
|
+
"dt",
|
|
867
|
+
"pt",
|
|
868
|
+
"ptOptions",
|
|
869
|
+
"unstyled"
|
|
870
|
+
],
|
|
871
|
+
outputs: [
|
|
872
|
+
"selected",
|
|
873
|
+
"cleared",
|
|
874
|
+
"todayClicked",
|
|
875
|
+
"clearClicked",
|
|
876
|
+
"monthChange",
|
|
877
|
+
"yearChange",
|
|
878
|
+
"opened",
|
|
879
|
+
"closed",
|
|
880
|
+
"focused",
|
|
881
|
+
"blurred",
|
|
882
|
+
"typed"
|
|
883
|
+
]
|
|
884
|
+
},
|
|
816
885
|
{
|
|
817
886
|
kind: "directive",
|
|
818
887
|
type: TxInput,
|
|
@@ -991,6 +1060,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
991
1060
|
NgTemplateOutlet,
|
|
992
1061
|
FormsModule,
|
|
993
1062
|
TxButton,
|
|
1063
|
+
TxDatePicker,
|
|
994
1064
|
TxInput,
|
|
995
1065
|
TxInputNumber,
|
|
996
1066
|
TxSelect,
|
|
@@ -1014,14 +1084,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1014
1084
|
/>
|
|
1015
1085
|
}
|
|
1016
1086
|
@case ('date') {
|
|
1017
|
-
<
|
|
1018
|
-
txInput
|
|
1019
|
-
type="date"
|
|
1087
|
+
<tx-datepicker
|
|
1020
1088
|
size="small"
|
|
1021
1089
|
class="tx-table-filter__value"
|
|
1022
|
-
[
|
|
1023
|
-
[
|
|
1024
|
-
|
|
1090
|
+
[ariaLabel]="valueLabel()"
|
|
1091
|
+
[placeholder]="column().filterPlaceholder"
|
|
1092
|
+
[showClear]="true"
|
|
1093
|
+
[ngModel]="dateValue(rule.value)"
|
|
1094
|
+
(ngModelChange)="setValue(index, $event, live)"
|
|
1025
1095
|
/>
|
|
1026
1096
|
}
|
|
1027
1097
|
@case ('boolean') {
|
|
@@ -1057,7 +1127,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1057
1127
|
size="small"
|
|
1058
1128
|
class="tx-table-filter__value"
|
|
1059
1129
|
[attr.aria-label]="valueLabel()"
|
|
1060
|
-
[placeholder]="column().filterPlaceholder
|
|
1130
|
+
[placeholder]="column().filterPlaceholder"
|
|
1061
1131
|
[value]="rule.value ?? ''"
|
|
1062
1132
|
(input)="setValue(index, $any($event.target).value, live)"
|
|
1063
1133
|
(keydown.enter)="apply()"
|
|
@@ -1834,6 +1904,7 @@ const TX_TABLE_IMPORTS = [
|
|
|
1834
1904
|
TxSkeleton,
|
|
1835
1905
|
TxButton,
|
|
1836
1906
|
TxCheckbox,
|
|
1907
|
+
TxDatePicker,
|
|
1837
1908
|
TxInput,
|
|
1838
1909
|
TxInputNumber,
|
|
1839
1910
|
TxSelect,
|
|
@@ -3310,13 +3381,10 @@ var TxTable = class TxTable {
|
|
|
3310
3381
|
(rowKey === void 0 ? editors[0] : editors.find((element) => element.closest("tr")?.dataset["key"] === String(rowKey)))?.querySelector("input, textarea, button, [tabindex]:not([tabindex=\"-1\"])")?.focus();
|
|
3311
3382
|
}, { injector: this.injector });
|
|
3312
3383
|
}
|
|
3313
|
-
|
|
3314
|
-
if (
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
}
|
|
3318
|
-
parseDateInput(value) {
|
|
3319
|
-
const match = /^(\d{4})-(\d{2})-(\d{2})$/.exec(value);
|
|
3384
|
+
dateDraft(value) {
|
|
3385
|
+
if (value instanceof Date) return Number.isNaN(value.getTime()) ? null : value;
|
|
3386
|
+
if (typeof value !== "string") return null;
|
|
3387
|
+
const match = /^(\d{4})-(\d{2})-(\d{2})/.exec(value);
|
|
3320
3388
|
return match ? new Date(Number(match[1]), Number(match[2]) - 1, Number(match[3])) : null;
|
|
3321
3389
|
}
|
|
3322
3390
|
groupContext(item) {
|
|
@@ -4436,7 +4504,7 @@ var TxTable = class TxTable {
|
|
|
4436
4504
|
isSignal: true
|
|
4437
4505
|
}],
|
|
4438
4506
|
ngImport: i0,
|
|
4439
|
-
template: "@if (showToolbar()) {\n <div class=\"tx-table__toolbar\" [class]=\"passThrough().toolbar?.class\" [style]=\"passThrough().toolbar?.style\">\n <div class=\"tx-table__toolbar-slot\"><ng-content select=\"[txTableToolbar]\" /></div>\n @if (showSettings()) {\n <tx-table-settings\n [columns]=\"columns()\"\n [hidden]=\"hidden()\"\n [showColumns]=\"columnSettings()\"\n [showActions]=\"actionsSettings()\"\n [unstyled]=\"isUnstyled()\"\n (columnToggled)=\"toggleColumn($event.field, $event.visible)\"\n />\n }\n </div>\n}\n\n@if (showPaginatorTop()) {\n <ng-container [ngTemplateOutlet]=\"pager\" [ngTemplateOutletContext]=\"{ $implicit: 'top' }\" />\n}\n\n<div class=\"tx-table__frame\" [class]=\"passThrough().frame?.class\" [style]=\"passThrough().frame?.style\" [attr.aria-busy]=\"loading() || null\">\n @if (cardView() && selectionMode() === 'checkbox' && !empty()) {\n <div class=\"tx-table__select-all\">\n <tx-checkbox\n binary\n [label]=\"translations().selectAll\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"allSelected()\"\n [indeterminate]=\"someSelected()\"\n (ngModelChange)=\"toggleAll($event)\"\n />\n </div>\n }\n\n @if (loading()) {\n <div class=\"tx-table__loading\" [class]=\"passThrough().loading?.class\" [style]=\"passThrough().loading?.style\">\n <tx-progress-spinner [ariaLabel]=\"translations().loading\" [unstyled]=\"isUnstyled()\" />\n </div>\n }\n\n @if (!cardView()) {\n <div\n class=\"tx-table__scroller\"\n [class.tx-table__scroller--empty]=\"empty()\"\n [class]=\"passThrough().scroller?.class\"\n [style]=\"passThrough().scroller?.style\"\n [style.max-height]=\"scrollHeight()\"\n (scroll)=\"onScroll($event)\"\n >\n <table\n class=\"tx-table__table\"\n [class]=\"passThrough().table?.class\"\n [style]=\"passThrough().table?.style\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-multiselectable]=\"rowSelection() || treeCheckbox() ? selectionMode() !== 'single' : null\"\n [attr.role]=\"isTree ? 'treegrid' : rowSelection() ? 'grid' : null\"\n >\n <thead class=\"tx-table__thead\" [class]=\"passThrough().thead?.class\" [style]=\"passThrough().thead?.style\">\n <tr\n #headerRow\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n class=\"tx-table__header-row\"\n [class]=\"passThrough().headerRow?.class\"\n [style]=\"passThrough().headerRow?.style\"\n [cdkDropListDisabled]=\"!reorderableColumns()\"\n (cdkDropListDropped)=\"dropColumn($event)\"\n >\n @for (item of renderColumns(); track item.column.field; let last = $last) {\n <th\n cdkDrag\n cdkDragLockAxis=\"x\"\n cdkDragPreviewClass=\"tx-table__drag-preview\"\n [cdkDragBoundary]=\"headerRow\"\n scope=\"col\"\n class=\"tx-table__th\"\n [class]=\"[item.column.headerClass ?? '', passThrough().headerCell?.class ?? '']\"\n [style]=\"passThrough().headerCell?.style\"\n [style.width]=\"item.style['width']\"\n [style.min-width]=\"item.style['minWidth']\"\n [style.max-width]=\"item.style['maxWidth']\"\n [style.inset-inline-start]=\"frozenStyle(item)['insetInlineStart']\"\n [style.inset-inline-end]=\"frozenStyle(item)['insetInlineEnd']\"\n [class.tx-table__cell--frozen]=\"!!item.frozen\"\n [class.tx-table__cell--frozen-last]=\"item.lastFrozenStart\"\n [class.tx-table__cell--frozen-first-end]=\"item.firstFrozenEnd\"\n [class.tx-table__th--draggable]=\"reorderableColumns() && item.kind === 'data' && item.column.reorderable !== false\"\n [attr.data-field]=\"item.column.field\"\n [attr.data-align]=\"item.column.align ?? null\"\n [attr.aria-sort]=\"item.kind === 'data' ? ariaSort(item.column) : null\"\n [cdkDragDisabled]=\"!reorderableColumns() || item.kind !== 'data' || item.column.reorderable === false\"\n >\n @switch (item.kind) {\n @case ('select') {\n @if (selectionMode() === 'checkbox') {\n <tx-checkbox\n binary\n class=\"tx-table__select\"\n [ariaLabel]=\"translations().selectAll\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"allSelected()\"\n [indeterminate]=\"someSelected()\"\n (ngModelChange)=\"toggleAll($event)\"\n />\n } @else {\n <span class=\"tx-table__sr-only\">{{ translations().selectRow }}</span>\n }\n }\n @case ('expand') {\n <span class=\"tx-table__sr-only\">{{ translations().expandRow }}</span>\n }\n @case ('actions') {\n <span class=\"tx-table__column-title\">{{ item.column.header }}</span>\n }\n @default {\n <div class=\"tx-table__header-content\">\n @if (treeCheckbox() && item.column.field === treeField()) {\n <tx-checkbox\n binary\n class=\"tx-table__select tx-table__tree-select-all\"\n [ariaLabel]=\"translations().selectAll\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"allSelected()\"\n [indeterminate]=\"someSelected()\"\n (ngModelChange)=\"toggleAll($event)\"\n />\n }\n @if (headerTemplatesByField().get(item.column.field); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: item.column }\" />\n } @else if (isSortable(item.column)) {\n @if (reorderableColumns() && item.column.reorderable !== false) {\n <tx-icon class=\"tx-table__grip\" aria-hidden=\"true\" name=\"grip-vertical\" />\n }\n <button\n type=\"button\"\n class=\"tx-table__sort\"\n [class]=\"passThrough().sortButton?.class\"\n [style]=\"passThrough().sortButton?.style\"\n (click)=\"sort(item.column, $event)\"\n (keydown.alt.arrowleft)=\"moveColumnBy(item.column, -1, $event)\"\n (keydown.alt.arrowright)=\"moveColumnBy(item.column, 1, $event)\"\n >\n <span class=\"tx-table__column-title\">{{ label(item.column) }}</span>\n @if (sortOrderOf(item.column); as order) {\n <tx-icon\n class=\"tx-table__sort-icon\"\n aria-hidden=\"true\"\n name=\"sort-amount-down\"\n [class.tx-table__sort-icon--desc]=\"order === 'desc'\"\n [class]=\"passThrough().sortIcon?.class\"\n [style]=\"passThrough().sortIcon?.style\"\n />\n @if (sortMode() === 'multiple' && sortMeta().length > 1) {\n <span class=\"tx-table__sort-badge\" aria-hidden=\"true\">{{ sortIndexOf(item.column) + 1 }}</span>\n }\n }\n </button>\n } @else {\n @if (reorderableColumns() && item.column.reorderable !== false) {\n <tx-icon class=\"tx-table__grip\" aria-hidden=\"true\" name=\"grip-vertical\" />\n }\n <span class=\"tx-table__column-title\">{{ label(item.column) }}</span>\n }\n @if (item.column.filter && filterDisplay() === 'menu') {\n <tx-table-column-filter class=\"tx-table__filter\" [column]=\"item.column\" />\n }\n </div>\n }\n }\n @if (resizableColumns() && item.kind === 'data' && item.column.resizable !== false && item.column.width === undefined && !last) {\n <span\n class=\"tx-table__resizer\"\n role=\"separator\"\n tabindex=\"0\"\n aria-orientation=\"vertical\"\n [class.tx-table__resizer--active]=\"resizing() === item.column.field\"\n [attr.aria-label]=\"translations().resizeColumn.replace('{column}', label(item.column))\"\n [attr.aria-valuenow]=\"resizeValue(item.column)\"\n [attr.aria-valuemin]=\"resizeMin(item.column)\"\n [attr.aria-valuemax]=\"resizeMax(item.column)\"\n (pointerdown)=\"startResize(item, $event)\"\n (click)=\"$event.stopPropagation()\"\n (keydown.arrowleft)=\"resizeByKey(item, -10, $event)\"\n (keydown.arrowright)=\"resizeByKey(item, 10, $event)\"\n >\n <span class=\"tx-table__resizer-line\"></span>\n </span>\n }\n </th>\n }\n </tr>\n @if (filterRow()) {\n <tr class=\"tx-table__filter-row\">\n @for (item of renderColumns(); track item.column.field) {\n <td\n class=\"tx-table__th tx-table__filter-cell\"\n [style.inset-inline-start]=\"frozenStyle(item)['insetInlineStart']\"\n [style.inset-inline-end]=\"frozenStyle(item)['insetInlineEnd']\"\n [class.tx-table__cell--frozen]=\"!!item.frozen\"\n [class.tx-table__cell--frozen-last]=\"item.lastFrozenStart\"\n [class.tx-table__cell--frozen-first-end]=\"item.firstFrozenEnd\"\n >\n @if (item.kind === 'data' && item.column.filter) {\n <tx-table-column-filter display=\"row\" [column]=\"item.column\" />\n }\n </td>\n }\n </tr>\n }\n </thead>\n @if (frozenRows().length) {\n <tbody class=\"tx-table__frozen-tbody\" [style.top.px]=\"headerHeight()\">\n @for (item of frozenRows(); track item.key; let position = $index) {\n <tr class=\"tx-table__row tx-table__row--frozen\">\n <ng-container [ngTemplateOutlet]=\"rowCells\" [ngTemplateOutletContext]=\"{ $implicit: item, position }\" />\n </tr>\n }\n </tbody>\n }\n <tbody\n #tbody\n cdkDropList\n class=\"tx-table__tbody\"\n [class]=\"passThrough().tbody?.class\"\n [style]=\"passThrough().tbody?.style\"\n [cdkDropListDisabled]=\"!reorderableRows()\"\n (cdkDropListDropped)=\"dropRow($event)\"\n >\n @if (spacerBefore()) {\n <tr class=\"tx-table__spacer\" aria-hidden=\"true\">\n <td [attr.colspan]=\"dataColumnCount()\" [style.height.px]=\"spacerBefore()\"></td>\n </tr>\n }\n @for (item of visibleRows(); track item.key; let windowIndex = $index) {\n @let position = windowRange().start + windowIndex;\n @let odd = position % 2 === 1;\n @if (item.group?.first && rowGroupMode() === 'subheader') {\n <tr class=\"tx-table__group-header\">\n <td class=\"tx-table__group-cell\" [attr.colspan]=\"dataColumnCount()\">\n <div class=\"tx-table__group-content\">\n @if (expandableRowGroups()) {\n <button\n type=\"button\"\n class=\"tx-table__row-toggle\"\n [attr.aria-expanded]=\"!item.group.collapsed\"\n [attr.aria-label]=\"item.group.collapsed ? translations().expandRow : translations().collapseRow\"\n (click)=\"toggleGroup(item)\"\n >\n <tx-icon aria-hidden=\"true\" name=\"chevron-right\" class=\"tx-table__row-toggle-icon\" [class.tx-table__row-toggle-icon--open]=\"!item.group.collapsed\" />\n </button>\n }\n @if (groupHeaderTemplate(); as header) {\n <ng-container [ngTemplateOutlet]=\"header.templateRef\" [ngTemplateOutletContext]=\"groupContext(item)\" />\n } @else {\n <span class=\"tx-table__group-title\">{{ item.group.value }}</span>\n <span class=\"tx-table__group-count\">{{ translations().rowGroup.replace('{count}', '' + item.group.size) }}</span>\n }\n </div>\n </td>\n </tr>\n }\n @if (!item.group?.collapsed || animatedGroups()) {\n <tr\n cdkDrag\n cdkDragLockAxis=\"y\"\n cdkDragPreviewContainer=\"parent\"\n class=\"tx-table__row\"\n [class]=\"[rowClassOf(item) ?? '', passThrough().row?.class ?? '']\"\n [style]=\"passThrough().row?.style\"\n [class.tx-table__row--odd]=\"odd\"\n [class.tx-table__row--selected]=\"item.selected\"\n [class.tx-table__row--selectable]=\"rowSelection() && item.selectable\"\n [class.tx-table__row--menu]=\"menuRowKey() === item.key && menuRowKey() !== undefined\"\n [attr.aria-selected]=\"rowSelection() ? item.selected : null\"\n [attr.aria-level]=\"item.tree?.level ?? null\"\n [attr.aria-expanded]=\"item.tree && !item.tree.leaf ? item.tree.expanded : null\"\n [attr.aria-setsize]=\"item.tree?.setSize ?? null\"\n [attr.aria-posinset]=\"item.tree?.posInSet ?? null\"\n [attr.aria-busy]=\"item.tree?.loading || null\"\n [attr.tabindex]=\"rowsFocusable() ? (position === focusedRow() ? 0 : -1) : null\"\n [attr.data-key]=\"item.key\"\n [class.tx-table__row--editing]=\"isRowEditing(item)\"\n [class.tx-table__row--collapsed]=\"isCollapsedRow(item)\"\n [attr.inert]=\"isCollapsedRow(item) ? '' : null\"\n [attr.aria-hidden]=\"isCollapsedRow(item) ? true : null\"\n (click)=\"onRowClick(item, position, $event)\"\n (keydown)=\"onRowKeydown(item, position, $event)\"\n (contextmenu)=\"onRowContextMenu(item, $event)\"\n >\n <ng-container [ngTemplateOutlet]=\"rowCells\" [ngTemplateOutletContext]=\"{ $implicit: item, position }\" />\n </tr>\n @if ((item.expanded || isClosing(item.key)) && !item.group?.collapsed && expansionTemplate(); as expansion) {\n <tr class=\"tx-table__expansion\">\n <td class=\"tx-table__expansion-cell\" [attr.colspan]=\"dataColumnCount()\">\n <div\n class=\"tx-table__expansion-body\"\n [class.tx-table__expansion-body--open]=\"item.expanded\"\n (transitionend)=\"finishClosing(item.key, $event)\"\n >\n <div class=\"tx-table__expansion-inner\">\n <div class=\"tx-table__expansion-content\">\n <ng-container [ngTemplateOutlet]=\"expansion.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: dataOf(item.row), node: item.row, index: item.index }\" />\n </div>\n </div>\n </div>\n </td>\n </tr>\n }\n @if (item.group?.last && rowGroupMode() === 'subheader' && groupFooterTemplate(); as footer) {\n <tr class=\"tx-table__group-footer\">\n <td class=\"tx-table__group-cell\" [attr.colspan]=\"dataColumnCount()\">\n <ng-container [ngTemplateOutlet]=\"footer.templateRef\" [ngTemplateOutletContext]=\"groupContext(item)\" />\n </td>\n </tr>\n }\n }\n }\n @if (spacerAfter()) {\n <tr class=\"tx-table__spacer\" aria-hidden=\"true\">\n <td [attr.colspan]=\"dataColumnCount()\" [style.height.px]=\"spacerAfter()\"></td>\n </tr>\n }\n </tbody>\n @if (hasFooter()) {\n <tfoot class=\"tx-table__tfoot\" [class]=\"passThrough().tfoot?.class\" [style]=\"passThrough().tfoot?.style\">\n <tr>\n @for (item of renderColumns(); track item.column.field) {\n <td\n class=\"tx-table__footer-cell\"\n [class]=\"passThrough().footerCell?.class\"\n [style]=\"passThrough().footerCell?.style\"\n [style.inset-inline-start]=\"frozenStyle(item)['insetInlineStart']\"\n [style.inset-inline-end]=\"frozenStyle(item)['insetInlineEnd']\"\n [class.tx-table__cell--frozen]=\"!!item.frozen\"\n [attr.data-align]=\"item.column.align ?? null\"\n >\n @if (footerTemplatesByField().get(item.column.field); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: item.column }\" />\n } @else {\n {{ item.column.footer }}\n }\n </td>\n }\n </tr>\n </tfoot>\n }\n </table>\n </div>\n } @else if (!empty()) {\n <div class=\"tx-table__cards\" role=\"list\" [class]=\"passThrough().cards?.class\" [style]=\"passThrough().cards?.style\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @for (item of renderRows(); track item.key) {\n <div\n role=\"listitem\"\n class=\"tx-table__card\"\n [class]=\"passThrough().card?.class\"\n [style]=\"passThrough().card?.style\"\n [class.tx-table__card--selected]=\"item.selected\"\n [class.tx-table__card--custom]=\"!!cardTemplate()\"\n >\n @if (cardTemplate(); as card) {\n <ng-container [ngTemplateOutlet]=\"card.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: dataOf(item.row), node: item.row, index: item.index }\" />\n } @else {\n @if (hasSelectColumn()) {\n <div class=\"tx-table__card-select\">\n @if (selectionMode() === 'checkbox') {\n <tx-checkbox\n binary\n [ariaLabel]=\"translations().selectRow\"\n [disabled]=\"!item.selectable\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"item.selected\"\n (ngModelChange)=\"toggleRow(item)\"\n />\n } @else {\n <tx-radio-button\n [value]=\"item.key\"\n [ariaLabel]=\"translations().selectRow\"\n [disabled]=\"!item.selectable\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"radioValue()\"\n (ngModelChange)=\"selectRadio(item)\"\n />\n }\n </div>\n }\n @if (cardTitleColumn(); as title) {\n <div class=\"tx-table__card-title\" [class.tx-table__card-title--select]=\"hasSelectColumn()\">\n <ng-container [ngTemplateOutlet]=\"cellContent\" [ngTemplateOutletContext]=\"{ $implicit: item, column: title }\" />\n </div>\n }\n @for (column of cardFields(); track column.field) {\n <div class=\"tx-table__card-field\">\n <span class=\"tx-table__card-label\">{{ label(column) }}</span>\n <span class=\"tx-table__card-value\"><ng-container [ngTemplateOutlet]=\"cellContent\" [ngTemplateOutletContext]=\"{ $implicit: item, column }\" /></span>\n </div>\n }\n @if (actionsTemplate(); as actions) {\n <div class=\"tx-table__card-actions\">\n <ng-container [ngTemplateOutlet]=\"actions.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: dataOf(item.row), node: item.row, index: item.index }\" />\n </div>\n }\n }\n </div>\n }\n </div>\n }\n\n @if (empty()) {\n <div class=\"tx-table__empty\" [class]=\"passThrough().empty?.class\" [style]=\"passThrough().empty?.style\">\n @if (emptyTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: dataColumnCount() }\" />\n } @else {\n {{ emptyMessage() ?? translations().emptyMessage }}\n }\n </div>\n }\n</div>\n\n@if (showPaginatorBottom()) {\n <ng-container [ngTemplateOutlet]=\"pager\" [ngTemplateOutletContext]=\"{ $implicit: 'bottom' }\" />\n}\n\n<ng-content />\n\n<tx-tiered-menu\n #rowMenu\n popup\n variant=\"context\"\n placement=\"bottom-start\"\n [offset]=\"0\"\n [model]=\"menuItems()\"\n [ariaLabel]=\"translations().rowActions\"\n [unstyled]=\"isUnstyled()\"\n (closed)=\"onMenuClosed()\"\n>\n <ng-template txMenuItem let-menuItem>\n @if (actionTemplate(menuItem); as action) {\n <span class=\"tx-table__menu-action\" aria-hidden=\"true\" [attr.data-action-id]=\"action.id()\">\n <ng-container [ngTemplateOutlet]=\"action.templateRef\" />\n </span>\n } @else if (menuItem.icon) {\n <tx-icon class=\"tx-table__menu-icon\" aria-hidden=\"true\" [name]=\"menuItem.icon\" />\n }\n <span class=\"tx-table__menu-label\">{{ menuItem.label }}</span>\n </ng-template>\n</tx-tiered-menu>\n\n<ng-template #cellContent let-item let-column=\"column\">\n @if (templatesByField().get(column.field); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: dataOf(item.row), row: dataOf(item.row), node: item.row, index: item.index, column, value: cellValue(item.row, column) }\"\n />\n } @else {\n {{ displayValue(item.row, column) }}\n }\n</ng-template>\n\n<ng-template #pager let-position>\n <tx-paginator\n class=\"tx-table__paginator\"\n [class.tx-table__paginator--top]=\"position === 'top'\"\n [class]=\"passThrough().paginator?.class\"\n [style]=\"passThrough().paginator?.style\"\n [first]=\"first()\"\n [rows]=\"rows()\"\n [totalRecords]=\"total()\"\n [rowsPerPageOptions]=\"rowsPerPageOptions()\"\n [showTotal]=\"showTotal()\"\n [showCurrentPageReport]=\"showCurrentPageReport()\"\n [currentPageReportTemplate]=\"currentPageReportTemplate()\"\n [showFirstLastIcon]=\"showFirstLastIcon()\"\n [showPageLinks]=\"showPageLinks()\"\n [showJumpToPageDropdown]=\"showJumpToPageDropdown()\"\n [showJumpToPageInput]=\"showJumpToPageInput()\"\n [alwaysShow]=\"alwaysShowPaginator()\"\n [pageLinkSize]=\"pageLinks()\"\n [unstyled]=\"isUnstyled()\"\n (pageChange)=\"onPage($event)\"\n />\n</ng-template>\n\n<ng-template #rowCells let-item let-position=\"position\">\n @for (column of renderColumns(); track column.column.field) {\n @if (!isGroupedCellHidden(item, column)) {\n <td\n class=\"tx-table__td\"\n [class]=\"[column.column.cellClass ?? '', passThrough().cell?.class ?? '']\"\n [style]=\"passThrough().cell?.style\"\n [style.inset-inline-start]=\"frozenStyle(column)['insetInlineStart']\"\n [style.inset-inline-end]=\"frozenStyle(column)['insetInlineEnd']\"\n [class.tx-table__cell--frozen]=\"!!column.frozen\"\n [class.tx-table__cell--frozen-last]=\"column.lastFrozenStart\"\n [class.tx-table__cell--frozen-first-end]=\"column.firstFrozenEnd\"\n [class.tx-table__td--actions]=\"column.kind === 'actions'\"\n [class.tx-table__td--editable]=\"column.kind === 'data' && editMode() === 'cell' && !!column.column.editable\"\n [class.tx-table__td--editing]=\"column.kind === 'data' && isEditing(item, column.column)\"\n [attr.data-field]=\"column.column.field\"\n [attr.data-align]=\"column.column.align ?? null\"\n [attr.rowspan]=\"groupRowspan(item, column)\"\n [attr.tabindex]=\"column.kind === 'data' && editMode() === 'cell' && column.column.editable ? 0 : null\"\n (click)=\"onCellClick(item, column, $event)\"\n (keydown)=\"onCellKeydown(item, column, $event)\"\n (focusout)=\"onCellFocusOut(item, column, $event)\"\n >\n @if (animatedRows()) {\n <div class=\"tx-table__cell-body\">\n <div class=\"tx-table__cell-inner\">\n <ng-container [ngTemplateOutlet]=\"cellBody\" [ngTemplateOutletContext]=\"{ $implicit: item, column, position }\" />\n </div>\n </div>\n } @else {\n <ng-container [ngTemplateOutlet]=\"cellBody\" [ngTemplateOutletContext]=\"{ $implicit: item, column, position }\" />\n }\n </td>\n }\n }\n</ng-template>\n\n<ng-template #cellBody let-item let-column=\"column\" let-position=\"position\">\n @switch (column.kind) {\n @case ('reorder') {\n <button\n type=\"button\"\n cdkDragHandle\n class=\"tx-table__row-handle\"\n [attr.aria-label]=\"translations().moveRow\"\n (keydown.alt.arrowup)=\"moveRowBy(position, -1, $event)\"\n (keydown.alt.arrowdown)=\"moveRowBy(position, 1, $event)\"\n >\n <tx-icon aria-hidden=\"true\" name=\"bars\" />\n </button>\n }\n @case ('select') {\n @if (selectionMode() === 'checkbox') {\n <tx-checkbox\n binary\n class=\"tx-table__select\"\n [ariaLabel]=\"translations().selectRow\"\n [disabled]=\"!item.selectable\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"item.selected\"\n (ngModelChange)=\"toggleRow(item)\"\n />\n } @else {\n <tx-radio-button\n class=\"tx-table__select\"\n [value]=\"item.key\"\n [ariaLabel]=\"translations().selectRow\"\n [disabled]=\"!item.selectable\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"radioValue()\"\n (ngModelChange)=\"selectRadio(item)\"\n />\n }\n }\n @case ('expand') {\n @if (canExpand(item)) {\n <button\n type=\"button\"\n class=\"tx-table__row-toggle\"\n [attr.aria-expanded]=\"item.expanded\"\n [attr.aria-label]=\"item.expanded ? translations().collapseRow : translations().expandRow\"\n (click)=\"toggleExpansion(item, $event)\"\n >\n <tx-icon aria-hidden=\"true\" name=\"chevron-right\" class=\"tx-table__row-toggle-icon\" [class.tx-table__row-toggle-icon--open]=\"item.expanded\" />\n </button>\n }\n }\n @case ('actions') {\n @if (actionsTemplate(); as actions) {\n <ng-container [ngTemplateOutlet]=\"actions.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: dataOf(item.row), node: item.row, index: item.index }\" />\n }\n }\n @case ('editor') {\n <div class=\"tx-table__row-editor\">\n @if (isRowEditing(item)) {\n <button\n txButton\n type=\"button\"\n text\n rounded\n size=\"small\"\n severity=\"success\"\n icon=\"check\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"translations().saveRow\"\n (click)=\"saveRow(item)\"\n ></button>\n <button\n txButton\n type=\"button\"\n text\n rounded\n size=\"small\"\n severity=\"danger\"\n icon=\"times\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"translations().cancelEdit\"\n (click)=\"cancelRow(item)\"\n ></button>\n } @else {\n <button\n txButton\n type=\"button\"\n text\n rounded\n size=\"small\"\n severity=\"secondary\"\n icon=\"pencil\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"translations().editRow\"\n (click)=\"startRowEdit(item)\"\n ></button>\n }\n </div>\n }\n @default {\n @if (item.tree && column.column.field === treeField()) {\n <div class=\"tx-table__tree-cell\" [style.--tx-table-tree-level]=\"item.tree.level - 1\">\n <button\n type=\"button\"\n class=\"tx-table__row-toggle tx-table__tree-toggle\"\n [class.tx-table__tree-toggle--hidden]=\"item.tree.leaf\"\n [attr.tabindex]=\"item.tree.leaf ? -1 : null\"\n [attr.aria-hidden]=\"item.tree.leaf || null\"\n [attr.aria-expanded]=\"item.tree.leaf ? null : item.tree.expanded\"\n [attr.aria-label]=\"item.tree.expanded ? translations().collapseRow : translations().expandRow\"\n [class]=\"passThrough().treeToggle?.class\"\n [style]=\"passThrough().treeToggle?.style\"\n (click)=\"toggleNode(item, $event)\"\n >\n @if (item.tree.loading) {\n <tx-icon aria-hidden=\"true\" name=\"spinner\" class=\"tx-table__tree-toggle-icon--loading\" />\n } @else {\n <tx-icon aria-hidden=\"true\" name=\"chevron-right\" class=\"tx-table__row-toggle-icon\" [class.tx-table__row-toggle-icon--open]=\"item.tree.expanded\" />\n }\n </button>\n @if (treeCheckbox()) {\n <tx-checkbox\n binary\n class=\"tx-table__tree-checkbox\"\n [ariaLabel]=\"translations().selectRow\"\n [disabled]=\"!item.selectable\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"item.selected\"\n [indeterminate]=\"item.tree.partial\"\n (ngModelChange)=\"toggleRow(item)\"\n />\n }\n <div class=\"tx-table__tree-content\">\n <ng-container [ngTemplateOutlet]=\"dataCell\" [ngTemplateOutletContext]=\"{ $implicit: item, column }\" />\n </div>\n </div>\n } @else {\n <ng-container [ngTemplateOutlet]=\"dataCell\" [ngTemplateOutletContext]=\"{ $implicit: item, column }\" />\n }\n }\n }\n</ng-template>\n\n<ng-template #dataCell let-item let-column=\"column\">\n @if (isEditing(item, column.column)) {\n <div class=\"tx-table__editor\">\n @if (editorTemplatesByField().get(column.column.field); as editor) {\n <ng-container [ngTemplateOutlet]=\"editor.templateRef\" [ngTemplateOutletContext]=\"editorContext(item, column.column)\" />\n } @else if (column.column.editOptions?.length) {\n <tx-select\n size=\"small\"\n optionLabel=\"label\"\n optionValue=\"value\"\n class=\"tx-table__editor-control\"\n [options]=\"column.column.editOptions\"\n [ariaLabel]=\"label(column.column)\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"draftValue(item, column.column)\"\n (ngModelChange)=\"setDraft(item, column.column, $event)\"\n />\n } @else {\n @switch (column.column.editType ?? 'text') {\n @case ('numeric') {\n <tx-input-number\n size=\"small\"\n class=\"tx-table__editor-control\"\n [ariaLabel]=\"label(column.column)\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"draftValue(item, column.column)\"\n (ngModelChange)=\"setDraft(item, column.column, $event)\"\n />\n }\n @case ('boolean') {\n <tx-checkbox\n binary\n [ariaLabel]=\"label(column.column)\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"draftValue(item, column.column)\"\n (ngModelChange)=\"setDraft(item, column.column, $event)\"\n />\n }\n @case ('date') {\n <input\n txInput\n type=\"date\"\n size=\"small\"\n class=\"tx-table__editor-control\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"label(column.column)\"\n [value]=\"dateInput(draftValue(item, column.column))\"\n (change)=\"setDraft(item, column.column, parseDateInput($any($event.target).value))\"\n />\n }\n @default {\n <input\n txInput\n type=\"text\"\n size=\"small\"\n class=\"tx-table__editor-control\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"label(column.column)\"\n [value]=\"draftValue(item, column.column) ?? ''\"\n (input)=\"setDraft(item, column.column, $any($event.target).value)\"\n />\n }\n }\n }\n </div>\n } @else if (templatesByField().get(column.column.field); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template.templateRef\"\n [ngTemplateOutletContext]=\"{\n $implicit: dataOf(item.row),\n row: dataOf(item.row),\n node: item.row,\n index: item.index,\n column: column.column,\n value: cellValue(item.row, column.column),\n }\"\n />\n } @else if (isLoadingRow(item)) {\n <tx-skeleton class=\"tx-table__loading-cell\" height=\"14px\" />\n } @else if (cellTooltip()) {\n <span class=\"tx-table__cell-text\" tooltipOverflowOnly [txTooltip]=\"displayValue(item.row, column.column)\">{{ displayValue(item.row, column.column) }}</span>\n } @else {\n {{ displayValue(item.row, column.column) }}\n }\n</ng-template>\n",
|
|
4507
|
+
template: "@if (showToolbar()) {\n <div class=\"tx-table__toolbar\" [class]=\"passThrough().toolbar?.class\" [style]=\"passThrough().toolbar?.style\">\n <div class=\"tx-table__toolbar-slot\"><ng-content select=\"[txTableToolbar]\" /></div>\n @if (showSettings()) {\n <tx-table-settings\n [columns]=\"columns()\"\n [hidden]=\"hidden()\"\n [showColumns]=\"columnSettings()\"\n [showActions]=\"actionsSettings()\"\n [unstyled]=\"isUnstyled()\"\n (columnToggled)=\"toggleColumn($event.field, $event.visible)\"\n />\n }\n </div>\n}\n\n@if (showPaginatorTop()) {\n <ng-container [ngTemplateOutlet]=\"pager\" [ngTemplateOutletContext]=\"{ $implicit: 'top' }\" />\n}\n\n<div class=\"tx-table__frame\" [class]=\"passThrough().frame?.class\" [style]=\"passThrough().frame?.style\" [attr.aria-busy]=\"loading() || null\">\n @if (cardView() && selectionMode() === 'checkbox' && !empty()) {\n <div class=\"tx-table__select-all\">\n <tx-checkbox\n binary\n [label]=\"translations().selectAll\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"allSelected()\"\n [indeterminate]=\"someSelected()\"\n (ngModelChange)=\"toggleAll($event)\"\n />\n </div>\n }\n\n @if (loading()) {\n <div class=\"tx-table__loading\" [class]=\"passThrough().loading?.class\" [style]=\"passThrough().loading?.style\">\n <tx-progress-spinner [ariaLabel]=\"translations().loading\" [unstyled]=\"isUnstyled()\" />\n </div>\n }\n\n @if (!cardView()) {\n <div\n class=\"tx-table__scroller\"\n [class.tx-table__scroller--empty]=\"empty()\"\n [class]=\"passThrough().scroller?.class\"\n [style]=\"passThrough().scroller?.style\"\n [style.max-height]=\"scrollHeight()\"\n (scroll)=\"onScroll($event)\"\n >\n <table\n class=\"tx-table__table\"\n [class]=\"passThrough().table?.class\"\n [style]=\"passThrough().table?.style\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-multiselectable]=\"rowSelection() || treeCheckbox() ? selectionMode() !== 'single' : null\"\n [attr.role]=\"isTree ? 'treegrid' : rowSelection() ? 'grid' : null\"\n >\n <thead class=\"tx-table__thead\" [class]=\"passThrough().thead?.class\" [style]=\"passThrough().thead?.style\">\n <tr\n #headerRow\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n class=\"tx-table__header-row\"\n [class]=\"passThrough().headerRow?.class\"\n [style]=\"passThrough().headerRow?.style\"\n [cdkDropListDisabled]=\"!reorderableColumns()\"\n (cdkDropListDropped)=\"dropColumn($event)\"\n >\n @for (item of renderColumns(); track item.column.field; let last = $last) {\n <th\n cdkDrag\n cdkDragLockAxis=\"x\"\n cdkDragPreviewClass=\"tx-table__drag-preview\"\n [cdkDragBoundary]=\"headerRow\"\n scope=\"col\"\n class=\"tx-table__th\"\n [class]=\"[item.column.headerClass ?? '', passThrough().headerCell?.class ?? '']\"\n [style]=\"passThrough().headerCell?.style\"\n [style.width]=\"item.style['width']\"\n [style.min-width]=\"item.style['minWidth']\"\n [style.max-width]=\"item.style['maxWidth']\"\n [style.inset-inline-start]=\"frozenStyle(item)['insetInlineStart']\"\n [style.inset-inline-end]=\"frozenStyle(item)['insetInlineEnd']\"\n [class.tx-table__cell--frozen]=\"!!item.frozen\"\n [class.tx-table__cell--frozen-last]=\"item.lastFrozenStart\"\n [class.tx-table__cell--frozen-first-end]=\"item.firstFrozenEnd\"\n [class.tx-table__th--draggable]=\"reorderableColumns() && item.kind === 'data' && item.column.reorderable !== false\"\n [attr.data-field]=\"item.column.field\"\n [attr.data-align]=\"item.column.align ?? null\"\n [attr.aria-sort]=\"item.kind === 'data' ? ariaSort(item.column) : null\"\n [cdkDragDisabled]=\"!reorderableColumns() || item.kind !== 'data' || item.column.reorderable === false\"\n >\n @switch (item.kind) {\n @case ('select') {\n @if (selectionMode() === 'checkbox') {\n <tx-checkbox\n binary\n class=\"tx-table__select\"\n [ariaLabel]=\"translations().selectAll\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"allSelected()\"\n [indeterminate]=\"someSelected()\"\n (ngModelChange)=\"toggleAll($event)\"\n />\n } @else {\n <span class=\"tx-table__sr-only\">{{ translations().selectRow }}</span>\n }\n }\n @case ('expand') {\n <span class=\"tx-table__sr-only\">{{ translations().expandRow }}</span>\n }\n @case ('actions') {\n <span class=\"tx-table__column-title\">{{ item.column.header }}</span>\n }\n @default {\n <div class=\"tx-table__header-content\">\n @if (treeCheckbox() && item.column.field === treeField()) {\n <tx-checkbox\n binary\n class=\"tx-table__select tx-table__tree-select-all\"\n [ariaLabel]=\"translations().selectAll\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"allSelected()\"\n [indeterminate]=\"someSelected()\"\n (ngModelChange)=\"toggleAll($event)\"\n />\n }\n @if (headerTemplatesByField().get(item.column.field); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: item.column }\" />\n } @else if (isSortable(item.column)) {\n @if (reorderableColumns() && item.column.reorderable !== false) {\n <tx-icon class=\"tx-table__grip\" aria-hidden=\"true\" name=\"grip-vertical\" />\n }\n <button\n type=\"button\"\n class=\"tx-table__sort\"\n [class]=\"passThrough().sortButton?.class\"\n [style]=\"passThrough().sortButton?.style\"\n (click)=\"sort(item.column, $event)\"\n (keydown.alt.arrowleft)=\"moveColumnBy(item.column, -1, $event)\"\n (keydown.alt.arrowright)=\"moveColumnBy(item.column, 1, $event)\"\n >\n <span class=\"tx-table__column-title\">{{ label(item.column) }}</span>\n @if (sortOrderOf(item.column); as order) {\n <tx-icon\n class=\"tx-table__sort-icon\"\n aria-hidden=\"true\"\n name=\"sort-amount-down\"\n [class.tx-table__sort-icon--desc]=\"order === 'desc'\"\n [class]=\"passThrough().sortIcon?.class\"\n [style]=\"passThrough().sortIcon?.style\"\n />\n @if (sortMode() === 'multiple' && sortMeta().length > 1) {\n <span class=\"tx-table__sort-badge\" aria-hidden=\"true\">{{ sortIndexOf(item.column) + 1 }}</span>\n }\n }\n </button>\n } @else {\n @if (reorderableColumns() && item.column.reorderable !== false) {\n <tx-icon class=\"tx-table__grip\" aria-hidden=\"true\" name=\"grip-vertical\" />\n }\n <span class=\"tx-table__column-title\">{{ label(item.column) }}</span>\n }\n @if (item.column.filter && filterDisplay() === 'menu') {\n <tx-table-column-filter class=\"tx-table__filter\" [column]=\"item.column\" />\n }\n </div>\n }\n }\n @if (resizableColumns() && item.kind === 'data' && item.column.resizable !== false && item.column.width === undefined && !last) {\n <span\n class=\"tx-table__resizer\"\n role=\"separator\"\n tabindex=\"0\"\n aria-orientation=\"vertical\"\n [class.tx-table__resizer--active]=\"resizing() === item.column.field\"\n [attr.aria-label]=\"translations().resizeColumn.replace('{column}', label(item.column))\"\n [attr.aria-valuenow]=\"resizeValue(item.column)\"\n [attr.aria-valuemin]=\"resizeMin(item.column)\"\n [attr.aria-valuemax]=\"resizeMax(item.column)\"\n (pointerdown)=\"startResize(item, $event)\"\n (click)=\"$event.stopPropagation()\"\n (keydown.arrowleft)=\"resizeByKey(item, -10, $event)\"\n (keydown.arrowright)=\"resizeByKey(item, 10, $event)\"\n >\n <span class=\"tx-table__resizer-line\"></span>\n </span>\n }\n </th>\n }\n </tr>\n @if (filterRow()) {\n <tr class=\"tx-table__filter-row\">\n @for (item of renderColumns(); track item.column.field) {\n <td\n class=\"tx-table__th tx-table__filter-cell\"\n [style.inset-inline-start]=\"frozenStyle(item)['insetInlineStart']\"\n [style.inset-inline-end]=\"frozenStyle(item)['insetInlineEnd']\"\n [class.tx-table__cell--frozen]=\"!!item.frozen\"\n [class.tx-table__cell--frozen-last]=\"item.lastFrozenStart\"\n [class.tx-table__cell--frozen-first-end]=\"item.firstFrozenEnd\"\n >\n @if (item.kind === 'data' && item.column.filter) {\n <tx-table-column-filter display=\"row\" [column]=\"item.column\" />\n }\n </td>\n }\n </tr>\n }\n </thead>\n @if (frozenRows().length) {\n <tbody class=\"tx-table__frozen-tbody\" [style.top.px]=\"headerHeight()\">\n @for (item of frozenRows(); track item.key; let position = $index) {\n <tr class=\"tx-table__row tx-table__row--frozen\">\n <ng-container [ngTemplateOutlet]=\"rowCells\" [ngTemplateOutletContext]=\"{ $implicit: item, position }\" />\n </tr>\n }\n </tbody>\n }\n <tbody\n #tbody\n cdkDropList\n class=\"tx-table__tbody\"\n [class]=\"passThrough().tbody?.class\"\n [style]=\"passThrough().tbody?.style\"\n [cdkDropListDisabled]=\"!reorderableRows()\"\n (cdkDropListDropped)=\"dropRow($event)\"\n >\n @if (spacerBefore()) {\n <tr class=\"tx-table__spacer\" aria-hidden=\"true\">\n <td [attr.colspan]=\"dataColumnCount()\" [style.height.px]=\"spacerBefore()\"></td>\n </tr>\n }\n @for (item of visibleRows(); track item.key; let windowIndex = $index) {\n @let position = windowRange().start + windowIndex;\n @let odd = position % 2 === 1;\n @if (item.group?.first && rowGroupMode() === 'subheader') {\n <tr class=\"tx-table__group-header\">\n <td class=\"tx-table__group-cell\" [attr.colspan]=\"dataColumnCount()\">\n <div class=\"tx-table__group-content\">\n @if (expandableRowGroups()) {\n <button\n type=\"button\"\n class=\"tx-table__row-toggle\"\n [attr.aria-expanded]=\"!item.group.collapsed\"\n [attr.aria-label]=\"item.group.collapsed ? translations().expandRow : translations().collapseRow\"\n (click)=\"toggleGroup(item)\"\n >\n <tx-icon aria-hidden=\"true\" name=\"chevron-right\" class=\"tx-table__row-toggle-icon\" [class.tx-table__row-toggle-icon--open]=\"!item.group.collapsed\" />\n </button>\n }\n @if (groupHeaderTemplate(); as header) {\n <ng-container [ngTemplateOutlet]=\"header.templateRef\" [ngTemplateOutletContext]=\"groupContext(item)\" />\n } @else {\n <span class=\"tx-table__group-title\">{{ item.group.value }}</span>\n <span class=\"tx-table__group-count\">{{ translations().rowGroup.replace('{count}', '' + item.group.size) }}</span>\n }\n </div>\n </td>\n </tr>\n }\n @if (!item.group?.collapsed || animatedGroups()) {\n <tr\n cdkDrag\n cdkDragLockAxis=\"y\"\n cdkDragPreviewContainer=\"parent\"\n class=\"tx-table__row\"\n [class]=\"[rowClassOf(item) ?? '', passThrough().row?.class ?? '']\"\n [style]=\"passThrough().row?.style\"\n [class.tx-table__row--odd]=\"odd\"\n [class.tx-table__row--selected]=\"item.selected\"\n [class.tx-table__row--selectable]=\"rowSelection() && item.selectable\"\n [class.tx-table__row--menu]=\"menuRowKey() === item.key && menuRowKey() !== undefined\"\n [attr.aria-selected]=\"rowSelection() ? item.selected : null\"\n [attr.aria-level]=\"item.tree?.level ?? null\"\n [attr.aria-expanded]=\"item.tree && !item.tree.leaf ? item.tree.expanded : null\"\n [attr.aria-setsize]=\"item.tree?.setSize ?? null\"\n [attr.aria-posinset]=\"item.tree?.posInSet ?? null\"\n [attr.aria-busy]=\"item.tree?.loading || null\"\n [attr.tabindex]=\"rowsFocusable() ? (position === focusedRow() ? 0 : -1) : null\"\n [attr.data-key]=\"item.key\"\n [class.tx-table__row--editing]=\"isRowEditing(item)\"\n [class.tx-table__row--collapsed]=\"isCollapsedRow(item)\"\n [attr.inert]=\"isCollapsedRow(item) ? '' : null\"\n [attr.aria-hidden]=\"isCollapsedRow(item) ? true : null\"\n (click)=\"onRowClick(item, position, $event)\"\n (keydown)=\"onRowKeydown(item, position, $event)\"\n (contextmenu)=\"onRowContextMenu(item, $event)\"\n >\n <ng-container [ngTemplateOutlet]=\"rowCells\" [ngTemplateOutletContext]=\"{ $implicit: item, position }\" />\n </tr>\n @if ((item.expanded || isClosing(item.key)) && !item.group?.collapsed && expansionTemplate(); as expansion) {\n <tr class=\"tx-table__expansion\">\n <td class=\"tx-table__expansion-cell\" [attr.colspan]=\"dataColumnCount()\">\n <div\n class=\"tx-table__expansion-body\"\n [class.tx-table__expansion-body--open]=\"item.expanded\"\n (transitionend)=\"finishClosing(item.key, $event)\"\n >\n <div class=\"tx-table__expansion-inner\">\n <div class=\"tx-table__expansion-content\">\n <ng-container [ngTemplateOutlet]=\"expansion.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: dataOf(item.row), node: item.row, index: item.index }\" />\n </div>\n </div>\n </div>\n </td>\n </tr>\n }\n @if (item.group?.last && rowGroupMode() === 'subheader' && groupFooterTemplate(); as footer) {\n <tr class=\"tx-table__group-footer\">\n <td class=\"tx-table__group-cell\" [attr.colspan]=\"dataColumnCount()\">\n <ng-container [ngTemplateOutlet]=\"footer.templateRef\" [ngTemplateOutletContext]=\"groupContext(item)\" />\n </td>\n </tr>\n }\n }\n }\n @if (spacerAfter()) {\n <tr class=\"tx-table__spacer\" aria-hidden=\"true\">\n <td [attr.colspan]=\"dataColumnCount()\" [style.height.px]=\"spacerAfter()\"></td>\n </tr>\n }\n </tbody>\n @if (hasFooter()) {\n <tfoot class=\"tx-table__tfoot\" [class]=\"passThrough().tfoot?.class\" [style]=\"passThrough().tfoot?.style\">\n <tr>\n @for (item of renderColumns(); track item.column.field) {\n <td\n class=\"tx-table__footer-cell\"\n [class]=\"passThrough().footerCell?.class\"\n [style]=\"passThrough().footerCell?.style\"\n [style.inset-inline-start]=\"frozenStyle(item)['insetInlineStart']\"\n [style.inset-inline-end]=\"frozenStyle(item)['insetInlineEnd']\"\n [class.tx-table__cell--frozen]=\"!!item.frozen\"\n [attr.data-align]=\"item.column.align ?? null\"\n >\n @if (footerTemplatesByField().get(item.column.field); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: item.column }\" />\n } @else {\n {{ item.column.footer }}\n }\n </td>\n }\n </tr>\n </tfoot>\n }\n </table>\n </div>\n } @else if (!empty()) {\n <div class=\"tx-table__cards\" role=\"list\" [class]=\"passThrough().cards?.class\" [style]=\"passThrough().cards?.style\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @for (item of renderRows(); track item.key) {\n <div\n role=\"listitem\"\n class=\"tx-table__card\"\n [class]=\"passThrough().card?.class\"\n [style]=\"passThrough().card?.style\"\n [class.tx-table__card--selected]=\"item.selected\"\n [class.tx-table__card--custom]=\"!!cardTemplate()\"\n >\n @if (cardTemplate(); as card) {\n <ng-container [ngTemplateOutlet]=\"card.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: dataOf(item.row), node: item.row, index: item.index }\" />\n } @else {\n @if (hasSelectColumn()) {\n <div class=\"tx-table__card-select\">\n @if (selectionMode() === 'checkbox') {\n <tx-checkbox\n binary\n [ariaLabel]=\"translations().selectRow\"\n [disabled]=\"!item.selectable\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"item.selected\"\n (ngModelChange)=\"toggleRow(item)\"\n />\n } @else {\n <tx-radio-button\n [value]=\"item.key\"\n [ariaLabel]=\"translations().selectRow\"\n [disabled]=\"!item.selectable\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"radioValue()\"\n (ngModelChange)=\"selectRadio(item)\"\n />\n }\n </div>\n }\n @if (cardTitleColumn(); as title) {\n <div class=\"tx-table__card-title\" [class.tx-table__card-title--select]=\"hasSelectColumn()\">\n <ng-container [ngTemplateOutlet]=\"cellContent\" [ngTemplateOutletContext]=\"{ $implicit: item, column: title }\" />\n </div>\n }\n @for (column of cardFields(); track column.field) {\n <div class=\"tx-table__card-field\">\n <span class=\"tx-table__card-label\">{{ label(column) }}</span>\n <span class=\"tx-table__card-value\"><ng-container [ngTemplateOutlet]=\"cellContent\" [ngTemplateOutletContext]=\"{ $implicit: item, column }\" /></span>\n </div>\n }\n @if (actionsTemplate(); as actions) {\n <div class=\"tx-table__card-actions\">\n <ng-container [ngTemplateOutlet]=\"actions.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: dataOf(item.row), node: item.row, index: item.index }\" />\n </div>\n }\n }\n </div>\n }\n </div>\n }\n\n @if (empty()) {\n <div class=\"tx-table__empty\" [class]=\"passThrough().empty?.class\" [style]=\"passThrough().empty?.style\">\n @if (emptyTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: dataColumnCount() }\" />\n } @else {\n {{ emptyMessage() ?? translations().emptyMessage }}\n }\n </div>\n }\n</div>\n\n@if (showPaginatorBottom()) {\n <ng-container [ngTemplateOutlet]=\"pager\" [ngTemplateOutletContext]=\"{ $implicit: 'bottom' }\" />\n}\n\n<ng-content />\n\n<tx-tiered-menu\n #rowMenu\n popup\n variant=\"context\"\n placement=\"bottom-start\"\n [offset]=\"0\"\n [model]=\"menuItems()\"\n [ariaLabel]=\"translations().rowActions\"\n [unstyled]=\"isUnstyled()\"\n (closed)=\"onMenuClosed()\"\n>\n <ng-template txMenuItem let-menuItem>\n @if (actionTemplate(menuItem); as action) {\n <span class=\"tx-table__menu-action\" aria-hidden=\"true\" [attr.data-action-id]=\"action.id()\">\n <ng-container [ngTemplateOutlet]=\"action.templateRef\" />\n </span>\n } @else if (menuItem.icon) {\n <tx-icon class=\"tx-table__menu-icon\" aria-hidden=\"true\" [name]=\"menuItem.icon\" />\n }\n <span class=\"tx-table__menu-label\">{{ menuItem.label }}</span>\n </ng-template>\n</tx-tiered-menu>\n\n<ng-template #cellContent let-item let-column=\"column\">\n @if (templatesByField().get(column.field); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: dataOf(item.row), row: dataOf(item.row), node: item.row, index: item.index, column, value: cellValue(item.row, column) }\"\n />\n } @else {\n {{ displayValue(item.row, column) }}\n }\n</ng-template>\n\n<ng-template #pager let-position>\n <tx-paginator\n class=\"tx-table__paginator\"\n [class.tx-table__paginator--top]=\"position === 'top'\"\n [class]=\"passThrough().paginator?.class\"\n [style]=\"passThrough().paginator?.style\"\n [first]=\"first()\"\n [rows]=\"rows()\"\n [totalRecords]=\"total()\"\n [rowsPerPageOptions]=\"rowsPerPageOptions()\"\n [showTotal]=\"showTotal()\"\n [showCurrentPageReport]=\"showCurrentPageReport()\"\n [currentPageReportTemplate]=\"currentPageReportTemplate()\"\n [showFirstLastIcon]=\"showFirstLastIcon()\"\n [showPageLinks]=\"showPageLinks()\"\n [showJumpToPageDropdown]=\"showJumpToPageDropdown()\"\n [showJumpToPageInput]=\"showJumpToPageInput()\"\n [alwaysShow]=\"alwaysShowPaginator()\"\n [pageLinkSize]=\"pageLinks()\"\n [unstyled]=\"isUnstyled()\"\n (pageChange)=\"onPage($event)\"\n />\n</ng-template>\n\n<ng-template #rowCells let-item let-position=\"position\">\n @for (column of renderColumns(); track column.column.field) {\n @if (!isGroupedCellHidden(item, column)) {\n <td\n class=\"tx-table__td\"\n [class]=\"[column.column.cellClass ?? '', passThrough().cell?.class ?? '']\"\n [style]=\"passThrough().cell?.style\"\n [style.inset-inline-start]=\"frozenStyle(column)['insetInlineStart']\"\n [style.inset-inline-end]=\"frozenStyle(column)['insetInlineEnd']\"\n [class.tx-table__cell--frozen]=\"!!column.frozen\"\n [class.tx-table__cell--frozen-last]=\"column.lastFrozenStart\"\n [class.tx-table__cell--frozen-first-end]=\"column.firstFrozenEnd\"\n [class.tx-table__td--actions]=\"column.kind === 'actions'\"\n [class.tx-table__td--editable]=\"column.kind === 'data' && editMode() === 'cell' && !!column.column.editable\"\n [class.tx-table__td--editing]=\"column.kind === 'data' && isEditing(item, column.column)\"\n [attr.data-field]=\"column.column.field\"\n [attr.data-align]=\"column.column.align ?? null\"\n [attr.rowspan]=\"groupRowspan(item, column)\"\n [attr.tabindex]=\"column.kind === 'data' && editMode() === 'cell' && column.column.editable ? 0 : null\"\n (click)=\"onCellClick(item, column, $event)\"\n (keydown)=\"onCellKeydown(item, column, $event)\"\n (focusout)=\"onCellFocusOut(item, column, $event)\"\n >\n @if (animatedRows()) {\n <div class=\"tx-table__cell-body\">\n <div class=\"tx-table__cell-inner\">\n <ng-container [ngTemplateOutlet]=\"cellBody\" [ngTemplateOutletContext]=\"{ $implicit: item, column, position }\" />\n </div>\n </div>\n } @else {\n <ng-container [ngTemplateOutlet]=\"cellBody\" [ngTemplateOutletContext]=\"{ $implicit: item, column, position }\" />\n }\n </td>\n }\n }\n</ng-template>\n\n<ng-template #cellBody let-item let-column=\"column\" let-position=\"position\">\n @switch (column.kind) {\n @case ('reorder') {\n <button\n type=\"button\"\n cdkDragHandle\n class=\"tx-table__row-handle\"\n [attr.aria-label]=\"translations().moveRow\"\n (keydown.alt.arrowup)=\"moveRowBy(position, -1, $event)\"\n (keydown.alt.arrowdown)=\"moveRowBy(position, 1, $event)\"\n >\n <tx-icon aria-hidden=\"true\" name=\"bars\" />\n </button>\n }\n @case ('select') {\n @if (selectionMode() === 'checkbox') {\n <tx-checkbox\n binary\n class=\"tx-table__select\"\n [ariaLabel]=\"translations().selectRow\"\n [disabled]=\"!item.selectable\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"item.selected\"\n (ngModelChange)=\"toggleRow(item)\"\n />\n } @else {\n <tx-radio-button\n class=\"tx-table__select\"\n [value]=\"item.key\"\n [ariaLabel]=\"translations().selectRow\"\n [disabled]=\"!item.selectable\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"radioValue()\"\n (ngModelChange)=\"selectRadio(item)\"\n />\n }\n }\n @case ('expand') {\n @if (canExpand(item)) {\n <button\n type=\"button\"\n class=\"tx-table__row-toggle\"\n [attr.aria-expanded]=\"item.expanded\"\n [attr.aria-label]=\"item.expanded ? translations().collapseRow : translations().expandRow\"\n (click)=\"toggleExpansion(item, $event)\"\n >\n <tx-icon aria-hidden=\"true\" name=\"chevron-right\" class=\"tx-table__row-toggle-icon\" [class.tx-table__row-toggle-icon--open]=\"item.expanded\" />\n </button>\n }\n }\n @case ('actions') {\n @if (actionsTemplate(); as actions) {\n <ng-container [ngTemplateOutlet]=\"actions.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: dataOf(item.row), node: item.row, index: item.index }\" />\n }\n }\n @case ('editor') {\n <div class=\"tx-table__row-editor\">\n @if (isRowEditing(item)) {\n <button\n txButton\n type=\"button\"\n text\n rounded\n size=\"small\"\n severity=\"success\"\n icon=\"check\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"translations().saveRow\"\n (click)=\"saveRow(item)\"\n ></button>\n <button\n txButton\n type=\"button\"\n text\n rounded\n size=\"small\"\n severity=\"danger\"\n icon=\"times\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"translations().cancelEdit\"\n (click)=\"cancelRow(item)\"\n ></button>\n } @else {\n <button\n txButton\n type=\"button\"\n text\n rounded\n size=\"small\"\n severity=\"secondary\"\n icon=\"pencil\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"translations().editRow\"\n (click)=\"startRowEdit(item)\"\n ></button>\n }\n </div>\n }\n @default {\n @if (item.tree && column.column.field === treeField()) {\n <div class=\"tx-table__tree-cell\" [style.--tx-table-tree-level]=\"item.tree.level - 1\">\n <button\n type=\"button\"\n class=\"tx-table__row-toggle tx-table__tree-toggle\"\n [class.tx-table__tree-toggle--hidden]=\"item.tree.leaf\"\n [attr.tabindex]=\"item.tree.leaf ? -1 : null\"\n [attr.aria-hidden]=\"item.tree.leaf || null\"\n [attr.aria-expanded]=\"item.tree.leaf ? null : item.tree.expanded\"\n [attr.aria-label]=\"item.tree.expanded ? translations().collapseRow : translations().expandRow\"\n [class]=\"passThrough().treeToggle?.class\"\n [style]=\"passThrough().treeToggle?.style\"\n (click)=\"toggleNode(item, $event)\"\n >\n @if (item.tree.loading) {\n <tx-icon aria-hidden=\"true\" name=\"spinner\" class=\"tx-table__tree-toggle-icon--loading\" />\n } @else {\n <tx-icon aria-hidden=\"true\" name=\"chevron-right\" class=\"tx-table__row-toggle-icon\" [class.tx-table__row-toggle-icon--open]=\"item.tree.expanded\" />\n }\n </button>\n @if (treeCheckbox()) {\n <tx-checkbox\n binary\n class=\"tx-table__tree-checkbox\"\n [ariaLabel]=\"translations().selectRow\"\n [disabled]=\"!item.selectable\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"item.selected\"\n [indeterminate]=\"item.tree.partial\"\n (ngModelChange)=\"toggleRow(item)\"\n />\n }\n <div class=\"tx-table__tree-content\">\n <ng-container [ngTemplateOutlet]=\"dataCell\" [ngTemplateOutletContext]=\"{ $implicit: item, column }\" />\n </div>\n </div>\n } @else {\n <ng-container [ngTemplateOutlet]=\"dataCell\" [ngTemplateOutletContext]=\"{ $implicit: item, column }\" />\n }\n }\n }\n</ng-template>\n\n<ng-template #dataCell let-item let-column=\"column\">\n @if (isEditing(item, column.column)) {\n <div class=\"tx-table__editor\">\n @if (editorTemplatesByField().get(column.column.field); as editor) {\n <ng-container [ngTemplateOutlet]=\"editor.templateRef\" [ngTemplateOutletContext]=\"editorContext(item, column.column)\" />\n } @else if (column.column.editOptions?.length) {\n <tx-select\n size=\"small\"\n optionLabel=\"label\"\n optionValue=\"value\"\n class=\"tx-table__editor-control\"\n [options]=\"column.column.editOptions\"\n [ariaLabel]=\"label(column.column)\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"draftValue(item, column.column)\"\n (ngModelChange)=\"setDraft(item, column.column, $event)\"\n />\n } @else {\n @switch (column.column.editType ?? 'text') {\n @case ('numeric') {\n <tx-input-number\n size=\"small\"\n class=\"tx-table__editor-control\"\n [ariaLabel]=\"label(column.column)\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"draftValue(item, column.column)\"\n (ngModelChange)=\"setDraft(item, column.column, $event)\"\n />\n }\n @case ('boolean') {\n <tx-checkbox\n binary\n [ariaLabel]=\"label(column.column)\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"draftValue(item, column.column)\"\n (ngModelChange)=\"setDraft(item, column.column, $event)\"\n />\n }\n @case ('date') {\n <tx-datepicker\n size=\"small\"\n class=\"tx-table__editor-control\"\n [ariaLabel]=\"label(column.column)\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"dateDraft(draftValue(item, column.column))\"\n (ngModelChange)=\"setDraft(item, column.column, $event)\"\n />\n }\n @default {\n <input\n txInput\n type=\"text\"\n size=\"small\"\n class=\"tx-table__editor-control\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"label(column.column)\"\n [value]=\"draftValue(item, column.column) ?? ''\"\n (input)=\"setDraft(item, column.column, $any($event.target).value)\"\n />\n }\n }\n }\n </div>\n } @else if (templatesByField().get(column.column.field); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template.templateRef\"\n [ngTemplateOutletContext]=\"{\n $implicit: dataOf(item.row),\n row: dataOf(item.row),\n node: item.row,\n index: item.index,\n column: column.column,\n value: cellValue(item.row, column.column),\n }\"\n />\n } @else if (isLoadingRow(item)) {\n <tx-skeleton class=\"tx-table__loading-cell\" height=\"14px\" />\n } @else if (cellTooltip()) {\n <span class=\"tx-table__cell-text\" tooltipOverflowOnly [txTooltip]=\"displayValue(item.row, column.column)\">{{ displayValue(item.row, column.column) }}</span>\n } @else {\n {{ displayValue(item.row, column.column) }}\n }\n</ng-template>\n",
|
|
4440
4508
|
styles: [":host{display:block;min-width:0}.tx-table__toolbar{display:flex;align-items:center;justify-content:space-between}.tx-table__toolbar-slot{flex:1;min-width:0}.tx-table__frame{position:relative}.tx-table__scroller{position:relative;overflow:auto}.tx-table__scroller--empty{overflow:hidden}.tx-table__table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0}.tx-table__thead{position:sticky;inset-block-start:0;z-index:2}.tx-table__th,.tx-table__td,.tx-table__footer-cell{box-sizing:border-box;overflow:hidden;text-align:start;vertical-align:middle}.tx-table__th{position:relative;white-space:nowrap;text-overflow:ellipsis}.tx-table__td{white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums}[data-align=center]{text-align:center}[data-align=end]{text-align:end}.tx-table__cell--frozen{position:sticky;z-index:1}.tx-table__sort{display:inline-flex;align-items:center;max-width:100%;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:inherit;cursor:pointer}.tx-table__header-content{display:flex;align-items:center;min-width:0}.tx-table__header-content>.tx-table__sort,.tx-table__header-content>.tx-table__column-title{min-width:0}.tx-table__filter{flex-shrink:0;margin-inline-start:auto}.tx-table__filter-cell{overflow:visible}.tx-table__column-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-table__sort-icon{flex-shrink:0}.tx-table__sort-icon--desc{transform:rotate(180deg)}.tx-table__sort-badge{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.tx-table__resizer{position:absolute;inset-block:0;inset-inline-end:-5px;z-index:3;display:flex;align-items:center;justify-content:center;cursor:col-resize;touch-action:none}.tx-table__resizer:before{content:\"\";position:absolute;inset-block:0;inset-inline-start:-2px;width:14px}.tx-table__resizer-line{height:100%}.tx-table__th--draggable{cursor:grab}.tx-table__th--draggable:active{cursor:grabbing}.tx-table__row--selectable{cursor:pointer}.tx-table__row-toggle{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;margin:0;padding:0;border:0;background:transparent;cursor:pointer}.tx-table__row-toggle-icon:dir(rtl){transform:scaleX(-1)}.tx-table__row-toggle-icon--open,.tx-table__row-toggle-icon--open:dir(rtl){transform:rotate(90deg)}.tx-table__expansion-body{display:grid;grid-template-rows:0fr}.tx-table__expansion-body--open{grid-template-rows:1fr}.tx-table__expansion-inner{min-height:0;overflow:hidden}.tx-table__expansion-body:not(.tx-table__expansion-body--open)>.tx-table__expansion-inner{visibility:hidden}.tx-table__grip{position:absolute;inset-block-start:50%;inset-inline-start:1px;opacity:0;transform:translateY(-50%);pointer-events:none}.tx-table__th--draggable:hover .tx-table__grip,.tx-table__th--draggable:focus-within .tx-table__grip{opacity:1}.tx-table__select{display:inline-flex;vertical-align:middle}.tx-table__editor{display:flex;align-items:center;min-width:0}.tx-table__editor-control{flex:1;width:100%;min-width:0}.tx-table__row-editor{display:flex;align-items:center;justify-content:center}.tx-table__td--editable{cursor:text}.tx-table__td--editing{overflow:visible;text-overflow:clip}.tx-table__cell-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-table__spacer>td{padding:0;border:0}.tx-table__cell-body{display:grid;grid-template-rows:1fr}.tx-table__cell-inner{min-height:0;overflow:hidden;text-overflow:ellipsis}.tx-table__row--collapsed .tx-table__cell-body{grid-template-rows:0fr}.tx-table__row--collapsed .tx-table__cell-inner{visibility:hidden}.tx-table__frozen-tbody{position:sticky;z-index:2}.tx-table__row-handle{display:inline-flex;align-items:center;justify-content:center;margin:0;padding:0;border:0;background:transparent;color:inherit;cursor:grab;touch-action:none}.tx-table__tbody.cdk-drop-list-dragging .tx-table__row:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.tx-table__row.cdk-drag-preview{display:table-row}.tx-table__group-content{display:flex;align-items:center}.tx-table__loading{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center}.tx-table__sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.tx-table__cards{display:grid}.tx-table__card{position:relative;display:flex;flex-direction:column;min-width:0}.tx-table__card-field,.tx-table__card-title{display:flex;align-items:center;min-width:0;overflow-wrap:break-word}.tx-table__card-field{text-align:end}.tx-table__card-label{flex-shrink:0;max-width:45%;margin-inline-end:auto;text-align:start}.tx-table__card-value{min-width:0}.tx-table__card-select{position:absolute;z-index:1}.tx-table__card-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;order:99;margin-top:auto}.tx-table--resizing{cursor:col-resize;-webkit-user-select:none;user-select:none}.tx-table--resizing *{cursor:col-resize}.tx-table__tree-cell{display:flex;align-items:center;min-width:0}.tx-table__tree-content{min-width:0;overflow:hidden;text-overflow:ellipsis}.tx-table__tree-toggle{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;margin:0;padding:0;border:0;background:transparent;color:inherit;cursor:pointer}.tx-table__tree-toggle--hidden{visibility:hidden}.tx-table__tree-select-all{margin-inline-end:var(--tx-tree-table-node-gap)}:host([data-styled]){color:var(--tx-table-color);font-size:var(--tx-table-font-size);line-height:var(--tx-table-line-height)}:host([data-styled]) .tx-table__toolbar{gap:var(--tx-table-toolbar-gap);margin-bottom:var(--tx-table-toolbar-margin-bottom)}:host([data-styled]) .tx-table__scroller{padding-bottom:var(--tx-table-scroller-padding-bottom);scrollbar-color:var(--tx-table-scroller-scrollbar-thumb) transparent}:host([data-styled]) .tx-table__scroller::-webkit-scrollbar{width:var(--tx-table-scroller-scrollbar-size);height:var(--tx-table-scroller-scrollbar-size)}:host([data-styled]) .tx-table__scroller::-webkit-scrollbar-track,:host([data-styled]) .tx-table__scroller::-webkit-scrollbar-corner{background:transparent}:host([data-styled]) .tx-table__scroller::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background-color:var(--tx-table-scroller-scrollbar-thumb);background-clip:padding-box}:host([data-styled]) .tx-table__scroller::-webkit-scrollbar-thumb:hover{background-color:var(--tx-table-scroller-scrollbar-thumb-hover)}:host([data-styled]) .tx-table__scroller--empty{padding-bottom:0}:host([data-styled]) .tx-table__thead{background:var(--tx-table-header-cell-background)}:host([data-styled]) .tx-table__th{padding:var(--tx-table-header-cell-padding);border-color:var(--tx-table-border-color);border-style:solid;border-width:0 0 1px;background:var(--tx-table-header-cell-background);color:var(--tx-table-header-cell-color);font-size:var(--tx-table-header-cell-font-size);font-weight:var(--tx-table-header-cell-font-weight);transition:background var(--tx-table-transition-duration),color var(--tx-table-transition-duration)}:host([data-styled]) .tx-table__header-content{gap:var(--tx-table-header-cell-gap)}:host([data-styled]) .tx-table__filter{margin-block:calc(var(--tx-table-filter-button-inset) * -1)}:host([data-styled]) .tx-table__filter-cell{padding:var(--tx-table-filter-cell-padding);font-weight:var(--tx-font-weight-regular)}:host([data-styled]) .tx-table__sort{gap:var(--tx-table-header-cell-gap);border-radius:var(--tx-radius-xs)}:host([data-styled]) .tx-table__sort:focus-visible{outline:var(--tx-table-header-cell-focus-ring-width) var(--tx-table-header-cell-focus-ring-style) var(--tx-table-header-cell-focus-ring-color);outline-offset:var(--tx-table-header-cell-focus-ring-offset);box-shadow:var(--tx-table-header-cell-focus-ring-shadow)}:host([data-styled]) .tx-table__sort-icon{--tx-icon-size: var(--tx-table-sort-icon-size);color:var(--tx-table-sort-icon-color);transition:transform .3s ease}:host([data-styled]) .tx-table__sort-badge{min-width:var(--tx-table-sort-icon-badge-size);height:var(--tx-table-sort-icon-badge-size);border-radius:999px;background:var(--tx-table-sort-icon-badge-background);color:var(--tx-table-sort-icon-badge-color);font-size:var(--tx-table-sort-icon-badge-font-size)}:host([data-styled]) .tx-table__resizer{width:var(--tx-table-column-resizer-width)}:host([data-styled]) .tx-table__resizer-line{width:var(--tx-table-column-resizer-line-width);background-color:transparent;transition:background-color var(--tx-table-transition-duration)}:host([data-styled]) .tx-table__resizer:hover .tx-table__resizer-line,:host([data-styled]) .tx-table__resizer--active .tx-table__resizer-line,:host([data-styled]) .tx-table__resizer:focus-visible .tx-table__resizer-line{background-color:var(--tx-table-column-resizer-color)}:host([data-styled]) .tx-table__resizer:focus-visible{outline:none}:host([data-styled]) .tx-table__header-row.cdk-drop-list-dragging{background:var(--tx-table-drop-point-background)}:host([data-styled]) .tx-table__header-row.cdk-drop-list-dragging .tx-table__th:hover{background:var(--tx-table-drop-point-hover-background)}:host([data-styled]) .tx-table__th.cdk-drag-placeholder{opacity:.6}:host([data-styled]) .tx-table__row{background:var(--tx-table-row-background);color:var(--tx-table-row-color);outline-color:transparent;transition:background var(--tx-table-transition-duration)}:host([data-styled]) .tx-table__td{height:var(--tx-table-body-cell-height);padding:var(--tx-table-body-cell-padding);border-color:var(--tx-table-border-color);border-style:solid;border-width:0 0 1px}:host([data-styled]) .tx-table__expansion-cell{padding:0;border-color:var(--tx-table-border-color);border-style:solid;border-width:0 0 1px;background:var(--tx-table-row-background)}:host([data-styled]) .tx-table__expansion-content{padding:var(--tx-table-body-cell-padding)}:host([data-styled]) .tx-table__expansion-body{transition:grid-template-rows var(--tx-table-expansion-duration) var(--tx-table-expansion-easing)}:host([data-styled]) .tx-table__expansion-body:not(.tx-table__expansion-body--open)>.tx-table__expansion-inner{transition:visibility 0s linear var(--tx-table-expansion-duration)}@starting-style{:host([data-styled]) .tx-table__expansion-body--open{grid-template-rows:0fr}}:host([data-styled]) .tx-table__row-toggle-icon{transition:transform var(--tx-table-expansion-duration) var(--tx-table-expansion-easing)}:host([data-styled]) .tx-table__row--collapsed>.tx-table__td{height:0;padding-block:0;border-bottom-width:0}:host([data-styled]) .tx-table__tbody:has(.tx-table__cell-body)>.tx-table__row{transition:visibility 0s linear}:host([data-styled]) .tx-table__tbody:has(.tx-table__cell-body)>.tx-table__row--collapsed{visibility:collapse;transition-delay:var(--tx-table-expansion-duration)}:host([data-styled]) .tx-table__cell-body{transition:grid-template-rows var(--tx-table-expansion-duration) var(--tx-table-expansion-easing)}:host([data-styled]) .tx-table__cell-inner{transition:visibility 0s linear}:host([data-styled]) .tx-table__row--collapsed .tx-table__cell-inner{transition-delay:var(--tx-table-expansion-duration)}:host([data-styled]) .tx-table__tbody:has(.tx-table__cell-body)>.tx-table__row>.tx-table__td{transition:height var(--tx-table-expansion-duration) var(--tx-table-expansion-easing),padding-block var(--tx-table-expansion-duration) var(--tx-table-expansion-easing),border-bottom-width var(--tx-table-expansion-duration) var(--tx-table-expansion-easing)}:host([data-styled]) .tx-table__grip{--tx-icon-size: var(--tx-table-grip-size);color:var(--tx-table-grip-color);transition:opacity var(--tx-table-transition-duration)}:host([data-styled]) .tx-table__footer-cell{padding:var(--tx-table-footer-cell-padding);border-color:var(--tx-table-border-color);border-style:solid;border-width:0 0 1px;background:var(--tx-table-footer-cell-background);color:var(--tx-table-footer-cell-color);font-weight:var(--tx-table-footer-cell-font-weight)}:host([data-styled]) .tx-table__cell--frozen{background:var(--tx-table-row-background);box-shadow:var(--tx-table-frozen-column-shadow)}:host([data-styled]) .tx-table__th.tx-table__cell--frozen{background:var(--tx-table-header-cell-background)}:host([data-styled]) .tx-table__cell--frozen-last{border-inline-end:1px solid var(--tx-table-border-color)}:host([data-styled]) .tx-table__cell--frozen-first-end{border-inline-start:1px solid var(--tx-table-border-color)}:host([data-styled]) .tx-table__row .tx-table__cell--frozen{background:inherit}:host([data-styled]) .tx-table__row--selected{background:var(--tx-table-row-selected-background);color:var(--tx-table-row-selected-color)}:host([data-styled]) .tx-table__row--selected>.tx-table__td{border-block-end-color:var(--tx-table-body-cell-selected-border-color)}:host([data-styled]) .tx-table__row--menu>.tx-table__td{background:var(--tx-table-row-menu-background)}:host([data-styled]) .tx-table__row:focus-visible{outline:var(--tx-table-row-focus-ring-width) var(--tx-table-row-focus-ring-style) var(--tx-table-row-focus-ring-color);outline-offset:var(--tx-table-row-focus-ring-offset);box-shadow:var(--tx-table-row-focus-ring-shadow)}:host([data-styled]) .tx-table__row-handle{width:var(--tx-table-row-toggle-button-size);height:var(--tx-table-row-toggle-button-size);border-radius:var(--tx-radius-xs);color:var(--tx-table-grip-color)}:host([data-styled]) .tx-table__row-handle:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:2px}:host([data-styled]) .tx-table__row.cdk-drag-preview{box-shadow:var(--tx-table-drag-preview-shadow);background:var(--tx-table-row-background)}:host([data-styled]) .tx-table__row.cdk-drag-placeholder{opacity:.4}:host([data-styled]) .tx-table__group-cell{padding:var(--tx-table-body-cell-padding);border-color:var(--tx-table-border-color);border-style:solid;border-width:0 0 1px;background:var(--tx-table-group-background);font-weight:var(--tx-table-group-font-weight)}:host([data-styled]) .tx-table__group-content{gap:var(--tx-table-header-cell-gap)}:host([data-styled]) .tx-table__group-count{color:var(--tx-text-muted);font-weight:var(--tx-font-weight-regular)}:host([data-styled]) .tx-table__frozen-tbody .tx-table__td{background:var(--tx-table-row-background)}:host([data-styled]) .tx-table__td--editable:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:-2px}:host([data-styled]) .tx-table__td--editing{padding-block:var(--tx-table-editor-padding-block)}:host([data-styled]) .tx-table__row-editor{gap:var(--tx-table-actions-gap)}:host([data-styled]) .tx-table__row-toggle{width:var(--tx-table-row-toggle-button-size);height:var(--tx-table-row-toggle-button-size);border-radius:var(--tx-table-row-toggle-button-border-radius);color:var(--tx-table-row-toggle-button-color);transition:background var(--tx-table-transition-duration),color var(--tx-table-transition-duration)}:host([data-styled]) .tx-table__row-toggle:hover{background:var(--tx-table-row-toggle-button-hover-background);color:var(--tx-table-row-toggle-button-hover-color)}:host([data-styled]) .tx-table__row-toggle:focus-visible{outline:var(--tx-table-row-toggle-button-focus-ring-width) var(--tx-table-row-toggle-button-focus-ring-style) var(--tx-table-row-toggle-button-focus-ring-color);outline-offset:var(--tx-table-row-toggle-button-focus-ring-offset);box-shadow:var(--tx-table-row-toggle-button-focus-ring-shadow)}:host([data-styled]) .tx-table__tree-cell{gap:var(--tx-tree-table-node-gap);padding-inline-start:calc(var(--tx-table-tree-level, 0) * var(--tx-tree-table-node-indent))}:host([data-styled]) .tx-table__tree-toggle-icon--loading{animation:tx-table-tree-spin .8s linear infinite}:host([data-styled]) .tx-table__loading{background:var(--tx-table-loading-background);-webkit-backdrop-filter:blur(var(--tx-table-loading-blur));backdrop-filter:blur(var(--tx-table-loading-blur))}:host([data-styled]) .tx-table__empty{padding:var(--tx-table-empty-padding);border:1px solid var(--tx-table-border-color);border-top:0;color:var(--tx-table-empty-color)}:host([data-styled]) .tx-table__paginator{margin-top:var(--tx-table-paginator-margin-top)}:host([data-styled]) .tx-table__paginator--top{margin-top:0;margin-bottom:var(--tx-table-paginator-margin-top)}:host([data-styled]) .tx-table__select-all{margin-bottom:var(--tx-table-toolbar-margin-bottom)}:host([data-styled]) .tx-table__cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--tx-table-card-min-width)),1fr));gap:var(--tx-table-card-gap)}:host([data-styled]) .tx-table__card{border-radius:var(--tx-table-card-border-radius);background:var(--tx-table-card-background);box-shadow:inset 0 0 0 1px var(--tx-table-card-border-color)}:host([data-styled]) .tx-table__card--selected{box-shadow:inset 0 0 0 1px var(--tx-table-row-focus-ring-color)}:host([data-styled]) .tx-table__card-field{gap:var(--tx-table-card-field-gap);padding:var(--tx-table-card-field-padding);border-bottom:1px solid var(--tx-table-card-border-color);font-size:var(--tx-table-card-field-font-size)}:host([data-styled]) .tx-table__card-field:last-child{border-bottom:0}:host([data-styled]) .tx-table__card-label{color:var(--tx-table-card-label-color);font-size:var(--tx-table-card-label-font-size)}:host([data-styled]) .tx-table__card-title{padding:var(--tx-table-card-title-padding);border-bottom:1px solid var(--tx-table-card-border-color);font-size:var(--tx-table-card-title-font-size);font-weight:var(--tx-table-card-title-font-weight)}:host([data-styled]) .tx-table__card-title--select{padding-inline-end:calc(var(--tx-table-card-select-inset) * 4)}:host([data-styled]) .tx-table__card-select{inset-block-start:var(--tx-table-card-select-inset);inset-inline-end:var(--tx-table-card-select-inset)}:host([data-styled]) .tx-table__card-actions{gap:var(--tx-table-actions-gap);padding:var(--tx-table-card-actions-padding)}:host([data-styled].tx-table--gridlines) .tx-table__th{border-width:1px 0 1px 1px}:host([data-styled].tx-table--gridlines) .tx-table__th:last-child{border-width:1px}:host([data-styled].tx-table--gridlines) .tx-table__thead>tr:not(:first-child)>.tx-table__th{border-top-width:0}:host([data-styled].tx-table--gridlines) .tx-table__td,:host([data-styled].tx-table--gridlines) .tx-table__footer-cell{border-width:0 0 1px 1px}:host([data-styled].tx-table--gridlines) .tx-table__td:last-child,:host([data-styled].tx-table--gridlines) .tx-table__footer-cell:last-child{border-width:0 1px 1px}:host([data-styled].tx-table--gridlines) .tx-table__expansion-cell,:host([data-styled].tx-table--gridlines) .tx-table__group-cell{border-width:0 1px 1px}:host([data-styled].tx-table--striped) .tx-table__row--odd:not(.tx-table__row--selected){background:var(--tx-table-row-striped-background)}:host([data-styled].tx-table--hoverable) .tx-table__row:not(.tx-table__row--selected):hover{background:var(--tx-table-row-hover-background)}:host([data-styled][data-size=small]) .tx-table__th{padding:var(--tx-table-header-cell-sm-padding)}:host([data-styled][data-size=small]) .tx-table__td{height:var(--tx-table-body-cell-sm-height);padding:var(--tx-table-body-cell-sm-padding)}:host([data-styled][data-size=large]) .tx-table__th{padding:var(--tx-table-header-cell-lg-padding)}:host([data-styled][data-size=large]) .tx-table__td{height:var(--tx-table-body-cell-lg-height);padding:var(--tx-table-body-cell-lg-padding)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-table__th,:host([data-styled]) .tx-table__row,:host([data-styled]) .tx-table__sort-icon,:host([data-styled]) .tx-table__resizer-line,:host([data-styled]) .tx-table__row-toggle,:host([data-styled]) .tx-table__row-toggle-icon,:host([data-styled]) .tx-table__grip,:host([data-styled]) .tx-table__expansion-body,:host([data-styled]) .tx-table__cell-body,:host([data-styled]) .tx-table__cell-inner,:host([data-styled]) .tx-table__tbody:has(.tx-table__cell-body)>.tx-table__row>.tx-table__td,:host([data-styled]) .tx-table__expansion-inner{transition:none}}@keyframes tx-table-tree-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-table__tree-toggle-icon--loading{animation-duration:2.4s}}\n"],
|
|
4441
4509
|
dependencies: [
|
|
4442
4510
|
{
|
|
@@ -4647,9 +4715,85 @@ var TxTable = class TxTable {
|
|
|
4647
4715
|
],
|
|
4648
4716
|
outputs: ["indeterminateChange", "changed"]
|
|
4649
4717
|
},
|
|
4718
|
+
{
|
|
4719
|
+
kind: "component",
|
|
4720
|
+
type: i9.TxDatePicker,
|
|
4721
|
+
selector: "tx-datepicker",
|
|
4722
|
+
inputs: [
|
|
4723
|
+
"selectionMode",
|
|
4724
|
+
"dateFormat",
|
|
4725
|
+
"placeholder",
|
|
4726
|
+
"inputId",
|
|
4727
|
+
"name",
|
|
4728
|
+
"ariaLabel",
|
|
4729
|
+
"ariaLabelledBy",
|
|
4730
|
+
"iconAriaLabel",
|
|
4731
|
+
"inline",
|
|
4732
|
+
"showIcon",
|
|
4733
|
+
"iconDisplay",
|
|
4734
|
+
"icon",
|
|
4735
|
+
"showClear",
|
|
4736
|
+
"showButtonBar",
|
|
4737
|
+
"showOtherMonths",
|
|
4738
|
+
"selectOtherMonths",
|
|
4739
|
+
"showWeek",
|
|
4740
|
+
"startWeekFromFirstDayOfYear",
|
|
4741
|
+
"showTime",
|
|
4742
|
+
"timeOnly",
|
|
4743
|
+
"hourFormat",
|
|
4744
|
+
"showSeconds",
|
|
4745
|
+
"stepHour",
|
|
4746
|
+
"stepMinute",
|
|
4747
|
+
"stepSecond",
|
|
4748
|
+
"timeSeparator",
|
|
4749
|
+
"view",
|
|
4750
|
+
"numberOfMonths",
|
|
4751
|
+
"responsiveOptions",
|
|
4752
|
+
"firstDayOfWeek",
|
|
4753
|
+
"minDate",
|
|
4754
|
+
"maxDate",
|
|
4755
|
+
"disabledDates",
|
|
4756
|
+
"disabledDays",
|
|
4757
|
+
"maxDateCount",
|
|
4758
|
+
"defaultDate",
|
|
4759
|
+
"readonlyInput",
|
|
4760
|
+
"keepInvalid",
|
|
4761
|
+
"hideOnDateTimeSelect",
|
|
4762
|
+
"showOnFocus",
|
|
4763
|
+
"touchUI",
|
|
4764
|
+
"dataType",
|
|
4765
|
+
"multipleSeparator",
|
|
4766
|
+
"rangeSeparator",
|
|
4767
|
+
"shortYearCutoff",
|
|
4768
|
+
"size",
|
|
4769
|
+
"variant",
|
|
4770
|
+
"fluid",
|
|
4771
|
+
"invalid",
|
|
4772
|
+
"disabled",
|
|
4773
|
+
"readonly",
|
|
4774
|
+
"required",
|
|
4775
|
+
"dt",
|
|
4776
|
+
"pt",
|
|
4777
|
+
"ptOptions",
|
|
4778
|
+
"unstyled"
|
|
4779
|
+
],
|
|
4780
|
+
outputs: [
|
|
4781
|
+
"selected",
|
|
4782
|
+
"cleared",
|
|
4783
|
+
"todayClicked",
|
|
4784
|
+
"clearClicked",
|
|
4785
|
+
"monthChange",
|
|
4786
|
+
"yearChange",
|
|
4787
|
+
"opened",
|
|
4788
|
+
"closed",
|
|
4789
|
+
"focused",
|
|
4790
|
+
"blurred",
|
|
4791
|
+
"typed"
|
|
4792
|
+
]
|
|
4793
|
+
},
|
|
4650
4794
|
{
|
|
4651
4795
|
kind: "directive",
|
|
4652
|
-
type:
|
|
4796
|
+
type: i10.TxInput,
|
|
4653
4797
|
selector: "input[txInput], textarea[txInput]",
|
|
4654
4798
|
inputs: [
|
|
4655
4799
|
"invalid",
|
|
@@ -4664,7 +4808,7 @@ var TxTable = class TxTable {
|
|
|
4664
4808
|
},
|
|
4665
4809
|
{
|
|
4666
4810
|
kind: "component",
|
|
4667
|
-
type:
|
|
4811
|
+
type: i11.TxInputNumber,
|
|
4668
4812
|
selector: "tx-input-number",
|
|
4669
4813
|
inputs: [
|
|
4670
4814
|
"mode",
|
|
@@ -4707,7 +4851,7 @@ var TxTable = class TxTable {
|
|
|
4707
4851
|
},
|
|
4708
4852
|
{
|
|
4709
4853
|
kind: "component",
|
|
4710
|
-
type:
|
|
4854
|
+
type: i12.TxSelect,
|
|
4711
4855
|
selector: "tx-select",
|
|
4712
4856
|
inputs: [
|
|
4713
4857
|
"options",
|
|
@@ -4723,7 +4867,7 @@ var TxTable = class TxTable {
|
|
|
4723
4867
|
},
|
|
4724
4868
|
{
|
|
4725
4869
|
kind: "component",
|
|
4726
|
-
type:
|
|
4870
|
+
type: i13.TxRadioButton,
|
|
4727
4871
|
selector: "tx-radio-button",
|
|
4728
4872
|
inputs: [
|
|
4729
4873
|
"value",
|
|
@@ -4750,7 +4894,7 @@ var TxTable = class TxTable {
|
|
|
4750
4894
|
},
|
|
4751
4895
|
{
|
|
4752
4896
|
kind: "component",
|
|
4753
|
-
type:
|
|
4897
|
+
type: i14.TxPaginator,
|
|
4754
4898
|
selector: "tx-paginator",
|
|
4755
4899
|
inputs: [
|
|
4756
4900
|
"first",
|
|
@@ -4789,7 +4933,7 @@ var TxTable = class TxTable {
|
|
|
4789
4933
|
},
|
|
4790
4934
|
{
|
|
4791
4935
|
kind: "component",
|
|
4792
|
-
type:
|
|
4936
|
+
type: i15.TxProgressSpinner,
|
|
4793
4937
|
selector: "tx-progress-spinner",
|
|
4794
4938
|
inputs: [
|
|
4795
4939
|
"size",
|
|
@@ -4806,7 +4950,7 @@ var TxTable = class TxTable {
|
|
|
4806
4950
|
},
|
|
4807
4951
|
{
|
|
4808
4952
|
kind: "component",
|
|
4809
|
-
type:
|
|
4953
|
+
type: i16.TxMenu,
|
|
4810
4954
|
selector: "tx-menu, tx-tiered-menu",
|
|
4811
4955
|
inputs: [
|
|
4812
4956
|
"model",
|
|
@@ -4830,7 +4974,7 @@ var TxTable = class TxTable {
|
|
|
4830
4974
|
},
|
|
4831
4975
|
{
|
|
4832
4976
|
kind: "directive",
|
|
4833
|
-
type:
|
|
4977
|
+
type: i16.TxMenuItemTemplate,
|
|
4834
4978
|
selector: "ng-template[txMenuItem]"
|
|
4835
4979
|
},
|
|
4836
4980
|
{
|
|
@@ -4884,7 +5028,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4884
5028
|
"[class.tx-table--resizing]": "resizing() !== null",
|
|
4885
5029
|
"[class.tx-table--loading]": "loading()"
|
|
4886
5030
|
},
|
|
4887
|
-
template: "@if (showToolbar()) {\n <div class=\"tx-table__toolbar\" [class]=\"passThrough().toolbar?.class\" [style]=\"passThrough().toolbar?.style\">\n <div class=\"tx-table__toolbar-slot\"><ng-content select=\"[txTableToolbar]\" /></div>\n @if (showSettings()) {\n <tx-table-settings\n [columns]=\"columns()\"\n [hidden]=\"hidden()\"\n [showColumns]=\"columnSettings()\"\n [showActions]=\"actionsSettings()\"\n [unstyled]=\"isUnstyled()\"\n (columnToggled)=\"toggleColumn($event.field, $event.visible)\"\n />\n }\n </div>\n}\n\n@if (showPaginatorTop()) {\n <ng-container [ngTemplateOutlet]=\"pager\" [ngTemplateOutletContext]=\"{ $implicit: 'top' }\" />\n}\n\n<div class=\"tx-table__frame\" [class]=\"passThrough().frame?.class\" [style]=\"passThrough().frame?.style\" [attr.aria-busy]=\"loading() || null\">\n @if (cardView() && selectionMode() === 'checkbox' && !empty()) {\n <div class=\"tx-table__select-all\">\n <tx-checkbox\n binary\n [label]=\"translations().selectAll\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"allSelected()\"\n [indeterminate]=\"someSelected()\"\n (ngModelChange)=\"toggleAll($event)\"\n />\n </div>\n }\n\n @if (loading()) {\n <div class=\"tx-table__loading\" [class]=\"passThrough().loading?.class\" [style]=\"passThrough().loading?.style\">\n <tx-progress-spinner [ariaLabel]=\"translations().loading\" [unstyled]=\"isUnstyled()\" />\n </div>\n }\n\n @if (!cardView()) {\n <div\n class=\"tx-table__scroller\"\n [class.tx-table__scroller--empty]=\"empty()\"\n [class]=\"passThrough().scroller?.class\"\n [style]=\"passThrough().scroller?.style\"\n [style.max-height]=\"scrollHeight()\"\n (scroll)=\"onScroll($event)\"\n >\n <table\n class=\"tx-table__table\"\n [class]=\"passThrough().table?.class\"\n [style]=\"passThrough().table?.style\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-multiselectable]=\"rowSelection() || treeCheckbox() ? selectionMode() !== 'single' : null\"\n [attr.role]=\"isTree ? 'treegrid' : rowSelection() ? 'grid' : null\"\n >\n <thead class=\"tx-table__thead\" [class]=\"passThrough().thead?.class\" [style]=\"passThrough().thead?.style\">\n <tr\n #headerRow\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n class=\"tx-table__header-row\"\n [class]=\"passThrough().headerRow?.class\"\n [style]=\"passThrough().headerRow?.style\"\n [cdkDropListDisabled]=\"!reorderableColumns()\"\n (cdkDropListDropped)=\"dropColumn($event)\"\n >\n @for (item of renderColumns(); track item.column.field; let last = $last) {\n <th\n cdkDrag\n cdkDragLockAxis=\"x\"\n cdkDragPreviewClass=\"tx-table__drag-preview\"\n [cdkDragBoundary]=\"headerRow\"\n scope=\"col\"\n class=\"tx-table__th\"\n [class]=\"[item.column.headerClass ?? '', passThrough().headerCell?.class ?? '']\"\n [style]=\"passThrough().headerCell?.style\"\n [style.width]=\"item.style['width']\"\n [style.min-width]=\"item.style['minWidth']\"\n [style.max-width]=\"item.style['maxWidth']\"\n [style.inset-inline-start]=\"frozenStyle(item)['insetInlineStart']\"\n [style.inset-inline-end]=\"frozenStyle(item)['insetInlineEnd']\"\n [class.tx-table__cell--frozen]=\"!!item.frozen\"\n [class.tx-table__cell--frozen-last]=\"item.lastFrozenStart\"\n [class.tx-table__cell--frozen-first-end]=\"item.firstFrozenEnd\"\n [class.tx-table__th--draggable]=\"reorderableColumns() && item.kind === 'data' && item.column.reorderable !== false\"\n [attr.data-field]=\"item.column.field\"\n [attr.data-align]=\"item.column.align ?? null\"\n [attr.aria-sort]=\"item.kind === 'data' ? ariaSort(item.column) : null\"\n [cdkDragDisabled]=\"!reorderableColumns() || item.kind !== 'data' || item.column.reorderable === false\"\n >\n @switch (item.kind) {\n @case ('select') {\n @if (selectionMode() === 'checkbox') {\n <tx-checkbox\n binary\n class=\"tx-table__select\"\n [ariaLabel]=\"translations().selectAll\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"allSelected()\"\n [indeterminate]=\"someSelected()\"\n (ngModelChange)=\"toggleAll($event)\"\n />\n } @else {\n <span class=\"tx-table__sr-only\">{{ translations().selectRow }}</span>\n }\n }\n @case ('expand') {\n <span class=\"tx-table__sr-only\">{{ translations().expandRow }}</span>\n }\n @case ('actions') {\n <span class=\"tx-table__column-title\">{{ item.column.header }}</span>\n }\n @default {\n <div class=\"tx-table__header-content\">\n @if (treeCheckbox() && item.column.field === treeField()) {\n <tx-checkbox\n binary\n class=\"tx-table__select tx-table__tree-select-all\"\n [ariaLabel]=\"translations().selectAll\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"allSelected()\"\n [indeterminate]=\"someSelected()\"\n (ngModelChange)=\"toggleAll($event)\"\n />\n }\n @if (headerTemplatesByField().get(item.column.field); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: item.column }\" />\n } @else if (isSortable(item.column)) {\n @if (reorderableColumns() && item.column.reorderable !== false) {\n <tx-icon class=\"tx-table__grip\" aria-hidden=\"true\" name=\"grip-vertical\" />\n }\n <button\n type=\"button\"\n class=\"tx-table__sort\"\n [class]=\"passThrough().sortButton?.class\"\n [style]=\"passThrough().sortButton?.style\"\n (click)=\"sort(item.column, $event)\"\n (keydown.alt.arrowleft)=\"moveColumnBy(item.column, -1, $event)\"\n (keydown.alt.arrowright)=\"moveColumnBy(item.column, 1, $event)\"\n >\n <span class=\"tx-table__column-title\">{{ label(item.column) }}</span>\n @if (sortOrderOf(item.column); as order) {\n <tx-icon\n class=\"tx-table__sort-icon\"\n aria-hidden=\"true\"\n name=\"sort-amount-down\"\n [class.tx-table__sort-icon--desc]=\"order === 'desc'\"\n [class]=\"passThrough().sortIcon?.class\"\n [style]=\"passThrough().sortIcon?.style\"\n />\n @if (sortMode() === 'multiple' && sortMeta().length > 1) {\n <span class=\"tx-table__sort-badge\" aria-hidden=\"true\">{{ sortIndexOf(item.column) + 1 }}</span>\n }\n }\n </button>\n } @else {\n @if (reorderableColumns() && item.column.reorderable !== false) {\n <tx-icon class=\"tx-table__grip\" aria-hidden=\"true\" name=\"grip-vertical\" />\n }\n <span class=\"tx-table__column-title\">{{ label(item.column) }}</span>\n }\n @if (item.column.filter && filterDisplay() === 'menu') {\n <tx-table-column-filter class=\"tx-table__filter\" [column]=\"item.column\" />\n }\n </div>\n }\n }\n @if (resizableColumns() && item.kind === 'data' && item.column.resizable !== false && item.column.width === undefined && !last) {\n <span\n class=\"tx-table__resizer\"\n role=\"separator\"\n tabindex=\"0\"\n aria-orientation=\"vertical\"\n [class.tx-table__resizer--active]=\"resizing() === item.column.field\"\n [attr.aria-label]=\"translations().resizeColumn.replace('{column}', label(item.column))\"\n [attr.aria-valuenow]=\"resizeValue(item.column)\"\n [attr.aria-valuemin]=\"resizeMin(item.column)\"\n [attr.aria-valuemax]=\"resizeMax(item.column)\"\n (pointerdown)=\"startResize(item, $event)\"\n (click)=\"$event.stopPropagation()\"\n (keydown.arrowleft)=\"resizeByKey(item, -10, $event)\"\n (keydown.arrowright)=\"resizeByKey(item, 10, $event)\"\n >\n <span class=\"tx-table__resizer-line\"></span>\n </span>\n }\n </th>\n }\n </tr>\n @if (filterRow()) {\n <tr class=\"tx-table__filter-row\">\n @for (item of renderColumns(); track item.column.field) {\n <td\n class=\"tx-table__th tx-table__filter-cell\"\n [style.inset-inline-start]=\"frozenStyle(item)['insetInlineStart']\"\n [style.inset-inline-end]=\"frozenStyle(item)['insetInlineEnd']\"\n [class.tx-table__cell--frozen]=\"!!item.frozen\"\n [class.tx-table__cell--frozen-last]=\"item.lastFrozenStart\"\n [class.tx-table__cell--frozen-first-end]=\"item.firstFrozenEnd\"\n >\n @if (item.kind === 'data' && item.column.filter) {\n <tx-table-column-filter display=\"row\" [column]=\"item.column\" />\n }\n </td>\n }\n </tr>\n }\n </thead>\n @if (frozenRows().length) {\n <tbody class=\"tx-table__frozen-tbody\" [style.top.px]=\"headerHeight()\">\n @for (item of frozenRows(); track item.key; let position = $index) {\n <tr class=\"tx-table__row tx-table__row--frozen\">\n <ng-container [ngTemplateOutlet]=\"rowCells\" [ngTemplateOutletContext]=\"{ $implicit: item, position }\" />\n </tr>\n }\n </tbody>\n }\n <tbody\n #tbody\n cdkDropList\n class=\"tx-table__tbody\"\n [class]=\"passThrough().tbody?.class\"\n [style]=\"passThrough().tbody?.style\"\n [cdkDropListDisabled]=\"!reorderableRows()\"\n (cdkDropListDropped)=\"dropRow($event)\"\n >\n @if (spacerBefore()) {\n <tr class=\"tx-table__spacer\" aria-hidden=\"true\">\n <td [attr.colspan]=\"dataColumnCount()\" [style.height.px]=\"spacerBefore()\"></td>\n </tr>\n }\n @for (item of visibleRows(); track item.key; let windowIndex = $index) {\n @let position = windowRange().start + windowIndex;\n @let odd = position % 2 === 1;\n @if (item.group?.first && rowGroupMode() === 'subheader') {\n <tr class=\"tx-table__group-header\">\n <td class=\"tx-table__group-cell\" [attr.colspan]=\"dataColumnCount()\">\n <div class=\"tx-table__group-content\">\n @if (expandableRowGroups()) {\n <button\n type=\"button\"\n class=\"tx-table__row-toggle\"\n [attr.aria-expanded]=\"!item.group.collapsed\"\n [attr.aria-label]=\"item.group.collapsed ? translations().expandRow : translations().collapseRow\"\n (click)=\"toggleGroup(item)\"\n >\n <tx-icon aria-hidden=\"true\" name=\"chevron-right\" class=\"tx-table__row-toggle-icon\" [class.tx-table__row-toggle-icon--open]=\"!item.group.collapsed\" />\n </button>\n }\n @if (groupHeaderTemplate(); as header) {\n <ng-container [ngTemplateOutlet]=\"header.templateRef\" [ngTemplateOutletContext]=\"groupContext(item)\" />\n } @else {\n <span class=\"tx-table__group-title\">{{ item.group.value }}</span>\n <span class=\"tx-table__group-count\">{{ translations().rowGroup.replace('{count}', '' + item.group.size) }}</span>\n }\n </div>\n </td>\n </tr>\n }\n @if (!item.group?.collapsed || animatedGroups()) {\n <tr\n cdkDrag\n cdkDragLockAxis=\"y\"\n cdkDragPreviewContainer=\"parent\"\n class=\"tx-table__row\"\n [class]=\"[rowClassOf(item) ?? '', passThrough().row?.class ?? '']\"\n [style]=\"passThrough().row?.style\"\n [class.tx-table__row--odd]=\"odd\"\n [class.tx-table__row--selected]=\"item.selected\"\n [class.tx-table__row--selectable]=\"rowSelection() && item.selectable\"\n [class.tx-table__row--menu]=\"menuRowKey() === item.key && menuRowKey() !== undefined\"\n [attr.aria-selected]=\"rowSelection() ? item.selected : null\"\n [attr.aria-level]=\"item.tree?.level ?? null\"\n [attr.aria-expanded]=\"item.tree && !item.tree.leaf ? item.tree.expanded : null\"\n [attr.aria-setsize]=\"item.tree?.setSize ?? null\"\n [attr.aria-posinset]=\"item.tree?.posInSet ?? null\"\n [attr.aria-busy]=\"item.tree?.loading || null\"\n [attr.tabindex]=\"rowsFocusable() ? (position === focusedRow() ? 0 : -1) : null\"\n [attr.data-key]=\"item.key\"\n [class.tx-table__row--editing]=\"isRowEditing(item)\"\n [class.tx-table__row--collapsed]=\"isCollapsedRow(item)\"\n [attr.inert]=\"isCollapsedRow(item) ? '' : null\"\n [attr.aria-hidden]=\"isCollapsedRow(item) ? true : null\"\n (click)=\"onRowClick(item, position, $event)\"\n (keydown)=\"onRowKeydown(item, position, $event)\"\n (contextmenu)=\"onRowContextMenu(item, $event)\"\n >\n <ng-container [ngTemplateOutlet]=\"rowCells\" [ngTemplateOutletContext]=\"{ $implicit: item, position }\" />\n </tr>\n @if ((item.expanded || isClosing(item.key)) && !item.group?.collapsed && expansionTemplate(); as expansion) {\n <tr class=\"tx-table__expansion\">\n <td class=\"tx-table__expansion-cell\" [attr.colspan]=\"dataColumnCount()\">\n <div\n class=\"tx-table__expansion-body\"\n [class.tx-table__expansion-body--open]=\"item.expanded\"\n (transitionend)=\"finishClosing(item.key, $event)\"\n >\n <div class=\"tx-table__expansion-inner\">\n <div class=\"tx-table__expansion-content\">\n <ng-container [ngTemplateOutlet]=\"expansion.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: dataOf(item.row), node: item.row, index: item.index }\" />\n </div>\n </div>\n </div>\n </td>\n </tr>\n }\n @if (item.group?.last && rowGroupMode() === 'subheader' && groupFooterTemplate(); as footer) {\n <tr class=\"tx-table__group-footer\">\n <td class=\"tx-table__group-cell\" [attr.colspan]=\"dataColumnCount()\">\n <ng-container [ngTemplateOutlet]=\"footer.templateRef\" [ngTemplateOutletContext]=\"groupContext(item)\" />\n </td>\n </tr>\n }\n }\n }\n @if (spacerAfter()) {\n <tr class=\"tx-table__spacer\" aria-hidden=\"true\">\n <td [attr.colspan]=\"dataColumnCount()\" [style.height.px]=\"spacerAfter()\"></td>\n </tr>\n }\n </tbody>\n @if (hasFooter()) {\n <tfoot class=\"tx-table__tfoot\" [class]=\"passThrough().tfoot?.class\" [style]=\"passThrough().tfoot?.style\">\n <tr>\n @for (item of renderColumns(); track item.column.field) {\n <td\n class=\"tx-table__footer-cell\"\n [class]=\"passThrough().footerCell?.class\"\n [style]=\"passThrough().footerCell?.style\"\n [style.inset-inline-start]=\"frozenStyle(item)['insetInlineStart']\"\n [style.inset-inline-end]=\"frozenStyle(item)['insetInlineEnd']\"\n [class.tx-table__cell--frozen]=\"!!item.frozen\"\n [attr.data-align]=\"item.column.align ?? null\"\n >\n @if (footerTemplatesByField().get(item.column.field); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: item.column }\" />\n } @else {\n {{ item.column.footer }}\n }\n </td>\n }\n </tr>\n </tfoot>\n }\n </table>\n </div>\n } @else if (!empty()) {\n <div class=\"tx-table__cards\" role=\"list\" [class]=\"passThrough().cards?.class\" [style]=\"passThrough().cards?.style\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @for (item of renderRows(); track item.key) {\n <div\n role=\"listitem\"\n class=\"tx-table__card\"\n [class]=\"passThrough().card?.class\"\n [style]=\"passThrough().card?.style\"\n [class.tx-table__card--selected]=\"item.selected\"\n [class.tx-table__card--custom]=\"!!cardTemplate()\"\n >\n @if (cardTemplate(); as card) {\n <ng-container [ngTemplateOutlet]=\"card.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: dataOf(item.row), node: item.row, index: item.index }\" />\n } @else {\n @if (hasSelectColumn()) {\n <div class=\"tx-table__card-select\">\n @if (selectionMode() === 'checkbox') {\n <tx-checkbox\n binary\n [ariaLabel]=\"translations().selectRow\"\n [disabled]=\"!item.selectable\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"item.selected\"\n (ngModelChange)=\"toggleRow(item)\"\n />\n } @else {\n <tx-radio-button\n [value]=\"item.key\"\n [ariaLabel]=\"translations().selectRow\"\n [disabled]=\"!item.selectable\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"radioValue()\"\n (ngModelChange)=\"selectRadio(item)\"\n />\n }\n </div>\n }\n @if (cardTitleColumn(); as title) {\n <div class=\"tx-table__card-title\" [class.tx-table__card-title--select]=\"hasSelectColumn()\">\n <ng-container [ngTemplateOutlet]=\"cellContent\" [ngTemplateOutletContext]=\"{ $implicit: item, column: title }\" />\n </div>\n }\n @for (column of cardFields(); track column.field) {\n <div class=\"tx-table__card-field\">\n <span class=\"tx-table__card-label\">{{ label(column) }}</span>\n <span class=\"tx-table__card-value\"><ng-container [ngTemplateOutlet]=\"cellContent\" [ngTemplateOutletContext]=\"{ $implicit: item, column }\" /></span>\n </div>\n }\n @if (actionsTemplate(); as actions) {\n <div class=\"tx-table__card-actions\">\n <ng-container [ngTemplateOutlet]=\"actions.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: dataOf(item.row), node: item.row, index: item.index }\" />\n </div>\n }\n }\n </div>\n }\n </div>\n }\n\n @if (empty()) {\n <div class=\"tx-table__empty\" [class]=\"passThrough().empty?.class\" [style]=\"passThrough().empty?.style\">\n @if (emptyTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: dataColumnCount() }\" />\n } @else {\n {{ emptyMessage() ?? translations().emptyMessage }}\n }\n </div>\n }\n</div>\n\n@if (showPaginatorBottom()) {\n <ng-container [ngTemplateOutlet]=\"pager\" [ngTemplateOutletContext]=\"{ $implicit: 'bottom' }\" />\n}\n\n<ng-content />\n\n<tx-tiered-menu\n #rowMenu\n popup\n variant=\"context\"\n placement=\"bottom-start\"\n [offset]=\"0\"\n [model]=\"menuItems()\"\n [ariaLabel]=\"translations().rowActions\"\n [unstyled]=\"isUnstyled()\"\n (closed)=\"onMenuClosed()\"\n>\n <ng-template txMenuItem let-menuItem>\n @if (actionTemplate(menuItem); as action) {\n <span class=\"tx-table__menu-action\" aria-hidden=\"true\" [attr.data-action-id]=\"action.id()\">\n <ng-container [ngTemplateOutlet]=\"action.templateRef\" />\n </span>\n } @else if (menuItem.icon) {\n <tx-icon class=\"tx-table__menu-icon\" aria-hidden=\"true\" [name]=\"menuItem.icon\" />\n }\n <span class=\"tx-table__menu-label\">{{ menuItem.label }}</span>\n </ng-template>\n</tx-tiered-menu>\n\n<ng-template #cellContent let-item let-column=\"column\">\n @if (templatesByField().get(column.field); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: dataOf(item.row), row: dataOf(item.row), node: item.row, index: item.index, column, value: cellValue(item.row, column) }\"\n />\n } @else {\n {{ displayValue(item.row, column) }}\n }\n</ng-template>\n\n<ng-template #pager let-position>\n <tx-paginator\n class=\"tx-table__paginator\"\n [class.tx-table__paginator--top]=\"position === 'top'\"\n [class]=\"passThrough().paginator?.class\"\n [style]=\"passThrough().paginator?.style\"\n [first]=\"first()\"\n [rows]=\"rows()\"\n [totalRecords]=\"total()\"\n [rowsPerPageOptions]=\"rowsPerPageOptions()\"\n [showTotal]=\"showTotal()\"\n [showCurrentPageReport]=\"showCurrentPageReport()\"\n [currentPageReportTemplate]=\"currentPageReportTemplate()\"\n [showFirstLastIcon]=\"showFirstLastIcon()\"\n [showPageLinks]=\"showPageLinks()\"\n [showJumpToPageDropdown]=\"showJumpToPageDropdown()\"\n [showJumpToPageInput]=\"showJumpToPageInput()\"\n [alwaysShow]=\"alwaysShowPaginator()\"\n [pageLinkSize]=\"pageLinks()\"\n [unstyled]=\"isUnstyled()\"\n (pageChange)=\"onPage($event)\"\n />\n</ng-template>\n\n<ng-template #rowCells let-item let-position=\"position\">\n @for (column of renderColumns(); track column.column.field) {\n @if (!isGroupedCellHidden(item, column)) {\n <td\n class=\"tx-table__td\"\n [class]=\"[column.column.cellClass ?? '', passThrough().cell?.class ?? '']\"\n [style]=\"passThrough().cell?.style\"\n [style.inset-inline-start]=\"frozenStyle(column)['insetInlineStart']\"\n [style.inset-inline-end]=\"frozenStyle(column)['insetInlineEnd']\"\n [class.tx-table__cell--frozen]=\"!!column.frozen\"\n [class.tx-table__cell--frozen-last]=\"column.lastFrozenStart\"\n [class.tx-table__cell--frozen-first-end]=\"column.firstFrozenEnd\"\n [class.tx-table__td--actions]=\"column.kind === 'actions'\"\n [class.tx-table__td--editable]=\"column.kind === 'data' && editMode() === 'cell' && !!column.column.editable\"\n [class.tx-table__td--editing]=\"column.kind === 'data' && isEditing(item, column.column)\"\n [attr.data-field]=\"column.column.field\"\n [attr.data-align]=\"column.column.align ?? null\"\n [attr.rowspan]=\"groupRowspan(item, column)\"\n [attr.tabindex]=\"column.kind === 'data' && editMode() === 'cell' && column.column.editable ? 0 : null\"\n (click)=\"onCellClick(item, column, $event)\"\n (keydown)=\"onCellKeydown(item, column, $event)\"\n (focusout)=\"onCellFocusOut(item, column, $event)\"\n >\n @if (animatedRows()) {\n <div class=\"tx-table__cell-body\">\n <div class=\"tx-table__cell-inner\">\n <ng-container [ngTemplateOutlet]=\"cellBody\" [ngTemplateOutletContext]=\"{ $implicit: item, column, position }\" />\n </div>\n </div>\n } @else {\n <ng-container [ngTemplateOutlet]=\"cellBody\" [ngTemplateOutletContext]=\"{ $implicit: item, column, position }\" />\n }\n </td>\n }\n }\n</ng-template>\n\n<ng-template #cellBody let-item let-column=\"column\" let-position=\"position\">\n @switch (column.kind) {\n @case ('reorder') {\n <button\n type=\"button\"\n cdkDragHandle\n class=\"tx-table__row-handle\"\n [attr.aria-label]=\"translations().moveRow\"\n (keydown.alt.arrowup)=\"moveRowBy(position, -1, $event)\"\n (keydown.alt.arrowdown)=\"moveRowBy(position, 1, $event)\"\n >\n <tx-icon aria-hidden=\"true\" name=\"bars\" />\n </button>\n }\n @case ('select') {\n @if (selectionMode() === 'checkbox') {\n <tx-checkbox\n binary\n class=\"tx-table__select\"\n [ariaLabel]=\"translations().selectRow\"\n [disabled]=\"!item.selectable\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"item.selected\"\n (ngModelChange)=\"toggleRow(item)\"\n />\n } @else {\n <tx-radio-button\n class=\"tx-table__select\"\n [value]=\"item.key\"\n [ariaLabel]=\"translations().selectRow\"\n [disabled]=\"!item.selectable\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"radioValue()\"\n (ngModelChange)=\"selectRadio(item)\"\n />\n }\n }\n @case ('expand') {\n @if (canExpand(item)) {\n <button\n type=\"button\"\n class=\"tx-table__row-toggle\"\n [attr.aria-expanded]=\"item.expanded\"\n [attr.aria-label]=\"item.expanded ? translations().collapseRow : translations().expandRow\"\n (click)=\"toggleExpansion(item, $event)\"\n >\n <tx-icon aria-hidden=\"true\" name=\"chevron-right\" class=\"tx-table__row-toggle-icon\" [class.tx-table__row-toggle-icon--open]=\"item.expanded\" />\n </button>\n }\n }\n @case ('actions') {\n @if (actionsTemplate(); as actions) {\n <ng-container [ngTemplateOutlet]=\"actions.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: dataOf(item.row), node: item.row, index: item.index }\" />\n }\n }\n @case ('editor') {\n <div class=\"tx-table__row-editor\">\n @if (isRowEditing(item)) {\n <button\n txButton\n type=\"button\"\n text\n rounded\n size=\"small\"\n severity=\"success\"\n icon=\"check\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"translations().saveRow\"\n (click)=\"saveRow(item)\"\n ></button>\n <button\n txButton\n type=\"button\"\n text\n rounded\n size=\"small\"\n severity=\"danger\"\n icon=\"times\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"translations().cancelEdit\"\n (click)=\"cancelRow(item)\"\n ></button>\n } @else {\n <button\n txButton\n type=\"button\"\n text\n rounded\n size=\"small\"\n severity=\"secondary\"\n icon=\"pencil\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"translations().editRow\"\n (click)=\"startRowEdit(item)\"\n ></button>\n }\n </div>\n }\n @default {\n @if (item.tree && column.column.field === treeField()) {\n <div class=\"tx-table__tree-cell\" [style.--tx-table-tree-level]=\"item.tree.level - 1\">\n <button\n type=\"button\"\n class=\"tx-table__row-toggle tx-table__tree-toggle\"\n [class.tx-table__tree-toggle--hidden]=\"item.tree.leaf\"\n [attr.tabindex]=\"item.tree.leaf ? -1 : null\"\n [attr.aria-hidden]=\"item.tree.leaf || null\"\n [attr.aria-expanded]=\"item.tree.leaf ? null : item.tree.expanded\"\n [attr.aria-label]=\"item.tree.expanded ? translations().collapseRow : translations().expandRow\"\n [class]=\"passThrough().treeToggle?.class\"\n [style]=\"passThrough().treeToggle?.style\"\n (click)=\"toggleNode(item, $event)\"\n >\n @if (item.tree.loading) {\n <tx-icon aria-hidden=\"true\" name=\"spinner\" class=\"tx-table__tree-toggle-icon--loading\" />\n } @else {\n <tx-icon aria-hidden=\"true\" name=\"chevron-right\" class=\"tx-table__row-toggle-icon\" [class.tx-table__row-toggle-icon--open]=\"item.tree.expanded\" />\n }\n </button>\n @if (treeCheckbox()) {\n <tx-checkbox\n binary\n class=\"tx-table__tree-checkbox\"\n [ariaLabel]=\"translations().selectRow\"\n [disabled]=\"!item.selectable\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"item.selected\"\n [indeterminate]=\"item.tree.partial\"\n (ngModelChange)=\"toggleRow(item)\"\n />\n }\n <div class=\"tx-table__tree-content\">\n <ng-container [ngTemplateOutlet]=\"dataCell\" [ngTemplateOutletContext]=\"{ $implicit: item, column }\" />\n </div>\n </div>\n } @else {\n <ng-container [ngTemplateOutlet]=\"dataCell\" [ngTemplateOutletContext]=\"{ $implicit: item, column }\" />\n }\n }\n }\n</ng-template>\n\n<ng-template #dataCell let-item let-column=\"column\">\n @if (isEditing(item, column.column)) {\n <div class=\"tx-table__editor\">\n @if (editorTemplatesByField().get(column.column.field); as editor) {\n <ng-container [ngTemplateOutlet]=\"editor.templateRef\" [ngTemplateOutletContext]=\"editorContext(item, column.column)\" />\n } @else if (column.column.editOptions?.length) {\n <tx-select\n size=\"small\"\n optionLabel=\"label\"\n optionValue=\"value\"\n class=\"tx-table__editor-control\"\n [options]=\"column.column.editOptions\"\n [ariaLabel]=\"label(column.column)\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"draftValue(item, column.column)\"\n (ngModelChange)=\"setDraft(item, column.column, $event)\"\n />\n } @else {\n @switch (column.column.editType ?? 'text') {\n @case ('numeric') {\n <tx-input-number\n size=\"small\"\n class=\"tx-table__editor-control\"\n [ariaLabel]=\"label(column.column)\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"draftValue(item, column.column)\"\n (ngModelChange)=\"setDraft(item, column.column, $event)\"\n />\n }\n @case ('boolean') {\n <tx-checkbox\n binary\n [ariaLabel]=\"label(column.column)\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"draftValue(item, column.column)\"\n (ngModelChange)=\"setDraft(item, column.column, $event)\"\n />\n }\n @case ('date') {\n <input\n txInput\n type=\"date\"\n size=\"small\"\n class=\"tx-table__editor-control\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"label(column.column)\"\n [value]=\"dateInput(draftValue(item, column.column))\"\n (change)=\"setDraft(item, column.column, parseDateInput($any($event.target).value))\"\n />\n }\n @default {\n <input\n txInput\n type=\"text\"\n size=\"small\"\n class=\"tx-table__editor-control\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"label(column.column)\"\n [value]=\"draftValue(item, column.column) ?? ''\"\n (input)=\"setDraft(item, column.column, $any($event.target).value)\"\n />\n }\n }\n }\n </div>\n } @else if (templatesByField().get(column.column.field); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template.templateRef\"\n [ngTemplateOutletContext]=\"{\n $implicit: dataOf(item.row),\n row: dataOf(item.row),\n node: item.row,\n index: item.index,\n column: column.column,\n value: cellValue(item.row, column.column),\n }\"\n />\n } @else if (isLoadingRow(item)) {\n <tx-skeleton class=\"tx-table__loading-cell\" height=\"14px\" />\n } @else if (cellTooltip()) {\n <span class=\"tx-table__cell-text\" tooltipOverflowOnly [txTooltip]=\"displayValue(item.row, column.column)\">{{ displayValue(item.row, column.column) }}</span>\n } @else {\n {{ displayValue(item.row, column.column) }}\n }\n</ng-template>\n",
|
|
5031
|
+
template: "@if (showToolbar()) {\n <div class=\"tx-table__toolbar\" [class]=\"passThrough().toolbar?.class\" [style]=\"passThrough().toolbar?.style\">\n <div class=\"tx-table__toolbar-slot\"><ng-content select=\"[txTableToolbar]\" /></div>\n @if (showSettings()) {\n <tx-table-settings\n [columns]=\"columns()\"\n [hidden]=\"hidden()\"\n [showColumns]=\"columnSettings()\"\n [showActions]=\"actionsSettings()\"\n [unstyled]=\"isUnstyled()\"\n (columnToggled)=\"toggleColumn($event.field, $event.visible)\"\n />\n }\n </div>\n}\n\n@if (showPaginatorTop()) {\n <ng-container [ngTemplateOutlet]=\"pager\" [ngTemplateOutletContext]=\"{ $implicit: 'top' }\" />\n}\n\n<div class=\"tx-table__frame\" [class]=\"passThrough().frame?.class\" [style]=\"passThrough().frame?.style\" [attr.aria-busy]=\"loading() || null\">\n @if (cardView() && selectionMode() === 'checkbox' && !empty()) {\n <div class=\"tx-table__select-all\">\n <tx-checkbox\n binary\n [label]=\"translations().selectAll\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"allSelected()\"\n [indeterminate]=\"someSelected()\"\n (ngModelChange)=\"toggleAll($event)\"\n />\n </div>\n }\n\n @if (loading()) {\n <div class=\"tx-table__loading\" [class]=\"passThrough().loading?.class\" [style]=\"passThrough().loading?.style\">\n <tx-progress-spinner [ariaLabel]=\"translations().loading\" [unstyled]=\"isUnstyled()\" />\n </div>\n }\n\n @if (!cardView()) {\n <div\n class=\"tx-table__scroller\"\n [class.tx-table__scroller--empty]=\"empty()\"\n [class]=\"passThrough().scroller?.class\"\n [style]=\"passThrough().scroller?.style\"\n [style.max-height]=\"scrollHeight()\"\n (scroll)=\"onScroll($event)\"\n >\n <table\n class=\"tx-table__table\"\n [class]=\"passThrough().table?.class\"\n [style]=\"passThrough().table?.style\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-multiselectable]=\"rowSelection() || treeCheckbox() ? selectionMode() !== 'single' : null\"\n [attr.role]=\"isTree ? 'treegrid' : rowSelection() ? 'grid' : null\"\n >\n <thead class=\"tx-table__thead\" [class]=\"passThrough().thead?.class\" [style]=\"passThrough().thead?.style\">\n <tr\n #headerRow\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n class=\"tx-table__header-row\"\n [class]=\"passThrough().headerRow?.class\"\n [style]=\"passThrough().headerRow?.style\"\n [cdkDropListDisabled]=\"!reorderableColumns()\"\n (cdkDropListDropped)=\"dropColumn($event)\"\n >\n @for (item of renderColumns(); track item.column.field; let last = $last) {\n <th\n cdkDrag\n cdkDragLockAxis=\"x\"\n cdkDragPreviewClass=\"tx-table__drag-preview\"\n [cdkDragBoundary]=\"headerRow\"\n scope=\"col\"\n class=\"tx-table__th\"\n [class]=\"[item.column.headerClass ?? '', passThrough().headerCell?.class ?? '']\"\n [style]=\"passThrough().headerCell?.style\"\n [style.width]=\"item.style['width']\"\n [style.min-width]=\"item.style['minWidth']\"\n [style.max-width]=\"item.style['maxWidth']\"\n [style.inset-inline-start]=\"frozenStyle(item)['insetInlineStart']\"\n [style.inset-inline-end]=\"frozenStyle(item)['insetInlineEnd']\"\n [class.tx-table__cell--frozen]=\"!!item.frozen\"\n [class.tx-table__cell--frozen-last]=\"item.lastFrozenStart\"\n [class.tx-table__cell--frozen-first-end]=\"item.firstFrozenEnd\"\n [class.tx-table__th--draggable]=\"reorderableColumns() && item.kind === 'data' && item.column.reorderable !== false\"\n [attr.data-field]=\"item.column.field\"\n [attr.data-align]=\"item.column.align ?? null\"\n [attr.aria-sort]=\"item.kind === 'data' ? ariaSort(item.column) : null\"\n [cdkDragDisabled]=\"!reorderableColumns() || item.kind !== 'data' || item.column.reorderable === false\"\n >\n @switch (item.kind) {\n @case ('select') {\n @if (selectionMode() === 'checkbox') {\n <tx-checkbox\n binary\n class=\"tx-table__select\"\n [ariaLabel]=\"translations().selectAll\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"allSelected()\"\n [indeterminate]=\"someSelected()\"\n (ngModelChange)=\"toggleAll($event)\"\n />\n } @else {\n <span class=\"tx-table__sr-only\">{{ translations().selectRow }}</span>\n }\n }\n @case ('expand') {\n <span class=\"tx-table__sr-only\">{{ translations().expandRow }}</span>\n }\n @case ('actions') {\n <span class=\"tx-table__column-title\">{{ item.column.header }}</span>\n }\n @default {\n <div class=\"tx-table__header-content\">\n @if (treeCheckbox() && item.column.field === treeField()) {\n <tx-checkbox\n binary\n class=\"tx-table__select tx-table__tree-select-all\"\n [ariaLabel]=\"translations().selectAll\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"allSelected()\"\n [indeterminate]=\"someSelected()\"\n (ngModelChange)=\"toggleAll($event)\"\n />\n }\n @if (headerTemplatesByField().get(item.column.field); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: item.column }\" />\n } @else if (isSortable(item.column)) {\n @if (reorderableColumns() && item.column.reorderable !== false) {\n <tx-icon class=\"tx-table__grip\" aria-hidden=\"true\" name=\"grip-vertical\" />\n }\n <button\n type=\"button\"\n class=\"tx-table__sort\"\n [class]=\"passThrough().sortButton?.class\"\n [style]=\"passThrough().sortButton?.style\"\n (click)=\"sort(item.column, $event)\"\n (keydown.alt.arrowleft)=\"moveColumnBy(item.column, -1, $event)\"\n (keydown.alt.arrowright)=\"moveColumnBy(item.column, 1, $event)\"\n >\n <span class=\"tx-table__column-title\">{{ label(item.column) }}</span>\n @if (sortOrderOf(item.column); as order) {\n <tx-icon\n class=\"tx-table__sort-icon\"\n aria-hidden=\"true\"\n name=\"sort-amount-down\"\n [class.tx-table__sort-icon--desc]=\"order === 'desc'\"\n [class]=\"passThrough().sortIcon?.class\"\n [style]=\"passThrough().sortIcon?.style\"\n />\n @if (sortMode() === 'multiple' && sortMeta().length > 1) {\n <span class=\"tx-table__sort-badge\" aria-hidden=\"true\">{{ sortIndexOf(item.column) + 1 }}</span>\n }\n }\n </button>\n } @else {\n @if (reorderableColumns() && item.column.reorderable !== false) {\n <tx-icon class=\"tx-table__grip\" aria-hidden=\"true\" name=\"grip-vertical\" />\n }\n <span class=\"tx-table__column-title\">{{ label(item.column) }}</span>\n }\n @if (item.column.filter && filterDisplay() === 'menu') {\n <tx-table-column-filter class=\"tx-table__filter\" [column]=\"item.column\" />\n }\n </div>\n }\n }\n @if (resizableColumns() && item.kind === 'data' && item.column.resizable !== false && item.column.width === undefined && !last) {\n <span\n class=\"tx-table__resizer\"\n role=\"separator\"\n tabindex=\"0\"\n aria-orientation=\"vertical\"\n [class.tx-table__resizer--active]=\"resizing() === item.column.field\"\n [attr.aria-label]=\"translations().resizeColumn.replace('{column}', label(item.column))\"\n [attr.aria-valuenow]=\"resizeValue(item.column)\"\n [attr.aria-valuemin]=\"resizeMin(item.column)\"\n [attr.aria-valuemax]=\"resizeMax(item.column)\"\n (pointerdown)=\"startResize(item, $event)\"\n (click)=\"$event.stopPropagation()\"\n (keydown.arrowleft)=\"resizeByKey(item, -10, $event)\"\n (keydown.arrowright)=\"resizeByKey(item, 10, $event)\"\n >\n <span class=\"tx-table__resizer-line\"></span>\n </span>\n }\n </th>\n }\n </tr>\n @if (filterRow()) {\n <tr class=\"tx-table__filter-row\">\n @for (item of renderColumns(); track item.column.field) {\n <td\n class=\"tx-table__th tx-table__filter-cell\"\n [style.inset-inline-start]=\"frozenStyle(item)['insetInlineStart']\"\n [style.inset-inline-end]=\"frozenStyle(item)['insetInlineEnd']\"\n [class.tx-table__cell--frozen]=\"!!item.frozen\"\n [class.tx-table__cell--frozen-last]=\"item.lastFrozenStart\"\n [class.tx-table__cell--frozen-first-end]=\"item.firstFrozenEnd\"\n >\n @if (item.kind === 'data' && item.column.filter) {\n <tx-table-column-filter display=\"row\" [column]=\"item.column\" />\n }\n </td>\n }\n </tr>\n }\n </thead>\n @if (frozenRows().length) {\n <tbody class=\"tx-table__frozen-tbody\" [style.top.px]=\"headerHeight()\">\n @for (item of frozenRows(); track item.key; let position = $index) {\n <tr class=\"tx-table__row tx-table__row--frozen\">\n <ng-container [ngTemplateOutlet]=\"rowCells\" [ngTemplateOutletContext]=\"{ $implicit: item, position }\" />\n </tr>\n }\n </tbody>\n }\n <tbody\n #tbody\n cdkDropList\n class=\"tx-table__tbody\"\n [class]=\"passThrough().tbody?.class\"\n [style]=\"passThrough().tbody?.style\"\n [cdkDropListDisabled]=\"!reorderableRows()\"\n (cdkDropListDropped)=\"dropRow($event)\"\n >\n @if (spacerBefore()) {\n <tr class=\"tx-table__spacer\" aria-hidden=\"true\">\n <td [attr.colspan]=\"dataColumnCount()\" [style.height.px]=\"spacerBefore()\"></td>\n </tr>\n }\n @for (item of visibleRows(); track item.key; let windowIndex = $index) {\n @let position = windowRange().start + windowIndex;\n @let odd = position % 2 === 1;\n @if (item.group?.first && rowGroupMode() === 'subheader') {\n <tr class=\"tx-table__group-header\">\n <td class=\"tx-table__group-cell\" [attr.colspan]=\"dataColumnCount()\">\n <div class=\"tx-table__group-content\">\n @if (expandableRowGroups()) {\n <button\n type=\"button\"\n class=\"tx-table__row-toggle\"\n [attr.aria-expanded]=\"!item.group.collapsed\"\n [attr.aria-label]=\"item.group.collapsed ? translations().expandRow : translations().collapseRow\"\n (click)=\"toggleGroup(item)\"\n >\n <tx-icon aria-hidden=\"true\" name=\"chevron-right\" class=\"tx-table__row-toggle-icon\" [class.tx-table__row-toggle-icon--open]=\"!item.group.collapsed\" />\n </button>\n }\n @if (groupHeaderTemplate(); as header) {\n <ng-container [ngTemplateOutlet]=\"header.templateRef\" [ngTemplateOutletContext]=\"groupContext(item)\" />\n } @else {\n <span class=\"tx-table__group-title\">{{ item.group.value }}</span>\n <span class=\"tx-table__group-count\">{{ translations().rowGroup.replace('{count}', '' + item.group.size) }}</span>\n }\n </div>\n </td>\n </tr>\n }\n @if (!item.group?.collapsed || animatedGroups()) {\n <tr\n cdkDrag\n cdkDragLockAxis=\"y\"\n cdkDragPreviewContainer=\"parent\"\n class=\"tx-table__row\"\n [class]=\"[rowClassOf(item) ?? '', passThrough().row?.class ?? '']\"\n [style]=\"passThrough().row?.style\"\n [class.tx-table__row--odd]=\"odd\"\n [class.tx-table__row--selected]=\"item.selected\"\n [class.tx-table__row--selectable]=\"rowSelection() && item.selectable\"\n [class.tx-table__row--menu]=\"menuRowKey() === item.key && menuRowKey() !== undefined\"\n [attr.aria-selected]=\"rowSelection() ? item.selected : null\"\n [attr.aria-level]=\"item.tree?.level ?? null\"\n [attr.aria-expanded]=\"item.tree && !item.tree.leaf ? item.tree.expanded : null\"\n [attr.aria-setsize]=\"item.tree?.setSize ?? null\"\n [attr.aria-posinset]=\"item.tree?.posInSet ?? null\"\n [attr.aria-busy]=\"item.tree?.loading || null\"\n [attr.tabindex]=\"rowsFocusable() ? (position === focusedRow() ? 0 : -1) : null\"\n [attr.data-key]=\"item.key\"\n [class.tx-table__row--editing]=\"isRowEditing(item)\"\n [class.tx-table__row--collapsed]=\"isCollapsedRow(item)\"\n [attr.inert]=\"isCollapsedRow(item) ? '' : null\"\n [attr.aria-hidden]=\"isCollapsedRow(item) ? true : null\"\n (click)=\"onRowClick(item, position, $event)\"\n (keydown)=\"onRowKeydown(item, position, $event)\"\n (contextmenu)=\"onRowContextMenu(item, $event)\"\n >\n <ng-container [ngTemplateOutlet]=\"rowCells\" [ngTemplateOutletContext]=\"{ $implicit: item, position }\" />\n </tr>\n @if ((item.expanded || isClosing(item.key)) && !item.group?.collapsed && expansionTemplate(); as expansion) {\n <tr class=\"tx-table__expansion\">\n <td class=\"tx-table__expansion-cell\" [attr.colspan]=\"dataColumnCount()\">\n <div\n class=\"tx-table__expansion-body\"\n [class.tx-table__expansion-body--open]=\"item.expanded\"\n (transitionend)=\"finishClosing(item.key, $event)\"\n >\n <div class=\"tx-table__expansion-inner\">\n <div class=\"tx-table__expansion-content\">\n <ng-container [ngTemplateOutlet]=\"expansion.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: dataOf(item.row), node: item.row, index: item.index }\" />\n </div>\n </div>\n </div>\n </td>\n </tr>\n }\n @if (item.group?.last && rowGroupMode() === 'subheader' && groupFooterTemplate(); as footer) {\n <tr class=\"tx-table__group-footer\">\n <td class=\"tx-table__group-cell\" [attr.colspan]=\"dataColumnCount()\">\n <ng-container [ngTemplateOutlet]=\"footer.templateRef\" [ngTemplateOutletContext]=\"groupContext(item)\" />\n </td>\n </tr>\n }\n }\n }\n @if (spacerAfter()) {\n <tr class=\"tx-table__spacer\" aria-hidden=\"true\">\n <td [attr.colspan]=\"dataColumnCount()\" [style.height.px]=\"spacerAfter()\"></td>\n </tr>\n }\n </tbody>\n @if (hasFooter()) {\n <tfoot class=\"tx-table__tfoot\" [class]=\"passThrough().tfoot?.class\" [style]=\"passThrough().tfoot?.style\">\n <tr>\n @for (item of renderColumns(); track item.column.field) {\n <td\n class=\"tx-table__footer-cell\"\n [class]=\"passThrough().footerCell?.class\"\n [style]=\"passThrough().footerCell?.style\"\n [style.inset-inline-start]=\"frozenStyle(item)['insetInlineStart']\"\n [style.inset-inline-end]=\"frozenStyle(item)['insetInlineEnd']\"\n [class.tx-table__cell--frozen]=\"!!item.frozen\"\n [attr.data-align]=\"item.column.align ?? null\"\n >\n @if (footerTemplatesByField().get(item.column.field); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: item.column }\" />\n } @else {\n {{ item.column.footer }}\n }\n </td>\n }\n </tr>\n </tfoot>\n }\n </table>\n </div>\n } @else if (!empty()) {\n <div class=\"tx-table__cards\" role=\"list\" [class]=\"passThrough().cards?.class\" [style]=\"passThrough().cards?.style\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @for (item of renderRows(); track item.key) {\n <div\n role=\"listitem\"\n class=\"tx-table__card\"\n [class]=\"passThrough().card?.class\"\n [style]=\"passThrough().card?.style\"\n [class.tx-table__card--selected]=\"item.selected\"\n [class.tx-table__card--custom]=\"!!cardTemplate()\"\n >\n @if (cardTemplate(); as card) {\n <ng-container [ngTemplateOutlet]=\"card.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: dataOf(item.row), node: item.row, index: item.index }\" />\n } @else {\n @if (hasSelectColumn()) {\n <div class=\"tx-table__card-select\">\n @if (selectionMode() === 'checkbox') {\n <tx-checkbox\n binary\n [ariaLabel]=\"translations().selectRow\"\n [disabled]=\"!item.selectable\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"item.selected\"\n (ngModelChange)=\"toggleRow(item)\"\n />\n } @else {\n <tx-radio-button\n [value]=\"item.key\"\n [ariaLabel]=\"translations().selectRow\"\n [disabled]=\"!item.selectable\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"radioValue()\"\n (ngModelChange)=\"selectRadio(item)\"\n />\n }\n </div>\n }\n @if (cardTitleColumn(); as title) {\n <div class=\"tx-table__card-title\" [class.tx-table__card-title--select]=\"hasSelectColumn()\">\n <ng-container [ngTemplateOutlet]=\"cellContent\" [ngTemplateOutletContext]=\"{ $implicit: item, column: title }\" />\n </div>\n }\n @for (column of cardFields(); track column.field) {\n <div class=\"tx-table__card-field\">\n <span class=\"tx-table__card-label\">{{ label(column) }}</span>\n <span class=\"tx-table__card-value\"><ng-container [ngTemplateOutlet]=\"cellContent\" [ngTemplateOutletContext]=\"{ $implicit: item, column }\" /></span>\n </div>\n }\n @if (actionsTemplate(); as actions) {\n <div class=\"tx-table__card-actions\">\n <ng-container [ngTemplateOutlet]=\"actions.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: dataOf(item.row), node: item.row, index: item.index }\" />\n </div>\n }\n }\n </div>\n }\n </div>\n }\n\n @if (empty()) {\n <div class=\"tx-table__empty\" [class]=\"passThrough().empty?.class\" [style]=\"passThrough().empty?.style\">\n @if (emptyTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: dataColumnCount() }\" />\n } @else {\n {{ emptyMessage() ?? translations().emptyMessage }}\n }\n </div>\n }\n</div>\n\n@if (showPaginatorBottom()) {\n <ng-container [ngTemplateOutlet]=\"pager\" [ngTemplateOutletContext]=\"{ $implicit: 'bottom' }\" />\n}\n\n<ng-content />\n\n<tx-tiered-menu\n #rowMenu\n popup\n variant=\"context\"\n placement=\"bottom-start\"\n [offset]=\"0\"\n [model]=\"menuItems()\"\n [ariaLabel]=\"translations().rowActions\"\n [unstyled]=\"isUnstyled()\"\n (closed)=\"onMenuClosed()\"\n>\n <ng-template txMenuItem let-menuItem>\n @if (actionTemplate(menuItem); as action) {\n <span class=\"tx-table__menu-action\" aria-hidden=\"true\" [attr.data-action-id]=\"action.id()\">\n <ng-container [ngTemplateOutlet]=\"action.templateRef\" />\n </span>\n } @else if (menuItem.icon) {\n <tx-icon class=\"tx-table__menu-icon\" aria-hidden=\"true\" [name]=\"menuItem.icon\" />\n }\n <span class=\"tx-table__menu-label\">{{ menuItem.label }}</span>\n </ng-template>\n</tx-tiered-menu>\n\n<ng-template #cellContent let-item let-column=\"column\">\n @if (templatesByField().get(column.field); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: dataOf(item.row), row: dataOf(item.row), node: item.row, index: item.index, column, value: cellValue(item.row, column) }\"\n />\n } @else {\n {{ displayValue(item.row, column) }}\n }\n</ng-template>\n\n<ng-template #pager let-position>\n <tx-paginator\n class=\"tx-table__paginator\"\n [class.tx-table__paginator--top]=\"position === 'top'\"\n [class]=\"passThrough().paginator?.class\"\n [style]=\"passThrough().paginator?.style\"\n [first]=\"first()\"\n [rows]=\"rows()\"\n [totalRecords]=\"total()\"\n [rowsPerPageOptions]=\"rowsPerPageOptions()\"\n [showTotal]=\"showTotal()\"\n [showCurrentPageReport]=\"showCurrentPageReport()\"\n [currentPageReportTemplate]=\"currentPageReportTemplate()\"\n [showFirstLastIcon]=\"showFirstLastIcon()\"\n [showPageLinks]=\"showPageLinks()\"\n [showJumpToPageDropdown]=\"showJumpToPageDropdown()\"\n [showJumpToPageInput]=\"showJumpToPageInput()\"\n [alwaysShow]=\"alwaysShowPaginator()\"\n [pageLinkSize]=\"pageLinks()\"\n [unstyled]=\"isUnstyled()\"\n (pageChange)=\"onPage($event)\"\n />\n</ng-template>\n\n<ng-template #rowCells let-item let-position=\"position\">\n @for (column of renderColumns(); track column.column.field) {\n @if (!isGroupedCellHidden(item, column)) {\n <td\n class=\"tx-table__td\"\n [class]=\"[column.column.cellClass ?? '', passThrough().cell?.class ?? '']\"\n [style]=\"passThrough().cell?.style\"\n [style.inset-inline-start]=\"frozenStyle(column)['insetInlineStart']\"\n [style.inset-inline-end]=\"frozenStyle(column)['insetInlineEnd']\"\n [class.tx-table__cell--frozen]=\"!!column.frozen\"\n [class.tx-table__cell--frozen-last]=\"column.lastFrozenStart\"\n [class.tx-table__cell--frozen-first-end]=\"column.firstFrozenEnd\"\n [class.tx-table__td--actions]=\"column.kind === 'actions'\"\n [class.tx-table__td--editable]=\"column.kind === 'data' && editMode() === 'cell' && !!column.column.editable\"\n [class.tx-table__td--editing]=\"column.kind === 'data' && isEditing(item, column.column)\"\n [attr.data-field]=\"column.column.field\"\n [attr.data-align]=\"column.column.align ?? null\"\n [attr.rowspan]=\"groupRowspan(item, column)\"\n [attr.tabindex]=\"column.kind === 'data' && editMode() === 'cell' && column.column.editable ? 0 : null\"\n (click)=\"onCellClick(item, column, $event)\"\n (keydown)=\"onCellKeydown(item, column, $event)\"\n (focusout)=\"onCellFocusOut(item, column, $event)\"\n >\n @if (animatedRows()) {\n <div class=\"tx-table__cell-body\">\n <div class=\"tx-table__cell-inner\">\n <ng-container [ngTemplateOutlet]=\"cellBody\" [ngTemplateOutletContext]=\"{ $implicit: item, column, position }\" />\n </div>\n </div>\n } @else {\n <ng-container [ngTemplateOutlet]=\"cellBody\" [ngTemplateOutletContext]=\"{ $implicit: item, column, position }\" />\n }\n </td>\n }\n }\n</ng-template>\n\n<ng-template #cellBody let-item let-column=\"column\" let-position=\"position\">\n @switch (column.kind) {\n @case ('reorder') {\n <button\n type=\"button\"\n cdkDragHandle\n class=\"tx-table__row-handle\"\n [attr.aria-label]=\"translations().moveRow\"\n (keydown.alt.arrowup)=\"moveRowBy(position, -1, $event)\"\n (keydown.alt.arrowdown)=\"moveRowBy(position, 1, $event)\"\n >\n <tx-icon aria-hidden=\"true\" name=\"bars\" />\n </button>\n }\n @case ('select') {\n @if (selectionMode() === 'checkbox') {\n <tx-checkbox\n binary\n class=\"tx-table__select\"\n [ariaLabel]=\"translations().selectRow\"\n [disabled]=\"!item.selectable\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"item.selected\"\n (ngModelChange)=\"toggleRow(item)\"\n />\n } @else {\n <tx-radio-button\n class=\"tx-table__select\"\n [value]=\"item.key\"\n [ariaLabel]=\"translations().selectRow\"\n [disabled]=\"!item.selectable\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"radioValue()\"\n (ngModelChange)=\"selectRadio(item)\"\n />\n }\n }\n @case ('expand') {\n @if (canExpand(item)) {\n <button\n type=\"button\"\n class=\"tx-table__row-toggle\"\n [attr.aria-expanded]=\"item.expanded\"\n [attr.aria-label]=\"item.expanded ? translations().collapseRow : translations().expandRow\"\n (click)=\"toggleExpansion(item, $event)\"\n >\n <tx-icon aria-hidden=\"true\" name=\"chevron-right\" class=\"tx-table__row-toggle-icon\" [class.tx-table__row-toggle-icon--open]=\"item.expanded\" />\n </button>\n }\n }\n @case ('actions') {\n @if (actionsTemplate(); as actions) {\n <ng-container [ngTemplateOutlet]=\"actions.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: dataOf(item.row), node: item.row, index: item.index }\" />\n }\n }\n @case ('editor') {\n <div class=\"tx-table__row-editor\">\n @if (isRowEditing(item)) {\n <button\n txButton\n type=\"button\"\n text\n rounded\n size=\"small\"\n severity=\"success\"\n icon=\"check\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"translations().saveRow\"\n (click)=\"saveRow(item)\"\n ></button>\n <button\n txButton\n type=\"button\"\n text\n rounded\n size=\"small\"\n severity=\"danger\"\n icon=\"times\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"translations().cancelEdit\"\n (click)=\"cancelRow(item)\"\n ></button>\n } @else {\n <button\n txButton\n type=\"button\"\n text\n rounded\n size=\"small\"\n severity=\"secondary\"\n icon=\"pencil\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"translations().editRow\"\n (click)=\"startRowEdit(item)\"\n ></button>\n }\n </div>\n }\n @default {\n @if (item.tree && column.column.field === treeField()) {\n <div class=\"tx-table__tree-cell\" [style.--tx-table-tree-level]=\"item.tree.level - 1\">\n <button\n type=\"button\"\n class=\"tx-table__row-toggle tx-table__tree-toggle\"\n [class.tx-table__tree-toggle--hidden]=\"item.tree.leaf\"\n [attr.tabindex]=\"item.tree.leaf ? -1 : null\"\n [attr.aria-hidden]=\"item.tree.leaf || null\"\n [attr.aria-expanded]=\"item.tree.leaf ? null : item.tree.expanded\"\n [attr.aria-label]=\"item.tree.expanded ? translations().collapseRow : translations().expandRow\"\n [class]=\"passThrough().treeToggle?.class\"\n [style]=\"passThrough().treeToggle?.style\"\n (click)=\"toggleNode(item, $event)\"\n >\n @if (item.tree.loading) {\n <tx-icon aria-hidden=\"true\" name=\"spinner\" class=\"tx-table__tree-toggle-icon--loading\" />\n } @else {\n <tx-icon aria-hidden=\"true\" name=\"chevron-right\" class=\"tx-table__row-toggle-icon\" [class.tx-table__row-toggle-icon--open]=\"item.tree.expanded\" />\n }\n </button>\n @if (treeCheckbox()) {\n <tx-checkbox\n binary\n class=\"tx-table__tree-checkbox\"\n [ariaLabel]=\"translations().selectRow\"\n [disabled]=\"!item.selectable\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"item.selected\"\n [indeterminate]=\"item.tree.partial\"\n (ngModelChange)=\"toggleRow(item)\"\n />\n }\n <div class=\"tx-table__tree-content\">\n <ng-container [ngTemplateOutlet]=\"dataCell\" [ngTemplateOutletContext]=\"{ $implicit: item, column }\" />\n </div>\n </div>\n } @else {\n <ng-container [ngTemplateOutlet]=\"dataCell\" [ngTemplateOutletContext]=\"{ $implicit: item, column }\" />\n }\n }\n }\n</ng-template>\n\n<ng-template #dataCell let-item let-column=\"column\">\n @if (isEditing(item, column.column)) {\n <div class=\"tx-table__editor\">\n @if (editorTemplatesByField().get(column.column.field); as editor) {\n <ng-container [ngTemplateOutlet]=\"editor.templateRef\" [ngTemplateOutletContext]=\"editorContext(item, column.column)\" />\n } @else if (column.column.editOptions?.length) {\n <tx-select\n size=\"small\"\n optionLabel=\"label\"\n optionValue=\"value\"\n class=\"tx-table__editor-control\"\n [options]=\"column.column.editOptions\"\n [ariaLabel]=\"label(column.column)\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"draftValue(item, column.column)\"\n (ngModelChange)=\"setDraft(item, column.column, $event)\"\n />\n } @else {\n @switch (column.column.editType ?? 'text') {\n @case ('numeric') {\n <tx-input-number\n size=\"small\"\n class=\"tx-table__editor-control\"\n [ariaLabel]=\"label(column.column)\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"draftValue(item, column.column)\"\n (ngModelChange)=\"setDraft(item, column.column, $event)\"\n />\n }\n @case ('boolean') {\n <tx-checkbox\n binary\n [ariaLabel]=\"label(column.column)\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"draftValue(item, column.column)\"\n (ngModelChange)=\"setDraft(item, column.column, $event)\"\n />\n }\n @case ('date') {\n <tx-datepicker\n size=\"small\"\n class=\"tx-table__editor-control\"\n [ariaLabel]=\"label(column.column)\"\n [unstyled]=\"isUnstyled()\"\n [ngModel]=\"dateDraft(draftValue(item, column.column))\"\n (ngModelChange)=\"setDraft(item, column.column, $event)\"\n />\n }\n @default {\n <input\n txInput\n type=\"text\"\n size=\"small\"\n class=\"tx-table__editor-control\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"label(column.column)\"\n [value]=\"draftValue(item, column.column) ?? ''\"\n (input)=\"setDraft(item, column.column, $any($event.target).value)\"\n />\n }\n }\n }\n </div>\n } @else if (templatesByField().get(column.column.field); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template.templateRef\"\n [ngTemplateOutletContext]=\"{\n $implicit: dataOf(item.row),\n row: dataOf(item.row),\n node: item.row,\n index: item.index,\n column: column.column,\n value: cellValue(item.row, column.column),\n }\"\n />\n } @else if (isLoadingRow(item)) {\n <tx-skeleton class=\"tx-table__loading-cell\" height=\"14px\" />\n } @else if (cellTooltip()) {\n <span class=\"tx-table__cell-text\" tooltipOverflowOnly [txTooltip]=\"displayValue(item.row, column.column)\">{{ displayValue(item.row, column.column) }}</span>\n } @else {\n {{ displayValue(item.row, column.column) }}\n }\n</ng-template>\n",
|
|
4888
5032
|
styles: [":host{display:block;min-width:0}.tx-table__toolbar{display:flex;align-items:center;justify-content:space-between}.tx-table__toolbar-slot{flex:1;min-width:0}.tx-table__frame{position:relative}.tx-table__scroller{position:relative;overflow:auto}.tx-table__scroller--empty{overflow:hidden}.tx-table__table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0}.tx-table__thead{position:sticky;inset-block-start:0;z-index:2}.tx-table__th,.tx-table__td,.tx-table__footer-cell{box-sizing:border-box;overflow:hidden;text-align:start;vertical-align:middle}.tx-table__th{position:relative;white-space:nowrap;text-overflow:ellipsis}.tx-table__td{white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums}[data-align=center]{text-align:center}[data-align=end]{text-align:end}.tx-table__cell--frozen{position:sticky;z-index:1}.tx-table__sort{display:inline-flex;align-items:center;max-width:100%;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:inherit;cursor:pointer}.tx-table__header-content{display:flex;align-items:center;min-width:0}.tx-table__header-content>.tx-table__sort,.tx-table__header-content>.tx-table__column-title{min-width:0}.tx-table__filter{flex-shrink:0;margin-inline-start:auto}.tx-table__filter-cell{overflow:visible}.tx-table__column-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-table__sort-icon{flex-shrink:0}.tx-table__sort-icon--desc{transform:rotate(180deg)}.tx-table__sort-badge{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.tx-table__resizer{position:absolute;inset-block:0;inset-inline-end:-5px;z-index:3;display:flex;align-items:center;justify-content:center;cursor:col-resize;touch-action:none}.tx-table__resizer:before{content:\"\";position:absolute;inset-block:0;inset-inline-start:-2px;width:14px}.tx-table__resizer-line{height:100%}.tx-table__th--draggable{cursor:grab}.tx-table__th--draggable:active{cursor:grabbing}.tx-table__row--selectable{cursor:pointer}.tx-table__row-toggle{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;margin:0;padding:0;border:0;background:transparent;cursor:pointer}.tx-table__row-toggle-icon:dir(rtl){transform:scaleX(-1)}.tx-table__row-toggle-icon--open,.tx-table__row-toggle-icon--open:dir(rtl){transform:rotate(90deg)}.tx-table__expansion-body{display:grid;grid-template-rows:0fr}.tx-table__expansion-body--open{grid-template-rows:1fr}.tx-table__expansion-inner{min-height:0;overflow:hidden}.tx-table__expansion-body:not(.tx-table__expansion-body--open)>.tx-table__expansion-inner{visibility:hidden}.tx-table__grip{position:absolute;inset-block-start:50%;inset-inline-start:1px;opacity:0;transform:translateY(-50%);pointer-events:none}.tx-table__th--draggable:hover .tx-table__grip,.tx-table__th--draggable:focus-within .tx-table__grip{opacity:1}.tx-table__select{display:inline-flex;vertical-align:middle}.tx-table__editor{display:flex;align-items:center;min-width:0}.tx-table__editor-control{flex:1;width:100%;min-width:0}.tx-table__row-editor{display:flex;align-items:center;justify-content:center}.tx-table__td--editable{cursor:text}.tx-table__td--editing{overflow:visible;text-overflow:clip}.tx-table__cell-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-table__spacer>td{padding:0;border:0}.tx-table__cell-body{display:grid;grid-template-rows:1fr}.tx-table__cell-inner{min-height:0;overflow:hidden;text-overflow:ellipsis}.tx-table__row--collapsed .tx-table__cell-body{grid-template-rows:0fr}.tx-table__row--collapsed .tx-table__cell-inner{visibility:hidden}.tx-table__frozen-tbody{position:sticky;z-index:2}.tx-table__row-handle{display:inline-flex;align-items:center;justify-content:center;margin:0;padding:0;border:0;background:transparent;color:inherit;cursor:grab;touch-action:none}.tx-table__tbody.cdk-drop-list-dragging .tx-table__row:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.tx-table__row.cdk-drag-preview{display:table-row}.tx-table__group-content{display:flex;align-items:center}.tx-table__loading{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center}.tx-table__sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.tx-table__cards{display:grid}.tx-table__card{position:relative;display:flex;flex-direction:column;min-width:0}.tx-table__card-field,.tx-table__card-title{display:flex;align-items:center;min-width:0;overflow-wrap:break-word}.tx-table__card-field{text-align:end}.tx-table__card-label{flex-shrink:0;max-width:45%;margin-inline-end:auto;text-align:start}.tx-table__card-value{min-width:0}.tx-table__card-select{position:absolute;z-index:1}.tx-table__card-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;order:99;margin-top:auto}.tx-table--resizing{cursor:col-resize;-webkit-user-select:none;user-select:none}.tx-table--resizing *{cursor:col-resize}.tx-table__tree-cell{display:flex;align-items:center;min-width:0}.tx-table__tree-content{min-width:0;overflow:hidden;text-overflow:ellipsis}.tx-table__tree-toggle{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;margin:0;padding:0;border:0;background:transparent;color:inherit;cursor:pointer}.tx-table__tree-toggle--hidden{visibility:hidden}.tx-table__tree-select-all{margin-inline-end:var(--tx-tree-table-node-gap)}:host([data-styled]){color:var(--tx-table-color);font-size:var(--tx-table-font-size);line-height:var(--tx-table-line-height)}:host([data-styled]) .tx-table__toolbar{gap:var(--tx-table-toolbar-gap);margin-bottom:var(--tx-table-toolbar-margin-bottom)}:host([data-styled]) .tx-table__scroller{padding-bottom:var(--tx-table-scroller-padding-bottom);scrollbar-color:var(--tx-table-scroller-scrollbar-thumb) transparent}:host([data-styled]) .tx-table__scroller::-webkit-scrollbar{width:var(--tx-table-scroller-scrollbar-size);height:var(--tx-table-scroller-scrollbar-size)}:host([data-styled]) .tx-table__scroller::-webkit-scrollbar-track,:host([data-styled]) .tx-table__scroller::-webkit-scrollbar-corner{background:transparent}:host([data-styled]) .tx-table__scroller::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background-color:var(--tx-table-scroller-scrollbar-thumb);background-clip:padding-box}:host([data-styled]) .tx-table__scroller::-webkit-scrollbar-thumb:hover{background-color:var(--tx-table-scroller-scrollbar-thumb-hover)}:host([data-styled]) .tx-table__scroller--empty{padding-bottom:0}:host([data-styled]) .tx-table__thead{background:var(--tx-table-header-cell-background)}:host([data-styled]) .tx-table__th{padding:var(--tx-table-header-cell-padding);border-color:var(--tx-table-border-color);border-style:solid;border-width:0 0 1px;background:var(--tx-table-header-cell-background);color:var(--tx-table-header-cell-color);font-size:var(--tx-table-header-cell-font-size);font-weight:var(--tx-table-header-cell-font-weight);transition:background var(--tx-table-transition-duration),color var(--tx-table-transition-duration)}:host([data-styled]) .tx-table__header-content{gap:var(--tx-table-header-cell-gap)}:host([data-styled]) .tx-table__filter{margin-block:calc(var(--tx-table-filter-button-inset) * -1)}:host([data-styled]) .tx-table__filter-cell{padding:var(--tx-table-filter-cell-padding);font-weight:var(--tx-font-weight-regular)}:host([data-styled]) .tx-table__sort{gap:var(--tx-table-header-cell-gap);border-radius:var(--tx-radius-xs)}:host([data-styled]) .tx-table__sort:focus-visible{outline:var(--tx-table-header-cell-focus-ring-width) var(--tx-table-header-cell-focus-ring-style) var(--tx-table-header-cell-focus-ring-color);outline-offset:var(--tx-table-header-cell-focus-ring-offset);box-shadow:var(--tx-table-header-cell-focus-ring-shadow)}:host([data-styled]) .tx-table__sort-icon{--tx-icon-size: var(--tx-table-sort-icon-size);color:var(--tx-table-sort-icon-color);transition:transform .3s ease}:host([data-styled]) .tx-table__sort-badge{min-width:var(--tx-table-sort-icon-badge-size);height:var(--tx-table-sort-icon-badge-size);border-radius:999px;background:var(--tx-table-sort-icon-badge-background);color:var(--tx-table-sort-icon-badge-color);font-size:var(--tx-table-sort-icon-badge-font-size)}:host([data-styled]) .tx-table__resizer{width:var(--tx-table-column-resizer-width)}:host([data-styled]) .tx-table__resizer-line{width:var(--tx-table-column-resizer-line-width);background-color:transparent;transition:background-color var(--tx-table-transition-duration)}:host([data-styled]) .tx-table__resizer:hover .tx-table__resizer-line,:host([data-styled]) .tx-table__resizer--active .tx-table__resizer-line,:host([data-styled]) .tx-table__resizer:focus-visible .tx-table__resizer-line{background-color:var(--tx-table-column-resizer-color)}:host([data-styled]) .tx-table__resizer:focus-visible{outline:none}:host([data-styled]) .tx-table__header-row.cdk-drop-list-dragging{background:var(--tx-table-drop-point-background)}:host([data-styled]) .tx-table__header-row.cdk-drop-list-dragging .tx-table__th:hover{background:var(--tx-table-drop-point-hover-background)}:host([data-styled]) .tx-table__th.cdk-drag-placeholder{opacity:.6}:host([data-styled]) .tx-table__row{background:var(--tx-table-row-background);color:var(--tx-table-row-color);outline-color:transparent;transition:background var(--tx-table-transition-duration)}:host([data-styled]) .tx-table__td{height:var(--tx-table-body-cell-height);padding:var(--tx-table-body-cell-padding);border-color:var(--tx-table-border-color);border-style:solid;border-width:0 0 1px}:host([data-styled]) .tx-table__expansion-cell{padding:0;border-color:var(--tx-table-border-color);border-style:solid;border-width:0 0 1px;background:var(--tx-table-row-background)}:host([data-styled]) .tx-table__expansion-content{padding:var(--tx-table-body-cell-padding)}:host([data-styled]) .tx-table__expansion-body{transition:grid-template-rows var(--tx-table-expansion-duration) var(--tx-table-expansion-easing)}:host([data-styled]) .tx-table__expansion-body:not(.tx-table__expansion-body--open)>.tx-table__expansion-inner{transition:visibility 0s linear var(--tx-table-expansion-duration)}@starting-style{:host([data-styled]) .tx-table__expansion-body--open{grid-template-rows:0fr}}:host([data-styled]) .tx-table__row-toggle-icon{transition:transform var(--tx-table-expansion-duration) var(--tx-table-expansion-easing)}:host([data-styled]) .tx-table__row--collapsed>.tx-table__td{height:0;padding-block:0;border-bottom-width:0}:host([data-styled]) .tx-table__tbody:has(.tx-table__cell-body)>.tx-table__row{transition:visibility 0s linear}:host([data-styled]) .tx-table__tbody:has(.tx-table__cell-body)>.tx-table__row--collapsed{visibility:collapse;transition-delay:var(--tx-table-expansion-duration)}:host([data-styled]) .tx-table__cell-body{transition:grid-template-rows var(--tx-table-expansion-duration) var(--tx-table-expansion-easing)}:host([data-styled]) .tx-table__cell-inner{transition:visibility 0s linear}:host([data-styled]) .tx-table__row--collapsed .tx-table__cell-inner{transition-delay:var(--tx-table-expansion-duration)}:host([data-styled]) .tx-table__tbody:has(.tx-table__cell-body)>.tx-table__row>.tx-table__td{transition:height var(--tx-table-expansion-duration) var(--tx-table-expansion-easing),padding-block var(--tx-table-expansion-duration) var(--tx-table-expansion-easing),border-bottom-width var(--tx-table-expansion-duration) var(--tx-table-expansion-easing)}:host([data-styled]) .tx-table__grip{--tx-icon-size: var(--tx-table-grip-size);color:var(--tx-table-grip-color);transition:opacity var(--tx-table-transition-duration)}:host([data-styled]) .tx-table__footer-cell{padding:var(--tx-table-footer-cell-padding);border-color:var(--tx-table-border-color);border-style:solid;border-width:0 0 1px;background:var(--tx-table-footer-cell-background);color:var(--tx-table-footer-cell-color);font-weight:var(--tx-table-footer-cell-font-weight)}:host([data-styled]) .tx-table__cell--frozen{background:var(--tx-table-row-background);box-shadow:var(--tx-table-frozen-column-shadow)}:host([data-styled]) .tx-table__th.tx-table__cell--frozen{background:var(--tx-table-header-cell-background)}:host([data-styled]) .tx-table__cell--frozen-last{border-inline-end:1px solid var(--tx-table-border-color)}:host([data-styled]) .tx-table__cell--frozen-first-end{border-inline-start:1px solid var(--tx-table-border-color)}:host([data-styled]) .tx-table__row .tx-table__cell--frozen{background:inherit}:host([data-styled]) .tx-table__row--selected{background:var(--tx-table-row-selected-background);color:var(--tx-table-row-selected-color)}:host([data-styled]) .tx-table__row--selected>.tx-table__td{border-block-end-color:var(--tx-table-body-cell-selected-border-color)}:host([data-styled]) .tx-table__row--menu>.tx-table__td{background:var(--tx-table-row-menu-background)}:host([data-styled]) .tx-table__row:focus-visible{outline:var(--tx-table-row-focus-ring-width) var(--tx-table-row-focus-ring-style) var(--tx-table-row-focus-ring-color);outline-offset:var(--tx-table-row-focus-ring-offset);box-shadow:var(--tx-table-row-focus-ring-shadow)}:host([data-styled]) .tx-table__row-handle{width:var(--tx-table-row-toggle-button-size);height:var(--tx-table-row-toggle-button-size);border-radius:var(--tx-radius-xs);color:var(--tx-table-grip-color)}:host([data-styled]) .tx-table__row-handle:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:2px}:host([data-styled]) .tx-table__row.cdk-drag-preview{box-shadow:var(--tx-table-drag-preview-shadow);background:var(--tx-table-row-background)}:host([data-styled]) .tx-table__row.cdk-drag-placeholder{opacity:.4}:host([data-styled]) .tx-table__group-cell{padding:var(--tx-table-body-cell-padding);border-color:var(--tx-table-border-color);border-style:solid;border-width:0 0 1px;background:var(--tx-table-group-background);font-weight:var(--tx-table-group-font-weight)}:host([data-styled]) .tx-table__group-content{gap:var(--tx-table-header-cell-gap)}:host([data-styled]) .tx-table__group-count{color:var(--tx-text-muted);font-weight:var(--tx-font-weight-regular)}:host([data-styled]) .tx-table__frozen-tbody .tx-table__td{background:var(--tx-table-row-background)}:host([data-styled]) .tx-table__td--editable:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:-2px}:host([data-styled]) .tx-table__td--editing{padding-block:var(--tx-table-editor-padding-block)}:host([data-styled]) .tx-table__row-editor{gap:var(--tx-table-actions-gap)}:host([data-styled]) .tx-table__row-toggle{width:var(--tx-table-row-toggle-button-size);height:var(--tx-table-row-toggle-button-size);border-radius:var(--tx-table-row-toggle-button-border-radius);color:var(--tx-table-row-toggle-button-color);transition:background var(--tx-table-transition-duration),color var(--tx-table-transition-duration)}:host([data-styled]) .tx-table__row-toggle:hover{background:var(--tx-table-row-toggle-button-hover-background);color:var(--tx-table-row-toggle-button-hover-color)}:host([data-styled]) .tx-table__row-toggle:focus-visible{outline:var(--tx-table-row-toggle-button-focus-ring-width) var(--tx-table-row-toggle-button-focus-ring-style) var(--tx-table-row-toggle-button-focus-ring-color);outline-offset:var(--tx-table-row-toggle-button-focus-ring-offset);box-shadow:var(--tx-table-row-toggle-button-focus-ring-shadow)}:host([data-styled]) .tx-table__tree-cell{gap:var(--tx-tree-table-node-gap);padding-inline-start:calc(var(--tx-table-tree-level, 0) * var(--tx-tree-table-node-indent))}:host([data-styled]) .tx-table__tree-toggle-icon--loading{animation:tx-table-tree-spin .8s linear infinite}:host([data-styled]) .tx-table__loading{background:var(--tx-table-loading-background);-webkit-backdrop-filter:blur(var(--tx-table-loading-blur));backdrop-filter:blur(var(--tx-table-loading-blur))}:host([data-styled]) .tx-table__empty{padding:var(--tx-table-empty-padding);border:1px solid var(--tx-table-border-color);border-top:0;color:var(--tx-table-empty-color)}:host([data-styled]) .tx-table__paginator{margin-top:var(--tx-table-paginator-margin-top)}:host([data-styled]) .tx-table__paginator--top{margin-top:0;margin-bottom:var(--tx-table-paginator-margin-top)}:host([data-styled]) .tx-table__select-all{margin-bottom:var(--tx-table-toolbar-margin-bottom)}:host([data-styled]) .tx-table__cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--tx-table-card-min-width)),1fr));gap:var(--tx-table-card-gap)}:host([data-styled]) .tx-table__card{border-radius:var(--tx-table-card-border-radius);background:var(--tx-table-card-background);box-shadow:inset 0 0 0 1px var(--tx-table-card-border-color)}:host([data-styled]) .tx-table__card--selected{box-shadow:inset 0 0 0 1px var(--tx-table-row-focus-ring-color)}:host([data-styled]) .tx-table__card-field{gap:var(--tx-table-card-field-gap);padding:var(--tx-table-card-field-padding);border-bottom:1px solid var(--tx-table-card-border-color);font-size:var(--tx-table-card-field-font-size)}:host([data-styled]) .tx-table__card-field:last-child{border-bottom:0}:host([data-styled]) .tx-table__card-label{color:var(--tx-table-card-label-color);font-size:var(--tx-table-card-label-font-size)}:host([data-styled]) .tx-table__card-title{padding:var(--tx-table-card-title-padding);border-bottom:1px solid var(--tx-table-card-border-color);font-size:var(--tx-table-card-title-font-size);font-weight:var(--tx-table-card-title-font-weight)}:host([data-styled]) .tx-table__card-title--select{padding-inline-end:calc(var(--tx-table-card-select-inset) * 4)}:host([data-styled]) .tx-table__card-select{inset-block-start:var(--tx-table-card-select-inset);inset-inline-end:var(--tx-table-card-select-inset)}:host([data-styled]) .tx-table__card-actions{gap:var(--tx-table-actions-gap);padding:var(--tx-table-card-actions-padding)}:host([data-styled].tx-table--gridlines) .tx-table__th{border-width:1px 0 1px 1px}:host([data-styled].tx-table--gridlines) .tx-table__th:last-child{border-width:1px}:host([data-styled].tx-table--gridlines) .tx-table__thead>tr:not(:first-child)>.tx-table__th{border-top-width:0}:host([data-styled].tx-table--gridlines) .tx-table__td,:host([data-styled].tx-table--gridlines) .tx-table__footer-cell{border-width:0 0 1px 1px}:host([data-styled].tx-table--gridlines) .tx-table__td:last-child,:host([data-styled].tx-table--gridlines) .tx-table__footer-cell:last-child{border-width:0 1px 1px}:host([data-styled].tx-table--gridlines) .tx-table__expansion-cell,:host([data-styled].tx-table--gridlines) .tx-table__group-cell{border-width:0 1px 1px}:host([data-styled].tx-table--striped) .tx-table__row--odd:not(.tx-table__row--selected){background:var(--tx-table-row-striped-background)}:host([data-styled].tx-table--hoverable) .tx-table__row:not(.tx-table__row--selected):hover{background:var(--tx-table-row-hover-background)}:host([data-styled][data-size=small]) .tx-table__th{padding:var(--tx-table-header-cell-sm-padding)}:host([data-styled][data-size=small]) .tx-table__td{height:var(--tx-table-body-cell-sm-height);padding:var(--tx-table-body-cell-sm-padding)}:host([data-styled][data-size=large]) .tx-table__th{padding:var(--tx-table-header-cell-lg-padding)}:host([data-styled][data-size=large]) .tx-table__td{height:var(--tx-table-body-cell-lg-height);padding:var(--tx-table-body-cell-lg-padding)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-table__th,:host([data-styled]) .tx-table__row,:host([data-styled]) .tx-table__sort-icon,:host([data-styled]) .tx-table__resizer-line,:host([data-styled]) .tx-table__row-toggle,:host([data-styled]) .tx-table__row-toggle-icon,:host([data-styled]) .tx-table__grip,:host([data-styled]) .tx-table__expansion-body,:host([data-styled]) .tx-table__cell-body,:host([data-styled]) .tx-table__cell-inner,:host([data-styled]) .tx-table__tbody:has(.tx-table__cell-body)>.tx-table__row>.tx-table__td,:host([data-styled]) .tx-table__expansion-inner{transition:none}}@keyframes tx-table-tree-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-table__tree-toggle-icon--loading{animation-duration:2.4s}}\n"]
|
|
4889
5033
|
}]
|
|
4890
5034
|
}],
|