@paperless/core 0.0.3-alpha.5 → 0.1.0-alpha.11

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.
Files changed (229) hide show
  1. package/CHANGELOG.md +160 -0
  2. package/README.md +31 -10
  3. package/dist/assets/icons/arrow.svg +2 -2
  4. package/dist/assets/icons/attachment.svg +2 -2
  5. package/dist/assets/icons/bread.svg +2 -2
  6. package/dist/assets/icons/calendar.svg +2 -2
  7. package/dist/assets/icons/car.svg +2 -2
  8. package/dist/assets/icons/checkmark.svg +2 -2
  9. package/dist/assets/icons/chevron.svg +2 -2
  10. package/dist/assets/icons/clock.svg +2 -2
  11. package/dist/assets/icons/cogs.svg +2 -2
  12. package/dist/assets/icons/comment.svg +2 -2
  13. package/dist/assets/icons/document.svg +2 -2
  14. package/dist/assets/icons/download.svg +2 -2
  15. package/dist/assets/icons/envelope.svg +2 -2
  16. package/dist/assets/icons/explanation.svg +2 -2
  17. package/dist/assets/icons/eye.svg +2 -2
  18. package/dist/assets/icons/filter.svg +2 -2
  19. package/dist/assets/icons/grid.svg +2 -2
  20. package/dist/assets/icons/headset.svg +2 -2
  21. package/dist/assets/icons/list.svg +2 -2
  22. package/dist/assets/icons/location.svg +2 -2
  23. package/dist/assets/icons/megaphone.svg +2 -2
  24. package/dist/assets/icons/minus.svg +2 -2
  25. package/dist/assets/icons/negative.svg +2 -2
  26. package/dist/assets/icons/pagination.svg +2 -2
  27. package/dist/assets/icons/payment.svg +2 -2
  28. package/dist/assets/icons/pencil.svg +2 -2
  29. package/dist/assets/icons/person.svg +2 -2
  30. package/dist/assets/icons/plus.svg +2 -2
  31. package/dist/assets/icons/question.svg +2 -2
  32. package/dist/assets/icons/receipt.svg +2 -2
  33. package/dist/assets/icons/report.svg +2 -2
  34. package/dist/assets/icons/search.svg +2 -2
  35. package/dist/assets/icons/settings.svg +2 -2
  36. package/dist/assets/icons/sick.svg +2 -2
  37. package/dist/assets/icons/tachometer.svg +2 -2
  38. package/dist/assets/icons/tool.svg +2 -2
  39. package/dist/assets/icons/trash.svg +2 -2
  40. package/dist/assets/icons/turn.svg +2 -2
  41. package/dist/assets/icons/upload.svg +2 -2
  42. package/dist/assets/icons/warning.svg +2 -2
  43. package/dist/assets/images/avatar/company-default.svg +12 -0
  44. package/dist/assets/images/avatar/user-default.svg +12 -0
  45. package/dist/assets/images/helper/helper-hover.svg +15 -0
  46. package/dist/assets/images/helper/helper.svg +15 -0
  47. package/dist/build/p-06a38756.entry.js +1 -0
  48. package/dist/build/p-19afe191.entry.js +1 -0
  49. package/dist/build/p-229f113b.js +2 -0
  50. package/dist/build/p-23980fbb.entry.js +1 -0
  51. package/dist/build/p-31f80006.entry.js +1 -0
  52. package/dist/build/p-5f0ec763.entry.js +1 -0
  53. package/dist/build/p-6c6c1137.entry.js +1 -0
  54. package/dist/build/p-80bf9d06.entry.js +1 -0
  55. package/dist/build/p-d750cdf6.entry.js +1 -0
  56. package/dist/build/p-e80637b9.entry.js +1 -0
  57. package/dist/build/p-ec52095f.entry.js +1 -0
  58. package/dist/build/paperless.css +21 -10
  59. package/dist/build/paperless.esm.js +1 -1
  60. package/dist/cjs/{index-e3e940d8.js → index-6b6e08cc.js} +641 -15
  61. package/dist/cjs/loader.cjs.js +2 -2
  62. package/dist/cjs/p-avatar.cjs.entry.js +32 -0
  63. package/dist/cjs/p-button_3.cjs.entry.js +905 -0
  64. package/dist/cjs/p-counter.cjs.entry.js +19 -0
  65. package/dist/cjs/p-divider.cjs.entry.js +19 -0
  66. package/dist/cjs/p-helper.cjs.entry.js +19 -0
  67. package/dist/cjs/p-illustration.cjs.entry.js +1423 -0
  68. package/dist/cjs/p-info-panel.cjs.entry.js +31 -0
  69. package/dist/cjs/p-pagination-item.cjs.entry.js +23 -0
  70. package/dist/cjs/p-pagination.cjs.entry.js +164 -0
  71. package/dist/cjs/p-tooltip.cjs.entry.js +1915 -0
  72. package/dist/cjs/paperless.cjs.js +2 -2
  73. package/dist/collection/assets/icons/arrow.svg +2 -2
  74. package/dist/collection/assets/icons/attachment.svg +2 -2
  75. package/dist/collection/assets/icons/bread.svg +2 -2
  76. package/dist/collection/assets/icons/calendar.svg +2 -2
  77. package/dist/collection/assets/icons/car.svg +2 -2
  78. package/dist/collection/assets/icons/checkmark.svg +2 -2
  79. package/dist/collection/assets/icons/chevron.svg +2 -2
  80. package/dist/collection/assets/icons/clock.svg +2 -2
  81. package/dist/collection/assets/icons/cogs.svg +2 -2
  82. package/dist/collection/assets/icons/comment.svg +2 -2
  83. package/dist/collection/assets/icons/document.svg +2 -2
  84. package/dist/collection/assets/icons/download.svg +2 -2
  85. package/dist/collection/assets/icons/envelope.svg +2 -2
  86. package/dist/collection/assets/icons/explanation.svg +2 -2
  87. package/dist/collection/assets/icons/eye.svg +2 -2
  88. package/dist/collection/assets/icons/filter.svg +2 -2
  89. package/dist/collection/assets/icons/grid.svg +2 -2
  90. package/dist/collection/assets/icons/headset.svg +2 -2
  91. package/dist/collection/assets/icons/list.svg +2 -2
  92. package/dist/collection/assets/icons/location.svg +2 -2
  93. package/dist/collection/assets/icons/megaphone.svg +2 -2
  94. package/dist/collection/assets/icons/minus.svg +2 -2
  95. package/dist/collection/assets/icons/negative.svg +2 -2
  96. package/dist/collection/assets/icons/pagination.svg +2 -2
  97. package/dist/collection/assets/icons/payment.svg +2 -2
  98. package/dist/collection/assets/icons/pencil.svg +2 -2
  99. package/dist/collection/assets/icons/person.svg +2 -2
  100. package/dist/collection/assets/icons/plus.svg +2 -2
  101. package/dist/collection/assets/icons/question.svg +2 -2
  102. package/dist/collection/assets/icons/receipt.svg +2 -2
  103. package/dist/collection/assets/icons/report.svg +2 -2
  104. package/dist/collection/assets/icons/search.svg +2 -2
  105. package/dist/collection/assets/icons/settings.svg +2 -2
  106. package/dist/collection/assets/icons/sick.svg +2 -2
  107. package/dist/collection/assets/icons/tachometer.svg +2 -2
  108. package/dist/collection/assets/icons/tool.svg +2 -2
  109. package/dist/collection/assets/icons/trash.svg +2 -2
  110. package/dist/collection/assets/icons/turn.svg +2 -2
  111. package/dist/collection/assets/icons/upload.svg +2 -2
  112. package/dist/collection/assets/icons/warning.svg +2 -2
  113. package/dist/collection/assets/images/avatar/company-default.svg +12 -0
  114. package/dist/collection/assets/images/avatar/user-default.svg +12 -0
  115. package/dist/collection/assets/images/helper/helper-hover.svg +15 -0
  116. package/dist/collection/assets/images/helper/helper.svg +15 -0
  117. package/dist/collection/collection-manifest.json +12 -1
  118. package/dist/collection/components/atoms/avatar/avatar.component.css +31 -0
  119. package/dist/collection/components/atoms/avatar/avatar.component.js +105 -0
  120. package/dist/collection/components/atoms/button/button.component.css +71 -0
  121. package/dist/collection/components/atoms/button/button.component.js +276 -0
  122. package/dist/collection/components/atoms/counter/counter.component.css +5 -0
  123. package/dist/collection/components/atoms/counter/counter.component.js +15 -0
  124. package/dist/collection/components/atoms/divider/divider.component.css +3 -0
  125. package/dist/collection/components/atoms/divider/divider.component.js +14 -0
  126. package/dist/collection/components/atoms/helper/helper.component.css +7 -0
  127. package/dist/collection/components/atoms/helper/helper.component.js +18 -0
  128. package/dist/collection/components/atoms/icon/icon.component.js +107 -0
  129. package/dist/collection/components/atoms/illustration/illustration.component.js +32 -0
  130. package/dist/collection/components/atoms/info-panel/info-panel.component.css +28 -0
  131. package/dist/collection/components/atoms/info-panel/info-panel.component.js +106 -0
  132. package/dist/collection/components/atoms/loader/loader.component.css +26 -0
  133. package/dist/collection/components/atoms/loader/loader.component.js +153 -0
  134. package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +16 -0
  135. package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +41 -0
  136. package/dist/collection/components/atoms/tooltip/tooltip.component.css +37 -0
  137. package/dist/collection/components/atoms/tooltip/tooltip.component.js +264 -0
  138. package/dist/collection/components/molecules/pagination/pagination.component.css +3 -0
  139. package/dist/collection/components/molecules/pagination/pagination.component.js +234 -0
  140. package/dist/collection/tailwind/border-radius.js +2 -0
  141. package/dist/collection/tailwind/grid.js +26 -0
  142. package/dist/collection/tailwind/rotate.js +8 -0
  143. package/dist/collection/tailwind/scale.js +3 -0
  144. package/dist/collection/tailwind.config.js +9 -5
  145. package/dist/collection/utils/icons.js +82 -0
  146. package/dist/collection/utils/illustrations.js +18 -0
  147. package/dist/components/icon.component.js +813 -0
  148. package/dist/components/index.d.ts +11 -0
  149. package/dist/components/index.js +11 -0
  150. package/dist/components/loader.component.js +74 -0
  151. package/dist/components/p-avatar.d.ts +11 -0
  152. package/dist/components/p-avatar.js +52 -0
  153. package/dist/components/p-button.js +68 -9
  154. package/dist/components/p-counter.d.ts +11 -0
  155. package/dist/components/p-counter.js +33 -0
  156. package/dist/components/p-divider.d.ts +11 -0
  157. package/dist/components/p-divider.js +33 -0
  158. package/dist/components/p-helper.d.ts +11 -0
  159. package/dist/components/p-helper.js +39 -0
  160. package/dist/components/p-icon.d.ts +11 -0
  161. package/dist/components/p-icon.js +6 -0
  162. package/dist/components/p-illustration.d.ts +11 -0
  163. package/dist/components/p-illustration.js +1437 -0
  164. package/dist/components/p-info-panel.d.ts +11 -0
  165. package/dist/components/p-info-panel.js +56 -0
  166. package/dist/components/p-loader.d.ts +11 -0
  167. package/dist/components/p-loader.js +6 -0
  168. package/dist/components/p-pagination-item.d.ts +11 -0
  169. package/dist/components/p-pagination-item.js +6 -0
  170. package/dist/components/p-pagination.d.ts +11 -0
  171. package/dist/components/p-pagination.js +193 -0
  172. package/dist/components/p-tooltip.d.ts +11 -0
  173. package/dist/components/p-tooltip.js +6 -0
  174. package/dist/components/pagination-item.component.js +36 -0
  175. package/dist/components/tooltip.component.js +1932 -0
  176. package/dist/esm/{index-100a5ae6.js → index-5c917d13.js} +639 -16
  177. package/dist/esm/loader.js +2 -2
  178. package/dist/esm/p-avatar.entry.js +28 -0
  179. package/dist/esm/p-button_3.entry.js +899 -0
  180. package/dist/esm/p-counter.entry.js +15 -0
  181. package/dist/esm/p-divider.entry.js +15 -0
  182. package/dist/esm/p-helper.entry.js +15 -0
  183. package/dist/esm/p-illustration.entry.js +1419 -0
  184. package/dist/esm/p-info-panel.entry.js +27 -0
  185. package/dist/esm/p-pagination-item.entry.js +19 -0
  186. package/dist/esm/p-pagination.entry.js +160 -0
  187. package/dist/esm/p-tooltip.entry.js +1911 -0
  188. package/dist/esm/paperless.js +2 -2
  189. package/dist/index.html +1 -1
  190. package/dist/paperless/p-06a38756.entry.js +1 -0
  191. package/dist/paperless/p-19afe191.entry.js +1 -0
  192. package/dist/paperless/p-229f113b.js +2 -0
  193. package/dist/paperless/p-23980fbb.entry.js +1 -0
  194. package/dist/paperless/p-31f80006.entry.js +1 -0
  195. package/dist/paperless/p-5f0ec763.entry.js +1 -0
  196. package/dist/paperless/p-6c6c1137.entry.js +1 -0
  197. package/dist/paperless/p-80bf9d06.entry.js +1 -0
  198. package/dist/paperless/p-d750cdf6.entry.js +1 -0
  199. package/dist/paperless/p-e80637b9.entry.js +1 -0
  200. package/dist/paperless/p-ec52095f.entry.js +1 -0
  201. package/dist/paperless/paperless.css +11373 -7666
  202. package/dist/paperless/paperless.esm.js +1 -1
  203. package/dist/sw.js +301 -26
  204. package/dist/tailwind.config.js +9 -5
  205. package/dist/types/components/atoms/avatar/avatar.component.d.ts +21 -0
  206. package/dist/types/components/atoms/button/button.component.d.ts +51 -0
  207. package/dist/types/components/atoms/counter/counter.component.d.ts +3 -0
  208. package/dist/types/components/atoms/divider/divider.component.d.ts +3 -0
  209. package/dist/types/components/atoms/helper/helper.component.d.ts +3 -0
  210. package/dist/types/components/atoms/icon/icon.component.d.ts +23 -0
  211. package/dist/types/components/atoms/illustration/illustration.component.d.ts +9 -0
  212. package/dist/types/components/atoms/info-panel/info-panel.component.d.ts +24 -0
  213. package/dist/types/components/atoms/loader/loader.component.d.ts +30 -0
  214. package/dist/types/components/atoms/pagination-item/pagination-item.component.d.ts +7 -0
  215. package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +40 -0
  216. package/dist/types/components/molecules/pagination/pagination.component.d.ts +36 -0
  217. package/dist/types/components.d.ts +456 -4
  218. package/dist/types/utils/icons.d.ts +43 -0
  219. package/dist/types/utils/illustrations.d.ts +11 -0
  220. package/package.json +5 -2
  221. package/dist/build/p-54459ae1.js +0 -2
  222. package/dist/build/p-e61ff856.entry.js +0 -1
  223. package/dist/cjs/p-button.cjs.entry.js +0 -23
  224. package/dist/collection/components/button/button.component.css +0 -6
  225. package/dist/collection/components/button/button.component.js +0 -41
  226. package/dist/esm/p-button.entry.js +0 -19
  227. package/dist/paperless/p-54459ae1.js +0 -2
  228. package/dist/paperless/p-e61ff856.entry.js +0 -1
  229. package/dist/types/components/button/button.component.d.ts +0 -7
