@paperless/core 3.19.2 → 3.19.4

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 (37) hide show
  1. package/dist/build/p-963e456e.entry.js +1 -0
  2. package/dist/build/p-a001874d.entry.js +1 -0
  3. package/dist/build/p-d81ce8c6.js +1 -0
  4. package/dist/build/paperless.esm.js +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/p-submenu-item.cjs.entry.js +22 -16
  7. package/dist/cjs/p-submenu.cjs.entry.js +96 -9
  8. package/dist/cjs/paperless.cjs.js +1 -1
  9. package/dist/collection/components/molecules/submenu/item/submenu-item.component.css +1 -1
  10. package/dist/collection/components/molecules/submenu/item/submenu-item.component.js +37 -14
  11. package/dist/collection/components/molecules/submenu/menu/submenu.component.css +1 -1
  12. package/dist/collection/components/molecules/submenu/menu/submenu.component.js +110 -8
  13. package/dist/collection/components/molecules/submenu/menu/submenu.stories.js +8 -2
  14. package/dist/components/p-submenu-item.js +1 -1
  15. package/dist/components/p-submenu.js +1 -1
  16. package/dist/esm/loader.js +1 -1
  17. package/dist/esm/p-submenu-item.entry.js +23 -17
  18. package/dist/esm/p-submenu.entry.js +96 -9
  19. package/dist/esm/paperless.js +1 -1
  20. package/dist/index.html +1 -1
  21. package/dist/paperless/p-963e456e.entry.js +1 -0
  22. package/dist/paperless/p-a001874d.entry.js +1 -0
  23. package/dist/paperless/paperless.esm.js +1 -1
  24. package/dist/sw.js +1 -1
  25. package/dist/sw.js.map +1 -1
  26. package/dist/types/components/molecules/submenu/item/submenu-item.component.d.ts +7 -0
  27. package/dist/types/components/molecules/submenu/menu/submenu.component.d.ts +15 -0
  28. package/dist/types/components/molecules/submenu/menu/submenu.stories.d.ts +8 -1
  29. package/dist/types/components.d.ts +19 -0
  30. package/hydrate/index.js +131 -35
  31. package/hydrate/index.mjs +131 -35
  32. package/package.json +1 -1
  33. package/dist/build/p-5b0fe9d2.entry.js +0 -1
  34. package/dist/build/p-81e96c69.entry.js +0 -1
  35. package/dist/build/p-b344aaa1.js +0 -1
  36. package/dist/paperless/p-5b0fe9d2.entry.js +0 -1
  37. package/dist/paperless/p-81e96c69.entry.js +0 -1
@@ -7,7 +7,7 @@ var cn = require('./cn-Cd68UVBT.js');
7
7
  require('./clsx-BtxeOLZW.js');
8
8
  require('./state-DM8SZBNO.js');
9
9
 
10
- const submenuComponentCss = () => `*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-\\[calc\\(1\\.5rem\\)\\]{left:1.5rem}.top-0{top:0}.z-0{z-index:0}.z-10{z-index:10}.m-0{margin:0}.m-2{margin:.5rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.flex{display:flex}.size-4{height:1rem;width:1rem}.w-full{width:100%}.w-px{width:1px}.flex-1{flex:1 1 0%}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.bg-hurricane-400{--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(199 217 253/var(--tw-bg-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.bg-off-white-300{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.bg-off-white-400{--tw-bg-opacity:1;background-color:rgb(245 244 241/var(--tw-bg-opacity,1))}.bg-storm-500\\/30{background-color:rgba(24,30,41,.3)}.p-2{padding:.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.pl-2{padding-left:.5rem}.pr-4{padding-right:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.text-hurricane-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-indigo-200{--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.transition-\\[max-height\\]{transition-duration:.15s;transition-property:max-height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:bg-indigo-50:hover{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.group\\/submenu-header:hover .group-hover\\/submenu-header\\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.dark\\:bg-indigo-600\\/30:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(82,138,250,.3)}.dark\\:bg-storm-500\\/20:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(24,30,41,.2)}.dark\\:bg-storm-500\\/30:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(24,30,41,.3)}.dark\\:text-hurricane-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(54 60 70/var(--tw-text-opacity,1))}.dark\\:text-indigo-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-indigo-600\\/10:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(82,138,250,.1)}.group\\/submenu-header:hover .dark\\:group-hover\\/submenu-header\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.dark\\:bg-indigo-600\\/30:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(82,138,250,.3)}.dark\\:bg-storm-500\\/20:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(24,30,41,.2)}.dark\\:bg-storm-500\\/30:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(24,30,41,.3)}.dark\\:text-hurricane-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(54 60 70/var(--tw-text-opacity,1))}.dark\\:text-indigo-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-indigo-600\\/10:hover:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(82,138,250,.1)}.group\\/submenu-header:hover .dark\\:group-hover\\/submenu-header\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}`;
10
+ const submenuComponentCss = () => `*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-6{left:1.5rem}.top-0{top:0}.z-0{z-index:0}.z-10{z-index:10}.z-\\[1\\]{z-index:1}.m-0{margin:0}.m-2{margin:.5rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.flex{display:flex}.size-4{height:1rem;width:1rem}.h-8{height:2rem}.w-\\[2px\\]{width:2px}.w-full{width:100%}.w-px{width:1px}.flex-1{flex:1 1 0%}.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))}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.bg-hurricane-400{--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(199 217 253/var(--tw-bg-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))}.bg-off-white-300{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.bg-off-white-400{--tw-bg-opacity:1;background-color:rgb(245 244 241/var(--tw-bg-opacity,1))}.bg-storm-500\\/30{background-color:rgba(24,30,41,.3)}.bg-transparent{background-color:transparent}.p-2{padding:.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.pl-2{padding-left:.5rem}.pr-4{padding-right:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.text-hurricane-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-indigo-200{--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.transition-\\[max-height\\]{transition-duration:.15s;transition-property:max-height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:bg-indigo-50:hover{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.group\\/submenu-header:hover .group-hover\\/submenu-header\\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.dark\\:bg-indigo-600\\/30:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(82,138,250,.3)}.dark\\:bg-storm-500\\/20:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(24,30,41,.2)}.dark\\:bg-storm-500\\/30:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(24,30,41,.3)}.dark\\:text-hurricane-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(54 60 70/var(--tw-text-opacity,1))}.dark\\:text-indigo-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-indigo-600\\/10:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(82,138,250,.1)}.group\\/submenu-header:hover .dark\\:group-hover\\/submenu-header\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.dark\\:bg-indigo-600\\/30:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(82,138,250,.3)}.dark\\:bg-storm-500\\/20:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(24,30,41,.2)}.dark\\:bg-storm-500\\/30:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(24,30,41,.3)}.dark\\:text-hurricane-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(54 60 70/var(--tw-text-opacity,1))}.dark\\:text-indigo-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-indigo-600\\/10:hover:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(82,138,250,.1)}.group\\/submenu-header:hover .dark\\:group-hover\\/submenu-header\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}`;
11
11
 
