@paperless/core 0.1.0-alpha.0 → 0.1.0-alpha.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/CHANGELOG.md +125 -0
  2. package/README.md +17 -0
  3. package/dist/assets/icons/arrow.svg +1 -1
  4. package/dist/assets/icons/attachment.svg +1 -1
  5. package/dist/assets/icons/bread.svg +1 -1
  6. package/dist/assets/icons/calendar.svg +1 -1
  7. package/dist/assets/icons/car.svg +1 -1
  8. package/dist/assets/icons/checkmark.svg +1 -1
  9. package/dist/assets/icons/chevron.svg +1 -1
  10. package/dist/assets/icons/clock.svg +1 -1
  11. package/dist/assets/icons/cogs.svg +1 -1
  12. package/dist/assets/icons/comment.svg +1 -1
  13. package/dist/assets/icons/document.svg +1 -1
  14. package/dist/assets/icons/download.svg +1 -1
  15. package/dist/assets/icons/envelope.svg +1 -1
  16. package/dist/assets/icons/explanation.svg +1 -1
  17. package/dist/assets/icons/eye.svg +1 -1
  18. package/dist/assets/icons/filter.svg +1 -1
  19. package/dist/assets/icons/grid.svg +1 -1
  20. package/dist/assets/icons/headset.svg +1 -1
  21. package/dist/assets/icons/list.svg +1 -1
  22. package/dist/assets/icons/location.svg +1 -1
  23. package/dist/assets/icons/megaphone.svg +1 -1
  24. package/dist/assets/icons/minus.svg +1 -1
  25. package/dist/assets/icons/negative.svg +1 -1
  26. package/dist/assets/icons/pagination.svg +1 -1
  27. package/dist/assets/icons/payment.svg +1 -1
  28. package/dist/assets/icons/pencil.svg +1 -1
  29. package/dist/assets/icons/person.svg +1 -1
  30. package/dist/assets/icons/plus.svg +1 -1
  31. package/dist/assets/icons/question.svg +1 -1
  32. package/dist/assets/icons/receipt.svg +1 -1
  33. package/dist/assets/icons/report.svg +1 -1
  34. package/dist/assets/icons/search.svg +1 -1
  35. package/dist/assets/icons/settings.svg +1 -1
  36. package/dist/assets/icons/sick.svg +1 -1
  37. package/dist/assets/icons/tachometer.svg +1 -1
  38. package/dist/assets/icons/tool.svg +1 -1
  39. package/dist/assets/icons/trash.svg +1 -1
  40. package/dist/assets/icons/turn.svg +1 -1
  41. package/dist/assets/icons/upload.svg +1 -1
  42. package/dist/assets/icons/warning.svg +1 -1
  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/{paperless/p-98d636b6.entry.js → build/p-23980fbb.entry.js} +1 -1
  51. package/dist/build/p-31f80006.entry.js +1 -0
  52. package/dist/build/p-332028c6.entry.js +1 -0
  53. package/dist/build/p-5f0ec763.entry.js +1 -0
  54. package/dist/build/p-6c6c1137.entry.js +1 -0
  55. package/dist/build/p-80bf9d06.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 +4 -3
  59. package/dist/build/paperless.esm.js +1 -1
  60. package/dist/cjs/{index-6758a39e.js → index-6b6e08cc.js} +487 -9
  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-icon.cjs.entry.js → p-button_3.cjs.entry.js} +149 -46
  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 +11 -14
  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 +163 -0
  71. package/dist/cjs/p-tooltip.cjs.entry.js +62 -20
  72. package/dist/cjs/paperless.cjs.js +2 -2
  73. package/dist/collection/assets/icons/arrow.svg +1 -1
  74. package/dist/collection/assets/icons/attachment.svg +1 -1
  75. package/dist/collection/assets/icons/bread.svg +1 -1
  76. package/dist/collection/assets/icons/calendar.svg +1 -1
  77. package/dist/collection/assets/icons/car.svg +1 -1
  78. package/dist/collection/assets/icons/checkmark.svg +1 -1
  79. package/dist/collection/assets/icons/chevron.svg +1 -1
  80. package/dist/collection/assets/icons/clock.svg +1 -1
  81. package/dist/collection/assets/icons/cogs.svg +1 -1
  82. package/dist/collection/assets/icons/comment.svg +1 -1
  83. package/dist/collection/assets/icons/document.svg +1 -1
  84. package/dist/collection/assets/icons/download.svg +1 -1
  85. package/dist/collection/assets/icons/envelope.svg +1 -1
  86. package/dist/collection/assets/icons/explanation.svg +1 -1
  87. package/dist/collection/assets/icons/eye.svg +1 -1
  88. package/dist/collection/assets/icons/filter.svg +1 -1
  89. package/dist/collection/assets/icons/grid.svg +1 -1
  90. package/dist/collection/assets/icons/headset.svg +1 -1
  91. package/dist/collection/assets/icons/list.svg +1 -1
  92. package/dist/collection/assets/icons/location.svg +1 -1
  93. package/dist/collection/assets/icons/megaphone.svg +1 -1
  94. package/dist/collection/assets/icons/minus.svg +1 -1
  95. package/dist/collection/assets/icons/negative.svg +1 -1
  96. package/dist/collection/assets/icons/pagination.svg +1 -1
  97. package/dist/collection/assets/icons/payment.svg +1 -1
  98. package/dist/collection/assets/icons/pencil.svg +1 -1
  99. package/dist/collection/assets/icons/person.svg +1 -1
  100. package/dist/collection/assets/icons/plus.svg +1 -1
  101. package/dist/collection/assets/icons/question.svg +1 -1
  102. package/dist/collection/assets/icons/receipt.svg +1 -1
  103. package/dist/collection/assets/icons/report.svg +1 -1
  104. package/dist/collection/assets/icons/search.svg +1 -1
  105. package/dist/collection/assets/icons/settings.svg +1 -1
  106. package/dist/collection/assets/icons/sick.svg +1 -1
  107. package/dist/collection/assets/icons/tachometer.svg +1 -1
  108. package/dist/collection/assets/icons/tool.svg +1 -1
  109. package/dist/collection/assets/icons/trash.svg +1 -1
  110. package/dist/collection/assets/icons/turn.svg +1 -1
  111. package/dist/collection/assets/icons/upload.svg +1 -1
  112. package/dist/collection/assets/icons/warning.svg +1 -1
  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 -4
  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/{icon → atoms/icon}/icon.component.js +10 -11
  129. package/dist/collection/components/{illustration → atoms/illustration}/illustration.component.js +4 -11
  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/{tooltip → atoms/tooltip}/tooltip.component.js +122 -32
  138. package/dist/collection/components/molecules/pagination/pagination.component.css +3 -0
  139. package/dist/collection/components/molecules/pagination/pagination.component.js +219 -0
  140. package/dist/collection/tailwind/border-radius.js +1 -0
  141. package/dist/collection/tailwind/grid.js +24 -4
  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 +6 -7
  145. package/dist/{esm/p-icon.entry.js → components/icon.component.js} +67 -52
  146. package/dist/components/index.d.ts +9 -1
  147. package/dist/components/index.js +8 -0
  148. package/dist/components/loader.component.js +74 -0
  149. package/dist/components/p-avatar.d.ts +11 -0
  150. package/dist/components/p-avatar.js +52 -0
  151. package/dist/components/p-button.js +67 -8
  152. package/dist/components/p-counter.d.ts +11 -0
  153. package/dist/components/p-counter.js +33 -0
  154. package/dist/components/p-divider.d.ts +11 -0
  155. package/dist/components/p-divider.js +33 -0
  156. package/dist/components/p-helper.d.ts +11 -0
  157. package/dist/components/p-helper.js +39 -0
  158. package/dist/components/p-icon.js +1 -815
  159. package/dist/components/p-illustration.js +3 -7
  160. package/dist/components/p-info-panel.d.ts +11 -0
  161. package/dist/components/p-info-panel.js +56 -0
  162. package/dist/components/p-loader.d.ts +11 -0
  163. package/dist/components/p-loader.js +6 -0
  164. package/dist/components/p-pagination-item.d.ts +11 -0
  165. package/dist/components/p-pagination-item.js +6 -0
  166. package/dist/components/p-pagination.d.ts +11 -0
  167. package/dist/components/p-pagination.js +192 -0
  168. package/dist/components/p-tooltip.js +1 -1886
  169. package/dist/components/pagination-item.component.js +36 -0
  170. package/dist/components/tooltip.component.js +1932 -0
  171. package/dist/esm/{index-e4d80e41.js → index-5c917d13.js} +487 -10
  172. package/dist/esm/loader.js +2 -2
  173. package/dist/esm/p-avatar.entry.js +28 -0
  174. package/dist/esm/p-button_3.entry.js +899 -0
  175. package/dist/esm/p-counter.entry.js +15 -0
  176. package/dist/esm/p-divider.entry.js +15 -0
  177. package/dist/esm/p-helper.entry.js +15 -0
  178. package/dist/esm/p-illustration.entry.js +11 -14
  179. package/dist/esm/p-info-panel.entry.js +27 -0
  180. package/dist/esm/p-pagination-item.entry.js +19 -0
  181. package/dist/esm/p-pagination.entry.js +159 -0
  182. package/dist/esm/p-tooltip.entry.js +62 -20
  183. package/dist/esm/paperless.js +2 -2
  184. package/dist/index.html +1 -1
  185. package/dist/paperless/p-06a38756.entry.js +1 -0
  186. package/dist/paperless/p-19afe191.entry.js +1 -0
  187. package/dist/paperless/p-229f113b.js +2 -0
  188. package/dist/{build/p-98d636b6.entry.js → paperless/p-23980fbb.entry.js} +1 -1
  189. package/dist/paperless/p-31f80006.entry.js +1 -0
  190. package/dist/paperless/p-332028c6.entry.js +1 -0
  191. package/dist/paperless/p-5f0ec763.entry.js +1 -0
  192. package/dist/paperless/p-6c6c1137.entry.js +1 -0
  193. package/dist/paperless/p-80bf9d06.entry.js +1 -0
  194. package/dist/paperless/p-e80637b9.entry.js +1 -0
  195. package/dist/paperless/p-ec52095f.entry.js +1 -0
  196. package/dist/paperless/paperless.css +3843 -201
  197. package/dist/paperless/paperless.esm.js +1 -1
  198. package/dist/sw.js +245 -49
  199. package/dist/tailwind.config.js +6 -7
  200. package/dist/types/components/atoms/avatar/avatar.component.d.ts +21 -0
  201. package/dist/types/components/atoms/button/button.component.d.ts +51 -0
  202. package/dist/types/components/atoms/counter/counter.component.d.ts +3 -0
  203. package/dist/types/components/atoms/divider/divider.component.d.ts +3 -0
  204. package/dist/types/components/atoms/helper/helper.component.d.ts +3 -0
  205. package/dist/types/components/{icon → atoms/icon}/icon.component.d.ts +3 -2
  206. package/dist/types/components/{illustration → atoms/illustration}/illustration.component.d.ts +2 -2
  207. package/dist/types/components/atoms/info-panel/info-panel.component.d.ts +24 -0
  208. package/dist/types/components/atoms/loader/loader.component.d.ts +30 -0
  209. package/dist/types/components/atoms/pagination-item/pagination-item.component.d.ts +7 -0
  210. package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +40 -0
  211. package/dist/types/components/molecules/pagination/pagination.component.d.ts +31 -0
  212. package/dist/types/components.d.ts +358 -20
  213. package/package.json +3 -2
  214. package/dist/build/p-3318b73b.entry.js +0 -1
  215. package/dist/build/p-6f9229a6.js +0 -2
  216. package/dist/build/p-711630fb.entry.js +0 -1
  217. package/dist/build/p-c3d80205.entry.js +0 -1
  218. package/dist/cjs/p-button.cjs.entry.js +0 -23
  219. package/dist/collection/components/button/button.component.css +0 -6
  220. package/dist/collection/components/button/button.component.js +0 -42
  221. package/dist/collection/components/tooltip/tooltip.component.css +0 -34
  222. package/dist/esm/p-button.entry.js +0 -19
  223. package/dist/paperless/p-3318b73b.entry.js +0 -1
  224. package/dist/paperless/p-6f9229a6.js +0 -2
  225. package/dist/paperless/p-711630fb.entry.js +0 -1
  226. package/dist/paperless/p-c3d80205.entry.js +0 -1
  227. package/dist/types/components/button/button.component.d.ts +0 -7
  228. package/dist/types/components/tooltip/tooltip.component.d.ts +0 -28
