@rxap/ngx-material-table-select 19.1.0-dev.0 → 21.0.1-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/compodoc/changelog.html +28 -0
- package/compodoc/classes/MockWindowRef.html +3 -4
- package/compodoc/components/TableSelectInputComponent.html +42 -44
- package/compodoc/components/TableSelectWindowComponent.html +106 -146
- package/compodoc/components/WindowTestWrapperComponent.html +9 -11
- package/compodoc/dependencies.html +21 -21
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +740 -680
- package/docs/html/classes/ExtractTableSelectColumnMapMixin.html +2 -2
- package/docs/html/classes/ExtractTableSelectDataSourceMixin.html +2 -2
- package/docs/html/classes/ExtractTableSelectToDisplayMixin.html +2 -2
- package/docs/html/classes/ExtractTableSelectToValueMixin.html +2 -2
- package/docs/html/classes/MockWindowRef.html +20 -20
- package/docs/html/classes/OpenTableSelectWindowDirective.html +6 -6
- package/docs/html/classes/OpenTableSelectWindowMethod.html +2 -2
- package/docs/html/classes/TableSelectControlDirective.html +7 -7
- package/docs/html/classes/TableSelectControlModule.html +2 -2
- package/docs/html/classes/TableSelectInputComponent.html +22 -22
- package/docs/html/classes/TableSelectWindowComponent.html +2 -2
- package/docs/html/classes/WindowTestWrapperComponent.html +3 -3
- package/docs/html/functions/CreateFilterFormProvider.html +1 -1
- package/docs/html/functions/UseTableSelectColumns.html +1 -1
- package/docs/html/functions/UseTableSelectDataSource.html +1 -1
- package/docs/html/functions/UseTableSelectMethod.html +1 -1
- package/docs/html/functions/UseTableSelectToDisplay.html +1 -1
- package/docs/html/functions/UseTableSelectToValue.html +1 -1
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/BooleanColumn.html +2 -2
- package/docs/html/interfaces/DateColumn.html +2 -2
- package/docs/html/interfaces/OpenTableSelectWindowMethodParameters.html +4 -4
- package/docs/html/interfaces/SelectColumn.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/html/types/TableSelectColumn.html +1 -1
- package/docs/html/types/TableSelectColumnMap.html +1 -1
- package/docs/html/types/TableSelectToDisplayFunction.html +1 -1
- package/docs/html/types/TableSelectToValueFunction.html +1 -1
- package/docs/html/variables/TABLE_SELECT_COLUMN_MAP.html +1 -1
- package/docs/html/variables/TABLE_SELECT_DATA_SOURCE.html +1 -1
- package/docs/html/variables/TABLE_SELECT_METHOD.html +1 -1
- package/docs/html/variables/TABLE_SELECT_TO_DISPLAY.html +1 -1
- package/docs/html/variables/TABLE_SELECT_TO_VALUE.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/ExtractTableSelectColumnMapMixin.md +8 -8
- package/docs/markdown/classes/ExtractTableSelectDataSourceMixin.md +13 -13
- package/docs/markdown/classes/ExtractTableSelectToDisplayMixin.md +8 -8
- package/docs/markdown/classes/ExtractTableSelectToValueMixin.md +8 -8
- package/docs/markdown/classes/MockWindowRef.md +39 -41
- package/docs/markdown/classes/OpenTableSelectWindowDirective.md +42 -42
- package/docs/markdown/classes/OpenTableSelectWindowMethod.md +4 -4
- package/docs/markdown/classes/TableSelectControlDirective.md +35 -37
- package/docs/markdown/classes/TableSelectControlModule.md +2 -2
- package/docs/markdown/classes/TableSelectInputComponent.md +36 -36
- package/docs/markdown/classes/TableSelectWindowComponent.md +12 -12
- package/docs/markdown/classes/WindowTestWrapperComponent.md +9 -9
- package/docs/markdown/functions/CreateFilterFormProvider.md +2 -2
- package/docs/markdown/functions/UseTableSelectColumns.md +2 -2
- package/docs/markdown/functions/UseTableSelectDataSource.md +2 -2
- package/docs/markdown/functions/UseTableSelectMethod.md +2 -2
- package/docs/markdown/functions/UseTableSelectToDisplay.md +2 -2
- package/docs/markdown/functions/UseTableSelectToValue.md +2 -2
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/BooleanColumn.md +5 -5
- package/docs/markdown/interfaces/DateColumn.md +6 -6
- package/docs/markdown/interfaces/OpenTableSelectWindowMethodParameters.md +14 -14
- package/docs/markdown/interfaces/SelectColumn.md +5 -5
- package/docs/markdown/type-aliases/TableSelectColumn.md +2 -2
- package/docs/markdown/type-aliases/TableSelectColumnMap.md +2 -2
- package/docs/markdown/type-aliases/TableSelectToDisplayFunction.md +2 -2
- package/docs/markdown/type-aliases/TableSelectToValueFunction.md +2 -2
- package/docs/markdown/variables/TABLE_SELECT_COLUMN_MAP.md +2 -2
- package/docs/markdown/variables/TABLE_SELECT_DATA_SOURCE.md +2 -2
- package/docs/markdown/variables/TABLE_SELECT_METHOD.md +2 -2
- package/docs/markdown/variables/TABLE_SELECT_TO_DISPLAY.md +2 -2
- package/docs/markdown/variables/TABLE_SELECT_TO_VALUE.md +2 -2
- package/docs/wiki/Class.ExtractTableSelectColumnMapMixin.md +7 -7
- package/docs/wiki/Class.ExtractTableSelectDataSourceMixin.md +12 -12
- package/docs/wiki/Class.ExtractTableSelectToDisplayMixin.md +7 -7
- package/docs/wiki/Class.ExtractTableSelectToValueMixin.md +7 -7
- package/docs/wiki/Class.MockWindowRef.md +38 -40
- package/docs/wiki/Class.OpenTableSelectWindowDirective.md +41 -41
- package/docs/wiki/Class.OpenTableSelectWindowMethod.md +3 -3
- package/docs/wiki/Class.TableSelectControlDirective.md +34 -36
- package/docs/wiki/Class.TableSelectControlModule.md +1 -1
- package/docs/wiki/Class.TableSelectInputComponent.md +35 -35
- package/docs/wiki/Class.TableSelectWindowComponent.md +11 -11
- package/docs/wiki/Class.WindowTestWrapperComponent.md +8 -8
- package/docs/wiki/Function.CreateFilterFormProvider.md +1 -1
- package/docs/wiki/Function.UseTableSelectColumns.md +1 -1
- package/docs/wiki/Function.UseTableSelectDataSource.md +1 -1
- package/docs/wiki/Function.UseTableSelectMethod.md +1 -1
- package/docs/wiki/Function.UseTableSelectToDisplay.md +1 -1
- package/docs/wiki/Function.UseTableSelectToValue.md +1 -1
- package/docs/wiki/Interface.BooleanColumn.md +4 -4
- package/docs/wiki/Interface.DateColumn.md +5 -5
- package/docs/wiki/Interface.OpenTableSelectWindowMethodParameters.md +13 -13
- package/docs/wiki/Interface.SelectColumn.md +4 -4
- package/docs/wiki/TypeAlias.TableSelectColumn.md +1 -1
- package/docs/wiki/TypeAlias.TableSelectColumnMap.md +1 -1
- package/docs/wiki/TypeAlias.TableSelectToDisplayFunction.md +1 -1
- package/docs/wiki/TypeAlias.TableSelectToValueFunction.md +1 -1
- package/docs/wiki/Variable.TABLE_SELECT_COLUMN_MAP.md +1 -1
- package/docs/wiki/Variable.TABLE_SELECT_DATA_SOURCE.md +1 -1
- package/docs/wiki/Variable.TABLE_SELECT_METHOD.md +1 -1
- package/docs/wiki/Variable.TABLE_SELECT_TO_DISPLAY.md +1 -1
- package/docs/wiki/Variable.TABLE_SELECT_TO_VALUE.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-ngx-material-table-select.mjs +34 -40
- package/fesm2022/rxap-ngx-material-table-select.mjs.map +1 -1
- package/package.json +60 -59
- package/types/rxap-ngx-material-table-select.d.ts +272 -0
- package/index.d.ts +0 -13
- package/lib/create-filter-form-provider.d.ts +0 -3
- package/lib/decorators.d.ts +0 -17
- package/lib/extract-table-select-column-map.mixin.d.ts +0 -7
- package/lib/extract-table-select-data-source.mixin.d.ts +0 -7
- package/lib/extract-table-select-to-display.mixin.d.ts +0 -7
- package/lib/extract-table-select-to-value.mixin.d.ts +0 -7
- package/lib/open-table-select-window.directive.d.ts +0 -47
- package/lib/open-table-select-window.method.d.ts +0 -55
- package/lib/table-select-control.directive.d.ts +0 -49
- package/lib/table-select-control.module.d.ts +0 -10
- package/lib/table-select-input/table-select-input.component.d.ts +0 -45
- package/lib/table-select-window/table-select-window.component.d.ts +0 -21
- package/lib/table-select-window/window-test-wrapper.d.ts +0 -36
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AsyncPipe, KeyValuePipe, NgClass } from '@angular/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import {
|
|
3
|
+
import { Inject, ChangeDetectionStrategy, Component, inject, INJECTOR, ViewContainerRef, ComponentRef, ViewRef, Injector, ViewChildren, Input, forwardRef, HostBinding, Optional, Self, Injectable, EventEmitter, input, isDevMode, HostListener, Output, Directive, ContentChild, ContentChildren, NgModule } from '@angular/core';
|
|
4
4
|
import * as i7 from '@angular/forms';
|
|
5
5
|
import { FormsModule, ReactiveFormsModule, NgControl } from '@angular/forms';
|
|
6
6
|
import * as i8 from '@angular/material/button';
|
|
@@ -23,13 +23,13 @@ import { ParentControlContainerDirective, ControlValueAccessor, RxapFormControl,
|
|
|
23
23
|
import { FormFieldNoPaddingDirective } from '@rxap/material-directives/form-field';
|
|
24
24
|
import { InputClearButtonDirective } from '@rxap/material-form-system';
|
|
25
25
|
import * as i1 from '@rxap/material-table-system';
|
|
26
|
-
import {
|
|
26
|
+
import { RowAnimation, TableDataSourceDirective, FilterHeaderRowDirective, CheckboxHeaderCellComponent, CheckboxCellComponent, DateCellComponent, BooleanCellComponent, SelectRowService, TableFilterService, RXAP_TABLE_FILTER_FORM_DEFINITION, RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS, TABLE_DATA_SOURCE, RXAP_TABLE_METHOD, TABLE_REMOTE_METHOD_ADAPTER_FACTORY, RXAP_TABLE_FILTER } from '@rxap/material-table-system';
|
|
27
27
|
import { GetFromObjectPipe } from '@rxap/pipes';
|
|
28
28
|
import * as i1$1 from '@rxap/window-system';
|
|
29
29
|
import { RXAP_WINDOW_DATA, RXAP_WINDOW_REF, WindowFooterDirective, RXAP_WINDOW_SETTINGS, WindowService } from '@rxap/window-system';
|
|
30
30
|
import { map, tap as tap$1 } from 'rxjs/operators';
|
|
31
31
|
import * as i1$2 from '@angular/cdk/portal';
|
|
32
|
-
import { ComponentPortal,
|
|
32
|
+
import { ComponentPortal, PortalModule, CdkPortalOutlet } from '@angular/cdk/portal';
|
|
33
33
|
import { Subject, ReplaySubject, tap, Subscription, startWith, delay } from 'rxjs';
|
|
34
34
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
35
35
|
import { UseDataSource, RxapFormSystemError, ExtractFormDefinitionMixin, ExtractControlMixin } from '@rxap/form-system';
|
|
@@ -73,19 +73,18 @@ class TableSelectWindowComponent {
|
|
|
73
73
|
this.windowRef.next(this.selectRows.selectedRows);
|
|
74
74
|
this.close();
|
|
75
75
|
}
|
|
76
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
77
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
76
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: TableSelectWindowComponent, deps: [{ token: RXAP_WINDOW_DATA }, { token: i1.SelectRowService }, { token: RXAP_WINDOW_REF }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
77
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: TableSelectWindowComponent, isStandalone: true, selector: "rxap-table-select-window", providers: [
|
|
78
78
|
SelectRowService,
|
|
79
79
|
TableFilterService,
|
|
80
|
-
], ngImport: i0, template: "<mat-progress-bar *ngIf=\"tableDataSourceDirective.loading$ | async\" mode=\"indeterminate\"></mat-progress-bar>\n<div class=\"table-scroll-container mt-4 overflow-x-auto overscroll-auto\">\n <table #tableDataSourceDirective=\"rxapTableDataSource\"\n [id]=\"id ?? 'table-select'\"\n [paginator]=\"paginator\"\n [parameters]=\"data.parameters\"\n mat-table\n matSort\n rxap-filter-header-row\n rxapTableDataSource>\n\n <ng-container *ngIf=\"data.multiple\" matColumnDef=\"select\" [sticky]=\"true\">\n <th *matHeaderCellDef class=\"drop-shadow-2xl\" mat-header-cell rxap-checkbox-header-cell></th>\n <td\n *matCellDef=\"let element\"\n [element]=\"element\"\n class=\"drop-shadow-2xl\"\n mat-cell\n rxap-checkbox-cell\n ></td>\n </ng-container>\n\n <ng-container *ngIf=\"hasSomeFilterColumn\">\n\n <ng-container *ngIf=\"data.multiple\" [matColumnDef]=\"'filter__select'\">\n <th *matHeaderCellDef mat-header-cell></th>\n </ng-container>\n\n <ng-container *ngFor=\"let item of data.columns | keyvalue\">\n\n <ng-container *ngIf=\"item.value.filter\">\n\n <ng-container [ngSwitch]=\"item.value.type\">\n\n <ng-container *ngSwitchCase=\"'date'\">\n\n <ng-container [matColumnDef]=\"'filter__' + item.key\">\n <th *matHeaderCellDef mat-header-cell>\n\n </th>\n </ng-container>\n\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'boolean'\">\n\n <ng-container [matColumnDef]=\"'filter__' + item.key\">\n <th *matHeaderCellDef mat-header-cell>\n\n </th>\n </ng-container>\n\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n\n <ng-container [matColumnDef]=\"'filter__' + item.key\">\n <th *matHeaderCellDef mat-header-cell>\n <mat-form-field rxapNoPadding>\n <mat-label i18n>{{ item.value.label }}</mat-label>\n <input\n [formControlName]=\"item.key\"\n [placeholder]=\"'Enter the ' + item.value.label + ' filter'\"\n matInput\n parentControlContainer\n />\n <button mat-icon-button matSuffix rxapInputClearButton>\n <mat-icon>clear</mat-icon>\n </button>\n </mat-form-field>\n </th>\n </ng-container>\n\n </ng-container>\n\n </ng-container>\n\n </ng-container>\n\n <ng-container *ngIf=\"!item.value.filter\">\n <ng-container [matColumnDef]=\"'filter__' + item.key\">\n <th *matHeaderCellDef mat-header-cell>{{ data.showHeader ? '' : item.value.label }}</th>\n </ng-container>\n </ng-container>\n\n </ng-container>\n\n </ng-container>\n\n <ng-container *ngFor=\"let item of data.columns | keyvalue\">\n\n <ng-container [ngSwitch]=\"item.value.type\">\n\n <ng-container *ngSwitchCase=\"'date'\">\n\n <ng-container [matColumnDef]=\"item.key\">\n <th *matHeaderCellDef mat-header-cell mat-sort-header>{{ item.value.label }}</th>\n <td\n *matCellDef=\"let element\"\n [format]=\"item.value['format']\"\n [rxap-date-cell]=\"element | getFromObject:item.key\"\n mat-cell\n ></td>\n </ng-container>\n\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'boolean'\">\n\n <ng-container [matColumnDef]=\"item.key\">\n <th *matHeaderCellDef mat-header-cell mat-sort-header>{{ item.value.label }}</th>\n <td\n *matCellDef=\"let element\"\n [rxap-boolean-cell]=\"element | getFromObject:item.key\"\n mat-cell\n ></td>\n </ng-container>\n\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n\n <ng-container [matColumnDef]=\"item.key\">\n <th *matHeaderCellDef mat-header-cell mat-sort-header>\n {{ item.value.label }}\n </th>\n <td *matCellDef=\"let element\" mat-cell>\n {{ element | getFromObject:item.key }}\n </td>\n </ng-container>\n\n </ng-container>\n\n </ng-container>\n\n </ng-container>\n\n <ng-container *ngIf=\"hasSomeFilterColumn\">\n <tr\n *matHeaderRowDef=\"filterDisplayColumns\"\n class=\"filter-header\"\n mat-header-row\n ></tr>\n </ng-container>\n\n <ng-template [ngIf]=\"data.showHeader\">\n <tr\n *matHeaderRowDef=\"displayColumns\"\n mat-header-row\n ></tr>\n </ng-template>\n\n <tr\n (click)=\"selectRow(element)\"\n *matRowDef=\"let element; columns: displayColumns\"\n [@rowsAnimation]\n class=\"cursor-pointer\"\n mat-row\n ></tr>\n\n </table>\n</div>\n<mat-paginator\n #paginator=\"matPaginator\"\n [pageSizeOptions]=\"[5, 10, 25, 50, 75, 100, 150, 200]\"\n [pageSize]=\"10\"\n></mat-paginator>\n\n<ng-template rxapWindowFooter>\n <div class=\"flex flex-row items-center gap-4\">\n <button (click)=\"close()\" class=\"grow-0\" mat-stroked-button type=\"button\">\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"select()\" *ngIf=\"data.multiple\" [disabled]=\"hasNotSelected$ | async\" class=\"grow-0\" mat-raised-button\n type=\"button\">\n <ng-container i18n>Select</ng-container>\n </button>\n <span *ngIf=\"!data.multiple\" class=\"hint\" i18n>Click on a row to select an entry.</span>\n </div>\n</ng-template>\n", styles: [".filter-header ::ng-deep .mat-form-field .mat-form-field-wrapper{padding-bottom:initial}.filter-header ::ng-deep .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{bottom:0}.hint{font-size:14px;opacity:.5}tr.mat-row{cursor:pointer}tr.mat-row:hover{opacity:.7}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "component", type: i3.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i3.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i3.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "directive", type: TableDataSourceDirective, selector: "table[mat-table][rxapTableDataSource],mat-table[rxapTableDataSource]", inputs: ["rxapTableDataSource", "paginator", "id", "parameters", "dataSource"], exportAs: ["rxapTableDataSource"] }, { kind: "directive", type: FilterHeaderRowDirective, selector: "table[rxap-filter-header-row]", inputs: ["rxap-filter-header-row"] }, { kind: "ngmodule", type: MatSortModule }, { kind: "directive", type: i4.MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i4.MatSortHeader, selector: "[mat-sort-header]", inputs: ["mat-sort-header", "arrowPosition", "start", "disabled", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "component", type: CheckboxHeaderCellComponent, selector: "th[rxap-checkbox-header-cell]" }, { kind: "component", type: CheckboxCellComponent, selector: "td[rxap-checkbox-cell]", inputs: ["element"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i5.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5.MatLabel, selector: "mat-label" }, { kind: "directive", type: i5.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i6.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i7.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i7.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: ParentControlContainerDirective, selector: "[formControlName][parentControlContainer],[formControlGroup][parentControlContainer]" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i8.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i8.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "directive", type: InputClearButtonDirective, selector: "[rxapInputClearButton]" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i9.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: DateCellComponent, selector: "td[rxap-date-cell]", inputs: ["rxap-date-cell", "format"] }, { kind: "component", type: BooleanCellComponent, selector: "td[rxap-boolean-cell]", inputs: ["rxap-boolean-cell"] }, { kind: "ngmodule", type: MatPaginatorModule }, { kind: "component", type: i10.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "directive", type: WindowFooterDirective, selector: "[rxapWindowFooter]" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: KeyValuePipe, name: "keyvalue" }, { kind: "pipe", type: GetFromObjectPipe, name: "getFromObject" }, { kind: "directive", type: FormFieldNoPaddingDirective, selector: "mat-form-field[rxapNoPadding]" }], animations: [RowAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
80
|
+
], ngImport: i0, template: "@if (tableDataSourceDirective.loading$ | async) {\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n}\n<div class=\"table-scroll-container mt-4 overflow-x-auto overscroll-auto\">\n <table #tableDataSourceDirective=\"rxapTableDataSource\"\n [id]=\"id ?? 'table-select'\"\n [paginator]=\"paginator\"\n [parameters]=\"data.parameters\"\n mat-table\n matSort\n rxap-filter-header-row\n rxapTableDataSource>\n\n @if (data.multiple) {\n <ng-container matColumnDef=\"select\" [sticky]=\"true\">\n <th *matHeaderCellDef class=\"drop-shadow-2xl\" mat-header-cell rxap-checkbox-header-cell></th>\n <td\n *matCellDef=\"let element\"\n [element]=\"element\"\n class=\"drop-shadow-2xl\"\n mat-cell\n rxap-checkbox-cell\n ></td>\n </ng-container>\n }\n\n @if (hasSomeFilterColumn) {\n @if (data.multiple) {\n <ng-container [matColumnDef]=\"'filter__select'\">\n <th *matHeaderCellDef mat-header-cell></th>\n </ng-container>\n }\n @for (item of data.columns | keyvalue; track item) {\n @if (item.value.filter) {\n @switch (item.value.type) {\n @case ('date') {\n <ng-container [matColumnDef]=\"'filter__' + item.key\">\n <th *matHeaderCellDef mat-header-cell>\n </th>\n </ng-container>\n }\n @case ('boolean') {\n <ng-container [matColumnDef]=\"'filter__' + item.key\">\n <th *matHeaderCellDef mat-header-cell>\n </th>\n </ng-container>\n }\n @default {\n <ng-container [matColumnDef]=\"'filter__' + item.key\">\n <th *matHeaderCellDef mat-header-cell>\n <mat-form-field rxapNoPadding>\n <mat-label i18n>{{ item.value.label }}</mat-label>\n <input\n [formControlName]=\"item.key\"\n [placeholder]=\"'Enter the ' + item.value.label + ' filter'\"\n matInput\n parentControlContainer\n />\n <button mat-icon-button matSuffix rxapInputClearButton>\n <mat-icon>clear</mat-icon>\n </button>\n </mat-form-field>\n </th>\n </ng-container>\n }\n }\n }\n @if (!item.value.filter) {\n <ng-container [matColumnDef]=\"'filter__' + item.key\">\n <th *matHeaderCellDef mat-header-cell>{{ data.showHeader ? '' : item.value.label }}</th>\n </ng-container>\n }\n }\n }\n\n @for (item of data.columns | keyvalue; track item) {\n @switch (item.value.type) {\n @case ('date') {\n <ng-container [matColumnDef]=\"item.key\">\n <th *matHeaderCellDef mat-header-cell mat-sort-header>{{ item.value.label }}</th>\n <td\n *matCellDef=\"let element\"\n [format]=\"item.value['format']\"\n [rxap-date-cell]=\"element | getFromObject:item.key\"\n mat-cell\n ></td>\n </ng-container>\n }\n @case ('boolean') {\n <ng-container [matColumnDef]=\"item.key\">\n <th *matHeaderCellDef mat-header-cell mat-sort-header>{{ item.value.label }}</th>\n <td\n *matCellDef=\"let element\"\n [rxap-boolean-cell]=\"element | getFromObject:item.key\"\n mat-cell\n ></td>\n </ng-container>\n }\n @default {\n <ng-container [matColumnDef]=\"item.key\">\n <th *matHeaderCellDef mat-header-cell mat-sort-header>\n {{ item.value.label }}\n </th>\n <td *matCellDef=\"let element\" mat-cell>\n {{ element | getFromObject:item.key }}\n </td>\n </ng-container>\n }\n }\n }\n\n @if (hasSomeFilterColumn) {\n <tr\n *matHeaderRowDef=\"filterDisplayColumns\"\n class=\"filter-header\"\n mat-header-row\n ></tr>\n }\n\n @if (data.showHeader) {\n <tr\n *matHeaderRowDef=\"displayColumns\"\n mat-header-row\n ></tr>\n }\n\n <tr\n (click)=\"selectRow(element)\"\n *matRowDef=\"let element; columns: displayColumns\"\n [@rowsAnimation]\n class=\"cursor-pointer\"\n mat-row\n ></tr>\n\n </table>\n</div>\n<mat-paginator\n #paginator=\"matPaginator\"\n [pageSizeOptions]=\"[5, 10, 25, 50, 75, 100, 150, 200]\"\n [pageSize]=\"10\"\n></mat-paginator>\n\n<ng-template rxapWindowFooter>\n <div class=\"flex flex-row items-center gap-4\">\n <button (click)=\"close()\" class=\"grow-0\" mat-stroked-button type=\"button\">\n <ng-container i18n>Cancel</ng-container>\n </button>\n @if (data.multiple) {\n <button (click)=\"select()\" [disabled]=\"hasNotSelected$ | async\" class=\"grow-0\" mat-raised-button\n type=\"button\">\n <ng-container i18n>Select</ng-container>\n </button>\n }\n @if (!data.multiple) {\n <span class=\"hint\" i18n>Click on a row to select an entry.</span>\n }\n </div>\n</ng-template>\n", styles: [".filter-header ::ng-deep .mat-form-field .mat-form-field-wrapper{padding-bottom:initial}.filter-header ::ng-deep .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{bottom:0}.hint{font-size:14px;opacity:.5}tr.mat-row{cursor:pointer}tr.mat-row:hover{opacity:.7}\n"], dependencies: [{ kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "component", type: i3.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i3.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i3.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "directive", type: TableDataSourceDirective, selector: "table[mat-table][rxapTableDataSource],mat-table[rxapTableDataSource]", inputs: ["rxapTableDataSource", "paginator", "id", "parameters", "dataSource"], exportAs: ["rxapTableDataSource"] }, { kind: "directive", type: FilterHeaderRowDirective, selector: "table[rxap-filter-header-row]", inputs: ["rxap-filter-header-row"] }, { kind: "ngmodule", type: MatSortModule }, { kind: "directive", type: i4.MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i4.MatSortHeader, selector: "[mat-sort-header]", inputs: ["mat-sort-header", "arrowPosition", "start", "disabled", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "component", type: CheckboxHeaderCellComponent, selector: "th[rxap-checkbox-header-cell]" }, { kind: "component", type: CheckboxCellComponent, selector: "td[rxap-checkbox-cell]", inputs: ["element"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i5.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5.MatLabel, selector: "mat-label" }, { kind: "directive", type: i5.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i6.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i7.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i7.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: ParentControlContainerDirective, selector: "[formControlName][parentControlContainer],[formControlGroup][parentControlContainer]" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i8.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i8.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: InputClearButtonDirective, selector: "[rxapInputClearButton]" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i9.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: DateCellComponent, selector: "td[rxap-date-cell]", inputs: ["rxap-date-cell", "format"] }, { kind: "component", type: BooleanCellComponent, selector: "td[rxap-boolean-cell]", inputs: ["rxap-boolean-cell"] }, { kind: "ngmodule", type: MatPaginatorModule }, { kind: "component", type: i10.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "directive", type: WindowFooterDirective, selector: "[rxapWindowFooter]" }, { kind: "directive", type: FormFieldNoPaddingDirective, selector: "mat-form-field[rxapNoPadding]" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: KeyValuePipe, name: "keyvalue" }, { kind: "pipe", type: GetFromObjectPipe, name: "getFromObject" }], animations: [RowAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
81
81
|
}
|
|
82
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
82
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: TableSelectWindowComponent, decorators: [{
|
|
83
83
|
type: Component,
|
|
84
84
|
args: [{ selector: 'rxap-table-select-window', changeDetection: ChangeDetectionStrategy.OnPush, animations: [RowAnimation], providers: [
|
|
85
85
|
SelectRowService,
|
|
86
86
|
TableFilterService,
|
|
87
87
|
], imports: [
|
|
88
|
-
NgIf,
|
|
89
88
|
MatProgressBarModule,
|
|
90
89
|
MatTableModule,
|
|
91
90
|
TableDataSourceDirective,
|
|
@@ -93,10 +92,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImpo
|
|
|
93
92
|
MatSortModule,
|
|
94
93
|
CheckboxHeaderCellComponent,
|
|
95
94
|
CheckboxCellComponent,
|
|
96
|
-
NgFor,
|
|
97
|
-
NgSwitch,
|
|
98
|
-
NgSwitchCase,
|
|
99
|
-
NgSwitchDefault,
|
|
100
95
|
MatFormFieldModule,
|
|
101
96
|
MatInputModule,
|
|
102
97
|
FormsModule,
|
|
@@ -112,8 +107,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImpo
|
|
|
112
107
|
AsyncPipe,
|
|
113
108
|
KeyValuePipe,
|
|
114
109
|
GetFromObjectPipe,
|
|
115
|
-
FormFieldNoPaddingDirective
|
|
116
|
-
], template: "
|
|
110
|
+
FormFieldNoPaddingDirective
|
|
111
|
+
], template: "@if (tableDataSourceDirective.loading$ | async) {\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n}\n<div class=\"table-scroll-container mt-4 overflow-x-auto overscroll-auto\">\n <table #tableDataSourceDirective=\"rxapTableDataSource\"\n [id]=\"id ?? 'table-select'\"\n [paginator]=\"paginator\"\n [parameters]=\"data.parameters\"\n mat-table\n matSort\n rxap-filter-header-row\n rxapTableDataSource>\n\n @if (data.multiple) {\n <ng-container matColumnDef=\"select\" [sticky]=\"true\">\n <th *matHeaderCellDef class=\"drop-shadow-2xl\" mat-header-cell rxap-checkbox-header-cell></th>\n <td\n *matCellDef=\"let element\"\n [element]=\"element\"\n class=\"drop-shadow-2xl\"\n mat-cell\n rxap-checkbox-cell\n ></td>\n </ng-container>\n }\n\n @if (hasSomeFilterColumn) {\n @if (data.multiple) {\n <ng-container [matColumnDef]=\"'filter__select'\">\n <th *matHeaderCellDef mat-header-cell></th>\n </ng-container>\n }\n @for (item of data.columns | keyvalue; track item) {\n @if (item.value.filter) {\n @switch (item.value.type) {\n @case ('date') {\n <ng-container [matColumnDef]=\"'filter__' + item.key\">\n <th *matHeaderCellDef mat-header-cell>\n </th>\n </ng-container>\n }\n @case ('boolean') {\n <ng-container [matColumnDef]=\"'filter__' + item.key\">\n <th *matHeaderCellDef mat-header-cell>\n </th>\n </ng-container>\n }\n @default {\n <ng-container [matColumnDef]=\"'filter__' + item.key\">\n <th *matHeaderCellDef mat-header-cell>\n <mat-form-field rxapNoPadding>\n <mat-label i18n>{{ item.value.label }}</mat-label>\n <input\n [formControlName]=\"item.key\"\n [placeholder]=\"'Enter the ' + item.value.label + ' filter'\"\n matInput\n parentControlContainer\n />\n <button mat-icon-button matSuffix rxapInputClearButton>\n <mat-icon>clear</mat-icon>\n </button>\n </mat-form-field>\n </th>\n </ng-container>\n }\n }\n }\n @if (!item.value.filter) {\n <ng-container [matColumnDef]=\"'filter__' + item.key\">\n <th *matHeaderCellDef mat-header-cell>{{ data.showHeader ? '' : item.value.label }}</th>\n </ng-container>\n }\n }\n }\n\n @for (item of data.columns | keyvalue; track item) {\n @switch (item.value.type) {\n @case ('date') {\n <ng-container [matColumnDef]=\"item.key\">\n <th *matHeaderCellDef mat-header-cell mat-sort-header>{{ item.value.label }}</th>\n <td\n *matCellDef=\"let element\"\n [format]=\"item.value['format']\"\n [rxap-date-cell]=\"element | getFromObject:item.key\"\n mat-cell\n ></td>\n </ng-container>\n }\n @case ('boolean') {\n <ng-container [matColumnDef]=\"item.key\">\n <th *matHeaderCellDef mat-header-cell mat-sort-header>{{ item.value.label }}</th>\n <td\n *matCellDef=\"let element\"\n [rxap-boolean-cell]=\"element | getFromObject:item.key\"\n mat-cell\n ></td>\n </ng-container>\n }\n @default {\n <ng-container [matColumnDef]=\"item.key\">\n <th *matHeaderCellDef mat-header-cell mat-sort-header>\n {{ item.value.label }}\n </th>\n <td *matCellDef=\"let element\" mat-cell>\n {{ element | getFromObject:item.key }}\n </td>\n </ng-container>\n }\n }\n }\n\n @if (hasSomeFilterColumn) {\n <tr\n *matHeaderRowDef=\"filterDisplayColumns\"\n class=\"filter-header\"\n mat-header-row\n ></tr>\n }\n\n @if (data.showHeader) {\n <tr\n *matHeaderRowDef=\"displayColumns\"\n mat-header-row\n ></tr>\n }\n\n <tr\n (click)=\"selectRow(element)\"\n *matRowDef=\"let element; columns: displayColumns\"\n [@rowsAnimation]\n class=\"cursor-pointer\"\n mat-row\n ></tr>\n\n </table>\n</div>\n<mat-paginator\n #paginator=\"matPaginator\"\n [pageSizeOptions]=\"[5, 10, 25, 50, 75, 100, 150, 200]\"\n [pageSize]=\"10\"\n></mat-paginator>\n\n<ng-template rxapWindowFooter>\n <div class=\"flex flex-row items-center gap-4\">\n <button (click)=\"close()\" class=\"grow-0\" mat-stroked-button type=\"button\">\n <ng-container i18n>Cancel</ng-container>\n </button>\n @if (data.multiple) {\n <button (click)=\"select()\" [disabled]=\"hasNotSelected$ | async\" class=\"grow-0\" mat-raised-button\n type=\"button\">\n <ng-container i18n>Select</ng-container>\n </button>\n }\n @if (!data.multiple) {\n <span class=\"hint\" i18n>Click on a row to select an entry.</span>\n }\n </div>\n</ng-template>\n", styles: [".filter-header ::ng-deep .mat-form-field .mat-form-field-wrapper{padding-bottom:initial}.filter-header ::ng-deep .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{bottom:0}.hint{font-size:14px;opacity:.5}tr.mat-row{cursor:pointer}tr.mat-row:hover{opacity:.7}\n"] }]
|
|
117
112
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
118
113
|
type: Inject,
|
|
119
114
|
args: [RXAP_WINDOW_DATA]
|
|
@@ -191,8 +186,8 @@ class WindowTestWrapperComponent {
|
|
|
191
186
|
windowRef.footerPortal$.pipe(tap((portal) => this.footer = portal)).subscribe();
|
|
192
187
|
this.content = new ComponentPortal(this.component, this.viewContainerRef, injector);
|
|
193
188
|
}
|
|
194
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
195
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
189
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowTestWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
190
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: WindowTestWrapperComponent, isStandalone: true, selector: "ng-component", inputs: { component: "component" }, viewQueries: [{ propertyName: "portalOutlet", predicate: CdkPortalOutlet, descendants: true }], ngImport: i0, template: `
|
|
196
191
|
<div class="flex flex-col gap-8">
|
|
197
192
|
<div class="grow">
|
|
198
193
|
<ng-template [cdkPortalOutlet]="content"></ng-template>
|
|
@@ -204,7 +199,7 @@ class WindowTestWrapperComponent {
|
|
|
204
199
|
</div>
|
|
205
200
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i1$2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }] }); }
|
|
206
201
|
}
|
|
207
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
202
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowTestWrapperComponent, decorators: [{
|
|
208
203
|
type: Component,
|
|
209
204
|
args: [{
|
|
210
205
|
template: `
|
|
@@ -219,8 +214,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImpo
|
|
|
219
214
|
</div>
|
|
220
215
|
`,
|
|
221
216
|
imports: [
|
|
222
|
-
PortalModule
|
|
223
|
-
NgIf,
|
|
217
|
+
PortalModule
|
|
224
218
|
]
|
|
225
219
|
}]
|
|
226
220
|
}], propDecorators: { component: [{
|
|
@@ -333,22 +327,22 @@ class TableSelectInputComponent extends ControlValueAccessor {
|
|
|
333
327
|
onContainerClick(event) {
|
|
334
328
|
// no op
|
|
335
329
|
}
|
|
336
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
337
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
330
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: TableSelectInputComponent, deps: [{ token: i7.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
331
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: TableSelectInputComponent, isStandalone: true, selector: "rxap-table-select-input", inputs: { required: "required", disabled: "disabled", placeholder: "placeholder" }, host: { properties: { "id": "this.id", "class.floating": "this.shouldLabelFloat" } }, providers: [
|
|
338
332
|
{
|
|
339
333
|
provide: MatFormFieldControl,
|
|
340
334
|
useExisting: forwardRef(() => TableSelectInputComponent),
|
|
341
335
|
},
|
|
342
|
-
], usesInheritance: true, ngImport: i0, template: "<div [ngClass]=\"{ disabled: disabled }\" class=\"mat-select-trigger\">\n
|
|
336
|
+
], usesInheritance: true, ngImport: i0, template: "<div [ngClass]=\"{ disabled: disabled }\" class=\"mat-select-trigger\">\n @if (display || placeholder) {\n <span>{{display ?? placeholder}}</span>\n }\n</div>\n", styles: [":host{display:inline-block;width:100%;outline:none}.rxap-container{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%;height:24px}.disabled{color:#ffffff80;cursor:initial}.mat-select-trigger{overflow:hidden}.mat-select-trigger span{white-space:nowrap}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
343
337
|
}
|
|
344
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
338
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: TableSelectInputComponent, decorators: [{
|
|
345
339
|
type: Component,
|
|
346
340
|
args: [{ selector: 'rxap-table-select-input', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
347
341
|
{
|
|
348
342
|
provide: MatFormFieldControl,
|
|
349
343
|
useExisting: forwardRef(() => TableSelectInputComponent),
|
|
350
344
|
},
|
|
351
|
-
], imports: [NgClass
|
|
345
|
+
], imports: [NgClass], template: "<div [ngClass]=\"{ disabled: disabled }\" class=\"mat-select-trigger\">\n @if (display || placeholder) {\n <span>{{display ?? placeholder}}</span>\n }\n</div>\n", styles: [":host{display:inline-block;width:100%;outline:none}.rxap-container{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%;height:24px}.disabled{color:#ffffff80;cursor:initial}.mat-select-trigger{overflow:hidden}.mat-select-trigger span{white-space:nowrap}\n"] }]
|
|
352
346
|
}], ctorParameters: () => [{ type: i7.NgControl, decorators: [{
|
|
353
347
|
type: Optional
|
|
354
348
|
}, {
|
|
@@ -545,10 +539,10 @@ class OpenTableSelectWindowMethod {
|
|
|
545
539
|
createFilterForm(columns) {
|
|
546
540
|
return CreateFilterFormProvider(columns);
|
|
547
541
|
}
|
|
548
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
549
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
542
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: OpenTableSelectWindowMethod, deps: [{ token: i1$1.WindowService }, { token: INJECTOR }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
543
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: OpenTableSelectWindowMethod }); }
|
|
550
544
|
}
|
|
551
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
545
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: OpenTableSelectWindowMethod, decorators: [{
|
|
552
546
|
type: Injectable
|
|
553
547
|
}], ctorParameters: () => [{ type: i1$1.WindowService }, { type: i0.Injector, decorators: [{
|
|
554
548
|
type: Inject,
|
|
@@ -560,7 +554,7 @@ let OpenTableSelectWindowDirective = class OpenTableSelectWindowDirective {
|
|
|
560
554
|
this.selected = [];
|
|
561
555
|
this.selectedChange = new EventEmitter();
|
|
562
556
|
this._internalId = GenerateRandomString();
|
|
563
|
-
this.multiple = input(false);
|
|
557
|
+
this.multiple = input(false, ...(ngDevMode ? [{ debugName: "multiple" }] : /* istanbul ignore next */ []));
|
|
564
558
|
this.type = 'button';
|
|
565
559
|
// required for the use mixin ExtractDatasourceMixin
|
|
566
560
|
this.dataSourceLoader = inject(DataSourceLoader);
|
|
@@ -674,13 +668,13 @@ let OpenTableSelectWindowDirective = class OpenTableSelectWindowDirective {
|
|
|
674
668
|
}
|
|
675
669
|
}
|
|
676
670
|
}
|
|
677
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
678
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
671
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: OpenTableSelectWindowDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
672
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.9", type: OpenTableSelectWindowDirective, isStandalone: true, selector: "[rxapOpenTableSelectWindow]", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: false, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: false, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: false, isRequired: false, transformFunction: null }, parameters: { classPropertyName: "parameters", publicName: "parameters", isSignal: false, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: false, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: false, isRequired: false, transformFunction: null }, compareWith: { classPropertyName: "compareWith", publicName: "compareWith", isSignal: false, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, toValue: { classPropertyName: "toValue", publicName: "toValue", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { selectedChange: "selectedChange" }, host: { listeners: { "click": "onClick($event)" }, properties: { "type": "this.type", "disabled": "this.disabled" } }, providers: [OpenTableSelectWindowMethod], usesOnChanges: true, ngImport: i0 }); }
|
|
679
673
|
};
|
|
680
674
|
OpenTableSelectWindowDirective = __decorate([
|
|
681
675
|
Mixin(ExtractTableSelectDataSourceMixin, ExtractTableSelectColumnMapMixin, ExtractTableSelectToValueMixin)
|
|
682
676
|
], OpenTableSelectWindowDirective);
|
|
683
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
677
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: OpenTableSelectWindowDirective, decorators: [{
|
|
684
678
|
type: Directive,
|
|
685
679
|
args: [{
|
|
686
680
|
selector: '[rxapOpenTableSelectWindow]',
|
|
@@ -703,7 +697,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImpo
|
|
|
703
697
|
type: Input
|
|
704
698
|
}], compareWith: [{
|
|
705
699
|
type: Input
|
|
706
|
-
}], type: [{
|
|
700
|
+
}], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], type: [{
|
|
707
701
|
type: HostBinding,
|
|
708
702
|
args: ['type']
|
|
709
703
|
}], disabled: [{
|
|
@@ -824,13 +818,13 @@ let TableSelectControlDirective = class TableSelectControlDirective {
|
|
|
824
818
|
this.value = null;
|
|
825
819
|
}
|
|
826
820
|
}
|
|
827
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
828
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
821
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: TableSelectControlDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
822
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: TableSelectControlDirective, isStandalone: true, selector: "mat-form-field[rxapTableSelectControl]", inputs: { multiple: "multiple", openMethod: "openMethod", data: "data", columns: "columns", toValue: "toValue", toDisplay: "toDisplay" }, queries: [{ propertyName: "tableSelectInput", first: true, predicate: TableSelectInputComponent, descendants: true }, { propertyName: "matLabel", first: true, predicate: ["mat-label"], descendants: true }, { propertyName: "openTableSelectWindow", predicate: OpenTableSelectWindowDirective }], usesOnChanges: true, ngImport: i0 }); }
|
|
829
823
|
};
|
|
830
824
|
TableSelectControlDirective = __decorate([
|
|
831
825
|
Mixin(ExtractTableSelectDataSourceMixin, ExtractTableSelectToValueMixin, ExtractTableSelectToDisplayMixin, ExtractTableSelectColumnMapMixin)
|
|
832
826
|
], TableSelectControlDirective);
|
|
833
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
827
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: TableSelectControlDirective, decorators: [{
|
|
834
828
|
type: Directive,
|
|
835
829
|
args: [{
|
|
836
830
|
selector: 'mat-form-field[rxapTableSelectControl]',
|
|
@@ -860,19 +854,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImpo
|
|
|
860
854
|
}] } });
|
|
861
855
|
|
|
862
856
|
class TableSelectControlModule {
|
|
863
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
864
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
857
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: TableSelectControlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
858
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: TableSelectControlModule, imports: [OpenTableSelectWindowDirective,
|
|
865
859
|
TableSelectControlDirective,
|
|
866
860
|
TableSelectInputComponent,
|
|
867
861
|
TableSelectWindowComponent], exports: [OpenTableSelectWindowDirective,
|
|
868
862
|
TableSelectControlDirective,
|
|
869
863
|
TableSelectInputComponent,
|
|
870
864
|
TableSelectWindowComponent] }); }
|
|
871
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
865
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: TableSelectControlModule, providers: [
|
|
872
866
|
OpenTableSelectWindowMethod,
|
|
873
867
|
], imports: [TableSelectWindowComponent] }); }
|
|
874
868
|
}
|
|
875
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
869
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: TableSelectControlModule, decorators: [{
|
|
876
870
|
type: NgModule,
|
|
877
871
|
args: [{
|
|
878
872
|
imports: [
|