@paperless/angular 0.1.0-alpha.23 → 0.1.0-alpha.230

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.
Files changed (96) hide show
  1. package/README.md +9 -1
  2. package/esm2020/lib/animations/index.mjs +2 -0
  3. package/esm2020/lib/animations/slide.mjs +20 -0
  4. package/esm2020/lib/base/index.mjs +2 -1
  5. package/esm2020/lib/base/upload.component.mjs +57 -0
  6. package/esm2020/lib/base/value-accessor.mjs +8 -8
  7. package/esm2020/lib/directives/index.mjs +12 -4
  8. package/esm2020/lib/directives/p-page-size-select.directive.mjs +42 -0
  9. package/esm2020/lib/directives/p-pagination.directive.mjs +42 -0
  10. package/esm2020/lib/directives/p-select.directive.mjs +38 -0
  11. package/esm2020/lib/modules/index.mjs +6 -0
  12. package/esm2020/lib/modules/table/base/form.component.mjs +105 -0
  13. package/esm2020/lib/modules/table/base/index.mjs +3 -0
  14. package/esm2020/lib/modules/table/base/table.component.mjs +175 -0
  15. package/esm2020/lib/modules/table/components/index.mjs +8 -0
  16. package/esm2020/lib/modules/table/components/table/constants.mjs +3 -0
  17. package/esm2020/lib/modules/table/components/table/table.component.mjs +604 -0
  18. package/esm2020/lib/modules/table/components/table-cell/table-cell.component.mjs +167 -0
  19. package/esm2020/lib/modules/table/components/table-column/table-column.component.mjs +37 -0
  20. package/esm2020/lib/modules/table/directives/index.mjs +18 -0
  21. package/esm2020/lib/modules/table/directives/p-table-filter-modal.directive.mjs +13 -0
  22. package/esm2020/lib/modules/table/directives/p-table-footer.directive.mjs +52 -0
  23. package/esm2020/lib/modules/table/directives/p-table-header.directive.mjs +60 -0
  24. package/esm2020/lib/modules/table/directives/p-table-ngx.directive.mjs +98 -0
  25. package/esm2020/lib/modules/table/directives/p-table.directive.mjs +78 -0
  26. package/esm2020/lib/modules/table/index.mjs +5 -0
  27. package/esm2020/lib/modules/table/table.module.mjs +28 -0
  28. package/esm2020/lib/modules/toast/components/index.mjs +4 -0
  29. package/esm2020/lib/modules/toast/components/toast-container/toast-container.component.mjs +36 -0
  30. package/esm2020/lib/modules/toast/directives/index.mjs +4 -0
  31. package/esm2020/lib/modules/toast/directives/toast.directive.mjs +52 -0
  32. package/esm2020/lib/modules/toast/index.mjs +6 -0
  33. package/esm2020/lib/modules/toast/services/index.mjs +4 -0
  34. package/esm2020/lib/modules/toast/services/toast.service.mjs +47 -0
  35. package/esm2020/lib/modules/toast/toast.module.mjs +22 -0
  36. package/esm2020/lib/modules/toast/types.mjs +10 -0
  37. package/esm2020/lib/paperless.module.mjs +29 -11
  38. package/esm2020/lib/pipes/currency.pipe.mjs +20 -0
  39. package/esm2020/lib/pipes/date.pipe.mjs +20 -0
  40. package/esm2020/lib/pipes/index.mjs +8 -0
  41. package/esm2020/lib/pipes/safe.pipe.mjs +33 -0
  42. package/esm2020/lib/stencil/components.mjs +976 -70
  43. package/esm2020/lib/stencil/index.mjs +37 -1
  44. package/esm2020/lib/stencil.module.mjs +17 -0
  45. package/esm2020/public-api.mjs +5 -1
  46. package/fesm2015/paperless-angular.mjs +2792 -144
  47. package/fesm2015/paperless-angular.mjs.map +1 -1
  48. package/fesm2020/paperless-angular.mjs +2809 -146
  49. package/fesm2020/paperless-angular.mjs.map +1 -1
  50. package/{paperless-angular.d.ts → index.d.ts} +0 -0
  51. package/lib/animations/index.d.ts +1 -0
  52. package/lib/animations/slide.d.ts +2 -0
  53. package/lib/base/index.d.ts +1 -0
  54. package/lib/base/upload.component.d.ts +16 -0
  55. package/lib/base/value-accessor.d.ts +6 -6
  56. package/lib/directives/index.d.ts +5 -3
  57. package/lib/directives/p-page-size-select.directive.d.ts +10 -0
  58. package/lib/directives/{pagination.directive.d.ts → p-pagination.directive.d.ts} +3 -3
  59. package/lib/directives/p-select.directive.d.ts +9 -0
  60. package/lib/modules/index.d.ts +4 -0
  61. package/lib/modules/table/base/form.component.d.ts +15 -0
  62. package/lib/modules/table/base/index.d.ts +2 -0
  63. package/lib/modules/table/base/table.component.d.ts +49 -0
  64. package/lib/modules/table/components/index.d.ts +7 -0
  65. package/lib/modules/table/components/table/constants.d.ts +2 -0
  66. package/lib/modules/table/components/table/table.component.d.ts +209 -0
  67. package/lib/modules/table/components/table-cell/table-cell.component.d.ts +45 -0
  68. package/lib/modules/table/components/table-column/table-column.component.d.ts +17 -0
  69. package/lib/modules/table/directives/index.d.ts +11 -0
  70. package/lib/modules/table/directives/p-table-filter-modal.directive.d.ts +5 -0
  71. package/lib/modules/table/directives/p-table-footer.directive.d.ts +11 -0
  72. package/lib/modules/table/directives/p-table-header.directive.d.ts +17 -0
  73. package/lib/modules/table/directives/p-table-ngx.directive.d.ts +26 -0
  74. package/lib/modules/table/directives/p-table.directive.d.ts +22 -0
  75. package/lib/modules/table/index.d.ts +4 -0
  76. package/lib/modules/table/table.module.d.ts +16 -0
  77. package/lib/modules/toast/components/index.d.ts +3 -0
  78. package/lib/modules/toast/components/toast-container/toast-container.component.d.ts +17 -0
  79. package/lib/modules/toast/directives/index.d.ts +3 -0
  80. package/lib/modules/toast/directives/toast.directive.d.ts +16 -0
  81. package/lib/modules/toast/index.d.ts +5 -0
  82. package/lib/modules/toast/services/index.d.ts +3 -0
  83. package/lib/modules/toast/services/toast.service.d.ts +12 -0
  84. package/lib/modules/toast/toast.module.d.ts +10 -0
  85. package/lib/modules/toast/types.d.ts +30 -0
  86. package/lib/paperless.module.d.ts +13 -3
  87. package/lib/pipes/currency.pipe.d.ts +10 -0
  88. package/lib/pipes/date.pipe.d.ts +10 -0
  89. package/lib/pipes/index.d.ts +7 -0
  90. package/lib/pipes/safe.pipe.d.ts +10 -0
  91. package/lib/stencil/components.d.ts +403 -14
  92. package/lib/stencil/index.d.ts +1 -1
  93. package/lib/stencil.module.d.ts +7 -0
  94. package/package.json +7 -6
  95. package/public-api.d.ts +4 -0
  96. package/esm2020/lib/directives/pagination.directive.mjs +0 -42
