@rxap/material-table-system 12.3.2-next.1 → 12.4.0-next.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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/cdk/portal'), require('@rxap/utilities'), require('@angular/animations'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@angular/material/button'), require('@angular/material/icon'), require('@angular/cdk/collections'), require('@angular/material/checkbox'), require('@angular/cdk/table'), require('@angular/material/sort'), require('@rxap/data-source/table'), require('@rxap/utilities/rxjs'), require('@rxap/forms'), require('@angular/forms'), require('@angular/material/menu'), require('@rxap/directives'), require('@angular/flex-layout/extended'), require('@angular/flex-layout'), require('@angular/material/slide-toggle'), require('@angular/flex-layout/flex'), require('@angular/material/tooltip'), require('@rxap/components'), require('@rxap/open-api/remote-method'), require('@rxap/window-system'), require('@rxap/material-directives/icon'), require('@angular/material/core'), require('@rxap/utilities/reflect-metadata'), require('@angular/material/snack-bar'), require('@angular/material/progress-bar')) :
3
- typeof define === 'function' && define.amd ? define('@rxap/material-table-system', ['exports', '@angular/core', '@angular/cdk/portal', '@rxap/utilities', '@angular/animations', 'rxjs', 'rxjs/operators', '@angular/common', '@angular/material/button', '@angular/material/icon', '@angular/cdk/collections', '@angular/material/checkbox', '@angular/cdk/table', '@angular/material/sort', '@rxap/data-source/table', '@rxap/utilities/rxjs', '@rxap/forms', '@angular/forms', '@angular/material/menu', '@rxap/directives', '@angular/flex-layout/extended', '@angular/flex-layout', '@angular/material/slide-toggle', '@angular/flex-layout/flex', '@angular/material/tooltip', '@rxap/components', '@rxap/open-api/remote-method', '@rxap/window-system', '@rxap/material-directives/icon', '@angular/material/core', '@rxap/utilities/reflect-metadata', '@angular/material/snack-bar', '@angular/material/progress-bar'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.rxap = global.rxap || {}, global.rxap['material-table-system'] = {}), global.ng.core, global.ng.cdk.portal, global.utilities, global.ng.animations, global.rxjs, global.rxjs.operators, global.ng.common, global.ng.material.button, global.ng.material.icon, global.ng.cdk.collections, global.ng.material.checkbox, global.ng.cdk.table, global.ng.material.sort, global.table, global.rxjs$1, global.forms, global.ng.forms, global.ng.material.menu, global.i6, global.ng.flexLayout.extended, global.ng.flexLayout, global.ng.material.slideToggle, global.ng.flexLayout.flex, global.ng.material.tooltip, global.i7$1, global.i8, global.windowSystem, global.i3$2, global.ng.material.core, global.reflectMetadata, global.ng.material.snackBar, global.ng.material.progressBar));
5
- }(this, (function (exports, i0, i1, utilities, animations, rxjs, operators, i2, i2$1, i1$1, collections, i1$2, i4, i2$2, table, rxjs$1, forms, forms$1, i3, i6, i7, flexLayout, i3$1, i4$1, i6$1, i7$1, i8, windowSystem, i3$2, core, reflectMetadata, i2$3, progressBar) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/cdk/portal'), require('@rxap/utilities'), require('@angular/animations'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@angular/material/button'), require('@angular/material/icon'), require('@angular/cdk/collections'), require('@angular/material/checkbox'), require('@angular/cdk/table'), require('@angular/material/sort'), require('@rxap/data-source/table'), require('@rxap/utilities/rxjs'), require('@rxap/data-source'), require('@rxap/forms'), require('@angular/forms'), require('@angular/material/menu'), require('@rxap/directives'), require('@angular/flex-layout/extended'), require('@angular/flex-layout'), require('@angular/material/slide-toggle'), require('@angular/flex-layout/flex'), require('@angular/material/tooltip'), require('@rxap/components'), require('@rxap/open-api/remote-method'), require('@rxap/window-system'), require('@rxap/material-directives/icon'), require('@angular/material/core'), require('@rxap/utilities/reflect-metadata'), require('@angular/material/snack-bar'), require('@angular/material/progress-bar')) :
3
+ typeof define === 'function' && define.amd ? define('@rxap/material-table-system', ['exports', '@angular/core', '@angular/cdk/portal', '@rxap/utilities', '@angular/animations', 'rxjs', 'rxjs/operators', '@angular/common', '@angular/material/button', '@angular/material/icon', '@angular/cdk/collections', '@angular/material/checkbox', '@angular/cdk/table', '@angular/material/sort', '@rxap/data-source/table', '@rxap/utilities/rxjs', '@rxap/data-source', '@rxap/forms', '@angular/forms', '@angular/material/menu', '@rxap/directives', '@angular/flex-layout/extended', '@angular/flex-layout', '@angular/material/slide-toggle', '@angular/flex-layout/flex', '@angular/material/tooltip', '@rxap/components', '@rxap/open-api/remote-method', '@rxap/window-system', '@rxap/material-directives/icon', '@angular/material/core', '@rxap/utilities/reflect-metadata', '@angular/material/snack-bar', '@angular/material/progress-bar'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.rxap = global.rxap || {}, global.rxap['material-table-system'] = {}), global.ng.core, global.ng.cdk.portal, global.utilities, global.ng.animations, global.rxjs, global.rxjs.operators, global.ng.common, global.ng.material.button, global.ng.material.icon, global.ng.cdk.collections, global.ng.material.checkbox, global.ng.cdk.table, global.ng.material.sort, global.table, global.rxjs$1, global.dataSource, global.forms, global.ng.forms, global.ng.material.menu, global.i6, global.ng.flexLayout.extended, global.ng.flexLayout, global.ng.material.slideToggle, global.ng.flexLayout.flex, global.ng.material.tooltip, global.i7$1, global.i8, global.windowSystem, global.i3$2, global.ng.material.core, global.reflectMetadata, global.ng.material.snackBar, global.ng.material.progressBar));
5
+ }(this, (function (exports, i0, i1, utilities, animations, rxjs, operators, i2, i2$1, i1$1, collections, i1$2, i4, i2$2, table, rxjs$1, dataSource, forms, forms$1, i3, i6, i7, flexLayout, i3$1, i4$1, i6$1, i7$1, i8, windowSystem, i3$2, core, reflectMetadata, i2$3, progressBar) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -976,14 +976,15 @@
976
976
  TableDataSourceDirective.prototype.ngOnInit = function () {
977
977
  var _this = this;
978
978
  var _a, _b, _c, _d;
979
+ var tableFilter = (_b = (_a = this._tableFilter) !== null && _a !== void 0 ? _a : this.tableFilter) !== null && _b !== void 0 ? _b : undefined;
979
980
  if (this.sourceMethod) {
980
981
  if (this.adapterFactory) {
981
- this.method = this.adapterFactory(this.sourceMethod, this.paginator, this.matSort, this.tableFilter, this.parameters);
982
+ this.method = this.adapterFactory(this.sourceMethod, this.paginator, this.matSort, tableFilter, this.parameters);
982
983
  }
983
984
  else {
984
985
  this.method = this.sourceMethod;
985
986
  }
986
- this.dataSource = new table.DynamicTableDataSource(this.method, this.paginator, this.matSort, this.tableFilter, this.parameters, (_a = this.method.metadata) !== null && _a !== void 0 ? _a : { id: this.id });
987
+ this.dataSource = new table.DynamicTableDataSource(this.method, this.paginator, this.matSort, tableFilter, this.parameters, (_c = this.method.metadata) !== null && _c !== void 0 ? _c : { id: this.id });
987
988
  }
988
989
  else if (this.sourceDataSource) {
989
990
  this.dataSource = this.sourceDataSource;
@@ -992,11 +993,13 @@
992
993
  throw new Error('The TABLE_DATA_SOURCE and TABLE_METHOD token are not defined!');
993
994
  }
994
995
  this.dataSource.paginator = this.paginator;
995
- this.dataSource.sort = (_b = this.matSort) !== null && _b !== void 0 ? _b : undefined;
996
- this.dataSource.filter = (_d = (_c = this._tableFilter) !== null && _c !== void 0 ? _c : this.tableFilter) !== null && _d !== void 0 ? _d : undefined;
996
+ this.dataSource.sort = (_d = this.matSort) !== null && _d !== void 0 ? _d : undefined;
997
+ this.dataSource.filter = tableFilter;
997
998
  this.dataSource.parameters = this.parameters;
998
999
  this._subscription.add(this.dataSource.loading$.pipe(operators.tap(function (loading) { return _this.loading$.next(!!loading); })).subscribe());
999
- this.matTable.dataSource = this.dataSource;
1000
+ this.matTable.dataSource = dataSource.pipeDataSource(this.dataSource, operators.tap(function (rowList) { return rowList.forEach(function (element) {
1001
+ element.__metadata__ = { loading$: new rxjs$1.ToggleSubject() };
1002
+ }); }));
1000
1003
  // TODO : remove hack to trigger change detection after data source refresh (machine-definition -> physical unit)
1001
1004
  this._subscription.add(this.loading$
1002
1005
  .pipe(operators.filter(function (loading) { return !loading; }), operators.debounceTime(2000), operators.tap(function () { return _this.cdr.detectChanges(); }), operators.tap(function () { return _this.cdr.markForCheck(); }), operators.delay(500), operators.tap(function () { return _this.cdr.detectChanges(); }), operators.tap(function () { return _this.cdr.markForCheck(); }), operators.delay(500), operators.tap(function () { return _this.cdr.detectChanges(); }), operators.tap(function () { return _this.cdr.markForCheck(); }), operators.delay(500), operators.tap(function () { return _this.cdr.detectChanges(); }), operators.tap(function () { return _this.cdr.markForCheck(); }), operators.delay(500), operators.tap(function () { return _this.cdr.detectChanges(); }), operators.tap(function () { return _this.cdr.markForCheck(); }), operators.delay(500), operators.tap(function () { return _this.cdr.detectChanges(); }), operators.tap(function () { return _this.cdr.markForCheck(); }), operators.delay(500))
@@ -2502,7 +2505,9 @@
2502
2505
  (_a = this.executingDirective) === null || _a === void 0 ? void 0 : _a.show();
2503
2506
  break;
2504
2507
  case exports.TableRowActionStatus.SUCCESS:
2505
- this.tableDataSourceDirective.refresh();
2508
+ if (this.refresh) {
2509
+ this.tableDataSourceDirective.refresh();
2510
+ }
2506
2511
  if (this.successMessage) {
2507
2512
  this.snackBar.open(this.successMessage, 'ok', { duration: 2560 });
2508
2513
  }
@@ -2524,7 +2529,7 @@
2524
2529
  return TableRowActionDirective;
2525
2530
  }());
2526
2531
  TableRowActionDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableRowActionDirective, deps: [{ token: RXAP_TABLE_ROW_ACTION_METHOD }, { token: i0.ChangeDetectorRef }, { token: i0.ViewContainerRef }, { token: TableDataSourceDirective }, { token: i2$3.MatSnackBar }, { token: i2$1.MatButton, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2527
- TableRowActionDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: TableRowActionDirective, selector: "button[rxapTableRowAction]", inputs: { hasConfirmDirective: ["rxapConfirm", "hasConfirmDirective"], element: "element", type: ["rxapTableRowAction", "type"], errorMessage: "errorMessage", successMessage: "successMessage" }, host: { listeners: { "confirmed": "onConfirmed()", "click": "onClick($event)" } }, queries: [{ propertyName: "executingDirective", first: true, predicate: TableRowActionExecutingDirective, descendants: true }], ngImport: i0__namespace });
2532
+ TableRowActionDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", 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__namespace });
2528
2533
  __decorate([
2529
2534
  utilities.Required,
2530
2535
  __metadata("design:type", Object)
@@ -2572,6 +2577,8 @@
2572
2577
  type: i0.Input
2573
2578
  }], successMessage: [{
2574
2579
  type: i0.Input
2580
+ }], refresh: [{
2581
+ type: i0.Input
2575
2582
  }], executingDirective: [{
2576
2583
  type: i0.ContentChild,
2577
2584
  args: [TableRowActionExecutingDirective]
@@ -1 +1 @@
1
- {"version":3,"file":"rxap-material-table-system.umd.js","sources":["../../../../../node_modules/tslib/tslib.es6.js","../../../../../libs/material/table-system/src/lib/expand-row/expand-row-container/expand-row-content.directive.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-row.service.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-row-container/expand-row-container.component.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-row-container/expand-row-container.component.html","../../../../../libs/material/table-system/src/lib/expand-row/expand-row-container/expand-row-container.component.module.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-controls-cell/expand-controls-cell.component.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-controls-cell/expand-controls-cell.component.html","../../../../../libs/material/table-system/src/lib/expand-row/expand-controls-cell/expand-controls-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-row.directive.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-row.module.ts","../../../../../libs/material/table-system/src/lib/select-row/tokens.ts","../../../../../libs/material/table-system/src/lib/select-row/select-row.service.ts","../../../../../libs/material/table-system/src/lib/select-row/checkbox-cell/checkbox-cell.component.ts","../../../../../libs/material/table-system/src/lib/select-row/checkbox-cell/checkbox-cell.component.html","../../../../../libs/material/table-system/src/lib/select-row/checkbox-cell/checkbox-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/select-row/checkbox-header-cell/checkbox-header-cell.component.ts","../../../../../libs/material/table-system/src/lib/select-row/checkbox-header-cell/checkbox-header-cell.component.html","../../../../../libs/material/table-system/src/lib/select-row/checkbox-header-cell/checkbox-header-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/select-row/selected-rows.directive.ts","../../../../../libs/material/table-system/src/lib/select-row/select-row.module.ts","../../../../../libs/material/table-system/src/lib/row-animation.ts","../../../../../libs/material/table-system/src/lib/table-filter/table-filter.service.ts","../../../../../libs/material/table-system/src/lib/table-data-source.directive.ts","../../../../../libs/material/table-system/src/lib/table-filter/tokens.ts","../../../../../libs/material/table-system/src/lib/table-filter/filter-header-row.directive.ts","../../../../../libs/material/table-system/src/lib/table-filter/to-filter-column-names.pipe.ts","../../../../../libs/material/table-system/src/lib/table-filter/table-filter.module.ts","../../../../../libs/material/table-system/src/lib/table-column-menu/table-column-option/table-column-option.component.ts","../../../../../libs/material/table-system/src/lib/table-column-menu/table-column-option/table-column-option.component.html","../../../../../libs/material/table-system/src/lib/table-column-menu/table-column-menu.component.ts","../../../../../libs/material/table-system/src/lib/table-column-menu/table-column-menu.component.html","../../../../../libs/material/table-system/src/lib/table-column-menu/table-column-menu.component.module.ts","../../../../../libs/material/table-system/src/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.ts","../../../../../libs/material/table-system/src/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.html","../../../../../libs/material/table-system/src/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.module.ts","../../../../../libs/material/table-system/src/lib/table-create-button/tokens.ts","../../../../../libs/material/table-system/src/lib/table-create-button/table-create-button.directive.ts","../../../../../libs/material/table-system/src/lib/table-row-controls/tokens.ts","../../../../../libs/material/table-system/src/lib/table-row-controls/row-controls-cell/row-controls-cell.component.ts","../../../../../libs/material/table-system/src/lib/table-row-controls/row-controls-cell/row-controls-cell.component.html","../../../../../libs/material/table-system/src/lib/table-row-controls/row-controls-cell/row-controls-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.ts","../../../../../libs/material/table-system/src/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.html","../../../../../libs/material/table-system/src/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/table-row-controls/table-row-controls.module.ts","../../../../../libs/material/table-system/src/lib/table-select-controls/table-select-controls.component.ts","../../../../../libs/material/table-system/src/lib/table-select-controls/table-select-controls.component.html","../../../../../libs/material/table-system/src/lib/table-select-controls/table-select-controls.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/image-cell/image-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/image-cell/image-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/image-cell/image-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/icon-cell/icon-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/icon-cell/icon-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/icon-cell/icon-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/date-cell/date-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/date-cell/date-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/date-cell/date-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/link-cell/link-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/link-cell/link-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/link-cell/link-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/options-cell/options-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/options-cell/options-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/options-cell/options-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/boolean-cell/boolean-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/boolean-cell/boolean-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/boolean-cell/boolean-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/decorators.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-action-executing.directive.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-action-status.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-action.method.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/tokens.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-action.directive.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-header-action.directive.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-actions.module.ts","../../../../../libs/material/table-system/src/index.ts","../../../../../libs/material/table-system/src/rxap-material-table-system.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from) {\r\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\r\n to[j] = from[i];\r\n return to;\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","import {\n Directive,\n TemplateRef,\n Inject\n} from '@angular/core';\n\nexport interface ExpandCellContentDirectiveContext<Data extends Record<string, any>> {\n $implicit: Data\n}\n\n@Directive({\n selector: '[rxapExpandRowContent]'\n})\nexport class ExpandRowContentDirective<Data extends Record<string, any>> {\n\n\n static ngTemplateContextGuard<Data extends Record<string, any>>(dir: ExpandRowContentDirective<Data>, ctx: any):\n ctx is ExpandCellContentDirectiveContext<Data> {\n return true;\n }\n\n constructor(\n @Inject(TemplateRef)\n public readonly template: TemplateRef<ExpandCellContentDirectiveContext<Data>>\n ) {}\n\n}\n","import { Injectable } from '@angular/core';\nimport type { Observable } from 'rxjs';\nimport { BehaviorSubject } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\n@Injectable()\nexport class ExpandRowService<Data extends Record<string, any>> {\n public expandedRow = new BehaviorSubject<Data | null>(null);\n\n public toggleRow(row: Data): void {\n if (this.expandedRow.value === row) {\n this.expandedRow.next(null);\n } else {\n this.expandedRow.next(row);\n }\n }\n\n public isExpanded(row: Data) {\n return this.expandedRow.value === row;\n }\n\n public isExpanded$(row: Data): Observable<boolean> {\n return this.expandedRow.pipe(map((expandedRow) => expandedRow === row));\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n Input,\n ContentChild,\n ViewContainerRef,\n OnDestroy,\n AfterContentInit,\n Inject\n} from '@angular/core';\nimport {\n ExpandRowContentDirective,\n ExpandCellContentDirectiveContext\n} from './expand-row-content.directive';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { Required } from '@rxap/utilities';\nimport {\n trigger,\n state,\n style,\n transition,\n animate\n} from '@angular/animations';\nimport { ExpandRowService } from '../expand-row.service';\nimport { Subscription } from 'rxjs';\nimport {\n tap,\n filter\n} from 'rxjs/operators';\n\n@Component({\n // tslint:disable-next-line:component-selector\n selector: 'td[rxap-expand-row]',\n templateUrl: './expand-row-container.component.html',\n styleUrls: [ './expand-row-container.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-expand-row' },\n animations: [\n trigger('detailExpand', [\n state('collapsed', style({ height: '0px', minHeight: '0' })),\n state('expanded', style({ height: '*' })),\n transition('expanded <=> collapsed', animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)'))\n ])\n ]\n})\nexport class ExpandRowContainerComponent<Data extends Record<string, any>> implements AfterContentInit, OnDestroy {\n\n @Input()\n @Required\n public element!: Data;\n\n @ContentChild(ExpandRowContentDirective)\n public expandCellContent?: ExpandRowContentDirective<Data>;\n\n public portal: TemplatePortal<ExpandCellContentDirectiveContext<Data>> | null = null;\n\n private _subscription?: Subscription;\n\n constructor(\n @Inject(ViewContainerRef)\n private readonly viewContainerRef: ViewContainerRef,\n @Inject(ExpandRowService)\n public readonly expandCell: ExpandRowService<Data>\n ) {}\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n public ngAfterContentInit() {\n if (this.expandCellContent) {\n this._subscription = this.expandCell.isExpanded$(this.element).pipe(\n filter(Boolean),\n tap(() => {\n if (!this.portal) {\n this.portal = new TemplatePortal(this.expandCellContent!.template, this.viewContainerRef, { $implicit: this.element });\n }\n })\n ).subscribe();\n }\n }\n\n}\n","<div class=\"element-detail\" [@detailExpand]=\"(expandCell.isExpanded$(element) | async) ? 'expanded' : 'collapsed'\">\n <ng-content></ng-content>\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n</div>\n","import { NgModule } from '@angular/core';\nimport { ExpandRowContainerComponent } from './expand-row-container.component';\nimport { ExpandRowContentDirective } from './expand-row-content.directive';\nimport { PortalModule } from '@angular/cdk/portal';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [\n ExpandRowContainerComponent,\n ExpandRowContentDirective\n ],\n imports: [\n PortalModule,\n CommonModule\n ],\n exports: [\n ExpandRowContainerComponent,\n ExpandRowContentDirective\n ]\n})\nexport class ExpandRowContainerComponentModule {}\n","import {\n Component,\n ChangeDetectionStrategy,\n Input,\n Inject\n} from '@angular/core';\nimport { ExpandRowService } from '../expand-row.service';\nimport { Required } from '@rxap/utilities';\n\n@Component({\n // tslint:disable-next-line:component-selector\n selector: 'td[rxap-expand-controls-cell]',\n templateUrl: './expand-controls-cell.component.html',\n styleUrls: [ './expand-controls-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-expand-controls-cell' }\n})\nexport class ExpandControlsCellComponent<Data extends Record<string, any>> {\n\n @Input()\n @Required\n public element!: Data;\n\n constructor(\n @Inject(ExpandRowService)\n public readonly expandCell: ExpandRowService<Data>\n ) {}\n\n}\n","<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","import { NgModule } from '@angular/core';\nimport { ExpandControlsCellComponent } from './expand-controls-cell.component';\nimport { CommonModule } from '@angular/common';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatButtonModule } from '@angular/material/button';\n\n\n@NgModule({\n declarations: [ ExpandControlsCellComponent ],\n imports: [\n CommonModule,\n MatIconModule,\n MatButtonModule\n ],\n exports: [ ExpandControlsCellComponent ]\n})\nexport class ExpandControlsCellComponentModule {}\n","import {\n Directive,\n Input,\n HostListener,\n Inject\n} from '@angular/core';\nimport { ExpandRowService } from './expand-row.service';\nimport { Required } from '@rxap/utilities';\n\n@Directive({\n selector: 'tr[rxapExpandRow]'\n})\nexport class ExpandRowDirective<Data extends Record<string, any>> {\n\n @HostListener('expanded-row')\n public get isExpanded() {\n return this.expandCell.isExpanded(this.element);\n }\n\n @Input()\n @Required\n public element!: Data;\n\n constructor(\n @Inject(ExpandRowService)\n private readonly expandCell: ExpandRowService<Data>\n ) { }\n\n @HostListener('click')\n public onClick() {\n this.expandCell.toggleRow(this.element);\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { ExpandRowContainerComponentModule } from './expand-row-container/expand-row-container.component.module';\nimport { ExpandControlsCellComponentModule } from './expand-controls-cell/expand-controls-cell.component.module';\nimport { ExpandRowService } from './expand-row.service';\nimport { ExpandRowDirective } from './expand-row.directive';\n\n@NgModule({\n exports: [\n ExpandRowContainerComponentModule,\n ExpandControlsCellComponentModule,\n ExpandRowDirective\n ],\n providers: [\n ExpandRowService\n ],\n declarations: [ ExpandRowDirective ]\n})\nexport class ExpandRowModule {}\n","import { InjectionToken } from '@angular/core';\nimport { SelectRowOptions } from './select-row.options';\n\nexport const RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS = new InjectionToken<SelectRowOptions>('rxap-material/table-system/select-row/options');\n","import { Injectable, Optional, Inject } from '@angular/core';\nimport { SelectionModel } from '@angular/cdk/collections';\nimport type { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { SelectRowOptions } from './select-row.options';\nimport { RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS } from './tokens';\n\n@Injectable()\nexport class SelectRowService<Data extends Record<string, any>> {\n public selectedRows$: Observable<Data[]>;\n\n public readonly selectionModel = new SelectionModel<Data>(true);\n\n public get selectedRows(): Data[] {\n return this.selectionModel.selected;\n }\n\n constructor(\n @Optional()\n @Inject(RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS)\n options: SelectRowOptions<Data> | null = null\n ) {\n this.selectionModel = new SelectionModel<Data>(options?.multiple);\n if (options?.selected) {\n this.selectionModel.select(...options?.selected);\n }\n this.selectedRows$ = this.selectionModel.changed.pipe(\n map(() => this.selectionModel.selected)\n );\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n Input,\n Inject\n} from '@angular/core';\nimport { Required } from '@rxap/utilities';\nimport { SelectRowService } from '../select-row.service';\n\n@Component({\n selector: 'td[rxap-checkbox-cell]',\n templateUrl: './checkbox-cell.component.html',\n styleUrls: [ './checkbox-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.Default,\n host: { class: 'rxap-checkbox-cell' }\n})\nexport class CheckboxCellComponent<Data extends Record<string, any>> {\n\n @Input()\n @Required\n public element!: Data;\n\n constructor(\n @Inject(SelectRowService)\n public readonly selectRow: SelectRowService<Data>\n ) {}\n\n}\n","<mat-checkbox\n (change)=\"selectRow.selectionModel.toggle(element)\"\n [checked]=\"selectRow.selectionModel.isSelected(element)\">\n</mat-checkbox>\n","import { NgModule } from '@angular/core';\nimport { CheckboxCellComponent } from './checkbox-cell.component';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [ CheckboxCellComponent ],\n imports: [\n MatCheckboxModule,\n CommonModule\n ],\n exports: [ CheckboxCellComponent ]\n})\nexport class CheckboxCellComponentModule {}\n","import {\n Component,\n ChangeDetectionStrategy,\n OnInit,\n Inject,\n} from '@angular/core';\nimport { SelectRowService } from '../select-row.service';\nimport type { Observable } from 'rxjs';\nimport { EMPTY } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { MatCheckboxChange } from '@angular/material/checkbox';\nimport { CdkTable } from '@angular/cdk/table';\n\n@Component({\n selector: 'th[rxap-checkbox-header-cell]',\n templateUrl: './checkbox-header-cell.component.html',\n styleUrls: ['./checkbox-header-cell.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-checkbox-header-cell' },\n})\nexport class CheckboxHeaderCellComponent<Data extends Record<string, any>>\n implements OnInit\n{\n public indeterminate$: Observable<boolean> = EMPTY;\n public checked$: Observable<boolean> = EMPTY;\n\n public isMultipleSelection = false;\n\n constructor(\n @Inject(CdkTable)\n private readonly cdkTable: CdkTable<Data>,\n private readonly selectRow: SelectRowService<Data>\n ) {\n this.isMultipleSelection =\n this.selectRow.selectionModel.isMultipleSelection();\n }\n\n public ngOnInit() {\n this.indeterminate$ = this.selectRow.selectedRows$.pipe(\n map(\n (selectedRows) =>\n !!selectedRows.length &&\n this.cdkTable['_data'].length !== selectedRows.length\n )\n );\n this.checked$ = this.selectRow.selectedRows$.pipe(\n map(\n (selectedRows) =>\n !!selectedRows.length &&\n this.cdkTable['_data'].length === selectedRows.length\n )\n );\n }\n\n public onChange($event: MatCheckboxChange) {\n if ($event.checked) {\n this.selectRow.selectionModel.select(...this.cdkTable['_data']);\n } else {\n this.selectRow.selectionModel.clear();\n }\n }\n}\n","<mat-checkbox\n *ngIf=\"isMultipleSelection\"\n (change)=\"onChange($event)\"\n [indeterminate]=\"indeterminate$ | async\"\n [checked]=\"(checked$ | async) ?? false\">\n</mat-checkbox>\n","import { NgModule } from '@angular/core';\nimport { CheckboxHeaderCellComponent } from './checkbox-header-cell.component';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [ CheckboxHeaderCellComponent ],\n imports: [\n MatCheckboxModule,\n CommonModule\n ],\n exports: [ CheckboxHeaderCellComponent ]\n})\nexport class CheckboxHeaderCellComponentModule {}\n","import {\n Directive,\n TemplateRef,\n ViewContainerRef,\n OnInit,\n OnDestroy,\n ChangeDetectorRef,\n Inject,\n Input,\n Optional\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { SelectRowService } from './select-row.service';\nimport {\n map,\n tap,\n distinctUntilChanged\n} from 'rxjs/operators';\nimport { CdkTable } from '@angular/cdk/table';\nimport { MatTable } from '@angular/material/table';\n\nexport interface SelectedRowsDirectiveContext<Data extends Record<string, any>> {\n $implicit: Data[];\n}\n\n@Directive({\n selector: '[rxapSelectedRows]'\n})\nexport class SelectedRowsDirective<Data extends Record<string, any>> implements OnInit, OnDestroy {\n\n private _subscription?: Subscription;\n\n constructor(\n @Inject(TemplateRef)\n private readonly template: TemplateRef<SelectedRowsDirectiveContext<Data>>,\n @Inject(ViewContainerRef)\n private readonly viewContainerRef: ViewContainerRef,\n @Inject(ChangeDetectorRef)\n private readonly cdr: ChangeDetectorRef,\n @Inject(SelectRowService)\n private readonly selectRowService: SelectRowService<Data>\n ) {}\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n public ngOnInit() {\n this._subscription = this.selectRowService.selectedRows$.pipe(\n distinctUntilChanged(),\n tap(selectedAllRows => {\n this.viewContainerRef.clear();\n if (selectedAllRows) {\n this.viewContainerRef.createEmbeddedView(this.template, { $implicit: this.selectRowService.selectedRows });\n }\n this.cdr.detectChanges();\n })\n ).subscribe();\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CheckboxCellComponentModule } from './checkbox-cell/checkbox-cell.component.module';\nimport { CheckboxHeaderCellComponentModule } from './checkbox-header-cell/checkbox-header-cell.component.module';\nimport { SelectedRowsDirective } from './selected-rows.directive';\n\n\n@NgModule({\n exports: [\n CheckboxCellComponentModule,\n CheckboxHeaderCellComponentModule,\n SelectedRowsDirective\n ],\n declarations: [ SelectedRowsDirective ]\n})\nexport class SelectRowModule {}\n","import {\n trigger,\n transition,\n style,\n sequence,\n animate\n} from '@angular/animations';\n\nconst offset = '50';\n\nexport const RowAnimation = trigger('rowsAnimation', [\n transition('void => *', [\n style({\n height: '*',\n opacity: '0',\n transform: 'translateY(' + (-offset).toString() + 'px)',\n 'box-shadow': 'none'\n }),\n sequence([\n animate('.2s ease', style({\n height: '*',\n opacity: '.2',\n transform: 'translateX(0)',\n 'box-shadow': 'none'\n })),\n animate('.35s ease', style({ height: '*', opacity: 1, transform: 'translateX(0)' }))\n ])\n ]),\n transition('* => void', [\n style({ height: '0', opacity: '0', 'box-shadow': 'none' })\n ])\n]);\n","import { FilterLike } from '@rxap/data-source/table';\nimport {\n Injectable,\n OnDestroy\n} from '@angular/core';\nimport {\n ReplaySubject,\n Subscription\n} from 'rxjs';\n\n@Injectable()\nexport class TableFilterService implements FilterLike, OnDestroy {\n\n public readonly change = new ReplaySubject<Record<string, any>>(1);\n\n public current: Record<string, any> = {};\n\n private _subscription: Subscription;\n\n constructor() {\n this._subscription = this.change.subscribe(current => this.current = current);\n }\n\n public set(key: string, value: any): void {\n const current = this.current;\n current[ key ] = value;\n this.change.next(current);\n }\n\n public remove(key: string): void {\n const current = this.current;\n if (current.hasOwnProperty(key)) {\n delete current[ key ];\n }\n this.change.next(current);\n }\n\n public ngOnDestroy() {\n this._subscription.unsubscribe();\n }\n\n}\n","import {\n ChangeDetectorRef,\n Directive,\n Inject,\n InjectionToken,\n Input,\n NgModule,\n OnDestroy,\n OnInit,\n Optional\n} from '@angular/core';\nimport type { MatPaginator } from '@angular/material/paginator';\nimport type { Observable } from 'rxjs';\nimport { Subscription } from 'rxjs';\nimport { MatSort } from '@angular/material/sort';\nimport type {\n AbstractTableDataSource,\n FilterLike\n} from '@rxap/data-source/table';\nimport {\n DynamicTableDataSource,\n TableEvent,\n SortLike\n} from '@rxap/data-source/table';\nimport { BaseRemoteMethod } from '@rxap/remote-method';\nimport { PaginatorLike } from '@rxap/data-source/pagination';\nimport { CdkTable } from '@angular/cdk/table';\nimport { TableFilterService } from './table-filter/table-filter.service';\nimport {\n debounceTime,\n delay,\n filter,\n tap\n} from 'rxjs/operators';\nimport { Required } from '@rxap/utilities';\nimport {\n Method,\n ToggleSubject\n} from '@rxap/utilities/rxjs';\n\n// TODO : add migration schematic\nexport const RXAP_TABLE_METHOD = new InjectionToken(\n 'rxap/material/table-system/table-method'\n);\n/**\n * @deprecated use TABLE_METHOD instead\n */\nexport const TABLE_REMOTE_METHOD = RXAP_TABLE_METHOD;\nexport const TABLE_REMOTE_METHOD_ADAPTER_FACTORY = new InjectionToken(\n 'table-remote-method-adapter-factory'\n);\nexport const RXAP_TABLE_FILTER = new InjectionToken('rxap/material-table-system/table-filter');\nexport const TABLE_DATA_SOURCE = new InjectionToken('table-data-source');\n\nexport type TableRemoteMethodAdapterFactory<\n Data extends Record<string, any> = Record<string, any>\n> = (\n method: Method,\n paginator?: PaginatorLike,\n sort?: SortLike | null,\n filter?: TableFilterService | null,\n parameters?: Observable<Record<string, any>>\n) => BaseRemoteMethod<Data[], TableEvent>;\n\n@Directive({\n selector:\n 'table[mat-table][rxapTableDataSource],mat-table[rxapTableDataSource]',\n exportAs: 'rxapTableDataSource'\n})\nexport class TableDataSourceDirective<Data extends Record<string, any> = any>\n implements OnInit, OnDestroy {\n /**\n * @deprecated use dataSource instead\n */\n @Input('rxapTableDataSource')\n public set setDataSource(dataSource: AbstractTableDataSource<Data> | '') {\n if (typeof dataSource !== 'string') {\n this.dataSource = dataSource;\n }\n }\n\n @Input()\n public paginator?: MatPaginator;\n\n public readonly loading$ = new ToggleSubject(true);\n\n @Input()\n @Required\n public id!: string;\n @Input()\n public parameters?: Observable<Record<string, any>>;\n @Input()\n public dataSource?: AbstractTableDataSource<Data>;\n\n public method?: Method<Data[], TableEvent>;\n\n /**\n * @deprecated use method instead\n */\n public get remoteMethod(): Method<Data[], TableEvent> | undefined {\n return this.method;\n }\n\n /**\n * @deprecated use sourceMethod instead\n */\n public get sourceRemoteMethod(): Method<\n Data[] | any,\n TableEvent | any\n > | null {\n return this.sourceMethod;\n }\n\n protected _subscription = new Subscription();\n\n private readonly adapterFactory: TableRemoteMethodAdapterFactory<Data> | null =\n null;\n\n constructor(\n @Inject(CdkTable)\n private readonly matTable: CdkTable<Data>,\n protected readonly cdr: ChangeDetectorRef,\n @Optional()\n @Inject(RXAP_TABLE_METHOD)\n private readonly sourceMethod: Method<Data[] | any,\n TableEvent | any> | null,\n @Optional()\n @Inject(TABLE_DATA_SOURCE)\n private readonly sourceDataSource: AbstractTableDataSource<Data> | null,\n @Optional()\n @Inject(TABLE_REMOTE_METHOD_ADAPTER_FACTORY)\n adapterFactory: any,\n @Optional()\n @Inject(MatSort)\n private readonly matSort: MatSort | null,\n @Optional()\n @Inject(TableFilterService)\n private readonly tableFilter: TableFilterService | null,\n @Optional()\n @Inject(RXAP_TABLE_FILTER)\n private readonly _tableFilter: FilterLike | null\n ) {\n this.matTable.trackBy = this.trackBy;\n this.adapterFactory = adapterFactory;\n }\n\n private trackBy(index: number, item: Data): string | number {\n return item.uuid ?? index;\n }\n\n public ngOnInit() {\n if (this.sourceMethod) {\n if (this.adapterFactory) {\n this.method = this.adapterFactory(\n this.sourceMethod,\n this.paginator,\n this.matSort,\n this.tableFilter,\n this.parameters\n );\n } else {\n this.method = this.sourceMethod;\n }\n this.dataSource = new DynamicTableDataSource<Data>(\n this.method,\n this.paginator,\n this.matSort,\n this.tableFilter,\n this.parameters,\n this.method.metadata ?? { id: this.id }\n );\n } else if (this.sourceDataSource) {\n this.dataSource = this.sourceDataSource;\n } else if (!this.dataSource) {\n throw new Error(\n 'The TABLE_DATA_SOURCE and TABLE_METHOD token are not defined!'\n );\n }\n this.dataSource.paginator = this.paginator;\n this.dataSource.sort = this.matSort ?? undefined;\n this.dataSource.filter = this._tableFilter ?? this.tableFilter ?? undefined;\n this.dataSource.parameters = this.parameters;\n this._subscription.add(\n this.dataSource.loading$.pipe(\n tap(loading => this.loading$.next(!!loading))\n ).subscribe()\n );\n this.matTable.dataSource = this.dataSource;\n // TODO : remove hack to trigger change detection after data source refresh (machine-definition -> physical unit)\n this._subscription.add(\n this.loading$\n .pipe(\n filter((loading) => !loading),\n debounceTime(2000),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500)\n )\n .subscribe()\n );\n }\n\n public ngOnDestroy() {\n this._subscription.unsubscribe();\n }\n\n public refresh() {\n this.dataSource?.refresh();\n }\n}\n\n@NgModule({\n exports: [TableDataSourceDirective],\n declarations: [TableDataSourceDirective],\n})\nexport class TableDataSourceModule {}\n","import { InjectionToken } from '@angular/core';\n\nexport const RXAP_TABLE_FILTER_FORM_DEFINITION = new InjectionToken('rxap/form-table-system/filter-form-definition');\n","import { FormDirective, FormDefinition } from '@rxap/forms';\nimport {\n ChangeDetectorRef,\n Directive,\n forwardRef,\n Inject,\n OnDestroy,\n OnInit,\n Optional,\n} from '@angular/core';\nimport { TableFilterService } from './table-filter.service';\nimport { Subscription } from 'rxjs';\nimport { debounceTime, distinctUntilChanged, map } from 'rxjs/operators';\nimport { RXAP_TABLE_FILTER_FORM_DEFINITION } from './tokens';\nimport { ControlContainer } from '@angular/forms';\nimport { equals } from '@rxap/utilities';\n\n@Directive({\n // tslint:disable-next-line:directive-selector\n selector: 'table[rxap-filter-header-row]',\n providers: [\n {\n provide: ControlContainer,\n // ignore coverage\n useExisting: forwardRef(() => FilterHeaderRowDirective),\n },\n ],\n})\nexport class FilterHeaderRowDirective\n extends FormDirective\n implements OnInit, OnDestroy\n{\n private _subscription?: Subscription;\n\n constructor(\n private readonly tableFilter: TableFilterService,\n cdr: ChangeDetectorRef,\n @Optional()\n @Inject(RXAP_TABLE_FILTER_FORM_DEFINITION)\n formDefinition: FormDefinition | null\n ) {\n super(cdr, formDefinition);\n }\n\n public ngOnInit() {\n super.ngOnInit();\n this._subscription = this.form.value$\n .pipe(\n debounceTime(1000),\n map((values) =>\n Object.entries(values)\n .filter(\n ([key, value]) =>\n value !== null && value !== undefined && value !== ''\n )\n .reduce((obj, [key, value]) => ({ ...obj, [key]: value }), {})\n ),\n distinctUntilChanged((a, b) => equals(a, b))\n )\n .subscribe(this.tableFilter.change);\n }\n\n public ngOnDestroy() {\n super.ngOnDestroy();\n this._subscription?.unsubscribe();\n }\n}\n","import {\n PipeTransform,\n Pipe\n} from '@angular/core';\n\n@Pipe({\n name: 'toFilterColumnNames'\n})\nexport class ToFilterColumnNamesPipe implements PipeTransform {\n\n public transform(columns: string[]): string[] {\n return columns.map(column => 'filter_' + column);\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { ToFilterColumnNamesPipe } from './to-filter-column-names.pipe';\nimport { FilterHeaderRowDirective } from './filter-header-row.directive';\n\n\n@NgModule({\n exports: [\n ToFilterColumnNamesPipe,\n FilterHeaderRowDirective\n ],\n declarations: [\n ToFilterColumnNamesPipe,\n FilterHeaderRowDirective\n ]\n})\nexport class TableFilterModule {\n}\n","import { Component, ElementRef, Input, Inject } from '@angular/core';\nimport { coerceBoolean, Required } from '@rxap/utilities';\n\n@Component({\n selector: 'rxap-table-column-option',\n templateUrl: './table-column-option.component.html',\n styleUrls: ['./table-column-option.component.css'],\n})\nexport class TableColumnOptionComponent {\n @Input()\n @Required\n public name!: string;\n\n @Input()\n public active: boolean = true;\n\n /**\n * The displayed value of the option. It is necessary to show the selected option in the\n * select's trigger.\n */\n get display(): string {\n return (this._element.nativeElement.textContent || '').trim();\n }\n\n @Input()\n public set inactive(value: boolean | '') {\n this.active = !coerceBoolean(value);\n }\n\n @Input()\n public set hidden(value: boolean | '') {\n this._hidden = coerceBoolean(value);\n }\n\n public get hidden(): boolean | '' {\n return this._hidden;\n }\n\n private _hidden = false;\n\n @Input()\n public set show(value: boolean) {\n this._hidden = !value;\n }\n\n constructor(\n @Inject(ElementRef)\n private _element: ElementRef<HTMLElement>\n ) {}\n\n public toggle(): void {\n this.active = !this.active;\n }\n\n public activate() {\n this.active = true;\n }\n\n public deactivate() {\n this.active = false;\n }\n}\n","<ng-content></ng-content>\n","import type { QueryList } from '@angular/core';\nimport {\n Component,\n ChangeDetectionStrategy,\n ContentChildren,\n AfterContentInit,\n Input,\n HostBinding,\n} from '@angular/core';\nimport { TableColumnOptionComponent } from './table-column-option/table-column-option.component';\nimport { coerceBoolean } from '@rxap/utilities';\n\n@Component({\n selector: 'rxap-table-column-menu',\n templateUrl: './table-column-menu.component.html',\n styleUrls: ['./table-column-menu.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'mfd-table-column-menu' },\n exportAs: 'rxapTableColumns',\n})\nexport class TableColumnMenuComponent implements AfterContentInit {\n @ContentChildren(TableColumnOptionComponent)\n public columns?: QueryList<TableColumnOptionComponent>;\n\n public displayColumns: string[] = [];\n\n @Input()\n public set matCard(value: boolean | '') {\n this._matCardMode = coerceBoolean(value);\n }\n\n @HostBinding('class.mat-card-mode')\n private _matCardMode: boolean = false;\n\n public ngAfterContentInit() {\n this.updateDisplayColumns();\n }\n\n public updateDisplayColumns() {\n if (!this.columns) {\n throw new Error(\n 'Could not query content children of TableColumnOptionComponent'\n );\n }\n this.displayColumns = this.columns\n .filter((option) => option.active)\n .map((option) => option.name);\n }\n\n public activate(columnName: string) {\n this.columns\n ?.filter((option) => option.name === columnName)\n .forEach((column) => column.activate());\n this.updateDisplayColumns();\n }\n\n public deactivate(columnName: string) {\n this.columns\n ?.filter((option) => option.name === columnName)\n .forEach((column) => column.deactivate());\n this.updateDisplayColumns();\n }\n}\n","<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","import { NgModule } from '@angular/core';\nimport { TableColumnMenuComponent } from './table-column-menu.component';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { CommonModule } from '@angular/common';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { TableColumnOptionComponent } from './table-column-option/table-column-option.component';\nimport { StopPropagationDirectiveModule } from '@rxap/directives';\nimport { FlexLayoutModule } from '@angular/flex-layout';\n\n\n@NgModule({\n declarations: [ TableColumnMenuComponent, TableColumnOptionComponent ],\n imports: [\n MatButtonModule,\n MatIconModule,\n MatMenuModule,\n CommonModule,\n MatCheckboxModule,\n StopPropagationDirectiveModule,\n FlexLayoutModule\n ],\n exports: [ TableColumnMenuComponent, TableColumnOptionComponent, MatMenuModule ]\n})\nexport class TableColumnMenuComponentModule {}\n","import {\n Component,\n ChangeDetectionStrategy,\n} from '@angular/core';\nimport { MatSlideToggleChange } from '@angular/material/slide-toggle';\nimport { TableFilterService } from '../../table-filter/table-filter.service';\nimport { TableColumnMenuComponent } from '../table-column-menu.component';\n\n@Component({\n selector: 'mfd-table-show-archived-slide',\n templateUrl: './table-show-archived-slide.component.html',\n styleUrls: ['./table-show-archived-slide.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'mfd-table-show-archived-slide'},\n})\nexport class TableShowArchivedSlideComponent {\n\n constructor(\n private readonly tableFilter: TableFilterService,\n private readonly tableColumnMenu: TableColumnMenuComponent,\n ) {}\n\n public onChange($event: MatSlideToggleChange) {\n this.tableFilter.set('__archived', $event.checked);\n if ($event.checked) {\n this.tableColumnMenu.activate('removedAt');\n } else {\n this.tableColumnMenu.deactivate('removedAt');\n }\n }\n\n}\n","<div rxapStopPropagation>\n <mat-slide-toggle (change)=\"onChange($event)\" i18n=\"@@rxap.material.table-system.table-column-menu.table-show-archived-slide\">\n Show archived documents\n </mat-slide-toggle>\n</div>\n","import { NgModule } from '@angular/core';\nimport { TableShowArchivedSlideComponent } from './table-show-archived-slide.component';\nimport { StopPropagationDirectiveModule } from '@rxap/directives';\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\n\n\n@NgModule({\n declarations: [TableShowArchivedSlideComponent],\n imports: [\n StopPropagationDirectiveModule,\n MatSlideToggleModule,\n ],\n exports: [TableShowArchivedSlideComponent],\n})\nexport class TableShowArchivedSlideComponentModule {\n}\n","import { InjectionToken } from '@angular/core';\nimport { Method } from '@rxap/utilities/rxjs';\n\nexport const TABLE_CREATE_REMOTE_METHOD = new InjectionToken<Method>('table-create-remote-method');\n","import {\n Directive,\n ElementRef,\n HostListener,\n Inject,\n Input,\n NgModule,\n OnInit,\n Renderer2\n} from '@angular/core';\nimport { Required } from '@rxap/utilities';\nimport {\n isObservable,\n Observable\n} from 'rxjs';\nimport { TableDataSourceDirective } from '../table-data-source.directive';\nimport { TABLE_CREATE_REMOTE_METHOD } from './tokens';\nimport { Method } from '@rxap/utilities/rxjs';\n\n@Directive({\n selector: 'button[rxapTableCreate]',\n})\nexport class TableCreateButtonDirective<Data extends Record<string, any>>\n implements OnInit\n{\n @Input('rxapTableCreate')\n @Required\n public dataSource!: TableDataSourceDirective<Data>;\n\n constructor(\n @Inject(TABLE_CREATE_REMOTE_METHOD)\n private readonly remoteMethod: Method<any, Data | Observable<Data>>,\n @Inject(ElementRef)\n private readonly elementRef: ElementRef,\n @Inject(Renderer2)\n private readonly renderer: Renderer2\n ) {}\n\n public ngOnInit() {\n this.renderer.setStyle(\n this.elementRef.nativeElement,\n 'margin-bottom',\n '6px'\n );\n }\n\n @HostListener('click')\n public async onClick() {\n const result = await this.remoteMethod.call();\n if (isObservable(result)) {\n await result.toPromise();\n }\n this.dataSource.refresh();\n }\n}\n\n@NgModule({\n declarations: [TableCreateButtonDirective],\n exports: [TableCreateButtonDirective],\n})\nexport class TableCreateButtonDirectiveModule {}\n","import { InjectionToken } from '@angular/core';\nimport { OpenApiRemoteMethod } from '@rxap/open-api/remote-method';\nimport { BaseRemoteMethod } from '@rxap/remote-method';\n\nexport const ROW_ARCHIVE_METHOD = new InjectionToken<OpenApiRemoteMethod<any, { uuid: string }>>('archive-remote-method');\nexport const ROW_RESTORE_METHOD = new InjectionToken<OpenApiRemoteMethod<any, { uuid: string }>>('unarchive-remote-method');\nexport const ROW_DELETE_METHOD = new InjectionToken<OpenApiRemoteMethod<any, { uuid: string }>>('delete-remote-method');\nexport const ROW_EDIT_METHOD = new InjectionToken<BaseRemoteMethod<any, Record<string, any>>>('edit-remote-method');\nexport const ROW_VIEW_METHOD = new InjectionToken<BaseRemoteMethod<any, Record<string, any>>>('view-remote-method');\nexport const ROW_LINK_METHOD = new InjectionToken<BaseRemoteMethod<any, Record<string, any>>>('link-remote-method');\nexport const ROW_EDIT_LOADER_METHOD = new InjectionToken<BaseRemoteMethod<Record<string, any>, Record<string, any>>>('edit-loader-method');\n","import {\n ChangeDetectionStrategy,\n Component,\n Inject,\n Input,\n Optional\n} from '@angular/core';\nimport { Required } from '@rxap/utilities';\nimport {\n ROW_ARCHIVE_METHOD,\n ROW_DELETE_METHOD,\n ROW_EDIT_LOADER_METHOD,\n ROW_EDIT_METHOD,\n ROW_LINK_METHOD,\n ROW_RESTORE_METHOD,\n ROW_VIEW_METHOD\n} from '../tokens';\nimport { OpenApiRemoteMethod } from '@rxap/open-api/remote-method';\nimport { TableDataSourceDirective } from '../../table-data-source.directive';\nimport {\n isObservable,\n Observable\n} from 'rxjs';\nimport { Method } from '@rxap/utilities/rxjs';\n\n@Component({\n selector: 'td[mfd-row-controls-cell]',\n templateUrl: './row-controls-cell.component.html',\n styleUrls: [ './row-controls-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'mfd-row-controls-cell' }\n})\nexport class RowControlsCellComponent<Data extends Record<string, any> & { uuid: string }> {\n\n @Input()\n @Required\n public element!: Data;\n\n constructor(\n private readonly tableDataSource: TableDataSourceDirective<Data>,\n @Optional()\n @Inject(ROW_DELETE_METHOD)\n public readonly deleteRemoteMethod: OpenApiRemoteMethod<any, { uuid: string }> | null = null,\n @Optional()\n @Inject(ROW_ARCHIVE_METHOD)\n public readonly archiveRemoteMethod: OpenApiRemoteMethod<any, { uuid: string }> | null = null,\n @Optional()\n @Inject(ROW_RESTORE_METHOD)\n public readonly unarchiveRemoteMethod: OpenApiRemoteMethod<any, { uuid: string }> | null = null,\n @Optional()\n @Inject(ROW_EDIT_METHOD)\n public readonly editRemoteMethod: Method<any, Data | Observable<Data>> | null = null,\n @Optional()\n @Inject(ROW_VIEW_METHOD)\n public readonly rowViewMethod: Method<any, { uuid: string }> | null = null,\n @Optional()\n @Inject(ROW_LINK_METHOD)\n public readonly rowLinkMethod: Method<any, { uuid: string }> | null = null,\n @Optional()\n @Inject(ROW_EDIT_LOADER_METHOD)\n public readonly editLoaderMethod: Method<any, Data> | null = null\n ) {}\n\n public async archive() {\n if (this.archiveRemoteMethod) {\n await this.archiveRemoteMethod.call({ parameters: { uuid: this.element.uuid } });\n this.tableDataSource.refresh();\n }\n }\n\n public async unarchive() {\n if (this.unarchiveRemoteMethod) {\n await this.unarchiveRemoteMethod.call({ parameters: { uuid: this.element.uuid } });\n this.tableDataSource.refresh();\n }\n }\n\n public async remove() {\n if (this.deleteRemoteMethod) {\n await this.deleteRemoteMethod.call({ parameters: { uuid: this.element.uuid } });\n this.tableDataSource.refresh();\n }\n }\n\n public async view() {\n if (this.rowViewMethod) {\n await this.rowViewMethod.call(this.element);\n }\n }\n\n public async link() {\n if (this.rowLinkMethod) {\n await this.rowLinkMethod.call(this.element);\n }\n }\n\n public async edit() {\n if (this.editRemoteMethod) {\n let initial = this.element;\n if (this.editLoaderMethod) {\n initial = await this.editLoaderMethod.call(initial);\n }\n const result = await this.editRemoteMethod.call(initial, { context: this.element });\n if (isObservable(result)) {\n await result.toPromise();\n }\n this.tableDataSource.refresh();\n }\n }\n}\n","<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öschen\"\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","import { NgModule } from '@angular/core';\nimport { RowControlsCellComponent } from './row-controls-cell.component';\nimport { CommonModule } from '@angular/common';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { ConfirmComponentModule } from '@rxap/components';\nimport { MatTooltipModule } from '@angular/material/tooltip';\n\n\n@NgModule({\n declarations: [ RowControlsCellComponent ],\n imports: [\n CommonModule,\n FlexLayoutModule,\n MatButtonModule,\n MatIconModule,\n ConfirmComponentModule,\n MatTooltipModule\n ],\n exports: [ RowControlsCellComponent ]\n})\nexport class RowControlsCellComponentModule {\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Inject,\n Optional,\n} from '@angular/core';\nimport { TableFilterService } from '../../table-filter/table-filter.service';\nimport type { Observable } from 'rxjs';\nimport { of } from 'rxjs';\nimport { distinctUntilChanged, map, startWith } from 'rxjs/operators';\nimport {\n ROW_ARCHIVE_METHOD,\n ROW_DELETE_METHOD,\n ROW_RESTORE_METHOD,\n} from '../tokens';\nimport { TableDataSourceDirective } from '../../table-data-source.directive';\nimport { SelectRowService } from '../../select-row/select-row.service';\nimport { OpenApiRemoteMethod } from '@rxap/open-api/remote-method';\n\n@Component({\n selector: 'th[mfd-row-controls-header-cell]',\n templateUrl: './row-controls-header-cell.component.html',\n styleUrls: ['./row-controls-header-cell.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'mfd-row-controls-header-cell' },\n})\nexport class RowControlsHeaderCellComponent<Data extends Record<string, any>> {\n public showArchive$: Observable<boolean>;\n\n public showUnarchive$: Observable<boolean>;\n\n public showDelete$: Observable<boolean>;\n\n public disabled$: Observable<boolean>;\n\n constructor(\n private readonly tableDataSource: TableDataSourceDirective<Data>,\n @Optional()\n @Inject(TableFilterService)\n private readonly tableFilter: TableFilterService | null = null,\n @Optional()\n @Inject(SelectRowService)\n public readonly selectRow: SelectRowService<Data> | null = null,\n @Optional()\n @Inject(ROW_DELETE_METHOD)\n private readonly deleteRemoteMethod: OpenApiRemoteMethod<\n any,\n { uuid: string }\n > | null = null,\n @Optional()\n @Inject(ROW_ARCHIVE_METHOD)\n private readonly archiveRemoteMethod: OpenApiRemoteMethod<\n any,\n { uuid: string }\n > | null = null,\n @Optional()\n @Inject(ROW_RESTORE_METHOD)\n private readonly unarchiveRemoteMethod: OpenApiRemoteMethod<\n any,\n { uuid: string }\n > | null = null\n ) {\n this.disabled$ =\n this.selectRow?.selectedRows$.pipe(\n map((selectedRows) => selectedRows.length === 0),\n startWith(true)\n ) ?? of(true);\n this.showUnarchive$ = this.showDelete$ =\n this.tableFilter?.change.pipe(\n map(\n (filter) =>\n filter &&\n filter.hasOwnProperty('__archived') &&\n filter['__archived'] === true\n ),\n distinctUntilChanged()\n ) ?? of(false);\n this.showArchive$ =\n this.tableFilter?.change.pipe(\n map(\n (filter) =>\n !filter ||\n !filter.hasOwnProperty('__archived') ||\n filter['__archived'] === false\n ),\n distinctUntilChanged()\n ) ?? of(true);\n }\n\n public async archiveSelected(selectedRows: Data[] | undefined) {\n if (this.archiveRemoteMethod && selectedRows) {\n await Promise.all(\n selectedRows.map((selectedRow) =>\n this.archiveRemoteMethod?.call({\n parameters: { uuid: selectedRow.uuid },\n })\n )\n );\n this.tableDataSource.refresh();\n }\n }\n\n public async unarchiveSelected(selectedRows: Data[] | undefined) {\n if (this.unarchiveRemoteMethod && selectedRows) {\n await Promise.all(\n selectedRows.map((selectedRow) =>\n this.unarchiveRemoteMethod?.call({\n parameters: { uuid: selectedRow.uuid },\n })\n )\n );\n this.tableDataSource.refresh();\n }\n }\n\n public async deleteSelected(selectedRows: Data[] | undefined) {\n if (this.deleteRemoteMethod && selectedRows) {\n await Promise.all(\n selectedRows.map((selectedRow) =>\n this.deleteRemoteMethod?.call({\n parameters: { uuid: selectedRow.uuid },\n })\n )\n );\n this.tableDataSource.refresh();\n }\n }\n}\n","<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öschen\" 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","import { NgModule } from '@angular/core';\nimport { RowControlsHeaderCellComponent } from './row-controls-header-cell.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { ConfirmComponentModule } from '@rxap/components';\nimport { CommonModule } from '@angular/common';\nimport { MatTooltipModule } from '@angular/material/tooltip';\n\n@NgModule({\n declarations: [RowControlsHeaderCellComponent],\n imports: [\n FlexLayoutModule,\n MatButtonModule,\n MatIconModule,\n ConfirmComponentModule,\n CommonModule,\n MatTooltipModule,\n ],\n exports: [RowControlsHeaderCellComponent],\n})\nexport class RowControlsHeaderCellComponentModule {}\n","import { NgModule } from '@angular/core';\nimport { RowControlsCellComponentModule } from './row-controls-cell/row-controls-cell.component.module';\nimport { RowControlsHeaderCellComponentModule } from './row-controls-header-cell/row-controls-header-cell.component.module';\n\n\n@NgModule({\n exports: [\n RowControlsCellComponentModule,\n RowControlsHeaderCellComponentModule\n ]\n})\nexport class TableRowControlsModule {\n}\n","import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';\nimport type { WindowRef } from '@rxap/window-system';\nimport { RXAP_WINDOW_REF } from '@rxap/window-system';\nimport type { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { SelectRowService } from '../select-row/select-row.service';\n\n@Component({\n // TODO : rn selector\n selector: 'mfd-table-select-controls',\n templateUrl: './table-select-controls.component.html',\n styleUrls: ['./table-select-controls.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'mfd-table-select-controls' },\n})\nexport class TableSelectControlsComponent {\n public hasNotSelected$: Observable<boolean>;\n\n constructor(\n private readonly selectRows: SelectRowService<any>,\n @Inject(RXAP_WINDOW_REF)\n private readonly windowRef: WindowRef\n ) {\n this.hasNotSelected$ = this.selectRows.selectedRows$.pipe(\n map((selected) => selected.length === 0)\n );\n }\n\n public cancel() {\n this.windowRef.close();\n }\n\n public select() {\n this.windowRef.close(this.selectRows.selectedRows);\n }\n}\n","<div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <button fxFlex=\"nogrow\" mat-stroked-button (click)=\"cancel()\" type=\"button\"\n i18n=\"@@rxap-material.table-system.table-select-controls.cancel\">Cancel\n </button>\n <button fxFlex=\"nogrow\" mat-raised-button (click)=\"select()\" type=\"button\" [disabled]=\"hasNotSelected$ | async\"\n i18n=\"@@rxap-material.table-system.table-select-controls.select\">Select\n </button>\n</div>\n","import { NgModule } from '@angular/core';\nimport { TableSelectControlsComponent } from './table-select-controls.component';\nimport { MatButtonModule } from '@angular/material/button';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [ TableSelectControlsComponent ],\n imports: [\n MatButtonModule,\n FlexLayoutModule,\n CommonModule\n ],\n exports: [ TableSelectControlsComponent ]\n})\nexport class TableSelectControlsComponentModule {\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Input\n} from '@angular/core';\nimport {\n BackgroundPosition,\n BackgroundPositionOptions,\n BackgroundRepeat,\n BackgroundRepeatOptions,\n BackgroundSize,\n BackgroundSizeOptions\n} from '@rxap/directives';\n\n@Component({\n selector: 'td[rxap-image-cell]',\n templateUrl: './image-cell.component.html',\n styleUrls: [ './image-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-image-cell' }\n})\nexport class ImageCellComponent {\n\n @Input()\n public preset?: string;\n\n @Input()\n public size: BackgroundSize = BackgroundSizeOptions.COVER;\n\n @Input()\n public repeat: BackgroundRepeat = BackgroundRepeatOptions.NO_REPEAT;\n\n @Input()\n public position: BackgroundPosition = BackgroundPositionOptions.CENTER_CENTER;\n\n @Input('rxap-image-cell')\n public value: string | null = null;\n\n}\n","<div\n *ngIf=\"value\"\n [ngClass]=\"[preset]\"\n [repeat]=\"repeat\"\n [size]=\"size\"\n [position]=\"position\"\n [rxapBackgroundImage]=\"value\"\n class=\"image\">\n</div>\n<ng-content></ng-content>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { BackgroundImageDirectiveModule } from '@rxap/directives';\nimport { ImageCellComponent } from './image-cell.component';\n\n@NgModule({\n declarations: [ ImageCellComponent ],\n imports: [ BackgroundImageDirectiveModule, CommonModule ],\n exports: [ ImageCellComponent ]\n})\nexport class ImageCellComponentModule {}\n","import {\n Component,\n ChangeDetectionStrategy, Input,\n} from '@angular/core';\n\n@Component({\n selector: 'td[rxap-copy-to-clipboard-cell]',\n templateUrl: './copy-to-clipboard-cell.component.html',\n styleUrls: [ './copy-to-clipboard-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-copy-to-clipboard-cell' }\n})\nexport class CopyToClipboardCellComponent {\n\n @Input('rxap-copy-to-clipboard-cell')\n public value: any;\n\n}\n","<rxap-copy-to-clipboard *ngIf=\"value !== null && value !== undefined && value !== ''\" [value]=\"value\" class=\"copy-to-clipboard\"></rxap-copy-to-clipboard>\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { CopyToClipboardCellComponent } from './copy-to-clipboard-cell.component';\nimport { CopyToClipboardModule } from '@rxap/components';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [CopyToClipboardCellComponent],\n imports: [\n CopyToClipboardModule,\n CommonModule\n ],\n exports: [CopyToClipboardCellComponent]\n})\nexport class CopyToClipboardCellComponentModule { }\n","import {\n Component,\n ChangeDetectionStrategy,\n Input\n} from '@angular/core';\nimport { IconConfig } from '@rxap/utilities';\n\n@Component({\n selector: 'td[rxap-icon-cell]',\n templateUrl: './icon-cell.component.html',\n styleUrls: [ './icon-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-icon-cell' }\n})\nexport class IconCellComponent {\n\n @Input('rxap-icon-cell')\n public icon!: IconConfig | null;\n\n}\n","<mat-icon *ngIf=\"icon\" [rxapIcon]=\"icon\"></mat-icon>\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { IconCellComponent } from './icon-cell.component';\nimport { MatIconModule } from '@angular/material/icon';\nimport { CommonModule } from '@angular/common';\nimport { IconDirectiveModule } from '@rxap/material-directives/icon';\n\n\n\n@NgModule({\n declarations: [IconCellComponent],\n imports: [\n MatIconModule,\n CommonModule,\n IconDirectiveModule,\n ],\n exports: [IconCellComponent]\n})\nexport class IconCellComponentModule { }\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\n\n@Component({\n selector: 'td[rxap-date-cell]',\n templateUrl: './date-cell.component.html',\n styleUrls: ['./date-cell.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'rxap-date-cell'},\n})\nexport class DateCellComponent {\n\n @Input('rxap-date-cell')\n public date: Date | number | string | null = null;\n\n @Input()\n public format: string = 'dd.MM.yyyy HH:mm';\n\n}\n","<ng-template [ngIf]=\"date\">\n {{date | date:format}}\n</ng-template>\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { DateCellComponent } from './date-cell.component';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [DateCellComponent],\n imports: [\n CommonModule,\n ],\n exports: [DateCellComponent],\n})\nexport class DateCellComponentModule {\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Input\n} from '@angular/core';\n\n@Component({\n selector: 'td[rxap-link-cell]',\n templateUrl: './link-cell.component.html',\n styleUrls: [ './link-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-link-cell' }\n})\nexport class LinkCellComponent {\n\n @Input('rxap-link-cell')\n public value: any;\n\n public get href(): string {\n if (this.protocol) {\n return [ this.protocol, this.value ].join(':');\n }\n return this.value;\n }\n\n @Input()\n public protocol?: 'tel' | 'mailto';\n\n}\n","<a *ngIf=\"value\" [href]=\"href\" [matTooltip]=\"value\" class=\"link\" target=\"_blank\">\n <span fxLayout=\"row\" fxLayoutGap=\"8px\" fxLayoutAlign=\"start center\">\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 fxFlex=\"nogrow\" class=\"content\">{{value}}</span>\n </span>\n</a>\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { LinkCellComponent } from './link-cell.component';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatIconModule } from '@angular/material/icon';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [LinkCellComponent],\n imports: [\n MatTooltipModule,\n MatIconModule,\n FlexLayoutModule,\n CommonModule\n ],\n exports: [LinkCellComponent]\n})\nexport class LinkCellComponentModule { }\n","import type { QueryList } from '@angular/core';\nimport {\n Component,\n ChangeDetectionStrategy,\n Input,\n ContentChildren,\n AfterContentInit,\n isDevMode,\n OnDestroy,\n Renderer2\n} from '@angular/core';\nimport { MatOption } from '@angular/material/core';\nimport { Subscription } from 'rxjs';\nimport {\n tap,\n startWith\n} from 'rxjs/operators';\n\n@Component({\n selector: 'td[rxap-options-cell]',\n templateUrl: './options-cell.component.html',\n styleUrls: [ './options-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-options-cell' }\n})\nexport class OptionsCellComponent implements AfterContentInit, OnDestroy {\n @Input('rxap-options-cell')\n public value: any;\n\n @Input('default')\n public defaultViewValue!: string;\n\n @Input('empty')\n public emptyViewValue!: string;\n\n public viewValue!: string;\n\n private readonly _subscription = new Subscription();\n\n constructor(private readonly renderer: Renderer2) {\n this.defaultViewValue = ''; // $localize`:@@rxap-material.table-system.options-cell.unknown:unknown`;\n this.emptyViewValue = ''; // $localize`:@@rxap-material.table-system.options-cell.empty:empty`;\n }\n\n @ContentChildren(MatOption, { descendants: true })\n public options!: QueryList<MatOption>;\n\n public ngAfterContentInit() {\n // Hide the mat-option elements\n this._subscription.add(this.options.changes.pipe(\n startWith(null),\n tap(() => this.options.forEach(option => this.renderer.setStyle(option._getHostElement(), 'display', 'none')))\n ).subscribe());\n if (this.value === undefined || this.value === null) {\n this.viewValue = this.emptyViewValue;\n } else {\n if (this.options) {\n this._subscription.add(this.options.changes\n .pipe(\n startWith(null),\n tap(() => (this.viewValue = this.getViewValue()))\n )\n .subscribe());\n } else if (isDevMode()) {\n console.log('Could not load any option');\n }\n }\n }\n\n public getViewValue(): string {\n return (\n this.options.find((option) => option.value === this.value)?.viewValue ??\n this.defaultViewValue\n );\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n}\n","{{viewValue}}\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { OptionsCellComponent } from './options-cell.component';\n\n\n\n@NgModule({\n declarations: [OptionsCellComponent],\n imports: [\n ],\n exports: [OptionsCellComponent]\n})\nexport class OptionsCellComponentModule { }\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\n\n@Component({\n selector: 'td[rxap-boolean-cell]',\n templateUrl: './boolean-cell.component.html',\n styleUrls: [ './boolean-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-boolean-cell' },\n})\nexport class BooleanCellComponent {\n\n @Input('rxap-boolean-cell')\n public value: any | null = null;\n\n}\n","<ng-template [ngIf]=\"value\" [ngIfElse]=\"isFalse\">\n <mat-icon class=\"truthy\">check_circle</mat-icon>\n</ng-template>\n<ng-template #isFalse>\n <mat-icon class=\"falsy\">cancel</mat-icon>\n</ng-template>\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { BooleanCellComponent } from './boolean-cell.component';\nimport { CommonModule } from '@angular/common';\nimport { MatIconModule } from '@angular/material/icon';\n\n\n@NgModule({\n declarations: [BooleanCellComponent],\n imports: [\n CommonModule,\n MatIconModule,\n ],\n exports: [BooleanCellComponent],\n})\nexport class BooleanCellComponentModule {\n}\n","import { setMetadata } from '@rxap/utilities/reflect-metadata';\n\nexport const RXAP_TABLE_ACTION_METHOD_TYPE_METADATA = 'rxap-table-action-method-type-metadata';\n\nexport function TableActionMethod(type: string) {\n return function(target: any) {\n setMetadata(RXAP_TABLE_ACTION_METHOD_TYPE_METADATA, type, target);\n };\n}\n","import {\n Directive,\n TemplateRef,\n ViewContainerRef\n} from '@angular/core';\n\n@Directive({\n selector: '[rxapTableRowActionExecuting]'\n})\nexport class TableRowActionExecutingDirective {\n constructor(\n public readonly templateRef: TemplateRef<void>,\n private readonly vcr: ViewContainerRef\n ) {}\n\n public show(): void {\n this.vcr.createEmbeddedView(this.templateRef);\n }\n\n public hide(): void {\n this.vcr.clear();\n }\n}\n","export enum TableRowActionStatus {\n EXECUTING = 'executing',\n DONE = 'done',\n ERROR = 'error',\n SUCCESS = 'success'\n}\n","import {\n getMetadata,\n hasMetadata\n} from '@rxap/utilities/reflect-metadata';\nimport { Method } from '@rxap/utilities/rxjs';\nimport { RXAP_TABLE_ACTION_METHOD_TYPE_METADATA } from './decorators';\n\nexport type TableRowActionTypeSwitchMethod<Data extends Record<string, any>> = Method<any, { element: Data; type: string }>;\nexport type TableRowActionTypeMethod<Data extends Record<string, any>> = Method<any,\n Data>;\n\nexport type TableRowActionMethod<Data extends Record<string, any>> =\n | TableRowActionTypeSwitchMethod<Data>\n | TableRowActionTypeMethod<Data>;\n\nexport function IsTableRowActionTypeSwitchMethod<Data extends Record<string, any>>(\n method: TableRowActionMethod<Data>\n): method is TableRowActionTypeSwitchMethod<Data> {\n return !hasMetadata(\n RXAP_TABLE_ACTION_METHOD_TYPE_METADATA,\n method.constructor\n );\n}\n\nexport function IsTableRowActionTypeMethod<Data extends Record<string, any>>(\n type: string\n) {\n return (\n method: TableRowActionMethod<Data>\n ): method is TableRowActionTypeMethod<Data> => {\n return (\n getMetadata(\n RXAP_TABLE_ACTION_METHOD_TYPE_METADATA,\n method.constructor\n ) === type\n );\n };\n}\n","import { InjectionToken } from '@angular/core';\n\nexport const RXAP_TABLE_ROW_ACTION_METHOD = new InjectionToken(\n 'rxap-table-row-action-method'\n);\n","import {\n ChangeDetectorRef,\n ContentChild,\n Directive,\n HostListener,\n Inject,\n Input,\n isDevMode,\n Optional,\n ViewContainerRef\n} from '@angular/core';\nimport { MatButton } from '@angular/material/button';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport {\n coerceArray,\n coerceBoolean,\n Required\n} from '@rxap/utilities';\nimport { TableRowActionExecutingDirective } from './table-row-action-executing.directive';\nimport { TableRowActionStatus } from './table-row-action-status';\nimport {\n IsTableRowActionTypeMethod,\n IsTableRowActionTypeSwitchMethod,\n TableRowActionMethod,\n TableRowActionTypeMethod,\n TableRowActionTypeSwitchMethod\n} from './table-row-action.method';\nimport { RXAP_TABLE_ROW_ACTION_METHOD } from './tokens';\nimport { TableDataSourceDirective } from '../table-data-source.directive';\n\n@Directive({\n selector: 'button[rxapTableRowAction]'\n})\nexport class TableRowActionDirective<Data extends Record<string, any>> {\n private _hasConfirmDirective = false;\n\n @Input('rxapConfirm')\n public set hasConfirmDirective(value: any) {\n this._hasConfirmDirective = coerceBoolean(value);\n }\n\n @Input()\n @Required\n public element!: Data;\n @Input('rxapTableRowAction')\n @Required\n public type!: string;\n\n @Input()\n public errorMessage?: string;\n\n @Input()\n public successMessage?: string;\n\n @ContentChild(TableRowActionExecutingDirective)\n private readonly executingDirective?: TableRowActionExecutingDirective;\n private _currentStatus: TableRowActionStatus = TableRowActionStatus.DONE;\n\n private readonly actionMethodList: Array<TableRowActionMethod<Data>>;\n\n constructor(\n @Inject(RXAP_TABLE_ROW_ACTION_METHOD)\n actionMethodList:\n | Array<TableRowActionMethod<Data>>\n | TableRowActionMethod<Data>,\n @Inject(ChangeDetectorRef)\n protected readonly cdr: ChangeDetectorRef,\n @Inject(ViewContainerRef)\n private readonly vcr: ViewContainerRef,\n @Inject(TableDataSourceDirective)\n private readonly tableDataSourceDirective: TableDataSourceDirective,\n @Inject(MatSnackBar)\n private readonly snackBar: MatSnackBar,\n @Optional()\n @Inject(MatButton)\n private readonly matButton: MatButton | null\n ) {\n this.actionMethodList = coerceArray(actionMethodList);\n }\n\n @HostListener('confirmed')\n public onConfirmed() {\n return this.execute();\n }\n\n @HostListener('click', [ '$event' ])\n public onClick($event: Event) {\n $event.stopPropagation();\n if (!this._hasConfirmDirective) {\n return this.execute();\n } else {\n if (isDevMode()) {\n console.debug('skip remote method call. Wait for confirmation.');\n }\n }\n return Promise.resolve();\n }\n\n public async execute(): Promise<void> {\n this.setStatus(TableRowActionStatus.EXECUTING);\n try {\n await Promise.all(\n this.getElementList().map((element) => {\n return Promise.all([\n Promise.all(\n this.findUntypedActionMethod().map((am) =>\n am.call({ element, type: this.type })\n )\n ),\n Promise.all(\n this.findTypedActionMethod().map((am) => am.call(element))\n )\n ]);\n })\n );\n this.setStatus(TableRowActionStatus.SUCCESS);\n } catch (e) {\n console.error(`Failed to execute row action: ${e.message}`);\n this.setStatus(TableRowActionStatus.ERROR);\n }\n }\n\n protected getElementList(): Data[] {\n return [ this.element ];\n }\n\n /**\n * find all method instance in the actionMethodList member that\n * do not have a @TableActionMethod decorators\n * @private\n */\n private findUntypedActionMethod(): Array<TableRowActionTypeSwitchMethod<Data>> {\n return this.actionMethodList.filter(IsTableRowActionTypeSwitchMethod);\n }\n\n /**\n * find all method instance in the actionMethodList member that\n * do have a @TableActionMethod decorators with the current type\n * @private\n */\n private findTypedActionMethod(): Array<TableRowActionTypeMethod<Data>> {\n return this.actionMethodList.filter(IsTableRowActionTypeMethod(this.type));\n }\n\n protected setButtonDisabled() {\n if (this.matButton) {\n this.matButton.disabled = true;\n }\n }\n\n protected setButtonEnabled() {\n if (this.matButton) {\n this.matButton.disabled = false;\n }\n }\n\n private setStatus(status: TableRowActionStatus) {\n if (this._currentStatus === status) {\n return;\n }\n this._currentStatus = status;\n switch (status) {\n case TableRowActionStatus.EXECUTING:\n this.setButtonDisabled();\n this.executingDirective?.show();\n break;\n case TableRowActionStatus.SUCCESS:\n this.tableDataSourceDirective.refresh();\n if (this.successMessage) {\n this.snackBar.open(this.successMessage, 'ok', { duration: 2560 });\n }\n this.setStatus(TableRowActionStatus.DONE);\n break;\n case TableRowActionStatus.ERROR:\n this.setStatus(TableRowActionStatus.DONE);\n if (this.errorMessage) {\n this.snackBar.open(this.errorMessage, 'ok', { duration: 5120 });\n }\n break;\n case TableRowActionStatus.DONE:\n this.setButtonEnabled();\n this.executingDirective?.hide();\n break;\n }\n this.cdr.detectChanges();\n }\n}\n","import {\n ChangeDetectorRef,\n Directive,\n Inject,\n Input,\n OnDestroy,\n OnInit,\n Optional,\n ViewContainerRef\n} from '@angular/core';\nimport { MatButton } from '@angular/material/button';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport { Required } from '@rxap/utilities';\nimport { Subscription } from 'rxjs';\nimport {\n map,\n startWith,\n tap\n} from 'rxjs/operators';\nimport { TableRowActionDirective } from './table-row-action.directive';\nimport { TableRowActionMethod } from './table-row-action.method';\nimport { RXAP_TABLE_ROW_ACTION_METHOD } from './tokens';\nimport { TableDataSourceDirective } from '../table-data-source.directive';\nimport { SelectRowService } from '../select-row/select-row.service';\n\n@Directive({\n selector: 'button[rxapTableRowHeaderAction]'\n})\nexport class TableRowHeaderActionDirective<Data extends Record<string, any>>\n extends TableRowActionDirective<Data>\n implements OnInit, OnDestroy {\n private _subscription?: Subscription;\n\n constructor(\n @Inject(RXAP_TABLE_ROW_ACTION_METHOD)\n actionMethod: TableRowActionMethod<Data>,\n @Inject(ChangeDetectorRef)\n cdr: ChangeDetectorRef,\n @Inject(ViewContainerRef)\n vcr: ViewContainerRef,\n @Inject(TableDataSourceDirective)\n tableDataSourceDirective: TableDataSourceDirective,\n @Inject(MatSnackBar)\n snackBar: MatSnackBar,\n @Optional()\n @Inject(MatButton)\n matButton: MatButton | null,\n @Optional()\n @Inject(SelectRowService)\n private readonly selectRowService: SelectRowService<Data> | null\n ) {\n super(\n actionMethod,\n cdr,\n vcr,\n tableDataSourceDirective,\n snackBar,\n matButton\n );\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n public ngOnInit() {\n if (this.selectRowService) {\n this._subscription = this.selectRowService.selectedRows$\n .pipe(\n startWith(this.selectRowService.selectedRows),\n map((rows) => rows.length !== 0),\n tap((hasSelected) => {\n if (hasSelected) {\n this.setButtonEnabled();\n } else {\n this.setButtonDisabled();\n }\n this.cdr.detectChanges();\n })\n )\n .subscribe();\n } else {\n this.setButtonDisabled();\n }\n }\n\n protected getElementList(): Data[] {\n return this.selectRowService?.selectedRows ?? [];\n }\n\n @Input('rxapTableRowHeaderAction')\n @Required\n public type!: string;\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { ConfirmComponentModule } from '@rxap/components';\nimport { TableRowActionExecutingDirective } from './table-row-action-executing.directive';\nimport { TableRowActionDirective } from './table-row-action.directive';\nimport { TableRowHeaderActionDirective } from './table-row-header-action.directive';\n\n@NgModule({\n declarations: [\n TableRowActionDirective,\n TableRowActionExecutingDirective,\n TableRowHeaderActionDirective\n ],\n exports: [\n TableRowActionDirective,\n TableRowHeaderActionDirective,\n TableRowActionExecutingDirective,\n MatTooltipModule,\n MatButtonModule,\n ConfirmComponentModule,\n MatIconModule,\n MatProgressBarModule,\n CommonModule\n ]\n})\nexport class TableRowActionsModule {}\n","export * from './lib/expand-row/expand-row.module';\nexport * from './lib/expand-row/expand-row-container/expand-row-container.component';\nexport * from './lib/expand-row/expand-row-container/expand-row-content.directive';\nexport * from './lib/expand-row/expand-row-container/expand-row-container.component.module';\nexport * from './lib/expand-row/expand-controls-cell/expand-controls-cell.component';\nexport * from './lib/expand-row/expand-controls-cell/expand-controls-cell.component.module';\nexport * from './lib/expand-row/expand-row.service';\nexport * from './lib/expand-row/expand-row.directive';\n\nexport * from './lib/select-row/select-row.module';\nexport * from './lib/select-row/checkbox-cell/checkbox-cell.component';\nexport * from './lib/select-row/checkbox-cell/checkbox-cell.component.module';\nexport * from './lib/select-row/checkbox-header-cell/checkbox-header-cell.component';\nexport * from './lib/select-row/checkbox-header-cell/checkbox-header-cell.component.module';\nexport * from './lib/select-row/select-row.service';\nexport * from './lib/select-row/selected-rows.directive';\nexport * from './lib/select-row/tokens';\nexport * from './lib/row-animation';\nexport * from './lib/table-data-source.directive';\n\n// region table filter\n\nexport * from './lib/table-filter/filter-header-row.directive';\nexport * from './lib/table-filter/table-filter.module';\nexport * from './lib/table-filter/table-filter.service';\nexport * from './lib/table-filter/to-filter-column-names.pipe';\nexport * from './lib/table-filter/tokens';\n\n// endregion\n\n// region table column menu\n\nexport * from './lib/table-column-menu/table-column-menu.component';\nexport * from './lib/table-column-menu/table-column-menu.component.module';\nexport * from './lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component';\nexport * from './lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.module';\nexport * from './lib/table-column-menu/table-column-option/table-column-option.component';\n\n// endregion\n\n// region table create button\n\nexport * from './lib/table-create-button/table-create-button.directive';\nexport * from './lib/table-create-button/tokens';\n\n// endregion\n\n// region table row controls\n\nexport * from './lib/table-row-controls/table-row-controls.module';\nexport * from './lib/table-row-controls/row-controls-cell/row-controls-cell.component';\nexport * from './lib/table-row-controls/row-controls-cell/row-controls-cell.component.module';\nexport * from './lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component';\nexport * from './lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.module';\nexport * from './lib/table-row-controls/tokens';\n\n// endregion\n\n// region table select controls\n\nexport * from './lib/table-select-controls/table-select-controls.component';\nexport * from './lib/table-select-controls/table-select-controls.component.module';\n\n// endregion\n\n// region cells\n\n// region image\n\nexport * from './lib/cells/image-cell/image-cell.component';\nexport * from './lib/cells/image-cell/image-cell.component.module';\n\n// endregion\n\n// region copy-to-clipboard cell\n\nexport * from './lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component';\nexport * from './lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.module';\n\n// endregion\n\n// region icon cell\n\nexport * from './lib/cells/icon-cell/icon-cell.component';\nexport * from './lib/cells/icon-cell/icon-cell.component.module';\n\n// endregion\n\n// region date cell\n\nexport * from './lib/cells/date-cell/date-cell.component';\nexport * from './lib/cells/date-cell/date-cell.component.module';\n\n// endregion\n\n// region link cell\n\nexport * from './lib/cells/link-cell/link-cell.component';\nexport * from './lib/cells/link-cell/link-cell.component.module';\n\n// endregion\n\n// region options cell\n\nexport * from './lib/cells/options-cell/options-cell.component';\nexport * from './lib/cells/options-cell/options-cell.component.module';\n\n// endregion\n\n// region boolean cell\n\nexport * from './lib/cells/boolean-cell/boolean-cell.component';\nexport * from './lib/cells/boolean-cell/boolean-cell.component.module';\n\n// endregion\n\n// region table-row-actions\n\nexport * from './lib/table-row-actions/decorators';\nexport * from './lib/table-row-actions/table-row-action.directive';\nexport * from './lib/table-row-actions/table-row-action.method';\nexport * from './lib/table-row-actions/table-row-action-executing.directive';\nexport * from './lib/table-row-actions/table-row-action-status';\nexport * from './lib/table-row-actions/table-row-actions.module';\nexport * from './lib/table-row-actions/table-row-header-action.directive';\nexport * from './lib/table-row-actions/tokens';\n\n// endregion\n\n// endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["TemplateRef","Directive","Inject","BehaviorSubject","map","Injectable","filter","tap","TemplatePortal","ViewContainerRef","trigger","state","style","transition","animate","Required","Component","ChangeDetectionStrategy","Input","ContentChild","PortalModule","CommonModule","NgModule","MatIconModule","MatButtonModule","HostListener","InjectionToken","SelectionModel","Optional","MatCheckboxModule","EMPTY","CdkTable","distinctUntilChanged","ChangeDetectorRef","sequence","ReplaySubject","ToggleSubject","Subscription","DynamicTableDataSource","debounceTime","delay","MatSort","equals","FormDirective","ControlContainer","forwardRef","Pipe","coerceBoolean","ElementRef","ContentChildren","HostBinding","MatMenuModule","StopPropagationDirectiveModule","FlexLayoutModule","MatSlideToggleModule","isObservable","Renderer2","ConfirmComponentModule","MatTooltipModule","startWith","of","RXAP_WINDOW_REF","BackgroundSizeOptions","BackgroundRepeatOptions","BackgroundPositionOptions","BackgroundImageDirectiveModule","CopyToClipboardModule","IconDirectiveModule","isDevMode","MatOption","setMetadata","TableRowActionStatus","hasMetadata","getMetadata","coerceArray","MatSnackBar","MatButton","MatProgressBarModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA;;;;;;;;;;;;;;IAcA;IAEA,IAAI,aAAa,GAAG,UAAS,CAAC,EAAE,CAAC;QAC7B,aAAa,GAAG,MAAM,CAAC,cAAc;aAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;YAC5E,UAAU,CAAC,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC;gBAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;oBAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACtG,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;aAEc,SAAS,CAAC,CAAC,EAAE,CAAC;QAC1B,IAAI,OAAO,CAAC,KAAK,UAAU,IAAI,CAAC,KAAK,IAAI;Y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AAgC;YAChCwC,qBAAgB;YAChBlC,oBAAe;YACfiC,2BAAsB;YACtBlC,kBAAa;YACbsD,gCAAoB;YACpBxD,eAAY;6IAGH,qBAAqB,YAR9BqC,qBAAgB;YAChBlC,oBAAe;YACfiC,2BAAsB;YACtBlC,kBAAa;YACbsD,gCAAoB;YACpBxD,eAAY;qHAGH,qBAAqB;sBAlBjCC,WAAQ;uBAAC;wBACR,YAAY,EAAE;4BACZ,uBAAuB;4BACvB,gCAAgC;4BAChC,6BAA6B;yBAC9B;wBACD,OAAO,EAAO;4BACZ,uBAAuB;4BACvB,6BAA6B;4BAC7B,gCAAgC;4BAChCoC,qBAAgB;4BAChBlC,oBAAe;4BACfiC,2BAAsB;4BACtBlC,kBAAa;4BACbsD,gCAAoB;4BACpBxD,eAAY;yBACb;qBACF;;;ICmGD;IAEA;;ICjIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"rxap-material-table-system.umd.js","sources":["../../../../../node_modules/tslib/tslib.es6.js","../../../../../libs/material/table-system/src/lib/expand-row/expand-row-container/expand-row-content.directive.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-row.service.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-row-container/expand-row-container.component.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-row-container/expand-row-container.component.html","../../../../../libs/material/table-system/src/lib/expand-row/expand-row-container/expand-row-container.component.module.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-controls-cell/expand-controls-cell.component.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-controls-cell/expand-controls-cell.component.html","../../../../../libs/material/table-system/src/lib/expand-row/expand-controls-cell/expand-controls-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-row.directive.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-row.module.ts","../../../../../libs/material/table-system/src/lib/select-row/tokens.ts","../../../../../libs/material/table-system/src/lib/select-row/select-row.service.ts","../../../../../libs/material/table-system/src/lib/select-row/checkbox-cell/checkbox-cell.component.ts","../../../../../libs/material/table-system/src/lib/select-row/checkbox-cell/checkbox-cell.component.html","../../../../../libs/material/table-system/src/lib/select-row/checkbox-cell/checkbox-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/select-row/checkbox-header-cell/checkbox-header-cell.component.ts","../../../../../libs/material/table-system/src/lib/select-row/checkbox-header-cell/checkbox-header-cell.component.html","../../../../../libs/material/table-system/src/lib/select-row/checkbox-header-cell/checkbox-header-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/select-row/selected-rows.directive.ts","../../../../../libs/material/table-system/src/lib/select-row/select-row.module.ts","../../../../../libs/material/table-system/src/lib/row-animation.ts","../../../../../libs/material/table-system/src/lib/table-filter/table-filter.service.ts","../../../../../libs/material/table-system/src/lib/table-data-source.directive.ts","../../../../../libs/material/table-system/src/lib/table-filter/tokens.ts","../../../../../libs/material/table-system/src/lib/table-filter/filter-header-row.directive.ts","../../../../../libs/material/table-system/src/lib/table-filter/to-filter-column-names.pipe.ts","../../../../../libs/material/table-system/src/lib/table-filter/table-filter.module.ts","../../../../../libs/material/table-system/src/lib/table-column-menu/table-column-option/table-column-option.component.ts","../../../../../libs/material/table-system/src/lib/table-column-menu/table-column-option/table-column-option.component.html","../../../../../libs/material/table-system/src/lib/table-column-menu/table-column-menu.component.ts","../../../../../libs/material/table-system/src/lib/table-column-menu/table-column-menu.component.html","../../../../../libs/material/table-system/src/lib/table-column-menu/table-column-menu.component.module.ts","../../../../../libs/material/table-system/src/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.ts","../../../../../libs/material/table-system/src/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.html","../../../../../libs/material/table-system/src/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.module.ts","../../../../../libs/material/table-system/src/lib/table-create-button/tokens.ts","../../../../../libs/material/table-system/src/lib/table-create-button/table-create-button.directive.ts","../../../../../libs/material/table-system/src/lib/table-row-controls/tokens.ts","../../../../../libs/material/table-system/src/lib/table-row-controls/row-controls-cell/row-controls-cell.component.ts","../../../../../libs/material/table-system/src/lib/table-row-controls/row-controls-cell/row-controls-cell.component.html","../../../../../libs/material/table-system/src/lib/table-row-controls/row-controls-cell/row-controls-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.ts","../../../../../libs/material/table-system/src/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.html","../../../../../libs/material/table-system/src/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/table-row-controls/table-row-controls.module.ts","../../../../../libs/material/table-system/src/lib/table-select-controls/table-select-controls.component.ts","../../../../../libs/material/table-system/src/lib/table-select-controls/table-select-controls.component.html","../../../../../libs/material/table-system/src/lib/table-select-controls/table-select-controls.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/image-cell/image-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/image-cell/image-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/image-cell/image-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/icon-cell/icon-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/icon-cell/icon-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/icon-cell/icon-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/date-cell/date-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/date-cell/date-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/date-cell/date-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/link-cell/link-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/link-cell/link-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/link-cell/link-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/options-cell/options-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/options-cell/options-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/options-cell/options-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/boolean-cell/boolean-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/boolean-cell/boolean-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/boolean-cell/boolean-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/decorators.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-action-executing.directive.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-action-status.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-action.method.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/tokens.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-action.directive.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-header-action.directive.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-actions.module.ts","../../../../../libs/material/table-system/src/index.ts","../../../../../libs/material/table-system/src/rxap-material-table-system.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from) {\r\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\r\n to[j] = from[i];\r\n return to;\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","import {\n Directive,\n TemplateRef,\n Inject\n} from '@angular/core';\n\nexport interface ExpandCellContentDirectiveContext<Data extends Record<string, any>> {\n $implicit: Data\n}\n\n@Directive({\n selector: '[rxapExpandRowContent]'\n})\nexport class ExpandRowContentDirective<Data extends Record<string, any>> {\n\n\n static ngTemplateContextGuard<Data extends Record<string, any>>(dir: ExpandRowContentDirective<Data>, ctx: any):\n ctx is ExpandCellContentDirectiveContext<Data> {\n return true;\n }\n\n constructor(\n @Inject(TemplateRef)\n public readonly template: TemplateRef<ExpandCellContentDirectiveContext<Data>>\n ) {}\n\n}\n","import { Injectable } from '@angular/core';\nimport type { Observable } from 'rxjs';\nimport { BehaviorSubject } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\n@Injectable()\nexport class ExpandRowService<Data extends Record<string, any>> {\n public expandedRow = new BehaviorSubject<Data | null>(null);\n\n public toggleRow(row: Data): void {\n if (this.expandedRow.value === row) {\n this.expandedRow.next(null);\n } else {\n this.expandedRow.next(row);\n }\n }\n\n public isExpanded(row: Data) {\n return this.expandedRow.value === row;\n }\n\n public isExpanded$(row: Data): Observable<boolean> {\n return this.expandedRow.pipe(map((expandedRow) => expandedRow === row));\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n Input,\n ContentChild,\n ViewContainerRef,\n OnDestroy,\n AfterContentInit,\n Inject\n} from '@angular/core';\nimport {\n ExpandRowContentDirective,\n ExpandCellContentDirectiveContext\n} from './expand-row-content.directive';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { Required } from '@rxap/utilities';\nimport {\n trigger,\n state,\n style,\n transition,\n animate\n} from '@angular/animations';\nimport { ExpandRowService } from '../expand-row.service';\nimport { Subscription } from 'rxjs';\nimport {\n tap,\n filter\n} from 'rxjs/operators';\n\n@Component({\n // tslint:disable-next-line:component-selector\n selector: 'td[rxap-expand-row]',\n templateUrl: './expand-row-container.component.html',\n styleUrls: [ './expand-row-container.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-expand-row' },\n animations: [\n trigger('detailExpand', [\n state('collapsed', style({ height: '0px', minHeight: '0' })),\n state('expanded', style({ height: '*' })),\n transition('expanded <=> collapsed', animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)'))\n ])\n ]\n})\nexport class ExpandRowContainerComponent<Data extends Record<string, any>> implements AfterContentInit, OnDestroy {\n\n @Input()\n @Required\n public element!: Data;\n\n @ContentChild(ExpandRowContentDirective)\n public expandCellContent?: ExpandRowContentDirective<Data>;\n\n public portal: TemplatePortal<ExpandCellContentDirectiveContext<Data>> | null = null;\n\n private _subscription?: Subscription;\n\n constructor(\n @Inject(ViewContainerRef)\n private readonly viewContainerRef: ViewContainerRef,\n @Inject(ExpandRowService)\n public readonly expandCell: ExpandRowService<Data>\n ) {}\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n public ngAfterContentInit() {\n if (this.expandCellContent) {\n this._subscription = this.expandCell.isExpanded$(this.element).pipe(\n filter(Boolean),\n tap(() => {\n if (!this.portal) {\n this.portal = new TemplatePortal(this.expandCellContent!.template, this.viewContainerRef, { $implicit: this.element });\n }\n })\n ).subscribe();\n }\n }\n\n}\n","<div class=\"element-detail\" [@detailExpand]=\"(expandCell.isExpanded$(element) | async) ? 'expanded' : 'collapsed'\">\n <ng-content></ng-content>\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n</div>\n","import { NgModule } from '@angular/core';\nimport { ExpandRowContainerComponent } from './expand-row-container.component';\nimport { ExpandRowContentDirective } from './expand-row-content.directive';\nimport { PortalModule } from '@angular/cdk/portal';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [\n ExpandRowContainerComponent,\n ExpandRowContentDirective\n ],\n imports: [\n PortalModule,\n CommonModule\n ],\n exports: [\n ExpandRowContainerComponent,\n ExpandRowContentDirective\n ]\n})\nexport class ExpandRowContainerComponentModule {}\n","import {\n Component,\n ChangeDetectionStrategy,\n Input,\n Inject\n} from '@angular/core';\nimport { ExpandRowService } from '../expand-row.service';\nimport { Required } from '@rxap/utilities';\n\n@Component({\n // tslint:disable-next-line:component-selector\n selector: 'td[rxap-expand-controls-cell]',\n templateUrl: './expand-controls-cell.component.html',\n styleUrls: [ './expand-controls-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-expand-controls-cell' }\n})\nexport class ExpandControlsCellComponent<Data extends Record<string, any>> {\n\n @Input()\n @Required\n public element!: Data;\n\n constructor(\n @Inject(ExpandRowService)\n public readonly expandCell: ExpandRowService<Data>\n ) {}\n\n}\n","<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","import { NgModule } from '@angular/core';\nimport { ExpandControlsCellComponent } from './expand-controls-cell.component';\nimport { CommonModule } from '@angular/common';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatButtonModule } from '@angular/material/button';\n\n\n@NgModule({\n declarations: [ ExpandControlsCellComponent ],\n imports: [\n CommonModule,\n MatIconModule,\n MatButtonModule\n ],\n exports: [ ExpandControlsCellComponent ]\n})\nexport class ExpandControlsCellComponentModule {}\n","import {\n Directive,\n Input,\n HostListener,\n Inject\n} from '@angular/core';\nimport { ExpandRowService } from './expand-row.service';\nimport { Required } from '@rxap/utilities';\n\n@Directive({\n selector: 'tr[rxapExpandRow]'\n})\nexport class ExpandRowDirective<Data extends Record<string, any>> {\n\n @HostListener('expanded-row')\n public get isExpanded() {\n return this.expandCell.isExpanded(this.element);\n }\n\n @Input()\n @Required\n public element!: Data;\n\n constructor(\n @Inject(ExpandRowService)\n private readonly expandCell: ExpandRowService<Data>\n ) { }\n\n @HostListener('click')\n public onClick() {\n this.expandCell.toggleRow(this.element);\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { ExpandRowContainerComponentModule } from './expand-row-container/expand-row-container.component.module';\nimport { ExpandControlsCellComponentModule } from './expand-controls-cell/expand-controls-cell.component.module';\nimport { ExpandRowService } from './expand-row.service';\nimport { ExpandRowDirective } from './expand-row.directive';\n\n@NgModule({\n exports: [\n ExpandRowContainerComponentModule,\n ExpandControlsCellComponentModule,\n ExpandRowDirective\n ],\n providers: [\n ExpandRowService\n ],\n declarations: [ ExpandRowDirective ]\n})\nexport class ExpandRowModule {}\n","import { InjectionToken } from '@angular/core';\nimport { SelectRowOptions } from './select-row.options';\n\nexport const RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS = new InjectionToken<SelectRowOptions>('rxap-material/table-system/select-row/options');\n","import { Injectable, Optional, Inject } from '@angular/core';\nimport { SelectionModel } from '@angular/cdk/collections';\nimport type { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { SelectRowOptions } from './select-row.options';\nimport { RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS } from './tokens';\n\n@Injectable()\nexport class SelectRowService<Data extends Record<string, any>> {\n public selectedRows$: Observable<Data[]>;\n\n public readonly selectionModel = new SelectionModel<Data>(true);\n\n public get selectedRows(): Data[] {\n return this.selectionModel.selected;\n }\n\n constructor(\n @Optional()\n @Inject(RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS)\n options: SelectRowOptions<Data> | null = null\n ) {\n this.selectionModel = new SelectionModel<Data>(options?.multiple);\n if (options?.selected) {\n this.selectionModel.select(...options?.selected);\n }\n this.selectedRows$ = this.selectionModel.changed.pipe(\n map(() => this.selectionModel.selected)\n );\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n Input,\n Inject\n} from '@angular/core';\nimport { Required } from '@rxap/utilities';\nimport { SelectRowService } from '../select-row.service';\n\n@Component({\n selector: 'td[rxap-checkbox-cell]',\n templateUrl: './checkbox-cell.component.html',\n styleUrls: [ './checkbox-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.Default,\n host: { class: 'rxap-checkbox-cell' }\n})\nexport class CheckboxCellComponent<Data extends Record<string, any>> {\n\n @Input()\n @Required\n public element!: Data;\n\n constructor(\n @Inject(SelectRowService)\n public readonly selectRow: SelectRowService<Data>\n ) {}\n\n}\n","<mat-checkbox\n (change)=\"selectRow.selectionModel.toggle(element)\"\n [checked]=\"selectRow.selectionModel.isSelected(element)\">\n</mat-checkbox>\n","import { NgModule } from '@angular/core';\nimport { CheckboxCellComponent } from './checkbox-cell.component';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [ CheckboxCellComponent ],\n imports: [\n MatCheckboxModule,\n CommonModule\n ],\n exports: [ CheckboxCellComponent ]\n})\nexport class CheckboxCellComponentModule {}\n","import {\n Component,\n ChangeDetectionStrategy,\n OnInit,\n Inject,\n} from '@angular/core';\nimport { SelectRowService } from '../select-row.service';\nimport type { Observable } from 'rxjs';\nimport { EMPTY } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { MatCheckboxChange } from '@angular/material/checkbox';\nimport { CdkTable } from '@angular/cdk/table';\n\n@Component({\n selector: 'th[rxap-checkbox-header-cell]',\n templateUrl: './checkbox-header-cell.component.html',\n styleUrls: ['./checkbox-header-cell.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-checkbox-header-cell' },\n})\nexport class CheckboxHeaderCellComponent<Data extends Record<string, any>>\n implements OnInit\n{\n public indeterminate$: Observable<boolean> = EMPTY;\n public checked$: Observable<boolean> = EMPTY;\n\n public isMultipleSelection = false;\n\n constructor(\n @Inject(CdkTable)\n private readonly cdkTable: CdkTable<Data>,\n private readonly selectRow: SelectRowService<Data>\n ) {\n this.isMultipleSelection =\n this.selectRow.selectionModel.isMultipleSelection();\n }\n\n public ngOnInit() {\n this.indeterminate$ = this.selectRow.selectedRows$.pipe(\n map(\n (selectedRows) =>\n !!selectedRows.length &&\n this.cdkTable['_data'].length !== selectedRows.length\n )\n );\n this.checked$ = this.selectRow.selectedRows$.pipe(\n map(\n (selectedRows) =>\n !!selectedRows.length &&\n this.cdkTable['_data'].length === selectedRows.length\n )\n );\n }\n\n public onChange($event: MatCheckboxChange) {\n if ($event.checked) {\n this.selectRow.selectionModel.select(...this.cdkTable['_data']);\n } else {\n this.selectRow.selectionModel.clear();\n }\n }\n}\n","<mat-checkbox\n *ngIf=\"isMultipleSelection\"\n (change)=\"onChange($event)\"\n [indeterminate]=\"indeterminate$ | async\"\n [checked]=\"(checked$ | async) ?? false\">\n</mat-checkbox>\n","import { NgModule } from '@angular/core';\nimport { CheckboxHeaderCellComponent } from './checkbox-header-cell.component';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [ CheckboxHeaderCellComponent ],\n imports: [\n MatCheckboxModule,\n CommonModule\n ],\n exports: [ CheckboxHeaderCellComponent ]\n})\nexport class CheckboxHeaderCellComponentModule {}\n","import {\n Directive,\n TemplateRef,\n ViewContainerRef,\n OnInit,\n OnDestroy,\n ChangeDetectorRef,\n Inject,\n Input,\n Optional\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { SelectRowService } from './select-row.service';\nimport {\n map,\n tap,\n distinctUntilChanged\n} from 'rxjs/operators';\nimport { CdkTable } from '@angular/cdk/table';\nimport { MatTable } from '@angular/material/table';\n\nexport interface SelectedRowsDirectiveContext<Data extends Record<string, any>> {\n $implicit: Data[];\n}\n\n@Directive({\n selector: '[rxapSelectedRows]'\n})\nexport class SelectedRowsDirective<Data extends Record<string, any>> implements OnInit, OnDestroy {\n\n private _subscription?: Subscription;\n\n constructor(\n @Inject(TemplateRef)\n private readonly template: TemplateRef<SelectedRowsDirectiveContext<Data>>,\n @Inject(ViewContainerRef)\n private readonly viewContainerRef: ViewContainerRef,\n @Inject(ChangeDetectorRef)\n private readonly cdr: ChangeDetectorRef,\n @Inject(SelectRowService)\n private readonly selectRowService: SelectRowService<Data>\n ) {}\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n public ngOnInit() {\n this._subscription = this.selectRowService.selectedRows$.pipe(\n distinctUntilChanged(),\n tap(selectedAllRows => {\n this.viewContainerRef.clear();\n if (selectedAllRows) {\n this.viewContainerRef.createEmbeddedView(this.template, { $implicit: this.selectRowService.selectedRows });\n }\n this.cdr.detectChanges();\n })\n ).subscribe();\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CheckboxCellComponentModule } from './checkbox-cell/checkbox-cell.component.module';\nimport { CheckboxHeaderCellComponentModule } from './checkbox-header-cell/checkbox-header-cell.component.module';\nimport { SelectedRowsDirective } from './selected-rows.directive';\n\n\n@NgModule({\n exports: [\n CheckboxCellComponentModule,\n CheckboxHeaderCellComponentModule,\n SelectedRowsDirective\n ],\n declarations: [ SelectedRowsDirective ]\n})\nexport class SelectRowModule {}\n","import {\n trigger,\n transition,\n style,\n sequence,\n animate\n} from '@angular/animations';\n\nconst offset = '50';\n\nexport const RowAnimation = trigger('rowsAnimation', [\n transition('void => *', [\n style({\n height: '*',\n opacity: '0',\n transform: 'translateY(' + (-offset).toString() + 'px)',\n 'box-shadow': 'none'\n }),\n sequence([\n animate('.2s ease', style({\n height: '*',\n opacity: '.2',\n transform: 'translateX(0)',\n 'box-shadow': 'none'\n })),\n animate('.35s ease', style({ height: '*', opacity: 1, transform: 'translateX(0)' }))\n ])\n ]),\n transition('* => void', [\n style({ height: '0', opacity: '0', 'box-shadow': 'none' })\n ])\n]);\n","import { FilterLike } from '@rxap/data-source/table';\nimport {\n Injectable,\n OnDestroy\n} from '@angular/core';\nimport {\n ReplaySubject,\n Subscription\n} from 'rxjs';\n\n@Injectable()\nexport class TableFilterService implements FilterLike, OnDestroy {\n\n public readonly change = new ReplaySubject<Record<string, any>>(1);\n\n public current: Record<string, any> = {};\n\n private _subscription: Subscription;\n\n constructor() {\n this._subscription = this.change.subscribe(current => this.current = current);\n }\n\n public set(key: string, value: any): void {\n const current = this.current;\n current[ key ] = value;\n this.change.next(current);\n }\n\n public remove(key: string): void {\n const current = this.current;\n if (current.hasOwnProperty(key)) {\n delete current[ key ];\n }\n this.change.next(current);\n }\n\n public ngOnDestroy() {\n this._subscription.unsubscribe();\n }\n\n}\n","import {\n ChangeDetectorRef,\n Directive,\n Inject,\n InjectionToken,\n Input,\n NgModule,\n OnDestroy,\n OnInit,\n Optional\n} from '@angular/core';\nimport type { MatPaginator } from '@angular/material/paginator';\nimport type { Observable } from 'rxjs';\nimport { Subscription } from 'rxjs';\nimport { MatSort } from '@angular/material/sort';\nimport type {\n AbstractTableDataSource,\n FilterLike\n} from '@rxap/data-source/table';\nimport {\n DynamicTableDataSource,\n TableEvent,\n SortLike\n} from '@rxap/data-source/table';\nimport { BaseRemoteMethod } from '@rxap/remote-method';\nimport { PaginatorLike } from '@rxap/data-source/pagination';\nimport { CdkTable } from '@angular/cdk/table';\nimport { TableFilterService } from './table-filter/table-filter.service';\nimport {\n debounceTime,\n delay,\n filter,\n tap\n} from 'rxjs/operators';\nimport { Required } from '@rxap/utilities';\nimport {\n Method,\n ToggleSubject\n} from '@rxap/utilities/rxjs';\nimport { pipeDataSource } from '@rxap/data-source';\n\n// TODO : add migration schematic\nexport const RXAP_TABLE_METHOD = new InjectionToken(\n 'rxap/material/table-system/table-method'\n);\n/**\n * @deprecated use TABLE_METHOD instead\n */\nexport const TABLE_REMOTE_METHOD = RXAP_TABLE_METHOD;\nexport const TABLE_REMOTE_METHOD_ADAPTER_FACTORY = new InjectionToken(\n 'table-remote-method-adapter-factory'\n);\nexport const RXAP_TABLE_FILTER = new InjectionToken('rxap/material-table-system/table-filter');\nexport const TABLE_DATA_SOURCE = new InjectionToken('table-data-source');\n\nexport type TableRemoteMethodAdapterFactory<\n Data extends Record<string, any> = Record<string, any>\n> = (\n method: Method,\n paginator?: PaginatorLike,\n sort?: SortLike | null,\n filter?: FilterLike | null,\n parameters?: Observable<Record<string, any>>\n) => BaseRemoteMethod<Data[], TableEvent>;\n\n@Directive({\n selector:\n 'table[mat-table][rxapTableDataSource],mat-table[rxapTableDataSource]',\n exportAs: 'rxapTableDataSource'\n})\nexport class TableDataSourceDirective<Data extends Record<string, any> = any>\n implements OnInit, OnDestroy {\n /**\n * @deprecated use dataSource instead\n */\n @Input('rxapTableDataSource')\n public set setDataSource(dataSource: AbstractTableDataSource<Data> | '') {\n if (typeof dataSource !== 'string') {\n this.dataSource = dataSource;\n }\n }\n\n @Input()\n public paginator?: MatPaginator;\n\n public readonly loading$ = new ToggleSubject(true);\n\n @Input()\n @Required\n public id!: string;\n @Input()\n public parameters?: Observable<Record<string, any>>;\n @Input()\n public dataSource?: AbstractTableDataSource<Data>;\n\n public method?: Method<Data[], TableEvent>;\n\n /**\n * @deprecated use method instead\n */\n public get remoteMethod(): Method<Data[], TableEvent> | undefined {\n return this.method;\n }\n\n /**\n * @deprecated use sourceMethod instead\n */\n public get sourceRemoteMethod(): Method<\n Data[] | any,\n TableEvent | any\n > | null {\n return this.sourceMethod;\n }\n\n protected _subscription = new Subscription();\n\n private readonly adapterFactory: TableRemoteMethodAdapterFactory<Data> | null =\n null;\n\n constructor(\n @Inject(CdkTable)\n private readonly matTable: CdkTable<Data>,\n protected readonly cdr: ChangeDetectorRef,\n @Optional()\n @Inject(RXAP_TABLE_METHOD)\n private readonly sourceMethod: Method<Data[] | any,\n TableEvent | any> | null,\n @Optional()\n @Inject(TABLE_DATA_SOURCE)\n private readonly sourceDataSource: AbstractTableDataSource<Data> | null,\n @Optional()\n @Inject(TABLE_REMOTE_METHOD_ADAPTER_FACTORY)\n adapterFactory: any,\n @Optional()\n @Inject(MatSort)\n private readonly matSort: MatSort | null,\n @Optional()\n @Inject(TableFilterService)\n private readonly tableFilter: TableFilterService | null,\n @Optional()\n @Inject(RXAP_TABLE_FILTER)\n private readonly _tableFilter: FilterLike | null\n ) {\n this.matTable.trackBy = this.trackBy;\n this.adapterFactory = adapterFactory;\n }\n\n private trackBy(index: number, item: Data): string | number {\n return item.uuid ?? index;\n }\n\n public ngOnInit() {\n const tableFilter = this._tableFilter ?? this.tableFilter ?? undefined;\n if (this.sourceMethod) {\n if (this.adapterFactory) {\n this.method = this.adapterFactory(\n this.sourceMethod,\n this.paginator,\n this.matSort,\n tableFilter,\n this.parameters\n );\n } else {\n this.method = this.sourceMethod;\n }\n this.dataSource = new DynamicTableDataSource<Data>(\n this.method,\n this.paginator,\n this.matSort,\n tableFilter,\n this.parameters,\n this.method.metadata ?? { id: this.id }\n );\n } else if (this.sourceDataSource) {\n this.dataSource = this.sourceDataSource;\n } else if (!this.dataSource) {\n throw new Error(\n 'The TABLE_DATA_SOURCE and TABLE_METHOD token are not defined!'\n );\n }\n this.dataSource.paginator = this.paginator;\n this.dataSource.sort = this.matSort ?? undefined;\n this.dataSource.filter = tableFilter;\n this.dataSource.parameters = this.parameters;\n this._subscription.add(\n this.dataSource.loading$.pipe(\n tap(loading => this.loading$.next(!!loading))\n ).subscribe()\n );\n this.matTable.dataSource = pipeDataSource(this.dataSource, tap(rowList => rowList.forEach((element: any) => {\n element.__metadata__ = { loading$: new ToggleSubject() };\n })));\n // TODO : remove hack to trigger change detection after data source refresh (machine-definition -> physical unit)\n this._subscription.add(\n this.loading$\n .pipe(\n filter((loading) => !loading),\n debounceTime(2000),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500)\n )\n .subscribe()\n );\n }\n\n public ngOnDestroy() {\n this._subscription.unsubscribe();\n }\n\n public refresh() {\n this.dataSource?.refresh();\n }\n}\n\n@NgModule({\n exports: [TableDataSourceDirective],\n declarations: [TableDataSourceDirective],\n})\nexport class TableDataSourceModule {}\n","import { InjectionToken } from '@angular/core';\n\nexport const RXAP_TABLE_FILTER_FORM_DEFINITION = new InjectionToken('rxap/form-table-system/filter-form-definition');\n","import { FormDirective, FormDefinition } from '@rxap/forms';\nimport {\n ChangeDetectorRef,\n Directive,\n forwardRef,\n Inject,\n OnDestroy,\n OnInit,\n Optional,\n} from '@angular/core';\nimport { TableFilterService } from './table-filter.service';\nimport { Subscription } from 'rxjs';\nimport { debounceTime, distinctUntilChanged, map } from 'rxjs/operators';\nimport { RXAP_TABLE_FILTER_FORM_DEFINITION } from './tokens';\nimport { ControlContainer } from '@angular/forms';\nimport { equals } from '@rxap/utilities';\n\n@Directive({\n // tslint:disable-next-line:directive-selector\n selector: 'table[rxap-filter-header-row]',\n providers: [\n {\n provide: ControlContainer,\n // ignore coverage\n useExisting: forwardRef(() => FilterHeaderRowDirective),\n },\n ],\n})\nexport class FilterHeaderRowDirective\n extends FormDirective\n implements OnInit, OnDestroy\n{\n private _subscription?: Subscription;\n\n constructor(\n private readonly tableFilter: TableFilterService,\n cdr: ChangeDetectorRef,\n @Optional()\n @Inject(RXAP_TABLE_FILTER_FORM_DEFINITION)\n formDefinition: FormDefinition | null\n ) {\n super(cdr, formDefinition);\n }\n\n public ngOnInit() {\n super.ngOnInit();\n this._subscription = this.form.value$\n .pipe(\n debounceTime(1000),\n map((values) =>\n Object.entries(values)\n .filter(\n ([key, value]) =>\n value !== null && value !== undefined && value !== ''\n )\n .reduce((obj, [key, value]) => ({ ...obj, [key]: value }), {})\n ),\n distinctUntilChanged((a, b) => equals(a, b))\n )\n .subscribe(this.tableFilter.change);\n }\n\n public ngOnDestroy() {\n super.ngOnDestroy();\n this._subscription?.unsubscribe();\n }\n}\n","import {\n PipeTransform,\n Pipe\n} from '@angular/core';\n\n@Pipe({\n name: 'toFilterColumnNames'\n})\nexport class ToFilterColumnNamesPipe implements PipeTransform {\n\n public transform(columns: string[]): string[] {\n return columns.map(column => 'filter_' + column);\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { ToFilterColumnNamesPipe } from './to-filter-column-names.pipe';\nimport { FilterHeaderRowDirective } from './filter-header-row.directive';\n\n\n@NgModule({\n exports: [\n ToFilterColumnNamesPipe,\n FilterHeaderRowDirective\n ],\n declarations: [\n ToFilterColumnNamesPipe,\n FilterHeaderRowDirective\n ]\n})\nexport class TableFilterModule {\n}\n","import { Component, ElementRef, Input, Inject } from '@angular/core';\nimport { coerceBoolean, Required } from '@rxap/utilities';\n\n@Component({\n selector: 'rxap-table-column-option',\n templateUrl: './table-column-option.component.html',\n styleUrls: ['./table-column-option.component.css'],\n})\nexport class TableColumnOptionComponent {\n @Input()\n @Required\n public name!: string;\n\n @Input()\n public active: boolean = true;\n\n /**\n * The displayed value of the option. It is necessary to show the selected option in the\n * select's trigger.\n */\n get display(): string {\n return (this._element.nativeElement.textContent || '').trim();\n }\n\n @Input()\n public set inactive(value: boolean | '') {\n this.active = !coerceBoolean(value);\n }\n\n @Input()\n public set hidden(value: boolean | '') {\n this._hidden = coerceBoolean(value);\n }\n\n public get hidden(): boolean | '' {\n return this._hidden;\n }\n\n private _hidden = false;\n\n @Input()\n public set show(value: boolean) {\n this._hidden = !value;\n }\n\n constructor(\n @Inject(ElementRef)\n private _element: ElementRef<HTMLElement>\n ) {}\n\n public toggle(): void {\n this.active = !this.active;\n }\n\n public activate() {\n this.active = true;\n }\n\n public deactivate() {\n this.active = false;\n }\n}\n","<ng-content></ng-content>\n","import type { QueryList } from '@angular/core';\nimport {\n Component,\n ChangeDetectionStrategy,\n ContentChildren,\n AfterContentInit,\n Input,\n HostBinding,\n} from '@angular/core';\nimport { TableColumnOptionComponent } from './table-column-option/table-column-option.component';\nimport { coerceBoolean } from '@rxap/utilities';\n\n@Component({\n selector: 'rxap-table-column-menu',\n templateUrl: './table-column-menu.component.html',\n styleUrls: ['./table-column-menu.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'mfd-table-column-menu' },\n exportAs: 'rxapTableColumns',\n})\nexport class TableColumnMenuComponent implements AfterContentInit {\n @ContentChildren(TableColumnOptionComponent)\n public columns?: QueryList<TableColumnOptionComponent>;\n\n public displayColumns: string[] = [];\n\n @Input()\n public set matCard(value: boolean | '') {\n this._matCardMode = coerceBoolean(value);\n }\n\n @HostBinding('class.mat-card-mode')\n private _matCardMode: boolean = false;\n\n public ngAfterContentInit() {\n this.updateDisplayColumns();\n }\n\n public updateDisplayColumns() {\n if (!this.columns) {\n throw new Error(\n 'Could not query content children of TableColumnOptionComponent'\n );\n }\n this.displayColumns = this.columns\n .filter((option) => option.active)\n .map((option) => option.name);\n }\n\n public activate(columnName: string) {\n this.columns\n ?.filter((option) => option.name === columnName)\n .forEach((column) => column.activate());\n this.updateDisplayColumns();\n }\n\n public deactivate(columnName: string) {\n this.columns\n ?.filter((option) => option.name === columnName)\n .forEach((column) => column.deactivate());\n this.updateDisplayColumns();\n }\n}\n","<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","import { NgModule } from '@angular/core';\nimport { TableColumnMenuComponent } from './table-column-menu.component';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { CommonModule } from '@angular/common';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { TableColumnOptionComponent } from './table-column-option/table-column-option.component';\nimport { StopPropagationDirectiveModule } from '@rxap/directives';\nimport { FlexLayoutModule } from '@angular/flex-layout';\n\n\n@NgModule({\n declarations: [ TableColumnMenuComponent, TableColumnOptionComponent ],\n imports: [\n MatButtonModule,\n MatIconModule,\n MatMenuModule,\n CommonModule,\n MatCheckboxModule,\n StopPropagationDirectiveModule,\n FlexLayoutModule\n ],\n exports: [ TableColumnMenuComponent, TableColumnOptionComponent, MatMenuModule ]\n})\nexport class TableColumnMenuComponentModule {}\n","import {\n Component,\n ChangeDetectionStrategy,\n} from '@angular/core';\nimport { MatSlideToggleChange } from '@angular/material/slide-toggle';\nimport { TableFilterService } from '../../table-filter/table-filter.service';\nimport { TableColumnMenuComponent } from '../table-column-menu.component';\n\n@Component({\n selector: 'mfd-table-show-archived-slide',\n templateUrl: './table-show-archived-slide.component.html',\n styleUrls: ['./table-show-archived-slide.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'mfd-table-show-archived-slide'},\n})\nexport class TableShowArchivedSlideComponent {\n\n constructor(\n private readonly tableFilter: TableFilterService,\n private readonly tableColumnMenu: TableColumnMenuComponent,\n ) {}\n\n public onChange($event: MatSlideToggleChange) {\n this.tableFilter.set('__archived', $event.checked);\n if ($event.checked) {\n this.tableColumnMenu.activate('removedAt');\n } else {\n this.tableColumnMenu.deactivate('removedAt');\n }\n }\n\n}\n","<div rxapStopPropagation>\n <mat-slide-toggle (change)=\"onChange($event)\" i18n=\"@@rxap.material.table-system.table-column-menu.table-show-archived-slide\">\n Show archived documents\n </mat-slide-toggle>\n</div>\n","import { NgModule } from '@angular/core';\nimport { TableShowArchivedSlideComponent } from './table-show-archived-slide.component';\nimport { StopPropagationDirectiveModule } from '@rxap/directives';\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\n\n\n@NgModule({\n declarations: [TableShowArchivedSlideComponent],\n imports: [\n StopPropagationDirectiveModule,\n MatSlideToggleModule,\n ],\n exports: [TableShowArchivedSlideComponent],\n})\nexport class TableShowArchivedSlideComponentModule {\n}\n","import { InjectionToken } from '@angular/core';\nimport { Method } from '@rxap/utilities/rxjs';\n\nexport const TABLE_CREATE_REMOTE_METHOD = new InjectionToken<Method>('table-create-remote-method');\n","import {\n Directive,\n ElementRef,\n HostListener,\n Inject,\n Input,\n NgModule,\n OnInit,\n Renderer2\n} from '@angular/core';\nimport { Required } from '@rxap/utilities';\nimport {\n isObservable,\n Observable\n} from 'rxjs';\nimport { TableDataSourceDirective } from '../table-data-source.directive';\nimport { TABLE_CREATE_REMOTE_METHOD } from './tokens';\nimport { Method } from '@rxap/utilities/rxjs';\n\n@Directive({\n selector: 'button[rxapTableCreate]',\n})\nexport class TableCreateButtonDirective<Data extends Record<string, any>>\n implements OnInit\n{\n @Input('rxapTableCreate')\n @Required\n public dataSource!: TableDataSourceDirective<Data>;\n\n constructor(\n @Inject(TABLE_CREATE_REMOTE_METHOD)\n private readonly remoteMethod: Method<any, Data | Observable<Data>>,\n @Inject(ElementRef)\n private readonly elementRef: ElementRef,\n @Inject(Renderer2)\n private readonly renderer: Renderer2\n ) {}\n\n public ngOnInit() {\n this.renderer.setStyle(\n this.elementRef.nativeElement,\n 'margin-bottom',\n '6px'\n );\n }\n\n @HostListener('click')\n public async onClick() {\n const result = await this.remoteMethod.call();\n if (isObservable(result)) {\n await result.toPromise();\n }\n this.dataSource.refresh();\n }\n}\n\n@NgModule({\n declarations: [TableCreateButtonDirective],\n exports: [TableCreateButtonDirective],\n})\nexport class TableCreateButtonDirectiveModule {}\n","import { InjectionToken } from '@angular/core';\nimport { OpenApiRemoteMethod } from '@rxap/open-api/remote-method';\nimport { BaseRemoteMethod } from '@rxap/remote-method';\n\nexport const ROW_ARCHIVE_METHOD = new InjectionToken<OpenApiRemoteMethod<any, { uuid: string }>>('archive-remote-method');\nexport const ROW_RESTORE_METHOD = new InjectionToken<OpenApiRemoteMethod<any, { uuid: string }>>('unarchive-remote-method');\nexport const ROW_DELETE_METHOD = new InjectionToken<OpenApiRemoteMethod<any, { uuid: string }>>('delete-remote-method');\nexport const ROW_EDIT_METHOD = new InjectionToken<BaseRemoteMethod<any, Record<string, any>>>('edit-remote-method');\nexport const ROW_VIEW_METHOD = new InjectionToken<BaseRemoteMethod<any, Record<string, any>>>('view-remote-method');\nexport const ROW_LINK_METHOD = new InjectionToken<BaseRemoteMethod<any, Record<string, any>>>('link-remote-method');\nexport const ROW_EDIT_LOADER_METHOD = new InjectionToken<BaseRemoteMethod<Record<string, any>, Record<string, any>>>('edit-loader-method');\n","import {\n ChangeDetectionStrategy,\n Component,\n Inject,\n Input,\n Optional\n} from '@angular/core';\nimport { Required } from '@rxap/utilities';\nimport {\n ROW_ARCHIVE_METHOD,\n ROW_DELETE_METHOD,\n ROW_EDIT_LOADER_METHOD,\n ROW_EDIT_METHOD,\n ROW_LINK_METHOD,\n ROW_RESTORE_METHOD,\n ROW_VIEW_METHOD\n} from '../tokens';\nimport { OpenApiRemoteMethod } from '@rxap/open-api/remote-method';\nimport { TableDataSourceDirective } from '../../table-data-source.directive';\nimport {\n isObservable,\n Observable\n} from 'rxjs';\nimport { Method } from '@rxap/utilities/rxjs';\n\n@Component({\n selector: 'td[mfd-row-controls-cell]',\n templateUrl: './row-controls-cell.component.html',\n styleUrls: [ './row-controls-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'mfd-row-controls-cell' }\n})\nexport class RowControlsCellComponent<Data extends Record<string, any> & { uuid: string }> {\n\n @Input()\n @Required\n public element!: Data;\n\n constructor(\n private readonly tableDataSource: TableDataSourceDirective<Data>,\n @Optional()\n @Inject(ROW_DELETE_METHOD)\n public readonly deleteRemoteMethod: OpenApiRemoteMethod<any, { uuid: string }> | null = null,\n @Optional()\n @Inject(ROW_ARCHIVE_METHOD)\n public readonly archiveRemoteMethod: OpenApiRemoteMethod<any, { uuid: string }> | null = null,\n @Optional()\n @Inject(ROW_RESTORE_METHOD)\n public readonly unarchiveRemoteMethod: OpenApiRemoteMethod<any, { uuid: string }> | null = null,\n @Optional()\n @Inject(ROW_EDIT_METHOD)\n public readonly editRemoteMethod: Method<any, Data | Observable<Data>> | null = null,\n @Optional()\n @Inject(ROW_VIEW_METHOD)\n public readonly rowViewMethod: Method<any, { uuid: string }> | null = null,\n @Optional()\n @Inject(ROW_LINK_METHOD)\n public readonly rowLinkMethod: Method<any, { uuid: string }> | null = null,\n @Optional()\n @Inject(ROW_EDIT_LOADER_METHOD)\n public readonly editLoaderMethod: Method<any, Data> | null = null\n ) {}\n\n public async archive() {\n if (this.archiveRemoteMethod) {\n await this.archiveRemoteMethod.call({ parameters: { uuid: this.element.uuid } });\n this.tableDataSource.refresh();\n }\n }\n\n public async unarchive() {\n if (this.unarchiveRemoteMethod) {\n await this.unarchiveRemoteMethod.call({ parameters: { uuid: this.element.uuid } });\n this.tableDataSource.refresh();\n }\n }\n\n public async remove() {\n if (this.deleteRemoteMethod) {\n await this.deleteRemoteMethod.call({ parameters: { uuid: this.element.uuid } });\n this.tableDataSource.refresh();\n }\n }\n\n public async view() {\n if (this.rowViewMethod) {\n await this.rowViewMethod.call(this.element);\n }\n }\n\n public async link() {\n if (this.rowLinkMethod) {\n await this.rowLinkMethod.call(this.element);\n }\n }\n\n public async edit() {\n if (this.editRemoteMethod) {\n let initial = this.element;\n if (this.editLoaderMethod) {\n initial = await this.editLoaderMethod.call(initial);\n }\n const result = await this.editRemoteMethod.call(initial, { context: this.element });\n if (isObservable(result)) {\n await result.toPromise();\n }\n this.tableDataSource.refresh();\n }\n }\n}\n","<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öschen\"\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","import { NgModule } from '@angular/core';\nimport { RowControlsCellComponent } from './row-controls-cell.component';\nimport { CommonModule } from '@angular/common';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { ConfirmComponentModule } from '@rxap/components';\nimport { MatTooltipModule } from '@angular/material/tooltip';\n\n\n@NgModule({\n declarations: [ RowControlsCellComponent ],\n imports: [\n CommonModule,\n FlexLayoutModule,\n MatButtonModule,\n MatIconModule,\n ConfirmComponentModule,\n MatTooltipModule\n ],\n exports: [ RowControlsCellComponent ]\n})\nexport class RowControlsCellComponentModule {\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Inject,\n Optional,\n} from '@angular/core';\nimport { TableFilterService } from '../../table-filter/table-filter.service';\nimport type { Observable } from 'rxjs';\nimport { of } from 'rxjs';\nimport { distinctUntilChanged, map, startWith } from 'rxjs/operators';\nimport {\n ROW_ARCHIVE_METHOD,\n ROW_DELETE_METHOD,\n ROW_RESTORE_METHOD,\n} from '../tokens';\nimport { TableDataSourceDirective } from '../../table-data-source.directive';\nimport { SelectRowService } from '../../select-row/select-row.service';\nimport { OpenApiRemoteMethod } from '@rxap/open-api/remote-method';\n\n@Component({\n selector: 'th[mfd-row-controls-header-cell]',\n templateUrl: './row-controls-header-cell.component.html',\n styleUrls: ['./row-controls-header-cell.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'mfd-row-controls-header-cell' },\n})\nexport class RowControlsHeaderCellComponent<Data extends Record<string, any>> {\n public showArchive$: Observable<boolean>;\n\n public showUnarchive$: Observable<boolean>;\n\n public showDelete$: Observable<boolean>;\n\n public disabled$: Observable<boolean>;\n\n constructor(\n private readonly tableDataSource: TableDataSourceDirective<Data>,\n @Optional()\n @Inject(TableFilterService)\n private readonly tableFilter: TableFilterService | null = null,\n @Optional()\n @Inject(SelectRowService)\n public readonly selectRow: SelectRowService<Data> | null = null,\n @Optional()\n @Inject(ROW_DELETE_METHOD)\n private readonly deleteRemoteMethod: OpenApiRemoteMethod<\n any,\n { uuid: string }\n > | null = null,\n @Optional()\n @Inject(ROW_ARCHIVE_METHOD)\n private readonly archiveRemoteMethod: OpenApiRemoteMethod<\n any,\n { uuid: string }\n > | null = null,\n @Optional()\n @Inject(ROW_RESTORE_METHOD)\n private readonly unarchiveRemoteMethod: OpenApiRemoteMethod<\n any,\n { uuid: string }\n > | null = null\n ) {\n this.disabled$ =\n this.selectRow?.selectedRows$.pipe(\n map((selectedRows) => selectedRows.length === 0),\n startWith(true)\n ) ?? of(true);\n this.showUnarchive$ = this.showDelete$ =\n this.tableFilter?.change.pipe(\n map(\n (filter) =>\n filter &&\n filter.hasOwnProperty('__archived') &&\n filter['__archived'] === true\n ),\n distinctUntilChanged()\n ) ?? of(false);\n this.showArchive$ =\n this.tableFilter?.change.pipe(\n map(\n (filter) =>\n !filter ||\n !filter.hasOwnProperty('__archived') ||\n filter['__archived'] === false\n ),\n distinctUntilChanged()\n ) ?? of(true);\n }\n\n public async archiveSelected(selectedRows: Data[] | undefined) {\n if (this.archiveRemoteMethod && selectedRows) {\n await Promise.all(\n selectedRows.map((selectedRow) =>\n this.archiveRemoteMethod?.call({\n parameters: { uuid: selectedRow.uuid },\n })\n )\n );\n this.tableDataSource.refresh();\n }\n }\n\n public async unarchiveSelected(selectedRows: Data[] | undefined) {\n if (this.unarchiveRemoteMethod && selectedRows) {\n await Promise.all(\n selectedRows.map((selectedRow) =>\n this.unarchiveRemoteMethod?.call({\n parameters: { uuid: selectedRow.uuid },\n })\n )\n );\n this.tableDataSource.refresh();\n }\n }\n\n public async deleteSelected(selectedRows: Data[] | undefined) {\n if (this.deleteRemoteMethod && selectedRows) {\n await Promise.all(\n selectedRows.map((selectedRow) =>\n this.deleteRemoteMethod?.call({\n parameters: { uuid: selectedRow.uuid },\n })\n )\n );\n this.tableDataSource.refresh();\n }\n }\n}\n","<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öschen\" 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","import { NgModule } from '@angular/core';\nimport { RowControlsHeaderCellComponent } from './row-controls-header-cell.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { ConfirmComponentModule } from '@rxap/components';\nimport { CommonModule } from '@angular/common';\nimport { MatTooltipModule } from '@angular/material/tooltip';\n\n@NgModule({\n declarations: [RowControlsHeaderCellComponent],\n imports: [\n FlexLayoutModule,\n MatButtonModule,\n MatIconModule,\n ConfirmComponentModule,\n CommonModule,\n MatTooltipModule,\n ],\n exports: [RowControlsHeaderCellComponent],\n})\nexport class RowControlsHeaderCellComponentModule {}\n","import { NgModule } from '@angular/core';\nimport { RowControlsCellComponentModule } from './row-controls-cell/row-controls-cell.component.module';\nimport { RowControlsHeaderCellComponentModule } from './row-controls-header-cell/row-controls-header-cell.component.module';\n\n\n@NgModule({\n exports: [\n RowControlsCellComponentModule,\n RowControlsHeaderCellComponentModule\n ]\n})\nexport class TableRowControlsModule {\n}\n","import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';\nimport type { WindowRef } from '@rxap/window-system';\nimport { RXAP_WINDOW_REF } from '@rxap/window-system';\nimport type { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { SelectRowService } from '../select-row/select-row.service';\n\n@Component({\n // TODO : rn selector\n selector: 'mfd-table-select-controls',\n templateUrl: './table-select-controls.component.html',\n styleUrls: ['./table-select-controls.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'mfd-table-select-controls' },\n})\nexport class TableSelectControlsComponent {\n public hasNotSelected$: Observable<boolean>;\n\n constructor(\n private readonly selectRows: SelectRowService<any>,\n @Inject(RXAP_WINDOW_REF)\n private readonly windowRef: WindowRef\n ) {\n this.hasNotSelected$ = this.selectRows.selectedRows$.pipe(\n map((selected) => selected.length === 0)\n );\n }\n\n public cancel() {\n this.windowRef.close();\n }\n\n public select() {\n this.windowRef.close(this.selectRows.selectedRows);\n }\n}\n","<div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <button fxFlex=\"nogrow\" mat-stroked-button (click)=\"cancel()\" type=\"button\"\n i18n=\"@@rxap-material.table-system.table-select-controls.cancel\">Cancel\n </button>\n <button fxFlex=\"nogrow\" mat-raised-button (click)=\"select()\" type=\"button\" [disabled]=\"hasNotSelected$ | async\"\n i18n=\"@@rxap-material.table-system.table-select-controls.select\">Select\n </button>\n</div>\n","import { NgModule } from '@angular/core';\nimport { TableSelectControlsComponent } from './table-select-controls.component';\nimport { MatButtonModule } from '@angular/material/button';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [ TableSelectControlsComponent ],\n imports: [\n MatButtonModule,\n FlexLayoutModule,\n CommonModule\n ],\n exports: [ TableSelectControlsComponent ]\n})\nexport class TableSelectControlsComponentModule {\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Input\n} from '@angular/core';\nimport {\n BackgroundPosition,\n BackgroundPositionOptions,\n BackgroundRepeat,\n BackgroundRepeatOptions,\n BackgroundSize,\n BackgroundSizeOptions\n} from '@rxap/directives';\n\n@Component({\n selector: 'td[rxap-image-cell]',\n templateUrl: './image-cell.component.html',\n styleUrls: [ './image-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-image-cell' }\n})\nexport class ImageCellComponent {\n\n @Input()\n public preset?: string;\n\n @Input()\n public size: BackgroundSize = BackgroundSizeOptions.COVER;\n\n @Input()\n public repeat: BackgroundRepeat = BackgroundRepeatOptions.NO_REPEAT;\n\n @Input()\n public position: BackgroundPosition = BackgroundPositionOptions.CENTER_CENTER;\n\n @Input('rxap-image-cell')\n public value: string | null = null;\n\n}\n","<div\n *ngIf=\"value\"\n [ngClass]=\"[preset]\"\n [repeat]=\"repeat\"\n [size]=\"size\"\n [position]=\"position\"\n [rxapBackgroundImage]=\"value\"\n class=\"image\">\n</div>\n<ng-content></ng-content>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { BackgroundImageDirectiveModule } from '@rxap/directives';\nimport { ImageCellComponent } from './image-cell.component';\n\n@NgModule({\n declarations: [ ImageCellComponent ],\n imports: [ BackgroundImageDirectiveModule, CommonModule ],\n exports: [ ImageCellComponent ]\n})\nexport class ImageCellComponentModule {}\n","import {\n Component,\n ChangeDetectionStrategy, Input,\n} from '@angular/core';\n\n@Component({\n selector: 'td[rxap-copy-to-clipboard-cell]',\n templateUrl: './copy-to-clipboard-cell.component.html',\n styleUrls: [ './copy-to-clipboard-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-copy-to-clipboard-cell' }\n})\nexport class CopyToClipboardCellComponent {\n\n @Input('rxap-copy-to-clipboard-cell')\n public value: any;\n\n}\n","<rxap-copy-to-clipboard *ngIf=\"value !== null && value !== undefined && value !== ''\" [value]=\"value\" class=\"copy-to-clipboard\"></rxap-copy-to-clipboard>\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { CopyToClipboardCellComponent } from './copy-to-clipboard-cell.component';\nimport { CopyToClipboardModule } from '@rxap/components';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [CopyToClipboardCellComponent],\n imports: [\n CopyToClipboardModule,\n CommonModule\n ],\n exports: [CopyToClipboardCellComponent]\n})\nexport class CopyToClipboardCellComponentModule { }\n","import {\n Component,\n ChangeDetectionStrategy,\n Input\n} from '@angular/core';\nimport { IconConfig } from '@rxap/utilities';\n\n@Component({\n selector: 'td[rxap-icon-cell]',\n templateUrl: './icon-cell.component.html',\n styleUrls: [ './icon-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-icon-cell' }\n})\nexport class IconCellComponent {\n\n @Input('rxap-icon-cell')\n public icon!: IconConfig | null;\n\n}\n","<mat-icon *ngIf=\"icon\" [rxapIcon]=\"icon\"></mat-icon>\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { IconCellComponent } from './icon-cell.component';\nimport { MatIconModule } from '@angular/material/icon';\nimport { CommonModule } from '@angular/common';\nimport { IconDirectiveModule } from '@rxap/material-directives/icon';\n\n\n\n@NgModule({\n declarations: [IconCellComponent],\n imports: [\n MatIconModule,\n CommonModule,\n IconDirectiveModule,\n ],\n exports: [IconCellComponent]\n})\nexport class IconCellComponentModule { }\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\n\n@Component({\n selector: 'td[rxap-date-cell]',\n templateUrl: './date-cell.component.html',\n styleUrls: ['./date-cell.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'rxap-date-cell'},\n})\nexport class DateCellComponent {\n\n @Input('rxap-date-cell')\n public date: Date | number | string | null = null;\n\n @Input()\n public format: string = 'dd.MM.yyyy HH:mm';\n\n}\n","<ng-template [ngIf]=\"date\">\n {{date | date:format}}\n</ng-template>\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { DateCellComponent } from './date-cell.component';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [DateCellComponent],\n imports: [\n CommonModule,\n ],\n exports: [DateCellComponent],\n})\nexport class DateCellComponentModule {\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Input\n} from '@angular/core';\n\n@Component({\n selector: 'td[rxap-link-cell]',\n templateUrl: './link-cell.component.html',\n styleUrls: [ './link-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-link-cell' }\n})\nexport class LinkCellComponent {\n\n @Input('rxap-link-cell')\n public value: any;\n\n public get href(): string {\n if (this.protocol) {\n return [ this.protocol, this.value ].join(':');\n }\n return this.value;\n }\n\n @Input()\n public protocol?: 'tel' | 'mailto';\n\n}\n","<a *ngIf=\"value\" [href]=\"href\" [matTooltip]=\"value\" class=\"link\" target=\"_blank\">\n <span fxLayout=\"row\" fxLayoutGap=\"8px\" fxLayoutAlign=\"start center\">\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 fxFlex=\"nogrow\" class=\"content\">{{value}}</span>\n </span>\n</a>\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { LinkCellComponent } from './link-cell.component';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatIconModule } from '@angular/material/icon';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [LinkCellComponent],\n imports: [\n MatTooltipModule,\n MatIconModule,\n FlexLayoutModule,\n CommonModule\n ],\n exports: [LinkCellComponent]\n})\nexport class LinkCellComponentModule { }\n","import type { QueryList } from '@angular/core';\nimport {\n Component,\n ChangeDetectionStrategy,\n Input,\n ContentChildren,\n AfterContentInit,\n isDevMode,\n OnDestroy,\n Renderer2\n} from '@angular/core';\nimport { MatOption } from '@angular/material/core';\nimport { Subscription } from 'rxjs';\nimport {\n tap,\n startWith\n} from 'rxjs/operators';\n\n@Component({\n selector: 'td[rxap-options-cell]',\n templateUrl: './options-cell.component.html',\n styleUrls: [ './options-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-options-cell' }\n})\nexport class OptionsCellComponent implements AfterContentInit, OnDestroy {\n @Input('rxap-options-cell')\n public value: any;\n\n @Input('default')\n public defaultViewValue!: string;\n\n @Input('empty')\n public emptyViewValue!: string;\n\n public viewValue!: string;\n\n private readonly _subscription = new Subscription();\n\n constructor(private readonly renderer: Renderer2) {\n this.defaultViewValue = ''; // $localize`:@@rxap-material.table-system.options-cell.unknown:unknown`;\n this.emptyViewValue = ''; // $localize`:@@rxap-material.table-system.options-cell.empty:empty`;\n }\n\n @ContentChildren(MatOption, { descendants: true })\n public options!: QueryList<MatOption>;\n\n public ngAfterContentInit() {\n // Hide the mat-option elements\n this._subscription.add(this.options.changes.pipe(\n startWith(null),\n tap(() => this.options.forEach(option => this.renderer.setStyle(option._getHostElement(), 'display', 'none')))\n ).subscribe());\n if (this.value === undefined || this.value === null) {\n this.viewValue = this.emptyViewValue;\n } else {\n if (this.options) {\n this._subscription.add(this.options.changes\n .pipe(\n startWith(null),\n tap(() => (this.viewValue = this.getViewValue()))\n )\n .subscribe());\n } else if (isDevMode()) {\n console.log('Could not load any option');\n }\n }\n }\n\n public getViewValue(): string {\n return (\n this.options.find((option) => option.value === this.value)?.viewValue ??\n this.defaultViewValue\n );\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n}\n","{{viewValue}}\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { OptionsCellComponent } from './options-cell.component';\n\n\n\n@NgModule({\n declarations: [OptionsCellComponent],\n imports: [\n ],\n exports: [OptionsCellComponent]\n})\nexport class OptionsCellComponentModule { }\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\n\n@Component({\n selector: 'td[rxap-boolean-cell]',\n templateUrl: './boolean-cell.component.html',\n styleUrls: [ './boolean-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-boolean-cell' },\n})\nexport class BooleanCellComponent {\n\n @Input('rxap-boolean-cell')\n public value: any | null = null;\n\n}\n","<ng-template [ngIf]=\"value\" [ngIfElse]=\"isFalse\">\n <mat-icon class=\"truthy\">check_circle</mat-icon>\n</ng-template>\n<ng-template #isFalse>\n <mat-icon class=\"falsy\">cancel</mat-icon>\n</ng-template>\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { BooleanCellComponent } from './boolean-cell.component';\nimport { CommonModule } from '@angular/common';\nimport { MatIconModule } from '@angular/material/icon';\n\n\n@NgModule({\n declarations: [BooleanCellComponent],\n imports: [\n CommonModule,\n MatIconModule,\n ],\n exports: [BooleanCellComponent],\n})\nexport class BooleanCellComponentModule {\n}\n","import { setMetadata } from '@rxap/utilities/reflect-metadata';\n\nexport const RXAP_TABLE_ACTION_METHOD_TYPE_METADATA = 'rxap-table-action-method-type-metadata';\n\nexport function TableActionMethod(type: string) {\n return function(target: any) {\n setMetadata(RXAP_TABLE_ACTION_METHOD_TYPE_METADATA, type, target);\n };\n}\n","import {\n Directive,\n TemplateRef,\n ViewContainerRef\n} from '@angular/core';\n\n@Directive({\n selector: '[rxapTableRowActionExecuting]'\n})\nexport class TableRowActionExecutingDirective {\n constructor(\n public readonly templateRef: TemplateRef<void>,\n private readonly vcr: ViewContainerRef\n ) {}\n\n public show(): void {\n this.vcr.createEmbeddedView(this.templateRef);\n }\n\n public hide(): void {\n this.vcr.clear();\n }\n}\n","export enum TableRowActionStatus {\n EXECUTING = 'executing',\n DONE = 'done',\n ERROR = 'error',\n SUCCESS = 'success'\n}\n","import {\n getMetadata,\n hasMetadata\n} from '@rxap/utilities/reflect-metadata';\nimport { Method } from '@rxap/utilities/rxjs';\nimport { RXAP_TABLE_ACTION_METHOD_TYPE_METADATA } from './decorators';\n\nexport type TableRowActionTypeSwitchMethod<Data extends Record<string, any>> = Method<any, { element: Data; type: string }>;\nexport type TableRowActionTypeMethod<Data extends Record<string, any>> = Method<any,\n Data>;\n\nexport type TableRowActionMethod<Data extends Record<string, any>> =\n | TableRowActionTypeSwitchMethod<Data>\n | TableRowActionTypeMethod<Data>;\n\nexport function IsTableRowActionTypeSwitchMethod<Data extends Record<string, any>>(\n method: TableRowActionMethod<Data>\n): method is TableRowActionTypeSwitchMethod<Data> {\n return !hasMetadata(\n RXAP_TABLE_ACTION_METHOD_TYPE_METADATA,\n method.constructor\n );\n}\n\nexport function IsTableRowActionTypeMethod<Data extends Record<string, any>>(\n type: string\n) {\n return (\n method: TableRowActionMethod<Data>\n ): method is TableRowActionTypeMethod<Data> => {\n return (\n getMetadata(\n RXAP_TABLE_ACTION_METHOD_TYPE_METADATA,\n method.constructor\n ) === type\n );\n };\n}\n","import { InjectionToken } from '@angular/core';\n\nexport const RXAP_TABLE_ROW_ACTION_METHOD = new InjectionToken(\n 'rxap-table-row-action-method'\n);\n","import {\n ChangeDetectorRef,\n ContentChild,\n Directive,\n HostListener,\n Inject,\n Input,\n isDevMode,\n Optional,\n ViewContainerRef\n} from '@angular/core';\nimport { MatButton } from '@angular/material/button';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport {\n coerceArray,\n coerceBoolean,\n Required\n} from '@rxap/utilities';\nimport { TableRowActionExecutingDirective } from './table-row-action-executing.directive';\nimport { TableRowActionStatus } from './table-row-action-status';\nimport {\n IsTableRowActionTypeMethod,\n IsTableRowActionTypeSwitchMethod,\n TableRowActionMethod,\n TableRowActionTypeMethod,\n TableRowActionTypeSwitchMethod\n} from './table-row-action.method';\nimport { RXAP_TABLE_ROW_ACTION_METHOD } from './tokens';\nimport { TableDataSourceDirective } from '../table-data-source.directive';\n\n@Directive({\n selector: 'button[rxapTableRowAction]'\n})\nexport class TableRowActionDirective<Data extends Record<string, any>> {\n private _hasConfirmDirective = false;\n\n @Input('rxapConfirm')\n public set hasConfirmDirective(value: any) {\n this._hasConfirmDirective = coerceBoolean(value);\n }\n\n @Input()\n @Required\n public element!: Data;\n @Input('rxapTableRowAction')\n @Required\n public type!: string;\n\n @Input()\n public errorMessage?: string;\n\n @Input()\n public successMessage?: string;\n\n /**\n * true - after the action is executed the table datasource is refreshed\n */\n @Input()\n public refresh?: boolean;\n\n @ContentChild(TableRowActionExecutingDirective)\n private readonly executingDirective?: TableRowActionExecutingDirective;\n private _currentStatus: TableRowActionStatus = TableRowActionStatus.DONE;\n\n private readonly actionMethodList: Array<TableRowActionMethod<Data>>;\n\n constructor(\n @Inject(RXAP_TABLE_ROW_ACTION_METHOD)\n actionMethodList:\n | Array<TableRowActionMethod<Data>>\n | TableRowActionMethod<Data>,\n @Inject(ChangeDetectorRef)\n protected readonly cdr: ChangeDetectorRef,\n @Inject(ViewContainerRef)\n private readonly vcr: ViewContainerRef,\n @Inject(TableDataSourceDirective)\n private readonly tableDataSourceDirective: TableDataSourceDirective,\n @Inject(MatSnackBar)\n private readonly snackBar: MatSnackBar,\n @Optional()\n @Inject(MatButton)\n private readonly matButton: MatButton | null\n ) {\n this.actionMethodList = coerceArray(actionMethodList);\n }\n\n @HostListener('confirmed')\n public onConfirmed() {\n return this.execute();\n }\n\n @HostListener('click', [ '$event' ])\n public onClick($event: Event) {\n $event.stopPropagation();\n if (!this._hasConfirmDirective) {\n return this.execute();\n } else {\n if (isDevMode()) {\n console.debug('skip remote method call. Wait for confirmation.');\n }\n }\n return Promise.resolve();\n }\n\n public async execute(): Promise<void> {\n this.setStatus(TableRowActionStatus.EXECUTING);\n try {\n await Promise.all(\n this.getElementList().map((element) => {\n return Promise.all([\n Promise.all(\n this.findUntypedActionMethod().map((am) =>\n am.call({ element, type: this.type })\n )\n ),\n Promise.all(\n this.findTypedActionMethod().map((am) => am.call(element))\n )\n ]);\n })\n );\n this.setStatus(TableRowActionStatus.SUCCESS);\n } catch (e) {\n console.error(`Failed to execute row action: ${e.message}`);\n this.setStatus(TableRowActionStatus.ERROR);\n }\n }\n\n protected getElementList(): Data[] {\n return [ this.element ];\n }\n\n /**\n * find all method instance in the actionMethodList member that\n * do not have a @TableActionMethod decorators\n * @private\n */\n private findUntypedActionMethod(): Array<TableRowActionTypeSwitchMethod<Data>> {\n return this.actionMethodList.filter(IsTableRowActionTypeSwitchMethod);\n }\n\n /**\n * find all method instance in the actionMethodList member that\n * do have a @TableActionMethod decorators with the current type\n * @private\n */\n private findTypedActionMethod(): Array<TableRowActionTypeMethod<Data>> {\n return this.actionMethodList.filter(IsTableRowActionTypeMethod(this.type));\n }\n\n protected setButtonDisabled() {\n if (this.matButton) {\n this.matButton.disabled = true;\n }\n }\n\n protected setButtonEnabled() {\n if (this.matButton) {\n this.matButton.disabled = false;\n }\n }\n\n private setStatus(status: TableRowActionStatus) {\n if (this._currentStatus === status) {\n return;\n }\n this._currentStatus = status;\n switch (status) {\n case TableRowActionStatus.EXECUTING:\n this.setButtonDisabled();\n this.executingDirective?.show();\n break;\n case TableRowActionStatus.SUCCESS:\n if (this.refresh) {\n this.tableDataSourceDirective.refresh();\n }\n if (this.successMessage) {\n this.snackBar.open(this.successMessage, 'ok', { duration: 2560 });\n }\n this.setStatus(TableRowActionStatus.DONE);\n break;\n case TableRowActionStatus.ERROR:\n this.setStatus(TableRowActionStatus.DONE);\n if (this.errorMessage) {\n this.snackBar.open(this.errorMessage, 'ok', { duration: 5120 });\n }\n break;\n case TableRowActionStatus.DONE:\n this.setButtonEnabled();\n this.executingDirective?.hide();\n break;\n }\n this.cdr.detectChanges();\n }\n}\n","import {\n ChangeDetectorRef,\n Directive,\n Inject,\n Input,\n OnDestroy,\n OnInit,\n Optional,\n ViewContainerRef\n} from '@angular/core';\nimport { MatButton } from '@angular/material/button';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport { Required } from '@rxap/utilities';\nimport { Subscription } from 'rxjs';\nimport {\n map,\n startWith,\n tap\n} from 'rxjs/operators';\nimport { TableRowActionDirective } from './table-row-action.directive';\nimport { TableRowActionMethod } from './table-row-action.method';\nimport { RXAP_TABLE_ROW_ACTION_METHOD } from './tokens';\nimport { TableDataSourceDirective } from '../table-data-source.directive';\nimport { SelectRowService } from '../select-row/select-row.service';\n\n@Directive({\n selector: 'button[rxapTableRowHeaderAction]'\n})\nexport class TableRowHeaderActionDirective<Data extends Record<string, any>>\n extends TableRowActionDirective<Data>\n implements OnInit, OnDestroy {\n private _subscription?: Subscription;\n\n constructor(\n @Inject(RXAP_TABLE_ROW_ACTION_METHOD)\n actionMethod: TableRowActionMethod<Data>,\n @Inject(ChangeDetectorRef)\n cdr: ChangeDetectorRef,\n @Inject(ViewContainerRef)\n vcr: ViewContainerRef,\n @Inject(TableDataSourceDirective)\n tableDataSourceDirective: TableDataSourceDirective,\n @Inject(MatSnackBar)\n snackBar: MatSnackBar,\n @Optional()\n @Inject(MatButton)\n matButton: MatButton | null,\n @Optional()\n @Inject(SelectRowService)\n private readonly selectRowService: SelectRowService<Data> | null\n ) {\n super(\n actionMethod,\n cdr,\n vcr,\n tableDataSourceDirective,\n snackBar,\n matButton\n );\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n public ngOnInit() {\n if (this.selectRowService) {\n this._subscription = this.selectRowService.selectedRows$\n .pipe(\n startWith(this.selectRowService.selectedRows),\n map((rows) => rows.length !== 0),\n tap((hasSelected) => {\n if (hasSelected) {\n this.setButtonEnabled();\n } else {\n this.setButtonDisabled();\n }\n this.cdr.detectChanges();\n })\n )\n .subscribe();\n } else {\n this.setButtonDisabled();\n }\n }\n\n protected getElementList(): Data[] {\n return this.selectRowService?.selectedRows ?? [];\n }\n\n @Input('rxapTableRowHeaderAction')\n @Required\n public type!: string;\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { ConfirmComponentModule } from '@rxap/components';\nimport { TableRowActionExecutingDirective } from './table-row-action-executing.directive';\nimport { TableRowActionDirective } from './table-row-action.directive';\nimport { TableRowHeaderActionDirective } from './table-row-header-action.directive';\n\n@NgModule({\n declarations: [\n TableRowActionDirective,\n TableRowActionExecutingDirective,\n TableRowHeaderActionDirective\n ],\n exports: [\n TableRowActionDirective,\n TableRowHeaderActionDirective,\n TableRowActionExecutingDirective,\n MatTooltipModule,\n MatButtonModule,\n ConfirmComponentModule,\n MatIconModule,\n MatProgressBarModule,\n CommonModule\n ]\n})\nexport class TableRowActionsModule {}\n","export * from './lib/expand-row/expand-row.module';\nexport * from './lib/expand-row/expand-row-container/expand-row-container.component';\nexport * from './lib/expand-row/expand-row-container/expand-row-content.directive';\nexport * from './lib/expand-row/expand-row-container/expand-row-container.component.module';\nexport * from './lib/expand-row/expand-controls-cell/expand-controls-cell.component';\nexport * from './lib/expand-row/expand-controls-cell/expand-controls-cell.component.module';\nexport * from './lib/expand-row/expand-row.service';\nexport * from './lib/expand-row/expand-row.directive';\n\nexport * from './lib/select-row/select-row.module';\nexport * from './lib/select-row/checkbox-cell/checkbox-cell.component';\nexport * from './lib/select-row/checkbox-cell/checkbox-cell.component.module';\nexport * from './lib/select-row/checkbox-header-cell/checkbox-header-cell.component';\nexport * from './lib/select-row/checkbox-header-cell/checkbox-header-cell.component.module';\nexport * from './lib/select-row/select-row.service';\nexport * from './lib/select-row/selected-rows.directive';\nexport * from './lib/select-row/tokens';\nexport * from './lib/row-animation';\nexport * from './lib/table-data-source.directive';\nexport * from './lib/table-row-metadata';\n\n// region table filter\n\nexport * from './lib/table-filter/filter-header-row.directive';\nexport * from './lib/table-filter/table-filter.module';\nexport * from './lib/table-filter/table-filter.service';\nexport * from './lib/table-filter/to-filter-column-names.pipe';\nexport * from './lib/table-filter/tokens';\n\n// endregion\n\n// region table column menu\n\nexport * from './lib/table-column-menu/table-column-menu.component';\nexport * from './lib/table-column-menu/table-column-menu.component.module';\nexport * from './lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component';\nexport * from './lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.module';\nexport * from './lib/table-column-menu/table-column-option/table-column-option.component';\n\n// endregion\n\n// region table create button\n\nexport * from './lib/table-create-button/table-create-button.directive';\nexport * from './lib/table-create-button/tokens';\n\n// endregion\n\n// region table row controls\n\nexport * from './lib/table-row-controls/table-row-controls.module';\nexport * from './lib/table-row-controls/row-controls-cell/row-controls-cell.component';\nexport * from './lib/table-row-controls/row-controls-cell/row-controls-cell.component.module';\nexport * from './lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component';\nexport * from './lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.module';\nexport * from './lib/table-row-controls/tokens';\n\n// endregion\n\n// region table select controls\n\nexport * from './lib/table-select-controls/table-select-controls.component';\nexport * from './lib/table-select-controls/table-select-controls.component.module';\n\n// endregion\n\n// region cells\n\n// region image\n\nexport * from './lib/cells/image-cell/image-cell.component';\nexport * from './lib/cells/image-cell/image-cell.component.module';\n\n// endregion\n\n// region copy-to-clipboard cell\n\nexport * from './lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component';\nexport * from './lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.module';\n\n// endregion\n\n// region icon cell\n\nexport * from './lib/cells/icon-cell/icon-cell.component';\nexport * from './lib/cells/icon-cell/icon-cell.component.module';\n\n// endregion\n\n// region date cell\n\nexport * from './lib/cells/date-cell/date-cell.component';\nexport * from './lib/cells/date-cell/date-cell.component.module';\n\n// endregion\n\n// region link cell\n\nexport * from './lib/cells/link-cell/link-cell.component';\nexport * from './lib/cells/link-cell/link-cell.component.module';\n\n// endregion\n\n// region options cell\n\nexport * from './lib/cells/options-cell/options-cell.component';\nexport * from './lib/cells/options-cell/options-cell.component.module';\n\n// endregion\n\n// region boolean cell\n\nexport * from './lib/cells/boolean-cell/boolean-cell.component';\nexport * from './lib/cells/boolean-cell/boolean-cell.component.module';\n\n// endregion\n\n// region table-row-actions\n\nexport * from './lib/table-row-actions/decorators';\nexport * from './lib/table-row-actions/table-row-action.directive';\nexport * from './lib/table-row-actions/table-row-action.method';\nexport * from './lib/table-row-actions/table-row-action-executing.directive';\nexport * from './lib/table-row-actions/table-row-action-status';\nexport * from './lib/table-row-actions/table-row-actions.module';\nexport * from './lib/table-row-actions/table-row-header-action.directive';\nexport * from './lib/table-row-actions/tokens';\n\n// endregion\n\n// endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["TemplateRef","Directive","Inject","BehaviorSubject","map","Injectable","filter","tap","TemplatePortal","ViewContainerRef","trigger","state","style","transition","animate","Required","Component","ChangeDetectionStrategy","Input","ContentChild","PortalModule","CommonModule","NgModule","MatIconModule","MatButtonModule","HostListener","InjectionToken","SelectionModel","Optional","MatCheckboxModule","EMPTY","CdkTable","distinctUntilChanged","ChangeDetectorRef","sequence","ReplaySubject","ToggleSubject","Subscription","DynamicTableDataSource","pipeDataSource","debounceTime","delay","MatSort","equals","FormDirective","ControlContainer","forwardRef","Pipe","coerceBoolean","ElementRef","ContentChildren","HostBinding","MatMenuModule","StopPropagationDirectiveModule","FlexLayoutModule","MatSlideToggleModule","isObservable","Renderer2","ConfirmComponentModule","MatTooltipModule","startWith","of","RXAP_WINDOW_REF","BackgroundSizeOptions","BackgroundRepeatOptions","BackgroundPositionOptions","BackgroundImageDirectiveModule","CopyToClipboardModule","IconDirectiveModule","isDevMode","MatOption","setMetadata","TableRowActionStatus","hasMetadata","getMetadata","coerceArray","MatSnackBar","MatButton","MatProgressBarModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA;;;;;;;;;;;;;;IAcA;IAEA,IAAI,aAAa,GAAG,UAAS,CAAC,EAAE,CAAC;QAC7B,aAAa,GAAG,MAAM,CAAC,cAAc;aAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;YAC5E,UAAU,CAAC,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC;gBAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;oBAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACtG,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;aAEc,SAAS,CAAC,CAAC,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SAAM;mCAACO,mBAAgB;;kCAEvBP,SAAM;mCAAC,wBAAwB;;kCAE/BA,SAAM;mCAAC0E,gBAAW;;kCAElBhD,WAAQ;;kCACR1B,SAAM;mCAAC2E,cAAS;;kCAEhBjD,WAAQ;;kCACR1B,SAAM;mCAAC,gBAAgB;;6BA4CnB,IAAI;0BAFVgB,QAAK;2BAAC,0BAA0B;;;;QC7DnC;;;;4IAAa,qBAAqB;6IAArB,qBAAqB,iBAhB9B,uBAAuB;YACvB,gCAAgC;YAChC,6BAA6B,aAG7B,uBAAuB;YACvB,6BAA6B;YAC7B,gCAAgC;YAChCyC,qBAAgB;YAChBnC,oBAAe;YACfkC,2BAAsB;YACtBnC,kBAAa;YACbuD,gCAAoB;YACpBzD,eAAY;6IAGH,qBAAqB,YAR9BsC,qBAAgB;YAChBnC,oBAAe;YACfkC,2BAAsB;YACtBnC,kBAAa;YACbuD,gCAAoB;YACpBzD,eAAY;qHAGH,qBAAqB;sBAlBjCC,WAAQ;uBAAC;wBACR,YAAY,EAAE;4BACZ,uBAAuB;4BACvB,gCAAgC;4BAChC,6BAA6B;yBAC9B;wBACD,OAAO,EAAO;4BACZ,uBAAuB;4BACvB,6BAA6B;4BAC7B,gCAAgC;4BAChCqC,qBAAgB;4BAChBnC,oBAAe;4BACfkC,2BAAsB;4BACtBnC,kBAAa;4BACbuD,gCAAoB;4BACpBzD,eAAY;yBACb;qBACF;;;ICoGD;IAEA;;IClIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/esm2015/index.js CHANGED
@@ -16,6 +16,7 @@ export * from './lib/select-row/selected-rows.directive';
16
16
  export * from './lib/select-row/tokens';
17
17
  export * from './lib/row-animation';
18
18
  export * from './lib/table-data-source.directive';
19
+ export * from './lib/table-row-metadata';
19
20
  // region table filter
20
21
  export * from './lib/table-filter/filter-header-row.directive';
21
22
  export * from './lib/table-filter/table-filter.module';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/material/table-system/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,sEAAsE,CAAC;AACrF,cAAc,oEAAoE,CAAC;AACnF,cAAc,6EAA6E,CAAC;AAC5F,cAAc,sEAAsE,CAAC;AACrF,cAAc,6EAA6E,CAAC;AAC5F,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AAEtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wDAAwD,CAAC;AACvE,cAAc,+DAA+D,CAAC;AAC9E,cAAc,sEAAsE,CAAC;AACrF,cAAc,6EAA6E,CAAC;AAC5F,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AACzD,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mCAAmC,CAAC;AAElD,sBAAsB;AAEtB,cAAc,gDAAgD,CAAC;AAC/D,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,2BAA2B,CAAC;AAE1C,YAAY;AAEZ,2BAA2B;AAE3B,cAAc,qDAAqD,CAAC;AACpE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,uFAAuF,CAAC;AACtG,cAAc,8FAA8F,CAAC;AAC7G,cAAc,2EAA2E,CAAC;AAE1F,YAAY;AAEZ,6BAA6B;AAE7B,cAAc,yDAAyD,CAAC;AACxE,cAAc,kCAAkC,CAAC;AAEjD,YAAY;AAEZ,4BAA4B;AAE5B,cAAc,oDAAoD,CAAC;AACnE,cAAc,wEAAwE,CAAC;AACvF,cAAc,+EAA+E,CAAC;AAC9F,cAAc,sFAAsF,CAAC;AACrG,cAAc,6FAA6F,CAAC;AAC5G,cAAc,iCAAiC,CAAC;AAEhD,YAAY;AAEZ,+BAA+B;AAE/B,cAAc,6DAA6D,CAAC;AAC5E,cAAc,oEAAoE,CAAC;AAEnF,YAAY;AAEZ,eAAe;AAEf,eAAe;AAEf,cAAc,6CAA6C,CAAC;AAC5D,cAAc,oDAAoD,CAAC;AAEnE,YAAY;AAEZ,gCAAgC;AAEhC,cAAc,qEAAqE,CAAC;AACpF,cAAc,4EAA4E,CAAC;AAE3F,YAAY;AAEZ,mBAAmB;AAEnB,cAAc,2CAA2C,CAAC;AAC1D,cAAc,kDAAkD,CAAC;AAEjE,YAAY;AAEZ,mBAAmB;AAEnB,cAAc,2CAA2C,CAAC;AAC1D,cAAc,kDAAkD,CAAC;AAEjE,YAAY;AAEZ,mBAAmB;AAEnB,cAAc,2CAA2C,CAAC;AAC1D,cAAc,kDAAkD,CAAC;AAEjE,YAAY;AAEZ,sBAAsB;AAEtB,cAAc,iDAAiD,CAAC;AAChE,cAAc,wDAAwD,CAAC;AAEvE,YAAY;AAEZ,sBAAsB;AAEtB,cAAc,iDAAiD,CAAC;AAChE,cAAc,wDAAwD,CAAC;AAEvE,YAAY;AAEZ,2BAA2B;AAE3B,cAAc,oCAAoC,CAAC;AACnD,cAAc,oDAAoD,CAAC;AACnE,cAAc,iDAAiD,CAAC;AAChE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,iDAAiD,CAAC;AAChE,cAAc,kDAAkD,CAAC;AACjE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,gCAAgC,CAAC;AAE/C,YAAY;AAEZ,YAAY","sourcesContent":["export * from './lib/expand-row/expand-row.module';\nexport * from './lib/expand-row/expand-row-container/expand-row-container.component';\nexport * from './lib/expand-row/expand-row-container/expand-row-content.directive';\nexport * from './lib/expand-row/expand-row-container/expand-row-container.component.module';\nexport * from './lib/expand-row/expand-controls-cell/expand-controls-cell.component';\nexport * from './lib/expand-row/expand-controls-cell/expand-controls-cell.component.module';\nexport * from './lib/expand-row/expand-row.service';\nexport * from './lib/expand-row/expand-row.directive';\n\nexport * from './lib/select-row/select-row.module';\nexport * from './lib/select-row/checkbox-cell/checkbox-cell.component';\nexport * from './lib/select-row/checkbox-cell/checkbox-cell.component.module';\nexport * from './lib/select-row/checkbox-header-cell/checkbox-header-cell.component';\nexport * from './lib/select-row/checkbox-header-cell/checkbox-header-cell.component.module';\nexport * from './lib/select-row/select-row.service';\nexport * from './lib/select-row/selected-rows.directive';\nexport * from './lib/select-row/tokens';\nexport * from './lib/row-animation';\nexport * from './lib/table-data-source.directive';\n\n// region table filter\n\nexport * from './lib/table-filter/filter-header-row.directive';\nexport * from './lib/table-filter/table-filter.module';\nexport * from './lib/table-filter/table-filter.service';\nexport * from './lib/table-filter/to-filter-column-names.pipe';\nexport * from './lib/table-filter/tokens';\n\n// endregion\n\n// region table column menu\n\nexport * from './lib/table-column-menu/table-column-menu.component';\nexport * from './lib/table-column-menu/table-column-menu.component.module';\nexport * from './lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component';\nexport * from './lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.module';\nexport * from './lib/table-column-menu/table-column-option/table-column-option.component';\n\n// endregion\n\n// region table create button\n\nexport * from './lib/table-create-button/table-create-button.directive';\nexport * from './lib/table-create-button/tokens';\n\n// endregion\n\n// region table row controls\n\nexport * from './lib/table-row-controls/table-row-controls.module';\nexport * from './lib/table-row-controls/row-controls-cell/row-controls-cell.component';\nexport * from './lib/table-row-controls/row-controls-cell/row-controls-cell.component.module';\nexport * from './lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component';\nexport * from './lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.module';\nexport * from './lib/table-row-controls/tokens';\n\n// endregion\n\n// region table select controls\n\nexport * from './lib/table-select-controls/table-select-controls.component';\nexport * from './lib/table-select-controls/table-select-controls.component.module';\n\n// endregion\n\n// region cells\n\n// region image\n\nexport * from './lib/cells/image-cell/image-cell.component';\nexport * from './lib/cells/image-cell/image-cell.component.module';\n\n// endregion\n\n// region copy-to-clipboard cell\n\nexport * from './lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component';\nexport * from './lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.module';\n\n// endregion\n\n// region icon cell\n\nexport * from './lib/cells/icon-cell/icon-cell.component';\nexport * from './lib/cells/icon-cell/icon-cell.component.module';\n\n// endregion\n\n// region date cell\n\nexport * from './lib/cells/date-cell/date-cell.component';\nexport * from './lib/cells/date-cell/date-cell.component.module';\n\n// endregion\n\n// region link cell\n\nexport * from './lib/cells/link-cell/link-cell.component';\nexport * from './lib/cells/link-cell/link-cell.component.module';\n\n// endregion\n\n// region options cell\n\nexport * from './lib/cells/options-cell/options-cell.component';\nexport * from './lib/cells/options-cell/options-cell.component.module';\n\n// endregion\n\n// region boolean cell\n\nexport * from './lib/cells/boolean-cell/boolean-cell.component';\nexport * from './lib/cells/boolean-cell/boolean-cell.component.module';\n\n// endregion\n\n// region table-row-actions\n\nexport * from './lib/table-row-actions/decorators';\nexport * from './lib/table-row-actions/table-row-action.directive';\nexport * from './lib/table-row-actions/table-row-action.method';\nexport * from './lib/table-row-actions/table-row-action-executing.directive';\nexport * from './lib/table-row-actions/table-row-action-status';\nexport * from './lib/table-row-actions/table-row-actions.module';\nexport * from './lib/table-row-actions/table-row-header-action.directive';\nexport * from './lib/table-row-actions/tokens';\n\n// endregion\n\n// endregion\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/material/table-system/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,sEAAsE,CAAC;AACrF,cAAc,oEAAoE,CAAC;AACnF,cAAc,6EAA6E,CAAC;AAC5F,cAAc,sEAAsE,CAAC;AACrF,cAAc,6EAA6E,CAAC;AAC5F,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AAEtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wDAAwD,CAAC;AACvE,cAAc,+DAA+D,CAAC;AAC9E,cAAc,sEAAsE,CAAC;AACrF,cAAc,6EAA6E,CAAC;AAC5F,cAAc,q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c,kDAAkD,CAAC;AAEjE,YAAY;AAEZ,sBAAsB;AAEtB,cAAc,iDAAiD,CAAC;AAChE,cAAc,wDAAwD,CAAC;AAEvE,YAAY;AAEZ,sBAAsB;AAEtB,cAAc,iDAAiD,CAAC;AAChE,cAAc,wDAAwD,CAAC;AAEvE,YAAY;AAEZ,2BAA2B;AAE3B,cAAc,oCAAoC,CAAC;AACnD,cAAc,oDAAoD,CAAC;AACnE,cAAc,iDAAiD,CAAC;AAChE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,iDAAiD,CAAC;AAChE,cAAc,kDAAkD,CAAC;AACjE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,gCAAgC,CAAC;AAE/C,YAAY;AAEZ,YAAY","sourcesContent":["export * from './lib/expand-row/expand-row.module';\nexport * from './lib/expand-row/expand-row-container/expand-row-container.component';\nexport * from './lib/expand-row/expand-row-container/expand-row-content.directive';\nexport * from './lib/expand-row/expand-row-container/expand-row-container.component.module';\nexport * from './lib/expand-row/expand-controls-cell/expand-controls-cell.component';\nexport * from './lib/expand-row/expand-controls-cell/expand-controls-cell.component.module';\nexport * from './lib/expand-row/expand-row.service';\nexport * from './lib/expand-row/expand-row.directive';\n\nexport * from './lib/select-row/select-row.module';\nexport * from './lib/select-row/checkbox-cell/checkbox-cell.component';\nexport * from './lib/select-row/checkbox-cell/checkbox-cell.component.module';\nexport * from './lib/select-row/checkbox-header-cell/checkbox-header-cell.component';\nexport * from './lib/select-row/checkbox-header-cell/checkbox-header-cell.component.module';\nexport * from './lib/select-row/select-row.service';\nexport * from './lib/select-row/selected-rows.directive';\nexport * from './lib/select-row/tokens';\nexport * from './lib/row-animation';\nexport * from './lib/table-data-source.directive';\nexport * from './lib/table-row-metadata';\n\n// region table filter\n\nexport * from './lib/table-filter/filter-header-row.directive';\nexport * from './lib/table-filter/table-filter.module';\nexport * from './lib/table-filter/table-filter.service';\nexport * from './lib/table-filter/to-filter-column-names.pipe';\nexport * from './lib/table-filter/tokens';\n\n// endregion\n\n// region table column menu\n\nexport * from './lib/table-column-menu/table-column-menu.component';\nexport * from './lib/table-column-menu/table-column-menu.component.module';\nexport * from './lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component';\nexport * from './lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.module';\nexport * from './lib/table-column-menu/table-column-option/table-column-option.component';\n\n// endregion\n\n// region table create button\n\nexport * from './lib/table-create-button/table-create-button.directive';\nexport * from './lib/table-create-button/tokens';\n\n// endregion\n\n// region table row controls\n\nexport * from './lib/table-row-controls/table-row-controls.module';\nexport * from './lib/table-row-controls/row-controls-cell/row-controls-cell.component';\nexport * from './lib/table-row-controls/row-controls-cell/row-controls-cell.component.module';\nexport * from './lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component';\nexport * from './lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.module';\nexport * from './lib/table-row-controls/tokens';\n\n// endregion\n\n// region table select controls\n\nexport * from './lib/table-select-controls/table-select-controls.component';\nexport * from './lib/table-select-controls/table-select-controls.component.module';\n\n// endregion\n\n// region cells\n\n// region image\n\nexport * from './lib/cells/image-cell/image-cell.component';\nexport * from './lib/cells/image-cell/image-cell.component.module';\n\n// endregion\n\n// region copy-to-clipboard cell\n\nexport * from './lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component';\nexport * from './lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.module';\n\n// endregion\n\n// region icon cell\n\nexport * from './lib/cells/icon-cell/icon-cell.component';\nexport * from './lib/cells/icon-cell/icon-cell.component.module';\n\n// endregion\n\n// region date cell\n\nexport * from './lib/cells/date-cell/date-cell.component';\nexport * from './lib/cells/date-cell/date-cell.component.module';\n\n// endregion\n\n// region link cell\n\nexport * from './lib/cells/link-cell/link-cell.component';\nexport * from './lib/cells/link-cell/link-cell.component.module';\n\n// endregion\n\n// region options cell\n\nexport * from './lib/cells/options-cell/options-cell.component';\nexport * from './lib/cells/options-cell/options-cell.component.module';\n\n// endregion\n\n// region boolean cell\n\nexport * from './lib/cells/boolean-cell/boolean-cell.component';\nexport * from './lib/cells/boolean-cell/boolean-cell.component.module';\n\n// endregion\n\n// region table-row-actions\n\nexport * from './lib/table-row-actions/decorators';\nexport * from './lib/table-row-actions/table-row-action.directive';\nexport * from './lib/table-row-actions/table-row-action.method';\nexport * from './lib/table-row-actions/table-row-action-executing.directive';\nexport * from './lib/table-row-actions/table-row-action-status';\nexport * from './lib/table-row-actions/table-row-actions.module';\nexport * from './lib/table-row-actions/table-row-header-action.directive';\nexport * from './lib/table-row-actions/tokens';\n\n// endregion\n\n// endregion\n"]}
@@ -8,6 +8,7 @@ import { TableFilterService } from './table-filter/table-filter.service';
8
8
  import { debounceTime, delay, filter, tap } from 'rxjs/operators';
9
9
  import { Required } from '@rxap/utilities';
10
10
  import { ToggleSubject } from '@rxap/utilities/rxjs';
11
+ import { pipeDataSource } from '@rxap/data-source';
11
12
  import * as i0 from "@angular/core";
12
13
  import * as i1 from "@angular/cdk/table";
13
14
  import * as i2 from "@angular/material/sort";
@@ -62,14 +63,15 @@ export class TableDataSourceDirective {
62
63
  }
63
64
  ngOnInit() {
64
65
  var _a, _b, _c, _d;
66
+ const tableFilter = (_b = (_a = this._tableFilter) !== null && _a !== void 0 ? _a : this.tableFilter) !== null && _b !== void 0 ? _b : undefined;
65
67
  if (this.sourceMethod) {
66
68
  if (this.adapterFactory) {
67
- this.method = this.adapterFactory(this.sourceMethod, this.paginator, this.matSort, this.tableFilter, this.parameters);
69
+ this.method = this.adapterFactory(this.sourceMethod, this.paginator, this.matSort, tableFilter, this.parameters);
68
70
  }
69
71
  else {
70
72
  this.method = this.sourceMethod;
71
73
  }
72
- this.dataSource = new DynamicTableDataSource(this.method, this.paginator, this.matSort, this.tableFilter, this.parameters, (_a = this.method.metadata) !== null && _a !== void 0 ? _a : { id: this.id });
74
+ this.dataSource = new DynamicTableDataSource(this.method, this.paginator, this.matSort, tableFilter, this.parameters, (_c = this.method.metadata) !== null && _c !== void 0 ? _c : { id: this.id });
73
75
  }
74
76
  else if (this.sourceDataSource) {
75
77
  this.dataSource = this.sourceDataSource;
@@ -78,11 +80,13 @@ export class TableDataSourceDirective {
78
80
  throw new Error('The TABLE_DATA_SOURCE and TABLE_METHOD token are not defined!');
79
81
  }
80
82
  this.dataSource.paginator = this.paginator;
81
- this.dataSource.sort = (_b = this.matSort) !== null && _b !== void 0 ? _b : undefined;
82
- this.dataSource.filter = (_d = (_c = this._tableFilter) !== null && _c !== void 0 ? _c : this.tableFilter) !== null && _d !== void 0 ? _d : undefined;
83
+ this.dataSource.sort = (_d = this.matSort) !== null && _d !== void 0 ? _d : undefined;
84
+ this.dataSource.filter = tableFilter;
83
85
  this.dataSource.parameters = this.parameters;
84
86
  this._subscription.add(this.dataSource.loading$.pipe(tap(loading => this.loading$.next(!!loading))).subscribe());
85
- this.matTable.dataSource = this.dataSource;
87
+ this.matTable.dataSource = pipeDataSource(this.dataSource, tap(rowList => rowList.forEach((element) => {
88
+ element.__metadata__ = { loading$: new ToggleSubject() };
89
+ })));
86
90
  // TODO : remove hack to trigger change detection after data source refresh (machine-definition -> physical unit)
87
91
  this._subscription.add(this.loading$
88
92
  .pipe(filter((loading) => !loading), debounceTime(2000), tap(() => this.cdr.detectChanges()), tap(() => this.cdr.markForCheck()), delay(500), tap(() => this.cdr.detectChanges()), tap(() => this.cdr.markForCheck()), delay(500), tap(() => this.cdr.detectChanges()), tap(() => this.cdr.markForCheck()), delay(500), tap(() => this.cdr.detectChanges()), tap(() => this.cdr.markForCheck()), delay(500), tap(() => this.cdr.detectChanges()), tap(() => this.cdr.markForCheck()), delay(500), tap(() => this.cdr.detectChanges()), tap(() => this.cdr.markForCheck()), delay(500))
@@ -1 +1 @@
1
- {"version":3,"file":"table-data-source.directive.js","sourceRoot":"","sources":["../../../../../../libs/material/table-system/src/lib/table-data-source.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,MAAM,EACN,cAAc,EACd,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Q,8CAIR,iBAAiB,6BAIjB,iBAAiB,6BAGjB,mCAAmC,6BAGnC,OAAO,6BAGP,kBAAkB,6BAGlB,iBAAiB;yGAtEhB,wBAAwB;AAmBnC;IADC,QAAQ;;oDACU;2FAnBR,wBAAwB;kBALpC,SAAS;mBAAC;oBACT,QAAQ,EACE,sEAAsE;oBAChF,QAAQ,EAAE,qBAAqB;iBAChC;;0BAmDI,MAAM;2BAAC,QAAQ;;0BAGf,QAAQ;;0BACR,MAAM;2BAAC,iBAAiB;;0BAGxB,QAAQ;;0BACR,MAAM;2BAAC,iBAAiB;;0BAExB,QAAQ;;0BACR,MAAM;2BAAC,mCAAmC;;0BAE1C,QAAQ;;0BACR,MAAM;2BAAC,OAAO;;0BAEd,QAAQ;;0BACR,MAAM;2BAAC,kBAAkB;;0BAEzB,QAAQ;;0BACR,MAAM;2BAAC,iBAAiB;4CAhEhB,aAAa;sBADvB,KAAK;uBAAC,qBAAqB;gBAQrB,SAAS;sBADf,KAAK;gBAOC,EAAE;sBAFR,KAAK;gBAIC,UAAU;sBADhB,KAAK;gBAGC,UAAU;sBADhB,KAAK;;AA2IR,MAAM,OAAO,qBAAqB;;kHAArB,qBAAqB;mHAArB,qBAAqB,iBAjKrB,wBAAwB,aAAxB,wBAAwB;mHAiKxB,qBAAqB;2FAArB,qBAAqB;kBAJjC,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,wBAAwB,CAAC;oBACnC,YAAY,EAAE,CAAC,wBAAwB,CAAC;iBACzC","sourcesContent":["import {\n ChangeDetectorRef,\n Directive,\n Inject,\n InjectionToken,\n Input,\n NgModule,\n OnDestroy,\n OnInit,\n Optional\n} from '@angular/core';\nimport type { MatPaginator } from '@angular/material/paginator';\nimport type { Observable } from 'rxjs';\nimport { Subscription } from 'rxjs';\nimport { MatSort } from '@angular/material/sort';\nimport type {\n AbstractTableDataSource,\n FilterLike\n} from '@rxap/data-source/table';\nimport {\n DynamicTableDataSource,\n TableEvent,\n SortLike\n} from '@rxap/data-source/table';\nimport { BaseRemoteMethod } from '@rxap/remote-method';\nimport { PaginatorLike } from '@rxap/data-source/pagination';\nimport { CdkTable } from '@angular/cdk/table';\nimport { TableFilterService } from './table-filter/table-filter.service';\nimport {\n debounceTime,\n delay,\n filter,\n tap\n} from 'rxjs/operators';\nimport { Required } from '@rxap/utilities';\nimport {\n Method,\n ToggleSubject\n} from '@rxap/utilities/rxjs';\n\n// TODO : add migration schematic\nexport const RXAP_TABLE_METHOD = new InjectionToken(\n 'rxap/material/table-system/table-method'\n);\n/**\n * @deprecated use TABLE_METHOD instead\n */\nexport const TABLE_REMOTE_METHOD = RXAP_TABLE_METHOD;\nexport const TABLE_REMOTE_METHOD_ADAPTER_FACTORY = new InjectionToken(\n 'table-remote-method-adapter-factory'\n);\nexport const RXAP_TABLE_FILTER = new InjectionToken('rxap/material-table-system/table-filter');\nexport const TABLE_DATA_SOURCE = new InjectionToken('table-data-source');\n\nexport type TableRemoteMethodAdapterFactory<\n Data extends Record<string, any> = Record<string, any>\n> = (\n method: Method,\n paginator?: PaginatorLike,\n sort?: SortLike | null,\n filter?: TableFilterService | null,\n parameters?: Observable<Record<string, any>>\n) => BaseRemoteMethod<Data[], TableEvent>;\n\n@Directive({\n selector:\n 'table[mat-table][rxapTableDataSource],mat-table[rxapTableDataSource]',\n exportAs: 'rxapTableDataSource'\n})\nexport class TableDataSourceDirective<Data extends Record<string, any> = any>\n implements OnInit, OnDestroy {\n /**\n * @deprecated use dataSource instead\n */\n @Input('rxapTableDataSource')\n public set setDataSource(dataSource: AbstractTableDataSource<Data> | '') {\n if (typeof dataSource !== 'string') {\n this.dataSource = dataSource;\n }\n }\n\n @Input()\n public paginator?: MatPaginator;\n\n public readonly loading$ = new ToggleSubject(true);\n\n @Input()\n @Required\n public id!: string;\n @Input()\n public parameters?: Observable<Record<string, any>>;\n @Input()\n public dataSource?: AbstractTableDataSource<Data>;\n\n public method?: Method<Data[], TableEvent>;\n\n /**\n * @deprecated use method instead\n */\n public get remoteMethod(): Method<Data[], TableEvent> | undefined {\n return this.method;\n }\n\n /**\n * @deprecated use sourceMethod instead\n */\n public get sourceRemoteMethod(): Method<\n Data[] | any,\n TableEvent | any\n > | null {\n return this.sourceMethod;\n }\n\n protected _subscription = new Subscription();\n\n private readonly adapterFactory: TableRemoteMethodAdapterFactory<Data> | null =\n null;\n\n constructor(\n @Inject(CdkTable)\n private readonly matTable: CdkTable<Data>,\n protected readonly cdr: ChangeDetectorRef,\n @Optional()\n @Inject(RXAP_TABLE_METHOD)\n private readonly sourceMethod: Method<Data[] | any,\n TableEvent | any> | null,\n @Optional()\n @Inject(TABLE_DATA_SOURCE)\n private readonly sourceDataSource: AbstractTableDataSource<Data> | null,\n @Optional()\n @Inject(TABLE_REMOTE_METHOD_ADAPTER_FACTORY)\n adapterFactory: any,\n @Optional()\n @Inject(MatSort)\n private readonly matSort: MatSort | null,\n @Optional()\n @Inject(TableFilterService)\n private readonly tableFilter: TableFilterService | null,\n @Optional()\n @Inject(RXAP_TABLE_FILTER)\n private readonly _tableFilter: FilterLike | null\n ) {\n this.matTable.trackBy = this.trackBy;\n this.adapterFactory = adapterFactory;\n }\n\n private trackBy(index: number, item: Data): string | number {\n return item.uuid ?? index;\n }\n\n public ngOnInit() {\n if (this.sourceMethod) {\n if (this.adapterFactory) {\n this.method = this.adapterFactory(\n this.sourceMethod,\n this.paginator,\n this.matSort,\n this.tableFilter,\n this.parameters\n );\n } else {\n this.method = this.sourceMethod;\n }\n this.dataSource = new DynamicTableDataSource<Data>(\n this.method,\n this.paginator,\n this.matSort,\n this.tableFilter,\n this.parameters,\n this.method.metadata ?? { id: this.id }\n );\n } else if (this.sourceDataSource) {\n this.dataSource = this.sourceDataSource;\n } else if (!this.dataSource) {\n throw new Error(\n 'The TABLE_DATA_SOURCE and TABLE_METHOD token are not defined!'\n );\n }\n this.dataSource.paginator = this.paginator;\n this.dataSource.sort = this.matSort ?? undefined;\n this.dataSource.filter = this._tableFilter ?? this.tableFilter ?? undefined;\n this.dataSource.parameters = this.parameters;\n this._subscription.add(\n this.dataSource.loading$.pipe(\n tap(loading => this.loading$.next(!!loading))\n ).subscribe()\n );\n this.matTable.dataSource = this.dataSource;\n // TODO : remove hack to trigger change detection after data source refresh (machine-definition -> physical unit)\n this._subscription.add(\n this.loading$\n .pipe(\n filter((loading) => !loading),\n debounceTime(2000),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500)\n )\n .subscribe()\n );\n }\n\n public ngOnDestroy() {\n this._subscription.unsubscribe();\n }\n\n public refresh() {\n this.dataSource?.refresh();\n }\n}\n\n@NgModule({\n exports: [TableDataSourceDirective],\n declarations: [TableDataSourceDirective],\n})\nexport class TableDataSourceModule {}\n"]}
1
+ {"version":3,"file":"table-data-source.directive.js","sourceRoot":"","sources":["../../../../../../libs/material/table-system/src/lib/table-data-source.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,MAAM,EACN,cAAc,EACd,KAAK,EACL,QAAQ,EAGR,QAAQ,EACT,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAKjD,OAAO,EACL,sBAAsB,EAGvB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAA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BAGnC,OAAO,6BAGP,kBAAkB,6BAGlB,iBAAiB;yGAtEhB,wBAAwB;AAmBnC;IADC,QAAQ;;oDACU;2FAnBR,wBAAwB;kBALpC,SAAS;mBAAC;oBACT,QAAQ,EACE,sEAAsE;oBAChF,QAAQ,EAAE,qBAAqB;iBAChC;;0BAmDI,MAAM;2BAAC,QAAQ;;0BAGf,QAAQ;;0BACR,MAAM;2BAAC,iBAAiB;;0BAGxB,QAAQ;;0BACR,MAAM;2BAAC,iBAAiB;;0BAExB,QAAQ;;0BACR,MAAM;2BAAC,mCAAmC;;0BAE1C,QAAQ;;0BACR,MAAM;2BAAC,OAAO;;0BAEd,QAAQ;;0BACR,MAAM;2BAAC,kBAAkB;;0BAEzB,QAAQ;;0BACR,MAAM;2BAAC,iBAAiB;4CAhEhB,aAAa;sBADvB,KAAK;uBAAC,qBAAqB;gBAQrB,SAAS;sBADf,KAAK;gBAOC,EAAE;sBAFR,KAAK;gBAIC,UAAU;sBADhB,KAAK;gBAGC,UAAU;sBADhB,KAAK;;AA8IR,MAAM,OAAO,qBAAqB;;kHAArB,qBAAqB;mHAArB,qBAAqB,iBApKrB,wBAAwB,aAAxB,wBAAwB;mHAoKxB,qBAAqB;2FAArB,qBAAqB;kBAJjC,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,wBAAwB,CAAC;oBACnC,YAAY,EAAE,CAAC,wBAAwB,CAAC;iBACzC","sourcesContent":["import {\n ChangeDetectorRef,\n Directive,\n Inject,\n InjectionToken,\n Input,\n NgModule,\n OnDestroy,\n OnInit,\n Optional\n} from '@angular/core';\nimport type { MatPaginator } from '@angular/material/paginator';\nimport type { Observable } from 'rxjs';\nimport { Subscription } from 'rxjs';\nimport { MatSort } from '@angular/material/sort';\nimport type {\n AbstractTableDataSource,\n FilterLike\n} from '@rxap/data-source/table';\nimport {\n DynamicTableDataSource,\n TableEvent,\n SortLike\n} from '@rxap/data-source/table';\nimport { BaseRemoteMethod } from '@rxap/remote-method';\nimport { PaginatorLike } from '@rxap/data-source/pagination';\nimport { CdkTable } from '@angular/cdk/table';\nimport { TableFilterService } from './table-filter/table-filter.service';\nimport {\n debounceTime,\n delay,\n filter,\n tap\n} from 'rxjs/operators';\nimport { Required } from '@rxap/utilities';\nimport {\n Method,\n ToggleSubject\n} from '@rxap/utilities/rxjs';\nimport { pipeDataSource } from '@rxap/data-source';\n\n// TODO : add migration schematic\nexport const RXAP_TABLE_METHOD = new InjectionToken(\n 'rxap/material/table-system/table-method'\n);\n/**\n * @deprecated use TABLE_METHOD instead\n */\nexport const TABLE_REMOTE_METHOD = RXAP_TABLE_METHOD;\nexport const TABLE_REMOTE_METHOD_ADAPTER_FACTORY = new InjectionToken(\n 'table-remote-method-adapter-factory'\n);\nexport const RXAP_TABLE_FILTER = new InjectionToken('rxap/material-table-system/table-filter');\nexport const TABLE_DATA_SOURCE = new InjectionToken('table-data-source');\n\nexport type TableRemoteMethodAdapterFactory<\n Data extends Record<string, any> = Record<string, any>\n> = (\n method: Method,\n paginator?: PaginatorLike,\n sort?: SortLike | null,\n filter?: FilterLike | null,\n parameters?: Observable<Record<string, any>>\n) => BaseRemoteMethod<Data[], TableEvent>;\n\n@Directive({\n selector:\n 'table[mat-table][rxapTableDataSource],mat-table[rxapTableDataSource]',\n exportAs: 'rxapTableDataSource'\n})\nexport class TableDataSourceDirective<Data extends Record<string, any> = any>\n implements OnInit, OnDestroy {\n /**\n * @deprecated use dataSource instead\n */\n @Input('rxapTableDataSource')\n public set setDataSource(dataSource: AbstractTableDataSource<Data> | '') {\n if (typeof dataSource !== 'string') {\n this.dataSource = dataSource;\n }\n }\n\n @Input()\n public paginator?: MatPaginator;\n\n public readonly loading$ = new ToggleSubject(true);\n\n @Input()\n @Required\n public id!: string;\n @Input()\n public parameters?: Observable<Record<string, any>>;\n @Input()\n public dataSource?: AbstractTableDataSource<Data>;\n\n public method?: Method<Data[], TableEvent>;\n\n /**\n * @deprecated use method instead\n */\n public get remoteMethod(): Method<Data[], TableEvent> | undefined {\n return this.method;\n }\n\n /**\n * @deprecated use sourceMethod instead\n */\n public get sourceRemoteMethod(): Method<\n Data[] | any,\n TableEvent | any\n > | null {\n return this.sourceMethod;\n }\n\n protected _subscription = new Subscription();\n\n private readonly adapterFactory: TableRemoteMethodAdapterFactory<Data> | null =\n null;\n\n constructor(\n @Inject(CdkTable)\n private readonly matTable: CdkTable<Data>,\n protected readonly cdr: ChangeDetectorRef,\n @Optional()\n @Inject(RXAP_TABLE_METHOD)\n private readonly sourceMethod: Method<Data[] | any,\n TableEvent | any> | null,\n @Optional()\n @Inject(TABLE_DATA_SOURCE)\n private readonly sourceDataSource: AbstractTableDataSource<Data> | null,\n @Optional()\n @Inject(TABLE_REMOTE_METHOD_ADAPTER_FACTORY)\n adapterFactory: any,\n @Optional()\n @Inject(MatSort)\n private readonly matSort: MatSort | null,\n @Optional()\n @Inject(TableFilterService)\n private readonly tableFilter: TableFilterService | null,\n @Optional()\n @Inject(RXAP_TABLE_FILTER)\n private readonly _tableFilter: FilterLike | null\n ) {\n this.matTable.trackBy = this.trackBy;\n this.adapterFactory = adapterFactory;\n }\n\n private trackBy(index: number, item: Data): string | number {\n return item.uuid ?? index;\n }\n\n public ngOnInit() {\n const tableFilter = this._tableFilter ?? this.tableFilter ?? undefined;\n if (this.sourceMethod) {\n if (this.adapterFactory) {\n this.method = this.adapterFactory(\n this.sourceMethod,\n this.paginator,\n this.matSort,\n tableFilter,\n this.parameters\n );\n } else {\n this.method = this.sourceMethod;\n }\n this.dataSource = new DynamicTableDataSource<Data>(\n this.method,\n this.paginator,\n this.matSort,\n tableFilter,\n this.parameters,\n this.method.metadata ?? { id: this.id }\n );\n } else if (this.sourceDataSource) {\n this.dataSource = this.sourceDataSource;\n } else if (!this.dataSource) {\n throw new Error(\n 'The TABLE_DATA_SOURCE and TABLE_METHOD token are not defined!'\n );\n }\n this.dataSource.paginator = this.paginator;\n this.dataSource.sort = this.matSort ?? undefined;\n this.dataSource.filter = tableFilter;\n this.dataSource.parameters = this.parameters;\n this._subscription.add(\n this.dataSource.loading$.pipe(\n tap(loading => this.loading$.next(!!loading))\n ).subscribe()\n );\n this.matTable.dataSource = pipeDataSource(this.dataSource, tap(rowList => rowList.forEach((element: any) => {\n element.__metadata__ = { loading$: new ToggleSubject() };\n })));\n // TODO : remove hack to trigger change detection after data source refresh (machine-definition -> physical unit)\n this._subscription.add(\n this.loading$\n .pipe(\n filter((loading) => !loading),\n debounceTime(2000),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500)\n )\n .subscribe()\n );\n }\n\n public ngOnDestroy() {\n this._subscription.unsubscribe();\n }\n\n public refresh() {\n this.dataSource?.refresh();\n }\n}\n\n@NgModule({\n exports: [TableDataSourceDirective],\n declarations: [TableDataSourceDirective],\n})\nexport class TableDataSourceModule {}\n"]}
@@ -100,7 +100,9 @@ export class TableRowActionDirective {
100
100
  (_a = this.executingDirective) === null || _a === void 0 ? void 0 : _a.show();
101
101
  break;
102
102
  case TableRowActionStatus.SUCCESS:
103
- this.tableDataSourceDirective.refresh();
103
+ if (this.refresh) {
104
+ this.tableDataSourceDirective.refresh();
105
+ }
104
106
  if (this.successMessage) {
105
107
  this.snackBar.open(this.successMessage, 'ok', { duration: 2560 });
106
108
  }
@@ -121,7 +123,7 @@ export class TableRowActionDirective {
121
123
  }
122
124
  }
123
125
  TableRowActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", 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 });
124
- TableRowActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: TableRowActionDirective, selector: "button[rxapTableRowAction]", inputs: { hasConfirmDirective: ["rxapConfirm", "hasConfirmDirective"], element: "element", type: ["rxapTableRowAction", "type"], errorMessage: "errorMessage", successMessage: "successMessage" }, host: { listeners: { "confirmed": "onConfirmed()", "click": "onClick($event)" } }, queries: [{ propertyName: "executingDirective", first: true, predicate: TableRowActionExecutingDirective, descendants: true }], ngImport: i0 });
126
+ TableRowActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", 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 });
125
127
  __decorate([
126
128
  Required,
127
129
  __metadata("design:type", Object)
@@ -167,6 +169,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
167
169
  type: Input
168
170
  }], successMessage: [{
169
171
  type: Input
172
+ }], refresh: [{
173
+ type: Input
170
174
  }], executingDirective: [{
171
175
  type: ContentChild,
172
176
  args: [TableRowActionExecutingDirective]
@@ -1 +1 @@
1
- {"version":3,"file":"table-row-action.directive.js","sourceRoot":"","sources":["../../../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-action.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,iBAAiB,EACjB,YAAY,EACZ,SAAS,EACT,YAAY,EACZ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I,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;iBACjE;gBACD,MAAM;YACR,KAAK,oBAAoB,CAAC,IAAI;gBAC5B,IAAI,CAAC,gBAAgB,EAAE,CAAC;gBACxB,MAAA,IAAI,CAAC,kBAAkB,0CAAE,IAAI,EAAE,CAAC;gBAChC,MAAM;SACT;QACD,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;IAC3B,CAAC;;oHAxJU,uBAAuB,kBA4BxB,4BAA4B,aAI5B,iBAAiB,aAEjB,gBAAgB,aAEhB,wBAAwB,aAExB,WAAW,aAGX,SAAS;wGAzCR,uBAAuB,wYAqBpB,gCAAgC;AAX9C;IADC,QAAQ;;wDACa;AAGtB;IADC,QAAQ;;qDACY;2FAbV,uBAAuB;kBAHnC,SAAS;mBAAC;oBACT,QAAQ,EAAE,4BAA4B;iBACvC;;0BA6BI,MAAM;2BAAC,4BAA4B;;0BAInC,MAAM;2BAAC,iBAAiB;;0BAExB,MAAM;2BAAC,gBAAgB;;0BAEvB,MAAM;2BAAC,wBAAwB;;0BAE/B,MAAM;2BAAC,WAAW;;0BAElB,QAAQ;;0BACR,MAAM;2BAAC,SAAS;4CArCR,mBAAmB;sBAD7B,KAAK;uBAAC,aAAa;gBAOb,OAAO;sBAFb,KAAK;gBAKC,IAAI;sBAFV,KAAK;uBAAC,oBAAoB;gBAKpB,YAAY;sBADlB,KAAK;gBAIC,cAAc;sBADpB,KAAK;gBAIW,kBAAkB;sBADlC,YAAY;uBAAC,gCAAgC;gBA2BvC,WAAW;sBADjB,YAAY;uBAAC,WAAW;gBAMlB,OAAO;sBADb,YAAY;uBAAC,OAAO,EAAE,CAAE,QAAQ,CAAE","sourcesContent":["import {\n ChangeDetectorRef,\n ContentChild,\n Directive,\n HostListener,\n Inject,\n Input,\n isDevMode,\n Optional,\n ViewContainerRef\n} from '@angular/core';\nimport { MatButton } from '@angular/material/button';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport {\n coerceArray,\n coerceBoolean,\n Required\n} from '@rxap/utilities';\nimport { TableRowActionExecutingDirective } from './table-row-action-executing.directive';\nimport { TableRowActionStatus } from './table-row-action-status';\nimport {\n IsTableRowActionTypeMethod,\n IsTableRowActionTypeSwitchMethod,\n TableRowActionMethod,\n TableRowActionTypeMethod,\n TableRowActionTypeSwitchMethod\n} from './table-row-action.method';\nimport { RXAP_TABLE_ROW_ACTION_METHOD } from './tokens';\nimport { TableDataSourceDirective } from '../table-data-source.directive';\n\n@Directive({\n selector: 'button[rxapTableRowAction]'\n})\nexport class TableRowActionDirective<Data extends Record<string, any>> {\n private _hasConfirmDirective = false;\n\n @Input('rxapConfirm')\n public set hasConfirmDirective(value: any) {\n this._hasConfirmDirective = coerceBoolean(value);\n }\n\n @Input()\n @Required\n public element!: Data;\n @Input('rxapTableRowAction')\n @Required\n public type!: string;\n\n @Input()\n public errorMessage?: string;\n\n @Input()\n public successMessage?: string;\n\n @ContentChild(TableRowActionExecutingDirective)\n private readonly executingDirective?: TableRowActionExecutingDirective;\n private _currentStatus: TableRowActionStatus = TableRowActionStatus.DONE;\n\n private readonly actionMethodList: Array<TableRowActionMethod<Data>>;\n\n constructor(\n @Inject(RXAP_TABLE_ROW_ACTION_METHOD)\n actionMethodList:\n | Array<TableRowActionMethod<Data>>\n | TableRowActionMethod<Data>,\n @Inject(ChangeDetectorRef)\n protected readonly cdr: ChangeDetectorRef,\n @Inject(ViewContainerRef)\n private readonly vcr: ViewContainerRef,\n @Inject(TableDataSourceDirective)\n private readonly tableDataSourceDirective: TableDataSourceDirective,\n @Inject(MatSnackBar)\n private readonly snackBar: MatSnackBar,\n @Optional()\n @Inject(MatButton)\n private readonly matButton: MatButton | null\n ) {\n this.actionMethodList = coerceArray(actionMethodList);\n }\n\n @HostListener('confirmed')\n public onConfirmed() {\n return this.execute();\n }\n\n @HostListener('click', [ '$event' ])\n public onClick($event: Event) {\n $event.stopPropagation();\n if (!this._hasConfirmDirective) {\n return this.execute();\n } else {\n if (isDevMode()) {\n console.debug('skip remote method call. Wait for confirmation.');\n }\n }\n return Promise.resolve();\n }\n\n public async execute(): Promise<void> {\n this.setStatus(TableRowActionStatus.EXECUTING);\n try {\n await Promise.all(\n this.getElementList().map((element) => {\n return Promise.all([\n Promise.all(\n this.findUntypedActionMethod().map((am) =>\n am.call({ element, type: this.type })\n )\n ),\n Promise.all(\n this.findTypedActionMethod().map((am) => am.call(element))\n )\n ]);\n })\n );\n this.setStatus(TableRowActionStatus.SUCCESS);\n } catch (e) {\n console.error(`Failed to execute row action: ${e.message}`);\n this.setStatus(TableRowActionStatus.ERROR);\n }\n }\n\n protected getElementList(): Data[] {\n return [ this.element ];\n }\n\n /**\n * find all method instance in the actionMethodList member that\n * do not have a @TableActionMethod decorators\n * @private\n */\n private findUntypedActionMethod(): Array<TableRowActionTypeSwitchMethod<Data>> {\n return this.actionMethodList.filter(IsTableRowActionTypeSwitchMethod);\n }\n\n /**\n * find all method instance in the actionMethodList member that\n * do have a @TableActionMethod decorators with the current type\n * @private\n */\n private findTypedActionMethod(): Array<TableRowActionTypeMethod<Data>> {\n return this.actionMethodList.filter(IsTableRowActionTypeMethod(this.type));\n }\n\n protected setButtonDisabled() {\n if (this.matButton) {\n this.matButton.disabled = true;\n }\n }\n\n protected setButtonEnabled() {\n if (this.matButton) {\n this.matButton.disabled = false;\n }\n }\n\n private setStatus(status: TableRowActionStatus) {\n if (this._currentStatus === status) {\n return;\n }\n this._currentStatus = status;\n switch (status) {\n case TableRowActionStatus.EXECUTING:\n this.setButtonDisabled();\n this.executingDirective?.show();\n break;\n case TableRowActionStatus.SUCCESS:\n this.tableDataSourceDirective.refresh();\n if (this.successMessage) {\n this.snackBar.open(this.successMessage, 'ok', { duration: 2560 });\n }\n this.setStatus(TableRowActionStatus.DONE);\n break;\n case TableRowActionStatus.ERROR:\n this.setStatus(TableRowActionStatus.DONE);\n if (this.errorMessage) {\n this.snackBar.open(this.errorMessage, 'ok', { duration: 5120 });\n }\n break;\n case TableRowActionStatus.DONE:\n this.setButtonEnabled();\n this.executingDirective?.hide();\n break;\n }\n this.cdr.detectChanges();\n }\n}\n"]}
1
+ {"version":3,"file":"table-row-action.directive.js","sourceRoot":"","sources":["../../../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-action.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,iBAAiB,EACjB,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,MAAM,EACN,KAAK,EACL,SAAS,EACT,QAAQ,EACR,gBAAgB,EACjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EACL,WAAW,EACX,aAAa,EACb,QAAQ,EACT,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EACL,0BAA0B,EAC1B,gCAAgC,EAIjC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;;;;;AAK1E,MAAM,OAAO,uBAAuB;IAiClC,YAEI,gBAE4B,EAEX,GAAsB,EAExB,GAAqB,EAErB,wBAAkD,EAElD,QAAqB,EAGrB,SAA2B;QATzB,QAAG,GAAH,GAAG,CAAmB;QAExB,QAAG,GAAH,GAAG,CAAkB;QAErB,6BAAwB,GAAxB,wBAAwB,CAA0B;QAElD,aAAQ,GAAR,QAAQ,CAAa;QAGrB,cAAS,GAAT,SAAS,CAAkB;QA/CtC,yBAAoB,GAAG,KAAK,CAAC;QA4B7B,mBAAc,GAAyB,oBAAoB,CAAC,IAAI,CAAC;QAqBvE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b,KAAK;gBAKC,IAAI;sBAFV,KAAK;uBAAC,oBAAoB;gBAKpB,YAAY;sBADlB,KAAK;gBAIC,cAAc;sBADpB,KAAK;gBAOC,OAAO;sBADb,KAAK;gBAIW,kBAAkB;sBADlC,YAAY;uBAAC,gCAAgC;gBA2BvC,WAAW;sBADjB,YAAY;uBAAC,WAAW;gBAMlB,OAAO;sBADb,YAAY;uBAAC,OAAO,EAAE,CAAE,QAAQ,CAAE","sourcesContent":["import {\n ChangeDetectorRef,\n ContentChild,\n Directive,\n HostListener,\n Inject,\n Input,\n isDevMode,\n Optional,\n ViewContainerRef\n} from '@angular/core';\nimport { MatButton } from '@angular/material/button';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport {\n coerceArray,\n coerceBoolean,\n Required\n} from '@rxap/utilities';\nimport { TableRowActionExecutingDirective } from './table-row-action-executing.directive';\nimport { TableRowActionStatus } from './table-row-action-status';\nimport {\n IsTableRowActionTypeMethod,\n IsTableRowActionTypeSwitchMethod,\n TableRowActionMethod,\n TableRowActionTypeMethod,\n TableRowActionTypeSwitchMethod\n} from './table-row-action.method';\nimport { RXAP_TABLE_ROW_ACTION_METHOD } from './tokens';\nimport { TableDataSourceDirective } from '../table-data-source.directive';\n\n@Directive({\n selector: 'button[rxapTableRowAction]'\n})\nexport class TableRowActionDirective<Data extends Record<string, any>> {\n private _hasConfirmDirective = false;\n\n @Input('rxapConfirm')\n public set hasConfirmDirective(value: any) {\n this._hasConfirmDirective = coerceBoolean(value);\n }\n\n @Input()\n @Required\n public element!: Data;\n @Input('rxapTableRowAction')\n @Required\n public type!: string;\n\n @Input()\n public errorMessage?: string;\n\n @Input()\n public successMessage?: string;\n\n /**\n * true - after the action is executed the table datasource is refreshed\n */\n @Input()\n public refresh?: boolean;\n\n @ContentChild(TableRowActionExecutingDirective)\n private readonly executingDirective?: TableRowActionExecutingDirective;\n private _currentStatus: TableRowActionStatus = TableRowActionStatus.DONE;\n\n private readonly actionMethodList: Array<TableRowActionMethod<Data>>;\n\n constructor(\n @Inject(RXAP_TABLE_ROW_ACTION_METHOD)\n actionMethodList:\n | Array<TableRowActionMethod<Data>>\n | TableRowActionMethod<Data>,\n @Inject(ChangeDetectorRef)\n protected readonly cdr: ChangeDetectorRef,\n @Inject(ViewContainerRef)\n private readonly vcr: ViewContainerRef,\n @Inject(TableDataSourceDirective)\n private readonly tableDataSourceDirective: TableDataSourceDirective,\n @Inject(MatSnackBar)\n private readonly snackBar: MatSnackBar,\n @Optional()\n @Inject(MatButton)\n private readonly matButton: MatButton | null\n ) {\n this.actionMethodList = coerceArray(actionMethodList);\n }\n\n @HostListener('confirmed')\n public onConfirmed() {\n return this.execute();\n }\n\n @HostListener('click', [ '$event' ])\n public onClick($event: Event) {\n $event.stopPropagation();\n if (!this._hasConfirmDirective) {\n return this.execute();\n } else {\n if (isDevMode()) {\n console.debug('skip remote method call. Wait for confirmation.');\n }\n }\n return Promise.resolve();\n }\n\n public async execute(): Promise<void> {\n this.setStatus(TableRowActionStatus.EXECUTING);\n try {\n await Promise.all(\n this.getElementList().map((element) => {\n return Promise.all([\n Promise.all(\n this.findUntypedActionMethod().map((am) =>\n am.call({ element, type: this.type })\n )\n ),\n Promise.all(\n this.findTypedActionMethod().map((am) => am.call(element))\n )\n ]);\n })\n );\n this.setStatus(TableRowActionStatus.SUCCESS);\n } catch (e) {\n console.error(`Failed to execute row action: ${e.message}`);\n this.setStatus(TableRowActionStatus.ERROR);\n }\n }\n\n protected getElementList(): Data[] {\n return [ this.element ];\n }\n\n /**\n * find all method instance in the actionMethodList member that\n * do not have a @TableActionMethod decorators\n * @private\n */\n private findUntypedActionMethod(): Array<TableRowActionTypeSwitchMethod<Data>> {\n return this.actionMethodList.filter(IsTableRowActionTypeSwitchMethod);\n }\n\n /**\n * find all method instance in the actionMethodList member that\n * do have a @TableActionMethod decorators with the current type\n * @private\n */\n private findTypedActionMethod(): Array<TableRowActionTypeMethod<Data>> {\n return this.actionMethodList.filter(IsTableRowActionTypeMethod(this.type));\n }\n\n protected setButtonDisabled() {\n if (this.matButton) {\n this.matButton.disabled = true;\n }\n }\n\n protected setButtonEnabled() {\n if (this.matButton) {\n this.matButton.disabled = false;\n }\n }\n\n private setStatus(status: TableRowActionStatus) {\n if (this._currentStatus === status) {\n return;\n }\n this._currentStatus = status;\n switch (status) {\n case TableRowActionStatus.EXECUTING:\n this.setButtonDisabled();\n this.executingDirective?.show();\n break;\n case TableRowActionStatus.SUCCESS:\n if (this.refresh) {\n this.tableDataSourceDirective.refresh();\n }\n if (this.successMessage) {\n this.snackBar.open(this.successMessage, 'ok', { duration: 2560 });\n }\n this.setStatus(TableRowActionStatus.DONE);\n break;\n case TableRowActionStatus.ERROR:\n this.setStatus(TableRowActionStatus.DONE);\n if (this.errorMessage) {\n this.snackBar.open(this.errorMessage, 'ok', { duration: 5120 });\n }\n break;\n case TableRowActionStatus.DONE:\n this.setButtonEnabled();\n this.executingDirective?.hide();\n break;\n }\n this.cdr.detectChanges();\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=table-row-metadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-row-metadata.js","sourceRoot":"","sources":["../../../../../../libs/material/table-system/src/lib/table-row-metadata.ts"],"names":[],"mappings":"","sourcesContent":["import { ToggleSubject } from '@rxap/utilities/rxjs';\n\nexport interface TableRowMetadata {\n __metadata__: {\n loading$: ToggleSubject;\n };\n}\n"]}
@@ -22,6 +22,7 @@ import * as i2$2 from '@angular/material/sort';
22
22
  import { MatSort } from '@angular/material/sort';
23
23
  import { DynamicTableDataSource } from '@rxap/data-source/table';
24
24
  import { ToggleSubject } from '@rxap/utilities/rxjs';
25
+ import { pipeDataSource } from '@rxap/data-source';
25
26
  import { FormDirective } from '@rxap/forms';
26
27
  import { ControlContainer } from '@angular/forms';
27
28
  import * as i3 from '@angular/material/menu';
@@ -595,14 +596,15 @@ class TableDataSourceDirective {
595
596
  }
596
597
  ngOnInit() {
597
598
  var _a, _b, _c, _d;
599
+ const tableFilter = (_b = (_a = this._tableFilter) !== null && _a !== void 0 ? _a : this.tableFilter) !== null && _b !== void 0 ? _b : undefined;
598
600
  if (this.sourceMethod) {
599
601
  if (this.adapterFactory) {
600
- this.method = this.adapterFactory(this.sourceMethod, this.paginator, this.matSort, this.tableFilter, this.parameters);
602
+ this.method = this.adapterFactory(this.sourceMethod, this.paginator, this.matSort, tableFilter, this.parameters);
601
603
  }
602
604
  else {
603
605
  this.method = this.sourceMethod;
604
606
  }
605
- this.dataSource = new DynamicTableDataSource(this.method, this.paginator, this.matSort, this.tableFilter, this.parameters, (_a = this.method.metadata) !== null && _a !== void 0 ? _a : { id: this.id });
607
+ this.dataSource = new DynamicTableDataSource(this.method, this.paginator, this.matSort, tableFilter, this.parameters, (_c = this.method.metadata) !== null && _c !== void 0 ? _c : { id: this.id });
606
608
  }
607
609
  else if (this.sourceDataSource) {
608
610
  this.dataSource = this.sourceDataSource;
@@ -611,11 +613,13 @@ class TableDataSourceDirective {
611
613
  throw new Error('The TABLE_DATA_SOURCE and TABLE_METHOD token are not defined!');
612
614
  }
613
615
  this.dataSource.paginator = this.paginator;
614
- this.dataSource.sort = (_b = this.matSort) !== null && _b !== void 0 ? _b : undefined;
615
- this.dataSource.filter = (_d = (_c = this._tableFilter) !== null && _c !== void 0 ? _c : this.tableFilter) !== null && _d !== void 0 ? _d : undefined;
616
+ this.dataSource.sort = (_d = this.matSort) !== null && _d !== void 0 ? _d : undefined;
617
+ this.dataSource.filter = tableFilter;
616
618
  this.dataSource.parameters = this.parameters;
617
619
  this._subscription.add(this.dataSource.loading$.pipe(tap(loading => this.loading$.next(!!loading))).subscribe());
618
- this.matTable.dataSource = this.dataSource;
620
+ this.matTable.dataSource = pipeDataSource(this.dataSource, tap(rowList => rowList.forEach((element) => {
621
+ element.__metadata__ = { loading$: new ToggleSubject() };
622
+ })));
619
623
  // TODO : remove hack to trigger change detection after data source refresh (machine-definition -> physical unit)
620
624
  this._subscription.add(this.loading$
621
625
  .pipe(filter((loading) => !loading), debounceTime(2000), tap(() => this.cdr.detectChanges()), tap(() => this.cdr.markForCheck()), delay(500), tap(() => this.cdr.detectChanges()), tap(() => this.cdr.markForCheck()), delay(500), tap(() => this.cdr.detectChanges()), tap(() => this.cdr.markForCheck()), delay(500), tap(() => this.cdr.detectChanges()), tap(() => this.cdr.markForCheck()), delay(500), tap(() => this.cdr.detectChanges()), tap(() => this.cdr.markForCheck()), delay(500), tap(() => this.cdr.detectChanges()), tap(() => this.cdr.markForCheck()), delay(500))
@@ -1877,7 +1881,9 @@ class TableRowActionDirective {
1877
1881
  (_a = this.executingDirective) === null || _a === void 0 ? void 0 : _a.show();
1878
1882
  break;
1879
1883
  case TableRowActionStatus.SUCCESS:
1880
- this.tableDataSourceDirective.refresh();
1884
+ if (this.refresh) {
1885
+ this.tableDataSourceDirective.refresh();
1886
+ }
1881
1887
  if (this.successMessage) {
1882
1888
  this.snackBar.open(this.successMessage, 'ok', { duration: 2560 });
1883
1889
  }
@@ -1898,7 +1904,7 @@ class TableRowActionDirective {
1898
1904
  }
1899
1905
  }
1900
1906
  TableRowActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", 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 });
1901
- TableRowActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: TableRowActionDirective, selector: "button[rxapTableRowAction]", inputs: { hasConfirmDirective: ["rxapConfirm", "hasConfirmDirective"], element: "element", type: ["rxapTableRowAction", "type"], errorMessage: "errorMessage", successMessage: "successMessage" }, host: { listeners: { "confirmed": "onConfirmed()", "click": "onClick($event)" } }, queries: [{ propertyName: "executingDirective", first: true, predicate: TableRowActionExecutingDirective, descendants: true }], ngImport: i0 });
1907
+ TableRowActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", 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 });
1902
1908
  __decorate([
1903
1909
  Required,
1904
1910
  __metadata("design:type", Object)
@@ -1944,6 +1950,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
1944
1950
  type: Input
1945
1951
  }], successMessage: [{
1946
1952
  type: Input
1953
+ }], refresh: [{
1954
+ type: Input
1947
1955
  }], executingDirective: [{
1948
1956
  type: ContentChild,
1949
1957
  args: [TableRowActionExecutingDirective]
@@ -1 +1 @@
1
- {"version":3,"file":"rxap-material-table-system.js","sources":["../../../../../libs/material/table-system/src/lib/expand-row/expand-row-container/expand-row-content.directive.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-row.service.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-row-container/expand-row-container.component.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-row-container/expand-row-container.component.html","../../../../../libs/material/table-system/src/lib/expand-row/expand-row-container/expand-row-container.component.module.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-controls-cell/expand-controls-cell.component.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-controls-cell/expand-controls-cell.component.html","../../../../../libs/material/table-system/src/lib/expand-row/expand-controls-cell/expand-controls-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-row.directive.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-row.module.ts","../../../../../libs/material/table-system/src/lib/select-row/tokens.ts","../../../../../libs/material/table-system/src/lib/select-row/select-row.service.ts","../../../../../libs/material/table-system/src/lib/select-row/checkbox-cell/checkbox-cell.component.ts","../../../../../libs/material/table-system/src/lib/select-row/checkbox-cell/checkbox-cell.component.html","../../../../../libs/material/table-system/src/lib/select-row/checkbox-cell/checkbox-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/select-row/checkbox-header-cell/checkbox-header-cell.component.ts","../../../../../libs/material/table-system/src/lib/select-row/checkbox-header-cell/checkbox-header-cell.component.html","../../../../../libs/material/table-system/src/lib/select-row/checkbox-header-cell/checkbox-header-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/select-row/selected-rows.directive.ts","../../../../../libs/material/table-system/src/lib/select-row/select-row.module.ts","../../../../../libs/material/table-system/src/lib/row-animation.ts","../../../../../libs/material/table-system/src/lib/table-filter/table-filter.service.ts","../../../../../libs/material/table-system/src/lib/table-data-source.directive.ts","../../../../../libs/material/table-system/src/lib/table-filter/tokens.ts","../../../../../libs/material/table-system/src/lib/table-filter/filter-header-row.directive.ts","../../../../../libs/material/table-system/src/lib/table-filter/to-filter-column-names.pipe.ts","../../../../../libs/material/table-system/src/lib/table-filter/table-filter.module.ts","../../../../../libs/material/table-system/src/lib/table-column-menu/table-column-option/table-column-option.component.ts","../../../../../libs/material/table-system/src/lib/table-column-menu/table-column-option/table-column-option.component.html","../../../../../libs/material/table-system/src/lib/table-column-menu/table-column-menu.component.ts","../../../../../libs/material/table-system/src/lib/table-column-menu/table-column-menu.component.html","../../../../../libs/material/table-system/src/lib/table-column-menu/table-column-menu.component.module.ts","../../../../../libs/material/table-system/src/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.ts","../../../../../libs/material/table-system/src/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.html","../../../../../libs/material/table-system/src/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.module.ts","../../../../../libs/material/table-system/src/lib/table-create-button/tokens.ts","../../../../../libs/material/table-system/src/lib/table-create-button/table-create-button.directive.ts","../../../../../libs/material/table-system/src/lib/table-row-controls/tokens.ts","../../../../../libs/material/table-system/src/lib/table-row-controls/row-controls-cell/row-controls-cell.component.ts","../../../../../libs/material/table-system/src/lib/table-row-controls/row-controls-cell/row-controls-cell.component.html","../../../../../libs/material/table-system/src/lib/table-row-controls/row-controls-cell/row-controls-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.ts","../../../../../libs/material/table-system/src/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.html","../../../../../libs/material/table-system/src/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/table-row-controls/table-row-controls.module.ts","../../../../../libs/material/table-system/src/lib/table-select-controls/table-select-controls.component.ts","../../../../../libs/material/table-system/src/lib/table-select-controls/table-select-controls.component.html","../../../../../libs/material/table-system/src/lib/table-select-controls/table-select-controls.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/image-cell/image-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/image-cell/image-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/image-cell/image-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/icon-cell/icon-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/icon-cell/icon-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/icon-cell/icon-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/date-cell/date-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/date-cell/date-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/date-cell/date-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/link-cell/link-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/link-cell/link-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/link-cell/link-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/options-cell/options-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/options-cell/options-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/options-cell/options-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/boolean-cell/boolean-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/boolean-cell/boolean-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/boolean-cell/boolean-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/decorators.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-action-executing.directive.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-action-status.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-action.method.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/tokens.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-action.directive.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-header-action.directive.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-actions.module.ts","../../../../../libs/material/table-system/src/index.ts","../../../../../libs/material/table-system/src/rxap-material-table-system.ts"],"sourcesContent":["import {\n Directive,\n TemplateRef,\n Inject\n} from '@angular/core';\n\nexport interface ExpandCellContentDirectiveContext<Data extends Record<string, any>> {\n $implicit: Data\n}\n\n@Directive({\n selector: '[rxapExpandRowContent]'\n})\nexport class ExpandRowContentDirective<Data extends Record<string, any>> {\n\n\n static ngTemplateContextGuard<Data extends Record<string, any>>(dir: ExpandRowContentDirective<Data>, ctx: any):\n ctx is ExpandCellContentDirectiveContext<Data> {\n return true;\n }\n\n constructor(\n @Inject(TemplateRef)\n public readonly template: TemplateRef<ExpandCellContentDirectiveContext<Data>>\n ) {}\n\n}\n","import { Injectable } from '@angular/core';\nimport type { Observable } from 'rxjs';\nimport { BehaviorSubject } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\n@Injectable()\nexport class ExpandRowService<Data extends Record<string, any>> {\n public expandedRow = new BehaviorSubject<Data | null>(null);\n\n public toggleRow(row: Data): void {\n if (this.expandedRow.value === row) {\n this.expandedRow.next(null);\n } else {\n this.expandedRow.next(row);\n }\n }\n\n public isExpanded(row: Data) {\n return this.expandedRow.value === row;\n }\n\n public isExpanded$(row: Data): Observable<boolean> {\n return this.expandedRow.pipe(map((expandedRow) => expandedRow === row));\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n Input,\n ContentChild,\n ViewContainerRef,\n OnDestroy,\n AfterContentInit,\n Inject\n} from '@angular/core';\nimport {\n ExpandRowContentDirective,\n ExpandCellContentDirectiveContext\n} from './expand-row-content.directive';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { Required } from '@rxap/utilities';\nimport {\n trigger,\n state,\n style,\n transition,\n animate\n} from '@angular/animations';\nimport { ExpandRowService } from '../expand-row.service';\nimport { Subscription } from 'rxjs';\nimport {\n tap,\n filter\n} from 'rxjs/operators';\n\n@Component({\n // tslint:disable-next-line:component-selector\n selector: 'td[rxap-expand-row]',\n templateUrl: './expand-row-container.component.html',\n styleUrls: [ './expand-row-container.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-expand-row' },\n animations: [\n trigger('detailExpand', [\n state('collapsed', style({ height: '0px', minHeight: '0' })),\n state('expanded', style({ height: '*' })),\n transition('expanded <=> collapsed', animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)'))\n ])\n ]\n})\nexport class ExpandRowContainerComponent<Data extends Record<string, any>> implements AfterContentInit, OnDestroy {\n\n @Input()\n @Required\n public element!: Data;\n\n @ContentChild(ExpandRowContentDirective)\n public expandCellContent?: ExpandRowContentDirective<Data>;\n\n public portal: TemplatePortal<ExpandCellContentDirectiveContext<Data>> | null = null;\n\n private _subscription?: Subscription;\n\n constructor(\n @Inject(ViewContainerRef)\n private readonly viewContainerRef: ViewContainerRef,\n @Inject(ExpandRowService)\n public readonly expandCell: ExpandRowService<Data>\n ) {}\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n public ngAfterContentInit() {\n if (this.expandCellContent) {\n this._subscription = this.expandCell.isExpanded$(this.element).pipe(\n filter(Boolean),\n tap(() => {\n if (!this.portal) {\n this.portal = new TemplatePortal(this.expandCellContent!.template, this.viewContainerRef, { $implicit: this.element });\n }\n })\n ).subscribe();\n }\n }\n\n}\n","<div class=\"element-detail\" [@detailExpand]=\"(expandCell.isExpanded$(element) | async) ? 'expanded' : 'collapsed'\">\n <ng-content></ng-content>\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n</div>\n","import { NgModule } from '@angular/core';\nimport { ExpandRowContainerComponent } from './expand-row-container.component';\nimport { ExpandRowContentDirective } from './expand-row-content.directive';\nimport { PortalModule } from '@angular/cdk/portal';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [\n ExpandRowContainerComponent,\n ExpandRowContentDirective\n ],\n imports: [\n PortalModule,\n CommonModule\n ],\n exports: [\n ExpandRowContainerComponent,\n ExpandRowContentDirective\n ]\n})\nexport class ExpandRowContainerComponentModule {}\n","import {\n Component,\n ChangeDetectionStrategy,\n Input,\n Inject\n} from '@angular/core';\nimport { ExpandRowService } from '../expand-row.service';\nimport { Required } from '@rxap/utilities';\n\n@Component({\n // tslint:disable-next-line:component-selector\n selector: 'td[rxap-expand-controls-cell]',\n templateUrl: './expand-controls-cell.component.html',\n styleUrls: [ './expand-controls-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-expand-controls-cell' }\n})\nexport class ExpandControlsCellComponent<Data extends Record<string, any>> {\n\n @Input()\n @Required\n public element!: Data;\n\n constructor(\n @Inject(ExpandRowService)\n public readonly expandCell: ExpandRowService<Data>\n ) {}\n\n}\n","<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","import { NgModule } from '@angular/core';\nimport { ExpandControlsCellComponent } from './expand-controls-cell.component';\nimport { CommonModule } from '@angular/common';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatButtonModule } from '@angular/material/button';\n\n\n@NgModule({\n declarations: [ ExpandControlsCellComponent ],\n imports: [\n CommonModule,\n MatIconModule,\n MatButtonModule\n ],\n exports: [ ExpandControlsCellComponent ]\n})\nexport class ExpandControlsCellComponentModule {}\n","import {\n Directive,\n Input,\n HostListener,\n Inject\n} from '@angular/core';\nimport { ExpandRowService } from './expand-row.service';\nimport { Required } from '@rxap/utilities';\n\n@Directive({\n selector: 'tr[rxapExpandRow]'\n})\nexport class ExpandRowDirective<Data extends Record<string, any>> {\n\n @HostListener('expanded-row')\n public get isExpanded() {\n return this.expandCell.isExpanded(this.element);\n }\n\n @Input()\n @Required\n public element!: Data;\n\n constructor(\n @Inject(ExpandRowService)\n private readonly expandCell: ExpandRowService<Data>\n ) { }\n\n @HostListener('click')\n public onClick() {\n this.expandCell.toggleRow(this.element);\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { ExpandRowContainerComponentModule } from './expand-row-container/expand-row-container.component.module';\nimport { ExpandControlsCellComponentModule } from './expand-controls-cell/expand-controls-cell.component.module';\nimport { ExpandRowService } from './expand-row.service';\nimport { ExpandRowDirective } from './expand-row.directive';\n\n@NgModule({\n exports: [\n ExpandRowContainerComponentModule,\n ExpandControlsCellComponentModule,\n ExpandRowDirective\n ],\n providers: [\n ExpandRowService\n ],\n declarations: [ ExpandRowDirective ]\n})\nexport class ExpandRowModule {}\n","import { InjectionToken } from '@angular/core';\nimport { SelectRowOptions } from './select-row.options';\n\nexport const RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS = new InjectionToken<SelectRowOptions>('rxap-material/table-system/select-row/options');\n","import { Injectable, Optional, Inject } from '@angular/core';\nimport { SelectionModel } from '@angular/cdk/collections';\nimport type { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { SelectRowOptions } from './select-row.options';\nimport { RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS } from './tokens';\n\n@Injectable()\nexport class SelectRowService<Data extends Record<string, any>> {\n public selectedRows$: Observable<Data[]>;\n\n public readonly selectionModel = new SelectionModel<Data>(true);\n\n public get selectedRows(): Data[] {\n return this.selectionModel.selected;\n }\n\n constructor(\n @Optional()\n @Inject(RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS)\n options: SelectRowOptions<Data> | null = null\n ) {\n this.selectionModel = new SelectionModel<Data>(options?.multiple);\n if (options?.selected) {\n this.selectionModel.select(...options?.selected);\n }\n this.selectedRows$ = this.selectionModel.changed.pipe(\n map(() => this.selectionModel.selected)\n );\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n Input,\n Inject\n} from '@angular/core';\nimport { Required } from '@rxap/utilities';\nimport { SelectRowService } from '../select-row.service';\n\n@Component({\n selector: 'td[rxap-checkbox-cell]',\n templateUrl: './checkbox-cell.component.html',\n styleUrls: [ './checkbox-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.Default,\n host: { class: 'rxap-checkbox-cell' }\n})\nexport class CheckboxCellComponent<Data extends Record<string, any>> {\n\n @Input()\n @Required\n public element!: Data;\n\n constructor(\n @Inject(SelectRowService)\n public readonly selectRow: SelectRowService<Data>\n ) {}\n\n}\n","<mat-checkbox\n (change)=\"selectRow.selectionModel.toggle(element)\"\n [checked]=\"selectRow.selectionModel.isSelected(element)\">\n</mat-checkbox>\n","import { NgModule } from '@angular/core';\nimport { CheckboxCellComponent } from './checkbox-cell.component';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [ CheckboxCellComponent ],\n imports: [\n MatCheckboxModule,\n CommonModule\n ],\n exports: [ CheckboxCellComponent ]\n})\nexport class CheckboxCellComponentModule {}\n","import {\n Component,\n ChangeDetectionStrategy,\n OnInit,\n Inject,\n} from '@angular/core';\nimport { SelectRowService } from '../select-row.service';\nimport type { Observable } from 'rxjs';\nimport { EMPTY } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { MatCheckboxChange } from '@angular/material/checkbox';\nimport { CdkTable } from '@angular/cdk/table';\n\n@Component({\n selector: 'th[rxap-checkbox-header-cell]',\n templateUrl: './checkbox-header-cell.component.html',\n styleUrls: ['./checkbox-header-cell.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-checkbox-header-cell' },\n})\nexport class CheckboxHeaderCellComponent<Data extends Record<string, any>>\n implements OnInit\n{\n public indeterminate$: Observable<boolean> = EMPTY;\n public checked$: Observable<boolean> = EMPTY;\n\n public isMultipleSelection = false;\n\n constructor(\n @Inject(CdkTable)\n private readonly cdkTable: CdkTable<Data>,\n private readonly selectRow: SelectRowService<Data>\n ) {\n this.isMultipleSelection =\n this.selectRow.selectionModel.isMultipleSelection();\n }\n\n public ngOnInit() {\n this.indeterminate$ = this.selectRow.selectedRows$.pipe(\n map(\n (selectedRows) =>\n !!selectedRows.length &&\n this.cdkTable['_data'].length !== selectedRows.length\n )\n );\n this.checked$ = this.selectRow.selectedRows$.pipe(\n map(\n (selectedRows) =>\n !!selectedRows.length &&\n this.cdkTable['_data'].length === selectedRows.length\n )\n );\n }\n\n public onChange($event: MatCheckboxChange) {\n if ($event.checked) {\n this.selectRow.selectionModel.select(...this.cdkTable['_data']);\n } else {\n this.selectRow.selectionModel.clear();\n }\n }\n}\n","<mat-checkbox\n *ngIf=\"isMultipleSelection\"\n (change)=\"onChange($event)\"\n [indeterminate]=\"indeterminate$ | async\"\n [checked]=\"(checked$ | async) ?? false\">\n</mat-checkbox>\n","import { NgModule } from '@angular/core';\nimport { CheckboxHeaderCellComponent } from './checkbox-header-cell.component';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [ CheckboxHeaderCellComponent ],\n imports: [\n MatCheckboxModule,\n CommonModule\n ],\n exports: [ CheckboxHeaderCellComponent ]\n})\nexport class CheckboxHeaderCellComponentModule {}\n","import {\n Directive,\n TemplateRef,\n ViewContainerRef,\n OnInit,\n OnDestroy,\n ChangeDetectorRef,\n Inject,\n Input,\n Optional\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { SelectRowService } from './select-row.service';\nimport {\n map,\n tap,\n distinctUntilChanged\n} from 'rxjs/operators';\nimport { CdkTable } from '@angular/cdk/table';\nimport { MatTable } from '@angular/material/table';\n\nexport interface SelectedRowsDirectiveContext<Data extends Record<string, any>> {\n $implicit: Data[];\n}\n\n@Directive({\n selector: '[rxapSelectedRows]'\n})\nexport class SelectedRowsDirective<Data extends Record<string, any>> implements OnInit, OnDestroy {\n\n private _subscription?: Subscription;\n\n constructor(\n @Inject(TemplateRef)\n private readonly template: TemplateRef<SelectedRowsDirectiveContext<Data>>,\n @Inject(ViewContainerRef)\n private readonly viewContainerRef: ViewContainerRef,\n @Inject(ChangeDetectorRef)\n private readonly cdr: ChangeDetectorRef,\n @Inject(SelectRowService)\n private readonly selectRowService: SelectRowService<Data>\n ) {}\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n public ngOnInit() {\n this._subscription = this.selectRowService.selectedRows$.pipe(\n distinctUntilChanged(),\n tap(selectedAllRows => {\n this.viewContainerRef.clear();\n if (selectedAllRows) {\n this.viewContainerRef.createEmbeddedView(this.template, { $implicit: this.selectRowService.selectedRows });\n }\n this.cdr.detectChanges();\n })\n ).subscribe();\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CheckboxCellComponentModule } from './checkbox-cell/checkbox-cell.component.module';\nimport { CheckboxHeaderCellComponentModule } from './checkbox-header-cell/checkbox-header-cell.component.module';\nimport { SelectedRowsDirective } from './selected-rows.directive';\n\n\n@NgModule({\n exports: [\n CheckboxCellComponentModule,\n CheckboxHeaderCellComponentModule,\n SelectedRowsDirective\n ],\n declarations: [ SelectedRowsDirective ]\n})\nexport class SelectRowModule {}\n","import {\n trigger,\n transition,\n style,\n sequence,\n animate\n} from '@angular/animations';\n\nconst offset = '50';\n\nexport const RowAnimation = trigger('rowsAnimation', [\n transition('void => *', [\n style({\n height: '*',\n opacity: '0',\n transform: 'translateY(' + (-offset).toString() + 'px)',\n 'box-shadow': 'none'\n }),\n sequence([\n animate('.2s ease', style({\n height: '*',\n opacity: '.2',\n transform: 'translateX(0)',\n 'box-shadow': 'none'\n })),\n animate('.35s ease', style({ height: '*', opacity: 1, transform: 'translateX(0)' }))\n ])\n ]),\n transition('* => void', [\n style({ height: '0', opacity: '0', 'box-shadow': 'none' })\n ])\n]);\n","import { FilterLike } from '@rxap/data-source/table';\nimport {\n Injectable,\n OnDestroy\n} from '@angular/core';\nimport {\n ReplaySubject,\n Subscription\n} from 'rxjs';\n\n@Injectable()\nexport class TableFilterService implements FilterLike, OnDestroy {\n\n public readonly change = new ReplaySubject<Record<string, any>>(1);\n\n public current: Record<string, any> = {};\n\n private _subscription: Subscription;\n\n constructor() {\n this._subscription = this.change.subscribe(current => this.current = current);\n }\n\n public set(key: string, value: any): void {\n const current = this.current;\n current[ key ] = value;\n this.change.next(current);\n }\n\n public remove(key: string): void {\n const current = this.current;\n if (current.hasOwnProperty(key)) {\n delete current[ key ];\n }\n this.change.next(current);\n }\n\n public ngOnDestroy() {\n this._subscription.unsubscribe();\n }\n\n}\n","import {\n ChangeDetectorRef,\n Directive,\n Inject,\n InjectionToken,\n Input,\n NgModule,\n OnDestroy,\n OnInit,\n Optional\n} from '@angular/core';\nimport type { MatPaginator } from '@angular/material/paginator';\nimport type { Observable } from 'rxjs';\nimport { Subscription } from 'rxjs';\nimport { MatSort } from '@angular/material/sort';\nimport type {\n AbstractTableDataSource,\n FilterLike\n} from '@rxap/data-source/table';\nimport {\n DynamicTableDataSource,\n TableEvent,\n SortLike\n} from '@rxap/data-source/table';\nimport { BaseRemoteMethod } from '@rxap/remote-method';\nimport { PaginatorLike } from '@rxap/data-source/pagination';\nimport { CdkTable } from '@angular/cdk/table';\nimport { TableFilterService } from './table-filter/table-filter.service';\nimport {\n debounceTime,\n delay,\n filter,\n tap\n} from 'rxjs/operators';\nimport { Required } from '@rxap/utilities';\nimport {\n Method,\n ToggleSubject\n} from '@rxap/utilities/rxjs';\n\n// TODO : add migration schematic\nexport const RXAP_TABLE_METHOD = new InjectionToken(\n 'rxap/material/table-system/table-method'\n);\n/**\n * @deprecated use TABLE_METHOD instead\n */\nexport const TABLE_REMOTE_METHOD = RXAP_TABLE_METHOD;\nexport const TABLE_REMOTE_METHOD_ADAPTER_FACTORY = new InjectionToken(\n 'table-remote-method-adapter-factory'\n);\nexport const RXAP_TABLE_FILTER = new InjectionToken('rxap/material-table-system/table-filter');\nexport const TABLE_DATA_SOURCE = new InjectionToken('table-data-source');\n\nexport type TableRemoteMethodAdapterFactory<\n Data extends Record<string, any> = Record<string, any>\n> = (\n method: Method,\n paginator?: PaginatorLike,\n sort?: SortLike | null,\n filter?: TableFilterService | null,\n parameters?: Observable<Record<string, any>>\n) => BaseRemoteMethod<Data[], TableEvent>;\n\n@Directive({\n selector:\n 'table[mat-table][rxapTableDataSource],mat-table[rxapTableDataSource]',\n exportAs: 'rxapTableDataSource'\n})\nexport class TableDataSourceDirective<Data extends Record<string, any> = any>\n implements OnInit, OnDestroy {\n /**\n * @deprecated use dataSource instead\n */\n @Input('rxapTableDataSource')\n public set setDataSource(dataSource: AbstractTableDataSource<Data> | '') {\n if (typeof dataSource !== 'string') {\n this.dataSource = dataSource;\n }\n }\n\n @Input()\n public paginator?: MatPaginator;\n\n public readonly loading$ = new ToggleSubject(true);\n\n @Input()\n @Required\n public id!: string;\n @Input()\n public parameters?: Observable<Record<string, any>>;\n @Input()\n public dataSource?: AbstractTableDataSource<Data>;\n\n public method?: Method<Data[], TableEvent>;\n\n /**\n * @deprecated use method instead\n */\n public get remoteMethod(): Method<Data[], TableEvent> | undefined {\n return this.method;\n }\n\n /**\n * @deprecated use sourceMethod instead\n */\n public get sourceRemoteMethod(): Method<\n Data[] | any,\n TableEvent | any\n > | null {\n return this.sourceMethod;\n }\n\n protected _subscription = new Subscription();\n\n private readonly adapterFactory: TableRemoteMethodAdapterFactory<Data> | null =\n null;\n\n constructor(\n @Inject(CdkTable)\n private readonly matTable: CdkTable<Data>,\n protected readonly cdr: ChangeDetectorRef,\n @Optional()\n @Inject(RXAP_TABLE_METHOD)\n private readonly sourceMethod: Method<Data[] | any,\n TableEvent | any> | null,\n @Optional()\n @Inject(TABLE_DATA_SOURCE)\n private readonly sourceDataSource: AbstractTableDataSource<Data> | null,\n @Optional()\n @Inject(TABLE_REMOTE_METHOD_ADAPTER_FACTORY)\n adapterFactory: any,\n @Optional()\n @Inject(MatSort)\n private readonly matSort: MatSort | null,\n @Optional()\n @Inject(TableFilterService)\n private readonly tableFilter: TableFilterService | null,\n @Optional()\n @Inject(RXAP_TABLE_FILTER)\n private readonly _tableFilter: FilterLike | null\n ) {\n this.matTable.trackBy = this.trackBy;\n this.adapterFactory = adapterFactory;\n }\n\n private trackBy(index: number, item: Data): string | number {\n return item.uuid ?? index;\n }\n\n public ngOnInit() {\n if (this.sourceMethod) {\n if (this.adapterFactory) {\n this.method = this.adapterFactory(\n this.sourceMethod,\n this.paginator,\n this.matSort,\n this.tableFilter,\n this.parameters\n );\n } else {\n this.method = this.sourceMethod;\n }\n this.dataSource = new DynamicTableDataSource<Data>(\n this.method,\n this.paginator,\n this.matSort,\n this.tableFilter,\n this.parameters,\n this.method.metadata ?? { id: this.id }\n );\n } else if (this.sourceDataSource) {\n this.dataSource = this.sourceDataSource;\n } else if (!this.dataSource) {\n throw new Error(\n 'The TABLE_DATA_SOURCE and TABLE_METHOD token are not defined!'\n );\n }\n this.dataSource.paginator = this.paginator;\n this.dataSource.sort = this.matSort ?? undefined;\n this.dataSource.filter = this._tableFilter ?? this.tableFilter ?? undefined;\n this.dataSource.parameters = this.parameters;\n this._subscription.add(\n this.dataSource.loading$.pipe(\n tap(loading => this.loading$.next(!!loading))\n ).subscribe()\n );\n this.matTable.dataSource = this.dataSource;\n // TODO : remove hack to trigger change detection after data source refresh (machine-definition -> physical unit)\n this._subscription.add(\n this.loading$\n .pipe(\n filter((loading) => !loading),\n debounceTime(2000),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500)\n )\n .subscribe()\n );\n }\n\n public ngOnDestroy() {\n this._subscription.unsubscribe();\n }\n\n public refresh() {\n this.dataSource?.refresh();\n }\n}\n\n@NgModule({\n exports: [TableDataSourceDirective],\n declarations: [TableDataSourceDirective],\n})\nexport class TableDataSourceModule {}\n","import { InjectionToken } from '@angular/core';\n\nexport const RXAP_TABLE_FILTER_FORM_DEFINITION = new InjectionToken('rxap/form-table-system/filter-form-definition');\n","import { FormDirective, FormDefinition } from '@rxap/forms';\nimport {\n ChangeDetectorRef,\n Directive,\n forwardRef,\n Inject,\n OnDestroy,\n OnInit,\n Optional,\n} from '@angular/core';\nimport { TableFilterService } from './table-filter.service';\nimport { Subscription } from 'rxjs';\nimport { debounceTime, distinctUntilChanged, map } from 'rxjs/operators';\nimport { RXAP_TABLE_FILTER_FORM_DEFINITION } from './tokens';\nimport { ControlContainer } from '@angular/forms';\nimport { equals } from '@rxap/utilities';\n\n@Directive({\n // tslint:disable-next-line:directive-selector\n selector: 'table[rxap-filter-header-row]',\n providers: [\n {\n provide: ControlContainer,\n // ignore coverage\n useExisting: forwardRef(() => FilterHeaderRowDirective),\n },\n ],\n})\nexport class FilterHeaderRowDirective\n extends FormDirective\n implements OnInit, OnDestroy\n{\n private _subscription?: Subscription;\n\n constructor(\n private readonly tableFilter: TableFilterService,\n cdr: ChangeDetectorRef,\n @Optional()\n @Inject(RXAP_TABLE_FILTER_FORM_DEFINITION)\n formDefinition: FormDefinition | null\n ) {\n super(cdr, formDefinition);\n }\n\n public ngOnInit() {\n super.ngOnInit();\n this._subscription = this.form.value$\n .pipe(\n debounceTime(1000),\n map((values) =>\n Object.entries(values)\n .filter(\n ([key, value]) =>\n value !== null && value !== undefined && value !== ''\n )\n .reduce((obj, [key, value]) => ({ ...obj, [key]: value }), {})\n ),\n distinctUntilChanged((a, b) => equals(a, b))\n )\n .subscribe(this.tableFilter.change);\n }\n\n public ngOnDestroy() {\n super.ngOnDestroy();\n this._subscription?.unsubscribe();\n }\n}\n","import {\n PipeTransform,\n Pipe\n} from '@angular/core';\n\n@Pipe({\n name: 'toFilterColumnNames'\n})\nexport class ToFilterColumnNamesPipe implements PipeTransform {\n\n public transform(columns: string[]): string[] {\n return columns.map(column => 'filter_' + column);\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { ToFilterColumnNamesPipe } from './to-filter-column-names.pipe';\nimport { FilterHeaderRowDirective } from './filter-header-row.directive';\n\n\n@NgModule({\n exports: [\n ToFilterColumnNamesPipe,\n FilterHeaderRowDirective\n ],\n declarations: [\n ToFilterColumnNamesPipe,\n FilterHeaderRowDirective\n ]\n})\nexport class TableFilterModule {\n}\n","import { Component, ElementRef, Input, Inject } from '@angular/core';\nimport { coerceBoolean, Required } from '@rxap/utilities';\n\n@Component({\n selector: 'rxap-table-column-option',\n templateUrl: './table-column-option.component.html',\n styleUrls: ['./table-column-option.component.css'],\n})\nexport class TableColumnOptionComponent {\n @Input()\n @Required\n public name!: string;\n\n @Input()\n public active: boolean = true;\n\n /**\n * The displayed value of the option. It is necessary to show the selected option in the\n * select's trigger.\n */\n get display(): string {\n return (this._element.nativeElement.textContent || '').trim();\n }\n\n @Input()\n public set inactive(value: boolean | '') {\n this.active = !coerceBoolean(value);\n }\n\n @Input()\n public set hidden(value: boolean | '') {\n this._hidden = coerceBoolean(value);\n }\n\n public get hidden(): boolean | '' {\n return this._hidden;\n }\n\n private _hidden = false;\n\n @Input()\n public set show(value: boolean) {\n this._hidden = !value;\n }\n\n constructor(\n @Inject(ElementRef)\n private _element: ElementRef<HTMLElement>\n ) {}\n\n public toggle(): void {\n this.active = !this.active;\n }\n\n public activate() {\n this.active = true;\n }\n\n public deactivate() {\n this.active = false;\n }\n}\n","<ng-content></ng-content>\n","import type { QueryList } from '@angular/core';\nimport {\n Component,\n ChangeDetectionStrategy,\n ContentChildren,\n AfterContentInit,\n Input,\n HostBinding,\n} from '@angular/core';\nimport { TableColumnOptionComponent } from './table-column-option/table-column-option.component';\nimport { coerceBoolean } from '@rxap/utilities';\n\n@Component({\n selector: 'rxap-table-column-menu',\n templateUrl: './table-column-menu.component.html',\n styleUrls: ['./table-column-menu.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'mfd-table-column-menu' },\n exportAs: 'rxapTableColumns',\n})\nexport class TableColumnMenuComponent implements AfterContentInit {\n @ContentChildren(TableColumnOptionComponent)\n public columns?: QueryList<TableColumnOptionComponent>;\n\n public displayColumns: string[] = [];\n\n @Input()\n public set matCard(value: boolean | '') {\n this._matCardMode = coerceBoolean(value);\n }\n\n @HostBinding('class.mat-card-mode')\n private _matCardMode: boolean = false;\n\n public ngAfterContentInit() {\n this.updateDisplayColumns();\n }\n\n public updateDisplayColumns() {\n if (!this.columns) {\n throw new Error(\n 'Could not query content children of TableColumnOptionComponent'\n );\n }\n this.displayColumns = this.columns\n .filter((option) => option.active)\n .map((option) => option.name);\n }\n\n public activate(columnName: string) {\n this.columns\n ?.filter((option) => option.name === columnName)\n .forEach((column) => column.activate());\n this.updateDisplayColumns();\n }\n\n public deactivate(columnName: string) {\n this.columns\n ?.filter((option) => option.name === columnName)\n .forEach((column) => column.deactivate());\n this.updateDisplayColumns();\n }\n}\n","<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","import { NgModule } from '@angular/core';\nimport { TableColumnMenuComponent } from './table-column-menu.component';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { CommonModule } from '@angular/common';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { TableColumnOptionComponent } from './table-column-option/table-column-option.component';\nimport { StopPropagationDirectiveModule } from '@rxap/directives';\nimport { FlexLayoutModule } from '@angular/flex-layout';\n\n\n@NgModule({\n declarations: [ TableColumnMenuComponent, TableColumnOptionComponent ],\n imports: [\n MatButtonModule,\n MatIconModule,\n MatMenuModule,\n CommonModule,\n MatCheckboxModule,\n StopPropagationDirectiveModule,\n FlexLayoutModule\n ],\n exports: [ TableColumnMenuComponent, TableColumnOptionComponent, MatMenuModule ]\n})\nexport class TableColumnMenuComponentModule {}\n","import {\n Component,\n ChangeDetectionStrategy,\n} from '@angular/core';\nimport { MatSlideToggleChange } from '@angular/material/slide-toggle';\nimport { TableFilterService } from '../../table-filter/table-filter.service';\nimport { TableColumnMenuComponent } from '../table-column-menu.component';\n\n@Component({\n selector: 'mfd-table-show-archived-slide',\n templateUrl: './table-show-archived-slide.component.html',\n styleUrls: ['./table-show-archived-slide.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'mfd-table-show-archived-slide'},\n})\nexport class TableShowArchivedSlideComponent {\n\n constructor(\n private readonly tableFilter: TableFilterService,\n private readonly tableColumnMenu: TableColumnMenuComponent,\n ) {}\n\n public onChange($event: MatSlideToggleChange) {\n this.tableFilter.set('__archived', $event.checked);\n if ($event.checked) {\n this.tableColumnMenu.activate('removedAt');\n } else {\n this.tableColumnMenu.deactivate('removedAt');\n }\n }\n\n}\n","<div rxapStopPropagation>\n <mat-slide-toggle (change)=\"onChange($event)\" i18n=\"@@rxap.material.table-system.table-column-menu.table-show-archived-slide\">\n Show archived documents\n </mat-slide-toggle>\n</div>\n","import { NgModule } from '@angular/core';\nimport { TableShowArchivedSlideComponent } from './table-show-archived-slide.component';\nimport { StopPropagationDirectiveModule } from '@rxap/directives';\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\n\n\n@NgModule({\n declarations: [TableShowArchivedSlideComponent],\n imports: [\n StopPropagationDirectiveModule,\n MatSlideToggleModule,\n ],\n exports: [TableShowArchivedSlideComponent],\n})\nexport class TableShowArchivedSlideComponentModule {\n}\n","import { InjectionToken } from '@angular/core';\nimport { Method } from '@rxap/utilities/rxjs';\n\nexport const TABLE_CREATE_REMOTE_METHOD = new InjectionToken<Method>('table-create-remote-method');\n","import {\n Directive,\n ElementRef,\n HostListener,\n Inject,\n Input,\n NgModule,\n OnInit,\n Renderer2\n} from '@angular/core';\nimport { Required } from '@rxap/utilities';\nimport {\n isObservable,\n Observable\n} from 'rxjs';\nimport { TableDataSourceDirective } from '../table-data-source.directive';\nimport { TABLE_CREATE_REMOTE_METHOD } from './tokens';\nimport { Method } from '@rxap/utilities/rxjs';\n\n@Directive({\n selector: 'button[rxapTableCreate]',\n})\nexport class TableCreateButtonDirective<Data extends Record<string, any>>\n implements OnInit\n{\n @Input('rxapTableCreate')\n @Required\n public dataSource!: TableDataSourceDirective<Data>;\n\n constructor(\n @Inject(TABLE_CREATE_REMOTE_METHOD)\n private readonly remoteMethod: Method<any, Data | Observable<Data>>,\n @Inject(ElementRef)\n private readonly elementRef: ElementRef,\n @Inject(Renderer2)\n private readonly renderer: Renderer2\n ) {}\n\n public ngOnInit() {\n this.renderer.setStyle(\n this.elementRef.nativeElement,\n 'margin-bottom',\n '6px'\n );\n }\n\n @HostListener('click')\n public async onClick() {\n const result = await this.remoteMethod.call();\n if (isObservable(result)) {\n await result.toPromise();\n }\n this.dataSource.refresh();\n }\n}\n\n@NgModule({\n declarations: [TableCreateButtonDirective],\n exports: [TableCreateButtonDirective],\n})\nexport class TableCreateButtonDirectiveModule {}\n","import { InjectionToken } from '@angular/core';\nimport { OpenApiRemoteMethod } from '@rxap/open-api/remote-method';\nimport { BaseRemoteMethod } from '@rxap/remote-method';\n\nexport const ROW_ARCHIVE_METHOD = new InjectionToken<OpenApiRemoteMethod<any, { uuid: string }>>('archive-remote-method');\nexport const ROW_RESTORE_METHOD = new InjectionToken<OpenApiRemoteMethod<any, { uuid: string }>>('unarchive-remote-method');\nexport const ROW_DELETE_METHOD = new InjectionToken<OpenApiRemoteMethod<any, { uuid: string }>>('delete-remote-method');\nexport const ROW_EDIT_METHOD = new InjectionToken<BaseRemoteMethod<any, Record<string, any>>>('edit-remote-method');\nexport const ROW_VIEW_METHOD = new InjectionToken<BaseRemoteMethod<any, Record<string, any>>>('view-remote-method');\nexport const ROW_LINK_METHOD = new InjectionToken<BaseRemoteMethod<any, Record<string, any>>>('link-remote-method');\nexport const ROW_EDIT_LOADER_METHOD = new InjectionToken<BaseRemoteMethod<Record<string, any>, Record<string, any>>>('edit-loader-method');\n","import {\n ChangeDetectionStrategy,\n Component,\n Inject,\n Input,\n Optional\n} from '@angular/core';\nimport { Required } from '@rxap/utilities';\nimport {\n ROW_ARCHIVE_METHOD,\n ROW_DELETE_METHOD,\n ROW_EDIT_LOADER_METHOD,\n ROW_EDIT_METHOD,\n ROW_LINK_METHOD,\n ROW_RESTORE_METHOD,\n ROW_VIEW_METHOD\n} from '../tokens';\nimport { OpenApiRemoteMethod } from '@rxap/open-api/remote-method';\nimport { TableDataSourceDirective } from '../../table-data-source.directive';\nimport {\n isObservable,\n Observable\n} from 'rxjs';\nimport { Method } from '@rxap/utilities/rxjs';\n\n@Component({\n selector: 'td[mfd-row-controls-cell]',\n templateUrl: './row-controls-cell.component.html',\n styleUrls: [ './row-controls-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'mfd-row-controls-cell' }\n})\nexport class RowControlsCellComponent<Data extends Record<string, any> & { uuid: string }> {\n\n @Input()\n @Required\n public element!: Data;\n\n constructor(\n private readonly tableDataSource: TableDataSourceDirective<Data>,\n @Optional()\n @Inject(ROW_DELETE_METHOD)\n public readonly deleteRemoteMethod: OpenApiRemoteMethod<any, { uuid: string }> | null = null,\n @Optional()\n @Inject(ROW_ARCHIVE_METHOD)\n public readonly archiveRemoteMethod: OpenApiRemoteMethod<any, { uuid: string }> | null = null,\n @Optional()\n @Inject(ROW_RESTORE_METHOD)\n public readonly unarchiveRemoteMethod: OpenApiRemoteMethod<any, { uuid: string }> | null = null,\n @Optional()\n @Inject(ROW_EDIT_METHOD)\n public readonly editRemoteMethod: Method<any, Data | Observable<Data>> | null = null,\n @Optional()\n @Inject(ROW_VIEW_METHOD)\n public readonly rowViewMethod: Method<any, { uuid: string }> | null = null,\n @Optional()\n @Inject(ROW_LINK_METHOD)\n public readonly rowLinkMethod: Method<any, { uuid: string }> | null = null,\n @Optional()\n @Inject(ROW_EDIT_LOADER_METHOD)\n public readonly editLoaderMethod: Method<any, Data> | null = null\n ) {}\n\n public async archive() {\n if (this.archiveRemoteMethod) {\n await this.archiveRemoteMethod.call({ parameters: { uuid: this.element.uuid } });\n this.tableDataSource.refresh();\n }\n }\n\n public async unarchive() {\n if (this.unarchiveRemoteMethod) {\n await this.unarchiveRemoteMethod.call({ parameters: { uuid: this.element.uuid } });\n this.tableDataSource.refresh();\n }\n }\n\n public async remove() {\n if (this.deleteRemoteMethod) {\n await this.deleteRemoteMethod.call({ parameters: { uuid: this.element.uuid } });\n this.tableDataSource.refresh();\n }\n }\n\n public async view() {\n if (this.rowViewMethod) {\n await this.rowViewMethod.call(this.element);\n }\n }\n\n public async link() {\n if (this.rowLinkMethod) {\n await this.rowLinkMethod.call(this.element);\n }\n }\n\n public async edit() {\n if (this.editRemoteMethod) {\n let initial = this.element;\n if (this.editLoaderMethod) {\n initial = await this.editLoaderMethod.call(initial);\n }\n const result = await this.editRemoteMethod.call(initial, { context: this.element });\n if (isObservable(result)) {\n await result.toPromise();\n }\n this.tableDataSource.refresh();\n }\n }\n}\n","<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öschen\"\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","import { NgModule } from '@angular/core';\nimport { RowControlsCellComponent } from './row-controls-cell.component';\nimport { CommonModule } from '@angular/common';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { ConfirmComponentModule } from '@rxap/components';\nimport { MatTooltipModule } from '@angular/material/tooltip';\n\n\n@NgModule({\n declarations: [ RowControlsCellComponent ],\n imports: [\n CommonModule,\n FlexLayoutModule,\n MatButtonModule,\n MatIconModule,\n ConfirmComponentModule,\n MatTooltipModule\n ],\n exports: [ RowControlsCellComponent ]\n})\nexport class RowControlsCellComponentModule {\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Inject,\n Optional,\n} from '@angular/core';\nimport { TableFilterService } from '../../table-filter/table-filter.service';\nimport type { Observable } from 'rxjs';\nimport { of } from 'rxjs';\nimport { distinctUntilChanged, map, startWith } from 'rxjs/operators';\nimport {\n ROW_ARCHIVE_METHOD,\n ROW_DELETE_METHOD,\n ROW_RESTORE_METHOD,\n} from '../tokens';\nimport { TableDataSourceDirective } from '../../table-data-source.directive';\nimport { SelectRowService } from '../../select-row/select-row.service';\nimport { OpenApiRemoteMethod } from '@rxap/open-api/remote-method';\n\n@Component({\n selector: 'th[mfd-row-controls-header-cell]',\n templateUrl: './row-controls-header-cell.component.html',\n styleUrls: ['./row-controls-header-cell.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'mfd-row-controls-header-cell' },\n})\nexport class RowControlsHeaderCellComponent<Data extends Record<string, any>> {\n public showArchive$: Observable<boolean>;\n\n public showUnarchive$: Observable<boolean>;\n\n public showDelete$: Observable<boolean>;\n\n public disabled$: Observable<boolean>;\n\n constructor(\n private readonly tableDataSource: TableDataSourceDirective<Data>,\n @Optional()\n @Inject(TableFilterService)\n private readonly tableFilter: TableFilterService | null = null,\n @Optional()\n @Inject(SelectRowService)\n public readonly selectRow: SelectRowService<Data> | null = null,\n @Optional()\n @Inject(ROW_DELETE_METHOD)\n private readonly deleteRemoteMethod: OpenApiRemoteMethod<\n any,\n { uuid: string }\n > | null = null,\n @Optional()\n @Inject(ROW_ARCHIVE_METHOD)\n private readonly archiveRemoteMethod: OpenApiRemoteMethod<\n any,\n { uuid: string }\n > | null = null,\n @Optional()\n @Inject(ROW_RESTORE_METHOD)\n private readonly unarchiveRemoteMethod: OpenApiRemoteMethod<\n any,\n { uuid: string }\n > | null = null\n ) {\n this.disabled$ =\n this.selectRow?.selectedRows$.pipe(\n map((selectedRows) => selectedRows.length === 0),\n startWith(true)\n ) ?? of(true);\n this.showUnarchive$ = this.showDelete$ =\n this.tableFilter?.change.pipe(\n map(\n (filter) =>\n filter &&\n filter.hasOwnProperty('__archived') &&\n filter['__archived'] === true\n ),\n distinctUntilChanged()\n ) ?? of(false);\n this.showArchive$ =\n this.tableFilter?.change.pipe(\n map(\n (filter) =>\n !filter ||\n !filter.hasOwnProperty('__archived') ||\n filter['__archived'] === false\n ),\n distinctUntilChanged()\n ) ?? of(true);\n }\n\n public async archiveSelected(selectedRows: Data[] | undefined) {\n if (this.archiveRemoteMethod && selectedRows) {\n await Promise.all(\n selectedRows.map((selectedRow) =>\n this.archiveRemoteMethod?.call({\n parameters: { uuid: selectedRow.uuid },\n })\n )\n );\n this.tableDataSource.refresh();\n }\n }\n\n public async unarchiveSelected(selectedRows: Data[] | undefined) {\n if (this.unarchiveRemoteMethod && selectedRows) {\n await Promise.all(\n selectedRows.map((selectedRow) =>\n this.unarchiveRemoteMethod?.call({\n parameters: { uuid: selectedRow.uuid },\n })\n )\n );\n this.tableDataSource.refresh();\n }\n }\n\n public async deleteSelected(selectedRows: Data[] | undefined) {\n if (this.deleteRemoteMethod && selectedRows) {\n await Promise.all(\n selectedRows.map((selectedRow) =>\n this.deleteRemoteMethod?.call({\n parameters: { uuid: selectedRow.uuid },\n })\n )\n );\n this.tableDataSource.refresh();\n }\n }\n}\n","<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öschen\" 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","import { NgModule } from '@angular/core';\nimport { RowControlsHeaderCellComponent } from './row-controls-header-cell.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { ConfirmComponentModule } from '@rxap/components';\nimport { CommonModule } from '@angular/common';\nimport { MatTooltipModule } from '@angular/material/tooltip';\n\n@NgModule({\n declarations: [RowControlsHeaderCellComponent],\n imports: [\n FlexLayoutModule,\n MatButtonModule,\n MatIconModule,\n ConfirmComponentModule,\n CommonModule,\n MatTooltipModule,\n ],\n exports: [RowControlsHeaderCellComponent],\n})\nexport class RowControlsHeaderCellComponentModule {}\n","import { NgModule } from '@angular/core';\nimport { RowControlsCellComponentModule } from './row-controls-cell/row-controls-cell.component.module';\nimport { RowControlsHeaderCellComponentModule } from './row-controls-header-cell/row-controls-header-cell.component.module';\n\n\n@NgModule({\n exports: [\n RowControlsCellComponentModule,\n RowControlsHeaderCellComponentModule\n ]\n})\nexport class TableRowControlsModule {\n}\n","import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';\nimport type { WindowRef } from '@rxap/window-system';\nimport { RXAP_WINDOW_REF } from '@rxap/window-system';\nimport type { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { SelectRowService } from '../select-row/select-row.service';\n\n@Component({\n // TODO : rn selector\n selector: 'mfd-table-select-controls',\n templateUrl: './table-select-controls.component.html',\n styleUrls: ['./table-select-controls.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'mfd-table-select-controls' },\n})\nexport class TableSelectControlsComponent {\n public hasNotSelected$: Observable<boolean>;\n\n constructor(\n private readonly selectRows: SelectRowService<any>,\n @Inject(RXAP_WINDOW_REF)\n private readonly windowRef: WindowRef\n ) {\n this.hasNotSelected$ = this.selectRows.selectedRows$.pipe(\n map((selected) => selected.length === 0)\n );\n }\n\n public cancel() {\n this.windowRef.close();\n }\n\n public select() {\n this.windowRef.close(this.selectRows.selectedRows);\n }\n}\n","<div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <button fxFlex=\"nogrow\" mat-stroked-button (click)=\"cancel()\" type=\"button\"\n i18n=\"@@rxap-material.table-system.table-select-controls.cancel\">Cancel\n </button>\n <button fxFlex=\"nogrow\" mat-raised-button (click)=\"select()\" type=\"button\" [disabled]=\"hasNotSelected$ | async\"\n i18n=\"@@rxap-material.table-system.table-select-controls.select\">Select\n </button>\n</div>\n","import { NgModule } from '@angular/core';\nimport { TableSelectControlsComponent } from './table-select-controls.component';\nimport { MatButtonModule } from '@angular/material/button';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [ TableSelectControlsComponent ],\n imports: [\n MatButtonModule,\n FlexLayoutModule,\n CommonModule\n ],\n exports: [ TableSelectControlsComponent ]\n})\nexport class TableSelectControlsComponentModule {\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Input\n} from '@angular/core';\nimport {\n BackgroundPosition,\n BackgroundPositionOptions,\n BackgroundRepeat,\n BackgroundRepeatOptions,\n BackgroundSize,\n BackgroundSizeOptions\n} from '@rxap/directives';\n\n@Component({\n selector: 'td[rxap-image-cell]',\n templateUrl: './image-cell.component.html',\n styleUrls: [ './image-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-image-cell' }\n})\nexport class ImageCellComponent {\n\n @Input()\n public preset?: string;\n\n @Input()\n public size: BackgroundSize = BackgroundSizeOptions.COVER;\n\n @Input()\n public repeat: BackgroundRepeat = BackgroundRepeatOptions.NO_REPEAT;\n\n @Input()\n public position: BackgroundPosition = BackgroundPositionOptions.CENTER_CENTER;\n\n @Input('rxap-image-cell')\n public value: string | null = null;\n\n}\n","<div\n *ngIf=\"value\"\n [ngClass]=\"[preset]\"\n [repeat]=\"repeat\"\n [size]=\"size\"\n [position]=\"position\"\n [rxapBackgroundImage]=\"value\"\n class=\"image\">\n</div>\n<ng-content></ng-content>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { BackgroundImageDirectiveModule } from '@rxap/directives';\nimport { ImageCellComponent } from './image-cell.component';\n\n@NgModule({\n declarations: [ ImageCellComponent ],\n imports: [ BackgroundImageDirectiveModule, CommonModule ],\n exports: [ ImageCellComponent ]\n})\nexport class ImageCellComponentModule {}\n","import {\n Component,\n ChangeDetectionStrategy, Input,\n} from '@angular/core';\n\n@Component({\n selector: 'td[rxap-copy-to-clipboard-cell]',\n templateUrl: './copy-to-clipboard-cell.component.html',\n styleUrls: [ './copy-to-clipboard-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-copy-to-clipboard-cell' }\n})\nexport class CopyToClipboardCellComponent {\n\n @Input('rxap-copy-to-clipboard-cell')\n public value: any;\n\n}\n","<rxap-copy-to-clipboard *ngIf=\"value !== null && value !== undefined && value !== ''\" [value]=\"value\" class=\"copy-to-clipboard\"></rxap-copy-to-clipboard>\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { CopyToClipboardCellComponent } from './copy-to-clipboard-cell.component';\nimport { CopyToClipboardModule } from '@rxap/components';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [CopyToClipboardCellComponent],\n imports: [\n CopyToClipboardModule,\n CommonModule\n ],\n exports: [CopyToClipboardCellComponent]\n})\nexport class CopyToClipboardCellComponentModule { }\n","import {\n Component,\n ChangeDetectionStrategy,\n Input\n} from '@angular/core';\nimport { IconConfig } from '@rxap/utilities';\n\n@Component({\n selector: 'td[rxap-icon-cell]',\n templateUrl: './icon-cell.component.html',\n styleUrls: [ './icon-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-icon-cell' }\n})\nexport class IconCellComponent {\n\n @Input('rxap-icon-cell')\n public icon!: IconConfig | null;\n\n}\n","<mat-icon *ngIf=\"icon\" [rxapIcon]=\"icon\"></mat-icon>\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { IconCellComponent } from './icon-cell.component';\nimport { MatIconModule } from '@angular/material/icon';\nimport { CommonModule } from '@angular/common';\nimport { IconDirectiveModule } from '@rxap/material-directives/icon';\n\n\n\n@NgModule({\n declarations: [IconCellComponent],\n imports: [\n MatIconModule,\n CommonModule,\n IconDirectiveModule,\n ],\n exports: [IconCellComponent]\n})\nexport class IconCellComponentModule { }\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\n\n@Component({\n selector: 'td[rxap-date-cell]',\n templateUrl: './date-cell.component.html',\n styleUrls: ['./date-cell.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'rxap-date-cell'},\n})\nexport class DateCellComponent {\n\n @Input('rxap-date-cell')\n public date: Date | number | string | null = null;\n\n @Input()\n public format: string = 'dd.MM.yyyy HH:mm';\n\n}\n","<ng-template [ngIf]=\"date\">\n {{date | date:format}}\n</ng-template>\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { DateCellComponent } from './date-cell.component';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [DateCellComponent],\n imports: [\n CommonModule,\n ],\n exports: [DateCellComponent],\n})\nexport class DateCellComponentModule {\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Input\n} from '@angular/core';\n\n@Component({\n selector: 'td[rxap-link-cell]',\n templateUrl: './link-cell.component.html',\n styleUrls: [ './link-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-link-cell' }\n})\nexport class LinkCellComponent {\n\n @Input('rxap-link-cell')\n public value: any;\n\n public get href(): string {\n if (this.protocol) {\n return [ this.protocol, this.value ].join(':');\n }\n return this.value;\n }\n\n @Input()\n public protocol?: 'tel' | 'mailto';\n\n}\n","<a *ngIf=\"value\" [href]=\"href\" [matTooltip]=\"value\" class=\"link\" target=\"_blank\">\n <span fxLayout=\"row\" fxLayoutGap=\"8px\" fxLayoutAlign=\"start center\">\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 fxFlex=\"nogrow\" class=\"content\">{{value}}</span>\n </span>\n</a>\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { LinkCellComponent } from './link-cell.component';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatIconModule } from '@angular/material/icon';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [LinkCellComponent],\n imports: [\n MatTooltipModule,\n MatIconModule,\n FlexLayoutModule,\n CommonModule\n ],\n exports: [LinkCellComponent]\n})\nexport class LinkCellComponentModule { }\n","import type { QueryList } from '@angular/core';\nimport {\n Component,\n ChangeDetectionStrategy,\n Input,\n ContentChildren,\n AfterContentInit,\n isDevMode,\n OnDestroy,\n Renderer2\n} from '@angular/core';\nimport { MatOption } from '@angular/material/core';\nimport { Subscription } from 'rxjs';\nimport {\n tap,\n startWith\n} from 'rxjs/operators';\n\n@Component({\n selector: 'td[rxap-options-cell]',\n templateUrl: './options-cell.component.html',\n styleUrls: [ './options-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-options-cell' }\n})\nexport class OptionsCellComponent implements AfterContentInit, OnDestroy {\n @Input('rxap-options-cell')\n public value: any;\n\n @Input('default')\n public defaultViewValue!: string;\n\n @Input('empty')\n public emptyViewValue!: string;\n\n public viewValue!: string;\n\n private readonly _subscription = new Subscription();\n\n constructor(private readonly renderer: Renderer2) {\n this.defaultViewValue = ''; // $localize`:@@rxap-material.table-system.options-cell.unknown:unknown`;\n this.emptyViewValue = ''; // $localize`:@@rxap-material.table-system.options-cell.empty:empty`;\n }\n\n @ContentChildren(MatOption, { descendants: true })\n public options!: QueryList<MatOption>;\n\n public ngAfterContentInit() {\n // Hide the mat-option elements\n this._subscription.add(this.options.changes.pipe(\n startWith(null),\n tap(() => this.options.forEach(option => this.renderer.setStyle(option._getHostElement(), 'display', 'none')))\n ).subscribe());\n if (this.value === undefined || this.value === null) {\n this.viewValue = this.emptyViewValue;\n } else {\n if (this.options) {\n this._subscription.add(this.options.changes\n .pipe(\n startWith(null),\n tap(() => (this.viewValue = this.getViewValue()))\n )\n .subscribe());\n } else if (isDevMode()) {\n console.log('Could not load any option');\n }\n }\n }\n\n public getViewValue(): string {\n return (\n this.options.find((option) => option.value === this.value)?.viewValue ??\n this.defaultViewValue\n );\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n}\n","{{viewValue}}\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { OptionsCellComponent } from './options-cell.component';\n\n\n\n@NgModule({\n declarations: [OptionsCellComponent],\n imports: [\n ],\n exports: [OptionsCellComponent]\n})\nexport class OptionsCellComponentModule { }\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\n\n@Component({\n selector: 'td[rxap-boolean-cell]',\n templateUrl: './boolean-cell.component.html',\n styleUrls: [ './boolean-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-boolean-cell' },\n})\nexport class BooleanCellComponent {\n\n @Input('rxap-boolean-cell')\n public value: any | null = null;\n\n}\n","<ng-template [ngIf]=\"value\" [ngIfElse]=\"isFalse\">\n <mat-icon class=\"truthy\">check_circle</mat-icon>\n</ng-template>\n<ng-template #isFalse>\n <mat-icon class=\"falsy\">cancel</mat-icon>\n</ng-template>\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { BooleanCellComponent } from './boolean-cell.component';\nimport { CommonModule } from '@angular/common';\nimport { MatIconModule } from '@angular/material/icon';\n\n\n@NgModule({\n declarations: [BooleanCellComponent],\n imports: [\n CommonModule,\n MatIconModule,\n ],\n exports: [BooleanCellComponent],\n})\nexport class BooleanCellComponentModule {\n}\n","import { setMetadata } from '@rxap/utilities/reflect-metadata';\n\nexport const RXAP_TABLE_ACTION_METHOD_TYPE_METADATA = 'rxap-table-action-method-type-metadata';\n\nexport function TableActionMethod(type: string) {\n return function(target: any) {\n setMetadata(RXAP_TABLE_ACTION_METHOD_TYPE_METADATA, type, target);\n };\n}\n","import {\n Directive,\n TemplateRef,\n ViewContainerRef\n} from '@angular/core';\n\n@Directive({\n selector: '[rxapTableRowActionExecuting]'\n})\nexport class TableRowActionExecutingDirective {\n constructor(\n public readonly templateRef: TemplateRef<void>,\n private readonly vcr: ViewContainerRef\n ) {}\n\n public show(): void {\n this.vcr.createEmbeddedView(this.templateRef);\n }\n\n public hide(): void {\n this.vcr.clear();\n }\n}\n","export enum TableRowActionStatus {\n EXECUTING = 'executing',\n DONE = 'done',\n ERROR = 'error',\n SUCCESS = 'success'\n}\n","import {\n getMetadata,\n hasMetadata\n} from '@rxap/utilities/reflect-metadata';\nimport { Method } from '@rxap/utilities/rxjs';\nimport { RXAP_TABLE_ACTION_METHOD_TYPE_METADATA } from './decorators';\n\nexport type TableRowActionTypeSwitchMethod<Data extends Record<string, any>> = Method<any, { element: Data; type: string }>;\nexport type TableRowActionTypeMethod<Data extends Record<string, any>> = Method<any,\n Data>;\n\nexport type TableRowActionMethod<Data extends Record<string, any>> =\n | TableRowActionTypeSwitchMethod<Data>\n | TableRowActionTypeMethod<Data>;\n\nexport function IsTableRowActionTypeSwitchMethod<Data extends Record<string, any>>(\n method: TableRowActionMethod<Data>\n): method is TableRowActionTypeSwitchMethod<Data> {\n return !hasMetadata(\n RXAP_TABLE_ACTION_METHOD_TYPE_METADATA,\n method.constructor\n );\n}\n\nexport function IsTableRowActionTypeMethod<Data extends Record<string, any>>(\n type: string\n) {\n return (\n method: TableRowActionMethod<Data>\n ): method is TableRowActionTypeMethod<Data> => {\n return (\n getMetadata(\n RXAP_TABLE_ACTION_METHOD_TYPE_METADATA,\n method.constructor\n ) === type\n );\n };\n}\n","import { InjectionToken } from '@angular/core';\n\nexport const RXAP_TABLE_ROW_ACTION_METHOD = new InjectionToken(\n 'rxap-table-row-action-method'\n);\n","import {\n ChangeDetectorRef,\n ContentChild,\n Directive,\n HostListener,\n Inject,\n Input,\n isDevMode,\n Optional,\n ViewContainerRef\n} from '@angular/core';\nimport { MatButton } from '@angular/material/button';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport {\n coerceArray,\n coerceBoolean,\n Required\n} from '@rxap/utilities';\nimport { TableRowActionExecutingDirective } from './table-row-action-executing.directive';\nimport { TableRowActionStatus } from './table-row-action-status';\nimport {\n IsTableRowActionTypeMethod,\n IsTableRowActionTypeSwitchMethod,\n TableRowActionMethod,\n TableRowActionTypeMethod,\n TableRowActionTypeSwitchMethod\n} from './table-row-action.method';\nimport { RXAP_TABLE_ROW_ACTION_METHOD } from './tokens';\nimport { TableDataSourceDirective } from '../table-data-source.directive';\n\n@Directive({\n selector: 'button[rxapTableRowAction]'\n})\nexport class TableRowActionDirective<Data extends Record<string, any>> {\n private _hasConfirmDirective = false;\n\n @Input('rxapConfirm')\n public set hasConfirmDirective(value: any) {\n this._hasConfirmDirective = coerceBoolean(value);\n }\n\n @Input()\n @Required\n public element!: Data;\n @Input('rxapTableRowAction')\n @Required\n public type!: string;\n\n @Input()\n public errorMessage?: string;\n\n @Input()\n public successMessage?: string;\n\n @ContentChild(TableRowActionExecutingDirective)\n private readonly executingDirective?: TableRowActionExecutingDirective;\n private _currentStatus: TableRowActionStatus = TableRowActionStatus.DONE;\n\n private readonly actionMethodList: Array<TableRowActionMethod<Data>>;\n\n constructor(\n @Inject(RXAP_TABLE_ROW_ACTION_METHOD)\n actionMethodList:\n | Array<TableRowActionMethod<Data>>\n | TableRowActionMethod<Data>,\n @Inject(ChangeDetectorRef)\n protected readonly cdr: ChangeDetectorRef,\n @Inject(ViewContainerRef)\n private readonly vcr: ViewContainerRef,\n @Inject(TableDataSourceDirective)\n private readonly tableDataSourceDirective: TableDataSourceDirective,\n @Inject(MatSnackBar)\n private readonly snackBar: MatSnackBar,\n @Optional()\n @Inject(MatButton)\n private readonly matButton: MatButton | null\n ) {\n this.actionMethodList = coerceArray(actionMethodList);\n }\n\n @HostListener('confirmed')\n public onConfirmed() {\n return this.execute();\n }\n\n @HostListener('click', [ '$event' ])\n public onClick($event: Event) {\n $event.stopPropagation();\n if (!this._hasConfirmDirective) {\n return this.execute();\n } else {\n if (isDevMode()) {\n console.debug('skip remote method call. Wait for confirmation.');\n }\n }\n return Promise.resolve();\n }\n\n public async execute(): Promise<void> {\n this.setStatus(TableRowActionStatus.EXECUTING);\n try {\n await Promise.all(\n this.getElementList().map((element) => {\n return Promise.all([\n Promise.all(\n this.findUntypedActionMethod().map((am) =>\n am.call({ element, type: this.type })\n )\n ),\n Promise.all(\n this.findTypedActionMethod().map((am) => am.call(element))\n )\n ]);\n })\n );\n this.setStatus(TableRowActionStatus.SUCCESS);\n } catch (e) {\n console.error(`Failed to execute row action: ${e.message}`);\n this.setStatus(TableRowActionStatus.ERROR);\n }\n }\n\n protected getElementList(): Data[] {\n return [ this.element ];\n }\n\n /**\n * find all method instance in the actionMethodList member that\n * do not have a @TableActionMethod decorators\n * @private\n */\n private findUntypedActionMethod(): Array<TableRowActionTypeSwitchMethod<Data>> {\n return this.actionMethodList.filter(IsTableRowActionTypeSwitchMethod);\n }\n\n /**\n * find all method instance in the actionMethodList member that\n * do have a @TableActionMethod decorators with the current type\n * @private\n */\n private findTypedActionMethod(): Array<TableRowActionTypeMethod<Data>> {\n return this.actionMethodList.filter(IsTableRowActionTypeMethod(this.type));\n }\n\n protected setButtonDisabled() {\n if (this.matButton) {\n this.matButton.disabled = true;\n }\n }\n\n protected setButtonEnabled() {\n if (this.matButton) {\n this.matButton.disabled = false;\n }\n }\n\n private setStatus(status: TableRowActionStatus) {\n if (this._currentStatus === status) {\n return;\n }\n this._currentStatus = status;\n switch (status) {\n case TableRowActionStatus.EXECUTING:\n this.setButtonDisabled();\n this.executingDirective?.show();\n break;\n case TableRowActionStatus.SUCCESS:\n this.tableDataSourceDirective.refresh();\n if (this.successMessage) {\n this.snackBar.open(this.successMessage, 'ok', { duration: 2560 });\n }\n this.setStatus(TableRowActionStatus.DONE);\n break;\n case TableRowActionStatus.ERROR:\n this.setStatus(TableRowActionStatus.DONE);\n if (this.errorMessage) {\n this.snackBar.open(this.errorMessage, 'ok', { duration: 5120 });\n }\n break;\n case TableRowActionStatus.DONE:\n this.setButtonEnabled();\n this.executingDirective?.hide();\n break;\n }\n this.cdr.detectChanges();\n }\n}\n","import {\n ChangeDetectorRef,\n Directive,\n Inject,\n Input,\n OnDestroy,\n OnInit,\n Optional,\n ViewContainerRef\n} from '@angular/core';\nimport { MatButton } from '@angular/material/button';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport { Required } from '@rxap/utilities';\nimport { Subscription } from 'rxjs';\nimport {\n map,\n startWith,\n tap\n} from 'rxjs/operators';\nimport { TableRowActionDirective } from './table-row-action.directive';\nimport { TableRowActionMethod } from './table-row-action.method';\nimport { RXAP_TABLE_ROW_ACTION_METHOD } from './tokens';\nimport { TableDataSourceDirective } from '../table-data-source.directive';\nimport { SelectRowService } from '../select-row/select-row.service';\n\n@Directive({\n selector: 'button[rxapTableRowHeaderAction]'\n})\nexport class TableRowHeaderActionDirective<Data extends Record<string, any>>\n extends TableRowActionDirective<Data>\n implements OnInit, OnDestroy {\n private _subscription?: Subscription;\n\n constructor(\n @Inject(RXAP_TABLE_ROW_ACTION_METHOD)\n actionMethod: TableRowActionMethod<Data>,\n @Inject(ChangeDetectorRef)\n cdr: ChangeDetectorRef,\n @Inject(ViewContainerRef)\n vcr: ViewContainerRef,\n @Inject(TableDataSourceDirective)\n tableDataSourceDirective: TableDataSourceDirective,\n @Inject(MatSnackBar)\n snackBar: MatSnackBar,\n @Optional()\n @Inject(MatButton)\n matButton: MatButton | null,\n @Optional()\n @Inject(SelectRowService)\n private readonly selectRowService: SelectRowService<Data> | null\n ) {\n super(\n actionMethod,\n cdr,\n vcr,\n tableDataSourceDirective,\n snackBar,\n matButton\n );\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n public ngOnInit() {\n if (this.selectRowService) {\n this._subscription = this.selectRowService.selectedRows$\n .pipe(\n startWith(this.selectRowService.selectedRows),\n map((rows) => rows.length !== 0),\n tap((hasSelected) => {\n if (hasSelected) {\n this.setButtonEnabled();\n } else {\n this.setButtonDisabled();\n }\n this.cdr.detectChanges();\n })\n )\n .subscribe();\n } else {\n this.setButtonDisabled();\n }\n }\n\n protected getElementList(): Data[] {\n return this.selectRowService?.selectedRows ?? [];\n }\n\n @Input('rxapTableRowHeaderAction')\n @Required\n public type!: string;\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { ConfirmComponentModule } from '@rxap/components';\nimport { TableRowActionExecutingDirective } from './table-row-action-executing.directive';\nimport { TableRowActionDirective } from './table-row-action.directive';\nimport { TableRowHeaderActionDirective } from './table-row-header-action.directive';\n\n@NgModule({\n declarations: [\n TableRowActionDirective,\n TableRowActionExecutingDirective,\n TableRowHeaderActionDirective\n ],\n exports: [\n TableRowActionDirective,\n TableRowHeaderActionDirective,\n TableRowActionExecutingDirective,\n MatTooltipModule,\n MatButtonModule,\n ConfirmComponentModule,\n MatIconModule,\n MatProgressBarModule,\n CommonModule\n ]\n})\nexport class TableRowActionsModule {}\n","export * from './lib/expand-row/expand-row.module';\nexport * from './lib/expand-row/expand-row-container/expand-row-container.component';\nexport * from './lib/expand-row/expand-row-container/expand-row-content.directive';\nexport * from './lib/expand-row/expand-row-container/expand-row-container.component.module';\nexport * from './lib/expand-row/expand-controls-cell/expand-controls-cell.component';\nexport * from './lib/expand-row/expand-controls-cell/expand-controls-cell.component.module';\nexport * from './lib/expand-row/expand-row.service';\nexport * from './lib/expand-row/expand-row.directive';\n\nexport * from './lib/select-row/select-row.module';\nexport * from './lib/select-row/checkbox-cell/checkbox-cell.component';\nexport * from './lib/select-row/checkbox-cell/checkbox-cell.component.module';\nexport * from './lib/select-row/checkbox-header-cell/checkbox-header-cell.component';\nexport * from './lib/select-row/checkbox-header-cell/checkbox-header-cell.component.module';\nexport * from './lib/select-row/select-row.service';\nexport * from './lib/select-row/selected-rows.directive';\nexport * from './lib/select-row/tokens';\nexport * from './lib/row-animation';\nexport * from './lib/table-data-source.directive';\n\n// region table filter\n\nexport * from './lib/table-filter/filter-header-row.directive';\nexport * from './lib/table-filter/table-filter.module';\nexport * from './lib/table-filter/table-filter.service';\nexport * from './lib/table-filter/to-filter-column-names.pipe';\nexport * from './lib/table-filter/tokens';\n\n// endregion\n\n// region table column menu\n\nexport * from './lib/table-column-menu/table-column-menu.component';\nexport * from './lib/table-column-menu/table-column-menu.component.module';\nexport * from './lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component';\nexport * from './lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.module';\nexport * from './lib/table-column-menu/table-column-option/table-column-option.component';\n\n// endregion\n\n// region table create button\n\nexport * from './lib/table-create-button/table-create-button.directive';\nexport * from './lib/table-create-button/tokens';\n\n// endregion\n\n// region table row controls\n\nexport * from './lib/table-row-controls/table-row-controls.module';\nexport * from './lib/table-row-controls/row-controls-cell/row-controls-cell.component';\nexport * from './lib/table-row-controls/row-controls-cell/row-controls-cell.component.module';\nexport * from './lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component';\nexport * from './lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.module';\nexport * from './lib/table-row-controls/tokens';\n\n// endregion\n\n// region table select controls\n\nexport * from './lib/table-select-controls/table-select-controls.component';\nexport * from './lib/table-select-controls/table-select-controls.component.module';\n\n// endregion\n\n// region cells\n\n// region image\n\nexport * from './lib/cells/image-cell/image-cell.component';\nexport * from './lib/cells/image-cell/image-cell.component.module';\n\n// endregion\n\n// region copy-to-clipboard cell\n\nexport * from './lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component';\nexport * from './lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.module';\n\n// endregion\n\n// region icon cell\n\nexport * from './lib/cells/icon-cell/icon-cell.component';\nexport * from './lib/cells/icon-cell/icon-cell.component.module';\n\n// endregion\n\n// region date cell\n\nexport * from './lib/cells/date-cell/date-cell.component';\nexport * from './lib/cells/date-cell/date-cell.component.module';\n\n// endregion\n\n// region link cell\n\nexport * from './lib/cells/link-cell/link-cell.component';\nexport * from './lib/cells/link-cell/link-cell.component.module';\n\n// endregion\n\n// region options cell\n\nexport * from './lib/cells/options-cell/options-cell.component';\nexport * from './lib/cells/options-cell/options-cell.component.module';\n\n// endregion\n\n// region boolean cell\n\nexport * from './lib/cells/boolean-cell/boolean-cell.component';\nexport * from './lib/cells/boolean-cell/boolean-cell.component.module';\n\n// endregion\n\n// region table-row-actions\n\nexport * from './lib/table-row-actions/decorators';\nexport * from './lib/table-row-actions/table-row-action.directive';\nexport * from './lib/table-row-actions/table-row-action.method';\nexport * from './lib/table-row-actions/table-row-action-executing.directive';\nexport * from './lib/table-row-actions/table-row-action-status';\nexport * from './lib/table-row-actions/table-row-actions.module';\nexport * from './lib/table-row-actions/table-row-header-action.directive';\nexport * from './lib/table-row-actions/tokens';\n\n// endregion\n\n// endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAaa,yBAAyB;IAQpC,YAEkB,QAA8D;QAA9D,aAAQ,GAAR,QAAQ,CAAsD;KAC5E;IARJ,OAAO,sBAAsB,CAAmC,GAAoC,EAAE,GAAQ;QAE5G,OAAO,IAAI,CAAC;KACb;;sHANU,yBAAyB,kBAS1B,WAAW;0GATV,yBAAyB;2FAAzB,yBAAyB;kBAHrC,SAAS;mBAAC;oBACT,QAAQ,EAAE,wBAAwB;iBACnC;;0BAUI,MAAM;2BAAC,WAAW;;;MChBV,gBAAgB;IAD7B;QAES,gBAAW,GAAG,IAAI,eAAe,CAAc,IAAI,CAAC,CAAC;KAiB7D;IAfQ,SAAS,CAAC,GAAS;QACxB,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,KAAK,GAAG,EAAE;YAClC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAC7B;aAAM;YACL,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SAC5B;KACF;IAEM,UAAU,CAAC,GAAS;QACzB,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,KAAK,GAAG,CAAC;KACvC;IAEM,WAAW,CAAC,GAAS;QAC1B,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,WAA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../../../../../libs/material/table-system/src/lib/expand-row/expand-row-container/expand-row-content.directive.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-row.service.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-row-container/expand-row-container.component.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-row-container/expand-row-container.component.html","../../../../../libs/material/table-system/src/lib/expand-row/expand-row-container/expand-row-container.component.module.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-controls-cell/expand-controls-cell.component.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-controls-cell/expand-controls-cell.component.html","../../../../../libs/material/table-system/src/lib/expand-row/expand-controls-cell/expand-controls-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-row.directive.ts","../../../../../libs/material/table-system/src/lib/expand-row/expand-row.module.ts","../../../../../libs/material/table-system/src/lib/select-row/tokens.ts","../../../../../libs/material/table-system/src/lib/select-row/select-row.service.ts","../../../../../libs/material/table-system/src/lib/select-row/checkbox-cell/checkbox-cell.component.ts","../../../../../libs/material/table-system/src/lib/select-row/checkbox-cell/checkbox-cell.component.html","../../../../../libs/material/table-system/src/lib/select-row/checkbox-cell/checkbox-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/select-row/checkbox-header-cell/checkbox-header-cell.component.ts","../../../../../libs/material/table-system/src/lib/select-row/checkbox-header-cell/checkbox-header-cell.component.html","../../../../../libs/material/table-system/src/lib/select-row/checkbox-header-cell/checkbox-header-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/select-row/selected-rows.directive.ts","../../../../../libs/material/table-system/src/lib/select-row/select-row.module.ts","../../../../../libs/material/table-system/src/lib/row-animation.ts","../../../../../libs/material/table-system/src/lib/table-filter/table-filter.service.ts","../../../../../libs/material/table-system/src/lib/table-data-source.directive.ts","../../../../../libs/material/table-system/src/lib/table-filter/tokens.ts","../../../../../libs/material/table-system/src/lib/table-filter/filter-header-row.directive.ts","../../../../../libs/material/table-system/src/lib/table-filter/to-filter-column-names.pipe.ts","../../../../../libs/material/table-system/src/lib/table-filter/table-filter.module.ts","../../../../../libs/material/table-system/src/lib/table-column-menu/table-column-option/table-column-option.component.ts","../../../../../libs/material/table-system/src/lib/table-column-menu/table-column-option/table-column-option.component.html","../../../../../libs/material/table-system/src/lib/table-column-menu/table-column-menu.component.ts","../../../../../libs/material/table-system/src/lib/table-column-menu/table-column-menu.component.html","../../../../../libs/material/table-system/src/lib/table-column-menu/table-column-menu.component.module.ts","../../../../../libs/material/table-system/src/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.ts","../../../../../libs/material/table-system/src/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.html","../../../../../libs/material/table-system/src/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.module.ts","../../../../../libs/material/table-system/src/lib/table-create-button/tokens.ts","../../../../../libs/material/table-system/src/lib/table-create-button/table-create-button.directive.ts","../../../../../libs/material/table-system/src/lib/table-row-controls/tokens.ts","../../../../../libs/material/table-system/src/lib/table-row-controls/row-controls-cell/row-controls-cell.component.ts","../../../../../libs/material/table-system/src/lib/table-row-controls/row-controls-cell/row-controls-cell.component.html","../../../../../libs/material/table-system/src/lib/table-row-controls/row-controls-cell/row-controls-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.ts","../../../../../libs/material/table-system/src/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.html","../../../../../libs/material/table-system/src/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/table-row-controls/table-row-controls.module.ts","../../../../../libs/material/table-system/src/lib/table-select-controls/table-select-controls.component.ts","../../../../../libs/material/table-system/src/lib/table-select-controls/table-select-controls.component.html","../../../../../libs/material/table-system/src/lib/table-select-controls/table-select-controls.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/image-cell/image-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/image-cell/image-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/image-cell/image-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/icon-cell/icon-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/icon-cell/icon-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/icon-cell/icon-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/date-cell/date-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/date-cell/date-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/date-cell/date-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/link-cell/link-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/link-cell/link-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/link-cell/link-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/options-cell/options-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/options-cell/options-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/options-cell/options-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/cells/boolean-cell/boolean-cell.component.ts","../../../../../libs/material/table-system/src/lib/cells/boolean-cell/boolean-cell.component.html","../../../../../libs/material/table-system/src/lib/cells/boolean-cell/boolean-cell.component.module.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/decorators.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-action-executing.directive.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-action-status.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-action.method.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/tokens.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-action.directive.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-header-action.directive.ts","../../../../../libs/material/table-system/src/lib/table-row-actions/table-row-actions.module.ts","../../../../../libs/material/table-system/src/index.ts","../../../../../libs/material/table-system/src/rxap-material-table-system.ts"],"sourcesContent":["import {\n Directive,\n TemplateRef,\n Inject\n} from '@angular/core';\n\nexport interface ExpandCellContentDirectiveContext<Data extends Record<string, any>> {\n $implicit: Data\n}\n\n@Directive({\n selector: '[rxapExpandRowContent]'\n})\nexport class ExpandRowContentDirective<Data extends Record<string, any>> {\n\n\n static ngTemplateContextGuard<Data extends Record<string, any>>(dir: ExpandRowContentDirective<Data>, ctx: any):\n ctx is ExpandCellContentDirectiveContext<Data> {\n return true;\n }\n\n constructor(\n @Inject(TemplateRef)\n public readonly template: TemplateRef<ExpandCellContentDirectiveContext<Data>>\n ) {}\n\n}\n","import { Injectable } from '@angular/core';\nimport type { Observable } from 'rxjs';\nimport { BehaviorSubject } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\n@Injectable()\nexport class ExpandRowService<Data extends Record<string, any>> {\n public expandedRow = new BehaviorSubject<Data | null>(null);\n\n public toggleRow(row: Data): void {\n if (this.expandedRow.value === row) {\n this.expandedRow.next(null);\n } else {\n this.expandedRow.next(row);\n }\n }\n\n public isExpanded(row: Data) {\n return this.expandedRow.value === row;\n }\n\n public isExpanded$(row: Data): Observable<boolean> {\n return this.expandedRow.pipe(map((expandedRow) => expandedRow === row));\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n Input,\n ContentChild,\n ViewContainerRef,\n OnDestroy,\n AfterContentInit,\n Inject\n} from '@angular/core';\nimport {\n ExpandRowContentDirective,\n ExpandCellContentDirectiveContext\n} from './expand-row-content.directive';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { Required } from '@rxap/utilities';\nimport {\n trigger,\n state,\n style,\n transition,\n animate\n} from '@angular/animations';\nimport { ExpandRowService } from '../expand-row.service';\nimport { Subscription } from 'rxjs';\nimport {\n tap,\n filter\n} from 'rxjs/operators';\n\n@Component({\n // tslint:disable-next-line:component-selector\n selector: 'td[rxap-expand-row]',\n templateUrl: './expand-row-container.component.html',\n styleUrls: [ './expand-row-container.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-expand-row' },\n animations: [\n trigger('detailExpand', [\n state('collapsed', style({ height: '0px', minHeight: '0' })),\n state('expanded', style({ height: '*' })),\n transition('expanded <=> collapsed', animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)'))\n ])\n ]\n})\nexport class ExpandRowContainerComponent<Data extends Record<string, any>> implements AfterContentInit, OnDestroy {\n\n @Input()\n @Required\n public element!: Data;\n\n @ContentChild(ExpandRowContentDirective)\n public expandCellContent?: ExpandRowContentDirective<Data>;\n\n public portal: TemplatePortal<ExpandCellContentDirectiveContext<Data>> | null = null;\n\n private _subscription?: Subscription;\n\n constructor(\n @Inject(ViewContainerRef)\n private readonly viewContainerRef: ViewContainerRef,\n @Inject(ExpandRowService)\n public readonly expandCell: ExpandRowService<Data>\n ) {}\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n public ngAfterContentInit() {\n if (this.expandCellContent) {\n this._subscription = this.expandCell.isExpanded$(this.element).pipe(\n filter(Boolean),\n tap(() => {\n if (!this.portal) {\n this.portal = new TemplatePortal(this.expandCellContent!.template, this.viewContainerRef, { $implicit: this.element });\n }\n })\n ).subscribe();\n }\n }\n\n}\n","<div class=\"element-detail\" [@detailExpand]=\"(expandCell.isExpanded$(element) | async) ? 'expanded' : 'collapsed'\">\n <ng-content></ng-content>\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n</div>\n","import { NgModule } from '@angular/core';\nimport { ExpandRowContainerComponent } from './expand-row-container.component';\nimport { ExpandRowContentDirective } from './expand-row-content.directive';\nimport { PortalModule } from '@angular/cdk/portal';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [\n ExpandRowContainerComponent,\n ExpandRowContentDirective\n ],\n imports: [\n PortalModule,\n CommonModule\n ],\n exports: [\n ExpandRowContainerComponent,\n ExpandRowContentDirective\n ]\n})\nexport class ExpandRowContainerComponentModule {}\n","import {\n Component,\n ChangeDetectionStrategy,\n Input,\n Inject\n} from '@angular/core';\nimport { ExpandRowService } from '../expand-row.service';\nimport { Required } from '@rxap/utilities';\n\n@Component({\n // tslint:disable-next-line:component-selector\n selector: 'td[rxap-expand-controls-cell]',\n templateUrl: './expand-controls-cell.component.html',\n styleUrls: [ './expand-controls-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-expand-controls-cell' }\n})\nexport class ExpandControlsCellComponent<Data extends Record<string, any>> {\n\n @Input()\n @Required\n public element!: Data;\n\n constructor(\n @Inject(ExpandRowService)\n public readonly expandCell: ExpandRowService<Data>\n ) {}\n\n}\n","<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","import { NgModule } from '@angular/core';\nimport { ExpandControlsCellComponent } from './expand-controls-cell.component';\nimport { CommonModule } from '@angular/common';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatButtonModule } from '@angular/material/button';\n\n\n@NgModule({\n declarations: [ ExpandControlsCellComponent ],\n imports: [\n CommonModule,\n MatIconModule,\n MatButtonModule\n ],\n exports: [ ExpandControlsCellComponent ]\n})\nexport class ExpandControlsCellComponentModule {}\n","import {\n Directive,\n Input,\n HostListener,\n Inject\n} from '@angular/core';\nimport { ExpandRowService } from './expand-row.service';\nimport { Required } from '@rxap/utilities';\n\n@Directive({\n selector: 'tr[rxapExpandRow]'\n})\nexport class ExpandRowDirective<Data extends Record<string, any>> {\n\n @HostListener('expanded-row')\n public get isExpanded() {\n return this.expandCell.isExpanded(this.element);\n }\n\n @Input()\n @Required\n public element!: Data;\n\n constructor(\n @Inject(ExpandRowService)\n private readonly expandCell: ExpandRowService<Data>\n ) { }\n\n @HostListener('click')\n public onClick() {\n this.expandCell.toggleRow(this.element);\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { ExpandRowContainerComponentModule } from './expand-row-container/expand-row-container.component.module';\nimport { ExpandControlsCellComponentModule } from './expand-controls-cell/expand-controls-cell.component.module';\nimport { ExpandRowService } from './expand-row.service';\nimport { ExpandRowDirective } from './expand-row.directive';\n\n@NgModule({\n exports: [\n ExpandRowContainerComponentModule,\n ExpandControlsCellComponentModule,\n ExpandRowDirective\n ],\n providers: [\n ExpandRowService\n ],\n declarations: [ ExpandRowDirective ]\n})\nexport class ExpandRowModule {}\n","import { InjectionToken } from '@angular/core';\nimport { SelectRowOptions } from './select-row.options';\n\nexport const RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS = new InjectionToken<SelectRowOptions>('rxap-material/table-system/select-row/options');\n","import { Injectable, Optional, Inject } from '@angular/core';\nimport { SelectionModel } from '@angular/cdk/collections';\nimport type { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { SelectRowOptions } from './select-row.options';\nimport { RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS } from './tokens';\n\n@Injectable()\nexport class SelectRowService<Data extends Record<string, any>> {\n public selectedRows$: Observable<Data[]>;\n\n public readonly selectionModel = new SelectionModel<Data>(true);\n\n public get selectedRows(): Data[] {\n return this.selectionModel.selected;\n }\n\n constructor(\n @Optional()\n @Inject(RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS)\n options: SelectRowOptions<Data> | null = null\n ) {\n this.selectionModel = new SelectionModel<Data>(options?.multiple);\n if (options?.selected) {\n this.selectionModel.select(...options?.selected);\n }\n this.selectedRows$ = this.selectionModel.changed.pipe(\n map(() => this.selectionModel.selected)\n );\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n Input,\n Inject\n} from '@angular/core';\nimport { Required } from '@rxap/utilities';\nimport { SelectRowService } from '../select-row.service';\n\n@Component({\n selector: 'td[rxap-checkbox-cell]',\n templateUrl: './checkbox-cell.component.html',\n styleUrls: [ './checkbox-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.Default,\n host: { class: 'rxap-checkbox-cell' }\n})\nexport class CheckboxCellComponent<Data extends Record<string, any>> {\n\n @Input()\n @Required\n public element!: Data;\n\n constructor(\n @Inject(SelectRowService)\n public readonly selectRow: SelectRowService<Data>\n ) {}\n\n}\n","<mat-checkbox\n (change)=\"selectRow.selectionModel.toggle(element)\"\n [checked]=\"selectRow.selectionModel.isSelected(element)\">\n</mat-checkbox>\n","import { NgModule } from '@angular/core';\nimport { CheckboxCellComponent } from './checkbox-cell.component';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [ CheckboxCellComponent ],\n imports: [\n MatCheckboxModule,\n CommonModule\n ],\n exports: [ CheckboxCellComponent ]\n})\nexport class CheckboxCellComponentModule {}\n","import {\n Component,\n ChangeDetectionStrategy,\n OnInit,\n Inject,\n} from '@angular/core';\nimport { SelectRowService } from '../select-row.service';\nimport type { Observable } from 'rxjs';\nimport { EMPTY } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { MatCheckboxChange } from '@angular/material/checkbox';\nimport { CdkTable } from '@angular/cdk/table';\n\n@Component({\n selector: 'th[rxap-checkbox-header-cell]',\n templateUrl: './checkbox-header-cell.component.html',\n styleUrls: ['./checkbox-header-cell.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-checkbox-header-cell' },\n})\nexport class CheckboxHeaderCellComponent<Data extends Record<string, any>>\n implements OnInit\n{\n public indeterminate$: Observable<boolean> = EMPTY;\n public checked$: Observable<boolean> = EMPTY;\n\n public isMultipleSelection = false;\n\n constructor(\n @Inject(CdkTable)\n private readonly cdkTable: CdkTable<Data>,\n private readonly selectRow: SelectRowService<Data>\n ) {\n this.isMultipleSelection =\n this.selectRow.selectionModel.isMultipleSelection();\n }\n\n public ngOnInit() {\n this.indeterminate$ = this.selectRow.selectedRows$.pipe(\n map(\n (selectedRows) =>\n !!selectedRows.length &&\n this.cdkTable['_data'].length !== selectedRows.length\n )\n );\n this.checked$ = this.selectRow.selectedRows$.pipe(\n map(\n (selectedRows) =>\n !!selectedRows.length &&\n this.cdkTable['_data'].length === selectedRows.length\n )\n );\n }\n\n public onChange($event: MatCheckboxChange) {\n if ($event.checked) {\n this.selectRow.selectionModel.select(...this.cdkTable['_data']);\n } else {\n this.selectRow.selectionModel.clear();\n }\n }\n}\n","<mat-checkbox\n *ngIf=\"isMultipleSelection\"\n (change)=\"onChange($event)\"\n [indeterminate]=\"indeterminate$ | async\"\n [checked]=\"(checked$ | async) ?? false\">\n</mat-checkbox>\n","import { NgModule } from '@angular/core';\nimport { CheckboxHeaderCellComponent } from './checkbox-header-cell.component';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [ CheckboxHeaderCellComponent ],\n imports: [\n MatCheckboxModule,\n CommonModule\n ],\n exports: [ CheckboxHeaderCellComponent ]\n})\nexport class CheckboxHeaderCellComponentModule {}\n","import {\n Directive,\n TemplateRef,\n ViewContainerRef,\n OnInit,\n OnDestroy,\n ChangeDetectorRef,\n Inject,\n Input,\n Optional\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { SelectRowService } from './select-row.service';\nimport {\n map,\n tap,\n distinctUntilChanged\n} from 'rxjs/operators';\nimport { CdkTable } from '@angular/cdk/table';\nimport { MatTable } from '@angular/material/table';\n\nexport interface SelectedRowsDirectiveContext<Data extends Record<string, any>> {\n $implicit: Data[];\n}\n\n@Directive({\n selector: '[rxapSelectedRows]'\n})\nexport class SelectedRowsDirective<Data extends Record<string, any>> implements OnInit, OnDestroy {\n\n private _subscription?: Subscription;\n\n constructor(\n @Inject(TemplateRef)\n private readonly template: TemplateRef<SelectedRowsDirectiveContext<Data>>,\n @Inject(ViewContainerRef)\n private readonly viewContainerRef: ViewContainerRef,\n @Inject(ChangeDetectorRef)\n private readonly cdr: ChangeDetectorRef,\n @Inject(SelectRowService)\n private readonly selectRowService: SelectRowService<Data>\n ) {}\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n public ngOnInit() {\n this._subscription = this.selectRowService.selectedRows$.pipe(\n distinctUntilChanged(),\n tap(selectedAllRows => {\n this.viewContainerRef.clear();\n if (selectedAllRows) {\n this.viewContainerRef.createEmbeddedView(this.template, { $implicit: this.selectRowService.selectedRows });\n }\n this.cdr.detectChanges();\n })\n ).subscribe();\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CheckboxCellComponentModule } from './checkbox-cell/checkbox-cell.component.module';\nimport { CheckboxHeaderCellComponentModule } from './checkbox-header-cell/checkbox-header-cell.component.module';\nimport { SelectedRowsDirective } from './selected-rows.directive';\n\n\n@NgModule({\n exports: [\n CheckboxCellComponentModule,\n CheckboxHeaderCellComponentModule,\n SelectedRowsDirective\n ],\n declarations: [ SelectedRowsDirective ]\n})\nexport class SelectRowModule {}\n","import {\n trigger,\n transition,\n style,\n sequence,\n animate\n} from '@angular/animations';\n\nconst offset = '50';\n\nexport const RowAnimation = trigger('rowsAnimation', [\n transition('void => *', [\n style({\n height: '*',\n opacity: '0',\n transform: 'translateY(' + (-offset).toString() + 'px)',\n 'box-shadow': 'none'\n }),\n sequence([\n animate('.2s ease', style({\n height: '*',\n opacity: '.2',\n transform: 'translateX(0)',\n 'box-shadow': 'none'\n })),\n animate('.35s ease', style({ height: '*', opacity: 1, transform: 'translateX(0)' }))\n ])\n ]),\n transition('* => void', [\n style({ height: '0', opacity: '0', 'box-shadow': 'none' })\n ])\n]);\n","import { FilterLike } from '@rxap/data-source/table';\nimport {\n Injectable,\n OnDestroy\n} from '@angular/core';\nimport {\n ReplaySubject,\n Subscription\n} from 'rxjs';\n\n@Injectable()\nexport class TableFilterService implements FilterLike, OnDestroy {\n\n public readonly change = new ReplaySubject<Record<string, any>>(1);\n\n public current: Record<string, any> = {};\n\n private _subscription: Subscription;\n\n constructor() {\n this._subscription = this.change.subscribe(current => this.current = current);\n }\n\n public set(key: string, value: any): void {\n const current = this.current;\n current[ key ] = value;\n this.change.next(current);\n }\n\n public remove(key: string): void {\n const current = this.current;\n if (current.hasOwnProperty(key)) {\n delete current[ key ];\n }\n this.change.next(current);\n }\n\n public ngOnDestroy() {\n this._subscription.unsubscribe();\n }\n\n}\n","import {\n ChangeDetectorRef,\n Directive,\n Inject,\n InjectionToken,\n Input,\n NgModule,\n OnDestroy,\n OnInit,\n Optional\n} from '@angular/core';\nimport type { MatPaginator } from '@angular/material/paginator';\nimport type { Observable } from 'rxjs';\nimport { Subscription } from 'rxjs';\nimport { MatSort } from '@angular/material/sort';\nimport type {\n AbstractTableDataSource,\n FilterLike\n} from '@rxap/data-source/table';\nimport {\n DynamicTableDataSource,\n TableEvent,\n SortLike\n} from '@rxap/data-source/table';\nimport { BaseRemoteMethod } from '@rxap/remote-method';\nimport { PaginatorLike } from '@rxap/data-source/pagination';\nimport { CdkTable } from '@angular/cdk/table';\nimport { TableFilterService } from './table-filter/table-filter.service';\nimport {\n debounceTime,\n delay,\n filter,\n tap\n} from 'rxjs/operators';\nimport { Required } from '@rxap/utilities';\nimport {\n Method,\n ToggleSubject\n} from '@rxap/utilities/rxjs';\nimport { pipeDataSource } from '@rxap/data-source';\n\n// TODO : add migration schematic\nexport const RXAP_TABLE_METHOD = new InjectionToken(\n 'rxap/material/table-system/table-method'\n);\n/**\n * @deprecated use TABLE_METHOD instead\n */\nexport const TABLE_REMOTE_METHOD = RXAP_TABLE_METHOD;\nexport const TABLE_REMOTE_METHOD_ADAPTER_FACTORY = new InjectionToken(\n 'table-remote-method-adapter-factory'\n);\nexport const RXAP_TABLE_FILTER = new InjectionToken('rxap/material-table-system/table-filter');\nexport const TABLE_DATA_SOURCE = new InjectionToken('table-data-source');\n\nexport type TableRemoteMethodAdapterFactory<\n Data extends Record<string, any> = Record<string, any>\n> = (\n method: Method,\n paginator?: PaginatorLike,\n sort?: SortLike | null,\n filter?: FilterLike | null,\n parameters?: Observable<Record<string, any>>\n) => BaseRemoteMethod<Data[], TableEvent>;\n\n@Directive({\n selector:\n 'table[mat-table][rxapTableDataSource],mat-table[rxapTableDataSource]',\n exportAs: 'rxapTableDataSource'\n})\nexport class TableDataSourceDirective<Data extends Record<string, any> = any>\n implements OnInit, OnDestroy {\n /**\n * @deprecated use dataSource instead\n */\n @Input('rxapTableDataSource')\n public set setDataSource(dataSource: AbstractTableDataSource<Data> | '') {\n if (typeof dataSource !== 'string') {\n this.dataSource = dataSource;\n }\n }\n\n @Input()\n public paginator?: MatPaginator;\n\n public readonly loading$ = new ToggleSubject(true);\n\n @Input()\n @Required\n public id!: string;\n @Input()\n public parameters?: Observable<Record<string, any>>;\n @Input()\n public dataSource?: AbstractTableDataSource<Data>;\n\n public method?: Method<Data[], TableEvent>;\n\n /**\n * @deprecated use method instead\n */\n public get remoteMethod(): Method<Data[], TableEvent> | undefined {\n return this.method;\n }\n\n /**\n * @deprecated use sourceMethod instead\n */\n public get sourceRemoteMethod(): Method<\n Data[] | any,\n TableEvent | any\n > | null {\n return this.sourceMethod;\n }\n\n protected _subscription = new Subscription();\n\n private readonly adapterFactory: TableRemoteMethodAdapterFactory<Data> | null =\n null;\n\n constructor(\n @Inject(CdkTable)\n private readonly matTable: CdkTable<Data>,\n protected readonly cdr: ChangeDetectorRef,\n @Optional()\n @Inject(RXAP_TABLE_METHOD)\n private readonly sourceMethod: Method<Data[] | any,\n TableEvent | any> | null,\n @Optional()\n @Inject(TABLE_DATA_SOURCE)\n private readonly sourceDataSource: AbstractTableDataSource<Data> | null,\n @Optional()\n @Inject(TABLE_REMOTE_METHOD_ADAPTER_FACTORY)\n adapterFactory: any,\n @Optional()\n @Inject(MatSort)\n private readonly matSort: MatSort | null,\n @Optional()\n @Inject(TableFilterService)\n private readonly tableFilter: TableFilterService | null,\n @Optional()\n @Inject(RXAP_TABLE_FILTER)\n private readonly _tableFilter: FilterLike | null\n ) {\n this.matTable.trackBy = this.trackBy;\n this.adapterFactory = adapterFactory;\n }\n\n private trackBy(index: number, item: Data): string | number {\n return item.uuid ?? index;\n }\n\n public ngOnInit() {\n const tableFilter = this._tableFilter ?? this.tableFilter ?? undefined;\n if (this.sourceMethod) {\n if (this.adapterFactory) {\n this.method = this.adapterFactory(\n this.sourceMethod,\n this.paginator,\n this.matSort,\n tableFilter,\n this.parameters\n );\n } else {\n this.method = this.sourceMethod;\n }\n this.dataSource = new DynamicTableDataSource<Data>(\n this.method,\n this.paginator,\n this.matSort,\n tableFilter,\n this.parameters,\n this.method.metadata ?? { id: this.id }\n );\n } else if (this.sourceDataSource) {\n this.dataSource = this.sourceDataSource;\n } else if (!this.dataSource) {\n throw new Error(\n 'The TABLE_DATA_SOURCE and TABLE_METHOD token are not defined!'\n );\n }\n this.dataSource.paginator = this.paginator;\n this.dataSource.sort = this.matSort ?? undefined;\n this.dataSource.filter = tableFilter;\n this.dataSource.parameters = this.parameters;\n this._subscription.add(\n this.dataSource.loading$.pipe(\n tap(loading => this.loading$.next(!!loading))\n ).subscribe()\n );\n this.matTable.dataSource = pipeDataSource(this.dataSource, tap(rowList => rowList.forEach((element: any) => {\n element.__metadata__ = { loading$: new ToggleSubject() };\n })));\n // TODO : remove hack to trigger change detection after data source refresh (machine-definition -> physical unit)\n this._subscription.add(\n this.loading$\n .pipe(\n filter((loading) => !loading),\n debounceTime(2000),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500),\n tap(() => this.cdr.detectChanges()),\n tap(() => this.cdr.markForCheck()),\n delay(500)\n )\n .subscribe()\n );\n }\n\n public ngOnDestroy() {\n this._subscription.unsubscribe();\n }\n\n public refresh() {\n this.dataSource?.refresh();\n }\n}\n\n@NgModule({\n exports: [TableDataSourceDirective],\n declarations: [TableDataSourceDirective],\n})\nexport class TableDataSourceModule {}\n","import { InjectionToken } from '@angular/core';\n\nexport const RXAP_TABLE_FILTER_FORM_DEFINITION = new InjectionToken('rxap/form-table-system/filter-form-definition');\n","import { FormDirective, FormDefinition } from '@rxap/forms';\nimport {\n ChangeDetectorRef,\n Directive,\n forwardRef,\n Inject,\n OnDestroy,\n OnInit,\n Optional,\n} from '@angular/core';\nimport { TableFilterService } from './table-filter.service';\nimport { Subscription } from 'rxjs';\nimport { debounceTime, distinctUntilChanged, map } from 'rxjs/operators';\nimport { RXAP_TABLE_FILTER_FORM_DEFINITION } from './tokens';\nimport { ControlContainer } from '@angular/forms';\nimport { equals } from '@rxap/utilities';\n\n@Directive({\n // tslint:disable-next-line:directive-selector\n selector: 'table[rxap-filter-header-row]',\n providers: [\n {\n provide: ControlContainer,\n // ignore coverage\n useExisting: forwardRef(() => FilterHeaderRowDirective),\n },\n ],\n})\nexport class FilterHeaderRowDirective\n extends FormDirective\n implements OnInit, OnDestroy\n{\n private _subscription?: Subscription;\n\n constructor(\n private readonly tableFilter: TableFilterService,\n cdr: ChangeDetectorRef,\n @Optional()\n @Inject(RXAP_TABLE_FILTER_FORM_DEFINITION)\n formDefinition: FormDefinition | null\n ) {\n super(cdr, formDefinition);\n }\n\n public ngOnInit() {\n super.ngOnInit();\n this._subscription = this.form.value$\n .pipe(\n debounceTime(1000),\n map((values) =>\n Object.entries(values)\n .filter(\n ([key, value]) =>\n value !== null && value !== undefined && value !== ''\n )\n .reduce((obj, [key, value]) => ({ ...obj, [key]: value }), {})\n ),\n distinctUntilChanged((a, b) => equals(a, b))\n )\n .subscribe(this.tableFilter.change);\n }\n\n public ngOnDestroy() {\n super.ngOnDestroy();\n this._subscription?.unsubscribe();\n }\n}\n","import {\n PipeTransform,\n Pipe\n} from '@angular/core';\n\n@Pipe({\n name: 'toFilterColumnNames'\n})\nexport class ToFilterColumnNamesPipe implements PipeTransform {\n\n public transform(columns: string[]): string[] {\n return columns.map(column => 'filter_' + column);\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { ToFilterColumnNamesPipe } from './to-filter-column-names.pipe';\nimport { FilterHeaderRowDirective } from './filter-header-row.directive';\n\n\n@NgModule({\n exports: [\n ToFilterColumnNamesPipe,\n FilterHeaderRowDirective\n ],\n declarations: [\n ToFilterColumnNamesPipe,\n FilterHeaderRowDirective\n ]\n})\nexport class TableFilterModule {\n}\n","import { Component, ElementRef, Input, Inject } from '@angular/core';\nimport { coerceBoolean, Required } from '@rxap/utilities';\n\n@Component({\n selector: 'rxap-table-column-option',\n templateUrl: './table-column-option.component.html',\n styleUrls: ['./table-column-option.component.css'],\n})\nexport class TableColumnOptionComponent {\n @Input()\n @Required\n public name!: string;\n\n @Input()\n public active: boolean = true;\n\n /**\n * The displayed value of the option. It is necessary to show the selected option in the\n * select's trigger.\n */\n get display(): string {\n return (this._element.nativeElement.textContent || '').trim();\n }\n\n @Input()\n public set inactive(value: boolean | '') {\n this.active = !coerceBoolean(value);\n }\n\n @Input()\n public set hidden(value: boolean | '') {\n this._hidden = coerceBoolean(value);\n }\n\n public get hidden(): boolean | '' {\n return this._hidden;\n }\n\n private _hidden = false;\n\n @Input()\n public set show(value: boolean) {\n this._hidden = !value;\n }\n\n constructor(\n @Inject(ElementRef)\n private _element: ElementRef<HTMLElement>\n ) {}\n\n public toggle(): void {\n this.active = !this.active;\n }\n\n public activate() {\n this.active = true;\n }\n\n public deactivate() {\n this.active = false;\n }\n}\n","<ng-content></ng-content>\n","import type { QueryList } from '@angular/core';\nimport {\n Component,\n ChangeDetectionStrategy,\n ContentChildren,\n AfterContentInit,\n Input,\n HostBinding,\n} from '@angular/core';\nimport { TableColumnOptionComponent } from './table-column-option/table-column-option.component';\nimport { coerceBoolean } from '@rxap/utilities';\n\n@Component({\n selector: 'rxap-table-column-menu',\n templateUrl: './table-column-menu.component.html',\n styleUrls: ['./table-column-menu.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'mfd-table-column-menu' },\n exportAs: 'rxapTableColumns',\n})\nexport class TableColumnMenuComponent implements AfterContentInit {\n @ContentChildren(TableColumnOptionComponent)\n public columns?: QueryList<TableColumnOptionComponent>;\n\n public displayColumns: string[] = [];\n\n @Input()\n public set matCard(value: boolean | '') {\n this._matCardMode = coerceBoolean(value);\n }\n\n @HostBinding('class.mat-card-mode')\n private _matCardMode: boolean = false;\n\n public ngAfterContentInit() {\n this.updateDisplayColumns();\n }\n\n public updateDisplayColumns() {\n if (!this.columns) {\n throw new Error(\n 'Could not query content children of TableColumnOptionComponent'\n );\n }\n this.displayColumns = this.columns\n .filter((option) => option.active)\n .map((option) => option.name);\n }\n\n public activate(columnName: string) {\n this.columns\n ?.filter((option) => option.name === columnName)\n .forEach((column) => column.activate());\n this.updateDisplayColumns();\n }\n\n public deactivate(columnName: string) {\n this.columns\n ?.filter((option) => option.name === columnName)\n .forEach((column) => column.deactivate());\n this.updateDisplayColumns();\n }\n}\n","<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","import { NgModule } from '@angular/core';\nimport { TableColumnMenuComponent } from './table-column-menu.component';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { CommonModule } from '@angular/common';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { TableColumnOptionComponent } from './table-column-option/table-column-option.component';\nimport { StopPropagationDirectiveModule } from '@rxap/directives';\nimport { FlexLayoutModule } from '@angular/flex-layout';\n\n\n@NgModule({\n declarations: [ TableColumnMenuComponent, TableColumnOptionComponent ],\n imports: [\n MatButtonModule,\n MatIconModule,\n MatMenuModule,\n CommonModule,\n MatCheckboxModule,\n StopPropagationDirectiveModule,\n FlexLayoutModule\n ],\n exports: [ TableColumnMenuComponent, TableColumnOptionComponent, MatMenuModule ]\n})\nexport class TableColumnMenuComponentModule {}\n","import {\n Component,\n ChangeDetectionStrategy,\n} from '@angular/core';\nimport { MatSlideToggleChange } from '@angular/material/slide-toggle';\nimport { TableFilterService } from '../../table-filter/table-filter.service';\nimport { TableColumnMenuComponent } from '../table-column-menu.component';\n\n@Component({\n selector: 'mfd-table-show-archived-slide',\n templateUrl: './table-show-archived-slide.component.html',\n styleUrls: ['./table-show-archived-slide.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'mfd-table-show-archived-slide'},\n})\nexport class TableShowArchivedSlideComponent {\n\n constructor(\n private readonly tableFilter: TableFilterService,\n private readonly tableColumnMenu: TableColumnMenuComponent,\n ) {}\n\n public onChange($event: MatSlideToggleChange) {\n this.tableFilter.set('__archived', $event.checked);\n if ($event.checked) {\n this.tableColumnMenu.activate('removedAt');\n } else {\n this.tableColumnMenu.deactivate('removedAt');\n }\n }\n\n}\n","<div rxapStopPropagation>\n <mat-slide-toggle (change)=\"onChange($event)\" i18n=\"@@rxap.material.table-system.table-column-menu.table-show-archived-slide\">\n Show archived documents\n </mat-slide-toggle>\n</div>\n","import { NgModule } from '@angular/core';\nimport { TableShowArchivedSlideComponent } from './table-show-archived-slide.component';\nimport { StopPropagationDirectiveModule } from '@rxap/directives';\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\n\n\n@NgModule({\n declarations: [TableShowArchivedSlideComponent],\n imports: [\n StopPropagationDirectiveModule,\n MatSlideToggleModule,\n ],\n exports: [TableShowArchivedSlideComponent],\n})\nexport class TableShowArchivedSlideComponentModule {\n}\n","import { InjectionToken } from '@angular/core';\nimport { Method } from '@rxap/utilities/rxjs';\n\nexport const TABLE_CREATE_REMOTE_METHOD = new InjectionToken<Method>('table-create-remote-method');\n","import {\n Directive,\n ElementRef,\n HostListener,\n Inject,\n Input,\n NgModule,\n OnInit,\n Renderer2\n} from '@angular/core';\nimport { Required } from '@rxap/utilities';\nimport {\n isObservable,\n Observable\n} from 'rxjs';\nimport { TableDataSourceDirective } from '../table-data-source.directive';\nimport { TABLE_CREATE_REMOTE_METHOD } from './tokens';\nimport { Method } from '@rxap/utilities/rxjs';\n\n@Directive({\n selector: 'button[rxapTableCreate]',\n})\nexport class TableCreateButtonDirective<Data extends Record<string, any>>\n implements OnInit\n{\n @Input('rxapTableCreate')\n @Required\n public dataSource!: TableDataSourceDirective<Data>;\n\n constructor(\n @Inject(TABLE_CREATE_REMOTE_METHOD)\n private readonly remoteMethod: Method<any, Data | Observable<Data>>,\n @Inject(ElementRef)\n private readonly elementRef: ElementRef,\n @Inject(Renderer2)\n private readonly renderer: Renderer2\n ) {}\n\n public ngOnInit() {\n this.renderer.setStyle(\n this.elementRef.nativeElement,\n 'margin-bottom',\n '6px'\n );\n }\n\n @HostListener('click')\n public async onClick() {\n const result = await this.remoteMethod.call();\n if (isObservable(result)) {\n await result.toPromise();\n }\n this.dataSource.refresh();\n }\n}\n\n@NgModule({\n declarations: [TableCreateButtonDirective],\n exports: [TableCreateButtonDirective],\n})\nexport class TableCreateButtonDirectiveModule {}\n","import { InjectionToken } from '@angular/core';\nimport { OpenApiRemoteMethod } from '@rxap/open-api/remote-method';\nimport { BaseRemoteMethod } from '@rxap/remote-method';\n\nexport const ROW_ARCHIVE_METHOD = new InjectionToken<OpenApiRemoteMethod<any, { uuid: string }>>('archive-remote-method');\nexport const ROW_RESTORE_METHOD = new InjectionToken<OpenApiRemoteMethod<any, { uuid: string }>>('unarchive-remote-method');\nexport const ROW_DELETE_METHOD = new InjectionToken<OpenApiRemoteMethod<any, { uuid: string }>>('delete-remote-method');\nexport const ROW_EDIT_METHOD = new InjectionToken<BaseRemoteMethod<any, Record<string, any>>>('edit-remote-method');\nexport const ROW_VIEW_METHOD = new InjectionToken<BaseRemoteMethod<any, Record<string, any>>>('view-remote-method');\nexport const ROW_LINK_METHOD = new InjectionToken<BaseRemoteMethod<any, Record<string, any>>>('link-remote-method');\nexport const ROW_EDIT_LOADER_METHOD = new InjectionToken<BaseRemoteMethod<Record<string, any>, Record<string, any>>>('edit-loader-method');\n","import {\n ChangeDetectionStrategy,\n Component,\n Inject,\n Input,\n Optional\n} from '@angular/core';\nimport { Required } from '@rxap/utilities';\nimport {\n ROW_ARCHIVE_METHOD,\n ROW_DELETE_METHOD,\n ROW_EDIT_LOADER_METHOD,\n ROW_EDIT_METHOD,\n ROW_LINK_METHOD,\n ROW_RESTORE_METHOD,\n ROW_VIEW_METHOD\n} from '../tokens';\nimport { OpenApiRemoteMethod } from '@rxap/open-api/remote-method';\nimport { TableDataSourceDirective } from '../../table-data-source.directive';\nimport {\n isObservable,\n Observable\n} from 'rxjs';\nimport { Method } from '@rxap/utilities/rxjs';\n\n@Component({\n selector: 'td[mfd-row-controls-cell]',\n templateUrl: './row-controls-cell.component.html',\n styleUrls: [ './row-controls-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'mfd-row-controls-cell' }\n})\nexport class RowControlsCellComponent<Data extends Record<string, any> & { uuid: string }> {\n\n @Input()\n @Required\n public element!: Data;\n\n constructor(\n private readonly tableDataSource: TableDataSourceDirective<Data>,\n @Optional()\n @Inject(ROW_DELETE_METHOD)\n public readonly deleteRemoteMethod: OpenApiRemoteMethod<any, { uuid: string }> | null = null,\n @Optional()\n @Inject(ROW_ARCHIVE_METHOD)\n public readonly archiveRemoteMethod: OpenApiRemoteMethod<any, { uuid: string }> | null = null,\n @Optional()\n @Inject(ROW_RESTORE_METHOD)\n public readonly unarchiveRemoteMethod: OpenApiRemoteMethod<any, { uuid: string }> | null = null,\n @Optional()\n @Inject(ROW_EDIT_METHOD)\n public readonly editRemoteMethod: Method<any, Data | Observable<Data>> | null = null,\n @Optional()\n @Inject(ROW_VIEW_METHOD)\n public readonly rowViewMethod: Method<any, { uuid: string }> | null = null,\n @Optional()\n @Inject(ROW_LINK_METHOD)\n public readonly rowLinkMethod: Method<any, { uuid: string }> | null = null,\n @Optional()\n @Inject(ROW_EDIT_LOADER_METHOD)\n public readonly editLoaderMethod: Method<any, Data> | null = null\n ) {}\n\n public async archive() {\n if (this.archiveRemoteMethod) {\n await this.archiveRemoteMethod.call({ parameters: { uuid: this.element.uuid } });\n this.tableDataSource.refresh();\n }\n }\n\n public async unarchive() {\n if (this.unarchiveRemoteMethod) {\n await this.unarchiveRemoteMethod.call({ parameters: { uuid: this.element.uuid } });\n this.tableDataSource.refresh();\n }\n }\n\n public async remove() {\n if (this.deleteRemoteMethod) {\n await this.deleteRemoteMethod.call({ parameters: { uuid: this.element.uuid } });\n this.tableDataSource.refresh();\n }\n }\n\n public async view() {\n if (this.rowViewMethod) {\n await this.rowViewMethod.call(this.element);\n }\n }\n\n public async link() {\n if (this.rowLinkMethod) {\n await this.rowLinkMethod.call(this.element);\n }\n }\n\n public async edit() {\n if (this.editRemoteMethod) {\n let initial = this.element;\n if (this.editLoaderMethod) {\n initial = await this.editLoaderMethod.call(initial);\n }\n const result = await this.editRemoteMethod.call(initial, { context: this.element });\n if (isObservable(result)) {\n await result.toPromise();\n }\n this.tableDataSource.refresh();\n }\n }\n}\n","<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öschen\"\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","import { NgModule } from '@angular/core';\nimport { RowControlsCellComponent } from './row-controls-cell.component';\nimport { CommonModule } from '@angular/common';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { ConfirmComponentModule } from '@rxap/components';\nimport { MatTooltipModule } from '@angular/material/tooltip';\n\n\n@NgModule({\n declarations: [ RowControlsCellComponent ],\n imports: [\n CommonModule,\n FlexLayoutModule,\n MatButtonModule,\n MatIconModule,\n ConfirmComponentModule,\n MatTooltipModule\n ],\n exports: [ RowControlsCellComponent ]\n})\nexport class RowControlsCellComponentModule {\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Inject,\n Optional,\n} from '@angular/core';\nimport { TableFilterService } from '../../table-filter/table-filter.service';\nimport type { Observable } from 'rxjs';\nimport { of } from 'rxjs';\nimport { distinctUntilChanged, map, startWith } from 'rxjs/operators';\nimport {\n ROW_ARCHIVE_METHOD,\n ROW_DELETE_METHOD,\n ROW_RESTORE_METHOD,\n} from '../tokens';\nimport { TableDataSourceDirective } from '../../table-data-source.directive';\nimport { SelectRowService } from '../../select-row/select-row.service';\nimport { OpenApiRemoteMethod } from '@rxap/open-api/remote-method';\n\n@Component({\n selector: 'th[mfd-row-controls-header-cell]',\n templateUrl: './row-controls-header-cell.component.html',\n styleUrls: ['./row-controls-header-cell.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'mfd-row-controls-header-cell' },\n})\nexport class RowControlsHeaderCellComponent<Data extends Record<string, any>> {\n public showArchive$: Observable<boolean>;\n\n public showUnarchive$: Observable<boolean>;\n\n public showDelete$: Observable<boolean>;\n\n public disabled$: Observable<boolean>;\n\n constructor(\n private readonly tableDataSource: TableDataSourceDirective<Data>,\n @Optional()\n @Inject(TableFilterService)\n private readonly tableFilter: TableFilterService | null = null,\n @Optional()\n @Inject(SelectRowService)\n public readonly selectRow: SelectRowService<Data> | null = null,\n @Optional()\n @Inject(ROW_DELETE_METHOD)\n private readonly deleteRemoteMethod: OpenApiRemoteMethod<\n any,\n { uuid: string }\n > | null = null,\n @Optional()\n @Inject(ROW_ARCHIVE_METHOD)\n private readonly archiveRemoteMethod: OpenApiRemoteMethod<\n any,\n { uuid: string }\n > | null = null,\n @Optional()\n @Inject(ROW_RESTORE_METHOD)\n private readonly unarchiveRemoteMethod: OpenApiRemoteMethod<\n any,\n { uuid: string }\n > | null = null\n ) {\n this.disabled$ =\n this.selectRow?.selectedRows$.pipe(\n map((selectedRows) => selectedRows.length === 0),\n startWith(true)\n ) ?? of(true);\n this.showUnarchive$ = this.showDelete$ =\n this.tableFilter?.change.pipe(\n map(\n (filter) =>\n filter &&\n filter.hasOwnProperty('__archived') &&\n filter['__archived'] === true\n ),\n distinctUntilChanged()\n ) ?? of(false);\n this.showArchive$ =\n this.tableFilter?.change.pipe(\n map(\n (filter) =>\n !filter ||\n !filter.hasOwnProperty('__archived') ||\n filter['__archived'] === false\n ),\n distinctUntilChanged()\n ) ?? of(true);\n }\n\n public async archiveSelected(selectedRows: Data[] | undefined) {\n if (this.archiveRemoteMethod && selectedRows) {\n await Promise.all(\n selectedRows.map((selectedRow) =>\n this.archiveRemoteMethod?.call({\n parameters: { uuid: selectedRow.uuid },\n })\n )\n );\n this.tableDataSource.refresh();\n }\n }\n\n public async unarchiveSelected(selectedRows: Data[] | undefined) {\n if (this.unarchiveRemoteMethod && selectedRows) {\n await Promise.all(\n selectedRows.map((selectedRow) =>\n this.unarchiveRemoteMethod?.call({\n parameters: { uuid: selectedRow.uuid },\n })\n )\n );\n this.tableDataSource.refresh();\n }\n }\n\n public async deleteSelected(selectedRows: Data[] | undefined) {\n if (this.deleteRemoteMethod && selectedRows) {\n await Promise.all(\n selectedRows.map((selectedRow) =>\n this.deleteRemoteMethod?.call({\n parameters: { uuid: selectedRow.uuid },\n })\n )\n );\n this.tableDataSource.refresh();\n }\n }\n}\n","<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öschen\" 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","import { NgModule } from '@angular/core';\nimport { RowControlsHeaderCellComponent } from './row-controls-header-cell.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { ConfirmComponentModule } from '@rxap/components';\nimport { CommonModule } from '@angular/common';\nimport { MatTooltipModule } from '@angular/material/tooltip';\n\n@NgModule({\n declarations: [RowControlsHeaderCellComponent],\n imports: [\n FlexLayoutModule,\n MatButtonModule,\n MatIconModule,\n ConfirmComponentModule,\n CommonModule,\n MatTooltipModule,\n ],\n exports: [RowControlsHeaderCellComponent],\n})\nexport class RowControlsHeaderCellComponentModule {}\n","import { NgModule } from '@angular/core';\nimport { RowControlsCellComponentModule } from './row-controls-cell/row-controls-cell.component.module';\nimport { RowControlsHeaderCellComponentModule } from './row-controls-header-cell/row-controls-header-cell.component.module';\n\n\n@NgModule({\n exports: [\n RowControlsCellComponentModule,\n RowControlsHeaderCellComponentModule\n ]\n})\nexport class TableRowControlsModule {\n}\n","import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';\nimport type { WindowRef } from '@rxap/window-system';\nimport { RXAP_WINDOW_REF } from '@rxap/window-system';\nimport type { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { SelectRowService } from '../select-row/select-row.service';\n\n@Component({\n // TODO : rn selector\n selector: 'mfd-table-select-controls',\n templateUrl: './table-select-controls.component.html',\n styleUrls: ['./table-select-controls.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'mfd-table-select-controls' },\n})\nexport class TableSelectControlsComponent {\n public hasNotSelected$: Observable<boolean>;\n\n constructor(\n private readonly selectRows: SelectRowService<any>,\n @Inject(RXAP_WINDOW_REF)\n private readonly windowRef: WindowRef\n ) {\n this.hasNotSelected$ = this.selectRows.selectedRows$.pipe(\n map((selected) => selected.length === 0)\n );\n }\n\n public cancel() {\n this.windowRef.close();\n }\n\n public select() {\n this.windowRef.close(this.selectRows.selectedRows);\n }\n}\n","<div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <button fxFlex=\"nogrow\" mat-stroked-button (click)=\"cancel()\" type=\"button\"\n i18n=\"@@rxap-material.table-system.table-select-controls.cancel\">Cancel\n </button>\n <button fxFlex=\"nogrow\" mat-raised-button (click)=\"select()\" type=\"button\" [disabled]=\"hasNotSelected$ | async\"\n i18n=\"@@rxap-material.table-system.table-select-controls.select\">Select\n </button>\n</div>\n","import { NgModule } from '@angular/core';\nimport { TableSelectControlsComponent } from './table-select-controls.component';\nimport { MatButtonModule } from '@angular/material/button';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [ TableSelectControlsComponent ],\n imports: [\n MatButtonModule,\n FlexLayoutModule,\n CommonModule\n ],\n exports: [ TableSelectControlsComponent ]\n})\nexport class TableSelectControlsComponentModule {\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Input\n} from '@angular/core';\nimport {\n BackgroundPosition,\n BackgroundPositionOptions,\n BackgroundRepeat,\n BackgroundRepeatOptions,\n BackgroundSize,\n BackgroundSizeOptions\n} from '@rxap/directives';\n\n@Component({\n selector: 'td[rxap-image-cell]',\n templateUrl: './image-cell.component.html',\n styleUrls: [ './image-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-image-cell' }\n})\nexport class ImageCellComponent {\n\n @Input()\n public preset?: string;\n\n @Input()\n public size: BackgroundSize = BackgroundSizeOptions.COVER;\n\n @Input()\n public repeat: BackgroundRepeat = BackgroundRepeatOptions.NO_REPEAT;\n\n @Input()\n public position: BackgroundPosition = BackgroundPositionOptions.CENTER_CENTER;\n\n @Input('rxap-image-cell')\n public value: string | null = null;\n\n}\n","<div\n *ngIf=\"value\"\n [ngClass]=\"[preset]\"\n [repeat]=\"repeat\"\n [size]=\"size\"\n [position]=\"position\"\n [rxapBackgroundImage]=\"value\"\n class=\"image\">\n</div>\n<ng-content></ng-content>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { BackgroundImageDirectiveModule } from '@rxap/directives';\nimport { ImageCellComponent } from './image-cell.component';\n\n@NgModule({\n declarations: [ ImageCellComponent ],\n imports: [ BackgroundImageDirectiveModule, CommonModule ],\n exports: [ ImageCellComponent ]\n})\nexport class ImageCellComponentModule {}\n","import {\n Component,\n ChangeDetectionStrategy, Input,\n} from '@angular/core';\n\n@Component({\n selector: 'td[rxap-copy-to-clipboard-cell]',\n templateUrl: './copy-to-clipboard-cell.component.html',\n styleUrls: [ './copy-to-clipboard-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-copy-to-clipboard-cell' }\n})\nexport class CopyToClipboardCellComponent {\n\n @Input('rxap-copy-to-clipboard-cell')\n public value: any;\n\n}\n","<rxap-copy-to-clipboard *ngIf=\"value !== null && value !== undefined && value !== ''\" [value]=\"value\" class=\"copy-to-clipboard\"></rxap-copy-to-clipboard>\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { CopyToClipboardCellComponent } from './copy-to-clipboard-cell.component';\nimport { CopyToClipboardModule } from '@rxap/components';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [CopyToClipboardCellComponent],\n imports: [\n CopyToClipboardModule,\n CommonModule\n ],\n exports: [CopyToClipboardCellComponent]\n})\nexport class CopyToClipboardCellComponentModule { }\n","import {\n Component,\n ChangeDetectionStrategy,\n Input\n} from '@angular/core';\nimport { IconConfig } from '@rxap/utilities';\n\n@Component({\n selector: 'td[rxap-icon-cell]',\n templateUrl: './icon-cell.component.html',\n styleUrls: [ './icon-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-icon-cell' }\n})\nexport class IconCellComponent {\n\n @Input('rxap-icon-cell')\n public icon!: IconConfig | null;\n\n}\n","<mat-icon *ngIf=\"icon\" [rxapIcon]=\"icon\"></mat-icon>\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { IconCellComponent } from './icon-cell.component';\nimport { MatIconModule } from '@angular/material/icon';\nimport { CommonModule } from '@angular/common';\nimport { IconDirectiveModule } from '@rxap/material-directives/icon';\n\n\n\n@NgModule({\n declarations: [IconCellComponent],\n imports: [\n MatIconModule,\n CommonModule,\n IconDirectiveModule,\n ],\n exports: [IconCellComponent]\n})\nexport class IconCellComponentModule { }\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\n\n@Component({\n selector: 'td[rxap-date-cell]',\n templateUrl: './date-cell.component.html',\n styleUrls: ['./date-cell.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'rxap-date-cell'},\n})\nexport class DateCellComponent {\n\n @Input('rxap-date-cell')\n public date: Date | number | string | null = null;\n\n @Input()\n public format: string = 'dd.MM.yyyy HH:mm';\n\n}\n","<ng-template [ngIf]=\"date\">\n {{date | date:format}}\n</ng-template>\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { DateCellComponent } from './date-cell.component';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [DateCellComponent],\n imports: [\n CommonModule,\n ],\n exports: [DateCellComponent],\n})\nexport class DateCellComponentModule {\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Input\n} from '@angular/core';\n\n@Component({\n selector: 'td[rxap-link-cell]',\n templateUrl: './link-cell.component.html',\n styleUrls: [ './link-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-link-cell' }\n})\nexport class LinkCellComponent {\n\n @Input('rxap-link-cell')\n public value: any;\n\n public get href(): string {\n if (this.protocol) {\n return [ this.protocol, this.value ].join(':');\n }\n return this.value;\n }\n\n @Input()\n public protocol?: 'tel' | 'mailto';\n\n}\n","<a *ngIf=\"value\" [href]=\"href\" [matTooltip]=\"value\" class=\"link\" target=\"_blank\">\n <span fxLayout=\"row\" fxLayoutGap=\"8px\" fxLayoutAlign=\"start center\">\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 fxFlex=\"nogrow\" class=\"content\">{{value}}</span>\n </span>\n</a>\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { LinkCellComponent } from './link-cell.component';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatIconModule } from '@angular/material/icon';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [LinkCellComponent],\n imports: [\n MatTooltipModule,\n MatIconModule,\n FlexLayoutModule,\n CommonModule\n ],\n exports: [LinkCellComponent]\n})\nexport class LinkCellComponentModule { }\n","import type { QueryList } from '@angular/core';\nimport {\n Component,\n ChangeDetectionStrategy,\n Input,\n ContentChildren,\n AfterContentInit,\n isDevMode,\n OnDestroy,\n Renderer2\n} from '@angular/core';\nimport { MatOption } from '@angular/material/core';\nimport { Subscription } from 'rxjs';\nimport {\n tap,\n startWith\n} from 'rxjs/operators';\n\n@Component({\n selector: 'td[rxap-options-cell]',\n templateUrl: './options-cell.component.html',\n styleUrls: [ './options-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-options-cell' }\n})\nexport class OptionsCellComponent implements AfterContentInit, OnDestroy {\n @Input('rxap-options-cell')\n public value: any;\n\n @Input('default')\n public defaultViewValue!: string;\n\n @Input('empty')\n public emptyViewValue!: string;\n\n public viewValue!: string;\n\n private readonly _subscription = new Subscription();\n\n constructor(private readonly renderer: Renderer2) {\n this.defaultViewValue = ''; // $localize`:@@rxap-material.table-system.options-cell.unknown:unknown`;\n this.emptyViewValue = ''; // $localize`:@@rxap-material.table-system.options-cell.empty:empty`;\n }\n\n @ContentChildren(MatOption, { descendants: true })\n public options!: QueryList<MatOption>;\n\n public ngAfterContentInit() {\n // Hide the mat-option elements\n this._subscription.add(this.options.changes.pipe(\n startWith(null),\n tap(() => this.options.forEach(option => this.renderer.setStyle(option._getHostElement(), 'display', 'none')))\n ).subscribe());\n if (this.value === undefined || this.value === null) {\n this.viewValue = this.emptyViewValue;\n } else {\n if (this.options) {\n this._subscription.add(this.options.changes\n .pipe(\n startWith(null),\n tap(() => (this.viewValue = this.getViewValue()))\n )\n .subscribe());\n } else if (isDevMode()) {\n console.log('Could not load any option');\n }\n }\n }\n\n public getViewValue(): string {\n return (\n this.options.find((option) => option.value === this.value)?.viewValue ??\n this.defaultViewValue\n );\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n}\n","{{viewValue}}\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { OptionsCellComponent } from './options-cell.component';\n\n\n\n@NgModule({\n declarations: [OptionsCellComponent],\n imports: [\n ],\n exports: [OptionsCellComponent]\n})\nexport class OptionsCellComponentModule { }\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\n\n@Component({\n selector: 'td[rxap-boolean-cell]',\n templateUrl: './boolean-cell.component.html',\n styleUrls: [ './boolean-cell.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-boolean-cell' },\n})\nexport class BooleanCellComponent {\n\n @Input('rxap-boolean-cell')\n public value: any | null = null;\n\n}\n","<ng-template [ngIf]=\"value\" [ngIfElse]=\"isFalse\">\n <mat-icon class=\"truthy\">check_circle</mat-icon>\n</ng-template>\n<ng-template #isFalse>\n <mat-icon class=\"falsy\">cancel</mat-icon>\n</ng-template>\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { BooleanCellComponent } from './boolean-cell.component';\nimport { CommonModule } from '@angular/common';\nimport { MatIconModule } from '@angular/material/icon';\n\n\n@NgModule({\n declarations: [BooleanCellComponent],\n imports: [\n CommonModule,\n MatIconModule,\n ],\n exports: [BooleanCellComponent],\n})\nexport class BooleanCellComponentModule {\n}\n","import { setMetadata } from '@rxap/utilities/reflect-metadata';\n\nexport const RXAP_TABLE_ACTION_METHOD_TYPE_METADATA = 'rxap-table-action-method-type-metadata';\n\nexport function TableActionMethod(type: string) {\n return function(target: any) {\n setMetadata(RXAP_TABLE_ACTION_METHOD_TYPE_METADATA, type, target);\n };\n}\n","import {\n Directive,\n TemplateRef,\n ViewContainerRef\n} from '@angular/core';\n\n@Directive({\n selector: '[rxapTableRowActionExecuting]'\n})\nexport class TableRowActionExecutingDirective {\n constructor(\n public readonly templateRef: TemplateRef<void>,\n private readonly vcr: ViewContainerRef\n ) {}\n\n public show(): void {\n this.vcr.createEmbeddedView(this.templateRef);\n }\n\n public hide(): void {\n this.vcr.clear();\n }\n}\n","export enum TableRowActionStatus {\n EXECUTING = 'executing',\n DONE = 'done',\n ERROR = 'error',\n SUCCESS = 'success'\n}\n","import {\n getMetadata,\n hasMetadata\n} from '@rxap/utilities/reflect-metadata';\nimport { Method } from '@rxap/utilities/rxjs';\nimport { RXAP_TABLE_ACTION_METHOD_TYPE_METADATA } from './decorators';\n\nexport type TableRowActionTypeSwitchMethod<Data extends Record<string, any>> = Method<any, { element: Data; type: string }>;\nexport type TableRowActionTypeMethod<Data extends Record<string, any>> = Method<any,\n Data>;\n\nexport type TableRowActionMethod<Data extends Record<string, any>> =\n | TableRowActionTypeSwitchMethod<Data>\n | TableRowActionTypeMethod<Data>;\n\nexport function IsTableRowActionTypeSwitchMethod<Data extends Record<string, any>>(\n method: TableRowActionMethod<Data>\n): method is TableRowActionTypeSwitchMethod<Data> {\n return !hasMetadata(\n RXAP_TABLE_ACTION_METHOD_TYPE_METADATA,\n method.constructor\n );\n}\n\nexport function IsTableRowActionTypeMethod<Data extends Record<string, any>>(\n type: string\n) {\n return (\n method: TableRowActionMethod<Data>\n ): method is TableRowActionTypeMethod<Data> => {\n return (\n getMetadata(\n RXAP_TABLE_ACTION_METHOD_TYPE_METADATA,\n method.constructor\n ) === type\n );\n };\n}\n","import { InjectionToken } from '@angular/core';\n\nexport const RXAP_TABLE_ROW_ACTION_METHOD = new InjectionToken(\n 'rxap-table-row-action-method'\n);\n","import {\n ChangeDetectorRef,\n ContentChild,\n Directive,\n HostListener,\n Inject,\n Input,\n isDevMode,\n Optional,\n ViewContainerRef\n} from '@angular/core';\nimport { MatButton } from '@angular/material/button';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport {\n coerceArray,\n coerceBoolean,\n Required\n} from '@rxap/utilities';\nimport { TableRowActionExecutingDirective } from './table-row-action-executing.directive';\nimport { TableRowActionStatus } from './table-row-action-status';\nimport {\n IsTableRowActionTypeMethod,\n IsTableRowActionTypeSwitchMethod,\n TableRowActionMethod,\n TableRowActionTypeMethod,\n TableRowActionTypeSwitchMethod\n} from './table-row-action.method';\nimport { RXAP_TABLE_ROW_ACTION_METHOD } from './tokens';\nimport { TableDataSourceDirective } from '../table-data-source.directive';\n\n@Directive({\n selector: 'button[rxapTableRowAction]'\n})\nexport class TableRowActionDirective<Data extends Record<string, any>> {\n private _hasConfirmDirective = false;\n\n @Input('rxapConfirm')\n public set hasConfirmDirective(value: any) {\n this._hasConfirmDirective = coerceBoolean(value);\n }\n\n @Input()\n @Required\n public element!: Data;\n @Input('rxapTableRowAction')\n @Required\n public type!: string;\n\n @Input()\n public errorMessage?: string;\n\n @Input()\n public successMessage?: string;\n\n /**\n * true - after the action is executed the table datasource is refreshed\n */\n @Input()\n public refresh?: boolean;\n\n @ContentChild(TableRowActionExecutingDirective)\n private readonly executingDirective?: TableRowActionExecutingDirective;\n private _currentStatus: TableRowActionStatus = TableRowActionStatus.DONE;\n\n private readonly actionMethodList: Array<TableRowActionMethod<Data>>;\n\n constructor(\n @Inject(RXAP_TABLE_ROW_ACTION_METHOD)\n actionMethodList:\n | Array<TableRowActionMethod<Data>>\n | TableRowActionMethod<Data>,\n @Inject(ChangeDetectorRef)\n protected readonly cdr: ChangeDetectorRef,\n @Inject(ViewContainerRef)\n private readonly vcr: ViewContainerRef,\n @Inject(TableDataSourceDirective)\n private readonly tableDataSourceDirective: TableDataSourceDirective,\n @Inject(MatSnackBar)\n private readonly snackBar: MatSnackBar,\n @Optional()\n @Inject(MatButton)\n private readonly matButton: MatButton | null\n ) {\n this.actionMethodList = coerceArray(actionMethodList);\n }\n\n @HostListener('confirmed')\n public onConfirmed() {\n return this.execute();\n }\n\n @HostListener('click', [ '$event' ])\n public onClick($event: Event) {\n $event.stopPropagation();\n if (!this._hasConfirmDirective) {\n return this.execute();\n } else {\n if (isDevMode()) {\n console.debug('skip remote method call. Wait for confirmation.');\n }\n }\n return Promise.resolve();\n }\n\n public async execute(): Promise<void> {\n this.setStatus(TableRowActionStatus.EXECUTING);\n try {\n await Promise.all(\n this.getElementList().map((element) => {\n return Promise.all([\n Promise.all(\n this.findUntypedActionMethod().map((am) =>\n am.call({ element, type: this.type })\n )\n ),\n Promise.all(\n this.findTypedActionMethod().map((am) => am.call(element))\n )\n ]);\n })\n );\n this.setStatus(TableRowActionStatus.SUCCESS);\n } catch (e) {\n console.error(`Failed to execute row action: ${e.message}`);\n this.setStatus(TableRowActionStatus.ERROR);\n }\n }\n\n protected getElementList(): Data[] {\n return [ this.element ];\n }\n\n /**\n * find all method instance in the actionMethodList member that\n * do not have a @TableActionMethod decorators\n * @private\n */\n private findUntypedActionMethod(): Array<TableRowActionTypeSwitchMethod<Data>> {\n return this.actionMethodList.filter(IsTableRowActionTypeSwitchMethod);\n }\n\n /**\n * find all method instance in the actionMethodList member that\n * do have a @TableActionMethod decorators with the current type\n * @private\n */\n private findTypedActionMethod(): Array<TableRowActionTypeMethod<Data>> {\n return this.actionMethodList.filter(IsTableRowActionTypeMethod(this.type));\n }\n\n protected setButtonDisabled() {\n if (this.matButton) {\n this.matButton.disabled = true;\n }\n }\n\n protected setButtonEnabled() {\n if (this.matButton) {\n this.matButton.disabled = false;\n }\n }\n\n private setStatus(status: TableRowActionStatus) {\n if (this._currentStatus === status) {\n return;\n }\n this._currentStatus = status;\n switch (status) {\n case TableRowActionStatus.EXECUTING:\n this.setButtonDisabled();\n this.executingDirective?.show();\n break;\n case TableRowActionStatus.SUCCESS:\n if (this.refresh) {\n this.tableDataSourceDirective.refresh();\n }\n if (this.successMessage) {\n this.snackBar.open(this.successMessage, 'ok', { duration: 2560 });\n }\n this.setStatus(TableRowActionStatus.DONE);\n break;\n case TableRowActionStatus.ERROR:\n this.setStatus(TableRowActionStatus.DONE);\n if (this.errorMessage) {\n this.snackBar.open(this.errorMessage, 'ok', { duration: 5120 });\n }\n break;\n case TableRowActionStatus.DONE:\n this.setButtonEnabled();\n this.executingDirective?.hide();\n break;\n }\n this.cdr.detectChanges();\n }\n}\n","import {\n ChangeDetectorRef,\n Directive,\n Inject,\n Input,\n OnDestroy,\n OnInit,\n Optional,\n ViewContainerRef\n} from '@angular/core';\nimport { MatButton } from '@angular/material/button';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport { Required } from '@rxap/utilities';\nimport { Subscription } from 'rxjs';\nimport {\n map,\n startWith,\n tap\n} from 'rxjs/operators';\nimport { TableRowActionDirective } from './table-row-action.directive';\nimport { TableRowActionMethod } from './table-row-action.method';\nimport { RXAP_TABLE_ROW_ACTION_METHOD } from './tokens';\nimport { TableDataSourceDirective } from '../table-data-source.directive';\nimport { SelectRowService } from '../select-row/select-row.service';\n\n@Directive({\n selector: 'button[rxapTableRowHeaderAction]'\n})\nexport class TableRowHeaderActionDirective<Data extends Record<string, any>>\n extends TableRowActionDirective<Data>\n implements OnInit, OnDestroy {\n private _subscription?: Subscription;\n\n constructor(\n @Inject(RXAP_TABLE_ROW_ACTION_METHOD)\n actionMethod: TableRowActionMethod<Data>,\n @Inject(ChangeDetectorRef)\n cdr: ChangeDetectorRef,\n @Inject(ViewContainerRef)\n vcr: ViewContainerRef,\n @Inject(TableDataSourceDirective)\n tableDataSourceDirective: TableDataSourceDirective,\n @Inject(MatSnackBar)\n snackBar: MatSnackBar,\n @Optional()\n @Inject(MatButton)\n matButton: MatButton | null,\n @Optional()\n @Inject(SelectRowService)\n private readonly selectRowService: SelectRowService<Data> | null\n ) {\n super(\n actionMethod,\n cdr,\n vcr,\n tableDataSourceDirective,\n snackBar,\n matButton\n );\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n public ngOnInit() {\n if (this.selectRowService) {\n this._subscription = this.selectRowService.selectedRows$\n .pipe(\n startWith(this.selectRowService.selectedRows),\n map((rows) => rows.length !== 0),\n tap((hasSelected) => {\n if (hasSelected) {\n this.setButtonEnabled();\n } else {\n this.setButtonDisabled();\n }\n this.cdr.detectChanges();\n })\n )\n .subscribe();\n } else {\n this.setButtonDisabled();\n }\n }\n\n protected getElementList(): Data[] {\n return this.selectRowService?.selectedRows ?? [];\n }\n\n @Input('rxapTableRowHeaderAction')\n @Required\n public type!: string;\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { ConfirmComponentModule } from '@rxap/components';\nimport { TableRowActionExecutingDirective } from './table-row-action-executing.directive';\nimport { TableRowActionDirective } from './table-row-action.directive';\nimport { TableRowHeaderActionDirective } from './table-row-header-action.directive';\n\n@NgModule({\n declarations: [\n TableRowActionDirective,\n TableRowActionExecutingDirective,\n TableRowHeaderActionDirective\n ],\n exports: [\n TableRowActionDirective,\n TableRowHeaderActionDirective,\n TableRowActionExecutingDirective,\n MatTooltipModule,\n MatButtonModule,\n ConfirmComponentModule,\n MatIconModule,\n MatProgressBarModule,\n CommonModule\n ]\n})\nexport class TableRowActionsModule {}\n","export * from './lib/expand-row/expand-row.module';\nexport * from './lib/expand-row/expand-row-container/expand-row-container.component';\nexport * from './lib/expand-row/expand-row-container/expand-row-content.directive';\nexport * from './lib/expand-row/expand-row-container/expand-row-container.component.module';\nexport * from './lib/expand-row/expand-controls-cell/expand-controls-cell.component';\nexport * from './lib/expand-row/expand-controls-cell/expand-controls-cell.component.module';\nexport * from './lib/expand-row/expand-row.service';\nexport * from './lib/expand-row/expand-row.directive';\n\nexport * from './lib/select-row/select-row.module';\nexport * from './lib/select-row/checkbox-cell/checkbox-cell.component';\nexport * from './lib/select-row/checkbox-cell/checkbox-cell.component.module';\nexport * from './lib/select-row/checkbox-header-cell/checkbox-header-cell.component';\nexport * from './lib/select-row/checkbox-header-cell/checkbox-header-cell.component.module';\nexport * from './lib/select-row/select-row.service';\nexport * from './lib/select-row/selected-rows.directive';\nexport * from './lib/select-row/tokens';\nexport * from './lib/row-animation';\nexport * from './lib/table-data-source.directive';\nexport * from './lib/table-row-metadata';\n\n// region table filter\n\nexport * from './lib/table-filter/filter-header-row.directive';\nexport * from './lib/table-filter/table-filter.module';\nexport * from './lib/table-filter/table-filter.service';\nexport * from './lib/table-filter/to-filter-column-names.pipe';\nexport * from './lib/table-filter/tokens';\n\n// endregion\n\n// region table column menu\n\nexport * from './lib/table-column-menu/table-column-menu.component';\nexport * from './lib/table-column-menu/table-column-menu.component.module';\nexport * from './lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component';\nexport * from './lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.module';\nexport * from './lib/table-column-menu/table-column-option/table-column-option.component';\n\n// endregion\n\n// region table create button\n\nexport * from './lib/table-create-button/table-create-button.directive';\nexport * from './lib/table-create-button/tokens';\n\n// endregion\n\n// region table row controls\n\nexport * from './lib/table-row-controls/table-row-controls.module';\nexport * from './lib/table-row-controls/row-controls-cell/row-controls-cell.component';\nexport * from './lib/table-row-controls/row-controls-cell/row-controls-cell.component.module';\nexport * from './lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component';\nexport * from './lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.module';\nexport * from './lib/table-row-controls/tokens';\n\n// endregion\n\n// region table select controls\n\nexport * from './lib/table-select-controls/table-select-controls.component';\nexport * from './lib/table-select-controls/table-select-controls.component.module';\n\n// endregion\n\n// region cells\n\n// region image\n\nexport * from './lib/cells/image-cell/image-cell.component';\nexport * from './lib/cells/image-cell/image-cell.component.module';\n\n// endregion\n\n// region copy-to-clipboard cell\n\nexport * from './lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component';\nexport * from './lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.module';\n\n// endregion\n\n// region icon cell\n\nexport * from './lib/cells/icon-cell/icon-cell.component';\nexport * from './lib/cells/icon-cell/icon-cell.component.module';\n\n// endregion\n\n// region date cell\n\nexport * from './lib/cells/date-cell/date-cell.component';\nexport * from './lib/cells/date-cell/date-cell.component.module';\n\n// endregion\n\n// region link cell\n\nexport * from './lib/cells/link-cell/link-cell.component';\nexport * from './lib/cells/link-cell/link-cell.component.module';\n\n// endregion\n\n// region options cell\n\nexport * from './lib/cells/options-cell/options-cell.component';\nexport * from './lib/cells/options-cell/options-cell.component.module';\n\n// endregion\n\n// region boolean cell\n\nexport * from './lib/cells/boolean-cell/boolean-cell.component';\nexport * from './lib/cells/boolean-cell/boolean-cell.component.module';\n\n// endregion\n\n// region table-row-actions\n\nexport * from './lib/table-row-actions/decorators';\nexport * from './lib/table-row-actions/table-row-action.directive';\nexport * from './lib/table-row-actions/table-row-action.method';\nexport * from './lib/table-row-actions/table-row-action-executing.directive';\nexport * from './lib/table-row-actions/table-row-action-status';\nexport * from './lib/table-row-actions/table-row-actions.module';\nexport * from './lib/table-row-actions/table-row-header-action.directive';\nexport * from './lib/table-row-actions/tokens';\n\n// endregion\n\n// endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAaa,yBAAyB;IAQpC,YAEkB,QAA8D;QAA9D,aAAQ,G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,6BAA6B;kBAHzC,SAAS;mBAAC;oBACT,QAAQ,EAAE,kCAAkC;iBAC7C;;0BAOI,MAAM;2BAAC,4BAA4B;;0BAEnC,MAAM;2BAAC,iBAAiB;;0BAExB,MAAM;2BAAC,gBAAgB;;0BAEvB,MAAM;2BAAC,wBAAwB;;0BAE/B,MAAM;2BAAC,WAAW;;0BAElB,QAAQ;;0BACR,MAAM;2BAAC,SAAS;;0BAEhB,QAAQ;;0BACR,MAAM;2BAAC,gBAAgB;4CA4CnB,IAAI;sBAFV,KAAK;uBAAC,0BAA0B;;;MC7DtB,qBAAqB;;kHAArB,qBAAqB;mHAArB,qBAAqB,iBAhB9B,uBAAuB;QACvB,gCAAgC;QAChC,6BAA6B,aAG7B,uBAAuB;QACvB,6BAA6B;QAC7B,gCAAgC;QAChC,gBAAgB;QAChB,eAAe;QACf,sBAAsB;QACtB,aAAa;QACb,oBAAoB;QACpB,YAAY;mHAGH,qBAAqB,YAR9B,gBAAgB;QAChB,eAAe;QACf,sBAAsB;QACtB,aAAa;QACb,oBAAoB;QACpB,YAAY;2FAGH,qBAAqB;kBAlBjC,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,uBAAuB;wBACvB,gCAAgC;wBAChC,6BAA6B;qBAC9B;oBACD,OAAO,EAAO;wBACZ,uBAAuB;wBACvB,6BAA6B;wBAC7B,gCAAgC;wBAChC,gBAAgB;wBAChB,eAAe;wBACf,sBAAsB;wBACtB,aAAa;wBACb,oBAAoB;wBACpB,YAAY;qBACb;iBACF;;;ACoGD;AAEA;;AClIA;;;;;;"}
package/index.d.ts CHANGED
@@ -16,6 +16,7 @@ export * from './lib/select-row/selected-rows.directive';
16
16
  export * from './lib/select-row/tokens';
17
17
  export * from './lib/row-animation';
18
18
  export * from './lib/table-data-source.directive';
19
+ export * from './lib/table-row-metadata';
19
20
  export * from './lib/table-filter/filter-header-row.directive';
20
21
  export * from './lib/table-filter/table-filter.module';
21
22
  export * from './lib/table-filter/table-filter.service';
@@ -19,7 +19,7 @@ export declare const TABLE_REMOTE_METHOD: InjectionToken<unknown>;
19
19
  export declare const TABLE_REMOTE_METHOD_ADAPTER_FACTORY: InjectionToken<unknown>;
20
20
  export declare const RXAP_TABLE_FILTER: InjectionToken<unknown>;
21
21
  export declare const TABLE_DATA_SOURCE: InjectionToken<unknown>;
22
- export declare type TableRemoteMethodAdapterFactory<Data extends Record<string, any> = Record<string, any>> = (method: Method, paginator?: PaginatorLike, sort?: SortLike | null, filter?: TableFilterService | null, parameters?: Observable<Record<string, any>>) => BaseRemoteMethod<Data[], TableEvent>;
22
+ export declare type TableRemoteMethodAdapterFactory<Data extends Record<string, any> = Record<string, any>> = (method: Method, paginator?: PaginatorLike, sort?: SortLike | null, filter?: FilterLike | null, parameters?: Observable<Record<string, any>>) => BaseRemoteMethod<Data[], TableEvent>;
23
23
  export declare class TableDataSourceDirective<Data extends Record<string, any> = any> implements OnInit, OnDestroy {
24
24
  private readonly matTable;
25
25
  protected readonly cdr: ChangeDetectorRef;
@@ -16,6 +16,10 @@ export declare class TableRowActionDirective<Data extends Record<string, any>> {
16
16
  type: string;
17
17
  errorMessage?: string;
18
18
  successMessage?: string;
19
+ /**
20
+ * true - after the action is executed the table datasource is refreshed
21
+ */
22
+ refresh?: boolean;
19
23
  private readonly executingDirective?;
20
24
  private _currentStatus;
21
25
  private readonly actionMethodList;
@@ -40,5 +44,5 @@ export declare class TableRowActionDirective<Data extends Record<string, any>> {
40
44
  protected setButtonEnabled(): void;
41
45
  private setStatus;
42
46
  static ɵfac: i0.ɵɵFactoryDeclaration<TableRowActionDirective<any>, [null, null, null, null, null, { optional: true; }]>;
43
- static ɵdir: i0.ɵɵDirectiveDeclaration<TableRowActionDirective<any>, "button[rxapTableRowAction]", never, { "hasConfirmDirective": "rxapConfirm"; "element": "element"; "type": "rxapTableRowAction"; "errorMessage": "errorMessage"; "successMessage": "successMessage"; }, {}, ["executingDirective"]>;
47
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TableRowActionDirective<any>, "button[rxapTableRowAction]", never, { "hasConfirmDirective": "rxapConfirm"; "element": "element"; "type": "rxapTableRowAction"; "errorMessage": "errorMessage"; "successMessage": "successMessage"; "refresh": "refresh"; }, {}, ["executingDirective"]>;
44
48
  }
@@ -0,0 +1,6 @@
1
+ import { ToggleSubject } from '@rxap/utilities/rxjs';
2
+ export interface TableRowMetadata {
3
+ __metadata__: {
4
+ loading$: ToggleSubject;
5
+ };
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxap/material-table-system",
3
- "version": "12.3.2-next.1",
3
+ "version": "12.4.0-next.0",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^12.0.1",
6
6
  "@angular/cdk": "^12.0.1",
@@ -12,13 +12,13 @@
12
12
  "@angular/platform-browser": "^12.0.1",
13
13
  "@angular/router": "^12.0.1",
14
14
  "@rxap/components": "^12.0.10",
15
- "@rxap/data-source": "^12.1.1",
15
+ "@rxap/data-source": "^12.1.3-next.0",
16
16
  "@rxap/definition": "^12.0.8",
17
17
  "@rxap/directives": "^12.1.2",
18
- "@rxap/forms": "^12.5.0",
18
+ "@rxap/forms": "^12.5.1-next.2",
19
19
  "@rxap/material-directives": "^12.0.6",
20
20
  "@rxap/mixin": "^12.0.7",
21
- "@rxap/open-api": "^12.1.0",
21
+ "@rxap/open-api": "^12.1.1-next.1",
22
22
  "@rxap/remote-method": "^12.0.9",
23
23
  "@rxap/services": "^12.0.7",
24
24
  "@rxap/utilities": "^12.2.1",