@paperless/core 0.1.0-alpha.3 → 0.1.0-alpha.33

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 (214) hide show
  1. package/CHANGELOG.md +303 -0
  2. package/README.md +18 -1
  3. package/dist/assets/icons/checklist.svg +17 -0
  4. package/dist/assets/icons/folder.svg +19 -0
  5. package/dist/assets/icons/integration.svg +17 -0
  6. package/dist/assets/icons/task.svg +17 -0
  7. package/dist/assets/icons/template.svg +17 -0
  8. package/dist/assets/images/avatar/company-default.svg +12 -0
  9. package/dist/assets/images/avatar/user-default.svg +12 -0
  10. package/dist/assets/images/helper/helper-hover.svg +15 -0
  11. package/dist/assets/images/helper/helper.svg +15 -0
  12. package/dist/build/p-17c11169.entry.js +1 -0
  13. package/dist/build/p-41e5458b.entry.js +1 -0
  14. package/dist/build/p-42dab9d4.entry.js +1 -0
  15. package/dist/build/p-47b52f92.entry.js +1 -0
  16. package/dist/build/p-5ec6ea71.entry.js +1 -0
  17. package/dist/build/p-75f909ab.entry.js +1 -0
  18. package/dist/build/p-76464e0b.js +2 -0
  19. package/dist/build/{p-f04c4de0.entry.js → p-8501ba07.entry.js} +1 -1
  20. package/dist/build/p-87356769.entry.js +1 -0
  21. package/dist/build/p-9513868f.entry.js +1 -0
  22. package/dist/build/p-a669807e.entry.js +1 -0
  23. package/dist/build/p-a7086ffa.js +1 -0
  24. package/dist/build/p-aa28fef8.entry.js +1 -0
  25. package/dist/build/p-aae3d4f0.entry.js +1 -0
  26. package/dist/build/p-adcb0b93.entry.js +1 -0
  27. package/dist/build/p-bbec0e86.entry.js +1 -0
  28. package/dist/build/p-e7019eab.entry.js +1 -0
  29. package/dist/build/p-f689996b.entry.js +1 -0
  30. package/dist/build/p-faa4ee42.entry.js +1 -0
  31. package/dist/build/paperless.esm.js +1 -1
  32. package/dist/cjs/{index-a2da05ae.js → index-a46a39a5.js} +88 -2
  33. package/dist/cjs/loader.cjs.js +2 -2
  34. package/dist/cjs/p-avatar.cjs.entry.js +32 -0
  35. package/dist/cjs/p-button_3.cjs.entry.js +116 -14
  36. package/dist/cjs/p-counter.cjs.entry.js +19 -0
  37. package/dist/cjs/p-divider.cjs.entry.js +19 -0
  38. package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +19 -0
  39. package/dist/cjs/p-dropdown-menu-item.cjs.entry.js +23 -0
  40. package/dist/cjs/p-dropdown.cjs.entry.js +141 -0
  41. package/dist/cjs/p-helper.cjs.entry.js +19 -0
  42. package/dist/cjs/p-illustration.cjs.entry.js +9 -12
  43. package/dist/cjs/p-info-panel.cjs.entry.js +31 -0
  44. package/dist/cjs/p-navigation-item.cjs.entry.js +23 -0
  45. package/dist/cjs/p-pagination-item.cjs.entry.js +23 -0
  46. package/dist/cjs/p-pagination.cjs.entry.js +171 -0
  47. package/dist/cjs/p-segment-container.cjs.entry.js +19 -0
  48. package/dist/cjs/p-segment-item.cjs.entry.js +29 -0
  49. package/dist/cjs/p-status.cjs.entry.js +49 -0
  50. package/dist/cjs/p-tooltip.cjs.entry.js +75 -1811
  51. package/dist/cjs/paperless.cjs.js +2 -2
  52. package/dist/cjs/popper-e0c4ed4c.js +1790 -0
  53. package/dist/collection/assets/icons/checklist.svg +17 -0
  54. package/dist/collection/assets/icons/folder.svg +19 -0
  55. package/dist/collection/assets/icons/integration.svg +17 -0
  56. package/dist/collection/assets/icons/task.svg +17 -0
  57. package/dist/collection/assets/icons/template.svg +17 -0
  58. package/dist/collection/assets/images/avatar/company-default.svg +12 -0
  59. package/dist/collection/assets/images/avatar/user-default.svg +12 -0
  60. package/dist/collection/assets/images/helper/helper-hover.svg +15 -0
  61. package/dist/collection/assets/images/helper/helper.svg +15 -0
  62. package/dist/collection/collection-manifest.json +15 -1
  63. package/dist/collection/components/atoms/avatar/avatar.component.css +31 -0
  64. package/dist/collection/components/atoms/avatar/avatar.component.js +105 -0
  65. package/dist/collection/components/atoms/button/button.component.css +32 -0
  66. package/dist/collection/components/atoms/button/button.component.js +38 -11
  67. package/dist/collection/components/atoms/counter/counter.component.css +5 -0
  68. package/dist/collection/components/atoms/counter/counter.component.js +15 -0
  69. package/dist/collection/components/atoms/divider/divider.component.css +3 -0
  70. package/dist/collection/components/atoms/divider/divider.component.js +14 -0
  71. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +5 -0
  72. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +14 -0
  73. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +13 -0
  74. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +41 -0
  75. package/dist/collection/components/atoms/helper/helper.component.css +7 -0
  76. package/dist/collection/components/atoms/helper/helper.component.js +18 -0
  77. package/dist/collection/components/atoms/icon/icon.component.js +3 -8
  78. package/dist/collection/components/atoms/illustration/illustration.component.js +2 -9
  79. package/dist/collection/components/atoms/info-panel/info-panel.component.css +28 -0
  80. package/dist/collection/components/atoms/info-panel/info-panel.component.js +106 -0
  81. package/dist/collection/components/atoms/loader/loader.component.css +1 -1
  82. package/dist/collection/components/atoms/loader/loader.component.js +4 -3
  83. package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +16 -0
  84. package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +41 -0
  85. package/dist/collection/components/atoms/segment-container/segment-container.component.css +5 -0
  86. package/dist/collection/components/atoms/segment-container/segment-container.component.js +14 -0
  87. package/dist/collection/components/atoms/segment-item/segment-item.component.css +21 -0
  88. package/dist/collection/components/atoms/segment-item/segment-item.component.js +107 -0
  89. package/dist/collection/components/atoms/status/status.component.css +16 -0
  90. package/dist/collection/components/atoms/status/status.component.js +128 -0
  91. package/dist/collection/components/atoms/tooltip/tooltip.component.css +18 -12
  92. package/dist/collection/components/atoms/tooltip/tooltip.component.js +133 -35
  93. package/dist/collection/components/molecules/dropdown/dropdown.component.css +9 -0
  94. package/dist/collection/components/molecules/dropdown/dropdown.component.js +233 -0
  95. package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +28 -0
  96. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +118 -0
  97. package/dist/collection/components/molecules/pagination/pagination.component.css +3 -0
  98. package/dist/collection/components/molecules/pagination/pagination.component.js +242 -0
  99. package/dist/collection/tailwind/border-radius.js +8 -6
  100. package/dist/collection/tailwind/grid.js +24 -4
  101. package/dist/collection/tailwind.config.js +1 -1
  102. package/dist/collection/utils/child-of.js +5 -0
  103. package/dist/collection/utils/icons.js +10 -0
  104. package/dist/components/counter.component.js +30 -0
  105. package/dist/components/dropdown-menu-container.component.js +29 -0
  106. package/dist/components/icon.component.js +97 -4
  107. package/dist/components/index.d.ts +14 -0
  108. package/dist/components/index.js +14 -0
  109. package/dist/components/loader.component.js +5 -4
  110. package/dist/components/p-avatar.d.ts +11 -0
  111. package/dist/components/p-avatar.js +52 -0
  112. package/dist/components/p-button.js +14 -5
  113. package/dist/components/p-counter.d.ts +11 -0
  114. package/dist/components/p-counter.js +6 -0
  115. package/dist/components/p-divider.d.ts +11 -0
  116. package/dist/components/p-divider.js +33 -0
  117. package/dist/components/p-dropdown-menu-container.d.ts +11 -0
  118. package/dist/components/p-dropdown-menu-container.js +6 -0
  119. package/dist/components/p-dropdown-menu-item.d.ts +11 -0
  120. package/dist/components/p-dropdown-menu-item.js +39 -0
  121. package/dist/components/p-dropdown.d.ts +11 -0
  122. package/dist/components/p-dropdown.js +166 -0
  123. package/dist/components/p-helper.d.ts +11 -0
  124. package/dist/components/p-helper.js +39 -0
  125. package/dist/components/p-illustration.js +0 -4
  126. package/dist/components/p-info-panel.d.ts +11 -0
  127. package/dist/components/p-info-panel.js +56 -0
  128. package/dist/components/p-navigation-item.d.ts +11 -0
  129. package/dist/components/p-navigation-item.js +55 -0
  130. package/dist/components/p-pagination-item.d.ts +11 -0
  131. package/dist/components/p-pagination-item.js +6 -0
  132. package/dist/components/p-pagination.d.ts +11 -0
  133. package/dist/components/p-pagination.js +200 -0
  134. package/dist/components/p-segment-container.d.ts +11 -0
  135. package/dist/components/p-segment-container.js +32 -0
  136. package/dist/components/p-segment-item.d.ts +11 -0
  137. package/dist/components/p-segment-item.js +54 -0
  138. package/dist/components/p-status.d.ts +11 -0
  139. package/dist/components/p-status.js +73 -0
  140. package/dist/components/p-tooltip.js +1 -1886
  141. package/dist/components/pagination-item.component.js +36 -0
  142. package/dist/components/popper.js +1788 -0
  143. package/dist/components/tooltip.component.js +154 -0
  144. package/dist/esm/{index-d08bfe75.js → index-a68e547b.js} +88 -2
  145. package/dist/esm/loader.js +2 -2
  146. package/dist/esm/p-avatar.entry.js +28 -0
  147. package/dist/esm/p-button_3.entry.js +116 -14
  148. package/dist/esm/p-counter.entry.js +15 -0
  149. package/dist/esm/p-divider.entry.js +15 -0
  150. package/dist/esm/p-dropdown-menu-container.entry.js +15 -0
  151. package/dist/esm/p-dropdown-menu-item.entry.js +19 -0
  152. package/dist/esm/p-dropdown.entry.js +137 -0
  153. package/dist/esm/p-helper.entry.js +15 -0
  154. package/dist/esm/p-illustration.entry.js +9 -12
  155. package/dist/esm/p-info-panel.entry.js +27 -0
  156. package/dist/esm/p-navigation-item.entry.js +19 -0
  157. package/dist/esm/p-pagination-item.entry.js +19 -0
  158. package/dist/esm/p-pagination.entry.js +167 -0
  159. package/dist/esm/p-segment-container.entry.js +15 -0
  160. package/dist/esm/p-segment-item.entry.js +25 -0
  161. package/dist/esm/p-status.entry.js +45 -0
  162. package/dist/esm/p-tooltip.entry.js +75 -1811
  163. package/dist/esm/paperless.js +2 -2
  164. package/dist/esm/popper-41c6f9cd.js +1788 -0
  165. package/dist/index.html +1 -1
  166. package/dist/paperless/p-17c11169.entry.js +1 -0
  167. package/dist/paperless/p-41e5458b.entry.js +1 -0
  168. package/dist/paperless/p-42dab9d4.entry.js +1 -0
  169. package/dist/paperless/p-47b52f92.entry.js +1 -0
  170. package/dist/paperless/p-5ec6ea71.entry.js +1 -0
  171. package/dist/paperless/p-75f909ab.entry.js +1 -0
  172. package/dist/paperless/p-76464e0b.js +2 -0
  173. package/dist/paperless/{p-f04c4de0.entry.js → p-8501ba07.entry.js} +1 -1
  174. package/dist/paperless/p-87356769.entry.js +1 -0
  175. package/dist/paperless/p-9513868f.entry.js +1 -0
  176. package/dist/paperless/p-a669807e.entry.js +1 -0
  177. package/dist/paperless/p-a7086ffa.js +1 -0
  178. package/dist/paperless/p-aa28fef8.entry.js +1 -0
  179. package/dist/paperless/p-aae3d4f0.entry.js +1 -0
  180. package/dist/paperless/p-adcb0b93.entry.js +1 -0
  181. package/dist/paperless/p-bbec0e86.entry.js +1 -0
  182. package/dist/paperless/p-e7019eab.entry.js +1 -0
  183. package/dist/paperless/p-f689996b.entry.js +1 -0
  184. package/dist/paperless/p-faa4ee42.entry.js +1 -0
  185. package/dist/paperless/paperless.css +136 -0
  186. package/dist/paperless/paperless.esm.js +1 -1
  187. package/dist/sw.js +421 -37
  188. package/dist/tailwind.config.js +1 -1
  189. package/dist/types/components/atoms/avatar/avatar.component.d.ts +21 -0
  190. package/dist/types/components/atoms/button/button.component.d.ts +6 -2
  191. package/dist/types/components/atoms/counter/counter.component.d.ts +3 -0
  192. package/dist/types/components/atoms/divider/divider.component.d.ts +3 -0
  193. package/dist/types/components/atoms/dropdown-menu-container/dropdown-menu-container.component.d.ts +3 -0
  194. package/dist/types/components/atoms/dropdown-menu-item/dropdown-menu-item.component.d.ts +7 -0
  195. package/dist/types/components/atoms/helper/helper.component.d.ts +3 -0
  196. package/dist/types/components/atoms/info-panel/info-panel.component.d.ts +24 -0
  197. package/dist/types/components/atoms/pagination-item/pagination-item.component.d.ts +7 -0
  198. package/dist/types/components/atoms/segment-container/segment-container.component.d.ts +3 -0
  199. package/dist/types/components/atoms/segment-item/segment-item.component.d.ts +21 -0
  200. package/dist/types/components/atoms/status/status.component.d.ts +22 -0
  201. package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +20 -8
  202. package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +42 -0
  203. package/dist/types/components/molecules/navigation-item/navigation-item.component.d.ts +24 -0
  204. package/dist/types/components/molecules/pagination/pagination.component.d.ts +28 -0
  205. package/dist/types/components.d.ts +475 -16
  206. package/dist/types/utils/child-of.d.ts +1 -0
  207. package/dist/types/utils/icons.d.ts +5 -0
  208. package/package.json +1 -1
  209. package/dist/build/p-4144f8a0.entry.js +0 -1
  210. package/dist/build/p-8538576c.entry.js +0 -1
  211. package/dist/build/p-f33e1285.js +0 -2
  212. package/dist/paperless/p-4144f8a0.entry.js +0 -1
  213. package/dist/paperless/p-8538576c.entry.js +0 -1
  214. package/dist/paperless/p-f33e1285.js +0 -2
