@paperless/core 0.1.0-alpha.50 → 0.1.0-alpha.53

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 (82) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/build/p-23184293.entry.js +1 -0
  3. package/dist/build/p-2a3dd70b.entry.js +1 -0
  4. package/dist/build/p-30026c58.entry.js +1 -0
  5. package/dist/build/p-69a3da4c.entry.js +1 -0
  6. package/dist/build/{p-0fc4e043.entry.js → p-7375bfa0.entry.js} +1 -1
  7. package/dist/build/p-7e05bc4b.entry.js +1 -0
  8. package/dist/build/p-a69581db.entry.js +1 -0
  9. package/dist/build/paperless.esm.js +1 -1
  10. package/dist/cjs/index-f9c302b6.js +18 -2
  11. package/dist/cjs/loader.cjs.js +1 -1
  12. package/dist/cjs/p-accordion.cjs.entry.js +43 -0
  13. package/dist/cjs/p-avatar.cjs.entry.js +4 -1
  14. package/dist/cjs/p-button_3.cjs.entry.js +1 -1
  15. package/dist/cjs/p-divider.cjs.entry.js +1 -1
  16. package/dist/cjs/p-profile.cjs.entry.js +26 -0
  17. package/dist/cjs/p-tab-group.cjs.entry.js +19 -0
  18. package/dist/cjs/p-tab-item.cjs.entry.js +23 -0
  19. package/dist/cjs/paperless.cjs.js +1 -1
  20. package/dist/collection/collection-manifest.json +4 -0
  21. package/dist/collection/components/atoms/avatar/avatar.component.css +1 -1
  22. package/dist/collection/components/atoms/avatar/avatar.component.js +3 -0
  23. package/dist/collection/components/atoms/divider/divider.component.css +1 -1
  24. package/dist/collection/components/atoms/icon/icon.component.css +1 -1
  25. package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.css +1 -1
  26. package/dist/collection/components/atoms/modal-body/modal-body.component.css +1 -1
  27. package/dist/collection/components/atoms/modal-container/modal-container.component.css +1 -1
  28. package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +1 -1
  29. package/dist/collection/components/atoms/modal-header/modal-header.component.css +1 -1
  30. package/dist/collection/components/atoms/profile/profile.component.css +13 -0
  31. package/dist/collection/components/atoms/profile/profile.component.js +25 -0
  32. package/dist/collection/components/atoms/tab-group/tab-group.component.css +9 -0
  33. package/dist/collection/components/atoms/tab-group/tab-group.component.js +17 -0
  34. package/dist/collection/components/atoms/tab-item/tab-item.component.css +10 -0
  35. package/dist/collection/components/atoms/tab-item/tab-item.component.js +41 -0
  36. package/dist/collection/components/molecules/accordion/accordion.component.css +3 -0
  37. package/dist/collection/components/molecules/accordion/accordion.component.js +134 -0
  38. package/dist/components/avatar.component.js +54 -0
  39. package/dist/components/divider.component.js +1 -1
  40. package/dist/components/icon.component.js +1 -1
  41. package/dist/components/index.d.ts +4 -0
  42. package/dist/components/index.js +4 -0
  43. package/dist/components/p-accordion.d.ts +11 -0
  44. package/dist/components/p-accordion.js +74 -0
  45. package/dist/components/p-avatar.js +1 -49
  46. package/dist/components/p-profile.d.ts +11 -0
  47. package/dist/components/p-profile.js +46 -0
  48. package/dist/components/p-tab-group.d.ts +11 -0
  49. package/dist/components/p-tab-group.js +39 -0
  50. package/dist/components/p-tab-item.d.ts +11 -0
  51. package/dist/components/p-tab-item.js +39 -0
  52. package/dist/esm/index-fff70567.js +18 -2
  53. package/dist/esm/loader.js +1 -1
  54. package/dist/esm/p-accordion.entry.js +39 -0
  55. package/dist/esm/p-avatar.entry.js +4 -1
  56. package/dist/esm/p-button_3.entry.js +1 -1
  57. package/dist/esm/p-divider.entry.js +1 -1
  58. package/dist/esm/p-profile.entry.js +22 -0
  59. package/dist/esm/p-tab-group.entry.js +15 -0
  60. package/dist/esm/p-tab-item.entry.js +19 -0
  61. package/dist/esm/paperless.js +1 -1
  62. package/dist/index.html +1 -1
  63. package/dist/paperless/p-23184293.entry.js +1 -0
  64. package/dist/paperless/p-2a3dd70b.entry.js +1 -0
  65. package/dist/paperless/p-30026c58.entry.js +1 -0
  66. package/dist/paperless/p-69a3da4c.entry.js +1 -0
  67. package/dist/paperless/{p-0fc4e043.entry.js → p-7375bfa0.entry.js} +1 -1
  68. package/dist/paperless/p-7e05bc4b.entry.js +1 -0
  69. package/dist/paperless/p-a69581db.entry.js +1 -0
  70. package/dist/paperless/paperless.esm.js +1 -1
  71. package/dist/sw.js +1 -1
  72. package/dist/sw.js.map +1 -1
  73. package/dist/types/components/atoms/profile/profile.component.d.ts +8 -0
  74. package/dist/types/components/atoms/tab-group/tab-group.component.d.ts +3 -0
  75. package/dist/types/components/atoms/tab-item/tab-item.component.d.ts +7 -0
  76. package/dist/types/components/molecules/accordion/accordion.component.d.ts +25 -0
  77. package/dist/types/components.d.ts +100 -0
  78. package/package.json +1 -1
  79. package/dist/build/p-5438d70e.entry.js +0 -1
  80. package/dist/build/p-67079a0b.entry.js +0 -1
  81. package/dist/paperless/p-5438d70e.entry.js +0 -1
  82. package/dist/paperless/p-67079a0b.entry.js +0 -1
