@paperless/core 0.1.0-alpha.0 → 0.1.0-alpha.13
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 +125 -0
- package/README.md +17 -0
- package/dist/assets/icons/arrow.svg +1 -1
- package/dist/assets/icons/attachment.svg +1 -1
- package/dist/assets/icons/bread.svg +1 -1
- package/dist/assets/icons/calendar.svg +1 -1
- package/dist/assets/icons/car.svg +1 -1
- package/dist/assets/icons/checkmark.svg +1 -1
- package/dist/assets/icons/chevron.svg +1 -1
- package/dist/assets/icons/clock.svg +1 -1
- package/dist/assets/icons/cogs.svg +1 -1
- package/dist/assets/icons/comment.svg +1 -1
- package/dist/assets/icons/document.svg +1 -1
- package/dist/assets/icons/download.svg +1 -1
- package/dist/assets/icons/envelope.svg +1 -1
- package/dist/assets/icons/explanation.svg +1 -1
- package/dist/assets/icons/eye.svg +1 -1
- package/dist/assets/icons/filter.svg +1 -1
- package/dist/assets/icons/grid.svg +1 -1
- package/dist/assets/icons/headset.svg +1 -1
- package/dist/assets/icons/list.svg +1 -1
- package/dist/assets/icons/location.svg +1 -1
- package/dist/assets/icons/megaphone.svg +1 -1
- package/dist/assets/icons/minus.svg +1 -1
- package/dist/assets/icons/negative.svg +1 -1
- package/dist/assets/icons/pagination.svg +1 -1
- package/dist/assets/icons/payment.svg +1 -1
- package/dist/assets/icons/pencil.svg +1 -1
- package/dist/assets/icons/person.svg +1 -1
- package/dist/assets/icons/plus.svg +1 -1
- package/dist/assets/icons/question.svg +1 -1
- package/dist/assets/icons/receipt.svg +1 -1
- package/dist/assets/icons/report.svg +1 -1
- package/dist/assets/icons/search.svg +1 -1
- package/dist/assets/icons/settings.svg +1 -1
- package/dist/assets/icons/sick.svg +1 -1
- package/dist/assets/icons/tachometer.svg +1 -1
- package/dist/assets/icons/tool.svg +1 -1
- package/dist/assets/icons/trash.svg +1 -1
- package/dist/assets/icons/turn.svg +1 -1
- package/dist/assets/icons/upload.svg +1 -1
- package/dist/assets/icons/warning.svg +1 -1
- package/dist/assets/images/avatar/company-default.svg +12 -0
- package/dist/assets/images/avatar/user-default.svg +12 -0
- package/dist/assets/images/helper/helper-hover.svg +15 -0
- package/dist/assets/images/helper/helper.svg +15 -0
- package/dist/build/p-06a38756.entry.js +1 -0
- package/dist/build/p-19afe191.entry.js +1 -0
- package/dist/build/p-229f113b.js +2 -0
- package/dist/{paperless/p-98d636b6.entry.js → build/p-23980fbb.entry.js} +1 -1
- package/dist/build/p-31f80006.entry.js +1 -0
- package/dist/build/p-332028c6.entry.js +1 -0
- package/dist/build/p-5f0ec763.entry.js +1 -0
- package/dist/build/p-6c6c1137.entry.js +1 -0
- package/dist/build/p-80bf9d06.entry.js +1 -0
- package/dist/build/p-e80637b9.entry.js +1 -0
- package/dist/build/p-ec52095f.entry.js +1 -0
- package/dist/build/paperless.css +4 -3
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/{index-6758a39e.js → index-6b6e08cc.js} +487 -9
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/p-avatar.cjs.entry.js +32 -0
- package/dist/cjs/{p-icon.cjs.entry.js → p-button_3.cjs.entry.js} +149 -46
- package/dist/cjs/p-counter.cjs.entry.js +19 -0
- package/dist/cjs/p-divider.cjs.entry.js +19 -0
- package/dist/cjs/p-helper.cjs.entry.js +19 -0
- package/dist/cjs/p-illustration.cjs.entry.js +11 -14
- package/dist/cjs/p-info-panel.cjs.entry.js +31 -0
- package/dist/cjs/p-pagination-item.cjs.entry.js +23 -0
- package/dist/cjs/p-pagination.cjs.entry.js +163 -0
- package/dist/cjs/p-tooltip.cjs.entry.js +62 -20
- package/dist/cjs/paperless.cjs.js +2 -2
- package/dist/collection/assets/icons/arrow.svg +1 -1
- package/dist/collection/assets/icons/attachment.svg +1 -1
- package/dist/collection/assets/icons/bread.svg +1 -1
- package/dist/collection/assets/icons/calendar.svg +1 -1
- package/dist/collection/assets/icons/car.svg +1 -1
- package/dist/collection/assets/icons/checkmark.svg +1 -1
- package/dist/collection/assets/icons/chevron.svg +1 -1
- package/dist/collection/assets/icons/clock.svg +1 -1
- package/dist/collection/assets/icons/cogs.svg +1 -1
- package/dist/collection/assets/icons/comment.svg +1 -1
- package/dist/collection/assets/icons/document.svg +1 -1
- package/dist/collection/assets/icons/download.svg +1 -1
- package/dist/collection/assets/icons/envelope.svg +1 -1
- package/dist/collection/assets/icons/explanation.svg +1 -1
- package/dist/collection/assets/icons/eye.svg +1 -1
- package/dist/collection/assets/icons/filter.svg +1 -1
- package/dist/collection/assets/icons/grid.svg +1 -1
- package/dist/collection/assets/icons/headset.svg +1 -1
- package/dist/collection/assets/icons/list.svg +1 -1
- package/dist/collection/assets/icons/location.svg +1 -1
- package/dist/collection/assets/icons/megaphone.svg +1 -1
- package/dist/collection/assets/icons/minus.svg +1 -1
- package/dist/collection/assets/icons/negative.svg +1 -1
- package/dist/collection/assets/icons/pagination.svg +1 -1
- package/dist/collection/assets/icons/payment.svg +1 -1
- package/dist/collection/assets/icons/pencil.svg +1 -1
- package/dist/collection/assets/icons/person.svg +1 -1
- package/dist/collection/assets/icons/plus.svg +1 -1
- package/dist/collection/assets/icons/question.svg +1 -1
- package/dist/collection/assets/icons/receipt.svg +1 -1
- package/dist/collection/assets/icons/report.svg +1 -1
- package/dist/collection/assets/icons/search.svg +1 -1
- package/dist/collection/assets/icons/settings.svg +1 -1
- package/dist/collection/assets/icons/sick.svg +1 -1
- package/dist/collection/assets/icons/tachometer.svg +1 -1
- package/dist/collection/assets/icons/tool.svg +1 -1
- package/dist/collection/assets/icons/trash.svg +1 -1
- package/dist/collection/assets/icons/turn.svg +1 -1
- package/dist/collection/assets/icons/upload.svg +1 -1
- package/dist/collection/assets/icons/warning.svg +1 -1
- package/dist/collection/assets/images/avatar/company-default.svg +12 -0
- package/dist/collection/assets/images/avatar/user-default.svg +12 -0
- package/dist/collection/assets/images/helper/helper-hover.svg +15 -0
- package/dist/collection/assets/images/helper/helper.svg +15 -0
- package/dist/collection/collection-manifest.json +12 -4
- package/dist/collection/components/atoms/avatar/avatar.component.css +31 -0
- package/dist/collection/components/atoms/avatar/avatar.component.js +105 -0
- package/dist/collection/components/atoms/button/button.component.css +71 -0
- package/dist/collection/components/atoms/button/button.component.js +276 -0
- package/dist/collection/components/atoms/counter/counter.component.css +5 -0
- package/dist/collection/components/atoms/counter/counter.component.js +15 -0
- package/dist/collection/components/atoms/divider/divider.component.css +3 -0
- package/dist/collection/components/atoms/divider/divider.component.js +14 -0
- package/dist/collection/components/atoms/helper/helper.component.css +7 -0
- package/dist/collection/components/atoms/helper/helper.component.js +18 -0
- package/dist/collection/components/{icon → atoms/icon}/icon.component.js +10 -11
- package/dist/collection/components/{illustration → atoms/illustration}/illustration.component.js +4 -11
- package/dist/collection/components/atoms/info-panel/info-panel.component.css +28 -0
- package/dist/collection/components/atoms/info-panel/info-panel.component.js +106 -0
- package/dist/collection/components/atoms/loader/loader.component.css +26 -0
- package/dist/collection/components/atoms/loader/loader.component.js +153 -0
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +16 -0
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +41 -0
- package/dist/collection/components/atoms/tooltip/tooltip.component.css +37 -0
- package/dist/collection/components/{tooltip → atoms/tooltip}/tooltip.component.js +122 -32
- package/dist/collection/components/molecules/pagination/pagination.component.css +3 -0
- package/dist/collection/components/molecules/pagination/pagination.component.js +219 -0
- package/dist/collection/tailwind/border-radius.js +1 -0
- package/dist/collection/tailwind/grid.js +24 -4
- package/dist/collection/tailwind/rotate.js +8 -0
- package/dist/collection/tailwind/scale.js +3 -0
- package/dist/collection/tailwind.config.js +6 -7
- package/dist/{esm/p-icon.entry.js → components/icon.component.js} +67 -52
- package/dist/components/index.d.ts +9 -1
- package/dist/components/index.js +8 -0
- package/dist/components/loader.component.js +74 -0
- package/dist/components/p-avatar.d.ts +11 -0
- package/dist/components/p-avatar.js +52 -0
- package/dist/components/p-button.js +67 -8
- package/dist/components/p-counter.d.ts +11 -0
- package/dist/components/p-counter.js +33 -0
- package/dist/components/p-divider.d.ts +11 -0
- package/dist/components/p-divider.js +33 -0
- package/dist/components/p-helper.d.ts +11 -0
- package/dist/components/p-helper.js +39 -0
- package/dist/components/p-icon.js +1 -815
- package/dist/components/p-illustration.js +3 -7
- package/dist/components/p-info-panel.d.ts +11 -0
- package/dist/components/p-info-panel.js +56 -0
- package/dist/components/p-loader.d.ts +11 -0
- package/dist/components/p-loader.js +6 -0
- package/dist/components/p-pagination-item.d.ts +11 -0
- package/dist/components/p-pagination-item.js +6 -0
- package/dist/components/p-pagination.d.ts +11 -0
- package/dist/components/p-pagination.js +192 -0
- package/dist/components/p-tooltip.js +1 -1886
- package/dist/components/pagination-item.component.js +36 -0
- package/dist/components/tooltip.component.js +1932 -0
- package/dist/esm/{index-e4d80e41.js → index-5c917d13.js} +487 -10
- package/dist/esm/loader.js +2 -2
- package/dist/esm/p-avatar.entry.js +28 -0
- package/dist/esm/p-button_3.entry.js +899 -0
- package/dist/esm/p-counter.entry.js +15 -0
- package/dist/esm/p-divider.entry.js +15 -0
- package/dist/esm/p-helper.entry.js +15 -0
- package/dist/esm/p-illustration.entry.js +11 -14
- package/dist/esm/p-info-panel.entry.js +27 -0
- package/dist/esm/p-pagination-item.entry.js +19 -0
- package/dist/esm/p-pagination.entry.js +159 -0
- package/dist/esm/p-tooltip.entry.js +62 -20
- package/dist/esm/paperless.js +2 -2
- package/dist/index.html +1 -1
- package/dist/paperless/p-06a38756.entry.js +1 -0
- package/dist/paperless/p-19afe191.entry.js +1 -0
- package/dist/paperless/p-229f113b.js +2 -0
- package/dist/{build/p-98d636b6.entry.js → paperless/p-23980fbb.entry.js} +1 -1
- package/dist/paperless/p-31f80006.entry.js +1 -0
- package/dist/paperless/p-332028c6.entry.js +1 -0
- package/dist/paperless/p-5f0ec763.entry.js +1 -0
- package/dist/paperless/p-6c6c1137.entry.js +1 -0
- package/dist/paperless/p-80bf9d06.entry.js +1 -0
- package/dist/paperless/p-e80637b9.entry.js +1 -0
- package/dist/paperless/p-ec52095f.entry.js +1 -0
- package/dist/paperless/paperless.css +3843 -201
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +245 -49
- package/dist/tailwind.config.js +6 -7
- package/dist/types/components/atoms/avatar/avatar.component.d.ts +21 -0
- package/dist/types/components/atoms/button/button.component.d.ts +51 -0
- package/dist/types/components/atoms/counter/counter.component.d.ts +3 -0
- package/dist/types/components/atoms/divider/divider.component.d.ts +3 -0
- package/dist/types/components/atoms/helper/helper.component.d.ts +3 -0
- package/dist/types/components/{icon → atoms/icon}/icon.component.d.ts +3 -2
- package/dist/types/components/{illustration → atoms/illustration}/illustration.component.d.ts +2 -2
- package/dist/types/components/atoms/info-panel/info-panel.component.d.ts +24 -0
- package/dist/types/components/atoms/loader/loader.component.d.ts +30 -0
- package/dist/types/components/atoms/pagination-item/pagination-item.component.d.ts +7 -0
- package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +40 -0
- package/dist/types/components/molecules/pagination/pagination.component.d.ts +31 -0
- package/dist/types/components.d.ts +358 -20
- package/package.json +3 -2
- package/dist/build/p-3318b73b.entry.js +0 -1
- package/dist/build/p-6f9229a6.js +0 -2
- package/dist/build/p-711630fb.entry.js +0 -1
- package/dist/build/p-c3d80205.entry.js +0 -1
- package/dist/cjs/p-button.cjs.entry.js +0 -23
- package/dist/collection/components/button/button.component.css +0 -6
- package/dist/collection/components/button/button.component.js +0 -42
- package/dist/collection/components/tooltip/tooltip.component.css +0 -34
- package/dist/esm/p-button.entry.js +0 -19
- package/dist/paperless/p-3318b73b.entry.js +0 -1
- package/dist/paperless/p-6f9229a6.js +0 -2
- package/dist/paperless/p-711630fb.entry.js +0 -1
- package/dist/paperless/p-c3d80205.entry.js +0 -1
- package/dist/types/components/button/button.component.d.ts +0 -7
- package/dist/types/components/tooltip/tooltip.component.d.ts +0 -28
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Placement } from '@popperjs/core';
|
|
2
|
+
export declare class Tooltip {
|
|
3
|
+
/**
|
|
4
|
+
* The variant of the popover
|
|
5
|
+
*/
|
|
6
|
+
variant: 'hover' | 'click';
|
|
7
|
+
/**
|
|
8
|
+
* The content of the popover
|
|
9
|
+
*/
|
|
10
|
+
popover: any;
|
|
11
|
+
/**
|
|
12
|
+
* The content of the popover
|
|
13
|
+
*/
|
|
14
|
+
placement: Placement;
|
|
15
|
+
/**
|
|
16
|
+
* Wether to show the popover
|
|
17
|
+
*/
|
|
18
|
+
show: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Wether to someone can manually close the popover
|
|
21
|
+
*/
|
|
22
|
+
canManuallyClose: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* The host element
|
|
25
|
+
*/
|
|
26
|
+
private _el;
|
|
27
|
+
private _loaded;
|
|
28
|
+
private _popper;
|
|
29
|
+
private _popover;
|
|
30
|
+
componentShouldUpdate(): void;
|
|
31
|
+
render(): any;
|
|
32
|
+
protected clickHandler(): void;
|
|
33
|
+
protected documentClickHandler(): void;
|
|
34
|
+
protected mouseEnterHandler(): void;
|
|
35
|
+
protected mouseLeaveHandler(): void;
|
|
36
|
+
private _show;
|
|
37
|
+
private _hide;
|
|
38
|
+
private _load;
|
|
39
|
+
private _setOptions;
|
|
40
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type SetItem = {
|
|
3
|
+
type: string;
|
|
4
|
+
value?: number | Element | JSX.Element | string;
|
|
5
|
+
};
|
|
6
|
+
export declare class Pagination {
|
|
7
|
+
/**
|
|
8
|
+
* The current page
|
|
9
|
+
*/
|
|
10
|
+
value: number;
|
|
11
|
+
/**
|
|
12
|
+
* The amount of items per page
|
|
13
|
+
*/
|
|
14
|
+
pageSize: number;
|
|
15
|
+
/**
|
|
16
|
+
* The total amount of items
|
|
17
|
+
*/
|
|
18
|
+
total: number;
|
|
19
|
+
private _pages;
|
|
20
|
+
private _set;
|
|
21
|
+
componentWillRender(): void;
|
|
22
|
+
render(): any;
|
|
23
|
+
protected pageChangeHandler(): void;
|
|
24
|
+
private _generate;
|
|
25
|
+
private _changePage;
|
|
26
|
+
private _previousClick;
|
|
27
|
+
private _nextClick;
|
|
28
|
+
private _pageClick;
|
|
29
|
+
private _generatePages;
|
|
30
|
+
private _generateSet;
|
|
31
|
+
}
|
|
@@ -5,21 +5,83 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
-
import { IconVariant } from "./components/icon/icon.component";
|
|
9
|
-
import {
|
|
8
|
+
import { IconFlipOptions, IconVariant } from "./components/atoms/icon/icon.component";
|
|
9
|
+
import { IconFlipOptions as IconFlipOptions1, IconVariant as IconVariant1 } from "./components/atoms/icon/icon.component";
|
|
10
|
+
import { IllustrationVariant } from "./components/atoms/illustration/illustration.component";
|
|
11
|
+
import { Observable } from "rxjs";
|
|
10
12
|
import { Placement } from "@popperjs/core";
|
|
11
13
|
export namespace Components {
|
|
14
|
+
interface PAvatar {
|
|
15
|
+
/**
|
|
16
|
+
* The default image to show on errors
|
|
17
|
+
*/
|
|
18
|
+
"defaultImage": string;
|
|
19
|
+
/**
|
|
20
|
+
* The size of the avatar
|
|
21
|
+
*/
|
|
22
|
+
"size": 'small' | 'medium' | 'large';
|
|
23
|
+
/**
|
|
24
|
+
* The image used for the avatar
|
|
25
|
+
*/
|
|
26
|
+
"src": string;
|
|
27
|
+
/**
|
|
28
|
+
* The variant of the avatar
|
|
29
|
+
*/
|
|
30
|
+
"variant": 'user' | 'company';
|
|
31
|
+
}
|
|
12
32
|
interface PButton {
|
|
33
|
+
/**
|
|
34
|
+
* Wether the button is disabled
|
|
35
|
+
*/
|
|
36
|
+
"disabled": boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Href in case of "text" version
|
|
39
|
+
*/
|
|
40
|
+
"href": string;
|
|
41
|
+
/**
|
|
42
|
+
* Icon to show on the button
|
|
43
|
+
*/
|
|
44
|
+
"icon": IconVariant;
|
|
45
|
+
/**
|
|
46
|
+
* Icon flip
|
|
47
|
+
*/
|
|
48
|
+
"iconFlip": IconFlipOptions;
|
|
49
|
+
/**
|
|
50
|
+
* Icon position
|
|
51
|
+
*/
|
|
52
|
+
"iconPosition": 'start' | 'end';
|
|
53
|
+
/**
|
|
54
|
+
* Icon rotate
|
|
55
|
+
*/
|
|
56
|
+
"iconRotate": number;
|
|
57
|
+
/**
|
|
58
|
+
* Wether to show a loader or not
|
|
59
|
+
*/
|
|
60
|
+
"loading": boolean;
|
|
61
|
+
/**
|
|
62
|
+
* The size of the button
|
|
63
|
+
*/
|
|
64
|
+
"size": 'small' | 'medium';
|
|
65
|
+
/**
|
|
66
|
+
* Target in case of "text" version
|
|
67
|
+
*/
|
|
68
|
+
"target": string;
|
|
13
69
|
/**
|
|
14
70
|
* The variant of the button
|
|
15
71
|
*/
|
|
16
|
-
"variant": 'primary' | 'secondary';
|
|
72
|
+
"variant": 'primary' | 'secondary' | 'text';
|
|
73
|
+
}
|
|
74
|
+
interface PCounter {
|
|
75
|
+
}
|
|
76
|
+
interface PDivider {
|
|
77
|
+
}
|
|
78
|
+
interface PHelper {
|
|
17
79
|
}
|
|
18
80
|
interface PIcon {
|
|
19
81
|
/**
|
|
20
82
|
* Wether to flip the icon horizontally or vertically
|
|
21
83
|
*/
|
|
22
|
-
"flip":
|
|
84
|
+
"flip": IconFlipOptions;
|
|
23
85
|
/**
|
|
24
86
|
* Wether to rotate the icon x degrees
|
|
25
87
|
*/
|
|
@@ -39,28 +101,124 @@ export namespace Components {
|
|
|
39
101
|
*/
|
|
40
102
|
"variant": IllustrationVariant;
|
|
41
103
|
}
|
|
42
|
-
interface
|
|
104
|
+
interface PInfoPanel {
|
|
105
|
+
/**
|
|
106
|
+
* Wether the panel can be closed
|
|
107
|
+
*/
|
|
108
|
+
"closeable": boolean;
|
|
43
109
|
/**
|
|
44
|
-
* The content of the
|
|
110
|
+
* The content of the info panel
|
|
45
111
|
*/
|
|
46
|
-
"content":
|
|
112
|
+
"content": string;
|
|
47
113
|
/**
|
|
48
|
-
*
|
|
114
|
+
* The header of the info panel
|
|
49
115
|
*/
|
|
50
|
-
"
|
|
116
|
+
"header": string;
|
|
51
117
|
/**
|
|
52
|
-
* The
|
|
118
|
+
* The variant of the info panel
|
|
119
|
+
*/
|
|
120
|
+
"variant": 'info' | 'negative' | 'positive' | 'unbiased';
|
|
121
|
+
}
|
|
122
|
+
interface PLoader {
|
|
123
|
+
/**
|
|
124
|
+
* Color of the loader
|
|
125
|
+
*/
|
|
126
|
+
"color": 'indigo' | 'white' | 'storm';
|
|
127
|
+
/**
|
|
128
|
+
* !NOT IMPLEMENTED! Modal description for modal variant
|
|
129
|
+
*/
|
|
130
|
+
"modalDescription": string;
|
|
131
|
+
/**
|
|
132
|
+
* !NOT IMPLEMENTED! Modal title for modal variant
|
|
133
|
+
*/
|
|
134
|
+
"modalTitle": string;
|
|
135
|
+
/**
|
|
136
|
+
* Wether to show or hide the loader
|
|
137
|
+
*/
|
|
138
|
+
"show": boolean | Observable<boolean>;
|
|
139
|
+
/**
|
|
140
|
+
* Variant of loader
|
|
141
|
+
*/
|
|
142
|
+
"variant": 'inline' | 'full-width' | 'full-screen' | 'modal';
|
|
143
|
+
}
|
|
144
|
+
interface PPagination {
|
|
145
|
+
/**
|
|
146
|
+
* The amount of items per page
|
|
147
|
+
*/
|
|
148
|
+
"pageSize": number;
|
|
149
|
+
/**
|
|
150
|
+
* The total amount of items
|
|
151
|
+
*/
|
|
152
|
+
"total": number;
|
|
153
|
+
/**
|
|
154
|
+
* The current page
|
|
155
|
+
*/
|
|
156
|
+
"value": number;
|
|
157
|
+
}
|
|
158
|
+
interface PPaginationItem {
|
|
159
|
+
/**
|
|
160
|
+
* Wether the pagination item is active
|
|
161
|
+
*/
|
|
162
|
+
"active": boolean;
|
|
163
|
+
}
|
|
164
|
+
interface PTooltip {
|
|
165
|
+
/**
|
|
166
|
+
* Wether to someone can manually close the popover
|
|
167
|
+
*/
|
|
168
|
+
"canManuallyClose": boolean;
|
|
169
|
+
/**
|
|
170
|
+
* The content of the popover
|
|
53
171
|
*/
|
|
54
172
|
"placement": Placement;
|
|
173
|
+
/**
|
|
174
|
+
* The content of the popover
|
|
175
|
+
*/
|
|
176
|
+
"popover": any;
|
|
177
|
+
/**
|
|
178
|
+
* Wether to show the popover
|
|
179
|
+
*/
|
|
180
|
+
"show": boolean;
|
|
181
|
+
/**
|
|
182
|
+
* The variant of the popover
|
|
183
|
+
*/
|
|
184
|
+
"variant": 'hover' | 'click';
|
|
55
185
|
}
|
|
56
186
|
}
|
|
187
|
+
export interface PButtonCustomEvent<T> extends CustomEvent<T> {
|
|
188
|
+
detail: T;
|
|
189
|
+
target: HTMLPButtonElement;
|
|
190
|
+
}
|
|
57
191
|
declare global {
|
|
192
|
+
interface HTMLPAvatarElement extends Components.PAvatar, HTMLStencilElement {
|
|
193
|
+
}
|
|
194
|
+
var HTMLPAvatarElement: {
|
|
195
|
+
prototype: HTMLPAvatarElement;
|
|
196
|
+
new (): HTMLPAvatarElement;
|
|
197
|
+
};
|
|
58
198
|
interface HTMLPButtonElement extends Components.PButton, HTMLStencilElement {
|
|
59
199
|
}
|
|
60
200
|
var HTMLPButtonElement: {
|
|
61
201
|
prototype: HTMLPButtonElement;
|
|
62
202
|
new (): HTMLPButtonElement;
|
|
63
203
|
};
|
|
204
|
+
interface HTMLPCounterElement extends Components.PCounter, HTMLStencilElement {
|
|
205
|
+
}
|
|
206
|
+
var HTMLPCounterElement: {
|
|
207
|
+
prototype: HTMLPCounterElement;
|
|
208
|
+
new (): HTMLPCounterElement;
|
|
209
|
+
};
|
|
210
|
+
interface HTMLPDividerElement extends Components.PDivider, HTMLStencilElement {
|
|
211
|
+
}
|
|
212
|
+
var HTMLPDividerElement: {
|
|
213
|
+
prototype: HTMLPDividerElement;
|
|
214
|
+
new (): HTMLPDividerElement;
|
|
215
|
+
};
|
|
216
|
+
interface HTMLPHelperElement extends Components.PHelper, HTMLStencilElement {
|
|
217
|
+
}
|
|
218
|
+
var HTMLPHelperElement: {
|
|
219
|
+
prototype: HTMLPHelperElement;
|
|
220
|
+
new (): HTMLPHelperElement;
|
|
221
|
+
};
|
|
64
222
|
interface HTMLPIconElement extends Components.PIcon, HTMLStencilElement {
|
|
65
223
|
}
|
|
66
224
|
var HTMLPIconElement: {
|
|
@@ -73,6 +231,30 @@ declare global {
|
|
|
73
231
|
prototype: HTMLPIllustrationElement;
|
|
74
232
|
new (): HTMLPIllustrationElement;
|
|
75
233
|
};
|
|
234
|
+
interface HTMLPInfoPanelElement extends Components.PInfoPanel, HTMLStencilElement {
|
|
235
|
+
}
|
|
236
|
+
var HTMLPInfoPanelElement: {
|
|
237
|
+
prototype: HTMLPInfoPanelElement;
|
|
238
|
+
new (): HTMLPInfoPanelElement;
|
|
239
|
+
};
|
|
240
|
+
interface HTMLPLoaderElement extends Components.PLoader, HTMLStencilElement {
|
|
241
|
+
}
|
|
242
|
+
var HTMLPLoaderElement: {
|
|
243
|
+
prototype: HTMLPLoaderElement;
|
|
244
|
+
new (): HTMLPLoaderElement;
|
|
245
|
+
};
|
|
246
|
+
interface HTMLPPaginationElement extends Components.PPagination, HTMLStencilElement {
|
|
247
|
+
}
|
|
248
|
+
var HTMLPPaginationElement: {
|
|
249
|
+
prototype: HTMLPPaginationElement;
|
|
250
|
+
new (): HTMLPPaginationElement;
|
|
251
|
+
};
|
|
252
|
+
interface HTMLPPaginationItemElement extends Components.PPaginationItem, HTMLStencilElement {
|
|
253
|
+
}
|
|
254
|
+
var HTMLPPaginationItemElement: {
|
|
255
|
+
prototype: HTMLPPaginationItemElement;
|
|
256
|
+
new (): HTMLPPaginationItemElement;
|
|
257
|
+
};
|
|
76
258
|
interface HTMLPTooltipElement extends Components.PTooltip, HTMLStencilElement {
|
|
77
259
|
}
|
|
78
260
|
var HTMLPTooltipElement: {
|
|
@@ -80,24 +262,96 @@ declare global {
|
|
|
80
262
|
new (): HTMLPTooltipElement;
|
|
81
263
|
};
|
|
82
264
|
interface HTMLElementTagNameMap {
|
|
265
|
+
"p-avatar": HTMLPAvatarElement;
|
|
83
266
|
"p-button": HTMLPButtonElement;
|
|
267
|
+
"p-counter": HTMLPCounterElement;
|
|
268
|
+
"p-divider": HTMLPDividerElement;
|
|
269
|
+
"p-helper": HTMLPHelperElement;
|
|
84
270
|
"p-icon": HTMLPIconElement;
|
|
85
271
|
"p-illustration": HTMLPIllustrationElement;
|
|
272
|
+
"p-info-panel": HTMLPInfoPanelElement;
|
|
273
|
+
"p-loader": HTMLPLoaderElement;
|
|
274
|
+
"p-pagination": HTMLPPaginationElement;
|
|
275
|
+
"p-pagination-item": HTMLPPaginationItemElement;
|
|
86
276
|
"p-tooltip": HTMLPTooltipElement;
|
|
87
277
|
}
|
|
88
278
|
}
|
|
89
279
|
declare namespace LocalJSX {
|
|
280
|
+
interface PAvatar {
|
|
281
|
+
/**
|
|
282
|
+
* The default image to show on errors
|
|
283
|
+
*/
|
|
284
|
+
"defaultImage"?: string;
|
|
285
|
+
/**
|
|
286
|
+
* The size of the avatar
|
|
287
|
+
*/
|
|
288
|
+
"size"?: 'small' | 'medium' | 'large';
|
|
289
|
+
/**
|
|
290
|
+
* The image used for the avatar
|
|
291
|
+
*/
|
|
292
|
+
"src": string;
|
|
293
|
+
/**
|
|
294
|
+
* The variant of the avatar
|
|
295
|
+
*/
|
|
296
|
+
"variant"?: 'user' | 'company';
|
|
297
|
+
}
|
|
90
298
|
interface PButton {
|
|
299
|
+
/**
|
|
300
|
+
* Wether the button is disabled
|
|
301
|
+
*/
|
|
302
|
+
"disabled"?: boolean;
|
|
303
|
+
/**
|
|
304
|
+
* Href in case of "text" version
|
|
305
|
+
*/
|
|
306
|
+
"href"?: string;
|
|
307
|
+
/**
|
|
308
|
+
* Icon to show on the button
|
|
309
|
+
*/
|
|
310
|
+
"icon"?: IconVariant;
|
|
311
|
+
/**
|
|
312
|
+
* Icon flip
|
|
313
|
+
*/
|
|
314
|
+
"iconFlip"?: IconFlipOptions;
|
|
315
|
+
/**
|
|
316
|
+
* Icon position
|
|
317
|
+
*/
|
|
318
|
+
"iconPosition"?: 'start' | 'end';
|
|
319
|
+
/**
|
|
320
|
+
* Icon rotate
|
|
321
|
+
*/
|
|
322
|
+
"iconRotate"?: number;
|
|
323
|
+
/**
|
|
324
|
+
* Wether to show a loader or not
|
|
325
|
+
*/
|
|
326
|
+
"loading"?: boolean;
|
|
327
|
+
/**
|
|
328
|
+
* Button click event
|
|
329
|
+
*/
|
|
330
|
+
"onOnClick"?: (event: PButtonCustomEvent<MouseEvent>) => void;
|
|
331
|
+
/**
|
|
332
|
+
* The size of the button
|
|
333
|
+
*/
|
|
334
|
+
"size"?: 'small' | 'medium';
|
|
335
|
+
/**
|
|
336
|
+
* Target in case of "text" version
|
|
337
|
+
*/
|
|
338
|
+
"target"?: string;
|
|
91
339
|
/**
|
|
92
340
|
* The variant of the button
|
|
93
341
|
*/
|
|
94
|
-
"variant"?: 'primary' | 'secondary';
|
|
342
|
+
"variant"?: 'primary' | 'secondary' | 'text';
|
|
343
|
+
}
|
|
344
|
+
interface PCounter {
|
|
345
|
+
}
|
|
346
|
+
interface PDivider {
|
|
347
|
+
}
|
|
348
|
+
interface PHelper {
|
|
95
349
|
}
|
|
96
350
|
interface PIcon {
|
|
97
351
|
/**
|
|
98
352
|
* Wether to flip the icon horizontally or vertically
|
|
99
353
|
*/
|
|
100
|
-
"flip"?:
|
|
354
|
+
"flip"?: IconFlipOptions;
|
|
101
355
|
/**
|
|
102
356
|
* Wether to rotate the icon x degrees
|
|
103
357
|
*/
|
|
@@ -109,32 +363,108 @@ declare namespace LocalJSX {
|
|
|
109
363
|
/**
|
|
110
364
|
* The icon the be displayed
|
|
111
365
|
*/
|
|
112
|
-
"variant"
|
|
366
|
+
"variant": IconVariant;
|
|
113
367
|
}
|
|
114
368
|
interface PIllustration {
|
|
115
369
|
/**
|
|
116
370
|
* The icon the be displayed
|
|
117
371
|
*/
|
|
118
|
-
"variant"
|
|
372
|
+
"variant": IllustrationVariant;
|
|
119
373
|
}
|
|
120
|
-
interface
|
|
374
|
+
interface PInfoPanel {
|
|
375
|
+
/**
|
|
376
|
+
* Wether the panel can be closed
|
|
377
|
+
*/
|
|
378
|
+
"closeable"?: boolean;
|
|
379
|
+
/**
|
|
380
|
+
* The content of the info panel
|
|
381
|
+
*/
|
|
382
|
+
"content"?: string;
|
|
383
|
+
/**
|
|
384
|
+
* The header of the info panel
|
|
385
|
+
*/
|
|
386
|
+
"header"?: string;
|
|
387
|
+
/**
|
|
388
|
+
* The variant of the info panel
|
|
389
|
+
*/
|
|
390
|
+
"variant"?: 'info' | 'negative' | 'positive' | 'unbiased';
|
|
391
|
+
}
|
|
392
|
+
interface PLoader {
|
|
393
|
+
/**
|
|
394
|
+
* Color of the loader
|
|
395
|
+
*/
|
|
396
|
+
"color"?: 'indigo' | 'white' | 'storm';
|
|
397
|
+
/**
|
|
398
|
+
* !NOT IMPLEMENTED! Modal description for modal variant
|
|
399
|
+
*/
|
|
400
|
+
"modalDescription"?: string;
|
|
401
|
+
/**
|
|
402
|
+
* !NOT IMPLEMENTED! Modal title for modal variant
|
|
403
|
+
*/
|
|
404
|
+
"modalTitle"?: string;
|
|
405
|
+
/**
|
|
406
|
+
* Wether to show or hide the loader
|
|
407
|
+
*/
|
|
408
|
+
"show"?: boolean | Observable<boolean>;
|
|
409
|
+
/**
|
|
410
|
+
* Variant of loader
|
|
411
|
+
*/
|
|
412
|
+
"variant"?: 'inline' | 'full-width' | 'full-screen' | 'modal';
|
|
413
|
+
}
|
|
414
|
+
interface PPagination {
|
|
415
|
+
/**
|
|
416
|
+
* The amount of items per page
|
|
417
|
+
*/
|
|
418
|
+
"pageSize"?: number;
|
|
121
419
|
/**
|
|
122
|
-
* The
|
|
420
|
+
* The total amount of items
|
|
123
421
|
*/
|
|
124
|
-
"
|
|
422
|
+
"total": number;
|
|
125
423
|
/**
|
|
126
|
-
*
|
|
424
|
+
* The current page
|
|
127
425
|
*/
|
|
128
|
-
"
|
|
426
|
+
"value"?: number;
|
|
427
|
+
}
|
|
428
|
+
interface PPaginationItem {
|
|
129
429
|
/**
|
|
130
|
-
*
|
|
430
|
+
* Wether the pagination item is active
|
|
431
|
+
*/
|
|
432
|
+
"active"?: boolean;
|
|
433
|
+
}
|
|
434
|
+
interface PTooltip {
|
|
435
|
+
/**
|
|
436
|
+
* Wether to someone can manually close the popover
|
|
437
|
+
*/
|
|
438
|
+
"canManuallyClose"?: boolean;
|
|
439
|
+
/**
|
|
440
|
+
* The content of the popover
|
|
131
441
|
*/
|
|
132
442
|
"placement"?: Placement;
|
|
443
|
+
/**
|
|
444
|
+
* The content of the popover
|
|
445
|
+
*/
|
|
446
|
+
"popover"?: any;
|
|
447
|
+
/**
|
|
448
|
+
* Wether to show the popover
|
|
449
|
+
*/
|
|
450
|
+
"show"?: boolean;
|
|
451
|
+
/**
|
|
452
|
+
* The variant of the popover
|
|
453
|
+
*/
|
|
454
|
+
"variant"?: 'hover' | 'click';
|
|
133
455
|
}
|
|
134
456
|
interface IntrinsicElements {
|
|
457
|
+
"p-avatar": PAvatar;
|
|
135
458
|
"p-button": PButton;
|
|
459
|
+
"p-counter": PCounter;
|
|
460
|
+
"p-divider": PDivider;
|
|
461
|
+
"p-helper": PHelper;
|
|
136
462
|
"p-icon": PIcon;
|
|
137
463
|
"p-illustration": PIllustration;
|
|
464
|
+
"p-info-panel": PInfoPanel;
|
|
465
|
+
"p-loader": PLoader;
|
|
466
|
+
"p-pagination": PPagination;
|
|
467
|
+
"p-pagination-item": PPaginationItem;
|
|
138
468
|
"p-tooltip": PTooltip;
|
|
139
469
|
}
|
|
140
470
|
}
|
|
@@ -142,9 +472,17 @@ export { LocalJSX as JSX };
|
|
|
142
472
|
declare module "@stencil/core" {
|
|
143
473
|
export namespace JSX {
|
|
144
474
|
interface IntrinsicElements {
|
|
475
|
+
"p-avatar": LocalJSX.PAvatar & JSXBase.HTMLAttributes<HTMLPAvatarElement>;
|
|
145
476
|
"p-button": LocalJSX.PButton & JSXBase.HTMLAttributes<HTMLPButtonElement>;
|
|
477
|
+
"p-counter": LocalJSX.PCounter & JSXBase.HTMLAttributes<HTMLPCounterElement>;
|
|
478
|
+
"p-divider": LocalJSX.PDivider & JSXBase.HTMLAttributes<HTMLPDividerElement>;
|
|
479
|
+
"p-helper": LocalJSX.PHelper & JSXBase.HTMLAttributes<HTMLPHelperElement>;
|
|
146
480
|
"p-icon": LocalJSX.PIcon & JSXBase.HTMLAttributes<HTMLPIconElement>;
|
|
147
481
|
"p-illustration": LocalJSX.PIllustration & JSXBase.HTMLAttributes<HTMLPIllustrationElement>;
|
|
482
|
+
"p-info-panel": LocalJSX.PInfoPanel & JSXBase.HTMLAttributes<HTMLPInfoPanelElement>;
|
|
483
|
+
"p-loader": LocalJSX.PLoader & JSXBase.HTMLAttributes<HTMLPLoaderElement>;
|
|
484
|
+
"p-pagination": LocalJSX.PPagination & JSXBase.HTMLAttributes<HTMLPPaginationElement>;
|
|
485
|
+
"p-pagination-item": LocalJSX.PPaginationItem & JSXBase.HTMLAttributes<HTMLPPaginationItemElement>;
|
|
148
486
|
"p-tooltip": LocalJSX.PTooltip & JSXBase.HTMLAttributes<HTMLPTooltipElement>;
|
|
149
487
|
}
|
|
150
488
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paperless/core",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.13",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -38,7 +38,8 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@popperjs/core": "^2.11.5",
|
|
41
|
-
"@stencil/core": "^2.13.0"
|
|
41
|
+
"@stencil/core": "^2.13.0",
|
|
42
|
+
"rxjs": "^7.5.5"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
45
|
"@stencil/angular-output-target": "^0.4.0",
|