@rxap/material-table-system 13.3.1 → 13.5.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 +7 -2
- package/esm2020/lib/table-row-actions/decorators.mjs +21 -2
- 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 +8 -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 +120 -25
- package/fesm2015/rxap-material-table-system.mjs.map +1 -1
- package/fesm2020/rxap-material-table-system.mjs +112 -25
- package/fesm2020/rxap-material-table-system.mjs.map +1 -1
- package/lib/table-data-source.directive.d.ts +2 -0
- 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 +6 -6
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL21hdGVyaWFsL3RhYmxlLXN5c3RlbS9zcmMvbGliL3RhYmxlLXJvdy1hY3Rpb25zL3R5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBNZXRob2QgfSBmcm9tICdAcnhhcC91dGlsaXRpZXMvcnhqcyc7XG5cbmV4cG9ydCB0eXBlIFJvd0FjdGlvbkNoZWNrRnVuY3Rpb248RGF0YSBleHRlbmRzIFJlY29yZDxzdHJpbmcsIGFueT4+ID0gKGVsZW1lbnQ6IERhdGEsIGluZGV4OiBudW1iZXIsIGFycmF5OiBEYXRhW10pID0+IGJvb2xlYW47XG5leHBvcnQgdHlwZSBUYWJsZVJvd0FjdGlvblR5cGVTd2l0Y2hNZXRob2Q8RGF0YSBleHRlbmRzIFJlY29yZDxzdHJpbmcsIGFueT4+ID0gTWV0aG9kPGFueSwgeyBlbGVtZW50OiBEYXRhOyB0eXBlOiBzdHJpbmcgfT47XG5leHBvcnQgdHlwZSBUYWJsZVJvd0FjdGlvblR5cGVNZXRob2Q8RGF0YSBleHRlbmRzIFJlY29yZDxzdHJpbmcsIGFueT4+
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL21hdGVyaWFsL3RhYmxlLXN5c3RlbS9zcmMvbGliL3RhYmxlLXJvdy1hY3Rpb25zL3R5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBNZXRob2QgfSBmcm9tICdAcnhhcC91dGlsaXRpZXMvcnhqcyc7XG5cbmV4cG9ydCB0eXBlIFJvd0FjdGlvbkNoZWNrRnVuY3Rpb248RGF0YSBleHRlbmRzIFJlY29yZDxzdHJpbmcsIGFueT4+ID0gKGVsZW1lbnQ6IERhdGEsIGluZGV4OiBudW1iZXIsIGFycmF5OiBEYXRhW10pID0+IGJvb2xlYW47XG5leHBvcnQgdHlwZSBUYWJsZVJvd0FjdGlvblR5cGVTd2l0Y2hNZXRob2Q8RGF0YSBleHRlbmRzIFJlY29yZDxzdHJpbmcsIGFueT4+ID0gTWV0aG9kPGFueSwgeyBlbGVtZW50OiBEYXRhOyB0eXBlOiBzdHJpbmcgfT47XG5leHBvcnQgdHlwZSBUYWJsZVJvd0FjdGlvblR5cGVNZXRob2Q8RGF0YSBleHRlbmRzIFJlY29yZDxzdHJpbmcsIGFueT4+ID0gTWV0aG9kPGFueSxcbiAgRGF0YT47XG5leHBvcnQgdHlwZSBUYWJsZVJvd0FjdGlvbk1ldGhvZDxEYXRhIGV4dGVuZHMgUmVjb3JkPHN0cmluZywgYW55PiA9IFJlY29yZDxzdHJpbmcsIGFueT4+ID1cbiAgfCBUYWJsZVJvd0FjdGlvblR5cGVTd2l0Y2hNZXRob2Q8RGF0YT5cbiAgfCBUYWJsZVJvd0FjdGlvblR5cGVNZXRob2Q8RGF0YT47XG4iXX0=
|
|
@@ -37,17 +37,19 @@ import * as i3$1 from '@angular/material/slide-toggle';
|
|
|
37
37
|
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
38
38
|
import * as i4$1 from '@angular/flex-layout/flex';
|
|
39
39
|
import * as i6$1 from '@angular/material/tooltip';
|
|
40
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
40
|
+
import { MatTooltipModule, MatTooltip } from '@angular/material/tooltip';
|
|
41
41
|
import * as i7$1 from '@rxap/components';
|
|
42
|
-
import { ConfirmComponentModule, CopyToClipboardModule } from '@rxap/components';
|
|
42
|
+
import { ConfirmComponentModule, CopyToClipboardModule, ConfirmDirective } from '@rxap/components';
|
|
43
43
|
import * as i8 from '@rxap/open-api/remote-method';
|
|
44
44
|
import { RXAP_WINDOW_REF } from '@rxap/window-system';
|
|
45
45
|
import * as i3$2 from '@rxap/material-directives/icon';
|
|
46
46
|
import { IconDirectiveModule } from '@rxap/material-directives/icon';
|
|
47
47
|
import { MatOption } from '@angular/material/core';
|
|
48
|
-
import { setMetadata,
|
|
49
|
-
import * as
|
|
48
|
+
import { setMetadata, getMetadata, hasMetadata } from '@rxap/utilities/reflect-metadata';
|
|
49
|
+
import * as i3$3 from '@angular/material/snack-bar';
|
|
50
50
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
51
|
+
import * as i1$5 from '@angular/cdk/overlay';
|
|
52
|
+
import { Overlay } from '@angular/cdk/overlay';
|
|
51
53
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
52
54
|
|
|
53
55
|
class ExpandRowContentDirective {
|
|
@@ -784,6 +786,7 @@ class TableDataSourceDirective {
|
|
|
784
786
|
this.tableFilter = tableFilter;
|
|
785
787
|
this._tableFilter = _tableFilter;
|
|
786
788
|
this.loading$ = new ToggleSubject(true);
|
|
789
|
+
this.hasError$ = new ToggleSubject();
|
|
787
790
|
this._subscription = new Subscription();
|
|
788
791
|
this.adapterFactory = null;
|
|
789
792
|
this.matTable.trackBy = this.trackBy;
|
|
@@ -844,6 +847,7 @@ class TableDataSourceDirective {
|
|
|
844
847
|
this.dataSource.setParameters(this.parameters, this.id);
|
|
845
848
|
}
|
|
846
849
|
this._subscription.add(this.dataSource.loading$.pipe(tap(loading => this.loading$.next(!!loading))).subscribe());
|
|
850
|
+
this._subscription.add(this.dataSource.hasError$.pipe(tap(hasError => this.hasError$.next(!!hasError))).subscribe());
|
|
847
851
|
// create the id property for the mat table component.
|
|
848
852
|
// the instance of the mat table component is used as viewer object
|
|
849
853
|
// with the set of the id property it is possible to use the same data source
|
|
@@ -860,12 +864,17 @@ class TableDataSourceDirective {
|
|
|
860
864
|
.subscribe());
|
|
861
865
|
}
|
|
862
866
|
ngOnDestroy() {
|
|
863
|
-
|
|
867
|
+
var _a;
|
|
868
|
+
(_a = this._subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
864
869
|
}
|
|
865
870
|
refresh() {
|
|
866
871
|
var _a;
|
|
867
872
|
(_a = this.dataSource) === null || _a === void 0 ? void 0 : _a.refresh();
|
|
868
873
|
}
|
|
874
|
+
retry() {
|
|
875
|
+
var _a;
|
|
876
|
+
(_a = this.dataSource) === null || _a === void 0 ? void 0 : _a.retry();
|
|
877
|
+
}
|
|
869
878
|
}
|
|
870
879
|
TableDataSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", 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 });
|
|
871
880
|
TableDataSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", 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 });
|
|
@@ -2019,10 +2028,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
2019
2028
|
}]
|
|
2020
2029
|
}] });
|
|
2021
2030
|
|
|
2031
|
+
/**
|
|
2032
|
+
* @deprecated use RXAP_TABLE_ACTION_METHOD_METADATA instead
|
|
2033
|
+
*/
|
|
2022
2034
|
const RXAP_TABLE_ACTION_METHOD_TYPE_METADATA = 'rxap-table-action-method-type-metadata';
|
|
2035
|
+
const RXAP_TABLE_ACTION_METHOD_METADATA = 'rxap-table-action-method-metadata';
|
|
2036
|
+
/**
|
|
2037
|
+
* @deprecated use RXAP_TABLE_ACTION_METHOD_METADATA instead
|
|
2038
|
+
*/
|
|
2023
2039
|
const RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA = 'rxap-table-action-method-check-function-metadata';
|
|
2024
|
-
function TableActionMethod(
|
|
2040
|
+
function TableActionMethod(typeOrOptions, checkFunction) {
|
|
2041
|
+
let type;
|
|
2042
|
+
let options;
|
|
2043
|
+
if (typeof typeOrOptions === 'string') {
|
|
2044
|
+
type = typeOrOptions;
|
|
2045
|
+
options = { type, checkFunction };
|
|
2046
|
+
}
|
|
2047
|
+
else {
|
|
2048
|
+
options = typeOrOptions;
|
|
2049
|
+
type = options.type;
|
|
2050
|
+
checkFunction = options.checkFunction;
|
|
2051
|
+
}
|
|
2025
2052
|
return function (target) {
|
|
2053
|
+
setMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, options, target);
|
|
2026
2054
|
setMetadata(RXAP_TABLE_ACTION_METHOD_TYPE_METADATA, type, target);
|
|
2027
2055
|
if (checkFunction) {
|
|
2028
2056
|
setMetadata(RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA, checkFunction, target);
|
|
@@ -2060,49 +2088,82 @@ var TableRowActionStatus;
|
|
|
2060
2088
|
})(TableRowActionStatus || (TableRowActionStatus = {}));
|
|
2061
2089
|
|
|
2062
2090
|
function IsTableRowActionTypeSwitchMethod(method) {
|
|
2063
|
-
|
|
2091
|
+
var _a;
|
|
2092
|
+
return ((_a = getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)) === null || _a === void 0 ? void 0 : _a.type) !== undefined;
|
|
2064
2093
|
}
|
|
2065
2094
|
function IsTableRowActionTypeMethod(type) {
|
|
2066
2095
|
return (method) => {
|
|
2067
|
-
|
|
2096
|
+
var _a;
|
|
2097
|
+
return (((_a = getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)) === null || _a === void 0 ? void 0 : _a.type) === type);
|
|
2068
2098
|
};
|
|
2069
2099
|
}
|
|
2070
2100
|
function HasTableRowActionCheckFunction(method) {
|
|
2071
|
-
|
|
2101
|
+
var _a;
|
|
2102
|
+
return ((_a = getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)) === null || _a === void 0 ? void 0 : _a.checkFunction) !== undefined;
|
|
2072
2103
|
}
|
|
2073
2104
|
function GetTableRowActionCheckFunction(method) {
|
|
2074
|
-
|
|
2105
|
+
var _a;
|
|
2106
|
+
const checkFunction = (_a = getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)) === null || _a === void 0 ? void 0 : _a.checkFunction;
|
|
2075
2107
|
if (!checkFunction) {
|
|
2076
2108
|
throw new Error(`Extracted check function from '${method.constructor.name}' is empty`);
|
|
2077
2109
|
}
|
|
2078
2110
|
return checkFunction;
|
|
2079
2111
|
}
|
|
2112
|
+
function HasTableRowActionMetadata(method) {
|
|
2113
|
+
return hasMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor);
|
|
2114
|
+
}
|
|
2115
|
+
function GetTableRowActionMetadata(method) {
|
|
2116
|
+
const metadata = getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor);
|
|
2117
|
+
if (!metadata) {
|
|
2118
|
+
throw new Error(`Extracted metadata from '${method.constructor.name}' is empty`);
|
|
2119
|
+
}
|
|
2120
|
+
return metadata;
|
|
2121
|
+
}
|
|
2080
2122
|
|
|
2081
2123
|
const RXAP_TABLE_ROW_ACTION_METHOD = new InjectionToken('rxap-table-row-action-method');
|
|
2082
2124
|
|
|
2083
|
-
class TableRowActionDirective {
|
|
2084
|
-
constructor(actionMethodList, cdr, vcr, tableDataSourceDirective, snackBar, matButton) {
|
|
2125
|
+
class TableRowActionDirective extends ConfirmDirective {
|
|
2126
|
+
constructor(overlay, elementRef, actionMethodList, cdr, vcr, tableDataSourceDirective, snackBar, matButton, matTooltip) {
|
|
2127
|
+
super(overlay, elementRef);
|
|
2085
2128
|
this.cdr = cdr;
|
|
2086
2129
|
this.vcr = vcr;
|
|
2087
2130
|
this.tableDataSourceDirective = tableDataSourceDirective;
|
|
2088
2131
|
this.snackBar = snackBar;
|
|
2089
2132
|
this.matButton = matButton;
|
|
2133
|
+
this.matTooltip = matTooltip;
|
|
2090
2134
|
this._hasConfirmDirective = false;
|
|
2091
2135
|
this._currentStatus = TableRowActionStatus.DONE;
|
|
2092
2136
|
this._actionDisabled = false;
|
|
2137
|
+
this.options = null;
|
|
2093
2138
|
this.actionMethodList = coerceArray(actionMethodList);
|
|
2094
2139
|
}
|
|
2095
2140
|
set hasConfirmDirective(value) {
|
|
2096
2141
|
this._hasConfirmDirective = coerceBoolean(value);
|
|
2097
2142
|
}
|
|
2143
|
+
ngOnInit() {
|
|
2144
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2145
|
+
this.options = this.getTableActionOptions();
|
|
2146
|
+
if (this.options) {
|
|
2147
|
+
(_a = this.refresh) !== null && _a !== void 0 ? _a : (this.refresh = (_b = this.options.refresh) !== null && _b !== void 0 ? _b : false);
|
|
2148
|
+
(_c = this.errorMessage) !== null && _c !== void 0 ? _c : (this.errorMessage = (_d = this.options.errorMessage) !== null && _d !== void 0 ? _d : undefined);
|
|
2149
|
+
(_e = this.successMessage) !== null && _e !== void 0 ? _e : (this.successMessage = (_f = this.options.successMessage) !== null && _f !== void 0 ? _f : undefined);
|
|
2150
|
+
if (this.matTooltip && this.options.tooltip) {
|
|
2151
|
+
this.matTooltip.message = this.options.tooltip;
|
|
2152
|
+
}
|
|
2153
|
+
}
|
|
2154
|
+
}
|
|
2098
2155
|
onConfirmed() {
|
|
2099
2156
|
return this.execute();
|
|
2100
2157
|
}
|
|
2101
2158
|
onClick($event) {
|
|
2159
|
+
var _a, _b;
|
|
2102
2160
|
$event.stopPropagation();
|
|
2103
|
-
if (!this._hasConfirmDirective) {
|
|
2161
|
+
if (!this._hasConfirmDirective && !((_a = this.options) === null || _a === void 0 ? void 0 : _a.confirm)) {
|
|
2104
2162
|
return this.execute();
|
|
2105
2163
|
}
|
|
2164
|
+
else if ((_b = this.options) === null || _b === void 0 ? void 0 : _b.confirm) {
|
|
2165
|
+
this.openConfirmOverly();
|
|
2166
|
+
}
|
|
2106
2167
|
else {
|
|
2107
2168
|
if (isDevMode()) {
|
|
2108
2169
|
console.debug('skip remote method call. Wait for confirmation.');
|
|
@@ -2204,9 +2265,16 @@ class TableRowActionDirective {
|
|
|
2204
2265
|
}
|
|
2205
2266
|
this.cdr.detectChanges();
|
|
2206
2267
|
}
|
|
2268
|
+
getTableActionOptions() {
|
|
2269
|
+
const metadataList = this.actionMethodList.map(actionMethod => GetTableRowActionMetadata(actionMethod));
|
|
2270
|
+
if (metadataList.length === 0) {
|
|
2271
|
+
return null;
|
|
2272
|
+
}
|
|
2273
|
+
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];
|
|
2274
|
+
}
|
|
2207
2275
|
}
|
|
2208
|
-
TableRowActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", 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 });
|
|
2209
|
-
TableRowActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", 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 });
|
|
2276
|
+
TableRowActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", 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 });
|
|
2277
|
+
TableRowActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", 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 });
|
|
2210
2278
|
__decorate([
|
|
2211
2279
|
Required,
|
|
2212
2280
|
__metadata("design:type", Object)
|
|
@@ -2221,7 +2289,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
2221
2289
|
selector: 'button[rxapTableRowAction]'
|
|
2222
2290
|
}]
|
|
2223
2291
|
}], ctorParameters: function () {
|
|
2224
|
-
return [{ type:
|
|
2292
|
+
return [{ type: i1$5.Overlay, decorators: [{
|
|
2293
|
+
type: Inject,
|
|
2294
|
+
args: [Overlay]
|
|
2295
|
+
}] }, { type: i0.ElementRef, decorators: [{
|
|
2296
|
+
type: Inject,
|
|
2297
|
+
args: [ElementRef]
|
|
2298
|
+
}] }, { type: undefined, decorators: [{
|
|
2225
2299
|
type: Inject,
|
|
2226
2300
|
args: [RXAP_TABLE_ROW_ACTION_METHOD]
|
|
2227
2301
|
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
@@ -2233,7 +2307,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
2233
2307
|
}] }, { type: TableDataSourceDirective, decorators: [{
|
|
2234
2308
|
type: Inject,
|
|
2235
2309
|
args: [TableDataSourceDirective]
|
|
2236
|
-
}] }, { type:
|
|
2310
|
+
}] }, { type: i3$3.MatSnackBar, decorators: [{
|
|
2237
2311
|
type: Inject,
|
|
2238
2312
|
args: [MatSnackBar]
|
|
2239
2313
|
}] }, { type: i2$1.MatButton, decorators: [{
|
|
@@ -2241,6 +2315,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
2241
2315
|
}, {
|
|
2242
2316
|
type: Inject,
|
|
2243
2317
|
args: [MatButton]
|
|
2318
|
+
}] }, { type: i6$1.MatTooltip, decorators: [{
|
|
2319
|
+
type: Optional
|
|
2320
|
+
}, {
|
|
2321
|
+
type: Inject,
|
|
2322
|
+
args: [MatTooltip]
|
|
2244
2323
|
}] }];
|
|
2245
2324
|
}, propDecorators: { hasConfirmDirective: [{
|
|
2246
2325
|
type: Input,
|
|
@@ -2268,8 +2347,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
2268
2347
|
}] } });
|
|
2269
2348
|
|
|
2270
2349
|
class TableRowHeaderActionDirective extends TableRowActionDirective {
|
|
2271
|
-
constructor(actionMethod, cdr, vcr, tableDataSourceDirective, snackBar, matButton, selectRowService) {
|
|
2272
|
-
super(actionMethod, cdr, vcr, tableDataSourceDirective, snackBar, matButton);
|
|
2350
|
+
constructor(overlay, elementRef, actionMethod, cdr, vcr, tableDataSourceDirective, snackBar, matButton, matTooltip, selectRowService) {
|
|
2351
|
+
super(overlay, elementRef, actionMethod, cdr, vcr, tableDataSourceDirective, snackBar, matButton, matTooltip);
|
|
2273
2352
|
this.selectRowService = selectRowService;
|
|
2274
2353
|
}
|
|
2275
2354
|
ngOnDestroy() {
|
|
@@ -2299,7 +2378,7 @@ class TableRowHeaderActionDirective extends TableRowActionDirective {
|
|
|
2299
2378
|
return (_b = (_a = this.selectRowService) === null || _a === void 0 ? void 0 : _a.selectedRows) !== null && _b !== void 0 ? _b : [];
|
|
2300
2379
|
}
|
|
2301
2380
|
}
|
|
2302
|
-
TableRowHeaderActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", 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 });
|
|
2381
|
+
TableRowHeaderActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", 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 });
|
|
2303
2382
|
TableRowHeaderActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: TableRowHeaderActionDirective, selector: "button[rxapTableRowHeaderAction]", inputs: { type: ["rxapTableRowHeaderAction", "type"] }, usesInheritance: true, ngImport: i0 });
|
|
2304
2383
|
__decorate([
|
|
2305
2384
|
Required,
|
|
@@ -2311,7 +2390,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
2311
2390
|
selector: 'button[rxapTableRowHeaderAction]'
|
|
2312
2391
|
}]
|
|
2313
2392
|
}], ctorParameters: function () {
|
|
2314
|
-
return [{ type:
|
|
2393
|
+
return [{ type: i1$5.Overlay, decorators: [{
|
|
2394
|
+
type: Inject,
|
|
2395
|
+
args: [Overlay]
|
|
2396
|
+
}] }, { type: i0.ElementRef, decorators: [{
|
|
2397
|
+
type: Inject,
|
|
2398
|
+
args: [ElementRef]
|
|
2399
|
+
}] }, { type: undefined, decorators: [{
|
|
2315
2400
|
type: Inject,
|
|
2316
2401
|
args: [RXAP_TABLE_ROW_ACTION_METHOD]
|
|
2317
2402
|
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
@@ -2323,7 +2408,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
2323
2408
|
}] }, { type: TableDataSourceDirective, decorators: [{
|
|
2324
2409
|
type: Inject,
|
|
2325
2410
|
args: [TableDataSourceDirective]
|
|
2326
|
-
}] }, { type:
|
|
2411
|
+
}] }, { type: i3$3.MatSnackBar, decorators: [{
|
|
2327
2412
|
type: Inject,
|
|
2328
2413
|
args: [MatSnackBar]
|
|
2329
2414
|
}] }, { type: i2$1.MatButton, decorators: [{
|
|
@@ -2331,6 +2416,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
2331
2416
|
}, {
|
|
2332
2417
|
type: Inject,
|
|
2333
2418
|
args: [MatButton]
|
|
2419
|
+
}] }, { type: i6$1.MatTooltip, decorators: [{
|
|
2420
|
+
type: Optional
|
|
2421
|
+
}, {
|
|
2422
|
+
type: Inject,
|
|
2423
|
+
args: [MatTooltip]
|
|
2334
2424
|
}] }, { type: SelectRowService, decorators: [{
|
|
2335
2425
|
type: Optional
|
|
2336
2426
|
}, {
|
|
@@ -2388,7 +2478,7 @@ TableRowActionsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", ve
|
|
|
2388
2478
|
TableRowActionsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: TableRowActionsModule, declarations: [TableRowActionDirective,
|
|
2389
2479
|
TableRowActionExecutingDirective,
|
|
2390
2480
|
TableRowHeaderActionDirective,
|
|
2391
|
-
RowActionCheckPipe], exports: [TableRowActionDirective,
|
|
2481
|
+
RowActionCheckPipe], imports: [ConfirmComponentModule], exports: [TableRowActionDirective,
|
|
2392
2482
|
TableRowHeaderActionDirective,
|
|
2393
2483
|
TableRowActionExecutingDirective,
|
|
2394
2484
|
RowActionCheckPipe,
|
|
@@ -2398,7 +2488,9 @@ TableRowActionsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", v
|
|
|
2398
2488
|
MatIconModule,
|
|
2399
2489
|
MatProgressBarModule,
|
|
2400
2490
|
CommonModule] });
|
|
2401
|
-
TableRowActionsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: TableRowActionsModule, imports: [
|
|
2491
|
+
TableRowActionsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: TableRowActionsModule, imports: [[
|
|
2492
|
+
ConfirmComponentModule
|
|
2493
|
+
], MatTooltipModule,
|
|
2402
2494
|
MatButtonModule,
|
|
2403
2495
|
ConfirmComponentModule,
|
|
2404
2496
|
MatIconModule,
|
|
@@ -2413,6 +2505,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
2413
2505
|
TableRowHeaderActionDirective,
|
|
2414
2506
|
RowActionCheckPipe
|
|
2415
2507
|
],
|
|
2508
|
+
imports: [
|
|
2509
|
+
ConfirmComponentModule
|
|
2510
|
+
],
|
|
2416
2511
|
exports: [
|
|
2417
2512
|
TableRowActionDirective,
|
|
2418
2513
|
TableRowHeaderActionDirective,
|
|
@@ -2435,5 +2530,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
2435
2530
|
* Generated bundle index. Do not edit.
|
|
2436
2531
|
*/
|
|
2437
2532
|
|
|
2438
|
-
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 };
|
|
2533
|
+
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 };
|
|
2439
2534
|
//# sourceMappingURL=rxap-material-table-system.mjs.map
|