@paperless/angular 0.1.0-alpha.196 → 0.1.0-alpha.198
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/components/table/table.component.mjs +2 -2
- package/esm2020/lib/components/table-cell/table-cell.component.mjs +2 -2
- package/esm2020/lib/components/table-column/table-column.component.mjs +1 -2
- package/esm2020/lib/directives/index.mjs +4 -1
- package/esm2020/lib/directives/p-select.directive.mjs +1 -3
- package/esm2020/lib/directives/p-table-ngx.directive.mjs +88 -0
- package/esm2020/lib/directives/p-table.directive.mjs +1 -1
- package/esm2020/lib/paperless.module.mjs +4 -3
- package/fesm2015/paperless-angular.mjs +90 -10
- package/fesm2015/paperless-angular.mjs.map +1 -1
- package/fesm2020/paperless-angular.mjs +91 -10
- package/fesm2020/paperless-angular.mjs.map +1 -1
- package/lib/directives/index.d.ts +3 -1
- package/lib/directives/p-table-ngx.directive.d.ts +24 -0
- package/lib/directives/p-table.directive.d.ts +3 -3
- package/lib/paperless.module.d.ts +4 -3
- package/package.json +1 -1
|
@@ -3,6 +3,8 @@ export * from './p-pagination.directive';
|
|
|
3
3
|
export * from './p-select.directive';
|
|
4
4
|
export * from './p-table-footer.directive';
|
|
5
5
|
export * from './p-table-header.directive';
|
|
6
|
+
export * from './p-table-ngx.directive';
|
|
6
7
|
export * from './p-table.directive';
|
|
7
8
|
import { SelectDirective } from './p-select.directive';
|
|
8
|
-
|
|
9
|
+
import { TableNgxDirective } from './p-table-ngx.directive';
|
|
10
|
+
export declare const CUSTOM_DIRECTIVES: (typeof SelectDirective | typeof TableNgxDirective)[];
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
page?: number;
|
|
10
|
+
pageSize?: number;
|
|
11
|
+
selectedRows?: any[];
|
|
12
|
+
}
|
|
13
|
+
export declare class TableNgxDirective extends BaseValueAccessor {
|
|
14
|
+
private _base;
|
|
15
|
+
protected lastValue: TableDirectiveValue;
|
|
16
|
+
constructor(el: ElementRef, _base: TableComponent);
|
|
17
|
+
writeValue(value: TableDirectiveValue): void;
|
|
18
|
+
registerOnChange(fn: (value: any) => void): void;
|
|
19
|
+
registerOnTouched(fn: () => void): void;
|
|
20
|
+
handleChange(value: number | string | QuickFilter, type: 'page' | 'pageSize' | 'query' | 'quickFilter' | 'selectedRows'): void;
|
|
21
|
+
private _setActiveQuickFilter;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableNgxDirective, [null, { host: true; }]>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TableNgxDirective, "p-table-ngx", never, {}, {}, never, never, false>;
|
|
24
|
+
}
|
|
@@ -2,7 +2,7 @@ import { ElementRef } from '@angular/core';
|
|
|
2
2
|
import { QuickFilter } from '@paperless/core';
|
|
3
3
|
import { BaseValueAccessor } from '../base';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export interface
|
|
5
|
+
export interface NGXTableDirectiveValue {
|
|
6
6
|
query?: string;
|
|
7
7
|
quickFilter?: QuickFilter;
|
|
8
8
|
page?: number;
|
|
@@ -10,9 +10,9 @@ export interface TableDirectiveValue {
|
|
|
10
10
|
selectedRows?: any[];
|
|
11
11
|
}
|
|
12
12
|
export declare class TableDirective extends BaseValueAccessor {
|
|
13
|
-
protected lastValue:
|
|
13
|
+
protected lastValue: NGXTableDirectiveValue;
|
|
14
14
|
constructor(el: ElementRef);
|
|
15
|
-
writeValue(value:
|
|
15
|
+
writeValue(value: NGXTableDirectiveValue): void;
|
|
16
16
|
registerOnChange(fn: (value: any) => void): void;
|
|
17
17
|
registerOnTouched(fn: () => void): void;
|
|
18
18
|
handleChange(value: number | string | QuickFilter, type: 'page' | 'pageSize' | 'query' | 'quickFilter' | 'selectedRows'): void;
|
|
@@ -8,10 +8,11 @@ import * as i6 from "./directives/p-page-size-select.directive";
|
|
|
8
8
|
import * as i7 from "./directives/p-table-footer.directive";
|
|
9
9
|
import * as i8 from "./directives/p-table-header.directive";
|
|
10
10
|
import * as i9 from "./directives/p-table.directive";
|
|
11
|
-
import * as i10 from "./directives/p-
|
|
12
|
-
import * as i11 from "
|
|
11
|
+
import * as i10 from "./directives/p-table-ngx.directive";
|
|
12
|
+
import * as i11 from "./directives/p-select.directive";
|
|
13
|
+
import * as i12 from "@angular/common";
|
|
13
14
|
export declare class PaperlessModule {
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaperlessModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PaperlessModule, [typeof i1.PAccordion, typeof i1.PAvatar, typeof i1.PAvatarGroup, typeof i1.PButton, typeof i1.PCardBody, typeof i1.PCardContainer, typeof i1.PCardHeader, typeof i1.PContentSlider, typeof i1.PCounter, typeof i1.PDivider, typeof i1.PDropdown, typeof i1.PDropdownMenuContainer, typeof i1.PDropdownMenuItem, typeof i1.PHelper, typeof i1.PIcon, typeof i1.PIllustration, typeof i1.PInfoPanel, typeof i1.PInputGroup, typeof i1.PLabel, typeof i1.PLayout, typeof i1.PLoader, typeof i1.PModal, typeof i1.PModalBackdrop, typeof i1.PModalBody, typeof i1.PModalContainer, typeof i1.PModalFooter, typeof i1.PModalHeader, typeof i1.PNavbar, typeof i1.PNavigationItem, typeof i1.PPageSizeSelect, typeof i1.PPagination, typeof i1.PPaginationItem, typeof i1.PProfile, typeof i1.PSegmentContainer, typeof i1.PSegmentItem, typeof i1.PSelect, typeof i1.PSliderIndicator, typeof i1.PStatus, typeof i1.PStepper, typeof i1.PStepperItem, typeof i1.PStepperLine, typeof i1.PTabGroup, typeof i1.PTabItem, typeof i1.PTableContainer, typeof i1.PTableFooter, typeof i1.PTableHeader, typeof i1.PTableRow, typeof i1.PToastContainer, typeof i1.PTooltip, typeof i2.TableComponent, typeof i3.TableColumn, typeof i4.TableCell, typeof i5.PaginationDirective, typeof i6.PageSizeSelectDirective, typeof i7.TableFooterDirective, typeof i8.TableHeaderDirective, typeof i9.TableDirective, typeof i10.SelectDirective], [typeof
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PaperlessModule, [typeof i1.PAccordion, typeof i1.PAvatar, typeof i1.PAvatarGroup, typeof i1.PButton, typeof i1.PCardBody, typeof i1.PCardContainer, typeof i1.PCardHeader, typeof i1.PContentSlider, typeof i1.PCounter, typeof i1.PDivider, typeof i1.PDropdown, typeof i1.PDropdownMenuContainer, typeof i1.PDropdownMenuItem, typeof i1.PHelper, typeof i1.PIcon, typeof i1.PIllustration, typeof i1.PInfoPanel, typeof i1.PInputGroup, typeof i1.PLabel, typeof i1.PLayout, typeof i1.PLoader, typeof i1.PModal, typeof i1.PModalBackdrop, typeof i1.PModalBody, typeof i1.PModalContainer, typeof i1.PModalFooter, typeof i1.PModalHeader, typeof i1.PNavbar, typeof i1.PNavigationItem, typeof i1.PPageSizeSelect, typeof i1.PPagination, typeof i1.PPaginationItem, typeof i1.PProfile, typeof i1.PSegmentContainer, typeof i1.PSegmentItem, typeof i1.PSelect, typeof i1.PSliderIndicator, typeof i1.PStatus, typeof i1.PStepper, typeof i1.PStepperItem, typeof i1.PStepperLine, typeof i1.PTabGroup, typeof i1.PTabItem, typeof i1.PTableContainer, typeof i1.PTableFooter, typeof i1.PTableHeader, typeof i1.PTableRow, typeof i1.PToastContainer, typeof i1.PTooltip, typeof i2.TableComponent, typeof i3.TableColumn, typeof i4.TableCell, typeof i5.PaginationDirective, typeof i6.PageSizeSelectDirective, typeof i7.TableFooterDirective, typeof i8.TableHeaderDirective, typeof i9.TableDirective, typeof i10.TableNgxDirective, typeof i11.SelectDirective], [typeof i12.CommonModule], [typeof i1.PAccordion, typeof i1.PAvatar, typeof i1.PAvatarGroup, typeof i1.PButton, typeof i1.PCardBody, typeof i1.PCardContainer, typeof i1.PCardHeader, typeof i1.PContentSlider, typeof i1.PCounter, typeof i1.PDivider, typeof i1.PDropdown, typeof i1.PDropdownMenuContainer, typeof i1.PDropdownMenuItem, typeof i1.PHelper, typeof i1.PIcon, typeof i1.PIllustration, typeof i1.PInfoPanel, typeof i1.PInputGroup, typeof i1.PLabel, typeof i1.PLayout, typeof i1.PLoader, typeof i1.PModal, typeof i1.PModalBackdrop, typeof i1.PModalBody, typeof i1.PModalContainer, typeof i1.PModalFooter, typeof i1.PModalHeader, typeof i1.PNavbar, typeof i1.PNavigationItem, typeof i1.PPageSizeSelect, typeof i1.PPagination, typeof i1.PPaginationItem, typeof i1.PProfile, typeof i1.PSegmentContainer, typeof i1.PSegmentItem, typeof i1.PSelect, typeof i1.PSliderIndicator, typeof i1.PStatus, typeof i1.PStepper, typeof i1.PStepperItem, typeof i1.PStepperLine, typeof i1.PTabGroup, typeof i1.PTabItem, typeof i1.PTableContainer, typeof i1.PTableFooter, typeof i1.PTableHeader, typeof i1.PTableRow, typeof i1.PToastContainer, typeof i1.PTooltip, typeof i2.TableComponent, typeof i3.TableColumn, typeof i4.TableCell, typeof i5.PaginationDirective, typeof i6.PageSizeSelectDirective, typeof i7.TableFooterDirective, typeof i8.TableHeaderDirective, typeof i9.TableDirective, typeof i10.TableNgxDirective, typeof i11.SelectDirective]>;
|
|
16
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<PaperlessModule>;
|
|
17
18
|
}
|