@@ -0,0 +1,36 @@
1
+ /// <reference types="react" />
2
+ import { EventEmitter } from '../../../stencil-public-runtime';
3
+ export declare type SetItem = {
4
+ type: string;
5
+ value?: number | Element | JSX.Element | string;
6
+ };
7
+ export declare class Pagination {
8
+ /**
9
+ * The current page
10
+ */
11
+ page: number;
12
+ /**
13
+ * The amount of items per page
14
+ */
15
+ pageSize: number;
16
+ /**
17
+ * The total amount of items
18
+ */
19
+ total: number;
20
+ /**
21
+ * Button click event
22
+ */
23
+ pageChange: EventEmitter<number>;
24
+ private _pages;
25
+ private _set;
26
+ componentWillRender(): void;
27
+ render(): any;
28
+ protected pageChangeHandler(): void;
29
+ private _generate;
30
+ private _changePage;
31
+ private _previousClick;
32
+ private _nextClick;
33
+ private _pageClick;
34
+ private _generatePages;
35
+ private _generateSet;
36
+ }
@@ -5,41 +5,493 @@
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 { 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";
12
+ import { Placement } from "@popperjs/core";
8
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
+ }
9
32
  interface PButton {
10
33
  /**
11
- * The name
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
12
67
  */
13
- "variant": 'primary' | 'secondary';
68
+ "target": string;
69
+ /**
70
+ * The variant of the button
71
+ */
72
+ "variant": 'primary' | 'secondary' | 'text';
73
+ }
74
+ interface PCounter {
75
+ }
76
+ interface PDivider {
77
+ }
78
+ interface PHelper {
79
+ }
80
+ interface PIcon {
81
+ /**
82
+ * Wether to flip the icon horizontally or vertically
83
+ */
84
+ "flip": IconFlipOptions;
85
+ /**
86
+ * Wether to rotate the icon x degrees
87
+ */
88
+ "rotate": number;
89
+ /**
90
+ * The size of the icon, using tailwind sizes
91
+ */
92
+ "size": string;
93
+ /**
94
+ * The icon the be displayed
95
+ */
96
+ "variant": IconVariant;
97
+ }
98
+ interface PIllustration {
99
+ /**
100
+ * The icon the be displayed
101
+ */
102
+ "variant": IllustrationVariant;
14
103
  }
