@paperless/core 0.1.0-alpha.82 → 0.1.0-alpha.83

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 (145) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/assets/icons/menu.svg +25 -0
  3. package/dist/assets/icons/more.svg +18 -0
  4. package/dist/assets/icons/signout.svg +23 -0
  5. package/dist/assets/icons/switch.svg +20 -0
  6. package/dist/build/p-0cde65ef.entry.js +1 -0
  7. package/dist/build/p-6fa0b117.entry.js +1 -0
  8. package/dist/build/p-7561ff47.entry.js +1 -0
  9. package/dist/build/p-99fc36a6.entry.js +1 -0
  10. package/dist/build/p-a184bf11.entry.js +1 -0
  11. package/dist/build/p-b1f45d66.entry.js +1 -0
  12. package/dist/build/p-c86da9da.entry.js +1 -0
  13. package/dist/build/p-d249b2f0.entry.js +1 -0
  14. package/dist/build/p-da091040.entry.js +1 -0
  15. package/dist/build/p-ed08cf85.entry.js +1 -0
  16. package/dist/build/{p-0f931c83.entry.js → p-f4c6f4cc.entry.js} +1 -1
  17. package/dist/build/paperless.esm.js +1 -1
  18. package/dist/cjs/index-f9c302b6.js +10 -10
  19. package/dist/cjs/loader.cjs.js +1 -1
  20. package/dist/cjs/p-accordion.cjs.entry.js +1 -1
  21. package/dist/cjs/{p-dropdown.cjs.entry.js → p-avatar_2.cjs.entry.js} +43 -5
  22. package/dist/cjs/p-button_3.cjs.entry.js +101 -3
  23. package/dist/cjs/p-counter.cjs.entry.js +10 -2
  24. package/dist/cjs/p-divider.cjs.entry.js +2 -2
  25. package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +1 -1
  26. package/dist/cjs/p-dropdown-menu-item.cjs.entry.js +2 -2
  27. package/dist/cjs/p-navbar.cjs.entry.js +28 -0
  28. package/dist/cjs/p-navigation-item.cjs.entry.js +2 -2
  29. package/dist/cjs/p-profile.cjs.entry.js +20 -4
  30. package/dist/cjs/p-tooltip.cjs.entry.js +5 -1
  31. package/dist/cjs/paperless.cjs.js +1 -1
  32. package/dist/collection/assets/icons/menu.svg +25 -0
  33. package/dist/collection/assets/icons/more.svg +18 -0
  34. package/dist/collection/assets/icons/signout.svg +23 -0
  35. package/dist/collection/assets/icons/switch.svg +20 -0
  36. package/dist/collection/collection-manifest.json +3 -2
  37. package/dist/collection/components/atoms/avatar/avatar.component.css +2 -2
  38. package/dist/collection/components/atoms/button/button.component.css +14 -16
  39. package/dist/collection/components/atoms/button/button.component.js +1 -1
  40. package/dist/collection/components/atoms/counter/counter.component.css +25 -0
  41. package/dist/collection/components/atoms/counter/counter.component.js +50 -2
  42. package/dist/collection/components/atoms/divider/divider.component.css +3 -3
  43. package/dist/collection/components/atoms/divider/divider.component.js +1 -1
  44. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +5 -4
  45. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +3 -3
  46. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +23 -0
  47. package/dist/collection/components/atoms/icon/icon.component.css +1 -1
  48. package/dist/collection/components/atoms/icon/icon.component.js +1 -1
  49. package/dist/collection/components/atoms/loader/loader.component.css +1 -1
  50. package/dist/collection/components/atoms/segment-item/segment-item.component.js +1 -1
  51. package/dist/collection/components/atoms/status/status.component.js +1 -1
  52. package/dist/collection/components/atoms/tooltip/tooltip.component.js +28 -1
  53. package/dist/collection/components/molecules/accordion/accordion.component.css +1 -1
  54. package/dist/collection/components/molecules/dropdown/dropdown.component.css +5 -2
  55. package/dist/collection/components/molecules/dropdown/dropdown.component.js +42 -8
  56. package/dist/collection/components/molecules/input-group/input-group.component.js +1 -1
  57. package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +5 -11
  58. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +2 -2
  59. package/dist/collection/components/molecules/profile/profile.component.css +33 -0
  60. package/dist/collection/components/molecules/profile/profile.component.js +70 -0
  61. package/dist/collection/components/organisms/navbar/navbar.component.css +39 -0
  62. package/dist/collection/components/organisms/navbar/navbar.component.js +79 -0
  63. package/dist/collection/utils/icons.js +8 -0
  64. package/dist/components/avatar.component.js +1 -1
  65. package/dist/components/button.component.js +119 -0
  66. package/dist/components/counter.component.js +14 -3
  67. package/dist/components/divider.component.js +2 -2
  68. package/dist/components/dropdown-menu-container.component.js +1 -1
  69. package/dist/{esm/p-dropdown.entry.js → components/dropdown.component.js} +47 -14
  70. package/dist/components/icon.component.js +99 -1
  71. package/dist/components/index.d.ts +1 -0
  72. package/dist/components/index.js +1 -0
  73. package/dist/components/loader.component.js +1 -1
  74. package/dist/components/p-accordion.js +1 -1
  75. package/dist/components/p-button.js +1 -117
  76. package/dist/components/p-dropdown-menu-item.js +11 -4
  77. package/dist/components/p-dropdown.js +1 -161
  78. package/dist/components/p-navbar.d.ts +11 -0
  79. package/dist/components/p-navbar.js +64 -0
  80. package/dist/components/p-navigation-item.js +2 -2
  81. package/dist/components/p-profile.js +44 -7
  82. package/dist/components/tooltip.component.js +6 -1
  83. package/dist/esm/index-fff70567.js +10 -10
  84. package/dist/esm/loader.js +1 -1
  85. package/dist/esm/p-accordion.entry.js +1 -1
  86. package/dist/esm/p-avatar_2.entry.js +174 -0
  87. package/dist/esm/p-button_3.entry.js +101 -3
  88. package/dist/esm/p-counter.entry.js +10 -2
  89. package/dist/esm/p-divider.entry.js +2 -2
  90. package/dist/esm/p-dropdown-menu-container.entry.js +1 -1
  91. package/dist/esm/p-dropdown-menu-item.entry.js +2 -2
  92. package/dist/esm/p-navbar.entry.js +24 -0
  93. package/dist/esm/p-navigation-item.entry.js +2 -2
  94. package/dist/esm/p-profile.entry.js +20 -4
  95. package/dist/esm/p-tooltip.entry.js +5 -1
  96. package/dist/esm/paperless.js +1 -1
  97. package/dist/index.html +1 -1
  98. package/dist/paperless/p-0cde65ef.entry.js +1 -0
  99. package/dist/paperless/p-6fa0b117.entry.js +1 -0
  100. package/dist/paperless/p-7561ff47.entry.js +1 -0
  101. package/dist/paperless/p-99fc36a6.entry.js +1 -0
  102. package/dist/paperless/p-a184bf11.entry.js +1 -0
  103. package/dist/paperless/p-b1f45d66.entry.js +1 -0
  104. package/dist/paperless/p-c86da9da.entry.js +1 -0
  105. package/dist/paperless/p-d249b2f0.entry.js +1 -0
  106. package/dist/paperless/p-da091040.entry.js +1 -0
  107. package/dist/paperless/p-ed08cf85.entry.js +1 -0
  108. package/dist/paperless/{p-0f931c83.entry.js → p-f4c6f4cc.entry.js} +1 -1
  109. package/dist/paperless/paperless.esm.js +1 -1
  110. package/dist/sw.js +1 -1
  111. package/dist/sw.js.map +1 -1
  112. package/dist/types/components/atoms/counter/counter.component.d.ts +8 -0
  113. package/dist/types/components/atoms/dropdown-menu-item/dropdown-menu-item.component.d.ts +5 -0
  114. package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +5 -1
  115. package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +6 -1
  116. package/dist/types/components/molecules/profile/profile.component.d.ts +15 -0
  117. package/dist/types/components/organisms/navbar/navbar.component.d.ts +12 -0
  118. package/dist/types/components.d.ts +80 -3
  119. package/dist/types/utils/icons.d.ts +4 -0
  120. package/package.json +1 -1
  121. package/dist/build/p-3222904d.entry.js +0 -1
  122. package/dist/build/p-38e37679.entry.js +0 -1
  123. package/dist/build/p-46a2fa14.entry.js +0 -1
  124. package/dist/build/p-5e959430.entry.js +0 -1
  125. package/dist/build/p-66dc37d4.entry.js +0 -1
  126. package/dist/build/p-bce3c8ba.entry.js +0 -1
  127. package/dist/build/p-c525ea4b.entry.js +0 -1
  128. package/dist/build/p-cfa78aa0.entry.js +0 -1
  129. package/dist/build/p-d8e5ce34.entry.js +0 -1
  130. package/dist/build/p-db6b16e3.entry.js +0 -1
  131. package/dist/cjs/p-avatar.cjs.entry.js +0 -38
  132. package/dist/collection/components/atoms/profile/profile.component.css +0 -13
  133. package/dist/collection/components/atoms/profile/profile.component.js +0 -25
  134. package/dist/esm/p-avatar.entry.js +0 -34
  135. package/dist/paperless/p-3222904d.entry.js +0 -1
  136. package/dist/paperless/p-38e37679.entry.js +0 -1
  137. package/dist/paperless/p-46a2fa14.entry.js +0 -1
  138. package/dist/paperless/p-5e959430.entry.js +0 -1
  139. package/dist/paperless/p-66dc37d4.entry.js +0 -1
  140. package/dist/paperless/p-bce3c8ba.entry.js +0 -1
  141. package/dist/paperless/p-c525ea4b.entry.js +0 -1
  142. package/dist/paperless/p-cfa78aa0.entry.js +0 -1
  143. package/dist/paperless/p-d8e5ce34.entry.js +0 -1
  144. package/dist/paperless/p-db6b16e3.entry.js +0 -1
  145. package/dist/types/components/atoms/profile/profile.component.d.ts +0 -8
