@paperless/core 3.18.0 → 3.19.1
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/{paperless/p-3557f8b1.entry.js → build/p-0cea7ced.entry.js} +1 -1
- package/dist/{paperless/p-6dff428b.entry.js → build/p-47bdfa0d.entry.js} +1 -1
- package/dist/build/p-81e96c69.entry.js +1 -0
- package/dist/build/p-aea4ec07.js +1 -0
- package/dist/build/p-c3554748.entry.js +1 -0
- package/dist/build/{p-282b2776.entry.js → p-cb9baef3.entry.js} +1 -1
- package/dist/build/{p-fbabae11.entry.js → p-e3e43848.entry.js} +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/index-BGtpSJv_.js +8 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-empty-state_8.cjs.entry.js +6 -6
- package/dist/cjs/p-listing.cjs.entry.js +2 -2
- package/dist/cjs/p-navbar.cjs.entry.js +1 -1
- package/dist/cjs/p-submenu-item.cjs.entry.js +44 -0
- package/dist/cjs/p-submenu.cjs.entry.js +138 -0
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/molecules/submenu/item/submenu-item.component.css +1 -0
- package/dist/collection/components/molecules/submenu/item/submenu-item.component.js +94 -0
- package/dist/collection/components/molecules/submenu/item/submenu-item.stories.js +20 -0
- package/dist/collection/components/molecules/submenu/menu/submenu.component.css +1 -0
- package/dist/collection/components/molecules/submenu/menu/submenu.component.js +265 -0
- package/dist/collection/components/molecules/submenu/menu/submenu.stories.js +35 -0
- package/dist/collection/components/molecules/table/cell/table-cell.component.js +1 -1
- package/dist/collection/components/molecules/table/footer/table-footer.component.js +2 -2
- package/dist/collection/components/molecules/table/row/table-row.component.js +3 -3
- package/dist/collection/components/molecules/toast/toast.component.js +1 -1
- package/dist/collection/components/organisms/listing/listing.component.js +2 -2
- package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
- package/dist/components/{p-PAx1R45S.js → p-BD5jS81-.js} +1 -1
- package/dist/components/{p-DpmybwXO.js → p-BwA3E_K4.js} +1 -1
- package/dist/components/p-POJeD79-.js +1 -0
- package/dist/components/p-listing.js +1 -1
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-submenu-item.d.ts +11 -0
- package/dist/components/p-submenu-item.js +1 -0
- package/dist/components/p-submenu.d.ts +11 -0
- package/dist/components/p-submenu.js +1 -0
- package/dist/components/p-table-cell.js +1 -1
- package/dist/components/p-table-footer.js +1 -1
- package/dist/components/p-table-row.js +1 -1
- package/dist/components/p-table.js +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/esm/index-yFtRjnrU.js +8 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-empty-state_8.entry.js +6 -6
- package/dist/esm/p-listing.entry.js +2 -2
- package/dist/esm/p-navbar.entry.js +1 -1
- package/dist/esm/p-submenu-item.entry.js +42 -0
- package/dist/esm/p-submenu.entry.js +136 -0
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/{build/p-3557f8b1.entry.js → paperless/p-0cea7ced.entry.js} +1 -1
- package/dist/{build/p-6dff428b.entry.js → paperless/p-47bdfa0d.entry.js} +1 -1
- package/dist/paperless/p-81e96c69.entry.js +1 -0
- package/dist/paperless/p-c3554748.entry.js +1 -0
- package/dist/paperless/{p-282b2776.entry.js → p-cb9baef3.entry.js} +1 -1
- package/dist/paperless/{p-fbabae11.entry.js → p-e3e43848.entry.js} +1 -1
- 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 +12 -0
- package/dist/types/components/molecules/submenu/item/submenu-item.stories.d.ts +21 -0
- package/dist/types/components/molecules/submenu/menu/submenu.component.d.ts +32 -0
- package/dist/types/components/molecules/submenu/menu/submenu.stories.d.ts +28 -0
- package/dist/types/components.d.ts +106 -0
- package/hydrate/index.js +218 -28
- package/hydrate/index.mjs +218 -28
- package/package.json +9 -1
- package/dist/build/p-112e3ccc.js +0 -1
- package/dist/components/p-BO7NYfW5.js +0 -1
|
@@ -107,12 +107,12 @@ export class TableFooter {
|
|
|
107
107
|
this._renderCheckTimeout = setTimeout(() => this._checkStuck(), 200);
|
|
108
108
|
}
|
|
109
109
|
render() {
|
|
110
|
-
return (h(ThemedHost, { key: '
|
|
110
|
+
return (h(ThemedHost, { key: '166a446120f9a346cd32cd9b750a3db756f30797' }, h("div", { key: '28d48e2f706c97a3da47c28269c0fa4551eaf5ed', class: footer({
|
|
111
111
|
pinned: this._isPinned,
|
|
112
112
|
hidden: this._hidden,
|
|
113
113
|
tableHeaderHasAction: this.tableHeaderHasAction,
|
|
114
114
|
}) }, (this.enablePaginationPages || this.enablePaginationSize) &&
|
|
115
|
-
this.total > 0 && (h("p-pagination", { key: '
|
|
115
|
+
this.total > 0 && (h("p-pagination", { key: '2fa3e65aab7a8d701626ff17645a9e9fc3d341fd', class: 'pointer-events-auto z-[2]', enablePaginationPages: this.enablePaginationPages, enablePaginationSize: this.enablePaginationSize, hideOnSinglePage: this.hideOnSinglePage, page: this.page, pageSize: this.pageSize, pageSizeOptions: this.pageSizeOptions, total: this.total, onPageChange: ({ detail }) => this.pageChange.emit(detail), onPageSizeChange: ({ detail }) => this._changePageSize(detail), onPagesChange: ({ detail }) => (this._hasPaginationPages = detail > 1) })))));
|
|
116
116
|
}
|
|
117
117
|
_changePageSize(s) {
|
|
118
118
|
if (!s) {
|
|
@@ -107,13 +107,13 @@ export class TableRow {
|
|
|
107
107
|
*/
|
|
108
108
|
isLast = false;
|
|
109
109
|
render() {
|
|
110
|
-
return (h(ThemedHost, { key: '
|
|
110
|
+
return (h(ThemedHost, { key: '98252cd216cba353cf4e169a7f9850b7f373b93e' }, h("div", { key: 'de85352410756fa4b6d555763d5811ff8e70ce67', class: 'flex flex-col' }, h("div", { key: 'c56a01847cde5b860524169165c5f44c78de9d1a', class: row({
|
|
111
111
|
variant: this.variant,
|
|
112
112
|
enableHover: this.enableHover,
|
|
113
113
|
checked: this.checked,
|
|
114
|
-
}) }, h("div", { key: '
|
|
114
|
+
}) }, h("div", { key: '8074d9c5617995d40dd06cc8f1e0d53f51db7fa7', class: content({
|
|
115
115
|
variant: this.variant,
|
|
116
|
-
}) }, h("slot", { key: '
|
|
116
|
+
}) }, h("slot", { key: 'c981dfaaa4e3f9c7ba350650e8239bf2b0f77780' }), h("div", { key: 'b51eabcfe145dc6fe263750e9a49ef84ae3ec9df', class: actions() }, h("slot", { key: 'a558a1b83cbcc339dd6223502adf978b5fd46e16', name: 'actions' })))), !asBoolean(this.isLast) && this.variant !== 'secondary' && (h("p-divider", { key: 'b5ca42d03270067f116206c9d291b520ff4db796' })))));
|
|
117
117
|
}
|
|
118
118
|
static get is() { return "p-table-row"; }
|
|
119
119
|
static get encapsulation() { return "shadow"; }
|
|
@@ -61,7 +61,7 @@ export class Toast {
|
|
|
61
61
|
*/
|
|
62
62
|
action;
|
|
63
63
|
render() {
|
|
64
|
-
return (h(ThemedHost, { key: '
|
|
64
|
+
return (h(ThemedHost, { key: '7f1d26d48ba72212d4bea0047c2645d588ae9ca0' }, h("div", { key: '7a02f52c3f482c36048ddd6aa052e94522ae9eb6', class: '\n flex gap-2 rounded-lg border border-solid border-storm-100 bg-white p-2\n shadow-2\n dark:border-hurricane-800 dark:bg-hurricane-800\n ', onClick: () => this._onClick() }, h("div", { key: '77418e7e7b8ce6cee4018d91888e14205bf37e42', class: indicator({ variant: this.variant }) }), h("div", { key: '958c676bdbb79d6fa812d3fa9a48d35e674d9390', class: content() }, h("div", { key: '4da4e4b7cb402d68083001713aeb9de9534eb2c0', class: 'flex w-full min-w-0 flex-col' }, h("p", { key: '1079c6b6be804514906615985cd1503d417fe1e7', class: '\n m-0 overflow-hidden text-ellipsis whitespace-nowrap text-sm\n font-semibold text-storm-500\n dark:text-white\n ' }, this.header?.length ? this.header : h("slot", { name: 'header' })), h("p", { key: 'c7f0ad542870b8924d15b9e1b79cf9cb4e04645e', class: '\n m-0 w-full overflow-hidden text-ellipsis whitespace-nowrap text-xs\n text-storm-300\n dark:text-hurricane-200\n ' }, this.content?.length ? this.content : h("slot", { name: 'content' }))), this.enableAction && (h("div", { key: 'a286d1394e72cd729353443ed2a214cf884f84cf', class: '\n flex-shrink-0 cursor-pointer p-2 text-storm-200\n hover:text-storm-500 hover:text-white\n dark:text-hurricane-200\n ' }, h("p-icon", { key: '9ecb91fdf9154fa881b16a5c3a028eb9dc7e5b9e', flip: this.actionIconFlip, rotate: this.actionIconRotate, variant: this.actionIcon })))))));
|
|
65
65
|
}
|
|
66
66
|
_onClick() {
|
|
67
67
|
if (this.enableAction) {
|
|
@@ -18,10 +18,10 @@ export class Listing {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h("div", { key: '
|
|
21
|
+
return (h("div", { key: '2804d4c9827b8c474be59e85929ac3e5c7a8b832', class: cn('flex w-full flex-col flex-wrap items-start gap-1', {
|
|
22
22
|
'opacity-100': this._generatedOnce,
|
|
23
23
|
'opacity-0': !this._generatedOnce,
|
|
24
|
-
}) }, h("slot", { key: '
|
|
24
|
+
}) }, h("slot", { key: '8c55a162dcdaca095c6e5869e204e50784e37369', onSlotchange: () => this._generateLinesOnce() })));
|
|
25
25
|
}
|
|
26
26
|
_generateLinesOnce() {
|
|
27
27
|
if (this._generateTimeout) {
|
|
@@ -61,7 +61,7 @@ const backdrop = cva([
|
|
|
61
61
|
export class Navbar {
|
|
62
62
|
_show = false;
|
|
63
63
|
render() {
|
|
64
|
-
return (h(ThemedHost, { key: '
|
|
64
|
+
return (h(ThemedHost, { key: 'bc5079cb3704d2db26d1f8be020cdf60f0a716d8' }, h("p-backdrop", { key: '8e530cc8e3823a49e32a4821416163214a16cf7c', class: backdrop({ show: this._show }), scrollLock: this._show, onClicked: () => (this._show = false) }), h("div", { key: '965d4b28217709da09cc6eb47bda38bc452e05f7', class: sidebar({ class: sidebarAndTopbar(), show: this._show }) }, h("div", { key: 'ee0fd8bdbcd4af099c8b8eaf84595c553cc1bfb4', class: '\n flex w-full items-center justify-end\n layout-1280:hidden\n ' }, h("p-button", { key: 'e0782f8439f47613a6ec58271069bf3034289750', icon: 'menu-arrow', iconFlip: 'horizontal', iconOnly: true, variant: 'secondary', onClick: () => (this._show = false) })), h("div", { key: '1fdfb8308644046db8023df990ea7ddd83dcf262', class: 'flex w-full flex-shrink-0 flex-col items-stretch' }, h("slot", { key: '994d94f3c6e868c7998f1e99da450c0886e4bbfe', name: 'company' })), h("div", { key: 'c047c41e1d3ca938a9f92272bde090179d14b086', class: 'flex w-full flex-1 flex-col gap-6 overflow-y-auto' }, h("slot", { key: '552845f3097fa92eee1a37ac02d158f9edde72d5', name: 'content' })), h("div", { key: 'dd477e40950e95ff28dc18f31d337d978693cac8', class: '\n mt-auto hidden w-full flex-shrink-0 flex-col\n layout-1280:flex\n ' }, h("slot", { key: '767b851a061a0e573e8215aa6727b7618c610d1e', name: 'user' }))), h("div", { key: '0264c176351bdb91606fe45aabb193b982f62a65', class: topbar({ class: sidebarAndTopbar() }) }, h("p-button", { key: 'c7ed3bd86467f165cf2902c39851aa374997892c', icon: 'menu-arrow', iconOnly: true, variant: 'secondary', onClick: () => (this._show = true) }), h("slot", { key: 'df81ccf93abf33a58c03c4a5c1ee49cbfcee70a6', name: 'topbar' }))));
|
|
65
65
|
}
|
|
66
66
|
handleCloseNavbar() {
|
|
67
67
|
this._show = false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as e,H as a,c as n,h as i}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as r}from"./p-Au2WuEGF.js";import{P as s,a as p}from"./p-CEaB2BT0.js";import{d}from"./p-CdX4ibSM.js";import{d as c}from"./p-DlYs-VL_.js";import{d as g}from"./p-BANLejQ8.js";import{d as m}from"./p-DU-stXqd.js";import{d as f}from"./p-BNMkjAgS.js";import{d as h}from"./p-BAQuP-An.js";import{d as l}from"./p-Bg73A-l5.js";import{d as w}from"./p-BRDvNH4S.js";import{d as u}from"./p-C3fzR817.js";import{d as b}from"./p-Sl3w6Zuw.js";import{d as v}from"./p-D8faiybE.js";import{d as k}from"./p-BFvoC7BA.js";import{d as y}from"./p-CYJ2s8gf.js";import{d as z}from"./p-C-ljhNrW.js";import{d as S}from"./p-DY2oKnxw.js";import{d as j}from"./p-GYxEYTaZ.js";const P=o(["relative justify-center","w-full px-6","after:absolute after:left-0 after:top-0 after:z-[0]","after:h-full after:w-full after:transition-opacity","\n after:bg-gradient-to-t after:from-white after:via-white/80\n after:to-transparent\n dark:after:from-hurricane-700 dark:after:via-hurricane-700/80\n "],{variants:{pinned:{false:"after:opacity-0",true:"after:opacity-100"},hidden:{false:"flex",true:"hidden"},tableHeaderHasAction:{true:"\n pb-20 pt-8\n desktop-xs:py-8\n ",false:"py-8"}}}),x=e(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.pageChange=n(this,"pageChange",3),this.pageSizeChange=n(this,"pageSizeChange",3),this.hiddenChange=n(this,"hiddenChange",3)}enablePaginationSize=!0;enablePaginationPages=!0;loading=!1;page=1;total;pageChange;pageSize=s;pageSizeOptions=p;tableHeaderHasAction=!1;pageSizeChange;hiddenChange;hideOnSinglePage=!0;get _el(){return this}_isPinned=!1;_hasPaginationPages=!0;_hidePageSizeSelect=!1;_hidden=!1;_renderCheckTimeout;componentWillRender(){this._hidePageSizeSelect=this.hideOnSinglePage&&this.total<=this.pageSizeOptions?.[0];const t=this._hidePageSizeSelect&&!this._hasPaginationPages||!this.enablePaginationSize&&!this.enablePaginationPages;t!==this._hidden&&(this._hidden=t,this.hiddenChange.emit(t))}componentDidRender(){this._renderCheckTimeout&&(clearTimeout(this._renderCheckTimeout),this._renderCheckTimeout=null),this._renderCheckTimeout=setTimeout((()=>this._checkStuck()),200)}render(){return i(r,{key:"
|
|
1
|
+
import{t,p as e,H as a,c as n,h as i}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as r}from"./p-Au2WuEGF.js";import{P as s,a as p}from"./p-CEaB2BT0.js";import{d}from"./p-CdX4ibSM.js";import{d as c}from"./p-DlYs-VL_.js";import{d as g}from"./p-BANLejQ8.js";import{d as m}from"./p-DU-stXqd.js";import{d as f}from"./p-BNMkjAgS.js";import{d as h}from"./p-BAQuP-An.js";import{d as l}from"./p-Bg73A-l5.js";import{d as w}from"./p-BRDvNH4S.js";import{d as u}from"./p-C3fzR817.js";import{d as b}from"./p-Sl3w6Zuw.js";import{d as v}from"./p-D8faiybE.js";import{d as k}from"./p-BFvoC7BA.js";import{d as y}from"./p-CYJ2s8gf.js";import{d as z}from"./p-C-ljhNrW.js";import{d as S}from"./p-DY2oKnxw.js";import{d as j}from"./p-GYxEYTaZ.js";const P=o(["relative justify-center","w-full px-6","after:absolute after:left-0 after:top-0 after:z-[0]","after:h-full after:w-full after:transition-opacity","\n after:bg-gradient-to-t after:from-white after:via-white/80\n after:to-transparent\n dark:after:from-hurricane-700 dark:after:via-hurricane-700/80\n "],{variants:{pinned:{false:"after:opacity-0",true:"after:opacity-100"},hidden:{false:"flex",true:"hidden"},tableHeaderHasAction:{true:"\n pb-20 pt-8\n desktop-xs:py-8\n ",false:"py-8"}}}),x=e(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.pageChange=n(this,"pageChange",3),this.pageSizeChange=n(this,"pageSizeChange",3),this.hiddenChange=n(this,"hiddenChange",3)}enablePaginationSize=!0;enablePaginationPages=!0;loading=!1;page=1;total;pageChange;pageSize=s;pageSizeOptions=p;tableHeaderHasAction=!1;pageSizeChange;hiddenChange;hideOnSinglePage=!0;get _el(){return this}_isPinned=!1;_hasPaginationPages=!0;_hidePageSizeSelect=!1;_hidden=!1;_renderCheckTimeout;componentWillRender(){this._hidePageSizeSelect=this.hideOnSinglePage&&this.total<=this.pageSizeOptions?.[0];const t=this._hidePageSizeSelect&&!this._hasPaginationPages||!this.enablePaginationSize&&!this.enablePaginationPages;t!==this._hidden&&(this._hidden=t,this.hiddenChange.emit(t))}componentDidRender(){this._renderCheckTimeout&&(clearTimeout(this._renderCheckTimeout),this._renderCheckTimeout=null),this._renderCheckTimeout=setTimeout((()=>this._checkStuck()),200)}render(){return i(r,{key:"166a446120f9a346cd32cd9b750a3db756f30797"},i("div",{key:"28d48e2f706c97a3da47c28269c0fa4551eaf5ed",class:P({pinned:this._isPinned,hidden:this._hidden,tableHeaderHasAction:this.tableHeaderHasAction})},(this.enablePaginationPages||this.enablePaginationSize)&&this.total>0&&i("p-pagination",{key:"2fa3e65aab7a8d701626ff17645a9e9fc3d341fd",class:"pointer-events-auto z-[2]",enablePaginationPages:this.enablePaginationPages,enablePaginationSize:this.enablePaginationSize,hideOnSinglePage:this.hideOnSinglePage,page:this.page,pageSize:this.pageSize,pageSizeOptions:this.pageSizeOptions,total:this.total,onPageChange:({detail:t})=>this.pageChange.emit(t),onPageSizeChange:({detail:t})=>this._changePageSize(t),onPagesChange:({detail:t})=>this._hasPaginationPages=t>1})))}_changePageSize(t){t&&(this.pageSize=t,this.pageSizeChange.emit(this.pageSize))}_checkStuck(){const t=this._el.getBoundingClientRect(),e=this._el.closest("p-modal"),a=document.querySelector("p-layout");if(e&&!this._hidden){const t=e.shadowRoot.querySelector("p-modal-body").shadowRoot.querySelector("div"),a=getComputedStyle(t),n=Number.parseInt(a.paddingBottom,10);this._el.style.bottom=`-${n}px`,this._el.style.marginBottom=`-${n-1}px`}if(a&&!e&&!this._hidden){const t=a.shadowRoot.querySelector(".content"),e=getComputedStyle(t),n=Number.parseInt(e.paddingBottom,10);this._el.style.bottom=`-${n}px`,this._el.style.marginBottom=`-${n-1}px`}this._isPinned=window.innerHeight-t.bottom==0}onScroll(){this._checkStuck()}static get style(){return'.pointer-events-none{pointer-events:none}.sticky{position:sticky}.z-\\[1\\]{z-index:1}*{box-sizing:border-box}:host{--tw-content:"";pointer-events:none;position:sticky;z-index:1}.pointer-events-auto{pointer-events:auto}.static{position:static}.relative{position:relative}.z-\\[2\\]{z-index:2}.flex{display:flex}.table{display:table}.hidden{display:none}.w-full{width:100%}.justify-center{justify-content:center}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pb-20{padding-bottom:5rem}.pt-8{padding-top:2rem}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:left-0:after{content:var(--tw-content);left:0}.after\\:top-0:after{content:var(--tw-content);top:0}.after\\:z-\\[0\\]:after{content:var(--tw-content);z-index:0}.after\\:h-full:after{content:var(--tw-content);height:100%}.after\\:w-full:after{content:var(--tw-content);width:100%}.after\\:bg-gradient-to-t:after{background-image:linear-gradient(to top,var(--tw-gradient-stops));content:var(--tw-content)}.after\\:from-white:after{--tw-gradient-from:#fff var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to);content:var(--tw-content)}.after\\:via-white\\/80:after{--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),hsla(0,0%,100%,.8) var(--tw-gradient-via-position),var(--tw-gradient-to);content:var(--tw-content)}.after\\:to-transparent:after{--tw-gradient-to:transparent var(--tw-gradient-to-position);content:var(--tw-content)}.after\\:opacity-0:after{content:var(--tw-content);opacity:0}.after\\:opacity-100:after{content:var(--tw-content);opacity:1}.after\\:transition-opacity:after{content:var(--tw-content);transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width:64rem){.desktop-xs\\:py-8{padding-bottom:2rem;padding-top:2rem}}.dark\\:after\\:from-hurricane-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *):after{--tw-gradient-from:#232934 var(--tw-gradient-from-position);--tw-gradient-to:rgba(35,41,52,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to);content:var(--tw-content)}.dark\\:after\\:via-hurricane-700\\/80:where(:host([data-theme=dark]),:host([data-theme=dark]) *):after{--tw-gradient-to:rgba(35,41,52,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),rgba(35,41,52,.8) var(--tw-gradient-via-position),var(--tw-gradient-to);content:var(--tw-content)}.dark\\:after\\:from-hurricane-700:where([data-theme=dark],[data-theme=dark] *):after{--tw-gradient-from:#232934 var(--tw-gradient-from-position);--tw-gradient-to:rgba(35,41,52,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to);content:var(--tw-content)}.dark\\:after\\:via-hurricane-700\\/80:where([data-theme=dark],[data-theme=dark] *):after{--tw-gradient-to:rgba(35,41,52,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),rgba(35,41,52,.8) var(--tw-gradient-via-position),var(--tw-gradient-to);content:var(--tw-content)}'}},[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"]]]);function E(){"undefined"!=typeof customElements&&["p-table-footer","p-button","p-checkbox","p-divider","p-dropdown","p-dropdown-menu-container","p-dropdown-menu-item","p-field","p-field-container","p-helper","p-icon","p-loader","p-pagination","p-pagination-pages","p-pagination-pages-item","p-pagination-size","p-tooltip"].forEach((e=>{switch(e){case"p-table-footer":customElements.get(t(e))||customElements.define(t(e),x);break;case"p-button":customElements.get(t(e))||d();break;case"p-checkbox":customElements.get(t(e))||c();break;case"p-divider":customElements.get(t(e))||g();break;case"p-dropdown":customElements.get(t(e))||m();break;case"p-dropdown-menu-container":customElements.get(t(e))||f();break;case"p-dropdown-menu-item":customElements.get(t(e))||h();break;case"p-field":customElements.get(t(e))||l();break;case"p-field-container":customElements.get(t(e))||w();break;case"p-helper":customElements.get(t(e))||u();break;case"p-icon":customElements.get(t(e))||b();break;case"p-loader":customElements.get(t(e))||v();break;case"p-pagination":customElements.get(t(e))||k();break;case"p-pagination-pages":customElements.get(t(e))||y();break;case"p-pagination-pages-item":customElements.get(t(e))||z();break;case"p-pagination-size":customElements.get(t(e))||S();break;case"p-tooltip":customElements.get(t(e))||j()}}))}E();export{x as T,E as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as e,H as d,h as i}from"./p-CySg37XO.js";import{T as s}from"./p-Au2WuEGF.js";import{o,g as p}from"./p-WEZng7dj.js";import{c as h}from"./p-xs4N_Y-0.js";import{d as r}from"./p-D8faiybE.js";const w=e(class extends d{constructor(t){super(),!1!==t&&this.__registerHost()}variant="default";index;rowIndex;definition;item;value;checkbox;checkboxOffset=!1;template=({value:t})=>t;get data(){return"header"===this.variant?{value:this.value}:{value:this.value??this.definition?.path?o(this.item,this.definition.path):null,item:this.item,index:this.index,rowIndex:this.rowIndex}}render(){return i(s,{key:"
|
|
1
|
+
import{t,p as e,H as d,h as i}from"./p-CySg37XO.js";import{T as s}from"./p-Au2WuEGF.js";import{o,g as p}from"./p-WEZng7dj.js";import{c as h}from"./p-xs4N_Y-0.js";import{d as r}from"./p-D8faiybE.js";const w=e(class extends d{constructor(t){super(),!1!==t&&this.__registerHost()}variant="default";index;rowIndex;definition;item;value;checkbox;checkboxOffset=!1;template=({value:t})=>t;get data(){return"header"===this.variant?{value:this.value}:{value:this.value??this.definition?.path?o(this.item,this.definition.path):null,item:this.item,index:this.index,rowIndex:this.rowIndex}}render(){return i(s,{key:"eb7f83afc2969cb84be91c81b5112566612a3604",class:this._getColumnClasses()},this.checkbox,this._getContent(),!1)}_getContent(){if("loading"===this.variant)return i("p-loader",{class:"h-6 w-[calc(100%-1rem)] flex-1 rounded",variant:"ghost"});const t="header"===this.variant?this.definition.headerAlign??this.definition.align:this.definition.align;return i("div",{class:h("overflow-hidden text-ellipsis",{flex:this.definition.flex,"justify-start":this.definition.flex&&(void 0===t||"start"===t),"justify-end":this.definition.flex&&"end"===t,"justify-center":this.definition.flex&&"end"===t,"text-start":!this.definition.flex&&(void 0===t||"start"===t),"text-center":!this.definition.flex&&"center"===t,"text-end":!this.definition.flex&&"end"===t})},"header"===this.variant||"header-secondary"===this.variant?this.data.value:this.definition.useSlot?i("slot",null):this.template(this.data))}_getColumnClasses(){return h(p(this.definition,this.variant,this.checkboxOffset))}static get style(){return"*{box-sizing:border-box}.static{position:static}.flex{display:flex}.table{display:table}.table-cell{display:table-cell}.hidden{display:none}.h-6{height:1.5rem}.w-1\\/12{width:8.333333%}.w-10\\/12{width:83.333333%}.w-11\\/12{width:91.666667%}.w-2\\/12{width:16.666667%}.w-3\\/12{width:25%}.w-4\\/12{width:33.333333%}.w-5\\/12{width:41.666667%}.w-6\\/12{width:50%}.w-7\\/12{width:58.333333%}.w-8\\/12{width:66.666667%}.w-9\\/12{width:75%}.w-\\[calc\\(100\\%-1rem\\)\\]{width:calc(100% - 1rem)}.w-full{width:100%}.flex-1{flex:1 1 0%}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.rounded{border-radius:.25rem}.pl-8{padding-left:2rem}.pr-0{padding-right:0}.pr-4{padding-right:1rem}.text-center{text-align:center}.text-start{text-align:start}.text-end{text-align:end}.font-semibold{font-weight:600}.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))}.last-of-type\\:pr-0:last-of-type{padding-right:0}.group:hover .group-hover\\:flex{display:flex}.group:hover .group-hover\\:hidden{display:none}@media (min-width:40rem){.tablet\\:flex{display:flex}.tablet\\:hidden{display:none}.tablet\\:w-1\\/12{width:8.333333%}.tablet\\:w-10\\/12{width:83.333333%}.tablet\\:w-11\\/12{width:91.666667%}.tablet\\:w-2\\/12{width:16.666667%}.tablet\\:w-3\\/12{width:25%}.tablet\\:w-4\\/12{width:33.333333%}.tablet\\:w-5\\/12{width:41.666667%}.tablet\\:w-6\\/12{width:50%}.tablet\\:w-7\\/12{width:58.333333%}.tablet\\:w-8\\/12{width:66.666667%}.tablet\\:w-9\\/12{width:75%}.tablet\\:w-full{width:100%}.tablet\\:pr-0{padding-right:0}.tablet\\:pr-4{padding-right:1rem}.group:hover .tablet\\:group-hover\\:flex{display:flex}.group:hover .tablet\\:group-hover\\:hidden{display:none}}@media (min-width:64rem){.desktop-xs\\:flex{display:flex}.desktop-xs\\:hidden{display:none}.desktop-xs\\:w-1\\/12{width:8.333333%}.desktop-xs\\:w-10\\/12{width:83.333333%}.desktop-xs\\:w-11\\/12{width:91.666667%}.desktop-xs\\:w-2\\/12{width:16.666667%}.desktop-xs\\:w-3\\/12{width:25%}.desktop-xs\\:w-4\\/12{width:33.333333%}.desktop-xs\\:w-5\\/12{width:41.666667%}.desktop-xs\\:w-6\\/12{width:50%}.desktop-xs\\:w-7\\/12{width:58.333333%}.desktop-xs\\:w-8\\/12{width:66.666667%}.desktop-xs\\:w-9\\/12{width:75%}.desktop-xs\\:w-full{width:100%}.desktop-xs\\:pr-0{padding-right:0}.desktop-xs\\:pr-4{padding-right:1rem}.group:hover .desktop-xs\\:group-hover\\:flex{display:flex}.group:hover .desktop-xs\\:group-hover\\:hidden{display:none}}@media (min-width:80rem){.desktop-sm\\:flex{display:flex}.desktop-sm\\:hidden{display:none}.desktop-sm\\:w-1\\/12{width:8.333333%}.desktop-sm\\:w-10\\/12{width:83.333333%}.desktop-sm\\:w-11\\/12{width:91.666667%}.desktop-sm\\:w-2\\/12{width:16.666667%}.desktop-sm\\:w-3\\/12{width:25%}.desktop-sm\\:w-4\\/12{width:33.333333%}.desktop-sm\\:w-5\\/12{width:41.666667%}.desktop-sm\\:w-6\\/12{width:50%}.desktop-sm\\:w-7\\/12{width:58.333333%}.desktop-sm\\:w-8\\/12{width:66.666667%}.desktop-sm\\:w-9\\/12{width:75%}.desktop-sm\\:w-full{width:100%}.desktop-sm\\:pr-0{padding-right:0}.desktop-sm\\:pr-4{padding-right:1rem}.group:hover .desktop-sm\\:group-hover\\:flex{display:flex}.group:hover .desktop-sm\\:group-hover\\:hidden{display:none}}@media (min-width:85.375rem){.desktop\\:flex{display:flex}.desktop\\:hidden{display:none}.desktop\\:w-1\\/12{width:8.333333%}.desktop\\:w-10\\/12{width:83.333333%}.desktop\\:w-11\\/12{width:91.666667%}.desktop\\:w-2\\/12{width:16.666667%}.desktop\\:w-3\\/12{width:25%}.desktop\\:w-4\\/12{width:33.333333%}.desktop\\:w-5\\/12{width:41.666667%}.desktop\\:w-6\\/12{width:50%}.desktop\\:w-7\\/12{width:58.333333%}.desktop\\:w-8\\/12{width:66.666667%}.desktop\\:w-9\\/12{width:75%}.desktop\\:w-full{width:100%}.desktop\\:pr-0{padding-right:0}.desktop\\:pr-4{padding-right:1rem}.group:hover .desktop\\:group-hover\\:flex{display:flex}.group:hover .desktop\\:group-hover\\:hidden{display:none}}@media (min-width:90rem){.desktop-lg\\:flex{display:flex}.desktop-lg\\:hidden{display:none}.desktop-lg\\:w-1\\/12{width:8.333333%}.desktop-lg\\:w-10\\/12{width:83.333333%}.desktop-lg\\:w-11\\/12{width:91.666667%}.desktop-lg\\:w-2\\/12{width:16.666667%}.desktop-lg\\:w-3\\/12{width:25%}.desktop-lg\\:w-4\\/12{width:33.333333%}.desktop-lg\\:w-5\\/12{width:41.666667%}.desktop-lg\\:w-6\\/12{width:50%}.desktop-lg\\:w-7\\/12{width:58.333333%}.desktop-lg\\:w-8\\/12{width:66.666667%}.desktop-lg\\:w-9\\/12{width:75%}.desktop-lg\\:w-full{width:100%}.desktop-lg\\:pr-0{padding-right:0}.desktop-lg\\:pr-4{padding-right:1rem}.group:hover .desktop-lg\\:group-hover\\:flex{display:flex}.group:hover .desktop-lg\\:group-hover\\:hidden{display:none}}@media (min-width:120rem){.desktop-xl\\:flex{display:flex}.desktop-xl\\:hidden{display:none}.desktop-xl\\:w-1\\/12{width:8.333333%}.desktop-xl\\:w-10\\/12{width:83.333333%}.desktop-xl\\:w-11\\/12{width:91.666667%}.desktop-xl\\:w-2\\/12{width:16.666667%}.desktop-xl\\:w-3\\/12{width:25%}.desktop-xl\\:w-4\\/12{width:33.333333%}.desktop-xl\\:w-5\\/12{width:41.666667%}.desktop-xl\\:w-6\\/12{width:50%}.desktop-xl\\:w-7\\/12{width:58.333333%}.desktop-xl\\:w-8\\/12{width:66.666667%}.desktop-xl\\:w-9\\/12{width:75%}.desktop-xl\\:w-full{width:100%}.desktop-xl\\:pr-0{padding-right:0}.desktop-xl\\:pr-4{padding-right:1rem}.group:hover .desktop-xl\\:group-hover\\:flex{display:flex}.group:hover .desktop-xl\\:group-hover\\:hidden{display:none}}.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-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\\: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-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[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]}]);function l(){"undefined"!=typeof customElements&&["p-table-cell","p-loader"].forEach((e=>{switch(e){case"p-table-cell":customElements.get(t(e))||customElements.define(t(e),w);break;case"p-loader":customElements.get(t(e))||r()}}))}l();export{w as T,l as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t,p as e,H as a,h as r}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as i}from"./p-Au2WuEGF.js";import{a as n}from"./p-C5CTp9IA.js";import{d as c}from"./p-BANLejQ8.js";const d=o(["flex min-w-[calc(100%-0.5rem)] flex-col","group","relative"],{variants:{variant:{default:["m-1 px-3","text-sm text-storm-500","dark:text-white"],header:null,"header-secondary":"mb-4",secondary:["px-4","font-ambit text-lg font-bold"]},enableHover:{true:null,false:null},checked:{true:null,false:null}},compoundVariants:[{variant:"default",enableHover:!0,class:["rounded-lg transition-colors","hover:cursor-pointer"]},{variant:"default",enableHover:!0,checked:!1,class:["hover:bg-off-white-300","dark:hover:bg-hurricane-600"]},{variant:"default",checked:!0,class:["rounded-lg transition-colors","\n bg-off-white-300\n dark:bg-hurricane-400\n dark:hover:bg-hurricane-400\n "]},{variant:["secondary","header-secondary"],class:["rounded-lg bg-off-white-300","dark:bg-hurricane-400"]},{variant:["header","header-secondary"],class:["px-4","text-xs font-normal text-storm-400","dark:text-hurricane-200"]}]}),s=o("relative flex min-w-full flex-nowrap items-stretch justify-between",{variants:{variant:{default:null,secondary:null,header:"pb-4","header-secondary":"py-2"}},compoundVariants:[{variant:["default","secondary"],class:"\n min-h-14 py-2\n tablet:py-4\n "},{variant:["header","header-secondary"],class:"min-h-0"}]}),h=o(["absolute -right-4 top-1 z-[2]","h-[calc(100%-0.5rem)]","\n opacity-0 transition-opacity\n group-hover:opacity-100\n ","empty:hidden"]),l=e(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}variant="default";enableHover=!0;checked=!1;isLast=!1;render(){return r(i,{key:"98252cd216cba353cf4e169a7f9850b7f373b93e"},r("div",{key:"de85352410756fa4b6d555763d5811ff8e70ce67",class:"flex flex-col"},r("div",{key:"c56a01847cde5b860524169165c5f44c78de9d1a",class:d({variant:this.variant,enableHover:this.enableHover,checked:this.checked})},r("div",{key:"8074d9c5617995d40dd06cc8f1e0d53f51db7fa7",class:s({variant:this.variant})},r("slot",{key:"c981dfaaa4e3f9c7ba350650e8239bf2b0f77780"}),r("div",{key:"b51eabcfe145dc6fe263750e9a49ef84ae3ec9df",class:h()},r("slot",{key:"a558a1b83cbcc339dd6223502adf978b5fd46e16",name:"actions"})))),!n(this.isLast)&&"secondary"!==this.variant&&r("p-divider",{key:"b5ca42d03270067f116206c9d291b520ff4db796"})))}static get style(){return'.relative{position:relative}*{box-sizing:border-box}:host{--tw-content:"";position:relative}.static{position:static}.absolute{position:absolute}.-right-4{right:-1rem}.top-1{top:.25rem}.z-\\[2\\]{z-index:2}.m-1{margin:.25rem}.mb-4{margin-bottom:1rem}.flex{display:flex}.table-row{display:table-row}.h-\\[calc\\(100\\%-0\\.5rem\\)\\]{height:calc(100% - .5rem)}.min-h-0{min-height:0}.min-h-14{min-height:3.5rem}.min-w-\\[calc\\(100\\%-0\\.5rem\\)\\]{min-width:calc(100% - .5rem)}.min-w-full{min-width:100%}.flex-col{flex-direction:column}.flex-nowrap{flex-wrap:nowrap}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.rounded-lg{border-radius:.5rem}.bg-off-white-300{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.pb-4{padding-bottom:1rem}.font-ambit{font-family:Ambit,sans-serif}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.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))}.opacity-0{opacity:0}.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)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.empty\\:hidden:empty{display:none}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:bg-off-white-300:hover{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.group:hover .group-hover\\:opacity-100{opacity:1}@media (min-width:40rem){.tablet\\:py-4{padding-bottom:1rem;padding-top:1rem}}.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\\: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-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-hurricane-400:hover: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\\:hover\\:bg-hurricane-600:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-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\\: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-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-hurricane-400:hover:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.dark\\:hover\\:bg-hurricane-600:hover:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}'}},[769,"p-table-row",{variant:[1],enableHover:[4,"enable-hover"],checked:[4],isLast:[4,"is-last"]}]);function b(){"undefined"!=typeof customElements&&["p-table-row","p-divider"].forEach((e=>{switch(e){case"p-table-row":customElements.get(t(e))||customElements.define(t(e),l);break;case"p-divider":customElements.get(t(e))||c()}}))}b();export{l as T,b as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as e,H as i,h as s}from"./p-CySg37XO.js";import{c as n}from"./p-xs4N_Y-0.js";import{d as l}from"./p-Dz2_k8-X.js";const c=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}get _el(){return this}_generatedOnce=!1;_generateTimeout;_resizeObserver;componentDidLoad(){this._resizeObserver=new ResizeObserver((()=>this._generateLinesOnce())),this._resizeObserver.observe(this._el)}disconnectCallback(){this._resizeObserver&&this._resizeObserver.disconnect()}render(){return s("div",{key:"
|
|
1
|
+
import{t,p as e,H as i,h as s}from"./p-CySg37XO.js";import{c as n}from"./p-xs4N_Y-0.js";import{d as l}from"./p-Dz2_k8-X.js";const c=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}get _el(){return this}_generatedOnce=!1;_generateTimeout;_resizeObserver;componentDidLoad(){this._resizeObserver=new ResizeObserver((()=>this._generateLinesOnce())),this._resizeObserver.observe(this._el)}disconnectCallback(){this._resizeObserver&&this._resizeObserver.disconnect()}render(){return s("div",{key:"2804d4c9827b8c474be59e85929ac3e5c7a8b832",class:n("flex w-full flex-col flex-wrap items-start gap-1",{"opacity-100":this._generatedOnce,"opacity-0":!this._generatedOnce})},s("slot",{key:"8c55a162dcdaca095c6e5869e204e50784e37369",onSlotchange:()=>this._generateLinesOnce()}))}_generateLinesOnce(){this._generateTimeout&&(clearTimeout(this._generateTimeout),this._generateTimeout=null),this._generateTimeout=setTimeout((()=>this._generateLines()),20)}_generateLines(){if(!this._el)return;const t=this._el.querySelectorAll("p-listing-item");for(let e=0;e<t?.length;e++){const i=t.item(e);if(e<t.length-1){let t=i.nextElementSibling;if(t&&"p-listing-item"===t.tagName.toLowerCase()){const e=document.createElement("p-listing-line");this._el.insertBefore(e,t),this._setLineData(e,i,t);const s=e.previousElementSibling;s&&"p-listing-line"===s.tagName.toLowerCase()&&s.remove();continue}if(t&&"p-listing-line"===t.tagName.toLowerCase()){const e=t;t=t.nextElementSibling,t&&"p-listing-item"===t.tagName.toLowerCase()&&this._setLineData(e,i,t)}}}const e=this._el.querySelectorAll("p-listing-line:not(:has(+ p-listing-item)), p-listing-line:first-child");for(let t=e.length-1;t>=0;t--)e.item(t).remove();this._generatedOnce||setTimeout((()=>this._generatedOnce=!0),50)}_setLineData(t,e,i){let s=(e.clientHeight-16)/2,n=(i.clientHeight-16)/2;if(s>0){let e=s+n;t.style.marginTop=`-${s/16}rem`,t.style.marginBottom=`-${n/16}rem`,t.style.minHeight=`calc(1.5rem + ${(e-16)/16}rem)`}}static get style(){return"*{box-sizing:border-box}.static{position:static}.flex{display:flex}.w-full{width:100%}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.gap-1{gap:.25rem}.opacity-0{opacity:0}.opacity-100{opacity:1}"}},[769,"p-listing",{_generatedOnce:[32]}]);function o(){"undefined"!=typeof customElements&&["p-listing","p-listing-line"].forEach((e=>{switch(e){case"p-listing":customElements.get(t(e))||customElements.define(t(e),c);break;case"p-listing-line":customElements.get(t(e))||l()}}))}o();const r=c,a=o;export{r as PListing,a as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as a,H as t,h as r}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as n}from"./p-Au2WuEGF.js";import{d as i}from"./p-Da9Ao_Ve.js";import{d as s}from"./p-CdX4ibSM.js";import{d as l}from"./p-Sl3w6Zuw.js";import{d as c}from"./p-D8faiybE.js";const d=o(["transition","\n bg-off-white-300\n dark:bg-hurricane-800\n ","\n border-0 border-solid border-off-white-700\n dark:border-hurricane-500\n ","p-4"]),
|
|
1
|
+
import{t as e,p as a,H as t,h as r}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as n}from"./p-Au2WuEGF.js";import{d as i}from"./p-Da9Ao_Ve.js";import{d as s}from"./p-CdX4ibSM.js";import{d as l}from"./p-Sl3w6Zuw.js";import{d as c}from"./p-D8faiybE.js";const d=o(["transition","\n bg-off-white-300\n dark:bg-hurricane-800\n ","\n border-0 border-solid border-off-white-700\n dark:border-hurricane-500\n ","p-4"]),b=o(["flex flex-col","fixed left-0 top-0 z-navbar h-screen w-60","w-full max-w-[16.5rem]","\n layout-1280:relative layout-1280:z-0 layout-1280:h-full\n layout-1280:max-w-none\n ","gap-6","transition-all","will-change-transform","\n -translate-x-full transform-gpu\n layout-1280:translate-x-0\n ","border-r","safe-sidebar"],{variants:{show:{false:null,true:"show"}}}),f=o(["flex w-full items-center justify-between","relative z-navbar-topbar","border-b","layout-1280:hidden","safe-topbar"]),p=o(["\n relative z-navbar-backdrop transition-opacity\n layout-1280:hidden\n "],{variants:{show:{false:"pointer-events-none opacity-0",true:"opacity-100"}}}),w=a(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}_show=!1;render(){return r(n,{key:"bc5079cb3704d2db26d1f8be020cdf60f0a716d8"},r("p-backdrop",{key:"8e530cc8e3823a49e32a4821416163214a16cf7c",class:p({show:this._show}),scrollLock:this._show,onClicked:()=>this._show=!1}),r("div",{key:"965d4b28217709da09cc6eb47bda38bc452e05f7",class:b({class:d(),show:this._show})},r("div",{key:"ee0fd8bdbcd4af099c8b8eaf84595c553cc1bfb4",class:"\n flex w-full items-center justify-end\n layout-1280:hidden\n "},r("p-button",{key:"e0782f8439f47613a6ec58271069bf3034289750",icon:"menu-arrow",iconFlip:"horizontal",iconOnly:!0,variant:"secondary",onClick:()=>this._show=!1})),r("div",{key:"1fdfb8308644046db8023df990ea7ddd83dcf262",class:"flex w-full flex-shrink-0 flex-col items-stretch"},r("slot",{key:"994d94f3c6e868c7998f1e99da450c0886e4bbfe",name:"company"})),r("div",{key:"c047c41e1d3ca938a9f92272bde090179d14b086",class:"flex w-full flex-1 flex-col gap-6 overflow-y-auto"},r("slot",{key:"552845f3097fa92eee1a37ac02d158f9edde72d5",name:"content"})),r("div",{key:"dd477e40950e95ff28dc18f31d337d978693cac8",class:"\n mt-auto hidden w-full flex-shrink-0 flex-col\n layout-1280:flex\n "},r("slot",{key:"767b851a061a0e573e8215aa6727b7618c610d1e",name:"user"}))),r("div",{key:"0264c176351bdb91606fe45aabb193b982f62a65",class:f({class:d()})},r("p-button",{key:"c7ed3bd86467f165cf2902c39851aa374997892c",icon:"menu-arrow",iconOnly:!0,variant:"secondary",onClick:()=>this._show=!0}),r("slot",{key:"df81ccf93abf33a58c03c4a5c1ee49cbfcee70a6",name:"topbar"})))}handleCloseNavbar(){this._show=!1}handleOpenNavbar(){this._show=!0}static get style(){return".w-full{width:100%}.max-h-screen-safe{max-height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom))}*{box-sizing:border-box}:host{max-height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));width:100%;.safe-sidebar{padding-top:calc(env(safe-area-inset-top, 0) + 1rem)!important;&.show{--tw-translate-x:env(safe-area-inset-left,0)!important}}.safe-topbar{height:calc(env(safe-area-inset-top, 0) + 4rem);padding-top:calc(env(safe-area-inset-top, 0) + 1rem)!important}}@media (min-width:80rem){:host{width:15rem}}@media (min-width:105rem){:host{width:18rem}}@media (min-width:80rem){.layout-1280\\:w-60{width:15rem}}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.relative{position:relative}.left-0{left:0}.top-0{top:0}.z-navbar{z-index:300}.z-navbar-backdrop{z-index:290}.z-navbar-topbar{z-index:280}.mt-auto{margin-top:auto}.flex{display:flex}.hidden{display:none}.h-screen{height:100vh}.w-60{width:15rem}.max-w-\\[16\\.5rem\\]{max-width:16.5rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.-translate-x-full{--tw-translate-x:-100%;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))}.transform-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.gap-6{gap:1.5rem}.overflow-y-auto{overflow-y:auto}.border-0{border-width:0}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-solid{border-style:solid}.border-off-white-700{--tw-border-opacity:1;border-color:rgb(222 219 213/var(--tw-border-opacity,1))}.bg-off-white-300{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.p-4{padding:1rem}.opacity-0{opacity:0}.opacity-100{opacity:1}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;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-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.will-change-transform{will-change:transform}@media (min-width:80rem){.layout-1280\\:relative{position:relative}.layout-1280\\:z-0{z-index:0}.layout-1280\\:flex{display:flex}.layout-1280\\:hidden{display:none}.layout-1280\\:h-full{height:100%}.layout-1280\\:max-w-none{max-width:none}.layout-1280\\:translate-x-0{--tw-translate-x:0px;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))}}.dark\\:border-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(54 60 70/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}.dark\\:border-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(54 60 70/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-800:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}"}},[769,"p-navbar",{_show:[32]},[[8,"closeNavbar","handleCloseNavbar"],[8,"openNavbar","handleOpenNavbar"]]]);function m(){"undefined"!=typeof customElements&&["p-navbar","p-backdrop","p-button","p-icon","p-loader"].forEach((a=>{switch(a){case"p-navbar":customElements.get(e(a))||customElements.define(e(a),w);break;case"p-backdrop":customElements.get(e(a))||i();break;case"p-button":customElements.get(e(a))||s();break;case"p-icon":customElements.get(e(a))||l();break;case"p-loader":customElements.get(e(a))||c()}}))}m();const h=w,u=m;export{h as PNavbar,u as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PSubmenuItem extends Components.PSubmenuItem, HTMLElement {}
|
|
4
|
+
export const PSubmenuItem: {
|
|
5
|
+
prototype: PSubmenuItem;
|
|
6
|
+
new (): PSubmenuItem;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t,p as e,H as r,h as o}from"./p-CySg37XO.js";import{c as i}from"./p-CBWjHURv.js";import{T as a}from"./p-Au2WuEGF.js";import{c}from"./p-xs4N_Y-0.js";import{d as s}from"./p-Sl3w6Zuw.js";const n=i(["flex items-center gap-6","h-8 w-full pl-6","cursor-pointer","group/submenu-item"],{variants:{}}),p=e(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}active=!1;icon="placeholder";render(){return o(a,{key:"812bee8d46780d60ed604505b4f8c00e798a9f8f"},o("div",{key:"f5a76dd14ccb0559586b01214c6badb3bcf2eef8",class:c(n({}),{})},o("div",{key:"97fe0916207dfefd625ae51d911ef4eeb5d6b4cc",class:c("h-full w-[2px] transition-colors",{"bg-indigo-600":this.active,"bg-transparent group-hover/submenu-item:bg-indigo-600":!this.active})}),o("div",{key:"2c6ab60c2fb19b197d5aabd2368a7eb7406fdcb2",class:c("flex items-center gap-2 transition-colors",{"text-storm-400 dark:text-hurricane-100":!this.active,"text-indigo-600":this.active})},o("p-icon",{key:"7db15690b67f555a46dc72133be72e5937051658",variant:this.icon}),o("slot",{key:"1a4574d13c012affe2713a034445f636369729c8"}))))}static get style(){return"*{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))}"}},[769,"p-submenu-item",{active:[516],icon:[513]}]);function d(){"undefined"!=typeof customElements&&["p-submenu-item","p-icon"].forEach((e=>{switch(e){case"p-submenu-item":customElements.get(t(e))||customElements.define(t(e),p);break;case"p-icon":customElements.get(t(e))||s()}}))}d();const b=p,u=d;export{b as PSubmenuItem,u as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PSubmenu extends Components.PSubmenu, HTMLElement {}
|
|
4
|
+
export const PSubmenu: {
|
|
5
|
+
prototype: PSubmenu;
|
|
6
|
+
new (): PSubmenu;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t,p as e,H as a,h as r}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as i}from"./p-Au2WuEGF.js";import{c as d}from"./p-xs4N_Y-0.js";import{d as c}from"./p-Sl3w6Zuw.js";const n=o(["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:[]}),s=o(["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=e(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}title="";subtitle="";index=0;showIndex=!0;active=!1;open=!1;get _el(){return 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(i,{key:"110fad52ce96c4fc855408b422a42956b957d092"},r("div",{key:"0b8f40db722e7c6f6ba8ded2e33a6776af28f0dc",class:"flex w-full flex-col"},r("div",{key:"23aa3cf5a7ece75e3fb6312e2e2173d68b2dcd86",class:d(n({active:this.active,open:this.open})),onClick:()=>this.open=!this.open},this.showIndex&&r("div",{key:"a24b117f984eb4392a90b47fd8363e7e320cb84a",class:s({active:this.active,open:this.open})},this.index),r("div",{key:"76fb811ac456b88a7f3d3df3b5badfaf9fe6170f",class:"flex flex-1 flex-col"},r("p",{key:"0dd533096861b9962eb523ece6a2ad03f34223f0",class:d("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:d("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:d({"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:d("relative flex flex-col overflow-hidden transition-[max-height]"),style:{maxHeight:(this.open?a:0)+"px"}},r("div",{key:"45e06a119decc788d8fe12fc63add37e0a46502b",class:"\n absolute left-[calc(1.5rem)] top-0 z-0 w-px bg-indigo-100\n dark:bg-hurricane-400\n ",style:{height:a+"px"}}),r("div",{key:"d6dffef16ab9ba9e8c41e56e398d89ed05c1da1d",class:"z-10 my-2 flex flex-col"},r("slot",{key:"f1d1b244e03ba16337b6ed1dfc2ad06cbd79631d"})))))}static get style(){return"*{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-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))}.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\\: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\\: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))}"}},[769,"p-submenu",{title:[513],subtitle:[513],index:[514],showIndex:[516,"show-index"],active:[516],open:[516]}]);function b(){"undefined"!=typeof customElements&&["p-submenu","p-icon"].forEach((e=>{switch(e){case"p-submenu":customElements.get(t(e))||customElements.define(t(e),h);break;case"p-icon":customElements.get(t(e))||c()}}))}b();const g=h,m=b;export{g as PSubmenu,m as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as o,d as
|
|
1
|
+
import{T as o,d as s}from"./p-BwA3E_K4.js";const p=o,r=s;export{p as PTableCell,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as o,d as s}from"./p-
|
|
1
|
+
import{T as o,d as s}from"./p-BD5jS81-.js";const p=o,r=s;export{p as PTableFooter,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as o,d as s}from"./p-
|
|
1
|
+
import{T as o,d as s}from"./p-POJeD79-.js";const p=o,r=s;export{p as PTableRow,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as e,H as i,c as s,h as o,d as a}from"./p-CySg37XO.js";import{f as n,g as l}from"./p-CwQG70_4.js";import{f as r}from"./p-WEZng7dj.js";import{f as c}from"./p-CWO2YJCh.js";import{i as h}from"./p-CzUyWlXA.js";import{c as p}from"./p-xs4N_Y-0.js";import{P as m,a as d,T as u}from"./p-CEaB2BT0.js";import{d as b}from"./p-1HCkK9Pf.js";import{d as f}from"./p-CdX4ibSM.js";import{d as g}from"./p-DlYs-VL_.js";import{d as w}from"./p-BANLejQ8.js";import{d as k}from"./p-DU-stXqd.js";import{d as y}from"./p-BNMkjAgS.js";import{d as S}from"./p-BAQuP-An.js";import{d as x}from"./p-B4-tGTJs.js";import{d as _}from"./p-Bg73A-l5.js";import{d as C}from"./p-BRDvNH4S.js";import{d as v}from"./p-p7QZcgoc.js";import{d as E}from"./p-wQxTl8yW.js";import{d as j}from"./p-C3fzR817.js";import{d as A}from"./p-Sl3w6Zuw.js";import{d as R}from"./p-CEcyKdij.js";import{d as F}from"./p-D8faiybE.js";import{d as B}from"./p-BFvoC7BA.js";import{d as D}from"./p-CYJ2s8gf.js";import{d as z}from"./p-C-ljhNrW.js";import{d as L}from"./p-DY2oKnxw.js";import{d as T}from"./p-B-YBFRbB.js";import{d as H}from"./p-D_ZHRLtg.js";import{d as P}from"./p-DpmybwXO.js";import{d as O}from"./p-Hk7avBWN.js";import{d as I}from"./p-PAx1R45S.js";import{d as q}from"./p-BZNy3k2j.js";import{d as M}from"./p-BO7NYfW5.js";import{d as N}from"./p-C9B5DTYx.js";import{d as Q}from"./p-GYxEYTaZ.js";const Y=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.selectedRowsChange=s(this,"selectedRowsChange",3),this.rowClick=s(this,"rowClick",3),this.rowSelected=s(this,"rowSelected",3),this.rowDeselected=s(this,"rowDeselected",3),this.hasRendered=s(this,"hasRendered",3),this.quickFilter=s(this,"quickFilter",3),this.queryChange=s(this,"queryChange",3),this.filter=s(this,"filter",3),this.action=s(this,"action",3),this.pageChange=s(this,"pageChange",3),this.pageSizeChange=s(this,"pageSizeChange",3),this.export=s(this,"export",3),this.emptyStateActionClick=s(this,"emptyStateActionClick",3)}items;loading=!1;headerLoading=!1;footerLoading=!1;amountOfLoadingRows=6;enableRowSelection=!0;rowSelectionLimit;enableRowClick=!0;selectedRows=[];enableFloatingMenu=!0;floatingMenuAmountSelectedTemplate=t=>n((1===t?this._locales.floating_menu?.amount_selected:this._locales.floating_menu?.amount_selected_plural)?.replace("{{amount}}",t));selectedRowsChange;selectionKey;canSelectKey;rowClick;rowSelected;rowDeselected;hasRendered;enableHeader=!0;quickFilters=[];activeQuickFilterIdentifier;enableSearch=!0;query;enableFilter=!0;enableFilterDesktop=!0;selectedFiltersAmount;filterButtonTemplate;enableAction=!1;actionButtonLoading=!1;actionButtonEnabled=!1;actionButtonIcon="pencil";actionButtonText;actionButtonTemplate;quickFilter;queryChange;filter;action;enableFooter=!0;enablePaginationSize=!0;enablePaginationPages=!0;enableExport=!0;page=1;total;pageChange;pageSize=m;pageSizeOptions=d;pageSizeChange;export;hideOnSinglePage=!0;emptyStateHeader=()=>n(this._locales.empty_state?.no_filter.header);emptyStateContent=()=>n(this._locales.empty_state?.no_filter.content);emptyStateAction=()=>n(this._locales.empty_state?.no_filter.action);enableEmptyStateAction=!0;emptyStateFilteredHeader=()=>n(this._locales.empty_state.filtered.header);emptyStateFilteredContent=()=>n(this._locales.empty_state.filtered.content);emptyStateActionClick;shadow=!0;get _el(){return this}_locales={};_extraHeaders=[];_columns=[];_items=[];_enableRowSelection=this.enableRowSelection;_rowSelectionLimit;_rowActionsFloatingAll=[];_rowActionsFloating=[];_rowActionsRow=[];_footerHidden=!1;_ctrlDown=!1;_hasCustomFilterSlot=!1;_hasCustomActionsSlot=!1;_floatingMenuShown=!1;_resizeTimeout;componentWillLoad(){this._hasCustomFilterSlot=!!this._el.querySelector(':scope > [slot="custom-filter"]'),this._hasCustomActionsSlot=!!this._el.querySelector(':scope > [slot="custom-actions"]'),this._setRowSelectionData(),this._setLocales(),this._parseItems(this.items),this._generateExtraHeaders(),this._generateColumns()}componentDidRender(){this.hasRendered.emit()}render(){return o(a,{key:"425442ed379af6ed510015af1c215a243d14a709",class:"z-0 flex flex-col"},o("p-table-container",{key:"f4a76f0df1ff84f4cef210c3721e32f160df7e3b"},this.enableHeader&&o("p-table-header",{key:"f621cdc3fce191ec8a921a1bbba6f67212fda95b",actionButtonTemplate:this.actionButtonTemplate,actionIcon:this.actionButtonIcon,actionLoading:this.actionButtonLoading,actionText:this.actionButtonText,activeQuickFilterIdentifier:this.activeQuickFilterIdentifier,canUseAction:this.actionButtonEnabled,class:"mb-8",enableAction:this.enableAction,enableExport:this.enableExport,enableFilter:this.enableFilter,enableFilterDesktop:this.enableFilterDesktop,enableSearch:this.enableSearch,filterButtonTemplate:this.filterButtonTemplate,itemsSelectedAmount:this.selectedRows?.length,loading:this.headerLoading,query:this.query,quickFilters:this.quickFilters,selectedFiltersAmount:this.selectedFiltersAmount,onAction:()=>this.action.emit(),onExport:()=>this.export.emit(),onFilter:()=>this.filter.emit(),onQueryChange:({detail:t})=>this.queryChange.emit(t),onQuickFilter:({detail:t})=>this.quickFilter.emit(t)},this._hasCustomFilterSlot&&o("slot",{key:"6ad3e112ed8d23bdf8c1ba550071b7bf6deb9fc1",name:"custom-filter",slot:"custom-filter"}),this._hasCustomActionsSlot&&o("slot",{key:"1a5aeaa7135c9a91fb624e46bb66a281bff81735",name:"custom-actions",slot:"custom-actions"})),this._getExtraHeader(),this._getHeader(),o("div",{key:"02e8e776a8f52f98eac3524fac5099d3ce59a43f",class:"flex flex-1 flex-col"},this._getRows(),o("slot",{key:"4682df30035958e2c07533eb9103d827c60e2ecf",name:"custom-rows"})),this.enableFloatingMenu&&this._enableRowSelection?o("p-floating-menu-container",{amount:this.selectedRows?.length,amountSelectedTemplate:this.floatingMenuAmountSelectedTemplate,class:r({hasFooter:this.enableFooter&&!this._footerHidden,active:!!this.selectedRows?.length,shown:this._floatingMenuShown}),enableAmountSelected:!!this._rowActionsFloating?.length,usedInTable:!0,onClose:()=>this._selectAllChange(null,!1)},this._rowActionsFloating?.length&&this._rowActionsFloating.map((t=>o("p-floating-menu-item",{disabled:t.disabled,icon:t.icon,iconFlip:t.iconFlip,iconRotate:t.iconRotate,loading:t.loading,slot:"floating-menu-item",onClick:()=>t.disabled||t.loading||!t.action||"single"!==t.type?t.action(this.selectedRows,!0):t.action(this.selectedRows[0],!1)},t.label)))):"",this.enableFooter&&o("p-table-footer",{key:"28611ac3b55ea811d39a349edf7698b19b48b264",enablePaginationPages:this.enablePaginationPages,enablePaginationSize:this.enablePaginationSize,hideOnSinglePage:this.hideOnSinglePage,loading:this.footerLoading,page:this.page,pageSize:this.pageSize,pageSizeOptions:this.pageSizeOptions,tableHeaderHasAction:this.enableHeader&&this.enableAction&&this.actionButtonEnabled,total:this.total,onHiddenChange:({detail:t})=>this._footerHidden=t,onPageChange:({detail:t})=>this.pageChange.emit(t),onPageSizeChange:({detail:t})=>this.pageSizeChange.emit(t)})))}async _setLocales(){this._locales=await l(this._el)}onTableDefinitionUpdated(){this._generateColumns()}keyDown({ctrlKey:t,metaKey:e}){const i=h();(e&&i||t&&!i)&&!0!==this._ctrlDown&&(this._ctrlDown=!0)}keyUp({code:t}){const e=h();(["MetaLeft","MetaRight"].includes(t)&&e||["ControlLeft","ControlRight"].includes(t)&&!e)&&!1!==this._ctrlDown&&(this._ctrlDown=!1)}visibilityChange(){"hidden"===document.visibilityState&&!1!==this._ctrlDown&&(this._ctrlDown=!1)}_parseItems(t){this._items=t?Array.isArray(t)?t:JSON.parse(t):[]}_setRowSelectionData(){this._resizeTimeout&&clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout((()=>{const t=c(),e=[...this._el.querySelectorAll(":scope > p-table-row-action")];this._rowActionsRow=e.filter((t=>"both"===t.type||"single"===t.type)),this._rowActionsFloatingAll=e.filter((e=>this.enableRowSelection&&("both"===e.type||"multi"===e.type)||t&&"single"===e.type)).map((t=>("single"===t.type&&(t.disabled=this.selectedRows?.length>1),t)));let i=this.rowSelectionLimit;t&&this._rowActionsFloatingAll?.length&&(void 0!==i&&this.enableRowSelection||!this.enableRowSelection)&&(i=1),this._rowSelectionLimit=i;let s=this.enableRowSelection;t&&this._rowActionsFloatingAll?.length&&!s&&(s=!0),this._enableRowSelection=s,this._floatingMenuShown&&this._showFloatingMenu()}),200)}_generateExtraHeaders(){let t=[...this._el.querySelectorAll("p-table-extra-header")];t=this._parseDefinitions(t),this._extraHeaders=t}_generateColumns(){let t=[...this._el.querySelectorAll("p-table-column")];t=this._parseDefinitions(t),this._columns=t}_getExtraHeader(){return this._extraHeaders?.length?o("p-table-row",{isLast:!0,variant:"header-secondary"},this._extraHeaders.map(((t,e)=>o("p-table-cell",{checkboxOffset:0===e&&this._enableRowSelection,definition:t,index:e,variant:"header-secondary"},o("b",null,t.name))))):null}_getHeader(){return o("p-table-row",{variant:"header"},this._columns.map(((t,e)=>o("p-table-cell",{checkbox:0===e||t.hasCheckbox?this._getCheckbox(null,this.loading?"loading":"header"):null,definition:t,index:e,value:t.name,variant:"header"}))))}_getRows(){return this.loading?Array.from({length:this.amountOfLoadingRows},((t,e)=>o("p-table-row",{enableHover:this._enableRowSelection||this.enableRowClick,isLast:e===this.amountOfLoadingRows-1},this._getLoadingColumns(e)))):0===this._items.length?this._getEmptyState():this._items.map(((t,e)=>o("p-table-row",{checked:this._selectionContains(e),enableHover:this._enableRowSelection||this.enableRowClick,isLast:e===this._items.length-1,onClick:t=>this._rowClick(t,e)},this._getRowColumns(t,e),this._getActions(t,e))))}_getActions(t,e){const i=this._rowActionsRow.filter((e=>!e.showFunction||e.showFunction(t)));return i?.length&&!c()?o("p-table-row-actions-container",{checked:this._selectionContains(e),slot:"actions"},i.map((e=>o("p-tooltip",{content:e.label,strategy:"fixed"},o("p-button",{icon:e.icon,iconFlip:e.iconFlip,iconOnly:!0,iconRotate:e.iconRotate,size:"sm",slot:"trigger",variant:"secondary","data-is-action":!0,onClick:()=>"function"==typeof e.action&&e.action?.(t,!1)}))))):null}_getRowColumns(t,e){return this._columns.map(((i,s)=>o("p-table-cell",{checkbox:0===s||i.hasCheckbox?this._getCheckbox(e):null,definition:i,index:s,item:t,rowIndex:e})))}_getLoadingColumns(t){return this._columns.map(((e,i)=>o("p-table-cell",{checkbox:0===i||e.hasCheckbox?this._getCheckbox(t,"loading"):null,definition:e,index:i,rowIndex:t,variant:"loading"})))}_getCheckbox(t,e="default"){if(!this._enableRowSelection||!this.selectionKey&&!this._rowActionsFloating?.length)return;if("loading"===e)return o("p-loader",{class:"h-6 w-6 rounded",variant:"ghost"});if("header"===e)return o("p-checkbox",{checked:this._selectionContainsAll(),class:p({"opacity-0":void 0!==this._rowSelectionLimit}),disabled:void 0!==this._rowSelectionLimit,indeterminate:this._selectionIndeterminate(),onCheckedChange:t=>this._selectAllChange(t)});const i=this._items[t],s=this._selectionContains(t);return o("p-checkbox",{checked:s,class:"flex-shrink-0",disabled:this.canSelectKey&&!i[this.canSelectKey]||void 0!==this._rowSelectionLimit&&!s&&this.selectedRows.length===this._rowSelectionLimit,onCheckedChange:e=>this._checkboxChange(e,t)})}_getEmptyState(){return o("p-empty-state",this.query?.length||this.selectedFiltersAmount?{class:"my-16 self-center",content:this.emptyStateFilteredContent(),header:this.emptyStateFilteredHeader(),illustration:"search"}:{actionIcon:"plus",actionText:this.emptyStateAction(),class:"my-16 self-center",content:this.emptyStateContent(),enableAction:this.enableEmptyStateAction,header:this.emptyStateHeader(),illustration:"table",onAction:()=>this.enableAction&&this.action.emit()})}_selectAllChange(t,e){if(this._enableRowSelection){if(void 0===e?t?.detail??e:e){const t=[];for(let e=0;e<this._items.length;e++){const i=this._items[e];if((!this.canSelectKey||i[this.canSelectKey])&&!this._selectionContains(e)&&(t.push(i),this.rowSelected.emit(i),void 0!==this._rowSelectionLimit&&this.selectedRows.length+t.length===this._rowSelectionLimit))break}return this.selectedRows=[...this.selectedRows,...t],this.selectedRowsChange.emit(this.selectedRows),void(this.enableFloatingMenu&&!this._floatingMenuShown&&this._showFloatingMenu())}for(let t=0;t<this.selectedRows.length;t++){const e=this.selectedRows[t],i=this._items.find((i=>this._getSelectionValue(i,t)===this._getSelectionValue(e,t)));i&&this.rowDeselected.emit(i)}this.selectedRows=[],this.selectedRowsChange.emit(this.selectedRows)}}_checkboxChange({detail:t,target:e},i){if(!this._enableRowSelection)return;if(t&&void 0!==this._rowSelectionLimit&&this.selectedRows.length>=this._rowSelectionLimit)return void(e.checked=!1);const s=this._items[i];if(this.canSelectKey&&!s[this.canSelectKey])return void(e.checked=!1);if(t)return this.selectedRows=[...this.selectedRows,{...s,index:i}],this.selectedRowsChange.emit(this.selectedRows),this.rowSelected.emit(s),void(this.enableFloatingMenu&&!this._floatingMenuShown&&this._showFloatingMenu());const o=this._selectionContains(i,!0),a=[...this.selectedRows];a.splice(o,1),this.selectedRows=a,this.selectedRowsChange.emit(this.selectedRows),this.rowDeselected.emit(s)}_getSelectionValue(t,e){return this.selectionKey&&t?.[this.selectionKey]||e}_selectionContains(t,e=!1){const i=this.selectedRows.findIndex((e=>e.index===t));return e?i:-1!==i}_selectionContainsAll(){let t=!0;if(!this._items?.length)return!1;if(void 0!==this._rowSelectionLimit&&this.selectedRows.length===this._rowSelectionLimit)return!0;for(let e=0;e<this._items?.length;e++)if(!this._selectionContains(e)){t=!1;break}return t}_selectionIndeterminate(){if(!this._items?.length||!this.selectedRows?.length)return!1;if(void 0!==this._rowSelectionLimit&&this.selectedRows.length===this._rowSelectionLimit)return!1;let t=0;for(let e=0;e<this._items?.length;e++)this._selectionContains(e)&&t++;return t>0&&t!==this._items.length}_rowClick(t,e){const i=t.target;if("input"===i.tagName.toLowerCase()||"checkbox"===i.type)return;const s=this._findRow(t.target);if(this._findRowAction(t.target))return;if(this.enableRowClick)return void this.rowClick.emit({item:this._items[e],ctrlDown:this._ctrlDown});if(!this._enableRowSelection)return;const o=s?.querySelector('input[type="checkbox"]');o&&(o.checked=!o.checked,this._checkboxChange(o,e))}_findRow(t){return t?"p-table-row"===t?.tagName?.toLowerCase()?t:this._findRow(t?.parentElement):t}_findRowAction(t){return t?null!==t.dataset.isAction&&"false"!==t.dataset.isAction?t:"p-table-row"===t?.tagName?.toLowerCase()?null:this._findRowAction(t?.parentElement):null}_showFloatingMenu(){let t=this._rowActionsFloatingAll;1===this.rowSelectionLimit&&t.some((t=>("single"===t.type||"both"===t.type)&&t.showFunction))&&(t=t.filter((t=>"multi"===t.type||!t.showFunction||t.showFunction(this.selectedRows[0])))),this._rowActionsFloating=t,this._floatingMenuShown=!0}_parseDefinitions(t){return t.map((t=>this._parseDefinitionSizes(t)))}_parseDefinitionSizes(t){const e=t;let i={default:"full"};"string"!=typeof t.sizes||["auto","hidden","full"].includes(t.sizes)||(t.sizes=JSON.parse(t.sizes));for(const[t,s]of u.entries())i[s]="auto"!==e.sizes&&"hidden"!==e.sizes&&"full"!==e.sizes&&"number"!=typeof e.sizes?e.sizes[s]??i[u[t-1]]:"auto"===e.sizes?"full":e.sizes;return t.parsedSizes=i,t}static get watchers(){return{items:[{_parseItems:0}],enableRowSelection:[{_setRowSelectionData:0}],rowSelectionLimit:[{_setRowSelectionData:0}],selectedRows:[{_setRowSelectionData:0}]}}static get style(){return"*{box-sizing:border-box}.static{position:static}.fixed{position:fixed}.z-0{z-index:0}.my-16{margin-bottom:4rem;margin-top:4rem}.mb-8{margin-bottom:2rem}.flex{display:flex}.table{display:table}.hidden{display:none}.h-6{height:1.5rem}.w-6{width:1.5rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.resize{resize:both}.flex-col{flex-direction:column}.self-center{align-self:center}.rounded{border-radius:.25rem}.opacity-0{opacity:0}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}"}},[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}]}]);function K(){"undefined"!=typeof customElements&&["p-table","p-badge","p-button","p-checkbox","p-divider","p-dropdown","p-dropdown-menu-container","p-dropdown-menu-item","p-empty-state","p-field","p-field-container","p-floating-menu-container","p-floating-menu-item","p-helper","p-icon","p-illustration","p-loader","p-pagination","p-pagination-pages","p-pagination-pages-item","p-pagination-size","p-segment-container","p-segment-item","p-table-cell","p-table-container","p-table-footer","p-table-header","p-table-row","p-table-row-actions-container","p-tooltip"].forEach((e=>{switch(e){case"p-table":customElements.get(t(e))||customElements.define(t(e),Y);break;case"p-badge":customElements.get(t(e))||b();break;case"p-button":customElements.get(t(e))||f();break;case"p-checkbox":customElements.get(t(e))||g();break;case"p-divider":customElements.get(t(e))||w();break;case"p-dropdown":customElements.get(t(e))||k();break;case"p-dropdown-menu-container":customElements.get(t(e))||y();break;case"p-dropdown-menu-item":customElements.get(t(e))||S();break;case"p-empty-state":customElements.get(t(e))||x();break;case"p-field":customElements.get(t(e))||_();break;case"p-field-container":customElements.get(t(e))||C();break;case"p-floating-menu-container":customElements.get(t(e))||v();break;case"p-floating-menu-item":customElements.get(t(e))||E();break;case"p-helper":customElements.get(t(e))||j();break;case"p-icon":customElements.get(t(e))||A();break;case"p-illustration":customElements.get(t(e))||R();break;case"p-loader":customElements.get(t(e))||F();break;case"p-pagination":customElements.get(t(e))||B();break;case"p-pagination-pages":customElements.get(t(e))||D();break;case"p-pagination-pages-item":customElements.get(t(e))||z();break;case"p-pagination-size":customElements.get(t(e))||L();break;case"p-segment-container":customElements.get(t(e))||T();break;case"p-segment-item":customElements.get(t(e))||H();break;case"p-table-cell":customElements.get(t(e))||P();break;case"p-table-container":customElements.get(t(e))||O();break;case"p-table-footer":customElements.get(t(e))||I();break;case"p-table-header":customElements.get(t(e))||q();break;case"p-table-row":customElements.get(t(e))||M();break;case"p-table-row-actions-container":customElements.get(t(e))||N();break;case"p-tooltip":customElements.get(t(e))||Q()}}))}K();const W=Y,U=K;export{W as PTable,U as defineCustomElement}
|
|
1
|
+
import{t,p as e,H as i,c as s,h as o,d as a}from"./p-CySg37XO.js";import{f as n,g as l}from"./p-CwQG70_4.js";import{f as r}from"./p-WEZng7dj.js";import{f as c}from"./p-CWO2YJCh.js";import{i as h}from"./p-CzUyWlXA.js";import{c as p}from"./p-xs4N_Y-0.js";import{P as d,a as m,T as u}from"./p-CEaB2BT0.js";import{d as b}from"./p-1HCkK9Pf.js";import{d as f}from"./p-CdX4ibSM.js";import{d as g}from"./p-DlYs-VL_.js";import{d as w}from"./p-BANLejQ8.js";import{d as k}from"./p-DU-stXqd.js";import{d as y}from"./p-BNMkjAgS.js";import{d as S}from"./p-BAQuP-An.js";import{d as _}from"./p-B4-tGTJs.js";import{d as x}from"./p-Bg73A-l5.js";import{d as C}from"./p-BRDvNH4S.js";import{d as E}from"./p-p7QZcgoc.js";import{d as v}from"./p-wQxTl8yW.js";import{d as j}from"./p-C3fzR817.js";import{d as A}from"./p-Sl3w6Zuw.js";import{d as R}from"./p-CEcyKdij.js";import{d as F}from"./p-D8faiybE.js";import{d as B}from"./p-BFvoC7BA.js";import{d as D}from"./p-CYJ2s8gf.js";import{d as z}from"./p-C-ljhNrW.js";import{d as L}from"./p-DY2oKnxw.js";import{d as T}from"./p-B-YBFRbB.js";import{d as H}from"./p-D_ZHRLtg.js";import{d as P}from"./p-BwA3E_K4.js";import{d as O}from"./p-Hk7avBWN.js";import{d as I}from"./p-BD5jS81-.js";import{d as q}from"./p-BZNy3k2j.js";import{d as K}from"./p-POJeD79-.js";import{d as M}from"./p-C9B5DTYx.js";import{d as Q}from"./p-GYxEYTaZ.js";const N=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.selectedRowsChange=s(this,"selectedRowsChange",3),this.rowClick=s(this,"rowClick",3),this.rowSelected=s(this,"rowSelected",3),this.rowDeselected=s(this,"rowDeselected",3),this.hasRendered=s(this,"hasRendered",3),this.quickFilter=s(this,"quickFilter",3),this.queryChange=s(this,"queryChange",3),this.filter=s(this,"filter",3),this.action=s(this,"action",3),this.pageChange=s(this,"pageChange",3),this.pageSizeChange=s(this,"pageSizeChange",3),this.export=s(this,"export",3),this.emptyStateActionClick=s(this,"emptyStateActionClick",3)}items;loading=!1;headerLoading=!1;footerLoading=!1;amountOfLoadingRows=6;enableRowSelection=!0;rowSelectionLimit;enableRowClick=!0;selectedRows=[];enableFloatingMenu=!0;floatingMenuAmountSelectedTemplate=t=>n((1===t?this._locales.floating_menu?.amount_selected:this._locales.floating_menu?.amount_selected_plural)?.replace("{{amount}}",t));selectedRowsChange;selectionKey;canSelectKey;rowClick;rowSelected;rowDeselected;hasRendered;enableHeader=!0;quickFilters=[];activeQuickFilterIdentifier;enableSearch=!0;query;enableFilter=!0;enableFilterDesktop=!0;selectedFiltersAmount;filterButtonTemplate;enableAction=!1;actionButtonLoading=!1;actionButtonEnabled=!1;actionButtonIcon="pencil";actionButtonText;actionButtonTemplate;quickFilter;queryChange;filter;action;enableFooter=!0;enablePaginationSize=!0;enablePaginationPages=!0;enableExport=!0;page=1;total;pageChange;pageSize=d;pageSizeOptions=m;pageSizeChange;export;hideOnSinglePage=!0;emptyStateHeader=()=>n(this._locales.empty_state?.no_filter.header);emptyStateContent=()=>n(this._locales.empty_state?.no_filter.content);emptyStateAction=()=>n(this._locales.empty_state?.no_filter.action);enableEmptyStateAction=!0;emptyStateFilteredHeader=()=>n(this._locales.empty_state.filtered.header);emptyStateFilteredContent=()=>n(this._locales.empty_state.filtered.content);emptyStateActionClick;shadow=!0;get _el(){return this}_locales={};_extraHeaders=[];_columns=[];_items=[];_enableRowSelection=this.enableRowSelection;_rowSelectionLimit;_rowActionsFloatingAll=[];_rowActionsFloating=[];_rowActionsRow=[];_footerHidden=!1;_ctrlDown=!1;_hasCustomFilterSlot=!1;_hasCustomActionsSlot=!1;_floatingMenuShown=!1;_resizeTimeout;componentWillLoad(){this._hasCustomFilterSlot=!!this._el.querySelector(':scope > [slot="custom-filter"]'),this._hasCustomActionsSlot=!!this._el.querySelector(':scope > [slot="custom-actions"]'),this._setRowSelectionData(),this._setLocales(),this._parseItems(this.items),this._generateExtraHeaders(),this._generateColumns()}componentDidRender(){this.hasRendered.emit()}render(){return o(a,{key:"425442ed379af6ed510015af1c215a243d14a709",class:"z-0 flex flex-col"},o("p-table-container",{key:"f4a76f0df1ff84f4cef210c3721e32f160df7e3b"},this.enableHeader&&o("p-table-header",{key:"f621cdc3fce191ec8a921a1bbba6f67212fda95b",actionButtonTemplate:this.actionButtonTemplate,actionIcon:this.actionButtonIcon,actionLoading:this.actionButtonLoading,actionText:this.actionButtonText,activeQuickFilterIdentifier:this.activeQuickFilterIdentifier,canUseAction:this.actionButtonEnabled,class:"mb-8",enableAction:this.enableAction,enableExport:this.enableExport,enableFilter:this.enableFilter,enableFilterDesktop:this.enableFilterDesktop,enableSearch:this.enableSearch,filterButtonTemplate:this.filterButtonTemplate,itemsSelectedAmount:this.selectedRows?.length,loading:this.headerLoading,query:this.query,quickFilters:this.quickFilters,selectedFiltersAmount:this.selectedFiltersAmount,onAction:()=>this.action.emit(),onExport:()=>this.export.emit(),onFilter:()=>this.filter.emit(),onQueryChange:({detail:t})=>this.queryChange.emit(t),onQuickFilter:({detail:t})=>this.quickFilter.emit(t)},this._hasCustomFilterSlot&&o("slot",{key:"6ad3e112ed8d23bdf8c1ba550071b7bf6deb9fc1",name:"custom-filter",slot:"custom-filter"}),this._hasCustomActionsSlot&&o("slot",{key:"1a5aeaa7135c9a91fb624e46bb66a281bff81735",name:"custom-actions",slot:"custom-actions"})),this._getExtraHeader(),this._getHeader(),o("div",{key:"02e8e776a8f52f98eac3524fac5099d3ce59a43f",class:"flex flex-1 flex-col"},this._getRows(),o("slot",{key:"4682df30035958e2c07533eb9103d827c60e2ecf",name:"custom-rows"})),this.enableFloatingMenu&&this._enableRowSelection?o("p-floating-menu-container",{amount:this.selectedRows?.length,amountSelectedTemplate:this.floatingMenuAmountSelectedTemplate,class:r({hasFooter:this.enableFooter&&!this._footerHidden,active:!!this.selectedRows?.length,shown:this._floatingMenuShown}),enableAmountSelected:!!this._rowActionsFloating?.length,usedInTable:!0,onClose:()=>this._selectAllChange(null,!1)},this._rowActionsFloating?.length&&this._rowActionsFloating.map((t=>o("p-floating-menu-item",{disabled:t.disabled,icon:t.icon,iconFlip:t.iconFlip,iconRotate:t.iconRotate,loading:t.loading,slot:"floating-menu-item",onClick:()=>t.disabled||t.loading||!t.action||"single"!==t.type?t.action(this.selectedRows,!0):t.action(this.selectedRows[0],!1)},t.label)))):"",this.enableFooter&&o("p-table-footer",{key:"28611ac3b55ea811d39a349edf7698b19b48b264",enablePaginationPages:this.enablePaginationPages,enablePaginationSize:this.enablePaginationSize,hideOnSinglePage:this.hideOnSinglePage,loading:this.footerLoading,page:this.page,pageSize:this.pageSize,pageSizeOptions:this.pageSizeOptions,tableHeaderHasAction:this.enableHeader&&this.enableAction&&this.actionButtonEnabled,total:this.total,onHiddenChange:({detail:t})=>this._footerHidden=t,onPageChange:({detail:t})=>this.pageChange.emit(t),onPageSizeChange:({detail:t})=>this.pageSizeChange.emit(t)})))}async _setLocales(){this._locales=await l(this._el)}onTableDefinitionUpdated(){this._generateColumns()}keyDown({ctrlKey:t,metaKey:e}){const i=h();(e&&i||t&&!i)&&!0!==this._ctrlDown&&(this._ctrlDown=!0)}keyUp({code:t}){const e=h();(["MetaLeft","MetaRight"].includes(t)&&e||["ControlLeft","ControlRight"].includes(t)&&!e)&&!1!==this._ctrlDown&&(this._ctrlDown=!1)}visibilityChange(){"hidden"===document.visibilityState&&!1!==this._ctrlDown&&(this._ctrlDown=!1)}_parseItems(t){this._items=t?Array.isArray(t)?t:JSON.parse(t):[]}_setRowSelectionData(){this._resizeTimeout&&clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout((()=>{const t=c(),e=[...this._el.querySelectorAll(":scope > p-table-row-action")];this._rowActionsRow=e.filter((t=>"both"===t.type||"single"===t.type)),this._rowActionsFloatingAll=e.filter((e=>this.enableRowSelection&&("both"===e.type||"multi"===e.type)||t&&"single"===e.type)).map((t=>("single"===t.type&&(t.disabled=this.selectedRows?.length>1),t)));let i=this.rowSelectionLimit;t&&this._rowActionsFloatingAll?.length&&(void 0!==i&&this.enableRowSelection||!this.enableRowSelection)&&(i=1),this._rowSelectionLimit=i;let s=this.enableRowSelection;t&&this._rowActionsFloatingAll?.length&&!s&&(s=!0),this._enableRowSelection=s,this._floatingMenuShown&&this._showFloatingMenu()}),200)}_generateExtraHeaders(){let t=[...this._el.querySelectorAll("p-table-extra-header")];t=this._parseDefinitions(t),this._extraHeaders=t}_generateColumns(){let t=[...this._el.querySelectorAll("p-table-column")];t=this._parseDefinitions(t),this._columns=t}_getExtraHeader(){return this._extraHeaders?.length?o("p-table-row",{isLast:!0,variant:"header-secondary"},this._extraHeaders.map(((t,e)=>o("p-table-cell",{checkboxOffset:0===e&&this._enableRowSelection,definition:t,index:e,variant:"header-secondary"},o("b",null,t.name))))):null}_getHeader(){return o("p-table-row",{variant:"header"},this._columns.map(((t,e)=>o("p-table-cell",{checkbox:0===e||t.hasCheckbox?this._getCheckbox(null,this.loading?"loading":"header"):null,definition:t,index:e,value:t.name,variant:"header"}))))}_getRows(){return this.loading?Array.from({length:this.amountOfLoadingRows},((t,e)=>o("p-table-row",{enableHover:this._enableRowSelection||this.enableRowClick,isLast:e===this.amountOfLoadingRows-1},this._getLoadingColumns(e)))):0===this._items.length?this._getEmptyState():this._items.map(((t,e)=>o("p-table-row",{checked:this._selectionContains(e),enableHover:this._enableRowSelection||this.enableRowClick,isLast:e===this._items.length-1,onClick:t=>this._rowClick(t,e)},this._getRowColumns(t,e),this._getActions(t,e))))}_getActions(t,e){const i=this._rowActionsRow.filter((e=>!e.showFunction||e.showFunction(t)));return i?.length&&!c()?o("p-table-row-actions-container",{checked:this._selectionContains(e),slot:"actions"},i.map((e=>o("p-tooltip",{content:e.label,strategy:"fixed"},o("p-button",{icon:e.icon,iconFlip:e.iconFlip,iconOnly:!0,iconRotate:e.iconRotate,size:"sm",slot:"trigger",variant:"secondary","data-is-action":!0,onClick:()=>"function"==typeof e.action&&e.action?.(t,!1)}))))):null}_getRowColumns(t,e){return this._columns.map(((i,s)=>o("p-table-cell",{checkbox:0===s||i.hasCheckbox?this._getCheckbox(e):null,definition:i,index:s,item:t,rowIndex:e})))}_getLoadingColumns(t){return this._columns.map(((e,i)=>o("p-table-cell",{checkbox:0===i||e.hasCheckbox?this._getCheckbox(t,"loading"):null,definition:e,index:i,rowIndex:t,variant:"loading"})))}_getCheckbox(t,e="default"){if(!this._enableRowSelection||!this.selectionKey&&!this._rowActionsFloating?.length)return;if("loading"===e)return o("p-loader",{class:"h-6 w-6 rounded",variant:"ghost"});if("header"===e)return o("p-checkbox",{checked:this._selectionContainsAll(),class:p({"opacity-0":void 0!==this._rowSelectionLimit}),disabled:void 0!==this._rowSelectionLimit,indeterminate:this._selectionIndeterminate(),onCheckedChange:t=>this._selectAllChange(t)});const i=this._items[t],s=this._selectionContains(t);return o("p-checkbox",{checked:s,class:"flex-shrink-0",disabled:this.canSelectKey&&!i[this.canSelectKey]||void 0!==this._rowSelectionLimit&&!s&&this.selectedRows.length===this._rowSelectionLimit,onCheckedChange:e=>this._checkboxChange(e,t)})}_getEmptyState(){return o("p-empty-state",this.query?.length||this.selectedFiltersAmount?{class:"my-16 self-center",content:this.emptyStateFilteredContent(),header:this.emptyStateFilteredHeader(),illustration:"search"}:{actionIcon:"plus",actionText:this.emptyStateAction(),class:"my-16 self-center",content:this.emptyStateContent(),enableAction:this.enableEmptyStateAction,header:this.emptyStateHeader(),illustration:"table",onAction:()=>this.enableAction&&this.action.emit()})}_selectAllChange(t,e){if(this._enableRowSelection){if(void 0===e?t?.detail??e:e){const t=[];for(let e=0;e<this._items.length;e++){const i=this._items[e];if((!this.canSelectKey||i[this.canSelectKey])&&!this._selectionContains(e)&&(t.push(i),this.rowSelected.emit(i),void 0!==this._rowSelectionLimit&&this.selectedRows.length+t.length===this._rowSelectionLimit))break}return this.selectedRows=[...this.selectedRows,...t],this.selectedRowsChange.emit(this.selectedRows),void(this.enableFloatingMenu&&!this._floatingMenuShown&&this._showFloatingMenu())}for(let t=0;t<this.selectedRows.length;t++){const e=this.selectedRows[t],i=this._items.find((i=>this._getSelectionValue(i,t)===this._getSelectionValue(e,t)));i&&this.rowDeselected.emit(i)}this.selectedRows=[],this.selectedRowsChange.emit(this.selectedRows)}}_checkboxChange({detail:t,target:e},i){if(!this._enableRowSelection)return;if(t&&void 0!==this._rowSelectionLimit&&this.selectedRows.length>=this._rowSelectionLimit)return void(e.checked=!1);const s=this._items[i];if(this.canSelectKey&&!s[this.canSelectKey])return void(e.checked=!1);if(t)return this.selectedRows=[...this.selectedRows,{...s,index:i}],this.selectedRowsChange.emit(this.selectedRows),this.rowSelected.emit(s),void(this.enableFloatingMenu&&!this._floatingMenuShown&&this._showFloatingMenu());const o=this._selectionContains(i,!0),a=[...this.selectedRows];a.splice(o,1),this.selectedRows=a,this.selectedRowsChange.emit(this.selectedRows),this.rowDeselected.emit(s)}_getSelectionValue(t,e){return this.selectionKey&&t?.[this.selectionKey]||e}_selectionContains(t,e=!1){const i=this.selectedRows.findIndex((e=>e.index===t));return e?i:-1!==i}_selectionContainsAll(){let t=!0;if(!this._items?.length)return!1;if(void 0!==this._rowSelectionLimit&&this.selectedRows.length===this._rowSelectionLimit)return!0;for(let e=0;e<this._items?.length;e++)if(!this._selectionContains(e)){t=!1;break}return t}_selectionIndeterminate(){if(!this._items?.length||!this.selectedRows?.length)return!1;if(void 0!==this._rowSelectionLimit&&this.selectedRows.length===this._rowSelectionLimit)return!1;let t=0;for(let e=0;e<this._items?.length;e++)this._selectionContains(e)&&t++;return t>0&&t!==this._items.length}_rowClick(t,e){const i=t.target;if("input"===i.tagName.toLowerCase()||"checkbox"===i.type)return;const s=this._findRow(t.target);if(this._findRowAction(t.target))return;if(this.enableRowClick)return void this.rowClick.emit({item:this._items[e],ctrlDown:this._ctrlDown});if(!this._enableRowSelection)return;const o=s?.querySelector('input[type="checkbox"]');o&&(o.checked=!o.checked,this._checkboxChange(o,e))}_findRow(t){return t?"p-table-row"===t?.tagName?.toLowerCase()?t:this._findRow(t?.parentElement):t}_findRowAction(t){return t?null!==t.dataset.isAction&&"false"!==t.dataset.isAction?t:"p-table-row"===t?.tagName?.toLowerCase()?null:this._findRowAction(t?.parentElement):null}_showFloatingMenu(){let t=this._rowActionsFloatingAll;1===this.rowSelectionLimit&&t.some((t=>("single"===t.type||"both"===t.type)&&t.showFunction))&&(t=t.filter((t=>"multi"===t.type||!t.showFunction||t.showFunction(this.selectedRows[0])))),this._rowActionsFloating=t,this._floatingMenuShown=!0}_parseDefinitions(t){return t.map((t=>this._parseDefinitionSizes(t)))}_parseDefinitionSizes(t){const e=t;let i={default:"full"};"string"!=typeof t.sizes||["auto","hidden","full"].includes(t.sizes)||(t.sizes=JSON.parse(t.sizes));for(const[t,s]of u.entries())i[s]="auto"!==e.sizes&&"hidden"!==e.sizes&&"full"!==e.sizes&&"number"!=typeof e.sizes?e.sizes[s]??i[u[t-1]]:"auto"===e.sizes?"full":e.sizes;return t.parsedSizes=i,t}static get watchers(){return{items:[{_parseItems:0}],enableRowSelection:[{_setRowSelectionData:0}],rowSelectionLimit:[{_setRowSelectionData:0}],selectedRows:[{_setRowSelectionData:0}]}}static get style(){return"*{box-sizing:border-box}.static{position:static}.fixed{position:fixed}.z-0{z-index:0}.my-16{margin-bottom:4rem;margin-top:4rem}.mb-8{margin-bottom:2rem}.flex{display:flex}.table{display:table}.hidden{display:none}.h-6{height:1.5rem}.w-6{width:1.5rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.resize{resize:both}.flex-col{flex-direction:column}.self-center{align-self:center}.rounded{border-radius:.25rem}.opacity-0{opacity:0}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}"}},[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}]}]);function Y(){"undefined"!=typeof customElements&&["p-table","p-badge","p-button","p-checkbox","p-divider","p-dropdown","p-dropdown-menu-container","p-dropdown-menu-item","p-empty-state","p-field","p-field-container","p-floating-menu-container","p-floating-menu-item","p-helper","p-icon","p-illustration","p-loader","p-pagination","p-pagination-pages","p-pagination-pages-item","p-pagination-size","p-segment-container","p-segment-item","p-table-cell","p-table-container","p-table-footer","p-table-header","p-table-row","p-table-row-actions-container","p-tooltip"].forEach((e=>{switch(e){case"p-table":customElements.get(t(e))||customElements.define(t(e),N);break;case"p-badge":customElements.get(t(e))||b();break;case"p-button":customElements.get(t(e))||f();break;case"p-checkbox":customElements.get(t(e))||g();break;case"p-divider":customElements.get(t(e))||w();break;case"p-dropdown":customElements.get(t(e))||k();break;case"p-dropdown-menu-container":customElements.get(t(e))||y();break;case"p-dropdown-menu-item":customElements.get(t(e))||S();break;case"p-empty-state":customElements.get(t(e))||_();break;case"p-field":customElements.get(t(e))||x();break;case"p-field-container":customElements.get(t(e))||C();break;case"p-floating-menu-container":customElements.get(t(e))||E();break;case"p-floating-menu-item":customElements.get(t(e))||v();break;case"p-helper":customElements.get(t(e))||j();break;case"p-icon":customElements.get(t(e))||A();break;case"p-illustration":customElements.get(t(e))||R();break;case"p-loader":customElements.get(t(e))||F();break;case"p-pagination":customElements.get(t(e))||B();break;case"p-pagination-pages":customElements.get(t(e))||D();break;case"p-pagination-pages-item":customElements.get(t(e))||z();break;case"p-pagination-size":customElements.get(t(e))||L();break;case"p-segment-container":customElements.get(t(e))||T();break;case"p-segment-item":customElements.get(t(e))||H();break;case"p-table-cell":customElements.get(t(e))||P();break;case"p-table-container":customElements.get(t(e))||O();break;case"p-table-footer":customElements.get(t(e))||I();break;case"p-table-header":customElements.get(t(e))||q();break;case"p-table-row":customElements.get(t(e))||K();break;case"p-table-row-actions-container":customElements.get(t(e))||M();break;case"p-tooltip":customElements.get(t(e))||Q()}}))}Y();const U=N,W=Y;export{U as PTable,W as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as e,H as a,c as r,h as o}from"./p-CySg37XO.js";import{c as i}from"./p-CBWjHURv.js";import{T as d}from"./p-Au2WuEGF.js";import{d as c}from"./p-Sl3w6Zuw.js";const n=i("h-9 w-[2px] flex-shrink-0 rounded-full",{variants:{variant:{neutral:"\n bg-indigo-800\n dark:bg-indigo-400\n ",positive:"\n bg-positive-green-500\n dark:bg-positive-green-alternative\n ",biased:"\n bg-amber-500\n dark:bg-amber-alternative\n ",negative:"\n bg-negative-red-500\n dark:bg-negative-red-alternative\n "}}}),b=i(["flex items-center justify-between gap-2","w-[calc(100%-2px-0.5rem)]"]),s=e(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.action=r(this,"action",3)}variant="positive";header;content;enableAction=!0;actionIcon="negative";actionIconFlip;actionIconRotate;action;render(){return o(d,{key:"
|
|
1
|
+
import{t,p as e,H as a,c as r,h as o}from"./p-CySg37XO.js";import{c as i}from"./p-CBWjHURv.js";import{T as d}from"./p-Au2WuEGF.js";import{d as c}from"./p-Sl3w6Zuw.js";const n=i("h-9 w-[2px] flex-shrink-0 rounded-full",{variants:{variant:{neutral:"\n bg-indigo-800\n dark:bg-indigo-400\n ",positive:"\n bg-positive-green-500\n dark:bg-positive-green-alternative\n ",biased:"\n bg-amber-500\n dark:bg-amber-alternative\n ",negative:"\n bg-negative-red-500\n dark:bg-negative-red-alternative\n "}}}),b=i(["flex items-center justify-between gap-2","w-[calc(100%-2px-0.5rem)]"]),s=e(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.action=r(this,"action",3)}variant="positive";header;content;enableAction=!0;actionIcon="negative";actionIconFlip;actionIconRotate;action;render(){return o(d,{key:"7f1d26d48ba72212d4bea0047c2645d588ae9ca0"},o("div",{key:"7a02f52c3f482c36048ddd6aa052e94522ae9eb6",class:"\n flex gap-2 rounded-lg border border-solid border-storm-100 bg-white p-2\n shadow-2\n dark:border-hurricane-800 dark:bg-hurricane-800\n ",onClick:()=>this._onClick()},o("div",{key:"77418e7e7b8ce6cee4018d91888e14205bf37e42",class:n({variant:this.variant})}),o("div",{key:"958c676bdbb79d6fa812d3fa9a48d35e674d9390",class:b()},o("div",{key:"4da4e4b7cb402d68083001713aeb9de9534eb2c0",class:"flex w-full min-w-0 flex-col"},o("p",{key:"1079c6b6be804514906615985cd1503d417fe1e7",class:"\n m-0 overflow-hidden text-ellipsis whitespace-nowrap text-sm\n font-semibold text-storm-500\n dark:text-white\n "},this.header?.length?this.header:o("slot",{name:"header"})),o("p",{key:"c7f0ad542870b8924d15b9e1b79cf9cb4e04645e",class:"\n m-0 w-full overflow-hidden text-ellipsis whitespace-nowrap text-xs\n text-storm-300\n dark:text-hurricane-200\n "},this.content?.length?this.content:o("slot",{name:"content"}))),this.enableAction&&o("div",{key:"a286d1394e72cd729353443ed2a214cf884f84cf",class:"\n flex-shrink-0 cursor-pointer p-2 text-storm-200\n hover:text-storm-500 hover:text-white\n dark:text-hurricane-200\n "},o("p-icon",{key:"9ecb91fdf9154fa881b16a5c3a028eb9dc7e5b9e",flip:this.actionIconFlip,rotate:this.actionIconRotate,variant:this.actionIcon})))))}_onClick(){this.enableAction&&this.action.emit()}static get style(){return"*{box-sizing:border-box}.static{position:static}.m-0{margin:0}.flex{display:flex}.h-9{height:2.25rem}.w-\\[2px\\]{width:2px}.w-\\[calc\\(100\\%-2px-0\\.5rem\\)\\]{width:calc(100% - 2px - .5rem)}.w-full{width:100%}.min-w-0{min-width:0}.flex-shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-storm-100{--tw-border-opacity:1;border-color:rgb(209 210 212/var(--tw-border-opacity,1))}.bg-amber-500{--tw-bg-opacity:1;background-color:rgb(225 159 35/var(--tw-bg-opacity,1))}.bg-indigo-800{--tw-bg-opacity:1;background-color:rgb(27 88 210/var(--tw-bg-opacity,1))}.bg-negative-red-500{--tw-bg-opacity:1;background-color:rgb(230 30 30/var(--tw-bg-opacity,1))}.bg-positive-green-500{--tw-bg-opacity:1;background-color:rgb(92 195 14/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.p-2{padding:.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.text-storm-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.shadow-2{--tw-shadow:0 1px 1px rgba(0,2,2,.04),0 2px 2px rgba(0,2,2,.04),0 4px 4px rgba(0,2,2,.04);--tw-shadow-colored:0 1px 1px var(--tw-shadow-color),0 2px 2px var(--tw-shadow-color),0 4px 4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:text-storm-500:hover{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.hover\\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:border-hurricane-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(24 30 41/var(--tw-border-opacity,1))}.dark\\:bg-amber-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(255 231 92/var(--tw-bg-opacity,1))}.dark\\:bg-hurricane-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}.dark\\:bg-indigo-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(165 194 252/var(--tw-bg-opacity,1))}.dark\\:bg-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(255 92 92/var(--tw-bg-opacity,1))}.dark\\:bg-positive-green-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(98 255 92/var(--tw-bg-opacity,1))}.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-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\\:border-hurricane-800:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(24 30 41/var(--tw-border-opacity,1))}.dark\\:bg-amber-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 231 92/var(--tw-bg-opacity,1))}.dark\\:bg-hurricane-800:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}.dark\\:bg-indigo-400:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(165 194 252/var(--tw-bg-opacity,1))}.dark\\:bg-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 92 92/var(--tw-bg-opacity,1))}.dark\\:bg-positive-green-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(98 255 92/var(--tw-bg-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-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[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"]}]);function h(){"undefined"!=typeof customElements&&["p-toast","p-icon"].forEach((e=>{switch(e){case"p-toast":customElements.get(t(e))||customElements.define(t(e),s);break;case"p-icon":customElements.get(t(e))||c()}}))}h();const g=s,p=h;export{g as PToast,p as defineCustomElement}
|
|
@@ -261,6 +261,14 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
261
261
|
return import(
|
|
262
262
|
/* webpackMode: "lazy" */
|
|
263
263
|
'./p-stepper.entry.js').then(processMod, consoleError);
|
|
264
|
+
case 'p-submenu':
|
|
265
|
+
return import(
|
|
266
|
+
/* webpackMode: "lazy" */
|
|
267
|
+
'./p-submenu.entry.js').then(processMod, consoleError);
|
|
268
|
+
case 'p-submenu-item':
|
|
269
|
+
return import(
|
|
270
|
+
/* webpackMode: "lazy" */
|
|
271
|
+
'./p-submenu-item.entry.js').then(processMod, consoleError);
|
|
264
272
|
case 'p-tab-container':
|
|
265
273
|
return import(
|
|
266
274
|
/* webpackMode: "lazy" */
|