@nova-ui/bits 15.0.9 → 15.0.11

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.
@@ -11067,6 +11067,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
11067
11067
  */
11068
11068
  const FIXED_WIDTH_CLASS = "nui-fixed-width";
11069
11069
 
11070
+ // © 2022 SolarWinds Worldwide, LLC. All rights reserved.
11071
+ //
11072
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
11073
+ // of this software and associated documentation files (the "Software"), to
11074
+ // deal in the Software without restriction, including without limitation the
11075
+ // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
11076
+ // sell copies of the Software, and to permit persons to whom the Software is
11077
+ // furnished to do so, subject to the following conditions:
11078
+ //
11079
+ // The above copyright notice and this permission notice shall be included in
11080
+ // all copies or substantial portions of the Software.
11081
+ //
11082
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11083
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
11084
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
11085
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
11086
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
11087
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
11088
+ // THE SOFTWARE.
11089
+ var TableSelectionMode;
11090
+ (function (TableSelectionMode) {
11091
+ TableSelectionMode["None"] = "none";
11092
+ TableSelectionMode["Single"] = "single";
11093
+ TableSelectionMode["Radio"] = "radio";
11094
+ TableSelectionMode["Multi"] = "multi";
11095
+ })(TableSelectionMode || (TableSelectionMode = {}));
11096
+
11070
11097
  // © 2022 SolarWinds Worldwide, LLC. All rights reserved.
11071
11098
  /** @ignore */
11072
11099
  const MIN_COLUMN_WIDTH_PX = 46;
