@paperless/angular 2.22.0-alpha.26 → 2.22.0-alpha.28

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 (71) hide show
  1. package/fesm2022/paperless-angular.mjs +1747 -1697
  2. package/fesm2022/paperless-angular.mjs.map +1 -1
  3. package/package.json +6 -6
  4. package/paperless.css +0 -2
  5. package/types/paperless-angular.d.ts +1809 -0
  6. package/index.d.ts +0 -5
  7. package/lib/animations/fade.d.ts +0 -2
  8. package/lib/animations/index.d.ts +0 -2
  9. package/lib/animations/slide.d.ts +0 -2
  10. package/lib/base/form.component.d.ts +0 -15
  11. package/lib/base/index.d.ts +0 -3
  12. package/lib/base/number-value-accessor.d.ts +0 -14
  13. package/lib/base/upload.component.d.ts +0 -16
  14. package/lib/base/value-accessor.d.ts +0 -17
  15. package/lib/directives/index.d.ts +0 -14
  16. package/lib/directives/p-checkbox.directive.d.ts +0 -7
  17. package/lib/directives/p-cropper.directive.d.ts +0 -7
  18. package/lib/directives/p-datepicker.directive.d.ts +0 -7
  19. package/lib/directives/p-field-number.directive.d.ts +0 -6
  20. package/lib/directives/p-field.directive.d.ts +0 -7
  21. package/lib/directives/p-pagination-pages.directive.d.ts +0 -8
  22. package/lib/directives/p-pagination-size.directive.d.ts +0 -8
  23. package/lib/directives/p-radio.directive.d.ts +0 -17
  24. package/lib/directives/p-select.directive.d.ts +0 -7
  25. package/lib/directives/p-toggle.directive.d.ts +0 -7
  26. package/lib/modules/index.d.ts +0 -5
  27. package/lib/modules/overlay/index.d.ts +0 -3
  28. package/lib/modules/overlay/overlay.module.d.ts +0 -12
  29. package/lib/modules/overlay/overlay.ref.d.ts +0 -9
  30. package/lib/modules/overlay/overlay.service.d.ts +0 -24
  31. package/lib/modules/table/base/index.d.ts +0 -1
  32. package/lib/modules/table/base/table.component.d.ts +0 -69
  33. package/lib/modules/table/components/index.d.ts +0 -11
  34. package/lib/modules/table/components/table/constants.d.ts +0 -2
  35. package/lib/modules/table/components/table/table.component.d.ts +0 -336
  36. package/lib/modules/table/components/table-cell/table-cell.component.d.ts +0 -53
  37. package/lib/modules/table/components/table-column/table-column.component.d.ts +0 -17
  38. package/lib/modules/table/components/table-extra-header/table-extra-header.component.d.ts +0 -17
  39. package/lib/modules/table/components/table-row-action/table-row-action.component.d.ts +0 -48
  40. package/lib/modules/table/directives/index.d.ts +0 -15
  41. package/lib/modules/table/directives/p-table-custom-actions.directive.d.ts +0 -5
  42. package/lib/modules/table/directives/p-table-custom-filter.directive.d.ts +0 -5
  43. package/lib/modules/table/directives/p-table-custom-row.directive.d.ts +0 -9
  44. package/lib/modules/table/directives/p-table-filter-modal.directive.d.ts +0 -5
  45. package/lib/modules/table/directives/p-table-footer.directive.d.ts +0 -9
  46. package/lib/modules/table/directives/p-table-header.directive.d.ts +0 -15
  47. package/lib/modules/table/directives/p-table-ngx.directive.d.ts +0 -27
  48. package/lib/modules/table/directives/p-table.directive.d.ts +0 -20
  49. package/lib/modules/table/index.d.ts +0 -5
  50. package/lib/modules/table/table.module.d.ts +0 -22
  51. package/lib/modules/table/utils.d.ts +0 -8
  52. package/lib/modules/toast/components/index.d.ts +0 -3
  53. package/lib/modules/toast/components/toast-container/toast-container.component.d.ts +0 -16
  54. package/lib/modules/toast/directives/index.d.ts +0 -3
  55. package/lib/modules/toast/directives/toast.directive.d.ts +0 -16
  56. package/lib/modules/toast/index.d.ts +0 -5
  57. package/lib/modules/toast/toast.module.d.ts +0 -10
  58. package/lib/modules/toast/toast.service.d.ts +0 -12
  59. package/lib/modules/toast/types.d.ts +0 -31
  60. package/lib/paperless.module.d.ts +0 -26
  61. package/lib/pipes/currency.pipe.d.ts +0 -10
  62. package/lib/pipes/date.pipe.d.ts +0 -10
  63. package/lib/pipes/index.d.ts +0 -10
  64. package/lib/pipes/safe.pipe.d.ts +0 -10
  65. package/lib/pipes/select-autocomplete.pipe.d.ts +0 -7
  66. package/lib/pipes/select-select-all.pipe.d.ts +0 -7
  67. package/lib/stencil/angular-component-lib/utils.d.ts +0 -9
  68. package/lib/stencil/components.d.ts +0 -874
  69. package/lib/stencil/index.d.ts +0 -2
  70. package/lib/stencil.module.d.ts +0 -7
  71. package/public-api.d.ts +0 -8
