@paperless/angular 2.0.1-beta.96 → 2.0.1-beta.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/modules/table/components/table/table.component.mjs +109 -5
- package/fesm2015/paperless-angular.mjs +110 -5
- package/fesm2015/paperless-angular.mjs.map +1 -1
- package/fesm2020/paperless-angular.mjs +107 -4
- package/fesm2020/paperless-angular.mjs.map +1 -1
- package/lib/modules/table/components/table/table.component.d.ts +23 -3
- package/package.json +1 -1
- package/paperless.css +156 -0
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
2
|
import { Params } from '@angular/router';
|
|
3
|
-
import { QuickFilter, RowClickEvent } from '@paperless/core';
|
|
3
|
+
import { QuickFilter, RowClickEvent, cn } from '@paperless/core';
|
|
4
4
|
import { IconVariant, IllustrationVariant } from '@paperless/core/dist/types/components';
|
|
5
5
|
import { BehaviorSubject } from 'rxjs';
|
|
6
6
|
import { TableColumn } from '../table-column/table-column.component';
|
|
7
7
|
import { AsyncItem, TableRowAction, TableRowActionQueryParams, TableRowActionRouterLink } from '../table-row-action/table-row-action.component';
|
|
8
|
+
import { TableCell } from '../table-cell/table-cell.component';
|
|
9
|
+
import { PTableRow } from 'projects/paperless/src/public-api';
|
|
8
10
|
import * as i0 from "@angular/core";
|
|
9
11
|
export declare class Table implements OnInit, OnChanges {
|
|
10
12
|
private _changeDetection;
|
|
@@ -221,6 +223,17 @@ export declare class Table implements OnInit, OnChanges {
|
|
|
221
223
|
emptyStateFilteredIllustration: IllustrationVariant;
|
|
222
224
|
emptyStateFilteredHeader: string;
|
|
223
225
|
emptyStateFilteredContent: string;
|
|
226
|
+
/**
|
|
227
|
+
* Wether to enable scrolling
|
|
228
|
+
*/
|
|
229
|
+
enableScroll: boolean;
|
|
230
|
+
tableRows: QueryList<ElementRef<PTableRow>>;
|
|
231
|
+
tableCells: QueryList<ElementRef<TableCell>>;
|
|
232
|
+
scrollContainer: ElementRef<HTMLDivElement>;
|
|
233
|
+
reachedScrollStart$: BehaviorSubject<boolean>;
|
|
234
|
+
reachedScrollEnd$: BehaviorSubject<boolean>;
|
|
235
|
+
private _totalWidth;
|
|
236
|
+
private _calculateColumnWidthsTimeout?;
|
|
224
237
|
/**
|
|
225
238
|
* Event whenever the empty state is clicked
|
|
226
239
|
*/
|
|
@@ -263,9 +276,11 @@ export declare class Table implements OnInit, OnChanges {
|
|
|
263
276
|
private _inputEnableRowSelection;
|
|
264
277
|
private _inputRowSelectionLimit;
|
|
265
278
|
footerHidden$: BehaviorSubject<boolean>;
|
|
279
|
+
cn: typeof cn;
|
|
266
280
|
constructor(_changeDetection: ChangeDetectorRef);
|
|
267
281
|
ngOnInit(): void;
|
|
268
282
|
ngOnChanges(changes: SimpleChanges): void;
|
|
283
|
+
ngAfterViewInit(): void;
|
|
269
284
|
onResize(): void;
|
|
270
285
|
keyDown({ key }: {
|
|
271
286
|
key: string;
|
|
@@ -282,6 +297,7 @@ export declare class Table implements OnInit, OnChanges {
|
|
|
282
297
|
onFilterModalReset(resetQuickFilter?: boolean): void;
|
|
283
298
|
emptyStateClicked(): void;
|
|
284
299
|
parseRowActionsRow(actions: TableRowAction[] | null, rowIndex: number): TableRowAction[];
|
|
300
|
+
onContainerXScroll(ev: any): void;
|
|
285
301
|
private _parseItems;
|
|
286
302
|
private _generateColumns;
|
|
287
303
|
_checkboxDisabled(item: any, rowIndex: number): boolean;
|
|
@@ -302,6 +318,10 @@ export declare class Table implements OnInit, OnChanges {
|
|
|
302
318
|
private _showFloatingMenu;
|
|
303
319
|
private _parseDefinitions;
|
|
304
320
|
private _parseDefinitionSizes;
|
|
321
|
+
private _calculateColumnWidths;
|
|
322
|
+
private _setRowsWidth;
|
|
323
|
+
private _resetScrollPosition;
|
|
324
|
+
private _calculateScrollPosition;
|
|
305
325
|
static ɵfac: i0.ɵɵFactoryDeclaration<Table, never>;
|
|
306
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Table, "p-table-ngx", never, { "items": "items"; "loading": "loading"; "headerLoading": "headerLoading"; "footerLoading": "footerLoading"; "amountOfLoadingRows": "amountOfLoadingRows"; "enableRowSelection": "enableRowSelection"; "rowSelectionLimit": "rowSelectionLimit"; "enableRowClick": "enableRowClick"; "selectedRows": "selectedRows"; "selectionKey": "selectionKey"; "canSelectKey": "canSelectKey"; "enableFloatingMenu": "enableFloatingMenu"; "floatingMenuAmountSelectedText": "floatingMenuAmountSelectedText"; "floatingMenuAmountSelectedTemplate": "floatingMenuAmountSelectedTemplate"; "enableHeader": "enableHeader"; "quickFilters": "quickFilters"; "activeQuickFilterIdentifier": "activeQuickFilterIdentifier"; "enableSearch": "enableSearch"; "query": "query"; "enableFilter": "enableFilter"; "enableFilterDesktop": "enableFilterDesktop"; "selectedFiltersAmount": "selectedFiltersAmount"; "filterButtonTemplate": "filterButtonTemplate"; "enableAction": "enableAction"; "actionButtonLoading": "actionButtonLoading"; "actionButtonIcon": "actionButtonIcon"; "actionButtonEnabled": "actionButtonEnabled"; "actionButtonText": "actionButtonText"; "actionButtonTemplate": "actionButtonTemplate"; "enableFooter": "enableFooter"; "enablePaginationSize": "enablePaginationSize"; "enablePaginationPages": "enablePaginationPages"; "enableExport": "enableExport"; "page": "page"; "total": "total"; "pageSize": "pageSize"; "pageSizeOptions": "pageSizeOptions"; "hideOnSinglePage": "hideOnSinglePage"; "emptyStateType": "emptyStateType"; "emptyStateIllustration": "emptyStateIllustration"; "emptyStateHeader": "emptyStateHeader"; "emptyStateContent": "emptyStateContent"; "emptyStateAction": "emptyStateAction"; "emptyStateActionIcon": "emptyStateActionIcon"; "enableEmptyStateAction": "enableEmptyStateAction"; "emptyStateFilteredIllustration": "emptyStateFilteredIllustration"; "emptyStateFilteredHeader": "emptyStateFilteredHeader"; "emptyStateFilteredContent": "emptyStateFilteredContent"; "shadow": "shadow"; "filterModalHeaderText": "filterModalHeaderText"; "filterModalSaveText": "filterModalSaveText"; "filterModalCancelText": "filterModalCancelText"; "filterModalResetText": "filterModalResetText"; "filterModalShowReset": "filterModalShowReset"; "filterModalShowResetMobile": "filterModalShowResetMobile"; }, { "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", "rowActions"], never, false, never>;
|
|
326
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Table, "p-table-ngx", never, { "items": "items"; "loading": "loading"; "headerLoading": "headerLoading"; "footerLoading": "footerLoading"; "amountOfLoadingRows": "amountOfLoadingRows"; "enableRowSelection": "enableRowSelection"; "rowSelectionLimit": "rowSelectionLimit"; "enableRowClick": "enableRowClick"; "selectedRows": "selectedRows"; "selectionKey": "selectionKey"; "canSelectKey": "canSelectKey"; "enableFloatingMenu": "enableFloatingMenu"; "floatingMenuAmountSelectedText": "floatingMenuAmountSelectedText"; "floatingMenuAmountSelectedTemplate": "floatingMenuAmountSelectedTemplate"; "enableHeader": "enableHeader"; "quickFilters": "quickFilters"; "activeQuickFilterIdentifier": "activeQuickFilterIdentifier"; "enableSearch": "enableSearch"; "query": "query"; "enableFilter": "enableFilter"; "enableFilterDesktop": "enableFilterDesktop"; "selectedFiltersAmount": "selectedFiltersAmount"; "filterButtonTemplate": "filterButtonTemplate"; "enableAction": "enableAction"; "actionButtonLoading": "actionButtonLoading"; "actionButtonIcon": "actionButtonIcon"; "actionButtonEnabled": "actionButtonEnabled"; "actionButtonText": "actionButtonText"; "actionButtonTemplate": "actionButtonTemplate"; "enableFooter": "enableFooter"; "enablePaginationSize": "enablePaginationSize"; "enablePaginationPages": "enablePaginationPages"; "enableExport": "enableExport"; "page": "page"; "total": "total"; "pageSize": "pageSize"; "pageSizeOptions": "pageSizeOptions"; "hideOnSinglePage": "hideOnSinglePage"; "emptyStateType": "emptyStateType"; "emptyStateIllustration": "emptyStateIllustration"; "emptyStateHeader": "emptyStateHeader"; "emptyStateContent": "emptyStateContent"; "emptyStateAction": "emptyStateAction"; "emptyStateActionIcon": "emptyStateActionIcon"; "enableEmptyStateAction": "enableEmptyStateAction"; "emptyStateFilteredIllustration": "emptyStateFilteredIllustration"; "emptyStateFilteredHeader": "emptyStateFilteredHeader"; "emptyStateFilteredContent": "emptyStateFilteredContent"; "enableScroll": "enableScroll"; "shadow": "shadow"; "filterModalHeaderText": "filterModalHeaderText"; "filterModalSaveText": "filterModalSaveText"; "filterModalCancelText": "filterModalCancelText"; "filterModalResetText": "filterModalResetText"; "filterModalShowReset": "filterModalShowReset"; "filterModalShowResetMobile": "filterModalShowResetMobile"; }, { "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", "rowActions"], never, false, never>;
|
|
307
327
|
}
|
package/package.json
CHANGED
package/paperless.css
CHANGED
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
position: static !important
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
.relative {
|
|
10
|
+
position: relative !important
|
|
11
|
+
}
|
|
12
|
+
|
|
9
13
|
.sticky {
|
|
10
14
|
position: sticky !important
|
|
11
15
|
}
|
|
@@ -160,6 +164,10 @@
|
|
|
160
164
|
flex: 1 1 0% !important
|
|
161
165
|
}
|
|
162
166
|
|
|
167
|
+
.flex-shrink-0 {
|
|
168
|
+
flex-shrink: 0 !important
|
|
169
|
+
}
|
|
170
|
+
|
|
163
171
|
.transform {
|
|
164
172
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important
|
|
165
173
|
}
|
|
@@ -252,6 +260,10 @@
|
|
|
252
260
|
overflow: hidden !important
|
|
253
261
|
}
|
|
254
262
|
|
|
263
|
+
.overflow-x-auto {
|
|
264
|
+
overflow-x: auto !important
|
|
265
|
+
}
|
|
266
|
+
|
|
255
267
|
.rounded {
|
|
256
268
|
border-radius: 0.25rem !important
|
|
257
269
|
}
|
|
@@ -281,6 +293,10 @@
|
|
|
281
293
|
opacity: 0 !important
|
|
282
294
|
}
|
|
283
295
|
|
|
296
|
+
.opacity-100 {
|
|
297
|
+
opacity: 1 !important
|
|
298
|
+
}
|
|
299
|
+
|
|
284
300
|
.filter {
|
|
285
301
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow) !important
|
|
286
302
|
}
|
|
@@ -323,6 +339,146 @@
|
|
|
323
339
|
animation-timing-function: cubic-bezier(0, 0, 0.2, 1) !important
|
|
324
340
|
}
|
|
325
341
|
|
|
342
|
+
.before\:absolute::before {
|
|
343
|
+
content: var(--tw-content) !important;
|
|
344
|
+
position: absolute !important
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.before\:left-0::before {
|
|
348
|
+
content: var(--tw-content) !important;
|
|
349
|
+
left: 0px !important
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.before\:top-0::before {
|
|
353
|
+
content: var(--tw-content) !important;
|
|
354
|
+
top: 0px !important
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.before\:z-\[1\]::before {
|
|
358
|
+
content: var(--tw-content) !important;
|
|
359
|
+
z-index: 1 !important
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.before\:h-full::before {
|
|
363
|
+
content: var(--tw-content) !important;
|
|
364
|
+
height: 100% !important
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.before\:w-\[10\%\]::before {
|
|
368
|
+
content: var(--tw-content) !important;
|
|
369
|
+
width: 10% !important
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.before\:bg-gradient-to-r::before {
|
|
373
|
+
content: var(--tw-content) !important;
|
|
374
|
+
background-image: linear-gradient(to right, var(--tw-gradient-stops)) !important
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.before\:from-white::before {
|
|
378
|
+
content: var(--tw-content) !important;
|
|
379
|
+
--tw-gradient-from: #FFFFFF var(--tw-gradient-from-position) !important;
|
|
380
|
+
--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position) !important;
|
|
381
|
+
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.before\:via-white\/80::before {
|
|
385
|
+
content: var(--tw-content) !important;
|
|
386
|
+
--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position) !important;
|
|
387
|
+
--tw-gradient-stops: var(--tw-gradient-from), rgb(255 255 255 / 0.8) var(--tw-gradient-via-position), var(--tw-gradient-to) !important
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.before\:to-transparent::before {
|
|
391
|
+
content: var(--tw-content) !important;
|
|
392
|
+
--tw-gradient-to: transparent var(--tw-gradient-to-position) !important
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.before\:opacity-0::before {
|
|
396
|
+
content: var(--tw-content) !important;
|
|
397
|
+
opacity: 0 !important
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.before\:opacity-100::before {
|
|
401
|
+
content: var(--tw-content) !important;
|
|
402
|
+
opacity: 1 !important
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.before\:transition-opacity::before {
|
|
406
|
+
content: var(--tw-content) !important;
|
|
407
|
+
transition-property: opacity !important;
|
|
408
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
|
|
409
|
+
transition-duration: 150ms !important
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.after\:absolute::after {
|
|
413
|
+
content: var(--tw-content) !important;
|
|
414
|
+
position: absolute !important
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.after\:right-0::after {
|
|
418
|
+
content: var(--tw-content) !important;
|
|
419
|
+
right: 0px !important
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.after\:top-0::after {
|
|
423
|
+
content: var(--tw-content) !important;
|
|
424
|
+
top: 0px !important
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.after\:z-\[0\]::after {
|
|
428
|
+
content: var(--tw-content) !important;
|
|
429
|
+
z-index: 0 !important
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.after\:h-full::after {
|
|
433
|
+
content: var(--tw-content) !important;
|
|
434
|
+
height: 100% !important
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.after\:w-\[10\%\]::after {
|
|
438
|
+
content: var(--tw-content) !important;
|
|
439
|
+
width: 10% !important
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.after\:bg-gradient-to-l::after {
|
|
443
|
+
content: var(--tw-content) !important;
|
|
444
|
+
background-image: linear-gradient(to left, var(--tw-gradient-stops)) !important
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.after\:from-white::after {
|
|
448
|
+
content: var(--tw-content) !important;
|
|
449
|
+
--tw-gradient-from: #FFFFFF var(--tw-gradient-from-position) !important;
|
|
450
|
+
--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position) !important;
|
|
451
|
+
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.after\:via-white\/80::after {
|
|
455
|
+
content: var(--tw-content) !important;
|
|
456
|
+
--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position) !important;
|
|
457
|
+
--tw-gradient-stops: var(--tw-gradient-from), rgb(255 255 255 / 0.8) var(--tw-gradient-via-position), var(--tw-gradient-to) !important
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.after\:to-transparent::after {
|
|
461
|
+
content: var(--tw-content) !important;
|
|
462
|
+
--tw-gradient-to: transparent var(--tw-gradient-to-position) !important
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.after\:opacity-0::after {
|
|
466
|
+
content: var(--tw-content) !important;
|
|
467
|
+
opacity: 0 !important
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.after\:opacity-100::after {
|
|
471
|
+
content: var(--tw-content) !important;
|
|
472
|
+
opacity: 1 !important
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.after\:transition-opacity::after {
|
|
476
|
+
content: var(--tw-content) !important;
|
|
477
|
+
transition-property: opacity !important;
|
|
478
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
|
|
479
|
+
transition-duration: 150ms !important
|
|
480
|
+
}
|
|
481
|
+
|
|
326
482
|
.group:hover .group-hover\:flex {
|
|
327
483
|
display: flex !important
|
|
328
484
|
}
|