@paperless/angular 1.43.0 → 1.44.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/table/table.component.mjs +23 -7
- package/esm2020/lib/modules/table/components/table-row-action/table-row-action.component.mjs +20 -6
- package/fesm2015/paperless-angular.mjs +41 -11
- package/fesm2015/paperless-angular.mjs.map +1 -1
- package/fesm2020/paperless-angular.mjs +41 -11
- package/fesm2020/paperless-angular.mjs.map +1 -1
- package/lib/modules/table/components/table/table.component.d.ts +5 -2
- package/lib/modules/table/components/table-row-action/table-row-action.component.d.ts +10 -4
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
2
|
import { QuickFilter, RowClickEvent } from '@paperless/core';
|
|
3
3
|
import { IconVariant, IllustrationVariant } from '@paperless/core/dist/types/components';
|
|
4
4
|
import { BehaviorSubject } from 'rxjs';
|
|
@@ -6,6 +6,7 @@ import { TableColumn } from '../table-column/table-column.component';
|
|
|
6
6
|
import { TableRowAction } from '../table-row-action/table-row-action.component';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class Table implements OnInit, OnChanges {
|
|
9
|
+
private _changeDetection;
|
|
9
10
|
/**
|
|
10
11
|
* The items to be fed to the table
|
|
11
12
|
*/
|
|
@@ -229,6 +230,7 @@ export declare class Table implements OnInit, OnChanges {
|
|
|
229
230
|
filterModalTemplate: TemplateRef<any> | undefined;
|
|
230
231
|
filterModalShow$: BehaviorSubject<boolean>;
|
|
231
232
|
private _rowActions;
|
|
233
|
+
private _rowActionsSubscriptions;
|
|
232
234
|
set rowActions(v: QueryList<TableRowAction>);
|
|
233
235
|
get rowActions(): QueryList<TableRowAction>;
|
|
234
236
|
filterModalHeaderText: string;
|
|
@@ -240,12 +242,13 @@ export declare class Table implements OnInit, OnChanges {
|
|
|
240
242
|
filterModalShow: EventEmitter<boolean>;
|
|
241
243
|
filterModalSave: EventEmitter<void>;
|
|
242
244
|
filterModalReset: EventEmitter<boolean>;
|
|
243
|
-
rowActionsFloating$: BehaviorSubject<TableRowAction[]>;
|
|
244
245
|
rowActionsRow$: BehaviorSubject<TableRowAction[]>;
|
|
246
|
+
rowActionsFloating$: BehaviorSubject<TableRowAction[]>;
|
|
245
247
|
isMobile$: BehaviorSubject<boolean>;
|
|
246
248
|
private _resizeTimeout;
|
|
247
249
|
private _inputEnableRowSelection;
|
|
248
250
|
private _inputRowSelectionLimit;
|
|
251
|
+
constructor(_changeDetection: ChangeDetectorRef);
|
|
249
252
|
ngOnInit(): void;
|
|
250
253
|
ngOnChanges(changes: SimpleChanges): void;
|
|
251
254
|
onResize(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { Components } from '@paperless/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export interface TableRowActionClickEvent {
|
|
@@ -10,14 +10,20 @@ export interface TableRowActionClickEvent {
|
|
|
10
10
|
export declare interface TableRowAction extends Omit<Components.PTableRowAction, 'action'> {
|
|
11
11
|
action: EventEmitter<TableRowActionClickEvent>;
|
|
12
12
|
}
|
|
13
|
-
export declare class TableRowAction {
|
|
13
|
+
export declare class TableRowAction implements OnChanges {
|
|
14
|
+
private _c;
|
|
14
15
|
protected z: NgZone;
|
|
15
16
|
protected el: HTMLElement;
|
|
16
17
|
/**
|
|
17
18
|
* Event whenever a row is clicked
|
|
18
19
|
*/
|
|
19
20
|
action: EventEmitter<TableRowActionClickEvent>;
|
|
20
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Event whenever loading has changed
|
|
23
|
+
*/
|
|
24
|
+
_loadingChanged: EventEmitter<boolean>;
|
|
25
|
+
constructor(_c: ChangeDetectorRef, z: NgZone, r: ElementRef);
|
|
26
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
21
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableRowAction, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableRowAction, "p-table-row-action", never, { "disabled": "disabled"; "icon": "icon"; "iconFlip": "iconFlip"; "iconOnly": "iconOnly"; "iconRotate": "iconRotate"; "label": "label"; "type": "type"; }, { "action": "action"; }, never, ["*"], false, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableRowAction, "p-table-row-action", never, { "disabled": "disabled"; "icon": "icon"; "iconFlip": "iconFlip"; "iconOnly": "iconOnly"; "iconRotate": "iconRotate"; "label": "label"; "type": "type"; "loading": "loading"; }, { "action": "action"; "_loadingChanged": "_loadingChanged"; }, never, ["*"], false, never>;
|
|
23
29
|
}
|