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

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 +273 -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-1d8fa6a1.entry.js +1 -0
  14. package/dist/build/p-41e5458b.entry.js +1 -0
  15. package/dist/build/p-42dab9d4.entry.js +1 -0
  16. package/dist/build/p-47b52f92.entry.js +1 -0
  17. package/dist/build/p-5ec6ea71.entry.js +1 -0
  18. package/dist/build/p-75f909ab.entry.js +1 -0
  19. package/dist/build/p-76464e0b.js +2 -0
  20. package/dist/build/{p-f04c4de0.entry.js → p-8501ba07.entry.js} +1 -1
  21. package/dist/build/p-a669807e.entry.js +1 -0
  22. package/dist/build/p-a7086ffa.js +1 -0
  23. package/dist/build/p-aa28fef8.entry.js +1 -0
  24. package/dist/build/p-aae3d4f0.entry.js +1 -0
  25. package/dist/build/p-adcb0b93.entry.js +1 -0
  26. package/dist/build/p-bbec0e86.entry.js +1 -0
  27. package/dist/build/p-d7c82962.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 +106 -12
  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 +131 -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 +24 -0
  66. package/dist/collection/components/atoms/button/button.component.js +5 -5
  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 +223 -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 +3 -3
  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 +156 -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 +106 -12
  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 +127 -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-1d8fa6a1.entry.js +1 -0
  168. package/dist/paperless/p-41e5458b.entry.js +1 -0
  169. package/dist/paperless/p-42dab9d4.entry.js +1 -0
  170. package/dist/paperless/p-47b52f92.entry.js +1 -0
  171. package/dist/paperless/p-5ec6ea71.entry.js +1 -0
  172. package/dist/paperless/p-75f909ab.entry.js +1 -0
  173. package/dist/paperless/p-76464e0b.js +2 -0
  174. package/dist/paperless/{p-f04c4de0.entry.js → p-8501ba07.entry.js} +1 -1
  175. package/dist/paperless/p-a669807e.entry.js +1 -0
  176. package/dist/paperless/p-a7086ffa.js +1 -0
  177. package/dist/paperless/p-aa28fef8.entry.js +1 -0
  178. package/dist/paperless/p-aae3d4f0.entry.js +1 -0
  179. package/dist/paperless/p-adcb0b93.entry.js +1 -0
  180. package/dist/paperless/p-bbec0e86.entry.js +1 -0
  181. package/dist/paperless/p-d7c82962.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 +2 -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 +41 -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 +467 -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
@@ -0,0 +1,24 @@
1
+ export declare class InfoPanel {
2
+ /**
3
+ * The variant of the info panel
4
+ */
5
+ variant: 'info' | 'negative' | 'positive' | 'unbiased';
6
+ /**
7
+ * The header of the info panel
8
+ */
9
+ header: string;
10
+ /**
11
+ * The content of the info panel
12
+ */
13
+ content: string;
14
+ /**
15
+ * Wether the panel can be closed
16
+ */
17
+ closeable: boolean;
18
+ /**
19
+ * The host element
20
+ */
21
+ private _el;
22
+ render(): any;
23
+ private _close;
24
+ }
@@ -0,0 +1,7 @@
1
+ export declare class PaginationItem {
2
+ /**
3
+ * Wether the pagination item is active
4
+ */
5
+ active: boolean;
6
+ render(): any;
7
+ }
@@ -0,0 +1,3 @@
1
+ export declare class SegmentContainer {
2
+ render(): any;
3
+ }
@@ -0,0 +1,21 @@
1
+ import { IconFlipOptions, IconVariant } from '../icon/icon.component';
2
+ export declare class SegmentItem {
3
+ /**
4
+ * Wether the segment item is active
5
+ */
6
+ active: boolean;
7
+ /**
8
+ * Icon to show on the segment item
9
+ */
10
+ icon: IconVariant;
11
+ /**
12
+ * Icon flip
13
+ */
14
+ iconFlip: IconFlipOptions;
15
+ /**
16
+ * Icon rotate
17
+ */
18
+ iconRotate: number;
19
+ render(): any;
20
+ private _getIcon;
21
+ }
@@ -0,0 +1,22 @@
1
+ import { IconFlipOptions, IconVariant } from '../icon/icon.component';
2
+ export declare class Status {
3
+ /**
4
+ * The variant of the status
5
+ */
6
+ variant: 'default' | 'positive' | 'unbiased' | 'negative';
7
+ /**
8
+ * Icon to show on the status
9
+ */
10
+ icon: IconVariant;
11
+ /**
12
+ * Icon flip
13
+ */
14
+ iconFlip: IconFlipOptions;
15
+ /**
16
+ * Icon rotate
17
+ */
18
+ iconRotate: number;
19
+ render(): any;
20
+ private _getIcon;
21
+ private _getVariantIcon;
22
+ }
@@ -1,28 +1,40 @@
1
1
  import { Placement } from '@popperjs/core';
