@rxap/material-table-system 12.4.1 → 12.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/rxap-material-table-system.umd.js +67 -4
- package/bundles/rxap-material-table-system.umd.js.map +1 -1
- package/esm2015/index.js +1 -0
- package/esm2015/index.js.map +1 -1
- package/esm2015/lib/persistent-paginator.directive.js +60 -0
- package/esm2015/lib/persistent-paginator.directive.js.map +1 -0
- package/fesm2015/rxap-material-table-system.js +58 -1
- package/fesm2015/rxap-material-table-system.js.map +1 -1
- package/index.d.ts +1 -0
- package/lib/persistent-paginator.directive.d.ts +22 -0
- package/package.json +4 -4
package/esm2015/index.js
CHANGED
|
@@ -17,6 +17,7 @@ export * from './lib/select-row/tokens';
|
|
|
17
17
|
export * from './lib/row-animation';
|
|
18
18
|
export * from './lib/table-data-source.directive';
|
|
19
19
|
export * from './lib/table-row-metadata';
|
|
20
|
+
export * from './lib/persistent-paginator.directive';
|
|
20
21
|
// region table filter
|
|
21
22
|
export * from './lib/table-filter/filter-header-row.directive';
|
|
22
23
|
export * from './lib/table-filter/table-filter.module';
|
package/esm2015/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/material/table-system/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,sEAAsE,CAAC;AACrF,cAAc,oEAAoE,CAAC;AACnF,cAAc,6EAA6E,CAAC;AAC5F,cAAc,sEAAsE,CAAC;AACrF,cAAc,6EAA6E,CAAC;AAC5F,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AAEtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wDAAwD,CAAC;AACvE,cAAc,+DAA+D,CAAC;AAC9E,cAAc,sEAAsE,CAAC;AACrF,cAAc,6EAA6E,CAAC;AAC5F,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CA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;AAEZ,sBAAsB;AAEtB,cAAc,iDAAiD,CAAC;AAChE,cAAc,wDAAwD,CAAC;AAEvE,YAAY;AAEZ,sBAAsB;AAEtB,cAAc,iDAAiD,CAAC;AAChE,cAAc,wDAAwD,CAAC;AAEvE,YAAY;AAEZ,2BAA2B;AAE3B,cAAc,oCAAoC,CAAC;AACnD,cAAc,oDAAoD,CAAC;AACnE,cAAc,iDAAiD,CAAC;AAChE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,iDAAiD,CAAC;AAChE,cAAc,kDAAkD,CAAC;AACjE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,gCAAgC,CAAC;AAE/C,YAAY;AAEZ,YAAY","sourcesContent":["export * from './lib/expand-row/expand-row.module';\nexport * from './lib/expand-row/expand-row-container/expand-row-container.component';\nexport * from './lib/expand-row/expand-row-container/expand-row-content.directive';\nexport * from './lib/expand-row/expand-row-container/expand-row-container.component.module';\nexport * from './lib/expand-row/expand-controls-cell/expand-controls-cell.component';\nexport * from './lib/expand-row/expand-controls-cell/expand-controls-cell.component.module';\nexport * from './lib/expand-row/expand-row.service';\nexport * from './lib/expand-row/expand-row.directive';\n\nexport * from './lib/select-row/select-row.module';\nexport * from './lib/select-row/checkbox-cell/checkbox-cell.component';\nexport * from './lib/select-row/checkbox-cell/checkbox-cell.component.module';\nexport * from './lib/select-row/checkbox-header-cell/checkbox-header-cell.component';\nexport * from './lib/select-row/checkbox-header-cell/checkbox-header-cell.component.module';\nexport * from './lib/select-row/select-row.service';\nexport * from './lib/select-row/selected-rows.directive';\nexport * from './lib/select-row/tokens';\nexport * from './lib/row-animation';\nexport * from './lib/table-data-source.directive';\nexport * from './lib/table-row-metadata';\n\n// region table filter\n\nexport * from './lib/table-filter/filter-header-row.directive';\nexport * from './lib/table-filter/table-filter.module';\nexport * from './lib/table-filter/table-filter.service';\nexport * from './lib/table-filter/to-filter-column-names.pipe';\nexport * from './lib/table-filter/tokens';\n\n// endregion\n\n// region table column menu\n\nexport * from './lib/table-column-menu/table-column-menu.component';\nexport * from './lib/table-column-menu/table-column-menu.component.module';\nexport * from './lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component';\nexport * from './lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.module';\nexport * from './lib/table-column-menu/table-column-option/table-column-option.component';\n\n// endregion\n\n// region table create button\n\nexport * from './lib/table-create-button/table-create-button.directive';\nexport * from './lib/table-create-button/tokens';\n\n// endregion\n\n// region table row controls\n\nexport * from './lib/table-row-controls/table-row-controls.module';\nexport * from './lib/table-row-controls/row-controls-cell/row-controls-cell.component';\nexport * from './lib/table-row-controls/row-controls-cell/row-controls-cell.component.module';\nexport * from './lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component';\nexport * from './lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.module';\nexport * from './lib/table-row-controls/tokens';\n\n// endregion\n\n// region table select controls\n\nexport * from './lib/table-select-controls/table-select-controls.component';\nexport * from './lib/table-select-controls/table-select-controls.component.module';\n\n// endregion\n\n// region cells\n\n// region image\n\nexport * from './lib/cells/image-cell/image-cell.component';\nexport * from './lib/cells/image-cell/image-cell.component.module';\n\n// endregion\n\n// region copy-to-clipboard cell\n\nexport * from './lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component';\nexport * from './lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.module';\n\n// endregion\n\n// region icon cell\n\nexport * from './lib/cells/icon-cell/icon-cell.component';\nexport * from './lib/cells/icon-cell/icon-cell.component.module';\n\n// endregion\n\n// region date cell\n\nexport * from './lib/cells/date-cell/date-cell.component';\nexport * from './lib/cells/date-cell/date-cell.component.module';\n\n// endregion\n\n// region link cell\n\nexport * from './lib/cells/link-cell/link-cell.component';\nexport * from './lib/cells/link-cell/link-cell.component.module';\n\n// endregion\n\n// region options cell\n\nexport * from './lib/cells/options-cell/options-cell.component';\nexport * from './lib/cells/options-cell/options-cell.component.module';\n\n// endregion\n\n// region boolean cell\n\nexport * from './lib/cells/boolean-cell/boolean-cell.component';\nexport * from './lib/cells/boolean-cell/boolean-cell.component.module';\n\n// endregion\n\n// region table-row-actions\n\nexport * from './lib/table-row-actions/decorators';\nexport * from './lib/table-row-actions/table-row-action.directive';\nexport * from './lib/table-row-actions/table-row-action.method';\nexport * from './lib/table-row-actions/table-row-action-executing.directive';\nexport * from './lib/table-row-actions/table-row-action-status';\nexport * from './lib/table-row-actions/table-row-actions.module';\nexport * from './lib/table-row-actions/table-row-header-action.directive';\nexport * from './lib/table-row-actions/tokens';\n\n// endregion\n\n// endregion\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/material/table-system/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,sEAAsE,CAAC;AACrF,cAAc,oEAAoE,CAAC;AACnF,cAAc,6EAA6E,CAAC;AAC5F,cAAc,sEAAsE,CAAC;AACrF,cAAc,6EAA6E,CAAC;AAC5F,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AAEtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wDAAwD,CAAC;AACvE,cAAc,+DAA+D,CAAC;AAC9E,cAAc,sEAAsE,CAAC;AACrF,cAAc,6EAA6E,CAAC;AAC5F,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AACzD,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AAEzC,cAAc,sCAAsC,CAAC;AAErD,sBAAsB;AAEtB,cAAc,gDAAgD,CAAC;AAC/D,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,2BAA2B,CAAC;AAE1C,YAAY;AAEZ,2BAA2B;AAE3B,cAAc,qDAAqD,CAAC;AACpE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,uFAAuF,CAAC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cAAc,gCAAgC,CAAC;AAE/C,YAAY;AAEZ,YAAY","sourcesContent":["export * from './lib/expand-row/expand-row.module';\nexport * from './lib/expand-row/expand-row-container/expand-row-container.component';\nexport * from './lib/expand-row/expand-row-container/expand-row-content.directive';\nexport * from './lib/expand-row/expand-row-container/expand-row-container.component.module';\nexport * from './lib/expand-row/expand-controls-cell/expand-controls-cell.component';\nexport * from './lib/expand-row/expand-controls-cell/expand-controls-cell.component.module';\nexport * from './lib/expand-row/expand-row.service';\nexport * from './lib/expand-row/expand-row.directive';\n\nexport * from './lib/select-row/select-row.module';\nexport * from './lib/select-row/checkbox-cell/checkbox-cell.component';\nexport * from './lib/select-row/checkbox-cell/checkbox-cell.component.module';\nexport * from './lib/select-row/checkbox-header-cell/checkbox-header-cell.component';\nexport * from './lib/select-row/checkbox-header-cell/checkbox-header-cell.component.module';\nexport * from './lib/select-row/select-row.service';\nexport * from './lib/select-row/selected-rows.directive';\nexport * from './lib/select-row/tokens';\nexport * from './lib/row-animation';\nexport * from './lib/table-data-source.directive';\nexport * from './lib/table-row-metadata';\n\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"]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Directive, NgModule, Input } from '@angular/core';
|
|
2
|
+
import { MatPaginator } from '@angular/material/paginator';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/material/paginator";
|
|
5
|
+
export class PersistentPaginatorDirective {
|
|
6
|
+
constructor(matPaginator) {
|
|
7
|
+
this.matPaginator = matPaginator;
|
|
8
|
+
}
|
|
9
|
+
ngOnInit() {
|
|
10
|
+
const config = this.restoreConfig();
|
|
11
|
+
if (config) {
|
|
12
|
+
this.matPaginator.pageSize = config.pageSize;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
ngOnDestroy() {
|
|
16
|
+
this.storeConfig();
|
|
17
|
+
}
|
|
18
|
+
getKey() {
|
|
19
|
+
return 'rxap_mat-paginator-persistent' + this.id;
|
|
20
|
+
}
|
|
21
|
+
storeConfig() {
|
|
22
|
+
const pageSize = this.matPaginator.pageSize;
|
|
23
|
+
localStorage.setItem(this.getKey(), JSON.stringify({ pageSize }));
|
|
24
|
+
}
|
|
25
|
+
restoreConfig() {
|
|
26
|
+
const configStorage = localStorage.getItem(this.getKey());
|
|
27
|
+
if (configStorage) {
|
|
28
|
+
try {
|
|
29
|
+
return JSON.parse(configStorage);
|
|
30
|
+
}
|
|
31
|
+
catch (e) {
|
|
32
|
+
console.warn(`Could not parse mat paginator persistent config: ${e.message}`);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
PersistentPaginatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: PersistentPaginatorDirective, deps: [{ token: i1.MatPaginator }], target: i0.ɵɵFactoryTarget.Directive });
|
|
39
|
+
PersistentPaginatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: PersistentPaginatorDirective, selector: "mat-paginator[rxapPersistent]", inputs: { id: "id" }, ngImport: i0 });
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: PersistentPaginatorDirective, decorators: [{
|
|
41
|
+
type: Directive,
|
|
42
|
+
args: [{
|
|
43
|
+
selector: 'mat-paginator[rxapPersistent]'
|
|
44
|
+
}]
|
|
45
|
+
}], ctorParameters: function () { return [{ type: i1.MatPaginator }]; }, propDecorators: { id: [{
|
|
46
|
+
type: Input
|
|
47
|
+
}] } });
|
|
48
|
+
export class PersistentPaginatorDirectiveModule {
|
|
49
|
+
}
|
|
50
|
+
PersistentPaginatorDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: PersistentPaginatorDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
51
|
+
PersistentPaginatorDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: PersistentPaginatorDirectiveModule, declarations: [PersistentPaginatorDirective], exports: [PersistentPaginatorDirective] });
|
|
52
|
+
PersistentPaginatorDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: PersistentPaginatorDirectiveModule });
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: PersistentPaginatorDirectiveModule, decorators: [{
|
|
54
|
+
type: NgModule,
|
|
55
|
+
args: [{
|
|
56
|
+
exports: [PersistentPaginatorDirective],
|
|
57
|
+
declarations: [PersistentPaginatorDirective]
|
|
58
|
+
}]
|
|
59
|
+
}] });
|
|
60
|
+
//# sourceMappingURL=persistent-paginator.directive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"persistent-paginator.directive.js","sourceRoot":"","sources":["../../../../../../libs/material/table-system/src/lib/persistent-paginator.directive.ts"],"names":[],"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AAO,kCAAkC;;+HAAlC,kCAAkC;gIAAlC,kCAAkC,iBA/ClC,4BAA4B,aAA5B,4BAA4B;gIA+C5B,kCAAkC;2FAAlC,kCAAkC;kBAJ9C,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAE,4BAA4B,CAAE;oBACzC,YAAY,EAAE,CAAE,4BAA4B,CAAE;iBAC/C","sourcesContent":["import {\n Directive,\n NgModule,\n Input,\n OnDestroy,\n OnInit\n} from '@angular/core';\nimport { MatPaginator } from '@angular/material/paginator';\n\n@Directive({\n selector: 'mat-paginator[rxapPersistent]'\n})\nexport class PersistentPaginatorDirective implements OnInit, OnDestroy {\n\n @Input()\n public id?: string;\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 }\n\n public ngOnDestroy() {\n this.storeConfig();\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) {\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"]}
|
|
@@ -23,6 +23,7 @@ import { MatSort } from '@angular/material/sort';
|
|
|
23
23
|
import { DynamicTableDataSource } from '@rxap/data-source/table';
|
|
24
24
|
import { ToggleSubject } from '@rxap/utilities/rxjs';
|
|
25
25
|
import { pipeDataSource } from '@rxap/data-source';
|
|
26
|
+
import * as i1$3 from '@angular/material/paginator';
|
|
26
27
|
import { FormDirective } from '@rxap/forms';
|
|
27
28
|
import { ControlContainer } from '@angular/forms';
|
|
28
29
|
import * as i3 from '@angular/material/menu';
|
|
@@ -703,6 +704,62 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
|
|
|
703
704
|
}]
|
|
704
705
|
}] });
|
|
705
706
|
|
|
707
|
+
class PersistentPaginatorDirective {
|
|
708
|
+
constructor(matPaginator) {
|
|
709
|
+
this.matPaginator = matPaginator;
|
|
710
|
+
}
|
|
711
|
+
ngOnInit() {
|
|
712
|
+
const config = this.restoreConfig();
|
|
713
|
+
if (config) {
|
|
714
|
+
this.matPaginator.pageSize = config.pageSize;
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
ngOnDestroy() {
|
|
718
|
+
this.storeConfig();
|
|
719
|
+
}
|
|
720
|
+
getKey() {
|
|
721
|
+
return 'rxap_mat-paginator-persistent' + this.id;
|
|
722
|
+
}
|
|
723
|
+
storeConfig() {
|
|
724
|
+
const pageSize = this.matPaginator.pageSize;
|
|
725
|
+
localStorage.setItem(this.getKey(), JSON.stringify({ pageSize }));
|
|
726
|
+
}
|
|
727
|
+
restoreConfig() {
|
|
728
|
+
const configStorage = localStorage.getItem(this.getKey());
|
|
729
|
+
if (configStorage) {
|
|
730
|
+
try {
|
|
731
|
+
return JSON.parse(configStorage);
|
|
732
|
+
}
|
|
733
|
+
catch (e) {
|
|
734
|
+
console.warn(`Could not parse mat paginator persistent config: ${e.message}`);
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
return null;
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
PersistentPaginatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: PersistentPaginatorDirective, deps: [{ token: i1$3.MatPaginator }], target: i0.ɵɵFactoryTarget.Directive });
|
|
741
|
+
PersistentPaginatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: PersistentPaginatorDirective, selector: "mat-paginator[rxapPersistent]", inputs: { id: "id" }, ngImport: i0 });
|
|
742
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: PersistentPaginatorDirective, decorators: [{
|
|
743
|
+
type: Directive,
|
|
744
|
+
args: [{
|
|
745
|
+
selector: 'mat-paginator[rxapPersistent]'
|
|
746
|
+
}]
|
|
747
|
+
}], ctorParameters: function () { return [{ type: i1$3.MatPaginator }]; }, propDecorators: { id: [{
|
|
748
|
+
type: Input
|
|
749
|
+
}] } });
|
|
750
|
+
class PersistentPaginatorDirectiveModule {
|
|
751
|
+
}
|
|
752
|
+
PersistentPaginatorDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: PersistentPaginatorDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
753
|
+
PersistentPaginatorDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: PersistentPaginatorDirectiveModule, declarations: [PersistentPaginatorDirective], exports: [PersistentPaginatorDirective] });
|
|
754
|
+
PersistentPaginatorDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: PersistentPaginatorDirectiveModule });
|
|
755
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: PersistentPaginatorDirectiveModule, decorators: [{
|
|
756
|
+
type: NgModule,
|
|
757
|
+
args: [{
|
|
758
|
+
exports: [PersistentPaginatorDirective],
|
|
759
|
+
declarations: [PersistentPaginatorDirective]
|
|
760
|
+
}]
|
|
761
|
+
}] });
|
|
762
|
+
|
|
706
763
|
const RXAP_TABLE_FILTER_FORM_DEFINITION = new InjectionToken('rxap/form-table-system/filter-form-definition');
|
|
707
764
|
|
|
708
765
|
class FilterHeaderRowDirective extends FormDirective {
|
|
@@ -2090,5 +2147,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
|
|
|
2090
2147
|
* Generated bundle index. Do not edit.
|
|
2091
2148
|
*/
|
|
2092
2149
|
|
|
2093
|
-
export { BooleanCellComponent, BooleanCellComponentModule, CheckboxCellComponent, CheckboxCellComponentModule, CheckboxHeaderCellComponent, CheckboxHeaderCellComponentModule, CopyToClipboardCellComponent, CopyToClipboardCellComponentModule, DateCellComponent, DateCellComponentModule, ExpandControlsCellComponent, ExpandControlsCellComponentModule, ExpandRowContainerComponent, ExpandRowContainerComponentModule, ExpandRowContentDirective, ExpandRowDirective, ExpandRowModule, ExpandRowService, FilterHeaderRowDirective, IconCellComponent, IconCellComponentModule, ImageCellComponent, ImageCellComponentModule, IsTableRowActionTypeMethod, IsTableRowActionTypeSwitchMethod, LinkCellComponent, LinkCellComponentModule, OptionsCellComponent, OptionsCellComponentModule, ROW_ARCHIVE_METHOD, ROW_DELETE_METHOD, ROW_EDIT_LOADER_METHOD, ROW_EDIT_METHOD, ROW_LINK_METHOD, ROW_RESTORE_METHOD, ROW_VIEW_METHOD, RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS, RXAP_TABLE_ACTION_METHOD_TYPE_METADATA, RXAP_TABLE_FILTER, RXAP_TABLE_FILTER_FORM_DEFINITION, RXAP_TABLE_METHOD, RXAP_TABLE_ROW_ACTION_METHOD, RowAnimation, RowControlsCellComponent, RowControlsCellComponentModule, RowControlsHeaderCellComponent, RowControlsHeaderCellComponentModule, SelectRowModule, SelectRowService, SelectedRowsDirective, TABLE_CREATE_REMOTE_METHOD, TABLE_DATA_SOURCE, TABLE_REMOTE_METHOD, TABLE_REMOTE_METHOD_ADAPTER_FACTORY, TableActionMethod, TableColumnMenuComponent, TableColumnMenuComponentModule, TableColumnOptionComponent, TableCreateButtonDirective, TableCreateButtonDirectiveModule, TableDataSourceDirective, TableDataSourceModule, TableFilterModule, TableFilterService, TableRowActionDirective, TableRowActionExecutingDirective, TableRowActionStatus, TableRowActionsModule, TableRowControlsModule, TableRowHeaderActionDirective, TableSelectControlsComponent, TableSelectControlsComponentModule, TableShowArchivedSlideComponent, TableShowArchivedSlideComponentModule, ToFilterColumnNamesPipe };
|
|
2150
|
+
export { BooleanCellComponent, BooleanCellComponentModule, CheckboxCellComponent, CheckboxCellComponentModule, CheckboxHeaderCellComponent, CheckboxHeaderCellComponentModule, CopyToClipboardCellComponent, CopyToClipboardCellComponentModule, DateCellComponent, DateCellComponentModule, ExpandControlsCellComponent, ExpandControlsCellComponentModule, ExpandRowContainerComponent, ExpandRowContainerComponentModule, ExpandRowContentDirective, ExpandRowDirective, ExpandRowModule, ExpandRowService, FilterHeaderRowDirective, IconCellComponent, IconCellComponentModule, ImageCellComponent, ImageCellComponentModule, IsTableRowActionTypeMethod, IsTableRowActionTypeSwitchMethod, LinkCellComponent, LinkCellComponentModule, OptionsCellComponent, OptionsCellComponentModule, PersistentPaginatorDirective, PersistentPaginatorDirectiveModule, ROW_ARCHIVE_METHOD, ROW_DELETE_METHOD, ROW_EDIT_LOADER_METHOD, ROW_EDIT_METHOD, ROW_LINK_METHOD, ROW_RESTORE_METHOD, ROW_VIEW_METHOD, RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS, RXAP_TABLE_ACTION_METHOD_TYPE_METADATA, RXAP_TABLE_FILTER, RXAP_TABLE_FILTER_FORM_DEFINITION, RXAP_TABLE_METHOD, RXAP_TABLE_ROW_ACTION_METHOD, RowAnimation, RowControlsCellComponent, RowControlsCellComponentModule, RowControlsHeaderCellComponent, RowControlsHeaderCellComponentModule, SelectRowModule, SelectRowService, SelectedRowsDirective, TABLE_CREATE_REMOTE_METHOD, TABLE_DATA_SOURCE, TABLE_REMOTE_METHOD, TABLE_REMOTE_METHOD_ADAPTER_FACTORY, TableActionMethod, TableColumnMenuComponent, TableColumnMenuComponentModule, TableColumnOptionComponent, TableCreateButtonDirective, TableCreateButtonDirectiveModule, TableDataSourceDirective, TableDataSourceModule, TableFilterModule, TableFilterService, TableRowActionDirective, TableRowActionExecutingDirective, TableRowActionStatus, TableRowActionsModule, TableRowControlsModule, TableRowHeaderActionDirective, TableSelectControlsComponent, TableSelectControlsComponentModule, TableShowArchivedSlideComponent, TableShowArchivedSlideComponentModule, ToFilterColumnNamesPipe };
|
|
2094
2151
|
//# sourceMappingURL=rxap-material-table-system.js.map
|