104
+ interface PInfoPanel {
105
+ /**
106
+ * Wether the panel can be closed
107
+ */
108
+ "closeable": boolean;
109
+ /**
110
+ * The content of the info panel
111
+ */
112
+ "content": string;
113
+ /**
114
+ * The header of the info panel
115
+ */
116
+ "header": string;
117
+ /**
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 current page
147
+ */
148
+ "page": number;
149
+ /**
150
+ * The amount of items per page
151
+ */
152
+ "pageSize": number;
153
+ /**
154
+ * The total amount of items
155
+ */
156
+ "total": 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
171
+ */
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';
185
+ }
186
+ }
187
+ export interface PButtonCustomEvent<T> extends CustomEvent<T> {
188
+ detail: T;
189
+ target: HTMLPButtonElement;
190
+ }
191
+ export interface PPaginationCustomEvent<T> extends CustomEvent<T> {
192
+ detail: T;
193
+ target: HTMLPPaginationElement;
15
194
  }
16
195
  declare global {
196
+ interface HTMLPAvatarElement extends Components.PAvatar, HTMLStencilElement {
197
+ }
198
+ var HTMLPAvatarElement: {
199
+ prototype: HTMLPAvatarElement;
200
+ new (): HTMLPAvatarElement;
201
+ };
17
202
  interface HTMLPButtonElement extends Components.PButton, HTMLStencilElement {
18
203
  }
19
204
  var HTMLPButtonElement: {
20
205
  prototype: HTMLPButtonElement;
21
206
  new (): HTMLPButtonElement;
22
207
  };
208
+ interface HTMLPCounterElement extends Components.PCounter, HTMLStencilElement {
209
+ }
210
+ var HTMLPCounterElement: {
211
+ prototype: HTMLPCounterElement;
212
+ new (): HTMLPCounterElement;
213
+ };
214
+ interface HTMLPDividerElement extends Components.PDivider, HTMLStencilElement {
215
+ }
216
+ var HTMLPDividerElement: {
217
+ prototype: HTMLPDividerElement;
218
+ new (): HTMLPDividerElement;
219
+ };
220
+ interface HTMLPHelperElement extends Components.PHelper, HTMLStencilElement {
221
+ }
222
+ var HTMLPHelperElement: {
223
+ prototype: HTMLPHelperElement;
224
+ new (): HTMLPHelperElement;
225
+ };
226
+ interface HTMLPIconElement extends Components.PIcon, HTMLStencilElement {
227
+ }
228
+ var HTMLPIconElement: {
229
+ prototype: HTMLPIconElement;
230
+ new (): HTMLPIconElement;
231
+ };
232
+ interface HTMLPIllustrationElement extends Components.PIllustration, HTMLStencilElement {
233
+ }
234
+ var HTMLPIllustrationElement: {
235
+ prototype: HTMLPIllustrationElement;
236
+ new (): HTMLPIllustrationElement;
237
+ };
238
+ interface HTMLPInfoPanelElement extends Components.PInfoPanel, HTMLStencilElement {
239
+ }
240
+ var HTMLPInfoPanelElement: {
241
+ prototype: HTMLPInfoPanelElement;
242
+ new (): HTMLPInfoPanelElement;
243
+ };
244
+ interface HTMLPLoaderElement extends Components.PLoader, HTMLStencilElement {
245
+ }
246
+ var HTMLPLoaderElement: {
247
+ prototype: HTMLPLoaderElement;
248
+ new (): HTMLPLoaderElement;
249
+ };
250
+ interface HTMLPPaginationElement extends Components.PPagination, HTMLStencilElement {
251
+ }
252
+ var HTMLPPaginationElement: {
253
+ prototype: HTMLPPaginationElement;
254
+ new (): HTMLPPaginationElement;
255
+ };
256
+ interface HTMLPPaginationItemElement extends Components.PPaginationItem, HTMLStencilElement {
257
+ }
258
+ var HTMLPPaginationItemElement: {
259
+ prototype: HTMLPPaginationItemElement;
260
+ new (): HTMLPPaginationItemElement;
261
+ };
262
+ interface HTMLPTooltipElement extends Components.PTooltip, HTMLStencilElement {
263
+ }
264
+ var HTMLPTooltipElement: {
265
+ prototype: HTMLPTooltipElement;
266
+ new (): HTMLPTooltipElement;
267
+ };
23
268
  interface HTMLElementTagNameMap {
269
+ "p-avatar": HTMLPAvatarElement;
24
270
  "p-button": HTMLPButtonElement;
271
+ "p-counter": HTMLPCounterElement;
272
+ "p-divider": HTMLPDividerElement;
273
+ "p-helper": HTMLPHelperElement;
274
+ "p-icon": HTMLPIconElement;
275
+ "p-illustration": HTMLPIllustrationElement;
276
+ "p-info-panel": HTMLPInfoPanelElement;
277
+ "p-loader": HTMLPLoaderElement;
278
+ "p-pagination": HTMLPPaginationElement;
279
+ "p-pagination-item": HTMLPPaginationItemElement;
280
+ "p-tooltip": HTMLPTooltipElement;
25
281
  }
26
282
  }