@@ -1,336 +0,0 @@
1
- import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges, TemplateRef, AfterViewInit } from '@angular/core';
2
- import { Params } from '@angular/router';
3
- import { BehaviorSubject } from 'rxjs';
4
- import { cn, onStateChange, QuickFilter, RowClickEvent, IconVariant, IllustrationVariant } from '@paperless/core';
5
- import { PTableRow } from '../../../../stencil/components';
6
- import { TableCustomRowDirective } from '../../directives/p-table-custom-row.directive';
7
- import { TableCellComponent } from '../table-cell/table-cell.component';
8
- import { TableColumnComponent } from '../table-column/table-column.component';
9
- import { TableExtraHeaderComponent } from '../table-extra-header/table-extra-header.component';
10
- import { AsyncItem, TableRowActionComponent, TableRowActionQueryParams, TableRowActionRouterLink } from '../table-row-action/table-row-action.component';
11
- import * as i0 from "@angular/core";
12
- export declare class TableComponent implements OnInit, OnChanges, AfterViewInit {
13
- private _cd;
14
- hostClass: string;
15
- theme: any;
16
- /**
17
- * The items to be fed to the table
18
- */
19
- items: string | any[];
20
- /**
21
- * Wether data is loading
22
- */
23
- loading: boolean;
24
- /**
25
- * Wether the header should show loading state
26
- */
27
- headerLoading: boolean;
28
- /**
29
- * Wether the footer should show loading state
30
- */
31
- footerLoading: boolean;
32
- /**
33
- * The amount of loading rows to show
34
- */
35
- amountOfLoadingRows: number;
36
- /**
37
- * Wether to enable selection
38
- */
39
- enableRowSelection: boolean;
40
- /**
41
- * A limit to the amount of rows that can be selected
42
- */
43
- rowSelectionLimit: number | undefined;
44
- /**
45
- * Wether to enable row clicking
46
- */
47
- enableRowClick: boolean;
48
- /**
49
- * The current selection of items
50
- */
51
- selectedRows: any[];
52
- /**
53
- * Event whenever the current selection changes
54
- */
55
- selectedRowsChange: EventEmitter<any>;
56
- /**
57
- * The key to determine if a row is selected
58
- */
59
- selectionKey: string | undefined;
60
- /**
61
- * A key to determine if a row can be selected
62
- */
63
- canSelectKey: string | undefined;
64
- /**
65
- * Wether to enable the floating menu
66
- */
67
- enableFloatingMenu: boolean;
68
- /**
69
- * The floating menu amount item text
70
- */
71
- floatingMenuAmountSelectedText: string;
72
- /**
73
- * The template for amount selected item in the floating menu
74
- */
75
- floatingMenuAmountSelectedTemplate: any;
76
- /**
77
- * Wether the floating menu has been shown atleast once
78
- */
79
- floatingMenuShown$: BehaviorSubject<boolean>;
80
- /**
81
- * Event whenever a row is clicked
82
- */
83
- rowClick: EventEmitter<RowClickEvent>;
84
- /**
85
- * Event whenever a row is selected
86
- */
87
- rowSelected: EventEmitter<any>;
88
- /**
89
- * Event whenever a row is deselected
90
- */
91
- rowDeselected: EventEmitter<any>;
92
- /** START HEADER */
93
- /**
94
- * Wether to show the header
95
- */
96
- enableHeader: boolean;
97
- /**
98
- * Quick filters to show
99
- */
100
- quickFilters: QuickFilter[];
101
- /**
102
- * Active quick filter identifier
103
- */
104
- activeQuickFilterIdentifier: string | undefined;
105
- /**
106
- * Wether to show the search input
107
- */
108
- enableSearch: boolean;
109
- /**
110
- * The query to show in the search bar
111
- */
112
- query: string | undefined;
113
- /**
114
- * Wether to show the filter button
115
- */
116
- enableFilter: boolean;
117
- /**
118
- * Wether to show the filter button on desktop
119
- */
120
- enableFilterDesktop: boolean;
121
- /**
122
- * The amount of filters being selected
123
- */
124
- selectedFiltersAmount: number | undefined;
125
- /**
126
- * The template for the filter button text
127
- */
128
- filterButtonTemplate: any;
129
- /**
130
- * Wether to show the action button
131
- */
132
- enableAction: boolean;
133
- /**
134
- * Wether the action button is loading
135
- */
136
- actionButtonLoading: boolean;
137
- /**
138
- * The action button icon
139
- */
140
- actionButtonIcon: IconVariant;
141
- /**
142
- * Wether the action button is enabled
143
- */
144
- actionButtonEnabled: boolean;
145
- /**
146
- * The action button text if changed
147
- */
148
- actionButtonText?: string;
149
- /**
150
- * The template for the action button text
151
- */
152
- actionButtonTemplate: any;
153
- /**
154
- * Event when one of the quick filters is clicked
155
- */
156
- quickFilter: EventEmitter<QuickFilter>;
157
- /**
158
- * Event when the query changes
159
- */
160
- queryChange: EventEmitter<string>;
161
- /**
162
- * Event when the filter button is clicked
163
- */
164
- filter: EventEmitter<null>;
165
- /**
166
- * Event when the action button is clicked
167
- */
168
- action: EventEmitter<null>;
169
- /** START FOOTER */
170
- /**
171
- * Wether to show the footer
172
- */
173
- enableFooter: boolean;
174
- /**
175
- * Wether to enable pagination size select
176
- */
177
- enablePaginationSize: boolean;
178
- /**
179
- * Wether to enable pagination pages
180
- */
181
- enablePaginationPages: boolean;
182
- /**
183
- * Wether to enable export
184
- */
185
- enableExport: boolean;
186
- /**
187
- * The current page
188
- */
189
- page: number;
190
- /**
191
- * The total amount of items
192
- */
193
- total: number;
194
- /**
195
- * Event whenever the page changes
196
- */
197
- pageChange: EventEmitter<number>;
198
- /**
199
- * The amount of items per page
200
- */
201
- pageSize: number;
202
- /**
203
- * The options for the page size
204
- */
205
- pageSizeOptions: number[];
206
- /**
207
- * Event whenever the page changes
208
- */
209
- pageSizeChange: EventEmitter<number>;
210
- /**
211
- * Event whenever the page changes
212
- */
213
- export: EventEmitter<number>;
214
- /**
215
- * Wether to hide when there is only 1 page available
216
- */
217
- hideOnSinglePage: boolean;
218
- emptyStateType: 'no_filter' | 'filtered';
219
- emptyStateIllustration: IllustrationVariant;
220
- emptyStateHeader: string;
221
- emptyStateContent: string;
222
- emptyStateAction: string;
223
- emptyStateActionIcon: IconVariant;
224
- enableEmptyStateAction: boolean;
225
- emptyStateFilteredIllustration: IllustrationVariant;
226
- emptyStateFilteredHeader: string;
227
- emptyStateFilteredContent: string;
228
- /**
229
- * Wether to enable scrolling
230
- */
231
- enableScroll: boolean;
232
- tableRows: QueryList<ElementRef<PTableRow>>;
233
- tableCells: QueryList<ElementRef<TableCellComponent>>;
234
- scrollContainer: ElementRef<HTMLDivElement>;
235
- reachedScrollStart$: BehaviorSubject<boolean>;
236
- reachedScrollEnd$: BehaviorSubject<boolean>;
237
- private _totalWidth;
238
- private _calculateColumnWidthsTimeout?;
239
- private _rowChangesSubscription?;
240
- private _cellChangesSubscription?;
241
- /**
242
- * Event whenever the empty state is clicked
243
- */
244
- emptyStateActionClick: EventEmitter<null>;
245
- shadow: boolean;
246
- extraHeaders$: BehaviorSubject<any[]>;
247
- columns$: BehaviorSubject<any[]>;
248
- parsedItems: any[];
249
- loadingRows: unknown[];
250
- private _ctrlDown;
251
- headerCustomFilterTemplate: TemplateRef<any> | undefined;
252
- headerCustomActionsTemplate: TemplateRef<any> | undefined;
253
- columnDefinitions: QueryList<TableColumnComponent>;
254
- extraHeaderDefinitions: QueryList<TableExtraHeaderComponent>;
255
- filterModalTemplate: TemplateRef<any> | undefined;
256
- filterModalShow$: BehaviorSubject<boolean>;
257
- private _rowActions;
258
- private _rowActionsSubscriptions;
259
- set rowActions(v: QueryList<TableRowActionComponent>);
260
- get rowActions(): QueryList<TableRowActionComponent>;
261
- customRows: QueryList<TableCustomRowDirective>;
262
- filterModalHeaderText: string;
263
- filterModalSaveText: string;
264
- filterModalCancelText: string;
265
- filterModalResetText: string;
266
- filterModalShowReset: boolean;
267
- filterModalShowResetMobile: boolean;
268
- filterModalShow: EventEmitter<boolean>;
269
- filterModalSave: EventEmitter<void>;
270
- filterModalReset: EventEmitter<boolean>;
271
- rowActionsRow$: BehaviorSubject<TableRowActionComponent[]>;
272
- rowActionsFloatingAll$: BehaviorSubject<TableRowActionComponent[]>;
273
- rowActionsFloating$: BehaviorSubject<TableRowActionComponent[]>;
274
- isMobile$: BehaviorSubject<boolean>;
275
- floatingMenuContainerClass: (props?: {
276
- hasFooter?: boolean;
277
- active?: boolean;
278
- shown?: boolean;
279
- } & import("class-variance-authority/types").ClassProp) => string;
280
- private _resizeTimeout;
281
- private _inputEnableRowSelection;
282
- private _inputRowSelectionLimit;
283
- private _themeDebounce?;
284
- footerHidden$: BehaviorSubject<boolean>;
285
- cn: typeof cn;
286
- constructor(_cd: ChangeDetectorRef);
287
- ngOnInit(): void;
288
- ngOnChanges(changes: SimpleChanges): void;
289
- ngAfterViewInit(): void;
290
- onResize(): void;
291
- keyDown({ key }: {
292
- key: string;
293
- }): void;
294
- keyUp({ key }: {
295
- key: string;
296
- }): void;
297
- visibilityChange(): void;
298
- onQueryChange({ detail }: any): void;
299
- onQuickFilter({ detail }: any): void;
300
- onPageSizeChange({ detail }: any): void;
301
- onPageChange({ detail }: any): void;
302
- onFilterModalSave(): void;
303
- onFilterModalReset(resetQuickFilter?: boolean): void;
304
- emptyStateClicked(): void;
305
- parseRowActionsRow(actions: TableRowActionComponent[] | null, rowIndex: number): TableRowActionComponent[];
306
- onContainerXScroll(ev: any): void;
307
- private _parseItems;
308
- private _generateColumns;
309
- private _generateExtraHeaders;
310
- _checkboxDisabled(item: any, rowIndex: number): boolean;
311
- _selectAllChange($event: any, forceValue?: boolean): void;
312
- _checkboxChange(target: any, index: number): void;
313
- private _getCheckedValue;
314
- private _getSelectionValue;
315
- _selectionContains(row: any, index: number, returnIndex?: boolean): any;
316
- _selectionContainsAll(): boolean;
317
- _selectionIndeterminate(): boolean;
318
- _rowClick($event: MouseEvent, index: number): void;
319
- _getActionRouterLink(routerLink: TableRowActionRouterLink, rowIndex: number): BehaviorSubject<string | any[]> | AsyncItem<string | any[]>;
320
- _getActionQueryParams(queryParams: TableRowActionQueryParams, rowIndex: number): BehaviorSubject<Params> | AsyncItem<Params>;
321
- _rowActionClick(action: TableRowActionComponent, rowIndex?: number): void;
322
- private _findRow;
323
- private _findRowAction;
324
- private _setRowSelectionData;
325
- private _showFloatingMenu;
326
- private _parseDefinitions;
327
- private _parseDefinitionSizes;
328
- private _checkChangesSubscriptions;
329
- private _calculateColumnWidths;
330
- private _setRowsWidth;
331
- private _resetScrollPosition;
332
- private _calculateScrollPosition;
333
- private _checkTheme;
334
- static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
335
- 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, false, never>;
336
- }
@@ -1,53 +0,0 @@
1
- import { TemplateRef } from '@angular/core';
2
- import { cn, TableDefinitionData } from '@paperless/core';
3
- import * as i0 from "@angular/core";
4
- export declare class TableCellComponent {
5
- /**
6
- * The variant of the column
7
- */
8
- variant: 'default' | 'loading' | 'header' | 'header-secondary';
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
- * Wether the cell needs checkbox offset instead of a checkbox
35
- */
36
- checkboxOffset: boolean;
37
- /**
38
- * The template ref for the content
39
- */
40
- template: TemplateRef<any> | undefined;
41
- /**
42
- * Wether the table is scrollable
43
- */
44
- scrollable: boolean;
45
- cn: typeof cn;
46
- get class(): string;
47
- get data(): TableDefinitionData | {
48
- value: string;
49
- };
50
- get headerClass(): string;
51
- static ɵfac: i0.ɵɵFactoryDeclaration<TableCellComponent, never>;
52
- static ɵcmp: i0.ɵɵComponentDeclaration<TableCellComponent, "p-table-cell-ngx", never, { "variant": { "alias": "variant"; "required": false; }; "index": { "alias": "index"; "required": false; }; "rowIndex": { "alias": "rowIndex"; "required": false; }; "definition": { "alias": "definition"; "required": false; }; "item": { "alias": "item"; "required": false; }; "value": { "alias": "value"; "required": false; }; "checkbox": { "alias": "checkbox"; "required": false; }; "checkboxOffset": { "alias": "checkboxOffset"; "required": false; }; "template": { "alias": "template"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; }, {}, never, ["*"], false, never>;
53
- }
@@ -1,17 +0,0 @@
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 TableColumnComponent 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 TableColumnComponent {
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<TableColumnComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<TableColumnComponent, "p-table-column", never, { "align": { "alias": "align"; "required": false; }; "headerAlign": { "alias": "headerAlign"; "required": false; }; "flex": { "alias": "flex"; "required": false; }; "name": { "alias": "name"; "required": false; }; "path": { "alias": "path"; "required": false; }; "sizes": { "alias": "sizes"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "useSlot": { "alias": "useSlot"; "required": false; }; "hasCheckbox": { "alias": "hasCheckbox"; "required": false; }; "sticky": { "alias": "sticky"; "required": false; }; }, {}, ["template"], ["*"], false, never>;
17
- }
@@ -1,17 +0,0 @@
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 TableExtraHeaderComponent 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 TableExtraHeaderComponent {
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<TableExtraHeaderComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<TableExtraHeaderComponent, "p-table-extra-header", never, { "align": { "alias": "align"; "required": false; }; "name": { "alias": "name"; "required": false; }; "sizes": { "alias": "sizes"; "required": false; }; "parsedSizes": { "alias": "parsedSizes"; "required": false; }; "useSlot": { "alias": "useSlot"; "required": false; }; "sticky": { "alias": "sticky"; "required": false; }; }, {}, ["template"], ["*"], false, never>;
17
- }
@@ -1,48 +0,0 @@
1
- import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, SimpleChanges } from '@angular/core';
2
- import { Params } from '@angular/router';
3
- import { Observable, Subscribable } from 'rxjs';
4
- import { Components } from '@paperless/core';
5
- import { TableRowActionShowFunc } from '@paperless/core/dist/types/components';
6
- import * as i0 from "@angular/core";
7
- export interface TableRowActionClickEvent {
8
- item?: any;
9
- items?: any[];
10
- multi: boolean;
11
- ctrlDown: boolean;
12
- }
13
- export declare interface TableRowActionComponent extends Omit<Components.PTableRowAction, 'action' | 'showFunction'> {
14
- action: EventEmitter<TableRowActionClickEvent>;
15
- showFunction?: TableRowActionShowFunc;
16
- }
17
- export type AsyncItem<T> = Observable<T> | Subscribable<T> | Promise<T>;
18
- export type TableRowActionRouterLink = string | any[] | AsyncItem<string | any[]> | ((item: any) => AsyncItem<string | any[]> | string | any[]);
19
- export type TableRowActionQueryParams = Params | AsyncItem<Params> | ((item: any) => Params | AsyncItem<Params>);
20
- export declare class TableRowActionComponent implements OnChanges {
21
- private _c;
22
- protected z: NgZone;
23
- protected el: HTMLElement;
24
- /**
25
- * Routerlink to navigate to
26
- */
27
- routerLink?: TableRowActionRouterLink;
28
- /**
29
- * Queryparams to add to the navigation
30
- */
31
- queryParams?: TableRowActionQueryParams;
32
- /**
33
- * Event whenever a row is clicked
34
- */
35
- action: EventEmitter<TableRowActionClickEvent>;
36
- /**
37
- * Event whenever loading has changed
38
- */
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;
44
- constructor(_c: ChangeDetectorRef, z: NgZone, r: ElementRef);
45
- ngOnChanges(changes: SimpleChanges): void;
46
- static ɵfac: i0.ɵɵFactoryDeclaration<TableRowActionComponent, never>;
47
- static ɵcmp: i0.ɵɵComponentDeclaration<TableRowActionComponent, "p-table-row-action", never, { "disabled": { "alias": "disabled"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconFlip": { "alias": "iconFlip"; "required": false; }; "iconOnly": { "alias": "iconOnly"; "required": false; }; "iconRotate": { "alias": "iconRotate"; "required": false; }; "label": { "alias": "label"; "required": false; }; "type": { "alias": "type"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "routerLink": { "alias": "routerLink"; "required": false; }; "queryParams": { "alias": "queryParams"; "required": false; }; "showFunction": { "alias": "showFunction"; "required": false; }; }, { "action": "action"; "_loadingChanged": "_loadingChanged"; }, never, ["*"], false, never>;
48
- }
@@ -1,15 +0,0 @@
1
- export * from './p-table-custom-filter.directive';
2
- export * from './p-table-filter-modal.directive';
3
- export * from './p-table-footer.directive';
4
- export * from './p-table-header.directive';
5
- export * from './p-table-ngx.directive';
6
- export * from './p-table.directive';
7
- export * from './p-table-custom-actions.directive';
8
- export * from './p-table-custom-row.directive';
9
- import { TableCustomFilterDirective } from './p-table-custom-filter.directive';
10
- import { TableCustomRowDirective } from './p-table-custom-row.directive';
11
- import { TableFooterDirective } from './p-table-footer.directive';
12
- import { TableHeaderDirective } from './p-table-header.directive';
13
- import { TableNgxDirective } from './p-table-ngx.directive';
14
- import { TableDirective } from './p-table.directive';
15
- export declare const TABLE_DIRECTIVES: (typeof TableCustomFilterDirective | typeof TableFooterDirective | typeof TableHeaderDirective | typeof TableNgxDirective | typeof TableDirective | typeof TableCustomRowDirective)[];
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class TableCustomActionsDirective {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<TableCustomActionsDirective, never>;
4
- static ɵdir: i0.ɵɵDirectiveDeclaration<TableCustomActionsDirective, "[p-table-custom-actions]", never, {}, {}, never, never, false, never>;
5
- }
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class TableCustomFilterDirective {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<TableCustomFilterDirective, never>;
4
- static ɵdir: i0.ɵɵDirectiveDeclaration<TableCustomFilterDirective, "[p-table-custom-filter]", never, {}, {}, never, never, false, never>;
5
- }
@@ -1,9 +0,0 @@
1
- import { TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TableCustomRowDirective {
4
- templateRef: TemplateRef<any>;
5
- variant: 'default' | 'secondary' | 'header';
6
- constructor(templateRef: TemplateRef<any>);
7
- static ɵfac: i0.ɵɵFactoryDeclaration<TableCustomRowDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<TableCustomRowDirective, "[p-table-custom-row]", never, { "variant": { "alias": "variant"; "required": false; }; }, {}, never, never, false, never>;
9
- }
@@ -1,5 +0,0 @@
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, never>;
5
- }
@@ -1,9 +0,0 @@
1
- import { BaseValueAccessor } from '../../../base';
2
- import * as i0 from "@angular/core";
3
- export declare class TableFooterDirective extends BaseValueAccessor {
4
- protected lastValue: any;
5
- writeValue(value: any): void;
6
- handleChange(value: number, type: 'page' | 'pageSize'): void;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<TableFooterDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<TableFooterDirective, "p-table-footer", never, {}, {}, never, never, false, never>;
9
- }
@@ -1,15 +0,0 @@
1
- import { QuickFilter } from '@paperless/core';
2
- import { BaseValueAccessor } from '../../../base';
3
- import * as i0 from "@angular/core";
4
- export interface TableHeaderDirectiveValue {
5
- query?: string;
6
- quickFilter?: QuickFilter;
7
- }
8
- export declare class TableHeaderDirective extends BaseValueAccessor {
9
- protected lastValue: TableHeaderDirectiveValue;
10
- writeValue(value: TableHeaderDirectiveValue): void;
11
- handleChange(value: string | QuickFilter, type: 'query' | 'quickFilter'): void;
12
- private _setActiveQuickFilter;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<TableHeaderDirective, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<TableHeaderDirective, "p-table-header", never, {}, {}, never, never, false, never>;
15
- }
@@ -1,27 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- import { QuickFilter } from '@paperless/core';
3
- import { BaseValueAccessor } from '../../../base';
4
- import { TableComponent } 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: TableComponent);
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
- private _checkResetButtons;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<TableNgxDirective, [null, { host: true; }]>;
26
- static ɵdir: i0.ɵɵDirectiveDeclaration<TableNgxDirective, "p-table-ngx", never, {}, {}, never, never, false, never>;
27
- }
@@ -1,20 +0,0 @@
1
- import { QuickFilter } from '@paperless/core';
2
- import { BaseValueAccessor } from '../../../base';
3
- import * as i0 from "@angular/core";
4
- export interface NGXTableDirectiveValue {
5
- query?: string;
6
- quickFilter?: QuickFilter;
7
- page?: number;
8
- pageSize?: number;
9
- selectedRows?: any[];
10
- }
11
- export declare class TableDirective extends BaseValueAccessor {
12
- protected lastValue: NGXTableDirectiveValue;
13
- writeValue(value: NGXTableDirectiveValue): void;
14
- registerOnChange(fn: (value: any) => void): void;
15
- registerOnTouched(fn: () => void): void;
16
- handleChange(value: number | string | QuickFilter, type: 'page' | 'pageSize' | 'query' | 'quickFilter' | 'selectedRows'): void;
17
- private _setActiveQuickFilter;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<TableDirective, never>;
19
- static ɵdir: i0.ɵɵDirectiveDeclaration<TableDirective, "p-table", never, {}, {}, never, never, false, never>;
20
- }
@@ -1,5 +0,0 @@
1
- export * from './base';
2
- export * from './components';
3
- export * from './directives';
4
- export * from './table.module';
5
- export * from './utils';
@@ -1,22 +0,0 @@
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 "./components/table-row-action/table-row-action.component";
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";
18
- export declare class TableModule {
19
- static ɵfac: i0.ɵɵFactoryDeclaration<TableModule, never>;
20
- static ɵmod: i0.ɵɵNgModuleDeclaration<TableModule, [typeof i1.TableComponent, typeof i2.TableCellComponent, typeof i3.TableColumnComponent, typeof i4.TableRowActionComponent, typeof i5.TableExtraHeaderComponent, 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.TableComponent, typeof i2.TableCellComponent, typeof i3.TableColumnComponent, typeof i4.TableRowActionComponent, typeof i5.TableExtraHeaderComponent, typeof i6.TableFooterDirective, typeof i7.TableHeaderDirective, typeof i8.TableDirective, typeof i9.TableNgxDirective, typeof i10.TableFilterModalDirective, typeof i11.TableCustomFilterDirective, typeof i12.TableCustomActionsDirective, typeof i13.TableCustomRowDirective]>;
21
- static ɵinj: i0.ɵɵInjectorDeclaration<TableModule>;
22
- }
@@ -1,8 +0,0 @@
1
- import { TableQuickFilter } from './base';
2
- export declare const createFormFilters: (values: Record<string, any>, quickFilters: TableQuickFilter[], quickFilterKey?: string) => {
3
- filters: {
4
- key: string;
5
- value: any;
6
- }[];
7
- quickFilter: TableQuickFilter | null | undefined;
8
- };
@@ -1,3 +0,0 @@
1
- export * from './toast-container/toast-container.component';
2
- import { ToastContainerComponent } from './toast-container/toast-container.component';
3
- export declare const TOAST_COMPONENTS: (typeof ToastContainerComponent)[];