@paperless/angular 3.6.1 → 3.6.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paperless/angular",
3
- "version": "3.6.1",
3
+ "version": "3.6.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Employes/Paperless.git"
@@ -1,8 +1,6 @@
1
- import { FormControl, FormGroup, FormArray, AbstractControl, ControlValueAccessor, NumberValueAccessor, NgControl } from '@angular/forms';
1
+ import { FormControl, FormGroup, FormArray, AbstractControl, ControlValueAccessor, NumberValueAccessor } from '@angular/forms';
2
2
  import * as i0 from '@angular/core';
3
- import { EventEmitter, ElementRef, Renderer2, OnInit, OnDestroy, ComponentRef, Injector, EffectRef, TemplateRef, StaticProvider, NgZone, ChangeDetectorRef, OnChanges, SimpleChanges, AfterViewInit, QueryList, PipeTransform } from '@angular/core';
4
- import * as rxjs from 'rxjs';
5
- import { BehaviorSubject, Subject, Observable, Subscribable } from 'rxjs';
3
+ import { ElementRef, OnInit, OnDestroy, ComponentRef, Injector, EffectRef, TemplateRef, StaticProvider, EventEmitter, NgZone, ChangeDetectorRef, OnChanges, SimpleChanges, AfterViewInit, QueryList, PipeTransform } from '@angular/core';
6
4
  import * as i1 from '@angular/cdk/overlay';
7
5
  import { OverlayRef as OverlayRef$1 } from '@angular/cdk/overlay';
8
6
  import * as i2 from '@angular/cdk/platform';
@@ -11,13 +9,14 @@ import * as i4 from '@angular/cdk/portal';
11
9
  import { ComponentType, CdkPortal } from '@angular/cdk/portal';
12
10
  import { Components as Components$1, QuickFilter as QuickFilter$1 } from '@paperless/core/components';
13
11
  import * as i1$1 from '@angular/common';
14
- import { CurrencyPipe, DatePipe } from '@angular/common';
15
12
  import * as i2$1 from '@angular/router';
16
13
  import { Params } from '@angular/router';
17
14
  import * as class_variance_authority_types from 'class-variance-authority/types';
15
+ import * as rxjs from 'rxjs';
16
+ import { Subject, Observable, Subscribable, BehaviorSubject } from 'rxjs';
18
17
  import { QuickFilter, cn, Components, TableRowActionShowFunc, RowClickEvent, IconVariant, IllustrationVariant, IconFlipOptions, RotateOptions } from '@paperless/core';
19
18
  import * as _paperless_angular from '@paperless/angular';
20
- import { DomSanitizer, SafeHtml, SafeStyle, SafeScript, SafeUrl, SafeResourceUrl } from '@angular/platform-browser';
19
+ import { SafeHtml, SafeStyle, SafeScript, SafeUrl, SafeResourceUrl } from '@angular/platform-browser';
21
20
 