@@ -11087,6 +11114,7 @@ class TableStateHandlerService {
11087
11114
  this.dataSourceChanged = new Subject();
11088
11115
  this.selectionChanged = new Subject();
11089
11116
  this.selectableChanged = new Subject();
11117
+ this.selectionModeChanged = new Subject();
11090
11118
  this.columnWidthSubject = new Subject();
11091
11119
  this.stickyHeaderChangedSubject = new Subject();
11092
11120
  this._selection = {
@@ -11188,6 +11216,15 @@ class TableStateHandlerService {
11188
11216
  get selectable() {
11189
11217
  return this._selectable;
11190
11218
  }
11219
+ set selectionMode(mode) {
11220
+ if (mode !== this._selectionMode) {
11221
+ this.selectionModeChanged.next(mode);
11222
+ }
11223
+ this._selectionMode = mode;
11224
+ }
11225
+ get selectionMode() {
11226
+ return this._selectionMode;
11227
+ }
11191
11228
  get hasVirtualScroll() {
11192
11229
  return this._hasVirtualScroll;
11193
11230
  }
@@ -11218,6 +11255,11 @@ class TableStateHandlerService {
11218
11255
  set trackBy(value) {
11219
11256
  this._trackBy = value;
11220
11257
  }
11258
+ get selectionEnabled() {
11259
+ return (this.selectable ||
11260
+ (this.selectionMode &&
11261
+ this.selectionMode !== TableSelectionMode.None));
11262
+ }
11221
11263
  /**
11222
11264
  * Gets the width of the specified column
11223
11265
  *
@@ -11500,11 +11542,33 @@ class TableStateHandlerService {
11500
11542
  /**
11501
11543
  * Updates the selection object to either include or exclude the row based on the current selection
11502
11544
  * type and the row's current selection state
11503
- * Then the selection object is broadcasted to all listeners of selectionChanged
11545
+ * Then the selection object is broadcast to all listeners of selectionChanged
11504
11546
  *
11505
11547
  * @param rowObject
11506
11548
  */
11507
- handleRowCheckbox(rowObject) {
11549
+ handleRowSelect(rowObject) {
11550
+ switch (this._selectionMode) {
11551
+ case TableSelectionMode.Single:
11552
+ case TableSelectionMode.Radio:
11553
+ this.handleRowSelectSingle(rowObject);
11554
+ break;
11555
+ case TableSelectionMode.Multi:
11556
+ this.handleRowSelectMulti(rowObject);
11557
+ break;
11558
+ default:
11559
+ console.error("Unknown table selection mode.");
11560
+ }
11561
+ }
11562
+ handleRowSelectSingle(rowObject) {
11563
+ const rowObjectTrackBy = this.trackBy(rowObject?.id, rowObject);
11564
+ this.selection = {
11565
+ isAllPages: false,
11566
+ exclude: [],
11567
+ include: [rowObjectTrackBy],
11568
+ };
11569
+ this.selectionChanged.next(this.selection);
11570
+ }
11571
+ handleRowSelectMulti(rowObject) {
11508
11572
  const excludedRows = this.selection.exclude;
11509
11573
  const includedRows = this.selection.include;
11510
11574
  const rowObjectTrackBy = this.trackBy(rowObject?.id, rowObject);
@@ -11587,7 +11651,14 @@ class TableComponent extends CdkTable {
11587
11651
  this.reorderable = false;
11588
11652
  this.sortable = false;
11589
11653
  this.resizable = false;
11654
+ /**
11655
+ * @deprecated Use selectionConfig instead.
11656
+ */
11590
11657
  this.selectable = false;
11658
+ this.selectionConfig = {
11659
+ enabled: false,
11660
+ selectionMode: TableSelectionMode.None,
11661
+ };
11591
11662
  this.columnsOrderChange = new EventEmitter();
11592
11663
  this.sortOrderChanged = new EventEmitter();
11593
11664
  this.selectionChange = new EventEmitter();
@@ -11633,8 +11704,11 @@ class TableComponent extends CdkTable {
11633
11704
  this.onDataSourceChange(changes.dataSource.currentValue);
11634
11705
  }
11635
11706
  if (changes.selectable) {
11636
- this.tableStateHandlerService.selectable =
11637
- changes.selectable.currentValue;
11707
+ this.changeSelectionMode(changes.selectable.currentValue);
11708
+ }
11709
+ if (changes.selectionConfig) {
11710
+ this.tableStateHandlerService.selectionMode =
11711
+ changes.selectionConfig.currentValue?.selectionMode;
11638
11712
  }
11639
11713
  if (changes.selection && !changes.selection.isFirstChange()) {
11640
11714
  this.changeSelection(changes.selection.currentValue);
@@ -11683,7 +11757,7 @@ class TableComponent extends CdkTable {
11683
11757
  this.columnsOrderChange.emit(tableColumns);
11684
11758
  });
11685
11759
  }
11686
- if (this.selectable) {
11760
+ if (this.selectable || this.selectionConfig?.enabled) {
11687
11761
  this.stickyChangedSubscription =
11688
11762
  this.tableStateHandlerService.stickyHeaderChangedSubject.subscribe(() => {
11689
11763
  // calling cdk method to update sticky styles
@@ -11695,7 +11769,7 @@ class TableComponent extends CdkTable {
11695
11769
  // moved this from ngOnInit since we might emit the selectionChange event
11696
11770
  // before our component is actually ready and it might cause problems
11697
11771
  // if we try to manually trigger change detection in a parent component
11698
- if (this.selectable) {
11772
+ if (this.selectable || this.selectionConfig?.enabled) {
11699
11773
  this.selectionChangedSubscription =
11700
11774
  this.tableStateHandlerService.selectionChanged.subscribe((selection) => {
11701
11775
  this.selectionChange.emit(selection);
@@ -11709,6 +11783,28 @@ class TableComponent extends CdkTable {
11709
11783
  this.tableStateHandlerService.selection = selectedItems;
11710
11784
  this.tableStateHandlerService.selectionChanged.next(this.tableStateHandlerService.selection);
11711
11785
  }
11786
+ // used for backwards compatibility
11787
+ // default behavior was multi selection
11788
+ changeSelectionMode(selectable) {
11789
+ this.tableStateHandlerService.selectable = selectable;
11790
+ if (selectable) {
11791
+ this.tableStateHandlerService.selectionMode =
11792
+ TableSelectionMode.Multi;
11793
+ this.selectionConfig = {
11794
+ ...this.selectionConfig,
11795
+ enabled: true,
11796
+ selectionMode: TableSelectionMode.Multi,
11797
+ };
11798
+ }
11799
+ else {
11800
+ this.tableStateHandlerService.selectionMode =
11801
+ TableSelectionMode.None;
11802
+ this.selectionConfig = {
11803
+ enabled: false,
11804
+ selectionMode: TableSelectionMode.None,
11805
+ };
11806
+ }
11807
+ }
11712
11808
  handleSortedColumn(sortedColumn) {
11713
11809
  this.tableStateHandlerService.sortedColumn = sortedColumn;
11714
11810
  this.tableStateHandlerService.sortingState.next(sortedColumn);
@@ -11746,7 +11842,7 @@ class TableComponent extends CdkTable {
11746
11842
  }
11747
11843
  }
11748
11844
  TableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TableComponent, deps: [{ token: i0.IterableDiffers }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: "role", attribute: true }, { token: i1$4.Directionality }, { token: TableStateHandlerService }, { token: DOCUMENT }, { token: i1.Platform }, { token: _VIEW_REPEATER_STRATEGY }, { token: _COALESCED_STYLE_SCHEDULER }, { token: i1$5.ViewportRuler }, { token: STICKY_POSITIONING_LISTENER, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
11749
- TableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: TableComponent, selector: "nui-table, table[nui-table]", inputs: { reorderable: "reorderable", sortable: "sortable", resizable: "resizable", selectable: "selectable", totalItems: "totalItems", dataSource: "dataSource", selection: "selection", sortedColumn: "sortedColumn" }, outputs: { columnsOrderChange: "columnsOrderChange", sortOrderChanged: "sortOrderChanged", selectionChange: "selectionChange" }, host: { properties: { "class.nui-table__table-fixed": "this.layoutFixed" }, classAttribute: "nui-table__table" }, providers: [
11845
+ TableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: TableComponent, selector: "nui-table, table[nui-table]", inputs: { reorderable: "reorderable", sortable: "sortable", resizable: "resizable", selectable: "selectable", selectionConfig: "selectionConfig", totalItems: "totalItems", dataSource: "dataSource", selection: "selection", sortedColumn: "sortedColumn" }, outputs: { columnsOrderChange: "columnsOrderChange", sortOrderChanged: "sortOrderChanged", selectionChange: "selectionChange" }, host: { properties: { "class.nui-table__table-fixed": "this.layoutFixed" }, classAttribute: "nui-table__table" }, providers: [
11750
11846
  TableStateHandlerService,
11751
11847
  {
11752
11848
  provide: _VIEW_REPEATER_STRATEGY,
@@ -11799,6 +11895,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
11799
11895
  type: Input
11800
11896
  }], selectable: [{
11801
11897
  type: Input
11898
+ }], selectionConfig: [{
11899
+ type: Input
11802
11900
  }], totalItems: [{
11803
11901
  type: Input
11804
11902
  }], dataSource: [{
@@ -12125,8 +12223,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
12125
12223
 
12126
12224
  // © 2022 SolarWinds Worldwide, LLC. All rights reserved.
12127
12225
 
12128
- // © 2022 SolarWinds Worldwide, LLC. All rights reserved.
12129
-
12130
12226
  // © 2022 SolarWinds Worldwide, LLC. All rights reserved.
12131
12227
  //
12132
12228
  // Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -23749,9 +23845,10 @@ class TableHeaderRowComponent extends CdkHeaderRow {
23749
23845
  };
23750
23846
  this.onDestroy$ = new Subject();
23751
23847
  this.selectable = this.tableStateHandlerService.selectable;
23848
+ this.selectionMode = this.tableStateHandlerService.selectionMode;
23752
23849
  }
23753
23850
  ngOnInit() {
23754
- if (this.tableStateHandlerService.selectable) {
23851
+ if (this.tableStateHandlerService.selectionEnabled) {
23755
23852
  this.selectorState =
23756
23853
  this.tableStateHandlerService.getSelectorState();
23757
23854
  this.updateSelectorState();
@@ -23777,9 +23874,15 @@ class TableHeaderRowComponent extends CdkHeaderRow {
23777
23874
  this.selectable = selectable;
23778
23875
  this.changeDetectorRef.markForCheck();
23779
23876
  });
23877
+ this.tableStateHandlerService.selectionModeChanged
23878
+ .pipe(takeUntil(this.onDestroy$))
23879
+ .subscribe((mode) => {
23880
+ this.selectionMode = mode;
23881
+ this.changeDetectorRef.markForCheck();
23882
+ });
23780
23883
  }
23781
23884
  ngAfterViewInit() {
23782
- if (this.tableStateHandlerService.selectable) {
23885
+ if (this.tableStateHandlerService.selectionEnabled) {
23783
23886
  this.tableStateHandlerService.applyStickyStyles();
23784
23887
  }
23785
23888
  }
@@ -23802,7 +23905,11 @@ TableHeaderRowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0",
23802
23905
  TableHeaderRowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: TableHeaderRowComponent, selector: "nui-header-row, tr[nui-header-row]", inputs: { density: "density" }, host: { attributes: { "role": "row" }, properties: { "class.nui-table__table-header-row_height_default": "this.isDensityDefault", "class.nui-table__table-header-row_height_compact": "this.isDensityCompact", "class.nui-table__table-header-row_height_tiny": "this.isDensityTiny" }, classAttribute: "nui-table__table-header-row" }, providers: [
23803
23906
  { provide: CdkHeaderRow, useExisting: TableHeaderRowComponent },
23804
23907
  ], exportAs: ["nuiHeaderRow"], usesInheritance: true, ngImport: i0, template: ` <th
23805
- *ngIf="selectable"
23908
+ *ngIf="
23909
+ selectable ||
23910
+ selectionMode === 'multi' ||
23911
+ selectionMode === 'radio'
23912
+ "
23806
23913
  nuiClickInterceptor
23807
23914
  class="nui-table__table-header-cell nui-table__table-header-cell--selectable"
23808
23915
  [ngClass]="{ 'no-options': !hasOptions }"
@@ -23810,6 +23917,7 @@ TableHeaderRowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
23810
23917
  <nui-selector
23811
23918
  class="nui-table__table-header-cell__selector"
23812
23919
  [ngClass]="{ 'no-options': !hasOptions }"
23920
+ [class.invisible]="selectionMode !== 'multi'"
23813
23921
  [appendToBody]="true"
23814
23922
  (selectionChange)="onSelectorChange($event)"
23815
23923
  [checkboxStatus]="selectorState.checkboxStatus"
@@ -23822,7 +23930,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
23822
23930
  type: Component,
23823
23931
  args: [{
23824
23932
  template: ` <th
23825
- *ngIf="selectable"
23933
+ *ngIf="
23934
+ selectable ||
23935
+ selectionMode === 'multi' ||
23936
+ selectionMode === 'radio'
23937
+ "
23826
23938
  nuiClickInterceptor
23827
23939
  class="nui-table__table-header-cell nui-table__table-header-cell--selectable"
23828
23940
  [ngClass]="{ 'no-options': !hasOptions }"
@@ -23830,6 +23942,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
23830
23942
  <nui-selector
23831
23943
  class="nui-table__table-header-cell__selector"
23832
23944
  [ngClass]="{ 'no-options': !hasOptions }"
23945
+ [class.invisible]="selectionMode !== 'multi'"
23833
23946
  [appendToBody]="true"
23834
23947
  (selectionChange)="onSelectorChange($event)"
23835
23948
  [checkboxStatus]="selectorState.checkboxStatus"
@@ -23892,6 +24005,7 @@ class TableRowComponent extends CdkRow {
23892
24005
  };
23893
24006
  this.onDestroy$ = new Subject();
23894
24007
  this.selectable = this.tableStateHandlerService.selectable;
24008
+ this.selectionMode = this.tableStateHandlerService.selectionMode;
23895
24009
  }
23896
24010
  ngOnInit() {
23897
24011
  const rowHeightClass = `nui-table__table-row_height_${this.density.toLowerCase()}`;
@@ -23909,9 +24023,15 @@ class TableRowComponent extends CdkRow {
23909
24023
  this.selectable = selectable;
23910
24024
  this.changeDetectorRef.markForCheck();
23911
24025
  });
24026
+ this.tableStateHandlerService.selectionModeChanged
24027
+ .pipe(takeUntil(this.onDestroy$))
24028
+ .subscribe((mode) => {
24029
+ this.selectionMode = mode;
24030
+ this.changeDetectorRef.markForCheck();
24031
+ });
23912
24032
  }
23913
24033
  rowClickHandler(target) {
23914
- if (!this.tableStateHandlerService.selectable ||
24034
+ if (!this.tableStateHandlerService.selectionEnabled ||
23915
24035
  !this.clickableRow ||
23916
24036
  !this.clickableRowConfig.clickableSelectors.length) {
23917
24037
  return;
@@ -23924,13 +24044,17 @@ class TableRowComponent extends CdkRow {
23924
24044
  target.closest(this.clickableRowConfig.ignoredSelectors.join(","))) {
23925
24045
  return;
23926
24046
  }
23927
- const rowSelectCheckbox = closestTableRow.querySelector("nui-checkbox");
23928
- if (rowSelectCheckbox === this.rowSelectionCheckbox.nativeElement) {
23929
- this.checkboxClicked();
24047
+ if (this.selectionMode === TableSelectionMode.Single) {
24048
+ this.rowSelected();
24049
+ return;
24050
+ }
24051
+ const rowSelector = closestTableRow.querySelector(".nui-table__table-cell__checkbox");
24052
+ if (rowSelector === this.rowSelectionElement?.nativeElement) {
24053
+ this.rowSelected();
23930
24054
  }
23931
24055
  }
23932
- checkboxClicked() {
23933
- this.tableStateHandlerService.handleRowCheckbox(this.rowObject);
24056
+ rowSelected() {
24057
+ this.tableStateHandlerService.handleRowSelect(this.rowObject);
23934
24058
  }
23935
24059
  /**
23936
24060
  * We need to stop propagation of the checkbox click to prevent the row click handler from invoking the checkbox toggle functionality again
@@ -23959,34 +24083,62 @@ class TableRowComponent extends CdkRow {
23959
24083
  }
23960
24084
  }
23961
24085
  TableRowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TableRowComponent, deps: [{ token: i0.ElementRef }, { token: TableStateHandlerService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
23962
- TableRowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: TableRowComponent, selector: "nui-row, tr[nui-row]", inputs: { density: "density", rowObject: "rowObject", clickableRow: "clickableRow", clickableRowConfig: "clickableRowConfig" }, host: { attributes: { "role": "row" }, listeners: { "click": "rowClickHandler($event.target)" }, properties: { "class.nui-table__table-row--clickable": "this.clickableRow", "class.nui-table__table-row--selected": "this.isSelected", "class.nui-table__table-row_height_default": "this.isDensityDefault", "class.nui-table__table-row_height_compact": "this.isDensityCompact", "class.nui-table__table-row_height_tiny": "this.isDensityTiny" }, classAttribute: "nui-table__table-row" }, providers: [{ provide: CdkRow, useExisting: TableRowComponent }], viewQueries: [{ propertyName: "rowSelectionCheckbox", first: true, predicate: ["rowSelectionCheckbox"], descendants: true, read: ElementRef }], exportAs: ["nuiRow"], usesInheritance: true, ngImport: i0, template: ` <td
23963
- *ngIf="selectable"
24086
+ TableRowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: TableRowComponent, selector: "nui-row, tr[nui-row]", inputs: { density: "density", rowObject: "rowObject", clickableRow: "clickableRow", clickableRowConfig: "clickableRowConfig" }, host: { attributes: { "role": "row" }, listeners: { "click": "rowClickHandler($event.target)" }, properties: { "class.nui-table__table-row--clickable": "this.clickableRow", "class.nui-table__table-row--selected": "this.isSelected", "class.nui-table__table-row_height_default": "this.isDensityDefault", "class.nui-table__table-row_height_compact": "this.isDensityCompact", "class.nui-table__table-row_height_tiny": "this.isDensityTiny" }, classAttribute: "nui-table__table-row" }, providers: [{ provide: CdkRow, useExisting: TableRowComponent }], viewQueries: [{ propertyName: "rowSelectionElement", first: true, predicate: ["rowSelectionElement"], descendants: true, read: ElementRef }], exportAs: ["nuiRow"], usesInheritance: true, ngImport: i0, template: ` <td
24087
+ *ngIf="
24088
+ selectable ||
24089
+ (selectionMode &&
24090
+ (selectionMode === 'multi' || selectionMode === 'radio'))
24091
+ "
23964
24092
  class="nui-table__table-cell nui-table__table-cell--selectable"
23965
24093
  >
24094
+ <nui-radio
24095
+ *ngIf="selectionMode === 'radio'"
24096
+ class="nui-table__table-cell__checkbox d-inline-block"
24097
+ [checked]="isRowSelected()"
24098
+ (valueChange)="rowSelected()"
24099
+ (click)="stopPropagation($event)"
24100
+ #rowSelectionElement
24101
+ >
24102
+ </nui-radio>
23966
24103
  <nui-checkbox
24104
+ *ngIf="selectionMode === 'multi'"
23967
24105
  class="nui-table__table-cell__checkbox d-inline-block"
23968
24106
  [checked]="isRowSelected()"
23969
- (valueChange)="checkboxClicked()"
24107
+ (valueChange)="rowSelected()"
23970
24108
  (click)="stopPropagation($event)"
23971
- #rowSelectionCheckbox
24109
+ #rowSelectionElement
23972
24110
  >
23973
24111
  </nui-checkbox>
23974
24112
  </td>
23975
- <ng-container cdkCellOutlet></ng-container>`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CheckboxComponent, selector: "nui-checkbox", inputs: ["ariaLabel", "ariaLabelledby", "ariaDescribedby", "name", "title", "value", "hovered", "checked", "required", "hint", "disabled", "indeterminate"], outputs: ["valueChange"] }, { kind: "directive", type: i5$1.CdkCellOutlet, selector: "[cdkCellOutlet]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
24113
+ <ng-container cdkCellOutlet></ng-container>`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: RadioComponent, selector: "nui-radio", inputs: ["value", "hovered", "checked", "hint", "disabled", "ariaLabel"], outputs: ["valueChange"] }, { kind: "component", type: CheckboxComponent, selector: "nui-checkbox", inputs: ["ariaLabel", "ariaLabelledby", "ariaDescribedby", "name", "title", "value", "hovered", "checked", "required", "hint", "disabled", "indeterminate"], outputs: ["valueChange"] }, { kind: "directive", type: i5$1.CdkCellOutlet, selector: "[cdkCellOutlet]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
23976
24114
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TableRowComponent, decorators: [{
23977
24115
  type: Component,
23978
24116
  args: [{
23979
24117
  selector: "nui-row, tr[nui-row]",
23980
24118
  template: ` <td
23981
- *ngIf="selectable"
24119
+ *ngIf="
24120
+ selectable ||
24121
+ (selectionMode &&
24122
+ (selectionMode === 'multi' || selectionMode === 'radio'))
24123
+ "
23982
24124
  class="nui-table__table-cell nui-table__table-cell--selectable"
23983
24125
  >
24126
+ <nui-radio
24127
+ *ngIf="selectionMode === 'radio'"
24128
+ class="nui-table__table-cell__checkbox d-inline-block"
24129
+ [checked]="isRowSelected()"
24130
+ (valueChange)="rowSelected()"
24131
+ (click)="stopPropagation($event)"
24132
+ #rowSelectionElement
24133
+ >
24134
+ </nui-radio>
23984
24135
  <nui-checkbox
24136
+ *ngIf="selectionMode === 'multi'"
23985
24137
  class="nui-table__table-cell__checkbox d-inline-block"
23986
24138
  [checked]="isRowSelected()"
23987
- (valueChange)="checkboxClicked()"
24139
+ (valueChange)="rowSelected()"
23988
24140
  (click)="stopPropagation($event)"
23989
- #rowSelectionCheckbox
24141
+ #rowSelectionElement
23990
24142
  >
23991
24143
  </nui-checkbox>
23992
24144
  </td>
@@ -24023,9 +24175,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
24023
24175
  }], isDensityTiny: [{
24024
24176
  type: HostBinding,
24025
24177
  args: ["class.nui-table__table-row_height_tiny"]
24026
- }], rowSelectionCheckbox: [{
24178
+ }], rowSelectionElement: [{
24027
24179
  type: ViewChild,
24028
- args: ["rowSelectionCheckbox", { read: ElementRef, static: false }]
24180
+ args: ["rowSelectionElement", { read: ElementRef, static: false }]
24029
24181
  }], rowClickHandler: [{
24030
24182
  type: HostListener,
24031
24183
  args: ["click", ["$event.target"]]
@@ -24104,6 +24256,7 @@ NuiTableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
24104
24256
  TableVirtualScrollLinearDirective,
24105
24257
  TableStickyHeaderDirective,
24106
24258
  SliceRangePipe], imports: [NuiCommonModule,
24259
+ NuiRadioModule,
24107
24260
  NuiSelectModule,
24108
24261
  NuiSelectorModule,
24109
24262
  NuiCheckboxModule,
@@ -24128,6 +24281,7 @@ NuiTableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
24128
24281
  TableStickyHeaderDirective,
24129
24282
  SliceRangePipe] });
24130
24283
  NuiTableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NuiTableModule, imports: [NuiCommonModule,
24284
+ NuiRadioModule,
24131
24285
  NuiSelectModule,
24132
24286
  NuiSelectorModule,
24133
24287
  NuiCheckboxModule,
@@ -24138,6 +24292,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
24138
24292
  args: [{
24139
24293
  imports: [
24140
24294
  NuiCommonModule,
24295
+ NuiRadioModule,
24141
24296
  NuiSelectModule,
24142
24297
  NuiSelectorModule,
24143
24298
  NuiCheckboxModule,
@@ -24940,6 +25095,10 @@ class ToolbarComponent {
24940
25095
  this.keyboardService = keyboardService;
24941
25096
  this.boxShadow = true;
24942
25097
  this.noEmptyMessage = false;
25098
+ /**
25099
+ * Passed to the toolbar menu
25100
+ */
25101
+ this.appendToBody = false;
24943
25102
  this.commandGroups = [];
24944
25103
  this.menuGroups = [];
24945
25104
  this.showMenu = true;
@@ -25088,13 +25247,13 @@ class ToolbarComponent {
25088
25247
  }
25089
25248
  }
25090
25249
  ToolbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ToolbarComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: LoggerService }, { token: i0.NgZone }, { token: ToolbarKeyboardService }], target: i0.ɵɵFactoryTarget.Component });
25091
- ToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: ToolbarComponent, selector: "nui-toolbar", inputs: { selectionEnabled: "selectionEnabled", selectedItems: "selectedItems", boxShadow: "boxShadow", noEmptyMessage: "noEmptyMessage" }, host: { attributes: { "role": "toolbar" }, listeners: { "keydown": "onKeyDown($event)" }, properties: { "class.nui-toolbar--active": "this.selectionEnabled", "class.nui-toolbar--shadowed": "this.boxShadow" }, classAttribute: "nui-toolbar nui-strip-layout nui-flex-container" }, providers: [ToolbarKeyboardService], queries: [{ propertyName: "groups", predicate: ToolbarGroupComponent }, { propertyName: "items", predicate: ToolbarItemComponent, descendants: true }], viewQueries: [{ propertyName: "toolbarContainer", first: true, predicate: ["toolbarContainer"], descendants: true }, { propertyName: "menu", first: true, predicate: ["menuComponent"], descendants: true }, { propertyName: "toolbarButtons", predicate: ["toolbarButtons"], descendants: true }], ngImport: i0, template: "<div\n class=\"nui-toolbar-content\"\n nuiResizeObserver\n (containerResize)=\"moveToolbarItems()\"\n #toolbarContainer\n>\n <div class=\"nui-toolbar-content__dynamic\">\n <ng-template\n ngFor\n let-i=\"index\"\n let-commandGroup\n let-last=\"last\"\n [ngForOf]=\"commandGroups\"\n >\n <ng-template\n ngFor\n let-commandItem\n let-j=\"index\"\n [ngForOf]=\"commandGroup.items\"\n >\n <!-- (!i && !j) is used for set focusable state to first element first group -->\n <button\n nui-button\n type=\"button\"\n #toolbarButtons\n [tabindex]=\"!i && !j ? 0 : -1\"\n (click)=\"onClickToolbarBtn($event, commandItem)\"\n [displayStyle]=\"\n commandItem.displayStyle === 'main'\n ? 'primary'\n : commandItem.displayStyle\n \"\n [ngClass]=\"{\n 'nui-toolbar-primary-item':\n commandItem.displayStyle === 'main'\n }\"\n [icon]=\"commandItem.icon\"\n >\n <span>{{ commandItem.title }}</span>\n </button>\n </ng-template>\n <nui-divider\n *ngIf=\"!last || showMenu\"\n isVertical=\"true\"\n size=\"extra-small\"\n ></nui-divider>\n </ng-template>\n <nui-menu\n displayStyle=\"action\"\n #menuComponent\n [title]=\"menuTitle\"\n *ngIf=\"showMenu\"\n >\n <ng-template ngFor let-menuGroup [ngForOf]=\"menuGroups\">\n <nui-menu-group [header]=\"menuGroup.title\">\n <ng-template ngFor let-menuItem [ngForOf]=\"menuGroup.items\">\n <nui-menu-action\n [type]=\"\n menuItem.isDestructive\n ? 'destructive'\n : 'default'\n \"\n [icon]=\"menuItem.icon\"\n (click)=\"menuItem.actionDone.emit()\"\n >{{ menuItem.title }}\n </nui-menu-action>\n </ng-template>\n </nui-menu-group>\n </ng-template>\n </nui-menu>\n <ng-container>\n <nui-toolbar-message\n *ngIf=\"allItemsHidden && !showMenu && !noEmptyMessage\"\n >\n <ng-container *ngIf=\"selectionEnabled\" i18n\n >No actions available for this selection</ng-container\n >\n <ng-container *ngIf=\"!selectionEnabled\" i18n\n >No actions available</ng-container\n >\n </nui-toolbar-message>\n <ng-content select=\"nui-toolbar-message\"></ng-content>\n </ng-container>\n </div>\n <div class=\"nui-toolbar-content__embedded\">\n <ng-container *ngIf=\"selectionEnabled\">\n <div class=\"nui-toolbar-content__select\">\n {{ handleSelectionState() }}\n </div>\n </ng-container>\n <ng-content></ng-content>\n <ng-content select=\".nui-toolbar-embedded\"></ng-content>\n </div>\n</div>\n", styles: [".nui .nui-toolbar{position:relative;transition:background-color ease .2s;padding:0 15px}.nui .nui-toolbar--shadowed{box-shadow:inset 0 -1px 0 0 var(--nui-color-line-default, #d9d9d9)}.nui .nui-toolbar--active{background-color:var(--nui-color-selected,rgba(0, 196, 210, .1))}.nui .nui-toolbar-content{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between;transition:visibility .25s;padding:5px 0}.nui .nui-toolbar-content__embedded{display:flex}.nui .nui-toolbar-content__embedded>div{white-space:nowrap}.nui .nui-toolbar-content__dynamic{display:flex;flex-direction:row;flex-shrink:0}.nui .nui-toolbar-content__dynamic .nui-button.btn-destructive{border-color:transparent}.nui .nui-toolbar-content__dynamic .nui-button.btn-destructive:hover,.nui .nui-toolbar-content__dynamic .nui-button.btn-destructive:active,.nui .nui-toolbar-content__dynamic .nui-button.btn-destructive:focus{border-color:transparent;background-color:var(--nui-color-bg-transparent-hover,rgba(17, 17, 17, .05))}.nui .nui-toolbar-content__dynamic nui-divider{flex-shrink:0}.nui .nui-toolbar-content__select{display:flex;align-items:center;flex-shrink:0;font-size:11px;font-weight:600;padding-left:10px}.nui .nui-toolbar-group-primary{display:flex}.nui .nui-toolbar-primary-item{margin-right:5px}.nui .nui-toolbar-embedded{margin-left:15px;display:flex;flex-wrap:nowrap}.nui .nui-toolbar-divider{display:table-cell;padding:0 5px}.nui .nui-toolbar-divider-line{width:1px;background:var(--nui-color-line-default,#d9d9d9);height:30px}.nui .nui-toolbar nui-toolbar-message{padding:5px 10px;margin-bottom:2px}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: ResizeObserverDirective, selector: "[nuiResizeObserver]", outputs: ["containerResize"] }, { kind: "component", type: MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }, { kind: "component", type: MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "component", type: DividerComponent, selector: "nui-divider", inputs: ["isVertical", "size"] }, { kind: "component", type: ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: ToolbarMessageComponent, selector: "nui-toolbar-message" }], encapsulation: i0.ViewEncapsulation.None });
25250
+ ToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: ToolbarComponent, selector: "nui-toolbar", inputs: { selectionEnabled: "selectionEnabled", selectedItems: "selectedItems", boxShadow: "boxShadow", noEmptyMessage: "noEmptyMessage", appendToBody: "appendToBody" }, host: { attributes: { "role": "toolbar" }, listeners: { "keydown": "onKeyDown($event)" }, properties: { "class.nui-toolbar--active": "this.selectionEnabled", "class.nui-toolbar--shadowed": "this.boxShadow" }, classAttribute: "nui-toolbar nui-strip-layout nui-flex-container" }, providers: [ToolbarKeyboardService], queries: [{ propertyName: "groups", predicate: ToolbarGroupComponent }, { propertyName: "items", predicate: ToolbarItemComponent, descendants: true }], viewQueries: [{ propertyName: "toolbarContainer", first: true, predicate: ["toolbarContainer"], descendants: true }, { propertyName: "menu", first: true, predicate: ["menuComponent"], descendants: true }, { propertyName: "toolbarButtons", predicate: ["toolbarButtons"], descendants: true }], ngImport: i0, template: "<div\n class=\"nui-toolbar-content\"\n nuiResizeObserver\n (containerResize)=\"moveToolbarItems()\"\n #toolbarContainer\n>\n <div class=\"nui-toolbar-content__dynamic\">\n <ng-template\n ngFor\n let-i=\"index\"\n let-commandGroup\n let-last=\"last\"\n [ngForOf]=\"commandGroups\"\n >\n <ng-template\n ngFor\n let-commandItem\n let-j=\"index\"\n [ngForOf]=\"commandGroup.items\"\n >\n <!-- (!i && !j) is used for set focusable state to first element first group -->\n <button\n nui-button\n type=\"button\"\n #toolbarButtons\n [tabindex]=\"!i && !j ? 0 : -1\"\n (click)=\"onClickToolbarBtn($event, commandItem)\"\n [displayStyle]=\"\n commandItem.displayStyle === 'main'\n ? 'primary'\n : commandItem.displayStyle\n \"\n [ngClass]=\"{\n 'nui-toolbar-primary-item':\n commandItem.displayStyle === 'main'\n }\"\n [icon]=\"commandItem.icon\"\n >\n <span>{{ commandItem.title }}</span>\n </button>\n </ng-template>\n <nui-divider\n *ngIf=\"!last || showMenu\"\n isVertical=\"true\"\n size=\"extra-small\"\n ></nui-divider>\n </ng-template>\n <nui-menu\n displayStyle=\"action\"\n #menuComponent\n [appendToBody]=\"appendToBody\"\n [title]=\"menuTitle\"\n *ngIf=\"showMenu\"\n >\n <ng-template ngFor let-menuGroup [ngForOf]=\"menuGroups\">\n <nui-menu-group [header]=\"menuGroup.title\">\n <ng-template ngFor let-menuItem [ngForOf]=\"menuGroup.items\">\n <nui-menu-action\n [type]=\"\n menuItem.isDestructive\n ? 'destructive'\n : 'default'\n \"\n [icon]=\"menuItem.icon\"\n (click)=\"menuItem.actionDone.emit()\"\n >{{ menuItem.title }}\n </nui-menu-action>\n </ng-template>\n </nui-menu-group>\n </ng-template>\n </nui-menu>\n <ng-container>\n <nui-toolbar-message\n *ngIf=\"allItemsHidden && !showMenu && !noEmptyMessage\"\n >\n <ng-container *ngIf=\"selectionEnabled\" i18n\n >No actions available for this selection</ng-container\n >\n <ng-container *ngIf=\"!selectionEnabled\" i18n\n >No actions available</ng-container\n >\n </nui-toolbar-message>\n <ng-content select=\"nui-toolbar-message\"></ng-content>\n </ng-container>\n </div>\n <div class=\"nui-toolbar-content__embedded\">\n <ng-container *ngIf=\"selectionEnabled\">\n <div class=\"nui-toolbar-content__select\">\n {{ handleSelectionState() }}\n </div>\n </ng-container>\n <ng-content></ng-content>\n <ng-content select=\".nui-toolbar-embedded\"></ng-content>\n </div>\n</div>\n", styles: [".nui .nui-toolbar{position:relative;transition:background-color ease .2s;padding:0 15px}.nui .nui-toolbar--shadowed{box-shadow:inset 0 -1px 0 0 var(--nui-color-line-default, #d9d9d9)}.nui .nui-toolbar--active{background-color:var(--nui-color-selected,rgba(0, 196, 210, .1))}.nui .nui-toolbar-content{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between;transition:visibility .25s;padding:5px 0}.nui .nui-toolbar-content__embedded{display:flex}.nui .nui-toolbar-content__embedded>div{white-space:nowrap}.nui .nui-toolbar-content__dynamic{display:flex;flex-direction:row;flex-shrink:0}.nui .nui-toolbar-content__dynamic .nui-button.btn-destructive{border-color:transparent}.nui .nui-toolbar-content__dynamic .nui-button.btn-destructive:hover,.nui .nui-toolbar-content__dynamic .nui-button.btn-destructive:active,.nui .nui-toolbar-content__dynamic .nui-button.btn-destructive:focus{border-color:transparent;background-color:var(--nui-color-bg-transparent-hover,rgba(17, 17, 17, .05))}.nui .nui-toolbar-content__dynamic nui-divider{flex-shrink:0}.nui .nui-toolbar-content__select{display:flex;align-items:center;flex-shrink:0;font-size:11px;font-weight:600;padding-left:10px}.nui .nui-toolbar-group-primary{display:flex}.nui .nui-toolbar-primary-item{margin-right:5px}.nui .nui-toolbar-embedded{margin-left:15px;display:flex;flex-wrap:nowrap}.nui .nui-toolbar-divider{display:table-cell;padding:0 5px}.nui .nui-toolbar-divider-line{width:1px;background:var(--nui-color-line-default,#d9d9d9);height:30px}.nui .nui-toolbar nui-toolbar-message{padding:5px 10px;margin-bottom:2px}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: ResizeObserverDirective, selector: "[nuiResizeObserver]", outputs: ["containerResize"] }, { kind: "component", type: MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }, { kind: "component", type: MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "component", type: DividerComponent, selector: "nui-divider", inputs: ["isVertical", "size"] }, { kind: "component", type: ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: ToolbarMessageComponent, selector: "nui-toolbar-message" }], encapsulation: i0.ViewEncapsulation.None });
25092
25251
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ToolbarComponent, decorators: [{
25093
25252
  type: Component,
25094
25253
  args: [{ selector: "nui-toolbar", host: {
25095
25254
  class: "nui-toolbar nui-strip-layout nui-flex-container",
25096
25255
  role: "toolbar",
25097
- }, encapsulation: ViewEncapsulation.None, providers: [ToolbarKeyboardService], template: "<div\n class=\"nui-toolbar-content\"\n nuiResizeObserver\n (containerResize)=\"moveToolbarItems()\"\n #toolbarContainer\n>\n <div class=\"nui-toolbar-content__dynamic\">\n <ng-template\n ngFor\n let-i=\"index\"\n let-commandGroup\n let-last=\"last\"\n [ngForOf]=\"commandGroups\"\n >\n <ng-template\n ngFor\n let-commandItem\n let-j=\"index\"\n [ngForOf]=\"commandGroup.items\"\n >\n <!-- (!i && !j) is used for set focusable state to first element first group -->\n <button\n nui-button\n type=\"button\"\n #toolbarButtons\n [tabindex]=\"!i && !j ? 0 : -1\"\n (click)=\"onClickToolbarBtn($event, commandItem)\"\n [displayStyle]=\"\n commandItem.displayStyle === 'main'\n ? 'primary'\n : commandItem.displayStyle\n \"\n [ngClass]=\"{\n 'nui-toolbar-primary-item':\n commandItem.displayStyle === 'main'\n }\"\n [icon]=\"commandItem.icon\"\n >\n <span>{{ commandItem.title }}</span>\n </button>\n </ng-template>\n <nui-divider\n *ngIf=\"!last || showMenu\"\n isVertical=\"true\"\n size=\"extra-small\"\n ></nui-divider>\n </ng-template>\n <nui-menu\n displayStyle=\"action\"\n #menuComponent\n [title]=\"menuTitle\"\n *ngIf=\"showMenu\"\n >\n <ng-template ngFor let-menuGroup [ngForOf]=\"menuGroups\">\n <nui-menu-group [header]=\"menuGroup.title\">\n <ng-template ngFor let-menuItem [ngForOf]=\"menuGroup.items\">\n <nui-menu-action\n [type]=\"\n menuItem.isDestructive\n ? 'destructive'\n : 'default'\n \"\n [icon]=\"menuItem.icon\"\n (click)=\"menuItem.actionDone.emit()\"\n >{{ menuItem.title }}\n </nui-menu-action>\n </ng-template>\n </nui-menu-group>\n </ng-template>\n </nui-menu>\n <ng-container>\n <nui-toolbar-message\n *ngIf=\"allItemsHidden && !showMenu && !noEmptyMessage\"\n >\n <ng-container *ngIf=\"selectionEnabled\" i18n\n >No actions available for this selection</ng-container\n >\n <ng-container *ngIf=\"!selectionEnabled\" i18n\n >No actions available</ng-container\n >\n </nui-toolbar-message>\n <ng-content select=\"nui-toolbar-message\"></ng-content>\n </ng-container>\n </div>\n <div class=\"nui-toolbar-content__embedded\">\n <ng-container *ngIf=\"selectionEnabled\">\n <div class=\"nui-toolbar-content__select\">\n {{ handleSelectionState() }}\n </div>\n </ng-container>\n <ng-content></ng-content>\n <ng-content select=\".nui-toolbar-embedded\"></ng-content>\n </div>\n</div>\n", styles: [".nui .nui-toolbar{position:relative;transition:background-color ease .2s;padding:0 15px}.nui .nui-toolbar--shadowed{box-shadow:inset 0 -1px 0 0 var(--nui-color-line-default, #d9d9d9)}.nui .nui-toolbar--active{background-color:var(--nui-color-selected,rgba(0, 196, 210, .1))}.nui .nui-toolbar-content{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between;transition:visibility .25s;padding:5px 0}.nui .nui-toolbar-content__embedded{display:flex}.nui .nui-toolbar-content__embedded>div{white-space:nowrap}.nui .nui-toolbar-content__dynamic{display:flex;flex-direction:row;flex-shrink:0}.nui .nui-toolbar-content__dynamic .nui-button.btn-destructive{border-color:transparent}.nui .nui-toolbar-content__dynamic .nui-button.btn-destructive:hover,.nui .nui-toolbar-content__dynamic .nui-button.btn-destructive:active,.nui .nui-toolbar-content__dynamic .nui-button.btn-destructive:focus{border-color:transparent;background-color:var(--nui-color-bg-transparent-hover,rgba(17, 17, 17, .05))}.nui .nui-toolbar-content__dynamic nui-divider{flex-shrink:0}.nui .nui-toolbar-content__select{display:flex;align-items:center;flex-shrink:0;font-size:11px;font-weight:600;padding-left:10px}.nui .nui-toolbar-group-primary{display:flex}.nui .nui-toolbar-primary-item{margin-right:5px}.nui .nui-toolbar-embedded{margin-left:15px;display:flex;flex-wrap:nowrap}.nui .nui-toolbar-divider{display:table-cell;padding:0 5px}.nui .nui-toolbar-divider-line{width:1px;background:var(--nui-color-line-default,#d9d9d9);height:30px}.nui .nui-toolbar nui-toolbar-message{padding:5px 10px;margin-bottom:2px}\n"] }]
25256
+ }, encapsulation: ViewEncapsulation.None, providers: [ToolbarKeyboardService], template: "<div\n class=\"nui-toolbar-content\"\n nuiResizeObserver\n (containerResize)=\"moveToolbarItems()\"\n #toolbarContainer\n>\n <div class=\"nui-toolbar-content__dynamic\">\n <ng-template\n ngFor\n let-i=\"index\"\n let-commandGroup\n let-last=\"last\"\n [ngForOf]=\"commandGroups\"\n >\n <ng-template\n ngFor\n let-commandItem\n let-j=\"index\"\n [ngForOf]=\"commandGroup.items\"\n >\n <!-- (!i && !j) is used for set focusable state to first element first group -->\n <button\n nui-button\n type=\"button\"\n #toolbarButtons\n [tabindex]=\"!i && !j ? 0 : -1\"\n (click)=\"onClickToolbarBtn($event, commandItem)\"\n [displayStyle]=\"\n commandItem.displayStyle === 'main'\n ? 'primary'\n : commandItem.displayStyle\n \"\n [ngClass]=\"{\n 'nui-toolbar-primary-item':\n commandItem.displayStyle === 'main'\n }\"\n [icon]=\"commandItem.icon\"\n >\n <span>{{ commandItem.title }}</span>\n </button>\n </ng-template>\n <nui-divider\n *ngIf=\"!last || showMenu\"\n isVertical=\"true\"\n size=\"extra-small\"\n ></nui-divider>\n </ng-template>\n <nui-menu\n displayStyle=\"action\"\n #menuComponent\n [appendToBody]=\"appendToBody\"\n [title]=\"menuTitle\"\n *ngIf=\"showMenu\"\n >\n <ng-template ngFor let-menuGroup [ngForOf]=\"menuGroups\">\n <nui-menu-group [header]=\"menuGroup.title\">\n <ng-template ngFor let-menuItem [ngForOf]=\"menuGroup.items\">\n <nui-menu-action\n [type]=\"\n menuItem.isDestructive\n ? 'destructive'\n : 'default'\n \"\n [icon]=\"menuItem.icon\"\n (click)=\"menuItem.actionDone.emit()\"\n >{{ menuItem.title }}\n </nui-menu-action>\n </ng-template>\n </nui-menu-group>\n </ng-template>\n </nui-menu>\n <ng-container>\n <nui-toolbar-message\n *ngIf=\"allItemsHidden && !showMenu && !noEmptyMessage\"\n >\n <ng-container *ngIf=\"selectionEnabled\" i18n\n >No actions available for this selection</ng-container\n >\n <ng-container *ngIf=\"!selectionEnabled\" i18n\n >No actions available</ng-container\n >\n </nui-toolbar-message>\n <ng-content select=\"nui-toolbar-message\"></ng-content>\n </ng-container>\n </div>\n <div class=\"nui-toolbar-content__embedded\">\n <ng-container *ngIf=\"selectionEnabled\">\n <div class=\"nui-toolbar-content__select\">\n {{ handleSelectionState() }}\n </div>\n </ng-container>\n <ng-content></ng-content>\n <ng-content select=\".nui-toolbar-embedded\"></ng-content>\n </div>\n</div>\n", styles: [".nui .nui-toolbar{position:relative;transition:background-color ease .2s;padding:0 15px}.nui .nui-toolbar--shadowed{box-shadow:inset 0 -1px 0 0 var(--nui-color-line-default, #d9d9d9)}.nui .nui-toolbar--active{background-color:var(--nui-color-selected,rgba(0, 196, 210, .1))}.nui .nui-toolbar-content{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between;transition:visibility .25s;padding:5px 0}.nui .nui-toolbar-content__embedded{display:flex}.nui .nui-toolbar-content__embedded>div{white-space:nowrap}.nui .nui-toolbar-content__dynamic{display:flex;flex-direction:row;flex-shrink:0}.nui .nui-toolbar-content__dynamic .nui-button.btn-destructive{border-color:transparent}.nui .nui-toolbar-content__dynamic .nui-button.btn-destructive:hover,.nui .nui-toolbar-content__dynamic .nui-button.btn-destructive:active,.nui .nui-toolbar-content__dynamic .nui-button.btn-destructive:focus{border-color:transparent;background-color:var(--nui-color-bg-transparent-hover,rgba(17, 17, 17, .05))}.nui .nui-toolbar-content__dynamic nui-divider{flex-shrink:0}.nui .nui-toolbar-content__select{display:flex;align-items:center;flex-shrink:0;font-size:11px;font-weight:600;padding-left:10px}.nui .nui-toolbar-group-primary{display:flex}.nui .nui-toolbar-primary-item{margin-right:5px}.nui .nui-toolbar-embedded{margin-left:15px;display:flex;flex-wrap:nowrap}.nui .nui-toolbar-divider{display:table-cell;padding:0 5px}.nui .nui-toolbar-divider-line{width:1px;background:var(--nui-color-line-default,#d9d9d9);height:30px}.nui .nui-toolbar nui-toolbar-message{padding:5px 10px;margin-bottom:2px}\n"] }]
25098
25257
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: LoggerService }, { type: i0.NgZone }, { type: ToolbarKeyboardService }]; }, propDecorators: { groups: [{
25099
25258
  type: ContentChildren,
25100
25259
  args: [ToolbarGroupComponent]
@@ -25118,6 +25277,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
25118
25277
  args: ["toolbarContainer"]
25119
25278
  }], noEmptyMessage: [{
25120
25279
  type: Input
25280
+ }], appendToBody: [{
25281
+ type: Input
25121
25282
  }], menu: [{
25122
25283
  type: ViewChild,
25123
25284
  args: ["menuComponent"]
@@ -26555,6 +26716,9 @@ class ThemeSwitchService {
26555
26716
  .subscribe((route) => {
26556
26717
  const showThemeSwitcher = (route.snapshot.data || {})
26557
26718
  .showThemeSwitcher;
26719
+ if (typeof showThemeSwitcher === "undefined") {
26720
+ return;
26721
+ }
26558
26722
  this.showThemeSwitcherSubject.next(showThemeSwitcher);
26559
26723
  if (showThemeSwitcher) {
26560
26724
  /** Case when route is changed on the same page (see on breadcrumb component docs page) */
@@ -27648,5 +27812,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
27648
27812
  * Generated bundle index. Do not edit.
27649
27813
  */
27650
27814
 
27651
- export { ANNOUNCER_CLOSE_MESSAGE, ANNOUNCER_OPEN_MESSAGE_SUFFIX, OverlayArrowComponent as ArrowComponent, BaseSelect, BreadcrumbComponent, BreadcrumbStateService, BusyComponent, ButtonComponent, ButtonIcon, ButtonSizeType, CHECKBOX_KEYDOWN_EVENT, CLOSE_POPOVER_EVENT, COMPLETE_RESIZE_EVENT, CardComponent, CardGroupComponent, CheckboxChangeEvent, CheckboxComponent, CheckboxGroupComponent, CheckboxStatus, ChipComponent, ChipsComponent, ChipsOverflowComponent, ClickFilterDirective, ClickInterceptorDirective, ClientSideDataSource, ClipboardDirective, ComboboxComponent, ComboboxV2Component, ComboboxV2OptionHighlightDirective, ConfirmationDialogComponent, ContentComponent, CopyTextComponent, CustomValidationMessageComponent, DEFAULT_INTERACTIVE_ELEMENTS, DEFAULT_TABLE_HEADER_OFFSET, DEMO_PATH_TOKEN, DOCUMENT_CLICK_EVENT, DataFilterService, DataSourceFeatures, DataSourceService, DatePickerComponent, DateTimePickerComponent, DialogBackdropComponent, DialogComponent, DialogFooterComponent, DialogHeaderComponent, DialogService, DialogStackService, DividerComponent, DndDropTargetDirective, DomUtilService, DragAndDropService, DraggableComponent, DraggableDirective, DroppableComponent, DroppableDirective, EdgeDetectionService, ErrorStateMatcher, EventBus, EventBusService, EventDefinition, EventPropagationService, ExampleCodeComponent, ExampleWrapperComponent, ExpanderComponent, FIXED_WIDTH_CLASS, FormFieldComponent, FreetypeQueryBuilderComponent, HighlightPipe, HistoryStorage, IEvent, IconCategory, IconCategoryNamespace, IconComponent, IconService, IconSeverity, IconState, IconStatus, IconWidget, ImageComponent, KEYBOARD_CODE, KEY_CODE, LayoutResizerComponent, LimitToPipe, ListService, LocalFilteringDataSource, LogLevel, LoggerService, MapKeyValuePipe, MarkAsSelectedItemDirective, MenuActionComponent, MenuActionType, MenuComponent, MenuGroupComponent, MenuItemBaseComponent, MenuItemComponent, MenuKeyControlService, MenuLinkComponent, MenuOptionComponent, MenuPopupComponent, MenuSwitchComponent, MessageComponent, NUI_ENV_PROVIDER, NUI_ENV_PROVIDER_FACTORY, NUI_SELECT_V2_OPTION_PARENT_COMPONENT, NoopDataSourceService, NotificationService, NuiActiveDialog, NuiBreadcrumbModule, NuiBusyModule, NuiButtonModule, NuiCheckboxModule, NuiChipsModule, NuiCommonModule, NuiContentModule, NuiDatePickerModule, NuiDateTimePickerModule, NuiDialogEvent, NuiDialogModule, NuiDialogRef, NuiDividerModule, NuiDndModule, NuiDocsModule, NuiDragDropModule, NuiEnvironment, NuiExpanderModule, NuiFormFieldControl, NuiFormFieldModule, NuiFreetypeQueryModule, NuiIconModule, NuiImageModule, NuiLayoutModule, NuiMenuModule, NuiMessageModule, NuiOverlayAdditionsModule, NuiOverlayModule, NuiPaginatorModule, NuiPanelModule, NuiPopoverModule, NuiPopupModule, NuiProgressModule, NuiRadioModule, NuiRepeatModule, NuiRiskScoreModule, NuiSearchModule, NuiSelectModule, NuiSelectV2Module, NuiSelectorModule, NuiSorterModule, NuiSpinnerModule, NuiSwitchModule, NuiTableModule, NuiTabsModule, NuiTextboxModule, NuiTimeFrameBarModule, NuiTimeFramePickerModule, NuiTimePickerModule, NuiToastModule, NuiToolbarModule, NuiTooltipModule, NuiValidationMessageModule, NuiValidators, NuiWizardModule, NuiWizardV2Module, OVERLAY_ARROW_SIZE, OVERLAY_CONTAINER, OVERLAY_CONTAINER_CLASS, OVERLAY_DEFAULT_PRIORITY, OVERLAY_ITEM, OVERLAY_PANEL_CLASS, OVERLAY_WITH_POPUP_STYLES_CLASS, OverlayComponent, OverlayContainerService, OverlayCustomContainer, OverlayItemComponent, OverlayPlacement, OverlayPosition, OverlayPositionService, OverlayService, OverlayUtilitiesService, POPOVER_CLOSED_EVENT, POPUP_V2_VIEWPORT_MARGINS_DEFAULT, PaddingOptions, PaginatorComponent, PanelBackgroundColor, PanelComponent, PanelModes, PanelStates, PopoverComponent, PopoverModalComponent, PopoverOverlayPosition, PopupComponent, PopupDeprecatedComponent, PopupToggleDirective, PositionService, ProgressComponent, QuickPickerComponent, RESIZE_DEBOUNCE_TIME, RadioComponent, RadioGroupComponent, RepeatComponent, RepeatItemComponent, RepeatSelectionMode, ResizeDirection, ResizeDirective, ResizeObserverDirective, ResizeUnit, ResizerDirective, RiskScoreComponent, SearchComponent, SearchService, SelectComponent, SelectV2Component, SelectV2OptionComponent, SelectV2OptionGroupComponent, SelectionModel, SelectionType, SelectorComponent, SelectorService, ServerSideDataSource, SetFocusDirective, SheetComponent, SheetGroupComponent, SizeParameters, SliceRangePipe, SorterComponent, SorterDirection, SpinnerComponent, SpinnerSize, SrlcIndicatorComponent, SrlcStage, SwitchComponent, TABLE_ROW_HEIGHT, TabComponent, TabGroupComponent, TabHeadingComponent, TabHeadingCustomTemplateRefDirective, TabHeadingDirective, TabHeadingGroupComponent, TableCellDefDirective, TableCellDirective, TableColumnDefDirective, TableComponent, TableFooterCellDefDirective, TableFooterCellDirective, TableFooterRowComponent, TableFooterRowDefDirective, TableHeaderCellComponent, TableHeaderCellDefDirective, TableHeaderRowComponent, TableHeaderRowDefDirective, TableResizerDirective, TableRowComponent, TableRowDefDirective, TableStateHandlerService, TableStickyHeaderDirective, TableVirtualScrollDirective, TableVirtualScrollHeaderPosition, TableVirtualScrollLinearDirective, TextHighlightOverlayComponent, TextboxComponent, TextboxNumberComponent, ThemeSwitchService, ThemeSwitcherComponent, TimeFrameBarComponent, TimeFrameFormatPipe, TimeFramePickerComponent, TimePickerComponent, TimeframeService, ToastComponent, ToastContainerService, ToastDirective, ToastService, ToolbarComponent, ToolbarGroupComponent, ToolbarItemComponent, ToolbarItemDisplayStyle, ToolbarItemType, ToolbarMessageComponent, ToolbarSplitterComponent, TooltipComponent, TooltipDirective, TransientCacheService, UnitBase, UnitConversionPipe, UnitConversionService, UtilService, ValidationMessageComponent, VirtualViewportManager, WIZARD_CONFIG, WIZARD_CONFIG_DEFAULT, WIZARD_STEP_STATE_DEFAULT_CONFIG, WizardComponent, WizardDirective, WizardFooterComponent, WizardHorizontalComponent, WizardStepComponent, WizardStepFooterDirective, WizardStepHeaderComponent, WizardStepLabelDirective, WizardStepV2Component, WizardStepperNextDirective, WizardStepperPreviousDirective, WizardVerticalComponent, ZoomContentDirective, buttonConstants, complexScrollStrategyFactory, datePickerDateFormats, datePickerDefaults, defaultFilters, expand, getOverlayPositions, imagesPresetToken, immutableSet, isTargetAnAnchor, isTargetNotAnAnchor, makePredicate, nameof, popoverConstants, regexpValidation, removeErrors, resizeDirectionHelpers, scrollConstants, traverse, unitConversionConstants, unitConversionToken, uuid };
27815
+ export { ANNOUNCER_CLOSE_MESSAGE, ANNOUNCER_OPEN_MESSAGE_SUFFIX, OverlayArrowComponent as ArrowComponent, BaseSelect, BreadcrumbComponent, BreadcrumbStateService, BusyComponent, ButtonComponent, ButtonIcon, ButtonSizeType, CHECKBOX_KEYDOWN_EVENT, CLOSE_POPOVER_EVENT, COMPLETE_RESIZE_EVENT, CardComponent, CardGroupComponent, CheckboxChangeEvent, CheckboxComponent, CheckboxGroupComponent, CheckboxStatus, ChipComponent, ChipsComponent, ChipsOverflowComponent, ClickFilterDirective, ClickInterceptorDirective, ClientSideDataSource, ClipboardDirective, ComboboxComponent, ComboboxV2Component, ComboboxV2OptionHighlightDirective, ConfirmationDialogComponent, ContentComponent, CopyTextComponent, CustomValidationMessageComponent, DEFAULT_INTERACTIVE_ELEMENTS, DEFAULT_TABLE_HEADER_OFFSET, DEMO_PATH_TOKEN, DOCUMENT_CLICK_EVENT, DataFilterService, DataSourceFeatures, DataSourceService, DatePickerComponent, DateTimePickerComponent, DialogBackdropComponent, DialogComponent, DialogFooterComponent, DialogHeaderComponent, DialogService, DialogStackService, DividerComponent, DndDropTargetDirective, DomUtilService, DragAndDropService, DraggableComponent, DraggableDirective, DroppableComponent, DroppableDirective, EdgeDetectionService, ErrorStateMatcher, EventBus, EventBusService, EventDefinition, EventPropagationService, ExampleCodeComponent, ExampleWrapperComponent, ExpanderComponent, FIXED_WIDTH_CLASS, FormFieldComponent, FreetypeQueryBuilderComponent, HighlightPipe, HistoryStorage, IEvent, IconCategory, IconCategoryNamespace, IconComponent, IconService, IconSeverity, IconState, IconStatus, IconWidget, ImageComponent, KEYBOARD_CODE, KEY_CODE, LayoutResizerComponent, LimitToPipe, ListService, LocalFilteringDataSource, LogLevel, LoggerService, MapKeyValuePipe, MarkAsSelectedItemDirective, MenuActionComponent, MenuActionType, MenuComponent, MenuGroupComponent, MenuItemBaseComponent, MenuItemComponent, MenuKeyControlService, MenuLinkComponent, MenuOptionComponent, MenuPopupComponent, MenuSwitchComponent, MessageComponent, NUI_ENV_PROVIDER, NUI_ENV_PROVIDER_FACTORY, NUI_SELECT_V2_OPTION_PARENT_COMPONENT, NoopDataSourceService, NotificationService, NuiActiveDialog, NuiBreadcrumbModule, NuiBusyModule, NuiButtonModule, NuiCheckboxModule, NuiChipsModule, NuiCommonModule, NuiContentModule, NuiDatePickerModule, NuiDateTimePickerModule, NuiDialogEvent, NuiDialogModule, NuiDialogRef, NuiDividerModule, NuiDndModule, NuiDocsModule, NuiDragDropModule, NuiEnvironment, NuiExpanderModule, NuiFormFieldControl, NuiFormFieldModule, NuiFreetypeQueryModule, NuiIconModule, NuiImageModule, NuiLayoutModule, NuiMenuModule, NuiMessageModule, NuiOverlayAdditionsModule, NuiOverlayModule, NuiPaginatorModule, NuiPanelModule, NuiPopoverModule, NuiPopupModule, NuiProgressModule, NuiRadioModule, NuiRepeatModule, NuiRiskScoreModule, NuiSearchModule, NuiSelectModule, NuiSelectV2Module, NuiSelectorModule, NuiSorterModule, NuiSpinnerModule, NuiSwitchModule, NuiTableModule, NuiTabsModule, NuiTextboxModule, NuiTimeFrameBarModule, NuiTimeFramePickerModule, NuiTimePickerModule, NuiToastModule, NuiToolbarModule, NuiTooltipModule, NuiValidationMessageModule, NuiValidators, NuiWizardModule, NuiWizardV2Module, OVERLAY_ARROW_SIZE, OVERLAY_CONTAINER, OVERLAY_CONTAINER_CLASS, OVERLAY_DEFAULT_PRIORITY, OVERLAY_ITEM, OVERLAY_PANEL_CLASS, OVERLAY_WITH_POPUP_STYLES_CLASS, OverlayComponent, OverlayContainerService, OverlayCustomContainer, OverlayItemComponent, OverlayPlacement, OverlayPosition, OverlayPositionService, OverlayService, OverlayUtilitiesService, POPOVER_CLOSED_EVENT, POPUP_V2_VIEWPORT_MARGINS_DEFAULT, PaddingOptions, PaginatorComponent, PanelBackgroundColor, PanelComponent, PanelModes, PanelStates, PopoverComponent, PopoverModalComponent, PopoverOverlayPosition, PopupComponent, PopupDeprecatedComponent, PopupToggleDirective, PositionService, ProgressComponent, QuickPickerComponent, RESIZE_DEBOUNCE_TIME, RadioComponent, RadioGroupComponent, RepeatComponent, RepeatItemComponent, RepeatSelectionMode, ResizeDirection, ResizeDirective, ResizeObserverDirective, ResizeUnit, ResizerDirective, RiskScoreComponent, SearchComponent, SearchService, SelectComponent, SelectV2Component, SelectV2OptionComponent, SelectV2OptionGroupComponent, SelectionModel, SelectionType, SelectorComponent, SelectorService, ServerSideDataSource, SetFocusDirective, SheetComponent, SheetGroupComponent, SizeParameters, SliceRangePipe, SorterComponent, SorterDirection, SpinnerComponent, SpinnerSize, SrlcIndicatorComponent, SrlcStage, SwitchComponent, TABLE_ROW_HEIGHT, TabComponent, TabGroupComponent, TabHeadingComponent, TabHeadingCustomTemplateRefDirective, TabHeadingDirective, TabHeadingGroupComponent, TableCellDefDirective, TableCellDirective, TableColumnDefDirective, TableComponent, TableFooterCellDefDirective, TableFooterCellDirective, TableFooterRowComponent, TableFooterRowDefDirective, TableHeaderCellComponent, TableHeaderCellDefDirective, TableHeaderRowComponent, TableHeaderRowDefDirective, TableResizerDirective, TableRowComponent, TableRowDefDirective, TableSelectionMode, TableStateHandlerService, TableStickyHeaderDirective, TableVirtualScrollDirective, TableVirtualScrollHeaderPosition, TableVirtualScrollLinearDirective, TextHighlightOverlayComponent, TextboxComponent, TextboxNumberComponent, ThemeSwitchService, ThemeSwitcherComponent, TimeFrameBarComponent, TimeFrameFormatPipe, TimeFramePickerComponent, TimePickerComponent, TimeframeService, ToastComponent, ToastContainerService, ToastDirective, ToastService, ToolbarComponent, ToolbarGroupComponent, ToolbarItemComponent, ToolbarItemDisplayStyle, ToolbarItemType, ToolbarMessageComponent, ToolbarSplitterComponent, TooltipComponent, TooltipDirective, TransientCacheService, UnitBase, UnitConversionPipe, UnitConversionService, UtilService, ValidationMessageComponent, VirtualViewportManager, WIZARD_CONFIG, WIZARD_CONFIG_DEFAULT, WIZARD_STEP_STATE_DEFAULT_CONFIG, WizardComponent, WizardDirective, WizardFooterComponent, WizardHorizontalComponent, WizardStepComponent, WizardStepFooterDirective, WizardStepHeaderComponent, WizardStepLabelDirective, WizardStepV2Component, WizardStepperNextDirective, WizardStepperPreviousDirective, WizardVerticalComponent, ZoomContentDirective, buttonConstants, complexScrollStrategyFactory, datePickerDateFormats, datePickerDefaults, defaultFilters, expand, getOverlayPositions, imagesPresetToken, immutableSet, isTargetAnAnchor, isTargetNotAnAnchor, makePredicate, nameof, popoverConstants, regexpValidation, removeErrors, resizeDirectionHelpers, scrollConstants, traverse, unitConversionConstants, unitConversionToken, uuid };
27652
27816
  //# sourceMappingURL=nova-ui-bits.mjs.map