@@ -1405,14 +1405,10 @@ const illustrations = {
1405
1405
  'upgrade-to-hr': upgradeToHr,
1406
1406
  };
1407
1407
 
1408
- const Icon = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1408
+ const Illustration = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1409
1409
  constructor() {
1410
1410
  super();
1411
1411
  this.__registerHost();
1412
- /**
1413
- * The icon the be displayed
1414
- */
1415
- this.variant = null;
1416
1412
  }
1417
1413
  render() {
1418
1414
  const illustration = illustrations[this.variant];
@@ -1429,13 +1425,13 @@ function defineCustomElement$1() {
1429
1425
  components.forEach(tagName => { switch (tagName) {
1430
1426
  case "p-illustration":
1431
1427
  if (!customElements.get(tagName)) {
1432
- customElements.define(tagName, Icon);
1428
+ customElements.define(tagName, Illustration);
1433
1429
  }
1434
1430
  break;
1435
1431
  } });
1436
1432
  }
1437
1433
 
1438
- const PIllustration = Icon;
1434
+ const PIllustration = Illustration;
1439
1435
  const defineCustomElement = defineCustomElement$1;
1440
1436
 
1441
1437
  export { PIllustration, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface PInfoPanel extends Components.PInfoPanel, HTMLElement {}
4
+ export const PInfoPanel: {
5
+ prototype: PInfoPanel;
6
+ new (): PInfoPanel;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,56 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+ import { d as defineCustomElement$2 } from './icon.component.js';
3
+
4
+ const infoPanelComponentCss = "/*! tailwindcss v3.1.4 | MIT License | https://tailwindcss.com*/*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;border:0 solid;box-sizing:border-box}:after,:before{--tw-content:\"\"}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.absolute{position:absolute!important}.relative{position:relative!important}.top-2{top:.5rem!important}.right-2{right:.5rem!important}.flex{display:flex!important}.w-full{width:100%!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.bg-indigo-light{--tw-bg-opacity:1!important;background-color:rgb(241 246 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.font-semibold{font-weight:600!important}:host{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity));border-radius:.375rem;display:flex;flex-direction:column;padding:1rem;position:relative;width:100%}:host .header{--tw-text-opacity:1;color:rgb(39 40 56/var(--tw-text-opacity));font-weight:600}:host .content{font-size:.875rem;line-height:1.25rem}:host .close{--tw-text-opacity:1;color:rgb(152 154 183/var(--tw-text-opacity));cursor:pointer;position:absolute;right:.5rem;top:.5rem}:host(.variant-positive){--tw-bg-opacity:1;background-color:rgb(229 255 242/var(--tw-bg-opacity))}:host(.variant-unbiased){--tw-bg-opacity:1;background-color:rgb(255 246 220/var(--tw-bg-opacity))}:host(.variant-negative){--tw-bg-opacity:1;background-color:rgb(255 204 211/var(--tw-bg-opacity))}:host(.has-close){padding-right:2rem}.static{position:static!important}";
5
+
6
+ const InfoPanel = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
7
+ constructor() {
8
+ super();
9
+ this.__registerHost();
10
+ this.__attachShadow();
11
+ /**
12
+ * The variant of the info panel
13
+ */
14
+ this.variant = 'info';
15
+ /**
16
+ * Wether the panel can be closed
17
+ */
18
+ this.closeable = false;
19
+ }
20
+ render() {
21
+ return (h(Host, { class: `p-info-panel variant-${this.variant} ${this.closeable && 'has-close'}` }, h("div", { class: "header" }, h("slot", { name: "header" })), h("div", { class: "content" }, h("slot", { name: "content" })), this.closeable && (h("div", { class: "close", onClick: () => this._close() }, h("p-icon", { variant: "negative" })))));
22
+ }
23
+ _close() {
24
+ this._el.remove();
25
+ }
26
+ get _el() { return this; }
27
+ static get style() { return infoPanelComponentCss; }
28
+ }, [1, "p-info-panel", {
29
+ "variant": [1],
30
+ "header": [1],
31
+ "content": [1],
32
+ "closeable": [4]
33
+ }]);
34
+ function defineCustomElement$1() {
35
+ if (typeof customElements === "undefined") {
36
+ return;
37
+ }
38
+ const components = ["p-info-panel", "p-icon"];
39
+ components.forEach(tagName => { switch (tagName) {
40
+ case "p-info-panel":
41
+ if (!customElements.get(tagName)) {
42
+ customElements.define(tagName, InfoPanel);
43
+ }
44
+ break;
45
+ case "p-icon":
46
+ if (!customElements.get(tagName)) {
47
+ defineCustomElement$2();
48
+ }
49
+ break;
50
+ } });
51
+ }
52
+
53
+ const PInfoPanel = InfoPanel;
54
+ const defineCustomElement = defineCustomElement$1;
55
+
56
+ export { PInfoPanel, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface PLoader extends Components.PLoader, HTMLElement {}
4
+ export const PLoader: {
5
+ prototype: PLoader;
6
+ new (): PLoader;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,6 @@
1
+ import { L as Loader, d as defineCustomElement$1 } from './loader.component.js';
2
+
3
+ const PLoader = Loader;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { PLoader, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface PPaginationItem extends Components.PPaginationItem, HTMLElement {}
4
+ export const PPaginationItem: {
5
+ prototype: PPaginationItem;
6
+ new (): PPaginationItem;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,6 @@
1
+ import { P as PaginationItem, d as defineCustomElement$1 } from './pagination-item.component.js';
2
+
3
+ const PPaginationItem = PaginationItem;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { PPaginationItem, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface PPagination extends Components.PPagination, HTMLElement {}
4
+ export const PPagination: {
5
+ prototype: PPagination;
6
+ new (): PPagination;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,192 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+ import { d as defineCustomElement$3 } from './icon.component.js';
3
+ import { d as defineCustomElement$2 } from './pagination-item.component.js';
4
+
5
+ const paginationComponentCss = "/*! tailwindcss v3.1.4 | MIT License | https://tailwindcss.com*/*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;border:0 solid;box-sizing:border-box}:after,:before{--tw-content:\"\"}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.flex{display:flex!important}p-pagination{display:flex}.static{position:static!important}";
6
+
7
+ const Pagination = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
8
+ constructor() {
9
+ super();
10
+ this.__registerHost();
11
+ /**
12
+ * The current page
13
+ */
14
+ this.value = 1;
15
+ /**
16
+ * The amount of items per page
17
+ */
18
+ this.pageSize = 12;
19
+ this._pages = [];
20
+ this._set = [];
21
+ this._nextClick = () => {
22
+ const nextPage = this.value + 1;
23
+ if (nextPage > this._pages[this._pages.length - 1]) {
24
+ return;
25
+ }
26
+ this._changePage(nextPage);
27
+ };
28
+ this._pageClick = (p) => this._changePage(p);
29
+ this._generateSet = (range = 1, enableBoundaries = true) => {
30
+ const totalPages = this._pages.length;
31
+ if (!totalPages) {
32
+ return [];
33
+ }
34
+ let start = this.value - range;
35
+ let end = this.value + range;
36
+ if (end > totalPages) {
37
+ end = totalPages;
38
+ start = totalPages - range * 2;
39
+ start = start < 1 ? 1 : start;
40
+ }
41
+ if (start <= 1) {
42
+ start = 1;
43
+ end = Math.min(range * 2 + 1, totalPages);
44
+ }
45
+ const set = [];
46
+ const previous = {
47
+ type: 'previous',
48
+ value: h("p-icon", { variant: "chevron", rotate: 90 }),
49
+ };
50
+ const next = {
51
+ type: 'next',
52
+ value: h("p-icon", { variant: "chevron", rotate: -90 }),
53
+ };
54
+ // Disable page range, display all the pages
55
+ if (range === null) {
56
+ const p = this._pages.map(p => ({
57
+ type: 'page',
58
+ value: p,
59
+ }));
60
+ return enableBoundaries ? [previous, ...p, next] : p;
61
+ }
62
+ if (enableBoundaries) {
63
+ set.push(previous);
64
+ }
65
+ if (start <= 3) {
66
+ for (let i = 1; i < start; i++) {
67
+ set.push({
68
+ type: 'page',
69
+ value: this._pages[i - 1],
70
+ });
71
+ }
72
+ }
73
+ else {
74
+ set.push({
75
+ type: 'page',
76
+ value: 1,
77
+ });
78
+ set.push({
79
+ type: 'ellipsis',
80
+ value: 'ellipsis',
81
+ });
82
+ }
83
+ for (let i = start; i <= end; i++) {
84
+ set.push({
85
+ type: 'page',
86
+ value: this._pages[i - 1],
87
+ });
88
+ }
89
+ if (end >= totalPages - 2) {
90
+ for (let i = end + 1; i <= totalPages; i++) {
91
+ set.push({
92
+ type: 'page',
93
+ value: this._pages[i - 1],
94
+ });
95
+ }
96
+ }
97
+ else {
98
+ set.push({
99
+ type: 'ellipsis',
100
+ });
101
+ set.push({
102
+ type: 'page',
103
+ value: this._pages[this._pages.length - 1],
104
+ });
105
+ }
106
+ if (enableBoundaries) {
107
+ set.push(next);
108
+ }
109
+ return set;
110
+ };
111
+ }
112
+ componentWillRender() {
113
+ this._generate();
114
+ }
115
+ render() {
116
+ var _a;
117
+ return (h(Host, { class: "p-pagination" }, (_a = this._set) === null || _a === void 0 ? void 0 : _a.map(p => {
118
+ if (p.type === 'previous' || p.type === 'next') {
119
+ return h("p-pagination-item", { onClick: () => (p.type === 'previous' ? this._previousClick() : this._nextClick()) }, p.value);
120
+ }
121
+ if (p.type === 'ellipsis') {
122
+ return h("p-pagination-item", null, "...");
123
+ }
124
+ return (h("p-pagination-item", { active: p.value === this.value, onClick: () => this._pageClick(p.value) }, p.value));
125
+ })));
126
+ }
127
+ pageChangeHandler() {
128
+ this._generate();
129
+ }
130
+ _generate() {
131
+ this._pages = this._generatePages();
132
+ this._set = this._generateSet();
133
+ }
134
+ _changePage(p) {
135
+ if (!p) {
136
+ return;
137
+ }
138
+ this.value = p;
139
+ }
140
+ _previousClick() {
141
+ const previousPage = this.value - 1;
142
+ if (previousPage < this._pages[0]) {
143
+ return;
144
+ }
145
+ this._changePage(previousPage);
146
+ }
147
+ _generatePages() {
148
+ if (!this.total || !this.pageSize) {
149
+ return [];
150
+ }
151
+ const pages = Math.ceil(this.total / this.pageSize);
152
+ return new Array(pages).fill(undefined).map((_, i) => i + 1);
153
+ }
154
+ static get watchers() { return {
155
+ "value": ["pageChangeHandler"],
156
+ "pageSize": ["pageChangeHandler"],
157
+ "total": ["pageChangeHandler"]
158
+ }; }
159
+ static get style() { return paginationComponentCss; }
160
+ }, [0, "p-pagination", {
161
+ "value": [1026],
162
+ "pageSize": [2, "page-size"],
163
+ "total": [2]
164
+ }]);
165
+ function defineCustomElement$1() {
166
+ if (typeof customElements === "undefined") {
167
+ return;
168
+ }
169
+ const components = ["p-pagination", "p-icon", "p-pagination-item"];
170
+ components.forEach(tagName => { switch (tagName) {
171
+ case "p-pagination":
172
+ if (!customElements.get(tagName)) {
173
+ customElements.define(tagName, Pagination);
174
+ }
175
+ break;
176
+ case "p-icon":
177
+ if (!customElements.get(tagName)) {
178
+ defineCustomElement$3();
179
+ }
180
+ break;
181
+ case "p-pagination-item":
182
+ if (!customElements.get(tagName)) {
183
+ defineCustomElement$2();
184
+ }
185
+ break;
186
+ } });
187
+ }
188
+
189
+ const PPagination = Pagination;
190
+ const defineCustomElement = defineCustomElement$1;
191
+
192
+ export { PPagination, defineCustomElement };