@@ -7,7 +7,7 @@
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { IconFlipOptions, IconVariant } from "./components/atoms/icon/icon.component";
9
9
  import { RotateOptions, TextSizeOptions } from "./utils/types";
10
- import { Placement } from "@popperjs/core";
10
+ import { Placement, PositioningStrategy } from "@popperjs/core";
11
11
  import { IconFlipOptions as IconFlipOptions1, IconVariant as IconVariant1 } from "./components/atoms/icon/icon.component";
12
12
  import { IllustrationVariant } from "./components/atoms/illustration/illustration.component";
13
13
  import { Observable } from "rxjs";
@@ -139,6 +139,14 @@ export namespace Components {
139
139
  "header": string;
140
140
  }
141
141
  interface PCounter {
142
+ /**
143
+ * The size of the counter
144
+ */
145
+ "size": 'default' | 'mini';
146
+ /**
147
+ * The variant of the counter
148
+ */
149
+ "variant": 'info' | 'negative' | 'positive' | 'unbiased';
142
150
  }
143
151
  interface PDivider {
144
152
  }
@@ -154,11 +162,15 @@ export namespace Components {
154
162
  /**
155
163
  * The content of the dropdown menu
156
164
  */
157
- "placement": 'bottom' | 'top';
165
+ "placement": Placement;
158
166
  /**
159
167
  * Wether to show the dropdown menu
160
168
  */
161
169
  "show": boolean;
170
+ /**
171
+ * The strategy of the popover placement
172
+ */
173
+ "strategy": PositioningStrategy;
162
174
  }
