@thalassic/ui 22.17.2 → 22.17.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9002,10 +9002,12 @@ class TableColumn {
9002
9002
  ...(ngDevMode ? [undefined, { debugName: "alignment" }] : /* istanbul ignore next */ []));
9003
9003
  width = input(/* @ts-ignore */
9004
9004
  ...(ngDevMode ? [undefined, { debugName: "width" }] : /* istanbul ignore next */ []));
9005
+ collapse = input(/* @ts-ignore */
9006
+ ...(ngDevMode ? [undefined, { debugName: "collapse" }] : /* istanbul ignore next */ []));
9005
9007
  template = contentChild(TemplateRef, /* @ts-ignore */
9006
9008
  ...(ngDevMode ? [{ debugName: "template" }] : /* istanbul ignore next */ []));
9007
9009
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TableColumn, deps: [], target: i0.ɵɵFactoryTarget.Component });
9008
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.5", type: TableColumn, isStandalone: true, selector: "tls-table-column", inputs: { key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: true, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, hidden: { classPropertyName: "hidden", publicName: "hidden", isSignal: true, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], ngImport: i0, template: '', isInline: true });
9010
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.5", type: TableColumn, isStandalone: true, selector: "tls-table-column", inputs: { key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: true, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, hidden: { classPropertyName: "hidden", publicName: "hidden", isSignal: true, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, collapse: { classPropertyName: "collapse", publicName: "collapse", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], ngImport: i0, template: '', isInline: true });
9009
9011
  }
9010
9012
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TableColumn, decorators: [{
9011
9013
  type: Component,
@@ -9014,7 +9016,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
9014
9016
  imports: [],
9015
9017
  template: '',
9016
9018
  }]
9017
- }], propDecorators: { key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: true }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], hidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "hidden", required: false }] }], alignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "alignment", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], template: [{ type: i0.ContentChild, args: [i0.forwardRef(() => TemplateRef), { isSignal: true }] }] } });
9019
+ }], propDecorators: { key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: true }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], hidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "hidden", required: false }] }], alignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "alignment", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], collapse: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapse", required: false }] }], template: [{ type: i0.ContentChild, args: [i0.forwardRef(() => TemplateRef), { isSignal: true }] }] } });
9018
9020
 
