@paperless/angular 2.16.0 → 2.16.1

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.
@@ -1,17 +1,17 @@
1
1
  import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
2
2
  import { Params } from '@angular/router';
3
- import { QuickFilter, RowClickEvent, cn } from '@paperless/core';
3
+ import { cn, QuickFilter, RowClickEvent } from '@paperless/core';
4
4
  import { IconVariant, IllustrationVariant } from '@paperless/core/dist/types/components';
5
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';
6
9
  import { TableColumn } from '../table-column/table-column.component';
7
10
  import { TableExtraHeader } from '../table-extra-header/table-extra-header.component';
8
11
  import { AsyncItem, TableRowAction, TableRowActionQueryParams, TableRowActionRouterLink } from '../table-row-action/table-row-action.component';
9
- import { TableCell } from '../table-cell/table-cell.component';
10
- import { PTableRow } from '../../../../stencil/components';
11
- import { TableCustomRowDirective } from '../../directives/p-table-custom-row.directive';
12
12
  import * as i0 from "@angular/core";
13
13
  export declare class Table implements OnInit, OnChanges {
14
- private _changeDetection;
14
+ private _cd;
15
15
  className: string;
16
16
  theme: import("@paperless/core").StateThemeOption;
17
17
  /**
@@ -281,9 +281,10 @@ export declare class Table implements OnInit, OnChanges {
281
281
  private _resizeTimeout;
282
282
  private _inputEnableRowSelection;
283
283
  private _inputRowSelectionLimit;
284
+ private _themeDebounce?;
284
285
  footerHidden$: BehaviorSubject<boolean>;
285
286
  cn: typeof cn;
286
- constructor(_changeDetection: ChangeDetectorRef);
287
+ constructor(_cd: ChangeDetectorRef);
287
288
  ngOnInit(): void;
288
289
  ngOnChanges(changes: SimpleChanges): void;
289
290
  ngAfterViewInit(): void;
@@ -330,6 +331,7 @@ export declare class Table implements OnInit, OnChanges {
330
331
  private _setRowsWidth;
331
332
  private _resetScrollPosition;
332
333
  private _calculateScrollPosition;
334
+ private _checkTheme;
333
335
  static ɵfac: i0.ɵɵFactoryDeclaration<Table, never>;
334
336
  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", "extraHeaderDefinitions", "rowActions", "customRows"], never, false, never>;
335
337
  }
@@ -1,8 +1,7 @@
1
- import { OnInit, TemplateRef } from '@angular/core';
1
+ import { TemplateRef } from '@angular/core';
2
2
  import { cn, TableDefinitionData } from '@paperless/core';
3
3
  import * as i0 from "@angular/core";
4
- export declare class TableCell implements OnInit {
5
- theme: import("@paperless/core").StateThemeOption;
4
+ export declare class TableCell {
6
5
  /**
7
6
  * The variant of the column
8
7
  */
@@ -48,7 +47,6 @@ export declare class TableCell implements OnInit {
48
47
  get data(): TableDefinitionData | {
49
48
  value: string;
50
49
  };
51
- ngOnInit(): void;
52
50
  static ɵfac: i0.ɵɵFactoryDeclaration<TableCell, never>;
53
51
  static ɵcmp: i0.ɵɵComponentDeclaration<TableCell, "p-table-cell-ngx", never, { "variant": "variant"; "index": "index"; "rowIndex": "rowIndex"; "definition": "definition"; "item": "item"; "value": "value"; "checkbox": "checkbox"; "checkboxOffset": "checkboxOffset"; "template": "template"; "scrollable": "scrollable"; }, {}, never, ["*"], false, never>;
54
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paperless/angular",
3
- "version": "2.16.0",
3
+ "version": "2.16.1",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "^13.3.0 || ^14.0.0 || ^15.0.0 || ^17.0.0",
6
6
  "@angular/common": "^13.3.0 || ^14.0.0 || ^15.0.0",
package/paperless.css CHANGED
@@ -289,6 +289,12 @@
289
289
  background-image: linear-gradient(to right, var(--tw-gradient-stops)) !important
290
290
  }
291
291
 
292
+ .from-off-white-300 {
293
+ --tw-gradient-from: #F8F7F4 var(--tw-gradient-from-position) !important;
294
+ --tw-gradient-to: rgb(248 247 244 / 0) var(--tw-gradient-to-position) !important;
295
+ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important
296
+ }
297
+
292
298
  .from-white {
293
299
  --tw-gradient-from: #FFFFFF var(--tw-gradient-from-position) !important;
294
300
  --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position) !important;
@@ -982,6 +988,12 @@
982
988
  background-color: rgb(35 41 52 / var(--tw-bg-opacity, 1)) !important
983
989
  }
984
990
 
991
+ .dark\:from-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *) {
992
+ --tw-gradient-from: #464B54 var(--tw-gradient-from-position) !important;
993
+ --tw-gradient-to: rgb(70 75 84 / 0) var(--tw-gradient-to-position) !important;
994
+ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important
995
+ }
996
+
985
997
  .dark\:from-hurricane-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *) {
986
998
  --tw-gradient-from: #232934 var(--tw-gradient-from-position) !important;
987
999
  --tw-gradient-to: rgb(35 41 52 / 0) var(--tw-gradient-to-position) !important;
@@ -1029,6 +1041,12 @@
1029
1041
  background-color: rgb(35 41 52 / var(--tw-bg-opacity, 1)) !important
1030
1042
  }
1031
1043
 
1044
+ .dark\:from-hurricane-400:where([data-theme=dark],[data-theme=dark] *) {
1045
+ --tw-gradient-from: #464B54 var(--tw-gradient-from-position) !important;
1046
+ --tw-gradient-to: rgb(70 75 84 / 0) var(--tw-gradient-to-position) !important;
1047
+ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important
1048
+ }
1049
+
1032
1050
  .dark\:from-hurricane-700:where([data-theme=dark],[data-theme=dark] *) {
1033
1051
  --tw-gradient-from: #232934 var(--tw-gradient-from-position) !important;
1034
1052
  --tw-gradient-to: rgb(35 41 52 / 0) var(--tw-gradient-to-position) !important;