@rxap/material-table-system 14.4.0-dev.0 → 14.4.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/esm2020/lib/table-data-source.directive.mjs +9 -2
- package/esm2020/lib/table-filter/filter-header-row.directive.mjs +13 -4
- package/esm2020/lib/table-row-actions/decorators.mjs +24 -3
- package/esm2020/lib/table-row-actions/table-row-action.directive.mjs +55 -15
- package/esm2020/lib/table-row-actions/table-row-action.method.mjs +16 -6
- package/esm2020/lib/table-row-actions/table-row-actions.module.mjs +6 -3
- package/esm2020/lib/table-row-actions/table-row-header-action.directive.mjs +29 -14
- package/esm2020/lib/table-row-actions/types.mjs +1 -1
- package/esm2020/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.mjs +10 -1
- package/fesm2015/rxap-material-table-system.mjs +161 -46
- package/fesm2015/rxap-material-table-system.mjs.map +1 -1
- package/fesm2020/rxap-material-table-system.mjs +153 -46
- package/fesm2020/rxap-material-table-system.mjs.map +1 -1
- package/lib/table-data-source.directive.d.ts +2 -0
- package/lib/table-filter/filter-header-row.directive.d.ts +2 -1
- package/lib/table-row-actions/decorators.d.ts +39 -1
- package/lib/table-row-actions/table-row-action.directive.d.ts +12 -4
- package/lib/table-row-actions/table-row-action.method.d.ts +3 -0
- package/lib/table-row-actions/table-row-actions.module.d.ts +4 -4
- package/lib/table-row-actions/table-row-header-action.directive.d.ts +5 -3
- package/lib/table-row-actions/types.d.ts +1 -1
- package/package.json +7 -7
- package/_theming.scss +0 -235
|
@@ -11,11 +11,11 @@ import * as i2 from '@angular/common';
|
|
|
11
11
|
import { CommonModule } from '@angular/common';
|
|
12
12
|
import * as i2$1 from '@angular/material/icon';
|
|
13
13
|
import { MatIconModule } from '@angular/material/icon';
|
|
14
|
-
import * as
|
|
14
|
+
import * as i4 from '@angular/material/button';
|
|
15
15
|
import { MatButtonModule, MatButton } from '@angular/material/button';
|
|
16
16
|
import * as i1$1 from '@angular/material/checkbox';
|
|
17
17
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
18
|
-
import * as i4 from '@angular/cdk/table';
|
|
18
|
+
import * as i4$1 from '@angular/cdk/table';
|
|
19
19
|
import { CdkTable } from '@angular/cdk/table';
|
|
20
20
|
import * as i2$2 from '@angular/material/sort';
|
|
21
21
|
import { MatSort } from '@angular/material/sort';
|
|
@@ -27,26 +27,28 @@ import * as i1$2 from '@angular/material/paginator';
|
|
|
27
27
|
import { FormDirective } from '@rxap/forms';
|
|
28
28
|
import { ControlContainer } from '@angular/forms';
|
|
29
29
|
import * as i1$3 from '@angular/router';
|
|
30
|
-
import * as i3
|
|
30
|
+
import * as i3 from '@angular/material/menu';
|
|
31
31
|
import { MatMenuModule } from '@angular/material/menu';
|
|
32
32
|
import * as i6 from '@rxap/directives';
|
|
33
33
|
import { StopPropagationDirectiveModule, BackgroundSizeOptions, BackgroundRepeatOptions, BackgroundPositionOptions, BackgroundImageDirectiveModule } from '@rxap/directives';
|
|
34
34
|
import * as i7 from '@angular/flex-layout/extended';
|
|
35
35
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
36
|
-
import * as i4$
|
|
36
|
+
import * as i4$2 from '@angular/material/slide-toggle';
|
|
37
37
|
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
38
|
-
import * as i3$
|
|
38
|
+
import * as i3$1 from '@angular/flex-layout/flex';
|
|
39
39
|
import * as i6$1 from '@rxap/components';
|
|
40
|
-
import { ConfirmComponentModule, CopyToClipboardModule } from '@rxap/components';
|
|
40
|
+
import { ConfirmComponentModule, CopyToClipboardModule, ConfirmDirective } from '@rxap/components';
|
|
41
41
|
import * as i7$1 from '@angular/material/tooltip';
|
|
42
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
42
|
+
import { MatTooltipModule, MatTooltip } from '@angular/material/tooltip';
|
|
43
43
|
import { RXAP_WINDOW_REF } from '@rxap/window-system';
|
|
44
|
-
import * as i3$
|
|
44
|
+
import * as i3$2 from '@rxap/material-directives/icon';
|
|
45
45
|
import { IconDirectiveModule } from '@rxap/material-directives/icon';
|
|
46
46
|
import { MatOption } from '@angular/material/core';
|
|
47
|
-
import { setMetadata,
|
|
48
|
-
import * as
|
|
47
|
+
import { setMetadata, getMetadata, hasMetadata } from '@rxap/utilities/reflect-metadata';
|
|
48
|
+
import * as i3$3 from '@angular/material/snack-bar';
|
|
49
49
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
50
|
+
import * as i1$4 from '@angular/cdk/overlay';
|
|
51
|
+
import { Overlay } from '@angular/cdk/overlay';
|
|
50
52
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
51
53
|
|
|
52
54
|
class ExpandRowContentDirective {
|
|
@@ -185,7 +187,7 @@ class ExpandControlsCellComponent {
|
|
|
185
187
|
}
|
|
186
188
|
}
|
|
187
189
|
ExpandControlsCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ExpandControlsCellComponent, deps: [{ token: ExpandRowService }], target: i0.ɵɵFactoryTarget.Component });
|
|
188
|
-
ExpandControlsCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: ExpandControlsCellComponent, selector: "td[rxap-expand-controls-cell]", inputs: { element: "element" }, host: { classAttribute: "rxap-expand-controls-cell" }, ngImport: i0, template: "<button mat-icon-button>\n <mat-icon *ngIf=\"expandCell.isExpanded$(element) | async; else notExpanded\">expand_more</mat-icon>\n <ng-template #notExpanded>\n <mat-icon>keyboard_arrow_right</mat-icon>\n </ng-template>\n</button>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type:
|
|
190
|
+
ExpandControlsCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: ExpandControlsCellComponent, selector: "td[rxap-expand-controls-cell]", inputs: { element: "element" }, host: { classAttribute: "rxap-expand-controls-cell" }, ngImport: i0, template: "<button mat-icon-button>\n <mat-icon *ngIf=\"expandCell.isExpanded$(element) | async; else notExpanded\">expand_more</mat-icon>\n <ng-template #notExpanded>\n <mat-icon>keyboard_arrow_right</mat-icon>\n </ng-template>\n</button>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
189
191
|
__decorate([
|
|
190
192
|
Required,
|
|
191
193
|
__metadata("design:type", Object)
|
|
@@ -601,7 +603,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
601
603
|
type: Component,
|
|
602
604
|
args: [{ selector: 'th[rxap-checkbox-header-cell]', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-checkbox-header-cell' }, template: "<mat-checkbox\n *ngIf=\"isMultipleSelection\"\n (change)=\"onChange($event)\"\n [indeterminate]=\"indeterminate$ | async\"\n [checked]=\"(checked$ | async) ?? false\">\n</mat-checkbox>\n" }]
|
|
603
605
|
}], ctorParameters: function () {
|
|
604
|
-
return [{ type: i4.CdkTable, decorators: [{
|
|
606
|
+
return [{ type: i4$1.CdkTable, decorators: [{
|
|
605
607
|
type: Inject,
|
|
606
608
|
args: [CdkTable]
|
|
607
609
|
}] }, { type: SelectRowService }];
|
|
@@ -775,10 +777,13 @@ class TableDataSourceDirective {
|
|
|
775
777
|
this.tableFilter = tableFilter;
|
|
776
778
|
this._tableFilter = _tableFilter;
|
|
777
779
|
this.loading$ = new ToggleSubject(true);
|
|
780
|
+
this.hasError$ = new ToggleSubject();
|
|
778
781
|
this._subscription = new Subscription();
|
|
779
782
|
this.adapterFactory = null;
|
|
780
783
|
this.matTable.trackBy = this.trackBy;
|
|
781
784
|
this.adapterFactory = adapterFactory;
|
|
785
|
+
this.retry = this.retry.bind(this);
|
|
786
|
+
this.refresh = this.refresh.bind(this);
|
|
782
787
|
}
|
|
783
788
|
/**
|
|
784
789
|
* @deprecated use dataSource instead
|
|
@@ -835,6 +840,7 @@ class TableDataSourceDirective {
|
|
|
835
840
|
this.dataSource.setParameters(this.parameters, this.id);
|
|
836
841
|
}
|
|
837
842
|
this._subscription.add(this.dataSource.loading$.pipe(tap(loading => this.loading$.next(!!loading))).subscribe());
|
|
843
|
+
this._subscription.add(this.dataSource.hasError$.pipe(tap(hasError => this.hasError$.next(!!hasError))).subscribe());
|
|
838
844
|
// create the id property for the mat table component.
|
|
839
845
|
// the instance of the mat table component is used as viewer object
|
|
840
846
|
// with the set of the id property it is possible to use the same data source
|
|
@@ -851,12 +857,17 @@ class TableDataSourceDirective {
|
|
|
851
857
|
.subscribe());
|
|
852
858
|
}
|
|
853
859
|
ngOnDestroy() {
|
|
854
|
-
|
|
860
|
+
var _a;
|
|
861
|
+
(_a = this._subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
855
862
|
}
|
|
856
863
|
refresh() {
|
|
857
864
|
var _a;
|
|
858
865
|
(_a = this.dataSource) === null || _a === void 0 ? void 0 : _a.refresh();
|
|
859
866
|
}
|
|
867
|
+
retry() {
|
|
868
|
+
var _a;
|
|
869
|
+
(_a = this.dataSource) === null || _a === void 0 ? void 0 : _a.retry();
|
|
870
|
+
}
|
|
860
871
|
}
|
|
861
872
|
TableDataSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableDataSourceDirective, deps: [{ token: CdkTable }, { token: i0.ChangeDetectorRef }, { token: RXAP_TABLE_METHOD, optional: true }, { token: TABLE_DATA_SOURCE, optional: true }, { token: TABLE_REMOTE_METHOD_ADAPTER_FACTORY, optional: true }, { token: MatSort, optional: true }, { token: TableFilterService, optional: true }, { token: RXAP_TABLE_FILTER, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
862
873
|
TableDataSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: TableDataSourceDirective, selector: "table[mat-table][rxapTableDataSource],mat-table[rxapTableDataSource]", inputs: { setDataSource: ["rxapTableDataSource", "setDataSource"], paginator: "paginator", id: "id", parameters: "parameters", dataSource: "dataSource" }, exportAs: ["rxapTableDataSource"], ngImport: i0 });
|
|
@@ -871,7 +882,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
871
882
|
exportAs: 'rxapTableDataSource'
|
|
872
883
|
}]
|
|
873
884
|
}], ctorParameters: function () {
|
|
874
|
-
return [{ type: i4.CdkTable, decorators: [{
|
|
885
|
+
return [{ type: i4$1.CdkTable, decorators: [{
|
|
875
886
|
type: Inject,
|
|
876
887
|
args: [CdkTable]
|
|
877
888
|
}] }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
@@ -995,6 +1006,12 @@ class FilterHeaderRowDirective extends FormDirective {
|
|
|
995
1006
|
super(cdr, formDefinition);
|
|
996
1007
|
this.tableFilter = tableFilter;
|
|
997
1008
|
}
|
|
1009
|
+
set useFormDefinition(value) {
|
|
1010
|
+
if (value) {
|
|
1011
|
+
this._formDefinition = value;
|
|
1012
|
+
this.form = value.rxapFormGroup;
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
998
1015
|
ngOnInit() {
|
|
999
1016
|
super.ngOnInit();
|
|
1000
1017
|
this._subscription = this.form.value$
|
|
@@ -1008,7 +1025,7 @@ class FilterHeaderRowDirective extends FormDirective {
|
|
|
1008
1025
|
}
|
|
1009
1026
|
}
|
|
1010
1027
|
FilterHeaderRowDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FilterHeaderRowDirective, deps: [{ token: TableFilterService }, { token: i0.ChangeDetectorRef }, { token: RXAP_TABLE_FILTER_FORM_DEFINITION, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1011
|
-
FilterHeaderRowDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: FilterHeaderRowDirective, selector: "table[rxap-filter-header-row]", providers: [
|
|
1028
|
+
FilterHeaderRowDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: FilterHeaderRowDirective, selector: "table[rxap-filter-header-row]", inputs: { useFormDefinition: ["rxap-filter-header-row", "useFormDefinition"] }, providers: [
|
|
1012
1029
|
{
|
|
1013
1030
|
provide: ControlContainer,
|
|
1014
1031
|
// ignore coverage
|
|
@@ -1035,7 +1052,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
1035
1052
|
type: Inject,
|
|
1036
1053
|
args: [RXAP_TABLE_FILTER_FORM_DEFINITION]
|
|
1037
1054
|
}] }];
|
|
1038
|
-
}
|
|
1055
|
+
}, propDecorators: { useFormDefinition: [{
|
|
1056
|
+
type: Input,
|
|
1057
|
+
args: ['rxap-filter-header-row']
|
|
1058
|
+
}] } });
|
|
1039
1059
|
|
|
1040
1060
|
class ToFilterColumnNamesPipe {
|
|
1041
1061
|
transform(columns) {
|
|
@@ -1180,7 +1200,7 @@ class TableColumnMenuComponent {
|
|
|
1180
1200
|
}
|
|
1181
1201
|
}
|
|
1182
1202
|
TableColumnMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableColumnMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1183
|
-
TableColumnMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: TableColumnMenuComponent, selector: "rxap-table-column-menu", inputs: { matCard: "matCard" }, host: { properties: { "class.mat-card-mode": "this._matCardMode" }, classAttribute: "mfd-table-column-menu" }, queries: [{ propertyName: "columns", predicate: TableColumnOptionComponent }], exportAs: ["rxapTableColumns"], ngImport: i0, template: "<button type=\"button\" mat-icon-button [matMenuTriggerFor]=\"columnMenu\">\n <mat-icon>tune</mat-icon>\n</button>\n\n<mat-menu #columnMenu=\"matMenu\">\n <span\n rxapStopPropagation\n *ngFor=\"let column of columns\"\n [disableRipple]=\"true\"\n [fxHide]=\"column.hidden\"\n mat-menu-item\n >\n <mat-checkbox\n (change)=\"column.toggle(); updateDisplayColumns()\"\n [checked]=\"column.active\">\n {{ column.display }}\n </mat-checkbox>\n </span>\n <ng-content select=\"[mat-menu-item],mat-divider\"></ng-content>\n</mat-menu>\n", styles: [":host.mat-card-mode{position:absolute;inset:8px 8px auto auto}\n"], dependencies: [{ kind: "component", type:
|
|
1203
|
+
TableColumnMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: TableColumnMenuComponent, selector: "rxap-table-column-menu", inputs: { matCard: "matCard" }, host: { properties: { "class.mat-card-mode": "this._matCardMode" }, classAttribute: "mfd-table-column-menu" }, queries: [{ propertyName: "columns", predicate: TableColumnOptionComponent }], exportAs: ["rxapTableColumns"], ngImport: i0, template: "<button type=\"button\" mat-icon-button [matMenuTriggerFor]=\"columnMenu\">\n <mat-icon>tune</mat-icon>\n</button>\n\n<mat-menu #columnMenu=\"matMenu\">\n <span\n rxapStopPropagation\n *ngFor=\"let column of columns\"\n [disableRipple]=\"true\"\n [fxHide]=\"column.hidden\"\n mat-menu-item\n >\n <mat-checkbox\n (change)=\"column.toggle(); updateDisplayColumns()\"\n [checked]=\"column.active\">\n {{ column.display }}\n </mat-checkbox>\n </span>\n <ng-content select=\"[mat-menu-item],mat-divider\"></ng-content>\n</mat-menu>\n", styles: [":host.mat-card-mode{position:absolute;inset:8px 8px auto auto}\n"], dependencies: [{ kind: "component", type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i3.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i3.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i1$1.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "directive", type: i6.StopPropagationDirective, selector: "[rxapStopPropagation]" }, { kind: "directive", type: i7.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1184
1204
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableColumnMenuComponent, decorators: [{
|
|
1185
1205
|
type: Component,
|
|
1186
1206
|
args: [{ selector: 'rxap-table-column-menu', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'mfd-table-column-menu' }, exportAs: 'rxapTableColumns', template: "<button type=\"button\" mat-icon-button [matMenuTriggerFor]=\"columnMenu\">\n <mat-icon>tune</mat-icon>\n</button>\n\n<mat-menu #columnMenu=\"matMenu\">\n <span\n rxapStopPropagation\n *ngFor=\"let column of columns\"\n [disableRipple]=\"true\"\n [fxHide]=\"column.hidden\"\n mat-menu-item\n >\n <mat-checkbox\n (change)=\"column.toggle(); updateDisplayColumns()\"\n [checked]=\"column.active\">\n {{ column.display }}\n </mat-checkbox>\n </span>\n <ng-content select=\"[mat-menu-item],mat-divider\"></ng-content>\n</mat-menu>\n", styles: [":host.mat-card-mode{position:absolute;inset:8px 8px auto auto}\n"] }]
|
|
@@ -1244,7 +1264,7 @@ class TableShowArchivedSlideComponent {
|
|
|
1244
1264
|
}
|
|
1245
1265
|
}
|
|
1246
1266
|
TableShowArchivedSlideComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableShowArchivedSlideComponent, deps: [{ token: TableFilterService }, { token: TableColumnMenuComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
1247
|
-
TableShowArchivedSlideComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: TableShowArchivedSlideComponent, selector: "mfd-table-show-archived-slide", host: { classAttribute: "mfd-table-show-archived-slide" }, ngImport: i0, template: "<div rxapStopPropagation>\n <mat-slide-toggle (change)=\"onChange($event)\">\n <ng-container i18n>Show archived documents</ng-container>\n </mat-slide-toggle>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i6.StopPropagationDirective, selector: "[rxapStopPropagation]" }, { kind: "component", type: i4$
|
|
1267
|
+
TableShowArchivedSlideComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: TableShowArchivedSlideComponent, selector: "mfd-table-show-archived-slide", host: { classAttribute: "mfd-table-show-archived-slide" }, ngImport: i0, template: "<div rxapStopPropagation>\n <mat-slide-toggle (change)=\"onChange($event)\">\n <ng-container i18n>Show archived documents</ng-container>\n </mat-slide-toggle>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i6.StopPropagationDirective, selector: "[rxapStopPropagation]" }, { kind: "component", type: i4$2.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matSlideToggle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1248
1268
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableShowArchivedSlideComponent, decorators: [{
|
|
1249
1269
|
type: Component,
|
|
1250
1270
|
args: [{ selector: 'mfd-table-show-archived-slide', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'mfd-table-show-archived-slide' }, template: "<div rxapStopPropagation>\n <mat-slide-toggle (change)=\"onChange($event)\">\n <ng-container i18n>Show archived documents</ng-container>\n </mat-slide-toggle>\n</div>\n" }]
|
|
@@ -1411,7 +1431,7 @@ class RowControlsCellComponent {
|
|
|
1411
1431
|
}
|
|
1412
1432
|
}
|
|
1413
1433
|
RowControlsCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RowControlsCellComponent, deps: [{ token: TableDataSourceDirective }, { token: ROW_DELETE_METHOD, optional: true }, { token: ROW_ARCHIVE_METHOD, optional: true }, { token: ROW_RESTORE_METHOD, optional: true }, { token: ROW_EDIT_METHOD, optional: true }, { token: ROW_VIEW_METHOD, optional: true }, { token: ROW_LINK_METHOD, optional: true }, { token: ROW_EDIT_LOADER_METHOD, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1414
|
-
RowControlsCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: RowControlsCellComponent, selector: "td[mfd-row-controls-cell]", inputs: { element: "element" }, host: { classAttribute: "mfd-row-controls-cell" }, ngImport: i0, template: "<div fxLayout=\"row\">\n\n <!-- archive -->\n <button (confirmed)=\"archive()\" *ngIf=\"!element.__archived && archiveRemoteMethod\" mat-icon-button matTooltip=\"Archivieren\" rxapConfirm type=\"button\"\n fxFlex=\"40px\">\n <mat-icon>archive</mat-icon>\n </button>\n\n <!-- unarchive -->\n <button (confirmed)=\"unarchive()\" *ngIf=\"element.__archived && unarchiveRemoteMethod\" mat-icon-button matTooltip=\"Wiederherstellen\" rxapConfirm type=\"button\"\n fxFlex=\"40px\">\n <mat-icon>unarchive</mat-icon>\n </button>\n\n <!-- delete -->\n <button *ngIf=\"(element.__archived && deleteRemoteMethod) || (deleteRemoteMethod && !unarchiveRemoteMethod && !archiveRemoteMethod)\" matTooltip=\"L\u00F6schen\"\n type=\"button\"\n (confirmed)=\"remove()\" mat-icon-button color=\"warn\"\n rxapConfirm fxFlex=\"40px\">\n <mat-icon>delete</mat-icon>\n </button>\n\n <!-- edit -->\n <button (click)=\"edit()\" *ngIf=\"!element.__archived && editRemoteMethod\" fxFlex=\"40px\" mat-icon-button matTooltip=\"Bearbeiten\" type=\"button\">\n <mat-icon>edit</mat-icon>\n </button>\n\n <!-- view -->\n <button (click)=\"view()\" *ngIf=\"rowViewMethod\" fxFlex=\"40px\" mat-icon-button matTooltip=\"Details\" type=\"button\">\n <mat-icon>visibility</mat-icon>\n </button>\n\n <!-- link -->\n <button type=\"button\" *ngIf=\"rowLinkMethod\" (click)=\"link()\" mat-icon-button fxFlex=\"40px\">\n <mat-icon svgIcon=\"database-import\"></mat-icon>\n </button>\n\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$
|
|
1434
|
+
RowControlsCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: RowControlsCellComponent, selector: "td[mfd-row-controls-cell]", inputs: { element: "element" }, host: { classAttribute: "mfd-row-controls-cell" }, ngImport: i0, template: "<div fxLayout=\"row\">\n\n <!-- archive -->\n <button (confirmed)=\"archive()\" *ngIf=\"!element.__archived && archiveRemoteMethod\" mat-icon-button matTooltip=\"Archivieren\" rxapConfirm type=\"button\"\n fxFlex=\"40px\">\n <mat-icon>archive</mat-icon>\n </button>\n\n <!-- unarchive -->\n <button (confirmed)=\"unarchive()\" *ngIf=\"element.__archived && unarchiveRemoteMethod\" mat-icon-button matTooltip=\"Wiederherstellen\" rxapConfirm type=\"button\"\n fxFlex=\"40px\">\n <mat-icon>unarchive</mat-icon>\n </button>\n\n <!-- delete -->\n <button *ngIf=\"(element.__archived && deleteRemoteMethod) || (deleteRemoteMethod && !unarchiveRemoteMethod && !archiveRemoteMethod)\" matTooltip=\"L\u00F6schen\"\n type=\"button\"\n (confirmed)=\"remove()\" mat-icon-button color=\"warn\"\n rxapConfirm fxFlex=\"40px\">\n <mat-icon>delete</mat-icon>\n </button>\n\n <!-- edit -->\n <button (click)=\"edit()\" *ngIf=\"!element.__archived && editRemoteMethod\" fxFlex=\"40px\" mat-icon-button matTooltip=\"Bearbeiten\" type=\"button\">\n <mat-icon>edit</mat-icon>\n </button>\n\n <!-- view -->\n <button (click)=\"view()\" *ngIf=\"rowViewMethod\" fxFlex=\"40px\" mat-icon-button matTooltip=\"Details\" type=\"button\">\n <mat-icon>visibility</mat-icon>\n </button>\n\n <!-- link -->\n <button type=\"button\" *ngIf=\"rowLinkMethod\" (click)=\"link()\" mat-icon-button fxFlex=\"40px\">\n <mat-icon svgIcon=\"database-import\"></mat-icon>\n </button>\n\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i3$1.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "component", type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i6$1.ConfirmDirective, selector: "[rxapConfirm]", inputs: ["rxapConfirm"], outputs: ["confirmed", "unconfirmed"] }, { kind: "directive", type: i7$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1415
1435
|
__decorate([
|
|
1416
1436
|
Required,
|
|
1417
1437
|
__metadata("design:type", Object)
|
|
@@ -1510,6 +1530,15 @@ class RowControlsHeaderCellComponent {
|
|
|
1510
1530
|
(_f = (_e = this.tableFilter) === null || _e === void 0 ? void 0 : _e.change.pipe(map((filter) => !filter ||
|
|
1511
1531
|
!filter.hasOwnProperty('__archived') ||
|
|
1512
1532
|
filter['__archived'] === false), distinctUntilChanged())) !== null && _f !== void 0 ? _f : of(true);
|
|
1533
|
+
if (!this.archiveRemoteMethod) {
|
|
1534
|
+
this.showArchive$ = of(false);
|
|
1535
|
+
}
|
|
1536
|
+
if (!this.unarchiveRemoteMethod) {
|
|
1537
|
+
this.showUnarchive$ = of(false);
|
|
1538
|
+
}
|
|
1539
|
+
if (!this.deleteRemoteMethod) {
|
|
1540
|
+
this.showDelete$ = of(false);
|
|
1541
|
+
}
|
|
1513
1542
|
}
|
|
1514
1543
|
archiveSelected(selectedRows) {
|
|
1515
1544
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1552,7 +1581,7 @@ class RowControlsHeaderCellComponent {
|
|
|
1552
1581
|
}
|
|
1553
1582
|
}
|
|
1554
1583
|
RowControlsHeaderCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RowControlsHeaderCellComponent, deps: [{ token: TableDataSourceDirective }, { token: TableFilterService, optional: true }, { token: SelectRowService, optional: true }, { token: ROW_DELETE_METHOD, optional: true }, { token: ROW_ARCHIVE_METHOD, optional: true }, { token: ROW_RESTORE_METHOD, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1555
|
-
RowControlsHeaderCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: RowControlsHeaderCellComponent, selector: "th[mfd-row-controls-header-cell]", host: { classAttribute: "mfd-row-controls-header-cell" }, ngImport: i0, template: "<div fxLayout=\"row\">\n\n <!-- archive -->\n <button *ngIf=\"selectRow && (showArchive$ | async)\" [disabled]=\"disabled$ | async\" matTooltip=\"Archivieren\" type=\"button\"\n (confirmed)=\"archiveSelected($event)\" mat-icon-button\n [rxapConfirm]=\"selectRow.selectedRows\" fxFlex=\"40px\">\n <mat-icon>archive</mat-icon>\n </button>\n\n <!-- unarchive -->\n <button *ngIf=\"selectRow && (showUnarchive$ | async)\" [disabled]=\"disabled$ | async\" matTooltip=\"Wiederherstellen\" type=\"button\"\n (confirmed)=\"unarchiveSelected($event)\" mat-icon-button\n [rxapConfirm]=\"selectRow.selectedRows\" fxFlex=\"40px\">\n <mat-icon>unarchive</mat-icon>\n </button>\n\n <!-- delete -->\n <button (confirmed)=\"deleteSelected($event)\" *ngIf=\"selectRow && (showDelete$ | async)\" [disabled]=\"disabled$ | async\" matTooltip=\"L\u00F6schen\" type=\"button\"\n mat-icon-button color=\"warn\"\n [rxapConfirm]=\"selectRow.selectedRows\" fxFlex=\"40px\">\n <mat-icon>delete</mat-icon>\n </button>\n\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i3$
|
|
1584
|
+
RowControlsHeaderCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: RowControlsHeaderCellComponent, selector: "th[mfd-row-controls-header-cell]", host: { classAttribute: "mfd-row-controls-header-cell" }, ngImport: i0, template: "<div fxLayout=\"row\">\n\n <!-- archive -->\n <button *ngIf=\"selectRow && (showArchive$ | async)\" [disabled]=\"disabled$ | async\" matTooltip=\"Archivieren\" type=\"button\"\n (confirmed)=\"archiveSelected($event)\" mat-icon-button\n [rxapConfirm]=\"selectRow.selectedRows\" fxFlex=\"40px\">\n <mat-icon>archive</mat-icon>\n </button>\n\n <!-- unarchive -->\n <button *ngIf=\"selectRow && (showUnarchive$ | async)\" [disabled]=\"disabled$ | async\" matTooltip=\"Wiederherstellen\" type=\"button\"\n (confirmed)=\"unarchiveSelected($event)\" mat-icon-button\n [rxapConfirm]=\"selectRow.selectedRows\" fxFlex=\"40px\">\n <mat-icon>unarchive</mat-icon>\n </button>\n\n <!-- delete -->\n <button (confirmed)=\"deleteSelected($event)\" *ngIf=\"selectRow && (showDelete$ | async)\" [disabled]=\"disabled$ | async\" matTooltip=\"L\u00F6schen\" type=\"button\"\n mat-icon-button color=\"warn\"\n [rxapConfirm]=\"selectRow.selectedRows\" fxFlex=\"40px\">\n <mat-icon>delete</mat-icon>\n </button>\n\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i3$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i3$1.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "component", type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i6$1.ConfirmDirective, selector: "[rxapConfirm]", inputs: ["rxapConfirm"], outputs: ["confirmed", "unconfirmed"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1556
1585
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RowControlsHeaderCellComponent, decorators: [{
|
|
1557
1586
|
type: Component,
|
|
1558
1587
|
args: [{ selector: 'th[mfd-row-controls-header-cell]', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'mfd-row-controls-header-cell' }, template: "<div fxLayout=\"row\">\n\n <!-- archive -->\n <button *ngIf=\"selectRow && (showArchive$ | async)\" [disabled]=\"disabled$ | async\" matTooltip=\"Archivieren\" type=\"button\"\n (confirmed)=\"archiveSelected($event)\" mat-icon-button\n [rxapConfirm]=\"selectRow.selectedRows\" fxFlex=\"40px\">\n <mat-icon>archive</mat-icon>\n </button>\n\n <!-- unarchive -->\n <button *ngIf=\"selectRow && (showUnarchive$ | async)\" [disabled]=\"disabled$ | async\" matTooltip=\"Wiederherstellen\" type=\"button\"\n (confirmed)=\"unarchiveSelected($event)\" mat-icon-button\n [rxapConfirm]=\"selectRow.selectedRows\" fxFlex=\"40px\">\n <mat-icon>unarchive</mat-icon>\n </button>\n\n <!-- delete -->\n <button (confirmed)=\"deleteSelected($event)\" *ngIf=\"selectRow && (showDelete$ | async)\" [disabled]=\"disabled$ | async\" matTooltip=\"L\u00F6schen\" type=\"button\"\n mat-icon-button color=\"warn\"\n [rxapConfirm]=\"selectRow.selectedRows\" fxFlex=\"40px\">\n <mat-icon>delete</mat-icon>\n </button>\n\n</div>\n" }]
|
|
@@ -1647,7 +1676,7 @@ class TableSelectControlsComponent {
|
|
|
1647
1676
|
}
|
|
1648
1677
|
}
|
|
1649
1678
|
TableSelectControlsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableSelectControlsComponent, deps: [{ token: SelectRowService }, { token: RXAP_WINDOW_REF }], target: i0.ɵɵFactoryTarget.Component });
|
|
1650
|
-
TableSelectControlsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: TableSelectControlsComponent, selector: "mfd-table-select-controls", host: { classAttribute: "mfd-table-select-controls" }, ngImport: i0, template: "<div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <button fxFlex=\"nogrow\" mat-stroked-button (click)=\"cancel()\" type=\"button\">\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button fxFlex=\"nogrow\" mat-raised-button (click)=\"select()\" type=\"button\" [disabled]=\"hasNotSelected$ | async\">\n <ng-container i18n>Select</ng-container>\n </button>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type:
|
|
1679
|
+
TableSelectControlsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: TableSelectControlsComponent, selector: "mfd-table-select-controls", host: { classAttribute: "mfd-table-select-controls" }, ngImport: i0, template: "<div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <button fxFlex=\"nogrow\" mat-stroked-button (click)=\"cancel()\" type=\"button\">\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button fxFlex=\"nogrow\" mat-raised-button (click)=\"select()\" type=\"button\" [disabled]=\"hasNotSelected$ | async\">\n <ng-container i18n>Select</ng-container>\n </button>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i3$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i3$1.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i3$1.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1651
1680
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableSelectControlsComponent, decorators: [{
|
|
1652
1681
|
type: Component,
|
|
1653
1682
|
args: [{ selector: 'mfd-table-select-controls', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'mfd-table-select-controls' }, template: "<div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <button fxFlex=\"nogrow\" mat-stroked-button (click)=\"cancel()\" type=\"button\">\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button fxFlex=\"nogrow\" mat-raised-button (click)=\"select()\" type=\"button\" [disabled]=\"hasNotSelected$ | async\">\n <ng-container i18n>Select</ng-container>\n </button>\n</div>\n" }]
|
|
@@ -1754,7 +1783,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
1754
1783
|
class IconCellComponent {
|
|
1755
1784
|
}
|
|
1756
1785
|
IconCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: IconCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1757
|
-
IconCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: IconCellComponent, selector: "td[rxap-icon-cell]", inputs: { icon: ["rxap-icon-cell", "icon"] }, host: { classAttribute: "rxap-icon-cell" }, ngImport: i0, template: "<mat-icon *ngIf=\"icon\" [rxapIcon]=\"icon\"></mat-icon>\n<ng-content></ng-content>\n", styles: [""], dependencies: [{ kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$
|
|
1786
|
+
IconCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: IconCellComponent, selector: "td[rxap-icon-cell]", inputs: { icon: ["rxap-icon-cell", "icon"] }, host: { classAttribute: "rxap-icon-cell" }, ngImport: i0, template: "<mat-icon *ngIf=\"icon\" [rxapIcon]=\"icon\"></mat-icon>\n<ng-content></ng-content>\n", styles: [""], dependencies: [{ kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$2.IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1758
1787
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: IconCellComponent, decorators: [{
|
|
1759
1788
|
type: Component,
|
|
1760
1789
|
args: [{ selector: 'td[rxap-icon-cell]', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-icon-cell' }, template: "<mat-icon *ngIf=\"icon\" [rxapIcon]=\"icon\"></mat-icon>\n<ng-content></ng-content>\n" }]
|
|
@@ -1831,7 +1860,7 @@ class LinkCellComponent {
|
|
|
1831
1860
|
}
|
|
1832
1861
|
}
|
|
1833
1862
|
LinkCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: LinkCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1834
|
-
LinkCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: LinkCellComponent, selector: "td[rxap-link-cell]", inputs: { value: ["rxap-link-cell", "value"], protocol: "protocol", short: "short" }, host: { classAttribute: "rxap-link-cell" }, ngImport: i0, template: "<a *ngIf=\"value\" [href]=\"href\" [matTooltip]=\"value\" class=\"link\" target=\"_blank\">\n <span fxLayout=\"row\" fxLayoutGap=\"8px\" fxLayoutAlign=\"start center\">\n <span *ngIf=\"short\" i18n fxFlex=\"nogrow\" class=\"content\">Open</span>\n <ng-container [ngSwitch]=\"protocol\">\n <mat-icon *ngSwitchCase=\"'tel'\" fxFlex=\"nogrow\">call</mat-icon>\n <mat-icon *ngSwitchCase=\"'mailto'\" fxFlex=\"nogrow\">email</mat-icon>\n <mat-icon *ngSwitchDefault fxFlex=\"nogrow\">launch</mat-icon>\n </ng-container>\n <span *ngIf=\"!short\" fxFlex=\"nogrow\" class=\"content\">{{value}}</span>\n </span>\n</a>\n<ng-content></ng-content>\n", styles: [".link{text-decoration:none;color:inherit}.link .content{max-width:160px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i7$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i3$
|
|
1863
|
+
LinkCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: LinkCellComponent, selector: "td[rxap-link-cell]", inputs: { value: ["rxap-link-cell", "value"], protocol: "protocol", short: "short" }, host: { classAttribute: "rxap-link-cell" }, ngImport: i0, template: "<a *ngIf=\"value\" [href]=\"href\" [matTooltip]=\"value\" class=\"link\" target=\"_blank\">\n <span fxLayout=\"row\" fxLayoutGap=\"8px\" fxLayoutAlign=\"start center\">\n <span *ngIf=\"short\" i18n fxFlex=\"nogrow\" class=\"content\">Open</span>\n <ng-container [ngSwitch]=\"protocol\">\n <mat-icon *ngSwitchCase=\"'tel'\" fxFlex=\"nogrow\">call</mat-icon>\n <mat-icon *ngSwitchCase=\"'mailto'\" fxFlex=\"nogrow\">email</mat-icon>\n <mat-icon *ngSwitchDefault fxFlex=\"nogrow\">launch</mat-icon>\n </ng-container>\n <span *ngIf=\"!short\" fxFlex=\"nogrow\" class=\"content\">{{value}}</span>\n </span>\n</a>\n<ng-content></ng-content>\n", styles: [".link{text-decoration:none;color:inherit}.link .content{max-width:160px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i7$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i3$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i3$1.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i3$1.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i3$1.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2.NgSwitchDefault, selector: "[ngSwitchDefault]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1835
1864
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: LinkCellComponent, decorators: [{
|
|
1836
1865
|
type: Component,
|
|
1837
1866
|
args: [{ selector: 'td[rxap-link-cell]', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-link-cell' }, template: "<a *ngIf=\"value\" [href]=\"href\" [matTooltip]=\"value\" class=\"link\" target=\"_blank\">\n <span fxLayout=\"row\" fxLayoutGap=\"8px\" fxLayoutAlign=\"start center\">\n <span *ngIf=\"short\" i18n fxFlex=\"nogrow\" class=\"content\">Open</span>\n <ng-container [ngSwitch]=\"protocol\">\n <mat-icon *ngSwitchCase=\"'tel'\" fxFlex=\"nogrow\">call</mat-icon>\n <mat-icon *ngSwitchCase=\"'mailto'\" fxFlex=\"nogrow\">email</mat-icon>\n <mat-icon *ngSwitchDefault fxFlex=\"nogrow\">launch</mat-icon>\n </ng-container>\n <span *ngIf=\"!short\" fxFlex=\"nogrow\" class=\"content\">{{value}}</span>\n </span>\n</a>\n<ng-content></ng-content>\n", styles: [".link{text-decoration:none;color:inherit}.link .content{max-width:160px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}\n"] }]
|
|
@@ -1981,11 +2010,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
1981
2010
|
}]
|
|
1982
2011
|
}] });
|
|
1983
2012
|
|
|
2013
|
+
/**
|
|
2014
|
+
* @deprecated use RXAP_TABLE_ACTION_METHOD_METADATA instead
|
|
2015
|
+
*/
|
|
1984
2016
|
const RXAP_TABLE_ACTION_METHOD_TYPE_METADATA = 'rxap-table-action-method-type-metadata';
|
|
2017
|
+
const RXAP_TABLE_ACTION_METHOD_METADATA = 'rxap-table-action-method-metadata';
|
|
2018
|
+
/**
|
|
2019
|
+
* @deprecated use RXAP_TABLE_ACTION_METHOD_METADATA instead
|
|
2020
|
+
*/
|
|
1985
2021
|
const RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA = 'rxap-table-action-method-check-function-metadata';
|
|
1986
|
-
function TableActionMethod(
|
|
2022
|
+
function TableActionMethod(typeOrOptions, checkFunction) {
|
|
2023
|
+
let type;
|
|
2024
|
+
let options;
|
|
2025
|
+
if (typeof typeOrOptions === 'string') {
|
|
2026
|
+
type = typeOrOptions;
|
|
2027
|
+
options = { type, checkFunction };
|
|
2028
|
+
}
|
|
2029
|
+
else {
|
|
2030
|
+
options = typeOrOptions;
|
|
2031
|
+
type = options.type;
|
|
2032
|
+
checkFunction = options.checkFunction;
|
|
2033
|
+
}
|
|
1987
2034
|
return function (target) {
|
|
1988
|
-
setMetadata(
|
|
2035
|
+
setMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, options, target);
|
|
2036
|
+
if (type) {
|
|
2037
|
+
setMetadata(RXAP_TABLE_ACTION_METHOD_TYPE_METADATA, type, target);
|
|
2038
|
+
}
|
|
1989
2039
|
if (checkFunction) {
|
|
1990
2040
|
setMetadata(RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA, checkFunction, target);
|
|
1991
2041
|
}
|
|
@@ -2022,49 +2072,82 @@ var TableRowActionStatus;
|
|
|
2022
2072
|
})(TableRowActionStatus || (TableRowActionStatus = {}));
|
|
2023
2073
|
|
|
2024
2074
|
function IsTableRowActionTypeSwitchMethod(method) {
|
|
2025
|
-
|
|
2075
|
+
var _a;
|
|
2076
|
+
return ((_a = getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)) === null || _a === void 0 ? void 0 : _a.type) === undefined;
|
|
2026
2077
|
}
|
|
2027
2078
|
function IsTableRowActionTypeMethod(type) {
|
|
2028
2079
|
return (method) => {
|
|
2029
|
-
|
|
2080
|
+
var _a;
|
|
2081
|
+
return (((_a = getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)) === null || _a === void 0 ? void 0 : _a.type) === type);
|
|
2030
2082
|
};
|
|
2031
2083
|
}
|
|
2032
2084
|
function HasTableRowActionCheckFunction(method) {
|
|
2033
|
-
|
|
2085
|
+
var _a;
|
|
2086
|
+
return ((_a = getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)) === null || _a === void 0 ? void 0 : _a.checkFunction) !== undefined;
|
|
2034
2087
|
}
|
|
2035
2088
|
function GetTableRowActionCheckFunction(method) {
|
|
2036
|
-
|
|
2089
|
+
var _a;
|
|
2090
|
+
const checkFunction = (_a = getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)) === null || _a === void 0 ? void 0 : _a.checkFunction;
|
|
2037
2091
|
if (!checkFunction) {
|
|
2038
2092
|
throw new Error(`Extracted check function from '${method.constructor.name}' is empty`);
|
|
2039
2093
|
}
|
|
2040
2094
|
return checkFunction;
|
|
2041
2095
|
}
|
|
2096
|
+
function HasTableRowActionMetadata(method) {
|
|
2097
|
+
return hasMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor);
|
|
2098
|
+
}
|
|
2099
|
+
function GetTableRowActionMetadata(method) {
|
|
2100
|
+
const metadata = getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor);
|
|
2101
|
+
if (!metadata) {
|
|
2102
|
+
throw new Error(`Extracted metadata from '${method.constructor.name}' is empty`);
|
|
2103
|
+
}
|
|
2104
|
+
return metadata;
|
|
2105
|
+
}
|
|
2042
2106
|
|
|
2043
2107
|
const RXAP_TABLE_ROW_ACTION_METHOD = new InjectionToken('rxap-table-row-action-method');
|
|
2044
2108
|
|
|
2045
|
-
class TableRowActionDirective {
|
|
2046
|
-
constructor(actionMethodList, cdr, vcr, tableDataSourceDirective, snackBar, matButton) {
|
|
2109
|
+
class TableRowActionDirective extends ConfirmDirective {
|
|
2110
|
+
constructor(overlay, elementRef, actionMethodList, cdr, vcr, tableDataSourceDirective, snackBar, matButton, matTooltip) {
|
|
2111
|
+
super(overlay, elementRef);
|
|
2047
2112
|
this.cdr = cdr;
|
|
2048
2113
|
this.vcr = vcr;
|
|
2049
2114
|
this.tableDataSourceDirective = tableDataSourceDirective;
|
|
2050
2115
|
this.snackBar = snackBar;
|
|
2051
2116
|
this.matButton = matButton;
|
|
2117
|
+
this.matTooltip = matTooltip;
|
|
2052
2118
|
this._hasConfirmDirective = false;
|
|
2053
2119
|
this._currentStatus = TableRowActionStatus.DONE;
|
|
2054
2120
|
this._actionDisabled = false;
|
|
2121
|
+
this.options = null;
|
|
2055
2122
|
this.actionMethodList = coerceArray(actionMethodList);
|
|
2056
2123
|
}
|
|
2057
2124
|
set hasConfirmDirective(value) {
|
|
2058
2125
|
this._hasConfirmDirective = coerceBoolean(value);
|
|
2059
2126
|
}
|
|
2127
|
+
ngOnInit() {
|
|
2128
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2129
|
+
this.options = this.getTableActionOptions();
|
|
2130
|
+
if (this.options) {
|
|
2131
|
+
(_a = this.refresh) !== null && _a !== void 0 ? _a : (this.refresh = (_b = this.options.refresh) !== null && _b !== void 0 ? _b : false);
|
|
2132
|
+
(_c = this.errorMessage) !== null && _c !== void 0 ? _c : (this.errorMessage = (_d = this.options.errorMessage) !== null && _d !== void 0 ? _d : undefined);
|
|
2133
|
+
(_e = this.successMessage) !== null && _e !== void 0 ? _e : (this.successMessage = (_f = this.options.successMessage) !== null && _f !== void 0 ? _f : undefined);
|
|
2134
|
+
if (this.matTooltip && this.options.tooltip) {
|
|
2135
|
+
this.matTooltip.message = this.options.tooltip;
|
|
2136
|
+
}
|
|
2137
|
+
}
|
|
2138
|
+
}
|
|
2060
2139
|
onConfirmed() {
|
|
2061
2140
|
return this.execute();
|
|
2062
2141
|
}
|
|
2063
2142
|
onClick($event) {
|
|
2143
|
+
var _a, _b;
|
|
2064
2144
|
$event.stopPropagation();
|
|
2065
|
-
if (!this._hasConfirmDirective) {
|
|
2145
|
+
if (!this._hasConfirmDirective && !((_a = this.options) === null || _a === void 0 ? void 0 : _a.confirm)) {
|
|
2066
2146
|
return this.execute();
|
|
2067
2147
|
}
|
|
2148
|
+
else if ((_b = this.options) === null || _b === void 0 ? void 0 : _b.confirm) {
|
|
2149
|
+
this.openConfirmOverly();
|
|
2150
|
+
}
|
|
2068
2151
|
else {
|
|
2069
2152
|
if (isDevMode()) {
|
|
2070
2153
|
console.debug('skip remote method call. Wait for confirmation.');
|
|
@@ -2166,9 +2249,16 @@ class TableRowActionDirective {
|
|
|
2166
2249
|
}
|
|
2167
2250
|
this.cdr.detectChanges();
|
|
2168
2251
|
}
|
|
2252
|
+
getTableActionOptions() {
|
|
2253
|
+
const metadataList = this.actionMethodList.map(actionMethod => GetTableRowActionMetadata(actionMethod));
|
|
2254
|
+
if (metadataList.length === 0) {
|
|
2255
|
+
return null;
|
|
2256
|
+
}
|
|
2257
|
+
return metadataList.filter(metadata => metadata.type === this.type).sort((a, b) => { var _a, _b; return ((_a = a.priority) !== null && _a !== void 0 ? _a : 0) - ((_b = b.priority) !== null && _b !== void 0 ? _b : 0); })[0];
|
|
2258
|
+
}
|
|
2169
2259
|
}
|
|
2170
|
-
TableRowActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableRowActionDirective, deps: [{ token: RXAP_TABLE_ROW_ACTION_METHOD }, { token: ChangeDetectorRef }, { token: ViewContainerRef }, { token: TableDataSourceDirective }, { token: MatSnackBar }, { token: MatButton, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2171
|
-
TableRowActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: TableRowActionDirective, selector: "button[rxapTableRowAction]", inputs: { hasConfirmDirective: ["rxapConfirm", "hasConfirmDirective"], element: "element", type: ["rxapTableRowAction", "type"], errorMessage: "errorMessage", successMessage: "successMessage", refresh: "refresh" }, host: { listeners: { "confirmed": "onConfirmed()", "click": "onClick($event)" } }, queries: [{ propertyName: "executingDirective", first: true, predicate: TableRowActionExecutingDirective, descendants: true }], ngImport: i0 });
|
|
2260
|
+
TableRowActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableRowActionDirective, deps: [{ token: Overlay }, { token: ElementRef }, { token: RXAP_TABLE_ROW_ACTION_METHOD }, { token: ChangeDetectorRef }, { token: ViewContainerRef }, { token: TableDataSourceDirective }, { token: MatSnackBar }, { token: MatButton, optional: true }, { token: MatTooltip, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2261
|
+
TableRowActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: TableRowActionDirective, selector: "button[rxapTableRowAction]", inputs: { hasConfirmDirective: ["rxapConfirm", "hasConfirmDirective"], element: "element", type: ["rxapTableRowAction", "type"], errorMessage: "errorMessage", successMessage: "successMessage", refresh: "refresh" }, host: { listeners: { "confirmed": "onConfirmed()", "click": "onClick($event)" } }, queries: [{ propertyName: "executingDirective", first: true, predicate: TableRowActionExecutingDirective, descendants: true }], usesInheritance: true, ngImport: i0 });
|
|
2172
2262
|
__decorate([
|
|
2173
2263
|
Required,
|
|
2174
2264
|
__metadata("design:type", Object)
|
|
@@ -2183,7 +2273,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
2183
2273
|
selector: 'button[rxapTableRowAction]'
|
|
2184
2274
|
}]
|
|
2185
2275
|
}], ctorParameters: function () {
|
|
2186
|
-
return [{ type:
|
|
2276
|
+
return [{ type: i1$4.Overlay, decorators: [{
|
|
2277
|
+
type: Inject,
|
|
2278
|
+
args: [Overlay]
|
|
2279
|
+
}] }, { type: i0.ElementRef, decorators: [{
|
|
2280
|
+
type: Inject,
|
|
2281
|
+
args: [ElementRef]
|
|
2282
|
+
}] }, { type: undefined, decorators: [{
|
|
2187
2283
|
type: Inject,
|
|
2188
2284
|
args: [RXAP_TABLE_ROW_ACTION_METHOD]
|
|
2189
2285
|
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
@@ -2195,14 +2291,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
2195
2291
|
}] }, { type: TableDataSourceDirective, decorators: [{
|
|
2196
2292
|
type: Inject,
|
|
2197
2293
|
args: [TableDataSourceDirective]
|
|
2198
|
-
}] }, { type:
|
|
2294
|
+
}] }, { type: i3$3.MatSnackBar, decorators: [{
|
|
2199
2295
|
type: Inject,
|
|
2200
2296
|
args: [MatSnackBar]
|
|
2201
|
-
}] }, { type:
|
|
2297
|
+
}] }, { type: i4.MatButton, decorators: [{
|
|
2202
2298
|
type: Optional
|
|
2203
2299
|
}, {
|
|
2204
2300
|
type: Inject,
|
|
2205
2301
|
args: [MatButton]
|
|
2302
|
+
}] }, { type: i7$1.MatTooltip, decorators: [{
|
|
2303
|
+
type: Optional
|
|
2304
|
+
}, {
|
|
2305
|
+
type: Inject,
|
|
2306
|
+
args: [MatTooltip]
|
|
2206
2307
|
}] }];
|
|
2207
2308
|
}, propDecorators: { hasConfirmDirective: [{
|
|
2208
2309
|
type: Input,
|
|
@@ -2230,8 +2331,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
2230
2331
|
}] } });
|
|
2231
2332
|
|
|
2232
2333
|
class TableRowHeaderActionDirective extends TableRowActionDirective {
|
|
2233
|
-
constructor(actionMethod, cdr, vcr, tableDataSourceDirective, snackBar, matButton, selectRowService) {
|
|
2234
|
-
super(actionMethod, cdr, vcr, tableDataSourceDirective, snackBar, matButton);
|
|
2334
|
+
constructor(overlay, elementRef, actionMethod, cdr, vcr, tableDataSourceDirective, snackBar, matButton, matTooltip, selectRowService) {
|
|
2335
|
+
super(overlay, elementRef, actionMethod, cdr, vcr, tableDataSourceDirective, snackBar, matButton, matTooltip);
|
|
2235
2336
|
this.selectRowService = selectRowService;
|
|
2236
2337
|
}
|
|
2237
2338
|
ngOnDestroy() {
|
|
@@ -2261,7 +2362,7 @@ class TableRowHeaderActionDirective extends TableRowActionDirective {
|
|
|
2261
2362
|
return (_b = (_a = this.selectRowService) === null || _a === void 0 ? void 0 : _a.selectedRows) !== null && _b !== void 0 ? _b : [];
|
|
2262
2363
|
}
|
|
2263
2364
|
}
|
|
2264
|
-
TableRowHeaderActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableRowHeaderActionDirective, deps: [{ token: RXAP_TABLE_ROW_ACTION_METHOD }, { token: ChangeDetectorRef }, { token: ViewContainerRef }, { token: TableDataSourceDirective }, { token: MatSnackBar }, { token: MatButton, optional: true }, { token: SelectRowService, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2365
|
+
TableRowHeaderActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableRowHeaderActionDirective, deps: [{ token: Overlay }, { token: ElementRef }, { token: RXAP_TABLE_ROW_ACTION_METHOD }, { token: ChangeDetectorRef }, { token: ViewContainerRef }, { token: TableDataSourceDirective }, { token: MatSnackBar }, { token: MatButton, optional: true }, { token: MatTooltip, optional: true }, { token: SelectRowService, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2265
2366
|
TableRowHeaderActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: TableRowHeaderActionDirective, selector: "button[rxapTableRowHeaderAction]", inputs: { type: ["rxapTableRowHeaderAction", "type"] }, usesInheritance: true, ngImport: i0 });
|
|
2266
2367
|
__decorate([
|
|
2267
2368
|
Required,
|
|
@@ -2273,7 +2374,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
2273
2374
|
selector: 'button[rxapTableRowHeaderAction]'
|
|
2274
2375
|
}]
|
|
2275
2376
|
}], ctorParameters: function () {
|
|
2276
|
-
return [{ type:
|
|
2377
|
+
return [{ type: i1$4.Overlay, decorators: [{
|
|
2378
|
+
type: Inject,
|
|
2379
|
+
args: [Overlay]
|
|
2380
|
+
}] }, { type: i0.ElementRef, decorators: [{
|
|
2381
|
+
type: Inject,
|
|
2382
|
+
args: [ElementRef]
|
|
2383
|
+
}] }, { type: undefined, decorators: [{
|
|
2277
2384
|
type: Inject,
|
|
2278
2385
|
args: [RXAP_TABLE_ROW_ACTION_METHOD]
|
|
2279
2386
|
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
@@ -2285,14 +2392,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
2285
2392
|
}] }, { type: TableDataSourceDirective, decorators: [{
|
|
2286
2393
|
type: Inject,
|
|
2287
2394
|
args: [TableDataSourceDirective]
|
|
2288
|
-
}] }, { type:
|
|
2395
|
+
}] }, { type: i3$3.MatSnackBar, decorators: [{
|
|
2289
2396
|
type: Inject,
|
|
2290
2397
|
args: [MatSnackBar]
|
|
2291
|
-
}] }, { type:
|
|
2398
|
+
}] }, { type: i4.MatButton, decorators: [{
|
|
2292
2399
|
type: Optional
|
|
2293
2400
|
}, {
|
|
2294
2401
|
type: Inject,
|
|
2295
2402
|
args: [MatButton]
|
|
2403
|
+
}] }, { type: i7$1.MatTooltip, decorators: [{
|
|
2404
|
+
type: Optional
|
|
2405
|
+
}, {
|
|
2406
|
+
type: Inject,
|
|
2407
|
+
args: [MatTooltip]
|
|
2296
2408
|
}] }, { type: SelectRowService, decorators: [{
|
|
2297
2409
|
type: Optional
|
|
2298
2410
|
}, {
|
|
@@ -2350,7 +2462,7 @@ TableRowActionsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", ve
|
|
|
2350
2462
|
TableRowActionsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: TableRowActionsModule, declarations: [TableRowActionDirective,
|
|
2351
2463
|
TableRowActionExecutingDirective,
|
|
2352
2464
|
TableRowHeaderActionDirective,
|
|
2353
|
-
RowActionCheckPipe], exports: [TableRowActionDirective,
|
|
2465
|
+
RowActionCheckPipe], imports: [ConfirmComponentModule], exports: [TableRowActionDirective,
|
|
2354
2466
|
TableRowHeaderActionDirective,
|
|
2355
2467
|
TableRowActionExecutingDirective,
|
|
2356
2468
|
RowActionCheckPipe,
|
|
@@ -2360,7 +2472,7 @@ TableRowActionsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", v
|
|
|
2360
2472
|
MatIconModule,
|
|
2361
2473
|
MatProgressBarModule,
|
|
2362
2474
|
CommonModule] });
|
|
2363
|
-
TableRowActionsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableRowActionsModule, imports: [MatTooltipModule,
|
|
2475
|
+
TableRowActionsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableRowActionsModule, imports: [ConfirmComponentModule, MatTooltipModule,
|
|
2364
2476
|
MatButtonModule,
|
|
2365
2477
|
ConfirmComponentModule,
|
|
2366
2478
|
MatIconModule,
|
|
@@ -2375,6 +2487,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
2375
2487
|
TableRowHeaderActionDirective,
|
|
2376
2488
|
RowActionCheckPipe
|
|
2377
2489
|
],
|
|
2490
|
+
imports: [
|
|
2491
|
+
ConfirmComponentModule
|
|
2492
|
+
],
|
|
2378
2493
|
exports: [
|
|
2379
2494
|
TableRowActionDirective,
|
|
2380
2495
|
TableRowHeaderActionDirective,
|
|
@@ -2397,5 +2512,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
2397
2512
|
* Generated bundle index. Do not edit.
|
|
2398
2513
|
*/
|
|
2399
2514
|
|
|
2400
|
-
export { BooleanCellComponent, BooleanCellComponentModule, CheckboxCellComponent, CheckboxCellComponentModule, CheckboxHeaderCellComponent, CheckboxHeaderCellComponentModule, CopyToClipboardCellComponent, CopyToClipboardCellComponentModule, DateCellComponent, DateCellComponentModule, ExpandControlsCellComponent, ExpandControlsCellComponentModule, ExpandRowContainerComponent, ExpandRowContainerComponentModule, ExpandRowContentDirective, ExpandRowDirective, ExpandRowModule, ExpandRowService, FilterHeaderRowDirective, GetTableRowActionCheckFunction, HasTableRowActionCheckFunction, IconCellComponent, IconCellComponentModule, ImageCellComponent, ImageCellComponentModule, IsTableRowActionTypeMethod, IsTableRowActionTypeSwitchMethod, LinkCellComponent, LinkCellComponentModule, OptionsCellComponent, OptionsCellComponentModule, PersistentPaginatorDirective, PersistentPaginatorDirectiveModule, ROW_ARCHIVE_METHOD, ROW_DELETE_METHOD, ROW_EDIT_LOADER_METHOD, ROW_EDIT_METHOD, ROW_LINK_METHOD, ROW_RESTORE_METHOD, ROW_VIEW_METHOD, RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS, RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA, RXAP_TABLE_ACTION_METHOD_TYPE_METADATA, RXAP_TABLE_FILTER, RXAP_TABLE_FILTER_FORM_DEFINITION, RXAP_TABLE_ROW_ACTION_METHOD, RowActionCheckPipe, RowAnimation, RowControlsCellComponent, RowControlsCellComponentModule, RowControlsHeaderCellComponent, RowControlsHeaderCellComponentModule, SelectRowModule, SelectRowService, SelectedRowsDirective, TABLE_CREATE_REMOTE_METHOD, TABLE_DATA_SOURCE, TABLE_REMOTE_METHOD, TABLE_REMOTE_METHOD_ADAPTER_FACTORY, TableActionMethod, TableColumnMenuComponent, TableColumnMenuComponentModule, TableColumnOptionComponent, TableCreateButtonDirective, TableCreateButtonDirectiveModule, TableDataSourceDirective, TableDataSourceModule, TableFilterModule, TableFilterService, TableRowActionDirective, TableRowActionExecutingDirective, TableRowActionStatus, TableRowActionsModule, TableRowControlsModule, TableRowHeaderActionDirective, TableSelectControlsComponent, TableSelectControlsComponentModule, TableShowArchivedSlideComponent, TableShowArchivedSlideComponentModule, ToFilterColumnNamesPipe };
|
|
2515
|
+
export { BooleanCellComponent, BooleanCellComponentModule, CheckboxCellComponent, CheckboxCellComponentModule, CheckboxHeaderCellComponent, CheckboxHeaderCellComponentModule, CopyToClipboardCellComponent, CopyToClipboardCellComponentModule, DateCellComponent, DateCellComponentModule, ExpandControlsCellComponent, ExpandControlsCellComponentModule, ExpandRowContainerComponent, ExpandRowContainerComponentModule, ExpandRowContentDirective, ExpandRowDirective, ExpandRowModule, ExpandRowService, FilterHeaderRowDirective, GetTableRowActionCheckFunction, GetTableRowActionMetadata, HasTableRowActionCheckFunction, HasTableRowActionMetadata, IconCellComponent, IconCellComponentModule, ImageCellComponent, ImageCellComponentModule, IsTableRowActionTypeMethod, IsTableRowActionTypeSwitchMethod, LinkCellComponent, LinkCellComponentModule, OptionsCellComponent, OptionsCellComponentModule, PersistentPaginatorDirective, PersistentPaginatorDirectiveModule, ROW_ARCHIVE_METHOD, ROW_DELETE_METHOD, ROW_EDIT_LOADER_METHOD, ROW_EDIT_METHOD, ROW_LINK_METHOD, ROW_RESTORE_METHOD, ROW_VIEW_METHOD, RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS, RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA, RXAP_TABLE_ACTION_METHOD_METADATA, RXAP_TABLE_ACTION_METHOD_TYPE_METADATA, RXAP_TABLE_FILTER, RXAP_TABLE_FILTER_FORM_DEFINITION, RXAP_TABLE_ROW_ACTION_METHOD, RowActionCheckPipe, RowAnimation, RowControlsCellComponent, RowControlsCellComponentModule, RowControlsHeaderCellComponent, RowControlsHeaderCellComponentModule, SelectRowModule, SelectRowService, SelectedRowsDirective, TABLE_CREATE_REMOTE_METHOD, TABLE_DATA_SOURCE, TABLE_REMOTE_METHOD, TABLE_REMOTE_METHOD_ADAPTER_FACTORY, TableActionMethod, TableColumnMenuComponent, TableColumnMenuComponentModule, TableColumnOptionComponent, TableCreateButtonDirective, TableCreateButtonDirectiveModule, TableDataSourceDirective, TableDataSourceModule, TableFilterModule, TableFilterService, TableRowActionDirective, TableRowActionExecutingDirective, TableRowActionStatus, TableRowActionsModule, TableRowControlsModule, TableRowHeaderActionDirective, TableSelectControlsComponent, TableSelectControlsComponentModule, TableShowArchivedSlideComponent, TableShowArchivedSlideComponentModule, ToFilterColumnNamesPipe };
|
|
2401
2516
|
//# sourceMappingURL=rxap-material-table-system.mjs.map
|