@paperless/core 0.1.0-alpha.0 → 0.1.0-alpha.10
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 +98 -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/{paperless/p-98d636b6.entry.js → build/p-22129b00.entry.js} +1 -1
- package/dist/build/p-44a929c9.entry.js +1 -0
- package/dist/build/p-6794871e.entry.js +1 -0
- package/dist/build/p-8cb80a47.entry.js +1 -0
- package/dist/build/p-a2fc051b.entry.js +1 -0
- package/dist/build/p-a4ea5760.entry.js +1 -0
- package/dist/build/p-b4ef7a57.entry.js +1 -0
- package/dist/build/p-fa6ab882.js +2 -0
- package/dist/build/paperless.css +4 -3
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/{index-6758a39e.js → index-7caa3dae.js} +455 -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-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-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 +9 -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/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/tooltip/tooltip.component.css +37 -0
- package/dist/collection/components/{tooltip → atoms/tooltip}/tooltip.component.js +122 -32
- 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 +6 -1
- package/dist/components/index.js +5 -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-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-tooltip.js +1 -1886
- package/dist/components/tooltip.component.js +1932 -0
- package/dist/esm/{index-e4d80e41.js → index-d61d31b2.js} +455 -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-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-tooltip.entry.js +62 -20
- package/dist/esm/paperless.js +2 -2
- package/dist/index.html +1 -1
- package/dist/{build/p-98d636b6.entry.js → paperless/p-22129b00.entry.js} +1 -1
- package/dist/paperless/p-44a929c9.entry.js +1 -0
- package/dist/paperless/p-6794871e.entry.js +1 -0
- package/dist/paperless/p-8cb80a47.entry.js +1 -0
- package/dist/paperless/p-a2fc051b.entry.js +1 -0
- package/dist/paperless/p-a4ea5760.entry.js +1 -0
- package/dist/paperless/p-b4ef7a57.entry.js +1 -0
- package/dist/paperless/p-fa6ab882.js +2 -0
- package/dist/paperless/paperless.css +3843 -201
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +169 -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/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/tooltip/tooltip.component.d.ts +40 -0
- package/dist/types/components.d.ts +287 -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
|
@@ -5,21 +5,81 @@
|
|
|
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 PHelper {
|
|
17
77
|
}
|
|
18
78
|
interface PIcon {
|
|
19
79
|
/**
|
|
20
80
|
* Wether to flip the icon horizontally or vertically
|
|
21
81
|
*/
|
|
22
|
-
"flip":
|
|
82
|
+
"flip": IconFlipOptions;
|
|
23
83
|
/**
|
|
24
84
|
* Wether to rotate the icon x degrees
|
|
25
85
|
*/
|
|
@@ -39,28 +99,98 @@ export namespace Components {
|
|
|
39
99
|
*/
|
|
40
100
|
"variant": IllustrationVariant;
|
|
41
101
|
}
|
|
42
|
-
interface
|
|
102
|
+
interface PInfoPanel {
|
|
103
|
+
/**
|
|
104
|
+
* Wether the panel can be closed
|
|
105
|
+
*/
|
|
106
|
+
"closeable": boolean;
|
|
43
107
|
/**
|
|
44
|
-
* The content of the
|
|
108
|
+
* The content of the info panel
|
|
45
109
|
*/
|
|
46
|
-
"content":
|
|
110
|
+
"content": string;
|
|
47
111
|
/**
|
|
48
|
-
*
|
|
112
|
+
* The header of the info panel
|
|
49
113
|
*/
|
|
50
|
-
"
|
|
114
|
+
"header": string;
|
|
51
115
|
/**
|
|
52
|
-
* The
|
|
116
|
+
* The variant of the info panel
|
|
117
|
+
*/
|
|
118
|
+
"variant": 'info' | 'negative' | 'positive' | 'unbiased';
|
|
119
|
+
}
|
|
120
|
+
interface PLoader {
|
|
121
|
+
/**
|
|
122
|
+
* Color of the loader
|
|
123
|
+
*/
|
|
124
|
+
"color": 'indigo' | 'white' | 'storm';
|
|
125
|
+
/**
|
|
126
|
+
* !NOT IMPLEMENTED! Modal description for modal variant
|
|
127
|
+
*/
|
|
128
|
+
"modalDescription": string;
|
|
129
|
+
/**
|
|
130
|
+
* !NOT IMPLEMENTED! Modal title for modal variant
|
|
131
|
+
*/
|
|
132
|
+
"modalTitle": string;
|
|
133
|
+
/**
|
|
134
|
+
* Wether to show or hide the loader
|
|
135
|
+
*/
|
|
136
|
+
"show": boolean | Observable<boolean>;
|
|
137
|
+
/**
|
|
138
|
+
* Variant of loader
|
|
139
|
+
*/
|
|
140
|
+
"variant": 'inline' | 'full-width' | 'full-screen' | 'modal';
|
|
141
|
+
}
|
|
142
|
+
interface PTooltip {
|
|
143
|
+
/**
|
|
144
|
+
* Wether to someone can manually close the popover
|
|
145
|
+
*/
|
|
146
|
+
"canManuallyClose": boolean;
|
|
147
|
+
/**
|
|
148
|
+
* The content of the popover
|
|
53
149
|
*/
|
|
54
150
|
"placement": Placement;
|
|
151
|
+
/**
|
|
152
|
+
* The content of the popover
|
|
153
|
+
*/
|
|
154
|
+
"popover": any;
|
|
155
|
+
/**
|
|
156
|
+
* Wether to show the popover
|
|
157
|
+
*/
|
|
158
|
+
"show": boolean;
|
|
159
|
+
/**
|
|
160
|
+
* The variant of the popover
|
|
161
|
+
*/
|
|
162
|
+
"variant": 'hover' | 'click';
|
|
55
163
|
}
|
|
56
164
|
}
|
|
165
|
+
export interface PButtonCustomEvent<T> extends CustomEvent<T> {
|
|
166
|
+
detail: T;
|
|
167
|
+
target: HTMLPButtonElement;
|
|
168
|
+
}
|
|
57
169
|
declare global {
|
|
170
|
+
interface HTMLPAvatarElement extends Components.PAvatar, HTMLStencilElement {
|
|
171
|
+
}
|
|
172
|
+
var HTMLPAvatarElement: {
|
|
173
|
+
prototype: HTMLPAvatarElement;
|
|
174
|
+
new (): HTMLPAvatarElement;
|
|
175
|
+
};
|
|
58
176
|
interface HTMLPButtonElement extends Components.PButton, HTMLStencilElement {
|
|
59
177
|
}
|
|
60
178
|
var HTMLPButtonElement: {
|
|
61
179
|
prototype: HTMLPButtonElement;
|
|
62
180
|
new (): HTMLPButtonElement;
|
|
63
181
|
};
|
|
182
|
+
interface HTMLPCounterElement extends Components.PCounter, HTMLStencilElement {
|
|
183
|
+
}
|
|
184
|
+
var HTMLPCounterElement: {
|
|
185
|
+
prototype: HTMLPCounterElement;
|
|
186
|
+
new (): HTMLPCounterElement;
|
|
187
|
+
};
|
|
188
|
+
interface HTMLPHelperElement extends Components.PHelper, HTMLStencilElement {
|
|
189
|
+
}
|
|
190
|
+
var HTMLPHelperElement: {
|
|
191
|
+
prototype: HTMLPHelperElement;
|
|
192
|
+
new (): HTMLPHelperElement;
|
|
193
|
+
};
|
|
64
194
|
interface HTMLPIconElement extends Components.PIcon, HTMLStencilElement {
|
|
65
195
|
}
|
|
66
196
|
var HTMLPIconElement: {
|
|
@@ -73,6 +203,18 @@ declare global {
|
|
|
73
203
|
prototype: HTMLPIllustrationElement;
|
|
74
204
|
new (): HTMLPIllustrationElement;
|
|
75
205
|
};
|
|
206
|
+
interface HTMLPInfoPanelElement extends Components.PInfoPanel, HTMLStencilElement {
|
|
207
|
+
}
|
|
208
|
+
var HTMLPInfoPanelElement: {
|
|
209
|
+
prototype: HTMLPInfoPanelElement;
|
|
210
|
+
new (): HTMLPInfoPanelElement;
|
|
211
|
+
};
|
|
212
|
+
interface HTMLPLoaderElement extends Components.PLoader, HTMLStencilElement {
|
|
213
|
+
}
|
|
214
|
+
var HTMLPLoaderElement: {
|
|
215
|
+
prototype: HTMLPLoaderElement;
|
|
216
|
+
new (): HTMLPLoaderElement;
|
|
217
|
+
};
|
|
76
218
|
interface HTMLPTooltipElement extends Components.PTooltip, HTMLStencilElement {
|
|
77
219
|
}
|
|
78
220
|
var HTMLPTooltipElement: {
|
|
@@ -80,24 +222,91 @@ declare global {
|
|
|
80
222
|
new (): HTMLPTooltipElement;
|
|
81
223
|
};
|
|
82
224
|
interface HTMLElementTagNameMap {
|
|
225
|
+
"p-avatar": HTMLPAvatarElement;
|
|
83
226
|
"p-button": HTMLPButtonElement;
|
|
227
|
+
"p-counter": HTMLPCounterElement;
|
|
228
|
+
"p-helper": HTMLPHelperElement;
|
|
84
229
|
"p-icon": HTMLPIconElement;
|
|
85
230
|
"p-illustration": HTMLPIllustrationElement;
|
|
231
|
+
"p-info-panel": HTMLPInfoPanelElement;
|
|
232
|
+
"p-loader": HTMLPLoaderElement;
|
|
86
233
|
"p-tooltip": HTMLPTooltipElement;
|
|
87
234
|
}
|
|
88
235
|
}
|
|
89
236
|
declare namespace LocalJSX {
|
|
237
|
+
interface PAvatar {
|
|
238
|
+
/**
|
|
239
|
+
* The default image to show on errors
|
|
240
|
+
*/
|
|
241
|
+
"defaultImage"?: string;
|
|
242
|
+
/**
|
|
243
|
+
* The size of the avatar
|
|
244
|
+
*/
|
|
245
|
+
"size"?: 'small' | 'medium' | 'large';
|
|
246
|
+
/**
|
|
247
|
+
* The image used for the avatar
|
|
248
|
+
*/
|
|
249
|
+
"src": string;
|
|
250
|
+
/**
|
|
251
|
+
* The variant of the avatar
|
|
252
|
+
*/
|
|
253
|
+
"variant"?: 'user' | 'company';
|
|
254
|
+
}
|
|
90
255
|
interface PButton {
|
|
256
|
+
/**
|
|
257
|
+
* Wether the button is disabled
|
|
258
|
+
*/
|
|
259
|
+
"disabled"?: boolean;
|
|
260
|
+
/**
|
|
261
|
+
* Href in case of "text" version
|
|
262
|
+
*/
|
|
263
|
+
"href"?: string;
|
|
264
|
+
/**
|
|
265
|
+
* Icon to show on the button
|
|
266
|
+
*/
|
|
267
|
+
"icon"?: IconVariant;
|
|
268
|
+
/**
|
|
269
|
+
* Icon flip
|
|
270
|
+
*/
|
|
271
|
+
"iconFlip"?: IconFlipOptions;
|
|
272
|
+
/**
|
|
273
|
+
* Icon position
|
|
274
|
+
*/
|
|
275
|
+
"iconPosition"?: 'start' | 'end';
|
|
276
|
+
/**
|
|
277
|
+
* Icon rotate
|
|
278
|
+
*/
|
|
279
|
+
"iconRotate"?: number;
|
|
280
|
+
/**
|
|
281
|
+
* Wether to show a loader or not
|
|
282
|
+
*/
|
|
283
|
+
"loading"?: boolean;
|
|
284
|
+
/**
|
|
285
|
+
* Button click event
|
|
286
|
+
*/
|
|
287
|
+
"onOnClick"?: (event: PButtonCustomEvent<MouseEvent>) => void;
|
|
288
|
+
/**
|
|
289
|
+
* The size of the button
|
|
290
|
+
*/
|
|
291
|
+
"size"?: 'small' | 'medium';
|
|
292
|
+
/**
|
|
293
|
+
* Target in case of "text" version
|
|
294
|
+
*/
|
|
295
|
+
"target"?: string;
|
|
91
296
|
/**
|
|
92
297
|
* The variant of the button
|
|
93
298
|
*/
|
|
94
|
-
"variant"?: 'primary' | 'secondary';
|
|
299
|
+
"variant"?: 'primary' | 'secondary' | 'text';
|
|
300
|
+
}
|
|
301
|
+
interface PCounter {
|
|
302
|
+
}
|
|
303
|
+
interface PHelper {
|
|
95
304
|
}
|
|
96
305
|
interface PIcon {
|
|
97
306
|
/**
|
|
98
307
|
* Wether to flip the icon horizontally or vertically
|
|
99
308
|
*/
|
|
100
|
-
"flip"?:
|
|
309
|
+
"flip"?: IconFlipOptions;
|
|
101
310
|
/**
|
|
102
311
|
* Wether to rotate the icon x degrees
|
|
103
312
|
*/
|
|
@@ -109,32 +318,85 @@ declare namespace LocalJSX {
|
|
|
109
318
|
/**
|
|
110
319
|
* The icon the be displayed
|
|
111
320
|
*/
|
|
112
|
-
"variant"
|
|
321
|
+
"variant": IconVariant;
|
|
113
322
|
}
|
|
114
323
|
interface PIllustration {
|
|
115
324
|
/**
|
|
116
325
|
* The icon the be displayed
|
|
117
326
|
*/
|
|
118
|
-
"variant"
|
|
327
|
+
"variant": IllustrationVariant;
|
|
119
328
|
}
|
|
120
|
-
interface
|
|
329
|
+
interface PInfoPanel {
|
|
330
|
+
/**
|
|
331
|
+
* Wether the panel can be closed
|
|
332
|
+
*/
|
|
333
|
+
"closeable"?: boolean;
|
|
121
334
|
/**
|
|
122
|
-
* The content of the
|
|
335
|
+
* The content of the info panel
|
|
123
336
|
*/
|
|
124
|
-
"content"?:
|
|
337
|
+
"content"?: string;
|
|
125
338
|
/**
|
|
126
|
-
*
|
|
339
|
+
* The header of the info panel
|
|
127
340
|
*/
|
|
128
|
-
"
|
|
341
|
+
"header"?: string;
|
|
129
342
|
/**
|
|
130
|
-
* The
|
|
343
|
+
* The variant of the info panel
|
|
344
|
+
*/
|
|
345
|
+
"variant"?: 'info' | 'negative' | 'positive' | 'unbiased';
|
|
346
|
+
}
|
|
347
|
+
interface PLoader {
|
|
348
|
+
/**
|
|
349
|
+
* Color of the loader
|
|
350
|
+
*/
|
|
351
|
+
"color"?: 'indigo' | 'white' | 'storm';
|
|
352
|
+
/**
|
|
353
|
+
* !NOT IMPLEMENTED! Modal description for modal variant
|
|
354
|
+
*/
|
|
355
|
+
"modalDescription"?: string;
|
|
356
|
+
/**
|
|
357
|
+
* !NOT IMPLEMENTED! Modal title for modal variant
|
|
358
|
+
*/
|
|
359
|
+
"modalTitle"?: string;
|
|
360
|
+
/**
|
|
361
|
+
* Wether to show or hide the loader
|
|
362
|
+
*/
|
|
363
|
+
"show"?: boolean | Observable<boolean>;
|
|
364
|
+
/**
|
|
365
|
+
* Variant of loader
|
|
366
|
+
*/
|
|
367
|
+
"variant"?: 'inline' | 'full-width' | 'full-screen' | 'modal';
|
|
368
|
+
}
|
|
369
|
+
interface PTooltip {
|
|
370
|
+
/**
|
|
371
|
+
* Wether to someone can manually close the popover
|
|
372
|
+
*/
|
|
373
|
+
"canManuallyClose"?: boolean;
|
|
374
|
+
/**
|
|
375
|
+
* The content of the popover
|
|
131
376
|
*/
|
|
132
377
|
"placement"?: Placement;
|
|
378
|
+
/**
|
|
379
|
+
* The content of the popover
|
|
380
|
+
*/
|
|
381
|
+
"popover"?: any;
|
|
382
|
+
/**
|
|
383
|
+
* Wether to show the popover
|
|
384
|
+
*/
|
|
385
|
+
"show"?: boolean;
|
|
386
|
+
/**
|
|
387
|
+
* The variant of the popover
|
|
388
|
+
*/
|
|
389
|
+
"variant"?: 'hover' | 'click';
|
|
133
390
|
}
|
|
134
391
|
interface IntrinsicElements {
|
|
392
|
+
"p-avatar": PAvatar;
|
|
135
393
|
"p-button": PButton;
|
|
394
|
+
"p-counter": PCounter;
|
|
395
|
+
"p-helper": PHelper;
|
|
136
396
|
"p-icon": PIcon;
|
|
137
397
|
"p-illustration": PIllustration;
|
|
398
|
+
"p-info-panel": PInfoPanel;
|
|
399
|
+
"p-loader": PLoader;
|
|
138
400
|
"p-tooltip": PTooltip;
|
|
139
401
|
}
|
|
140
402
|
}
|
|
@@ -142,9 +404,14 @@ export { LocalJSX as JSX };
|
|
|
142
404
|
declare module "@stencil/core" {
|
|
143
405
|
export namespace JSX {
|
|
144
406
|
interface IntrinsicElements {
|
|
407
|
+
"p-avatar": LocalJSX.PAvatar & JSXBase.HTMLAttributes<HTMLPAvatarElement>;
|
|
145
408
|
"p-button": LocalJSX.PButton & JSXBase.HTMLAttributes<HTMLPButtonElement>;
|
|
409
|
+
"p-counter": LocalJSX.PCounter & JSXBase.HTMLAttributes<HTMLPCounterElement>;
|
|
410
|
+
"p-helper": LocalJSX.PHelper & JSXBase.HTMLAttributes<HTMLPHelperElement>;
|
|
146
411
|
"p-icon": LocalJSX.PIcon & JSXBase.HTMLAttributes<HTMLPIconElement>;
|
|
147
412
|
"p-illustration": LocalJSX.PIllustration & JSXBase.HTMLAttributes<HTMLPIllustrationElement>;
|
|
413
|
+
"p-info-panel": LocalJSX.PInfoPanel & JSXBase.HTMLAttributes<HTMLPInfoPanelElement>;
|
|
414
|
+
"p-loader": LocalJSX.PLoader & JSXBase.HTMLAttributes<HTMLPLoaderElement>;
|
|
148
415
|
"p-tooltip": LocalJSX.PTooltip & JSXBase.HTMLAttributes<HTMLPTooltipElement>;
|
|
149
416
|
}
|
|
150
417
|
}
|
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.10",
|
|
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",
|