27
283
  declare namespace LocalJSX {
284
+ interface PAvatar {
285
+ /**
286
+ * The default image to show on errors
287
+ */
288
+ "defaultImage"?: string;
289
+ /**
290
+ * The size of the avatar
291
+ */
292
+ "size"?: 'small' | 'medium' | 'large';
293
+ /**
294
+ * The image used for the avatar
295
+ */
296
+ "src": string;
297
+ /**
298
+ * The variant of the avatar
299
+ */
300
+ "variant"?: 'user' | 'company';
301
+ }
28
302
  interface PButton {
29
303
  /**
30
- * The name
304
+ * Wether the button is disabled
305
+ */
306
+ "disabled"?: boolean;
307
+ /**
308
+ * Href in case of "text" version
309
+ */
310
+ "href"?: string;
311
+ /**
312
+ * Icon to show on the button
313
+ */
314
+ "icon"?: IconVariant;
315
+ /**
316
+ * Icon flip
317
+ */
318
+ "iconFlip"?: IconFlipOptions;
319
+ /**
320
+ * Icon position
321
+ */
322
+ "iconPosition"?: 'start' | 'end';
323
+ /**
324
+ * Icon rotate
325
+ */
326
+ "iconRotate"?: number;
327
+ /**
328
+ * Wether to show a loader or not
329
+ */
330
+ "loading"?: boolean;
331
+ /**
332
+ * Button click event
333
+ */
334
+ "onOnClick"?: (event: PButtonCustomEvent<MouseEvent>) => void;
335
+ /**
336
+ * The size of the button
337
+ */
338
+ "size"?: 'small' | 'medium';
339
+ /**
340
+ * Target in case of "text" version
341
+ */
342
+ "target"?: string;
343
+ /**
344
+ * The variant of the button
345
+ */
346
+ "variant"?: 'primary' | 'secondary' | 'text';
347
+ }
348
+ interface PCounter {
349
+ }
350
+ interface PDivider {
351
+ }
352
+ interface PHelper {
353
+ }
354
+ interface PIcon {
355
+ /**
356
+ * Wether to flip the icon horizontally or vertically
357
+ */
358
+ "flip"?: IconFlipOptions;
359
+ /**
360
+ * Wether to rotate the icon x degrees
361
+ */
362
+ "rotate"?: number;
363
+ /**
364
+ * The size of the icon, using tailwind sizes
365
+ */
366
+ "size"?: string;
367
+ /**
368
+ * The icon the be displayed
369
+ */
370
+ "variant": IconVariant;
371
+ }
372
+ interface PIllustration {
373
+ /**
374
+ * The icon the be displayed
375
+ */
376
+ "variant": IllustrationVariant;
377
+ }
378
+ interface PInfoPanel {
379
+ /**
380
+ * Wether the panel can be closed
381
+ */
382
+ "closeable"?: boolean;
383
+ /**
384
+ * The content of the info panel
385
+ */
386
+ "content"?: string;
387
+ /**
388
+ * The header of the info panel
389
+ */
390
+ "header"?: string;
391
+ /**
392
+ * The variant of the info panel
393
+ */
394
+ "variant"?: 'info' | 'negative' | 'positive' | 'unbiased';
395
+ }
396
+ interface PLoader {
397
+ /**
398
+ * Color of the loader
399
+ */
400
+ "color"?: 'indigo' | 'white' | 'storm';
401
+ /**
402
+ * !NOT IMPLEMENTED! Modal description for modal variant
403
+ */
404
+ "modalDescription"?: string;
405
+ /**
406
+ * !NOT IMPLEMENTED! Modal title for modal variant
407
+ */
408
+ "modalTitle"?: string;
409
+ /**
410
+ * Wether to show or hide the loader
411
+ */
412
+ "show"?: boolean | Observable<boolean>;
413
+ /**
414
+ * Variant of loader
415
+ */
416
+ "variant"?: 'inline' | 'full-width' | 'full-screen' | 'modal';
417
+ }
418
+ interface PPagination {
419
+ /**
420
+ * Button click event
421
+ */
422
+ "onPageChange"?: (event: PPaginationCustomEvent<number>) => void;
423
+ /**
424
+ * The current page
425
+ */
426
+ "page"?: number;
427
+ /**
428
+ * The amount of items per page
429
+ */
430
+ "pageSize"?: number;
431
+ /**
432
+ * The total amount of items
433
+ */
434
+ "total": number;
435
+ }
436
+ interface PPaginationItem {
437
+ /**
438
+ * Wether the pagination item is active
439
+ */
440
+ "active"?: boolean;
441
+ }
442
+ interface PTooltip {
443
+ /**
444
+ * Wether to someone can manually close the popover
445
+ */
446
+ "canManuallyClose"?: boolean;
447
+ /**
448
+ * The content of the popover
449
+ */
450
+ "placement"?: Placement;
451
+ /**
452
+ * The content of the popover
453
+ */
454
+ "popover"?: any;
455
+ /**
456
+ * Wether to show the popover
457
+ */
458
+ "show"?: boolean;
459
+ /**
460
+ * The variant of the popover
31
461
  */
32
- "variant"?: 'primary' | 'secondary';
462
+ "variant"?: 'hover' | 'click';
33
463
  }
34
464
  interface IntrinsicElements {
465
+ "p-avatar": PAvatar;
35
466
  "p-button": PButton;
467
+ "p-counter": PCounter;
468
+ "p-divider": PDivider;
469
+ "p-helper": PHelper;
470
+ "p-icon": PIcon;
471
+ "p-illustration": PIllustration;
472
+ "p-info-panel": PInfoPanel;
473
+ "p-loader": PLoader;
474
+ "p-pagination": PPagination;
475
+ "p-pagination-item": PPaginationItem;
476
+ "p-tooltip": PTooltip;
36
477
  }
37
478
  }
