@nova-ui/bits 11.12.0-3165 → 11.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6505,7 +6505,7 @@ class TooltipComponent {
6505
6505
  .withViewportMargin(8)
6506
6506
  .withScrollableContainers(scrollableAncestors)
6507
6507
  .withPositions(this.possiblePositions);
6508
- strategy.positionChanges.pipe(takeUntil(this.destroy$)).subscribe(change => {
6508
+ strategy.positionChanges.pipe(skip(1), takeUntil(this.destroy$)).subscribe(change => {
6509
6509
  if (change.scrollableViewProperties.isOverlayClipped && this.isVisible()) {
6510
6510
  // After position changes occur and the overlay is clipped by
6511
6511
  // a parent scrollable then close the tooltip.
@@ -12540,13 +12540,14 @@ class RepeatItemComponent {
12540
12540
  this.nowrap = false;
12541
12541
  this.selected = false;
12542
12542
  this.selectable = false;
12543
+ this.rowClicked = new EventEmitter();
12543
12544
  }
12544
12545
  get role() { return this.selectable ? "option" : "listitem"; }
12545
12546
  }
12546
12547
  RepeatItemComponent.decorators = [
12547
12548
  { type: Component, args: [{
12548
12549
  selector: "nui-repeat-item",
12549
- template: "<li class=\"nui-repeat-item\"\n [ngClass]=\"{'nui-repeat-item--selected': selected,\n 'text-nowrap': nowrap,\n 'nui-repeat-item--clickable': clickable}\"\n tabindex=\"-1\">\n <div class=\"nui-repeat-item__content\">\n <ng-content></ng-content>\n </div>\n</li>\n",
12550
+ template: "<li class=\"nui-repeat-item\"\n [class.nui-repeat-item--selected]=\"selected\"\n [class.text-nowrap]=\"nowrap\"\n [class.nui-repeat-item--clickable]=\"clickable\"\n (click)=\"clickable ? rowClicked.emit($event) : null\"\n tabindex=\"-1\">\n <div class=\"nui-repeat-item__content\">\n <ng-content></ng-content>\n </div>\n</li>\n",
12550
12551
  encapsulation: ViewEncapsulation.None,
12551
12552
  host: { "[attr.role]": "role" },
12552
12553
  styles: ["body>nui-repeat-item.cdk-drag-preview .nui-repeat-item{list-style-type:none}body>nui-repeat-item.cdk-drag-preview .nui-repeat-item__controls-drag-handle{display:none}.nui .nui-repeat-item:active,.nui .nui-repeat-item:focus{outline:none}.nui .nui-repeat-item:hover{background-color:var(--nui-color-bg-secondary,#fafafa)}.nui .nui-repeat-item__content{display:flex}.nui .nui-repeat-item__controls-drag-handle{height:16px}.nui .nui-repeat-item__controls-drag-handle .nui-dnd-handle:hover{cursor:move}.nui .nui-repeat-item__controls-container{padding-left:3px}.nui .nui-repeat-item__controls-container .nui-repeat-item__checkbox .nui-checkbox{display:flex;justify-content:center;width:30px;height:30px}.nui .nui-repeat-item__controls-container .nui-repeat-item__checkbox .nui-checkbox__label:hover{background-color:transparent}.nui .nui-repeat-item__controls-container .nui-repeat-item__checkbox .nui-checkbox__transclude{margin-left:0}.nui .nui-repeat-item__content-container{min-height:30px;flex-grow:1;display:flex;align-items:center;margin-left:5px;margin-right:10px;min-width:0}.nui .nui-repeat-item__actions-container{margin-left:5px;display:flex;align-items:flex-start}.nui .nui-repeat-item__actions-container .btn-action:focus{background-color:transparent}.nui .nui-repeat-item.nui-repeat-item--clickable:not(.nui-repeat-item--selected):hover{background-color:var(--nui-color-bg-secondary,#fafafa)}.nui .nui-repeat-item.nui-repeat-item--selected{background-color:var(--nui-color-selected,rgba(0,196,210,.1));color:var(--nui-color-text-default,#111)}.nui .nui-repeat-item.nui-repeat-item--selected.nui-repeat-item--clickable:hover{background-color:var(--nui-color-selected-hover,rgba(0,196,210,.2))}"]
@@ -12556,7 +12557,8 @@ RepeatItemComponent.propDecorators = {
12556
12557
  clickable: [{ type: Input }],
12557
12558
  nowrap: [{ type: Input }],
12558
12559
  selected: [{ type: Input }],
12559
- selectable: [{ type: Input }]
12560
+ selectable: [{ type: Input }],
12561
+ rowClicked: [{ type: Output }]
12560
12562
  };
12561
12563
 
12562
12564
  /**
@@ -12578,6 +12580,10 @@ class RepeatComponent {
12578
12580
  * This will stretch repeat items full width
12579
12581
  */
12580
12582
  this.width = "100%";
12583
+ /**
12584
+ * Prevent item bodies from capturing clicks
12585
+ */
12586
+ this.preventRowClick = false;
12581
12587
  /**
12582
12588
  * Drag preview class that is applied on the previewed item
12583
12589
  *
@@ -12610,8 +12616,6 @@ class RepeatComponent {
12610
12616
  */
12611
12617
  this.selectionChange = new EventEmitter();
12612
12618
  this.mousedOver = [];
12613
- // Note: workaround to be able to use enum values in template
12614
- this.repeatSelectionMode = RepeatSelectionMode;
12615
12619
  this.selectionHasChanged = false;
12616
12620
  /** Emits when the drop list has been destroyed. */
12617
12621
  this.dropListDestroyed = new Subject();
@@ -12667,21 +12671,37 @@ class RepeatComponent {
12667
12671
  }
12668
12672
  return this._viewportRef;
12669
12673
  }
12670
- get role() { return this.selectionMode !== "none" ? "listbox" : "list"; }
12674
+ get role() {
12675
+ return this.selectionMode !== RepeatSelectionMode.none
12676
+ ? "listbox"
12677
+ : "list";
12678
+ }
12679
+ get ariaMultiselectable() {
12680
+ return this.isModeMulti() || null;
12681
+ }
12671
12682
  ngOnInit() {
12672
12683
  this.intersectionObserver = new IntersectionObserver(this.intersectionObserverCallback);
12673
- this.intersectionObserver.observe(this.elRef.nativeElement);
12674
- if (this.dragPreviewTemplateRef || this.dragHandleTemplateRef || this._reorderable === true) {
12684
+ if (this.elRef.nativeElement instanceof Element) {
12685
+ this.intersectionObserver.observe(this.elRef.nativeElement);
12686
+ }
12687
+ if (this.dragPreviewTemplateRef ||
12688
+ this.dragHandleTemplateRef ||
12689
+ this._reorderable === true) {
12675
12690
  this._draggable = true;
12676
12691
  this.draggableChange.emit(this._draggable);
12677
12692
  }
12678
- this.paddingSize = this.paddingSize in PaddingOptions ? this.paddingSize : PaddingOptions.compact;
12693
+ this.paddingSize =
12694
+ this.paddingSize in PaddingOptions
12695
+ ? this.paddingSize
12696
+ : PaddingOptions.compact;
12679
12697
  if (!this.itemSize && this.virtualScroll) {
12680
12698
  this.logger.error("ERROR: To use virtual scroll feature please set correct value to the 'itemSize' input!");
12681
12699
  }
12682
12700
  // Note: Using empty array as a fallback value to obtain a proper differ factory
12683
12701
  // when the itemsSource is not provided by parent at init.
12684
- this.itemsSourceDiff = this.iterableDiffers.find(this.itemsSource || []).create();
12702
+ this.itemsSourceDiff = this.iterableDiffers
12703
+ .find(this.itemsSource || [])
12704
+ .create();
12685
12705
  }
12686
12706
  ngDoCheck() {
12687
12707
  // Note: In case the input value have changed the CD will not be triggered because
@@ -12732,9 +12752,11 @@ class RepeatComponent {
12732
12752
  case RepeatSelectionMode.radio:
12733
12753
  case RepeatSelectionMode.singleWithRequiredSelection:
12734
12754
  case RepeatSelectionMode.radioWithNonRequiredSelection:
12735
- return (this.selection && _isEqual(item, this.selection[0]));
12755
+ return this.selection && _isEqual(item, this.selection[0]);
12736
12756
  case RepeatSelectionMode.multi:
12737
- return Boolean(this.selection && this.selection.length && this.selection.indexOf(item) !== -1);
12757
+ return Boolean(this.selection &&
12758
+ this.selection.length &&
12759
+ this.selection.indexOf(item) !== -1);
12738
12760
  default:
12739
12761
  return false;
12740
12762
  }
@@ -12745,33 +12767,37 @@ class RepeatComponent {
12745
12767
  * @param item value object that is used in nui-repeat-item
12746
12768
  */
12747
12769
  itemClicked(event, item) {
12748
- if (this.selectionMode === RepeatSelectionMode.none || this.isItemDisabled(item)) {
12770
+ if (this.selectionMode === RepeatSelectionMode.none ||
12771
+ this.isItemDisabled(item)) {
12749
12772
  return;
12750
12773
  }
12751
- else if (this.selectionMode === RepeatSelectionMode.multi) {
12752
- event.preventDefault(); // TODO: add reasoning for this
12774
+ // prevent handling both from row and input
12775
+ event.stopImmediatePropagation();
12776
+ event.stopPropagation();
12777
+ event.preventDefault();
12778
+ if (this.isModeMulti()) {
12753
12779
  this.selectionHasChanged = true;
12754
12780
  this.multiSelectionChanged(item);
12781
+ return;
12755
12782
  }
12756
- else {
12757
- if (this.selectionMode === RepeatSelectionMode.singleWithRequiredSelection ||
12758
- this.selectionMode === RepeatSelectionMode.radio) {
12759
- this.selection = [item];
12783
+ if (this.selectionMode ===
12784
+ RepeatSelectionMode.singleWithRequiredSelection ||
12785
+ this.selectionMode === RepeatSelectionMode.radio) {
12786
+ this.selection = [item];
12787
+ }
12788
+ if (this.selectionMode === RepeatSelectionMode.single ||
12789
+ this.selectionMode ===
12790
+ RepeatSelectionMode.radioWithNonRequiredSelection) {
12791
+ if (this.selection.indexOf(item) !== -1) {
12792
+ this.selection = [];
12760
12793
  }
12761
- if (this.selectionMode === RepeatSelectionMode.single ||
12762
- this.selectionMode === RepeatSelectionMode.radioWithNonRequiredSelection) {
12763
- if (this.selection.indexOf(item) !== -1) {
12764
- this.selection = [];
12765
- }
12766
- else {
12767
- this.selection = [item];
12768
- }
12794
+ else {
12795
+ this.selection = [item];
12769
12796
  }
12770
- this.changeDetector.markForCheck();
12771
- this.selectionHasChanged = true;
12772
- this.selectionChange.emit(this.selection);
12773
- return;
12774
12797
  }
12798
+ this.changeDetector.markForCheck();
12799
+ this.selectionHasChanged = true;
12800
+ this.selectionChange.emit(this.selection);
12775
12801
  }
12776
12802
  /**
12777
12803
  * nui-repeat-item selection change handler
@@ -12782,16 +12808,29 @@ class RepeatComponent {
12782
12808
  this.selection = [...this.selection, item];
12783
12809
  }
12784
12810
  else {
12785
- this.selection = this.selection.filter(selectionItem => selectionItem !== item);
12811
+ this.selection = this.selection.filter((selectionItem) => selectionItem !== item);
12786
12812
  }
12787
12813
  this.selectionChange.emit(this.selection);
12788
12814
  }
12815
+ isModeMulti() {
12816
+ return this.selectionMode === RepeatSelectionMode.multi;
12817
+ }
12818
+ isModeRadio() {
12819
+ return [
12820
+ RepeatSelectionMode.radio,
12821
+ RepeatSelectionMode.radioWithNonRequiredSelection,
12822
+ ].includes(this.selectionMode);
12823
+ }
12789
12824
  /* START - ITEM BEHAVIOUR DECIDERS */
12825
+ isItemClickable(item) {
12826
+ return !this.preventRowClick && !this.isItemDisabled(item);
12827
+ }
12828
+ isItemSelectable(item) {
12829
+ return !this.isItemDisabled(item);
12830
+ }
12790
12831
  isItemDisabled(item) {
12791
- var _a, _b;
12792
- return item.hasOwnProperty(nameof("disabled"))
12793
- ? item.disabled
12794
- : !!((_b = (_a = this.itemConfig) === null || _a === void 0 ? void 0 : _a.isDisabled) === null || _b === void 0 ? void 0 : _b.call(_a, item));
12832
+ var _a, _b, _c;
12833
+ return ((_a = item.disabled) !== null && _a !== void 0 ? _a : !!((_c = (_b = this.itemConfig) === null || _b === void 0 ? void 0 : _b.isDisabled) === null || _c === void 0 ? void 0 : _c.call(_b, item)));
12795
12834
  }
12796
12835
  isItemDraggable(item) {
12797
12836
  var _a, _b, _c;
@@ -12807,13 +12846,18 @@ class RepeatComponent {
12807
12846
  }
12808
12847
  /* END - ITEM BEHAVIOUR DECIDERS */
12809
12848
  initializeCDKDropList() {
12810
- if (!this.virtualScroll && this.dropListArea && this._draggable && !this.dropListRef) {
12849
+ if (!this.virtualScroll &&
12850
+ this.dropListArea &&
12851
+ this._draggable &&
12852
+ !this.dropListRef) {
12811
12853
  this.dropListRef = this.dragDropService.createDropList(this.dropListArea);
12812
12854
  this.dropListRef.disabled = !this._draggable;
12813
12855
  this.dropListRef.data = this.itemsSource;
12814
12856
  // self-destroyed subscription
12815
- this.dropListRef.dropped.pipe(tap((event) => this.itemDropped(event)), takeUntil(this.dropListDestroyed)).subscribe();
12816
- this.dropListRef.withItems(this.draggableElements.map(item => item._dragRef));
12857
+ this.dropListRef.dropped
12858
+ .pipe(tap((event) => this.itemDropped(event)), takeUntil(this.dropListDestroyed))
12859
+ .subscribe();
12860
+ this.dropListRef.withItems(this.draggableElements.map((item) => item._dragRef));
12817
12861
  }
12818
12862
  }
12819
12863
  disposeCDKDropList() {
@@ -12855,15 +12899,15 @@ class RepeatComponent {
12855
12899
  RepeatComponent.decorators = [
12856
12900
  { type: Component, args: [{
12857
12901
  selector: "nui-repeat",
12858
- template: "<ng-template #repeatItems let-item=\"item\" let-itemIndex=\"itemIndex\">\n <nui-repeat-item class=\"repeat-group-item\"\n #drag=cdkDrag\n aria-grabbed=\"supported\"\n cdkDrag\n [cdkDragData]=\"item\"\n [cdkDragPreviewClass]=\"dragPreviewClass\"\n [cdkDragDisabled]=\"!isItemDraggable(item)\"\n (click)=\"itemClicked($event, item)\"\n [clickable]=\"!(selectionMode === repeatSelectionMode.none)\"\n [selectable]=\"!(selectionMode === repeatSelectionMode.none)\"\n [selected]=\"isItemSelected(item) && !isItemDisabled(item)\"\n [ngClass]=\"{\n 'repeat-group-item__disabled': isItemDisabled(item),\n 'nui-dnd-without-drag-handle': isItemDraggable(item) && !dragHandleTemplateRef,\n 'nui-dnd-raised-state': isItemDraggable(item) && mousedOver[itemIndex]\n }\">\n <div *ngIf=\"dragHandleTemplateRef && !virtualScroll\"\n [ngClass]=\"{\n 'hide': !draggable,\n 'invisible': !isItemDraggable(item)\n }\"\n class=\"nui-repeat-item__controls-drag-handle align-self-center\">\n <div cdkDragHandle (mouseover)=\"mousedOver[itemIndex]=true\" (mouseout)=\"mousedOver[itemIndex]=false\" [class.nui-dnd-handle]=\"!drag.disabled\">\n <ng-container [ngTemplateOutlet]=\"dragHandleTemplateRef\" [ngTemplateOutletContext]=\"{item:item}\"></ng-container>\n </div>\n </div>\n <div *ngIf=\"dragPreviewTemplateRef && !virtualScroll\" class=\"nui-repeat-item__controls-drag-handle\">\n <div *cdkDragPreview [class.nui-dnd-preview]=\"!isItemDisabled(item)\">\n <ng-container [ngTemplateOutlet]=\"dragPreviewTemplateRef\" [ngTemplateOutletContext]=\"{item:item}\"></ng-container>\n </div>\n </div>\n <div class=\"nui-repeat-item__controls-container\">\n <nui-checkbox *ngIf=\"selectionMode === repeatSelectionMode.multi\"\n class=\"nui-repeat-item__checkbox\"\n [value]=\"item\"\n [checked]=\"isItemSelected(item)\"\n [disabled]=\"isItemDisabled(item)\"\n (valueChange)=\"itemClicked($event, item)\">\n </nui-checkbox>\n\n <nui-radio *ngIf=\"selectionMode === repeatSelectionMode.radio || selectionMode === repeatSelectionMode.radioWithNonRequiredSelection\"\n class=\"nui-repeat-item__radio\"\n [value]=\"item\"\n [checked]=\"isItemSelected(item)\"\n [disabled]=\"isItemDisabled(item)\">\n </nui-radio>\n </div>\n <div class=\"nui-repeat-item__content-container\">\n <ng-container [ngTemplateOutlet]=\"repeatItemTemplateRef\" [ngTemplateOutletContext]=\"{item:item}\"></ng-container>\n </div>\n <div class=\"nui-repeat-item__actions-container\" *ngIf=\"actionsTemplateRef\">\n <ng-container [ngTemplateOutlet]=\"actionsTemplateRef\"\n [ngTemplateOutletContext]=\"{item:item}\">\n </ng-container>\n </div>\n </nui-repeat-item>\n</ng-template>\n\n<div class=\"nui-repeat nui-repeat__{{paddingSize}}\">\n <div class=\"nui-repeat-header\">\n <ng-content select=\"[repeatHeaderTemplate]\"></ng-content>\n </div>\n <ul #dropListArea class=\"repeat-group\" aria-dropeffect=\"move\">\n <div *ngIf=\"!virtualScroll\">\n <ng-container *ngFor=\"let sourceItem of itemsSource;trackBy: itemConfig?.trackBy;let itemIndex=index\"\n [ngTemplateOutlet]=\"repeatItems\"\n [ngTemplateOutletContext]=\"{item:sourceItem, itemIndex: itemIndex}\"></ng-container>\n </div>\n <cdk-virtual-scroll-viewport style=\"height: 100%\" [itemSize]=\"itemSize\" *ngIf=\"virtualScroll && itemSize\">\n <ng-container *cdkVirtualFor=\"let sourceItem of itemsSource; templateCacheSize: 0\">\n <ng-container [ngTemplateOutlet]=\"repeatItems\" [ngTemplateOutletContext]=\"{item:sourceItem}\"></ng-container>\n </ng-container>\n </cdk-virtual-scroll-viewport>\n </ul>\n</div>\n",
12902
+ template: "<ng-template #repeatItems let-item=\"item\" let-itemIndex=\"itemIndex\">\n <nui-repeat-item\n class=\"repeat-group-item\"\n #drag=\"cdkDrag\"\n cdkDrag\n [cdkDragData]=\"item\"\n [cdkDragPreviewClass]=\"dragPreviewClass\"\n [cdkDragDisabled]=\"!isItemDraggable(item)\"\n (rowClicked)=\"itemClicked($event, item)\"\n [clickable]=\"isItemClickable(item)\"\n [selectable]=\"isItemSelectable(item)\"\n [selected]=\"isItemSelected(item) && !isItemDisabled(item)\"\n [class.repeat-group-item--disabled]=\"isItemDisabled(item)\"\n [class.nui-dnd-without-drag-handle]=\"\n isItemDraggable(item) && !dragHandleTemplateRef\n \"\n [class.nui-dnd-raised-state]=\"\n isItemDraggable(item) && mousedOver[itemIndex]\n \"\n >\n <div\n *ngIf=\"dragHandleTemplateRef && !virtualScroll\"\n [class.hide]=\"!draggable\"\n [class.invisible]=\"!isItemDraggable(item)\"\n class=\"nui-repeat-item__controls-drag-handle align-self-center\"\n >\n <div\n cdkDragHandle\n (mouseover)=\"mousedOver[itemIndex] = true\"\n (mouseout)=\"mousedOver[itemIndex] = false\"\n [class.nui-dnd-handle]=\"!drag.disabled\"\n >\n <ng-container\n [ngTemplateOutlet]=\"dragHandleTemplateRef\"\n [ngTemplateOutletContext]=\"{ item: item }\"\n ></ng-container>\n </div>\n </div>\n <div\n *ngIf=\"dragPreviewTemplateRef && !virtualScroll\"\n class=\"nui-repeat-item__controls-drag-handle\"\n >\n <div\n *cdkDragPreview\n [class.nui-dnd-preview]=\"!isItemDisabled(item)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"dragPreviewTemplateRef\"\n [ngTemplateOutletContext]=\"{ item: item }\"\n ></ng-container>\n </div>\n </div>\n <div class=\"nui-repeat-item__controls-container\">\n <nui-checkbox\n *ngIf=\"isModeMulti()\"\n class=\"nui-repeat-item__checkbox\"\n [value]=\"item\"\n [checked]=\"isItemSelected(item)\"\n [disabled]=\"isItemDisabled(item)\"\n (valueChange)=\"itemClicked($event, item)\"\n >\n </nui-checkbox>\n <nui-radio\n *ngIf=\"isModeRadio()\"\n class=\"nui-repeat-item__radio\"\n [value]=\"item\"\n [checked]=\"isItemSelected(item)\"\n [disabled]=\"isItemDisabled(item)\"\n (click)=\"itemClicked($event, item)\"\n >\n </nui-radio>\n </div>\n <div class=\"nui-repeat-item__content-container\">\n <ng-container\n [ngTemplateOutlet]=\"repeatItemTemplateRef\"\n [ngTemplateOutletContext]=\"{ item: item }\"\n ></ng-container>\n </div>\n <div\n class=\"nui-repeat-item__actions-container\"\n *ngIf=\"actionsTemplateRef\"\n >\n <ng-container\n [ngTemplateOutlet]=\"actionsTemplateRef\"\n [ngTemplateOutletContext]=\"{ item: item }\"\n >\n </ng-container>\n </div>\n </nui-repeat-item>\n</ng-template>\n\n<div class=\"nui-repeat nui-repeat__{{ paddingSize }}\">\n <div class=\"nui-repeat-header\">\n <ng-content select=\"[repeatHeaderTemplate]\"></ng-content>\n </div>\n <ul #dropListArea class=\"repeat-group\" aria-dropeffect=\"move\">\n <div *ngIf=\"!virtualScroll\">\n <ng-container\n *ngFor=\"\n let sourceItem of itemsSource;\n trackBy: itemConfig?.trackBy;\n let itemIndex = index\n \"\n [ngTemplateOutlet]=\"repeatItems\"\n [ngTemplateOutletContext]=\"{\n item: sourceItem,\n itemIndex: itemIndex\n }\"\n ></ng-container>\n </div>\n <cdk-virtual-scroll-viewport\n [itemSize]=\"itemSize\"\n *ngIf=\"virtualScroll && itemSize\"\n >\n <ng-container\n *cdkVirtualFor=\"\n let sourceItem of itemsSource;\n templateCacheSize: 0\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"repeatItems\"\n [ngTemplateOutletContext]=\"{ item: sourceItem }\"\n ></ng-container>\n </ng-container>\n </cdk-virtual-scroll-viewport>\n </ul>\n</div>\n",
12859
12903
  changeDetection: ChangeDetectionStrategy.OnPush,
12860
12904
  encapsulation: ViewEncapsulation.None,
12861
12905
  host: {
12862
12906
  "[class.virtual-scroll-viewport]": "virtualScroll",
12863
12907
  "[attr.role]": "role",
12864
- "[attr.aria-multiselectable]": "selectionMode === repeatSelectionMode.multi || null",
12908
+ "[attr.aria-multiselectable]": "ariaMultiselectable",
12865
12909
  },
12866
- styles: [".nui .nui-repeat{height:inherit}.nui .nui-repeat__normal .nui-repeat-item{padding-top:5px;padding-bottom:5px}.nui .nui-repeat__compact .nui-repeat-item{padding-top:0;padding-bottom:0}.nui .nui-repeat-header{color:var(--nui-color-text-default,#111);background-color:var(--nui-color-bg-light,#fff)}.nui .nui-repeat .repeat-group .nui-repeatitem.nui-repeat-item--clickable:hover:not(.nui-repeat-item--selected){border-color:var(--nui-color-line-default,#d9d9d9)}.nui .nui-repeat .repeat-group-item:first-child .nui-repeat-item{border-top:1px solid;border-top-color:var(--nui-color-line-default,#d9d9d9)}.nui .nui-repeat .repeat-group{margin-bottom:0;padding-left:0;margin-left:0;height:inherit}.nui .nui-repeat .repeat-group-item{position:relative;display:block;color:var(--nui-color-text-default,#111);background-color:var(--nui-color-bg-light,#fff);transition:box-shadow .4s}.nui .nui-repeat .repeat-group-item:first-child{border-top-right-radius:0;border-top-left-radius:0}.nui .nui-repeat .repeat-group-item:last-child{margin-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.nui .nui-repeat .repeat-group-item:hover{cursor:pointer}.nui .nui-repeat .repeat-group-item:hover.nui-dnd-without-drag-handle:not(.cdk-drag-disabled){cursor:move;z-index:1;box-sizing:border-box;box-shadow:0 2px 10px 0 var(--nui-shadow-color,rgba(17,17,17,.3))}.nui .nui-repeat .repeat-group-item__disabled{color:var(--nui-color-text-disabled,rgba(17,17,17,.3))}.nui .nui-repeat .repeat-group-item__disabled:hover{cursor:not-allowed}.nui .nui-repeat .nui-repeat-item{border-bottom:1px solid;border-bottom-color:var(--nui-color-line-default,#d9d9d9)}@supports (-ms-ime-align:auto){.nui .nui-repeat .nui-repeat-item{margin-bottom:.5px}}"]
12910
+ styles: [".nui .nui-repeat{height:inherit}.nui .nui-repeat__normal .nui-repeat-item{padding-top:5px;padding-bottom:5px}.nui .nui-repeat>ul>cdk-virtual-scroll-viewport{height:100%}.nui .nui-repeat__compact .nui-repeat-item{padding-top:0;padding-bottom:0}.nui .nui-repeat-header{color:var(--nui-color-text-default,#111);background-color:var(--nui-color-bg-light,#fff)}.nui .nui-repeat .repeat-group .nui-repeat-item{cursor:auto}.nui .nui-repeat .repeat-group .nui-repeat-item.nui-repeat-item--clickable{cursor:pointer}.nui .nui-repeat .repeat-group .nui-repeat-item.nui-repeat-item--clickable:hover:not(.nui-repeat-item--selected){border-color:var(--nui-color-line-default,#d9d9d9)}.nui .nui-repeat .repeat-group-item:first-child .nui-repeat-item{border-top:1px solid;border-top-color:var(--nui-color-line-default,#d9d9d9)}.nui .nui-repeat .repeat-group{margin-bottom:0;padding-left:0;margin-left:0;height:inherit}.nui .nui-repeat .repeat-group-item{position:relative;display:block;color:var(--nui-color-text-default,#111);background-color:var(--nui-color-bg-light,#fff);transition:box-shadow .4s}.nui .nui-repeat .repeat-group-item:first-child{border-top-right-radius:0;border-top-left-radius:0}.nui .nui-repeat .repeat-group-item:last-child{margin-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.nui .nui-repeat .repeat-group-item:hover{cursor:pointer}.nui .nui-repeat .repeat-group-item:hover.nui-dnd-without-drag-handle:not(.cdk-drag-disabled){cursor:move;z-index:1;box-sizing:border-box;box-shadow:0 2px 10px 0 var(--nui-shadow-color,rgba(17,17,17,.3))}.nui .nui-repeat .repeat-group-item--disabled{color:var(--nui-color-text-disabled,rgba(17,17,17,.3))}.nui .nui-repeat .repeat-group-item--disabled:hover{cursor:not-allowed}.nui .nui-repeat .nui-repeat-item{border-bottom:1px solid;border-bottom-color:var(--nui-color-line-default,#d9d9d9)}@supports (-ms-ime-align:auto){.nui .nui-repeat .nui-repeat-item{margin-bottom:.5px}}"]
12867
12911
  },] }
12868
12912
  ];
12869
12913
  RepeatComponent.ctorParameters = () => [
@@ -12879,6 +12923,7 @@ RepeatComponent.propDecorators = {
12879
12923
  draggableChange: [{ type: Output }],
12880
12924
  reorderableChange: [{ type: Output }],
12881
12925
  width: [{ type: HostBinding, args: ["style.width",] }],
12926
+ preventRowClick: [{ type: Input }],
12882
12927
  repeatItemTemplateRef: [{ type: Input }],
12883
12928
  dragHandleTemplateRef: [{ type: Input }],
12884
12929
  dragPreviewClass: [{ type: Input }],
@@ -17448,7 +17493,8 @@ class PaginatorComponent {
17448
17493
  ngOnChanges(changes) {
17449
17494
  if (changes["total"]
17450
17495
  || changes["page"]
17451
- || changes["adjacent"]) {
17496
+ || changes["adjacent"]
17497
+ || changes["pageSize"]) {
17452
17498
  this.assemble();
17453
17499
  }
17454
17500
  }
@@ -21816,7 +21862,7 @@ class ExampleCodeComponent {
21816
21862
  ngAfterViewInit() {
21817
21863
  // remove wrapping spaces. They might appear due to passing content via ng-content into element
21818
21864
  this.codeElement.nativeElement.innerHTML = this.codeElement.nativeElement.innerHTML.trim();
21819
- hljs.highlightBlock(this.codeElement.nativeElement);
21865
+ hljs.highlightElement(this.codeElement.nativeElement);
21820
21866
  }
21821
21867
  }
21822
21868
  ExampleCodeComponent.decorators = [