@@ -11,7 +11,29 @@ import { IllustrationVariant } from "./components/atoms/illustration/illustratio
11
11
  import { Observable } from "rxjs";
12
12
  import { Placement } from "@popperjs/core";
13
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
+ }
14
32
  interface PButton {
33
+ /**
34
+ * Wether to show a chevron or not
35
+ */
36
+ "chevron": boolean | 'up' | 'down';
15
37
  /**
16
38
  * Wether the button is disabled
17
39
  */
@@ -53,6 +75,38 @@ export namespace Components {
53
75
  */
54
76
  "variant": 'primary' | 'secondary' | 'text';
55
77
  }
78
+ interface PCounter {
79
+ }
80
+ interface PDivider {
81
+ }
82
+ interface PDropdown {
83
+ /**
84
+ * Wether to automatically close the dropdown menu after clicking inside
85
+ */
86
+ "disableTriggerClick": boolean;
87
+ /**
88
+ * Wether to automatically close the dropdown menu after clicking inside
89
+ */
90
+ "insideClick": boolean;
91
+ /**
92
+ * The content of the dropdown menu
93
+ */
94
+ "placement": 'bottom' | 'top';
95
+ /**
96
+ * Wether to show the dropdown menu
97
+ */
98
+ "show": boolean;
99
+ }
100
+ interface PDropdownMenuContainer {
101
+ }
102
+ interface PDropdownMenuItem {
103
+ /**
104
+ * Wether the dropdown menu item is active
105
+ */
106
+ "active": boolean;
107
+ }
108
+ interface PHelper {
109
+ }
56
110
  interface PIcon {
57
111
  /**
58
112
  * Wether to flip the icon horizontally or vertically
@@ -77,6 +131,24 @@ export namespace Components {
77
131
  */
78
132
  "variant": IllustrationVariant;
79
133
  }
134
+ interface PInfoPanel {
135
+ /**
136
+ * Wether the panel can be closed
137
+ */
138
+ "closeable": boolean;
139
+ /**
140
+ * The content of the info panel
141
+ */
142
+ "content": string;
143
+ /**
144
+ * The header of the info panel
145
+ */
146
+ "header": string;
147
+ /**
148
+ * The variant of the info panel
149
+ */
150
+ "variant": 'info' | 'negative' | 'positive' | 'unbiased';
151
+ }
80
152
  interface PLoader {
81
153
  /**
82
154
  * Color of the loader
@@ -99,32 +171,170 @@ export namespace Components {
99
171
  */
100
172
  "variant": 'inline' | 'full-width' | 'full-screen' | 'modal';
101
173
  }
102
- interface PTooltip {
174
+ interface PNavigationItem {
175
+ /**
176
+ * Wether the navigation item is active
177
+ */
178
+ "active": boolean;
179
+ /**
180
+ * Icon of the navigation item
181
+ */
182
+ "counter": number | string;
183
+ /**
184
+ * The href of the navigation item
185
+ */
186
+ "href": string;
187
+ /**
188
+ * Icon of the navigation item
189
+ */
190
+ "icon": IconVariant;
191
+ /**
192
+ * The target of the navigation item
193
+ */
194
+ "target": string;
195
+ }
196
+ interface PPagination {
197
+ /**
198
+ * The current page
199
+ */
200
+ "page": number;
103
201
  /**
104
- * The content of the tooltip
202
+ * The amount of items per page
105
203
  */
106
- "content": any;
204
+ "pageSize": number;
107
205
  /**
108
- * Wether to force show the tooltip
206
+ * The total amount of items
109
207
  */
110
- "forceShow": boolean;
208
+ "total": number;
209
+ }
210
+ interface PPaginationItem {
111
211
  /**
112
- * The content of the tooltip
212
+ * Wether the pagination item is active
213
+ */
214
+ "active": boolean;
215
+ }
216
+ interface PSegmentContainer {
217
+ }
218
+ interface PSegmentItem {
219
+ /**
220
+ * Wether the segment item is active
221
+ */
222
+ "active": boolean;
223
+ /**
224
+ * Icon to show on the segment item
225
+ */
226
+ "icon": IconVariant;
227
+ /**
228
+ * Icon flip
229
+ */
230
+ "iconFlip": IconFlipOptions;
231
+ /**
232
+ * Icon rotate
233
+ */
234
+ "iconRotate": number;
235
+ }
236
+ interface PStatus {
237
+ /**
238
+ * Icon to show on the status
239
+ */
240
+ "icon": IconVariant;
241
+ /**
242
+ * Icon flip
243
+ */
244
+ "iconFlip": IconFlipOptions;
245
+ /**
246
+ * Icon rotate
247
+ */
248
+ "iconRotate": number;
249
+ /**
250
+ * The variant of the status
251
+ */
252
+ "variant": 'default' | 'positive' | 'unbiased' | 'negative';
253
+ }
254
+ interface PTooltip {
255
+ /**
256
+ * Wether to someone can manually close the popover
257
+ */
258
+ "canManuallyClose": boolean;
259
+ /**
260
+ * The content of the popover
113
261
  */
114
262
  "placement": Placement;
263
+ /**
264
+ * The content of the popover
265
+ */
266
+ "popover": any;
267
+ /**
268
+ * Wether to show the popover
269
+ */
270
+ "show": boolean;
271
+ /**
272
+ * The variant of the popover
273
+ */
274
+ "variant": 'hover' | 'click' | 'error';
115
275
  }
116
276
  }
117
277
  export interface PButtonCustomEvent<T> extends CustomEvent<T> {
118
278
  detail: T;
119
279
  target: HTMLPButtonElement;
120
280
  }
281
+ export interface PDropdownCustomEvent<T> extends CustomEvent<T> {
282
+ detail: T;
283
+ target: HTMLPDropdownElement;
284
+ }
285
+ export interface PPaginationCustomEvent<T> extends CustomEvent<T> {
286
+ detail: T;
287
+ target: HTMLPPaginationElement;
288
+ }
121
289
  declare global {
290
+ interface HTMLPAvatarElement extends Components.PAvatar, HTMLStencilElement {
291
+ }
292
+ var HTMLPAvatarElement: {
293
+ prototype: HTMLPAvatarElement;
294
+ new (): HTMLPAvatarElement;
295
+ };
122
296
  interface HTMLPButtonElement extends Components.PButton, HTMLStencilElement {
123
297
  }
124
298
  var HTMLPButtonElement: {
125
299
  prototype: HTMLPButtonElement;
126
300
  new (): HTMLPButtonElement;
127
301
  };
302
+ interface HTMLPCounterElement extends Components.PCounter, HTMLStencilElement {
303
+ }
304
+ var HTMLPCounterElement: {
305
+ prototype: HTMLPCounterElement;
306
+ new (): HTMLPCounterElement;
307
+ };
308
+ interface HTMLPDividerElement extends Components.PDivider, HTMLStencilElement {
309
+ }
310
+ var HTMLPDividerElement: {
311
+ prototype: HTMLPDividerElement;
312
+ new (): HTMLPDividerElement;
313
+ };
314
+ interface HTMLPDropdownElement extends Components.PDropdown, HTMLStencilElement {
315
+ }
316
+ var HTMLPDropdownElement: {
317
+ prototype: HTMLPDropdownElement;
318
+ new (): HTMLPDropdownElement;
319
+ };
320
+ interface HTMLPDropdownMenuContainerElement extends Components.PDropdownMenuContainer, HTMLStencilElement {
321
+ }
322
+ var HTMLPDropdownMenuContainerElement: {
323
+ prototype: HTMLPDropdownMenuContainerElement;
324
+ new (): HTMLPDropdownMenuContainerElement;
325
+ };
326
+ interface HTMLPDropdownMenuItemElement extends Components.PDropdownMenuItem, HTMLStencilElement {
327
+ }
328
+ var HTMLPDropdownMenuItemElement: {
329
+ prototype: HTMLPDropdownMenuItemElement;
330
+ new (): HTMLPDropdownMenuItemElement;
331
+ };
332
+ interface HTMLPHelperElement extends Components.PHelper, HTMLStencilElement {
333
+ }
334
+ var HTMLPHelperElement: {
335
+ prototype: HTMLPHelperElement;
336
+ new (): HTMLPHelperElement;
337
+ };
128
338
  interface HTMLPIconElement extends Components.PIcon, HTMLStencilElement {
129
339
  }
130
340
  var HTMLPIconElement: {
@@ -137,12 +347,54 @@ declare global {
137
347
  prototype: HTMLPIllustrationElement;
138
348
  new (): HTMLPIllustrationElement;
139
349
  };
350
+ interface HTMLPInfoPanelElement extends Components.PInfoPanel, HTMLStencilElement {
351
+ }
352
+ var HTMLPInfoPanelElement: {
353
+ prototype: HTMLPInfoPanelElement;
354
+ new (): HTMLPInfoPanelElement;
355
+ };
140
356
  interface HTMLPLoaderElement extends Components.PLoader, HTMLStencilElement {
141
357
  }
142
358
  var HTMLPLoaderElement: {
143
359
  prototype: HTMLPLoaderElement;
144
360
  new (): HTMLPLoaderElement;
145
361
  };
362
+ interface HTMLPNavigationItemElement extends Components.PNavigationItem, HTMLStencilElement {
363
+ }
364
+ var HTMLPNavigationItemElement: {
365
+ prototype: HTMLPNavigationItemElement;
366
+ new (): HTMLPNavigationItemElement;
367
+ };
368
+ interface HTMLPPaginationElement extends Components.PPagination, HTMLStencilElement {
369
+ }
370
+ var HTMLPPaginationElement: {
371
+ prototype: HTMLPPaginationElement;
372
+ new (): HTMLPPaginationElement;
373
+ };
374
+ interface HTMLPPaginationItemElement extends Components.PPaginationItem, HTMLStencilElement {
375
+ }
376
+ var HTMLPPaginationItemElement: {
377
+ prototype: HTMLPPaginationItemElement;
378
+ new (): HTMLPPaginationItemElement;
379
+ };
380
+ interface HTMLPSegmentContainerElement extends Components.PSegmentContainer, HTMLStencilElement {
381
+ }
382
+ var HTMLPSegmentContainerElement: {
383
+ prototype: HTMLPSegmentContainerElement;
384
+ new (): HTMLPSegmentContainerElement;
385
+ };
386
+ interface HTMLPSegmentItemElement extends Components.PSegmentItem, HTMLStencilElement {
387
+ }
388
+ var HTMLPSegmentItemElement: {
389
+ prototype: HTMLPSegmentItemElement;
390
+ new (): HTMLPSegmentItemElement;
391
+ };
392
+ interface HTMLPStatusElement extends Components.PStatus, HTMLStencilElement {
393
+ }
394
+ var HTMLPStatusElement: {
395
+ prototype: HTMLPStatusElement;
396
+ new (): HTMLPStatusElement;
397
+ };
146
398
  interface HTMLPTooltipElement extends Components.PTooltip, HTMLStencilElement {
147
399
  }
148
400
  var HTMLPTooltipElement: {
@@ -150,15 +402,51 @@ declare global {
150
402
  new (): HTMLPTooltipElement;
151
403
  };
152
404
  interface HTMLElementTagNameMap {
405
+ "p-avatar": HTMLPAvatarElement;
153
406
  "p-button": HTMLPButtonElement;
407
+ "p-counter": HTMLPCounterElement;
408
+ "p-divider": HTMLPDividerElement;
409
+ "p-dropdown": HTMLPDropdownElement;
410
+ "p-dropdown-menu-container": HTMLPDropdownMenuContainerElement;
411
+ "p-dropdown-menu-item": HTMLPDropdownMenuItemElement;
412
+ "p-helper": HTMLPHelperElement;
154
413
  "p-icon": HTMLPIconElement;
155
414
  "p-illustration": HTMLPIllustrationElement;
415
+ "p-info-panel": HTMLPInfoPanelElement;
156
416
  "p-loader": HTMLPLoaderElement;
417
+ "p-navigation-item": HTMLPNavigationItemElement;
418
+ "p-pagination": HTMLPPaginationElement;
419
+ "p-pagination-item": HTMLPPaginationItemElement;
420
+ "p-segment-container": HTMLPSegmentContainerElement;
421
+ "p-segment-item": HTMLPSegmentItemElement;
422
+ "p-status": HTMLPStatusElement;
157
423
  "p-tooltip": HTMLPTooltipElement;
158
424
  }
159
425
  }
160
426
  declare namespace LocalJSX {
427
+ interface PAvatar {
428
+ /**
429
+ * The default image to show on errors
430
+ */
431
+ "defaultImage"?: string;
432
+ /**
433
+ * The size of the avatar
434
+ */
435
+ "size"?: 'small' | 'medium' | 'large';
436
+ /**
437
+ * The image used for the avatar
438
+ */
439
+ "src": string;
440
+ /**
441
+ * The variant of the avatar
442
+ */
443
+ "variant"?: 'user' | 'company';
444
+ }
161
445
  interface PButton {
446
+ /**
447
+ * Wether to show a chevron or not
448
+ */
449
+ "chevron"?: boolean | 'up' | 'down';
162
450
  /**
163
451
  * Wether the button is disabled
164
452
  */
@@ -188,9 +476,9 @@ declare namespace LocalJSX {
188
476
  */
189
477
  "loading"?: boolean;
190
478
  /**
191
- * Button press event
479
+ * Button click event
192
480
  */
193
- "onClick"?: (event: PButtonCustomEvent<MouseEvent>) => void;
481
+ "onOnClick"?: (event: PButtonCustomEvent<MouseEvent>) => void;
194
482
  /**
195
483
  * The size of the button
196
484
  */
@@ -204,6 +492,42 @@ declare namespace LocalJSX {
204
492
  */
205
493
  "variant"?: 'primary' | 'secondary' | 'text';
206
494
  }
495
+ interface PCounter {
496
+ }
497
+ interface PDivider {
498
+ }
499
+ interface PDropdown {
500
+ /**
501
+ * Wether to automatically close the dropdown menu after clicking inside
502
+ */
503
+ "disableTriggerClick"?: boolean;
504
+ /**
505
+ * Wether to automatically close the dropdown menu after clicking inside
506
+ */
507
+ "insideClick"?: boolean;
508
+ /**
509
+ * Open change event
510
+ */
511
+ "onIsOpen"?: (event: PDropdownCustomEvent<boolean>) => void;
512
+ /**
513
+ * The content of the dropdown menu
514
+ */
515
+ "placement"?: 'bottom' | 'top';
516
+ /**
517
+ * Wether to show the dropdown menu
518
+ */
519
+ "show"?: boolean;
520
+ }
521
+ interface PDropdownMenuContainer {
522
+ }
523
+ interface PDropdownMenuItem {
524
+ /**
525
+ * Wether the dropdown menu item is active
526
+ */
527
+ "active"?: boolean;
528
+ }
529
+ interface PHelper {
530
+ }
207
531
  interface PIcon {
208
532
  /**
209
533
  * Wether to flip the icon horizontally or vertically
@@ -220,13 +544,31 @@ declare namespace LocalJSX {
220
544
  /**
221
545
  * The icon the be displayed
222
546
  */
223
- "variant"?: IconVariant;
547
+ "variant": IconVariant;
224
548
  }
225
549
  interface PIllustration {
226
550
  /**
227
551
  * The icon the be displayed
228
552
  */
229
- "variant"?: IllustrationVariant;
553
+ "variant": IllustrationVariant;
554
+ }
555
+ interface PInfoPanel {
556
+ /**
557
+ * Wether the panel can be closed
558
+ */
559
+ "closeable"?: boolean;
560
+ /**
561
+ * The content of the info panel
562
+ */
563
+ "content"?: string;
564
+ /**
565
+ * The header of the info panel
566
+ */
567
+ "header"?: string;
568
+ /**
569
+ * The variant of the info panel
570
+ */
571
+ "variant"?: 'info' | 'negative' | 'positive' | 'unbiased';
230
572
  }
231
573
  interface PLoader {
232
574
  /**
@@ -250,25 +592,128 @@ declare namespace LocalJSX {
250
592
  */
251
593
  "variant"?: 'inline' | 'full-width' | 'full-screen' | 'modal';
252
594
  }
253
- interface PTooltip {
595
+ interface PNavigationItem {
254
596
  /**
255
- * The content of the tooltip
597
+ * Wether the navigation item is active
256
598
  */
257
- "content"?: any;
599
+ "active"?: boolean;
258
600
  /**
259
- * Wether to force show the tooltip
601
+ * Icon of the navigation item
260
602
  */
261
- "forceShow"?: boolean;
603
+ "counter"?: number | string;
262
604
  /**
263
- * The content of the tooltip
605
+ * The href of the navigation item
606
+ */
607
+ "href"?: string;
608
+ /**
609
+ * Icon of the navigation item
610
+ */
611
+ "icon"?: IconVariant;
612
+ /**
613
+ * The target of the navigation item
614
+ */
615
+ "target"?: string;
616
+ }
617
+ interface PPagination {
618
+ "onPageChange"?: (event: PPaginationCustomEvent<number>) => void;
619
+ /**
620
+ * The current page
621
+ */
622
+ "page"?: number;
623
+ /**
624
+ * The amount of items per page
625
+ */
626
+ "pageSize"?: number;
627
+ /**
628
+ * The total amount of items
629
+ */
630
+ "total": number;
631
+ }
632
+ interface PPaginationItem {
633
+ /**
634
+ * Wether the pagination item is active
635
+ */
636
+ "active"?: boolean;
637
+ }
638
+ interface PSegmentContainer {
639
+ }
640
+ interface PSegmentItem {
641
+ /**
642
+ * Wether the segment item is active
643
+ */
644
+ "active"?: boolean;
645
+ /**
646
+ * Icon to show on the segment item
647
+ */
648
+ "icon"?: IconVariant;
649
+ /**
650
+ * Icon flip
651
+ */
652
+ "iconFlip"?: IconFlipOptions;
653
+ /**
654
+ * Icon rotate
655
+ */
656
+ "iconRotate"?: number;
657
+ }
658
+ interface PStatus {
659
+ /**
660
+ * Icon to show on the status
661
+ */
662
+ "icon"?: IconVariant;
663
+ /**
664
+ * Icon flip
665
+ */
666
+ "iconFlip"?: IconFlipOptions;
667
+ /**
668
+ * Icon rotate
669
+ */
670
+ "iconRotate"?: number;
671
+ /**
672
+ * The variant of the status
673
+ */
674
+ "variant"?: 'default' | 'positive' | 'unbiased' | 'negative';
675
+ }
676
+ interface PTooltip {
677
+ /**
678
+ * Wether to someone can manually close the popover
679
+ */
680
+ "canManuallyClose"?: boolean;
681
+ /**
682
+ * The content of the popover
264
683
  */
265
684
  "placement"?: Placement;
685
+ /**
686
+ * The content of the popover
687
+ */
688
+ "popover"?: any;
689
+ /**
690
+ * Wether to show the popover
691
+ */
692
+ "show"?: boolean;
693
+ /**
694
+ * The variant of the popover
695
+ */
696
+ "variant"?: 'hover' | 'click' | 'error';
266
697
  }
267
698
  interface IntrinsicElements {
699
+ "p-avatar": PAvatar;
268
700
  "p-button": PButton;
701
+ "p-counter": PCounter;
702
+ "p-divider": PDivider;
703
+ "p-dropdown": PDropdown;
704
+ "p-dropdown-menu-container": PDropdownMenuContainer;
705
+ "p-dropdown-menu-item": PDropdownMenuItem;
706
+ "p-helper": PHelper;
269
707
  "p-icon": PIcon;
270
708
  "p-illustration": PIllustration;
709
+ "p-info-panel": PInfoPanel;
271
710
  "p-loader": PLoader;
711
+ "p-navigation-item": PNavigationItem;
712
+ "p-pagination": PPagination;
713
+ "p-pagination-item": PPaginationItem;
714
+ "p-segment-container": PSegmentContainer;
715
+ "p-segment-item": PSegmentItem;
716
+ "p-status": PStatus;
272
717
  "p-tooltip": PTooltip;
273
718
  }
274
719
  }
@@ -276,10 +721,24 @@ export { LocalJSX as JSX };
276
721
  declare module "@stencil/core" {
277
722
  export namespace JSX {
278
723
  interface IntrinsicElements {
724
+ "p-avatar": LocalJSX.PAvatar & JSXBase.HTMLAttributes<HTMLPAvatarElement>;
279
725
  "p-button": LocalJSX.PButton & JSXBase.HTMLAttributes<HTMLPButtonElement>;
726
+ "p-counter": LocalJSX.PCounter & JSXBase.HTMLAttributes<HTMLPCounterElement>;
727
+ "p-divider": LocalJSX.PDivider & JSXBase.HTMLAttributes<HTMLPDividerElement>;
728
+ "p-dropdown": LocalJSX.PDropdown & JSXBase.HTMLAttributes<HTMLPDropdownElement>;
729
+ "p-dropdown-menu-container": LocalJSX.PDropdownMenuContainer & JSXBase.HTMLAttributes<HTMLPDropdownMenuContainerElement>;
730
+ "p-dropdown-menu-item": LocalJSX.PDropdownMenuItem & JSXBase.HTMLAttributes<HTMLPDropdownMenuItemElement>;
731
+ "p-helper": LocalJSX.PHelper & JSXBase.HTMLAttributes<HTMLPHelperElement>;
280
732
  "p-icon": LocalJSX.PIcon & JSXBase.HTMLAttributes<HTMLPIconElement>;
281
733
  "p-illustration": LocalJSX.PIllustration & JSXBase.HTMLAttributes<HTMLPIllustrationElement>;
734
+ "p-info-panel": LocalJSX.PInfoPanel & JSXBase.HTMLAttributes<HTMLPInfoPanelElement>;
282
735
  "p-loader": LocalJSX.PLoader & JSXBase.HTMLAttributes<HTMLPLoaderElement>;
736
+ "p-navigation-item": LocalJSX.PNavigationItem & JSXBase.HTMLAttributes<HTMLPNavigationItemElement>;
737
+ "p-pagination": LocalJSX.PPagination & JSXBase.HTMLAttributes<HTMLPPaginationElement>;
738
+ "p-pagination-item": LocalJSX.PPaginationItem & JSXBase.HTMLAttributes<HTMLPPaginationItemElement>;
739
+ "p-segment-container": LocalJSX.PSegmentContainer & JSXBase.HTMLAttributes<HTMLPSegmentContainerElement>;
740
+ "p-segment-item": LocalJSX.PSegmentItem & JSXBase.HTMLAttributes<HTMLPSegmentItemElement>;
741
+ "p-status": LocalJSX.PStatus & JSXBase.HTMLAttributes<HTMLPStatusElement>;
283
742
  "p-tooltip": LocalJSX.PTooltip & JSXBase.HTMLAttributes<HTMLPTooltipElement>;
284
743
  }
285
744
  }
@@ -0,0 +1 @@
1
+ export declare const childOf: (c: any, p: any) => boolean;
@@ -4,6 +4,7 @@ declare const _default: {
4
4
  bread: string;
5
5
  calendar: string;
6
6
  car: string;
7
+ checklist: string;
7
8
  checkmark: string;
8
9
  chevron: string;
9
10
  clock: string;
@@ -15,8 +16,10 @@ declare const _default: {
15
16
  explanation: string;
16
17
  eye: string;
17
18
  filter: string;
19
+ folder: string;
18
20
  grid: string;
19
21
  headset: string;
22
+ integration: string;
20
23
  list: string;
21
24
  location: string;
22
25
  megaphone: string;
@@ -34,6 +37,8 @@ declare const _default: {
34
37
  settings: string;
35
38
  sick: string;
36
39
  tachometer: string;
40
+ task: string;
41
+ template: string;
37
42
  tool: string;
38
43
  trash: string;
39
44
  turn: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paperless/core",
3
- "version": "0.1.0-alpha.3",
3
+ "version": "0.1.0-alpha.33",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",