22
21
  declare abstract class BaseFormComponent {
23
22
  markedDirty: boolean;
@@ -30,36 +29,36 @@ declare abstract class BaseFormComponent {
30
29
  resetControl(control: FormControl | FormGroup | FormArray | AbstractControl): void;
31
30
  resetForm(formGroup: FormGroup): void;
32
31
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormComponent, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<BaseFormComponent, "ng-component", never, {}, {}, never, never, false, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseFormComponent, "ng-component", never, {}, {}, never, never, true, never>;
34
33
  }
35
34
 
36
35
  declare abstract class BaseUploadComponent {
37
- fileId?: string;
38
- uploaded: boolean;
39
- set loading(value: boolean);
40
- fileChange: EventEmitter<any>;
41
- uploaderInput?: ElementRef;
36
+ readonly fileId: i0.InputSignal<string | undefined>;
37
+ readonly uploaded: i0.InputSignal<boolean>;
38
+ readonly loading: i0.InputSignal<boolean>;
39
+ readonly fileChange: i0.OutputEmitterRef<any>;
40
+ readonly uploaderInput: i0.Signal<ElementRef<any> | undefined>;
41
+ readonly loadingParsed: i0.WritableSignal<boolean>;
42
42
  file?: File;
43
- loading$: BehaviorSubject<boolean>;
43
+ constructor();
44
44
  onChange($event: Event): void;
45
45
  onLoad(file: File, result: string | ArrayBuffer | null): void;
46
46
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseUploadComponent, never>;
47
- static ɵcmp: i0.ɵɵComponentDeclaration<BaseUploadComponent, "ng-component", never, { "fileId": { "alias": "fileId"; "required": false; }; "uploaded": { "alias": "uploaded"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "fileChange": "fileChange"; }, never, never, false, never>;
47
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseUploadComponent, "ng-component", never, { "fileId": { "alias": "fileId"; "required": false; "isSignal": true; }; "uploaded": { "alias": "uploaded"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; }, { "fileChange": "fileChange"; }, never, never, true, never>;
48
48
  }
49
49
 
50
50
  declare class BaseValueAccessor implements ControlValueAccessor {
51
- protected el: ElementRef;
51
+ protected readonly el: ElementRef<any>;
52
52
  protected onChange: (value: any) => void;
53
53
  protected onTouched: () => void;
54
54
  protected lastValue: any;
55
- constructor(el: ElementRef);
56
55
  writeValue(value: any): void;
57
56
  handleChangeEvent(value: any): void;
58
57
  registerOnChange(fn: (value: any) => void): void;
59
58
  registerOnTouched(fn: () => void): void;
60
59
  protected _handleBlurEvent(): void;
61
60
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseValueAccessor, never>;
62
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaseValueAccessor, never, never, {}, {}, never, never, false, never>;
61
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseValueAccessor, never, never, {}, {}, never, never, true, never>;
63
62
  }
64
63
 
65
64
  declare class PCheckboxDirective extends BaseValueAccessor {
@@ -87,15 +86,13 @@ declare class PFieldDirective extends BaseValueAccessor {
87
86
  }
88
87
 
89
88
  declare class BaseNumberValueAccessor extends NumberValueAccessor implements ControlValueAccessor {
90
- protected el: ElementRef;
91
- protected renderer: Renderer2;
89
+ private readonly _el;
92
90
  protected lastValue: any;
93
- constructor(el: ElementRef, renderer: Renderer2);
94
91
  writeValue(value: any): void;
95
92
  handleChangeEvent(value: any): void;
96
93
  protected _handleBlurEvent(): void;
97
94
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseNumberValueAccessor, never>;
98
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaseNumberValueAccessor, never, never, {}, {}, never, never, false, never>;
95
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseNumberValueAccessor, never, never, {}, {}, never, never, true, never>;
99
96
  }
100
97
 
101
98
  declare class PFieldNumberDirective extends BaseNumberValueAccessor {
@@ -118,16 +115,16 @@ declare class PPaginationSizeDirective extends BaseValueAccessor {
118
115
  }
119
116
 
120
117
  declare class PRadioDirective extends BaseValueAccessor implements ControlValueAccessor, OnInit, OnDestroy {
121
- private _control;
118
+ private readonly _control;
122
119
  private _modelValue;
123
120
  private _valueChanges;
124
- constructor(_control: NgControl, el: ElementRef);
121
+ constructor();
125
122
  ngOnInit(): void;
126
123
  writeValue(value: string): void;
127
124
  handleChangeEvent(): void;
128
125
  ngOnDestroy(): void;
129
126
  private _getValue;
130
- static ɵfac: i0.ɵɵFactoryDeclaration<PRadioDirective, [{ self: true; }, null]>;
127
+ static ɵfac: i0.ɵɵFactoryDeclaration<PRadioDirective, never>;
131
128
  static ɵdir: i0.ɵɵDirectiveDeclaration<PRadioDirective, "p-radio", never, {}, {}, never, never, true, never>;
132
129
  }
133
130
 
@@ -143,7 +140,7 @@ declare class PToggleDirective extends BaseValueAccessor {
143
140
  static ɵdir: i0.ɵɵDirectiveDeclaration<PToggleDirective, "p-toggle", never, {}, {}, never, never, true, never>;
144
141
  }
145
142
 
146
- declare const DIRECTIVES: (typeof PCheckboxDirective | typeof PFieldNumberDirective | typeof PRadioDirective)[];
143
+ declare const DIRECTIVES: (typeof PCheckboxDirective | typeof PFieldNumberDirective)[];
147
144
 
148
145
  declare class OverlayModule {
149
146
  static ɵfac: i0.ɵɵFactoryDeclaration<OverlayModule, never>;
@@ -157,8 +154,8 @@ declare class OverlayRef<T> {
157
154
  componentRef: ComponentRef<T>;
158
155
  injector: Injector;
159
156
  effectRef: EffectRef;
160
- data: i0.WritableSignal<any>;
161
- closed$: Subject<unknown>;
157
+ readonly data: i0.WritableSignal<any>;
158
+ readonly closed$: Subject<unknown>;
162
159
  constructor(_overlay: OverlayRef$1);
163
160
  createEffect(): void;
164
161
  close(): void;
@@ -195,7 +192,7 @@ interface TableOptions {
195
192
  selectedRows: any[];
196
193
  }
197
194
  declare abstract class BaseTableComponent extends BaseFormComponent implements OnInit {
198
- tableOptionsChange: EventEmitter<Partial<TableOptions> | null>;
195
+ readonly tableOptionsChange: i0.OutputEmitterRef<Partial<TableOptions> | null>;
199
196
  protected quickFilters: any[];
200
197
  filterForm: FormGroup<any>;
201
198
  filterFormQuickFilterKey?: string;
@@ -243,7 +240,7 @@ declare abstract class BaseTableComponent extends BaseFormComponent implements O
243
240
  id: string;
244
241
  }) | null>;
245
242
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseTableComponent, never>;
246
- static ɵcmp: i0.ɵɵComponentDeclaration<BaseTableComponent, "ng-component", never, {}, { "tableOptionsChange": "tableOptionsChange"; }, never, never, false, never>;
243
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseTableComponent, "ng-component", never, {}, { "tableOptionsChange": "tableOptionsChange"; }, never, never, true, never>;
247
244
  }
248
245
 
249
246
  declare class TableCellComponent {
@@ -1583,7 +1580,7 @@ declare class TableComponent implements OnInit, OnChanges, AfterViewInit {
1583
1580
  static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "p-table-ngx", never, { "items": { "alias": "items"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "headerLoading": { "alias": "headerLoading"; "required": false; }; "footerLoading": { "alias": "footerLoading"; "required": false; }; "amountOfLoadingRows": { "alias": "amountOfLoadingRows"; "required": false; }; "enableRowSelection": { "alias": "enableRowSelection"; "required": false; }; "rowSelectionLimit": { "alias": "rowSelectionLimit"; "required": false; }; "enableRowClick": { "alias": "enableRowClick"; "required": false; }; "selectedRows": { "alias": "selectedRows"; "required": false; }; "selectionKey": { "alias": "selectionKey"; "required": false; }; "canSelectKey": { "alias": "canSelectKey"; "required": false; }; "enableFloatingMenu": { "alias": "enableFloatingMenu"; "required": false; }; "floatingMenuAmountSelectedText": { "alias": "floatingMenuAmountSelectedText"; "required": false; }; "floatingMenuAmountSelectedTemplate": { "alias": "floatingMenuAmountSelectedTemplate"; "required": false; }; "enableHeader": { "alias": "enableHeader"; "required": false; }; "quickFilters": { "alias": "quickFilters"; "required": false; }; "activeQuickFilterIdentifier": { "alias": "activeQuickFilterIdentifier"; "required": false; }; "enableSearch": { "alias": "enableSearch"; "required": false; }; "query": { "alias": "query"; "required": false; }; "enableFilter": { "alias": "enableFilter"; "required": false; }; "enableFilterDesktop": { "alias": "enableFilterDesktop"; "required": false; }; "selectedFiltersAmount": { "alias": "selectedFiltersAmount"; "required": false; }; "filterButtonTemplate": { "alias": "filterButtonTemplate"; "required": false; }; "enableAction": { "alias": "enableAction"; "required": false; }; "actionButtonLoading": { "alias": "actionButtonLoading"; "required": false; }; "actionButtonIcon": { "alias": "actionButtonIcon"; "required": false; }; "actionButtonEnabled": { "alias": "actionButtonEnabled"; "required": false; }; "actionButtonText": { "alias": "actionButtonText"; "required": false; }; "actionButtonTemplate": { "alias": "actionButtonTemplate"; "required": false; }; "enableFooter": { "alias": "enableFooter"; "required": false; }; "enablePaginationSize": { "alias": "enablePaginationSize"; "required": false; }; "enablePaginationPages": { "alias": "enablePaginationPages"; "required": false; }; "enableExport": { "alias": "enableExport"; "required": false; }; "page": { "alias": "page"; "required": false; }; "total": { "alias": "total"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "hideOnSinglePage": { "alias": "hideOnSinglePage"; "required": false; }; "emptyStateType": { "alias": "emptyStateType"; "required": false; }; "emptyStateIllustration": { "alias": "emptyStateIllustration"; "required": false; }; "emptyStateHeader": { "alias": "emptyStateHeader"; "required": false; }; "emptyStateContent": { "alias": "emptyStateContent"; "required": false; }; "emptyStateAction": { "alias": "emptyStateAction"; "required": false; }; "emptyStateActionIcon": { "alias": "emptyStateActionIcon"; "required": false; }; "enableEmptyStateAction": { "alias": "enableEmptyStateAction"; "required": false; }; "emptyStateFilteredIllustration": { "alias": "emptyStateFilteredIllustration"; "required": false; }; "emptyStateFilteredHeader": { "alias": "emptyStateFilteredHeader"; "required": false; }; "emptyStateFilteredContent": { "alias": "emptyStateFilteredContent"; "required": false; }; "enableScroll": { "alias": "enableScroll"; "required": false; }; "shadow": { "alias": "shadow"; "required": false; }; "filterModalHeaderText": { "alias": "filterModalHeaderText"; "required": false; }; "filterModalSaveText": { "alias": "filterModalSaveText"; "required": false; }; "filterModalCancelText": { "alias": "filterModalCancelText"; "required": false; }; "filterModalResetText": { "alias": "filterModalResetText"; "required": false; }; "filterModalShowReset": { "alias": "filterModalShowReset"; "required": false; }; "filterModalShowResetMobile": { "alias": "filterModalShowResetMobile"; "required": false; }; }, { "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, true, never>;
1584
1581
  }
1585
1582
 
1586
- declare const TABLE_COMPONENTS: (typeof TableCellComponent | typeof TableColumnComponent | typeof TableExtraHeaderComponent | typeof TableRowActionComponent | typeof TableComponent)[];
1583
+ declare const TABLE_COMPONENTS: (typeof TableCellComponent | typeof TableColumnComponent | typeof TableExtraHeaderComponent | typeof TableComponent | typeof TableRowActionComponent)[];
1587
1584
 
1588
1585
  declare class PTableCustomFilterDirective {
1589
1586
  static ɵfac: i0.ɵɵFactoryDeclaration<PTableCustomFilterDirective, never>;
@@ -1627,7 +1624,6 @@ interface TableDirectiveValue {
1627
1624
  declare class PTableNgxDirective extends BaseValueAccessor {
1628
1625
  private _base;
1629
1626
  protected lastValue: TableDirectiveValue;
1630
- constructor(el: ElementRef, _base: TableComponent);
1631
1627
  writeValue(value: TableDirectiveValue): void;
1632
1628
  registerOnChange(fn: (value: any) => void): void;
1633
1629
  registerOnTouched(fn: () => void): void;
@@ -1635,7 +1631,7 @@ declare class PTableNgxDirective extends BaseValueAccessor {
1635
1631
  private _setActiveQuickFilter;
1636
1632
  private _checkEmptyStateType;
1637
1633
  private _checkResetButtons;
1638
- static ɵfac: i0.ɵɵFactoryDeclaration<PTableNgxDirective, [null, { host: true; }]>;
1634
+ static ɵfac: i0.ɵɵFactoryDeclaration<PTableNgxDirective, never>;
1639
1635
  static ɵdir: i0.ɵɵDirectiveDeclaration<PTableNgxDirective, "p-table-ngx", never, {}, {}, never, never, true, never>;
1640
1636
  }
1641
1637
 
@@ -1662,7 +1658,7 @@ declare class PTableCustomActionsDirective {
1662
1658
  static ɵdir: i0.ɵɵDirectiveDeclaration<PTableCustomActionsDirective, "[p-table-custom-actions]", never, {}, {}, never, never, true, never>;
1663
1659
  }
1664
1660
 
1665
- declare const TABLE_DIRECTIVES: (typeof PTableCustomFilterDirective | typeof PTableFooterDirective | typeof PTableHeaderDirective | typeof PTableNgxDirective | typeof PTableDirective | typeof PTableCustomRowDirective)[];
1661
+ declare const TABLE_DIRECTIVES: (typeof PTableCustomFilterDirective | typeof PTableCustomRowDirective)[];
1666
1662
 
1667
1663
  declare class TableModule {
1668
1664
  static ɵfac: i0.ɵɵFactoryDeclaration<TableModule, never>;
@@ -1682,11 +1678,12 @@ declare interface PToastContainer extends Components.PToastContainer {
1682
1678
  placement: 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end';
1683
1679
  }
1684
1680
  declare class ToastContainerComponent {
1685
- protected z: NgZone;
1681
+ private readonly _elRef;
1682
+ protected readonly z: NgZone;
1686
1683
  private _toastService;
1687
1684
  toasts$: rxjs.Observable<_paperless_angular.PToastData[]>;
1688
1685
  protected el: HTMLElement;
1689
- constructor(r: ElementRef, z: NgZone);
1686
+ constructor();
1690
1687
  dismiss(identifier: string): void;
1691
1688
  static ɵfac: i0.ɵɵFactoryDeclaration<ToastContainerComponent, never>;
1692
1689
  static ɵcmp: i0.ɵɵComponentDeclaration<ToastContainerComponent, "p-toast-container", never, { "placement": { "alias": "placement"; "required": false; }; }, {}, never, never, true, never>;
@@ -1725,17 +1722,17 @@ interface PToastData {
1725
1722
  }
1726
1723
 
1727
1724
  declare class PToastDirective implements OnInit {
1728
- delay: number | 'infinite';
1729
- identifier: string;
1730
- dismissOnAction: boolean;
1731
- actionFunc?: PToastActionFunction;
1732
- actionData: any;
1733
- dismiss: EventEmitter<string>;
1725
+ readonly delay: i0.InputSignal<number | "infinite">;
1726
+ readonly identifier: i0.InputSignal<string>;
1727
+ readonly dismissOnAction: i0.InputSignal<boolean>;
1728
+ readonly actionFunc: i0.InputSignal<PToastActionFunction | undefined>;
1729
+ readonly actionData: i0.InputSignal<any>;
1730
+ readonly dismiss: i0.OutputEmitterRef<string>;
1734
1731
  ngOnInit(): void;
1735
1732
  onAction(): void;
1736
1733
  doDismiss(): void;
1737
1734
  static ɵfac: i0.ɵɵFactoryDeclaration<PToastDirective, never>;
1738
- static ɵdir: i0.ɵɵDirectiveDeclaration<PToastDirective, "p-toast", never, { "delay": { "alias": "delay"; "required": false; }; "identifier": { "alias": "identifier"; "required": false; }; "dismissOnAction": { "alias": "dismissOnAction"; "required": false; }; "actionFunc": { "alias": "actionFunc"; "required": false; }; "actionData": { "alias": "actionData"; "required": false; }; }, { "dismiss": "dismiss"; }, never, never, true, never>;
1735
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PToastDirective, "p-toast", never, { "delay": { "alias": "delay"; "required": false; "isSignal": true; }; "identifier": { "alias": "identifier"; "required": true; "isSignal": true; }; "dismissOnAction": { "alias": "dismissOnAction"; "required": false; "isSignal": true; }; "actionFunc": { "alias": "actionFunc"; "required": false; "isSignal": true; }; "actionData": { "alias": "actionData"; "required": false; "isSignal": true; }; }, { "dismiss": "dismiss"; }, never, never, true, never>;
1739
1736
  }
1740
1737
 
1741
1738
  declare const TOAST_DIRECTIVES: (typeof PToastDirective)[];
@@ -1759,24 +1756,21 @@ declare class ToastService {
1759
1756
  declare const MODULES: (typeof OverlayModule)[];
1760
1757
 
1761
1758
  declare class CustomCurrencyPipe implements PipeTransform {
1762
- private _currencyPipe;
1763
- constructor(_currencyPipe: CurrencyPipe);
1759
+ private readonly _currencyPipe;
1764
1760
  transform(value: number | string | null | undefined, currencyCode?: string, display?: 'code' | 'symbol' | 'symbol-narrow' | string | boolean, digitsInfo?: string, locale?: string): string | null;
1765
1761
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomCurrencyPipe, never>;
1766
1762
  static ɵpipe: i0.ɵɵPipeDeclaration<CustomCurrencyPipe, "pcurrency", true>;
1767
1763
  }
1768
1764
 
1769
1765
  declare class CustomDatePipe implements PipeTransform {
1770
- private _datePipe;
1771
- constructor(_datePipe: DatePipe);
1766
+ private readonly _datePipe;
1772
1767
  transform(value: string | Date, format?: string): string | null;
1773
1768
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomDatePipe, never>;
1774
1769
  static ɵpipe: i0.ɵɵPipeDeclaration<CustomDatePipe, "pdate", true>;
1775
1770
  }
1776
1771
 
1777
1772
  declare class SafePipe implements PipeTransform {
1778
- protected sanitizer: DomSanitizer;
1779
- constructor(sanitizer: DomSanitizer);
1773
+ private readonly _sanitizer;
1780
1774
  transform(value: string, type: string): SafeHtml | SafeStyle | SafeScript | SafeUrl | SafeResourceUrl;
1781
1775
  static ɵfac: i0.ɵɵFactoryDeclaration<SafePipe, never>;
1782
1776
  static ɵpipe: i0.ɵɵPipeDeclaration<SafePipe, "psafe", true>;