@paperless/angular 2.15.3 → 2.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/modules/table/components/index.mjs +10 -2
- package/esm2020/lib/modules/table/components/table/table.component.mjs +26 -8
- package/esm2020/lib/modules/table/components/table-cell/table-cell.component.mjs +22 -9
- package/esm2020/lib/modules/table/components/table-extra-header/table-extra-header.component.mjs +37 -0
- package/esm2020/lib/modules/table/table.module.mjs +11 -10
- package/fesm2015/paperless-angular.mjs +84 -16
- package/fesm2015/paperless-angular.mjs.map +1 -1
- package/fesm2020/paperless-angular.mjs +84 -16
- package/fesm2020/paperless-angular.mjs.map +1 -1
- package/lib/modules/table/components/index.d.ts +3 -1
- package/lib/modules/table/components/table/table.component.d.ts +6 -1
- package/lib/modules/table/components/table-cell/table-cell.component.d.ts +10 -4
- package/lib/modules/table/components/table-extra-header/table-extra-header.component.d.ts +17 -0
- package/lib/modules/table/table.module.d.ts +13 -12
- package/package.json +1 -1
- package/paperless.css +4 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export * from './table-cell/table-cell.component';
|
|
2
2
|
export * from './table-column/table-column.component';
|
|
3
|
+
export * from './table-extra-header/table-extra-header.component';
|
|
3
4
|
export * from './table/table.component';
|
|
4
5
|
export * from './table-row-action/table-row-action.component';
|
|
5
6
|
import { TableCell } from './table-cell/table-cell.component';
|
|
6
7
|
import { TableColumn } from './table-column/table-column.component';
|
|
8
|
+
import { TableExtraHeader } from './table-extra-header/table-extra-header.component';
|
|
7
9
|
import { TableRowAction } from './table-row-action/table-row-action.component';
|
|
8
10
|
import { Table } from './table/table.component';
|
|
9
|
-
export declare const TABLE_COMPONENTS: (typeof TableCell | typeof TableColumn | typeof TableRowAction | typeof Table)[];
|
|
11
|
+
export declare const TABLE_COMPONENTS: (typeof TableCell | typeof TableColumn | typeof TableExtraHeader | typeof TableRowAction | typeof Table)[];
|
|
@@ -4,6 +4,7 @@ import { QuickFilter, RowClickEvent, cn } from '@paperless/core';
|
|
|
4
4
|
import { IconVariant, IllustrationVariant } from '@paperless/core/dist/types/components';
|
|
5
5
|
import { BehaviorSubject } from 'rxjs';
|
|
6
6
|
import { TableColumn } from '../table-column/table-column.component';
|
|
7
|
+
import { TableExtraHeader } from '../table-extra-header/table-extra-header.component';
|
|
7
8
|
import { AsyncItem, TableRowAction, TableRowActionQueryParams, TableRowActionRouterLink } from '../table-row-action/table-row-action.component';
|
|
8
9
|
import { TableCell } from '../table-cell/table-cell.component';
|
|
9
10
|
import { PTableRow } from '../../../../stencil/components';
|
|
@@ -12,6 +13,7 @@ import * as i0 from "@angular/core";
|
|
|
12
13
|
export declare class Table implements OnInit, OnChanges {
|
|
13
14
|
private _changeDetection;
|
|
14
15
|
className: string;
|
|
16
|
+
theme: import("@paperless/core").StateThemeOption;
|
|
15
17
|
/**
|
|
16
18
|
* The items to be fed to the table
|
|
17
19
|
*/
|
|
@@ -242,6 +244,7 @@ export declare class Table implements OnInit, OnChanges {
|
|
|
242
244
|
*/
|
|
243
245
|
emptyStateActionClick: EventEmitter<null>;
|
|
244
246
|
shadow: boolean;
|
|
247
|
+
extraHeaders$: BehaviorSubject<any[]>;
|
|
245
248
|
columns$: BehaviorSubject<any[]>;
|
|
246
249
|
parsedItems: any[];
|
|
247
250
|
loadingRows: unknown[];
|
|
@@ -249,6 +252,7 @@ export declare class Table implements OnInit, OnChanges {
|
|
|
249
252
|
headerCustomFilterTemplate: TemplateRef<any> | undefined;
|
|
250
253
|
headerCustomActionsTemplate: TemplateRef<any> | undefined;
|
|
251
254
|
columnDefinitions: QueryList<TableColumn>;
|
|
255
|
+
extraHeaderDefinitions: QueryList<TableExtraHeader>;
|
|
252
256
|
filterModalTemplate: TemplateRef<any> | undefined;
|
|
253
257
|
filterModalShow$: BehaviorSubject<boolean>;
|
|
254
258
|
private _rowActions;
|
|
@@ -302,6 +306,7 @@ export declare class Table implements OnInit, OnChanges {
|
|
|
302
306
|
onContainerXScroll(ev: any): void;
|
|
303
307
|
private _parseItems;
|
|
304
308
|
private _generateColumns;
|
|
309
|
+
private _generateExtraHeaders;
|
|
305
310
|
_checkboxDisabled(item: any, rowIndex: number): boolean;
|
|
306
311
|
_selectAllChange($event: any, forceValue?: boolean): void;
|
|
307
312
|
_checkboxChange(target: any, index: number): void;
|
|
@@ -326,5 +331,5 @@ export declare class Table implements OnInit, OnChanges {
|
|
|
326
331
|
private _resetScrollPosition;
|
|
327
332
|
private _calculateScrollPosition;
|
|
328
333
|
static ɵfac: i0.ɵɵFactoryDeclaration<Table, never>;
|
|
329
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Table, "p-table-ngx", never, { "items": "items"; "loading": "loading"; "headerLoading": "headerLoading"; "footerLoading": "footerLoading"; "amountOfLoadingRows": "amountOfLoadingRows"; "enableRowSelection": "enableRowSelection"; "rowSelectionLimit": "rowSelectionLimit"; "enableRowClick": "enableRowClick"; "selectedRows": "selectedRows"; "selectionKey": "selectionKey"; "canSelectKey": "canSelectKey"; "enableFloatingMenu": "enableFloatingMenu"; "floatingMenuAmountSelectedText": "floatingMenuAmountSelectedText"; "floatingMenuAmountSelectedTemplate": "floatingMenuAmountSelectedTemplate"; "enableHeader": "enableHeader"; "quickFilters": "quickFilters"; "activeQuickFilterIdentifier": "activeQuickFilterIdentifier"; "enableSearch": "enableSearch"; "query": "query"; "enableFilter": "enableFilter"; "enableFilterDesktop": "enableFilterDesktop"; "selectedFiltersAmount": "selectedFiltersAmount"; "filterButtonTemplate": "filterButtonTemplate"; "enableAction": "enableAction"; "actionButtonLoading": "actionButtonLoading"; "actionButtonIcon": "actionButtonIcon"; "actionButtonEnabled": "actionButtonEnabled"; "actionButtonText": "actionButtonText"; "actionButtonTemplate": "actionButtonTemplate"; "enableFooter": "enableFooter"; "enablePaginationSize": "enablePaginationSize"; "enablePaginationPages": "enablePaginationPages"; "enableExport": "enableExport"; "page": "page"; "total": "total"; "pageSize": "pageSize"; "pageSizeOptions": "pageSizeOptions"; "hideOnSinglePage": "hideOnSinglePage"; "emptyStateType": "emptyStateType"; "emptyStateIllustration": "emptyStateIllustration"; "emptyStateHeader": "emptyStateHeader"; "emptyStateContent": "emptyStateContent"; "emptyStateAction": "emptyStateAction"; "emptyStateActionIcon": "emptyStateActionIcon"; "enableEmptyStateAction": "enableEmptyStateAction"; "emptyStateFilteredIllustration": "emptyStateFilteredIllustration"; "emptyStateFilteredHeader": "emptyStateFilteredHeader"; "emptyStateFilteredContent": "emptyStateFilteredContent"; "enableScroll": "enableScroll"; "shadow": "shadow"; "filterModalHeaderText": "filterModalHeaderText"; "filterModalSaveText": "filterModalSaveText"; "filterModalCancelText": "filterModalCancelText"; "filterModalResetText": "filterModalResetText"; "filterModalShowReset": "filterModalShowReset"; "filterModalShowResetMobile": "filterModalShowResetMobile"; }, { "selectedRowsChange": "selectedRowsChange"; "rowClick": "rowClick"; "rowSelected": "rowSelected"; "rowDeselected": "rowDeselected"; "quickFilter": "quickFilter"; "queryChange": "queryChange"; "filter": "filter"; "action": "action"; "pageChange": "pageChange"; "pageSizeChange": "pageSizeChange"; "export": "export"; "emptyStateActionClick": "emptyStateActionClick"; "filterModalShow": "filterModalShow"; "filterModalSave": "filterModalSave"; "filterModalReset": "filterModalReset"; }, ["headerCustomFilterTemplate", "headerCustomActionsTemplate", "filterModalTemplate", "columnDefinitions", "rowActions", "customRows"], never, false, never>;
|
|
334
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Table, "p-table-ngx", never, { "items": "items"; "loading": "loading"; "headerLoading": "headerLoading"; "footerLoading": "footerLoading"; "amountOfLoadingRows": "amountOfLoadingRows"; "enableRowSelection": "enableRowSelection"; "rowSelectionLimit": "rowSelectionLimit"; "enableRowClick": "enableRowClick"; "selectedRows": "selectedRows"; "selectionKey": "selectionKey"; "canSelectKey": "canSelectKey"; "enableFloatingMenu": "enableFloatingMenu"; "floatingMenuAmountSelectedText": "floatingMenuAmountSelectedText"; "floatingMenuAmountSelectedTemplate": "floatingMenuAmountSelectedTemplate"; "enableHeader": "enableHeader"; "quickFilters": "quickFilters"; "activeQuickFilterIdentifier": "activeQuickFilterIdentifier"; "enableSearch": "enableSearch"; "query": "query"; "enableFilter": "enableFilter"; "enableFilterDesktop": "enableFilterDesktop"; "selectedFiltersAmount": "selectedFiltersAmount"; "filterButtonTemplate": "filterButtonTemplate"; "enableAction": "enableAction"; "actionButtonLoading": "actionButtonLoading"; "actionButtonIcon": "actionButtonIcon"; "actionButtonEnabled": "actionButtonEnabled"; "actionButtonText": "actionButtonText"; "actionButtonTemplate": "actionButtonTemplate"; "enableFooter": "enableFooter"; "enablePaginationSize": "enablePaginationSize"; "enablePaginationPages": "enablePaginationPages"; "enableExport": "enableExport"; "page": "page"; "total": "total"; "pageSize": "pageSize"; "pageSizeOptions": "pageSizeOptions"; "hideOnSinglePage": "hideOnSinglePage"; "emptyStateType": "emptyStateType"; "emptyStateIllustration": "emptyStateIllustration"; "emptyStateHeader": "emptyStateHeader"; "emptyStateContent": "emptyStateContent"; "emptyStateAction": "emptyStateAction"; "emptyStateActionIcon": "emptyStateActionIcon"; "enableEmptyStateAction": "enableEmptyStateAction"; "emptyStateFilteredIllustration": "emptyStateFilteredIllustration"; "emptyStateFilteredHeader": "emptyStateFilteredHeader"; "emptyStateFilteredContent": "emptyStateFilteredContent"; "enableScroll": "enableScroll"; "shadow": "shadow"; "filterModalHeaderText": "filterModalHeaderText"; "filterModalSaveText": "filterModalSaveText"; "filterModalCancelText": "filterModalCancelText"; "filterModalResetText": "filterModalResetText"; "filterModalShowReset": "filterModalShowReset"; "filterModalShowResetMobile": "filterModalShowResetMobile"; }, { "selectedRowsChange": "selectedRowsChange"; "rowClick": "rowClick"; "rowSelected": "rowSelected"; "rowDeselected": "rowDeselected"; "quickFilter": "quickFilter"; "queryChange": "queryChange"; "filter": "filter"; "action": "action"; "pageChange": "pageChange"; "pageSizeChange": "pageSizeChange"; "export": "export"; "emptyStateActionClick": "emptyStateActionClick"; "filterModalShow": "filterModalShow"; "filterModalSave": "filterModalSave"; "filterModalReset": "filterModalReset"; }, ["headerCustomFilterTemplate", "headerCustomActionsTemplate", "filterModalTemplate", "columnDefinitions", "extraHeaderDefinitions", "rowActions", "customRows"], never, false, never>;
|
|
330
335
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
1
|
+
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { cn, TableDefinitionData } from '@paperless/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class TableCell {
|
|
4
|
+
export declare class TableCell implements OnInit {
|
|
5
|
+
theme: import("@paperless/core").StateThemeOption;
|
|
5
6
|
/**
|
|
6
7
|
* The variant of the column
|
|
7
8
|
*/
|
|
8
|
-
variant: 'default' | 'loading' | 'header';
|
|
9
|
+
variant: 'default' | 'loading' | 'header' | 'header-secondary';
|
|
9
10
|
/**
|
|
10
11
|
* The index of the column
|
|
11
12
|
*/
|
|
@@ -30,6 +31,10 @@ export declare class TableCell {
|
|
|
30
31
|
* The checkbox templateRef
|
|
31
32
|
*/
|
|
32
33
|
checkbox: TemplateRef<any> | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Wether the cell needs checkbox offset instead of a checkbox
|
|
36
|
+
*/
|
|
37
|
+
checkboxOffset: boolean;
|
|
33
38
|
/**
|
|
34
39
|
* The template ref for the content
|
|
35
40
|
*/
|
|
@@ -43,6 +48,7 @@ export declare class TableCell {
|
|
|
43
48
|
get data(): TableDefinitionData | {
|
|
44
49
|
value: string;
|
|
45
50
|
};
|
|
51
|
+
ngOnInit(): void;
|
|
46
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableCell, never>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableCell, "p-table-cell-ngx", never, { "variant": "variant"; "index": "index"; "rowIndex": "rowIndex"; "definition": "definition"; "item": "item"; "value": "value"; "checkbox": "checkbox"; "template": "template"; "scrollable": "scrollable"; }, {}, never, ["*"], false, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableCell, "p-table-cell-ngx", never, { "variant": "variant"; "index": "index"; "rowIndex": "rowIndex"; "definition": "definition"; "item": "item"; "value": "value"; "checkbox": "checkbox"; "checkboxOffset": "checkboxOffset"; "template": "template"; "scrollable": "scrollable"; }, {}, never, ["*"], false, never>;
|
|
48
54
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, TemplateRef } from '@angular/core';
|
|
2
|
+
import { Components } from '@paperless/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare interface TableExtraHeader extends Components.PTableExtraHeader {
|
|
5
|
+
/**
|
|
6
|
+
* Event to let the table know it has to re render
|
|
7
|
+
*/
|
|
8
|
+
tableDefinitionChanged: EventEmitter<CustomEvent<boolean>>;
|
|
9
|
+
}
|
|
10
|
+
export declare class TableExtraHeader {
|
|
11
|
+
protected z: NgZone;
|
|
12
|
+
protected el: HTMLElement;
|
|
13
|
+
template: TemplateRef<any> | undefined;
|
|
14
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableExtraHeader, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableExtraHeader, "p-table-extra-header", never, { "align": "align"; "name": "name"; "sizes": "sizes"; "parsedSizes": "parsedSizes"; "useSlot": "useSlot"; "sticky": "sticky"; }, {}, ["template"], ["*"], false, never>;
|
|
17
|
+
}
|
|
@@ -3,19 +3,20 @@ import * as i1 from "./components/table/table.component";
|
|
|
3
3
|
import * as i2 from "./components/table-cell/table-cell.component";
|
|
4
4
|
import * as i3 from "./components/table-column/table-column.component";
|
|
5
5
|
import * as i4 from "./components/table-row-action/table-row-action.component";
|
|
6
|
-
import * as i5 from "./
|
|
7
|
-
import * as i6 from "./directives/p-table-
|
|
8
|
-
import * as i7 from "./directives/p-table.directive";
|
|
9
|
-
import * as i8 from "./directives/p-table
|
|
10
|
-
import * as i9 from "./directives/p-table-
|
|
11
|
-
import * as i10 from "./directives/p-table-
|
|
12
|
-
import * as i11 from "./directives/p-table-custom-
|
|
13
|
-
import * as i12 from "./directives/p-table-custom-
|
|
14
|
-
import * as i13 from "
|
|
15
|
-
import * as i14 from "@angular/
|
|
16
|
-
import * as i15 from "
|
|
6
|
+
import * as i5 from "./components/table-extra-header/table-extra-header.component";
|
|
7
|
+
import * as i6 from "./directives/p-table-footer.directive";
|
|
8
|
+
import * as i7 from "./directives/p-table-header.directive";
|
|
9
|
+
import * as i8 from "./directives/p-table.directive";
|
|
10
|
+
import * as i9 from "./directives/p-table-ngx.directive";
|
|
11
|
+
import * as i10 from "./directives/p-table-filter-modal.directive";
|
|
12
|
+
import * as i11 from "./directives/p-table-custom-filter.directive";
|
|
13
|
+
import * as i12 from "./directives/p-table-custom-actions.directive";
|
|
14
|
+
import * as i13 from "./directives/p-table-custom-row.directive";
|
|
15
|
+
import * as i14 from "@angular/common";
|
|
16
|
+
import * as i15 from "@angular/router";
|
|
17
|
+
import * as i16 from "../../stencil.module";
|
|
17
18
|
export declare class TableModule {
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TableModule, [typeof i1.Table, typeof i2.TableCell, typeof i3.TableColumn, typeof i4.TableRowAction, typeof i5.
|
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TableModule, [typeof i1.Table, typeof i2.TableCell, typeof i3.TableColumn, typeof i4.TableRowAction, typeof i5.TableExtraHeader, typeof i6.TableFooterDirective, typeof i7.TableHeaderDirective, typeof i8.TableDirective, typeof i9.TableNgxDirective, typeof i10.TableFilterModalDirective, typeof i11.TableCustomFilterDirective, typeof i12.TableCustomActionsDirective, typeof i13.TableCustomRowDirective], [typeof i14.CommonModule, typeof i15.RouterModule, typeof i16.StencilModule], [typeof i1.Table, typeof i2.TableCell, typeof i3.TableColumn, typeof i4.TableRowAction, typeof i5.TableExtraHeader, typeof i6.TableFooterDirective, typeof i7.TableHeaderDirective, typeof i8.TableDirective, typeof i9.TableNgxDirective, typeof i10.TableFilterModalDirective, typeof i11.TableCustomFilterDirective, typeof i12.TableCustomActionsDirective, typeof i13.TableCustomRowDirective]>;
|
|
20
21
|
static ɵinj: i0.ɵɵInjectorDeclaration<TableModule>;
|
|
21
22
|
}
|
package/package.json
CHANGED