@paperless/core 1.42.4 → 1.43.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.
- package/CHANGELOG.md +25 -0
- package/dist/build/index.esm.js +1 -1
- package/dist/build/index.esm.js.map +1 -1
- package/dist/build/p-15f63841.js +2 -0
- package/dist/build/p-15f63841.js.map +1 -0
- package/dist/build/p-205dece4.entry.js +2 -0
- package/dist/build/p-205dece4.entry.js.map +1 -0
- package/dist/build/p-5aaf5bc2.entry.js +2 -0
- package/dist/build/p-5aaf5bc2.entry.js.map +1 -0
- package/dist/build/{p-1079ffc6.entry.js → p-e7826192.entry.js} +2 -2
- package/dist/build/p-e7826192.entry.js.map +1 -0
- package/dist/build/paperless.esm.js +1 -1
- package/dist/build/paperless.esm.js.map +1 -1
- package/dist/cjs/index-1fde8b14.js +4 -0
- package/dist/cjs/index.cjs.js +12 -52
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-floating-menu-container_8.cjs.entry.js +21 -8
- package/dist/cjs/p-floating-menu-container_8.cjs.entry.js.map +1 -1
- package/dist/cjs/p-table-row-action.cjs.entry.js +26 -0
- package/dist/cjs/p-table-row-action.cjs.entry.js.map +1 -0
- package/dist/cjs/p-table.cjs.entry.js +100 -38
- package/dist/cjs/p-table.cjs.entry.js.map +1 -1
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/cjs/screens-84f01214.js +56 -0
- package/dist/cjs/screens-84f01214.js.map +1 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/atoms/floating-menu-item/floating-menu-item.component.css +1 -1
- package/dist/collection/components/atoms/floating-menu-item/floating-menu-item.component.js +19 -0
- package/dist/collection/components/atoms/floating-menu-item/floating-menu-item.component.js.map +1 -1
- package/dist/collection/components/helpers/table-row-action/table-row-action.component.js +182 -0
- package/dist/collection/components/helpers/table-row-action/table-row-action.component.js.map +1 -0
- package/dist/collection/components/molecules/table-cell/table-cell.component.css +1 -1
- package/dist/collection/components/molecules/table-cell/table-cell.component.js +37 -7
- package/dist/collection/components/molecules/table-cell/table-cell.component.js.map +1 -1
- package/dist/collection/components/molecules/table-row/table-row.component.js +1 -1
- package/dist/collection/components/molecules/table-row/table-row.component.js.map +1 -1
- package/dist/collection/components/organisms/table/table.component.css +1 -1
- package/dist/collection/components/organisms/table/table.component.js +115 -38
- package/dist/collection/components/organisms/table/table.component.js.map +1 -1
- package/dist/components/floating-menu-item.component.js +4 -2
- package/dist/components/floating-menu-item.component.js.map +1 -1
- package/dist/components/index.js +3 -42
- package/dist/components/index.js.map +1 -1
- package/dist/components/p-table-row-action.d.ts +11 -0
- package/dist/components/p-table-row-action.js +48 -0
- package/dist/components/p-table-row-action.js.map +1 -0
- package/dist/components/p-table.js +110 -41
- package/dist/components/p-table.js.map +1 -1
- package/dist/components/screens.js +44 -0
- package/dist/components/screens.js.map +1 -0
- package/dist/components/table-cell.component.js +19 -6
- package/dist/components/table-cell.component.js.map +1 -1
- package/dist/components/table-row.component.js +1 -1
- package/dist/components/table-row.component.js.map +1 -1
- package/dist/esm/index-7b917f6b.js +4 -0
- package/dist/esm/index.js +3 -42
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-floating-menu-container_8.entry.js +21 -8
- package/dist/esm/p-floating-menu-container_8.entry.js.map +1 -1
- package/dist/esm/p-table-row-action.entry.js +22 -0
- package/dist/esm/p-table-row-action.entry.js.map +1 -0
- package/dist/esm/p-table.entry.js +100 -38
- package/dist/esm/p-table.entry.js.map +1 -1
- package/dist/esm/paperless.js +1 -1
- package/dist/esm/screens-64bd8af0.js +44 -0
- package/dist/esm/screens-64bd8af0.js.map +1 -0
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -1
- package/dist/paperless/index.esm.js.map +1 -1
- package/dist/paperless/p-15f63841.js +2 -0
- package/dist/paperless/p-15f63841.js.map +1 -0
- package/dist/paperless/p-205dece4.entry.js +2 -0
- package/dist/paperless/p-205dece4.entry.js.map +1 -0
- package/dist/paperless/p-5aaf5bc2.entry.js +2 -0
- package/dist/paperless/p-5aaf5bc2.entry.js.map +1 -0
- package/dist/paperless/{p-1079ffc6.entry.js → p-e7826192.entry.js} +2 -2
- package/dist/paperless/p-e7826192.entry.js.map +1 -0
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/paperless/paperless.esm.js.map +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/atoms/floating-menu-item/floating-menu-item.component.d.ts +4 -0
- package/dist/types/components/helpers/table-row-action/table-row-action.component.d.ts +43 -0
- package/dist/types/components/molecules/table-cell/table-cell.component.d.ts +6 -1
- package/dist/types/components/organisms/table/table.component.d.ts +6 -1
- package/dist/types/components.d.ts +99 -4
- package/hydrate/index.js +197 -50
- package/package.json +1 -1
- package/dist/build/p-1079ffc6.entry.js.map +0 -1
- package/dist/build/p-a9ebacc8.entry.js +0 -2
- package/dist/build/p-a9ebacc8.entry.js.map +0 -1
- package/dist/paperless/p-1079ffc6.entry.js.map +0 -1
- package/dist/paperless/p-a9ebacc8.entry.js +0 -2
- package/dist/paperless/p-a9ebacc8.entry.js.map +0 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { IconFlipOptions, IconVariant, RotateOptions } from '../../../components';
|
|
2
|
+
export type TableRowActionFunc = {
|
|
3
|
+
(item: any, multi: false): void;
|
|
4
|
+
(item: any[], multi: true): void;
|
|
5
|
+
};
|
|
6
|
+
export declare class TableRowAction {
|
|
7
|
+
/**
|
|
8
|
+
* The type of action
|
|
9
|
+
* mutli = Only multi select action
|
|
10
|
+
* single = Only an action on the row
|
|
11
|
+
* both = Action on both locations
|
|
12
|
+
*/
|
|
13
|
+
type: 'both' | 'single' | 'multi';
|
|
14
|
+
/**
|
|
15
|
+
* Icon to show on the button
|
|
16
|
+
*/
|
|
17
|
+
icon: IconVariant;
|
|
18
|
+
/**
|
|
19
|
+
* Wether the button is icon only
|
|
20
|
+
*/
|
|
21
|
+
iconOnly: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Icon flip
|
|
24
|
+
*/
|
|
25
|
+
iconFlip: IconFlipOptions;
|
|
26
|
+
/**
|
|
27
|
+
* Icon rotate
|
|
28
|
+
*/
|
|
29
|
+
iconRotate: RotateOptions;
|
|
30
|
+
/**
|
|
31
|
+
* Label of the action
|
|
32
|
+
*/
|
|
33
|
+
label: string;
|
|
34
|
+
/**
|
|
35
|
+
* The action to trigger when used
|
|
36
|
+
*/
|
|
37
|
+
action: TableRowActionFunc;
|
|
38
|
+
/**
|
|
39
|
+
* Wether the action is disabled
|
|
40
|
+
*/
|
|
41
|
+
disabled: boolean;
|
|
42
|
+
render(): void;
|
|
43
|
+
}
|
|
@@ -4,7 +4,7 @@ export declare class TableCell {
|
|
|
4
4
|
/**
|
|
5
5
|
* The variant of the column
|
|
6
6
|
*/
|
|
7
|
-
variant: 'default' | 'loading' | 'header';
|
|
7
|
+
variant: 'default' | 'loading' | 'header' | 'actions';
|
|
8
8
|
/**
|
|
9
9
|
* The index of the column
|
|
10
10
|
*/
|
|
@@ -25,6 +25,10 @@ export declare class TableCell {
|
|
|
25
25
|
* The value of the column
|
|
26
26
|
*/
|
|
27
27
|
value: any;
|
|
28
|
+
/**
|
|
29
|
+
* Wether the table has actions
|
|
30
|
+
*/
|
|
31
|
+
tableHasActions: boolean;
|
|
28
32
|
/**
|
|
29
33
|
* The checkbox to show
|
|
30
34
|
*/
|
|
@@ -37,6 +41,7 @@ export declare class TableCell {
|
|
|
37
41
|
value: string;
|
|
38
42
|
};
|
|
39
43
|
render(): any;
|
|
44
|
+
private _getContent;
|
|
40
45
|
private _getColumnClasses;
|
|
41
46
|
private _getSizes;
|
|
42
47
|
}
|
|
@@ -223,10 +223,14 @@ export declare class Table {
|
|
|
223
223
|
private _locales;
|
|
224
224
|
private _columns;
|
|
225
225
|
private _items;
|
|
226
|
+
private _enableRowSelection;
|
|
227
|
+
private _rowSelectionLimit;
|
|
228
|
+
private _rowActionsFloating;
|
|
229
|
+
private _rowActionsRow;
|
|
226
230
|
private _ctrlDown;
|
|
227
231
|
private _hasCustomFilterSlot;
|
|
228
|
-
private _hasFloatingMenuItems;
|
|
229
232
|
private _floatingMenuShown;
|
|
233
|
+
private _resizeTimeout;
|
|
230
234
|
componentWillLoad(): void;
|
|
231
235
|
componentDidRender(): void;
|
|
232
236
|
render(): any;
|
|
@@ -240,6 +244,7 @@ export declare class Table {
|
|
|
240
244
|
}): void;
|
|
241
245
|
visibilityChange(): void;
|
|
242
246
|
private _parseItems;
|
|
247
|
+
private _setRowSelectionData;
|
|
243
248
|
private _generateColumns;
|
|
244
249
|
private _getHeader;
|
|
245
250
|
private _getRows;
|
|
@@ -15,10 +15,11 @@ import { Observable } from "rxjs";
|
|
|
15
15
|
import { templateFunc } from "./components/molecules/page-size-select/page-size-select.component";
|
|
16
16
|
import { amountSelectedTemplateFunc, templateFunc as templateFunc1 } from "./components/organisms/table/table.component";
|
|
17
17
|
import { QuickFilter, RowClickEvent, TableColumnSizes } from "./types/table";
|
|
18
|
-
import { IconVariant as IconVariant2 } from "./components";
|
|
18
|
+
import { IconFlipOptions as IconFlipOptions2, IconVariant as IconVariant2, RotateOptions as RotateOptions2 } from "./components";
|
|
19
19
|
import { buttonTemplateFunc } from "./components/molecules/table-header/table-header.component";
|
|
20
20
|
import { TableColumn } from "./components/helpers/table-column/table-column.component";
|
|
21
21
|
import { buttonTemplateFunc as buttonTemplateFunc1, templateFunc as templateFunc2 } from "./components/molecules/table-header/table-header.component";
|
|
22
|
+
import { TableRowActionFunc } from "./components/helpers/table-row-action/table-row-action.component";
|
|
22
23
|
export { IconFlipOptions, IconVariant } from "./components/atoms/icon/icon.component";
|
|
23
24
|
export { RotateOptions, TextSizeOptions } from "./types/tailwind";
|
|
24
25
|
export { Placement, Strategy } from "@floating-ui/dom";
|
|
@@ -29,10 +30,11 @@ export { Observable } from "rxjs";
|
|
|
29
30
|
export { templateFunc } from "./components/molecules/page-size-select/page-size-select.component";
|
|
30
31
|
export { amountSelectedTemplateFunc, templateFunc as templateFunc1 } from "./components/organisms/table/table.component";
|
|
31
32
|
export { QuickFilter, RowClickEvent, TableColumnSizes } from "./types/table";
|
|
32
|
-
export { IconVariant as IconVariant2 } from "./components";
|
|
33
|
+
export { IconFlipOptions as IconFlipOptions2, IconVariant as IconVariant2, RotateOptions as RotateOptions2 } from "./components";
|
|
33
34
|
export { buttonTemplateFunc } from "./components/molecules/table-header/table-header.component";
|
|
34
35
|
export { TableColumn } from "./components/helpers/table-column/table-column.component";
|
|
35
36
|
export { buttonTemplateFunc as buttonTemplateFunc1, templateFunc as templateFunc2 } from "./components/molecules/table-header/table-header.component";
|
|
37
|
+
export { TableRowActionFunc } from "./components/helpers/table-row-action/table-row-action.component";
|
|
36
38
|
export namespace Components {
|
|
37
39
|
interface PAccordion {
|
|
38
40
|
/**
|
|
@@ -502,6 +504,10 @@ export namespace Components {
|
|
|
502
504
|
"usedInTable": boolean;
|
|
503
505
|
}
|
|
504
506
|
interface PFloatingMenuItem {
|
|
507
|
+
/**
|
|
508
|
+
* Wether the item is disabled
|
|
509
|
+
*/
|
|
510
|
+
"disabled": boolean;
|
|
505
511
|
/**
|
|
506
512
|
* Wether it should have a hover effect
|
|
507
513
|
*/
|
|
@@ -1302,6 +1308,10 @@ export namespace Components {
|
|
|
1302
1308
|
* The index of the row
|
|
1303
1309
|
*/
|
|
1304
1310
|
"rowIndex": number;
|
|
1311
|
+
/**
|
|
1312
|
+
* Wether the table has actions
|
|
1313
|
+
*/
|
|
1314
|
+
"tableHasActions": boolean;
|
|
1305
1315
|
/**
|
|
1306
1316
|
* The template to show
|
|
1307
1317
|
*/
|
|
@@ -1313,7 +1323,7 @@ export namespace Components {
|
|
|
1313
1323
|
/**
|
|
1314
1324
|
* The variant of the column
|
|
1315
1325
|
*/
|
|
1316
|
-
"variant": 'default' | 'loading' | 'header';
|
|
1326
|
+
"variant": 'default' | 'loading' | 'header' | 'actions';
|
|
1317
1327
|
}
|
|
1318
1328
|
interface PTableColumn {
|
|
1319
1329
|
/**
|
|
@@ -1466,6 +1476,40 @@ export namespace Components {
|
|
|
1466
1476
|
*/
|
|
1467
1477
|
"variant": 'default' | 'header';
|
|
1468
1478
|
}
|
|
1479
|
+
interface PTableRowAction {
|
|
1480
|
+
/**
|
|
1481
|
+
* The action to trigger when used
|
|
1482
|
+
*/
|
|
1483
|
+
"action": TableRowActionFunc;
|
|
1484
|
+
/**
|
|
1485
|
+
* Wether the action is disabled
|
|
1486
|
+
*/
|
|
1487
|
+
"disabled": boolean;
|
|
1488
|
+
/**
|
|
1489
|
+
* Icon to show on the button
|
|
1490
|
+
*/
|
|
1491
|
+
"icon": IconVariant2;
|
|
1492
|
+
/**
|
|
1493
|
+
* Icon flip
|
|
1494
|
+
*/
|
|
1495
|
+
"iconFlip": IconFlipOptions2;
|
|
1496
|
+
/**
|
|
1497
|
+
* Wether the button is icon only
|
|
1498
|
+
*/
|
|
1499
|
+
"iconOnly": boolean;
|
|
1500
|
+
/**
|
|
1501
|
+
* Icon rotate
|
|
1502
|
+
*/
|
|
1503
|
+
"iconRotate": RotateOptions2;
|
|
1504
|
+
/**
|
|
1505
|
+
* Label of the action
|
|
1506
|
+
*/
|
|
1507
|
+
"label": string;
|
|
1508
|
+
/**
|
|
1509
|
+
* The type of action mutli = Only multi select action single = Only an action on the row both = Action on both locations
|
|
1510
|
+
*/
|
|
1511
|
+
"type": 'both' | 'single' | 'multi';
|
|
1512
|
+
}
|
|
1469
1513
|
interface PToast {
|
|
1470
1514
|
/**
|
|
1471
1515
|
* Icon to show on the button
|
|
@@ -1988,6 +2032,12 @@ declare global {
|
|
|
1988
2032
|
prototype: HTMLPTableRowElement;
|
|
1989
2033
|
new (): HTMLPTableRowElement;
|
|
1990
2034
|
};
|
|
2035
|
+
interface HTMLPTableRowActionElement extends Components.PTableRowAction, HTMLStencilElement {
|
|
2036
|
+
}
|
|
2037
|
+
var HTMLPTableRowActionElement: {
|
|
2038
|
+
prototype: HTMLPTableRowActionElement;
|
|
2039
|
+
new (): HTMLPTableRowActionElement;
|
|
2040
|
+
};
|
|
1991
2041
|
interface HTMLPToastElement extends Components.PToast, HTMLStencilElement {
|
|
1992
2042
|
}
|
|
1993
2043
|
var HTMLPToastElement: {
|
|
@@ -2068,6 +2118,7 @@ declare global {
|
|
|
2068
2118
|
"p-table-footer": HTMLPTableFooterElement;
|
|
2069
2119
|
"p-table-header": HTMLPTableHeaderElement;
|
|
2070
2120
|
"p-table-row": HTMLPTableRowElement;
|
|
2121
|
+
"p-table-row-action": HTMLPTableRowActionElement;
|
|
2071
2122
|
"p-toast": HTMLPToastElement;
|
|
2072
2123
|
"p-toast-container": HTMLPToastContainerElement;
|
|
2073
2124
|
"p-tooltip": HTMLPTooltipElement;
|
|
@@ -2593,6 +2644,10 @@ declare namespace LocalJSX {
|
|
|
2593
2644
|
"usedInTable"?: boolean;
|
|
2594
2645
|
}
|
|
2595
2646
|
interface PFloatingMenuItem {
|
|
2647
|
+
/**
|
|
2648
|
+
* Wether the item is disabled
|
|
2649
|
+
*/
|
|
2650
|
+
"disabled"?: boolean;
|
|
2596
2651
|
/**
|
|
2597
2652
|
* Wether it should have a hover effect
|
|
2598
2653
|
*/
|
|
@@ -3485,6 +3540,10 @@ declare namespace LocalJSX {
|
|
|
3485
3540
|
* The index of the row
|
|
3486
3541
|
*/
|
|
3487
3542
|
"rowIndex"?: number;
|
|
3543
|
+
/**
|
|
3544
|
+
* Wether the table has actions
|
|
3545
|
+
*/
|
|
3546
|
+
"tableHasActions"?: boolean;
|
|
3488
3547
|
/**
|
|
3489
3548
|
* The template to show
|
|
3490
3549
|
*/
|
|
@@ -3496,7 +3555,7 @@ declare namespace LocalJSX {
|
|
|
3496
3555
|
/**
|
|
3497
3556
|
* The variant of the column
|
|
3498
3557
|
*/
|
|
3499
|
-
"variant"?: 'default' | 'loading' | 'header';
|
|
3558
|
+
"variant"?: 'default' | 'loading' | 'header' | 'actions';
|
|
3500
3559
|
}
|
|
3501
3560
|
interface PTableColumn {
|
|
3502
3561
|
/**
|
|
@@ -3681,6 +3740,40 @@ declare namespace LocalJSX {
|
|
|
3681
3740
|
*/
|
|
3682
3741
|
"variant"?: 'default' | 'header';
|
|
3683
3742
|
}
|
|
3743
|
+
interface PTableRowAction {
|
|
3744
|
+
/**
|
|
3745
|
+
* The action to trigger when used
|
|
3746
|
+
*/
|
|
3747
|
+
"action"?: TableRowActionFunc;
|
|
3748
|
+
/**
|
|
3749
|
+
* Wether the action is disabled
|
|
3750
|
+
*/
|
|
3751
|
+
"disabled"?: boolean;
|
|
3752
|
+
/**
|
|
3753
|
+
* Icon to show on the button
|
|
3754
|
+
*/
|
|
3755
|
+
"icon"?: IconVariant2;
|
|
3756
|
+
/**
|
|
3757
|
+
* Icon flip
|
|
3758
|
+
*/
|
|
3759
|
+
"iconFlip"?: IconFlipOptions2;
|
|
3760
|
+
/**
|
|
3761
|
+
* Wether the button is icon only
|
|
3762
|
+
*/
|
|
3763
|
+
"iconOnly"?: boolean;
|
|
3764
|
+
/**
|
|
3765
|
+
* Icon rotate
|
|
3766
|
+
*/
|
|
3767
|
+
"iconRotate"?: RotateOptions2;
|
|
3768
|
+
/**
|
|
3769
|
+
* Label of the action
|
|
3770
|
+
*/
|
|
3771
|
+
"label"?: string;
|
|
3772
|
+
/**
|
|
3773
|
+
* The type of action mutli = Only multi select action single = Only an action on the row both = Action on both locations
|
|
3774
|
+
*/
|
|
3775
|
+
"type"?: 'both' | 'single' | 'multi';
|
|
3776
|
+
}
|
|
3684
3777
|
interface PToast {
|
|
3685
3778
|
/**
|
|
3686
3779
|
* Icon to show on the button
|
|
@@ -3821,6 +3914,7 @@ declare namespace LocalJSX {
|
|
|
3821
3914
|
"p-table-footer": PTableFooter;
|
|
3822
3915
|
"p-table-header": PTableHeader;
|
|
3823
3916
|
"p-table-row": PTableRow;
|
|
3917
|
+
"p-table-row-action": PTableRowAction;
|
|
3824
3918
|
"p-toast": PToast;
|
|
3825
3919
|
"p-toast-container": PToastContainer;
|
|
3826
3920
|
"p-tooltip": PTooltip;
|
|
@@ -3891,6 +3985,7 @@ declare module "@stencil/core" {
|
|
|
3891
3985
|
"p-table-footer": LocalJSX.PTableFooter & JSXBase.HTMLAttributes<HTMLPTableFooterElement>;
|
|
3892
3986
|
"p-table-header": LocalJSX.PTableHeader & JSXBase.HTMLAttributes<HTMLPTableHeaderElement>;
|
|
3893
3987
|
"p-table-row": LocalJSX.PTableRow & JSXBase.HTMLAttributes<HTMLPTableRowElement>;
|
|
3988
|
+
"p-table-row-action": LocalJSX.PTableRowAction & JSXBase.HTMLAttributes<HTMLPTableRowActionElement>;
|
|
3894
3989
|
"p-toast": LocalJSX.PToast & JSXBase.HTMLAttributes<HTMLPToastElement>;
|
|
3895
3990
|
"p-toast-container": LocalJSX.PToastContainer & JSXBase.HTMLAttributes<HTMLPToastContainerElement>;
|
|
3896
3991
|
"p-tooltip": LocalJSX.PTooltip & JSXBase.HTMLAttributes<HTMLPTooltipElement>;
|