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