@tilde-nlp/ngx-common 8.1.89 → 8.1.90

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.
@@ -4102,7 +4102,6 @@ class MultiFunctionalTableComponent {
4102
4102
  this.paginatorUpdate = new EventEmitter();
4103
4103
  this.exported = new EventEmitter();
4104
4104
  this.selectionChange = this.matSelection.changed.asObservable().pipe(map(() => { return this.matSelection.selected; }));
4105
- this.rangeSelectionApplied = new EventEmitter();
4106
4105
  /** This property will be taken into account only if config.DataSource not set. */
4107
4106
  this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : []));
4108
4107
  this.dataSourceUpdateEffect = effect(() => { this.updateDataSourceData(); }, ...(ngDevMode ? [{ debugName: "dataSourceUpdateEffect" }] : []));
@@ -4252,13 +4251,7 @@ class MultiFunctionalTableComponent {
4252
4251
  if (this.rangeSelectionFrom == null || this.rangeSelectionTo == null) {
4253
4252
  return;
4254
4253
  }
4255
- const start = Math.min(this.rangeSelectionFrom, this.rangeSelectionTo);
4256
- const end = Math.max(this.rangeSelectionFrom, this.rangeSelectionTo);
4257
- const selectedIndexes = [];
4258
- for (let index = start; index <= end; index++) {
4259
- selectedIndexes.push(index);
4260
- }
4261
- this.rangeSelectionApplied.emit(selectedIndexes);
4254
+ this.selection = this.dataSource?.data.slice(this.rangeSelectionFrom - 1, this.rangeSelectionTo);
4262
4255
  }
