@rxap/material-table-system 16.0.0-dev.2 → 16.0.0-dev.20
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/CHANGELOG.md +782 -0
- package/LICENSE +621 -27
- package/LICENSE.md +621 -0
- package/README.md +7 -22
- package/esm2022/index.mjs +79 -52
- package/esm2022/lib/cells/boolean-cell/boolean-cell.component.mjs +7 -8
- package/esm2022/lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.mjs +7 -8
- package/esm2022/lib/cells/date-cell/date-cell.component.mjs +8 -9
- package/esm2022/lib/cells/icon-cell/icon-cell.component.mjs +7 -8
- package/esm2022/lib/cells/image-cell/image-cell.component.mjs +9 -10
- package/esm2022/lib/cells/link-cell/link-cell.component.mjs +8 -9
- package/esm2022/lib/cells/options-cell/options-cell.component.mjs +8 -9
- package/esm2022/lib/cells/tree-control-cell/tree-control-cell.component.mjs +52 -0
- package/esm2022/lib/expand-row/expand-controls-cell/expand-controls-cell.component.mjs +10 -16
- package/esm2022/lib/expand-row/expand-row-container/expand-row-container.component.mjs +28 -27
- package/esm2022/lib/expand-row/expand-row-container/expand-row-content.directive.mjs +7 -8
- package/esm2022/lib/expand-row/expand-row.directive.mjs +9 -15
- package/esm2022/lib/expand-row/expand-row.module.mjs +10 -11
- package/esm2022/lib/expand-row/expand-row.service.mjs +5 -6
- package/esm2022/lib/persistent-paginator.directive.mjs +7 -8
- package/esm2022/lib/row-animation.mjs +16 -8
- package/esm2022/lib/select-row/checkbox-cell/checkbox-cell.component.mjs +9 -15
- package/esm2022/lib/select-row/checkbox-header-cell/checkbox-header-cell.component.mjs +11 -12
- package/esm2022/lib/select-row/select-row.module.mjs +31 -0
- package/esm2022/lib/select-row/select-row.options.mjs +1 -1
- package/esm2022/lib/select-row/select-row.service.mjs +7 -8
- package/esm2022/lib/select-row/selected-rows.directive.mjs +8 -9
- package/esm2022/lib/select-row/selection-model.mjs +1 -1
- package/esm2022/lib/select-row/tokens.mjs +1 -1
- package/esm2022/lib/table-column-menu/table-column-menu.component.mjs +9 -10
- package/esm2022/lib/table-column-menu/table-column-menu.module.mjs +31 -0
- package/esm2022/lib/table-column-menu/table-column-option/table-column-option.component.mjs +9 -14
- package/esm2022/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.mjs +28 -14
- package/esm2022/lib/table-create-button/table-create-button.directive.mjs +15 -19
- package/esm2022/lib/table-create-button/tokens.mjs +1 -1
- package/esm2022/lib/table-data-source.directive.mjs +18 -23
- package/esm2022/lib/table-filter/filter-header-row.directive.mjs +14 -15
- package/esm2022/lib/table-filter/table-filter.module.mjs +25 -0
- package/esm2022/lib/table-filter/table-filter.service.mjs +9 -9
- package/esm2022/lib/table-filter/to-filter-column-names.pipe.mjs +7 -8
- package/esm2022/lib/table-filter/tokens.mjs +1 -1
- package/esm2022/lib/table-header-button/decorators.mjs +15 -0
- package/esm2022/lib/table-header-button/table-header-button-action-status.mjs +8 -0
- package/esm2022/lib/table-header-button/table-header-button.directive.mjs +187 -0
- package/esm2022/lib/table-header-button/tokens.mjs +3 -0
- package/esm2022/lib/table-row-actions/abstract-table-row-action.mjs +239 -0
- package/esm2022/lib/table-row-actions/decorators.mjs +6 -3
- package/esm2022/lib/table-row-actions/row-action-check.pipe.mjs +8 -9
- package/esm2022/lib/table-row-actions/table-row-action-executing.directive.mjs +7 -8
- package/esm2022/lib/table-row-actions/table-row-action-status.mjs +1 -1
- package/esm2022/lib/table-row-actions/table-row-action.directive.mjs +16 -225
- package/esm2022/lib/table-row-actions/table-row-action.method.mjs +3 -3
- package/esm2022/lib/table-row-actions/table-row-actions.module.mjs +60 -0
- package/esm2022/lib/table-row-actions/table-row-header-action.directive.mjs +24 -23
- package/esm2022/lib/table-row-actions/tokens.mjs +1 -1
- package/esm2022/lib/table-row-actions/types.mjs +1 -1
- package/esm2022/lib/table-row-metadata.mjs +1 -1
- package/esm2022/lib/table-select-controls/table-select-controls.component.mjs +9 -10
- package/esm2022/rxap-material-table-system.mjs +1 -1
- package/fesm2022/rxap-material-table-system.mjs +1470 -1266
- package/fesm2022/rxap-material-table-system.mjs.map +1 -1
- package/index.d.ts +43 -34
- package/lib/cells/options-cell/options-cell.component.d.ts +1 -1
- package/lib/cells/tree-control-cell/tree-control-cell.component.d.ts +16 -0
- package/lib/expand-row/expand-controls-cell/expand-controls-cell.component.d.ts +1 -1
- package/lib/expand-row/expand-row-container/expand-row-container.component.d.ts +3 -3
- package/lib/expand-row/expand-row.directive.d.ts +1 -1
- package/lib/select-row/checkbox-cell/checkbox-cell.component.d.ts +1 -1
- package/lib/select-row/select-row.module.d.ts +9 -0
- package/lib/select-row/select-row.service.d.ts +1 -1
- package/lib/select-row/selected-rows.directive.d.ts +1 -1
- package/lib/table-column-menu/table-column-menu.module.d.ts +9 -0
- package/lib/table-column-menu/table-column-option/table-column-option.component.d.ts +1 -1
- package/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.d.ts +8 -4
- package/lib/table-create-button/table-create-button.directive.d.ts +5 -5
- package/lib/table-create-button/tokens.d.ts +1 -1
- package/lib/table-data-source.directive.d.ts +9 -9
- package/lib/table-filter/filter-header-row.directive.d.ts +1 -1
- package/lib/table-filter/table-filter.module.d.ts +8 -0
- package/lib/table-header-button/decorators.d.ts +26 -0
- package/lib/table-header-button/table-header-button-action-status.d.ts +6 -0
- package/lib/table-header-button/table-header-button.directive.d.ts +55 -0
- package/lib/table-header-button/tokens.d.ts +3 -0
- package/lib/table-row-actions/abstract-table-row-action.d.ts +74 -0
- package/lib/table-row-actions/decorators.d.ts +8 -3
- package/lib/table-row-actions/table-row-action.directive.d.ts +5 -68
- package/lib/table-row-actions/table-row-action.method.d.ts +1 -1
- package/lib/table-row-actions/table-row-actions.module.d.ts +16 -0
- package/lib/table-row-actions/table-row-header-action.directive.d.ts +9 -9
- package/lib/table-row-actions/types.d.ts +5 -5
- package/lib/table-row-metadata.d.ts +1 -1
- package/lib/table-select-controls/table-select-controls.component.d.ts +1 -1
- package/package.json +94 -64
- package/src/lib/cells/boolean-cell/_boolean-cell.component.theme.scss +28 -0
- package/theme.css +1 -0
- package/collection.json +0 -10
- package/esm2022/lib/table-row-controls/row-controls-cell/row-controls-cell.component.mjs +0 -120
- package/esm2022/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.mjs +0 -115
- package/esm2022/lib/table-row-controls/tokens.mjs +0 -9
- package/lib/table-row-controls/row-controls-cell/row-controls-cell.component.d.ts +0 -47
- package/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.d.ts +0 -31
- package/lib/table-row-controls/tokens.d.ts +0 -16
- package/migration.json +0 -4
- package/src/schematics/ng-add/index.d.ts +0 -2
- package/src/schematics/ng-add/index.js +0 -8
- package/src/schematics/ng-add/index.js.map +0 -1
- package/src/schematics/ng-add/schema.json +0 -7
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
export const ROW_ARCHIVE_METHOD = new InjectionToken('archive-remote-method');
|
|
3
|
-
export const ROW_RESTORE_METHOD = new InjectionToken('unarchive-remote-method');
|
|
4
|
-
export const ROW_DELETE_METHOD = new InjectionToken('delete-remote-method');
|
|
5
|
-
export const ROW_EDIT_METHOD = new InjectionToken('edit-remote-method');
|
|
6
|
-
export const ROW_VIEW_METHOD = new InjectionToken('view-remote-method');
|
|
7
|
-
export const ROW_LINK_METHOD = new InjectionToken('link-remote-method');
|
|
8
|
-
export const ROW_EDIT_LOADER_METHOD = new InjectionToken('edit-loader-method');
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9rZW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9tYXRlcmlhbC90YWJsZS1zeXN0ZW0vc3JjL2xpYi90YWJsZS1yb3ctY29udHJvbHMvdG9rZW5zLnRzIl0sIm5hbWVzIjpbXSwibWF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yLW1ldGhvZCcpO1xuIl19
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { OpenApiRemoteMethod } from '@rxap/open-api/remote-method';
|
|
2
|
-
import { TableDataSourceDirective } from '../../table-data-source.directive';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { Method } from '@rxap/utilities/rxjs';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class RowControlsCellComponent<Data extends Record<string, any> & {
|
|
7
|
-
uuid: string;
|
|
8
|
-
}> {
|
|
9
|
-
private readonly tableDataSource;
|
|
10
|
-
readonly deleteRemoteMethod: OpenApiRemoteMethod<any, {
|
|
11
|
-
uuid: string;
|
|
12
|
-
}> & Method | null;
|
|
13
|
-
readonly archiveRemoteMethod: OpenApiRemoteMethod<any, {
|
|
14
|
-
uuid: string;
|
|
15
|
-
}> & Method | null;
|
|
16
|
-
readonly unarchiveRemoteMethod: OpenApiRemoteMethod<any, {
|
|
17
|
-
uuid: string;
|
|
18
|
-
}> & Method | null;
|
|
19
|
-
readonly editRemoteMethod: Method<any, Data | Observable<Data>> | null;
|
|
20
|
-
readonly rowViewMethod: Method<any, {
|
|
21
|
-
uuid: string;
|
|
22
|
-
}> | null;
|
|
23
|
-
readonly rowLinkMethod: Method<any, {
|
|
24
|
-
uuid: string;
|
|
25
|
-
}> | null;
|
|
26
|
-
readonly editLoaderMethod: Method<any, Data> | null;
|
|
27
|
-
element: Data;
|
|
28
|
-
constructor(tableDataSource: TableDataSourceDirective<Data>, deleteRemoteMethod?: OpenApiRemoteMethod<any, {
|
|
29
|
-
uuid: string;
|
|
30
|
-
}> & Method | null, archiveRemoteMethod?: OpenApiRemoteMethod<any, {
|
|
31
|
-
uuid: string;
|
|
32
|
-
}> & Method | null, unarchiveRemoteMethod?: OpenApiRemoteMethod<any, {
|
|
33
|
-
uuid: string;
|
|
34
|
-
}> & Method | null, editRemoteMethod?: Method<any, Data | Observable<Data>> | null, rowViewMethod?: Method<any, {
|
|
35
|
-
uuid: string;
|
|
36
|
-
}> | null, rowLinkMethod?: Method<any, {
|
|
37
|
-
uuid: string;
|
|
38
|
-
}> | null, editLoaderMethod?: Method<any, Data> | null);
|
|
39
|
-
archive(): Promise<void>;
|
|
40
|
-
unarchive(): Promise<void>;
|
|
41
|
-
remove(): Promise<void>;
|
|
42
|
-
view(): Promise<void>;
|
|
43
|
-
link(): Promise<void>;
|
|
44
|
-
edit(): Promise<void>;
|
|
45
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RowControlsCellComponent<any>, [null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RowControlsCellComponent<any>, "td[mfd-row-controls-cell]", never, { "element": { "alias": "element"; "required": false; }; }, {}, never, never, true, never>;
|
|
47
|
-
}
|
package/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { TableFilterService } from '../../table-filter/table-filter.service';
|
|
2
|
-
import type { Observable } from 'rxjs';
|
|
3
|
-
import { TableDataSourceDirective } from '../../table-data-source.directive';
|
|
4
|
-
import { SelectRowService } from '../../select-row/select-row.service';
|
|
5
|
-
import { OpenApiRemoteMethod } from '@rxap/open-api/remote-method';
|
|
6
|
-
import { Method } from '@rxap/utilities/rxjs';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class RowControlsHeaderCellComponent<Data extends Record<string, any>> {
|
|
9
|
-
private readonly tableDataSource;
|
|
10
|
-
private readonly tableFilter;
|
|
11
|
-
readonly selectRow: SelectRowService<Data> | null;
|
|
12
|
-
private readonly deleteRemoteMethod;
|
|
13
|
-
private readonly archiveRemoteMethod;
|
|
14
|
-
private readonly unarchiveRemoteMethod;
|
|
15
|
-
showArchive$: Observable<boolean>;
|
|
16
|
-
showUnarchive$: Observable<boolean>;
|
|
17
|
-
showDelete$: Observable<boolean>;
|
|
18
|
-
disabled$: Observable<boolean>;
|
|
19
|
-
constructor(tableDataSource: TableDataSourceDirective<Data>, tableFilter?: TableFilterService | null, selectRow?: SelectRowService<Data> | null, deleteRemoteMethod?: OpenApiRemoteMethod<any, {
|
|
20
|
-
uuid: string;
|
|
21
|
-
}> & Method | null, archiveRemoteMethod?: OpenApiRemoteMethod<any, {
|
|
22
|
-
uuid: string;
|
|
23
|
-
}> & Method | null, unarchiveRemoteMethod?: OpenApiRemoteMethod<any, {
|
|
24
|
-
uuid: string;
|
|
25
|
-
}> & Method | null);
|
|
26
|
-
archiveSelected(selectedRows: Data[] | undefined): Promise<void>;
|
|
27
|
-
unarchiveSelected(selectedRows: Data[] | undefined): Promise<void>;
|
|
28
|
-
deleteSelected(selectedRows: Data[] | undefined): Promise<void>;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RowControlsHeaderCellComponent<any>, [null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RowControlsHeaderCellComponent<any>, "th[mfd-row-controls-header-cell]", never, {}, {}, never, never, true, never>;
|
|
31
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { OpenApiRemoteMethod } from '@rxap/open-api/remote-method';
|
|
3
|
-
import { BaseRemoteMethod } from '@rxap/remote-method';
|
|
4
|
-
export declare const ROW_ARCHIVE_METHOD: InjectionToken<OpenApiRemoteMethod<any, {
|
|
5
|
-
uuid: string;
|
|
6
|
-
}, any>>;
|
|
7
|
-
export declare const ROW_RESTORE_METHOD: InjectionToken<OpenApiRemoteMethod<any, {
|
|
8
|
-
uuid: string;
|
|
9
|
-
}, any>>;
|
|
10
|
-
export declare const ROW_DELETE_METHOD: InjectionToken<OpenApiRemoteMethod<any, {
|
|
11
|
-
uuid: string;
|
|
12
|
-
}, any>>;
|
|
13
|
-
export declare const ROW_EDIT_METHOD: InjectionToken<BaseRemoteMethod<any, Record<string, any>, import("@rxap/remote-method").BaseRemoteMethodMetadata>>;
|
|
14
|
-
export declare const ROW_VIEW_METHOD: InjectionToken<BaseRemoteMethod<any, Record<string, any>, import("@rxap/remote-method").BaseRemoteMethodMetadata>>;
|
|
15
|
-
export declare const ROW_LINK_METHOD: InjectionToken<BaseRemoteMethod<any, Record<string, any>, import("@rxap/remote-method").BaseRemoteMethodMetadata>>;
|
|
16
|
-
export declare const ROW_EDIT_LOADER_METHOD: InjectionToken<BaseRemoteMethod<Record<string, any>, Record<string, any>, import("@rxap/remote-method").BaseRemoteMethodMetadata>>;
|
package/migration.json
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
4
|
-
function default_1() {
|
|
5
|
-
return (0, schematics_utilities_1.InstallPeerDependencies)();
|
|
6
|
-
}
|
|
7
|
-
exports.default = default_1;
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/material/table-system/src/schematics/ng-add/index.ts"],"names":[],"mappings":";;AACA,qEAAqE;AAErE;IACE,OAAO,IAAA,8CAAuB,GAAE,CAAC;AACnC,CAAC;AAFD,4BAEC"}
|