@danske/sapphire-angular 1.19.1 → 1.19.2

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.
@@ -2,6 +2,7 @@ import { AfterContentChecked } from '@angular/core';
2
2
  import { TableRowDirective } from './table-row.directive';
3
3
  import { TableComponent } from './table.component';
4
4
  import { TruncatedWithTooltipDirective } from '../../tooltip/public_api';
5
+ import { BooleanInput } from '@angular/cdk/coercion';
5
6
  import * as i0 from "@angular/core";
6
7
  import * as i1 from "../../tooltip/src/truncated-with-tooltip.directive";
7
8
  import * as i2 from "../../common/sapphire-view-encapsulation";
@@ -17,6 +18,11 @@ export declare class TableCellDirective implements AfterContentChecked {
17
18
  * @default 'left'
18
19
  */
19
20
  get align(): CellAlignment | undefined;
21
+ /**
22
+ * Applies the styles for selection cell.
23
+ * A selection cell is the first cell in a row, containing a checkbox.
24
+ */
25
+ selectionCell: BooleanInput;
20
26
  set align(value: CellAlignment | undefined);
21
27
  private _align;
22
28
  get width(): string | undefined;
@@ -27,6 +33,6 @@ export declare class TableCellDirective implements AfterContentChecked {
27
33
  constructor(table: TableComponent, truncatedWithTooltipDirective: TruncatedWithTooltipDirective, tableRow: TableRowDirective);
28
34
  ngAfterContentChecked(): void;
29
35
  static ɵfac: i0.ɵɵFactoryDeclaration<TableCellDirective, never>;
30
- static ɵdir: i0.ɵɵDirectiveDeclaration<TableCellDirective, "td[sp-table-td]", never, { "align": "align"; }, {}, never, never, false, [{ directive: typeof i1.TruncatedWithTooltipDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.UseComponentStyles; inputs: {}; outputs: {}; }]>;
36
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TableCellDirective, "td[sp-table-td]", never, { "align": "align"; "selectionCell": "selectionCell"; }, {}, never, never, false, [{ directive: typeof i1.TruncatedWithTooltipDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.UseComponentStyles; inputs: {}; outputs: {}; }]>;
31
37
  }
32
38
  export {};
@@ -1,5 +1,6 @@
1
1
  import { TableSortHeaderDirective } from './table-sort-header.directive';
2
2
  import { TableComponent } from './table.component';
3
+ import { BooleanInput } from '@angular/cdk/coercion';
3
4
  import * as i0 from "@angular/core";
4
5
  import * as i1 from "../../common/sapphire-view-encapsulation";
5
6
  export declare class TableHeadCellComponent {
@@ -12,8 +13,13 @@ export declare class TableHeadCellComponent {
12
13
  width?: string;
13
14
  minWidth?: string;
14
15
  maxWidth?: string;
16
+ /**
17
+ * Applies the styles for selection cell. A selection cell is the first cell in a row, containing
18
+ * a checkbox.
19
+ */
20
+ selectionCell: BooleanInput;
15
21
  get cellOverflow(): "wrap" | "truncate";
16
22
  constructor(table: TableComponent, tableSortHeader?: TableSortHeaderDirective | undefined);
17
23
  static ɵfac: i0.ɵɵFactoryDeclaration<TableHeadCellComponent, [null, { optional: true; }]>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<TableHeadCellComponent, "th[sp-table-th]", never, { "align": "align"; "width": "width"; "minWidth": "minWidth"; "maxWidth": "maxWidth"; }, {}, never, ["*"], false, [{ directive: typeof i1.UseComponentStyles; inputs: {}; outputs: {}; }]>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableHeadCellComponent, "th[sp-table-th]", never, { "align": "align"; "width": "width"; "minWidth": "minWidth"; "maxWidth": "maxWidth"; "selectionCell": "selectionCell"; }, {}, never, ["*"], false, [{ directive: typeof i1.UseComponentStyles; inputs: {}; outputs: {}; }]>;
19
25
  }
@@ -1,7 +1,6 @@
1
1
  import { QueryList } from '@angular/core';
2
2
  import { TableComponent } from './table.component';
3
3
  import { TableCellDirective } from './table-cell.directive';
4
- import { TableHeadCellComponent } from './table-head-cell.component';
5
4
  import { BooleanInput } from '@angular/cdk/coercion';
6
5
  import * as i0 from "@angular/core";
7
6
  import * as i1 from "../../common/sapphire-view-encapsulation";
@@ -10,9 +9,13 @@ export declare class TableRowDirective<D = unknown> {
10
9
  cells: QueryList<TableCellDirective>;
11
10
  rowData: D | null;
12
11
  disabled: BooleanInput;
12
+ /**
13
+ * Applies selected row styles, and marks the row as selected for assistive technology.
14
+ */
15
+ selected: BooleanInput;
13
16
  private onRowClick;
14
- getColumnHeadCell(cell: TableCellDirective): TableHeadCellComponent | undefined;
17
+ getColumnHeadCell(cell: TableCellDirective): import("@danske/sapphire-angular").TableHeadCellComponent | undefined;
15
18
  constructor(table: TableComponent);
16
19
  static ɵfac: i0.ɵɵFactoryDeclaration<TableRowDirective<any>, never>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<TableRowDirective<any>, "tr[sp-table-tr]", never, { "rowData": "rowData"; "disabled": "disabled"; }, {}, ["cells"], never, false, [{ directive: typeof i1.UseComponentStyles; inputs: {}; outputs: {}; }]>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TableRowDirective<any>, "tr[sp-table-tr]", never, { "rowData": "rowData"; "disabled": "disabled"; "selected": "selected"; }, {}, ["cells"], never, false, [{ directive: typeof i1.UseComponentStyles; inputs: {}; outputs: {}; }]>;
18
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danske/sapphire-angular",
3
- "version": "1.19.1",
3
+ "version": "1.19.2",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "The Angular implementation of the Sapphire Design System from Danske Bank A/S",
6
6
  "module": "fesm2015/danske-sapphire-angular.mjs",
@@ -19,7 +19,7 @@
19
19
  "@danske/sapphire-css": "^27.1.1",
20
20
  "tslib": "^2.3.0"
21
21
  },
22
- "gitHead": "cd122ead963e96cd3d285da62e66a53ca7bde597",
22
+ "gitHead": "2b52b5c75ffa40c8ee6a8b18aa2d1bc0cf5a53d9",
23
23
  "es2020": "fesm2020/danske-sapphire-angular.mjs",
24
24
  "esm2020": "esm2020/danske-sapphire-angular.mjs",
25
25
  "fesm2020": "fesm2020/danske-sapphire-angular.mjs",