@paperless/angular 1.46.0 → 1.47.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.
@@ -1,6 +1,7 @@
1
1
  import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, SimpleChanges } from '@angular/core';
2
- import { Components } from '@paperless/core';
3
2
  import { Params } from '@angular/router';
3
+ import { Components } from '@paperless/core';
4
+ import { TableRowActionShowFunc } from '@paperless/core/dist/types/components';
4
5
  import { Observable, Subscribable } from 'rxjs';
5
6
  import * as i0 from "@angular/core";
6
7
  export interface TableRowActionClickEvent {
@@ -9,8 +10,9 @@ export interface TableRowActionClickEvent {
9
10
  multi: boolean;
10
11
  ctrlDown: boolean;
11
12
  }
12
- export declare interface TableRowAction extends Omit<Components.PTableRowAction, 'action'> {
13
+ export declare interface TableRowAction extends Omit<Components.PTableRowAction, 'action' | 'showFunction'> {
13
14
  action: EventEmitter<TableRowActionClickEvent>;
15
+ showFunction?: TableRowActionShowFunc;
14
16
  }
15
17
  export declare type AsyncItem<T> = Observable<T> | Subscribable<T> | Promise<T>;
16
18
  export declare type TableRowActionRouterLink = string | any[] | AsyncItem<string | any[]> | ((item: any) => AsyncItem<string | any[]> | string | any[]);
@@ -35,8 +37,12 @@ export declare class TableRowAction implements OnChanges {
35
37
  * Event whenever loading has changed
36
38
  */
37
39
  _loadingChanged: EventEmitter<boolean>;
40
+ /**
41
+ * A function for row actions of type "single" or "both" that determines if the action is shown on the row
42
+ */
43
+ showFunction?: TableRowActionShowFunc;
38
44
  constructor(_c: ChangeDetectorRef, z: NgZone, r: ElementRef);
39
45
  ngOnChanges(changes: SimpleChanges): void;
40
46
  static ɵfac: i0.ɵɵFactoryDeclaration<TableRowAction, never>;
41
- 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"; "routerLink": "routerLink"; "queryParams": "queryParams"; }, { "action": "action"; "_loadingChanged": "_loadingChanged"; }, never, ["*"], false, never>;
47
+ 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"; "routerLink": "routerLink"; "queryParams": "queryParams"; "showFunction": "showFunction"; }, { "action": "action"; "_loadingChanged": "_loadingChanged"; }, never, ["*"], false, never>;
42
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paperless/angular",
3
- "version": "1.46.0",
3
+ "version": "1.47.0",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "^13.3.0 || ^14.0.0 || ^15.0.0 || ^17.0.0",
6
6
  "@angular/common": "^13.3.0 || ^14.0.0 || ^15.0.0",