File without changes
@@ -0,0 +1 @@
1
+ export * from './slide';
@@ -0,0 +1,2 @@
1
+ export declare const SLIDE_IN_BOTTOM_OUT_TOP: import("@angular/animations").AnimationTriggerMetadata;
2
+ export declare const SLIDE_IN_TOP_OUT_BOTTOM: import("@angular/animations").AnimationTriggerMetadata;
@@ -1 +1,2 @@
1
+ export * from './upload.component';
1
2
  export * from './value-accessor';
@@ -0,0 +1,16 @@
1
+ import { ElementRef, EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare abstract class BaseUploadComponent {
4
+ fileId?: string;
5
+ uploaded: boolean;
6
+ set loading(value: boolean);
7
+ get loading(): boolean;
8
+ fileChange: EventEmitter<any>;
9
+ uploaderInput?: ElementRef;
10
+ file?: File;
11
+ private _loading;
12
+ onChange($event: Event): void;
13
+ onLoad(file: File, result: string): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseUploadComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseUploadComponent, "ng-component", never, { "fileId": "fileId"; "uploaded": "uploaded"; "loading": "loading"; }, { "fileChange": "fileChange"; }, never, never, false>;
16
+ }
@@ -1,17 +1,17 @@
1
1
  import { ElementRef } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
- export declare class ValueAccessor implements ControlValueAccessor {
4
+ export declare class BaseValueAccessor implements ControlValueAccessor {
5
5
  protected el: ElementRef;
6
- private onChange;
7
- private onTouched;
6
+ protected onChange: (value: any) => void;
7
+ protected onTouched: () => void;
8
8
  protected lastValue: any;
9
9
  constructor(el: ElementRef);
10
10
  writeValue(value: any): void;
11
11
  handleChangeEvent(value: any): void;
12
- _handleBlurEvent(): void;
13
12
  registerOnChange(fn: (value: any) => void): void;
14
13
  registerOnTouched(fn: () => void): void;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<ValueAccessor, never>;
16
- static ɵdir: i0.ɵɵDirectiveDeclaration<ValueAccessor, never, never, {}, {}, never>;
14
+ private _handleBlurEvent;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseValueAccessor, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseValueAccessor, never, never, {}, {}, never, never, false>;
17
17
  }
@@ -1,3 +1,5 @@
1
- export * from './pagination.directive';
2
- import { PaginationDirective } from './pagination.directive';
3
- export declare const CUSTOM_DIRECTIVES: (typeof PaginationDirective)[];
1
+ export * from './p-page-size-select.directive';
2
+ export * from './p-pagination.directive';
3
+ export * from './p-select.directive';
4
+ import { SelectDirective } from './p-select.directive';
5
+ export declare const DIRECTIVES: (typeof SelectDirective)[];
@@ -0,0 +1,10 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { BaseValueAccessor } from '../base';
3
+ import * as i0 from "@angular/core";
4
+ export declare class PageSizeSelectDirective extends BaseValueAccessor {
5
+ constructor(el: ElementRef);
6
+ writeValue(value: any): void;
7
+ registerOnChange(fn: (_: number | null) => void): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<PageSizeSelectDirective, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PageSizeSelectDirective, "p-page-size-select", never, {}, {}, never, never, false>;
10
+ }
@@ -1,10 +1,10 @@
1
1
  import { ElementRef } from '@angular/core';
2
- import { ValueAccessor } from '../base';
2
+ import { BaseValueAccessor } from '../base';
3
3
  import * as i0 from "@angular/core";
4
- export declare class PaginationDirective extends ValueAccessor {
4
+ export declare class PaginationDirective extends BaseValueAccessor {
5
5
  constructor(el: ElementRef);
6
6
  writeValue(value: any): void;
7
7
  registerOnChange(fn: (_: number | null) => void): void;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<PaginationDirective, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<PaginationDirective, "p-pagination", never, {}, {}, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PaginationDirective, "p-pagination", never, {}, {}, never, never, false>;
10
10
  }
@@ -0,0 +1,9 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { BaseValueAccessor } from '../base';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SelectDirective extends BaseValueAccessor {
5
+ constructor(el: ElementRef);
6
+ writeValue(value: any): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectDirective, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SelectDirective, "p-select", never, {}, {}, never, never, false>;
9
+ }
@@ -0,0 +1,4 @@
1
+ import { TableModule } from './table';
2
+ export * from './table';
3
+ export * from './toast';
4
+ export declare const MODULES: (typeof TableModule)[];
@@ -0,0 +1,15 @@
1
+ import { AbstractControl, FormArray, FormControl, FormGroup } from '@angular/forms';
2
+ import * as i0 from "@angular/core";
3
+ export declare abstract class FormBaseComponent {
4
+ markedDirty: boolean;
5
+ scrollToFirstError(): void;
6
+ markControlDirty(control: FormControl | FormGroup | FormArray | AbstractControl): void;
7
+ markAllDirty(formGroup: FormGroup): void;
8
+ getControlError(control: FormControl | AbstractControl | FormArray | FormGroup): string | undefined;
9
+ hasControlError(control: FormControl | AbstractControl | FormGroup | FormArray, showChildErrors?: boolean): string | false | undefined;
10
+ firstControlError(control: FormControl | AbstractControl | FormGroup | FormArray, showChildErrors?: boolean): string | undefined;
11
+ resetControl(control: FormControl | FormGroup | FormArray | AbstractControl): void;
12
+ resetForm(formGroup: FormGroup): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormBaseComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormBaseComponent, "ng-component", never, {}, {}, never, never, false>;
15
+ }
@@ -0,0 +1,2 @@
1
+ export * from './form.component';
2
+ export * from './table.component';
@@ -0,0 +1,49 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { QuickFilter } from '@paperless/core';
4
+ import { FormBaseComponent } from './form.component';
5
+ import * as i0 from "@angular/core";
6
+ export interface TableOptions {
7
+ pageSize: number;
8
+ page: number;
9
+ quickFilter: any | string;
10
+ query: string;
11
+ filters: any[];
12
+ selectedRows: any[];
13
+ }
14
+ export declare abstract class BaseTableComponent extends FormBaseComponent implements OnInit {
15
+ protected quickFilters: any[];
16
+ pageSizeDefault: number;
17
+ tableOptions?: FormControl<TableOptions>;
18
+ private _defaultTableValues;
19
+ defaultTableValues: Partial<TableOptions>;
20
+ get pageSize(): number;
21
+ get page(): number;
22
+ get quickFilter(): QuickFilter;
23
+ set quickFilter(quickFilter: QuickFilter);
24
+ get query(): string;
25
+ set query(query: string);
26
+ get filters(): any[];
27
+ set filters(filters: any[]);
28
+ get selectedRows(): any[];
29
+ set selectedRows(selectedRows: any[]);
30
+ get parsedDefaultTableValues(): {
31
+ pageSize: number;
32
+ page: number;
33
+ quickFilter: any;
34
+ query: string;
35
+ filters: any[];
36
+ selectedRows: any[];
37
+ };
38
+ get tableValues(): Partial<TableOptions>;
39
+ set tableValues(values: Partial<TableOptions>);
40
+ constructor();
41
+ ngOnInit(): void;
42
+ resetTable(emitEvent?: boolean, forceRefresh?: null): void;
43
+ protected _refresh(): void;
44
+ private _resetPageOrRefresh;
45
+ private _setTableValues;
46
+ private _getChanges;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseTableComponent, never>;
48
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseTableComponent, "ng-component", never, {}, {}, never, never, false>;
49
+ }
@@ -0,0 +1,7 @@
1
+ export * from './table-cell/table-cell.component';
2
+ export * from './table-column/table-column.component';
3
+ export * from './table/table.component';
4
+ import { TableCell } from './table-cell/table-cell.component';
5
+ import { TableColumn } from './table-column/table-column.component';
6
+ import { Table } from './table/table.component';
7
+ export declare const TABLE_COMPONENTS: (typeof TableCell | typeof TableColumn | typeof Table)[];
@@ -0,0 +1,2 @@
1
+ export declare const defaultSize = 12;
2
+ export declare const defaultSizeOptions: number[];
@@ -0,0 +1,209 @@
1
+ import { EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
2
+ import { QuickFilter, RowClickEvent } from '@paperless/core';
3
+ import { TableColumn } from '../table-column/table-column.component';
4
+ import * as i0 from "@angular/core";
5
+ export declare class Table implements OnInit, OnChanges {
6
+ /**
7
+ * The items to be fed to the table
8
+ */
9
+ items: string;
10
+ /**
11
+ * Wether data is loading
12
+ */
13
+ loading: boolean;
14
+ /**
15
+ * The amount of loading rows to show
16
+ */
17
+ amountOfLoadingRows: number;
18
+ /**
19
+ * Wether to enable selection
20
+ */
21
+ enableRowSelection: boolean;
22
+ /**
23
+ * Wether to enable row clicking
24
+ */
25
+ enableRowClick: boolean;
26
+ /**
27
+ * The current selection of items
28
+ */
29
+ selectedRows: any[];
30
+ /**
31
+ * Event whenever the current selection changes
32
+ */
33
+ selectedRowsChange: EventEmitter<any>;
34
+ /**
35
+ * The key to determine if a row is selected
36
+ */
37
+ selectionKey: string | undefined;
38
+ /**
39
+ * A key to determine if a row can be selected
40
+ */
41
+ canSelectKey: string | undefined;
42
+ /**
43
+ * Event whenever a row is clicked
44
+ */
45
+ rowClick: EventEmitter<RowClickEvent>;
46
+ /**
47
+ * Event whenever a row is selected
48
+ */
49
+ rowSelected: EventEmitter<any>;
50
+ /**
51
+ * Event whenever a row is deselected
52
+ */
53
+ rowDeselected: EventEmitter<any>;
54
+ /** START HEADER */
55
+ /**
56
+ * Quick filters to show
57
+ */
58
+ quickFilters: QuickFilter[];
59
+ /**
60
+ * Active quick filter identifier
61
+ */
62
+ activeQuickFilterIdentifier: string | undefined;
63
+ /**
64
+ * Wether to show the search input
65
+ */
66
+ enableSearch: boolean;
67
+ /**
68
+ * The query to show in the search bar
69
+ */
70
+ query: string | undefined;
71
+ /**
72
+ * Wether to show the filter button
73
+ */
74
+ enableFilter: boolean;
75
+ /**
76
+ * The amount of filters being selected
77
+ */
78
+ selectedFiltersAmount: number | undefined;
79
+ /**
80
+ * The template for the filter button text
81
+ */
82
+ filterButtonTemplate: any;
83
+ /**
84
+ * Wether to show the edit button
85
+ */
86
+ enableEdit: boolean;
87
+ /**
88
+ * The template for the edit button text
89
+ */
90
+ editButtonTemplate: any;
91
+ /**
92
+ * Event when one of the quick filters is clicked
93
+ */
94
+ quickFilter: EventEmitter<QuickFilter>;
95
+ /**
96
+ * Event when the query changes
97
+ */
98
+ queryChange: EventEmitter<string>;
99
+ /**
100
+ * Event when the filter button is clicked
101
+ */
102
+ filter: EventEmitter<null>;
103
+ /**
104
+ * Event when the edit button is clicked
105
+ */
106
+ edit: EventEmitter<null>;
107
+ /** START FOOTER */
108
+ /**
109
+ * Wether to enable page size select
110
+ */
111
+ enablePageSize: boolean;
112
+ /**
113
+ * Wether to enable pagination
114
+ */
115
+ enablePagination: boolean;
116
+ /**
117
+ * Wether to enable export
118
+ */
119
+ enableExport: boolean;
120
+ /**
121
+ * The current page
122
+ */
123
+ page: number;
124
+ /**
125
+ * The total amount of items
126
+ */
127
+ total: number;
128
+ /**
129
+ * Event whenever the page changes
130
+ */
131
+ pageChange: EventEmitter<number>;
132
+ /**
133
+ * The amount of items per page
134
+ */
135
+ pageSize: number;
136
+ /**
137
+ * The options for the page size
138
+ */
139
+ pageSizeOptions: number[];
140
+ /**
141
+ * Event whenever the page changes
142
+ */
143
+ pageSizeChange: EventEmitter<number>;
144
+ /**
145
+ * Event whenever the page changes
146
+ */
147
+ export: EventEmitter<number>;
148
+ /**
149
+ * Wether to hide when there is only 1 page available
150
+ */
151
+ hideOnSinglePage: boolean;
152
+ emptyStateType: 'no_filter' | 'filtered';
153
+ emptyStateHeader: string;
154
+ emptyStateContent: string;
155
+ emptyStateAction: string;
156
+ emptyStateFilteredHeader: string;
157
+ emptyStateFilteredContent: string;
158
+ /**
159
+ * Event whenever the empty state is clicked
160
+ */
161
+ emptyStateActionClick: EventEmitter<null>;
162
+ columns: any[];
163
+ parsedItems: any[];
164
+ loadingRows: unknown[];
165
+ private _ctrlDown;
166
+ private _columnDefinitions;
167
+ set columnDefinitions(v: QueryList<TableColumn>);
168
+ get columnDefinitions(): QueryList<TableColumn>;
169
+ filterModalTemplate: TemplateRef<any> | undefined;
170
+ private _filterModalShow;
171
+ set filterModalShow(value: boolean);
172
+ get filterModalShow(): boolean;
173
+ filterModalHeaderText: string;
174
+ filterModalSaveText: string;
175
+ filterModalCancelText: string;
176
+ filterModalShown: EventEmitter<boolean>;
177
+ constructor();
178
+ ngOnInit(): void;
179
+ ngOnChanges(changes: SimpleChanges): void;
180
+ keyDown({ key }: {
181
+ key: string;
182
+ }): void;
183
+ keyUp({ key }: {
184
+ key: string;
185
+ }): void;
186
+ visibilityChange(): void;
187
+ onQueryChange({ detail }: CustomEvent<string>): void;
188
+ onQuickFilter({ detail }: CustomEvent<any>): void;
189
+ onPageSizeChange({ detail }: CustomEvent<number>): void;
190
+ onPageChange({ detail }: CustomEvent<number>): void;
191
+ filterModalSave(): void;
192
+ private _parseItems;
193
+ private _generateColumns;
194
+ _checkboxDisabled(item: any): boolean | "" | undefined;
195
+ _selectAllChange($event: any): void;
196
+ _checkboxChange(target: any, index: number): void;
197
+ private _getCheckedValue;
198
+ private _getSelectionValue;
199
+ _selectionContains(row: any, index: number, returnIndex?: boolean): any;
200
+ _selectionContainsAll(): boolean;
201
+ _selectionIndeterminate(): boolean;
202
+ _rowClick($event: {
203
+ target: any;
204
+ }, index: number): void;
205
+ private _findRow;
206
+ private _findRowAction;
207
+ static ɵfac: i0.ɵɵFactoryDeclaration<Table, never>;
208
+ static ɵcmp: i0.ɵɵComponentDeclaration<Table, "p-table-ngx", never, { "items": "items"; "loading": "loading"; "amountOfLoadingRows": "amountOfLoadingRows"; "enableRowSelection": "enableRowSelection"; "enableRowClick": "enableRowClick"; "selectedRows": "selectedRows"; "selectionKey": "selectionKey"; "canSelectKey": "canSelectKey"; "quickFilters": "quickFilters"; "activeQuickFilterIdentifier": "activeQuickFilterIdentifier"; "enableSearch": "enableSearch"; "query": "query"; "enableFilter": "enableFilter"; "selectedFiltersAmount": "selectedFiltersAmount"; "filterButtonTemplate": "filterButtonTemplate"; "enableEdit": "enableEdit"; "editButtonTemplate": "editButtonTemplate"; "enablePageSize": "enablePageSize"; "enablePagination": "enablePagination"; "enableExport": "enableExport"; "page": "page"; "total": "total"; "pageSize": "pageSize"; "pageSizeOptions": "pageSizeOptions"; "hideOnSinglePage": "hideOnSinglePage"; "emptyStateType": "emptyStateType"; "emptyStateHeader": "emptyStateHeader"; "emptyStateContent": "emptyStateContent"; "emptyStateAction": "emptyStateAction"; "emptyStateFilteredHeader": "emptyStateFilteredHeader"; "emptyStateFilteredContent": "emptyStateFilteredContent"; "filterModalHeaderText": "filterModalHeaderText"; "filterModalSaveText": "filterModalSaveText"; "filterModalCancelText": "filterModalCancelText"; }, { "selectedRowsChange": "selectedRowsChange"; "rowClick": "rowClick"; "rowSelected": "rowSelected"; "rowDeselected": "rowDeselected"; "quickFilter": "quickFilter"; "queryChange": "queryChange"; "filter": "filter"; "edit": "edit"; "pageChange": "pageChange"; "pageSizeChange": "pageSizeChange"; "export": "export"; "emptyStateActionClick": "emptyStateActionClick"; "filterModalShown": "filterModalShown"; }, ["filterModalTemplate", "columnDefinitions"], never, false>;
209
+ }
@@ -0,0 +1,45 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import { TableDefinitionData } from '@paperless/core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TableCell {
5
+ /**
6
+ * The variant of the column
7
+ */
8
+ variant: 'default' | 'loading' | 'header';
9
+ /**
10
+ * The index of the column
11
+ */
12
+ index: number;
13
+ /**
14
+ * The index of the row
15
+ */
16
+ rowIndex: number;
17
+ /**
18
+ * The definition of the table column
19
+ */
20
+ definition?: any;
21
+ /**
22
+ * The item in question
23
+ */
24
+ item: any;
25
+ /**
26
+ * The value of the column
27
+ */
28
+ value: any;
29
+ /**
30
+ * The checkbox templateRef
31
+ */
32
+ checkbox: TemplateRef<any> | undefined;
33
+ /**
34
+ * The template ref for the content
35
+ */
36
+ template: TemplateRef<any> | undefined;
37
+ get class(): any;
38
+ get data(): TableDefinitionData | {
39
+ value: string;
40
+ };
41
+ getColumnClasses(): any;
42
+ private _getSizes;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableCell, never>;
44
+ 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"; }, {}, never, never, false>;
45
+ }
@@ -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 PTableColumn extends Components.PTableColumn {
5
+ /**
6
+ * Event to let the table know it has to re render
7
+ */
8
+ tableDefinitionChanged: EventEmitter<CustomEvent<boolean>>;
9
+ }
10
+ export declare class TableColumn {
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<TableColumn, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableColumn, "p-table-column", never, { "align": "align"; "name": "name"; "path": "path"; "sizes": "sizes"; "type": "type"; "useSlot": "useSlot"; }, {}, ["template"], ["*"], false>;
17
+ }
@@ -0,0 +1,11 @@
1
+ export * from './p-table-filter-modal.directive';
2
+ export * from './p-table-footer.directive';
3
+ export * from './p-table-header.directive';
4
+ export * from './p-table-ngx.directive';
5
+ export * from './p-table.directive';
6
+ import { TableFilterModalDirective } from './p-table-filter-modal.directive';
7
+ import { TableFooterDirective } from './p-table-footer.directive';
8
+ import { TableHeaderDirective } from './p-table-header.directive';
9
+ import { TableNgxDirective } from './p-table-ngx.directive';
10
+ import { TableDirective } from './p-table.directive';
11
+ export declare const TABLE_DIRECTIVES: (typeof TableFilterModalDirective | typeof TableFooterDirective | typeof TableHeaderDirective | typeof TableNgxDirective | typeof TableDirective)[];
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class TableFilterModalDirective {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableFilterModalDirective, never>;
4
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TableFilterModalDirective, "p-table-filter-modal", never, {}, {}, never, never, false>;
5
+ }
@@ -0,0 +1,11 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { BaseValueAccessor } from '../../../base';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TableFooterDirective extends BaseValueAccessor {
5
+ protected lastValue: any;
6
+ constructor(el: ElementRef);
7
+ writeValue(value: any): void;
8
+ handleChange(value: number, type: 'page' | 'pageSize'): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableFooterDirective, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TableFooterDirective, "p-table-footer", never, {}, {}, never, never, false>;
11
+ }
@@ -0,0 +1,17 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { QuickFilter } from '@paperless/core';
3
+ import { BaseValueAccessor } from '../../../base';
4
+ import * as i0 from "@angular/core";
5
+ export interface TableHeaderDirectiveValue {
6
+ query?: string;
7
+ quickFilter?: QuickFilter;
8
+ }
9
+ export declare class TableHeaderDirective extends BaseValueAccessor {
10
+ protected lastValue: TableHeaderDirectiveValue;
11
+ constructor(el: ElementRef);
12
+ writeValue(value: TableHeaderDirectiveValue): void;
13
+ handleChange(value: string | QuickFilter, type: 'query' | 'quickFilter'): void;
14
+ private _setActiveQuickFilter;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableHeaderDirective, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TableHeaderDirective, "p-table-header", never, {}, {}, never, never, false>;
17
+ }
@@ -0,0 +1,26 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { QuickFilter } from '@paperless/core';
3
+ import { BaseValueAccessor } from '../../../base';
4
+ import { Table } from '../components/table/table.component';
5
+ import * as i0 from "@angular/core";
6
+ export interface TableDirectiveValue {
7
+ query?: string;
8
+ quickFilter?: QuickFilter;
9
+ filters?: any[];
10
+ page?: number;
11
+ pageSize?: number;
12
+ selectedRows?: any[];
13
+ }
14
+ export declare class TableNgxDirective extends BaseValueAccessor {
15
+ private _base;
16
+ protected lastValue: TableDirectiveValue;
17
+ constructor(el: ElementRef, _base: Table);
18
+ writeValue(value: TableDirectiveValue): void;
19
+ registerOnChange(fn: (value: any) => void): void;
20
+ registerOnTouched(fn: () => void): void;
21
+ handleChange(value: number | string | QuickFilter, type: 'page' | 'pageSize' | 'query' | 'quickFilter' | 'selectedRows'): void;
22
+ private _setActiveQuickFilter;
23
+ private _checkEmptyStateType;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableNgxDirective, [null, { host: true; }]>;
25
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TableNgxDirective, "p-table-ngx", never, {}, {}, never, never, false>;
26
+ }
@@ -0,0 +1,22 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { QuickFilter } from '@paperless/core';
3
+ import { BaseValueAccessor } from '../../../base';
4
+ import * as i0 from "@angular/core";
5
+ export interface NGXTableDirectiveValue {
6
+ query?: string;
7
+ quickFilter?: QuickFilter;
8
+ page?: number;
9
+ pageSize?: number;
10
+ selectedRows?: any[];
11
+ }
12
+ export declare class TableDirective extends BaseValueAccessor {
13
+ protected lastValue: NGXTableDirectiveValue;
14
+ constructor(el: ElementRef);
15
+ writeValue(value: NGXTableDirectiveValue): void;
16
+ registerOnChange(fn: (value: any) => void): void;
17
+ registerOnTouched(fn: () => void): void;
18
+ handleChange(value: number | string | QuickFilter, type: 'page' | 'pageSize' | 'query' | 'quickFilter' | 'selectedRows'): void;
19
+ private _setActiveQuickFilter;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableDirective, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TableDirective, "p-table", never, {}, {}, never, never, false>;
22
+ }
@@ -0,0 +1,4 @@
1
+ export * from './base';
2
+ export * from './components';
3
+ export * from './directives';
4
+ export * from './table.module';
@@ -0,0 +1,16 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/table/table.component";
3
+ import * as i2 from "./components/table-cell/table-cell.component";
4
+ import * as i3 from "./components/table-column/table-column.component";
5
+ import * as i4 from "./directives/p-table-footer.directive";
6
+ import * as i5 from "./directives/p-table-header.directive";
7
+ import * as i6 from "./directives/p-table.directive";
8
+ import * as i7 from "./directives/p-table-ngx.directive";
9
+ import * as i8 from "./directives/p-table-filter-modal.directive";
10
+ import * as i9 from "@angular/common";
11
+ import * as i10 from "../../stencil.module";
12
+ export declare class TableModule {
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableModule, never>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TableModule, [typeof i1.Table, typeof i2.TableCell, typeof i3.TableColumn, typeof i4.TableFooterDirective, typeof i5.TableHeaderDirective, typeof i6.TableDirective, typeof i7.TableNgxDirective, typeof i8.TableFilterModalDirective], [typeof i9.CommonModule, typeof i10.StencilModule], [typeof i1.Table, typeof i2.TableCell, typeof i3.TableColumn, typeof i4.TableFooterDirective, typeof i5.TableHeaderDirective, typeof i6.TableDirective, typeof i7.TableNgxDirective, typeof i8.TableFilterModalDirective]>;
15
+ static ɵinj: i0.ɵɵInjectorDeclaration<TableModule>;
16
+ }
@@ -0,0 +1,3 @@
1
+ export * from './toast-container/toast-container.component';
2
+ import { ToastContainer } from './toast-container/toast-container.component';
3
+ export declare const TOAST_COMPONENTS: (typeof ToastContainer)[];
@@ -0,0 +1,17 @@
1
+ import { ElementRef, NgZone } from '@angular/core';
2
+ import { Components } from '@paperless/core';
3
+ import { ToastService } from '../../services/toast.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare interface PToastContainer extends Components.PToastContainer {
6
+ placement: 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end';
7
+ }
8
+ export declare class ToastContainer {
9
+ protected z: NgZone;
10
+ private _toastService;
11
+ toasts$: import("rxjs").Observable<import("@paperless/angular").ToastData[]>;
12
+ protected el: HTMLElement;
13
+ constructor(r: ElementRef, z: NgZone, _toastService: ToastService);
14
+ dismiss(index: number): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToastContainer, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToastContainer, "p-toast-container", never, { "placement": "placement"; }, {}, never, never, false>;
17
+ }
@@ -0,0 +1,3 @@
1
+ export * from './toast.directive';
2
+ import { ToastDirective } from './toast.directive';
3
+ export declare const TOAST_DIRECTIVES: (typeof ToastDirective)[];
@@ -0,0 +1,16 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { ToastActionFunction } from '../types';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ToastDirective {
5
+ delay: number | 'infinite';
6
+ index: number;
7
+ dismissOnAction: boolean;
8
+ actionFunc?: ToastActionFunction;
9
+ actionData: any;
10
+ dismiss: EventEmitter<number>;
11
+ ngOnInit(): void;
12
+ onAction(): void;
13
+ doDismiss(): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToastDirective, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ToastDirective, "p-toast", never, { "delay": "delay"; "index": "index"; "dismissOnAction": "dismissOnAction"; "actionFunc": "actionFunc"; "actionData": "actionData"; }, { "dismiss": "dismiss"; }, never, never, false>;
16
+ }
@@ -0,0 +1,5 @@
1
+ export * from './components';
2
+ export * from './directives';
3
+ export * from './services';
4
+ export * from './toast.module';
5
+ export * from './types';