4263
4256
  onMouseDown(event) {
4264
4257
  if (this.config.disableMouseDragging) {
@@ -4444,7 +4437,7 @@ class MultiFunctionalTableComponent {
4444
4437
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.filterBar = _t.first);
4445
4438
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.paginator = _t.first);
4446
4439
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tableElementRef = _t.first);
4447
- } }, inputs: { config: "config", highlightedElements: "highlightedElements", trackByFn: "trackByFn", highlightedErrorElements: "highlightedErrorElements", selection: "selection", isRowCheckboxAlwaysVisible: "isRowCheckboxAlwaysVisible", disablePreselectedItems: "disablePreselectedItems", data: [1, "data"] }, outputs: { filterBarChange: "filterBarChange", paginatorUpdate: "paginatorUpdate", exported: "exported", selectionChange: "selectionChange", rangeSelectionApplied: "rangeSelectionApplied" }, standalone: false, ngContentSelectors: _c3, decls: 53, vars: 36, consts: [["tableContainer", ""], ["table", ""], ["columnMenu", "matMenu"], ["rangeSelectMenu", "matMenu"], ["wildSearch", ""], ["filterBar", ""], ["fxLayout", "column", "fxLayoutGap", "0.75rem", 3, "ngClass.lt-md"], ["fxLayout", "row", "fxLayout.lt-md", "column", "fxLayoutGap.lt-md", "0.75rem"], ["fxFlex", "", "fxLayout.lt-md", "column", "fxLayoutGap", "0.75rem", "fxLayoutAlign", "start center", "fxLayoutAlign.lt-md", "start start", 1, "action-row"], ["class", "export-data", "mat-stroked-button", "", "color", "accent", 3, "click", 4, "ngIf"], ["fxFlex", "", "fxLayoutGap", "0.5rem", "fxLayoutAlign", "start center", 4, "ngIf"], ["fxLayout", "row", "fxLayoutAlign", "start center", "class", "wild-search-wrapper", 4, "ngIf"], [3, "filterRowVisible", "settings", "filterBarChange", 4, "ngIf"], [1, "table-overflow", 3, "mousedown", "mouseup", "mouseleave", "mousemove"], ["mat-table", "", 3, "dataSource", "trackBy"], [3, "matColumnDef"], ["class", "row-select", "mat-header-cell", "", "disable-export", "", 4, "matHeaderCellDef"], ["class", "row-select", "mat-cell", "", "disable-export", "", 4, "matCellDef"], ["mat-header-row", "", 4, "matHeaderRowDef", "matHeaderRowDefSticky"], ["mat-row", "", 3, "row-clickable", "highlight-error", "highlight", "click", "mouseover", "mouseleave", 4, "matRowDef", "matRowDefColumns"], [4, "ngIf"], [3, "pageSize", "hidePageSize", "showFirstLastButtons", "pageSizeOptions"], [1, "column-select-menu", 3, "click"], [4, "ngFor", "ngForOf"], [1, "column-select-save"], ["mat-flat-button", "", "color", "accent", 3, "click"], [1, "range-select-menu", 3, "click", "keydown"], [1, "range-select-title"], [1, "range-select-inputs"], ["appearance", "outline", 1, "range-select-field"], ["matInput", "", "type", "number", "min", "1", 3, "ngModelChange", "ngModel"], [1, "range-select-apply"], ["mat-stroked-button", "", "color", "accent", 1, "export-data", 3, "click"], [1, "material-icons-outlined"], ["fxFlex", "", "fxLayoutGap", "0.5rem", "fxLayoutAlign", "start center"], ["mat-stroked-button", "", "color", "accent", 3, "click"], [1, "material-icons"], ["class", "clear-filters-wrapper", 4, "ngIf"], [1, "clear-filters-wrapper"], ["mat-icon-button", "", 3, "click"], ["fxLayout", "row", "fxLayoutAlign", "start center", 1, "wild-search-wrapper"], [1, "search-icon", 3, "matTooltip"], ["type", "text", 3, "keyup", "value", "placeholder"], ["mat-icon-button", "", "class", "wild-search-clear-btn", 3, "click", 4, "ngIf"], ["mat-icon-button", "", 1, "wild-search-clear-btn", 3, "click"], [3, "filterBarChange", "filterRowVisible", "settings"], ["mat-header-cell", "", "disable-export", "", 1, "row-select"], [1, "batch-header"], [3, "change", "matTooltip", "disabled", "checked", "indeterminate"], ["class", "range-select-trigger", "mat-icon-button", "", 3, "matTooltip", "matMenuTriggerFor", 4, "ngIf"], ["mat-icon-button", "", 1, "range-select-trigger", 3, "matTooltip", "matMenuTriggerFor"], ["mat-cell", "", "disable-export", "", 1, "row-select"], [3, "matTooltip", "disabled", "checked", "click", "change", 4, "ngIf"], [3, "click", "change", "matTooltip", "disabled", "checked"], ["mat-header-row", ""], ["mat-row", "", 3, "click", "mouseover", "mouseleave"], [1, "column-selector-wrapper"], ["mat-icon-button", "", "color", "accent", 1, "column-selector", 3, "matMenuTriggerFor"], [4, "matNoDataRow"], ["colspan", "99"], [3, "config"], [3, "page", "pageSize", "hidePageSize", "showFirstLastButtons", "pageSizeOptions"], [3, "ngModelChange", "ngModel"]], template: function MultiFunctionalTableComponent_Template(rf, ctx) { if (rf & 1) {
4440
+ } }, inputs: { config: "config", highlightedElements: "highlightedElements", trackByFn: "trackByFn", highlightedErrorElements: "highlightedErrorElements", selection: "selection", isRowCheckboxAlwaysVisible: "isRowCheckboxAlwaysVisible", disablePreselectedItems: "disablePreselectedItems", data: [1, "data"] }, outputs: { filterBarChange: "filterBarChange", paginatorUpdate: "paginatorUpdate", exported: "exported", selectionChange: "selectionChange" }, standalone: false, ngContentSelectors: _c3, decls: 53, vars: 36, consts: [["tableContainer", ""], ["table", ""], ["columnMenu", "matMenu"], ["rangeSelectMenu", "matMenu"], ["wildSearch", ""], ["filterBar", ""], ["fxLayout", "column", "fxLayoutGap", "0.75rem", 3, "ngClass.lt-md"], ["fxLayout", "row", "fxLayout.lt-md", "column", "fxLayoutGap.lt-md", "0.75rem"], ["fxFlex", "", "fxLayout.lt-md", "column", "fxLayoutGap", "0.75rem", "fxLayoutAlign", "start center", "fxLayoutAlign.lt-md", "start start", 1, "action-row"], ["class", "export-data", "mat-stroked-button", "", "color", "accent", 3, "click", 4, "ngIf"], ["fxFlex", "", "fxLayoutGap", "0.5rem", "fxLayoutAlign", "start center", 4, "ngIf"], ["fxLayout", "row", "fxLayoutAlign", "start center", "class", "wild-search-wrapper", 4, "ngIf"], [3, "filterRowVisible", "settings", "filterBarChange", 4, "ngIf"], [1, "table-overflow", 3, "mousedown", "mouseup", "mouseleave", "mousemove"], ["mat-table", "", 3, "dataSource", "trackBy"], [3, "matColumnDef"], ["class", "row-select", "mat-header-cell", "", "disable-export", "", 4, "matHeaderCellDef"], ["class", "row-select", "mat-cell", "", "disable-export", "", 4, "matCellDef"], ["mat-header-row", "", 4, "matHeaderRowDef", "matHeaderRowDefSticky"], ["mat-row", "", 3, "row-clickable", "highlight-error", "highlight", "click", "mouseover", "mouseleave", 4, "matRowDef", "matRowDefColumns"], [4, "ngIf"], [3, "pageSize", "hidePageSize", "showFirstLastButtons", "pageSizeOptions"], [1, "column-select-menu", 3, "click"], [4, "ngFor", "ngForOf"], [1, "column-select-save"], ["mat-flat-button", "", "color", "accent", 3, "click"], [1, "range-select-menu", 3, "click", "keydown"], [1, "range-select-title"], [1, "range-select-inputs"], ["appearance", "outline", 1, "range-select-field"], ["matInput", "", "type", "number", "min", "1", 3, "ngModelChange", "ngModel"], [1, "range-select-apply"], ["mat-stroked-button", "", "color", "accent", 1, "export-data", 3, "click"], [1, "material-icons-outlined"], ["fxFlex", "", "fxLayoutGap", "0.5rem", "fxLayoutAlign", "start center"], ["mat-stroked-button", "", "color", "accent", 3, "click"], [1, "material-icons"], ["class", "clear-filters-wrapper", 4, "ngIf"], [1, "clear-filters-wrapper"], ["mat-icon-button", "", 3, "click"], ["fxLayout", "row", "fxLayoutAlign", "start center", 1, "wild-search-wrapper"], [1, "search-icon", 3, "matTooltip"], ["type", "text", 3, "keyup", "value", "placeholder"], ["mat-icon-button", "", "class", "wild-search-clear-btn", 3, "click", 4, "ngIf"], ["mat-icon-button", "", 1, "wild-search-clear-btn", 3, "click"], [3, "filterBarChange", "filterRowVisible", "settings"], ["mat-header-cell", "", "disable-export", "", 1, "row-select"], [1, "batch-header"], [3, "change", "matTooltip", "disabled", "checked", "indeterminate"], ["class", "range-select-trigger", "mat-icon-button", "", 3, "matTooltip", "matMenuTriggerFor", 4, "ngIf"], ["mat-icon-button", "", 1, "range-select-trigger", 3, "matTooltip", "matMenuTriggerFor"], ["mat-cell", "", "disable-export", "", 1, "row-select"], [3, "matTooltip", "disabled", "checked", "click", "change", 4, "ngIf"], [3, "click", "change", "matTooltip", "disabled", "checked"], ["mat-header-row", ""], ["mat-row", "", 3, "click", "mouseover", "mouseleave"], [1, "column-selector-wrapper"], ["mat-icon-button", "", "color", "accent", 1, "column-selector", 3, "matMenuTriggerFor"], [4, "matNoDataRow"], ["colspan", "99"], [3, "config"], [3, "page", "pageSize", "hidePageSize", "showFirstLastButtons", "pageSizeOptions"], [3, "ngModelChange", "ngModel"]], template: function MultiFunctionalTableComponent_Template(rf, ctx) { if (rf & 1) {
4448
4441
  const _r1 = i0.ɵɵgetCurrentView();
4449
4442
  i0.ɵɵprojectionDef(_c2$1);
4450
4443
  i0.ɵɵelementStart(0, "div", 6)(1, "div", 7)(2, "div", 8);
@@ -4572,8 +4565,6 @@ class MultiFunctionalTableComponent {
4572
4565
  type: Output
4573
4566
  }], selectionChange: [{
4574
4567
  type: Output
4575
- }], rangeSelectionApplied: [{
4576
- type: Output
4577
4568
  }], headerRowDefs: [{
4578
4569
  type: ContentChildren,
4579
4570
  args: [MatHeaderRowDef]