9019
9021
  const DEFAULT_TABLE_CONFIG = {
9020
9022
  hideHeader: false,
@@ -9027,6 +9029,11 @@ const TABLE_CONFIG = new InjectionToken('TABLE_CONFIG', {
9027
9029
 
9028
9030
  class Table {
9029
9031
  _config = inject(TABLE_CONFIG);
9032
+ /**
9033
+ * Rows to render. The row type flows through from whatever array is bound, so
9034
+ * a caller keeps its own model type here rather than widening to an index
9035
+ * signature.
9036
+ */
9030
9037
  data = input.required(/* @ts-ignore */
9031
9038
  ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
9032
9039
  columnDefinitions = input([], /* @ts-ignore */
@@ -9041,6 +9048,17 @@ class Table {
9041
9048
  * scroll. Left unset the table grows with its content and nothing scrolls.
9042
9049
  */
9043
9050
  maxHeight = input(undefined, { ...(ngDevMode ? { debugName: "maxHeight" } : /* istanbul ignore next */ {}), transform: value => value === undefined || value === null ? undefined : numberAttribute(value) });
9051
+ /**
9052
+ * Width below which the table stops being a column grid: `fold` columns move
9053
+ * under the kept cells as labelled lines and `hide` columns drop out, so a
9054
+ * record stays readable when there is no room to lay it out sideways.
9055
+ *
9056
+ * Measured against the table's own width, not the viewport — a table inside a
9057
+ * sidebar or split pane collapses on its real width. Left unset the table
9058
+ * never collapses.
9059
+ */
9060
+ collapseAt = input(undefined, /* @ts-ignore */
9061
+ ...(ngDevMode ? [{ debugName: "collapseAt" }] : /* istanbul ignore next */ []));
9044
9062
  /** Accessible name for the table, forwarded to the inner `<table>` element. */
9045
9063
  ariaLabel = input(undefined, /* @ts-ignore */
9046
9064
  ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
@@ -9078,6 +9096,16 @@ class Table {
9078
9096
  ...(ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []));
9079
9097
  resolvedTrackBy = computed(() => resolveTrackBy(this.trackBy()), /* @ts-ignore */
9080
9098
  ...(ngDevMode ? [{ debugName: "resolvedTrackBy" }] : /* istanbul ignore next */ []));
9099
+ hostClasses = computed(() => {
9100
+ const classes = [];
9101
+ if (this.scrollable())
9102
+ classes.push('tls-table-container--scrollable');
9103
+ const collapseAt = this.collapseAt();
9104
+ if (collapseAt)
9105
+ classes.push(`tls-table-container--collapse-${collapseAt}`);
9106
+ return classes.join(' ');
9107
+ }, /* @ts-ignore */
9108
+ ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
9081
9109
  scrollable = computed(() => this.maxHeight() !== undefined, /* @ts-ignore */
9082
9110
  ...(ngDevMode ? [{ debugName: "scrollable" }] : /* istanbul ignore next */ []));
9083
9111
  classes = computed(() => {
@@ -9098,6 +9126,17 @@ class Table {
9098
9126
  // no operation
9099
9127
  },
9100
9128
  };
9129
+ // Protected methods
9130
+ /**
9131
+ * Reads a column's value off a row by key.
9132
+ *
9133
+ * Columns address their data by string key while the row type stays the
9134
+ * caller's own, so the index has to be widened here — confined to this one
9135
+ * place rather than pushed onto every consumer's cell template.
9136
+ */
9137
+ cellValue(row, key) {
9138
+ return row[key];
9139
+ }
9101
9140
  // Private methods
9102
9141
  _mapContentColumns(columns) {
9103
9142
  return columns.map((column) => this._mapContentColumn(column));
@@ -9113,13 +9152,16 @@ class Table {
9113
9152
  const width = column.width();
9114
9153
  if (width !== undefined)
9115
9154
  definition.width = width;
9155
+ const collapse = column.collapse();
9156
+ if (collapse !== undefined)
9157
+ definition.collapse = collapse;
9116
9158
  const template = column.template();
9117
9159
  if (template !== undefined)
9118
9160
  definition.template = template;
9119
9161
  return definition;
9120
9162
  }
9121
9163
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Table, deps: [], target: i0.ɵɵFactoryTarget.Component });
9122
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Table, isStandalone: true, selector: "tls-table", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, columnDefinitions: { classPropertyName: "columnDefinitions", publicName: "columnDefinitions", isSignal: true, isRequired: false, transformFunction: null }, hideHeader: { classPropertyName: "hideHeader", publicName: "hideHeader", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, trackBy: { classPropertyName: "trackBy", publicName: "trackBy", isSignal: true, isRequired: false, transformFunction: null }, maxHeight: { classPropertyName: "maxHeight", publicName: "maxHeight", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.tls-table-container--scrollable": "scrollable()", "style.max-height.px": "maxHeight() ?? null" }, classAttribute: "tls-table-container" }, queries: [{ propertyName: "tableColumns", predicate: TableColumn, isSignal: true }], ngImport: i0, template: "<table\n cdk-table\n [class]=\"classes()\"\n [dataSource]=\"dataSource\"\n [trackBy]=\"resolvedTrackBy()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n>\n @for (column of effectiveColumnDefinitions(); track column.key) {\n <ng-container [cdkColumnDef]=\"column.key\">\n <!-- Header cell -->\n <th cdk-header-cell *cdkHeaderCellDef class=\"tls-table__header-cell\" [style.width]=\"column.width + 'px'\">\n {{ column.header }}\n </th>\n\n <!-- Row cell -->\n <td\n cdk-cell\n *cdkCellDef=\"let data; let index = index; let count = count; let first = first; let last = last; let even = even; let odd = odd\"\n class=\"tls-table__cell\"\n [style.text-align]=\"column.alignment\"\n >\n @if (column.template) {\n <ng-container\n [ngTemplateOutlet]=\"column.template\"\n [ngTemplateOutletContext]=\"{\n $implicit: data[column.key],\n data: data,\n index: index,\n count: count,\n first: first,\n last: last,\n even: even,\n odd: odd\n }\"\n />\n } @else {\n {{ data[column.key] }}\n }\n </td>\n </ng-container>\n }\n\n <tr cdk-header-row *cdkHeaderRowDef=\"columns(); sticky: scrollable()\" class=\"tls-table__header-row\"></tr>\n\n <tr *cdkRowDef=\"let row; columns: columns()\" cdk-row class=\"tls-table__row\"></tr>\n</table>\n", styles: [":host{display:block}:host.tls-table-container--scrollable{overflow-y:auto;overscroll-behavior:contain}\n"], dependencies: [{ kind: "component", type: CdkTable, selector: "cdk-table, table[cdk-table]", inputs: ["trackBy", "dataSource", "multiTemplateDataRows", "fixedLayout", "recycleRows"], outputs: ["contentChanged"], exportAs: ["cdkTable"] }, { kind: "directive", type: CdkHeaderCell, selector: "cdk-header-cell, th[cdk-header-cell]" }, { kind: "directive", type: CdkCell, selector: "cdk-cell, td[cdk-cell]" }, { kind: "directive", type: CdkCellDef, selector: "[cdkCellDef]" }, { kind: "directive", type: CdkHeaderCellDef, selector: "[cdkHeaderCellDef]" }, { kind: "directive", type: CdkColumnDef, selector: "[cdkColumnDef]", inputs: ["cdkColumnDef", "sticky", "stickyEnd"] }, { kind: "component", type: CdkHeaderRow, selector: "cdk-header-row, tr[cdk-header-row]" }, { kind: "directive", type: CdkHeaderRowDef, selector: "[cdkHeaderRowDef]", inputs: ["cdkHeaderRowDef", "cdkHeaderRowDefSticky"] }, { kind: "component", type: CdkRow, selector: "cdk-row, tr[cdk-row]" }, { kind: "directive", type: CdkRowDef, selector: "[cdkRowDef]", inputs: ["cdkRowDefColumns", "cdkRowDefWhen"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
9164
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Table, isStandalone: true, selector: "tls-table", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, columnDefinitions: { classPropertyName: "columnDefinitions", publicName: "columnDefinitions", isSignal: true, isRequired: false, transformFunction: null }, hideHeader: { classPropertyName: "hideHeader", publicName: "hideHeader", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, trackBy: { classPropertyName: "trackBy", publicName: "trackBy", isSignal: true, isRequired: false, transformFunction: null }, maxHeight: { classPropertyName: "maxHeight", publicName: "maxHeight", isSignal: true, isRequired: false, transformFunction: null }, collapseAt: { classPropertyName: "collapseAt", publicName: "collapseAt", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()", "style.max-height.px": "maxHeight() ?? null" }, classAttribute: "tls-table-container" }, queries: [{ propertyName: "tableColumns", predicate: TableColumn, isSignal: true }], ngImport: i0, template: "<table\n cdk-table\n role=\"table\"\n [class]=\"classes()\"\n [dataSource]=\"dataSource\"\n [trackBy]=\"resolvedTrackBy()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n>\n @for (column of effectiveColumnDefinitions(); track column.key) {\n <ng-container [cdkColumnDef]=\"column.key\">\n <!-- Header cell -->\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n role=\"columnheader\"\n class=\"tls-table__header-cell\"\n [style.width]=\"column.width + 'px'\"\n >\n {{ column.header }}\n </th>\n\n <!-- Row cell -->\n <td\n cdk-cell\n *cdkCellDef=\"let data; let index = index; let count = count; let first = first; let last = last; let even = even; let odd = odd\"\n role=\"cell\"\n class=\"tls-table__cell\"\n [class.tls-table__cell--fold]=\"column.collapse === 'fold'\"\n [class.tls-table__cell--hide]=\"column.collapse === 'hide'\"\n [style.text-align]=\"column.alignment\"\n [attr.data-label]=\"column.header ?? null\"\n >\n @if (column.template) {\n <ng-container\n [ngTemplateOutlet]=\"column.template\"\n [ngTemplateOutletContext]=\"{\n $implicit: cellValue(data, column.key),\n data: data,\n index: index,\n count: count,\n first: first,\n last: last,\n even: even,\n odd: odd\n }\"\n />\n } @else {\n {{ cellValue(data, column.key) }}\n }\n </td>\n </ng-container>\n }\n\n <tr\n cdk-header-row\n *cdkHeaderRowDef=\"columns(); sticky: scrollable()\"\n role=\"row\"\n class=\"tls-table__header-row\"\n ></tr>\n\n <tr *cdkRowDef=\"let row; columns: columns()\" cdk-row role=\"row\" class=\"tls-table__row\"></tr>\n</table>\n", styles: [".tls-container{container:tls-container/inline-size;height:100%;width:100%}.tls-container__content{height:100%;max-width:1536px;margin:0 auto}@container tls-container (max-width: 1536px){.tls-container__content{max-width:1280px}}@container tls-container (max-width: 1280px){.tls-container__content{max-width:1024px}}@container tls-container (max-width: 1024px){.tls-container__content{max-width:768px}}@container tls-container (max-width: 768px){.tls-container__content{max-width:640px}}@container tls-container (max-width: 640px){.tls-container__content{padding:0 16px}}.tls-container-media{height:100%;width:100%;max-width:1536px;margin:0 auto}@media(max-width:1536px){.tls-container-media{max-width:1280px}}@media(max-width:1280px){.tls-container-media{max-width:1024px}}@media(max-width:1024px){.tls-container-media{max-width:768px}}@media(max-width:768px){.tls-container-media{max-width:640px}}@media(max-width:640px){.tls-container-media{padding:0 16px;width:auto}}.--cursor-help{cursor:help}.--cursor-pointer{cursor:pointer}.--hidden{display:none}.--f-style-normal{font-style:normal}.--f-style-italic{font-style:italic}.--f-weight-thin{font-weight:100}.--f-weight-extralight{font-weight:200}.--f-weight-light{font-weight:var(--font-weight-light)}.--f-weight-normal{font-weight:var(--font-weight-regular)}.--f-weight-medium{font-weight:var(--font-weight-medium)}.--f-weight-semibold{font-weight:var(--font-weight-semibold)}.--f-weight-bold{font-weight:var(--font-weight-bold)}.--f-weight-extrabold{font-weight:800}.--f-weight-black{font-weight:900}.--row{display:flex;flex-direction:row}.--row-reverse{display:flex;flex-direction:row-reverse}.--column{display:flex;flex-direction:column}.--column-reverse{display:flex;flex-direction:column-reverse}.--flex-wrap{flex-wrap:wrap}.--flex-nowrap{flex-wrap:nowrap}.--justify-start{justify-content:flex-start}.--justify-end{justify-content:flex-end}.--justify-center{justify-content:center}.--justify-between{justify-content:space-between}.--justify-around{justify-content:space-around}.--justify-evenly{justify-content:space-evenly}.--items-start{align-items:flex-start}.--items-end{align-items:flex-end}.--items-center{align-items:center}.--items-baseline{align-items:baseline}.--items-stretch{align-items:stretch}.--gap-1{gap:var(--spacing-1)}.--gap-2{gap:var(--spacing-2)}.--gap-3{gap:var(--spacing-3)}.--gap-4{gap:var(--spacing-4)}.--gap-5{gap:var(--spacing-5)}.--gap-6{gap:var(--spacing-6)}.--gap-7{gap:var(--spacing-7)}.--gap-8{gap:var(--spacing-8)}.--gap-9{gap:var(--spacing-9)}.--gap-10{gap:var(--spacing-10)}.--gap-11{gap:var(--spacing-11)}.--gap-12{gap:var(--spacing-12)}.--gap-13{gap:var(--spacing-13)}.--gap-14{gap:var(--spacing-14)}.--gap-15{gap:var(--spacing-15)}.--gap-16{gap:var(--spacing-16)}.--gap-17{gap:var(--spacing-17)}.--gap-18{gap:var(--spacing-18)}.--gap-19{gap:var(--spacing-19)}.--gap-20{gap:var(--spacing-20)}.--text-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-display-lg{font-size:var(--font-display-large-size);font-weight:var(--font-display-large-weight);line-height:var(--font-display-large-line-height);letter-spacing:var(--font-display-large-letter-spacing)}.text-display-md{font-size:var(--font-display-medium-size);font-weight:var(--font-display-medium-weight);line-height:var(--font-display-medium-line-height);letter-spacing:var(--font-display-medium-letter-spacing)}.text-display-sm{font-size:var(--font-display-small-size);font-weight:var(--font-display-small-weight);line-height:var(--font-display-small-line-height);letter-spacing:var(--font-display-small-letter-spacing)}h1,.text-headline-lg{font-size:var(--font-headline-large-size);font-weight:var(--font-headline-large-weight);line-height:var(--font-headline-large-line-height);letter-spacing:var(--font-headline-large-letter-spacing)}h2,.text-headline-md{font-size:var(--font-headline-medium-size);font-weight:var(--font-headline-medium-weight);line-height:var(--font-headline-medium-line-height);letter-spacing:var(--font-headline-medium-letter-spacing)}h3,.text-headline-sm{font-size:var(--font-headline-small-size);font-weight:var(--font-headline-small-weight);line-height:var(--font-headline-small-line-height);letter-spacing:var(--font-headline-small-letter-spacing)}h4,.text-title-lg{font-size:var(--font-title-large-size);font-weight:var(--font-title-large-weight);line-height:var(--font-title-large-line-height);letter-spacing:var(--font-title-large-letter-spacing)}h5,.text-title-md{font-size:var(--font-title-medium-size);font-weight:var(--font-title-medium-weight);line-height:var(--font-title-medium-line-height);letter-spacing:var(--font-title-medium-letter-spacing)}h6,.text-title-sm{font-size:var(--font-title-small-size);font-weight:var(--font-title-small-weight);line-height:var(--font-title-small-line-height);letter-spacing:var(--font-title-small-letter-spacing)}p,.text-body-lg{font-size:var(--font-body-large-size);font-weight:var(--font-body-large-weight);line-height:var(--font-body-large-line-height);letter-spacing:var(--font-body-large-letter-spacing)}.text-body-md{font-size:var(--font-body-medium-size);font-weight:var(--font-body-medium-weight);line-height:var(--font-body-medium-line-height);letter-spacing:var(--font-body-medium-letter-spacing)}small,.text-body-sm{font-size:var(--font-body-small-size);font-weight:var(--font-body-small-weight);line-height:var(--font-body-small-line-height);letter-spacing:var(--font-body-small-letter-spacing)}.text-label-lg{font-size:var(--font-label-large-size);font-weight:var(--font-label-large-weight);line-height:var(--font-label-large-line-height);letter-spacing:var(--font-label-large-letter-spacing)}.text-label-md{font-size:var(--font-label-medium-size);font-weight:var(--font-label-medium-weight);line-height:var(--font-label-medium-line-height);letter-spacing:var(--font-label-medium-letter-spacing)}.text-label-sm{font-size:var(--font-label-small-size);font-weight:var(--font-label-small-weight);line-height:var(--font-label-small-line-height);letter-spacing:var(--font-label-small-letter-spacing)}body{margin:0}ul,ol{margin:0;padding:0;list-style:none}h1,h2,h3,h4,h5,h6,p,blockquote{margin:0}button{padding:0;text-align:inherit;border:none;background-color:transparent;cursor:pointer}input,textarea{padding:0;border:0}table{border-spacing:0}hr{margin:0;border:none}a{text-decoration:none}:root{box-sizing:border-box;-webkit-text-size-adjust:100%;text-size-adjust:100%;color-scheme:light;font-family:var(--font-family-base),sans-serif;color:var(--color-on-surface);background-color:var(--color-surface)}:root.tls-dark{color-scheme:dark}*,*:before,*:after{box-sizing:inherit}button{font-family:inherit;color:inherit}img,svg{width:100%;height:100%}:host{display:block}:host.tls-table-container--scrollable{overflow-y:auto;overscroll-behavior:contain}:host[class*=tls-table-container--collapse-]{container:tls-table/inline-size}@container tls-table (max-width: 640px){:host.tls-table-container--collapse-sm .tls-table__header-row{display:none}:host.tls-table-container--collapse-sm .tls-table__row{display:block;padding-block:var(--spacing-2)}:host.tls-table-container--collapse-sm .tls-table__cell{display:block;width:auto;border-bottom:none}:host.tls-table-container--collapse-sm .tls-table__cell--fold{display:flex;gap:var(--spacing-2)}:host.tls-table-container--collapse-sm .tls-table__cell--fold:before{content:attr(data-label);color:var(--color-on-surface-variant)}:host.tls-table-container--collapse-sm .tls-table__cell--fold:not([data-label]):before{content:none}:host.tls-table-container--collapse-sm .tls-table__cell--hide{display:none}}@container tls-table (max-width: 768px){:host.tls-table-container--collapse-md .tls-table__header-row{display:none}:host.tls-table-container--collapse-md .tls-table__row{display:block;padding-block:var(--spacing-2)}:host.tls-table-container--collapse-md .tls-table__cell{display:block;width:auto;border-bottom:none}:host.tls-table-container--collapse-md .tls-table__cell--fold{display:flex;gap:var(--spacing-2)}:host.tls-table-container--collapse-md .tls-table__cell--fold:before{content:attr(data-label);color:var(--color-on-surface-variant)}:host.tls-table-container--collapse-md .tls-table__cell--fold:not([data-label]):before{content:none}:host.tls-table-container--collapse-md .tls-table__cell--hide{display:none}}@container tls-table (max-width: 1024px){:host.tls-table-container--collapse-lg .tls-table__header-row{display:none}:host.tls-table-container--collapse-lg .tls-table__row{display:block;padding-block:var(--spacing-2)}:host.tls-table-container--collapse-lg .tls-table__cell{display:block;width:auto;border-bottom:none}:host.tls-table-container--collapse-lg .tls-table__cell--fold{display:flex;gap:var(--spacing-2)}:host.tls-table-container--collapse-lg .tls-table__cell--fold:before{content:attr(data-label);color:var(--color-on-surface-variant)}:host.tls-table-container--collapse-lg .tls-table__cell--fold:not([data-label]):before{content:none}:host.tls-table-container--collapse-lg .tls-table__cell--hide{display:none}}@container tls-table (max-width: 1280px){:host.tls-table-container--collapse-xl .tls-table__header-row{display:none}:host.tls-table-container--collapse-xl .tls-table__row{display:block;padding-block:var(--spacing-2)}:host.tls-table-container--collapse-xl .tls-table__cell{display:block;width:auto;border-bottom:none}:host.tls-table-container--collapse-xl .tls-table__cell--fold{display:flex;gap:var(--spacing-2)}:host.tls-table-container--collapse-xl .tls-table__cell--fold:before{content:attr(data-label);color:var(--color-on-surface-variant)}:host.tls-table-container--collapse-xl .tls-table__cell--fold:not([data-label]):before{content:none}:host.tls-table-container--collapse-xl .tls-table__cell--hide{display:none}}@container tls-table (max-width: 1536px){:host.tls-table-container--collapse-2xl .tls-table__header-row{display:none}:host.tls-table-container--collapse-2xl .tls-table__row{display:block;padding-block:var(--spacing-2)}:host.tls-table-container--collapse-2xl .tls-table__cell{display:block;width:auto;border-bottom:none}:host.tls-table-container--collapse-2xl .tls-table__cell--fold{display:flex;gap:var(--spacing-2)}:host.tls-table-container--collapse-2xl .tls-table__cell--fold:before{content:attr(data-label);color:var(--color-on-surface-variant)}:host.tls-table-container--collapse-2xl .tls-table__cell--fold:not([data-label]):before{content:none}:host.tls-table-container--collapse-2xl .tls-table__cell--hide{display:none}}\n"], dependencies: [{ kind: "component", type: CdkTable, selector: "cdk-table, table[cdk-table]", inputs: ["trackBy", "dataSource", "multiTemplateDataRows", "fixedLayout", "recycleRows"], outputs: ["contentChanged"], exportAs: ["cdkTable"] }, { kind: "directive", type: CdkHeaderCell, selector: "cdk-header-cell, th[cdk-header-cell]" }, { kind: "directive", type: CdkCell, selector: "cdk-cell, td[cdk-cell]" }, { kind: "directive", type: CdkCellDef, selector: "[cdkCellDef]" }, { kind: "directive", type: CdkHeaderCellDef, selector: "[cdkHeaderCellDef]" }, { kind: "directive", type: CdkColumnDef, selector: "[cdkColumnDef]", inputs: ["cdkColumnDef", "sticky", "stickyEnd"] }, { kind: "component", type: CdkHeaderRow, selector: "cdk-header-row, tr[cdk-header-row]" }, { kind: "directive", type: CdkHeaderRowDef, selector: "[cdkHeaderRowDef]", inputs: ["cdkHeaderRowDef", "cdkHeaderRowDefSticky"] }, { kind: "component", type: CdkRow, selector: "cdk-row, tr[cdk-row]" }, { kind: "directive", type: CdkRowDef, selector: "[cdkRowDef]", inputs: ["cdkRowDefColumns", "cdkRowDefWhen"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
9123
9165
  }
9124
9166
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Table, decorators: [{
9125
9167
  type: Component,
@@ -9137,10 +9179,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
9137
9179
  NgTemplateOutlet,
9138
9180
  ], host: {
9139
9181
  class: 'tls-table-container',
9140
- '[class.tls-table-container--scrollable]': 'scrollable()',
9182
+ '[class]': 'hostClasses()',
9141
9183
  '[style.max-height.px]': 'maxHeight() ?? null',
9142
- }, template: "<table\n cdk-table\n [class]=\"classes()\"\n [dataSource]=\"dataSource\"\n [trackBy]=\"resolvedTrackBy()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n>\n @for (column of effectiveColumnDefinitions(); track column.key) {\n <ng-container [cdkColumnDef]=\"column.key\">\n <!-- Header cell -->\n <th cdk-header-cell *cdkHeaderCellDef class=\"tls-table__header-cell\" [style.width]=\"column.width + 'px'\">\n {{ column.header }}\n </th>\n\n <!-- Row cell -->\n <td\n cdk-cell\n *cdkCellDef=\"let data; let index = index; let count = count; let first = first; let last = last; let even = even; let odd = odd\"\n class=\"tls-table__cell\"\n [style.text-align]=\"column.alignment\"\n >\n @if (column.template) {\n <ng-container\n [ngTemplateOutlet]=\"column.template\"\n [ngTemplateOutletContext]=\"{\n $implicit: data[column.key],\n data: data,\n index: index,\n count: count,\n first: first,\n last: last,\n even: even,\n odd: odd\n }\"\n />\n } @else {\n {{ data[column.key] }}\n }\n </td>\n </ng-container>\n }\n\n <tr cdk-header-row *cdkHeaderRowDef=\"columns(); sticky: scrollable()\" class=\"tls-table__header-row\"></tr>\n\n <tr *cdkRowDef=\"let row; columns: columns()\" cdk-row class=\"tls-table__row\"></tr>\n</table>\n", styles: [":host{display:block}:host.tls-table-container--scrollable{overflow-y:auto;overscroll-behavior:contain}\n"] }]
9143
- }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], columnDefinitions: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnDefinitions", required: false }] }], hideHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideHeader", required: false }] }], striped: [{ type: i0.Input, args: [{ isSignal: true, alias: "striped", required: false }] }], trackBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "trackBy", required: false }] }], maxHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxHeight", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], tableColumns: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => TableColumn), { isSignal: true }] }] } });
9184
+ }, template: "<table\n cdk-table\n role=\"table\"\n [class]=\"classes()\"\n [dataSource]=\"dataSource\"\n [trackBy]=\"resolvedTrackBy()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n>\n @for (column of effectiveColumnDefinitions(); track column.key) {\n <ng-container [cdkColumnDef]=\"column.key\">\n <!-- Header cell -->\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n role=\"columnheader\"\n class=\"tls-table__header-cell\"\n [style.width]=\"column.width + 'px'\"\n >\n {{ column.header }}\n </th>\n\n <!-- Row cell -->\n <td\n cdk-cell\n *cdkCellDef=\"let data; let index = index; let count = count; let first = first; let last = last; let even = even; let odd = odd\"\n role=\"cell\"\n class=\"tls-table__cell\"\n [class.tls-table__cell--fold]=\"column.collapse === 'fold'\"\n [class.tls-table__cell--hide]=\"column.collapse === 'hide'\"\n [style.text-align]=\"column.alignment\"\n [attr.data-label]=\"column.header ?? null\"\n >\n @if (column.template) {\n <ng-container\n [ngTemplateOutlet]=\"column.template\"\n [ngTemplateOutletContext]=\"{\n $implicit: cellValue(data, column.key),\n data: data,\n index: index,\n count: count,\n first: first,\n last: last,\n even: even,\n odd: odd\n }\"\n />\n } @else {\n {{ cellValue(data, column.key) }}\n }\n </td>\n </ng-container>\n }\n\n <tr\n cdk-header-row\n *cdkHeaderRowDef=\"columns(); sticky: scrollable()\"\n role=\"row\"\n class=\"tls-table__header-row\"\n ></tr>\n\n <tr *cdkRowDef=\"let row; columns: columns()\" cdk-row role=\"row\" class=\"tls-table__row\"></tr>\n</table>\n", styles: [".tls-container{container:tls-container/inline-size;height:100%;width:100%}.tls-container__content{height:100%;max-width:1536px;margin:0 auto}@container tls-container (max-width: 1536px){.tls-container__content{max-width:1280px}}@container tls-container (max-width: 1280px){.tls-container__content{max-width:1024px}}@container tls-container (max-width: 1024px){.tls-container__content{max-width:768px}}@container tls-container (max-width: 768px){.tls-container__content{max-width:640px}}@container tls-container (max-width: 640px){.tls-container__content{padding:0 16px}}.tls-container-media{height:100%;width:100%;max-width:1536px;margin:0 auto}@media(max-width:1536px){.tls-container-media{max-width:1280px}}@media(max-width:1280px){.tls-container-media{max-width:1024px}}@media(max-width:1024px){.tls-container-media{max-width:768px}}@media(max-width:768px){.tls-container-media{max-width:640px}}@media(max-width:640px){.tls-container-media{padding:0 16px;width:auto}}.--cursor-help{cursor:help}.--cursor-pointer{cursor:pointer}.--hidden{display:none}.--f-style-normal{font-style:normal}.--f-style-italic{font-style:italic}.--f-weight-thin{font-weight:100}.--f-weight-extralight{font-weight:200}.--f-weight-light{font-weight:var(--font-weight-light)}.--f-weight-normal{font-weight:var(--font-weight-regular)}.--f-weight-medium{font-weight:var(--font-weight-medium)}.--f-weight-semibold{font-weight:var(--font-weight-semibold)}.--f-weight-bold{font-weight:var(--font-weight-bold)}.--f-weight-extrabold{font-weight:800}.--f-weight-black{font-weight:900}.--row{display:flex;flex-direction:row}.--row-reverse{display:flex;flex-direction:row-reverse}.--column{display:flex;flex-direction:column}.--column-reverse{display:flex;flex-direction:column-reverse}.--flex-wrap{flex-wrap:wrap}.--flex-nowrap{flex-wrap:nowrap}.--justify-start{justify-content:flex-start}.--justify-end{justify-content:flex-end}.--justify-center{justify-content:center}.--justify-between{justify-content:space-between}.--justify-around{justify-content:space-around}.--justify-evenly{justify-content:space-evenly}.--items-start{align-items:flex-start}.--items-end{align-items:flex-end}.--items-center{align-items:center}.--items-baseline{align-items:baseline}.--items-stretch{align-items:stretch}.--gap-1{gap:var(--spacing-1)}.--gap-2{gap:var(--spacing-2)}.--gap-3{gap:var(--spacing-3)}.--gap-4{gap:var(--spacing-4)}.--gap-5{gap:var(--spacing-5)}.--gap-6{gap:var(--spacing-6)}.--gap-7{gap:var(--spacing-7)}.--gap-8{gap:var(--spacing-8)}.--gap-9{gap:var(--spacing-9)}.--gap-10{gap:var(--spacing-10)}.--gap-11{gap:var(--spacing-11)}.--gap-12{gap:var(--spacing-12)}.--gap-13{gap:var(--spacing-13)}.--gap-14{gap:var(--spacing-14)}.--gap-15{gap:var(--spacing-15)}.--gap-16{gap:var(--spacing-16)}.--gap-17{gap:var(--spacing-17)}.--gap-18{gap:var(--spacing-18)}.--gap-19{gap:var(--spacing-19)}.--gap-20{gap:var(--spacing-20)}.--text-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-display-lg{font-size:var(--font-display-large-size);font-weight:var(--font-display-large-weight);line-height:var(--font-display-large-line-height);letter-spacing:var(--font-display-large-letter-spacing)}.text-display-md{font-size:var(--font-display-medium-size);font-weight:var(--font-display-medium-weight);line-height:var(--font-display-medium-line-height);letter-spacing:var(--font-display-medium-letter-spacing)}.text-display-sm{font-size:var(--font-display-small-size);font-weight:var(--font-display-small-weight);line-height:var(--font-display-small-line-height);letter-spacing:var(--font-display-small-letter-spacing)}h1,.text-headline-lg{font-size:var(--font-headline-large-size);font-weight:var(--font-headline-large-weight);line-height:var(--font-headline-large-line-height);letter-spacing:var(--font-headline-large-letter-spacing)}h2,.text-headline-md{font-size:var(--font-headline-medium-size);font-weight:var(--font-headline-medium-weight);line-height:var(--font-headline-medium-line-height);letter-spacing:var(--font-headline-medium-letter-spacing)}h3,.text-headline-sm{font-size:var(--font-headline-small-size);font-weight:var(--font-headline-small-weight);line-height:var(--font-headline-small-line-height);letter-spacing:var(--font-headline-small-letter-spacing)}h4,.text-title-lg{font-size:var(--font-title-large-size);font-weight:var(--font-title-large-weight);line-height:var(--font-title-large-line-height);letter-spacing:var(--font-title-large-letter-spacing)}h5,.text-title-md{font-size:var(--font-title-medium-size);font-weight:var(--font-title-medium-weight);line-height:var(--font-title-medium-line-height);letter-spacing:var(--font-title-medium-letter-spacing)}h6,.text-title-sm{font-size:var(--font-title-small-size);font-weight:var(--font-title-small-weight);line-height:var(--font-title-small-line-height);letter-spacing:var(--font-title-small-letter-spacing)}p,.text-body-lg{font-size:var(--font-body-large-size);font-weight:var(--font-body-large-weight);line-height:var(--font-body-large-line-height);letter-spacing:var(--font-body-large-letter-spacing)}.text-body-md{font-size:var(--font-body-medium-size);font-weight:var(--font-body-medium-weight);line-height:var(--font-body-medium-line-height);letter-spacing:var(--font-body-medium-letter-spacing)}small,.text-body-sm{font-size:var(--font-body-small-size);font-weight:var(--font-body-small-weight);line-height:var(--font-body-small-line-height);letter-spacing:var(--font-body-small-letter-spacing)}.text-label-lg{font-size:var(--font-label-large-size);font-weight:var(--font-label-large-weight);line-height:var(--font-label-large-line-height);letter-spacing:var(--font-label-large-letter-spacing)}.text-label-md{font-size:var(--font-label-medium-size);font-weight:var(--font-label-medium-weight);line-height:var(--font-label-medium-line-height);letter-spacing:var(--font-label-medium-letter-spacing)}.text-label-sm{font-size:var(--font-label-small-size);font-weight:var(--font-label-small-weight);line-height:var(--font-label-small-line-height);letter-spacing:var(--font-label-small-letter-spacing)}body{margin:0}ul,ol{margin:0;padding:0;list-style:none}h1,h2,h3,h4,h5,h6,p,blockquote{margin:0}button{padding:0;text-align:inherit;border:none;background-color:transparent;cursor:pointer}input,textarea{padding:0;border:0}table{border-spacing:0}hr{margin:0;border:none}a{text-decoration:none}:root{box-sizing:border-box;-webkit-text-size-adjust:100%;text-size-adjust:100%;color-scheme:light;font-family:var(--font-family-base),sans-serif;color:var(--color-on-surface);background-color:var(--color-surface)}:root.tls-dark{color-scheme:dark}*,*:before,*:after{box-sizing:inherit}button{font-family:inherit;color:inherit}img,svg{width:100%;height:100%}:host{display:block}:host.tls-table-container--scrollable{overflow-y:auto;overscroll-behavior:contain}:host[class*=tls-table-container--collapse-]{container:tls-table/inline-size}@container tls-table (max-width: 640px){:host.tls-table-container--collapse-sm .tls-table__header-row{display:none}:host.tls-table-container--collapse-sm .tls-table__row{display:block;padding-block:var(--spacing-2)}:host.tls-table-container--collapse-sm .tls-table__cell{display:block;width:auto;border-bottom:none}:host.tls-table-container--collapse-sm .tls-table__cell--fold{display:flex;gap:var(--spacing-2)}:host.tls-table-container--collapse-sm .tls-table__cell--fold:before{content:attr(data-label);color:var(--color-on-surface-variant)}:host.tls-table-container--collapse-sm .tls-table__cell--fold:not([data-label]):before{content:none}:host.tls-table-container--collapse-sm .tls-table__cell--hide{display:none}}@container tls-table (max-width: 768px){:host.tls-table-container--collapse-md .tls-table__header-row{display:none}:host.tls-table-container--collapse-md .tls-table__row{display:block;padding-block:var(--spacing-2)}:host.tls-table-container--collapse-md .tls-table__cell{display:block;width:auto;border-bottom:none}:host.tls-table-container--collapse-md .tls-table__cell--fold{display:flex;gap:var(--spacing-2)}:host.tls-table-container--collapse-md .tls-table__cell--fold:before{content:attr(data-label);color:var(--color-on-surface-variant)}:host.tls-table-container--collapse-md .tls-table__cell--fold:not([data-label]):before{content:none}:host.tls-table-container--collapse-md .tls-table__cell--hide{display:none}}@container tls-table (max-width: 1024px){:host.tls-table-container--collapse-lg .tls-table__header-row{display:none}:host.tls-table-container--collapse-lg .tls-table__row{display:block;padding-block:var(--spacing-2)}:host.tls-table-container--collapse-lg .tls-table__cell{display:block;width:auto;border-bottom:none}:host.tls-table-container--collapse-lg .tls-table__cell--fold{display:flex;gap:var(--spacing-2)}:host.tls-table-container--collapse-lg .tls-table__cell--fold:before{content:attr(data-label);color:var(--color-on-surface-variant)}:host.tls-table-container--collapse-lg .tls-table__cell--fold:not([data-label]):before{content:none}:host.tls-table-container--collapse-lg .tls-table__cell--hide{display:none}}@container tls-table (max-width: 1280px){:host.tls-table-container--collapse-xl .tls-table__header-row{display:none}:host.tls-table-container--collapse-xl .tls-table__row{display:block;padding-block:var(--spacing-2)}:host.tls-table-container--collapse-xl .tls-table__cell{display:block;width:auto;border-bottom:none}:host.tls-table-container--collapse-xl .tls-table__cell--fold{display:flex;gap:var(--spacing-2)}:host.tls-table-container--collapse-xl .tls-table__cell--fold:before{content:attr(data-label);color:var(--color-on-surface-variant)}:host.tls-table-container--collapse-xl .tls-table__cell--fold:not([data-label]):before{content:none}:host.tls-table-container--collapse-xl .tls-table__cell--hide{display:none}}@container tls-table (max-width: 1536px){:host.tls-table-container--collapse-2xl .tls-table__header-row{display:none}:host.tls-table-container--collapse-2xl .tls-table__row{display:block;padding-block:var(--spacing-2)}:host.tls-table-container--collapse-2xl .tls-table__cell{display:block;width:auto;border-bottom:none}:host.tls-table-container--collapse-2xl .tls-table__cell--fold{display:flex;gap:var(--spacing-2)}:host.tls-table-container--collapse-2xl .tls-table__cell--fold:before{content:attr(data-label);color:var(--color-on-surface-variant)}:host.tls-table-container--collapse-2xl .tls-table__cell--fold:not([data-label]):before{content:none}:host.tls-table-container--collapse-2xl .tls-table__cell--hide{display:none}}\n"] }]
9185
+ }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], columnDefinitions: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnDefinitions", required: false }] }], hideHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideHeader", required: false }] }], striped: [{ type: i0.Input, args: [{ isSignal: true, alias: "striped", required: false }] }], trackBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "trackBy", required: false }] }], maxHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxHeight", required: false }] }], collapseAt: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapseAt", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], tableColumns: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => TableColumn), { isSignal: true }] }] } });
9144
9186
 
9145
9187
  // A declarative content holder: the host element itself is never rendered. `tls-tabs`
9146
9188
  // reads the captured content/header templates and renders them inside its own