12
12
  const header = index$1.cva([
13
13
  'group/submenu-header',
@@ -16,6 +16,7 @@ const header = index$1.cva([
16
16
  'rounded-lg',
17
17
  'cursor-pointer',
18
18
  'transition-colors',
19
+ 'relative',
19
20
  ], {
20
21
  variants: {
21
22
  open: {
@@ -94,6 +95,40 @@ const Submenu = class {
94
95
  */
95
96
  open = false;
96
97
  get _el() { return index.getElement(this); }
98
+ _activeItemPosition = -1;
99
+ _showItemIndicator = false;
100
+ _headerOffset = 0;
101
+ _submenuItems = [];
102
+ _hoveringItem = undefined;
103
+ _itemActiveListener = () => {
104
+ const activeItemIndex = this._submenuItems.findIndex(i => i.active === true);
105
+ this.active = activeItemIndex !== -1;
106
+ if (activeItemIndex === -1) {
107
+ this._showItemIndicator = false;
108
+ return;
109
+ }
110
+ // set open when active changes
111
+ if (!this.open && this.active) {
112
+ this.open = true;
113
+ }
114
+ this._setItemPosition(this._submenuItems[activeItemIndex]);
115
+ };
116
+ _itemMouseEnterListener = (event) => {
117
+ if (this._hoveringItem && this._hoveringItem === event.target) {
118
+ return;
119
+ }
120
+ this._hoveringItem = event.target;
121
+ this._setItemPosition(this._hoveringItem);
122
+ };
123
+ _itemMouseLeaveListener = (event) => {
124
+ setTimeout(() => {
125
+ if (this._hoveringItem && this._hoveringItem !== event.target) {
126
+ return;
127
+ }
128
+ this._hoveringItem = undefined;
129
+ this._itemActiveListener();
130
+ }, 100);
131
+ };
97
132
  componentDidLoad() {
98
133
  const submenuItems = this._el.querySelectorAll('p-submenu-item');
99
134
  const hasActiveChild = [...submenuItems].some(i => i.active === true);
@@ -105,35 +140,87 @@ const Submenu = class {
105
140
  }
106
141
  this.open = true;
107
142
  }
143
+ componentDidRender() {
144
+ this._calculateHeaderOffset();
145
+ }
146
+ disconnectedCallback() {
147
+ this._removeListeners();
148
+ }
108
149
  render() {
109
150
  const submenuItems = this._el.querySelectorAll('p-submenu-item');
110
151
  const firstItem = getComputedStyle(submenuItems[0]);
111
152
  const maxHeight = submenuItems.length *
112
153
  Number.parseInt(firstItem.height.replace('px', '')) +
113
154
  16; // the margin of the content
114
- return (index.h(themedHost_component.ThemedHost, { key: '110fad52ce96c4fc855408b422a42956b957d092' }, index.h("div", { key: '0b8f40db722e7c6f6ba8ded2e33a6776af28f0dc', class: 'flex w-full flex-col' }, index.h("div", { key: '23aa3cf5a7ece75e3fb6312e2e2173d68b2dcd86', class: cn.cn(header({
155
+ return (index.h(themedHost_component.ThemedHost, { key: '9f1be5fc3770c7527bc8be07510fa37d6c0e984c' }, index.h("div", { key: 'b6afb284861441006879d0bda9d9eb0bf86174f3', class: 'flex w-full flex-col' }, index.h("div", { key: '5e8e749909c8493486c352a3177b308d4cdfe05a', class: cn.cn(header({
115
156
  active: this.active,
116
157
  open: this.open,
117
- })), onClick: () => (this.open = !this.open) }, this.showIndex && (index.h("div", { key: 'a24b117f984eb4392a90b47fd8363e7e320cb84a', class: indexContainer({
158
+ })), onClick: () => (this.open = !this.open) }, this.showIndex && (index.h("div", { key: '7429d46e05326a60fecf9ad0fd30ecdd03e4c148', class: indexContainer({
118
159
  active: this.active,
119
160
  open: this.open,
120
- }) }, this.index)), index.h("div", { key: '76fb811ac456b88a7f3d3df3b5badfaf9fe6170f', class: 'flex flex-1 flex-col' }, index.h("p", { key: '0dd533096861b9962eb523ece6a2ad03f34223f0', class: cn.cn('m-0 text-sm', {
161
+ }) }, this.index)), index.h("div", { key: '0940e36702f42da9e076762191d4a11b57c3312c', class: 'flex flex-1 flex-col' }, index.h("p", { key: '64e34ec4598f4983a03a415c1dc893380413c51c', class: cn.cn('m-0 text-sm', {
121
162
  'text-storm-400 dark:text-hurricane-100 dark:group-hover/submenu-header:text-white': !this.active,
122
163
  'text-storm-500 dark:text-white': this.active,
123
- }) }, this.title), index.h("p", { key: '0c3624317e71d9519ab6b694e70dbc7024641cef', class: cn.cn('m-0 text-xs', {
164
+ }) }, this.title), index.h("p", { key: 'd15bb2b7035cc06d2c7f4e6a8a3566a8044ade9d', class: cn.cn('m-0 text-xs', {
124
165
  'text-storm-300 dark:text-hurricane-300': !this.active,
125
166
  'text-storm-300 dark:text-indigo-200': this.active,
126
- }) }, this.subtitle)), index.h("p-icon", { key: '480e39ea4630c81d13ec24728d7827a3760ebb6f', class: cn.cn({
167
+ }) }, this.subtitle)), index.h("p-icon", { key: 'cba00a3d1093bb5c565a8b585e3471fe53947d10', class: cn.cn({
127
168
  'text-storm-500 dark:text-white': this.active,
128
169
  'text-storm-300 dark:text-hurricane-300': !this.active,
129
- }), rotate: this.open ? 180 : 0, variant: 'caret' })), index.h("div", { key: '2613acd0e5e16af70c39b93a1e064423fafa036c', class: cn.cn('relative flex flex-col overflow-hidden transition-[max-height]'), style: {
170
+ }), rotate: this.open ? 180 : 0, variant: 'caret' })), index.h("div", { key: '2199b8bad93526ae33cae769b3c1643614c26b86', class: cn.cn('relative flex flex-col overflow-hidden transition-[max-height]'), style: {
130
171
  maxHeight: `${this.open ? maxHeight : 0}px`,
131
- } }, index.h("div", { key: 'c8d88df1d7b0ffd7e29202655f33f46ec781a15e', class: cn.cn('absolute left-[calc(1.5rem)] top-0 z-0 w-px', {
172
+ } }, index.h("div", { key: 'cd7a456eb8ba1bb949e9891146e5260607c45153', class: cn.cn('absolute left-6 top-0 z-0 w-px', {
132
173
  'bg-off-white-400 dark:bg-storm-500/30': !this.active,
133
174
  'bg-indigo-100 dark:bg-hurricane-400': this.active,
134
175
  }), style: {
135
176
  height: `${maxHeight}px`,
136
- } }), index.h("div", { key: '0e4328a428da51a172b5a5ff7e8adf2a5c840de6', class: 'z-10 my-2 flex flex-col' }, index.h("slot", { key: '1541aecaf7c8981cd3a56ffe73b542b135cb186a' }))))));
177
+ } }), index.h("div", { key: 'fc15b0d8cc3764b378c4fc9db70a7e164a9e287a', class: cn.cn(`absolute left-6 top-0 z-[1] h-8 w-[2px] transform transition-all`, {
178
+ 'bg-indigo-600': this._showItemIndicator,
179
+ 'bg-transparent': !this._showItemIndicator,
180
+ }), style: {
181
+ transform: `translateY(${this._activeItemPosition}px)`,
182
+ } }), index.h("div", { key: '027e8f7c958784db540f67331f0577bb13a5a90f', class: 'z-10 my-2 flex flex-col' }, index.h("slot", { key: 'b3495515c0c0478a7bd4376b6cced01b89400d15', onSlotchange: () => this._slotChanged() }))))));
183
+ }
184
+ onWindowResize() {
185
+ this._calculateHeaderOffset();
186
+ this._itemActiveListener();
187
+ }
188
+ _calculateHeaderOffset() {
189
+ const headerEl = this._el.shadowRoot?.querySelector(String.raw `.group\/submenu-header`);
190
+ if (!headerEl) {
191
+ this._activeItemPosition = -1;
192
+ return;
193
+ }
194
+ this._headerOffset = headerEl.getBoundingClientRect().bottom;
195
+ }
196
+ _setItemPosition(item) {
197
+ if (!item) {
198
+ return;
199
+ }
200
+ this._activeItemPosition =
201
+ item.getBoundingClientRect().top - this._headerOffset;
202
+ if (!this._showItemIndicator) {
203
+ setTimeout(() => (this._showItemIndicator = true), 50);
204
+ }
205
+ }
206
+ _slotChanged() {
207
+ this._removeListeners();
208
+ const submenuItems = [...this._el.querySelectorAll('p-submenu-item')];
209
+ for (const item of submenuItems) {
210
+ item.addEventListener('activeChange', this._itemActiveListener);
211
+ item.addEventListener('mouseenter', this._itemMouseEnterListener);
212
+ item.addEventListener('mouseleave', this._itemMouseLeaveListener);
213
+ }
214
+ this._submenuItems = submenuItems;
215
+ }
216
+ _removeListeners() {
217
+ if (this._submenuItems.length > 0) {
218
+ for (const item of this._submenuItems) {
219
+ item.removeEventListener('activeChange', this._itemActiveListener);
220
+ item.removeEventListener('mouseenter', this._itemMouseEnterListener);
221
+ item.removeEventListener('mouseleave', this._itemMouseLeaveListener);
222
+ }
223
+ }
137
224
  }
138
225
  };
139
226
  Submenu.style = submenuComponentCss();
@@ -45,7 +45,7 @@ var patchCloneNodeFix = (HTMLElementPrototype) => {
45
45
 
46
46
  patchBrowser().then(async (options) => {
47
47
  await index.globalScripts();
48
- return index.bootstrapLazy(JSON.parse("[[\"p-button_3.cjs\",[[769,\"p-button\",{\"label\":[1],\"as\":[1],\"underline\":[4],\"tabIndex\":[2,\"tab-index\"],\"variant\":[1],\"active\":[4],\"error\":[4],\"href\":[1],\"target\":[1],\"size\":[1],\"type\":[1],\"loading\":[4],\"chevron\":[8],\"chevronPosition\":[1,\"chevron-position\"],\"disabled\":[4],\"icon\":[1],\"iconOnly\":[4,\"icon-only\"],\"iconClass\":[1,\"icon-class\"],\"iconPosition\":[1,\"icon-position\"],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"],\"inheritText\":[4,\"inherit-text\"],\"buttonGroupPosition\":[1,\"button-group-position\"],\"class\":[1]},[[2,\"click\",\"handleClick\"]]],[769,\"p-loader\",{\"show\":[4],\"variant\":[1],\"color\":[1],\"modalTitle\":[1,\"modal-title\"],\"modalDescription\":[1,\"modal-description\"]}],[513,\"p-icon\",{\"variant\":[1],\"size\":[1],\"rotate\":[2],\"flip\":[1]}]]],[\"p-table.cjs\",[[772,\"p-table\",{\"items\":[1],\"loading\":[4],\"headerLoading\":[4,\"header-loading\"],\"footerLoading\":[4,\"footer-loading\"],\"amountOfLoadingRows\":[2,\"amount-of-loading-rows\"],\"enableRowSelection\":[4,\"enable-row-selection\"],\"rowSelectionLimit\":[2,\"row-selection-limit\"],\"enableRowClick\":[4,\"enable-row-click\"],\"selectedRows\":[16],\"enableFloatingMenu\":[4,\"enable-floating-menu\"],\"floatingMenuAmountSelectedTemplate\":[16],\"selectionKey\":[1,\"selection-key\"],\"canSelectKey\":[1,\"can-select-key\"],\"enableHeader\":[4,\"enable-header\"],\"quickFilters\":[1,\"quick-filters\"],\"activeQuickFilterIdentifier\":[1,\"active-quick-filter-identifier\"],\"enableSearch\":[4,\"enable-search\"],\"query\":[1025],\"enableFilter\":[4,\"enable-filter\"],\"enableFilterDesktop\":[4,\"enable-filter-desktop\"],\"selectedFiltersAmount\":[2,\"selected-filters-amount\"],\"filterButtonTemplate\":[16],\"enableAction\":[4,\"enable-action\"],\"actionButtonLoading\":[4,\"action-button-loading\"],\"actionButtonEnabled\":[4,\"action-button-enabled\"],\"actionButtonIcon\":[1,\"action-button-icon\"],\"actionButtonText\":[1,\"action-button-text\"],\"actionButtonTemplate\":[16],\"enableFooter\":[4,\"enable-footer\"],\"enablePaginationSize\":[4,\"enable-pagination-size\"],\"enablePaginationPages\":[4,\"enable-pagination-pages\"],\"enableExport\":[4,\"enable-export\"],\"page\":[1538],\"total\":[2],\"pageSize\":[2,\"page-size\"],\"pageSizeOptions\":[16],\"hideOnSinglePage\":[4,\"hide-on-single-page\"],\"emptyStateHeader\":[16],\"emptyStateContent\":[16],\"emptyStateAction\":[16],\"enableEmptyStateAction\":[4,\"enable-empty-state-action\"],\"emptyStateFilteredHeader\":[16],\"emptyStateFilteredContent\":[16],\"shadow\":[4],\"_locales\":[32],\"_extraHeaders\":[32],\"_columns\":[32],\"_items\":[32],\"_enableRowSelection\":[32],\"_rowSelectionLimit\":[32],\"_rowActionsFloating\":[32],\"_rowActionsRow\":[32],\"_footerHidden\":[32]},[[16,\"localeChanged\",\"_setLocales\"],[16,\"tableDefinitionChanged\",\"onTableDefinitionUpdated\"],[4,\"keydown\",\"keyDown\"],[4,\"keyup\",\"keyUp\"],[4,\"visibilitychange\",\"visibilityChange\"],[9,\"resize\",\"_setRowSelectionData\"]],{\"items\":[{\"_parseItems\":0}],\"enableRowSelection\":[{\"_setRowSelectionData\":0}],\"rowSelectionLimit\":[{\"_setRowSelectionData\":0}],\"selectedRows\":[{\"_setRowSelectionData\":0}]}]]],[\"p-select.cjs\",[[576,\"p-select\",{\"items\":[1],\"multi\":[516],\"strategy\":[1],\"icon\":[1],\"query\":[1],\"placeholder\":[1],\"autocompletePlaceholder\":[1,\"autocomplete-placeholder\"],\"value\":[8],\"displayKey\":[1,\"display-key\"],\"dropdownDisplayKey\":[1,\"dropdown-display-key\"],\"selectionDisplayKey\":[1,\"selection-display-key\"],\"valueKey\":[1,\"value-key\"],\"avatarKey\":[1,\"avatar-key\"],\"iconKey\":[1,\"icon-key\"],\"iconClassKey\":[1,\"icon-class-key\"],\"showIconOnSelectedItem\":[1,\"show-icon-on-selected-item\"],\"classKey\":[1,\"class-key\"],\"applyClassOnSelectedItem\":[4,\"apply-class-on-selected-item\"],\"applyClassOnSelectedItemInMenu\":[4,\"apply-class-on-selected-item-in-menu\"],\"avatarLettersKey\":[1,\"avatar-letters-key\"],\"identifierKey\":[1,\"identifier-key\"],\"queryKey\":[1,\"query-key\"],\"autoSelectFirst\":[4,\"auto-select-first\"],\"showChevron\":[4,\"show-chevron\"],\"maxDisplayedItems\":[2,\"max-displayed-items\"],\"enableAutocomplete\":[4,\"enable-autocomplete\"],\"enableTextWrap\":[4,\"enable-text-wrap\"],\"asyncFilter\":[4,\"async-filter\"],\"loading\":[4],\"enableSelectAll\":[4,\"enable-select-all\"],\"selectAllText\":[1,\"select-all-text\"],\"selectAllIcon\":[1,\"select-all-icon\"],\"size\":[1],\"prefix\":[1],\"label\":[1],\"helper\":[1],\"required\":[516],\"showOptional\":[516,\"show-optional\"],\"error\":[513],\"disabled\":[516],\"showAddItem\":[4,\"show-add-item\"],\"addItemText\":[1,\"add-item-text\"],\"emptyStateText\":[1,\"empty-state-text\"],\"_showDropdown\":[32],\"_selectedItem\":[32],\"_allSelected\":[32],\"_amountHidden\":[32]},[[6,\"click\",\"documentClickHandler\"]],{\"value\":[{\"_valueChange\":0}],\"items\":[{\"itemChanges\":0}],\"_showDropdown\":[{\"_showDropdownChanges\":0}],\"multi\":[{\"multiChanges\":0}]}]]],[\"p-datepicker.cjs\",[[576,\"p-datepicker\",{\"placeholder\":[1],\"value\":[1],\"preselectToday\":[4,\"preselect-today\"],\"enableNativePicker\":[4,\"enable-native-picker\"],\"disabledDates\":[1,\"disabled-dates\"],\"minDate\":[1,\"min-date\"],\"maxDate\":[1,\"max-date\"],\"disableWeekends\":[4,\"disable-weekends\"],\"enableToday\":[4,\"enable-today\"],\"todayText\":[1,\"today-text\"],\"mode\":[1],\"format\":[1],\"hideIconWhenFilled\":[4,\"hide-icon-when-filled\"],\"size\":[1],\"prefix\":[1],\"label\":[1],\"loading\":[4],\"helper\":[1],\"required\":[516],\"showOptional\":[516,\"show-optional\"],\"error\":[513],\"disabled\":[516],\"strategy\":[1],\"placement\":[513],\"_showDropdown\":[32],\"_value\":[32],\"_minDate\":[32],\"_maxDate\":[32],\"_disabledDates\":[32],\"_isMobileBrowser\":[32]},[[6,\"click\",\"documentClickHandler\"]],{\"value\":[{\"parseValue\":0}],\"minDate\":[{\"parseMinDate\":0}],\"maxDate\":[{\"parseMaxDate\":0}],\"disabledDates\":[{\"parseDisabledDates\":0}]}]]],[\"p-modal.cjs\",[[769,\"p-modal\",{\"size\":[1],\"header\":[1],\"show\":[4],\"applyBlur\":[4,\"apply-blur\"],\"showClose\":[4,\"show-close\"],\"showMobileFooter\":[4,\"show-mobile-footer\"],\"backdropClickClose\":[4,\"backdrop-click-close\"],\"scrollLock\":[4,\"scroll-lock\"],\"_closing\":[32]},[[8,\"closeModal\",\"handleCloseModal\"]]]]],[\"p-drawer.cjs\",[[769,\"p-drawer\",{\"header\":[1],\"show\":[4],\"applyBlur\":[4,\"apply-blur\"],\"showClose\":[4,\"show-close\"],\"backdropClickClose\":[4,\"backdrop-click-close\"],\"canClose\":[4,\"can-close\"],\"scrollLock\":[4,\"scroll-lock\"],\"_closing\":[32]},[[8,\"closeDrawer\",\"handleCloseDrawer\"],[8,\"forceCloseDrawer\",\"handleForceCloseDrawer\"]]]]],[\"p-attachment.cjs\",[[513,\"p-attachment\",{\"enableCameraOnMobile\":[4,\"enable-camera-on-mobile\"],\"value\":[1],\"fileId\":[1,\"file-id\"],\"accept\":[1],\"label\":[1],\"helper\":[1],\"required\":[516],\"mode\":[1],\"placeholder\":[1],\"cameraTooltip\":[1,\"camera-tooltip\"],\"downloadTooltip\":[1,\"download-tooltip\"],\"uploadTooltip\":[1,\"upload-tooltip\"],\"deleteTooltip\":[1,\"delete-tooltip\"],\"loading\":[4],\"error\":[1]}]]],[\"p-profile.cjs\",[[769,\"p-profile\",{\"dropdownLocation\":[1,\"dropdown-location\"],\"_dropdownOpen\":[32],\"_hasDropdownSlot\":[32]},[[0,\"slotchange\",\"slotchange\"]]]]],[\"p-navbar.cjs\",[[769,\"p-navbar\",{\"_show\":[32]},[[8,\"closeNavbar\",\"handleCloseNavbar\"],[8,\"openNavbar\",\"handleOpenNavbar\"]]]]],[\"p-accordion.cjs\",[[769,\"p-accordion\",{\"variant\":[1],\"header\":[1],\"open\":[4],\"closeable\":[4],\"openable\":[4],\"label\":[1],\"labelVariant\":[1,\"label-variant\"],\"labelIcon\":[1,\"label-icon\"]}]]],[\"p-card-header.cjs\",[[769,\"p-card-header\",{\"variant\":[1],\"header\":[1],\"icon\":[1],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"],\"divider\":[4]}]]],[\"p-navigation-item.cjs\",[[774,\"p-navigation-item\",{\"icon\":[1],\"active\":[4],\"loading\":[4],\"as\":[1],\"counter\":[8],\"href\":[1],\"target\":[1],\"class\":[1],\"applyFullWidth\":[4,\"apply-full-width\"]}]]],[\"p-cropper.cjs\",[[513,\"p-cropper\",{\"value\":[1],\"returnType\":[1,\"return-type\"],\"_loaded\":[32],\"_currentScale\":[32]},[[9,\"resize\",\"onResize\"]]]]],[\"p-dropzone.cjs\",[[769,\"p-dropzone\",{\"icon\":[1],\"showIcon\":[4,\"show-icon\"],\"acceptGroup\":[1,\"accept-group\"],\"fileId\":[1,\"file-id\"],\"loading\":[4],\"allowMultiple\":[4,\"allow-multiple\"],\"uploaded\":[4],\"addedString\":[1,\"added-string\"],\"dragFileString\":[1,\"drag-file-string\"],\"orClickString\":[1,\"or-click-string\"],\"_isOver\":[32]},[[1,\"drop\",\"onDrop\"],[1,\"dragover\",\"onDragOver\"],[1,\"dragleave\",\"onDragLeave\"]]]]],[\"p-stepper.cjs\",[[769,\"p-stepper\",{\"steps\":[1],\"activeStep\":[2,\"active-step\"],\"enableAutoStatus\":[4,\"enable-auto-status\"],\"direction\":[1],\"align\":[1],\"contentPosition\":[1,\"content-position\"],\"_generatedOnce\":[32],\"_loaded\":[32]},null,{\"align\":[{\"_onAlignChange\":0}],\"direction\":[{\"_onDirectionChange\":0}],\"activeStep\":[{\"_onActiveStepChange\":0}]}]]],[\"p-info-panel.cjs\",[[769,\"p-info-panel\",{\"variant\":[1],\"header\":[1],\"content\":[1],\"closeable\":[4]}]]],[\"p-listing.cjs\",[[769,\"p-listing\",{\"_generatedOnce\":[32]}]]],[\"p-listing-item.cjs\",[[769,\"p-listing-item\",{\"icon\":[1]}]]],[\"p-navigation-section.cjs\",[[772,\"p-navigation-section\",{\"header\":[1]}]]],[\"p-submenu.cjs\",[[769,\"p-submenu\",{\"title\":[513],\"subtitle\":[513],\"index\":[514],\"showIndex\":[516,\"show-index\"],\"active\":[516],\"open\":[516]}]]],[\"p-submenu-item.cjs\",[[769,\"p-submenu-item\",{\"active\":[516],\"icon\":[513]}]]],[\"p-tab-container.cjs\",[[257,\"p-tab-container\"]]],[\"p-toast.cjs\",[[769,\"p-toast\",{\"variant\":[1],\"header\":[1],\"content\":[1],\"enableAction\":[4,\"enable-action\"],\"actionIcon\":[1,\"action-icon\"],\"actionIconFlip\":[1,\"action-icon-flip\"],\"actionIconRotate\":[2,\"action-icon-rotate\"]}]]],[\"p-avatar-group.cjs\",[[772,\"p-avatar-group\",{\"extra\":[2]}]]],[\"p-button-group.cjs\",[[769,\"p-button-group\",{\"size\":[1]},[[0,\"slotchange\",\"slotchange\"]]]]],[\"p-card-body.cjs\",[[257,\"p-card-body\"]]],[\"p-card-container.cjs\",[[769,\"p-card-container\",{\"variant\":[1],\"bgClass\":[1,\"bg-class\"],\"active\":[4],\"hoverable\":[4],\"shadow\":[4],\"border\":[4]}]]],[\"p-content-slider.cjs\",[[769,\"p-content-slider\",{\"hideMobileIndicator\":[4,\"hide-mobile-indicator\"],\"disableDrag\":[4,\"disable-drag\"],\"disableAutoCenter\":[4,\"disable-auto-center\"],\"disableIndicatorClick\":[4,\"disable-indicator-click\"],\"_visibleIndex\":[32],\"_outerHeight\":[32],\"_totalWidth\":[32],\"_dragging\":[32]},[[9,\"mouseup\",\"mouseUpHandler\"],[9,\"touchend\",\"mouseUpHandler\"],[9,\"resize\",\"resizeHandler\"]]]]],[\"p-iban-icon.cjs\",[[513,\"p-iban-icon\",{\"iban\":[513],\"variant\":[513]}]]],[\"p-layout.cjs\",[[769,\"p-layout\",{\"variant\":[1]}]]],[\"p-radio.cjs\",[[836,\"p-radio\",{\"value\":[1],\"disabled\":[516],\"required\":[516],\"id\":[513],\"name\":[513],\"checked\":[516],\"_nonce\":[32]}]]],[\"p-tab-item.cjs\",[[769,\"p-tab-item\",{\"active\":[4]}]]],[\"p-table-column.cjs\",[[512,\"p-table-column\",{\"path\":[1537],\"variant\":[1537],\"name\":[1537],\"flex\":[1540],\"useSlot\":[1540,\"use-slot\"],\"hasCheckbox\":[1540,\"has-checkbox\"],\"align\":[1537],\"headerAlign\":[1537,\"header-align\"],\"sticky\":[1544],\"parsedSizes\":[1040],\"sizes\":[1032]}]]],[\"p-table-extra-header.cjs\",[[512,\"p-table-extra-header\",{\"name\":[1537],\"sticky\":[1544],\"useSlot\":[1540,\"use-slot\"],\"align\":[1537],\"parsedSizes\":[1040],\"sizes\":[1032]}]]],[\"p-table-row-action.cjs\",[[512,\"p-table-row-action\",{\"type\":[1537],\"icon\":[1],\"iconOnly\":[4,\"icon-only\"],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"],\"label\":[1],\"action\":[16],\"disabled\":[4],\"loading\":[4],\"showFunction\":[16]}]]],[\"p-toast-container.cjs\",[[769,\"p-toast-container\",{\"placement\":[1]}]]],[\"p-toggle.cjs\",[[836,\"p-toggle\",{\"checked\":[4],\"disabled\":[516],\"required\":[516],\"id\":[513],\"name\":[513],\"_nonce\":[32]}]]],[\"p-calendar.cjs\",[[513,\"p-calendar\",{\"variant\":[1],\"value\":[1],\"preselectToday\":[4,\"preselect-today\"],\"disabledDates\":[1,\"disabled-dates\"],\"minDate\":[1,\"min-date\"],\"maxDate\":[1,\"max-date\"],\"disableWeekends\":[4,\"disable-weekends\"],\"enableToday\":[4,\"enable-today\"],\"todayText\":[1,\"today-text\"],\"mode\":[1],\"_view\":[32],\"_viewDate\":[32],\"_value\":[32],\"_minDate\":[32],\"_maxDate\":[32],\"_disabledDates\":[32],\"_enableToday\":[32]},null,{\"value\":[{\"_parseValue\":0}],\"minDate\":[{\"_parseMinDate\":0}],\"maxDate\":[{\"_parseMaxDate\":0}],\"disabledDates\":[{\"_parseDisabledDates\":0}],\"mode\":[{\"_modeChange\":0}]}]]],[\"p-label.cjs\",[[769,\"p-label\",{\"variant\":[513],\"iconOnly\":[516,\"icon-only\"],\"icon\":[513],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"],\"keepMobileContent\":[516,\"keep-mobile-content\"]}]]],[\"p-range.cjs\",[[513,\"p-range\",{\"min\":[2],\"max\":[2],\"step\":[2],\"value\":[2]}]]],[\"p-avatar.cjs\",[[512,\"p-avatar\",{\"variant\":[1],\"size\":[513],\"defaultImage\":[1,\"default-image\"],\"src\":[1],\"letters\":[1],\"_src\":[32],\"_failed\":[32]},null,{\"src\":[{\"onSrchChange\":0}]}]]],[\"p-listing-line.cjs\",[[1,\"p-listing-line\"]]],[\"p-navigation-title.cjs\",[[257,\"p-navigation-title\"]]],[\"p-floating-menu-item.cjs\",[[772,\"p-floating-menu-item\",{\"hover\":[4],\"disabled\":[4],\"loading\":[4],\"icon\":[1],\"iconPosition\":[1,\"icon-position\"],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"]}]]],[\"p-stepper-item_2.cjs\",[[769,\"p-stepper-item\",{\"number\":[2],\"direction\":[1],\"align\":[1],\"contentPosition\":[1,\"content-position\"],\"finished\":[4],\"active\":[4]}],[513,\"p-stepper-line\",{\"active\":[516],\"direction\":[513]}]]],[\"p-illustration.cjs\",[[512,\"p-illustration\",{\"variant\":[1]}]]],[\"p-drawer-body_3.cjs\",[[769,\"p-drawer-header\",{\"showClose\":[4,\"show-close\"]}],[257,\"p-drawer-body\"],[769,\"p-drawer-container\",{\"closing\":[4]}]]],[\"p-backdrop.cjs\",[[769,\"p-backdrop\",{\"variant\":[1],\"applyBlur\":[4,\"apply-blur\"],\"closing\":[4],\"scrollLock\":[4,\"scroll-lock\"],\"class\":[1]},[[2,\"click\",\"handleClick\"]]]]],[\"p-smile.cjs\",[[512,\"p-smile\",{\"variant\":[1]}]]],[\"p-divider.cjs\",[[769,\"p-divider\",{\"variant\":[513],\"alignContent\":[513,\"align-content\"]}]]],[\"p-modal-body_4.cjs\",[[769,\"p-modal-header\",{\"showClose\":[4,\"show-close\"]}],[257,\"p-modal-footer\"],[769,\"p-modal-body\",{\"roundedBottom\":[4,\"rounded-bottom\"],\"roundedTop\":[4,\"rounded-top\"]}],[769,\"p-modal-container\",{\"size\":[1],\"closing\":[4]}]]],[\"p-badge_3.cjs\",[[769,\"p-segment-item\",{\"variant\":[1],\"active\":[4],\"iconOnly\":[4,\"icon-only\"],\"icon\":[1],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"]}],[257,\"p-segment-container\"],[257,\"p-badge\"]]],[\"p-tooltip.cjs\",[[769,\"p-tooltip\",{\"variant\":[1],\"content\":[1],\"placement\":[1],\"offset\":[2],\"strategy\":[1],\"enableUserInput\":[4,\"enable-user-input\"],\"show\":[4],\"canManuallyClose\":[4,\"can-manually-close\"]},[[2,\"click\",\"clickHandler\"],[6,\"click\",\"documentClickHandler\"],[1,\"mouseenter\",\"mouseEnterHandler\"],[0,\"focus\",\"mouseEnterHandler\"],[1,\"mouseleave\",\"mouseLeaveHandler\"],[0,\"blur\",\"mouseLeaveHandler\"]],{\"show\":[{\"onShowChange\":0}],\"content\":[{\"onContentChange\":0}]}]]],[\"p-checkbox_3.cjs\",[[836,\"p-checkbox\",{\"checked\":[4],\"indeterminate\":[4],\"disabled\":[516],\"required\":[516],\"id\":[513],\"name\":[513],\"_nonce\":[32]}],[769,\"p-dropdown\",{\"variant\":[1],\"placement\":[513],\"offset\":[2],\"strategy\":[1],\"show\":[4],\"applyMaxWidth\":[4,\"apply-max-width\"],\"applyFullWidth\":[4,\"apply-full-width\"],\"allowOverflow\":[4,\"allow-overflow\"],\"scrollable\":[8],\"insideClick\":[4,\"inside-click\"],\"disableTriggerClick\":[4,\"disable-trigger-click\"],\"manual\":[4],\"applyChevron\":[4,\"apply-chevron\"],\"manualChevron\":[4,\"manual-chevron\"],\"chevronPosition\":[1,\"chevron-position\"],\"chevronDirection\":[1,\"chevron-direction\"],\"containerClass\":[1,\"container-class\"],\"isDatepicker\":[4,\"is-datepicker\"]},[[6,\"click\",\"documentClickHandler\"]],{\"show\":[{\"onShowChange\":0}]}],[769,\"p-dropdown-menu-container\",{\"variant\":[1],\"maxWidth\":[4,\"max-width\"],\"class\":[1],\"fullWidth\":[4,\"full-width\"],\"allowOverflow\":[4,\"allow-overflow\"],\"scrollable\":[8]}]]],[\"p-dropdown-menu-item_2.cjs\",[[769,\"p-pagination-pages-item\",{\"variant\":[1],\"active\":[4],\"hover\":[4],\"disabled\":[4]}],[769,\"p-dropdown-menu-item\",{\"active\":[4],\"checkbox\":[4],\"variant\":[1],\"enableHover\":[4,\"enable-hover\"],\"enableTextWrap\":[4,\"enable-text-wrap\"],\"disabled\":[4],\"icon\":[1],\"iconWave\":[4,\"icon-wave\"],\"useContainer\":[4,\"use-container\"],\"autoHeight\":[4,\"auto-height\"]}]]],[\"p-field_3.cjs\",[[833,\"p-field\",{\"align\":[1],\"variant\":[1],\"id\":[1],\"size\":[1],\"type\":[1],\"properties\":[8],\"prefix\":[1],\"suffix\":[1],\"icon\":[1],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"],\"iconPosition\":[1,\"icon-position\"],\"value\":[8],\"label\":[1],\"loading\":[4],\"enablePasswordEye\":[4,\"enable-password-eye\"],\"placeholder\":[1],\"helper\":[1],\"required\":[516],\"showOptional\":[516,\"show-optional\"],\"showAddOnEmpty\":[516,\"show-add-on-empty\"],\"addText\":[513,\"add-text\"],\"autofocus\":[516],\"error\":[513],\"autoShowError\":[516,\"auto-show-error\"],\"errorPlacement\":[1,\"error-placement\"],\"disabled\":[516],\"focused\":[516],\"forceShowTooltip\":[516,\"force-show-tooltip\"],\"selectAllOnFocus\":[516,\"select-all-on-focus\"],\"focusMethod\":[1,\"focus-method\"],\"optionalTemplate\":[16],\"_focused\":[32],\"_nonce\":[32],\"_type\":[32]},[[0,\"focusin\",\"handleFocusIn\"],[0,\"focusout\",\"handleFocusOut\"],[2,\"keyup\",\"handleKeyup\"],[2,\"keydown\",\"handleKeydown\"]],{\"value\":[{\"watchvalue\":0}]}],[769,\"p-field-container\",{\"id\":[1],\"align\":[1],\"label\":[1],\"loading\":[4],\"loadingSize\":[1,\"loading-size\"],\"variant\":[1],\"helper\":[1],\"required\":[516],\"showOptional\":[516,\"show-optional\"],\"error\":[513],\"errorPlacement\":[1,\"error-placement\"],\"forceShowTooltip\":[516,\"force-show-tooltip\"],\"optionalTemplate\":[16],\"_locales\":[32]},[[16,\"localeChanged\",\"_setLocales\"]]],[769,\"p-helper\",{\"strategy\":[1],\"placement\":[1]}]]],[\"p-pagination_3.cjs\",[[513,\"p-pagination\",{\"hideOnSinglePage\":[4,\"hide-on-single-page\"],\"enablePaginationSize\":[4,\"enable-pagination-size\"],\"enablePaginationPages\":[4,\"enable-pagination-pages\"],\"page\":[1538],\"total\":[2],\"pageSize\":[2,\"page-size\"],\"pageSizeOptions\":[16],\"_hasPaginationPages\":[32]}],[513,\"p-pagination-pages\",{\"page\":[1538],\"dropdownPageTemplate\":[16],\"pageSize\":[2,\"page-size\"],\"hideOnSinglePage\":[4,\"hide-on-single-page\"],\"total\":[2],\"_showDropdown\":[32],\"_dropdowns\":[32],\"_locales\":[32]},[[16,\"localeChanged\",\"_setLocales\"],[6,\"click\",\"documentClickHandler\"]],{\"page\":[{\"pageChangeHandler\":0}],\"pageSize\":[{\"pageChangeHandler\":0}],\"total\":[{\"pageChangeHandler\":0}]}],[769,\"p-pagination-size\",{\"size\":[1538],\"sizeOptions\":[16],\"itemTemplate\":[16],\"hidden\":[4],\"dropdownIsOpen\":[32],\"_locales\":[32]},[[16,\"localeChanged\",\"_setLocales\"]]]]],[\"p-empty-state_8.cjs\",[[513,\"p-table-footer\",{\"enablePaginationSize\":[4,\"enable-pagination-size\"],\"enablePaginationPages\":[4,\"enable-pagination-pages\"],\"loading\":[4],\"page\":[1538],\"total\":[2],\"pageSize\":[2,\"page-size\"],\"pageSizeOptions\":[16],\"tableHeaderHasAction\":[4,\"table-header-has-action\"],\"hideOnSinglePage\":[4,\"hide-on-single-page\"],\"_isPinned\":[32],\"_hasPaginationPages\":[32]},[[9,\"scroll\",\"onScroll\"]]],[769,\"p-table-header\",{\"quickFilters\":[1,\"quick-filters\"],\"activeQuickFilterIdentifier\":[1,\"active-quick-filter-identifier\"],\"hideQuickFiltersOnMobile\":[4,\"hide-quick-filters-on-mobile\"],\"loading\":[4],\"enableSearch\":[4,\"enable-search\"],\"itemsSelectedAmount\":[2,\"items-selected-amount\"],\"query\":[1025],\"enableFilter\":[4,\"enable-filter\"],\"enableExport\":[4,\"enable-export\"],\"enableFilterDesktop\":[4,\"enable-filter-desktop\"],\"selectedFiltersAmount\":[2,\"selected-filters-amount\"],\"filterButtonTemplate\":[16],\"enableAction\":[4,\"enable-action\"],\"actionLoading\":[4,\"action-loading\"],\"actionIcon\":[1,\"action-icon\"],\"actionText\":[1,\"action-text\"],\"canUseAction\":[1028,\"can-use-action\"],\"actionButtonTemplate\":[16],\"_locales\":[32]},[[16,\"localeChanged\",\"_setLocales\"]]],[769,\"p-empty-state\",{\"illustration\":[1],\"header\":[1],\"content\":[1],\"enableAction\":[4,\"enable-action\"],\"actionText\":[1,\"action-text\"],\"actionVariant\":[1,\"action-variant\"],\"actionIcon\":[1,\"action-icon\"],\"actionIconPosition\":[1,\"action-icon-position\"],\"actionLoading\":[4,\"action-loading\"]}],[769,\"p-floating-menu-container\",{\"usedInTable\":[4,\"used-in-table\"],\"enableAmountSelected\":[4,\"enable-amount-selected\"],\"amount\":[2],\"enableClose\":[4,\"enable-close\"],\"amountSelectedTemplate\":[16],\"_locales\":[32]},[[16,\"localeChanged\",\"_setLocales\"]]],[772,\"p-table-cell\",{\"variant\":[1],\"index\":[2],\"rowIndex\":[2,\"row-index\"],\"definition\":[8],\"item\":[8],\"value\":[8],\"checkbox\":[8],\"checkboxOffset\":[4,\"checkbox-offset\"],\"template\":[16]}],[769,\"p-table-row\",{\"variant\":[1],\"enableHover\":[4,\"enable-hover\"],\"checked\":[4],\"isLast\":[4,\"is-last\"]}],[260,\"p-table-container\"],[769,\"p-table-row-actions-container\",{\"checked\":[4]}]]]]"), options);
48
+ return index.bootstrapLazy(JSON.parse("[[\"p-button_3.cjs\",[[769,\"p-button\",{\"label\":[1],\"as\":[1],\"underline\":[4],\"tabIndex\":[2,\"tab-index\"],\"variant\":[1],\"active\":[4],\"error\":[4],\"href\":[1],\"target\":[1],\"size\":[1],\"type\":[1],\"loading\":[4],\"chevron\":[8],\"chevronPosition\":[1,\"chevron-position\"],\"disabled\":[4],\"icon\":[1],\"iconOnly\":[4,\"icon-only\"],\"iconClass\":[1,\"icon-class\"],\"iconPosition\":[1,\"icon-position\"],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"],\"inheritText\":[4,\"inherit-text\"],\"buttonGroupPosition\":[1,\"button-group-position\"],\"class\":[1]},[[2,\"click\",\"handleClick\"]]],[769,\"p-loader\",{\"show\":[4],\"variant\":[1],\"color\":[1],\"modalTitle\":[1,\"modal-title\"],\"modalDescription\":[1,\"modal-description\"]}],[513,\"p-icon\",{\"variant\":[1],\"size\":[1],\"rotate\":[2],\"flip\":[1]}]]],[\"p-table.cjs\",[[772,\"p-table\",{\"items\":[1],\"loading\":[4],\"headerLoading\":[4,\"header-loading\"],\"footerLoading\":[4,\"footer-loading\"],\"amountOfLoadingRows\":[2,\"amount-of-loading-rows\"],\"enableRowSelection\":[4,\"enable-row-selection\"],\"rowSelectionLimit\":[2,\"row-selection-limit\"],\"enableRowClick\":[4,\"enable-row-click\"],\"selectedRows\":[16],\"enableFloatingMenu\":[4,\"enable-floating-menu\"],\"floatingMenuAmountSelectedTemplate\":[16],\"selectionKey\":[1,\"selection-key\"],\"canSelectKey\":[1,\"can-select-key\"],\"enableHeader\":[4,\"enable-header\"],\"quickFilters\":[1,\"quick-filters\"],\"activeQuickFilterIdentifier\":[1,\"active-quick-filter-identifier\"],\"enableSearch\":[4,\"enable-search\"],\"query\":[1025],\"enableFilter\":[4,\"enable-filter\"],\"enableFilterDesktop\":[4,\"enable-filter-desktop\"],\"selectedFiltersAmount\":[2,\"selected-filters-amount\"],\"filterButtonTemplate\":[16],\"enableAction\":[4,\"enable-action\"],\"actionButtonLoading\":[4,\"action-button-loading\"],\"actionButtonEnabled\":[4,\"action-button-enabled\"],\"actionButtonIcon\":[1,\"action-button-icon\"],\"actionButtonText\":[1,\"action-button-text\"],\"actionButtonTemplate\":[16],\"enableFooter\":[4,\"enable-footer\"],\"enablePaginationSize\":[4,\"enable-pagination-size\"],\"enablePaginationPages\":[4,\"enable-pagination-pages\"],\"enableExport\":[4,\"enable-export\"],\"page\":[1538],\"total\":[2],\"pageSize\":[2,\"page-size\"],\"pageSizeOptions\":[16],\"hideOnSinglePage\":[4,\"hide-on-single-page\"],\"emptyStateHeader\":[16],\"emptyStateContent\":[16],\"emptyStateAction\":[16],\"enableEmptyStateAction\":[4,\"enable-empty-state-action\"],\"emptyStateFilteredHeader\":[16],\"emptyStateFilteredContent\":[16],\"shadow\":[4],\"_locales\":[32],\"_extraHeaders\":[32],\"_columns\":[32],\"_items\":[32],\"_enableRowSelection\":[32],\"_rowSelectionLimit\":[32],\"_rowActionsFloating\":[32],\"_rowActionsRow\":[32],\"_footerHidden\":[32]},[[16,\"localeChanged\",\"_setLocales\"],[16,\"tableDefinitionChanged\",\"onTableDefinitionUpdated\"],[4,\"keydown\",\"keyDown\"],[4,\"keyup\",\"keyUp\"],[4,\"visibilitychange\",\"visibilityChange\"],[9,\"resize\",\"_setRowSelectionData\"]],{\"items\":[{\"_parseItems\":0}],\"enableRowSelection\":[{\"_setRowSelectionData\":0}],\"rowSelectionLimit\":[{\"_setRowSelectionData\":0}],\"selectedRows\":[{\"_setRowSelectionData\":0}]}]]],[\"p-select.cjs\",[[576,\"p-select\",{\"items\":[1],\"multi\":[516],\"strategy\":[1],\"icon\":[1],\"query\":[1],\"placeholder\":[1],\"autocompletePlaceholder\":[1,\"autocomplete-placeholder\"],\"value\":[8],\"displayKey\":[1,\"display-key\"],\"dropdownDisplayKey\":[1,\"dropdown-display-key\"],\"selectionDisplayKey\":[1,\"selection-display-key\"],\"valueKey\":[1,\"value-key\"],\"avatarKey\":[1,\"avatar-key\"],\"iconKey\":[1,\"icon-key\"],\"iconClassKey\":[1,\"icon-class-key\"],\"showIconOnSelectedItem\":[1,\"show-icon-on-selected-item\"],\"classKey\":[1,\"class-key\"],\"applyClassOnSelectedItem\":[4,\"apply-class-on-selected-item\"],\"applyClassOnSelectedItemInMenu\":[4,\"apply-class-on-selected-item-in-menu\"],\"avatarLettersKey\":[1,\"avatar-letters-key\"],\"identifierKey\":[1,\"identifier-key\"],\"queryKey\":[1,\"query-key\"],\"autoSelectFirst\":[4,\"auto-select-first\"],\"showChevron\":[4,\"show-chevron\"],\"maxDisplayedItems\":[2,\"max-displayed-items\"],\"enableAutocomplete\":[4,\"enable-autocomplete\"],\"enableTextWrap\":[4,\"enable-text-wrap\"],\"asyncFilter\":[4,\"async-filter\"],\"loading\":[4],\"enableSelectAll\":[4,\"enable-select-all\"],\"selectAllText\":[1,\"select-all-text\"],\"selectAllIcon\":[1,\"select-all-icon\"],\"size\":[1],\"prefix\":[1],\"label\":[1],\"helper\":[1],\"required\":[516],\"showOptional\":[516,\"show-optional\"],\"error\":[513],\"disabled\":[516],\"showAddItem\":[4,\"show-add-item\"],\"addItemText\":[1,\"add-item-text\"],\"emptyStateText\":[1,\"empty-state-text\"],\"_showDropdown\":[32],\"_selectedItem\":[32],\"_allSelected\":[32],\"_amountHidden\":[32]},[[6,\"click\",\"documentClickHandler\"]],{\"value\":[{\"_valueChange\":0}],\"items\":[{\"itemChanges\":0}],\"_showDropdown\":[{\"_showDropdownChanges\":0}],\"multi\":[{\"multiChanges\":0}]}]]],[\"p-datepicker.cjs\",[[576,\"p-datepicker\",{\"placeholder\":[1],\"value\":[1],\"preselectToday\":[4,\"preselect-today\"],\"enableNativePicker\":[4,\"enable-native-picker\"],\"disabledDates\":[1,\"disabled-dates\"],\"minDate\":[1,\"min-date\"],\"maxDate\":[1,\"max-date\"],\"disableWeekends\":[4,\"disable-weekends\"],\"enableToday\":[4,\"enable-today\"],\"todayText\":[1,\"today-text\"],\"mode\":[1],\"format\":[1],\"hideIconWhenFilled\":[4,\"hide-icon-when-filled\"],\"size\":[1],\"prefix\":[1],\"label\":[1],\"loading\":[4],\"helper\":[1],\"required\":[516],\"showOptional\":[516,\"show-optional\"],\"error\":[513],\"disabled\":[516],\"strategy\":[1],\"placement\":[513],\"_showDropdown\":[32],\"_value\":[32],\"_minDate\":[32],\"_maxDate\":[32],\"_disabledDates\":[32],\"_isMobileBrowser\":[32]},[[6,\"click\",\"documentClickHandler\"]],{\"value\":[{\"parseValue\":0}],\"minDate\":[{\"parseMinDate\":0}],\"maxDate\":[{\"parseMaxDate\":0}],\"disabledDates\":[{\"parseDisabledDates\":0}]}]]],[\"p-modal.cjs\",[[769,\"p-modal\",{\"size\":[1],\"header\":[1],\"show\":[4],\"applyBlur\":[4,\"apply-blur\"],\"showClose\":[4,\"show-close\"],\"showMobileFooter\":[4,\"show-mobile-footer\"],\"backdropClickClose\":[4,\"backdrop-click-close\"],\"scrollLock\":[4,\"scroll-lock\"],\"_closing\":[32]},[[8,\"closeModal\",\"handleCloseModal\"]]]]],[\"p-drawer.cjs\",[[769,\"p-drawer\",{\"header\":[1],\"show\":[4],\"applyBlur\":[4,\"apply-blur\"],\"showClose\":[4,\"show-close\"],\"backdropClickClose\":[4,\"backdrop-click-close\"],\"canClose\":[4,\"can-close\"],\"scrollLock\":[4,\"scroll-lock\"],\"_closing\":[32]},[[8,\"closeDrawer\",\"handleCloseDrawer\"],[8,\"forceCloseDrawer\",\"handleForceCloseDrawer\"]]]]],[\"p-attachment.cjs\",[[513,\"p-attachment\",{\"enableCameraOnMobile\":[4,\"enable-camera-on-mobile\"],\"value\":[1],\"fileId\":[1,\"file-id\"],\"accept\":[1],\"label\":[1],\"helper\":[1],\"required\":[516],\"mode\":[1],\"placeholder\":[1],\"cameraTooltip\":[1,\"camera-tooltip\"],\"downloadTooltip\":[1,\"download-tooltip\"],\"uploadTooltip\":[1,\"upload-tooltip\"],\"deleteTooltip\":[1,\"delete-tooltip\"],\"loading\":[4],\"error\":[1]}]]],[\"p-profile.cjs\",[[769,\"p-profile\",{\"dropdownLocation\":[1,\"dropdown-location\"],\"_dropdownOpen\":[32],\"_hasDropdownSlot\":[32]},[[0,\"slotchange\",\"slotchange\"]]]]],[\"p-navbar.cjs\",[[769,\"p-navbar\",{\"_show\":[32]},[[8,\"closeNavbar\",\"handleCloseNavbar\"],[8,\"openNavbar\",\"handleOpenNavbar\"]]]]],[\"p-accordion.cjs\",[[769,\"p-accordion\",{\"variant\":[1],\"header\":[1],\"open\":[4],\"closeable\":[4],\"openable\":[4],\"label\":[1],\"labelVariant\":[1,\"label-variant\"],\"labelIcon\":[1,\"label-icon\"]}]]],[\"p-card-header.cjs\",[[769,\"p-card-header\",{\"variant\":[1],\"header\":[1],\"icon\":[1],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"],\"divider\":[4]}]]],[\"p-navigation-item.cjs\",[[774,\"p-navigation-item\",{\"icon\":[1],\"active\":[4],\"loading\":[4],\"as\":[1],\"counter\":[8],\"href\":[1],\"target\":[1],\"class\":[1],\"applyFullWidth\":[4,\"apply-full-width\"]}]]],[\"p-cropper.cjs\",[[513,\"p-cropper\",{\"value\":[1],\"returnType\":[1,\"return-type\"],\"_loaded\":[32],\"_currentScale\":[32]},[[9,\"resize\",\"onResize\"]]]]],[\"p-dropzone.cjs\",[[769,\"p-dropzone\",{\"icon\":[1],\"showIcon\":[4,\"show-icon\"],\"acceptGroup\":[1,\"accept-group\"],\"fileId\":[1,\"file-id\"],\"loading\":[4],\"allowMultiple\":[4,\"allow-multiple\"],\"uploaded\":[4],\"addedString\":[1,\"added-string\"],\"dragFileString\":[1,\"drag-file-string\"],\"orClickString\":[1,\"or-click-string\"],\"_isOver\":[32]},[[1,\"drop\",\"onDrop\"],[1,\"dragover\",\"onDragOver\"],[1,\"dragleave\",\"onDragLeave\"]]]]],[\"p-stepper.cjs\",[[769,\"p-stepper\",{\"steps\":[1],\"activeStep\":[2,\"active-step\"],\"enableAutoStatus\":[4,\"enable-auto-status\"],\"direction\":[1],\"align\":[1],\"contentPosition\":[1,\"content-position\"],\"_generatedOnce\":[32],\"_loaded\":[32]},null,{\"align\":[{\"_onAlignChange\":0}],\"direction\":[{\"_onDirectionChange\":0}],\"activeStep\":[{\"_onActiveStepChange\":0}]}]]],[\"p-info-panel.cjs\",[[769,\"p-info-panel\",{\"variant\":[1],\"header\":[1],\"content\":[1],\"closeable\":[4]}]]],[\"p-listing.cjs\",[[769,\"p-listing\",{\"_generatedOnce\":[32]}]]],[\"p-listing-item.cjs\",[[769,\"p-listing-item\",{\"icon\":[1]}]]],[\"p-navigation-section.cjs\",[[772,\"p-navigation-section\",{\"header\":[1]}]]],[\"p-submenu.cjs\",[[769,\"p-submenu\",{\"title\":[513],\"subtitle\":[513],\"index\":[514],\"showIndex\":[516,\"show-index\"],\"active\":[516],\"open\":[516],\"_activeItemPosition\":[32],\"_showItemIndicator\":[32]},[[9,\"resize\",\"onWindowResize\"]]]]],[\"p-submenu-item.cjs\",[[769,\"p-submenu-item\",{\"active\":[516],\"icon\":[513]}]]],[\"p-tab-container.cjs\",[[257,\"p-tab-container\"]]],[\"p-toast.cjs\",[[769,\"p-toast\",{\"variant\":[1],\"header\":[1],\"content\":[1],\"enableAction\":[4,\"enable-action\"],\"actionIcon\":[1,\"action-icon\"],\"actionIconFlip\":[1,\"action-icon-flip\"],\"actionIconRotate\":[2,\"action-icon-rotate\"]}]]],[\"p-avatar-group.cjs\",[[772,\"p-avatar-group\",{\"extra\":[2]}]]],[\"p-button-group.cjs\",[[769,\"p-button-group\",{\"size\":[1]},[[0,\"slotchange\",\"slotchange\"]]]]],[\"p-card-body.cjs\",[[257,\"p-card-body\"]]],[\"p-card-container.cjs\",[[769,\"p-card-container\",{\"variant\":[1],\"bgClass\":[1,\"bg-class\"],\"active\":[4],\"hoverable\":[4],\"shadow\":[4],\"border\":[4]}]]],[\"p-content-slider.cjs\",[[769,\"p-content-slider\",{\"hideMobileIndicator\":[4,\"hide-mobile-indicator\"],\"disableDrag\":[4,\"disable-drag\"],\"disableAutoCenter\":[4,\"disable-auto-center\"],\"disableIndicatorClick\":[4,\"disable-indicator-click\"],\"_visibleIndex\":[32],\"_outerHeight\":[32],\"_totalWidth\":[32],\"_dragging\":[32]},[[9,\"mouseup\",\"mouseUpHandler\"],[9,\"touchend\",\"mouseUpHandler\"],[9,\"resize\",\"resizeHandler\"]]]]],[\"p-iban-icon.cjs\",[[513,\"p-iban-icon\",{\"iban\":[513],\"variant\":[513]}]]],[\"p-layout.cjs\",[[769,\"p-layout\",{\"variant\":[1]}]]],[\"p-radio.cjs\",[[836,\"p-radio\",{\"value\":[1],\"disabled\":[516],\"required\":[516],\"id\":[513],\"name\":[513],\"checked\":[516],\"_nonce\":[32]}]]],[\"p-tab-item.cjs\",[[769,\"p-tab-item\",{\"active\":[4]}]]],[\"p-table-column.cjs\",[[512,\"p-table-column\",{\"path\":[1537],\"variant\":[1537],\"name\":[1537],\"flex\":[1540],\"useSlot\":[1540,\"use-slot\"],\"hasCheckbox\":[1540,\"has-checkbox\"],\"align\":[1537],\"headerAlign\":[1537,\"header-align\"],\"sticky\":[1544],\"parsedSizes\":[1040],\"sizes\":[1032]}]]],[\"p-table-extra-header.cjs\",[[512,\"p-table-extra-header\",{\"name\":[1537],\"sticky\":[1544],\"useSlot\":[1540,\"use-slot\"],\"align\":[1537],\"parsedSizes\":[1040],\"sizes\":[1032]}]]],[\"p-table-row-action.cjs\",[[512,\"p-table-row-action\",{\"type\":[1537],\"icon\":[1],\"iconOnly\":[4,\"icon-only\"],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"],\"label\":[1],\"action\":[16],\"disabled\":[4],\"loading\":[4],\"showFunction\":[16]}]]],[\"p-toast-container.cjs\",[[769,\"p-toast-container\",{\"placement\":[1]}]]],[\"p-toggle.cjs\",[[836,\"p-toggle\",{\"checked\":[4],\"disabled\":[516],\"required\":[516],\"id\":[513],\"name\":[513],\"_nonce\":[32]}]]],[\"p-calendar.cjs\",[[513,\"p-calendar\",{\"variant\":[1],\"value\":[1],\"preselectToday\":[4,\"preselect-today\"],\"disabledDates\":[1,\"disabled-dates\"],\"minDate\":[1,\"min-date\"],\"maxDate\":[1,\"max-date\"],\"disableWeekends\":[4,\"disable-weekends\"],\"enableToday\":[4,\"enable-today\"],\"todayText\":[1,\"today-text\"],\"mode\":[1],\"_view\":[32],\"_viewDate\":[32],\"_value\":[32],\"_minDate\":[32],\"_maxDate\":[32],\"_disabledDates\":[32],\"_enableToday\":[32]},null,{\"value\":[{\"_parseValue\":0}],\"minDate\":[{\"_parseMinDate\":0}],\"maxDate\":[{\"_parseMaxDate\":0}],\"disabledDates\":[{\"_parseDisabledDates\":0}],\"mode\":[{\"_modeChange\":0}]}]]],[\"p-label.cjs\",[[769,\"p-label\",{\"variant\":[513],\"iconOnly\":[516,\"icon-only\"],\"icon\":[513],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"],\"keepMobileContent\":[516,\"keep-mobile-content\"]}]]],[\"p-range.cjs\",[[513,\"p-range\",{\"min\":[2],\"max\":[2],\"step\":[2],\"value\":[2]}]]],[\"p-avatar.cjs\",[[512,\"p-avatar\",{\"variant\":[1],\"size\":[513],\"defaultImage\":[1,\"default-image\"],\"src\":[1],\"letters\":[1],\"_src\":[32],\"_failed\":[32]},null,{\"src\":[{\"onSrchChange\":0}]}]]],[\"p-listing-line.cjs\",[[1,\"p-listing-line\"]]],[\"p-navigation-title.cjs\",[[257,\"p-navigation-title\"]]],[\"p-floating-menu-item.cjs\",[[772,\"p-floating-menu-item\",{\"hover\":[4],\"disabled\":[4],\"loading\":[4],\"icon\":[1],\"iconPosition\":[1,\"icon-position\"],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"]}]]],[\"p-stepper-item_2.cjs\",[[769,\"p-stepper-item\",{\"number\":[2],\"direction\":[1],\"align\":[1],\"contentPosition\":[1,\"content-position\"],\"finished\":[4],\"active\":[4]}],[513,\"p-stepper-line\",{\"active\":[516],\"direction\":[513]}]]],[\"p-illustration.cjs\",[[512,\"p-illustration\",{\"variant\":[1]}]]],[\"p-drawer-body_3.cjs\",[[769,\"p-drawer-header\",{\"showClose\":[4,\"show-close\"]}],[257,\"p-drawer-body\"],[769,\"p-drawer-container\",{\"closing\":[4]}]]],[\"p-backdrop.cjs\",[[769,\"p-backdrop\",{\"variant\":[1],\"applyBlur\":[4,\"apply-blur\"],\"closing\":[4],\"scrollLock\":[4,\"scroll-lock\"],\"class\":[1]},[[2,\"click\",\"handleClick\"]]]]],[\"p-smile.cjs\",[[512,\"p-smile\",{\"variant\":[1]}]]],[\"p-divider.cjs\",[[769,\"p-divider\",{\"variant\":[513],\"alignContent\":[513,\"align-content\"]}]]],[\"p-modal-body_4.cjs\",[[769,\"p-modal-header\",{\"showClose\":[4,\"show-close\"]}],[257,\"p-modal-footer\"],[769,\"p-modal-body\",{\"roundedBottom\":[4,\"rounded-bottom\"],\"roundedTop\":[4,\"rounded-top\"]}],[769,\"p-modal-container\",{\"size\":[1],\"closing\":[4]}]]],[\"p-badge_3.cjs\",[[769,\"p-segment-item\",{\"variant\":[1],\"active\":[4],\"iconOnly\":[4,\"icon-only\"],\"icon\":[1],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"]}],[257,\"p-segment-container\"],[257,\"p-badge\"]]],[\"p-tooltip.cjs\",[[769,\"p-tooltip\",{\"variant\":[1],\"content\":[1],\"placement\":[1],\"offset\":[2],\"strategy\":[1],\"enableUserInput\":[4,\"enable-user-input\"],\"show\":[4],\"canManuallyClose\":[4,\"can-manually-close\"]},[[2,\"click\",\"clickHandler\"],[6,\"click\",\"documentClickHandler\"],[1,\"mouseenter\",\"mouseEnterHandler\"],[0,\"focus\",\"mouseEnterHandler\"],[1,\"mouseleave\",\"mouseLeaveHandler\"],[0,\"blur\",\"mouseLeaveHandler\"]],{\"show\":[{\"onShowChange\":0}],\"content\":[{\"onContentChange\":0}]}]]],[\"p-checkbox_3.cjs\",[[836,\"p-checkbox\",{\"checked\":[4],\"indeterminate\":[4],\"disabled\":[516],\"required\":[516],\"id\":[513],\"name\":[513],\"_nonce\":[32]}],[769,\"p-dropdown\",{\"variant\":[1],\"placement\":[513],\"offset\":[2],\"strategy\":[1],\"show\":[4],\"applyMaxWidth\":[4,\"apply-max-width\"],\"applyFullWidth\":[4,\"apply-full-width\"],\"allowOverflow\":[4,\"allow-overflow\"],\"scrollable\":[8],\"insideClick\":[4,\"inside-click\"],\"disableTriggerClick\":[4,\"disable-trigger-click\"],\"manual\":[4],\"applyChevron\":[4,\"apply-chevron\"],\"manualChevron\":[4,\"manual-chevron\"],\"chevronPosition\":[1,\"chevron-position\"],\"chevronDirection\":[1,\"chevron-direction\"],\"containerClass\":[1,\"container-class\"],\"isDatepicker\":[4,\"is-datepicker\"]},[[6,\"click\",\"documentClickHandler\"]],{\"show\":[{\"onShowChange\":0}]}],[769,\"p-dropdown-menu-container\",{\"variant\":[1],\"maxWidth\":[4,\"max-width\"],\"class\":[1],\"fullWidth\":[4,\"full-width\"],\"allowOverflow\":[4,\"allow-overflow\"],\"scrollable\":[8]}]]],[\"p-dropdown-menu-item_2.cjs\",[[769,\"p-pagination-pages-item\",{\"variant\":[1],\"active\":[4],\"hover\":[4],\"disabled\":[4]}],[769,\"p-dropdown-menu-item\",{\"active\":[4],\"checkbox\":[4],\"variant\":[1],\"enableHover\":[4,\"enable-hover\"],\"enableTextWrap\":[4,\"enable-text-wrap\"],\"disabled\":[4],\"icon\":[1],\"iconWave\":[4,\"icon-wave\"],\"useContainer\":[4,\"use-container\"],\"autoHeight\":[4,\"auto-height\"]}]]],[\"p-field_3.cjs\",[[833,\"p-field\",{\"align\":[1],\"variant\":[1],\"id\":[1],\"size\":[1],\"type\":[1],\"properties\":[8],\"prefix\":[1],\"suffix\":[1],\"icon\":[1],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"],\"iconPosition\":[1,\"icon-position\"],\"value\":[8],\"label\":[1],\"loading\":[4],\"enablePasswordEye\":[4,\"enable-password-eye\"],\"placeholder\":[1],\"helper\":[1],\"required\":[516],\"showOptional\":[516,\"show-optional\"],\"showAddOnEmpty\":[516,\"show-add-on-empty\"],\"addText\":[513,\"add-text\"],\"autofocus\":[516],\"error\":[513],\"autoShowError\":[516,\"auto-show-error\"],\"errorPlacement\":[1,\"error-placement\"],\"disabled\":[516],\"focused\":[516],\"forceShowTooltip\":[516,\"force-show-tooltip\"],\"selectAllOnFocus\":[516,\"select-all-on-focus\"],\"focusMethod\":[1,\"focus-method\"],\"optionalTemplate\":[16],\"_focused\":[32],\"_nonce\":[32],\"_type\":[32]},[[0,\"focusin\",\"handleFocusIn\"],[0,\"focusout\",\"handleFocusOut\"],[2,\"keyup\",\"handleKeyup\"],[2,\"keydown\",\"handleKeydown\"]],{\"value\":[{\"watchvalue\":0}]}],[769,\"p-field-container\",{\"id\":[1],\"align\":[1],\"label\":[1],\"loading\":[4],\"loadingSize\":[1,\"loading-size\"],\"variant\":[1],\"helper\":[1],\"required\":[516],\"showOptional\":[516,\"show-optional\"],\"error\":[513],\"errorPlacement\":[1,\"error-placement\"],\"forceShowTooltip\":[516,\"force-show-tooltip\"],\"optionalTemplate\":[16],\"_locales\":[32]},[[16,\"localeChanged\",\"_setLocales\"]]],[769,\"p-helper\",{\"strategy\":[1],\"placement\":[1]}]]],[\"p-pagination_3.cjs\",[[513,\"p-pagination\",{\"hideOnSinglePage\":[4,\"hide-on-single-page\"],\"enablePaginationSize\":[4,\"enable-pagination-size\"],\"enablePaginationPages\":[4,\"enable-pagination-pages\"],\"page\":[1538],\"total\":[2],\"pageSize\":[2,\"page-size\"],\"pageSizeOptions\":[16],\"_hasPaginationPages\":[32]}],[513,\"p-pagination-pages\",{\"page\":[1538],\"dropdownPageTemplate\":[16],\"pageSize\":[2,\"page-size\"],\"hideOnSinglePage\":[4,\"hide-on-single-page\"],\"total\":[2],\"_showDropdown\":[32],\"_dropdowns\":[32],\"_locales\":[32]},[[16,\"localeChanged\",\"_setLocales\"],[6,\"click\",\"documentClickHandler\"]],{\"page\":[{\"pageChangeHandler\":0}],\"pageSize\":[{\"pageChangeHandler\":0}],\"total\":[{\"pageChangeHandler\":0}]}],[769,\"p-pagination-size\",{\"size\":[1538],\"sizeOptions\":[16],\"itemTemplate\":[16],\"hidden\":[4],\"dropdownIsOpen\":[32],\"_locales\":[32]},[[16,\"localeChanged\",\"_setLocales\"]]]]],[\"p-empty-state_8.cjs\",[[513,\"p-table-footer\",{\"enablePaginationSize\":[4,\"enable-pagination-size\"],\"enablePaginationPages\":[4,\"enable-pagination-pages\"],\"loading\":[4],\"page\":[1538],\"total\":[2],\"pageSize\":[2,\"page-size\"],\"pageSizeOptions\":[16],\"tableHeaderHasAction\":[4,\"table-header-has-action\"],\"hideOnSinglePage\":[4,\"hide-on-single-page\"],\"_isPinned\":[32],\"_hasPaginationPages\":[32]},[[9,\"scroll\",\"onScroll\"]]],[769,\"p-table-header\",{\"quickFilters\":[1,\"quick-filters\"],\"activeQuickFilterIdentifier\":[1,\"active-quick-filter-identifier\"],\"hideQuickFiltersOnMobile\":[4,\"hide-quick-filters-on-mobile\"],\"loading\":[4],\"enableSearch\":[4,\"enable-search\"],\"itemsSelectedAmount\":[2,\"items-selected-amount\"],\"query\":[1025],\"enableFilter\":[4,\"enable-filter\"],\"enableExport\":[4,\"enable-export\"],\"enableFilterDesktop\":[4,\"enable-filter-desktop\"],\"selectedFiltersAmount\":[2,\"selected-filters-amount\"],\"filterButtonTemplate\":[16],\"enableAction\":[4,\"enable-action\"],\"actionLoading\":[4,\"action-loading\"],\"actionIcon\":[1,\"action-icon\"],\"actionText\":[1,\"action-text\"],\"canUseAction\":[1028,\"can-use-action\"],\"actionButtonTemplate\":[16],\"_locales\":[32]},[[16,\"localeChanged\",\"_setLocales\"]]],[769,\"p-empty-state\",{\"illustration\":[1],\"header\":[1],\"content\":[1],\"enableAction\":[4,\"enable-action\"],\"actionText\":[1,\"action-text\"],\"actionVariant\":[1,\"action-variant\"],\"actionIcon\":[1,\"action-icon\"],\"actionIconPosition\":[1,\"action-icon-position\"],\"actionLoading\":[4,\"action-loading\"]}],[769,\"p-floating-menu-container\",{\"usedInTable\":[4,\"used-in-table\"],\"enableAmountSelected\":[4,\"enable-amount-selected\"],\"amount\":[2],\"enableClose\":[4,\"enable-close\"],\"amountSelectedTemplate\":[16],\"_locales\":[32]},[[16,\"localeChanged\",\"_setLocales\"]]],[772,\"p-table-cell\",{\"variant\":[1],\"index\":[2],\"rowIndex\":[2,\"row-index\"],\"definition\":[8],\"item\":[8],\"value\":[8],\"checkbox\":[8],\"checkboxOffset\":[4,\"checkbox-offset\"],\"template\":[16]}],[769,\"p-table-row\",{\"variant\":[1],\"enableHover\":[4,\"enable-hover\"],\"checked\":[4],\"isLast\":[4,\"is-last\"]}],[260,\"p-table-container\"],[769,\"p-table-row-actions-container\",{\"checked\":[4]}]]]]"), options);
49
49
  });
