@nubisco/ui 5.28.0 → 5.29.0
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/{Checkbox-lWejJzIQ.cjs → Checkbox-B0VPSJBY.cjs} +1 -1
- package/dist/{Checkbox-B3gBM6xy.js → Checkbox-Cj70wwUV.js} +1 -1
- package/dist/{CheckboxGroup-OKmBXLpx.cjs → CheckboxGroup-CzhomyRH.cjs} +1 -1
- package/dist/{CheckboxGroup-VqnA0eDK.js → CheckboxGroup-CzpbYjaA.js} +1 -1
- package/dist/{Confirm-Bdc104-K.cjs → Confirm-9xk3l58e.cjs} +1 -1
- package/dist/{Confirm-CpKo6Tav.js → Confirm-CpufclnJ.js} +1 -1
- package/dist/{DataTable-DwLWLUUt.js → DataTable-7mjrUxT9.js} +1 -1
- package/dist/{DataTable-D0JW9sxz.cjs → DataTable-OfThpfks.cjs} +1 -1
- package/dist/{InlineLoading-B7C1HZtr.js → InlineLoading-C06ETzoT.js} +1 -1
- package/dist/{InlineLoading-DajzDrr_.cjs → InlineLoading-DdgaHvhk.cjs} +1 -1
- package/dist/{NotificationCenter-C4bl-hce.js → NotificationCenter-DMIqGkxv.js} +2 -2
- package/dist/{NotificationCenter-C2130M0V.cjs → NotificationCenter-_v_X9zLG.cjs} +1 -1
- package/dist/{SidebarCollapseToggle-DdK0qyKD.cjs → SidebarCollapseToggle-CcxDjKZU.cjs} +1 -1
- package/dist/{SidebarCollapseToggle-B_oddrZx.js → SidebarCollapseToggle-xbeMvxja.js} +1 -1
- package/dist/{Skeleton-CPBLVOuL.cjs → Skeleton-Bc9jsinl.cjs} +1 -1
- package/dist/{Skeleton-C63S5PPZ.js → Skeleton-C3VaNLNl.js} +1 -1
- package/dist/{Spinner-RE8B_3vN.js → Spinner-C5ouuwn-.js} +1 -1
- package/dist/{Spinner-DLK43NYL.cjs → Spinner-JayAXEyd.cjs} +1 -1
- package/dist/{Toaster-8VbpsvMs.cjs → Toaster-tkwHvYWX.cjs} +1 -1
- package/dist/{Toaster-Bq7EF4tn.js → Toaster-uheAMTLu.js} +1 -1
- package/dist/UserMenu-Cevg8GZ4.js +356 -0
- package/dist/UserMenu-YTQzRpOY.cjs +1 -0
- package/dist/all.cjs +1 -1
- package/dist/all.mjs +142 -142
- package/dist/component-styles.json +3 -0
- package/dist/components/Charts/GanttChart.cjs +1 -1
- package/dist/components/Charts/GanttChart.mjs +1 -1
- package/dist/components/Charts/InterpolationChart.cjs +1 -1
- package/dist/components/Charts/InterpolationChart.mjs +1 -1
- package/dist/components/Charts/LineChart.cjs +1 -1
- package/dist/components/Charts/LineChart.mjs +1 -1
- package/dist/components/Charts/PieChart.cjs +1 -1
- package/dist/components/Charts/PieChart.mjs +1 -1
- package/dist/components/Checkbox.cjs +1 -1
- package/dist/components/Checkbox.mjs +1 -1
- package/dist/components/CheckboxGroup.cjs +1 -1
- package/dist/components/CheckboxGroup.mjs +1 -1
- package/dist/components/ColorStrip.cjs +1 -1
- package/dist/components/ColorStrip.mjs +1 -1
- package/dist/components/CommandPalette.cjs +1 -1
- package/dist/components/CommandPalette.mjs +1 -1
- package/dist/components/Confirm.cjs +1 -1
- package/dist/components/Confirm.mjs +1 -1
- package/dist/components/DataTable.cjs +1 -1
- package/dist/components/DataTable.mjs +1 -1
- package/dist/components/DragHandle.cjs +1 -1
- package/dist/components/DragHandle.mjs +1 -1
- package/dist/components/Flag.cjs +1 -1
- package/dist/components/Flag.mjs +1 -1
- package/dist/components/FloatingToolbar.cjs +1 -1
- package/dist/components/FloatingToolbar.mjs +1 -1
- package/dist/components/InlineEdit.cjs +1 -1
- package/dist/components/InlineEdit.mjs +1 -1
- package/dist/components/InlineLoading.cjs +1 -1
- package/dist/components/InlineLoading.mjs +1 -1
- package/dist/components/JsonTree.cjs +1 -1
- package/dist/components/JsonTree.mjs +1 -1
- package/dist/components/Layer.cjs +1 -1
- package/dist/components/Layer.mjs +1 -1
- package/dist/components/MenuBar.cjs +1 -1
- package/dist/components/MenuBar.mjs +1 -1
- package/dist/components/MenuBarItem.cjs +1 -1
- package/dist/components/MenuBarItem.mjs +1 -1
- package/dist/components/MenuDivider.cjs +1 -1
- package/dist/components/MenuDivider.mjs +1 -1
- package/dist/components/Modal.cjs +1 -1
- package/dist/components/Modal.mjs +1 -1
- package/dist/components/NotificationCenter.cjs +1 -1
- package/dist/components/NotificationCenter.mjs +1 -1
- package/dist/components/Pagination.cjs +1 -1
- package/dist/components/Pagination.mjs +1 -1
- package/dist/components/ProgressBar.cjs +1 -1
- package/dist/components/ProgressBar.mjs +1 -1
- package/dist/components/Radio.cjs +1 -1
- package/dist/components/Radio.mjs +1 -1
- package/dist/components/Shell.cjs +1 -1
- package/dist/components/Shell.mjs +1 -1
- package/dist/components/SidebarBrand.cjs +1 -1
- package/dist/components/SidebarBrand.mjs +1 -1
- package/dist/components/SidebarCollapseToggle.cjs +1 -1
- package/dist/components/SidebarCollapseToggle.mjs +1 -1
- package/dist/components/SidebarHeaderToggle.cjs +1 -1
- package/dist/components/SidebarHeaderToggle.mjs +1 -1
- package/dist/components/SidebarLink.cjs +1 -1
- package/dist/components/SidebarLink.mjs +1 -1
- package/dist/components/SidebarMenu.cjs +1 -1
- package/dist/components/SidebarMenu.mjs +1 -1
- package/dist/components/SidebarMenuGroup.cjs +1 -1
- package/dist/components/SidebarMenuGroup.mjs +1 -1
- package/dist/components/SidebarMenuItem.cjs +1 -1
- package/dist/components/SidebarMenuItem.mjs +1 -1
- package/dist/components/SidebarStatus.cjs +1 -1
- package/dist/components/SidebarStatus.mjs +1 -1
- package/dist/components/Skeleton.cjs +1 -1
- package/dist/components/Skeleton.mjs +1 -1
- package/dist/components/Spinner.cjs +1 -1
- package/dist/components/Spinner.mjs +1 -1
- package/dist/components/Submenu.cjs +1 -1
- package/dist/components/Submenu.mjs +1 -1
- package/dist/components/Toast.cjs +1 -1
- package/dist/components/Toast.mjs +1 -1
- package/dist/components/Toaster.cjs +1 -1
- package/dist/components/Toaster.mjs +1 -1
- package/dist/components/UserMenu.cjs +1 -1
- package/dist/components/UserMenu.d.ts +8 -0
- package/dist/components/UserMenu.mjs +1 -1
- package/dist/components/UserMenu.vue.d.ts +5 -4
- package/dist/components/UserMenu.vue.d.ts.map +1 -1
- package/dist/components/Video.cjs +1 -1
- package/dist/components/Video.mjs +1 -1
- package/dist/components/Wireframe.cjs +1 -1
- package/dist/components/Wireframe.mjs +1 -1
- package/dist/composables/useConfirm.composable.cjs +1 -1
- package/dist/composables/useConfirm.composable.mjs +2 -2
- package/dist/composables/useInlineLoading.composable.cjs +1 -1
- package/dist/composables/useInlineLoading.composable.mjs +1 -1
- package/dist/composables/useLoadingAnnouncer.composable.cjs +1 -1
- package/dist/composables/useLoadingAnnouncer.composable.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +79 -79
- package/dist/styles/UserMenu.css +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/dist/UserMenu-DuAQ0yne.js +0 -313
- package/dist/UserMenu-FhWFKqzy.cjs +0 -1
- /package/dist/{CheckboxGroup.context-B2qjPnB2.js → CheckboxGroup.context-BWseGFxY.js} +0 -0
- /package/dist/{CheckboxGroup.context-DyFYVLH1.cjs → CheckboxGroup.context-DPq5hmH0.cjs} +0 -0
- /package/dist/{ColorStrip-c5l3AF0f.js → ColorStrip-C6KK7RMa.js} +0 -0
- /package/dist/{ColorStrip-COhVH__l.cjs → ColorStrip-CjNDptlR.cjs} +0 -0
- /package/dist/{CommandPalette-CU8gkgTx.js → CommandPalette-DfWRSIQ7.js} +0 -0
- /package/dist/{CommandPalette-zmNIqPex.cjs → CommandPalette-iMOtCNQy.cjs} +0 -0
- /package/dist/{DragHandle-BbgSL4IW.js → DragHandle-DCm6Mtv9.js} +0 -0
- /package/dist/{DragHandle-bosa6iXA.cjs → DragHandle-_bikrb5H.cjs} +0 -0
- /package/dist/{Flag-C326U1pM.cjs → Flag-B5EaQ5Dl.cjs} +0 -0
- /package/dist/{Flag-DBHUM-oa.js → Flag-Dc0DtID0.js} +0 -0
- /package/dist/{FloatingToolbar-CMYR7_b_.cjs → FloatingToolbar-Cqx8LnTK.cjs} +0 -0
- /package/dist/{FloatingToolbar-B_VISp4J.js → FloatingToolbar-DBC-2FlB.js} +0 -0
- /package/dist/{GanttChart-BTvjVa_d.js → GanttChart-CBNjVceP.js} +0 -0
- /package/dist/{GanttChart-owqg5s-X.cjs → GanttChart-DSiFcLIL.cjs} +0 -0
- /package/dist/{InlineEdit-Hu3BeYtc.cjs → InlineEdit-_QMSc24F.cjs} +0 -0
- /package/dist/{InlineEdit-m8cxoayp.js → InlineEdit-xdCv1gWm.js} +0 -0
- /package/dist/{InterpolationChart-Bt3_BiHO.js → InterpolationChart-B5c9PPgm.js} +0 -0
- /package/dist/{InterpolationChart-C2MFUf1D.cjs → InterpolationChart-CW6jsxbG.cjs} +0 -0
- /package/dist/{JsonTree-B3TskapA.cjs → JsonTree-CB1TWqPT.cjs} +0 -0
- /package/dist/{JsonTree-DzEsyR3A.js → JsonTree-CJ3tk08k.js} +0 -0
- /package/dist/{Layer-DsNOdX44.js → Layer-CKmhBz7s.js} +0 -0
- /package/dist/{Layer-BRDO-CDw.cjs → Layer-rgAWsfwJ.cjs} +0 -0
- /package/dist/{LineChart-CjlCW-us.cjs → LineChart-BceHLI2r.cjs} +0 -0
- /package/dist/{LineChart-CKGlZDLI.js → LineChart-DrEv3pAe.js} +0 -0
- /package/dist/{MenuBar-CFCpmpU7.cjs → MenuBar-C4j3ytQu.cjs} +0 -0
- /package/dist/{MenuBar-BTSnSFvG.js → MenuBar-Dx_v4ZPi.js} +0 -0
- /package/dist/{MenuBarItem-D1LSKPxk.cjs → MenuBarItem-BvWV59vi.cjs} +0 -0
- /package/dist/{MenuBarItem-C7TPhYnN.js → MenuBarItem-DMY6OdWn.js} +0 -0
- /package/dist/{MenuDivider-BosPmiMO.js → MenuDivider-BYKt84Gz.js} +0 -0
- /package/dist/{MenuDivider-kpF-fk4u.cjs → MenuDivider-CRvC2uO4.cjs} +0 -0
- /package/dist/{Modal-CWeCxkXh.js → Modal-BrnJwgh5.js} +0 -0
- /package/dist/{Modal-Bcl003Rp.cjs → Modal-Dffb6fJW.cjs} +0 -0
- /package/dist/{Pagination-DJ8ZuHST.js → Pagination-D5By9-m3.js} +0 -0
- /package/dist/{Pagination-d-FYh-zd.cjs → Pagination-DX4XgQZM.cjs} +0 -0
- /package/dist/{PieChart-CQBJlBJI.js → PieChart-DaskwoU5.js} +0 -0
- /package/dist/{PieChart-DjFeDqdk.cjs → PieChart-njhwQKaO.cjs} +0 -0
- /package/dist/{ProgressBar-Dk8ku42W.js → ProgressBar-ClKgPiWo.js} +0 -0
- /package/dist/{ProgressBar-rDZzTPx1.cjs → ProgressBar-DPMCRM1f.cjs} +0 -0
- /package/dist/{Radio-DOaF9D6b.js → Radio-CFAdCHBt.js} +0 -0
- /package/dist/{Radio-rRJPsgzF.cjs → Radio-D7vxGglR.cjs} +0 -0
- /package/dist/{Shell-DEHVQfU0.cjs → Shell-CxZZhH9l.cjs} +0 -0
- /package/dist/{Shell-BYLc0EQA.js → Shell-qpPhxpqT.js} +0 -0
- /package/dist/{SidebarBrand-Ba6QIT1v.js → SidebarBrand-BThjow9_.js} +0 -0
- /package/dist/{SidebarBrand-BqSqQNPa.cjs → SidebarBrand-UfpenlDY.cjs} +0 -0
- /package/dist/{SidebarHeaderToggle-DBiI4idz.js → SidebarHeaderToggle-B5QC_zBy.js} +0 -0
- /package/dist/{SidebarHeaderToggle-BZ_YU8EU.cjs → SidebarHeaderToggle-CuYM063E.cjs} +0 -0
- /package/dist/{SidebarLink-CrAE9jVP.js → SidebarLink-Bl-Sj2nx.js} +0 -0
- /package/dist/{SidebarLink-Q_24cprL.cjs → SidebarLink-CwmNyhlK.cjs} +0 -0
- /package/dist/{SidebarMenu-CG7INeFB.cjs → SidebarMenu-CWFsKG2j.cjs} +0 -0
- /package/dist/{SidebarMenu-CyU7BDNi.js → SidebarMenu-D8-2usxB.js} +0 -0
- /package/dist/{SidebarMenuGroup-DBYK7rcf.js → SidebarMenuGroup-CxsPzWRO.js} +0 -0
- /package/dist/{SidebarMenuGroup-DTBKBUjn.cjs → SidebarMenuGroup-DDW1MQYi.cjs} +0 -0
- /package/dist/{SidebarMenuItem-Cz47rvbg.js → SidebarMenuItem-Bz7iZxp4.js} +0 -0
- /package/dist/{SidebarMenuItem-DN4V5g22.cjs → SidebarMenuItem-C_JHC7Yt.cjs} +0 -0
- /package/dist/{SidebarStatus-DZsRiVIq.cjs → SidebarStatus-DS2lYq12.cjs} +0 -0
- /package/dist/{SidebarStatus-CYKWpvws.js → SidebarStatus-dCli4_vh.js} +0 -0
- /package/dist/{Submenu-CpNOHf-e.cjs → Submenu-DxxFiGqt.cjs} +0 -0
- /package/dist/{Submenu-DKpL5htf.js → Submenu-mUsq51XV.js} +0 -0
- /package/dist/{Toast-YnPMZomR.js → Toast-Bv4CvhFI.js} +0 -0
- /package/dist/{Toast-CR0xUGgl.cjs → Toast-D666KPCk.cjs} +0 -0
- /package/dist/{Video-DDytsRcF.cjs → Video-B-RuZL-9.cjs} +0 -0
- /package/dist/{Video-BbraQauu.js → Video-C6KUqrBg.js} +0 -0
- /package/dist/{Wireframe-BRgBHnL8.js → Wireframe-DSvovZjf.js} +0 -0
- /package/dist/{Wireframe-CZR_2ZTP.cjs → Wireframe-DY1c_O26.cjs} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-DcywjZNG.js → useLoadingAnnouncer.composable-BknuRv_m.js} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-B3UYqGG3.cjs → useLoadingAnnouncer.composable-DcBmMSBO.cjs} +0 -0
package/dist/ui.css
CHANGED
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
.nb-toaster[data-v-dad77da7]{z-index:var(--nb-zindex-toast);padding:var(--nb-toaster-inset,var(--nb-spacing-24));pointer-events:none;box-sizing:border-box;max-width:100vw;display:flex;position:fixed}@media (width<=671px){.nb-toaster[data-v-dad77da7]{padding:var(--nb-toaster-inset-sm,var(--nb-spacing-12));inset-inline:0}.nb-toaster .nb-toaster__stack[data-v-dad77da7],.nb-toaster .nb-toaster__item[data-v-dad77da7]{width:100%}}.nb-toaster__stack[data-v-dad77da7]{gap:var(--nb-toaster-gap,var(--nb-spacing-12));flex-direction:column;max-width:100%;display:flex;position:relative}.nb-toaster__item[data-v-dad77da7]{pointer-events:auto;max-width:100%;position:relative}.nb-toaster__item[data-v-dad77da7] .nb-toast{max-width:min(var(--nb-toaster-max-width,23.75rem), 100%)}.nb-toaster__announcer[data-v-dad77da7]{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.nb-toaster--top-start[data-v-dad77da7],.nb-toaster--top[data-v-dad77da7],.nb-toaster--top-end[data-v-dad77da7]{--nb-toaster-shift:0 calc(var(--nb-toaster-gap,var(--nb-spacing-12)) * -1);top:0}.nb-toaster--top-start .nb-toaster__stack[data-v-dad77da7],.nb-toaster--top .nb-toaster__stack[data-v-dad77da7],.nb-toaster--top-end .nb-toaster__stack[data-v-dad77da7]{flex-direction:column}.nb-toaster--bottom-start[data-v-dad77da7],.nb-toaster--bottom[data-v-dad77da7],.nb-toaster--bottom-end[data-v-dad77da7]{--nb-toaster-shift:0 var(--nb-toaster-gap,var(--nb-spacing-12));bottom:0}.nb-toaster--bottom-start .nb-toaster__stack[data-v-dad77da7],.nb-toaster--bottom .nb-toaster__stack[data-v-dad77da7],.nb-toaster--bottom-end .nb-toaster__stack[data-v-dad77da7]{flex-direction:column-reverse}.nb-toaster--top-start[data-v-dad77da7],.nb-toaster--bottom-start[data-v-dad77da7]{--nb-toaster-shift:calc(var(--nb-toaster-inset,var(--nb-spacing-24)) * -1) 0;justify-content:flex-start;inset-inline-start:0}.nb-toaster--top-end[data-v-dad77da7],.nb-toaster--bottom-end[data-v-dad77da7]{--nb-toaster-shift:var(--nb-toaster-inset,var(--nb-spacing-24)) 0;justify-content:flex-end;inset-inline-end:0}.nb-toaster--top[data-v-dad77da7],.nb-toaster--bottom[data-v-dad77da7]{justify-content:center;inset-inline:0}.nb-toaster-enter-active[data-v-dad77da7],.nb-toaster-leave-active[data-v-dad77da7],.nb-toaster-move[data-v-dad77da7]{transition:opacity var(--nb-animation-fast) ease, translate var(--nb-animation-fast) ease}.nb-toaster-enter-from[data-v-dad77da7],.nb-toaster-leave-to[data-v-dad77da7]{opacity:0;translate:var(--nb-toaster-shift)}.nb-toaster-leave-active[data-v-dad77da7]{position:absolute}.nb-toaster--top-end .nb-toaster-leave-active[data-v-dad77da7],.nb-toaster--bottom-end .nb-toaster-leave-active[data-v-dad77da7]{inset-inline-end:0}.nb-toaster--top-start .nb-toaster-leave-active[data-v-dad77da7],.nb-toaster--bottom-start .nb-toaster-leave-active[data-v-dad77da7]{inset-inline-start:0}@media (forced-colors:active){.nb-toaster__item[data-v-dad77da7]:not(:has(.nb-toast)){background:canvas;outline:1px solid canvastext}}@media (prefers-reduced-motion:reduce){.nb-toaster[data-v-dad77da7]{--nb-toaster-shift:0 0}.nb-toaster-enter-active[data-v-dad77da7],.nb-toaster-leave-active[data-v-dad77da7]{transition:opacity var(--nb-animation-fast) ease}.nb-toaster-move[data-v-dad77da7]{transition:none}}
|
|
92
92
|
.nb-tree[data-v-f91fb593]{-webkit-user-select:none;user-select:none;color:var(--nb-c-text-muted);margin:0;padding:0;font-size:.875rem;line-height:1.2;list-style:none;overflow:hidden}.nb-tree--compact[data-v-f91fb593]{font-size:.75rem}.nb-tree--compact[data-v-f91fb593] .nb-tree-node__label{min-block-size:1.5rem}
|
|
93
93
|
.nb-tree-node[data-v-803e5e88]{border-radius:var(--nb-radius-control-sm);--nb-radius-context:var(--nb-radius-control-sm);color:var(--nb-c-text-muted);outline:none;list-style:none}.nb-tree-node[data-v-803e5e88]:hover{cursor:pointer}.nb-tree-node__label[data-v-803e5e88]{box-sizing:border-box;border-radius:var(--nb-radius-control-sm);align-items:center;gap:0;min-block-size:2rem;inline-size:100%;padding-inline-end:1rem;transition:background .1s;display:flex;position:relative}.nb-tree-node__label[data-v-803e5e88]:hover{background:var(--nb-c-surface-hover,var(--nb-c-layer-hover-1,#ffffff0f));color:var(--nb-c-text)}.nb-tree-node__label:hover .nb-tree-node__toggle-icon[data-v-803e5e88],.nb-tree-node__label:hover .nb-tree-node__icon[data-v-803e5e88]{color:var(--nb-c-text)}.nb-tree-node:focus>.nb-tree-node__label[data-v-803e5e88]{outline:2px solid var(--nb-c-focus-ring,var(--nb-c-primary));outline-offset:-2px}.nb-tree-node--disabled:focus>.nb-tree-node__label[data-v-803e5e88]{outline:none}.nb-tree-node--selected>.nb-tree-node__label[data-v-803e5e88]{background:color-mix(in srgb, var(--nb-c-primary) 12%, var(--nb-c-surface,transparent));color:var(--nb-c-text)}.nb-tree-node--selected>.nb-tree-node__label[data-v-803e5e88]:before{background-color:var(--nb-c-primary);content:"";block-size:100%;inline-size:4px;position:absolute;inset-block-start:0;inset-inline-start:0}.nb-tree-node--selected>.nb-tree-node__label[data-v-803e5e88]:hover{background:color-mix(in srgb, var(--nb-c-primary) 18%, var(--nb-c-surface,transparent))}.nb-tree-node--selected>.nb-tree-node__label .nb-tree-node__toggle-icon[data-v-803e5e88],.nb-tree-node--selected>.nb-tree-node__label .nb-tree-node__icon[data-v-803e5e88]{color:var(--nb-c-text)}.nb-tree-node--disabled[data-v-803e5e88]{color:var(--nb-c-text-subtle,var(--nb-c-text-muted));cursor:not-allowed}.nb-tree-node--disabled .nb-tree-node__label[data-v-803e5e88],.nb-tree-node--disabled .nb-tree-node__label[data-v-803e5e88]:hover,.nb-tree-node--disabled .nb-tree-node__label:hover .nb-tree-node__toggle-icon[data-v-803e5e88],.nb-tree-node--disabled .nb-tree-node__label:hover .nb-tree-node__icon[data-v-803e5e88]{background:var(--nb-c-field-bg,transparent);color:var(--nb-c-text-subtle,var(--nb-c-text-muted));cursor:not-allowed}.nb-tree-node__toggle[data-v-803e5e88]{cursor:pointer;border:0;flex-shrink:0;justify-content:center;align-items:center;block-size:1.5rem;inline-size:1.5rem;margin-inline:-.25rem .25rem;padding:0;display:flex}@media (width<=671.98px) and (pointer:coarse),(pointer:coarse) and (hover:none) and (height<=500px){.nb-tree-node__toggle[data-v-803e5e88]{position:relative}.nb-tree-node__toggle[data-v-803e5e88]:after{content:"";position:absolute;inset-block:min(0px,50% - 22px);inset-inline:min(0px,50% - 22px)}}.nb-tree-node__toggle[data-v-803e5e88]:focus{outline:none}.nb-tree-node__toggle-icon[data-v-803e5e88]{color:var(--nb-c-text-muted);transition:transform .1s;transform:rotate(0)}.nb-tree-node__toggle-icon--expanded[data-v-803e5e88]{transform:rotate(90deg)}.nb-tree-node__toggle-spacer[data-v-803e5e88]{flex-shrink:0;inline-size:1.25rem}.nb-tree-node__icon[data-v-803e5e88]{color:var(--nb-c-text-muted);flex-shrink:0;min-block-size:1rem;min-inline-size:1rem;margin-inline:.5rem}.nb-tree-node__toggle+.nb-tree-node__label__details .nb-tree-node__icon[data-v-803e5e88],.nb-tree-node__toggle+.nb-tree-node__icon[data-v-803e5e88]{margin-inline-start:.25rem}.nb-tree-node__label-text[data-v-803e5e88]{text-overflow:ellipsis;white-space:nowrap;line-height:1.2;font-size:inherit;flex:1;padding-inline-start:.25rem;display:block;overflow:hidden}.nb-tree-node__actions[data-v-803e5e88]{opacity:0;align-items:center;gap:2px;margin-inline-start:auto;transition:opacity .1s;display:flex}.nb-tree-node__meta[data-v-803e5e88]{align-items:center;gap:calc(var(--nb-base-unit,8px) * 1);min-width:0;color:var(--nb-c-text-muted);margin-inline-start:auto;display:flex}.nb-tree-node__meta+.nb-tree-node__actions[data-v-803e5e88]{margin-inline-start:calc(var(--nb-base-unit,8px) * 1)}.nb-tree-node__label:hover .nb-tree-node__actions[data-v-803e5e88],.nb-tree-node--selected .nb-tree-node__actions[data-v-803e5e88]{opacity:1}.nb-tree-node__children[data-v-803e5e88]{margin:0;padding:0;list-style:none}.nb-tree-node--dragging[data-v-803e5e88]{opacity:.4}.nb-tree-node--drop-before>.nb-tree-node__label[data-v-803e5e88]{box-shadow:inset 0 2px 0 0 var(--nb-c-primary)}.nb-tree-node--drop-after>.nb-tree-node__label[data-v-803e5e88]{box-shadow:inset 0 -2px 0 0 var(--nb-c-primary)}.nb-tree-node--drop-inside>.nb-tree-node__label[data-v-803e5e88]{background:color-mix(in srgb, var(--nb-c-primary) 15%, transparent);box-shadow:inset 0 0 0 2px var(--nb-c-primary)}
|
|
94
|
-
.nb-user-menu{display:flex;position:relative}.nb-user-menu--identity{width:100%}.nb-user-menu .nb-user-menu__avatar{border:1px solid var(--nb-c-layer-border-3);background:var(--nb-c-primary,#6b46c1);width:28px;height:28px;color:var(--nb-c-primary-a11y,#fff);letter-spacing:.02em;cursor:pointer;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;padding:0;font-size:.64rem;font-weight:700;display:flex;overflow:hidden}.nb-user-menu .nb-user-menu__avatar:disabled{opacity:.6;cursor:default}.nb-user-menu__picture{object-fit:cover;width:100%;height:100%;display:block}.nb-user-menu__identity{box-sizing:border-box;border-radius:var(--nb-radius-control-sm);--nb-radius-context:var(--nb-radius-control-sm);width:100%;color:var(--nb-shell-sidebar-link-hover-color,#fff);text-align:left;font:inherit;cursor:pointer;background:0 0;border:none;align-items:center;gap:.625rem;padding:.45rem .75rem .45rem calc(.75rem - 6px);font-size:.8125rem;transition:background .12s;display:flex}.nb-user-menu__identity:hover:not(:disabled){background:var(--nb-shell-sidebar-link-hover-bg,#ffffff14)}.nb-user-menu__identity:focus-visible{outline:2px solid var(--nb-c-focus-ring);outline-offset:-2px}.nb-user-menu__identity:disabled{opacity:.6;cursor:default}.nb-user-menu__identity-text{flex-direction:column;min-width:0;line-height:1.25;display:flex}.nb-user-menu__identity-name,.nb-user-menu__identity-email{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.nb-user-menu__identity-name{font-weight:600}.nb-user-menu__identity-email{color:var(--nb-shell-sidebar-link-color);font-size:.75em}.nb-user-menu__panel{background:var(--nb-c-layer-3);border:1px solid var(--nb-c-layer-border-3);border-radius:var(--nb-radius-popover);--nb-radius-context:var(--nb-radius-popover);width:260px;z-index:var(--nb-zindex-menu);padding:4px;position:fixed;box-shadow:0 12px 32px #0000002e}@media (width<=671.98px),(pointer:coarse) and (hover:none) and (height<=500px){.nb-user-menu__panel{max-width:calc(100vw - 16px);z-index:var(--nb-zindex-modal-dropdown)}}.nb-user-menu-pop-enter-active,.nb-user-menu-pop-leave-active{transition:opacity .12s,transform .12s}.nb-user-menu-pop-enter-from,.nb-user-menu-pop-leave-to{opacity:0;transform:translate(-4px)}.nb-user-menu__label{text-transform:uppercase;letter-spacing:.07em;color:var(--nb-c-text-subtle);margin:.15rem 1rem 0;font-size:.64rem;font-weight:700}.nb-user-menu__email{color:var(--nb-c-text);text-overflow:ellipsis;margin:.1rem 1rem .35rem;font-size:.84rem;font-weight:600;overflow:hidden}.nb-user-menu__divider{background:var(--nb-c-layer-border-3);height:1px;margin:.35rem 0}.nb-user-menu__account,.nb-user-menu__action{--nb-radius-self:max(0px, calc(var(--nb-radius-context,0px) - 5px));border-radius:var(--nb-radius-self);width:100%;color:var(--nb-c-text);cursor:pointer;text-align:left;background:0 0;border:0;align-items:center;gap:.5rem;padding:.45rem .75rem;font-family:inherit;font-size:.82rem;display:flex}.nb-user-menu__account:hover,.nb-user-menu__action:hover{background:var(--nb-c-layer-hover-3,#0000000d)}.nb-user-menu__account--current{cursor:default}.nb-user-menu__account--current:hover{background:0 0}.nb-user-menu__account-main{flex-direction:column;flex:1;min-width:0;display:flex}.nb-user-menu__account-email{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.nb-user-menu__account-name{color:var(--nb-c-text-subtle);font-size:.72rem}.nb-user-menu__check{color:var(--nb-c-success,#16a34a)}.nb-user-menu__remove{color:var(--nb-c-text-subtle);cursor:pointer}.nb-user-menu__remove:hover{color:var(--nb-c-danger,#b91c1c)}.nb-user-menu__brand{color:var(--nb-c-text-muted);-webkit-user-select:none;user-select:none;align-items:center;gap:.35rem;margin:0;padding:.3rem 1rem .15rem;font-size:.68rem;line-height:1.2;display:flex}.nb-user-menu__mark{flex:none;width:13px;height:13px;display:block}.nb-user-menu__brand-name{color:var(--nb-c-text);font-weight:600}.nb-user-menu__action--danger{color:var(--nb-c-danger,#b91c1c)}.nb-user-menu__action--danger:hover{background:#ef444414}
|
|
94
|
+
.nb-user-menu{display:flex;position:relative}.nb-user-menu--identity{width:100%}.nb-user-menu .nb-user-menu__avatar{border:1px solid var(--nb-c-layer-border-3);background:var(--nb-c-primary,#6b46c1);width:28px;height:28px;color:var(--nb-c-primary-a11y,#fff);letter-spacing:.02em;cursor:pointer;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;padding:0;font-size:.64rem;font-weight:700;display:flex;overflow:hidden}.nb-user-menu .nb-user-menu__avatar:disabled{opacity:.6;cursor:default}.nb-user-menu__picture{object-fit:cover;width:100%;height:100%;display:block}.nb-user-menu__identity{box-sizing:border-box;border-radius:var(--nb-radius-control-sm);--nb-radius-context:var(--nb-radius-control-sm);width:100%;color:var(--nb-shell-sidebar-link-hover-color,#fff);text-align:left;font:inherit;cursor:pointer;background:0 0;border:none;align-items:center;gap:.625rem;padding:.45rem .75rem .45rem calc(.75rem - 6px);font-size:.8125rem;transition:background .12s;display:flex}.nb-user-menu__identity:hover:not(:disabled){background:var(--nb-shell-sidebar-link-hover-bg,#ffffff14)}.nb-user-menu__identity:focus-visible{outline:2px solid var(--nb-c-focus-ring);outline-offset:-2px}.nb-user-menu__identity:disabled{opacity:.6;cursor:default}.nb-user-menu__identity-text{flex-direction:column;min-width:0;line-height:1.25;display:flex}.nb-user-menu__identity-name,.nb-user-menu__identity-email{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.nb-user-menu__identity-name{font-weight:600}.nb-user-menu__identity-email{color:var(--nb-shell-sidebar-link-color);font-size:.75em}.nb-user-menu__panel{background:var(--nb-c-layer-3);border:1px solid var(--nb-c-layer-border-3);border-radius:var(--nb-radius-popover);--nb-radius-context:var(--nb-radius-popover);width:260px;z-index:var(--nb-zindex-menu);padding:4px;position:fixed;box-shadow:0 12px 32px #0000002e}@media (width<=671.98px),(pointer:coarse) and (hover:none) and (height<=500px){.nb-user-menu__panel{max-width:calc(100vw - 16px);z-index:var(--nb-zindex-modal-dropdown)}}.nb-user-menu-pop-enter-active,.nb-user-menu-pop-leave-active{transition:opacity .12s,transform .12s}.nb-user-menu-pop-enter-from,.nb-user-menu-pop-leave-to{opacity:0;transform:translate(-4px)}.nb-user-menu__label{text-transform:uppercase;letter-spacing:.07em;color:var(--nb-c-text-subtle);margin:.15rem 1rem 0;font-size:.64rem;font-weight:700}.nb-user-menu__email{color:var(--nb-c-text);text-overflow:ellipsis;margin:.1rem 1rem .35rem;font-size:.84rem;font-weight:600;overflow:hidden}.nb-user-menu__appearance{padding:.25rem 1rem .35rem}.nb-user-menu__appearance-title{text-transform:uppercase;letter-spacing:.07em;color:var(--nb-c-text-subtle);margin:0 0 .4rem;font-size:.64rem;font-weight:700}.nb-user-menu__divider{background:var(--nb-c-layer-border-3);height:1px;margin:.35rem 0}.nb-user-menu__account,.nb-user-menu__action{--nb-radius-self:max(0px, calc(var(--nb-radius-context,0px) - 5px));border-radius:var(--nb-radius-self);width:100%;color:var(--nb-c-text);cursor:pointer;text-align:left;background:0 0;border:0;align-items:center;gap:.5rem;padding:.45rem .75rem;font-family:inherit;font-size:.82rem;display:flex}.nb-user-menu__account:hover,.nb-user-menu__action:hover{background:var(--nb-c-layer-hover-3,#0000000d)}.nb-user-menu__account--current{cursor:default}.nb-user-menu__account--current:hover{background:0 0}.nb-user-menu__account-main{flex-direction:column;flex:1;min-width:0;display:flex}.nb-user-menu__account-email{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.nb-user-menu__account-name{color:var(--nb-c-text-subtle);font-size:.72rem}.nb-user-menu__check{color:var(--nb-c-success,#16a34a)}.nb-user-menu__remove{color:var(--nb-c-text-subtle);cursor:pointer}.nb-user-menu__remove:hover{color:var(--nb-c-danger,#b91c1c)}.nb-user-menu__brand{color:var(--nb-c-text-muted);-webkit-user-select:none;user-select:none;align-items:center;gap:.35rem;margin:0;padding:.3rem 1rem .15rem;font-size:.68rem;line-height:1.2;display:flex}.nb-user-menu__mark{flex:none;width:13px;height:13px;display:block}.nb-user-menu__brand-name{color:var(--nb-c-text);font-weight:600}.nb-user-menu__action--danger{color:var(--nb-c-danger,#b91c1c)}.nb-user-menu__action--danger:hover{background:#ef444414}
|
|
95
95
|
.nb-video{width:100%;position:relative;overflow:hidden}.nb-video__media{object-fit:cover;width:100%;height:100%;display:block}.nb-video--contain .nb-video__media{object-fit:contain}.nb-video .nb-video__toggle{inset-inline-end:calc(var(--nb-base-unit) * 1.5);bottom:calc(var(--nb-base-unit) * 1.5);opacity:.85;border-radius:999px;position:absolute}.nb-video .nb-video__toggle:hover,.nb-video .nb-video__toggle:focus-visible{opacity:1}@media (width<=671.98px) and (pointer:coarse),(pointer:coarse) and (hover:none) and (height<=500px){.nb-video .nb-video__toggle{min-width:44px;min-height:44px}}
|
|
96
96
|
.nb-walkthrough[data-v-da2efbb1]{z-index:var(--nb-zindex-modal);position:fixed;inset:0}.nb-walkthrough--scrim[data-v-da2efbb1]{width:100%;height:100%;position:absolute;inset:0}.nb-walkthrough--scrim-fill[data-v-da2efbb1]{fill:var(--nb-c-scrim-strong)}.nb-walkthrough--ring[data-v-da2efbb1]{fill:none;stroke:var(--nb-c-primary);stroke-width:2px}.nb-walkthrough--popover[data-v-da2efbb1]{width:calc(var(--nb-base-unit) * 40);max-width:calc(100vw - var(--nb-base-unit) * 4);padding:calc(var(--nb-base-unit) * 2);border:1px solid var(--nb-c-border);border-radius:var(--nb-radius-popover);--nb-radius-context:var(--nb-radius-popover);background:var(--nb-c-surface);color:var(--nb-c-text);box-shadow:0 calc(var(--nb-base-unit) * 1.5) calc(var(--nb-base-unit) * 4) var(--nb-c-scrim);animation:nb-walkthrough-in-da2efbb1 var(--nb-animation-fast) ease-out;position:absolute}.nb-walkthrough--popover[data-v-da2efbb1]:focus{outline:none}.nb-walkthrough--popover[data-v-da2efbb1]:focus-visible{outline:2px solid var(--nb-c-focus-ring);outline-offset:2px}.nb-walkthrough--popover-centered[data-v-da2efbb1]{top:50%;left:50%;transform:translate(-50%,-50%)}.nb-walkthrough--title[data-v-da2efbb1]{margin:0 0 calc(var(--nb-base-unit) * .75);font-family:var(--nb-type-heading-01-family);font-size:var(--nb-type-heading-01-size);font-weight:var(--nb-type-heading-01-weight);line-height:var(--nb-type-heading-01-line-height);color:var(--nb-c-text)}.nb-walkthrough--body[data-v-da2efbb1]{font-family:var(--nb-type-body-md-family);font-size:var(--nb-type-body-md-size);font-weight:var(--nb-type-body-md-weight);line-height:var(--nb-type-body-md-line-height);color:var(--nb-c-text-muted)}.nb-walkthrough--body[data-v-da2efbb1] p{margin:0 0 calc(var(--nb-base-unit) * .75)}.nb-walkthrough--body[data-v-da2efbb1] p:last-child{margin-bottom:0}.nb-walkthrough--footer[data-v-da2efbb1]{justify-content:space-between;align-items:center;gap:var(--nb-base-unit);margin-top:calc(var(--nb-base-unit) * 2);padding-top:calc(var(--nb-base-unit) * 1.5);border-top:1px solid var(--nb-c-border);display:flex}.nb-walkthrough--progress[data-v-da2efbb1]{font-family:var(--nb-type-label-sm-family);font-size:var(--nb-type-label-sm-size);font-weight:var(--nb-type-label-sm-weight);line-height:var(--nb-type-label-sm-line-height);color:var(--nb-c-text-subtle);white-space:nowrap;margin:0}.nb-walkthrough--actions[data-v-da2efbb1]{align-items:center;gap:calc(var(--nb-base-unit) * .75);display:flex}@keyframes nb-walkthrough-in-da2efbb1{0%{opacity:0}to{opacity:1}}.nb-walkthrough--no-motion .nb-walkthrough--popover[data-v-da2efbb1]{animation:none}@media (prefers-reduced-motion:reduce){.nb-walkthrough--popover[data-v-da2efbb1]{animation:none}}
|
|
97
97
|
.nb-wireframe[data-v-0fbb2d4b]{--nb-wireframe-ink:var(--nb-c-text-subtle,#8a8a96);--nb-wireframe-accent:var(--nb-c-primary,#5856a9);--nb-wireframe-bg:var(--nb-c-surface,#fff);aspect-ratio:16/10;background:var(--nb-wireframe-bg);border:1px solid var(--nb-c-border,#e4e4ea);border-radius:var(--nb-radius-sm,6px);color:var(--nb-wireframe-ink);flex-direction:column;justify-content:center;gap:8px;padding:10px 12px;display:flex;overflow:hidden;container-type:size}.nb-wireframe--dark[data-v-0fbb2d4b]{--nb-wireframe-bg:#16161c;--nb-wireframe-ink:#9a9aac}.nb-wireframe__row[data-v-0fbb2d4b]{grid-template-columns:repeat(12,minmax(0,1fr));align-items:center;gap:8px;display:grid}.nb-wireframe__col[data-v-0fbb2d4b]{flex-direction:column;gap:4px;min-width:0;display:flex}.nb-wireframe__col--center[data-v-0fbb2d4b]{text-align:center;align-items:center}.nb-wireframe__col--end[data-v-0fbb2d4b]{align-items:flex-end}.nb-wireframe__bar[data-v-0fbb2d4b]{opacity:.35;background:currentColor;border-radius:2px;width:100%;height:3px;display:block}.nb-wireframe__bar--eyebrow[data-v-0fbb2d4b]{background:var(--nb-wireframe-accent);opacity:.7;width:28%;height:3px}.nb-wireframe__bar--title[data-v-0fbb2d4b]{opacity:.75;width:76%;height:7px}.nb-wireframe__bar--heading[data-v-0fbb2d4b]{opacity:.6;width:58%;height:5px}.nb-wireframe__bar--short[data-v-0fbb2d4b]{width:62%}.nb-wireframe__lines[data-v-0fbb2d4b]{flex-direction:column;gap:3px;width:100%;display:flex}.nb-wireframe__lines .nb-wireframe__bar--line[data-v-0fbb2d4b]:last-child:not(:first-child){width:70%}.nb-wireframe__col--center .nb-wireframe__lines[data-v-0fbb2d4b]{align-items:center}.nb-wireframe__inline[data-v-0fbb2d4b]{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.nb-wireframe__pill[data-v-0fbb2d4b]{border-radius:4px;width:22px;height:7px;display:block}.nb-wireframe__pill--primary[data-v-0fbb2d4b]{background:var(--nb-wireframe-accent)}.nb-wireframe__pill--outline[data-v-0fbb2d4b]{opacity:.6;border:1px solid}.nb-wireframe__pill--chip[data-v-0fbb2d4b]{opacity:.3;background:currentColor;width:14px;height:5px}.nb-wireframe__pill--active[data-v-0fbb2d4b]{background:var(--nb-wireframe-accent);opacity:1}.nb-wireframe__box[data-v-0fbb2d4b]{opacity:.22;background:currentColor;border-radius:3px;width:100%;display:block}.nb-wireframe__box--image[data-v-0fbb2d4b]{aspect-ratio:4/3;width:auto;max-width:100%;max-height:62cqh}.nb-wireframe__box--device[data-v-0fbb2d4b]{aspect-ratio:16/11;opacity:1;background:0 0;border:2px solid;width:auto;max-width:100%;max-height:72cqh;padding:2px}.nb-wireframe__box--icon[data-v-0fbb2d4b]{aspect-ratio:auto;width:10px;height:10px}.nb-wireframe__screen[data-v-0fbb2d4b]{opacity:.22;background:currentColor;border-radius:1px;width:100%;height:100%;display:block}.nb-wireframe__cards[data-v-0fbb2d4b]{gap:4px;width:100%;display:grid}.nb-wireframe__card[data-v-0fbb2d4b]{opacity:.8;border:1px solid;border-radius:3px;flex-direction:column;gap:3px;padding:4px;display:flex}.nb-wireframe__card--tile[data-v-0fbb2d4b]{aspect-ratio:1;opacity:.22;background:currentColor;border:0}.nb-wireframe__item[data-v-0fbb2d4b]{align-items:center;gap:3px;display:flex}.nb-wireframe__dot[data-v-0fbb2d4b]{background:var(--nb-wireframe-accent);border-radius:50%;flex:none;width:3px;height:3px}.nb-wireframe__field[data-v-0fbb2d4b]{opacity:.5;border:1px solid;border-radius:2px;flex:1;min-width:30px;height:7px;display:block}.nb-wireframe__quote[data-v-0fbb2d4b]{border-left:2px solid var(--nb-wireframe-accent);flex-direction:column;gap:3px;width:100%;padding-left:5px;display:flex}.nb-wireframe__divider[data-v-0fbb2d4b]{opacity:.25;background:currentColor;width:100%;height:1px;display:block}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nubisco/ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.29.0",
|
|
4
4
|
"description": "Vue 3 UI component library",
|
|
5
5
|
"packageManager": "pnpm@12.3.4+sha512.961aa41fb077da3a04a441d9f8e15ebc0c96da8ef710b2eb67bf9ee7cb0610eabd48f1fd85f51cffe73846785fa0f87c56a3a872a1d893f8446741b5cce45457",
|
|
6
6
|
"repository": {
|
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./Icon-rREAqsu0.js";
|
|
2
|
-
import { usePhoneLayout as t } from "./composables/usePhoneLayout.composable.mjs";
|
|
3
|
-
import { initialsOf as n } from "./utils/initials.helper.mjs";
|
|
4
|
-
import { t as ee } from "./NubiscoPlatformMark-CayXaZGB.js";
|
|
5
|
-
import { t as r } from "./vue-i18n-Dzm-MDw4.js";
|
|
6
|
-
import { Fragment as i, Teleport as te, Transition as ne, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, inject as re, nextTick as ie, normalizeClass as p, normalizeStyle as ae, onBeforeUnmount as oe, onMounted as se, openBlock as m, ref as h, renderList as ce, renderSlot as g, toDisplayString as _, unref as v, watch as le, withCtx as ue, withModifiers as de } from "vue";
|
|
7
|
-
import { regular as fe } from "@nubisco/ui/icons/check";
|
|
8
|
-
import { regular as pe } from "@nubisco/ui/icons/x";
|
|
9
|
-
import { regular as me } from "@nubisco/ui/icons/users";
|
|
10
|
-
import { regular as he } from "@nubisco/ui/icons/plus";
|
|
11
|
-
import { regular as ge } from "@nubisco/ui/icons/user";
|
|
12
|
-
import { regular as _e } from "@nubisco/ui/icons/sign-out";
|
|
13
|
-
//#region src/components/UserMenu.vue?vue&type=script&setup=true&lang.ts
|
|
14
|
-
var ve = [
|
|
15
|
-
"title",
|
|
16
|
-
"aria-expanded",
|
|
17
|
-
"disabled"
|
|
18
|
-
], ye = {
|
|
19
|
-
class: "nb-user-menu__avatar",
|
|
20
|
-
"aria-hidden": "true"
|
|
21
|
-
}, be = ["src"], xe = { class: "nb-user-menu__identity-text" }, Se = { class: "nb-user-menu__identity-name" }, y = {
|
|
22
|
-
key: 0,
|
|
23
|
-
class: "nb-user-menu__identity-email"
|
|
24
|
-
}, b = [
|
|
25
|
-
"title",
|
|
26
|
-
"aria-label",
|
|
27
|
-
"aria-expanded",
|
|
28
|
-
"disabled"
|
|
29
|
-
], x = ["src"], S = { class: "nb-user-menu__label" }, C = { class: "nb-user-menu__email" }, w = ["disabled", "onClick"], T = { class: "nb-user-menu__account-main" }, E = { class: "nb-user-menu__account-email" }, D = {
|
|
30
|
-
key: 0,
|
|
31
|
-
class: "nb-user-menu__account-name"
|
|
32
|
-
}, O = { class: "nb-user-menu__brand" }, k = { class: "nb-user-menu__brand-line" }, A = { class: "nb-user-menu__brand-name" }, j = "Nubisco Platform", Ce = 260, M = 8, N = /* @__PURE__ */ f({
|
|
33
|
-
__name: "UserMenu",
|
|
34
|
-
props: {
|
|
35
|
-
user: {},
|
|
36
|
-
accounts: { default: void 0 },
|
|
37
|
-
accountsUnknown: {
|
|
38
|
-
type: Boolean,
|
|
39
|
-
default: !1
|
|
40
|
-
},
|
|
41
|
-
showAccountActions: {
|
|
42
|
-
type: Boolean,
|
|
43
|
-
default: !0
|
|
44
|
-
},
|
|
45
|
-
showProfile: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
default: !0
|
|
48
|
-
},
|
|
49
|
-
brand: { default: "footer" },
|
|
50
|
-
placement: { default: "right-end" },
|
|
51
|
-
trigger: { default: "avatar" },
|
|
52
|
-
disabled: {
|
|
53
|
-
type: Boolean,
|
|
54
|
-
default: !1
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
emits: [
|
|
58
|
-
"switch",
|
|
59
|
-
"remove",
|
|
60
|
-
"switch-account",
|
|
61
|
-
"add-account",
|
|
62
|
-
"profile",
|
|
63
|
-
"sign-out",
|
|
64
|
-
"open",
|
|
65
|
-
"close"
|
|
66
|
-
],
|
|
67
|
-
setup(f, { expose: N, emit: we }) {
|
|
68
|
-
let P = {
|
|
69
|
-
en: {
|
|
70
|
-
ACCOUNT_MENU: "Account menu",
|
|
71
|
-
SIGNED_IN_AS: "Signed in as",
|
|
72
|
-
SWITCH_ACCOUNT: "Switch account",
|
|
73
|
-
USE_ANOTHER_ACCOUNT: "Use another account",
|
|
74
|
-
REMOVE_ACCOUNT: "Sign this account out of this browser",
|
|
75
|
-
PROFILE: "Profile",
|
|
76
|
-
SIGN_OUT: "Sign out",
|
|
77
|
-
poweredBy: "Powered by Nubisco Platform"
|
|
78
|
-
},
|
|
79
|
-
pt: {
|
|
80
|
-
ACCOUNT_MENU: "Menu de conta",
|
|
81
|
-
SIGNED_IN_AS: "Sessão iniciada como",
|
|
82
|
-
SWITCH_ACCOUNT: "Mudar de conta",
|
|
83
|
-
USE_ANOTHER_ACCOUNT: "Usar outra conta",
|
|
84
|
-
REMOVE_ACCOUNT: "Terminar a sessão desta conta neste browser",
|
|
85
|
-
PROFILE: "Perfil",
|
|
86
|
-
SIGN_OUT: "Terminar sessão",
|
|
87
|
-
poweredBy: "Fornecido pela Nubisco Platform"
|
|
88
|
-
}
|
|
89
|
-
}, { t: Te, te: Ee, locale: De } = r({ useScope: "global" });
|
|
90
|
-
function F(e) {
|
|
91
|
-
if (Ee(e)) return Te(e);
|
|
92
|
-
let t = e.slice(9);
|
|
93
|
-
return P[String(De.value).toLowerCase().split("-")[0]]?.[t] ?? P.en[t] ?? e;
|
|
94
|
-
}
|
|
95
|
-
let I = f, Oe = re("nb-shell-sidebar-variant", null), L = a(() => I.trigger === "identity" && (Oe?.value ?? "verbose") === "verbose"), ke = a(() => I.user.name?.trim() || I.user.email), R = a(() => {
|
|
96
|
-
let e = I.user.name?.trim();
|
|
97
|
-
return e ? e.toLowerCase() === I.user.email.trim().toLowerCase() ? "" : I.user.email : "";
|
|
98
|
-
}), z = h(!1);
|
|
99
|
-
le(() => I.user.picture, () => {
|
|
100
|
-
z.value = !1;
|
|
101
|
-
});
|
|
102
|
-
let B = a(() => !!I.user.picture && !z.value), V = a(() => {
|
|
103
|
-
let e = F("userMenu.poweredBy"), t = e.indexOf(j);
|
|
104
|
-
return t < 0 ? {
|
|
105
|
-
prefix: "",
|
|
106
|
-
name: e
|
|
107
|
-
} : {
|
|
108
|
-
prefix: e.slice(0, t),
|
|
109
|
-
name: e.slice(t)
|
|
110
|
-
};
|
|
111
|
-
}), H = we, U = h(null), W = h(null), G = h(!1), K = h({});
|
|
112
|
-
function q(e) {
|
|
113
|
-
return n(e);
|
|
114
|
-
}
|
|
115
|
-
let { phone: J } = t();
|
|
116
|
-
function Y() {
|
|
117
|
-
let e = U.value?.getBoundingClientRect();
|
|
118
|
-
if (e) {
|
|
119
|
-
if (J.value) {
|
|
120
|
-
let t = W.value?.offsetWidth || Ce, n = Math.max(M, window.innerWidth - t - M);
|
|
121
|
-
K.value = {
|
|
122
|
-
left: `${Math.round(Math.min(Math.max(e.left, M), n))}px`,
|
|
123
|
-
bottom: `${Math.round(window.innerHeight - e.top + 8)}px`
|
|
124
|
-
};
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
|
-
I.placement === "top-start" ? K.value = {
|
|
128
|
-
left: `${Math.round(e.left)}px`,
|
|
129
|
-
bottom: `${Math.round(window.innerHeight - e.top + 8)}px`
|
|
130
|
-
} : K.value = {
|
|
131
|
-
left: `${Math.round(e.right + 12)}px`,
|
|
132
|
-
bottom: `${Math.round(window.innerHeight - e.bottom)}px`
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
function X() {
|
|
137
|
-
I.disabled || (G.value ? Z() : (Y(), G.value = !0, H("open"), J.value && ie(Y)));
|
|
138
|
-
}
|
|
139
|
-
function Z() {
|
|
140
|
-
G.value && (G.value = !1, H("close"));
|
|
141
|
-
}
|
|
142
|
-
function Ae(e) {
|
|
143
|
-
e.current || (Z(), H("switch", e));
|
|
144
|
-
}
|
|
145
|
-
function je(e) {
|
|
146
|
-
H("remove", e);
|
|
147
|
-
}
|
|
148
|
-
function Me() {
|
|
149
|
-
Z(), H("switch-account");
|
|
150
|
-
}
|
|
151
|
-
function Ne() {
|
|
152
|
-
Z(), H("add-account");
|
|
153
|
-
}
|
|
154
|
-
function Pe() {
|
|
155
|
-
Z(), H("profile");
|
|
156
|
-
}
|
|
157
|
-
function Fe() {
|
|
158
|
-
Z(), H("sign-out");
|
|
159
|
-
}
|
|
160
|
-
function Q(e) {
|
|
161
|
-
if (!G.value) return;
|
|
162
|
-
let t = e.target;
|
|
163
|
-
U.value?.contains(t) || W.value?.contains(t) || Z();
|
|
164
|
-
}
|
|
165
|
-
function $(e) {
|
|
166
|
-
e.key === "Escape" && Z();
|
|
167
|
-
}
|
|
168
|
-
return se(() => {
|
|
169
|
-
document.addEventListener("click", Q), document.addEventListener("keydown", $);
|
|
170
|
-
}), oe(() => {
|
|
171
|
-
document.removeEventListener("click", Q), document.removeEventListener("keydown", $);
|
|
172
|
-
}), N({
|
|
173
|
-
open: G,
|
|
174
|
-
toggle: X,
|
|
175
|
-
close: Z
|
|
176
|
-
}), (t, n) => (m(), c("div", {
|
|
177
|
-
ref_key: "rootRef",
|
|
178
|
-
ref: U,
|
|
179
|
-
class: p(["nb-user-menu", { "nb-user-menu--identity": L.value }])
|
|
180
|
-
}, [g(t.$slots, "trigger", {
|
|
181
|
-
open: G.value,
|
|
182
|
-
toggle: X
|
|
183
|
-
}, () => [L.value ? (m(), c("button", {
|
|
184
|
-
key: 0,
|
|
185
|
-
type: "button",
|
|
186
|
-
class: "nb-user-menu__identity",
|
|
187
|
-
title: I.user.email,
|
|
188
|
-
"aria-haspopup": "menu",
|
|
189
|
-
"aria-expanded": G.value,
|
|
190
|
-
disabled: f.disabled,
|
|
191
|
-
onClick: X
|
|
192
|
-
}, [l("span", ye, [B.value ? (m(), c("img", {
|
|
193
|
-
key: 0,
|
|
194
|
-
class: "nb-user-menu__picture",
|
|
195
|
-
src: I.user.picture ?? void 0,
|
|
196
|
-
alt: "",
|
|
197
|
-
onError: n[0] ||= (e) => z.value = !0
|
|
198
|
-
}, null, 40, be)) : (m(), c(i, { key: 1 }, [u(_(q(I.user)), 1)], 64))]), l("span", xe, [l("span", Se, _(ke.value), 1), R.value ? (m(), c("span", y, _(R.value), 1)) : s("", !0)])], 8, ve)) : (m(), c("button", {
|
|
199
|
-
key: 1,
|
|
200
|
-
type: "button",
|
|
201
|
-
class: "nb-user-menu__avatar",
|
|
202
|
-
title: I.user.email,
|
|
203
|
-
"aria-label": F("userMenu.ACCOUNT_MENU"),
|
|
204
|
-
"aria-haspopup": "menu",
|
|
205
|
-
"aria-expanded": G.value,
|
|
206
|
-
disabled: f.disabled,
|
|
207
|
-
onClick: X
|
|
208
|
-
}, [B.value ? (m(), c("img", {
|
|
209
|
-
key: 0,
|
|
210
|
-
class: "nb-user-menu__picture",
|
|
211
|
-
src: I.user.picture ?? void 0,
|
|
212
|
-
alt: "",
|
|
213
|
-
onError: n[1] ||= (e) => z.value = !0
|
|
214
|
-
}, null, 40, x)) : (m(), c(i, { key: 1 }, [u(_(q(I.user)), 1)], 64))], 8, b))]), (m(), o(te, { to: "body" }, [d(ne, { name: "nb-user-menu-pop" }, {
|
|
215
|
-
default: ue(() => [G.value ? (m(), c("div", {
|
|
216
|
-
key: 0,
|
|
217
|
-
ref_key: "panelRef",
|
|
218
|
-
ref: W,
|
|
219
|
-
class: "nb-user-menu__panel",
|
|
220
|
-
style: ae(K.value),
|
|
221
|
-
role: "menu"
|
|
222
|
-
}, [
|
|
223
|
-
l("p", S, _(F("userMenu.SIGNED_IN_AS")), 1),
|
|
224
|
-
l("p", C, _(I.user.email), 1),
|
|
225
|
-
f.showAccountActions ? (m(), c(i, { key: 0 }, [
|
|
226
|
-
n[2] ||= l("div", {
|
|
227
|
-
class: "nb-user-menu__divider",
|
|
228
|
-
role: "separator"
|
|
229
|
-
}, null, -1),
|
|
230
|
-
I.accounts && I.accounts.length ? (m(!0), c(i, { key: 0 }, ce(I.accounts, (t) => (m(), c("button", {
|
|
231
|
-
key: t.id,
|
|
232
|
-
type: "button",
|
|
233
|
-
role: "menuitem",
|
|
234
|
-
class: p(["nb-user-menu__account", { "nb-user-menu__account--current": t.current }]),
|
|
235
|
-
disabled: t.current,
|
|
236
|
-
onClick: (e) => Ae(t)
|
|
237
|
-
}, [l("span", T, [l("span", E, _(t.email), 1), t.name ? (m(), c("span", D, _(t.name), 1)) : s("", !0)]), t.current ? (m(), o(e, {
|
|
238
|
-
key: 0,
|
|
239
|
-
name: v(fe),
|
|
240
|
-
size: 14,
|
|
241
|
-
class: "nb-user-menu__check"
|
|
242
|
-
}, null, 8, ["name"])) : t.removable === !1 ? s("", !0) : (m(), o(e, {
|
|
243
|
-
key: 1,
|
|
244
|
-
name: v(pe),
|
|
245
|
-
size: 13,
|
|
246
|
-
class: "nb-user-menu__remove",
|
|
247
|
-
title: F("userMenu.REMOVE_ACCOUNT"),
|
|
248
|
-
onClick: de((e) => je(t), ["stop"])
|
|
249
|
-
}, null, 8, [
|
|
250
|
-
"name",
|
|
251
|
-
"title",
|
|
252
|
-
"onClick"
|
|
253
|
-
]))], 10, w))), 128)) : I.accountsUnknown ? (m(), c("button", {
|
|
254
|
-
key: 1,
|
|
255
|
-
type: "button",
|
|
256
|
-
role: "menuitem",
|
|
257
|
-
class: "nb-user-menu__action",
|
|
258
|
-
onClick: Me
|
|
259
|
-
}, [d(e, {
|
|
260
|
-
name: v(me),
|
|
261
|
-
size: 15
|
|
262
|
-
}, null, 8, ["name"]), u(" " + _(F("userMenu.SWITCH_ACCOUNT")), 1)])) : s("", !0),
|
|
263
|
-
l("button", {
|
|
264
|
-
type: "button",
|
|
265
|
-
role: "menuitem",
|
|
266
|
-
class: "nb-user-menu__action",
|
|
267
|
-
onClick: Ne
|
|
268
|
-
}, [d(e, {
|
|
269
|
-
name: v(he),
|
|
270
|
-
size: 15
|
|
271
|
-
}, null, 8, ["name"]), u(" " + _(F("userMenu.USE_ANOTHER_ACCOUNT")), 1)])
|
|
272
|
-
], 64)) : s("", !0),
|
|
273
|
-
t.$slots.default ? (m(), c(i, { key: 1 }, [n[3] ||= l("div", {
|
|
274
|
-
class: "nb-user-menu__divider",
|
|
275
|
-
role: "separator"
|
|
276
|
-
}, null, -1), g(t.$slots, "default", { close: Z })], 64)) : s("", !0),
|
|
277
|
-
n[5] ||= l("div", {
|
|
278
|
-
class: "nb-user-menu__divider",
|
|
279
|
-
role: "separator"
|
|
280
|
-
}, null, -1),
|
|
281
|
-
f.showProfile ? (m(), c("button", {
|
|
282
|
-
key: 2,
|
|
283
|
-
type: "button",
|
|
284
|
-
role: "menuitem",
|
|
285
|
-
class: "nb-user-menu__action",
|
|
286
|
-
onClick: Pe
|
|
287
|
-
}, [d(e, {
|
|
288
|
-
name: v(ge),
|
|
289
|
-
size: 15
|
|
290
|
-
}, null, 8, ["name"]), u(" " + _(F("userMenu.PROFILE")), 1)])) : s("", !0),
|
|
291
|
-
l("button", {
|
|
292
|
-
type: "button",
|
|
293
|
-
role: "menuitem",
|
|
294
|
-
class: "nb-user-menu__action nb-user-menu__action--danger",
|
|
295
|
-
onClick: Fe
|
|
296
|
-
}, [d(e, {
|
|
297
|
-
name: v(_e),
|
|
298
|
-
size: 15
|
|
299
|
-
}, null, 8, ["name"]), u(" " + _(F("userMenu.SIGN_OUT")), 1)]),
|
|
300
|
-
I.brand === "none" ? s("", !0) : (m(), c(i, { key: 3 }, [n[4] ||= l("div", {
|
|
301
|
-
class: "nb-user-menu__divider",
|
|
302
|
-
role: "separator"
|
|
303
|
-
}, null, -1), g(t.$slots, "brand", {}, () => [l("p", O, [d(ee, {
|
|
304
|
-
size: 13,
|
|
305
|
-
class: "nb-user-menu__mark"
|
|
306
|
-
}), l("span", k, [u(_(V.value.prefix), 1), l("span", A, _(V.value.name), 1)])])])], 64))
|
|
307
|
-
], 4)) : s("", !0)]),
|
|
308
|
-
_: 3
|
|
309
|
-
})]))], 2));
|
|
310
|
-
}
|
|
311
|
-
});
|
|
312
|
-
//#endregion
|
|
313
|
-
export { N as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Icon-C8R_r_In.cjs`),t=require(`./composables/usePhoneLayout.composable.cjs`),n=require(`./utils/initials.helper.cjs`),r=require(`./NubiscoPlatformMark-DV2XeqiT.cjs`),i=require(`./vue-i18n-B_5xehV9.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/check`),s=require(`@nubisco/ui/icons/x`),c=require(`@nubisco/ui/icons/users`),l=require(`@nubisco/ui/icons/plus`),u=require(`@nubisco/ui/icons/user`),d=require(`@nubisco/ui/icons/sign-out`);var f=[`title`,`aria-expanded`,`disabled`],p={class:`nb-user-menu__avatar`,"aria-hidden":`true`},m=[`src`],h={class:`nb-user-menu__identity-text`},g={class:`nb-user-menu__identity-name`},_={key:0,class:`nb-user-menu__identity-email`},v=[`title`,`aria-label`,`aria-expanded`,`disabled`],y=[`src`],b={class:`nb-user-menu__label`},ee={class:`nb-user-menu__email`},te=[`disabled`,`onClick`],ne={class:`nb-user-menu__account-main`},re={class:`nb-user-menu__account-email`},ie={key:0,class:`nb-user-menu__account-name`},ae={class:`nb-user-menu__brand`},x={class:`nb-user-menu__brand-line`},S={class:`nb-user-menu__brand-name`},C=`Nubisco Platform`,w=260,T=8,E=(0,a.defineComponent)({__name:`UserMenu`,props:{user:{},accounts:{default:void 0},accountsUnknown:{type:Boolean,default:!1},showAccountActions:{type:Boolean,default:!0},showProfile:{type:Boolean,default:!0},brand:{default:`footer`},placement:{default:`right-end`},trigger:{default:`avatar`},disabled:{type:Boolean,default:!1}},emits:[`switch`,`remove`,`switch-account`,`add-account`,`profile`,`sign-out`,`open`,`close`],setup(E,{expose:D,emit:O}){let k={en:{ACCOUNT_MENU:`Account menu`,SIGNED_IN_AS:`Signed in as`,SWITCH_ACCOUNT:`Switch account`,USE_ANOTHER_ACCOUNT:`Use another account`,REMOVE_ACCOUNT:`Sign this account out of this browser`,PROFILE:`Profile`,SIGN_OUT:`Sign out`,poweredBy:`Powered by Nubisco Platform`},pt:{ACCOUNT_MENU:`Menu de conta`,SIGNED_IN_AS:`Sessão iniciada como`,SWITCH_ACCOUNT:`Mudar de conta`,USE_ANOTHER_ACCOUNT:`Usar outra conta`,REMOVE_ACCOUNT:`Terminar a sessão desta conta neste browser`,PROFILE:`Perfil`,SIGN_OUT:`Terminar sessão`,poweredBy:`Fornecido pela Nubisco Platform`}},{t:A,te:j,locale:M}=i.t({useScope:`global`});function N(e){if(j(e))return A(e);let t=e.slice(9);return k[String(M.value).toLowerCase().split(`-`)[0]]?.[t]??k.en[t]??e}let P=E,F=(0,a.inject)(`nb-shell-sidebar-variant`,null),I=(0,a.computed)(()=>P.trigger===`identity`&&(F?.value??`verbose`)===`verbose`),oe=(0,a.computed)(()=>P.user.name?.trim()||P.user.email),L=(0,a.computed)(()=>{let e=P.user.name?.trim();return e?e.toLowerCase()===P.user.email.trim().toLowerCase()?``:P.user.email:``}),R=(0,a.ref)(!1);(0,a.watch)(()=>P.user.picture,()=>{R.value=!1});let z=(0,a.computed)(()=>!!P.user.picture&&!R.value),B=(0,a.computed)(()=>{let e=N(`userMenu.poweredBy`),t=e.indexOf(C);return t<0?{prefix:``,name:e}:{prefix:e.slice(0,t),name:e.slice(t)}}),V=O,H=(0,a.ref)(null),U=(0,a.ref)(null),W=(0,a.ref)(!1),G=(0,a.ref)({});function K(e){return n.initialsOf(e)}let{phone:q}=t.usePhoneLayout();function J(){let e=H.value?.getBoundingClientRect();if(e){if(q.value){let t=U.value?.offsetWidth||w,n=Math.max(T,window.innerWidth-t-T);G.value={left:`${Math.round(Math.min(Math.max(e.left,T),n))}px`,bottom:`${Math.round(window.innerHeight-e.top+8)}px`};return}P.placement===`top-start`?G.value={left:`${Math.round(e.left)}px`,bottom:`${Math.round(window.innerHeight-e.top+8)}px`}:G.value={left:`${Math.round(e.right+12)}px`,bottom:`${Math.round(window.innerHeight-e.bottom)}px`}}}function Y(){P.disabled||(W.value?X():(J(),W.value=!0,V(`open`),q.value&&(0,a.nextTick)(J)))}function X(){W.value&&(W.value=!1,V(`close`))}function se(e){e.current||(X(),V(`switch`,e))}function ce(e){V(`remove`,e)}function le(){X(),V(`switch-account`)}function ue(){X(),V(`add-account`)}function de(){X(),V(`profile`)}function Z(){X(),V(`sign-out`)}function Q(e){if(!W.value)return;let t=e.target;H.value?.contains(t)||U.value?.contains(t)||X()}function $(e){e.key===`Escape`&&X()}return(0,a.onMounted)(()=>{document.addEventListener(`click`,Q),document.addEventListener(`keydown`,$)}),(0,a.onBeforeUnmount)(()=>{document.removeEventListener(`click`,Q),document.removeEventListener(`keydown`,$)}),D({open:W,toggle:Y,close:X}),(t,n)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{ref_key:`rootRef`,ref:H,class:(0,a.normalizeClass)([`nb-user-menu`,{"nb-user-menu--identity":I.value}])},[(0,a.renderSlot)(t.$slots,`trigger`,{open:W.value,toggle:Y},()=>[I.value?((0,a.openBlock)(),(0,a.createElementBlock)(`button`,{key:0,type:`button`,class:`nb-user-menu__identity`,title:P.user.email,"aria-haspopup":`menu`,"aria-expanded":W.value,disabled:E.disabled,onClick:Y},[(0,a.createElementVNode)(`span`,p,[z.value?((0,a.openBlock)(),(0,a.createElementBlock)(`img`,{key:0,class:`nb-user-menu__picture`,src:P.user.picture??void 0,alt:``,onError:n[0]||=e=>R.value=!0},null,40,m)):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[(0,a.createTextVNode)((0,a.toDisplayString)(K(P.user)),1)],64))]),(0,a.createElementVNode)(`span`,h,[(0,a.createElementVNode)(`span`,g,(0,a.toDisplayString)(oe.value),1),L.value?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,_,(0,a.toDisplayString)(L.value),1)):(0,a.createCommentVNode)(``,!0)])],8,f)):((0,a.openBlock)(),(0,a.createElementBlock)(`button`,{key:1,type:`button`,class:`nb-user-menu__avatar`,title:P.user.email,"aria-label":N(`userMenu.ACCOUNT_MENU`),"aria-haspopup":`menu`,"aria-expanded":W.value,disabled:E.disabled,onClick:Y},[z.value?((0,a.openBlock)(),(0,a.createElementBlock)(`img`,{key:0,class:`nb-user-menu__picture`,src:P.user.picture??void 0,alt:``,onError:n[1]||=e=>R.value=!0},null,40,y)):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[(0,a.createTextVNode)((0,a.toDisplayString)(K(P.user)),1)],64))],8,v))]),((0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{to:`body`},[(0,a.createVNode)(a.Transition,{name:`nb-user-menu-pop`},{default:(0,a.withCtx)(()=>[W.value?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:0,ref_key:`panelRef`,ref:U,class:`nb-user-menu__panel`,style:(0,a.normalizeStyle)(G.value),role:`menu`},[(0,a.createElementVNode)(`p`,b,(0,a.toDisplayString)(N(`userMenu.SIGNED_IN_AS`)),1),(0,a.createElementVNode)(`p`,ee,(0,a.toDisplayString)(P.user.email),1),E.showAccountActions?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[n[2]||=(0,a.createElementVNode)(`div`,{class:`nb-user-menu__divider`,role:`separator`},null,-1),P.accounts&&P.accounts.length?((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,{key:0},(0,a.renderList)(P.accounts,t=>((0,a.openBlock)(),(0,a.createElementBlock)(`button`,{key:t.id,type:`button`,role:`menuitem`,class:(0,a.normalizeClass)([`nb-user-menu__account`,{"nb-user-menu__account--current":t.current}]),disabled:t.current,onClick:e=>se(t)},[(0,a.createElementVNode)(`span`,ne,[(0,a.createElementVNode)(`span`,re,(0,a.toDisplayString)(t.email),1),t.name?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,ie,(0,a.toDisplayString)(t.name),1)):(0,a.createCommentVNode)(``,!0)]),t.current?((0,a.openBlock)(),(0,a.createBlock)(e.t,{key:0,name:(0,a.unref)(o.regular),size:14,class:`nb-user-menu__check`},null,8,[`name`])):t.removable===!1?(0,a.createCommentVNode)(``,!0):((0,a.openBlock)(),(0,a.createBlock)(e.t,{key:1,name:(0,a.unref)(s.regular),size:13,class:`nb-user-menu__remove`,title:N(`userMenu.REMOVE_ACCOUNT`),onClick:(0,a.withModifiers)(e=>ce(t),[`stop`])},null,8,[`name`,`title`,`onClick`]))],10,te))),128)):P.accountsUnknown?((0,a.openBlock)(),(0,a.createElementBlock)(`button`,{key:1,type:`button`,role:`menuitem`,class:`nb-user-menu__action`,onClick:le},[(0,a.createVNode)(e.t,{name:(0,a.unref)(c.regular),size:15},null,8,[`name`]),(0,a.createTextVNode)(` `+(0,a.toDisplayString)(N(`userMenu.SWITCH_ACCOUNT`)),1)])):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`button`,{type:`button`,role:`menuitem`,class:`nb-user-menu__action`,onClick:ue},[(0,a.createVNode)(e.t,{name:(0,a.unref)(l.regular),size:15},null,8,[`name`]),(0,a.createTextVNode)(` `+(0,a.toDisplayString)(N(`userMenu.USE_ANOTHER_ACCOUNT`)),1)])],64)):(0,a.createCommentVNode)(``,!0),t.$slots.default?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[n[3]||=(0,a.createElementVNode)(`div`,{class:`nb-user-menu__divider`,role:`separator`},null,-1),(0,a.renderSlot)(t.$slots,`default`,{close:X})],64)):(0,a.createCommentVNode)(``,!0),n[5]||=(0,a.createElementVNode)(`div`,{class:`nb-user-menu__divider`,role:`separator`},null,-1),E.showProfile?((0,a.openBlock)(),(0,a.createElementBlock)(`button`,{key:2,type:`button`,role:`menuitem`,class:`nb-user-menu__action`,onClick:de},[(0,a.createVNode)(e.t,{name:(0,a.unref)(u.regular),size:15},null,8,[`name`]),(0,a.createTextVNode)(` `+(0,a.toDisplayString)(N(`userMenu.PROFILE`)),1)])):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`button`,{type:`button`,role:`menuitem`,class:`nb-user-menu__action nb-user-menu__action--danger`,onClick:Z},[(0,a.createVNode)(e.t,{name:(0,a.unref)(d.regular),size:15},null,8,[`name`]),(0,a.createTextVNode)(` `+(0,a.toDisplayString)(N(`userMenu.SIGN_OUT`)),1)]),P.brand===`none`?(0,a.createCommentVNode)(``,!0):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:3},[n[4]||=(0,a.createElementVNode)(`div`,{class:`nb-user-menu__divider`,role:`separator`},null,-1),(0,a.renderSlot)(t.$slots,`brand`,{},()=>[(0,a.createElementVNode)(`p`,ae,[(0,a.createVNode)(r.t,{size:13,class:`nb-user-menu__mark`}),(0,a.createElementVNode)(`span`,x,[(0,a.createTextVNode)((0,a.toDisplayString)(B.value.prefix),1),(0,a.createElementVNode)(`span`,S,(0,a.toDisplayString)(B.value.name),1)])])])],64))],4)):(0,a.createCommentVNode)(``,!0)]),_:3})]))],2))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return E}});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|