@pantograph/vue 0.23.3 → 0.23.5
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/ActionButton/index.js +1 -1
- package/dist/ActionButton/index.umd.cjs +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-C40QLnax.js → ActionButton.vue_vue_type_script_setup_true_lang-Byy-SUY7.js} +2 -2
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-byWs7FGA.js +1 -0
- package/dist/Alert/index.js +1 -1
- package/dist/Alert/index.umd.cjs +1 -1
- package/dist/{Alert.vue_vue_type_style_index_0_lang-DugtMNn6.js → Alert.vue_vue_type_style_index_0_lang-B30XPHvm.js} +4 -4
- package/dist/{Alert.vue_vue_type_style_index_0_lang-x6PDS57O.js → Alert.vue_vue_type_style_index_0_lang-zAvnYwjn.js} +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/Avatar/index.umd.cjs +1 -1
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-Dbdnz5VW.js → Avatar.vue_vue_type_style_index_0_lang-B5QoCaie.js} +1 -1
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-DTxpdu2k.js → Avatar.vue_vue_type_style_index_0_lang-BH1gFvLI.js} +3 -3
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/AvatarGroup/index.umd.cjs +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Badge/index.umd.cjs +1 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-X_MnjVp9.js +1 -0
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-Dc6rezGr.js → Badge.vue_vue_type_script_setup_true_lang-uNQWz2GS.js} +2 -2
- package/dist/Base/BaseBadge/BaseBadge.d.ts +1 -1
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-BMX9MX3W.js → BaseBadge.vue_vue_type_style_index_0_lang-Bhdde0lY.js} +14 -13
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-CA4e9gEN.js +1 -0
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-BGYEuhbj.js → BaseButton.vue_vue_type_style_index_0_lang-CxL85kWZ.js} +19 -18
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-DLorGJwo.js +1 -0
- package/dist/Button/Button.d.ts +2 -2
- package/dist/Button/index.js +1 -1
- package/dist/Button/index.umd.cjs +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-bjhWtH8H.js → Button.vue_vue_type_script_setup_true_lang-CZVffRST.js} +2 -2
- package/dist/Button.vue_vue_type_script_setup_true_lang-JEp-xK1r.js +1 -0
- package/dist/Checkbox/Checkbox.d.ts +2 -2
- package/dist/Checkbox/index.js +1 -1
- package/dist/Checkbox/index.umd.cjs +1 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-Dh2oLmt5.js +1 -0
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-Dhn_dWz7.js +224 -0
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +7 -4
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/Chip/Chip.d.ts +1 -0
- package/dist/Chip/index.js +2 -2
- package/dist/Chip/index.umd.cjs +1 -1
- package/dist/{Chip.vue_vue_type_style_index_0_lang-Ci2Oqnfd.js → Chip.vue_vue_type_style_index_0_lang-DKr8EzbN.js} +24 -22
- package/dist/Chip.vue_vue_type_style_index_0_lang-Ha5k2W3V.js +1 -0
- package/dist/ChipGroup/index.js +1 -1
- package/dist/ChipGroup/index.umd.cjs +1 -1
- package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-Bln1W3La.js → ChipGroup.vue_vue_type_style_index_0_lang-GEZo5nnM.js} +1 -1
- package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-ZlvXsJHD.js → ChipGroup.vue_vue_type_style_index_0_lang-V98bakNp.js} +1 -1
- package/dist/ColorPicker/index.js +1 -1
- package/dist/ColorPicker/index.umd.cjs +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-BnjCOPow.js → ColorPicker.vue_vue_type_style_index_0_lang-BN0V43ck.js} +2 -2
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-B8rVS60w.js → ColorPicker.vue_vue_type_style_index_0_lang-ofcHj216.js} +6 -6
- package/dist/ColorSwatch/ColorSwatch.d.ts +1 -1
- package/dist/ColorSwatch/index.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-C2CGtzy8.js +1 -0
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-CjQa4I-g.js → ColorSwatch.vue_vue_type_style_index_0_lang-DvCAHexP.js} +4 -5
- package/dist/ColorSwatchGroup/index.js +1 -1
- package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-BxBlKgbC.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-BfwoeYwS.js} +37 -35
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-DtLQQxrr.js +1 -0
- package/dist/ColorTrigger/index.js +1 -1
- package/dist/ColorTrigger/index.umd.cjs +1 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-CieQBrWD.js +1 -0
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-BNTg203W.js → ColorTrigger.vue_vue_type_style_index_0_lang-W0kl7vow.js} +25 -23
- package/dist/Combobox/Combobox.d.ts +82 -0
- package/dist/Combobox/Combobox.model.d.ts +4 -0
- package/dist/Combobox/ComboboxInput.d.ts +2 -0
- package/dist/Combobox/ComboboxLabel.d.ts +16 -0
- package/dist/Combobox/ComboboxOption.d.ts +19 -0
- package/dist/Combobox/ComboboxTrigger.d.ts +4 -0
- package/dist/Combobox/ComboboxWrapper.d.ts +4 -0
- package/dist/Combobox/context.d.ts +34 -0
- package/dist/Combobox/index.d.ts +4 -0
- package/dist/Combobox/index.js +8 -0
- package/dist/Combobox/index.umd.cjs +1 -0
- package/dist/Combobox/types.d.ts +111 -0
- package/dist/Combobox.vue_vue_type_style_index_0_lang-B2b5MoSC.js +924 -0
- package/dist/Combobox.vue_vue_type_style_index_0_lang-DUnSgObq.js +1 -0
- package/dist/ConfigProvider/index.js +5 -5
- package/dist/ConfigProvider/index.umd.cjs +1 -1
- package/dist/DataTable/DataTable.d.ts +1 -1
- package/dist/DataTable/index.js +1 -1
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/{DataTable.vue_vue_type_style_index_0_lang-9W9p_J1i.js → DataTable.vue_vue_type_style_index_0_lang-D_T8Xxsh.js} +161 -156
- package/dist/DataTable.vue_vue_type_style_index_0_lang-aEvZTZpM.js +1 -0
- package/dist/DropZone/DropZone.d.ts +1 -1
- package/dist/DropZone/index.js +1 -1
- package/dist/DropZone/index.umd.cjs +1 -1
- package/dist/DropZone.vue_vue_type_style_index_0_lang-qf9hNusy.js +1 -0
- package/dist/{DropZone.vue_vue_type_style_index_0_lang-CH23eQwT.js → DropZone.vue_vue_type_style_index_0_lang-vhZKklYh.js} +2 -2
- package/dist/Empty/index.js +1 -1
- package/dist/Empty/index.umd.cjs +1 -1
- package/dist/Empty.vue_vue_type_style_index_0_lang-DidQV2p4.js +1 -0
- package/dist/{Empty.vue_vue_type_style_index_0_lang-C4a5JepF.js → Empty.vue_vue_type_style_index_0_lang-jfObDGf0.js} +1 -1
- package/dist/FloatButton/index.js +1 -1
- package/dist/FloatButton/index.umd.cjs +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-BGZBnlXi.js → FloatButton.vue_vue_type_script_setup_true_lang-DQGcKCNh.js} +2 -2
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-fS1Yq2no.js +1 -0
- package/dist/Form/Form.d.ts +2 -2
- package/dist/Form/index.js +1 -1
- package/dist/Form/index.umd.cjs +1 -1
- package/dist/FormItem.vue_vue_type_style_index_0_lang-CTRszGlB.js +9 -0
- package/dist/FormItem.vue_vue_type_style_index_0_lang-DbMENNc4.js +2785 -0
- package/dist/GOPicker/GOPicker.d.ts +13 -8
- package/dist/GOPicker/index.js +1 -1
- package/dist/GOPicker/index.umd.cjs +1 -1
- package/dist/GraphicalObject/index.js +1 -1
- package/dist/GraphicalObject/index.umd.cjs +1 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-Cx0_O9-1.js +1 -0
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-BZCn44kG.js → GraphicalObject.vue_vue_type_script_setup_true_lang-tkL7jO-r.js} +3 -3
- package/dist/GraphicalObjectGroup/index.js +1 -1
- package/dist/GraphicalObjectGroup/index.umd.cjs +1 -1
- package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-COvFyzfP.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CUdg78Ni.js} +1 -1
- package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DiSPJXBZ.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-D-dG-MEU.js} +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/Icon/index.umd.cjs +1 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-CbLL-Ngi.js +49 -0
- package/dist/Icon.vue_vue_type_style_index_0_lang-D3cRtJNJ.js +1 -0
- package/dist/IconButton/IconButton.d.ts +2 -2
- package/dist/IconButton/index.js +1 -1
- package/dist/IconButton/index.umd.cjs +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-BjFzPsUi.js → IconButton.vue_vue_type_script_setup_true_lang-C0T_gnJS.js} +2 -2
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-DEHsCjTK.js +1 -0
- package/dist/Image/index.js +1 -1
- package/dist/Image/index.umd.cjs +1 -1
- package/dist/Image.vue_vue_type_style_index_0_lang-CgczUp3D.js +1 -0
- package/dist/{Image.vue_vue_type_style_index_0_lang-3vJwTwh4.js → Image.vue_vue_type_style_index_0_lang-Cmn0ijum.js} +17 -16
- package/dist/IndentLevel/IndentLevel.d.ts +1 -1
- package/dist/IndentLevel/index.js +1 -1
- package/dist/IndentLevel/index.umd.cjs +1 -1
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-BWLdpspA.js → IndentLevel.vue_vue_type_style_index_0_lang-Cjlog39U.js} +8 -8
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-Cwk_0wRr.js +1 -0
- package/dist/Indicator/index.js +1 -1
- package/dist/Indicator/index.umd.cjs +1 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-C-czibvQ.js +1 -0
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-B1mn9s7i.js → Indicator.vue_vue_type_script_setup_true_lang-DhdiDbED.js} +2 -2
- package/dist/Input/Input.d.ts +4 -4
- package/dist/Input/index.js +1 -1
- package/dist/Input/index.umd.cjs +1 -1
- package/dist/{Input.vue_vue_type_style_index_0_lang-BFNYYFfe.js → Input.vue_vue_type_style_index_0_lang-Ccow0nkI.js} +48 -46
- package/dist/Input.vue_vue_type_style_index_0_lang-yHgbuD_4.js +1 -0
- package/dist/Kbd/index.js +1 -1
- package/dist/Kbd/index.umd.cjs +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-uEudChpD.js → Kbd.vue_vue_type_style_index_0_lang-BQkzD8ay.js} +1 -1
- package/dist/Kbd.vue_vue_type_style_index_0_lang-CjNtLg1e.js +1 -0
- package/dist/Label/index.js +1 -1
- package/dist/Label/index.umd.cjs +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/Link/index.umd.cjs +1 -1
- package/dist/{Link.vue_vue_type_style_index_0_lang-AsoIRQm_.js → Link.vue_vue_type_style_index_0_lang-BrS3jRuX.js} +16 -15
- package/dist/Link.vue_vue_type_style_index_0_lang-C1i1VsGw.js +1 -0
- package/dist/Menu/Menu.d.ts +6 -13
- package/dist/Menu/MenuItemWrapper.d.ts +15 -0
- package/dist/Menu/index.js +1 -1
- package/dist/Menu/index.umd.cjs +1 -1
- package/dist/MenuItem/MenuItem.d.ts +2 -26
- package/dist/MenuItem/MenuItemContent.d.ts +2 -1
- package/dist/MenuItem/index.js +1 -1
- package/dist/MenuItem/index.umd.cjs +1 -1
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-EaIWA0xP.js +579 -0
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-yuREIf6x.js +1 -0
- package/dist/Popover/Popover.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/Popover/index.umd.cjs +1 -1
- package/dist/Popover/utils.d.ts +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-D7GA-4CS.js +1 -0
- package/dist/Popover.vue_vue_type_style_index_0_lang-SLueqv_E.js +241 -0
- package/dist/RadioGroup/RadioGroupItem.d.ts +2 -2
- package/dist/RadioGroup/index.js +1 -1
- package/dist/RadioGroup/index.umd.cjs +1 -1
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-bWA97IMn.js → RadioGroup.vue_vue_type_script_setup_true_lang-kxQIMaNz.js} +2 -2
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-mjzo15tQ.js +1 -0
- package/dist/ScrollContainer/ScrollContainer.d.ts +1 -1
- package/dist/ScrollContainer/index.js +1 -1
- package/dist/ScrollContainer/index.umd.cjs +1 -1
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-BIoD2_5T.js +1 -0
- package/dist/{ScrollContainer.vue_vue_type_style_index_0_lang-CZgFGbH_.js → ScrollContainer.vue_vue_type_style_index_0_lang-DfMU1mTu.js} +1 -1
- package/dist/Segmented/Segmented.d.ts +57 -0
- package/dist/Segmented/Segmented.model.d.ts +2 -0
- package/dist/Segmented/index.d.ts +2 -0
- package/dist/Segmented/index.js +6 -0
- package/dist/Segmented/index.umd.cjs +1 -0
- package/dist/Segmented.vue_vue_type_style_index_0_lang-906ZRFCK.js +165 -0
- package/dist/Segmented.vue_vue_type_style_index_0_lang-B4aQCMXZ.js +1 -0
- package/dist/Select/Select.d.ts +2 -2
- package/dist/Select/context.d.ts +1 -3
- package/dist/Select/index.js +1 -1
- package/dist/Select/index.umd.cjs +1 -1
- package/dist/Select/types.d.ts +1 -0
- package/dist/Select.vue_vue_type_style_index_0_lang-C1iYwWCJ.js +1 -0
- package/dist/Select.vue_vue_type_style_index_0_lang-DUy8bGSD.js +714 -0
- package/dist/Shortcut/index.js +1 -1
- package/dist/Shortcut/index.umd.cjs +1 -1
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-DOhEtw_i.js +1 -0
- package/dist/{Shortcut.vue_vue_type_style_index_0_lang-DXBz4Ysp.js → Shortcut.vue_vue_type_style_index_0_lang-TtzM0gcb.js} +2 -2
- package/dist/Skeleton/Skeleton.d.ts +1 -1
- package/dist/Spinner/index.js +1 -1
- package/dist/Spinner/index.umd.cjs +1 -1
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-DxV3D_9N.js → Spinner.vue_vue_type_style_index_0_lang-Dc9P7GsT.js} +13 -13
- package/dist/Spinner.vue_vue_type_style_index_0_lang-RE3hFFZA.js +1 -0
- package/dist/SubMenu/SubMenu.d.ts +44 -0
- package/dist/SubMenu/index.d.ts +1 -0
- package/dist/SubMenu/index.js +5 -0
- package/dist/SubMenu/index.umd.cjs +1 -0
- package/dist/Switch/Switch.d.ts +3 -3
- package/dist/Switch/index.js +1 -1
- package/dist/Switch/index.umd.cjs +1 -1
- package/dist/{Switch.vue_vue_type_style_index_0_lang-BrkQxi9f.js → Switch.vue_vue_type_style_index_0_lang-BM-h82G0.js} +5 -4
- package/dist/Switch.vue_vue_type_style_index_0_lang-DHT9utPp.js +1 -0
- package/dist/THead.vue_vue_type_style_index_0_lang-B6U8HrWi.js +1 -0
- package/dist/{THead.vue_vue_type_style_index_0_lang-BcVlFS1z.js → THead.vue_vue_type_style_index_0_lang-CHicticP.js} +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/Table/index.umd.cjs +1 -1
- package/dist/Textarea/Textarea.d.ts +7 -7
- package/dist/Textarea/index.js +1 -1
- package/dist/Textarea/index.umd.cjs +1 -1
- package/dist/Textarea.vue_vue_type_style_index_0_lang-DiCqcDyH.js +1 -0
- package/dist/{Textarea.vue_vue_type_style_index_0_lang-DnQgUyjY.js → Textarea.vue_vue_type_style_index_0_lang-UyndJFBo.js} +26 -24
- package/dist/Tree/Tree.model.d.ts +2 -1
- package/dist/Tree/TreeNode.d.ts +6 -6
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/Tree/utils.d.ts +14 -0
- package/dist/Tree.vue_vue_type_style_index_0_lang-B6uVPvX8.js +6 -0
- package/dist/{Tree.vue_vue_type_style_index_0_lang-BRU_5PuO.js → Tree.vue_vue_type_style_index_0_lang-a_nDBSWx.js} +678 -695
- package/dist/_getTag-CIY3u1-e.js +1 -0
- package/dist/_getTag-MDQGqxLN.js +127 -0
- package/dist/exports.d.ts +4 -0
- package/dist/getEmojiList-CFiuBWyA.js +1 -0
- package/dist/{getEmojiList-BtCA6cyU.js → getEmojiList-DYrYRrM5.js} +249 -211
- package/dist/index-DWw7aruo.js +1 -0
- package/dist/index-jwkhq8oW.js +188 -0
- package/dist/index.d.ts +6 -6
- package/dist/index.js +189 -177
- package/dist/index.umd.cjs +1 -1
- package/dist/isEmpty-bCllo8T9.js +1 -0
- package/dist/isEmpty-wdqPTIXx.js +21 -0
- package/dist/omit-BuBwx_M2.js +630 -0
- package/dist/omit-CYbreqlf.js +1 -0
- package/dist/style/index.css +1 -1
- package/dist/{uniq-D8HAKpFq.js → uniq-BeFmBpYC.js} +17 -16
- package/dist/uniq-CezX8yQS.js +1 -0
- package/dist/useInputDataStates-Bzs7T9xb.js +57 -0
- package/dist/useInputDataStates-C1T7BL_V.js +1 -0
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.umd.cjs +1 -1
- package/dist/utils/useInputDataStates.d.ts +1 -1
- package/package.json +16 -1
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-Zbt1lDGL.js +0 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-hG6klYy2.js +0 -1
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-VEdsFDiH.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-CcVDY3yV.js +0 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang--np1Hw7N.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-5tG-1ejh.js +0 -215
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-DaWMPx_d.js +0 -1
- package/dist/Chip.vue_vue_type_style_index_0_lang-DqVcmql_.js +0 -1
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-BCkqRsud.js +0 -1
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-DBbTuynH.js +0 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-Brci1et_.js +0 -1
- package/dist/DataTable.vue_vue_type_style_index_0_lang-DOJv5evl.js +0 -1
- package/dist/DropZone.vue_vue_type_style_index_0_lang-oJc56iXj.js +0 -1
- package/dist/Empty.vue_vue_type_style_index_0_lang-DHvpu4sq.js +0 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-CaKIkb0P.js +0 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-Byz-BOG1.js +0 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-Cc8Uh2lr.js +0 -9
- package/dist/Icon.vue_vue_type_style_index_0_lang-Kn_r4tp8.js +0 -3746
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-CGb0HxvX.js +0 -1
- package/dist/Image.vue_vue_type_style_index_0_lang-DVDZ0ova.js +0 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-DVx2S15S.js +0 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-_V0q7Zly.js +0 -1
- package/dist/Input.vue_vue_type_style_index_0_lang-HuiLdgsj.js +0 -1
- package/dist/Kbd.vue_vue_type_style_index_0_lang-CuYfgo6l.js +0 -1
- package/dist/Link.vue_vue_type_style_index_0_lang-BgwJE1ku.js +0 -1
- package/dist/Menu.vue_vue_type_style_index_0_lang-CFuwm984.js +0 -460
- package/dist/Menu.vue_vue_type_style_index_0_lang-CiyZmFBO.js +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-B-MX4Q7D.js +0 -242
- package/dist/Popover.vue_vue_type_style_index_0_lang-BnKgARrA.js +0 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-Dq66i_P9.js +0 -1
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-CMdXXxZr.js +0 -1
- package/dist/Select.vue_vue_type_style_index_0_lang-C4F2WmaG.js +0 -698
- package/dist/Select.vue_vue_type_style_index_0_lang-D8SgxILT.js +0 -1
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-DIDsOrKm.js +0 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-17QUeFmj.js +0 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-DISD-AzJ.js +0 -1
- package/dist/THead.vue_vue_type_style_index_0_lang-Ck81v68E.js +0 -1
- package/dist/Textarea.vue_vue_type_style_index_0_lang-CJHHqEWa.js +0 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-B9L-4ciK.js +0 -6
- package/dist/getEmojiList-Cz4Rzfi1.js +0 -1
- package/dist/uniq-Ci_ZUo6O.js +0 -1
- package/dist/useInputDataStates-BVOCxFWp.js +0 -56
- package/dist/useInputDataStates-C6bS7MJv.js +0 -1
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { computed as c, getCurrentInstance as V, unref as S, defineComponent as ae, useSlots as le, ref as ce, createBlock as z, openBlock as w, resolveDynamicComponent as A, mergeProps as j, withCtx as I, renderSlot as R, normalizeProps as pe, guardReactiveProps as de, withDirectives as ue, vShow as fe } from "vue";
|
|
2
|
+
import { getBemBlock as me, getBemElement as T, generateVariantClassList as ge } from "@pantograph/utils";
|
|
3
|
+
import { cva as Pe } from "class-variance-authority";
|
|
4
|
+
import { useEmitAsProps as ye, HoverCardRoot as ve, PopoverRoot as he, HoverCardTrigger as Oe, PopoverTrigger as Ce, HoverCardPortal as De, PopoverPortal as Se, HoverCardContent as be, PopoverContent as Be } from "reka-ui";
|
|
5
|
+
import { g as Ne } from "./options-D4et5euX.js";
|
|
6
|
+
import { u as Fe } from "./index-jwkhq8oW.js";
|
|
7
|
+
import { k as t, o as ze, f as H, j as we } from "./FormItem.vue_vue_type_style_index_0_lang-DbMENNc4.js";
|
|
8
|
+
import { o as Ae } from "./omit-BuBwx_M2.js";
|
|
9
|
+
import { f as Ie, a as Me, i as ke } from "./element-BfQuKSll.js";
|
|
10
|
+
const Ee = ["sm", "md", "lg"], Je = [
|
|
11
|
+
"top",
|
|
12
|
+
"top-start",
|
|
13
|
+
"top-end",
|
|
14
|
+
"bottom",
|
|
15
|
+
"bottom-start",
|
|
16
|
+
"bottom-end",
|
|
17
|
+
"right",
|
|
18
|
+
"right-start",
|
|
19
|
+
"right-end",
|
|
20
|
+
"left",
|
|
21
|
+
"left-start",
|
|
22
|
+
"left-end"
|
|
23
|
+
], Le = ["to", "disabled", "forceMount"], n = Object.fromEntries(Le.map((r) => [r, r])), Ue = ({ triggerRef: r, props: f }, b = n) => c(() => {
|
|
24
|
+
var u, v, h, O, C;
|
|
25
|
+
const {
|
|
26
|
+
to: m = n.to,
|
|
27
|
+
forceMount: i = n.forceMount,
|
|
28
|
+
disabled: g = n.disabled
|
|
29
|
+
} = b, p = V(), o = f ?? (p == null ? void 0 : p.props) ?? {}, e = t(o, m), d = t(o, g), P = t(o, i);
|
|
30
|
+
let y = ((u = S(e)) == null ? void 0 : u.$el) ?? S(e);
|
|
31
|
+
if (e instanceof Function) {
|
|
32
|
+
const B = ((h = (v = r.value) == null ? void 0 : v.$el) == null ? void 0 : h.nodeName) !== "#text" ? (O = r.value) == null ? void 0 : O.$el : (C = r.value) == null ? void 0 : C.$el.nextSibling;
|
|
33
|
+
y = e(B);
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
to: y,
|
|
37
|
+
disabled: d,
|
|
38
|
+
forceMount: P
|
|
39
|
+
};
|
|
40
|
+
}), $e = [
|
|
41
|
+
"prioritizePosition",
|
|
42
|
+
"placement",
|
|
43
|
+
"sideOffset",
|
|
44
|
+
"alignOffset",
|
|
45
|
+
"sticky",
|
|
46
|
+
"collisionBoundary",
|
|
47
|
+
"avoidCollisions",
|
|
48
|
+
"collisionPadding",
|
|
49
|
+
"forceMount",
|
|
50
|
+
"disableUpdateOnLayoutShift",
|
|
51
|
+
"hideWhenDetached",
|
|
52
|
+
"positionStrategy",
|
|
53
|
+
"reference",
|
|
54
|
+
"updatePositionStrategy",
|
|
55
|
+
"autoFocusInside",
|
|
56
|
+
"containerProps"
|
|
57
|
+
], We = Object.fromEntries($e.map((r) => [r, r])), je = ({
|
|
58
|
+
props: r,
|
|
59
|
+
flip: f,
|
|
60
|
+
_dir: b,
|
|
61
|
+
controlAutoFocus: m,
|
|
62
|
+
extraPropNames: i,
|
|
63
|
+
emitsAsProps: g
|
|
64
|
+
}, p = We) => c(() => {
|
|
65
|
+
var _;
|
|
66
|
+
const o = V(), e = r ?? (o == null ? void 0 : o.props) ?? {}, {
|
|
67
|
+
prioritizePosition: d = n.prioritizePosition,
|
|
68
|
+
placement: P = n.placement,
|
|
69
|
+
sideOffset: y = n.sideOffset,
|
|
70
|
+
alignOffset: u = n.alignOffset,
|
|
71
|
+
sticky: v = n.sticky,
|
|
72
|
+
collisionBoundary: h = n.collisionBoundary,
|
|
73
|
+
avoidCollisions: O = n.avoidCollisions,
|
|
74
|
+
collisionPadding: C = n.collisionPadding,
|
|
75
|
+
forceMount: B = n.forceMount,
|
|
76
|
+
disableUpdateOnLayoutShift: M = n.disableUpdateOnLayoutShift,
|
|
77
|
+
hideWhenDetached: k = n.hideWhenDetached,
|
|
78
|
+
positionStrategy: E = n.positionStrategy,
|
|
79
|
+
reference: L = n.reference,
|
|
80
|
+
updatePositionStrategy: U = n.updatePositionStrategy,
|
|
81
|
+
autoFocusInside: $ = n.autoFocusInside,
|
|
82
|
+
containerProps: s = n.containerProps
|
|
83
|
+
} = p, D = t(e, d), a = t(e, P), x = t(e, y), q = t(e, u), G = t(e, v), J = t(e, h), Q = t(e, O), X = t(e, C), Y = t(e, B), Z = t(e, M), ee = t(e, k), oe = t(e, E), te = t(e, L), ne = t(e, U), K = t(e, $), se = t(e, s);
|
|
84
|
+
let [
|
|
85
|
+
F = "bottom",
|
|
86
|
+
re = "center"
|
|
87
|
+
] = ((_ = a == null ? void 0 : a.split) == null ? void 0 : _.call(a, "-")) || ["bottom", "center"];
|
|
88
|
+
f.value && b.value && b.value === f.value && (F = {
|
|
89
|
+
right: "left",
|
|
90
|
+
left: "right"
|
|
91
|
+
}[F] ?? F);
|
|
92
|
+
const W = {};
|
|
93
|
+
m && (W.onCloseAutoFocus = (l) => {
|
|
94
|
+
var N;
|
|
95
|
+
K || l.preventDefault(), (N = o == null ? void 0 : o.emit) == null || N.call(o, "closeAutoFocus", l);
|
|
96
|
+
}, W.onOpenAutoFocus = (l) => {
|
|
97
|
+
var N;
|
|
98
|
+
K || l.preventDefault(), (N = o == null ? void 0 : o.emit) == null || N.call(o, "openAutoFocus", l);
|
|
99
|
+
});
|
|
100
|
+
const ie = ze(
|
|
101
|
+
Object.fromEntries(
|
|
102
|
+
(Array.isArray(i) ? i : []).map((l) => [l, t(e, l)])
|
|
103
|
+
),
|
|
104
|
+
we
|
|
105
|
+
);
|
|
106
|
+
return {
|
|
107
|
+
...H(
|
|
108
|
+
g,
|
|
109
|
+
"onEscapeKeyDown",
|
|
110
|
+
"onFocusOutside",
|
|
111
|
+
"onInteractOutside",
|
|
112
|
+
"onPointerDownOutside"
|
|
113
|
+
),
|
|
114
|
+
...Ae(se ?? {}, "class"),
|
|
115
|
+
...ie,
|
|
116
|
+
sticky: G,
|
|
117
|
+
prioritizePosition: D,
|
|
118
|
+
side: F,
|
|
119
|
+
align: re,
|
|
120
|
+
sideOffset: x,
|
|
121
|
+
alignOffset: q,
|
|
122
|
+
collisionBoundary: J,
|
|
123
|
+
avoidCollisions: Q,
|
|
124
|
+
collisionPadding: X,
|
|
125
|
+
forceMount: Y,
|
|
126
|
+
disableUpdateOnLayoutShift: Z,
|
|
127
|
+
hideWhenDetached: ee,
|
|
128
|
+
positionStrategy: oe,
|
|
129
|
+
reference: te,
|
|
130
|
+
updatePositionStrategy: ne,
|
|
131
|
+
...W
|
|
132
|
+
};
|
|
133
|
+
}), Qe = /* @__PURE__ */ ae({
|
|
134
|
+
...Ne("Popover", !1),
|
|
135
|
+
__name: "Popover",
|
|
136
|
+
props: {
|
|
137
|
+
dir: {},
|
|
138
|
+
class: {},
|
|
139
|
+
containerCls: {},
|
|
140
|
+
containerProps: {},
|
|
141
|
+
trigger: { default: "hover" },
|
|
142
|
+
size: { default: "md" },
|
|
143
|
+
to: {},
|
|
144
|
+
placement: { default: "bottom" },
|
|
145
|
+
reversePlacementOnDir: {},
|
|
146
|
+
autoFocusInside: { type: Boolean },
|
|
147
|
+
zIndex: {},
|
|
148
|
+
defaultOpen: { type: Boolean },
|
|
149
|
+
open: { type: Boolean, default: void 0 },
|
|
150
|
+
openDelay: {},
|
|
151
|
+
closeDelay: {},
|
|
152
|
+
disabled: { type: Boolean },
|
|
153
|
+
defer: { type: Boolean },
|
|
154
|
+
forceMount: { type: Boolean },
|
|
155
|
+
sideOffset: {},
|
|
156
|
+
alignOffset: {},
|
|
157
|
+
avoidCollisions: { type: Boolean },
|
|
158
|
+
collisionBoundary: {},
|
|
159
|
+
collisionPadding: {},
|
|
160
|
+
arrowPadding: {},
|
|
161
|
+
sticky: { default: "always" },
|
|
162
|
+
hideWhenDetached: { type: Boolean },
|
|
163
|
+
positionStrategy: {},
|
|
164
|
+
updatePositionStrategy: {},
|
|
165
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
166
|
+
prioritizePosition: { type: Boolean, default: !0 },
|
|
167
|
+
reference: {},
|
|
168
|
+
disableOutsidePointerEvents: { type: Boolean }
|
|
169
|
+
},
|
|
170
|
+
emits: ["update:open", "escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
171
|
+
setup(r, { emit: f }) {
|
|
172
|
+
const m = ye(f), i = r, g = me("popover"), p = T(g, "trigger"), o = T(g, "content"), e = Pe(o, {
|
|
173
|
+
variants: {
|
|
174
|
+
size: ge(Ee, o)
|
|
175
|
+
}
|
|
176
|
+
}), d = le(), P = c(() => {
|
|
177
|
+
var a;
|
|
178
|
+
const s = Ie((a = d.default) == null ? void 0 : a.call(d, {})) ?? null, D = s.length === 1 ? s[0] : s;
|
|
179
|
+
return D ? Me(D) && !ke(D) : !0;
|
|
180
|
+
}), y = c(() => ({
|
|
181
|
+
...H(i, "open", "defaultOpen"),
|
|
182
|
+
...H(m, "onUpdate:open")
|
|
183
|
+
})), u = ce(), v = Ue({ triggerRef: u }), h = c(() => i.trigger === "hover" ? ve : he), O = c(() => i.trigger === "hover" ? Oe : Ce), C = c(() => i.trigger === "hover" ? De : Se), B = c(() => i.trigger === "hover" ? be : Be), { getFlipOnDir: M, getDir: k } = Fe(), E = M("reversePlacementOnDir"), L = k(), U = je({
|
|
184
|
+
emitsAsProps: m,
|
|
185
|
+
flip: E,
|
|
186
|
+
_dir: L,
|
|
187
|
+
controlAutoFocus: !0
|
|
188
|
+
}), $ = (s) => {
|
|
189
|
+
i.trigger === "hover" && s.stopPropagation();
|
|
190
|
+
};
|
|
191
|
+
return (s, D) => (w(), z(A(h.value), j({
|
|
192
|
+
key: P.value
|
|
193
|
+
}, y.value, {
|
|
194
|
+
openDelay: s.openDelay,
|
|
195
|
+
closeDelay: s.closeDelay
|
|
196
|
+
}), {
|
|
197
|
+
default: I(({ open: a }) => [
|
|
198
|
+
(w(), z(A(O.value), j({
|
|
199
|
+
asChild: P.value,
|
|
200
|
+
as: "span",
|
|
201
|
+
class: [S(p), i.class],
|
|
202
|
+
onPointerdown: $
|
|
203
|
+
}, s.$attrs, {
|
|
204
|
+
dir: s.dir,
|
|
205
|
+
ref_key: "triggerRef",
|
|
206
|
+
ref: u
|
|
207
|
+
}), {
|
|
208
|
+
default: I(() => [
|
|
209
|
+
R(s.$slots, "default")
|
|
210
|
+
]),
|
|
211
|
+
_: 3
|
|
212
|
+
}, 16, ["asChild", "class", "dir"])),
|
|
213
|
+
(w(), z(A(C.value), pe(de(S(v))), {
|
|
214
|
+
default: I(() => [
|
|
215
|
+
ue((w(), z(A(B.value), j({
|
|
216
|
+
style: { zIndex: s.zIndex }
|
|
217
|
+
}, S(U), {
|
|
218
|
+
class: [S(e)({ size: s.size }), s.$attrs.containerClass, s.containerCls]
|
|
219
|
+
}), {
|
|
220
|
+
default: I(() => [
|
|
221
|
+
R(s.$slots, "content")
|
|
222
|
+
]),
|
|
223
|
+
_: 2
|
|
224
|
+
}, 1040, ["style", "class"])), [
|
|
225
|
+
[fe, a]
|
|
226
|
+
])
|
|
227
|
+
]),
|
|
228
|
+
_: 2
|
|
229
|
+
}, 1040))
|
|
230
|
+
]),
|
|
231
|
+
_: 3
|
|
232
|
+
}, 16, ["openDelay", "closeDelay"]));
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
export {
|
|
236
|
+
Ee as P,
|
|
237
|
+
Qe as _,
|
|
238
|
+
Je as a,
|
|
239
|
+
je as b,
|
|
240
|
+
Ue as g
|
|
241
|
+
};
|
|
@@ -11,13 +11,13 @@ export interface RadioGroupSlots {
|
|
|
11
11
|
label?: () => never;
|
|
12
12
|
}
|
|
13
13
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<RadioGroupItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
-
"update:modelValue": (payload: string) => any;
|
|
15
14
|
blur: (e: InputEvent) => any;
|
|
16
15
|
focus: (e: InputEvent) => any;
|
|
16
|
+
"update:modelValue": (payload: string) => any;
|
|
17
17
|
}, string, import('vue').PublicProps, Readonly<RadioGroupItemProps> & Readonly<{
|
|
18
|
-
"onUpdate:modelValue"?: ((payload: string) => any) | undefined;
|
|
19
18
|
onBlur?: ((e: InputEvent) => any) | undefined;
|
|
20
19
|
onFocus?: ((e: InputEvent) => any) | undefined;
|
|
20
|
+
"onUpdate:modelValue"?: ((payload: string) => any) | undefined;
|
|
21
21
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<RadioGroupSlots> & RadioGroupSlots>;
|
|
22
22
|
export default _default;
|
|
23
23
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
package/dist/RadioGroup/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../RadioGroup.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../RadioGroup.vue_vue_type_script_setup_true_lang-mjzo15tQ.js");exports.RadioGroup=e._sfc_main;exports.RadioGroupItem=e._sfc_main$1;exports.default=e._sfc_main;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as h, useSlots as z, computed as a, createElementBlock as v, openBlock as l, mergeProps as u, unref as e, createVNode as _, createCommentVNode as V, withCtx as I, normalizeClass as y, renderSlot as k, createTextVNode as S, toDisplayString as D, createBlock as G, Fragment as w, renderList as E } from "vue";
|
|
2
2
|
import { RadioGroupItem as F, RadioGroupIndicator as L, useForwardPropsEmits as N, RadioGroupRoot as $ } from "reka-ui";
|
|
3
3
|
import { cva as q } from "class-variance-authority";
|
|
4
|
-
import { o as P } from "./
|
|
4
|
+
import { o as P } from "./omit-BuBwx_M2.js";
|
|
5
5
|
import { g as x } from "./options-D4et5euX.js";
|
|
6
|
-
import { U as O, u as U } from "./useInputDataStates-
|
|
6
|
+
import { U as O, u as U } from "./useInputDataStates-Bzs7T9xb.js";
|
|
7
7
|
import { getBemBlock as T, getBemElement as n, usePCId as j, generateVariantClassList as R } from "@pantograph/utils";
|
|
8
8
|
const A = ["for"], d = T("radio_group"), H = /* @__PURE__ */ h({
|
|
9
9
|
...x("RadioGroupItem"),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),i=require("reka-ui"),k=require("class-variance-authority"),C=require("./omit-CYbreqlf.js"),b=require("./options-CWrQ7gsa.js"),_=require("./useInputDataStates-C1T7BL_V.js"),o=require("@pantograph/utils"),V=["for"],l=o.getBemBlock("radio_group"),v=e.defineComponent({...b.getComponentOptions("RadioGroupItem"),__name:"RadioGroupItem",props:{class:{},rootCls:{},labelCls:{},label:{},id:{},value:{},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:["update:modelValue","blur","focus"],setup(u,{emit:c}){const t=u,s=o.getBemElement(l,"item"),d=e.useSlots(),m=c,r=e.computed(()=>t.id??o.usePCId(s)),{rootBindings:p,inputBindings:n}=_.UseInputDataStates({getDisabled:()=>t.disabled,emit:m}),f=e.computed(()=>({...C.omit(t,"class","id","rootCls","labelCls","label"),id:r.value,...n.value})),B=e.computed(()=>!!(d.label||t.label));return(a,g)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:[e.unref(o.getBemElement)(e.unref(s),"root"),a.rootCls]},e.unref(p)),[e.createVNode(e.unref(i.RadioGroupItem),e.mergeProps({class:[e.unref(s),t.class]},f.value),{default:e.withCtx(()=>[e.createVNode(e.unref(i.RadioGroupIndicator),{class:e.normalizeClass(e.unref(o.getBemElement)(e.unref(s),"indicator")),as:"div"},null,8,["class"])]),_:1},16,["class"]),B.value?(e.openBlock(),e.createElementBlock("label",{key:0,class:e.normalizeClass([e.unref(o.getBemElement)(e.unref(s),"label"),a.labelCls]),for:r.value},[e.renderSlot(a.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(a.label),1)])],10,V)):e.createCommentVNode("",!0)],16))}}),h=["2xsm","xsm"],y=e.defineComponent({...b.getComponentOptions("RadioGroup"),__name:"RadioGroup",props:{items:{},options:{},size:{default:"xsm"},class:{},modelValue:{},defaultValue:{},disabled:{type:Boolean},orientation:{default:"vertical"},dir:{},loop:{type:Boolean},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean}},emits:["update:modelValue"],setup(u,{emit:c}){const t=u,s=c,d=e.computed(()=>C.omit(t,"items","options","class")),m=i.useForwardPropsEmits(d,s),r=k.cva(l,{variants:{size:o.generateVariantClassList(h,l),orientation:o.generateVariantClassList(["vertical","horizontal"],l)}}),{getDisabled:p}=_.useFormInput(),n=e.computed(()=>t.options??t.items);return(f,B)=>(e.openBlock(),e.createBlock(e.unref(i.RadioGroupRoot),e.mergeProps({...e.unref(m),disabled:e.unref(p)},{class:[e.unref(r)(t),t.class]}),{default:e.withCtx(()=>[e.renderSlot(f.$slots,"default",{},()=>{var a;return[(a=n.value)!=null&&a.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.value,g=>(e.openBlock(),e.createBlock(v,e.mergeProps({ref_for:!0},g),null,16))),256)):e.createCommentVNode("",!0)]})]),_:3},16,["class"]))}});exports._sfc_main=y;exports._sfc_main$1=v;
|
|
@@ -314,8 +314,8 @@ declare const __VLS_component: import('vue').DefineComponent<ScrollContainerProp
|
|
|
314
314
|
}, string, import('vue').PublicProps, Readonly<ScrollContainerProps> & Readonly<{
|
|
315
315
|
onLoadMore?: ((...args: any[]) => any) | undefined;
|
|
316
316
|
}>, {
|
|
317
|
-
size: ScrollContainerSize;
|
|
318
317
|
type: ScrollContainerType;
|
|
318
|
+
size: ScrollContainerSize;
|
|
319
319
|
scrollDistance: number;
|
|
320
320
|
scrollHideDelay: number;
|
|
321
321
|
overlay: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as r, a as e, S as l, _ as n } from "../ScrollContainer.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { _ as r, a as e, S as l, _ as n } from "../ScrollContainer.vue_vue_type_style_index_0_lang-DfMU1mTu.js";
|
|
2
2
|
export {
|
|
3
3
|
r as ScrollContainer,
|
|
4
4
|
e as ScrollContainerSizes,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../ScrollContainer.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../ScrollContainer.vue_vue_type_style_index_0_lang-BIoD2_5T.js");exports.ScrollContainer=e._sfc_main;exports.ScrollContainerSizes=e.ScrollContainerSizes;exports.ScrollContainerTypes=e.ScrollContainerTypes;exports.default=e._sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),a=require("reka-ui"),O=require("class-variance-authority"),s=require("@pantograph/utils"),n=require("@vueuse/core"),X=require("./index-DWw7aruo.js"),l=s.getBemBlock("scroll_container"),Y=e.defineComponent({__name:"Mask",props:{topVisible:{type:Boolean},bottomVisible:{type:Boolean},endVisible:{type:Boolean},startVisible:{type:Boolean}},setup(c){const u=c,t=s.getBemElement(l,"mask"),i=O.cva(t,{variants:{topVisible:s.generateVariantClassList("top-visible",t),bottomVisible:s.generateVariantClassList("bottom-visible",t),startVisible:s.generateVariantClassList("start-visible",t),endVisible:s.generateVariantClassList("end-visible",t)}});return(b,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(i)(u))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(t),"top"))},null,2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(t),"bottom"))},null,2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(t),"start"))},null,2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(t),"end"))},null,2)],2))}}),F=["auto","always","scroll","hover"],R=["sm","md","lg"],U=e.defineComponent({inheritAttrs:!1,__name:"ScrollContainer",props:{scrollDistance:{default:10},scrollHideDelay:{default:200},dir:{},type:{default:"hover"},hasMask:{type:Boolean},size:{default:"md"},scrollbarCls:{},wrapCls:{},areaCls:{},rootCls:{},thumbCls:{},cornerCls:{},rootProps:{},overlay:{type:Boolean,default:!0},color:{}},emits:["loadMore"],setup(c,{expose:u,emit:t}){const i=c,b=t,p=O.cva(l,{variants:{size:s.generateVariantClassList(R,l),overlay:s.generateVariantClassList("overlay",l),isOverflowX:s.generateVariantClassList("overflowed-x",l),isOverflowY:s.generateVariantClassList("overflowed-y",l),hasMask:s.generateVariantClassList("has-mask",l)}}),f=s.getBemElement(l,"scroll_bar"),C=s.getBemElement(f,"thumb"),{config:q}=X.useConfig(),D=e.computed(()=>i.dir?i.dir:q.dir.value),V=e.ref(),H=n.useElementVisibility(V),y=e.ref(),P=n.useElementVisibility(y),h=e.ref(),T=n.useElementVisibility(h),g=e.ref(),m=e.shallowRef(!1),{stop:$}=n.useIntersectionObserver(g,([{isIntersecting:r}])=>{r?(b("loadMore"),m.value=!0):m.value=!1});e.onBeforeUnmount($);const o=e.ref(),B=e.ref(),k=e.ref(),w=e.shallowRef(!1),E=e.shallowRef(!1),d=n.useDebounceFn(()=>{var r,v,z,S,N,_,M,A,L;e.unref((r=o.value)==null?void 0:r.viewport)&&(w.value=(((z=(v=e.unref(o.value))==null?void 0:v.viewport)==null?void 0:z.offsetWidth)||0)<(((N=(S=e.unref(o.value))==null?void 0:S.viewport)==null?void 0:N.scrollWidth)||0),E.value=(((M=(_=e.unref(o.value))==null?void 0:_.viewport)==null?void 0:M.offsetHeight)||0)<(((L=(A=e.unref(o.value))==null?void 0:A.viewport)==null?void 0:L.scrollHeight)||0))},10);return e.onMounted(()=>d()),n.useResizeObserver(o,d),n.useResizeObserver(k,d),u({container:B,root:o}),(r,v)=>(e.openBlock(),e.createBlock(e.unref(a.ScrollAreaRoot),e.mergeProps({class:[e.unref(p)({overlay:r.overlay,isOverflowX:w.value,isOverflowY:E.value,hasMask:r.hasMask,size:r.size}),r.rootCls],scrollHideDelay:i.scrollHideDelay,dir:D.value,type:i.type},r.rootProps,{style:{"--ptc-scroll-container-color":r.color},ref_key:"root",ref:o}),{default:e.withCtx(()=>[e.createVNode(e.unref(a.ScrollAreaViewport),e.mergeProps({class:[e.unref(s.getBemElement)(e.unref(l),"area"),r.areaCls]},r.$attrs,{ref_key:"container",ref:B,"as-child":""}),{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(s.getBemElement)(e.unref(l),"area__wrap"),r.wrapCls]),ref_key:"wrap",ref:k},[e.renderSlot(r.$slots,"default"),r.hasMask?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{ref_key:"top",ref:V,class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(l),"top_observer"))},null,2),e.createElementVNode("div",{ref_key:"end",ref:y,class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(l),"end_observer"))},null,2),e.createElementVNode("div",{ref_key:"start",ref:h,class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(l),"start_observer"))},null,2),e.createElementVNode("div",{ref_key:"bottom",ref:g,class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(l),"bottom_observer"))},null,2)],64)):e.createCommentVNode("",!0)],2)]),_:3},16,["class"]),r.hasMask?(e.openBlock(),e.createBlock(Y,{key:0,topVisible:e.unref(H),bottomVisible:m.value,endVisible:e.unref(P),startVisible:e.unref(T)},null,8,["topVisible","bottomVisible","endVisible","startVisible"])):e.createCommentVNode("",!0),e.createVNode(e.unref(a.ScrollAreaScrollbar),{class:e.normalizeClass([e.unref(f),r.scrollbarCls]),orientation:"vertical",ref:"vertical"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ScrollAreaThumb),{class:e.normalizeClass([e.unref(C),r.thumbCls])},null,8,["class"])]),_:1},8,["class"]),e.createVNode(e.unref(a.ScrollAreaScrollbar),{class:e.normalizeClass([e.unref(f),r.scrollbarCls]),orientation:"horizontal",ref:"horizontal"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ScrollAreaThumb),{class:e.normalizeClass([e.unref(C),r.thumbCls])},null,8,["class"])]),_:1},8,["class"]),e.createVNode(e.unref(a.ScrollAreaCorner),{ref:"corner",class:e.normalizeClass(r.cornerCls)},null,8,["class"]),e.renderSlot(r.$slots,"root")]),_:3},16,["class","scrollHideDelay","dir","type","style"]))}});exports.ScrollContainerSizes=R;exports.ScrollContainerTypes=F;exports._sfc_main=U;
|
|
@@ -3,7 +3,7 @@ import { ScrollAreaRoot as ae, ScrollAreaViewport as ie, ScrollAreaScrollbar as
|
|
|
3
3
|
import { cva as J } from "class-variance-authority";
|
|
4
4
|
import { getBemBlock as ce, getBemElement as r, generateVariantClassList as i } from "@pantograph/utils";
|
|
5
5
|
import { useElementVisibility as k, useIntersectionObserver as ue, useDebounceFn as fe, useResizeObserver as j } from "@vueuse/core";
|
|
6
|
-
import { u as ve } from "./
|
|
6
|
+
import { u as ve } from "./index-jwkhq8oW.js";
|
|
7
7
|
const o = ce("scroll_container"), pe = /* @__PURE__ */ q({
|
|
8
8
|
__name: "Mask",
|
|
9
9
|
props: {
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { RovingFocusGroupProps, RovingFocusGroupEmits } from 'reka-ui';
|
|
2
|
+
import { SegmentedSize } from './Segmented.model.js';
|
|
3
|
+
import { Class } from '../types/index.js';
|
|
4
|
+
type SegmentOption = (Record<string, any> & {
|
|
5
|
+
value: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
text?: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
}) | string;
|
|
10
|
+
export interface SegmentedProps extends Omit<RovingFocusGroupProps, 'currentTabStopId' | 'defaultCurrentTabStopId' | 'as' | 'asChild'> {
|
|
11
|
+
options: SegmentOption[];
|
|
12
|
+
size?: SegmentedSize;
|
|
13
|
+
class?: Class;
|
|
14
|
+
selectionIndicatorCls?: Class;
|
|
15
|
+
optionCls?: Class;
|
|
16
|
+
optionIconCls?: Class;
|
|
17
|
+
optionTextCls?: Class;
|
|
18
|
+
block?: boolean;
|
|
19
|
+
modelValue?: string;
|
|
20
|
+
defaultModelValue?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface SegmentedEmits extends Omit<RovingFocusGroupEmits, 'update:currentTabStopId'> {
|
|
23
|
+
'update:modelValue': string;
|
|
24
|
+
}
|
|
25
|
+
interface SlotProps {
|
|
26
|
+
selected: boolean;
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
option: SegmentOption;
|
|
29
|
+
}
|
|
30
|
+
type SlotItem = (data: SlotProps) => never;
|
|
31
|
+
export interface SegmentedSlots {
|
|
32
|
+
option: SlotItem;
|
|
33
|
+
icon: SlotItem;
|
|
34
|
+
text: SlotItem;
|
|
35
|
+
}
|
|
36
|
+
declare function __VLS_template(): {
|
|
37
|
+
slots: Readonly<SegmentedSlots> & SegmentedSlots;
|
|
38
|
+
refs: {};
|
|
39
|
+
attrs: Partial<{}>;
|
|
40
|
+
};
|
|
41
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
42
|
+
declare const __VLS_component: import('vue').DefineComponent<SegmentedProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
43
|
+
"update:modelValue": () => any;
|
|
44
|
+
entryFocus: (event: Event) => any;
|
|
45
|
+
}, string, import('vue').PublicProps, Readonly<SegmentedProps> & Readonly<{
|
|
46
|
+
"onUpdate:modelValue"?: (() => any) | undefined;
|
|
47
|
+
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
48
|
+
}>, {
|
|
49
|
+
size: SegmentedSize;
|
|
50
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
51
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
52
|
+
export default _default;
|
|
53
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
54
|
+
new (): {
|
|
55
|
+
$slots: S;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Segmented.vue_vue_type_style_index_0_lang-B4aQCMXZ.js");exports.Segmented=e._sfc_main;exports.SegmentedSizes=e.SegmentedSizes;exports.default=e._sfc_main;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { defineComponent as Q, useSlots as W, computed as w, watch as X, createBlock as Y, openBlock as Z, unref as u, mergeProps as ee, isRef as te, withCtx as oe, createElementVNode as se, normalizeStyle as ne, normalizeClass as ie, createVNode as ae, h as x } from "vue";
|
|
2
|
+
import { useForwardPropsEmits as le, RovingFocusGroup as re, RovingFocusItem as ce } from "reka-ui";
|
|
3
|
+
import { getBemBlock as me, generateVariantClassList as g, getBemElement as S } from "@pantograph/utils";
|
|
4
|
+
import { cva as M } from "class-variance-authority";
|
|
5
|
+
import { u as de, b as p } from "./index-jwkhq8oW.js";
|
|
6
|
+
import { b as C } from "./element-BfQuKSll.js";
|
|
7
|
+
import { g as ue } from "./options-D4et5euX.js";
|
|
8
|
+
import { f as pe } from "./FormItem.vue_vue_type_style_index_0_lang-DbMENNc4.js";
|
|
9
|
+
import "@iconify/vue";
|
|
10
|
+
import { _ as fe } from "./Icon.vue_vue_type_style_index_0_lang-CbLL-Ngi.js";
|
|
11
|
+
import { useVModel as ve } from "@vueuse/core";
|
|
12
|
+
import { o as ge } from "./omit-BuBwx_M2.js";
|
|
13
|
+
const xe = ["sm", "md", "lg"], Ee = /* @__PURE__ */ Q({
|
|
14
|
+
...ue("Segmented"),
|
|
15
|
+
__name: "Segmented",
|
|
16
|
+
props: {
|
|
17
|
+
options: {},
|
|
18
|
+
size: { default: "md" },
|
|
19
|
+
class: {},
|
|
20
|
+
selectionIndicatorCls: {},
|
|
21
|
+
optionCls: {},
|
|
22
|
+
optionIconCls: {},
|
|
23
|
+
optionTextCls: {},
|
|
24
|
+
block: { type: Boolean },
|
|
25
|
+
modelValue: {},
|
|
26
|
+
defaultModelValue: {},
|
|
27
|
+
orientation: {},
|
|
28
|
+
dir: {},
|
|
29
|
+
loop: { type: Boolean },
|
|
30
|
+
preventScrollOnEntryFocus: { type: Boolean }
|
|
31
|
+
},
|
|
32
|
+
emits: ["update:modelValue", "entryFocus"],
|
|
33
|
+
setup(P, { emit: R }) {
|
|
34
|
+
const t = P, b = R, i = W(), D = w(
|
|
35
|
+
() => pe(t, "orientation", "dir", "loop", "preventScrollOnEntryFocus")
|
|
36
|
+
), N = le(D, b), f = me("segmented"), $ = M(f, {
|
|
37
|
+
variants: {
|
|
38
|
+
size: g(xe, f),
|
|
39
|
+
block: g("block", f)
|
|
40
|
+
// style: generateVariantClassList('absolute-selected-indicator', prefix),
|
|
41
|
+
}
|
|
42
|
+
}), c = S(f, "option"), j = M(c, {
|
|
43
|
+
variants: {
|
|
44
|
+
icon: g("icon", c),
|
|
45
|
+
text: g("text", c)
|
|
46
|
+
}
|
|
47
|
+
}), { getDir: G } = de(), L = G(), U = w(() => {
|
|
48
|
+
switch (t.size) {
|
|
49
|
+
case "lg":
|
|
50
|
+
return "xsm";
|
|
51
|
+
default:
|
|
52
|
+
return "2xsm";
|
|
53
|
+
}
|
|
54
|
+
}), a = ve(
|
|
55
|
+
t,
|
|
56
|
+
"modelValue",
|
|
57
|
+
b,
|
|
58
|
+
{
|
|
59
|
+
defaultValue: t.defaultModelValue,
|
|
60
|
+
passive: t.modelValue === void 0
|
|
61
|
+
}
|
|
62
|
+
), v = (e) => [null, void 0].includes(e), l = (e) => p(e) ? e.value : e, q = (e) => !!(p(e) && e.disabled), A = (e) => p(e) ? e.icon : void 0, H = (e) => p(e) ? e.text : l(e);
|
|
63
|
+
X(
|
|
64
|
+
() => t.options,
|
|
65
|
+
() => {
|
|
66
|
+
var o, s;
|
|
67
|
+
const e = (o = t.options) == null ? void 0 : o.find((n) => {
|
|
68
|
+
const r = l(n);
|
|
69
|
+
return !v(r) && r === a.value;
|
|
70
|
+
});
|
|
71
|
+
if (!e || v(l(e))) {
|
|
72
|
+
const n = (s = t.options) == null ? void 0 : s.find((r) => {
|
|
73
|
+
const m = l(r);
|
|
74
|
+
return !v(m);
|
|
75
|
+
});
|
|
76
|
+
n && (a.value = l(n));
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{ immediate: !0, deep: !0 }
|
|
80
|
+
);
|
|
81
|
+
const J = () => {
|
|
82
|
+
var e;
|
|
83
|
+
return (e = t.options) == null ? void 0 : e.map((o) => {
|
|
84
|
+
var E, T, F;
|
|
85
|
+
const s = l(o);
|
|
86
|
+
if (v(s)) return;
|
|
87
|
+
const n = q(o), r = p(o) ? ge(o, "icon", "value", "text") : {}, m = a.value === s;
|
|
88
|
+
let d;
|
|
89
|
+
const V = (E = i.option) == null ? void 0 : E.call(i, { disabled: n, selected: m, option: o });
|
|
90
|
+
C(V) || (d = V);
|
|
91
|
+
const h = A(o), B = (T = i.icon) == null ? void 0 : T.call(i, { disabled: n, selected: m, option: o }), I = H(o), _ = (F = i.text) == null ? void 0 : F.call(i, { disabled: n, selected: m, option: o });
|
|
92
|
+
d = [];
|
|
93
|
+
const y = !C(B), z = !!(h || y), O = !C(_), k = !!(I || O);
|
|
94
|
+
z && d.push(
|
|
95
|
+
x(
|
|
96
|
+
fe,
|
|
97
|
+
{
|
|
98
|
+
icon: h,
|
|
99
|
+
size: U.value,
|
|
100
|
+
class: [S(c, "icon"), t.optionIconCls]
|
|
101
|
+
},
|
|
102
|
+
y ? B : void 0
|
|
103
|
+
)
|
|
104
|
+
), k && d.push(
|
|
105
|
+
x(
|
|
106
|
+
"div",
|
|
107
|
+
{
|
|
108
|
+
class: [S(c, "text"), t.optionTextCls]
|
|
109
|
+
},
|
|
110
|
+
O ? _ : I
|
|
111
|
+
)
|
|
112
|
+
);
|
|
113
|
+
const K = a.value === s;
|
|
114
|
+
return x(
|
|
115
|
+
ce,
|
|
116
|
+
{
|
|
117
|
+
as: "button",
|
|
118
|
+
active: K,
|
|
119
|
+
focusable: !n,
|
|
120
|
+
disabled: n,
|
|
121
|
+
tabStopId: s,
|
|
122
|
+
value: s,
|
|
123
|
+
...r,
|
|
124
|
+
class: [
|
|
125
|
+
j({
|
|
126
|
+
icon: z,
|
|
127
|
+
text: k
|
|
128
|
+
}),
|
|
129
|
+
t.optionCls
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
() => d
|
|
133
|
+
);
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
return (e, o) => (Z(), Y(u(re), ee(u(N), {
|
|
137
|
+
dir: u(L),
|
|
138
|
+
"current-tab-stop-id": u(a),
|
|
139
|
+
"onUpdate:currentTabStopId": o[0] || (o[0] = (s) => te(a) ? a.value = s : null),
|
|
140
|
+
asChild: ""
|
|
141
|
+
}), {
|
|
142
|
+
default: oe(() => {
|
|
143
|
+
var s;
|
|
144
|
+
return [
|
|
145
|
+
se("div", {
|
|
146
|
+
class: ie([u($)({
|
|
147
|
+
...t
|
|
148
|
+
/*, style: !style*/
|
|
149
|
+
}), t.class]),
|
|
150
|
+
style: ne({
|
|
151
|
+
gridTemplateColumns: `repeat(${((s = t.options) == null ? void 0 : s.length) ?? 1}, minmax(0, 1fr))`
|
|
152
|
+
})
|
|
153
|
+
}, [
|
|
154
|
+
ae(J)
|
|
155
|
+
], 6)
|
|
156
|
+
];
|
|
157
|
+
}),
|
|
158
|
+
_: 1
|
|
159
|
+
}, 16, ["dir", "current-tab-stop-id"]));
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
export {
|
|
163
|
+
xe as S,
|
|
164
|
+
Ee as _
|
|
165
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),_=require("reka-ui"),a=require("@pantograph/utils"),F=require("class-variance-authority"),d=require("./index-DWw7aruo.js"),x=require("./element-BjE0SVc4.js"),K=require("./options-CWrQ7gsa.js"),Q=require("./FormItem.vue_vue_type_style_index_0_lang-CTRszGlB.js");require("@iconify/vue");const W=require("./Icon.vue_vue_type_style_index_0_lang-D3cRtJNJ.js"),X=require("@vueuse/core"),Y=require("./omit-CYbreqlf.js"),T=["sm","md","lg"],Z=t.defineComponent({...K.getComponentOptions("Segmented"),__name:"Segmented",props:{options:{},size:{default:"md"},class:{},selectionIndicatorCls:{},optionCls:{},optionIconCls:{},optionTextCls:{},block:{type:Boolean},modelValue:{},defaultModelValue:{},orientation:{},dir:{},loop:{type:Boolean},preventScrollOnEntryFocus:{type:Boolean}},emits:["update:modelValue","entryFocus"],setup(j,{emit:w}){const n=j,C=w,c=t.useSlots(),L=t.computed(()=>Q.pick(n,"orientation","dir","loop","preventScrollOnEntryFocus")),M=_.useForwardPropsEmits(L,C),f=a.getBemBlock("segmented"),P=F.cva(f,{variants:{size:a.generateVariantClassList(T,f),block:a.generateVariantClassList("block",f)}}),m=a.getBemElement(f,"option"),R=F.cva(m,{variants:{icon:a.generateVariantClassList("icon",m),text:a.generateVariantClassList("text",m)}}),{getDir:D}=d.useConfig(),N=D(),U=t.computed(()=>{switch(n.size){case"lg":return"xsm";default:return"2xsm"}}),l=X.useVModel(n,"modelValue",C,{defaultValue:n.defaultModelValue,passive:n.modelValue===void 0}),g=e=>[null,void 0].includes(e),r=e=>d.isObject(e)?e.value:e,A=e=>!!(d.isObject(e)&&e.disabled),G=e=>d.isObject(e)?e.icon:void 0,$=e=>d.isObject(e)?e.text:r(e);t.watch(()=>n.options,()=>{var s,o;const e=(s=n.options)==null?void 0:s.find(i=>{const u=r(i);return!g(u)&&u===l.value});if(!e||g(r(e))){const i=(o=n.options)==null?void 0:o.find(u=>{const p=r(u);return!g(p)});i&&(l.value=r(i))}},{immediate:!0,deep:!0});const H=()=>{var e;return(e=n.options)==null?void 0:e.map(s=>{var O,z,k;const o=r(s);if(g(o))return;const i=A(s),u=d.isObject(s)?Y.omit(s,"icon","value","text"):{},p=l.value===o;let v;const S=(O=c.option)==null?void 0:O.call(c,{disabled:i,selected:p,option:s});x.isEmptyElement(S)||(v=S);const V=G(s),b=(z=c.icon)==null?void 0:z.call(c,{disabled:i,selected:p,option:s}),y=$(s),h=(k=c.text)==null?void 0:k.call(c,{disabled:i,selected:p,option:s});v=[];const B=!x.isEmptyElement(b),E=!!(V||B),I=!x.isEmptyElement(h),q=!!(y||I);E&&v.push(t.h(W._sfc_main,{icon:V,size:U.value,class:[a.getBemElement(m,"icon"),n.optionIconCls]},B?b:void 0)),q&&v.push(t.h("div",{class:[a.getBemElement(m,"text"),n.optionTextCls]},I?h:y));const J=l.value===o;return t.h(_.RovingFocusItem,{as:"button",active:J,focusable:!i,disabled:i,tabStopId:o,value:o,...u,class:[R({icon:E,text:q}),n.optionCls]},()=>v)})};return(e,s)=>(t.openBlock(),t.createBlock(t.unref(_.RovingFocusGroup),t.mergeProps(t.unref(M),{dir:t.unref(N),"current-tab-stop-id":t.unref(l),"onUpdate:currentTabStopId":s[0]||(s[0]=o=>t.isRef(l)?l.value=o:null),asChild:""}),{default:t.withCtx(()=>{var o;return[t.createElementVNode("div",{class:t.normalizeClass([t.unref(P)({...n}),n.class]),style:t.normalizeStyle({gridTemplateColumns:`repeat(${((o=n.options)==null?void 0:o.length)??1}, minmax(0, 1fr))`})},[t.createVNode(H)],6)]}),_:1},16,["dir","current-tab-stop-id"]))}});exports.SegmentedSizes=T;exports._sfc_main=Z;
|
package/dist/Select/Select.d.ts
CHANGED
|
@@ -38,13 +38,13 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {}, {}
|
|
|
38
38
|
trailingIcon: string;
|
|
39
39
|
bordered: boolean;
|
|
40
40
|
multiple: boolean;
|
|
41
|
-
loadingRowCount: number;
|
|
42
|
-
position: "item-aligned" | "popper";
|
|
43
41
|
selectedItemIconAsTrailingIcon: boolean;
|
|
44
42
|
indicatorIcon: string;
|
|
43
|
+
loadingRowCount: number;
|
|
45
44
|
clearOnChangeMultiple: boolean;
|
|
46
45
|
samePopupWidth: boolean;
|
|
47
46
|
popupHeight: string | number;
|
|
47
|
+
position: "item-aligned" | "popper";
|
|
48
48
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
49
49
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
50
50
|
export default _default;
|
package/dist/Select/context.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SelectEmitObject,
|
|
1
|
+
import { SelectEmitObject, SelectOptionItem, SelectProps } from './types';
|
|
2
2
|
import { injectSelectRootContext } from 'reka-ui';
|
|
3
3
|
import { ComputedRef, Ref } from 'vue';
|
|
4
4
|
import { SelectSize, SelectStatus } from './Select.model';
|
|
@@ -15,8 +15,6 @@ export interface SelectContext extends SelectRootContext, Omit<_SelectContext, '
|
|
|
15
15
|
getOptionLabel: (option?: SelectOptionItem) => string | undefined;
|
|
16
16
|
getOptionDisabled: (option?: SelectOptionItem) => boolean | undefined;
|
|
17
17
|
getOptionIcon: (option?: SelectOptionItem) => string | undefined;
|
|
18
|
-
getOptionGroupLabel: (option?: SelectOptionItem) => string | undefined;
|
|
19
|
-
getOptionGroupOptions: (option?: SelectOptionType) => SelectOptionItem[] | undefined;
|
|
20
18
|
getOptionByValue: (value: string) => SelectOptionItem | undefined;
|
|
21
19
|
getLabelByValue: (value: string) => string | undefined;
|
|
22
20
|
getDisabled: ComputedRef<boolean>;
|
package/dist/Select/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as a, a as s, S, b as c, c as l, i as o, p as i } from "../Select.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { _ as a, a as s, S, b as c, c as l, i as o, p as i } from "../Select.vue_vue_type_style_index_0_lang-DUy8bGSD.js";
|
|
2
2
|
export {
|
|
3
3
|
a as Select,
|
|
4
4
|
s as SelectLabel,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Select.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Select.vue_vue_type_style_index_0_lang-C1iYwWCJ.js");exports.Select=e._sfc_main;exports.SelectLabel=e._sfc_main$1;exports.SelectOption=e.SelectOption;exports.SelectSizes=e.SelectSizes;exports.SelectStatuses=e.SelectStatuses;exports.injectSelectContext=e.injectSelectContext;exports.provideSelectContext=e.provideSelectContext;
|
package/dist/Select/types.d.ts
CHANGED
|
@@ -102,6 +102,7 @@ export interface SelectTriggerSlots {
|
|
|
102
102
|
triggerLeading?: (data: SelectTriggerDefSlotProps) => never;
|
|
103
103
|
placeholder?: (data: SelectTriggerDefSlotProps) => never;
|
|
104
104
|
triggerValue?: (data: SelectTriggerDefSlotProps) => never;
|
|
105
|
+
trigger?: (data: SelectTriggerDefSlotProps) => never;
|
|
105
106
|
triggerTrailing?: (data: SelectTriggerDefSlotProps) => never;
|
|
106
107
|
tagClose?: (data: SelectTriggerTagSlotProps & {
|
|
107
108
|
onClose: (e: MouseEvent) => void;
|