@rxap/material-table-system 13.0.0 → 13.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/table-filter/filter-header-row.directive.mjs +3 -5
- package/esm2020/lib/table-filter/table-filter.service.mjs +7 -3
- package/fesm2015/rxap-material-table-system.mjs +7 -6
- package/fesm2015/rxap-material-table-system.mjs.map +1 -1
- package/fesm2020/rxap-material-table-system.mjs +7 -6
- package/fesm2020/rxap-material-table-system.mjs.map +1 -1
- package/package.json +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rxap-material-table-system.mjs","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/persistent-paginator.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 setMap(map: Record<string, any>): void {\n const current = this.current;\n const next = Object.assign(current, map);\n this.change.next(next);\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';\nimport { RXAP_TABLE_METHOD } from '@rxap/data-source/table';\n\nexport { RXAP_TABLE_METHOD } from '@rxap/data-source/table';\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.dataSource) {\n if (this.sourceDataSource) {\n this.dataSource = this.sourceDataSource\n } else 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 }\n if (!this.dataSource) {\n throw new Error(\n 'The TABLE_DATA_SOURCE and TABLE_METHOD token are not defined!'\n );\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 {\n Directive,\n NgModule,\n Input,\n OnDestroy,\n OnInit\n} from '@angular/core';\nimport { MatPaginator } from '@angular/material/paginator';\nimport { Subscription } from 'rxjs';\nimport { tap } from 'rxjs/operators';\n\n@Directive({\n selector: 'mat-paginator[rxapPersistent]'\n})\nexport class PersistentPaginatorDirective implements OnInit, OnDestroy {\n\n @Input()\n public id?: string;\n\n private _subscription?: Subscription;\n\n constructor(\n private readonly matPaginator: MatPaginator,\n ) {}\n\n public ngOnInit() {\n const config = this.restoreConfig();\n if (config) {\n this.matPaginator.pageSize = config.pageSize;\n }\n this._subscription = this.matPaginator.page.pipe(\n tap(() => this.storeConfig())\n ).subscribe()\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n public getKey() {\n return 'rxap_mat-paginator-persistent' + this.id;\n }\n\n public storeConfig() {\n const pageSize = this.matPaginator.pageSize;\n localStorage.setItem(this.getKey(), JSON.stringify({ pageSize }));\n }\n\n public restoreConfig(): { pageSize: number } | null {\n const configStorage = localStorage.getItem(this.getKey());\n if (configStorage) {\n try {\n return JSON.parse(configStorage);\n } catch (e: any) {\n console.warn(`Could not parse mat paginator persistent config: ${e.message}`);\n }\n }\n return null;\n }\n\n}\n\n@NgModule({\n exports: [ PersistentPaginatorDirective ],\n declarations: [ PersistentPaginatorDirective ]\n})\nexport class PersistentPaginatorDirectiveModule {}\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 {\n FormDirective,\n FormDefinition\n} 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 {\n debounceTime,\n distinctUntilChanged,\n map,\n tap\n} 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 tap(values => this.tableFilter.setMap(values))\n )\n .subscribe();\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 {\n Component,\n ElementRef,\n Input,\n Inject,\n OnInit\n} from '@angular/core';\nimport { ActivatedRoute, Router } from '@angular/router';\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 implements OnInit {\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 private get cacheId(): string {\n return this.router.url + '--' + this.name;\n }\n\n constructor(\n @Inject(ElementRef)\n private _element: ElementRef<HTMLElement>,\n private readonly router: Router,\n ) {}\n\n public ngOnInit() {\n const cachedValue = localStorage.getItem(this.cacheId);\n if (cachedValue === 'true') {\n this.active = true;\n }\n if (cachedValue === 'false') {\n this.active = false;\n }\n }\n\n public toggle(): void {\n this.active = !this.active;\n localStorage.setItem(this.cacheId, this.active ? 'true' : 'false');\n }\n\n public activate() {\n this.active = true;\n localStorage.setItem(this.cacheId, 'true');\n }\n\n public deactivate() {\n this.active = false;\n localStorage.setItem(this.cacheId, '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 OnDestroy\n} from '@angular/core';\nimport { Required } from '@rxap/utilities';\nimport {\n isObservable,\n Observable,\n Subject\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, OnDestroy {\n @Input('rxapTableCreate')\n @Required\n public dataSource!: TableDataSourceDirective<Data>;\n\n private _createObservable?: Observable<any>;\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 public ngOnDestroy() {\n if (this._createObservable instanceof Subject) {\n this._createObservable.complete();\n }\n }\n\n @HostListener('click')\n public async onClick() {\n const result = this._createObservable = 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 {\n QueryList,\n OnChanges,\n SimpleChanges\n} 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, OnChanges {\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 private _initialised = false;\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 this.setViewValue();\n this._initialised = true;\n }\n\n public setViewValue() {\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 ngOnChanges(changes: SimpleChanges) {\n if (this._initialised) {\n if (changes['value']) {\n this.setViewValue();\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 private _actionDisabled = false;\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 if (this._actionDisabled) {\n return Promise.resolve();\n }\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: any) {\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 /**\n * Disables the action. If the button is pressed the action is NOT executed\n *\n * Hint: the button is set to disabled = true to prevent any conflict with\n * extern button enable features linke : rxapHasEnablePermission\n * @protected\n */\n protected setButtonDisabled() {\n this._actionDisabled = true;\n }\n\n /**\n * Enables the action. If the button is pressed the action is executed\n *\n * TODO : find a way to communicate the disabled state between the features\n * Hint: the button is set to disabled = false to prevent any conflict with\n * extern button enable features linke : rxapHasEnablePermission\n * @protected\n */\n protected setButtonEnabled() {\n this._actionDisabled = false;\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\nexport * from './lib/persistent-paginator.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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ACb,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;;;ACsGD;AAEA;;ACpIA;;;;;;"}
|
|
1
|
+
{"version":3,"file":"rxap-material-table-system.mjs","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/persistent-paginator.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';\nimport {\n clone,\n equals,\n DeleteEmptyProperties\n} from '@rxap/utilities';\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 setMap(map: Record<string, any>): void {\n const current = this.current;\n const copy = clone(this.current);\n const next = DeleteEmptyProperties(Object.assign(current, map));\n if (!equals(copy, next)) {\n this.change.next(next);\n }\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';\nimport { RXAP_TABLE_METHOD } from '@rxap/data-source/table';\n\nexport { RXAP_TABLE_METHOD } from '@rxap/data-source/table';\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.dataSource) {\n if (this.sourceDataSource) {\n this.dataSource = this.sourceDataSource\n } else 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 }\n if (!this.dataSource) {\n throw new Error(\n 'The TABLE_DATA_SOURCE and TABLE_METHOD token are not defined!'\n );\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 {\n Directive,\n NgModule,\n Input,\n OnDestroy,\n OnInit\n} from '@angular/core';\nimport { MatPaginator } from '@angular/material/paginator';\nimport { Subscription } from 'rxjs';\nimport { tap } from 'rxjs/operators';\n\n@Directive({\n selector: 'mat-paginator[rxapPersistent]'\n})\nexport class PersistentPaginatorDirective implements OnInit, OnDestroy {\n\n @Input()\n public id?: string;\n\n private _subscription?: Subscription;\n\n constructor(\n private readonly matPaginator: MatPaginator,\n ) {}\n\n public ngOnInit() {\n const config = this.restoreConfig();\n if (config) {\n this.matPaginator.pageSize = config.pageSize;\n }\n this._subscription = this.matPaginator.page.pipe(\n tap(() => this.storeConfig())\n ).subscribe()\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n public getKey() {\n return 'rxap_mat-paginator-persistent' + this.id;\n }\n\n public storeConfig() {\n const pageSize = this.matPaginator.pageSize;\n localStorage.setItem(this.getKey(), JSON.stringify({ pageSize }));\n }\n\n public restoreConfig(): { pageSize: number } | null {\n const configStorage = localStorage.getItem(this.getKey());\n if (configStorage) {\n try {\n return JSON.parse(configStorage);\n } catch (e: any) {\n console.warn(`Could not parse mat paginator persistent config: ${e.message}`);\n }\n }\n return null;\n }\n\n}\n\n@NgModule({\n exports: [ PersistentPaginatorDirective ],\n declarations: [ PersistentPaginatorDirective ]\n})\nexport class PersistentPaginatorDirectiveModule {}\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 {\n FormDirective,\n FormDefinition\n} 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 {\n debounceTime,\n distinctUntilChanged,\n map,\n tap\n} 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 distinctUntilChanged((a, b) => equals(a, b)),\n tap(values => this.tableFilter.setMap(values))\n )\n .subscribe();\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 {\n Component,\n ElementRef,\n Input,\n Inject,\n OnInit\n} from '@angular/core';\nimport { ActivatedRoute, Router } from '@angular/router';\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 implements OnInit {\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 private get cacheId(): string {\n return this.router.url + '--' + this.name;\n }\n\n constructor(\n @Inject(ElementRef)\n private _element: ElementRef<HTMLElement>,\n private readonly router: Router,\n ) {}\n\n public ngOnInit() {\n const cachedValue = localStorage.getItem(this.cacheId);\n if (cachedValue === 'true') {\n this.active = true;\n }\n if (cachedValue === 'false') {\n this.active = false;\n }\n }\n\n public toggle(): void {\n this.active = !this.active;\n localStorage.setItem(this.cacheId, this.active ? 'true' : 'false');\n }\n\n public activate() {\n this.active = true;\n localStorage.setItem(this.cacheId, 'true');\n }\n\n public deactivate() {\n this.active = false;\n localStorage.setItem(this.cacheId, '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 OnDestroy\n} from '@angular/core';\nimport { Required } from '@rxap/utilities';\nimport {\n isObservable,\n Observable,\n Subject\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, OnDestroy {\n @Input('rxapTableCreate')\n @Required\n public dataSource!: TableDataSourceDirective<Data>;\n\n private _createObservable?: Observable<any>;\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 public ngOnDestroy() {\n if (this._createObservable instanceof Subject) {\n this._createObservable.complete();\n }\n }\n\n @HostListener('click')\n public async onClick() {\n const result = this._createObservable = 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 {\n QueryList,\n OnChanges,\n SimpleChanges\n} 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, OnChanges {\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 private _initialised = false;\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 this.setViewValue();\n this._initialised = true;\n }\n\n public setViewValue() {\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 ngOnChanges(changes: SimpleChanges) {\n if (this._initialised) {\n if (changes['value']) {\n this.setViewValue();\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 private _actionDisabled = false;\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 if (this._actionDisabled) {\n return Promise.resolve();\n }\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: any) {\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 /**\n * Disables the action. If the button is pressed the action is NOT executed\n *\n * Hint: the button is set to disabled = true to prevent any conflict with\n * extern button enable features linke : rxapHasEnablePermission\n * @protected\n */\n protected setButtonDisabled() {\n this._actionDisabled = true;\n }\n\n /**\n * Enables the action. If the button is pressed the action is executed\n *\n * TODO : find a way to communicate the disabled state between the features\n * Hint: the button is set to disabled = false to prevent any conflict with\n * extern button enable features linke : rxapHasEnablePermission\n * @protected\n */\n protected setButtonEnabled() {\n this._actionDisabled = false;\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\nexport * from './lib/persistent-paginator.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,IAA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