@paperless/core 3.19.2 → 3.19.3
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.
- package/dist/build/p-9781d974.entry.js +1 -0
- package/dist/build/p-a001874d.entry.js +1 -0
- package/dist/build/p-cdd2faed.js +1 -0
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-submenu-item.cjs.entry.js +22 -16
- package/dist/cjs/p-submenu.cjs.entry.js +92 -9
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/components/molecules/submenu/item/submenu-item.component.css +1 -1
- package/dist/collection/components/molecules/submenu/item/submenu-item.component.js +37 -14
- package/dist/collection/components/molecules/submenu/menu/submenu.component.css +1 -1
- package/dist/collection/components/molecules/submenu/menu/submenu.component.js +106 -8
- package/dist/collection/components/molecules/submenu/menu/submenu.stories.js +8 -2
- package/dist/components/p-submenu-item.js +1 -1
- package/dist/components/p-submenu.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-submenu-item.entry.js +23 -17
- package/dist/esm/p-submenu.entry.js +92 -9
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/p-9781d974.entry.js +1 -0
- package/dist/paperless/p-a001874d.entry.js +1 -0
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/molecules/submenu/item/submenu-item.component.d.ts +7 -0
- package/dist/types/components/molecules/submenu/menu/submenu.component.d.ts +15 -0
- package/dist/types/components/molecules/submenu/menu/submenu.stories.d.ts +8 -1
- package/dist/types/components.d.ts +19 -0
- package/hydrate/index.js +127 -35
- package/hydrate/index.mjs +127 -35
- package/package.json +1 -1
- package/dist/build/p-5b0fe9d2.entry.js +0 -1
- package/dist/build/p-81e96c69.entry.js +0 -1
- package/dist/build/p-b344aaa1.js +0 -1
- package/dist/paperless/p-5b0fe9d2.entry.js +0 -1
- package/dist/paperless/p-81e96c69.entry.js +0 -1
package/hydrate/index.mjs
CHANGED
|
@@ -88668,7 +88668,7 @@ const header$5 = cva(`relative z-[1] inline-flex w-full flex-col justify-start r
|
|
|
88668
88668
|
},
|
|
88669
88669
|
},
|
|
88670
88670
|
});
|
|
88671
|
-
const content$
|
|
88671
|
+
const content$6 = cva('flex items-center gap-2', {
|
|
88672
88672
|
variants: {
|
|
88673
88673
|
variant: {
|
|
88674
88674
|
default: 'py-3',
|
|
@@ -88711,7 +88711,7 @@ class CardHeader {
|
|
|
88711
88711
|
render() {
|
|
88712
88712
|
return (hAsync(ThemedHost, { key: 'b7eb827631c54142f2a4e3fe2b81271c8144b16a' }, hAsync("div", { key: 'fcb33fb73eb61e36d8c4990b5b27e217221b96a4', class: header$5({
|
|
88713
88713
|
variant: this.variant,
|
|
88714
|
-
}) }, hAsync("div", { key: '1ae832e07095882bb8e46398c30609e12fa4d6eb', class: content$
|
|
88714
|
+
}) }, hAsync("div", { key: '1ae832e07095882bb8e46398c30609e12fa4d6eb', class: content$6({
|
|
88715
88715
|
variant: this.variant,
|
|
88716
88716
|
}) }, this.icon ? (hAsync("p-icon", { class: '\n text-storm-300\n dark:text-hurricane-200\n ', flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon })) : (hAsync("slot", { name: 'prefix' })), hAsync("div", { key: '2c9394715612b7415aeb065d9575caf755044e5f', class: title$2() }, hAsync("span", { key: '9d8e7178338dd0e4ed218c5a16d5c77486c7f240', class: 'max-w-full overflow-hidden text-ellipsis' }, this.header?.length ? this.header : hAsync("slot", null)), hAsync("slot", { key: '1483bded5220bda03e8b80228135539a8b099033', name: 'content-suffix' })), hAsync("div", { key: '62055fed1277f466d6e70578c12ce51cb9a73272', class: '\n ml-auto flex items-center justify-end gap-4\n empty:hidden\n ' }, hAsync("slot", { key: '73b2c1a055167b6050ec18f2a8b997bea8f39f8e', name: 'suffix' }))), this.variant === 'default' ? (asBoolean(this.divider) && (hAsync("p-divider", { class: '\n text-off-white-700\n dark:text-white/10\n ' }))) : (hAsync("div", { class: '\n pointer-events-none absolute left-0 top-0 z-[-1] h-full w-full\n overflow-hidden rounded-t-2xl\n ' }, hAsync("p-smile", { class: 'dark:text-hurricane-400', variant: 'card' }))))));
|
|
88717
88717
|
}
|
|
@@ -92571,7 +92571,7 @@ class Datepicker {
|
|
|
92571
92571
|
|
|
92572
92572
|
const dividerComponentCss = () => `*{box-sizing:border-box}p-divider{--tw-content:""}.static{position:static}.flex{display:flex}.h-full{height:100%}.w-full{width:100%}.flex-col{flex-direction:column}.items-center{align-items:center}.px-2{padding-left:.5rem;padding-right:.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.text-hurricane-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-off-white-700{--tw-text-opacity:1;color:rgb(222 219 213/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.before\\:hidden:before{content:var(--tw-content);display:none}.before\\:h-px:before{content:var(--tw-content);height:1px}.before\\:w-px:before{content:var(--tw-content);width:1px}.before\\:flex-1:before{content:var(--tw-content);flex:1 1 0%}.before\\:bg-current:before{background-color:currentColor;content:var(--tw-content)}.before\\:content-\\[\\"\\"\\]:before{--tw-content:"";content:var(--tw-content)}.after\\:hidden:after{content:var(--tw-content);display:none}.after\\:h-px:after{content:var(--tw-content);height:1px}.after\\:w-px:after{content:var(--tw-content);width:1px}.after\\:flex-1:after{content:var(--tw-content);flex:1 1 0%}.after\\:bg-current:after{background-color:currentColor;content:var(--tw-content)}.after\\:content-\\[\\"\\"\\]:after{--tw-content:"";content:var(--tw-content)}.empty\\:px-0:empty{padding-left:0;padding-right:0}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}`;
|
|
92573
92573
|
|
|
92574
|
-
const content$
|
|
92574
|
+
const content$5 = cva([
|
|
92575
92575
|
'flex items-center',
|
|
92576
92576
|
`
|
|
92577
92577
|
before:content-[""]
|
|
@@ -92626,7 +92626,7 @@ class Divider {
|
|
|
92626
92626
|
get _el() { return getElement(this); }
|
|
92627
92627
|
render() {
|
|
92628
92628
|
const hasContent = this._el.innerHTML?.length > 0;
|
|
92629
|
-
return (hAsync(ThemedHost, { key: 'ff409606cbaf88fec989b154c9c16eb07b60e185' }, hAsync("div", { key: 'bbf08c6ede2f45885372760c28026fa170dd2cd7', class: cn(content$
|
|
92629
|
+
return (hAsync(ThemedHost, { key: 'ff409606cbaf88fec989b154c9c16eb07b60e185' }, hAsync("div", { key: 'bbf08c6ede2f45885372760c28026fa170dd2cd7', class: cn(content$5({
|
|
92630
92630
|
variant: this.variant,
|
|
92631
92631
|
alignContent: this.alignContent,
|
|
92632
92632
|
}), {
|
|
@@ -92850,7 +92850,7 @@ const header$4 = cva([
|
|
|
92850
92850
|
`,
|
|
92851
92851
|
'inline-flex',
|
|
92852
92852
|
]);
|
|
92853
|
-
const content$
|
|
92853
|
+
const content$4 = cva(['flex justify-between', 'min-h-12 w-full p-4 pb-0']);
|
|
92854
92854
|
const title$1 = cva([
|
|
92855
92855
|
'flex-1 text-center',
|
|
92856
92856
|
`
|
|
@@ -92872,7 +92872,7 @@ class DrawerHeader {
|
|
|
92872
92872
|
*/
|
|
92873
92873
|
close;
|
|
92874
92874
|
render() {
|
|
92875
|
-
return (hAsync(ThemedHost, { key: 'f0cc21f420fc9ede8f37b703e2bdc05b0494fdfb' }, hAsync("div", { key: 'e90c5f4e51592b3dd5aabddc4cdf394a44afc4d6', class: header$4() }, hAsync("div", { key: '7c34db9d5c88f715dc67663c4bd59292f4d5f465', class: content$
|
|
92875
|
+
return (hAsync(ThemedHost, { key: 'f0cc21f420fc9ede8f37b703e2bdc05b0494fdfb' }, hAsync("div", { key: 'e90c5f4e51592b3dd5aabddc4cdf394a44afc4d6', class: header$4() }, hAsync("div", { key: '7c34db9d5c88f715dc67663c4bd59292f4d5f465', class: content$4() }, this.showClose && (hAsync("p-button", { key: '65d62aac568049c275aaf0da50927aa162375291', icon: 'negative', iconOnly: true, variant: 'secondary', onClick: ev => this.close.emit(ev) })), hAsync("div", { key: '7e1809baea3e11b781292e5948dcd88de22adcbf', class: title$1() }, hAsync("slot", { key: 'a197919fc325a031824cc187d9f01c02047c3cce' })), this.showClose && hAsync("div", { key: 'a89a2a5c054a83c7998f8e3537294bb0d9a3654a', class: 'size-8' })), hAsync("p-smile", { key: 'b6247f9b0f7dd88fe13b507507a5802bef0b518f', class: 'dark:text-hurricane-400' }))));
|
|
92876
92876
|
}
|
|
92877
92877
|
static get style() { return drawerHeaderComponentCss(); }
|
|
92878
92878
|
static get cmpMeta() { return {
|
|
@@ -97660,7 +97660,7 @@ const header$2 = cva([
|
|
|
97660
97660
|
`,
|
|
97661
97661
|
'inline-flex aspect-[7/1] max-h-28',
|
|
97662
97662
|
]);
|
|
97663
|
-
const content$
|
|
97663
|
+
const content$3 = cva(['flex justify-end', 'h-12 w-full p-4 pb-0']);
|
|
97664
97664
|
const title = cva([
|
|
97665
97665
|
'flex-1 text-center',
|
|
97666
97666
|
'w-[calc(100%-7rem)]',
|
|
@@ -97684,7 +97684,7 @@ class ModalHeader {
|
|
|
97684
97684
|
*/
|
|
97685
97685
|
close;
|
|
97686
97686
|
render() {
|
|
97687
|
-
return (hAsync(ThemedHost, { key: '6ff888c25d7455ffd6baf7e1dd046d8446555739' }, hAsync("div", { key: '9b9fa9ee81f4174df2f880965afa9cc72b63e800', class: header$2() }, hAsync("div", { key: 'b58b6b353afa85c5e45f71abf9c4d59b5fa42eeb', class: content$
|
|
97687
|
+
return (hAsync(ThemedHost, { key: '6ff888c25d7455ffd6baf7e1dd046d8446555739' }, hAsync("div", { key: '9b9fa9ee81f4174df2f880965afa9cc72b63e800', class: header$2() }, hAsync("div", { key: 'b58b6b353afa85c5e45f71abf9c4d59b5fa42eeb', class: content$3() }, hAsync("div", { key: '576edc988821e2ae50b8a11c8fc4b81fea137cb8', class: title() }, hAsync("slot", { key: 'b9906b5af7dc8542f3d046d8ca9dccc0f8310e9d' })), this.showClose && (hAsync("p-button", { key: 'c5da895fc9b1e6ef042a5f9d829d6e584ff23ab8', icon: 'negative', iconOnly: true, variant: 'secondary', onClick: ev => this.close.emit(ev) }))), hAsync("p-smile", { key: 'e0390b852e9ae3633185cdb5441d9172a07f7986', class: 'dark:text-hurricane-400' }))));
|
|
97688
97688
|
}
|
|
97689
97689
|
static get style() { return modalHeaderComponentCss(); }
|
|
97690
97690
|
static get cmpMeta() { return {
|
|
@@ -100113,7 +100113,7 @@ const circle$1 = cva([
|
|
|
100113
100113
|
},
|
|
100114
100114
|
],
|
|
100115
100115
|
});
|
|
100116
|
-
const content$
|
|
100116
|
+
const content$2 = cva('mt-[1px] flex-1 text-sm font-medium', {
|
|
100117
100117
|
variants: {
|
|
100118
100118
|
finished: {
|
|
100119
100119
|
true: null,
|
|
@@ -100200,7 +100200,7 @@ class StepperItem {
|
|
|
100200
100200
|
direction: this.direction,
|
|
100201
100201
|
active: asBoolean(this.active),
|
|
100202
100202
|
finished: asBoolean(this.finished),
|
|
100203
|
-
}) }, this.number), hAsync("div", { key: 'faafa708b0f4548661dfeb114fa78530377d896f', class: content$
|
|
100203
|
+
}) }, this.number), hAsync("div", { key: 'faafa708b0f4548661dfeb114fa78530377d896f', class: content$2({
|
|
100204
100204
|
active: asBoolean(this.active),
|
|
100205
100205
|
finished: asBoolean(this.finished),
|
|
100206
100206
|
direction: this.direction,
|
|
@@ -100255,7 +100255,7 @@ class StepperLine {
|
|
|
100255
100255
|
}; }
|
|
100256
100256
|
}
|
|
100257
100257
|
|
|
100258
|
-
const submenuComponentCss = () => `*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left
|
|
100258
|
+
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))}`;
|
|
100259
100259
|
|
|
100260
100260
|
const header$1 = cva([
|
|
100261
100261
|
'group/submenu-header',
|
|
@@ -100264,6 +100264,7 @@ const header$1 = cva([
|
|
|
100264
100264
|
'rounded-lg',
|
|
100265
100265
|
'cursor-pointer',
|
|
100266
100266
|
'transition-colors',
|
|
100267
|
+
'relative',
|
|
100267
100268
|
], {
|
|
100268
100269
|
variants: {
|
|
100269
100270
|
open: {
|
|
@@ -100342,6 +100343,36 @@ class Submenu {
|
|
|
100342
100343
|
*/
|
|
100343
100344
|
open = false;
|
|
100344
100345
|
get _el() { return getElement(this); }
|
|
100346
|
+
_activeItemPosition = -1;
|
|
100347
|
+
_showItemIndicator = false;
|
|
100348
|
+
_headerOffset = 0;
|
|
100349
|
+
_submenuItems = [];
|
|
100350
|
+
_hoveringItem = undefined;
|
|
100351
|
+
_itemActiveListener = () => {
|
|
100352
|
+
const activeItemIndex = this._submenuItems.findIndex(i => i.active === true);
|
|
100353
|
+
this.active = activeItemIndex !== -1;
|
|
100354
|
+
if (activeItemIndex === -1) {
|
|
100355
|
+
this._showItemIndicator = false;
|
|
100356
|
+
return;
|
|
100357
|
+
}
|
|
100358
|
+
this._setItemPosition(this._submenuItems[activeItemIndex]);
|
|
100359
|
+
};
|
|
100360
|
+
_itemMouseEnterListener = (event) => {
|
|
100361
|
+
if (this._hoveringItem && this._hoveringItem === event.target) {
|
|
100362
|
+
return;
|
|
100363
|
+
}
|
|
100364
|
+
this._hoveringItem = event.target;
|
|
100365
|
+
this._setItemPosition(this._hoveringItem);
|
|
100366
|
+
};
|
|
100367
|
+
_itemMouseLeaveListener = (event) => {
|
|
100368
|
+
setTimeout(() => {
|
|
100369
|
+
if (this._hoveringItem && this._hoveringItem !== event.target) {
|
|
100370
|
+
return;
|
|
100371
|
+
}
|
|
100372
|
+
this._hoveringItem = undefined;
|
|
100373
|
+
this._itemActiveListener();
|
|
100374
|
+
}, 100);
|
|
100375
|
+
};
|
|
100345
100376
|
componentDidLoad() {
|
|
100346
100377
|
const submenuItems = this._el.querySelectorAll('p-submenu-item');
|
|
100347
100378
|
const hasActiveChild = [...submenuItems].some(i => i.active === true);
|
|
@@ -100353,35 +100384,87 @@ class Submenu {
|
|
|
100353
100384
|
}
|
|
100354
100385
|
this.open = true;
|
|
100355
100386
|
}
|
|
100387
|
+
componentDidRender() {
|
|
100388
|
+
this._calculateHeaderOffset();
|
|
100389
|
+
}
|
|
100390
|
+
disconnectedCallback() {
|
|
100391
|
+
this._removeListeners();
|
|
100392
|
+
}
|
|
100356
100393
|
render() {
|
|
100357
100394
|
const submenuItems = this._el.querySelectorAll('p-submenu-item');
|
|
100358
100395
|
const firstItem = getComputedStyle(submenuItems[0]);
|
|
100359
100396
|
const maxHeight = submenuItems.length *
|
|
100360
100397
|
Number.parseInt(firstItem.height.replace('px', '')) +
|
|
100361
100398
|
16; // the margin of the content
|
|
100362
|
-
return (hAsync(ThemedHost, { key: '
|
|
100399
|
+
return (hAsync(ThemedHost, { key: '98584c2906cf44bfc6d0a6ceeadbeac5decfc5b7' }, hAsync("div", { key: '1ca2652294e276dbee1ad2e8fdde02d1bc758077', class: 'flex w-full flex-col' }, hAsync("div", { key: '3ea18a2afbac997d8f5a4468e4cc725229db5732', class: cn(header$1({
|
|
100363
100400
|
active: this.active,
|
|
100364
100401
|
open: this.open,
|
|
100365
|
-
})), onClick: () => (this.open = !this.open) }, this.showIndex && (hAsync("div", { key: '
|
|
100402
|
+
})), onClick: () => (this.open = !this.open) }, this.showIndex && (hAsync("div", { key: '45181da138600d02b6a5195cf16af0b38bb16041', class: indexContainer({
|
|
100366
100403
|
active: this.active,
|
|
100367
100404
|
open: this.open,
|
|
100368
|
-
}) }, this.index)), hAsync("div", { key: '
|
|
100405
|
+
}) }, this.index)), hAsync("div", { key: 'f01041af66063b671c3418a85dd6bae6092ee869', class: 'flex flex-1 flex-col' }, hAsync("p", { key: '02884dad8820a7e8bb969ca6f69a9d86f65fe07a', class: cn('m-0 text-sm', {
|
|
100369
100406
|
'text-storm-400 dark:text-hurricane-100 dark:group-hover/submenu-header:text-white': !this.active,
|
|
100370
100407
|
'text-storm-500 dark:text-white': this.active,
|
|
100371
|
-
}) }, this.title), hAsync("p", { key: '
|
|
100408
|
+
}) }, this.title), hAsync("p", { key: 'ed8e8933f2bdf88b593564ffbd528f30be8e0404', class: cn('m-0 text-xs', {
|
|
100372
100409
|
'text-storm-300 dark:text-hurricane-300': !this.active,
|
|
100373
100410
|
'text-storm-300 dark:text-indigo-200': this.active,
|
|
100374
|
-
}) }, this.subtitle)), hAsync("p-icon", { key: '
|
|
100411
|
+
}) }, this.subtitle)), hAsync("p-icon", { key: 'c4ad449abe6686983031577c6e7eca6e416c43ef', class: cn({
|
|
100375
100412
|
'text-storm-500 dark:text-white': this.active,
|
|
100376
100413
|
'text-storm-300 dark:text-hurricane-300': !this.active,
|
|
100377
|
-
}), rotate: this.open ? 180 : 0, variant: 'caret' })), hAsync("div", { key: '
|
|
100414
|
+
}), rotate: this.open ? 180 : 0, variant: 'caret' })), hAsync("div", { key: '86f1e812ee4da1903cf30f1066e45ff841664645', class: cn('relative flex flex-col overflow-hidden transition-[max-height]'), style: {
|
|
100378
100415
|
maxHeight: `${this.open ? maxHeight : 0}px`,
|
|
100379
|
-
} }, hAsync("div", { key: '
|
|
100416
|
+
} }, hAsync("div", { key: 'd8a9819377e081d2dc9a916901e7f6aae0d25bde', class: cn('absolute left-6 top-0 z-0 w-px', {
|
|
100380
100417
|
'bg-off-white-400 dark:bg-storm-500/30': !this.active,
|
|
100381
100418
|
'bg-indigo-100 dark:bg-hurricane-400': this.active,
|
|
100382
100419
|
}), style: {
|
|
100383
100420
|
height: `${maxHeight}px`,
|
|
100384
|
-
} }), hAsync("div", { key: '
|
|
100421
|
+
} }), hAsync("div", { key: '05e580e7d2cb16b1efbfd7705b0166b54081dea4', class: cn(`absolute left-6 top-0 z-[1] h-8 w-[2px] transform transition-all`, {
|
|
100422
|
+
'bg-indigo-600': this._showItemIndicator,
|
|
100423
|
+
'bg-transparent': !this._showItemIndicator,
|
|
100424
|
+
}), style: {
|
|
100425
|
+
transform: `translateY(${this._activeItemPosition}px)`,
|
|
100426
|
+
} }), hAsync("div", { key: 'b9b1bf668a1965732fe72eb3566eed336c356e29', class: 'z-10 my-2 flex flex-col' }, hAsync("slot", { key: '654f4a19477c696fa01735d11fdd86d5d7efd543', onSlotchange: () => this._slotChanged() }))))));
|
|
100427
|
+
}
|
|
100428
|
+
onWindowResize() {
|
|
100429
|
+
this._calculateHeaderOffset();
|
|
100430
|
+
this._itemActiveListener();
|
|
100431
|
+
}
|
|
100432
|
+
_calculateHeaderOffset() {
|
|
100433
|
+
const headerEl = this._el.shadowRoot?.querySelector(String.raw `.group\/submenu-header`);
|
|
100434
|
+
if (!headerEl) {
|
|
100435
|
+
this._activeItemPosition = -1;
|
|
100436
|
+
return;
|
|
100437
|
+
}
|
|
100438
|
+
this._headerOffset = headerEl.getBoundingClientRect().bottom;
|
|
100439
|
+
}
|
|
100440
|
+
_setItemPosition(item) {
|
|
100441
|
+
if (!item) {
|
|
100442
|
+
return;
|
|
100443
|
+
}
|
|
100444
|
+
this._activeItemPosition =
|
|
100445
|
+
item.getBoundingClientRect().top - this._headerOffset;
|
|
100446
|
+
if (!this._showItemIndicator) {
|
|
100447
|
+
setTimeout(() => (this._showItemIndicator = true), 50);
|
|
100448
|
+
}
|
|
100449
|
+
}
|
|
100450
|
+
_slotChanged() {
|
|
100451
|
+
this._removeListeners();
|
|
100452
|
+
const submenuItems = [...this._el.querySelectorAll('p-submenu-item')];
|
|
100453
|
+
for (const item of submenuItems) {
|
|
100454
|
+
item.addEventListener('activeChange', this._itemActiveListener);
|
|
100455
|
+
item.addEventListener('mouseenter', this._itemMouseEnterListener);
|
|
100456
|
+
item.addEventListener('mouseleave', this._itemMouseLeaveListener);
|
|
100457
|
+
}
|
|
100458
|
+
this._submenuItems = submenuItems;
|
|
100459
|
+
}
|
|
100460
|
+
_removeListeners() {
|
|
100461
|
+
if (this._submenuItems.length > 0) {
|
|
100462
|
+
for (const item of this._submenuItems) {
|
|
100463
|
+
item.removeEventListener('activeChange', this._itemActiveListener);
|
|
100464
|
+
item.removeEventListener('mouseenter', this._itemMouseEnterListener);
|
|
100465
|
+
item.removeEventListener('mouseleave', this._itemMouseLeaveListener);
|
|
100466
|
+
}
|
|
100467
|
+
}
|
|
100385
100468
|
}
|
|
100386
100469
|
static get style() { return submenuComponentCss(); }
|
|
100387
100470
|
static get cmpMeta() { return {
|
|
@@ -100393,27 +100476,22 @@ class Submenu {
|
|
|
100393
100476
|
"index": [514],
|
|
100394
100477
|
"showIndex": [516, "show-index"],
|
|
100395
100478
|
"active": [516],
|
|
100396
|
-
"open": [516]
|
|
100479
|
+
"open": [516],
|
|
100480
|
+
"_activeItemPosition": [32],
|
|
100481
|
+
"_showItemIndicator": [32]
|
|
100397
100482
|
},
|
|
100398
|
-
"$listeners$":
|
|
100483
|
+
"$listeners$": [[9, "resize", "onWindowResize"]],
|
|
100399
100484
|
"$lazyBundleId$": "-",
|
|
100400
100485
|
"$attrsToReflect$": [["title", "title"], ["subtitle", "subtitle"], ["index", "index"], ["showIndex", "show-index"], ["active", "active"], ["open", "open"]]
|
|
100401
100486
|
}; }
|
|
100402
100487
|
}
|
|
100403
100488
|
|
|
100404
|
-
const submenuItemComponentCss = () => `*{box-sizing:border-box}.static{position:static}.flex{display:flex}.h-8{height:2rem}.
|
|
100489
|
+
const submenuItemComponentCss = () => `*{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))}`;
|
|
100405
100490
|
|
|
100406
|
-
const content$2 = cva([
|
|
100407
|
-
'flex items-center gap-6',
|
|
100408
|
-
'h-8 w-full pl-6',
|
|
100409
|
-
'cursor-pointer',
|
|
100410
|
-
'group/submenu-item',
|
|
100411
|
-
], {
|
|
100412
|
-
variants: {},
|
|
100413
|
-
});
|
|
100414
100491
|
class SubmenuItem {
|
|
100415
100492
|
constructor(hostRef) {
|
|
100416
100493
|
registerInstance(this, hostRef);
|
|
100494
|
+
this.activeChange = createEvent(this, "activeChange", 3);
|
|
100417
100495
|
}
|
|
100418
100496
|
/**
|
|
100419
100497
|
* Wether the submenu is active or not
|
|
@@ -100423,14 +100501,28 @@ class SubmenuItem {
|
|
|
100423
100501
|
* Icon to show on the label
|
|
100424
100502
|
*/
|
|
100425
100503
|
icon = 'placeholder';
|
|
100504
|
+
/**
|
|
100505
|
+
* Event when the active state changes
|
|
100506
|
+
*/
|
|
100507
|
+
activeChange;
|
|
100508
|
+
_lastActiveState = this.active;
|
|
100509
|
+
componentDidRender() {
|
|
100510
|
+
if (this._lastActiveState === this.active) {
|
|
100511
|
+
return;
|
|
100512
|
+
}
|
|
100513
|
+
this._lastActiveState = this.active;
|
|
100514
|
+
this.activeChange.emit(this.active);
|
|
100515
|
+
}
|
|
100426
100516
|
render() {
|
|
100427
|
-
return (hAsync(ThemedHost, { key: '
|
|
100428
|
-
'
|
|
100429
|
-
'
|
|
100430
|
-
|
|
100517
|
+
return (hAsync(ThemedHost, { key: '38bbc84752e1aa8271568aad5c1fd46bfa435d9a' }, hAsync("div", { key: 'a17fb921e57780d1ff572a3d1ba10331b045276e', class: cn([
|
|
100518
|
+
'flex items-center',
|
|
100519
|
+
'h-8 w-full pl-[calc(3rem+2px)]',
|
|
100520
|
+
'cursor-pointer',
|
|
100521
|
+
'group/submenu-item',
|
|
100522
|
+
]) }, hAsync("div", { key: 'd9c949c6f467524e0590a19774ae86c06e234fe5', class: cn('flex items-center gap-2 transition-colors', {
|
|
100431
100523
|
'text-storm-400 dark:text-hurricane-100': !this.active,
|
|
100432
100524
|
'text-indigo-600': this.active,
|
|
100433
|
-
}) }, hAsync("p-icon", { key: '
|
|
100525
|
+
}) }, hAsync("p-icon", { key: '8eed69a5fd4cef34ef69d7e5a96993289effc37e', variant: this.icon }), hAsync("slot", { key: '5471376f37afb9566f21599ee0e86af42a00b370' })))));
|
|
100434
100526
|
}
|
|
100435
100527
|
static get style() { return submenuItemComponentCss(); }
|
|
100436
100528
|
static get cmpMeta() { return {
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,d as e,h as r}from"./p-yFtRjnrU.js";import{c as a}from"./p-CBWjHURv.js";import{T as o}from"./p-CSySY6aC.js";import{c as i}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const d=a(["group/submenu-header","flex items-center gap-2","py-1 pl-2 pr-4","rounded-lg","cursor-pointer","transition-colors"],{variants:{open:{true:"\n bg-off-white-300\n dark:bg-storm-500/20\n ",false:""},active:{true:"\n bg-indigo-50\n dark:bg-indigo-600/30\n ",false:"\n hover:bg-indigo-50\n dark:hover:bg-indigo-600/10\n "}},compoundVariants:[]}),c=a(["m-2 size-4 rounded-full p-2","\n text-xs font-semibold text-storm-500\n dark:text-hurricane-500\n ","transition-colors","flex items-center justify-center"],{variants:{open:{true:"bg-indigo-500",false:""},active:{true:"bg-indigo-500",false:""}},compoundVariants:[{open:!1,active:!1,class:"bg-indigo-200"}]}),h=class{constructor(e){t(this,e)}title="";subtitle="";index=0;showIndex=!0;active=!1;open=!1;get _el(){return e(this)}componentDidLoad(){const t=[...this._el.querySelectorAll("p-submenu-item")].some((t=>!0===t.active));!this.active&&t&&(this.active=!0),this.active&&(this.open=!0)}render(){const t=this._el.querySelectorAll("p-submenu-item"),e=getComputedStyle(t[0]),a=t.length*Number.parseInt(e.height.replace("px",""))+16;return r(o,{key:"110fad52ce96c4fc855408b422a42956b957d092"},r("div",{key:"0b8f40db722e7c6f6ba8ded2e33a6776af28f0dc",class:"flex w-full flex-col"},r("div",{key:"23aa3cf5a7ece75e3fb6312e2e2173d68b2dcd86",class:i(d({active:this.active,open:this.open})),onClick:()=>this.open=!this.open},this.showIndex&&r("div",{key:"a24b117f984eb4392a90b47fd8363e7e320cb84a",class:c({active:this.active,open:this.open})},this.index),r("div",{key:"76fb811ac456b88a7f3d3df3b5badfaf9fe6170f",class:"flex flex-1 flex-col"},r("p",{key:"0dd533096861b9962eb523ece6a2ad03f34223f0",class:i("m-0 text-sm",{"text-storm-400 dark:text-hurricane-100 dark:group-hover/submenu-header:text-white":!this.active,"text-storm-500 dark:text-white":this.active})},this.title),r("p",{key:"0c3624317e71d9519ab6b694e70dbc7024641cef",class:i("m-0 text-xs",{"text-storm-300 dark:text-hurricane-300":!this.active,"text-storm-300 dark:text-indigo-200":this.active})},this.subtitle)),r("p-icon",{key:"480e39ea4630c81d13ec24728d7827a3760ebb6f",class:i({"text-storm-500 dark:text-white":this.active,"text-storm-300 dark:text-hurricane-300":!this.active}),rotate:this.open?180:0,variant:"caret"})),r("div",{key:"2613acd0e5e16af70c39b93a1e064423fafa036c",class:i("relative flex flex-col overflow-hidden transition-[max-height]"),style:{maxHeight:`${this.open?a:0}px`}},r("div",{key:"c8d88df1d7b0ffd7e29202655f33f46ec781a15e",class:i("absolute left-[calc(1.5rem)] top-0 z-0 w-px",{"bg-off-white-400 dark:bg-storm-500/30":!this.active,"bg-indigo-100 dark:bg-hurricane-400":this.active}),style:{height:`${a}px`}}),r("div",{key:"0e4328a428da51a172b5a5ff7e8adf2a5c840de6",class:"z-10 my-2 flex flex-col"},r("slot",{key:"1541aecaf7c8981cd3a56ffe73b542b135cb186a"})))))}};h.style="*{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))}";export{h as p_submenu}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as r}from"./p-yFtRjnrU.js";import{c as e}from"./p-CBWjHURv.js";import{T as o}from"./p-CSySY6aC.js";import{c as a}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const i=e(["flex items-center gap-6","h-8 w-full pl-6","cursor-pointer","group/submenu-item"],{variants:{}}),c=class{constructor(r){t(this,r)}active=!1;icon="placeholder";render(){return r(o,{key:"812bee8d46780d60ed604505b4f8c00e798a9f8f"},r("div",{key:"f5a76dd14ccb0559586b01214c6badb3bcf2eef8",class:a(i({}),{})},r("div",{key:"97fe0916207dfefd625ae51d911ef4eeb5d6b4cc",class:a("h-full w-[2px] transition-colors",{"bg-indigo-600":this.active,"bg-transparent group-hover/submenu-item:bg-indigo-600":!this.active})}),r("div",{key:"2c6ab60c2fb19b197d5aabd2368a7eb7406fdcb2",class:a("flex items-center gap-2 transition-colors",{"text-storm-400 dark:text-hurricane-100":!this.active,"text-indigo-600":this.active})},r("p-icon",{key:"7db15690b67f555a46dc72133be72e5937051658",variant:this.icon}),r("slot",{key:"1a4574d13c012affe2713a034445f636369729c8"}))))}};c.style="*{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))}";export{c as p_submenu_item}
|
package/dist/build/p-b344aaa1.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as e,B as a,c as o,w as t,N as n,H as i,g as l,b as c}from"./p-yFtRjnrU.js";export{s as setNonce}from"./p-yFtRjnrU.js";var r=e=>{const a=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return a.call(this,e);const o=a.call(this,!1),t=this.childNodes;if(e)for(let e=0;e<t.length;e++)2!==t[e].nodeType&&o.appendChild(t[e].cloneNode(!0));return o}};(()=>{a.isDev&&!a.isTesting&&o("Running in development mode."),a.cloneNodeFix&&r(i.prototype);const l=a.scriptDataOpts?t.document&&Array.from(t.document.querySelectorAll("script")).find((e=>new RegExp(`/${n}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===n)):null,c=import.meta.url,s=a.scriptDataOpts&&(l||{})["data-opts"]||{};return""!==c&&(s.resourcesUrl=new URL(".",c).href),e(s)})().then((async e=>(await l(),c(JSON.parse('[["p-c0599b0e",[[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-cfb68485",[[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-41326183",[[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-9232a310",[[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-cfd7eb55",[[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-2c68cb4f",[[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-fae76adf",[[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-2e850d9d",[[769,"p-profile",{"dropdownLocation":[1,"dropdown-location"],"_dropdownOpen":[32],"_hasDropdownSlot":[32]},[[0,"slotchange","slotchange"]]]]],["p-cb9baef3",[[769,"p-navbar",{"_show":[32]},[[8,"closeNavbar","handleCloseNavbar"],[8,"openNavbar","handleOpenNavbar"]]]]],["p-791d33e5",[[769,"p-accordion",{"variant":[1],"header":[1],"open":[4],"closeable":[4],"openable":[4],"label":[1],"labelVariant":[1,"label-variant"],"labelIcon":[1,"label-icon"]}]]],["p-a4a66b93",[[769,"p-card-header",{"variant":[1],"header":[1],"icon":[1],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"],"divider":[4]}]]],["p-3376af98",[[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-9c440af8",[[513,"p-cropper",{"value":[1],"returnType":[1,"return-type"],"_loaded":[32],"_currentScale":[32]},[[9,"resize","onResize"]]]]],["p-e1a16ec5",[[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-d43e5a94",[[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-bec66e8f",[[769,"p-info-panel",{"variant":[1],"header":[1],"content":[1],"closeable":[4]}]]],["p-0cea7ced",[[769,"p-listing",{"_generatedOnce":[32]}]]],["p-bdda2ffc",[[769,"p-listing-item",{"icon":[1]}]]],["p-7fb843e7",[[772,"p-navigation-section",{"header":[1]}]]],["p-5b0fe9d2",[[769,"p-submenu",{"title":[513],"subtitle":[513],"index":[514],"showIndex":[516,"show-index"],"active":[516],"open":[516]}]]],["p-81e96c69",[[769,"p-submenu-item",{"active":[516],"icon":[513]}]]],["p-369e2594",[[257,"p-tab-container"]]],["p-47bdfa0d",[[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-d60067bc",[[772,"p-avatar-group",{"extra":[2]}]]],["p-e13fb7aa",[[769,"p-button-group",{"size":[1]},[[0,"slotchange","slotchange"]]]]],["p-043b91f5",[[257,"p-card-body"]]],["p-11d65b3d",[[769,"p-card-container",{"variant":[1],"bgClass":[1,"bg-class"],"active":[4],"hoverable":[4],"shadow":[4],"border":[4]}]]],["p-88fd696b",[[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-ff8efea6",[[513,"p-iban-icon",{"iban":[513],"variant":[513]}]]],["p-743b47cb",[[769,"p-layout",{"variant":[1]}]]],["p-66eaca48",[[836,"p-radio",{"value":[1],"disabled":[516],"required":[516],"id":[513],"name":[513],"checked":[516],"_nonce":[32]}]]],["p-be576419",[[769,"p-tab-item",{"active":[4]}]]],["p-79657959",[[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-a65cd6ad",[[512,"p-table-extra-header",{"name":[1537],"sticky":[1544],"useSlot":[1540,"use-slot"],"align":[1537],"parsedSizes":[1040],"sizes":[1032]}]]],["p-2cefa6ba",[[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-5ad24b03",[[769,"p-toast-container",{"placement":[1]}]]],["p-2907111a",[[836,"p-toggle",{"checked":[4],"disabled":[516],"required":[516],"id":[513],"name":[513],"_nonce":[32]}]]],["p-186454b1",[[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-c5085825",[[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-9a9f0cd0",[[513,"p-range",{"min":[2],"max":[2],"step":[2],"value":[2]}]]],["p-a68a2ee8",[[512,"p-avatar",{"variant":[1],"size":[513],"defaultImage":[1,"default-image"],"src":[1],"letters":[1],"_src":[32],"_failed":[32]},null,{"src":[{"onSrchChange":0}]}]]],["p-0aa7e5d2",[[1,"p-listing-line"]]],["p-a1a4a39e",[[257,"p-navigation-title"]]],["p-5e4343f3",[[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-7afccf96",[[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-8edbbfd4",[[512,"p-illustration",{"variant":[1]}]]],["p-3fb95d2b",[[769,"p-drawer-header",{"showClose":[4,"show-close"]}],[257,"p-drawer-body"],[769,"p-drawer-container",{"closing":[4]}]]],["p-faad66c1",[[769,"p-backdrop",{"variant":[1],"applyBlur":[4,"apply-blur"],"closing":[4],"scrollLock":[4,"scroll-lock"],"class":[1]},[[2,"click","handleClick"]]]]],["p-e04a3cb9",[[512,"p-smile",{"variant":[1]}]]],["p-7fa2bbee",[[769,"p-divider",{"variant":[513],"alignContent":[513,"align-content"]}]]],["p-34b81a42",[[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-344ab157",[[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-c6056657",[[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-a00541cc",[[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-2e61871a",[[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-fca492f6",[[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-9c4c942e",[[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-e3e43848",[[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]}]]]]'),e))));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,d as e,h as r}from"./p-yFtRjnrU.js";import{c as a}from"./p-CBWjHURv.js";import{T as o}from"./p-CSySY6aC.js";import{c as i}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const d=a(["group/submenu-header","flex items-center gap-2","py-1 pl-2 pr-4","rounded-lg","cursor-pointer","transition-colors"],{variants:{open:{true:"\n bg-off-white-300\n dark:bg-storm-500/20\n ",false:""},active:{true:"\n bg-indigo-50\n dark:bg-indigo-600/30\n ",false:"\n hover:bg-indigo-50\n dark:hover:bg-indigo-600/10\n "}},compoundVariants:[]}),c=a(["m-2 size-4 rounded-full p-2","\n text-xs font-semibold text-storm-500\n dark:text-hurricane-500\n ","transition-colors","flex items-center justify-center"],{variants:{open:{true:"bg-indigo-500",false:""},active:{true:"bg-indigo-500",false:""}},compoundVariants:[{open:!1,active:!1,class:"bg-indigo-200"}]}),h=class{constructor(e){t(this,e)}title="";subtitle="";index=0;showIndex=!0;active=!1;open=!1;get _el(){return e(this)}componentDidLoad(){const t=[...this._el.querySelectorAll("p-submenu-item")].some((t=>!0===t.active));!this.active&&t&&(this.active=!0),this.active&&(this.open=!0)}render(){const t=this._el.querySelectorAll("p-submenu-item"),e=getComputedStyle(t[0]),a=t.length*Number.parseInt(e.height.replace("px",""))+16;return r(o,{key:"110fad52ce96c4fc855408b422a42956b957d092"},r("div",{key:"0b8f40db722e7c6f6ba8ded2e33a6776af28f0dc",class:"flex w-full flex-col"},r("div",{key:"23aa3cf5a7ece75e3fb6312e2e2173d68b2dcd86",class:i(d({active:this.active,open:this.open})),onClick:()=>this.open=!this.open},this.showIndex&&r("div",{key:"a24b117f984eb4392a90b47fd8363e7e320cb84a",class:c({active:this.active,open:this.open})},this.index),r("div",{key:"76fb811ac456b88a7f3d3df3b5badfaf9fe6170f",class:"flex flex-1 flex-col"},r("p",{key:"0dd533096861b9962eb523ece6a2ad03f34223f0",class:i("m-0 text-sm",{"text-storm-400 dark:text-hurricane-100 dark:group-hover/submenu-header:text-white":!this.active,"text-storm-500 dark:text-white":this.active})},this.title),r("p",{key:"0c3624317e71d9519ab6b694e70dbc7024641cef",class:i("m-0 text-xs",{"text-storm-300 dark:text-hurricane-300":!this.active,"text-storm-300 dark:text-indigo-200":this.active})},this.subtitle)),r("p-icon",{key:"480e39ea4630c81d13ec24728d7827a3760ebb6f",class:i({"text-storm-500 dark:text-white":this.active,"text-storm-300 dark:text-hurricane-300":!this.active}),rotate:this.open?180:0,variant:"caret"})),r("div",{key:"2613acd0e5e16af70c39b93a1e064423fafa036c",class:i("relative flex flex-col overflow-hidden transition-[max-height]"),style:{maxHeight:`${this.open?a:0}px`}},r("div",{key:"c8d88df1d7b0ffd7e29202655f33f46ec781a15e",class:i("absolute left-[calc(1.5rem)] top-0 z-0 w-px",{"bg-off-white-400 dark:bg-storm-500/30":!this.active,"bg-indigo-100 dark:bg-hurricane-400":this.active}),style:{height:`${a}px`}}),r("div",{key:"0e4328a428da51a172b5a5ff7e8adf2a5c840de6",class:"z-10 my-2 flex flex-col"},r("slot",{key:"1541aecaf7c8981cd3a56ffe73b542b135cb186a"})))))}};h.style="*{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))}";export{h as p_submenu}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as r}from"./p-yFtRjnrU.js";import{c as e}from"./p-CBWjHURv.js";import{T as o}from"./p-CSySY6aC.js";import{c as a}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const i=e(["flex items-center gap-6","h-8 w-full pl-6","cursor-pointer","group/submenu-item"],{variants:{}}),c=class{constructor(r){t(this,r)}active=!1;icon="placeholder";render(){return r(o,{key:"812bee8d46780d60ed604505b4f8c00e798a9f8f"},r("div",{key:"f5a76dd14ccb0559586b01214c6badb3bcf2eef8",class:a(i({}),{})},r("div",{key:"97fe0916207dfefd625ae51d911ef4eeb5d6b4cc",class:a("h-full w-[2px] transition-colors",{"bg-indigo-600":this.active,"bg-transparent group-hover/submenu-item:bg-indigo-600":!this.active})}),r("div",{key:"2c6ab60c2fb19b197d5aabd2368a7eb7406fdcb2",class:a("flex items-center gap-2 transition-colors",{"text-storm-400 dark:text-hurricane-100":!this.active,"text-indigo-600":this.active})},r("p-icon",{key:"7db15690b67f555a46dc72133be72e5937051658",variant:this.icon}),r("slot",{key:"1a4574d13c012affe2713a034445f636369729c8"}))))}};c.style="*{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))}";export{c as p_submenu_item}
|