@nubisco/ui 5.53.0 → 5.55.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/{AccordionItem--XeLRz2P.js → AccordionItem-BY-p8UkV.js} +1 -1
- package/dist/{AccordionItem-BYSH6dZK.cjs → AccordionItem-p0mYXIj8.cjs} +1 -1
- package/dist/{ActionGroup-CkwZEnUN.js → ActionGroup-CjRSKyOa.js} +2 -2
- package/dist/{ActionGroup-McCtSDV8.cjs → ActionGroup-DIMZhC7N.cjs} +1 -1
- package/dist/AiLabel-BDccQ2iQ.js +242 -0
- package/dist/AiLabel-jRrBTu6c.cjs +1 -0
- package/dist/{AiProvider-DN3DecBN.cjs → AiProvider-CGB9EiSf.cjs} +1 -1
- package/dist/{AiProvider-lGUifyvk.js → AiProvider-CMbPWtU-.js} +4 -4
- package/dist/{BackToTop-BWj2PURK.js → BackToTop-BDFb1y3c.js} +1 -1
- package/dist/{BackToTop-CbGWaDiv.cjs → BackToTop-R6yiw3lt.cjs} +1 -1
- package/dist/{Banner-DksCkGVd.js → Banner-BjnbX4C3.js} +1 -1
- package/dist/{Banner-DsiuPzPh.cjs → Banner-C-mikJ5n.cjs} +1 -1
- package/dist/{BatchActions-iHu14Sfz.js → BatchActions-Kr2S6CJI.js} +2 -2
- package/dist/{BatchActions-xnTXMU6B.cjs → BatchActions-jfvfpZeT.cjs} +1 -1
- package/dist/{BlueprintControls-COcm1KWW.js → BlueprintControls-Bt4KoDp5.js} +1 -1
- package/dist/{BlueprintControls-3Lc3BcAk.cjs → BlueprintControls-zX5yxOB1.cjs} +1 -1
- package/dist/{Board-B2v-oPUr.js → Board-C3_cXRl6.js} +177 -176
- package/dist/Board-D6A-irdx.cjs +1 -0
- package/dist/{BottomPanel-cNzWs1-8.cjs → BottomPanel-C_u39INJ.cjs} +1 -1
- package/dist/{BottomPanel-C6r_9aLy.js → BottomPanel-CkEc9gvb.js} +1 -1
- package/dist/{Breadcrumbs-D1pYElI6.cjs → Breadcrumbs-0rRFiO31.cjs} +1 -1
- package/dist/{Breadcrumbs-B2SMDfCA.js → Breadcrumbs-DqagVknq.js} +2 -2
- package/dist/{Briefing-Cqw3zBQO.cjs → Briefing-B-O-9bhN.cjs} +1 -1
- package/dist/{Briefing-W7gtZwdT.js → Briefing-DNH-707q.js} +1 -1
- package/dist/{BriefingDestination-CeClIu61.js → BriefingDestination-BjNteNgh.js} +1 -1
- package/dist/{BriefingDestination-CtsWFs9U.cjs → BriefingDestination-Cs1y3z_5.cjs} +1 -1
- package/dist/Button-CGIbF1e-.cjs +1 -0
- package/dist/{Button-CxJMKPpw.js → Button-DmJ_J3UO.js} +55 -53
- package/dist/{ButtonSet-D7ieqb8C.js → ButtonSet-Cg1ixzOK.js} +1 -1
- package/dist/{ButtonSet-C2Z5sYSv.cjs → ButtonSet-SziuuT6_.cjs} +1 -1
- package/dist/{Calendar-BmC3wBlS.js → Calendar-fVDg_EgD.js} +1 -1
- package/dist/{Calendar-EO2vU4ls.cjs → Calendar-fsZN4OIr.cjs} +1 -1
- package/dist/{ChatMessage-DYv7Vniv.cjs → ChatMessage-B45Xhl8x.cjs} +1 -1
- package/dist/{ChatMessage-DSeGKAOq.js → ChatMessage-BDOdvI4h.js} +1 -1
- package/dist/{ChatThread-CCtckadF.cjs → ChatThread-B7F1r4t4.cjs} +1 -1
- package/dist/{ChatThread-D70zpB0f.js → ChatThread-DqvsnVOr.js} +3 -3
- package/dist/{CloseButton-F7W1E8oX.cjs → CloseButton-Bdk7rJ8E.cjs} +1 -1
- package/dist/{CloseButton-BMJBwHvG.js → CloseButton-CAPfd6yf.js} +1 -1
- package/dist/CommandPalette-BaRqoURY.cjs +1 -0
- package/dist/CommandPalette-DWv1UV8r.js +294 -0
- package/dist/{Confirm-Sl4LWoSK.cjs → Confirm-B5vMzPbN.cjs} +1 -1
- package/dist/{Confirm-BLXSK-OZ.js → Confirm-C4lT-6HD.js} +3 -3
- package/dist/{ContentSwitcher-CQvxg6RC.cjs → ContentSwitcher-DYxJZdcm.cjs} +1 -1
- package/dist/{ContentSwitcher-DuHRX4Y6.js → ContentSwitcher-NpFxiGbz.js} +1 -1
- package/dist/{CopyButton-DMuuBwJc.cjs → CopyButton-D-cnpfOJ.cjs} +1 -1
- package/dist/{CopyButton-CfEOWedU.js → CopyButton-MOJj3pS0.js} +1 -1
- package/dist/{DataTable-7GkgyPz9.js → DataTable-CcwD0PSJ.js} +3 -3
- package/dist/{DataTable-D8y7LUof.cjs → DataTable-xEw-NvHM.cjs} +1 -1
- package/dist/{DatePicker-BkHd2fJW.js → DatePicker-3pCNky8d.js} +235 -231
- package/dist/DatePicker-BrMicYUx.cjs +1 -0
- package/dist/{FileUploader-VBJtI2xh.js → FileUploader-CcGdRBxp.js} +1 -1
- package/dist/{FileUploader-CPTj5s_M.cjs → FileUploader-CcieVEGZ.cjs} +1 -1
- package/dist/FloatingToolbar-BV-iGNxe.js +120 -0
- package/dist/FloatingToolbar-C8xB4BzH.cjs +1 -0
- package/dist/{ImagePicker-D8qyyjVv.cjs → ImagePicker-5qPI77Jo.cjs} +1 -1
- package/dist/{ImagePicker-BkZVENEg.js → ImagePicker-BnHg403Q.js} +2 -2
- package/dist/InfoHint-CdluaJqE.cjs +1 -0
- package/dist/InfoHint-zMuSw_99.js +182 -0
- package/dist/{InlineLoading-CA0_IT29.cjs → InlineLoading-CqGrNWHf.cjs} +1 -1
- package/dist/{InlineLoading-Cknqq0vv.js → InlineLoading-_j2KKhNQ.js} +1 -1
- package/dist/{LogView-u_QhvV__.js → LogView-BLa9W5S7.js} +2 -2
- package/dist/{LogView-JjJVH_NA.cjs → LogView-BNztzJri.cjs} +1 -1
- package/dist/Menu-CWxBEMC4.js +193 -0
- package/dist/Menu-D0TerdRm.cjs +1 -0
- package/dist/{MenuBarItem-yr5aizl3.js → MenuBarItem-BYh4YWR4.js} +1 -1
- package/dist/{MenuBarItem-DlnIAhRw.cjs → MenuBarItem-DTOqacvg.cjs} +1 -1
- package/dist/Modal-CmGFLEo4.cjs +1 -0
- package/dist/{Modal-DaXgWyZN.js → Modal-DwL90AoV.js} +74 -70
- package/dist/NotificationCenter-EMlV-oPh.cjs +1 -0
- package/dist/NotificationCenter-YZnPMH7c.js +591 -0
- package/dist/{NumberInput-B7_EP2yg.js → NumberInput-B91ahziS.js} +1 -1
- package/dist/{NumberInput-CHWFFpDv.cjs → NumberInput-DLPSNgsr.cjs} +1 -1
- package/dist/{OverflowMenu-DXJ8waZo.js → OverflowMenu-DliuDrTK.js} +2 -2
- package/dist/{OverflowMenu-CWgdicDN.cjs → OverflowMenu-DuRgj1DU.cjs} +1 -1
- package/dist/{PageHeader-KKxiyfqh.cjs → PageHeader-BoEdR_T5.cjs} +1 -1
- package/dist/{PageHeader-Bypc30sW.js → PageHeader-c6117xYf.js} +1 -1
- package/dist/{Pagination-DTsfPCOs.cjs → Pagination-B3lmxggo.cjs} +1 -1
- package/dist/{Pagination-CjOtISav.js → Pagination-DwAc-4d9.js} +2 -2
- package/dist/{Search-xsC4Tm0d.js → Search-Bwdxxe29.js} +2 -2
- package/dist/{Search-CKXtAyrU.cjs → Search-DIZ1Ea45.cjs} +1 -1
- package/dist/Select-CDs-7QtW.js +619 -0
- package/dist/Select-CJqwMI69.cjs +1 -0
- package/dist/{Shell-BWLjIdD0.cjs → Shell-BZslT2aj.cjs} +1 -1
- package/dist/{Shell-DZfaTUo3.js → Shell-CRmhoU2H.js} +2 -2
- package/dist/{ShellPanel-K4vyQYQM.js → ShellPanel-C4vQJmRI.js} +1 -1
- package/dist/{ShellPanel-ColJQNUK.cjs → ShellPanel-DUBq5BL6.cjs} +1 -1
- package/dist/{SidebarCollapseToggle-DraqbhwM.js → SidebarCollapseToggle-C38R19gG.js} +1 -1
- package/dist/{SidebarCollapseToggle-CABmF-PC.cjs → SidebarCollapseToggle-DOck3Txy.cjs} +1 -1
- package/dist/SidebarMenuItem-DzJ_R2__.cjs +1 -0
- package/dist/SidebarMenuItem-E410HTei.js +302 -0
- package/dist/{Slider-BLkYlDHi.js → Slider-B6QXQMqb.js} +1 -1
- package/dist/{Slider-DGTE-3wW.cjs → Slider-B7m_luyq.cjs} +1 -1
- package/dist/Spinner-BlzVODzE.js +161 -0
- package/dist/Spinner-Bpfgl-mN.cjs +1 -0
- package/dist/{Stat-BCvXYr-z.cjs → Stat-BByeMKkT.cjs} +1 -1
- package/dist/{Stat-No3RhGB3.js → Stat-DWliDbWE.js} +1 -1
- package/dist/Submenu-BkHGYo7X.js +168 -0
- package/dist/Submenu-CCQnBpln.cjs +1 -0
- package/dist/{SuggestionList-Cxy4jjjd.cjs → SuggestionList-C61Dj6en.cjs} +1 -1
- package/dist/{SuggestionList-Dv4yQAi-.js → SuggestionList-D48Ojcf3.js} +1 -1
- package/dist/{TableOfContents-WDCjtpK6.js → TableOfContents-CeZX4dH0.js} +1 -1
- package/dist/{TableOfContents-BzG-BsKk.cjs → TableOfContents-D9FCu6gN.cjs} +1 -1
- package/dist/{TextInput-HEjIGR6p.js → TextInput-BeqDf1R7.js} +1 -1
- package/dist/{TextInput-CKSRFb0q.cjs → TextInput-SJ34hD2Y.cjs} +1 -1
- package/dist/{Toast-DHjc9WQU.cjs → Toast-CN5Jzkr5.cjs} +1 -1
- package/dist/{Toast-DxZ2xjeq.js → Toast-DIf2XRCa.js} +2 -2
- package/dist/Toaster-Dwjm0bsR.js +285 -0
- package/dist/Toaster-aJJvxlEr.cjs +1 -0
- package/dist/{UserMenu-C54sf0xb.js → UserMenu-BTihjCKC.js} +95 -91
- package/dist/UserMenu-CHkbByFS.cjs +1 -0
- package/dist/{Video-BFik9HZq.js → Video-Agby8uRA.js} +1 -1
- package/dist/{Video-Cnqsjo4n.cjs → Video-B93sRbBU.cjs} +1 -1
- package/dist/{Walkthrough-JqWDEe00.js → Walkthrough-BqGB1yaX.js} +64 -60
- package/dist/Walkthrough-sGAypY5d.cjs +1 -0
- package/dist/all.cjs +1 -1
- package/dist/all.mjs +212 -211
- package/dist/components/AccordionItem.cjs +1 -1
- package/dist/components/AccordionItem.mjs +1 -1
- package/dist/components/ActionGroup.cjs +1 -1
- package/dist/components/ActionGroup.mjs +1 -1
- package/dist/components/AiLabel.cjs +1 -1
- package/dist/components/AiLabel.mjs +1 -1
- package/dist/components/AiLabel.vue.d.ts.map +1 -1
- package/dist/components/AiProvider.cjs +1 -1
- package/dist/components/AiProvider.mjs +1 -1
- package/dist/components/BackToTop.cjs +1 -1
- package/dist/components/BackToTop.mjs +1 -1
- package/dist/components/Banner.cjs +1 -1
- package/dist/components/Banner.mjs +1 -1
- package/dist/components/BatchActions.cjs +1 -1
- package/dist/components/BatchActions.mjs +1 -1
- package/dist/components/BlueprintControls.cjs +1 -1
- package/dist/components/BlueprintControls.mjs +1 -1
- package/dist/components/Board.cjs +1 -1
- package/dist/components/Board.mjs +1 -1
- package/dist/components/Board.vue.d.ts.map +1 -1
- package/dist/components/BottomPanel.cjs +1 -1
- package/dist/components/BottomPanel.mjs +1 -1
- package/dist/components/Breadcrumbs.cjs +1 -1
- package/dist/components/Breadcrumbs.mjs +1 -1
- package/dist/components/Briefing.cjs +1 -1
- package/dist/components/Briefing.mjs +1 -1
- package/dist/components/BriefingDestination.cjs +1 -1
- package/dist/components/BriefingDestination.mjs +1 -1
- package/dist/components/Button.cjs +1 -1
- package/dist/components/Button.context.d.ts +21 -0
- package/dist/components/Button.context.d.ts.map +1 -0
- package/dist/components/Button.d.ts +10 -0
- package/dist/components/Button.mjs +1 -1
- package/dist/components/Button.vue.d.ts +1 -0
- package/dist/components/Button.vue.d.ts.map +1 -1
- package/dist/components/ButtonSet.cjs +1 -1
- package/dist/components/ButtonSet.mjs +1 -1
- package/dist/components/Calendar.cjs +1 -1
- package/dist/components/Calendar.mjs +1 -1
- package/dist/components/ChatMessage.cjs +1 -1
- package/dist/components/ChatMessage.mjs +1 -1
- package/dist/components/ChatThread.cjs +1 -1
- package/dist/components/ChatThread.mjs +1 -1
- package/dist/components/CloseButton.cjs +1 -1
- package/dist/components/CloseButton.mjs +1 -1
- package/dist/components/CommandPalette.cjs +1 -1
- package/dist/components/CommandPalette.mjs +1 -1
- package/dist/components/CommandPalette.vue.d.ts.map +1 -1
- package/dist/components/Confirm.cjs +1 -1
- package/dist/components/Confirm.mjs +1 -1
- package/dist/components/ContentSwitcher.cjs +1 -1
- package/dist/components/ContentSwitcher.mjs +1 -1
- package/dist/components/CopyButton.cjs +1 -1
- package/dist/components/CopyButton.mjs +1 -1
- package/dist/components/DataTable.cjs +1 -1
- package/dist/components/DataTable.mjs +1 -1
- package/dist/components/DatePicker.cjs +1 -1
- package/dist/components/DatePicker.mjs +1 -1
- package/dist/components/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/FileUploader.cjs +1 -1
- package/dist/components/FileUploader.mjs +1 -1
- package/dist/components/FloatingToolbar.cjs +1 -1
- package/dist/components/FloatingToolbar.mjs +1 -1
- package/dist/components/FloatingToolbar.vue.d.ts.map +1 -1
- package/dist/components/ImagePicker.cjs +1 -1
- package/dist/components/ImagePicker.mjs +1 -1
- package/dist/components/InfoHint.cjs +1 -1
- package/dist/components/InfoHint.mjs +1 -1
- package/dist/components/InfoHint.vue.d.ts.map +1 -1
- package/dist/components/InlineLoading.cjs +1 -1
- package/dist/components/InlineLoading.mjs +1 -1
- package/dist/components/LogView.cjs +1 -1
- package/dist/components/LogView.mjs +1 -1
- package/dist/components/Menu.cjs +1 -1
- package/dist/components/Menu.mjs +1 -1
- package/dist/components/Menu.vue.d.ts.map +1 -1
- package/dist/components/MenuBarItem.cjs +1 -1
- package/dist/components/MenuBarItem.mjs +1 -1
- package/dist/components/Modal.cjs +1 -1
- package/dist/components/Modal.mjs +1 -1
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/NotificationCenter.cjs +1 -1
- package/dist/components/NotificationCenter.mjs +1 -1
- package/dist/components/NotificationCenter.vue.d.ts.map +1 -1
- package/dist/components/NumberInput.cjs +1 -1
- package/dist/components/NumberInput.mjs +1 -1
- package/dist/components/OverflowMenu.cjs +1 -1
- package/dist/components/OverflowMenu.mjs +1 -1
- package/dist/components/PageHeader.cjs +1 -1
- package/dist/components/PageHeader.mjs +1 -1
- package/dist/components/Pagination.cjs +1 -1
- package/dist/components/Pagination.mjs +1 -1
- package/dist/components/Search.cjs +1 -1
- package/dist/components/Search.mjs +1 -1
- package/dist/components/Select.cjs +1 -1
- package/dist/components/Select.mjs +1 -1
- package/dist/components/Select.vue.d.ts.map +1 -1
- package/dist/components/Shell.cjs +1 -1
- package/dist/components/Shell.mjs +1 -1
- package/dist/components/ShellPanel.cjs +1 -1
- package/dist/components/ShellPanel.mjs +1 -1
- package/dist/components/SidebarCollapseToggle.cjs +1 -1
- package/dist/components/SidebarCollapseToggle.mjs +1 -1
- package/dist/components/SidebarMenuItem.cjs +1 -1
- package/dist/components/SidebarMenuItem.mjs +1 -1
- package/dist/components/SidebarMenuItem.vue.d.ts.map +1 -1
- package/dist/components/Slider.cjs +1 -1
- package/dist/components/Slider.mjs +1 -1
- package/dist/components/Spinner.cjs +1 -1
- package/dist/components/Spinner.mjs +1 -1
- package/dist/components/Spinner.vue.d.ts.map +1 -1
- package/dist/components/Stat.cjs +1 -1
- package/dist/components/Stat.mjs +1 -1
- package/dist/components/Submenu.cjs +1 -1
- package/dist/components/Submenu.mjs +1 -1
- package/dist/components/Submenu.vue.d.ts.map +1 -1
- package/dist/components/SuggestionList.cjs +1 -1
- package/dist/components/SuggestionList.mjs +1 -1
- package/dist/components/TableOfContents.cjs +1 -1
- package/dist/components/TableOfContents.mjs +1 -1
- package/dist/components/TextInput.cjs +1 -1
- package/dist/components/TextInput.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/Toaster.vue.d.ts.map +1 -1
- package/dist/components/UserMenu.cjs +1 -1
- package/dist/components/UserMenu.mjs +1 -1
- 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/Walkthrough.cjs +1 -1
- package/dist/components/Walkthrough.mjs +1 -1
- package/dist/components/Walkthrough.vue.d.ts.map +1 -1
- package/dist/composables/useConfirm.composable.cjs +1 -1
- package/dist/composables/useConfirm.composable.mjs +2 -2
- package/dist/composables/useTeleportReady.composable.cjs +1 -0
- package/dist/composables/useTeleportReady.composable.d.ts +30 -0
- package/dist/composables/useTeleportReady.composable.d.ts.map +1 -0
- package/dist/composables/useTeleportReady.composable.mjs +11 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +156 -155
- package/dist/main-BMIeIxGV.cjs +4 -0
- package/dist/{main-hHSQ2Z9E.js → main-BXz7vG2i.js} +203 -193
- package/dist/main.d.ts +19 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/styles/AiLabel.css +1 -1
- package/dist/styles/Button.css +1 -1
- package/dist/styles/FloatingToolbar.css +1 -1
- package/dist/styles/InfoHint.css +1 -1
- package/dist/styles/Modal.css +1 -1
- package/dist/styles/SidebarMenuItem.css +1 -1
- package/dist/styles/Spinner.css +1 -1
- package/dist/styles/Toaster.css +1 -1
- package/dist/styles/Walkthrough.css +1 -1
- package/dist/ui.css +9 -9
- package/package.json +1 -1
- package/dist/AiLabel-BwGuSf92.cjs +0 -1
- package/dist/AiLabel-CT7tpXv4.js +0 -240
- package/dist/Board-C43JjSsH.cjs +0 -1
- package/dist/Button-5ClGtoaz.cjs +0 -1
- package/dist/CommandPalette-DSE40a5L.cjs +0 -1
- package/dist/CommandPalette-DjkNy4l7.js +0 -290
- package/dist/DatePicker-CeDO01NZ.cjs +0 -1
- package/dist/FloatingToolbar-BikX_AsP.js +0 -116
- package/dist/FloatingToolbar-DWVY8Fxo.cjs +0 -1
- package/dist/InfoHint-BEzkNQTM.cjs +0 -1
- package/dist/InfoHint-BlHxrTw6.js +0 -178
- package/dist/Menu-7EgnchVu.js +0 -189
- package/dist/Menu-Bs2Co1sl.cjs +0 -1
- package/dist/Modal-CRbvPpfy.cjs +0 -1
- package/dist/NotificationCenter-D0PKt3fk.js +0 -587
- package/dist/NotificationCenter-fmSEnZDX.cjs +0 -1
- package/dist/Select-CPztC5IV.cjs +0 -1
- package/dist/Select-CqLa55kO.js +0 -615
- package/dist/SidebarMenuItem-DQRQtqrp.js +0 -300
- package/dist/SidebarMenuItem-Dwk7vKN5.cjs +0 -1
- package/dist/Spinner-DYFhiTB1.js +0 -160
- package/dist/Spinner-j13gRoUF.cjs +0 -1
- package/dist/Submenu-BDs-yAqv.js +0 -164
- package/dist/Submenu-BLjx2kWl.cjs +0 -1
- package/dist/Toaster-C227oHXu.js +0 -284
- package/dist/Toaster-IS3DUaZt.cjs +0 -1
- package/dist/UserMenu-BnGiKwDE.cjs +0 -1
- package/dist/Walkthrough-DHgb972k.cjs +0 -1
- package/dist/main-Dr-OZ97R.cjs +0 -4
package/dist/Select-CqLa55kO.js
DELETED
|
@@ -1,615 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./Button-CxJMKPpw.js";
|
|
2
|
-
import { t } from "./Icon-B2tiGiqZ.js";
|
|
3
|
-
import { useNbStrings as n } from "./composables/useNbStrings.composable.mjs";
|
|
4
|
-
import { t as r } from "./Grid-BVIhOyQ1.js";
|
|
5
|
-
import { t as ee } from "./Label-xwHw_UbN.js";
|
|
6
|
-
import { t as i } from "./Message-Bi70NgGd.js";
|
|
7
|
-
import { n as a } from "./InputGroup.context-Dd4e6fGT.js";
|
|
8
|
-
import { joinDescribedBy as te, useFieldMessage as ne } from "./composables/useFieldMessage.composable.mjs";
|
|
9
|
-
import { useMenuSurface as re } from "./composables/useMenuSurface.composable.mjs";
|
|
10
|
-
import { Fragment as o, Teleport as ie, Transition as ae, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, h as oe, mergeProps as se, nextTick as ce, normalizeClass as h, normalizeProps as le, normalizeStyle as ue, onBeforeUnmount as de, openBlock as g, ref as _, renderList as fe, renderSlot as v, toDisplayString as y, unref as b, useId as pe, useSlots as me, vModelText as he, watch as ge, withCtx as x, withDirectives as _e, withKeys as S, withModifiers as C } from "vue";
|
|
11
|
-
import { regular as ve } from "@nubisco/ui/icons/caret-down";
|
|
12
|
-
import { regular as ye } from "@nubisco/ui/icons/x";
|
|
13
|
-
import { regular as be } from "@nubisco/ui/icons/caret-up";
|
|
14
|
-
//#region src/components/Select.vue?vue&type=script&setup=true&lang.ts
|
|
15
|
-
var xe = [
|
|
16
|
-
"id",
|
|
17
|
-
"aria-expanded",
|
|
18
|
-
"aria-controls",
|
|
19
|
-
"aria-activedescendant",
|
|
20
|
-
"aria-disabled",
|
|
21
|
-
"aria-required",
|
|
22
|
-
"aria-invalid",
|
|
23
|
-
"aria-describedby",
|
|
24
|
-
"disabled"
|
|
25
|
-
], Se = {
|
|
26
|
-
key: 2,
|
|
27
|
-
class: "nb-select__clear-space",
|
|
28
|
-
"aria-hidden": "true"
|
|
29
|
-
}, Ce = [
|
|
30
|
-
"id",
|
|
31
|
-
"aria-expanded",
|
|
32
|
-
"aria-controls",
|
|
33
|
-
"aria-activedescendant",
|
|
34
|
-
"aria-disabled",
|
|
35
|
-
"aria-required",
|
|
36
|
-
"aria-invalid",
|
|
37
|
-
"aria-describedby",
|
|
38
|
-
"disabled"
|
|
39
|
-
], we = {
|
|
40
|
-
key: 1,
|
|
41
|
-
class: "nb-select__inner-label"
|
|
42
|
-
}, Te = {
|
|
43
|
-
key: 0,
|
|
44
|
-
class: "nb-select__asterisk",
|
|
45
|
-
"aria-hidden": "true"
|
|
46
|
-
}, Ee = {
|
|
47
|
-
key: 0,
|
|
48
|
-
class: "nb-select__clear-space",
|
|
49
|
-
"aria-hidden": "true"
|
|
50
|
-
}, De = ["id", "aria-multiselectable"], Oe = {
|
|
51
|
-
key: 0,
|
|
52
|
-
class: "nb-select__search"
|
|
53
|
-
}, ke = [
|
|
54
|
-
"placeholder",
|
|
55
|
-
"aria-label",
|
|
56
|
-
"aria-controls",
|
|
57
|
-
"aria-activedescendant"
|
|
58
|
-
], Ae = ["aria-labelledby"], je = ["id"], Me = [
|
|
59
|
-
"id",
|
|
60
|
-
"data-index",
|
|
61
|
-
"aria-selected",
|
|
62
|
-
"aria-disabled",
|
|
63
|
-
"onMouseenter",
|
|
64
|
-
"onClick"
|
|
65
|
-
], Ne = {
|
|
66
|
-
key: 0,
|
|
67
|
-
class: "nb-select__option-check",
|
|
68
|
-
"aria-hidden": "true"
|
|
69
|
-
}, Pe = {
|
|
70
|
-
key: 0,
|
|
71
|
-
viewBox: "0 0 10 8",
|
|
72
|
-
fill: "none",
|
|
73
|
-
width: "10",
|
|
74
|
-
height: "8"
|
|
75
|
-
}, Fe = { class: "nb-select__option-label" }, Ie = {
|
|
76
|
-
key: 1,
|
|
77
|
-
class: "nb-select__empty"
|
|
78
|
-
}, Le = {
|
|
79
|
-
key: 2,
|
|
80
|
-
class: "nb-select__empty"
|
|
81
|
-
}, Re = ["placeholder", "onKeydown"], ze = /* @__PURE__ */ m({
|
|
82
|
-
inheritAttrs: !1,
|
|
83
|
-
__name: "Select",
|
|
84
|
-
props: {
|
|
85
|
-
modelValue: { default: null },
|
|
86
|
-
options: { default: () => [] },
|
|
87
|
-
multiple: {
|
|
88
|
-
type: Boolean,
|
|
89
|
-
default: !1
|
|
90
|
-
},
|
|
91
|
-
creatable: {
|
|
92
|
-
type: Boolean,
|
|
93
|
-
default: !1
|
|
94
|
-
},
|
|
95
|
-
createPlaceholder: { default: "" },
|
|
96
|
-
clearable: {
|
|
97
|
-
type: Boolean,
|
|
98
|
-
default: !1
|
|
99
|
-
},
|
|
100
|
-
clearLabel: { default: void 0 },
|
|
101
|
-
searchable: {
|
|
102
|
-
type: Boolean,
|
|
103
|
-
default: !1
|
|
104
|
-
},
|
|
105
|
-
searchPlaceholder: { default: "Search" },
|
|
106
|
-
noResultsLabel: { default: "No results" },
|
|
107
|
-
anchor: {
|
|
108
|
-
type: [Function, null],
|
|
109
|
-
default: null
|
|
110
|
-
},
|
|
111
|
-
selectedMark: { default: "fill" },
|
|
112
|
-
placeholder: { default: "Select…" },
|
|
113
|
-
name: { default: "" },
|
|
114
|
-
disabled: {
|
|
115
|
-
type: Boolean,
|
|
116
|
-
default: !1
|
|
117
|
-
},
|
|
118
|
-
required: {
|
|
119
|
-
type: Boolean,
|
|
120
|
-
default: !1
|
|
121
|
-
},
|
|
122
|
-
id: { default: void 0 },
|
|
123
|
-
label: { default: "" },
|
|
124
|
-
error: { default: "" },
|
|
125
|
-
warning: { default: "" },
|
|
126
|
-
helper: { default: "" },
|
|
127
|
-
variant: { default: "default" },
|
|
128
|
-
size: { default: "md" }
|
|
129
|
-
},
|
|
130
|
-
emits: [
|
|
131
|
-
"update:modelValue",
|
|
132
|
-
"change",
|
|
133
|
-
"create"
|
|
134
|
-
],
|
|
135
|
-
setup(m, { expose: ze, emit: Be }) {
|
|
136
|
-
let w = m, T = Be, Ve = (e, { slots: t }) => e.wrap ? oe("div", { class: "nb-select__control" }, t.default?.()) : t.default?.();
|
|
137
|
-
Ve.props = ["wrap"];
|
|
138
|
-
let E = _(""), D = _(""), He = _(null);
|
|
139
|
-
function Ue() {
|
|
140
|
-
let e = E.value.trim();
|
|
141
|
-
e && (T("create", e), E.value = "");
|
|
142
|
-
}
|
|
143
|
-
let O = _(!1), k = _(!1), A = _(-1), j = _(null), M = _(null), N = me(), We = () => (typeof w.anchor == "function" ? w.anchor() : w.anchor) ?? M.value ?? j.value;
|
|
144
|
-
function Ge() {
|
|
145
|
-
(M.value ?? j.value?.querySelector("button, [tabindex]"))?.focus();
|
|
146
|
-
}
|
|
147
|
-
let P = _(null);
|
|
148
|
-
re(P);
|
|
149
|
-
let Ke = _({
|
|
150
|
-
position: "fixed",
|
|
151
|
-
top: "0px",
|
|
152
|
-
left: "0px",
|
|
153
|
-
width: "0px",
|
|
154
|
-
zIndex: "9999"
|
|
155
|
-
}), F = a(w, `nb-select-${pe()}`), I = F.id, L = F.disabled, R = F.grouped, { ids: z, messageId: qe, invalid: Je, live: B, key: V } = ne(w, I), Ye = s(() => te(R ? void 0 : qe.value, F.describedBy.value)), Xe = s(() => Je.value ?? (F.status.value === "error" ? "true" : void 0)), Ze = s(() => !R && !!w.error || F.status.value === "error"), H = s(() => `${I.value}-listbox`), U = (e) => `${I.value}-option-${e}`, W = s(() => O.value && !w.searchable && A.value >= 0 ? U(A.value) : void 0), G = s(() => w.modelValue == null ? [] : Array.isArray(w.modelValue) ? w.modelValue : [w.modelValue]), K = s(() => {
|
|
156
|
-
if (!(w.multiple || G.value.length !== 1)) return (w.options ?? []).find((e) => e.value === G.value[0])?.icon;
|
|
157
|
-
}), q = s(() => {
|
|
158
|
-
if (G.value.length === 0) return "";
|
|
159
|
-
let e = w.options ?? [];
|
|
160
|
-
return w.multiple ? G.value.length === 1 ? e.find((e) => e.value === G.value[0])?.label ?? String(G.value[0]) : G.value.length === 2 ? G.value.map((t) => e.find((e) => e.value === t)?.label ?? String(t)).join(", ") : `${G.value.length} selected` : e.find((e) => e.value === G.value[0])?.label ?? String(G.value[0]);
|
|
161
|
-
});
|
|
162
|
-
function Qe(e) {
|
|
163
|
-
return G.value.includes(e);
|
|
164
|
-
}
|
|
165
|
-
let $e = (e) => e.normalize("NFD").replace(/\p{M}/gu, "").toLowerCase(), et = s(() => {
|
|
166
|
-
let e = w.options ?? [], t = w.searchable ? $e(D.value.trim()) : "", n = /* @__PURE__ */ new Set();
|
|
167
|
-
return e.forEach((e, r) => {
|
|
168
|
-
(!t || $e(e.label).includes(t)) && n.add(r);
|
|
169
|
-
}), n;
|
|
170
|
-
}), tt = s(() => {
|
|
171
|
-
let e = [];
|
|
172
|
-
return (w.options ?? []).forEach((t, n) => {
|
|
173
|
-
if (!et.value.has(n)) return;
|
|
174
|
-
let r = e[e.length - 1];
|
|
175
|
-
(!r || r.name !== t.group) && e.push({
|
|
176
|
-
key: `${e.length}:${t.group ?? ""}`,
|
|
177
|
-
name: t.group,
|
|
178
|
-
labelId: `${I.value}-group-${e.length}`,
|
|
179
|
-
entries: []
|
|
180
|
-
}), e[e.length - 1].entries.push({
|
|
181
|
-
option: t,
|
|
182
|
-
index: n
|
|
183
|
-
});
|
|
184
|
-
}), e;
|
|
185
|
-
});
|
|
186
|
-
function nt(e, t) {
|
|
187
|
-
let n = w.options ?? [];
|
|
188
|
-
for (let r = e + t; r >= 0 && r < n.length; r += t) if (!n[r].disabled && et.value.has(r)) return r;
|
|
189
|
-
return e;
|
|
190
|
-
}
|
|
191
|
-
function rt(e) {
|
|
192
|
-
if (e.disabled) return;
|
|
193
|
-
let t;
|
|
194
|
-
if (w.multiple) {
|
|
195
|
-
let n = [...G.value], r = n.indexOf(e.value);
|
|
196
|
-
r >= 0 ? n.splice(r, 1) : n.push(e.value), t = n;
|
|
197
|
-
} else t = e.value, Y();
|
|
198
|
-
T("update:modelValue", t), T("change", t);
|
|
199
|
-
}
|
|
200
|
-
function it() {
|
|
201
|
-
let e = We();
|
|
202
|
-
if (!e) return;
|
|
203
|
-
let t = e.getBoundingClientRect(), n = P.value?.offsetHeight ?? 0, r = window.innerHeight - t.bottom, ee = t.top, i = n > 0 && r < n && ee > r, a = N.trigger ? Math.max(t.width, 240) : t.width, te = N.trigger ? Math.max(8, Math.min(t.left, window.innerWidth - a - 8)) : t.left;
|
|
204
|
-
Ke.value = {
|
|
205
|
-
position: "fixed",
|
|
206
|
-
top: i ? `${t.top - n}px` : `${t.bottom}px`,
|
|
207
|
-
left: `${te}px`,
|
|
208
|
-
width: `${a}px`,
|
|
209
|
-
zIndex: "9999"
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
function J() {
|
|
213
|
-
if (L.value) return;
|
|
214
|
-
O.value = !0, it();
|
|
215
|
-
let e = w.options ?? [];
|
|
216
|
-
A.value = G.value.length > 0 ? Math.max(0, e.findIndex((e) => e.value === G.value[0])) : -1, ce(() => {
|
|
217
|
-
it(), Q(), He.value?.focus({ preventScroll: !0 });
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
function Y() {
|
|
221
|
-
let e = !!P.value?.contains(document.activeElement);
|
|
222
|
-
O.value = !1, A.value = -1, D.value = "", e && Ge();
|
|
223
|
-
}
|
|
224
|
-
function X() {
|
|
225
|
-
O.value ? Y() : J();
|
|
226
|
-
}
|
|
227
|
-
function at(e) {
|
|
228
|
-
let t = e.target, n = j.value?.contains(t) ?? !1, r = P.value?.contains(t) ?? !1;
|
|
229
|
-
!n && !r && Y();
|
|
230
|
-
}
|
|
231
|
-
function Z() {
|
|
232
|
-
O.value && it();
|
|
233
|
-
}
|
|
234
|
-
ge(O, (e) => {
|
|
235
|
-
e ? (document.addEventListener("mousedown", at), window.addEventListener("scroll", Z, !0), window.addEventListener("resize", Z)) : (document.removeEventListener("mousedown", at), window.removeEventListener("scroll", Z, !0), window.removeEventListener("resize", Z));
|
|
236
|
-
}), de(() => {
|
|
237
|
-
document.removeEventListener("mousedown", at), window.removeEventListener("scroll", Z, !0), window.removeEventListener("resize", Z);
|
|
238
|
-
});
|
|
239
|
-
function ot(e) {
|
|
240
|
-
let t = w.options ?? [];
|
|
241
|
-
if (!O.value) {
|
|
242
|
-
(e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), J());
|
|
243
|
-
return;
|
|
244
|
-
}
|
|
245
|
-
e.key === "Escape" ? (Y(), e.preventDefault()) : e.key === "Tab" ? Y() : e.key === "ArrowDown" ? (e.preventDefault(), A.value = nt(A.value, 1), Q()) : e.key === "ArrowUp" ? (e.preventDefault(), A.value > 0 && (A.value = nt(A.value, -1)), Q()) : (e.key === "Enter" || e.key === " ") && A.value >= 0 && (e.preventDefault(), rt(t[A.value]));
|
|
246
|
-
}
|
|
247
|
-
function Q() {
|
|
248
|
-
ce(() => {
|
|
249
|
-
!P.value || A.value < 0 || P.value.querySelector(`[data-index="${A.value}"]`)?.scrollIntoView({ block: "nearest" });
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
ge(D, () => {
|
|
253
|
-
if (!O.value) return;
|
|
254
|
-
let e = nt(-1, 1);
|
|
255
|
-
A.value = e === -1 ? -1 : e, Q();
|
|
256
|
-
});
|
|
257
|
-
function st(e) {
|
|
258
|
-
if (e.key === " ") {
|
|
259
|
-
e.stopPropagation();
|
|
260
|
-
return;
|
|
261
|
-
}
|
|
262
|
-
if (e.key === "Home" || e.key === "End") {
|
|
263
|
-
e.stopPropagation();
|
|
264
|
-
return;
|
|
265
|
-
}
|
|
266
|
-
ot(e);
|
|
267
|
-
}
|
|
268
|
-
let ct = s(() => ({
|
|
269
|
-
isOpen: O.value,
|
|
270
|
-
toggle: X,
|
|
271
|
-
open: J,
|
|
272
|
-
close: Y,
|
|
273
|
-
attrs: {
|
|
274
|
-
"aria-expanded": O.value,
|
|
275
|
-
"aria-haspopup": "listbox",
|
|
276
|
-
"aria-controls": O.value ? H.value : void 0,
|
|
277
|
-
"aria-activedescendant": W.value,
|
|
278
|
-
"aria-invalid": Je.value,
|
|
279
|
-
onClick: X
|
|
280
|
-
}
|
|
281
|
-
})), lt = n(), ut = s(() => w.clearLabel ?? lt.value.selectClear), $ = s(() => w.clearable && !L.value && G.value.length > 0);
|
|
282
|
-
function dt() {
|
|
283
|
-
let e = w.multiple ? [] : null;
|
|
284
|
-
Y(), T("update:modelValue", e), T("change", e), Ge();
|
|
285
|
-
}
|
|
286
|
-
let ft = s(() => [
|
|
287
|
-
"nb-select",
|
|
288
|
-
`nb-select--${w.variant}`,
|
|
289
|
-
`nb-select--${F.size.value}`,
|
|
290
|
-
{
|
|
291
|
-
"nb-select--open": O.value,
|
|
292
|
-
"nb-select--focused": k.value && !O.value,
|
|
293
|
-
"nb-select--error": Ze.value,
|
|
294
|
-
"nb-select--warning": !Ze.value && (!R && !!w.warning || F.status.value === "warning"),
|
|
295
|
-
"nb-select--multiple": w.multiple,
|
|
296
|
-
"nb-select--bare": !!N.trigger
|
|
297
|
-
}
|
|
298
|
-
]);
|
|
299
|
-
return ze({
|
|
300
|
-
open: J,
|
|
301
|
-
close: Y
|
|
302
|
-
}), (n, a) => (g(), u(o, null, [d("div", se({
|
|
303
|
-
ref_key: "rootRef",
|
|
304
|
-
ref: j
|
|
305
|
-
}, n.$attrs, {
|
|
306
|
-
class: ft.value,
|
|
307
|
-
onKeydown: ot
|
|
308
|
-
}), [n.$slots.trigger ? v(n.$slots, "trigger", le(se({ key: 0 }, ct.value))) : m.variant === "default" ? (g(), u(o, { key: 1 }, [
|
|
309
|
-
n.$slots.label && !b(R) ? v(n.$slots, "label", { key: 0 }) : m.label && !b(R) ? (g(), c(ee, {
|
|
310
|
-
key: 1,
|
|
311
|
-
for: b(I),
|
|
312
|
-
required: m.required,
|
|
313
|
-
disabled: b(L)
|
|
314
|
-
}, {
|
|
315
|
-
default: x(() => [f(y(m.label), 1)]),
|
|
316
|
-
_: 1
|
|
317
|
-
}, 8, [
|
|
318
|
-
"for",
|
|
319
|
-
"required",
|
|
320
|
-
"disabled"
|
|
321
|
-
])) : l("", !0),
|
|
322
|
-
p(Ve, { wrap: m.clearable }, {
|
|
323
|
-
default: x(() => [d("button", {
|
|
324
|
-
id: b(I),
|
|
325
|
-
ref_key: "triggerRef",
|
|
326
|
-
ref: M,
|
|
327
|
-
type: "button",
|
|
328
|
-
class: "nb-select__trigger",
|
|
329
|
-
role: "combobox",
|
|
330
|
-
"aria-expanded": O.value,
|
|
331
|
-
"aria-haspopup": "listbox",
|
|
332
|
-
"aria-controls": O.value ? H.value : void 0,
|
|
333
|
-
"aria-activedescendant": W.value,
|
|
334
|
-
"aria-disabled": b(L) || void 0,
|
|
335
|
-
"aria-required": m.required || void 0,
|
|
336
|
-
"aria-invalid": Xe.value,
|
|
337
|
-
"aria-describedby": Ye.value,
|
|
338
|
-
disabled: b(L) || void 0,
|
|
339
|
-
onClick: X,
|
|
340
|
-
onFocus: a[0] ||= (e) => k.value = !0,
|
|
341
|
-
onBlur: a[1] ||= (e) => k.value = !1
|
|
342
|
-
}, [
|
|
343
|
-
d("span", { class: h(["nb-select__value", {
|
|
344
|
-
"nb-select__value--placeholder": !q.value,
|
|
345
|
-
"nb-select__value--with-icon": !!K.value
|
|
346
|
-
}]) }, [K.value ? (g(), c(t, {
|
|
347
|
-
key: 0,
|
|
348
|
-
class: "nb-select__value-icon",
|
|
349
|
-
name: K.value,
|
|
350
|
-
size: 16
|
|
351
|
-
}, null, 8, ["name"])) : l("", !0), q.value ? v(n.$slots, "value", {
|
|
352
|
-
key: 1,
|
|
353
|
-
values: G.value
|
|
354
|
-
}, () => [f(y(q.value), 1)]) : (g(), u(o, { key: 2 }, [f(y(m.placeholder), 1)], 64))], 2),
|
|
355
|
-
m.error && !b(R) ? (g(), c(i, {
|
|
356
|
-
key: 0,
|
|
357
|
-
variant: "error",
|
|
358
|
-
"icon-only": !0,
|
|
359
|
-
live: "off",
|
|
360
|
-
"aria-hidden": "true",
|
|
361
|
-
class: "nb-select__status-icon"
|
|
362
|
-
}, {
|
|
363
|
-
default: x(() => [f(y(m.error), 1)]),
|
|
364
|
-
_: 1
|
|
365
|
-
})) : m.warning && !b(R) ? (g(), c(i, {
|
|
366
|
-
key: 1,
|
|
367
|
-
variant: "warning",
|
|
368
|
-
"icon-only": !0,
|
|
369
|
-
live: "off",
|
|
370
|
-
"aria-hidden": "true",
|
|
371
|
-
class: "nb-select__status-icon"
|
|
372
|
-
}, {
|
|
373
|
-
default: x(() => [f(y(m.warning), 1)]),
|
|
374
|
-
_: 1
|
|
375
|
-
})) : l("", !0),
|
|
376
|
-
$.value ? (g(), u("span", Se)) : l("", !0),
|
|
377
|
-
p(r, {
|
|
378
|
-
align: "center",
|
|
379
|
-
justify: "center",
|
|
380
|
-
class: "nb-select__caret"
|
|
381
|
-
}, {
|
|
382
|
-
default: x(() => [p(t, {
|
|
383
|
-
name: O.value ? b(be) : b(ve),
|
|
384
|
-
size: 16
|
|
385
|
-
}, null, 8, ["name"])]),
|
|
386
|
-
_: 1
|
|
387
|
-
})
|
|
388
|
-
], 40, xe), $.value ? (g(), c(e, {
|
|
389
|
-
key: 0,
|
|
390
|
-
variant: "ghost",
|
|
391
|
-
icon: b(ye),
|
|
392
|
-
size: "xs",
|
|
393
|
-
label: ut.value,
|
|
394
|
-
class: "nb-select__clear",
|
|
395
|
-
onClick: dt,
|
|
396
|
-
onKeydown: [a[2] ||= S(C(() => {}, ["stop"]), ["enter"]), a[3] ||= S(C(() => {}, ["stop"]), ["space"])]
|
|
397
|
-
}, null, 8, ["icon", "label"])) : l("", !0)]),
|
|
398
|
-
_: 3
|
|
399
|
-
}, 8, ["wrap"]),
|
|
400
|
-
m.error && !b(R) ? (g(), c(i, {
|
|
401
|
-
id: b(z).error,
|
|
402
|
-
key: b(V),
|
|
403
|
-
variant: "error",
|
|
404
|
-
live: b(B),
|
|
405
|
-
class: "nb-select__message"
|
|
406
|
-
}, {
|
|
407
|
-
default: x(() => [f(y(m.error), 1)]),
|
|
408
|
-
_: 1
|
|
409
|
-
}, 8, ["id", "live"])) : m.warning && !b(R) ? (g(), c(i, {
|
|
410
|
-
id: b(z).warning,
|
|
411
|
-
key: b(V),
|
|
412
|
-
variant: "warning",
|
|
413
|
-
live: b(B),
|
|
414
|
-
class: "nb-select__message"
|
|
415
|
-
}, {
|
|
416
|
-
default: x(() => [f(y(m.warning), 1)]),
|
|
417
|
-
_: 1
|
|
418
|
-
}, 8, ["id", "live"])) : m.helper && !b(R) ? (g(), c(i, {
|
|
419
|
-
id: b(z).helper,
|
|
420
|
-
key: b(V),
|
|
421
|
-
variant: "helper",
|
|
422
|
-
live: b(B),
|
|
423
|
-
class: "nb-select__message"
|
|
424
|
-
}, {
|
|
425
|
-
default: x(() => [f(y(m.helper), 1)]),
|
|
426
|
-
_: 1
|
|
427
|
-
}, 8, ["id", "live"])) : l("", !0)
|
|
428
|
-
], 64)) : m.variant === "fluid" ? (g(), u(o, { key: 2 }, [p(Ve, { wrap: m.clearable }, {
|
|
429
|
-
default: x(() => [d("button", {
|
|
430
|
-
id: b(I),
|
|
431
|
-
ref_key: "triggerRef",
|
|
432
|
-
ref: M,
|
|
433
|
-
type: "button",
|
|
434
|
-
class: "nb-select__trigger",
|
|
435
|
-
role: "combobox",
|
|
436
|
-
"aria-expanded": O.value,
|
|
437
|
-
"aria-haspopup": "listbox",
|
|
438
|
-
"aria-controls": O.value ? H.value : void 0,
|
|
439
|
-
"aria-activedescendant": W.value,
|
|
440
|
-
"aria-disabled": b(L) || void 0,
|
|
441
|
-
"aria-required": m.required || void 0,
|
|
442
|
-
"aria-invalid": Xe.value,
|
|
443
|
-
"aria-describedby": Ye.value,
|
|
444
|
-
disabled: b(L) || void 0,
|
|
445
|
-
onClick: X,
|
|
446
|
-
onFocus: a[4] ||= (e) => k.value = !0,
|
|
447
|
-
onBlur: a[5] ||= (e) => k.value = !1
|
|
448
|
-
}, [(m.label || n.$slots.label) && !b(R) ? (g(), c(r, {
|
|
449
|
-
key: 0,
|
|
450
|
-
dir: "row",
|
|
451
|
-
align: "center",
|
|
452
|
-
gap: "xs",
|
|
453
|
-
class: "nb-select__inner-header"
|
|
454
|
-
}, {
|
|
455
|
-
default: x(() => [n.$slots.label ? v(n.$slots, "label", { key: 0 }) : (g(), u("label", we, [f(y(m.label) + " ", 1), m.required ? (g(), u("span", Te, "*")) : l("", !0)])), m.helper && !m.error && !m.warning ? (g(), c(i, {
|
|
456
|
-
key: 2,
|
|
457
|
-
id: b(z).helper,
|
|
458
|
-
variant: "helper",
|
|
459
|
-
"icon-only": !0,
|
|
460
|
-
live: "off",
|
|
461
|
-
"aria-hidden": "true",
|
|
462
|
-
class: "nb-select__inner-message"
|
|
463
|
-
}, {
|
|
464
|
-
default: x(() => [f(y(m.helper), 1)]),
|
|
465
|
-
_: 1
|
|
466
|
-
}, 8, ["id"])) : l("", !0)]),
|
|
467
|
-
_: 3
|
|
468
|
-
})) : l("", !0), p(r, {
|
|
469
|
-
dir: "row",
|
|
470
|
-
align: "end",
|
|
471
|
-
flex: "",
|
|
472
|
-
class: "nb-select__value-row"
|
|
473
|
-
}, {
|
|
474
|
-
default: x(() => [
|
|
475
|
-
d("span", { class: h(["nb-select__value", {
|
|
476
|
-
"nb-select__value--placeholder": !q.value,
|
|
477
|
-
"nb-select__value--with-icon": !!K.value
|
|
478
|
-
}]) }, [K.value ? (g(), c(t, {
|
|
479
|
-
key: 0,
|
|
480
|
-
class: "nb-select__value-icon",
|
|
481
|
-
name: K.value,
|
|
482
|
-
size: 16
|
|
483
|
-
}, null, 8, ["name"])) : l("", !0), q.value ? v(n.$slots, "value", {
|
|
484
|
-
key: 1,
|
|
485
|
-
values: G.value
|
|
486
|
-
}, () => [f(y(q.value), 1)]) : (g(), u(o, { key: 2 }, [f(y(m.placeholder), 1)], 64))], 2),
|
|
487
|
-
$.value ? (g(), u("span", Ee)) : l("", !0),
|
|
488
|
-
p(r, {
|
|
489
|
-
align: "center",
|
|
490
|
-
justify: "center",
|
|
491
|
-
class: "nb-select__caret"
|
|
492
|
-
}, {
|
|
493
|
-
default: x(() => [p(t, {
|
|
494
|
-
name: O.value ? b(be) : b(ve),
|
|
495
|
-
size: 16
|
|
496
|
-
}, null, 8, ["name"])]),
|
|
497
|
-
_: 1
|
|
498
|
-
})
|
|
499
|
-
]),
|
|
500
|
-
_: 3
|
|
501
|
-
})], 40, Ce), $.value ? (g(), c(e, {
|
|
502
|
-
key: 0,
|
|
503
|
-
variant: "ghost",
|
|
504
|
-
icon: b(ye),
|
|
505
|
-
size: "xs",
|
|
506
|
-
label: ut.value,
|
|
507
|
-
class: "nb-select__clear",
|
|
508
|
-
onClick: dt,
|
|
509
|
-
onKeydown: [a[6] ||= S(C(() => {}, ["stop"]), ["enter"]), a[7] ||= S(C(() => {}, ["stop"]), ["space"])]
|
|
510
|
-
}, null, 8, ["icon", "label"])) : l("", !0)]),
|
|
511
|
-
_: 3
|
|
512
|
-
}, 8, ["wrap"]), m.error && !b(R) ? (g(), c(i, {
|
|
513
|
-
id: b(z).error,
|
|
514
|
-
key: b(V),
|
|
515
|
-
variant: "error",
|
|
516
|
-
live: b(B),
|
|
517
|
-
class: "nb-select__fluid-message"
|
|
518
|
-
}, {
|
|
519
|
-
default: x(() => [f(y(m.error), 1)]),
|
|
520
|
-
_: 1
|
|
521
|
-
}, 8, ["id", "live"])) : m.warning && !b(R) ? (g(), c(i, {
|
|
522
|
-
id: b(z).warning,
|
|
523
|
-
key: b(V),
|
|
524
|
-
variant: "warning",
|
|
525
|
-
live: b(B),
|
|
526
|
-
class: "nb-select__fluid-message"
|
|
527
|
-
}, {
|
|
528
|
-
default: x(() => [f(y(m.warning), 1)]),
|
|
529
|
-
_: 1
|
|
530
|
-
}, 8, ["id", "live"])) : l("", !0)], 64)) : l("", !0)], 16), (g(), c(ie, { to: "body" }, [p(ae, { name: "nb-select-pop" }, {
|
|
531
|
-
default: x(() => [O.value ? (g(), u("div", {
|
|
532
|
-
key: 0,
|
|
533
|
-
id: H.value,
|
|
534
|
-
ref_key: "dropdownRef",
|
|
535
|
-
ref: P,
|
|
536
|
-
class: h(["nb-select__dropdown", {
|
|
537
|
-
"nb-select__dropdown--check": m.selectedMark === "check",
|
|
538
|
-
"nb-select__dropdown--anchored": !!n.$slots.trigger
|
|
539
|
-
}]),
|
|
540
|
-
style: ue(Ke.value),
|
|
541
|
-
role: "listbox",
|
|
542
|
-
"aria-multiselectable": m.multiple || void 0
|
|
543
|
-
}, [
|
|
544
|
-
m.searchable ? (g(), u("div", Oe, [_e(d("input", {
|
|
545
|
-
ref_key: "searchRef",
|
|
546
|
-
ref: He,
|
|
547
|
-
"onUpdate:modelValue": a[8] ||= (e) => D.value = e,
|
|
548
|
-
type: "search",
|
|
549
|
-
class: "nb-select__search-input",
|
|
550
|
-
autocomplete: "off",
|
|
551
|
-
spellcheck: "false",
|
|
552
|
-
placeholder: m.searchPlaceholder,
|
|
553
|
-
"aria-label": m.searchPlaceholder,
|
|
554
|
-
"aria-controls": H.value,
|
|
555
|
-
"aria-activedescendant": A.value >= 0 ? U(A.value) : void 0,
|
|
556
|
-
onKeydown: st
|
|
557
|
-
}, null, 40, ke), [[he, D.value]])])) : l("", !0),
|
|
558
|
-
(g(!0), u(o, null, fe(tt.value, (e) => (g(), u("div", {
|
|
559
|
-
key: e.key,
|
|
560
|
-
class: "nb-select__group",
|
|
561
|
-
role: "group",
|
|
562
|
-
"aria-labelledby": e.name ? e.labelId : void 0
|
|
563
|
-
}, [e.name ? (g(), u("div", {
|
|
564
|
-
key: 0,
|
|
565
|
-
id: e.labelId,
|
|
566
|
-
class: "nb-select__group-label"
|
|
567
|
-
}, y(e.name), 9, je)) : l("", !0), (g(!0), u(o, null, fe(e.entries, (e) => (g(), u("div", {
|
|
568
|
-
id: U(e.index),
|
|
569
|
-
key: e.option.value,
|
|
570
|
-
"data-index": e.index,
|
|
571
|
-
class: h(["nb-select__option", {
|
|
572
|
-
"nb-select__option--selected": Qe(e.option.value),
|
|
573
|
-
"nb-select__option--highlighted": A.value === e.index,
|
|
574
|
-
"nb-select__option--disabled": e.option.disabled
|
|
575
|
-
}]),
|
|
576
|
-
role: "option",
|
|
577
|
-
"aria-selected": Qe(e.option.value),
|
|
578
|
-
"aria-disabled": e.option.disabled || void 0,
|
|
579
|
-
onMouseenter: (t) => A.value = e.index,
|
|
580
|
-
onClick: (t) => rt(e.option)
|
|
581
|
-
}, [
|
|
582
|
-
m.multiple || m.selectedMark === "check" ? (g(), u("span", Ne, [Qe(e.option.value) ? (g(), u("svg", Pe, [...a[12] ||= [d("path", {
|
|
583
|
-
d: "M1 4l3 3 5-6",
|
|
584
|
-
stroke: "currentColor",
|
|
585
|
-
"stroke-width": "1.5",
|
|
586
|
-
"stroke-linecap": "round",
|
|
587
|
-
"stroke-linejoin": "round"
|
|
588
|
-
}, null, -1)]])) : l("", !0)])) : l("", !0),
|
|
589
|
-
e.option.icon ? (g(), c(t, {
|
|
590
|
-
key: 1,
|
|
591
|
-
class: "nb-select__option-icon",
|
|
592
|
-
name: e.option.icon,
|
|
593
|
-
size: 16
|
|
594
|
-
}, null, 8, ["name"])) : l("", !0),
|
|
595
|
-
d("span", Fe, [v(n.$slots, "option", { option: e.option }, () => [f(y(e.option.label), 1)])])
|
|
596
|
-
], 42, Me))), 128))], 8, Ae))), 128)),
|
|
597
|
-
!m.options || m.options.length === 0 ? (g(), u("div", Ie, " No options ")) : m.searchable && et.value.size === 0 ? (g(), u("div", Le, y(m.noResultsLabel), 1)) : l("", !0),
|
|
598
|
-
m.creatable ? (g(), u("div", {
|
|
599
|
-
key: 3,
|
|
600
|
-
class: "nb-select__create",
|
|
601
|
-
onMousedown: a[11] ||= C(() => {}, ["prevent"])
|
|
602
|
-
}, [_e(d("input", {
|
|
603
|
-
"onUpdate:modelValue": a[9] ||= (e) => E.value = e,
|
|
604
|
-
type: "text",
|
|
605
|
-
class: "nb-select__create-input",
|
|
606
|
-
placeholder: m.createPlaceholder || "Add new…",
|
|
607
|
-
onKeydown: [S(C(Ue, ["prevent"]), ["enter"]), a[10] ||= C(() => {}, ["stop"])]
|
|
608
|
-
}, null, 40, Re), [[he, E.value]])], 32)) : l("", !0)
|
|
609
|
-
], 14, De)) : l("", !0)]),
|
|
610
|
-
_: 3
|
|
611
|
-
})]))], 64));
|
|
612
|
-
}
|
|
613
|
-
});
|
|
614
|
-
//#endregion
|
|
615
|
-
export { ze as t };
|