2
2
  export declare class Tooltip {
3
3
  /**
4
- * The content of the tooltip
4
+ * The variant of the popover
5
5
  */
6
- content: any;
6
+ variant: 'hover' | 'click' | 'error';
7
7
  /**
8
- * The content of the tooltip
8
+ * The content of the popover
9
+ */
10
+ popover: any;
11
+ /**
12
+ * The content of the popover
9
13
  */
10
14
  placement: Placement;
11
15
  /**
12
- * Wether to force show the tooltip
16
+ * Wether to show the popover
17
+ */
18
+ show: boolean;
19
+ /**
20
+ * Wether to someone can manually close the popover
13
21
  */
14
- forceShow: boolean;
22
+ canManuallyClose: boolean;
15
23
  /**
16
24
  * The host element
17
25
  */
18
26
  private _el;
19
27
  private _loaded;
20
28
  private _popper;
21
- private _tooltip;
29
+ private _popover;
22
30
  componentShouldUpdate(): void;
23
31
  render(): any;
24
- protected _show(): void;
25
- protected _hide(): void;
32
+ protected clickHandler(): void;
33
+ protected documentClickHandler(): void;
34
+ protected mouseEnterHandler(): void;
35
+ protected mouseLeaveHandler(): void;
36
+ private _show;
37
+ private _hide;
26
38
  private _load;
27
39
  private _setOptions;
28
40
  }
@@ -0,0 +1,41 @@
1
+ import { EventEmitter } from '../../../stencil-public-runtime';
2
+ export declare class Dropdown {
3
+ /**
4
+ * The content of the dropdown menu
5
+ */
6
+ placement: 'bottom' | 'top';
7
+ /**
8
+ * Wether to show the dropdown menu
9
+ */
10
+ show: boolean;
11
+ /**
12
+ * Wether to automatically close the dropdown menu after clicking inside
13
+ */
14
+ insideClick: boolean;
15
+ /**
16
+ * Wether to automatically close the dropdown menu after clicking inside
17
+ */
18
+ disableTriggerClick: boolean;
19
+ /**
20
+ * The host element
21
+ */
22
+ private _el;
23
+ /**
24
+ * Open change event
25
+ */
26
+ isOpen: EventEmitter<boolean>;
27
+ private _loaded;
28
+ private _popper;
29
+ private _menu;
30
+ componentShouldUpdate(): void;
31
+ render(): any;
32
+ private _containerClickHandler;
33
+ private _triggerClickHandler;
34
+ protected documentClickHandler({ target }: {
35
+ target: any;
36
+ }): void;
37
+ private _load;
38
+ private _setOptions;
39
+ private _show;
40
+ private _hide;
41
+ }
@@ -0,0 +1,24 @@
1
+ import { IconVariant } from '../../atoms/icon/icon.component';
2
+ export declare class NavigationItem {
3
+ /**
4
+ * Wether the navigation item is active
5
+ */
6
+ active: boolean;
7
+ /**
8
+ * Icon of the navigation item
9
+ */
10
+ icon: IconVariant;
11
+ /**
12
+ * Icon of the navigation item
13
+ */
14
+ counter: number | string;
15
+ /**
16
+ * The href of the navigation item
17
+ */
18
+ href: string;
19
+ /**
20
+ * The target of the navigation item
21
+ */
22
+ target: string;
23
+ render(): any;
24
+ }
@@ -0,0 +1,28 @@
1
+ import { EventEmitter } from '../../../stencil-public-runtime';
2
+ export declare class Pagination {
3
+ /**
4
+ * The current page
5
+ */
6
+ page: number;
7
+ pageChange: EventEmitter<number>;
8
+ /**
9
+ * The amount of items per page
10
+ */
11
+ pageSize: number;
12
+ /**
13
+ * The total amount of items
14
+ */
15
+ total: number;
16
+ private _pages;
17
+ private _set;
18
+ componentWillRender(): void;
19
+ render(): any;
20
+ protected pageChangeHandler(): void;
21
+ private _generate;
22
+ private _changePage;
23
+ private _previousClick;
24
+ private _nextClick;
25
+ private _pageClick;
26
+ private _generatePages;
27
+ private _generateSet;
28
+ }