38
479
  export { LocalJSX as JSX };
39
480
  declare module "@stencil/core" {
40
481
  export namespace JSX {
41
482
  interface IntrinsicElements {
483
+ "p-avatar": LocalJSX.PAvatar & JSXBase.HTMLAttributes<HTMLPAvatarElement>;
42
484
  "p-button": LocalJSX.PButton & JSXBase.HTMLAttributes<HTMLPButtonElement>;
485
+ "p-counter": LocalJSX.PCounter & JSXBase.HTMLAttributes<HTMLPCounterElement>;
486
+ "p-divider": LocalJSX.PDivider & JSXBase.HTMLAttributes<HTMLPDividerElement>;
487
+ "p-helper": LocalJSX.PHelper & JSXBase.HTMLAttributes<HTMLPHelperElement>;
488
+ "p-icon": LocalJSX.PIcon & JSXBase.HTMLAttributes<HTMLPIconElement>;
489
+ "p-illustration": LocalJSX.PIllustration & JSXBase.HTMLAttributes<HTMLPIllustrationElement>;
490
+ "p-info-panel": LocalJSX.PInfoPanel & JSXBase.HTMLAttributes<HTMLPInfoPanelElement>;
491
+ "p-loader": LocalJSX.PLoader & JSXBase.HTMLAttributes<HTMLPLoaderElement>;
492
+ "p-pagination": LocalJSX.PPagination & JSXBase.HTMLAttributes<HTMLPPaginationElement>;
493
+ "p-pagination-item": LocalJSX.PPaginationItem & JSXBase.HTMLAttributes<HTMLPPaginationItemElement>;
494
+ "p-tooltip": LocalJSX.PTooltip & JSXBase.HTMLAttributes<HTMLPTooltipElement>;
43
495
  }
44
496
  }
45
497
  }