50
50
 
51
51
  exports.setNonce = index.setNonce;
@@ -1 +1 @@
1
- *{box-sizing:border-box}.static{position:static}.flex{display:flex}.h-8{height:2rem}.h-full{height:100%}.w-\[2px\]{width:2px}.w-full{width:100%}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.gap-2{gap:.5rem}.gap-6{gap:1.5rem}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))}.bg-transparent{background-color:transparent}.pl-6{padding-left:1.5rem}.text-hurricane-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.group\/submenu-item:hover .group-hover\/submenu-item\:bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))}.dark\:text-hurricane-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\:text-hurricane-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}
1
+ *{box-sizing:border-box}.static{position:static}.flex{display:flex}.h-8{height:2rem}.w-full{width:100%}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.gap-2{gap:.5rem}.pl-\[calc\(3rem\+2px\)\]{padding-left:calc(3rem + 2px)}.text-hurricane-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.dark\:text-hurricane-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\:text-hurricane-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}
@@ -1,15 +1,6 @@
1
1
  import { h } from "@stencil/core";
2
- import { cva } from "class-variance-authority";
3
2
  import { ThemedHost } from "../../../../internal/themed-host.component";
4
3
  import { cn } from "../../../../utils";
5
- const content = cva([
6
- 'flex items-center gap-6',
7
- 'h-8 w-full pl-6',
8
- 'cursor-pointer',
9
- 'group/submenu-item',
10
- ], {
11
- variants: {},
12
- });
13
4
  export class SubmenuItem {
14
5
  /**
15
6
  * Wether the submenu is active or not
@@ -19,14 +10,28 @@ export class SubmenuItem {
19
10
  * Icon to show on the label
20
11
  */
21
12
  icon = 'placeholder';
13
+ /**
14
+ * Event when the active state changes
15
+ */
16
+ activeChange;
17
+ _lastActiveState = this.active;
18
+ componentDidRender() {
19
+ if (this._lastActiveState === this.active) {
20
+ return;
21
+ }
22
+ this._lastActiveState = this.active;
23
+ this.activeChange.emit(this.active);
24
+ }
22
25
  render() {
23
- return (h(ThemedHost, { key: '812bee8d46780d60ed604505b4f8c00e798a9f8f' }, h("div", { key: 'f5a76dd14ccb0559586b01214c6badb3bcf2eef8', class: cn(content({}), {}) }, h("div", { key: '97fe0916207dfefd625ae51d911ef4eeb5d6b4cc', class: cn(`h-full w-[2px] transition-colors`, {
24
- 'bg-indigo-600': this.active,
25
- 'bg-transparent group-hover/submenu-item:bg-indigo-600': !this.active,
26
- }) }), h("div", { key: '2c6ab60c2fb19b197d5aabd2368a7eb7406fdcb2', class: cn('flex items-center gap-2 transition-colors', {
26
+ return (h(ThemedHost, { key: '38bbc84752e1aa8271568aad5c1fd46bfa435d9a' }, h("div", { key: 'a17fb921e57780d1ff572a3d1ba10331b045276e', class: cn([
27
+ 'flex items-center',
28
+ 'h-8 w-full pl-[calc(3rem+2px)]',
29
+ 'cursor-pointer',
30
+ 'group/submenu-item',
31
+ ]) }, h("div", { key: 'd9c949c6f467524e0590a19774ae86c06e234fe5', class: cn('flex items-center gap-2 transition-colors', {
27
32
  'text-storm-400 dark:text-hurricane-100': !this.active,
28
33
  'text-indigo-600': this.active,
29
- }) }, h("p-icon", { key: '7db15690b67f555a46dc72133be72e5937051658', variant: this.icon }), h("slot", { key: '1a4574d13c012affe2713a034445f636369729c8' })))));
34
+ }) }, h("p-icon", { key: '8eed69a5fd4cef34ef69d7e5a96993289effc37e', variant: this.icon }), h("slot", { key: '5471376f37afb9566f21599ee0e86af42a00b370' })))));
30
35
  }
31
36
  static get is() { return "p-submenu-item"; }
32
37
  static get encapsulation() { return "shadow"; }
@@ -91,4 +96,22 @@ export class SubmenuItem {
91
96
  }
92
97
  };
