@danske/sapphire-angular 2.5.0 → 2.6.0
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/esm2020/lib/table/src/table-row.directive.mjs +14 -10
- package/esm2020/lib/table/src/table.component.mjs +6 -4
- package/esm2020/lib/table/src/table.directive.mjs +3 -2
- package/esm2020/lib/theme/src/themes.mjs +2 -2
- package/fesm2015/danske-sapphire-angular.mjs +33 -27
- package/fesm2015/danske-sapphire-angular.mjs.map +1 -1
- package/fesm2020/danske-sapphire-angular.mjs +33 -27
- package/fesm2020/danske-sapphire-angular.mjs.map +1 -1
- package/lib/table/src/table-row.directive.d.ts +4 -2
- package/lib/table/src/table.component.d.ts +6 -1
- package/package.json +3 -3
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ContentChildren, Directive, forwardRef, HostListener, Inject, Input, QueryList, } from '@angular/core';
|
|
2
|
+
import { ContentChildren, Directive, forwardRef, HostListener, Inject, Input, Optional, QueryList, } from '@angular/core';
|
|
3
3
|
import { TableComponent } from './table.component';
|
|
4
4
|
import { TableCellDirective } from './table-cell.directive';
|
|
5
5
|
import { UseComponentStyles } from '../../common/sapphire-view-encapsulation';
|
|
6
6
|
import { CoerceBoolean } from '../../common/coerce-boolean.decorator';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "
|
|
9
|
-
import * as i2 from "
|
|
8
|
+
import * as i1 from "./table-footer.directive";
|
|
9
|
+
import * as i2 from "../../common/sapphire-view-encapsulation";
|
|
10
|
+
import * as i3 from "./table.component";
|
|
10
11
|
export class TableRowDirective {
|
|
11
12
|
onRowClick() {
|
|
12
|
-
if (!this.disabled) {
|
|
13
|
+
if (!this.disabled && !this._footer) {
|
|
13
14
|
this.table.rowAction.emit({
|
|
14
15
|
index: this.table.rows?.toArray().findIndex((row) => row === this) ?? -1,
|
|
15
16
|
rowData: this.rowData,
|
|
@@ -20,8 +21,9 @@ export class TableRowDirective {
|
|
|
20
21
|
const index = this.cells.toArray().indexOf(cell);
|
|
21
22
|
return this.table.headCells?.toArray()[index];
|
|
22
23
|
}
|
|
23
|
-
constructor(table) {
|
|
24
|
+
constructor(table, _footer) {
|
|
24
25
|
this.table = table;
|
|
26
|
+
this._footer = _footer;
|
|
25
27
|
this.cells = new QueryList();
|
|
26
28
|
this.rowData = null;
|
|
27
29
|
this.disabled = false;
|
|
@@ -38,8 +40,8 @@ export class TableRowDirective {
|
|
|
38
40
|
this.highlighted = false;
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
|
-
TableRowDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: TableRowDirective, deps: [{ token: forwardRef(() => TableComponent) }], target: i0.ɵɵFactoryTarget.Directive });
|
|
42
|
-
TableRowDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.0", type: TableRowDirective, selector: "tr[sp-table-tr]", inputs: { rowData: "rowData", disabled: "disabled", selected: "selected", highlighted: "highlighted" }, host: { listeners: { "click": "onRowClick()" }, properties: { "class.sapphire-table__row--selected": "selected", "class.sapphire-table__row--highlighted": "highlighted", "attr.aria-selected": "selected || null", "class.js-hover": "disabled" }, classAttribute: "sapphire-table__row" }, queries: [{ propertyName: "cells", predicate: TableCellDirective }], hostDirectives: [{ directive:
|
|
43
|
+
TableRowDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: TableRowDirective, deps: [{ token: forwardRef(() => TableComponent) }, { token: i1.TableFooterDirective, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
44
|
+
TableRowDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.0", type: TableRowDirective, selector: "tr[sp-table-tr]", inputs: { rowData: "rowData", disabled: "disabled", selected: "selected", highlighted: "highlighted" }, host: { listeners: { "click": "onRowClick()" }, properties: { "class.sapphire-table__row--selected": "selected", "class.sapphire-table__row--highlighted": "highlighted", "attr.aria-selected": "selected || null", "class.js-hover": "disabled||_footer" }, classAttribute: "sapphire-table__row" }, queries: [{ propertyName: "cells", predicate: TableCellDirective }], hostDirectives: [{ directive: i2.UseComponentStyles }], ngImport: i0 });
|
|
43
45
|
__decorate([
|
|
44
46
|
CoerceBoolean
|
|
45
47
|
], TableRowDirective.prototype, "disabled", void 0);
|
|
@@ -63,13 +65,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImpor
|
|
|
63
65
|
'[class.sapphire-table__row--selected]': 'selected',
|
|
64
66
|
'[class.sapphire-table__row--highlighted]': 'highlighted',
|
|
65
67
|
'[attr.aria-selected]': 'selected || null',
|
|
66
|
-
'[class.js-hover]': 'disabled',
|
|
68
|
+
'[class.js-hover]': 'disabled||_footer',
|
|
67
69
|
},
|
|
68
70
|
hostDirectives: [UseComponentStyles],
|
|
69
71
|
}]
|
|
70
|
-
}], ctorParameters: function () { return [{ type:
|
|
72
|
+
}], ctorParameters: function () { return [{ type: i3.TableComponent, decorators: [{
|
|
71
73
|
type: Inject,
|
|
72
74
|
args: [forwardRef(() => TableComponent)]
|
|
75
|
+
}] }, { type: i1.TableFooterDirective, decorators: [{
|
|
76
|
+
type: Optional
|
|
73
77
|
}] }]; }, propDecorators: { cells: [{
|
|
74
78
|
type: ContentChildren,
|
|
75
79
|
args: [TableCellDirective]
|
|
@@ -85,4 +89,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImpor
|
|
|
85
89
|
type: HostListener,
|
|
86
90
|
args: ['click']
|
|
87
91
|
}] } });
|
|
88
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
92
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtcm93LmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJz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AgICByb3dEYXRhOiB0aGlzLnJvd0RhdGEsXG4gICAgICB9KTtcbiAgICB9XG4gIH1cblxuICBwdWJsaWMgZ2V0Q29sdW1uSGVhZENlbGwoY2VsbDogVGFibGVDZWxsRGlyZWN0aXZlKSB7XG4gICAgY29uc3QgaW5kZXggPSB0aGlzLmNlbGxzLnRvQXJyYXkoKS5pbmRleE9mKGNlbGwpO1xuICAgIHJldHVybiB0aGlzLnRhYmxlLmhlYWRDZWxscz8udG9BcnJheSgpW2luZGV4XTtcbiAgfVxuXG4gIGNvbnN0cnVjdG9yKFxuICAgIEBJbmplY3QoZm9yd2FyZFJlZigoKSA9PiBUYWJsZUNvbXBvbmVudCkpXG4gICAgcHVibGljIHRhYmxlOiBUYWJsZUNvbXBvbmVudCxcbiAgICBAT3B0aW9uYWwoKVxuICAgIHB1YmxpYyBfZm9vdGVyOiBUYWJsZUZvb3RlckRpcmVjdGl2ZVxuICApIHt9XG59XG4iXX0=
|
|
@@ -32,11 +32,11 @@ export class TableComponent {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
TableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
35
|
-
TableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: TableComponent, selector: "sp-table", inputs: { stickyHeader: "stickyHeader", cellOverflow: "cellOverflow", height: "height", maxHeight: "maxHeight", cellSpacing: "cellSpacing" }, outputs: { rowAction: "rowAction" }, host: { properties: { "style.height": "height", "style.max-height": "maxHeight", "class.sapphire-table--overflow": "height || maxHeight", "class.sapphire-table--interactive": "isInteractive" }, classAttribute: "sapphire-table" }, queries: [{ propertyName: "table", first: true, predicate: TableDirective, descendants: true }, { propertyName: "rows", predicate: TableRowDirective, descendants: true }, { propertyName: "headCells", predicate: TableHeadCellComponent, descendants: true }], hostDirectives: [{ directive: i1.UseComponentStylesOnHost }], ngImport: i0, template: `
|
|
35
|
+
TableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: TableComponent, selector: "sp-table", inputs: { stickyHeader: "stickyHeader", cellOverflow: "cellOverflow", height: "height", maxHeight: "maxHeight", cellSpacing: "cellSpacing", layout: "layout" }, outputs: { rowAction: "rowAction" }, host: { properties: { "style.height": "height", "style.max-height": "maxHeight", "class.sapphire-table--overflow": "height || maxHeight", "class.sapphire-table--interactive": "isInteractive" }, classAttribute: "sapphire-table" }, queries: [{ propertyName: "table", first: true, predicate: TableDirective, descendants: true }, { propertyName: "rows", predicate: TableRowDirective, descendants: true }, { propertyName: "headCells", predicate: TableHeadCellComponent, descendants: true }], hostDirectives: [{ directive: i1.UseComponentStylesOnHost }], ngImport: i0, template: `
|
|
36
36
|
<ng-container>
|
|
37
37
|
<ng-content select="table"></ng-content>
|
|
38
38
|
</ng-container>
|
|
39
|
-
`, isInline: true, styles: [".sapphire-table{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;flex-direction:column;justify-content:space-between;background-color:var(--sapphire-semantic-color-background-surface)}.sapphire-table--overflow{overflow:auto}.sapphire-table__table{border-collapse:collapse;border-spacing:0;width:100%}.sapphire-table-sortedIcon,.sapphire-table-sortableIcon{display:inline-flex;visibility:hidden;vertical-align:top}.sapphire-table__head{top:0;z-index:2;line-height:var(--sapphire-semantic-size-line-height-md);background-color:var(--sapphire-semantic-color-background-surface)}.sapphire-table__head--sticky{position:sticky}.sapphire-table__cell--alignLeft{text-align:left}.sapphire-table__cell--alignCenter{text-align:center}.sapphire-table__cell--alignRight{text-align:end}.sapphire-table__cell-wrapper .sapphire-table__cell--alignLeft{justify-content:flex-start}.sapphire-table__cell-wrapper .sapphire-table__cell--alignCenter{justify-content:center}.sapphire-table__cell-wrapper .sapphire-table__cell--alignRight{justify-content:flex-end}.sapphire-table__headCell{color:var(--sapphire-semantic-color-content-default-primary);box-sizing:border-box;font-size:var(--sapphire-semantic-size-font-text-md);font-family:var(--sapphire-semantic-font-name-default);font-weight:var(--sapphire-semantic-font-weight-default-semibold);line-height:var(--sapphire-semantic-size-line-height-md);vertical-align:top}.sapphire-table__headCell_container{padding:var(--sapphire-semantic-size-spacing-20);display:inline-flex;align-items:center;box-sizing:border-box;width:100%}.sapphire-table__cell--alignRight .sapphire-table__headCell_container{justify-content:flex-end}.sapphire-table__cell--alignLeft .sapphire-table__headCell_container{justify-content:flex-start}.sapphire-table__cell--alignCenter .sapphire-table__headCell_container{justify-content:center}.sapphire-table__row,.sapphire-table__cell,.sapphire-table__headCell,.sapphire-table__selectionCell{outline:none;position:relative;z-index:1}.sapphire-table__headCell.is-focus .sapphire-table__headCell_container,.sapphire-table__headCell:not(.js-focus):focus-visible .sapphire-table__headCell_container,.sapphire-table__cell.is-focus,.sapphire-table__cell:not(.js-focus):focus-visible,.sapphire-table__selectionCell.is-focus,.sapphire-table__selectionCell:not(.js-focus):focus-visible,.sapphire-table__row.is-focus,.sapphire-table__row:not(.js-focus):focus-visible{outline:none;border-radius:var(--sapphire-semantic-size-radius-sm);box-shadow:inset 0 0 0 var(--sapphire-semantic-size-focus-ring) var(--sapphire-semantic-color-focus-ring)}.sapphire-table__headCell.is-focus .sapphire-table__headCell_container,.sapphire-table__headCell:not(.js-focus):focus-visible .sapphire-table__headCell_container{border-radius:var(--sapphire-semantic-size-radius-sm)}.sapphire-table__headCell.sapphire-table__headCell--sortable.is-hover .sapphire-table__headCell_container,.sapphire-table__headCell.sapphire-table__headCell--sortable:not(.js-hover):hover .sapphire-table__headCell_container{background-color:var(--sapphire-semantic-color-background-action-secondary-default);border-radius:var(--sapphire-semantic-size-radius-sm)}.sapphire-table__headCell.sapphire-table__headCell--sortable{cursor:pointer}.sapphire-table__headCell--sortable:not(sapphire-table__headCell--sorted):hover .sapphire-table-sortableIcon{visibility:visible}.sapphire-table__headCell--sorted .sapphire-table-sortedIcon{visibility:visible;padding-left:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__headCell .sapphire-table-sortedIcon,.sapphire-table__headCell .sapphire-table-sortableIcon{padding-left:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__cell--alignRight .sapphire-table-sortedIcon,.sapphire-table__cell--alignRight .sapphire-table-sortableIcon{padding-right:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__headCell__text,.sapphire-table__headCell__icon{vertical-align:top;display:inline-block}.sapphire-table__body{position:relative;overflow:auto}.sapphire-table__cell{box-sizing:border-box;color:var(--sapphire-semantic-color-content-default-primary);font-family:var(--sapphire-semantic-font-name-default);font-weight:var(--sapphire-semantic-font-weight-default-regular)}.sapphire-table__cell-contents{display:block;width:100%}.sapphire-table__cell--ellipsed,.sapphire-table__headCell_content--ellipsed,.sapphire-table__cell--ellipsed .sapphire-table__cell-contents{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sapphire-table__table--spacing-sm .sapphire-table__cell,.sapphire-table__table--spacing-sm .sapphire-table__selectionCell:not(:first-child){padding-top:var(--sapphire-semantic-size-spacing-20);padding-bottom:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__table--spacing-lg .sapphire-table__cell,.sapphire-table__table--spacing-lg .sapphire-table__selectionCell:not(:first-child){padding-top:var(--sapphire-semantic-size-spacing-40);padding-bottom:var(--sapphire-semantic-size-spacing-40)}.sapphire-table__table--spacing-xl .sapphire-table__cell,.sapphire-table__table--spacing-xl .sapphire-table__selectionCell:not(:first-child){padding-top:var(--sapphire-global-size-generic-50);padding-bottom:var(--sapphire-global-size-generic-50)}.sapphire-table__cell,.sapphire-table__selectionCell{font-size:var(--sapphire-semantic-size-font-text-lg);line-height:var(--sapphire-semantic-size-line-height-md);padding:var(--sapphire-semantic-size-spacing-30) var(--sapphire-semantic-size-spacing-20)}.sapphire-table__selectionCell{line-height:0;width:var(--sapphire-global-size-generic-50)}.sapphire-table__cell-wrapper .sapphire-table__selectionCell{width:unset;min-width:var(--sapphire-global-size-generic-50)}.sapphire-table__cell:first-child,.sapphire-table__selectionCell:first-child,.sapphire-table__cell-wrapper:first-child>.sapphire-table__cell,.sapphire-table__cell-wrapper:first-child>.sapphire-table__selectionCell{padding-left:var(--sapphire-semantic-size-spacing-50)}.sapphire-table__cell:last-child,.sapphire-table__cell-wrapper:last-child>.sapphire-table__cell{padding-right:var(--sapphire-semantic-size-spacing-50)}.sapphire-table__headCell:first-child,.sapphire-table__cell-wrapper:first-child .sapphire-table__headCell{padding-left:var(--sapphire-semantic-size-spacing-40)}.sapphire-table__selectionCell:first-child,.sapphire-table__cell-wrapper:first-child>.sapphire-table__selectionCell{padding-right:var(--sapphire-semantic-size-spacing-30)}.sapphire-table__headCell:last-child,.sapphire-table__cell-wrapper:last-child>.sapphire-table__headCell{padding-right:var(--sapphire-semantic-size-spacing-40)}.sapphire-table__tfoot .sapphire-table__cell{font-weight:var(--sapphire-semantic-font-weight-default-bold)}.sapphire-table__cell-wrapper>.sapphire-table__cell,.sapphire-table__cell-wrapper>.sapphire-table__selectionCell{padding-left:var(--sapphire-semantic-size-spacing-20);padding-right:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__head .sapphire-table__selectionCell{padding-top:var(--sapphire-semantic-size-spacing-20);padding-bottom:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__cell-wrapper .sapphire-table__headCell{padding-left:0;padding-right:0}.sapphire-table__cell-wrapper .sapphire-table__cell,.sapphire-table__cell-wrapper .sapphire-table__headCell,.sapphire-table__cell-wrapper .sapphire-table__selectionCell{display:flex;align-items:center;height:100%;box-sizing:border-box}.sapphire-table__row{position:relative;border-bottom:var(--sapphire-semantic-size-border-sm) solid var(--sapphire-semantic-color-border-separator-default)}.sapphire-table__row--active{background-color:var(--sapphire-semantic-color-background-action-tertiary-ghost-default)!important}.sapphire-table__row--selected{background-color:var(--sapphire-semantic-color-background-action-secondary-default)}.sapphire-table__row.is-focus,.sapphire-table__row:not(.js-focus):focus-visible,.sapphire-table__row.sapphire-table__row--expanded{border-bottom-color:transparent}.sapphire-table__row-expanded-view{border-bottom:var(--sapphire-semantic-size-border-sm) solid var(--sapphire-semantic-color-border-separator-default)}.sapphire-table__row-expand-button{display:inline-flex;transition:transform ease-in-out var(--sapphire-semantic-time-motion-quick);margin-left:var(--sapphire-semantic-size-spacing-20)}.sapphire-table td:has(.sapphire-table__row-expand-button){width:0}.sapphire-table__row--expanded .sapphire-table__row-expand-button{transform:rotate(180deg)}.sapphire-table--without-last-divider .sapphire-table__row:not(.is-focus,:not(.js-focus):focus-visible):last-child{border-bottom-color:transparent}.sapphire-table--interactive .sapphire-table__row,.sapphire-table__row--interactive{cursor:default}.sapphire-table--interactive .sapphire-table__row.is-hover,.sapphire-table__row--interactive.is-hover,.sapphire-table--interactive .sapphire-table__row:not(.js-hover):hover,.sapphire-table__row--interactive:not(.js-hover):hover{background-color:var(--sapphire-semantic-color-background-action-secondary-default);cursor:pointer}.sapphire-table__row--highlighted{background-color:var(--sapphire-semantic-color-background-action-secondary-default)}.sapphire-table__row--highlighted>*:first-child{box-shadow:inset var(--sapphire-global-size-generic-5) 0 0 0 var(--sapphire-semantic-color-background-informative-primary-default)}.sapphire-table__tfoot{position:relative;z-index:2;background-color:var(--sapphire-semantic-color-background-action-secondary-default)}.sapphire-table__selection-action-bar{display:flex;align-items:center;justify-content:space-between;padding:var(--sapphire-semantic-size-spacing-30) var(--sapphire-semantic-size-spacing-50);background-color:var(--sapphire-semantic-color-background-action-secondary-default)}.sapphire-table__footer{position:relative;z-index:2;margin-top:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__footer--sticky{position:sticky;bottom:0;left:0}.sapphire-table__footer--virtualized{position:absolute;z-index:2;bottom:0;right:0;left:0}sp-table{display:block}\n"] });
|
|
39
|
+
`, isInline: true, styles: [".sapphire-table{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;flex-direction:column;justify-content:space-between;background-color:var(--sapphire-semantic-color-background-surface)}.sapphire-table--overflow{overflow:auto}.sapphire-table__table{border-collapse:collapse;border-spacing:0;width:100%;table-layout:auto}.sapphire-table__table--fixed-layout{table-layout:fixed}.sapphire-table-sortedIcon,.sapphire-table-sortableIcon{display:inline-flex;visibility:hidden;vertical-align:top}.sapphire-table__head{top:0;z-index:2;line-height:var(--sapphire-semantic-size-line-height-md);background-color:var(--sapphire-semantic-color-background-surface)}.sapphire-table__head--sticky{position:sticky}.sapphire-table__cell--alignLeft{text-align:left}.sapphire-table__cell--alignCenter{text-align:center}.sapphire-table__cell--alignRight{text-align:end}.sapphire-table__cell-wrapper .sapphire-table__cell--alignLeft{justify-content:flex-start}.sapphire-table__cell-wrapper .sapphire-table__cell--alignCenter{justify-content:center}.sapphire-table__cell-wrapper .sapphire-table__cell--alignRight{justify-content:flex-end}.sapphire-table__headCell{color:var(--sapphire-semantic-color-content-default-primary);box-sizing:border-box;font-size:var(--sapphire-semantic-size-font-text-md);font-family:var(--sapphire-semantic-font-name-default);font-weight:var(--sapphire-semantic-font-weight-default-semibold);line-height:var(--sapphire-semantic-size-line-height-md);vertical-align:top}.sapphire-table__headCell_container{padding:var(--sapphire-semantic-size-spacing-20);display:inline-flex;align-items:center;box-sizing:border-box;width:100%}.sapphire-table__cell--alignRight .sapphire-table__headCell_container{justify-content:flex-end}.sapphire-table__cell--alignLeft .sapphire-table__headCell_container{justify-content:flex-start}.sapphire-table__cell--alignCenter .sapphire-table__headCell_container{justify-content:center}.sapphire-table__row,.sapphire-table__cell,.sapphire-table__headCell,.sapphire-table__selectionCell{outline:none;position:relative;z-index:1}.sapphire-table__headCell.is-focus .sapphire-table__headCell_container,.sapphire-table__headCell:not(.js-focus):focus-visible .sapphire-table__headCell_container,.sapphire-table__cell.is-focus,.sapphire-table__cell:not(.js-focus):focus-visible,.sapphire-table__selectionCell.is-focus,.sapphire-table__selectionCell:not(.js-focus):focus-visible,.sapphire-table__row.is-focus,.sapphire-table__row:not(.js-focus):focus-visible{outline:none;border-radius:var(--sapphire-semantic-size-radius-sm);box-shadow:inset 0 0 0 var(--sapphire-semantic-size-focus-ring) var(--sapphire-semantic-color-focus-ring)}.sapphire-table__headCell.is-focus .sapphire-table__headCell_container,.sapphire-table__headCell:not(.js-focus):focus-visible .sapphire-table__headCell_container{border-radius:var(--sapphire-semantic-size-radius-sm)}.sapphire-table__headCell.sapphire-table__headCell--sortable.is-hover .sapphire-table__headCell_container,.sapphire-table__headCell.sapphire-table__headCell--sortable:not(.js-hover):hover .sapphire-table__headCell_container{background-color:var(--sapphire-semantic-color-background-action-secondary-default);border-radius:var(--sapphire-semantic-size-radius-sm)}.sapphire-table__headCell.sapphire-table__headCell--sortable{cursor:pointer}.sapphire-table__headCell--sortable:not(sapphire-table__headCell--sorted):hover .sapphire-table-sortableIcon{visibility:visible}.sapphire-table__headCell--sorted .sapphire-table-sortedIcon{visibility:visible;padding-left:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__headCell .sapphire-table-sortedIcon,.sapphire-table__headCell .sapphire-table-sortableIcon{padding-left:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__cell--alignRight .sapphire-table-sortedIcon,.sapphire-table__cell--alignRight .sapphire-table-sortableIcon{padding-right:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__headCell__text,.sapphire-table__headCell__icon{vertical-align:top;display:inline-block}.sapphire-table__body{position:relative;overflow:auto}.sapphire-table__cell{box-sizing:border-box;color:var(--sapphire-semantic-color-content-default-primary);font-family:var(--sapphire-semantic-font-name-default);font-weight:var(--sapphire-semantic-font-weight-default-regular);overflow-wrap:break-word}.sapphire-table__cell-contents{display:block;width:100%;overflow-wrap:break-word}.sapphire-table__cell--ellipsed,.sapphire-table__headCell_content--ellipsed,.sapphire-table__cell--ellipsed .sapphire-table__cell-contents{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sapphire-table__table--spacing-sm .sapphire-table__cell,.sapphire-table__table--spacing-sm .sapphire-table__selectionCell:not(:first-child){padding-top:var(--sapphire-semantic-size-spacing-20);padding-bottom:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__table--spacing-lg .sapphire-table__cell,.sapphire-table__table--spacing-lg .sapphire-table__selectionCell:not(:first-child){padding-top:var(--sapphire-semantic-size-spacing-40);padding-bottom:var(--sapphire-semantic-size-spacing-40)}.sapphire-table__table--spacing-xl .sapphire-table__cell,.sapphire-table__table--spacing-xl .sapphire-table__selectionCell:not(:first-child){padding-top:var(--sapphire-global-size-generic-50);padding-bottom:var(--sapphire-global-size-generic-50)}.sapphire-table__cell,.sapphire-table__selectionCell{font-size:var(--sapphire-semantic-size-font-text-lg);line-height:var(--sapphire-semantic-size-line-height-md);padding:var(--sapphire-semantic-size-spacing-30) var(--sapphire-semantic-size-spacing-20)}.sapphire-table__selectionCell{line-height:0;width:var(--sapphire-global-size-generic-50)}.sapphire-table__cell-wrapper .sapphire-table__selectionCell{width:unset;min-width:var(--sapphire-global-size-generic-50)}.sapphire-table__cell:first-child,.sapphire-table__selectionCell:first-child,.sapphire-table__cell-wrapper:first-child>.sapphire-table__cell,.sapphire-table__cell-wrapper:first-child>.sapphire-table__selectionCell{padding-left:var(--sapphire-semantic-size-spacing-50)}.sapphire-table__cell:last-child,.sapphire-table__cell-wrapper:last-child>.sapphire-table__cell{padding-right:var(--sapphire-semantic-size-spacing-50)}.sapphire-table__headCell:first-child,.sapphire-table__cell-wrapper:first-child .sapphire-table__headCell{padding-left:var(--sapphire-semantic-size-spacing-40)}.sapphire-table__selectionCell:first-child,.sapphire-table__cell-wrapper:first-child>.sapphire-table__selectionCell{padding-right:var(--sapphire-semantic-size-spacing-30)}.sapphire-table__headCell:last-child,.sapphire-table__cell-wrapper:last-child>.sapphire-table__headCell{padding-right:var(--sapphire-semantic-size-spacing-40)}.sapphire-table__tfoot .sapphire-table__cell{font-weight:var(--sapphire-semantic-font-weight-default-bold)}.sapphire-table__cell-wrapper>.sapphire-table__cell,.sapphire-table__cell-wrapper>.sapphire-table__selectionCell{padding-left:var(--sapphire-semantic-size-spacing-20);padding-right:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__head .sapphire-table__selectionCell{padding-top:var(--sapphire-semantic-size-spacing-20);padding-bottom:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__cell-wrapper .sapphire-table__headCell{padding-left:0;padding-right:0}.sapphire-table__cell-wrapper .sapphire-table__cell,.sapphire-table__cell-wrapper .sapphire-table__headCell,.sapphire-table__cell-wrapper .sapphire-table__selectionCell{display:flex;align-items:center;height:100%;box-sizing:border-box}.sapphire-table__row{position:relative;border-bottom:var(--sapphire-semantic-size-border-sm) solid var(--sapphire-semantic-color-border-separator-default)}.sapphire-table__row--active{background-color:var(--sapphire-semantic-color-background-action-tertiary-ghost-default)!important}.sapphire-table__row--selected{background-color:var(--sapphire-semantic-color-background-action-secondary-default)}.sapphire-table__row.is-focus,.sapphire-table__row:not(.js-focus):focus-visible,.sapphire-table__row.sapphire-table__row--expanded{border-bottom-color:transparent}.sapphire-table__row-expanded-view{border-bottom:var(--sapphire-semantic-size-border-sm) solid var(--sapphire-semantic-color-border-separator-default)}.sapphire-table__row-expand-button{display:inline-flex;transition:transform ease-in-out var(--sapphire-semantic-time-motion-quick);margin-left:var(--sapphire-semantic-size-spacing-20)}.sapphire-table td:has(.sapphire-table__row-expand-button){width:0}.sapphire-table__row--expanded .sapphire-table__row-expand-button{transform:rotate(180deg)}.sapphire-table--without-last-divider .sapphire-table__row:not(.is-focus,:not(.js-focus):focus-visible):last-child{border-bottom-color:transparent}.sapphire-table--interactive .sapphire-table__row,.sapphire-table__row--interactive{cursor:default}.sapphire-table--interactive .sapphire-table__row.is-hover,.sapphire-table__row--interactive.is-hover,.sapphire-table--interactive .sapphire-table__row:not(.js-hover):hover,.sapphire-table__row--interactive:not(.js-hover):hover{background-color:var(--sapphire-semantic-color-background-action-secondary-default);cursor:pointer}.sapphire-table__row--highlighted{background-color:var(--sapphire-semantic-color-background-action-secondary-default)}.sapphire-table__row--highlighted>*:first-child{box-shadow:inset var(--sapphire-global-size-generic-5) 0 0 0 var(--sapphire-semantic-color-background-informative-primary-default)}.sapphire-table__tfoot{position:relative;z-index:2;background-color:var(--sapphire-semantic-color-background-action-secondary-default)}.sapphire-table__selection-action-bar{display:flex;align-items:center;justify-content:space-between;padding:var(--sapphire-semantic-size-spacing-30) var(--sapphire-semantic-size-spacing-50);background-color:var(--sapphire-semantic-color-background-action-secondary-default);position:sticky;top:0;left:0;z-index:3}.sapphire-table__footer{position:relative;z-index:2;margin-top:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__footer--sticky{position:sticky;bottom:0;left:0}.sapphire-table__footer--virtualized{position:absolute;z-index:2;bottom:0;right:0;left:0}sp-table{display:block}\n"] });
|
|
40
40
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: TableComponent, decorators: [{
|
|
41
41
|
type: Component,
|
|
42
42
|
args: [{ selector: 'sp-table', template: `
|
|
@@ -49,7 +49,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImpor
|
|
|
49
49
|
'[style.max-height]': 'maxHeight',
|
|
50
50
|
'[class.sapphire-table--overflow]': 'height || maxHeight',
|
|
51
51
|
'[class.sapphire-table--interactive]': 'isInteractive',
|
|
52
|
-
}, hostDirectives: [UseComponentStylesOnHost], styles: [".sapphire-table{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;flex-direction:column;justify-content:space-between;background-color:var(--sapphire-semantic-color-background-surface)}.sapphire-table--overflow{overflow:auto}.sapphire-table__table{border-collapse:collapse;border-spacing:0;width:100%}.sapphire-table-sortedIcon,.sapphire-table-sortableIcon{display:inline-flex;visibility:hidden;vertical-align:top}.sapphire-table__head{top:0;z-index:2;line-height:var(--sapphire-semantic-size-line-height-md);background-color:var(--sapphire-semantic-color-background-surface)}.sapphire-table__head--sticky{position:sticky}.sapphire-table__cell--alignLeft{text-align:left}.sapphire-table__cell--alignCenter{text-align:center}.sapphire-table__cell--alignRight{text-align:end}.sapphire-table__cell-wrapper .sapphire-table__cell--alignLeft{justify-content:flex-start}.sapphire-table__cell-wrapper .sapphire-table__cell--alignCenter{justify-content:center}.sapphire-table__cell-wrapper .sapphire-table__cell--alignRight{justify-content:flex-end}.sapphire-table__headCell{color:var(--sapphire-semantic-color-content-default-primary);box-sizing:border-box;font-size:var(--sapphire-semantic-size-font-text-md);font-family:var(--sapphire-semantic-font-name-default);font-weight:var(--sapphire-semantic-font-weight-default-semibold);line-height:var(--sapphire-semantic-size-line-height-md);vertical-align:top}.sapphire-table__headCell_container{padding:var(--sapphire-semantic-size-spacing-20);display:inline-flex;align-items:center;box-sizing:border-box;width:100%}.sapphire-table__cell--alignRight .sapphire-table__headCell_container{justify-content:flex-end}.sapphire-table__cell--alignLeft .sapphire-table__headCell_container{justify-content:flex-start}.sapphire-table__cell--alignCenter .sapphire-table__headCell_container{justify-content:center}.sapphire-table__row,.sapphire-table__cell,.sapphire-table__headCell,.sapphire-table__selectionCell{outline:none;position:relative;z-index:1}.sapphire-table__headCell.is-focus .sapphire-table__headCell_container,.sapphire-table__headCell:not(.js-focus):focus-visible .sapphire-table__headCell_container,.sapphire-table__cell.is-focus,.sapphire-table__cell:not(.js-focus):focus-visible,.sapphire-table__selectionCell.is-focus,.sapphire-table__selectionCell:not(.js-focus):focus-visible,.sapphire-table__row.is-focus,.sapphire-table__row:not(.js-focus):focus-visible{outline:none;border-radius:var(--sapphire-semantic-size-radius-sm);box-shadow:inset 0 0 0 var(--sapphire-semantic-size-focus-ring) var(--sapphire-semantic-color-focus-ring)}.sapphire-table__headCell.is-focus .sapphire-table__headCell_container,.sapphire-table__headCell:not(.js-focus):focus-visible .sapphire-table__headCell_container{border-radius:var(--sapphire-semantic-size-radius-sm)}.sapphire-table__headCell.sapphire-table__headCell--sortable.is-hover .sapphire-table__headCell_container,.sapphire-table__headCell.sapphire-table__headCell--sortable:not(.js-hover):hover .sapphire-table__headCell_container{background-color:var(--sapphire-semantic-color-background-action-secondary-default);border-radius:var(--sapphire-semantic-size-radius-sm)}.sapphire-table__headCell.sapphire-table__headCell--sortable{cursor:pointer}.sapphire-table__headCell--sortable:not(sapphire-table__headCell--sorted):hover .sapphire-table-sortableIcon{visibility:visible}.sapphire-table__headCell--sorted .sapphire-table-sortedIcon{visibility:visible;padding-left:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__headCell .sapphire-table-sortedIcon,.sapphire-table__headCell .sapphire-table-sortableIcon{padding-left:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__cell--alignRight .sapphire-table-sortedIcon,.sapphire-table__cell--alignRight .sapphire-table-sortableIcon{padding-right:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__headCell__text,.sapphire-table__headCell__icon{vertical-align:top;display:inline-block}.sapphire-table__body{position:relative;overflow:auto}.sapphire-table__cell{box-sizing:border-box;color:var(--sapphire-semantic-color-content-default-primary);font-family:var(--sapphire-semantic-font-name-default);font-weight:var(--sapphire-semantic-font-weight-default-regular)}.sapphire-table__cell-contents{display:block;width:100%}.sapphire-table__cell--ellipsed,.sapphire-table__headCell_content--ellipsed,.sapphire-table__cell--ellipsed .sapphire-table__cell-contents{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sapphire-table__table--spacing-sm .sapphire-table__cell,.sapphire-table__table--spacing-sm .sapphire-table__selectionCell:not(:first-child){padding-top:var(--sapphire-semantic-size-spacing-20);padding-bottom:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__table--spacing-lg .sapphire-table__cell,.sapphire-table__table--spacing-lg .sapphire-table__selectionCell:not(:first-child){padding-top:var(--sapphire-semantic-size-spacing-40);padding-bottom:var(--sapphire-semantic-size-spacing-40)}.sapphire-table__table--spacing-xl .sapphire-table__cell,.sapphire-table__table--spacing-xl .sapphire-table__selectionCell:not(:first-child){padding-top:var(--sapphire-global-size-generic-50);padding-bottom:var(--sapphire-global-size-generic-50)}.sapphire-table__cell,.sapphire-table__selectionCell{font-size:var(--sapphire-semantic-size-font-text-lg);line-height:var(--sapphire-semantic-size-line-height-md);padding:var(--sapphire-semantic-size-spacing-30) var(--sapphire-semantic-size-spacing-20)}.sapphire-table__selectionCell{line-height:0;width:var(--sapphire-global-size-generic-50)}.sapphire-table__cell-wrapper .sapphire-table__selectionCell{width:unset;min-width:var(--sapphire-global-size-generic-50)}.sapphire-table__cell:first-child,.sapphire-table__selectionCell:first-child,.sapphire-table__cell-wrapper:first-child>.sapphire-table__cell,.sapphire-table__cell-wrapper:first-child>.sapphire-table__selectionCell{padding-left:var(--sapphire-semantic-size-spacing-50)}.sapphire-table__cell:last-child,.sapphire-table__cell-wrapper:last-child>.sapphire-table__cell{padding-right:var(--sapphire-semantic-size-spacing-50)}.sapphire-table__headCell:first-child,.sapphire-table__cell-wrapper:first-child .sapphire-table__headCell{padding-left:var(--sapphire-semantic-size-spacing-40)}.sapphire-table__selectionCell:first-child,.sapphire-table__cell-wrapper:first-child>.sapphire-table__selectionCell{padding-right:var(--sapphire-semantic-size-spacing-30)}.sapphire-table__headCell:last-child,.sapphire-table__cell-wrapper:last-child>.sapphire-table__headCell{padding-right:var(--sapphire-semantic-size-spacing-40)}.sapphire-table__tfoot .sapphire-table__cell{font-weight:var(--sapphire-semantic-font-weight-default-bold)}.sapphire-table__cell-wrapper>.sapphire-table__cell,.sapphire-table__cell-wrapper>.sapphire-table__selectionCell{padding-left:var(--sapphire-semantic-size-spacing-20);padding-right:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__head .sapphire-table__selectionCell{padding-top:var(--sapphire-semantic-size-spacing-20);padding-bottom:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__cell-wrapper .sapphire-table__headCell{padding-left:0;padding-right:0}.sapphire-table__cell-wrapper .sapphire-table__cell,.sapphire-table__cell-wrapper .sapphire-table__headCell,.sapphire-table__cell-wrapper .sapphire-table__selectionCell{display:flex;align-items:center;height:100%;box-sizing:border-box}.sapphire-table__row{position:relative;border-bottom:var(--sapphire-semantic-size-border-sm) solid var(--sapphire-semantic-color-border-separator-default)}.sapphire-table__row--active{background-color:var(--sapphire-semantic-color-background-action-tertiary-ghost-default)!important}.sapphire-table__row--selected{background-color:var(--sapphire-semantic-color-background-action-secondary-default)}.sapphire-table__row.is-focus,.sapphire-table__row:not(.js-focus):focus-visible,.sapphire-table__row.sapphire-table__row--expanded{border-bottom-color:transparent}.sapphire-table__row-expanded-view{border-bottom:var(--sapphire-semantic-size-border-sm) solid var(--sapphire-semantic-color-border-separator-default)}.sapphire-table__row-expand-button{display:inline-flex;transition:transform ease-in-out var(--sapphire-semantic-time-motion-quick);margin-left:var(--sapphire-semantic-size-spacing-20)}.sapphire-table td:has(.sapphire-table__row-expand-button){width:0}.sapphire-table__row--expanded .sapphire-table__row-expand-button{transform:rotate(180deg)}.sapphire-table--without-last-divider .sapphire-table__row:not(.is-focus,:not(.js-focus):focus-visible):last-child{border-bottom-color:transparent}.sapphire-table--interactive .sapphire-table__row,.sapphire-table__row--interactive{cursor:default}.sapphire-table--interactive .sapphire-table__row.is-hover,.sapphire-table__row--interactive.is-hover,.sapphire-table--interactive .sapphire-table__row:not(.js-hover):hover,.sapphire-table__row--interactive:not(.js-hover):hover{background-color:var(--sapphire-semantic-color-background-action-secondary-default);cursor:pointer}.sapphire-table__row--highlighted{background-color:var(--sapphire-semantic-color-background-action-secondary-default)}.sapphire-table__row--highlighted>*:first-child{box-shadow:inset var(--sapphire-global-size-generic-5) 0 0 0 var(--sapphire-semantic-color-background-informative-primary-default)}.sapphire-table__tfoot{position:relative;z-index:2;background-color:var(--sapphire-semantic-color-background-action-secondary-default)}.sapphire-table__selection-action-bar{display:flex;align-items:center;justify-content:space-between;padding:var(--sapphire-semantic-size-spacing-30) var(--sapphire-semantic-size-spacing-50);background-color:var(--sapphire-semantic-color-background-action-secondary-default)}.sapphire-table__footer{position:relative;z-index:2;margin-top:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__footer--sticky{position:sticky;bottom:0;left:0}.sapphire-table__footer--virtualized{position:absolute;z-index:2;bottom:0;right:0;left:0}sp-table{display:block}\n"] }]
|
|
52
|
+
}, hostDirectives: [UseComponentStylesOnHost], styles: [".sapphire-table{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;flex-direction:column;justify-content:space-between;background-color:var(--sapphire-semantic-color-background-surface)}.sapphire-table--overflow{overflow:auto}.sapphire-table__table{border-collapse:collapse;border-spacing:0;width:100%;table-layout:auto}.sapphire-table__table--fixed-layout{table-layout:fixed}.sapphire-table-sortedIcon,.sapphire-table-sortableIcon{display:inline-flex;visibility:hidden;vertical-align:top}.sapphire-table__head{top:0;z-index:2;line-height:var(--sapphire-semantic-size-line-height-md);background-color:var(--sapphire-semantic-color-background-surface)}.sapphire-table__head--sticky{position:sticky}.sapphire-table__cell--alignLeft{text-align:left}.sapphire-table__cell--alignCenter{text-align:center}.sapphire-table__cell--alignRight{text-align:end}.sapphire-table__cell-wrapper .sapphire-table__cell--alignLeft{justify-content:flex-start}.sapphire-table__cell-wrapper .sapphire-table__cell--alignCenter{justify-content:center}.sapphire-table__cell-wrapper .sapphire-table__cell--alignRight{justify-content:flex-end}.sapphire-table__headCell{color:var(--sapphire-semantic-color-content-default-primary);box-sizing:border-box;font-size:var(--sapphire-semantic-size-font-text-md);font-family:var(--sapphire-semantic-font-name-default);font-weight:var(--sapphire-semantic-font-weight-default-semibold);line-height:var(--sapphire-semantic-size-line-height-md);vertical-align:top}.sapphire-table__headCell_container{padding:var(--sapphire-semantic-size-spacing-20);display:inline-flex;align-items:center;box-sizing:border-box;width:100%}.sapphire-table__cell--alignRight .sapphire-table__headCell_container{justify-content:flex-end}.sapphire-table__cell--alignLeft .sapphire-table__headCell_container{justify-content:flex-start}.sapphire-table__cell--alignCenter .sapphire-table__headCell_container{justify-content:center}.sapphire-table__row,.sapphire-table__cell,.sapphire-table__headCell,.sapphire-table__selectionCell{outline:none;position:relative;z-index:1}.sapphire-table__headCell.is-focus .sapphire-table__headCell_container,.sapphire-table__headCell:not(.js-focus):focus-visible .sapphire-table__headCell_container,.sapphire-table__cell.is-focus,.sapphire-table__cell:not(.js-focus):focus-visible,.sapphire-table__selectionCell.is-focus,.sapphire-table__selectionCell:not(.js-focus):focus-visible,.sapphire-table__row.is-focus,.sapphire-table__row:not(.js-focus):focus-visible{outline:none;border-radius:var(--sapphire-semantic-size-radius-sm);box-shadow:inset 0 0 0 var(--sapphire-semantic-size-focus-ring) var(--sapphire-semantic-color-focus-ring)}.sapphire-table__headCell.is-focus .sapphire-table__headCell_container,.sapphire-table__headCell:not(.js-focus):focus-visible .sapphire-table__headCell_container{border-radius:var(--sapphire-semantic-size-radius-sm)}.sapphire-table__headCell.sapphire-table__headCell--sortable.is-hover .sapphire-table__headCell_container,.sapphire-table__headCell.sapphire-table__headCell--sortable:not(.js-hover):hover .sapphire-table__headCell_container{background-color:var(--sapphire-semantic-color-background-action-secondary-default);border-radius:var(--sapphire-semantic-size-radius-sm)}.sapphire-table__headCell.sapphire-table__headCell--sortable{cursor:pointer}.sapphire-table__headCell--sortable:not(sapphire-table__headCell--sorted):hover .sapphire-table-sortableIcon{visibility:visible}.sapphire-table__headCell--sorted .sapphire-table-sortedIcon{visibility:visible;padding-left:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__headCell .sapphire-table-sortedIcon,.sapphire-table__headCell .sapphire-table-sortableIcon{padding-left:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__cell--alignRight .sapphire-table-sortedIcon,.sapphire-table__cell--alignRight .sapphire-table-sortableIcon{padding-right:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__headCell__text,.sapphire-table__headCell__icon{vertical-align:top;display:inline-block}.sapphire-table__body{position:relative;overflow:auto}.sapphire-table__cell{box-sizing:border-box;color:var(--sapphire-semantic-color-content-default-primary);font-family:var(--sapphire-semantic-font-name-default);font-weight:var(--sapphire-semantic-font-weight-default-regular);overflow-wrap:break-word}.sapphire-table__cell-contents{display:block;width:100%;overflow-wrap:break-word}.sapphire-table__cell--ellipsed,.sapphire-table__headCell_content--ellipsed,.sapphire-table__cell--ellipsed .sapphire-table__cell-contents{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sapphire-table__table--spacing-sm .sapphire-table__cell,.sapphire-table__table--spacing-sm .sapphire-table__selectionCell:not(:first-child){padding-top:var(--sapphire-semantic-size-spacing-20);padding-bottom:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__table--spacing-lg .sapphire-table__cell,.sapphire-table__table--spacing-lg .sapphire-table__selectionCell:not(:first-child){padding-top:var(--sapphire-semantic-size-spacing-40);padding-bottom:var(--sapphire-semantic-size-spacing-40)}.sapphire-table__table--spacing-xl .sapphire-table__cell,.sapphire-table__table--spacing-xl .sapphire-table__selectionCell:not(:first-child){padding-top:var(--sapphire-global-size-generic-50);padding-bottom:var(--sapphire-global-size-generic-50)}.sapphire-table__cell,.sapphire-table__selectionCell{font-size:var(--sapphire-semantic-size-font-text-lg);line-height:var(--sapphire-semantic-size-line-height-md);padding:var(--sapphire-semantic-size-spacing-30) var(--sapphire-semantic-size-spacing-20)}.sapphire-table__selectionCell{line-height:0;width:var(--sapphire-global-size-generic-50)}.sapphire-table__cell-wrapper .sapphire-table__selectionCell{width:unset;min-width:var(--sapphire-global-size-generic-50)}.sapphire-table__cell:first-child,.sapphire-table__selectionCell:first-child,.sapphire-table__cell-wrapper:first-child>.sapphire-table__cell,.sapphire-table__cell-wrapper:first-child>.sapphire-table__selectionCell{padding-left:var(--sapphire-semantic-size-spacing-50)}.sapphire-table__cell:last-child,.sapphire-table__cell-wrapper:last-child>.sapphire-table__cell{padding-right:var(--sapphire-semantic-size-spacing-50)}.sapphire-table__headCell:first-child,.sapphire-table__cell-wrapper:first-child .sapphire-table__headCell{padding-left:var(--sapphire-semantic-size-spacing-40)}.sapphire-table__selectionCell:first-child,.sapphire-table__cell-wrapper:first-child>.sapphire-table__selectionCell{padding-right:var(--sapphire-semantic-size-spacing-30)}.sapphire-table__headCell:last-child,.sapphire-table__cell-wrapper:last-child>.sapphire-table__headCell{padding-right:var(--sapphire-semantic-size-spacing-40)}.sapphire-table__tfoot .sapphire-table__cell{font-weight:var(--sapphire-semantic-font-weight-default-bold)}.sapphire-table__cell-wrapper>.sapphire-table__cell,.sapphire-table__cell-wrapper>.sapphire-table__selectionCell{padding-left:var(--sapphire-semantic-size-spacing-20);padding-right:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__head .sapphire-table__selectionCell{padding-top:var(--sapphire-semantic-size-spacing-20);padding-bottom:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__cell-wrapper .sapphire-table__headCell{padding-left:0;padding-right:0}.sapphire-table__cell-wrapper .sapphire-table__cell,.sapphire-table__cell-wrapper .sapphire-table__headCell,.sapphire-table__cell-wrapper .sapphire-table__selectionCell{display:flex;align-items:center;height:100%;box-sizing:border-box}.sapphire-table__row{position:relative;border-bottom:var(--sapphire-semantic-size-border-sm) solid var(--sapphire-semantic-color-border-separator-default)}.sapphire-table__row--active{background-color:var(--sapphire-semantic-color-background-action-tertiary-ghost-default)!important}.sapphire-table__row--selected{background-color:var(--sapphire-semantic-color-background-action-secondary-default)}.sapphire-table__row.is-focus,.sapphire-table__row:not(.js-focus):focus-visible,.sapphire-table__row.sapphire-table__row--expanded{border-bottom-color:transparent}.sapphire-table__row-expanded-view{border-bottom:var(--sapphire-semantic-size-border-sm) solid var(--sapphire-semantic-color-border-separator-default)}.sapphire-table__row-expand-button{display:inline-flex;transition:transform ease-in-out var(--sapphire-semantic-time-motion-quick);margin-left:var(--sapphire-semantic-size-spacing-20)}.sapphire-table td:has(.sapphire-table__row-expand-button){width:0}.sapphire-table__row--expanded .sapphire-table__row-expand-button{transform:rotate(180deg)}.sapphire-table--without-last-divider .sapphire-table__row:not(.is-focus,:not(.js-focus):focus-visible):last-child{border-bottom-color:transparent}.sapphire-table--interactive .sapphire-table__row,.sapphire-table__row--interactive{cursor:default}.sapphire-table--interactive .sapphire-table__row.is-hover,.sapphire-table__row--interactive.is-hover,.sapphire-table--interactive .sapphire-table__row:not(.js-hover):hover,.sapphire-table__row--interactive:not(.js-hover):hover{background-color:var(--sapphire-semantic-color-background-action-secondary-default);cursor:pointer}.sapphire-table__row--highlighted{background-color:var(--sapphire-semantic-color-background-action-secondary-default)}.sapphire-table__row--highlighted>*:first-child{box-shadow:inset var(--sapphire-global-size-generic-5) 0 0 0 var(--sapphire-semantic-color-background-informative-primary-default)}.sapphire-table__tfoot{position:relative;z-index:2;background-color:var(--sapphire-semantic-color-background-action-secondary-default)}.sapphire-table__selection-action-bar{display:flex;align-items:center;justify-content:space-between;padding:var(--sapphire-semantic-size-spacing-30) var(--sapphire-semantic-size-spacing-50);background-color:var(--sapphire-semantic-color-background-action-secondary-default);position:sticky;top:0;left:0;z-index:3}.sapphire-table__footer{position:relative;z-index:2;margin-top:var(--sapphire-semantic-size-spacing-20)}.sapphire-table__footer--sticky{position:sticky;bottom:0;left:0}.sapphire-table__footer--virtualized{position:absolute;z-index:2;bottom:0;right:0;left:0}sp-table{display:block}\n"] }]
|
|
53
53
|
}], ctorParameters: function () { return []; }, propDecorators: { rowAction: [{
|
|
54
54
|
type: Output
|
|
55
55
|
}], stickyHeader: [{
|
|
@@ -62,6 +62,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImpor
|
|
|
62
62
|
type: Input
|
|
63
63
|
}], cellSpacing: [{
|
|
64
64
|
type: Input
|
|
65
|
+
}], layout: [{
|
|
66
|
+
type: Input
|
|
65
67
|
}], rows: [{
|
|
66
68
|
type: ContentChildren,
|
|
67
69
|
args: [TableRowDirective, { descendants: true }]
|
|
@@ -72,4 +74,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImpor
|
|
|
72
74
|
type: ContentChild,
|
|
73
75
|
args: [TableDirective, { descendants: true }]
|
|
74
76
|
}] } });
|
|
75
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
77
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUuY29tcG9uZW50LmpzIiwic291cmN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2FtZSBhcyBDU1MgdGFibGUtbGF5b3V0IHByb3BlcnR5LlxuICAgKiBAZGVmYXVsdCAnYXV0bydcbiAgICovXG4gIEBJbnB1dCgpXG4gIGxheW91dD86ICdhdXRvJyB8ICdmaXhlZCc7XG5cbiAgZ2V0IGlzSW50ZXJhY3RpdmUoKSB7XG4gICAgcmV0dXJuIHRoaXMucm93QWN0aW9uLm9ic2VydmVycy5sZW5ndGggPiAwO1xuICB9XG5cbiAgQENvbnRlbnRDaGlsZHJlbihUYWJsZVJvd0RpcmVjdGl2ZSwgeyBkZXNjZW5kYW50czogdHJ1ZSB9KVxuICByb3dzPzogUXVlcnlMaXN0PFRhYmxlUm93RGlyZWN0aXZlPjtcblxuICBAQ29udGVudENoaWxkcmVuKFRhYmxlSGVhZENlbGxDb21wb25lbnQsIHsgZGVzY2VuZGFudHM6IHRydWUgfSlcbiAgaGVhZENlbGxzPzogUXVlcnlMaXN0PFRhYmxlSGVhZENlbGxDb21wb25lbnQ+O1xuXG4gIEBDb250ZW50Q2hpbGQoVGFibGVEaXJlY3RpdmUsIHsgZGVzY2VuZGFudHM6IHRydWUgfSlcbiAgdGFibGU/OiBUYWJsZURpcmVjdGl2ZTtcblxuICBjb25zdHJ1Y3RvcigpIHt9XG59XG4iXX0=
|
|
@@ -9,7 +9,7 @@ export class TableDirective {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
TableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: TableDirective, deps: [{ token: i1.TableComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
12
|
-
TableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.0", type: TableDirective, selector: "table[sp-table]", host: { properties: { "class.sapphire-table__table--spacing-sm": "_table.cellSpacing === \"sm\"", "class.sapphire-table__table--spacing-lg": "_table.cellSpacing === \"lg\"", "class.sapphire-table__table--spacing-xl": "_table.cellSpacing === \"xl\"" }, classAttribute: "sapphire-table__table" }, hostDirectives: [{ directive: i2.UseComponentStyles }], ngImport: i0 });
|
|
12
|
+
TableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.0", type: TableDirective, selector: "table[sp-table]", host: { properties: { "class.sapphire-table__table--spacing-sm": "_table.cellSpacing === \"sm\"", "class.sapphire-table__table--spacing-lg": "_table.cellSpacing === \"lg\"", "class.sapphire-table__table--spacing-xl": "_table.cellSpacing === \"xl\"", "class.sapphire-table__table--fixed-layout": "_table.layout === \"fixed\"" }, classAttribute: "sapphire-table__table" }, hostDirectives: [{ directive: i2.UseComponentStyles }], ngImport: i0 });
|
|
13
13
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: TableDirective, decorators: [{
|
|
14
14
|
type: Directive,
|
|
15
15
|
args: [{
|
|
@@ -19,8 +19,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImpor
|
|
|
19
19
|
'[class.sapphire-table__table--spacing-sm]': '_table.cellSpacing === "sm"',
|
|
20
20
|
'[class.sapphire-table__table--spacing-lg]': '_table.cellSpacing === "lg"',
|
|
21
21
|
'[class.sapphire-table__table--spacing-xl]': '_table.cellSpacing === "xl"',
|
|
22
|
+
'[class.sapphire-table__table--fixed-layout]': '_table.layout === "fixed"',
|
|
22
23
|
},
|
|
23
24
|
hostDirectives: [UseComponentStyles],
|
|
24
25
|
}]
|
|
25
26
|
}], ctorParameters: function () { return [{ type: i1.TableComponent }]; } });
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi90YWJsZS9zcmMvdGFibGUuZGlyZWN0aXZlLnR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