@@ -0,0 +1,43 @@
1
+ declare const _default: {
2
+ arrow: string;
3
+ attachment: string;
4
+ bread: string;
5
+ calendar: string;
6
+ car: string;
7
+ checkmark: string;
8
+ chevron: string;
9
+ clock: string;
10
+ cogs: string;
11
+ comment: string;
12
+ document: string;
13
+ download: string;
14
+ envelope: string;
15
+ explanation: string;
16
+ eye: string;
17
+ filter: string;
18
+ grid: string;
19
+ headset: string;
20
+ list: string;
21
+ location: string;
22
+ megaphone: string;
23
+ minus: string;
24
+ negative: string;
25
+ pagination: string;
26
+ payment: string;
27
+ pencil: string;
28
+ person: string;
29
+ plus: string;
30
+ question: string;
31
+ receipt: string;
32
+ report: string;
33
+ search: string;
34
+ settings: string;
35
+ sick: string;
36
+ tachometer: string;
37
+ tool: string;
38
+ trash: string;
39
+ turn: string;
40
+ upload: string;
41
+ warning: string;
42
+ };
43
+ export default _default;
@@ -0,0 +1,11 @@
1
+ declare const _default: {
2
+ 'empty-state': string;
3
+ departments: string;
4
+ expenses: string;
5
+ functions: string;
6
+ questions: string;
7
+ 'sick-leave': string;
8
+ 'time-off': string;
9
+ 'upgrade-to-hr': string;
10
+ };
11
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paperless/core",
3
- "version": "0.0.3-alpha.5",
3
+ "version": "0.1.0-alpha.11",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -37,7 +37,9 @@
37
37
  "yarn:publish": "yarn publish"