163
175
  interface PDropdownMenuContainer {
164
176
  }
@@ -167,6 +179,10 @@ export namespace Components {
167
179
  * Wether the dropdown menu item is active
168
180
  */
169
181
  "active": boolean;
182
+ /**
183
+ * Icon of the navigation item
184
+ */
185
+ "icon": IconVariant;
170
186
  }
171
187
  interface PHelper {
172
188
  /**
@@ -322,6 +338,16 @@ export namespace Components {
322
338
  }
323
339
  interface PModalHeader {
324
340
  }
341
+ interface PNavbar {
342
+ /**
343
+ * The text to display for the close button
344
+ */
345
+ "closeText": string;
346
+ /**
347
+ * The text to display for the menu button & sidebar title
348
+ */
349
+ "menuText": string;
350
+ }
325
351
  interface PNavigationItem {
326
352
  /**
327
353
  * Wether the navigation item is active
@@ -365,6 +391,10 @@ export namespace Components {
365
391
  "active": boolean;
366
392
  }
367
393
  interface PProfile {
394
+ /**
395
+ * The variant of the profile
396
+ */
397
+ "variant": 'company' | 'user';
368
398
  }
369
399
  interface PSegmentContainer {
370
400
  }
@@ -480,6 +510,10 @@ export namespace Components {
480
510
  * Wether to show the popover
481
511
  */
482
512
  "show": boolean;
513
+ /**
514
+ * The strategy of the popover placement
515
+ */
516
+ "strategy": PositioningStrategy;
483
517
  /**
484
518
  * The variant of the popover
485
519
  */
@@ -653,6 +687,12 @@ declare global {
653
687
  prototype: HTMLPModalHeaderElement;
654
688
  new (): HTMLPModalHeaderElement;
655
689
  };
690
+ interface HTMLPNavbarElement extends Components.PNavbar, HTMLStencilElement {
691
+ }
692
+ var HTMLPNavbarElement: {
693
+ prototype: HTMLPNavbarElement;
694
+ new (): HTMLPNavbarElement;
695
+ };
656
696
  interface HTMLPNavigationItemElement extends Components.PNavigationItem, HTMLStencilElement {
657
697
  }
658
698
  var HTMLPNavigationItemElement: {
@@ -763,6 +803,7 @@ declare global {
763
803
  "p-modal-container": HTMLPModalContainerElement;
764
804
  "p-modal-footer": HTMLPModalFooterElement;
765
805
  "p-modal-header": HTMLPModalHeaderElement;
806
+ "p-navbar": HTMLPNavbarElement;
766
807
  "p-navigation-item": HTMLPNavigationItemElement;
767
808
  "p-pagination": HTMLPPaginationElement;
768
809
  "p-pagination-item": HTMLPPaginationItemElement;
@@ -915,6 +956,14 @@ declare namespace LocalJSX {
915
956
  "header"?: string;
916
957
  }
917
958
  interface PCounter {
959
+ /**
960
+ * The size of the counter
961
+ */
962
+ "size"?: 'default' | 'mini';
963
+ /**
964
+ * The variant of the counter
965
+ */
966
+ "variant"?: 'info' | 'negative' | 'positive' | 'unbiased';
918
967
  }
919
968
  interface PDivider {
920
969
  }
@@ -934,11 +983,15 @@ declare namespace LocalJSX {
934
983
  /**
935
984
  * The content of the dropdown menu
936
985
  */
937
- "placement"?: 'bottom' | 'top';
986
+ "placement"?: Placement;
938
987
  /**
939
988
  * Wether to show the dropdown menu
940
989
  */
941
990
  "show"?: boolean;
991
+ /**
992
+ * The strategy of the popover placement
993
+ */
994
+ "strategy"?: PositioningStrategy;
942
995
  }
943
996
  interface PDropdownMenuContainer {
944
997
  }
@@ -947,6 +1000,10 @@ declare namespace LocalJSX {
947
1000
  * Wether the dropdown menu item is active
948
1001
  */
949
1002
  "active"?: boolean;
1003
+ /**
1004
+ * Icon of the navigation item
1005
+ */
1006
+ "icon"?: IconVariant;
950
1007
  }
951
1008
  interface PHelper {
952
1009
  /**
@@ -1102,6 +1159,16 @@ declare namespace LocalJSX {
1102
1159
  }
1103
1160
  interface PModalHeader {
1104
1161
  }
1162
+ interface PNavbar {
1163
+ /**
1164
+ * The text to display for the close button
1165
+ */
1166
+ "closeText"?: string;
1167
+ /**
1168
+ * The text to display for the menu button & sidebar title
1169
+ */
1170
+ "menuText"?: string;
1171
+ }
1105
1172
  interface PNavigationItem {
1106
1173
  /**
1107
1174
  * Wether the navigation item is active
@@ -1146,6 +1213,10 @@ declare namespace LocalJSX {
1146
1213
  "active"?: boolean;
1147
1214
  }
1148
1215
  interface PProfile {
1216
+ /**
1217
+ * The variant of the profile
1218
+ */
1219
+ "variant"?: 'company' | 'user';
1149
1220
  }
1150
1221
  interface PSegmentContainer {
1151
1222
  }
@@ -1261,6 +1332,10 @@ declare namespace LocalJSX {
1261
1332
  * Wether to show the popover
1262
1333
  */
1263
1334
  "show"?: boolean;
1335
+ /**
1336
+ * The strategy of the popover placement
1337
+ */
1338
+ "strategy"?: PositioningStrategy;
1264
1339
  /**
1265
1340
  * The variant of the popover
1266
1341
  */
@@ -1292,6 +1367,7 @@ declare namespace LocalJSX {
1292
1367
  "p-modal-container": PModalContainer;
1293
1368
  "p-modal-footer": PModalFooter;
1294
1369
  "p-modal-header": PModalHeader;
1370
+ "p-navbar": PNavbar;
1295
1371
  "p-navigation-item": PNavigationItem;
1296
1372
  "p-pagination": PPagination;
1297
1373
  "p-pagination-item": PPaginationItem;
@@ -1337,6 +1413,7 @@ declare module "@stencil/core" {
1337
1413
  "p-modal-container": LocalJSX.PModalContainer & JSXBase.HTMLAttributes<HTMLPModalContainerElement>;
1338
1414
  "p-modal-footer": LocalJSX.PModalFooter & JSXBase.HTMLAttributes<HTMLPModalFooterElement>;
1339
1415
  "p-modal-header": LocalJSX.PModalHeader & JSXBase.HTMLAttributes<HTMLPModalHeaderElement>;
1416
+ "p-navbar": LocalJSX.PNavbar & JSXBase.HTMLAttributes<HTMLPNavbarElement>;
1340
1417
  "p-navigation-item": LocalJSX.PNavigationItem & JSXBase.HTMLAttributes<HTMLPNavigationItemElement>;
1341
1418
  "p-pagination": LocalJSX.PPagination & JSXBase.HTMLAttributes<HTMLPPaginationElement>;
1342
1419
  "p-pagination-item": LocalJSX.PPaginationItem & JSXBase.HTMLAttributes<HTMLPPaginationItemElement>;
@@ -23,7 +23,9 @@ declare const _default: {
23
23
  list: string;
24
24
  location: string;
25
25
  megaphone: string;
26
+ menu: string;
26
27
  minus: string;
28
+ more: string;
27
29
  negative: string;
28
30
  pagination: string;
29
31
  payment: string;
@@ -36,6 +38,8 @@ declare const _default: {
36
38
  search: string;
37
39
  settings: string;
38
40
  sick: string;
41
+ signout: string;
42
+ switch: string;
39
43
  tachometer: string;
40
44
  task: string;
41
45
  template: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paperless/core",
3
- "version": "0.1.0-alpha.82",
3
+ "version": "0.1.0-alpha.83",
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 o,H as i}from"./p-0100c1a2.js";const r=class{constructor(o){t(this,o),this.active=!1}render(){return o(i,{class:`p-navigation-item ${this.active&&"active"}`},o("a",{href:this.href,target:this.target},this.icon&&o("p-icon",{variant:this.icon}),o("span",{class:this.counter&&"has-counter"},o("slot",null)),this.counter&&o("p-counter",null,this.counter)))}};r.style=".static{position:static!important}.inline-block{display:inline-block!important}.flex{display:flex!important}.h-8{height:2rem!important}.w-full{width:100%!important}.cursor-pointer{cursor:pointer!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-storm-medium{--tw-text-opacity:1!important;color:rgb(128 130 158/var(--tw-text-opacity))!important}.text-mystic-dark{--tw-text-opacity:1!important;color:rgb(218 230 240/var(--tw-text-opacity))!important}.text-indigo{--tw-text-opacity:1!important;color:rgb(82 138 250/var(--tw-text-opacity))!important}*{box-sizing:border-box}:host{display:inline-block;margin-bottom:.25rem;width:100%}:host>a{--tw-text-opacity:1;align-items:center;border-radius:.375rem;color:rgb(128 130 158/var(--tw-text-opacity));cursor:pointer;display:flex;font-weight:500;height:2rem;padding-left:.5rem;padding-right:.5rem;width:100%}:host>a:hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity));color:rgb(39 40 56/var(--tw-text-opacity))}:host>a>p-icon{--tw-text-opacity:1;color:rgb(218 230 240/var(--tw-text-opacity));margin-right:.75rem}:host>a>p-counter{margin-left:auto}:host>a>span.has-counter{margin-right:.75rem}:host>a:hover>p-icon{--tw-text-opacity:1;color:rgb(152 154 183/var(--tw-text-opacity))}:host(.active)>a{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity));color:rgb(82 138 250/var(--tw-text-opacity))}:host(.active)>a>p-icon{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity))}.hover\\:bg-indigo-light:hover{--tw-bg-opacity:1!important;background-color:rgb(241 246 255/var(--tw-bg-opacity))!important}";export{r as p_navigation_item}
@@ -1 +0,0 @@
1
- import{r as t,h as r,H as a}from"./p-0100c1a2.js";const o=class{constructor(r){t(this,r)}render(){return r(a,{class:"p-dropdown-menu-container"},r("slot",null))}};o.style=".visible{visibility:visible!important}.static{position:static!important}.flex{display:flex!important}.min-w-\\[222px\\]{min-width:222px!important}.flex-col{flex-direction:column!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.py-2{padding-bottom:.5rem!important;padding-top:.5rem!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}*{box-sizing:border-box}p-dropdown-menu-container{--tw-bg-opacity:1;--tw-drop-shadow:drop-shadow(0px 0.3125rem 1rem rgba(0,24,98,.08)) drop-shadow(0px 0.0625rem 0.1875rem rgba(0,24,98,.13));background-color:rgb(255 255 255/var(--tw-bg-opacity));border-radius:.75rem;display:flex;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);flex-direction:column;min-width:222px;padding-bottom:.5rem;padding-top:.5rem}";export{o as p_dropdown_menu_container}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s,H as o,g as e}from"./p-0100c1a2.js";import{c as h}from"./p-a7086ffa.js";const n=class{constructor(s){t(this,s),this.isOpen=i(this,"isOpen",7),this.placement="bottom",this.show=!1,this.insideClick=!1,this.disableTriggerClick=!1,this._loaded=!1}componentShouldUpdate(){this._setOptions(),this._loaded&&this.show&&this._show()}render(){return s(o,{class:"p-dropdown"},s("div",{class:"trigger",onClick:()=>this._triggerClickHandler()},s("slot",{onSlotchange:t=>this._checkButton(t),name:"trigger"})),s("p-dropdown-menu-container",{role:"popover",ref:t=>this._load(t),onClick:()=>this._containerClickHandler()},s("slot",{name:"items"})))}_checkButton({target:t}){const i=t.assignedElements();for(let t of i)"P-BUTTON"===t.nodeName&&(t.chevron="top"===this.placement?"up":"down")}_containerClickHandler(){this.insideClick||this._menu.hasAttribute("data-show")&&this._hide()}_triggerClickHandler(){this.disableTriggerClick||(this._menu.hasAttribute("data-show")?this._hide():this._show())}documentClickHandler({target:t}){this._menu.hasAttribute("data-show")&&!((t,i)=>{for(;(t=t.parentNode)&&t!==i;);return!!t})(t,this._el)&&this._hide()}_load(t){this._menu=t,t&&(this._popper=h(this._el,t),this._setOptions(),this._loaded=!0,this.show&&setTimeout((()=>this._show()),100))}_setOptions(){this._popper&&this._popper.setOptions({placement:`${this.placement}-start`,modifiers:[{name:"offset",options:{offset:[0,8]}}]})}_show(){this._loaded&&(this._menu.setAttribute("data-show",""),this.isOpen.emit(!0),this._popper.setOptions((t=>Object.assign(Object.assign({},t),{modifiers:[...t.modifiers,{name:"eventListeners",enabled:!0}]}))),this._popper.update())}_hide(){this._loaded&&!this.show&&(this._menu.removeAttribute("data-show"),this.isOpen.emit(!1),this._popper.setOptions((t=>Object.assign(Object.assign({},t),{modifiers:[...t.modifiers,{name:"eventListeners",enabled:!1}]}))))}get _el(){return e(this)}};n.style=".visible{visibility:visible!important}.static{position:static!important}.flex{display:flex!important}.hidden{display:none!important}.h-auto{height:auto!important}.w-auto{width:auto!important}*{box-sizing:border-box}:host .trigger{display:inline-block;height:auto;width:auto}:host p-dropdown-menu-container{display:none}:host p-dropdown-menu-container[data-show]{display:flex}";export{n as p_dropdown}
@@ -1 +0,0 @@
1
- import{r as t,h as e,H as a,g as i}from"./p-0100c1a2.js";const r=class{constructor(e){t(this,e)}render(){const t=this._generateAvatar();return e(a,{class:"p-profile"},t,e("div",{class:"name"},e("slot",{name:"title"}),e("slot",{name:"subtitle"})))}_generateAvatar(){var t,a;const i=this._el.querySelector('p-avatar[slot="avatar"]');return e("p-avatar",{class:"flex",src:null!==(t=i.src)&&void 0!==t?t:null,"default-image":null!==(a=i.defaultImage)&&void 0!==a?a:null,variant:i.variant,size:"small"})}get _el(){return i(this)}};r.style=".static{position:static!important}.flex{display:flex!important}.flex-col{flex-direction:column!important}.gap-4{gap:1rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}*{box-sizing:border-box}:host{align-items:center;display:flex;gap:1rem}:host .name{display:flex;flex-direction:column;justify-content:center}:host .name>:first-child{--tw-text-opacity:1;color:rgb(39 40 56/var(--tw-text-opacity));font-size:.875rem;font-weight:600;line-height:1.25rem}:host .name>:nth-child(2){--tw-text-opacity:1;color:rgb(152 154 183/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem}";export{r as p_profile}
@@ -1 +0,0 @@
1
- import{r as t,h as r,H as o,g as e}from"./p-0100c1a2.js";import{c as a}from"./p-a7086ffa.js";const i=class{constructor(r){t(this,r),this.variant="hover",this.popover=null,this.placement="top",this.show=!1,this.canManuallyClose=!0,this._loaded=!1}componentShouldUpdate(){this._setOptions(),this._loaded&&this.show&&this._show()}render(){return r(o,{class:"p-popover"},r("slot",{name:"content"}),r("div",{class:"popover-container"},r("div",{class:`popover variant-${this.variant}`,role:"popover",ref:t=>this._load(t)},this.popover?this.popover:r("slot",{name:"popover"}),r("div",{class:"arrow","data-popper-arrow":!0}))))}clickHandler(){"click"===this.variant&&(this._popover.hasAttribute("data-show")||this._show())}documentClickHandler(){"click"===this.variant&&this.canManuallyClose&&this._popover.hasAttribute("data-show")&&this._hide()}mouseEnterHandler(){"click"!==this.variant&&this._show()}mouseLeaveHandler(){this.show||"click"===this.variant||this._hide()}_show(){this._loaded&&(this._popover.setAttribute("data-show",""),this._popper.setOptions((t=>Object.assign(Object.assign({},t),{modifiers:[...t.modifiers,{name:"eventListeners",enabled:!0}]}))),this._popper.update())}_hide(){this._loaded&&(this._popover.removeAttribute("data-show"),this._popper.setOptions((t=>Object.assign(Object.assign({},t),{modifiers:[...t.modifiers,{name:"eventListeners",enabled:!1}]}))))}_load(t){this._popover=t,t&&(this._popper=a(this._el,t,{strategy:"fixed"}),this._setOptions(),this._loaded=!0,this.show&&setTimeout((()=>this._show()),100))}_setOptions(){this._popper&&this._popper.setOptions({placement:"error"===this.variant?"top-end":this.placement,modifiers:[{name:"offset",options:{offset:"error"===this.variant?[8,14]:[0,8]}},{name:"arrow",options:{padding:4}}]})}get _el(){return e(this)}};i.style='.visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.relative{position:relative!important}.ml-2{margin-left:.5rem!important}.block{display:block!important}.flex{display:flex!important}.hidden{display:none!important}.h-0{height:0!important}.w-0{width:0!important}.w-2{width:.5rem!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.items-end{align-items:flex-end!important}.justify-between{justify-content:space-between!important}.rounded{border-radius:.25rem!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.bg-storm,.bg-white{--tw-bg-opacity:1!important}.bg-storm{background-color:rgb(81 83 107/var(--tw-bg-opacity))!important}.bg-negative{--tw-bg-opacity:1!important;background-color:rgb(185 30 40/var(--tw-bg-opacity))!important}.py-2{padding-bottom:.5rem!important;padding-top:.5rem!important}.px-3{padding-left:.75rem!important;padding-right:.75rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-medium{font-weight:500!important}.uppercase{text-transform:uppercase!important}.text-white{color:rgb(255 255 255/var(--tw-text-opacity))!important}.text-negative-light,.text-white{--tw-text-opacity:1!important}.text-negative-light{color:rgb(255 204 211/var(--tw-text-opacity))!important}.blur{--tw-blur:blur(8px)!important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}*{box-sizing:border-box}:host{cursor:pointer;display:flex}:host .popover-container{height:0;position:relative;width:0}:host .popover-container .popover{--tw-bg-opacity:1;--tw-drop-shadow:drop-shadow(0px 0.3125rem 1rem rgba(0,24,98,.08)) drop-shadow(0px 0.0625rem 0.1875rem rgba(0,24,98,.13));background-color:rgb(255 255 255/var(--tw-bg-opacity));border-radius:.25rem;display:none;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);font-size:.75rem;font-weight:500;line-height:1rem;max-width:14.5rem;padding:.5rem .75rem}:host .popover-container .popover.variant-error,:host .popover-container .popover.variant-hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(81 83 107/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity));padding-bottom:.25rem;padding-top:.25rem}:host .popover-container .popover.variant-error{--tw-bg-opacity:1;background-color:rgb(185 30 40/var(--tw-bg-opacity));letter-spacing:.05em;text-transform:uppercase}:host .popover-container .popover[data-show]{display:block}:host .popover-container .popover .arrow,:host .popover-container .popover .arrow:before{background:inherit;height:.5rem;position:absolute;width:.5rem}:host .popover-container .popover .arrow{visibility:hidden}:host .popover-container .popover .arrow:before{--tw-rotate:45deg;content:"";transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));visibility:visible}:host .popover-container .popover[data-popper-placement^=top]>.arrow{bottom:-.25rem}:host .popover-container .popover[data-popper-placement^=bottom]>.arrow{top:-.25rem}:host .popover-container .popover[data-popper-placement^=left]>.arrow{right:-.25rem}:host .popover-container .popover[data-popper-placement^=right]>.arrow{left:-.25rem}.hover\\:text-negative:hover{--tw-text-opacity:1!important;color:rgb(185 30 40/var(--tw-text-opacity))!important}';export{i as p_tooltip}
@@ -1 +0,0 @@
1
- import{r as t,h as a,H as r,g as e}from"./p-0100c1a2.js";const o=class{constructor(a){t(this,a)}render(){var t;const e=!!(null===(t=this._el.innerHTML)||void 0===t?void 0:t.length);return a(r,{class:"p-divider"},a("div",{class:"container"},a("div",{class:`flex items-center ${e&&"px-2"}`},a("slot",null))))}get _el(){return e(this)}};o.style='.static{position:static!important}.m-0{margin:0!important}.my-2{margin-bottom:.5rem!important;margin-top:.5rem!important}.mt-6{margin-top:1.5rem!important}.mb-6{margin-bottom:1.5rem!important}.mt-0{margin-top:0!important}.block{display:block!important}.flex{display:flex!important}.h-px{height:1px!important}.w-full{width:100%!important}.rotate-0{--tw-rotate:0deg!important}.rotate-0,.rotate-25{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-25{--tw-rotate:25deg!important}.rotate-45{--tw-rotate:45deg!important}.rotate-45,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-90{--tw-rotate:90deg!important}.rotate-135{--tw-rotate:135deg!important}.rotate-135,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-180{--tw-rotate:180deg!important}.rotate-225{--tw-rotate:225deg!important}.rotate-225,.rotate-270{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-270{--tw-rotate:270deg!important}.rotate-315{--tw-rotate:315deg!important}.-rotate-0,.rotate-315{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-0{--tw-rotate:-0deg!important}.-rotate-25{--tw-rotate:-25deg!important}.-rotate-25,.-rotate-45{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-45{--tw-rotate:-45deg!important}.-rotate-90{--tw-rotate:-90deg!important}.-rotate-135,.-rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-135{--tw-rotate:-135deg!important}.-rotate-180{--tw-rotate:-180deg!important}.-rotate-180,.-rotate-225{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-225{--tw-rotate:-225deg!important}.-rotate-270{--tw-rotate:-270deg!important}.-rotate-270,.-rotate-315{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-315{--tw-rotate:-315deg!important}.scale-x-flip{--tw-scale-x:-1!important}.scale-x-flip,.scale-y-flip{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.scale-y-flip{--tw-scale-y:-1!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.cursor-pointer{cursor:pointer!important}.items-center{align-items:center!important}.gap-3{gap:.75rem!important}.whitespace-nowrap{white-space:nowrap!important}.bg-mystic-medium{--tw-bg-opacity:1!important;background-color:rgb(227 236 243/var(--tw-bg-opacity))!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.text-xxs{font-size:.6875rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-xl{font-size:1.25rem!important;line-height:1.75rem!important}.text-2xl{font-size:1.5rem!important;line-height:2rem!important}.text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}.text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}.text-5xl{font-size:3rem!important}.text-5xl,.text-6xl{line-height:1!important}.text-6xl{font-size:3.75rem!important}.font-medium{font-weight:500!important}.text-storm-vague{--tw-text-opacity:1!important;color:rgb(152 154 183/var(--tw-text-opacity))!important}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:120rem){.container{max-width:120rem}}@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}}*{box-sizing:border-box}:host{display:block;margin-bottom:.5rem;margin-top:.5rem;width:100%}:host .container{align-items:center;display:flex;width:100%}:host .container:after,:host .container:before{--tw-bg-opacity:1;background-color:rgb(227 236 243/var(--tw-bg-opacity));content:"";flex:1 1 0%;height:1px}.-rotate-0,.-rotate-135,.-rotate-180,.-rotate-225,.-rotate-25,.-rotate-270,.-rotate-315,.-rotate-45,.-rotate-90,.rotate-0,.rotate-135,.rotate-180,.rotate-225,.rotate-25,.rotate-270,.rotate-315,.rotate-45,.rotate-90,.scale-x-flip,.scale-y-flip{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.text-lg,.text-xl{line-height:1.75rem!important}@media (min-width:40rem){.tablet\\:w-80{width:20rem!important}.tablet\\:w-\\[33\\.5rem\\]{width:33.5rem!important}.tablet\\:w-\\[38rem\\]{width:38rem!important}.tablet\\:w-\\[47\\.5rem\\]{width:47.5rem!important}.tablet\\:w-\\[57\\.5rem\\]{width:57.5rem!important}}';export{o as p_divider}
@@ -1 +0,0 @@
1
- import{r as t,h as r,H as o}from"./p-0100c1a2.js";const i=class{constructor(r){t(this,r),this.active=!1}render(){return r(o,{class:`p-dropdown-menu-item ${this.active&&"active"}`},r("slot",null))}};i.style=".static{position:static!important}.flex{display:flex!important}.h-8{height:2rem!important}.items-center{align-items:center!important}.rounded{border-radius:.25rem!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-storm-medium{--tw-text-opacity:1!important;color:rgb(128 130 158/var(--tw-text-opacity))!important}.text-storm{color:rgb(81 83 107/var(--tw-text-opacity))!important}.text-indigo,.text-storm{--tw-text-opacity:1!important}.text-indigo{color:rgb(82 138 250/var(--tw-text-opacity))!important}*{box-sizing:border-box}:host{--tw-text-opacity:1;align-items:center;border-radius:.25rem;color:rgb(128 130 158/var(--tw-text-opacity));cursor:pointer;display:flex;font-size:.875rem;font-weight:500;height:2rem;line-height:1.25rem;padding-left:.5rem;padding-right:.5rem;width:100%}:host(:hover){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity));color:rgb(81 83 107/var(--tw-text-opacity))}:host(.active){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity));color:rgb(82 138 250/var(--tw-text-opacity))}";export{i as p_dropdown_menu_item}
@@ -1 +0,0 @@
1
- import{r as t,h as a,H as r}from"./p-0100c1a2.js";const i=class{constructor(a){t(this,a),this.variant="user",this.size="medium",this._src=this.src}render(){return this._src||this._setDefaultLink(),a(r,{class:"p-avatar"},a("img",{src:this._src,onError:()=>this._setDefaultLink()}))}_setDefaultLink(){var t;this._src=null!==(t=this.defaultImage)&&void 0!==t?t:"user"===this.variant?"/assets/images/avatar/user-default.svg":"/assets/images/avatar/company-default.svg"}};i.style=".static{position:static!important}.flex{display:flex!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}*{box-sizing:border-box}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 r,H as e}from"./p-0100c1a2.js";const i=class{constructor(r){t(this,r)}render(){return r(e,{class:"p-counter"},r("slot",null))}};i.style=".static{position:static!important}.flex{display:flex!important}.h-4{height:1rem!important}.justify-center{justify-content:center!important}.bg-indigo{--tw-bg-opacity:1!important;background-color:rgb(82 138 250/var(--tw-bg-opacity))!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-bold{font-weight:700!important}.uppercase{text-transform:uppercase!important}.leading-3{line-height:.75rem!important}.text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity))!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;--tw-text-opacity:1;align-items:center;background-color:rgb(82 138 250/var(--tw-bg-opacity));border-radius:.5625rem;color:rgb(255 255 255/var(--tw-text-opacity));display:flex;font-size:.75rem;font-weight:700;height:1rem;justify-content:center;line-height:.75rem;padding-left:.5rem;padding-right:.5rem;text-transform:uppercase}";export{i as p_counter}