93
98
  }
99
+ static get events() {
100
+ return [{
101
+ "method": "activeChange",
102
+ "name": "activeChange",
103
+ "bubbles": false,
104
+ "cancelable": true,
105
+ "composed": true,
106
+ "docs": {
107
+ "tags": [],
108
+ "text": "Event when the active state changes"
109
+ },
110
+ "complexType": {
111
+ "original": "boolean",
112
+ "resolved": "boolean",
113
+ "references": {}
114
+ }
115
+ }];
116
+ }
94
117
  }
@@ -1 +1 @@
1
- *{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-\[calc\(1\.5rem\)\]{left:1.5rem}.top-0{top:0}.z-0{z-index:0}.z-10{z-index:10}.m-0{margin:0}.m-2{margin:.5rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.flex{display:flex}.size-4{height:1rem;width:1rem}.w-full{width:100%}.w-px{width:1px}.flex-1{flex:1 1 0%}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.bg-hurricane-400{--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(199 217 253/var(--tw-bg-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.bg-off-white-300{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.bg-off-white-400{--tw-bg-opacity:1;background-color:rgb(245 244 241/var(--tw-bg-opacity,1))}.bg-storm-500\/30{background-color:rgba(24,30,41,.3)}.p-2{padding:.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.pl-2{padding-left:.5rem}.pr-4{padding-right:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.text-hurricane-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-indigo-200{--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.transition-\[max-height\]{transition-duration:.15s;transition-property:max-height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:bg-indigo-50:hover{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.group\/submenu-header:hover .group-hover\/submenu-header\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\:bg-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.dark\:bg-indigo-600\/30:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(82,138,250,.3)}.dark\:bg-storm-500\/20:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(24,30,41,.2)}.dark\:bg-storm-500\/30:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(24,30,41,.3)}.dark\:text-hurricane-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\:text-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(54 60 70/var(--tw-text-opacity,1))}.dark\:text-indigo-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.dark\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\:hover\:bg-indigo-600\/10:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(82,138,250,.1)}.group\/submenu-header:hover .dark\:group-hover\/submenu-header\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\:bg-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.dark\:bg-indigo-600\/30:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(82,138,250,.3)}.dark\:bg-storm-500\/20:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(24,30,41,.2)}.dark\:bg-storm-500\/30:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(24,30,41,.3)}.dark\:text-hurricane-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\:text-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(54 60 70/var(--tw-text-opacity,1))}.dark\:text-indigo-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.dark\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\:hover\:bg-indigo-600\/10:hover:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(82,138,250,.1)}.group\/submenu-header:hover .dark\:group-hover\/submenu-header\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}
1
+ *{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-6{left:1.5rem}.top-0{top:0}.z-0{z-index:0}.z-10{z-index:10}.z-\[1\]{z-index:1}.m-0{margin:0}.m-2{margin:.5rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.flex{display:flex}.size-4{height:1rem;width:1rem}.h-8{height:2rem}.w-\[2px\]{width:2px}.w-full{width:100%}.w-px{width:1px}.flex-1{flex:1 1 0%}.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))}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.bg-hurricane-400{--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(199 217 253/var(--tw-bg-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))}.bg-off-white-300{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.bg-off-white-400{--tw-bg-opacity:1;background-color:rgb(245 244 241/var(--tw-bg-opacity,1))}.bg-storm-500\/30{background-color:rgba(24,30,41,.3)}.bg-transparent{background-color:transparent}.p-2{padding:.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.pl-2{padding-left:.5rem}.pr-4{padding-right:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.text-hurricane-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-indigo-200{--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.transition-\[max-height\]{transition-duration:.15s;transition-property:max-height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:bg-indigo-50:hover{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.group\/submenu-header:hover .group-hover\/submenu-header\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\:bg-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.dark\:bg-indigo-600\/30:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(82,138,250,.3)}.dark\:bg-storm-500\/20:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(24,30,41,.2)}.dark\:bg-storm-500\/30:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(24,30,41,.3)}.dark\:text-hurricane-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\:text-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(54 60 70/var(--tw-text-opacity,1))}.dark\:text-indigo-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.dark\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\:hover\:bg-indigo-600\/10:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(82,138,250,.1)}.group\/submenu-header:hover .dark\:group-hover\/submenu-header\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\:bg-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.dark\:bg-indigo-600\/30:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(82,138,250,.3)}.dark\:bg-storm-500\/20:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(24,30,41,.2)}.dark\:bg-storm-500\/30:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(24,30,41,.3)}.dark\:text-hurricane-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\:text-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(54 60 70/var(--tw-text-opacity,1))}.dark\:text-indigo-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.dark\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\:hover\:bg-indigo-600\/10:hover:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(82,138,250,.1)}.group\/submenu-header:hover .dark\:group-hover\/submenu-header\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}
@@ -9,6 +9,7 @@ const header = cva([
9
9
  'rounded-lg',
10
10
  'cursor-pointer',
11
11
  'transition-colors',
12
+ 'relative',
12
13
  ], {
13
14
  variants: {
14
15
  open: {
@@ -87,6 +88,40 @@ export class Submenu {
87
88
  * The host element
88
89
  */
89
90
  _el;
91
+ _activeItemPosition = -1;
92
+ _showItemIndicator = false;
93
+ _headerOffset = 0;
94
+ _submenuItems = [];
95
+ _hoveringItem = undefined;
96
+ _itemActiveListener = () => {
97
+ const activeItemIndex = this._submenuItems.findIndex(i => i.active === true);
98
+ this.active = activeItemIndex !== -1;
99
+ if (activeItemIndex === -1) {
100
+ this._showItemIndicator = false;
101
+ return;
102
+ }
103
+ // set open when active changes
104
+ if (!this.open && this.active) {
105
+ this.open = true;
106
+ }
107
+ this._setItemPosition(this._submenuItems[activeItemIndex]);
108
+ };
109
+ _itemMouseEnterListener = (event) => {
110
+ if (this._hoveringItem && this._hoveringItem === event.target) {
111
+ return;
112
+ }
113
+ this._hoveringItem = event.target;
114
+ this._setItemPosition(this._hoveringItem);
115
+ };
116
+ _itemMouseLeaveListener = (event) => {
117
+ setTimeout(() => {
118
+ if (this._hoveringItem && this._hoveringItem !== event.target) {
119
+ return;
120
+ }
121
+ this._hoveringItem = undefined;
122
+ this._itemActiveListener();
123
+ }, 100);
124
+ };
90
125
  componentDidLoad() {
91
126
  const submenuItems = this._el.querySelectorAll('p-submenu-item');
92
127
  const hasActiveChild = [...submenuItems].some(i => i.active === true);
@@ -98,35 +133,87 @@ export class Submenu {
98
133
  }
99
134
  this.open = true;
100
135
  }
136
+ componentDidRender() {
137
+ this._calculateHeaderOffset();
138
+ }
139
+ disconnectedCallback() {
140
+ this._removeListeners();
141
+ }
101
142
  render() {
102
143
  const submenuItems = this._el.querySelectorAll('p-submenu-item');
103
144
  const firstItem = getComputedStyle(submenuItems[0]);
104
145
  const maxHeight = submenuItems.length *
105
146
  Number.parseInt(firstItem.height.replace('px', '')) +
106
147
  16; // the margin of the content
107
- return (h(ThemedHost, { key: '110fad52ce96c4fc855408b422a42956b957d092' }, h("div", { key: '0b8f40db722e7c6f6ba8ded2e33a6776af28f0dc', class: 'flex w-full flex-col' }, h("div", { key: '23aa3cf5a7ece75e3fb6312e2e2173d68b2dcd86', class: cn(header({
148
+ return (h(ThemedHost, { key: '9f1be5fc3770c7527bc8be07510fa37d6c0e984c' }, h("div", { key: 'b6afb284861441006879d0bda9d9eb0bf86174f3', class: 'flex w-full flex-col' }, h("div", { key: '5e8e749909c8493486c352a3177b308d4cdfe05a', class: cn(header({
108
149
  active: this.active,
109
150
  open: this.open,
110
- })), onClick: () => (this.open = !this.open) }, this.showIndex && (h("div", { key: 'a24b117f984eb4392a90b47fd8363e7e320cb84a', class: indexContainer({
151
+ })), onClick: () => (this.open = !this.open) }, this.showIndex && (h("div", { key: '7429d46e05326a60fecf9ad0fd30ecdd03e4c148', class: indexContainer({
111
152
  active: this.active,
112
153
  open: this.open,
113
- }) }, this.index)), h("div", { key: '76fb811ac456b88a7f3d3df3b5badfaf9fe6170f', class: 'flex flex-1 flex-col' }, h("p", { key: '0dd533096861b9962eb523ece6a2ad03f34223f0', class: cn('m-0 text-sm', {
154
+ }) }, this.index)), h("div", { key: '0940e36702f42da9e076762191d4a11b57c3312c', class: 'flex flex-1 flex-col' }, h("p", { key: '64e34ec4598f4983a03a415c1dc893380413c51c', class: cn('m-0 text-sm', {
114
155
  'text-storm-400 dark:text-hurricane-100 dark:group-hover/submenu-header:text-white': !this.active,
115
156
  'text-storm-500 dark:text-white': this.active,
116
- }) }, this.title), h("p", { key: '0c3624317e71d9519ab6b694e70dbc7024641cef', class: cn('m-0 text-xs', {
157
+ }) }, this.title), h("p", { key: 'd15bb2b7035cc06d2c7f4e6a8a3566a8044ade9d', class: cn('m-0 text-xs', {
117
158
  'text-storm-300 dark:text-hurricane-300': !this.active,
118
159
  'text-storm-300 dark:text-indigo-200': this.active,
119
- }) }, this.subtitle)), h("p-icon", { key: '480e39ea4630c81d13ec24728d7827a3760ebb6f', class: cn({
160
+ }) }, this.subtitle)), h("p-icon", { key: 'cba00a3d1093bb5c565a8b585e3471fe53947d10', class: cn({
120
161
  'text-storm-500 dark:text-white': this.active,
121
162
  'text-storm-300 dark:text-hurricane-300': !this.active,
122
- }), rotate: this.open ? 180 : 0, variant: 'caret' })), h("div", { key: '2613acd0e5e16af70c39b93a1e064423fafa036c', class: cn('relative flex flex-col overflow-hidden transition-[max-height]'), style: {
163
+ }), rotate: this.open ? 180 : 0, variant: 'caret' })), h("div", { key: '2199b8bad93526ae33cae769b3c1643614c26b86', class: cn('relative flex flex-col overflow-hidden transition-[max-height]'), style: {
123
164
  maxHeight: `${this.open ? maxHeight : 0}px`,
124
- } }, h("div", { key: 'c8d88df1d7b0ffd7e29202655f33f46ec781a15e', class: cn('absolute left-[calc(1.5rem)] top-0 z-0 w-px', {
165
+ } }, h("div", { key: 'cd7a456eb8ba1bb949e9891146e5260607c45153', class: cn('absolute left-6 top-0 z-0 w-px', {
125
166
  'bg-off-white-400 dark:bg-storm-500/30': !this.active,
126
167
  'bg-indigo-100 dark:bg-hurricane-400': this.active,
127
168
  }), style: {
128
169
  height: `${maxHeight}px`,
129
- } }), h("div", { key: '0e4328a428da51a172b5a5ff7e8adf2a5c840de6', class: 'z-10 my-2 flex flex-col' }, h("slot", { key: '1541aecaf7c8981cd3a56ffe73b542b135cb186a' }))))));
170
+ } }), h("div", { key: 'fc15b0d8cc3764b378c4fc9db70a7e164a9e287a', class: cn(`absolute left-6 top-0 z-[1] h-8 w-[2px] transform transition-all`, {
171
+ 'bg-indigo-600': this._showItemIndicator,
172
+ 'bg-transparent': !this._showItemIndicator,
173
+ }), style: {
174
+ transform: `translateY(${this._activeItemPosition}px)`,
175
+ } }), h("div", { key: '027e8f7c958784db540f67331f0577bb13a5a90f', class: 'z-10 my-2 flex flex-col' }, h("slot", { key: 'b3495515c0c0478a7bd4376b6cced01b89400d15', onSlotchange: () => this._slotChanged() }))))));
176
+ }
177
+ onWindowResize() {
178
+ this._calculateHeaderOffset();
179
+ this._itemActiveListener();
180
+ }
181
+ _calculateHeaderOffset() {
182
+ const headerEl = this._el.shadowRoot?.querySelector(String.raw `.group\/submenu-header`);
183
+ if (!headerEl) {
184
+ this._activeItemPosition = -1;
185
+ return;
186
+ }
187
+ this._headerOffset = headerEl.getBoundingClientRect().bottom;
188
+ }
189
+ _setItemPosition(item) {
190
+ if (!item) {
191
+ return;
192
+ }
193
+ this._activeItemPosition =
194
+ item.getBoundingClientRect().top - this._headerOffset;
195
+ if (!this._showItemIndicator) {
196
+ setTimeout(() => (this._showItemIndicator = true), 50);
197
+ }
198
+ }
199
+ _slotChanged() {
200
+ this._removeListeners();
201
+ const submenuItems = [...this._el.querySelectorAll('p-submenu-item')];
202
+ for (const item of submenuItems) {
203
+ item.addEventListener('activeChange', this._itemActiveListener);
204
+ item.addEventListener('mouseenter', this._itemMouseEnterListener);
205
+ item.addEventListener('mouseleave', this._itemMouseLeaveListener);
206
+ }
207
+ this._submenuItems = submenuItems;
208
+ }
209
+ _removeListeners() {
210
+ if (this._submenuItems.length > 0) {
211
+ for (const item of this._submenuItems) {
212
+ item.removeEventListener('activeChange', this._itemActiveListener);
213
+ item.removeEventListener('mouseenter', this._itemMouseEnterListener);
214
+ item.removeEventListener('mouseleave', this._itemMouseLeaveListener);
215
+ }
216
+ }
130
217
  }
131
218
  static get is() { return "p-submenu"; }
132
219
  static get encapsulation() { return "shadow"; }
@@ -264,5 +351,20 @@ export class Submenu {
264
351
  }
265
352
  };
266
353
  }
354
+ static get states() {
355
+ return {
356
+ "_activeItemPosition": {},
357
+ "_showItemIndicator": {}
358
+ };
359
+ }
267
360
  static get elementRef() { return "_el"; }
361
+ static get listeners() {
362
+ return [{
363
+ "name": "resize",
364
+ "method": "onWindowResize",
365
+ "target": "window",
366
+ "capture": false,
367
+ "passive": true
368
+ }];
369
+ }
268
370
  }