@rxap/material-table-system 14.4.0-dev.0 → 14.4.0-dev.1
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/fesm2015/rxap-material-table-system.mjs +152 -46
- package/fesm2015/rxap-material-table-system.mjs.map +1 -1
- package/fesm2020/rxap-material-table-system.mjs +144 -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 {
|
|
@@ -180,7 +182,7 @@ class ExpandControlsCellComponent {
|
|
|
180
182
|
}
|
|
181
183
|
}
|
|
182
184
|
ExpandControlsCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ExpandControlsCellComponent, deps: [{ token: ExpandRowService }], target: i0.ɵɵFactoryTarget.Component });
|
|
183
|
-
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:
|
|
185
|
+
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 });
|
|
184
186
|
__decorate([
|
|
185
187
|
Required,
|
|
186
188
|
__metadata("design:type", Object)
|
|
@@ -587,7 +589,7 @@ CheckboxHeaderCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.
|
|
|
587
589
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CheckboxHeaderCellComponent, decorators: [{
|
|
588
590
|
type: Component,
|
|
589
591
|
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" }]
|
|
590
|
-
}], ctorParameters: function () { return [{ type: i4.CdkTable, decorators: [{
|
|
592
|
+
}], ctorParameters: function () { return [{ type: i4$1.CdkTable, decorators: [{
|
|
591
593
|
type: Inject,
|
|
592
594
|
args: [CdkTable]
|
|
593
595
|
}] }, { type: SelectRowService }]; } });
|
|
@@ -757,10 +759,13 @@ class TableDataSourceDirective {
|
|
|
757
759
|
this.tableFilter = tableFilter;
|
|
758
760
|
this._tableFilter = _tableFilter;
|
|
759
761
|
this.loading$ = new ToggleSubject(true);
|
|
762
|
+
this.hasError$ = new ToggleSubject();
|
|
760
763
|
this._subscription = new Subscription();
|
|
761
764
|
this.adapterFactory = null;
|
|
762
765
|
this.matTable.trackBy = this.trackBy;
|
|
763
766
|
this.adapterFactory = adapterFactory;
|
|
767
|
+
this.retry = this.retry.bind(this);
|
|
768
|
+
this.refresh = this.refresh.bind(this);
|
|
764
769
|
}
|
|
765
770
|
/**
|
|
766
771
|
* @deprecated use dataSource instead
|
|
@@ -815,6 +820,7 @@ class TableDataSourceDirective {
|
|
|
815
820
|
this.dataSource.setParameters(this.parameters, this.id);
|
|
816
821
|
}
|
|
817
822
|
this._subscription.add(this.dataSource.loading$.pipe(tap(loading => this.loading$.next(!!loading))).subscribe());
|
|
823
|
+
this._subscription.add(this.dataSource.hasError$.pipe(tap(hasError => this.hasError$.next(!!hasError))).subscribe());
|
|
818
824
|
// create the id property for the mat table component.
|
|
819
825
|
// the instance of the mat table component is used as viewer object
|
|
820
826
|
// with the set of the id property it is possible to use the same data source
|
|
@@ -831,11 +837,14 @@ class TableDataSourceDirective {
|
|
|
831
837
|
.subscribe());
|
|
832
838
|
}
|
|
833
839
|
ngOnDestroy() {
|
|
834
|
-
this._subscription
|
|
840
|
+
this._subscription?.unsubscribe();
|
|
835
841
|
}
|
|
836
842
|
refresh() {
|
|
837
843
|
this.dataSource?.refresh();
|
|
838
844
|
}
|
|
845
|
+
retry() {
|
|
846
|
+
this.dataSource?.retry();
|
|
847
|
+
}
|
|
839
848
|
}
|
|
840
849
|
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 });
|
|
841
850
|
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 });
|
|
@@ -849,7 +858,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
849
858
|
selector: 'table[mat-table][rxapTableDataSource],mat-table[rxapTableDataSource]',
|
|
850
859
|
exportAs: 'rxapTableDataSource'
|
|
851
860
|
}]
|
|
852
|
-
}], ctorParameters: function () { return [{ type: i4.CdkTable, decorators: [{
|
|
861
|
+
}], ctorParameters: function () { return [{ type: i4$1.CdkTable, decorators: [{
|
|
853
862
|
type: Inject,
|
|
854
863
|
args: [CdkTable]
|
|
855
864
|
}] }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
@@ -971,6 +980,12 @@ class FilterHeaderRowDirective extends FormDirective {
|
|
|
971
980
|
super(cdr, formDefinition);
|
|
972
981
|
this.tableFilter = tableFilter;
|
|
973
982
|
}
|
|
983
|
+
set useFormDefinition(value) {
|
|
984
|
+
if (value) {
|
|
985
|
+
this._formDefinition = value;
|
|
986
|
+
this.form = value.rxapFormGroup;
|
|
987
|
+
}
|
|
988
|
+
}
|
|
974
989
|
ngOnInit() {
|
|
975
990
|
super.ngOnInit();
|
|
976
991
|
this._subscription = this.form.value$
|
|
@@ -983,7 +998,7 @@ class FilterHeaderRowDirective extends FormDirective {
|
|
|
983
998
|
}
|
|
984
999
|
}
|
|
985
1000
|
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 });
|
|
986
|
-
FilterHeaderRowDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: FilterHeaderRowDirective, selector: "table[rxap-filter-header-row]", providers: [
|
|
1001
|
+
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: [
|
|
987
1002
|
{
|
|
988
1003
|
provide: ControlContainer,
|
|
989
1004
|
// ignore coverage
|
|
@@ -1008,7 +1023,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
1008
1023
|
}, {
|
|
1009
1024
|
type: Inject,
|
|
1010
1025
|
args: [RXAP_TABLE_FILTER_FORM_DEFINITION]
|
|
1011
|
-
}] }]; }
|
|
1026
|
+
}] }]; }, propDecorators: { useFormDefinition: [{
|
|
1027
|
+
type: Input,
|
|
1028
|
+
args: ['rxap-filter-header-row']
|
|
1029
|
+
}] } });
|
|
1012
1030
|
|
|
1013
1031
|
class ToFilterColumnNamesPipe {
|
|
1014
1032
|
transform(columns) {
|
|
@@ -1153,7 +1171,7 @@ class TableColumnMenuComponent {
|
|
|
1153
1171
|
}
|
|
1154
1172
|
}
|
|
1155
1173
|
TableColumnMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableColumnMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1156
|
-
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:
|
|
1174
|
+
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 });
|
|
1157
1175
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableColumnMenuComponent, decorators: [{
|
|
1158
1176
|
type: Component,
|
|
1159
1177
|
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"] }]
|
|
@@ -1217,7 +1235,7 @@ class TableShowArchivedSlideComponent {
|
|
|
1217
1235
|
}
|
|
1218
1236
|
}
|
|
1219
1237
|
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 });
|
|
1220
|
-
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$
|
|
1238
|
+
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 });
|
|
1221
1239
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableShowArchivedSlideComponent, decorators: [{
|
|
1222
1240
|
type: Component,
|
|
1223
1241
|
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" }]
|
|
@@ -1368,7 +1386,7 @@ class RowControlsCellComponent {
|
|
|
1368
1386
|
}
|
|
1369
1387
|
}
|
|
1370
1388
|
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 });
|
|
1371
|
-
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$
|
|
1389
|
+
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 });
|
|
1372
1390
|
__decorate([
|
|
1373
1391
|
Required,
|
|
1374
1392
|
__metadata("design:type", Object)
|
|
@@ -1491,7 +1509,7 @@ class RowControlsHeaderCellComponent {
|
|
|
1491
1509
|
}
|
|
1492
1510
|
}
|
|
1493
1511
|
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 });
|
|
1494
|
-
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$
|
|
1512
|
+
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 });
|
|
1495
1513
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RowControlsHeaderCellComponent, decorators: [{
|
|
1496
1514
|
type: Component,
|
|
1497
1515
|
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" }]
|
|
@@ -1584,7 +1602,7 @@ class TableSelectControlsComponent {
|
|
|
1584
1602
|
}
|
|
1585
1603
|
}
|
|
1586
1604
|
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 });
|
|
1587
|
-
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:
|
|
1605
|
+
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 });
|
|
1588
1606
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableSelectControlsComponent, decorators: [{
|
|
1589
1607
|
type: Component,
|
|
1590
1608
|
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" }]
|
|
@@ -1689,7 +1707,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
1689
1707
|
class IconCellComponent {
|
|
1690
1708
|
}
|
|
1691
1709
|
IconCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: IconCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1692
|
-
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$
|
|
1710
|
+
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 });
|
|
1693
1711
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: IconCellComponent, decorators: [{
|
|
1694
1712
|
type: Component,
|
|
1695
1713
|
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" }]
|
|
@@ -1766,7 +1784,7 @@ class LinkCellComponent {
|
|
|
1766
1784
|
}
|
|
1767
1785
|
}
|
|
1768
1786
|
LinkCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: LinkCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1769
|
-
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$
|
|
1787
|
+
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 });
|
|
1770
1788
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: LinkCellComponent, decorators: [{
|
|
1771
1789
|
type: Component,
|
|
1772
1790
|
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"] }]
|
|
@@ -1915,11 +1933,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
1915
1933
|
}]
|
|
1916
1934
|
}] });
|
|
1917
1935
|
|
|
1936
|
+
/**
|
|
1937
|
+
* @deprecated use RXAP_TABLE_ACTION_METHOD_METADATA instead
|
|
1938
|
+
*/
|
|
1918
1939
|
const RXAP_TABLE_ACTION_METHOD_TYPE_METADATA = 'rxap-table-action-method-type-metadata';
|
|
1940
|
+
const RXAP_TABLE_ACTION_METHOD_METADATA = 'rxap-table-action-method-metadata';
|
|
1941
|
+
/**
|
|
1942
|
+
* @deprecated use RXAP_TABLE_ACTION_METHOD_METADATA instead
|
|
1943
|
+
*/
|
|
1919
1944
|
const RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA = 'rxap-table-action-method-check-function-metadata';
|
|
1920
|
-
function TableActionMethod(
|
|
1945
|
+
function TableActionMethod(typeOrOptions, checkFunction) {
|
|
1946
|
+
let type;
|
|
1947
|
+
let options;
|
|
1948
|
+
if (typeof typeOrOptions === 'string') {
|
|
1949
|
+
type = typeOrOptions;
|
|
1950
|
+
options = { type, checkFunction };
|
|
1951
|
+
}
|
|
1952
|
+
else {
|
|
1953
|
+
options = typeOrOptions;
|
|
1954
|
+
type = options.type;
|
|
1955
|
+
checkFunction = options.checkFunction;
|
|
1956
|
+
}
|
|
1921
1957
|
return function (target) {
|
|
1922
|
-
setMetadata(
|
|
1958
|
+
setMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, options, target);
|
|
1959
|
+
if (type) {
|
|
1960
|
+
setMetadata(RXAP_TABLE_ACTION_METHOD_TYPE_METADATA, type, target);
|
|
1961
|
+
}
|
|
1923
1962
|
if (checkFunction) {
|
|
1924
1963
|
setMetadata(RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA, checkFunction, target);
|
|
1925
1964
|
}
|
|
@@ -1956,49 +1995,76 @@ var TableRowActionStatus;
|
|
|
1956
1995
|
})(TableRowActionStatus || (TableRowActionStatus = {}));
|
|
1957
1996
|
|
|
1958
1997
|
function IsTableRowActionTypeSwitchMethod(method) {
|
|
1959
|
-
return
|
|
1998
|
+
return getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)?.type === undefined;
|
|
1960
1999
|
}
|
|
1961
2000
|
function IsTableRowActionTypeMethod(type) {
|
|
1962
2001
|
return (method) => {
|
|
1963
|
-
return (getMetadata(
|
|
2002
|
+
return (getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)?.type === type);
|
|
1964
2003
|
};
|
|
1965
2004
|
}
|
|
1966
2005
|
function HasTableRowActionCheckFunction(method) {
|
|
1967
|
-
return
|
|
2006
|
+
return getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)?.checkFunction !== undefined;
|
|
1968
2007
|
}
|
|
1969
2008
|
function GetTableRowActionCheckFunction(method) {
|
|
1970
|
-
const checkFunction = getMetadata(
|
|
2009
|
+
const checkFunction = getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)?.checkFunction;
|
|
1971
2010
|
if (!checkFunction) {
|
|
1972
2011
|
throw new Error(`Extracted check function from '${method.constructor.name}' is empty`);
|
|
1973
2012
|
}
|
|
1974
2013
|
return checkFunction;
|
|
1975
2014
|
}
|
|
2015
|
+
function HasTableRowActionMetadata(method) {
|
|
2016
|
+
return hasMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor);
|
|
2017
|
+
}
|
|
2018
|
+
function GetTableRowActionMetadata(method) {
|
|
2019
|
+
const metadata = getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor);
|
|
2020
|
+
if (!metadata) {
|
|
2021
|
+
throw new Error(`Extracted metadata from '${method.constructor.name}' is empty`);
|
|
2022
|
+
}
|
|
2023
|
+
return metadata;
|
|
2024
|
+
}
|
|
1976
2025
|
|
|
1977
2026
|
const RXAP_TABLE_ROW_ACTION_METHOD = new InjectionToken('rxap-table-row-action-method');
|
|
1978
2027
|
|
|
1979
|
-
class TableRowActionDirective {
|
|
1980
|
-
constructor(actionMethodList, cdr, vcr, tableDataSourceDirective, snackBar, matButton) {
|
|
2028
|
+
class TableRowActionDirective extends ConfirmDirective {
|
|
2029
|
+
constructor(overlay, elementRef, actionMethodList, cdr, vcr, tableDataSourceDirective, snackBar, matButton, matTooltip) {
|
|
2030
|
+
super(overlay, elementRef);
|
|
1981
2031
|
this.cdr = cdr;
|
|
1982
2032
|
this.vcr = vcr;
|
|
1983
2033
|
this.tableDataSourceDirective = tableDataSourceDirective;
|
|
1984
2034
|
this.snackBar = snackBar;
|
|
1985
2035
|
this.matButton = matButton;
|
|
2036
|
+
this.matTooltip = matTooltip;
|
|
1986
2037
|
this._hasConfirmDirective = false;
|
|
1987
2038
|
this._currentStatus = TableRowActionStatus.DONE;
|
|
1988
2039
|
this._actionDisabled = false;
|
|
2040
|
+
this.options = null;
|
|
1989
2041
|
this.actionMethodList = coerceArray(actionMethodList);
|
|
1990
2042
|
}
|
|
1991
2043
|
set hasConfirmDirective(value) {
|
|
1992
2044
|
this._hasConfirmDirective = coerceBoolean(value);
|
|
1993
2045
|
}
|
|
2046
|
+
ngOnInit() {
|
|
2047
|
+
this.options = this.getTableActionOptions();
|
|
2048
|
+
if (this.options) {
|
|
2049
|
+
this.refresh ?? (this.refresh = this.options.refresh ?? false);
|
|
2050
|
+
this.errorMessage ?? (this.errorMessage = this.options.errorMessage ?? undefined);
|
|
2051
|
+
this.successMessage ?? (this.successMessage = this.options.successMessage ?? undefined);
|
|
2052
|
+
if (this.matTooltip && this.options.tooltip) {
|
|
2053
|
+
this.matTooltip.message = this.options.tooltip;
|
|
2054
|
+
}
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
1994
2057
|
onConfirmed() {
|
|
1995
2058
|
return this.execute();
|
|
1996
2059
|
}
|
|
1997
2060
|
onClick($event) {
|
|
1998
2061
|
$event.stopPropagation();
|
|
1999
|
-
if (!this._hasConfirmDirective) {
|
|
2062
|
+
if (!this._hasConfirmDirective && !this.options?.confirm) {
|
|
2000
2063
|
return this.execute();
|
|
2001
2064
|
}
|
|
2065
|
+
else if (this.options?.confirm) {
|
|
2066
|
+
this.openConfirmOverly();
|
|
2067
|
+
}
|
|
2002
2068
|
else {
|
|
2003
2069
|
if (isDevMode()) {
|
|
2004
2070
|
console.debug('skip remote method call. Wait for confirmation.');
|
|
@@ -2097,9 +2163,16 @@ class TableRowActionDirective {
|
|
|
2097
2163
|
}
|
|
2098
2164
|
this.cdr.detectChanges();
|
|
2099
2165
|
}
|
|
2166
|
+
getTableActionOptions() {
|
|
2167
|
+
const metadataList = this.actionMethodList.map(actionMethod => GetTableRowActionMetadata(actionMethod));
|
|
2168
|
+
if (metadataList.length === 0) {
|
|
2169
|
+
return null;
|
|
2170
|
+
}
|
|
2171
|
+
return metadataList.filter(metadata => metadata.type === this.type).sort((a, b) => (a.priority ?? 0) - (b.priority ?? 0))[0];
|
|
2172
|
+
}
|
|
2100
2173
|
}
|
|
2101
|
-
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 });
|
|
2102
|
-
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 });
|
|
2174
|
+
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 });
|
|
2175
|
+
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 });
|
|
2103
2176
|
__decorate([
|
|
2104
2177
|
Required,
|
|
2105
2178
|
__metadata("design:type", Object)
|
|
@@ -2113,7 +2186,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
2113
2186
|
args: [{
|
|
2114
2187
|
selector: 'button[rxapTableRowAction]'
|
|
2115
2188
|
}]
|
|
2116
|
-
}], ctorParameters: function () { return [{ type:
|
|
2189
|
+
}], ctorParameters: function () { return [{ type: i1$4.Overlay, decorators: [{
|
|
2190
|
+
type: Inject,
|
|
2191
|
+
args: [Overlay]
|
|
2192
|
+
}] }, { type: i0.ElementRef, decorators: [{
|
|
2193
|
+
type: Inject,
|
|
2194
|
+
args: [ElementRef]
|
|
2195
|
+
}] }, { type: undefined, decorators: [{
|
|
2117
2196
|
type: Inject,
|
|
2118
2197
|
args: [RXAP_TABLE_ROW_ACTION_METHOD]
|
|
2119
2198
|
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
@@ -2125,14 +2204,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
2125
2204
|
}] }, { type: TableDataSourceDirective, decorators: [{
|
|
2126
2205
|
type: Inject,
|
|
2127
2206
|
args: [TableDataSourceDirective]
|
|
2128
|
-
}] }, { type:
|
|
2207
|
+
}] }, { type: i3$3.MatSnackBar, decorators: [{
|
|
2129
2208
|
type: Inject,
|
|
2130
2209
|
args: [MatSnackBar]
|
|
2131
|
-
}] }, { type:
|
|
2210
|
+
}] }, { type: i4.MatButton, decorators: [{
|
|
2132
2211
|
type: Optional
|
|
2133
2212
|
}, {
|
|
2134
2213
|
type: Inject,
|
|
2135
2214
|
args: [MatButton]
|
|
2215
|
+
}] }, { type: i7$1.MatTooltip, decorators: [{
|
|
2216
|
+
type: Optional
|
|
2217
|
+
}, {
|
|
2218
|
+
type: Inject,
|
|
2219
|
+
args: [MatTooltip]
|
|
2136
2220
|
}] }]; }, propDecorators: { hasConfirmDirective: [{
|
|
2137
2221
|
type: Input,
|
|
2138
2222
|
args: ['rxapConfirm']
|
|
@@ -2159,8 +2243,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
2159
2243
|
}] } });
|
|
2160
2244
|
|
|
2161
2245
|
class TableRowHeaderActionDirective extends TableRowActionDirective {
|
|
2162
|
-
constructor(actionMethod, cdr, vcr, tableDataSourceDirective, snackBar, matButton, selectRowService) {
|
|
2163
|
-
super(actionMethod, cdr, vcr, tableDataSourceDirective, snackBar, matButton);
|
|
2246
|
+
constructor(overlay, elementRef, actionMethod, cdr, vcr, tableDataSourceDirective, snackBar, matButton, matTooltip, selectRowService) {
|
|
2247
|
+
super(overlay, elementRef, actionMethod, cdr, vcr, tableDataSourceDirective, snackBar, matButton, matTooltip);
|
|
2164
2248
|
this.selectRowService = selectRowService;
|
|
2165
2249
|
}
|
|
2166
2250
|
ngOnDestroy() {
|
|
@@ -2188,7 +2272,7 @@ class TableRowHeaderActionDirective extends TableRowActionDirective {
|
|
|
2188
2272
|
return this.selectRowService?.selectedRows ?? [];
|
|
2189
2273
|
}
|
|
2190
2274
|
}
|
|
2191
|
-
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 });
|
|
2275
|
+
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 });
|
|
2192
2276
|
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 });
|
|
2193
2277
|
__decorate([
|
|
2194
2278
|
Required,
|
|
@@ -2199,7 +2283,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
2199
2283
|
args: [{
|
|
2200
2284
|
selector: 'button[rxapTableRowHeaderAction]'
|
|
2201
2285
|
}]
|
|
2202
|
-
}], ctorParameters: function () { return [{ type:
|
|
2286
|
+
}], ctorParameters: function () { return [{ type: i1$4.Overlay, decorators: [{
|
|
2287
|
+
type: Inject,
|
|
2288
|
+
args: [Overlay]
|
|
2289
|
+
}] }, { type: i0.ElementRef, decorators: [{
|
|
2290
|
+
type: Inject,
|
|
2291
|
+
args: [ElementRef]
|
|
2292
|
+
}] }, { type: undefined, decorators: [{
|
|
2203
2293
|
type: Inject,
|
|
2204
2294
|
args: [RXAP_TABLE_ROW_ACTION_METHOD]
|
|
2205
2295
|
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
@@ -2211,14 +2301,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
2211
2301
|
}] }, { type: TableDataSourceDirective, decorators: [{
|
|
2212
2302
|
type: Inject,
|
|
2213
2303
|
args: [TableDataSourceDirective]
|
|
2214
|
-
}] }, { type:
|
|
2304
|
+
}] }, { type: i3$3.MatSnackBar, decorators: [{
|
|
2215
2305
|
type: Inject,
|
|
2216
2306
|
args: [MatSnackBar]
|
|
2217
|
-
}] }, { type:
|
|
2307
|
+
}] }, { type: i4.MatButton, decorators: [{
|
|
2218
2308
|
type: Optional
|
|
2219
2309
|
}, {
|
|
2220
2310
|
type: Inject,
|
|
2221
2311
|
args: [MatButton]
|
|
2312
|
+
}] }, { type: i7$1.MatTooltip, decorators: [{
|
|
2313
|
+
type: Optional
|
|
2314
|
+
}, {
|
|
2315
|
+
type: Inject,
|
|
2316
|
+
args: [MatTooltip]
|
|
2222
2317
|
}] }, { type: SelectRowService, decorators: [{
|
|
2223
2318
|
type: Optional
|
|
2224
2319
|
}, {
|
|
@@ -2273,7 +2368,7 @@ TableRowActionsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", ve
|
|
|
2273
2368
|
TableRowActionsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: TableRowActionsModule, declarations: [TableRowActionDirective,
|
|
2274
2369
|
TableRowActionExecutingDirective,
|
|
2275
2370
|
TableRowHeaderActionDirective,
|
|
2276
|
-
RowActionCheckPipe], exports: [TableRowActionDirective,
|
|
2371
|
+
RowActionCheckPipe], imports: [ConfirmComponentModule], exports: [TableRowActionDirective,
|
|
2277
2372
|
TableRowHeaderActionDirective,
|
|
2278
2373
|
TableRowActionExecutingDirective,
|
|
2279
2374
|
RowActionCheckPipe,
|
|
@@ -2283,7 +2378,7 @@ TableRowActionsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", v
|
|
|
2283
2378
|
MatIconModule,
|
|
2284
2379
|
MatProgressBarModule,
|
|
2285
2380
|
CommonModule] });
|
|
2286
|
-
TableRowActionsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableRowActionsModule, imports: [MatTooltipModule,
|
|
2381
|
+
TableRowActionsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableRowActionsModule, imports: [ConfirmComponentModule, MatTooltipModule,
|
|
2287
2382
|
MatButtonModule,
|
|
2288
2383
|
ConfirmComponentModule,
|
|
2289
2384
|
MatIconModule,
|
|
@@ -2298,6 +2393,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
2298
2393
|
TableRowHeaderActionDirective,
|
|
2299
2394
|
RowActionCheckPipe
|
|
2300
2395
|
],
|
|
2396
|
+
imports: [
|
|
2397
|
+
ConfirmComponentModule
|
|
2398
|
+
],
|
|
2301
2399
|
exports: [
|
|
2302
2400
|
TableRowActionDirective,
|
|
2303
2401
|
TableRowHeaderActionDirective,
|
|
@@ -2320,5 +2418,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
2320
2418
|
* Generated bundle index. Do not edit.
|
|
2321
2419
|
*/
|
|
2322
2420
|
|
|
2323
|
-
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 };
|
|
2421
|
+
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 };
|
|
2324
2422
|
//# sourceMappingURL=rxap-material-table-system.mjs.map
|