38
38
  },
39
39
  "dependencies": {
40
- "@stencil/core": "^2.13.0"
40
+ "@popperjs/core": "^2.11.5",
41
+ "@stencil/core": "^2.13.0",
42
+ "rxjs": "^7.5.5"
41
43
  },
42
44
  "devDependencies": {
43
45
  "@stencil/angular-output-target": "^0.4.0",
@@ -52,6 +54,7 @@
52
54
  "jest": "^27.4.5",
53
55
  "jest-cli": "^27.4.5",
54
56
  "puppeteer": "^10.0.0",
57
+ "stencil-inline-svg": "^1.1.0",
55
58
  "stencil-tailwind-plugin": "^1.3.0",
56
59
  "tailwindcss": "~3.1.4",
57
60
  "workbox-build": "4.3.1"
@@ -1,2 +0,0 @@
1
- let e,t,n=!1;const l="undefined"!=typeof window?window:{},s=l.document||{head:{}},o={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},r=e=>Promise.resolve(e),c=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),i=new WeakMap,u=e=>"sc-"+e.o,a={},f=e=>"object"==(e=typeof e)||"function"===e,$=(e,t,...n)=>{let l=null,s=!1,o=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!f(l))&&(l+=""),s&&o?r[r.length-1].i+=l:r.push(s?h(null,l):l),o=s)};if(c(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const i=h(e,null);return i.u=t,r.length>0&&(i.$=r),i},h=(e,t)=>({t:0,h:e,i:t,p:null,$:null,u:null}),p={},d=(e,t,n,l)=>{if(n!==l&&(t.toLowerCase(),"class"===t)){const t=e.classList,s=m(n),o=m(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}},y=/\s/,m=e=>e?e.split(y):[],b=(e,t,n,l)=>{const s=11===t.p.nodeType&&t.p.host?t.p.host:t.p,o=e&&e.u||a,r=t.u||a;for(l in o)l in r||d(s,l,o[l],void 0);for(l in r)d(s,l,o[l],r[l])},w=(t,n,l)=>{const o=n.$[l];let r,c,i=0;if(r=o.p=s.createElement(o.h),b(null,o),null!=e&&r["s-si"]!==e&&r.classList.add(r["s-si"]=e),o.$)for(i=0;i<o.$.length;++i)c=w(t,o,i),c&&r.appendChild(c);return r},S=(e,n,l,s,o,r)=>{let c,i=e;for(i.shadowRoot&&i.tagName===t&&(i=i.shadowRoot);o<=r;++o)s[o]&&(c=w(null,l,o),c&&(s[o].p=c,i.insertBefore(c,n)))},g=(e,t,n,l)=>{for(;t<=n;++t)(l=e[t])&&l.p.remove()},j=(e,t)=>e.h===t.h,v=(e,t)=>{const n=t.p=e.p,l=e.$,s=t.$;"slot"===t.h||b(e,t),null!==l&&null!==s?((e,t,n,l)=>{let s,o=0,r=0,c=t.length-1,i=t[0],u=t[c],a=l.length-1,f=l[0],$=l[a];for(;o<=c&&r<=a;)null==i?i=t[++o]:null==u?u=t[--c]:null==f?f=l[++r]:null==$?$=l[--a]:j(i,f)?(v(i,f),i=t[++o],f=l[++r]):j(u,$)?(v(u,$),u=t[--c],$=l[--a]):j(i,$)?(v(i,$),e.insertBefore(i.p,u.p.nextSibling),i=t[++o],$=l[--a]):j(u,f)?(v(u,f),e.insertBefore(u.p,i.p),u=t[--c],f=l[++r]):(s=w(t&&t[r],n,r),f=l[++r],s&&i.p.parentNode.insertBefore(s,i.p));o>c?S(e,null==l[a+1]?null:l[a+1].p,n,l,r,a):r>a&&g(t,o,c)})(n,l,t,s):null!==s?S(n,null,t,s,0,s.length-1):null!==l&&g(l,0,l.length-1)},M=(e,t)=>{t&&!e.m&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.m=t)))},k=(e,t)=>{if(e.t|=16,!(4&e.t))return M(e,e.S),K((()=>C(e,t)));e.t|=512},C=(e,t)=>{const n=e.g;return N(void 0,(()=>O(e,n,t)))},O=async(e,t,n)=>{const l=e.j,o=l["s-rc"];n&&(e=>{const t=e.v,n=e.j,l=t.t,o=((e,t)=>{let n=u(t);const l=_.get(n);if(e=11===e.nodeType?e:s,l)if("string"==typeof l){let t,o=i.get(e=e.head||e);o||i.set(e,o=new Set),o.has(n)||(t=s.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);P(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>x(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},P=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.j,o=n.M||h(null,null),r=(e=>e&&e.h===p)(l)?l:$(null,null,l);t=s.tagName,r.h=null,r.t|=4,n.M=r,r.p=o.p=s.shadowRoot||s,e=s["s-sc"],v(o,r)})(n,l)}catch(e){F(e,n.j)}return null},x=e=>{const t=e.j,n=e.S;64&e.t||(e.t|=64,T(t),e.k(t),n||E()),e.m&&(e.m(),e.m=void 0),512&e.t&&J((()=>k(e,!1))),e.t&=-517},E=()=>{T(s.documentElement),J((()=>(e=>{const t=o.ce("appload",{detail:{namespace:"paperless"}});return e.dispatchEvent(t),t})(l)))},N=(e,t)=>e&&e.then?e.then(t):t(),T=e=>e.classList.add("hydrated"),A=(e,t,n)=>{if(t.C){const l=Object.entries(t.C),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>U(this).O.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=U(e),o=s.O.get(t),r=s.t,c=s.g;n=((e,t)=>null==e||f(e)?e:1&t?e+"":e)(n,l.C[t][0]),8&r&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(s.O.set(t,n),c&&2==(18&r)&&k(s,!1))})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const t=new Map;s.attributeChangedCallback=function(e,n,l){o.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},L=(e,t={})=>{const n=[],r=t.exclude||[],i=l.customElements,a=s.head,f=a.querySelector("meta[charset]"),$=s.createElement("style"),h=[];let p,d=!0;Object.assign(o,t),o.l=new URL(t.resourcesUrl||"./",s.baseURI).href,e.map((e=>{e[1].map((t=>{const l={t:t[0],o:t[1],C:t[2],P:t[3]};l.C=t[2];const s=l.o,a=class extends HTMLElement{constructor(e){super(e),q(e=this,l),1&l.t&&e.attachShadow({mode:"open"})}connectedCallback(){p&&(clearTimeout(p),p=null),d?h.push(this):o.jmp((()=>(e=>{if(0==(1&o.t)){const t=U(e),n=t.v,l=()=>{};if(!(1&t.t)){t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){M(t,t.S=n);break}}n.C&&Object.entries(n.C).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=V(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(A(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){F(e)}t.t&=-9,e()}if(s.style){let e=s.style;const t=u(n);if(!_.has(t)){const l=()=>{};((e,t,n)=>{let l=_.get(e);c&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,_.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.S,r=()=>k(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){o.jmp((()=>{}))}componentOnReady(){return U(this).N}};l.T=e[0],r.includes(s)||i.get(s)||(n.push(s),i.define(s,A(a,l,1)))}))})),$.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",$.setAttribute("data-styles",""),a.insertBefore($,f?f.nextSibling:a.firstChild),d=!1,h.length?h.map((e=>e.connectedCallback())):o.jmp((()=>p=setTimeout(E,30)))},R=new WeakMap,U=e=>R.get(e),W=(e,t)=>R.set(t.g=e,t),q=(e,t)=>{const n={t:0,j:e,v:t,O:new Map};return n.N=new Promise((e=>n.k=e)),e["s-p"]=[],e["s-rc"]=[],R.set(e,n)},F=(e,t)=>(0,console.error)(e,t),H=new Map,V=e=>{const t=e.o.replace(/-/g,"_"),n=e.T,l=H.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(H.set(n,e),e[t])),F)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},_=new Map,z=[],B=[],D=(e,t)=>l=>{e.push(l),n||(n=!0,t&&4&o.t?J(I):o.raf(I))},G=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){F(e)}e.length=0},I=()=>{G(z),G(B),(n=z.length>0)&&o.raf(I)},J=e=>r().then(e),K=D(B,!0);export{L as b,$ as h,r as p,W as r}