@@ -12,6 +12,24 @@ import { IllustrationVariant } from "./components/atoms/illustration/illustratio
12
12
  import { Observable } from "rxjs";
13
13
  import { Placement } from "@popperjs/core";
14
14
  export namespace Components {
15
+ interface PAccordion {
16
+ /**
17
+ * Wether the accordion can be closed
18
+ */
19
+ "closeable": boolean;
20
+ /**
21
+ * Header of the accordion
22
+ */
23
+ "header": string;
24
+ /**
25
+ * Wether the accordion is open
26
+ */
27
+ "open": boolean;
28
+ /**
29
+ * Wether the accordion can be opened
30
+ */
31
+ "openable": boolean;
32
+ }
15
33
  interface PAvatar {
16
34
  /**
17
35
  * The default image to show on errors
@@ -286,6 +304,8 @@ export namespace Components {
286
304
  */
287
305
  "active": boolean;
288
306
  }
307
+ interface PProfile {
308
+ }
289
309
  interface PSegmentContainer {
290
310
  }
291
311
  interface PSegmentItem {
@@ -362,6 +382,14 @@ export namespace Components {
362
382
  */
363
383
  "finished": boolean;
364
384
  }
385
+ interface PTabGroup {
386
+ }
387
+ interface PTabItem {
388
+ /**
389
+ * Wether the tab item is active
390
+ */
391
+ "active": boolean;
392
+ }
365
393
  interface PTooltip {
366
394
  /**
367
395
  * Wether to someone can manually close the popover
@@ -385,6 +413,10 @@ export namespace Components {
385
413
  "variant": 'hover' | 'click' | 'error';
386
414
  }
387
415
  }
416
+ export interface PAccordionCustomEvent<T> extends CustomEvent<T> {
417
+ detail: T;
418
+ target: HTMLPAccordionElement;
419
+ }
388
420
  export interface PButtonCustomEvent<T> extends CustomEvent<T> {
389
421
  detail: T;
390
422
  target: HTMLPButtonElement;
@@ -398,6 +430,12 @@ export interface PPaginationCustomEvent<T> extends CustomEvent<T> {
398
430
  target: HTMLPPaginationElement;
399
431
  }
400
432
  declare global {
433
+ interface HTMLPAccordionElement extends Components.PAccordion, HTMLStencilElement {
434
+ }
435
+ var HTMLPAccordionElement: {
436
+ prototype: HTMLPAccordionElement;
437
+ new (): HTMLPAccordionElement;
438
+ };
401
439
  interface HTMLPAvatarElement extends Components.PAvatar, HTMLStencilElement {
402
440
  }
403
441
  var HTMLPAvatarElement: {
@@ -548,6 +586,12 @@ declare global {
548
586
  prototype: HTMLPPaginationItemElement;
549
587
  new (): HTMLPPaginationItemElement;
550
588
  };
589
+ interface HTMLPProfileElement extends Components.PProfile, HTMLStencilElement {
590
+ }
591
+ var HTMLPProfileElement: {
592
+ prototype: HTMLPProfileElement;
593
+ new (): HTMLPProfileElement;
594
+ };
551
595
  interface HTMLPSegmentContainerElement extends Components.PSegmentContainer, HTMLStencilElement {
552
596
  }
553
597
  var HTMLPSegmentContainerElement: {
@@ -584,6 +628,18 @@ declare global {
584
628
  prototype: HTMLPStepperStepElement;
585
629
  new (): HTMLPStepperStepElement;
586
630
  };
631
+ interface HTMLPTabGroupElement extends Components.PTabGroup, HTMLStencilElement {
632
+ }
633
+ var HTMLPTabGroupElement: {
634
+ prototype: HTMLPTabGroupElement;
635
+ new (): HTMLPTabGroupElement;
636
+ };
637
+ interface HTMLPTabItemElement extends Components.PTabItem, HTMLStencilElement {
638
+ }
639
+ var HTMLPTabItemElement: {
640
+ prototype: HTMLPTabItemElement;
641
+ new (): HTMLPTabItemElement;
642
+ };
587
643
  interface HTMLPTooltipElement extends Components.PTooltip, HTMLStencilElement {
588
644
  }
589
645
  var HTMLPTooltipElement: {
@@ -591,6 +647,7 @@ declare global {
591
647
  new (): HTMLPTooltipElement;
592
648
  };
593
649
  interface HTMLElementTagNameMap {
650
+ "p-accordion": HTMLPAccordionElement;
594
651
  "p-avatar": HTMLPAvatarElement;
595
652
  "p-avatar-group": HTMLPAvatarGroupElement;
596
653
  "p-button": HTMLPButtonElement;
@@ -616,16 +673,41 @@ declare global {
616
673
  "p-navigation-item": HTMLPNavigationItemElement;
617
674
  "p-pagination": HTMLPPaginationElement;
618
675
  "p-pagination-item": HTMLPPaginationItemElement;
676
+ "p-profile": HTMLPProfileElement;
619
677
  "p-segment-container": HTMLPSegmentContainerElement;
620
678
  "p-segment-item": HTMLPSegmentItemElement;
621
679
  "p-status": HTMLPStatusElement;
622
680
  "p-stepper": HTMLPStepperElement;
623
681
  "p-stepper-line": HTMLPStepperLineElement;
624
682
  "p-stepper-step": HTMLPStepperStepElement;
683
+ "p-tab-group": HTMLPTabGroupElement;
684
+ "p-tab-item": HTMLPTabItemElement;
625
685
  "p-tooltip": HTMLPTooltipElement;
626
686
  }
627
687
  }
628
688
  declare namespace LocalJSX {
689
+ interface PAccordion {
690
+ /**
691
+ * Wether the accordion can be closed
692
+ */
693
+ "closeable"?: boolean;
694
+ /**
695
+ * Header of the accordion
696
+ */
697
+ "header": string;
698
+ /**
699
+ * Open change event
700
+ */
701
+ "onIsOpen"?: (event: PAccordionCustomEvent<boolean>) => void;
702
+ /**
703
+ * Wether the accordion is open
704
+ */
705
+ "open"?: boolean;
706
+ /**
707
+ * Wether the accordion can be opened
708
+ */
709
+ "openable"?: boolean;
710
+ }
629
711
  interface PAvatar {
630
712
  /**
631
713
  * The default image to show on errors
@@ -909,6 +991,8 @@ declare namespace LocalJSX {
909
991
  */
910
992
  "active"?: boolean;
911
993
  }
994
+ interface PProfile {
995
+ }
912
996
  interface PSegmentContainer {
913
997
  }
914
998
  interface PSegmentItem {
@@ -985,6 +1069,14 @@ declare namespace LocalJSX {
985
1069
  */
986
1070
  "finished"?: boolean;
987
1071
  }
1072
+ interface PTabGroup {
1073
+ }
1074
+ interface PTabItem {
1075
+ /**
1076
+ * Wether the tab item is active
1077
+ */
1078
+ "active"?: boolean;
1079
+ }
988
1080
  interface PTooltip {
989
1081
  /**
990
1082
  * Wether to someone can manually close the popover
@@ -1008,6 +1100,7 @@ declare namespace LocalJSX {
1008
1100
  "variant"?: 'hover' | 'click' | 'error';
1009
1101
  }
1010
1102
  interface IntrinsicElements {
1103
+ "p-accordion": PAccordion;
1011
1104
  "p-avatar": PAvatar;
1012
1105
  "p-avatar-group": PAvatarGroup;
1013
1106
  "p-button": PButton;
@@ -1033,12 +1126,15 @@ declare namespace LocalJSX {
1033
1126
  "p-navigation-item": PNavigationItem;
1034
1127
  "p-pagination": PPagination;
1035
1128
  "p-pagination-item": PPaginationItem;
1129
+ "p-profile": PProfile;
1036
1130
  "p-segment-container": PSegmentContainer;
1037
1131
  "p-segment-item": PSegmentItem;
1038
1132
  "p-status": PStatus;
1039
1133
  "p-stepper": PStepper;
1040
1134
  "p-stepper-line": PStepperLine;
1041
1135
  "p-stepper-step": PStepperStep;
1136
+ "p-tab-group": PTabGroup;
1137
+ "p-tab-item": PTabItem;
1042
1138
  "p-tooltip": PTooltip;
1043
1139
  }
1044
1140
  }
@@ -1046,6 +1142,7 @@ export { LocalJSX as JSX };
1046
1142
  declare module "@stencil/core" {
1047
1143
  export namespace JSX {
1048
1144
  interface IntrinsicElements {
1145
+ "p-accordion": LocalJSX.PAccordion & JSXBase.HTMLAttributes<HTMLPAccordionElement>;
1049
1146
  "p-avatar": LocalJSX.PAvatar & JSXBase.HTMLAttributes<HTMLPAvatarElement>;
1050
1147
  "p-avatar-group": LocalJSX.PAvatarGroup & JSXBase.HTMLAttributes<HTMLPAvatarGroupElement>;
1051
1148
  "p-button": LocalJSX.PButton & JSXBase.HTMLAttributes<HTMLPButtonElement>;
@@ -1071,12 +1168,15 @@ declare module "@stencil/core" {
1071
1168
  "p-navigation-item": LocalJSX.PNavigationItem & JSXBase.HTMLAttributes<HTMLPNavigationItemElement>;
1072
1169
  "p-pagination": LocalJSX.PPagination & JSXBase.HTMLAttributes<HTMLPPaginationElement>;
1073
1170
  "p-pagination-item": LocalJSX.PPaginationItem & JSXBase.HTMLAttributes<HTMLPPaginationItemElement>;
1171
+ "p-profile": LocalJSX.PProfile & JSXBase.HTMLAttributes<HTMLPProfileElement>;
1074
1172
  "p-segment-container": LocalJSX.PSegmentContainer & JSXBase.HTMLAttributes<HTMLPSegmentContainerElement>;
1075
1173
  "p-segment-item": LocalJSX.PSegmentItem & JSXBase.HTMLAttributes<HTMLPSegmentItemElement>;
1076
1174
  "p-status": LocalJSX.PStatus & JSXBase.HTMLAttributes<HTMLPStatusElement>;
1077
1175
  "p-stepper": LocalJSX.PStepper & JSXBase.HTMLAttributes<HTMLPStepperElement>;
1078
1176
  "p-stepper-line": LocalJSX.PStepperLine & JSXBase.HTMLAttributes<HTMLPStepperLineElement>;
1079
1177
  "p-stepper-step": LocalJSX.PStepperStep & JSXBase.HTMLAttributes<HTMLPStepperStepElement>;
1178
+ "p-tab-group": LocalJSX.PTabGroup & JSXBase.HTMLAttributes<HTMLPTabGroupElement>;
1179
+ "p-tab-item": LocalJSX.PTabItem & JSXBase.HTMLAttributes<HTMLPTabItemElement>;
1080
1180
  "p-tooltip": LocalJSX.PTooltip & JSXBase.HTMLAttributes<HTMLPTooltipElement>;
1081
1181
  }
1082
1182
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paperless/core",
3
- "version": "0.1.0-alpha.50",
3
+ "version": "0.1.0-alpha.53",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1 +0,0 @@
1
- import{r as t,h as i,H as m}from"./p-0100c1a2.js";const r=class{constructor(i){t(this,i)}render(){return i(m,{class:"p-divider"})}};r.style=".static{position:static!important}.my-2{margin-bottom:.5rem!important;margin-top:.5rem!important}.mb-6{margin-bottom:1.5rem!important}.mt-0{margin-top:0!important}.block{display:block!important}.h-px{height:1px!important}.w-80{width:20rem!important}.bg-mystic-medium{--tw-bg-opacity:1!important;background-color:rgb(227 236 243/var(--tw-bg-opacity))!important}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}:host{--tw-bg-opacity:1;background-color:rgb(227 236 243/var(--tw-bg-opacity));display:block;height:1px;margin-bottom:.5rem;margin-top:.5rem;width:100%}.w-\\[33\\.5rem\\]{width:33.5rem!important}.w-\\[38rem\\]{width:38rem!important}.w-\\[47\\.5rem\\]{width:47.5rem!important}.w-\\[57\\.5rem\\]{width:57.5rem!important}";export{r as p_divider}
@@ -1 +0,0 @@
1
- import{r as a,h as t,H as r}from"./p-0100c1a2.js";const i=class{constructor(t){a(this,t),this.variant="user",this.size="medium",this._src=this.src}render(){return t(r,{class:"p-avatar"},t("img",{src:this._src,onError:()=>this._setDefaultLink()}))}_setDefaultLink(){var a;this._src=null!==(a=this.defaultImage)&&void 0!==a?a:"user"===this.variant?"/assets/images/avatar/user-default.svg":"/assets/images/avatar/company-default.svg"}};i.style=".static{position:static!important}.w-10{width:2.5rem!important}.w-20{width:5rem!important}.w-28{width:7rem!important}.rounded{border-radius:.25rem!important}.object-cover{-o-object-fit:cover!important;object-fit:cover!important}p-avatar{display:inline-block}p-avatar>img{-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center}p-avatar[size=small]>img{height:2.5rem;width:2.5rem}p-avatar[size=medium]>img{height:5rem;width:5rem}p-avatar[size=large]>img{height:7rem;width:7rem}p-avatar[variant=company]>img{border-radius:.25rem}p-avatar[variant=company][size=large]>img,p-avatar[variant=company][size=medium]>img{border-radius:.375rem}p-avatar[variant=user]>img{border-radius:100%}";export{i as p_avatar}
@@ -1 +0,0 @@
1
- import{r as t,h as i,H as m}from"./p-0100c1a2.js";const r=class{constructor(i){t(this,i)}render(){return i(m,{class:"p-divider"})}};r.style=".static{position:static!important}.my-2{margin-bottom:.5rem!important;margin-top:.5rem!important}.mb-6{margin-bottom:1.5rem!important}.mt-0{margin-top:0!important}.block{display:block!important}.h-px{height:1px!important}.w-80{width:20rem!important}.bg-mystic-medium{--tw-bg-opacity:1!important;background-color:rgb(227 236 243/var(--tw-bg-opacity))!important}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}:host{--tw-bg-opacity:1;background-color:rgb(227 236 243/var(--tw-bg-opacity));display:block;height:1px;margin-bottom:.5rem;margin-top:.5rem;width:100%}.w-\\[33\\.5rem\\]{width:33.5rem!important}.w-\\[38rem\\]{width:38rem!important}.w-\\[47\\.5rem\\]{width:47.5rem!important}.w-\\[57\\.5rem\\]{width:57.5rem!important}";export{r as p_divider}
@@ -1 +0,0 @@
1
- import{r as a,h as t,H as r}from"./p-0100c1a2.js";const i=class{constructor(t){a(this,t),this.variant="user",this.size="medium",this._src=this.src}render(){return t(r,{class:"p-avatar"},t("img",{src:this._src,onError:()=>this._setDefaultLink()}))}_setDefaultLink(){var a;this._src=null!==(a=this.defaultImage)&&void 0!==a?a:"user"===this.variant?"/assets/images/avatar/user-default.svg":"/assets/images/avatar/company-default.svg"}};i.style=".static{position:static!important}.w-10{width:2.5rem!important}.w-20{width:5rem!important}.w-28{width:7rem!important}.rounded{border-radius:.25rem!important}.object-cover{-o-object-fit:cover!important;object-fit:cover!important}p-avatar{display:inline-block}p-avatar>img{-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center}p-avatar[size=small]>img{height:2.5rem;width:2.5rem}p-avatar[size=medium]>img{height:5rem;width:5rem}p-avatar[size=large]>img{height:7rem;width:7rem}p-avatar[variant=company]>img{border-radius:.25rem}p-avatar[variant=company][size=large]>img,p-avatar[variant=company][size=medium]>img{border-radius:.375rem}p-avatar[variant=user]>img{border-radius:100%}";export{i as p_avatar}