@caipira/tamandua 0.0.2 → 0.0.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/README.md +10 -2
- package/dist/Avatar.js +6 -0
- package/dist/Avatar.vue_vue_type_script_setup_true_lang-C3xje4Mr.js +51 -0
- package/dist/Backdrop.js +6 -0
- package/dist/Backdrop.vue_vue_type_script_setup_true_lang-OaEBTmYK.js +22 -0
- package/dist/Button-Bzvqv1bQ.js +6 -0
- package/dist/Button.js +6 -0
- package/dist/Button.vue_vue_type_style_index_0_scoped_5056001e_lang-DmQxrvfv.js +143 -0
- package/dist/ButtonCopy.js +6 -0
- package/dist/ButtonCopy.vue_vue_type_script_setup_true_lang-C8Ndx2n_.js +43 -0
- package/dist/Drawer-DH5EEenO.js +74 -0
- package/dist/Drawer.js +6 -0
- package/dist/Dropdown.js +6 -0
- package/dist/Dropdown.vue_vue_type_script_setup_true_lang-CJ6tMLP5.js +135 -0
- package/dist/FileDrop.js +6 -0
- package/dist/FileDrop.vue_vue_type_script_setup_true_lang-Cmrpt2_c.js +86 -0
- package/dist/Form.js +6 -0
- package/dist/Form.vue_vue_type_script_setup_true_lang-CgTo7ahn.js +186 -0
- package/dist/FormItem.js +6 -0
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-CV5hpJ8B.js +69 -0
- package/dist/GraphyEmpty.js +6 -0
- package/dist/GraphyEmpty.vue_vue_type_script_setup_true_lang-B-hAjDCw.js +15 -0
- package/dist/GraphyLabel.js +6 -0
- package/dist/GraphyLabel.vue_vue_type_script_setup_true_lang-dEuzASQp.js +27 -0
- package/dist/GraphyPrice.js +6 -0
- package/dist/GraphyPrice.vue_vue_type_script_setup_true_lang-BOW4su3l.js +42 -0
- package/dist/GraphySubtitle.js +6 -0
- package/dist/GraphySubtitle.vue_vue_type_script_setup_true_lang-DtAmgZWp.js +18 -0
- package/dist/GraphyTitle.js +6 -0
- package/dist/GraphyTitle.vue_vue_type_script_setup_true_lang-DXnrZHV2.js +15 -0
- package/dist/Icon.js +6 -0
- package/dist/Icon.vue_vue_type_script_setup_true_lang-hxJ1wXXd.js +46 -0
- package/dist/IconButton.js +6 -0
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-BDjy7ycQ.js +106 -0
- package/dist/InputAvatar.js +6 -0
- package/dist/InputAvatar.vue_vue_type_script_setup_true_lang-Dzq2QUAy.js +52 -0
- package/dist/InputCheckbox.js +6 -0
- package/dist/InputCheckbox.vue_vue_type_script_setup_true_lang-B5zoxg5A.js +46 -0
- package/dist/InputColor.js +6 -0
- package/dist/InputColor.vue_vue_type_script_setup_true_lang-DunYzjId.js +35 -0
- package/dist/InputDate.js +6 -0
- package/dist/InputDate.vue_vue_type_script_setup_true_lang-DM9vaaiW.js +188 -0
- package/dist/InputMultiplier.js +6 -0
- package/dist/InputMultiplier.vue_vue_type_script_setup_true_lang-w2RuSz1R.js +83 -0
- package/dist/InputPassword.js +6 -0
- package/dist/InputPassword.vue_vue_type_script_setup_true_lang-SuGempaV.js +139 -0
- package/dist/InputPhone.js +6 -0
- package/dist/InputPhone.vue_vue_type_script_setup_true_lang-BH89TX0s.js +76 -0
- package/dist/InputPrice.js +6 -0
- package/dist/InputPrice.vue_vue_type_script_setup_true_lang-Zi-JuhSl.js +63 -0
- package/dist/InputRadio.js +6 -0
- package/dist/InputRadio.vue_vue_type_script_setup_true_lang-cPnYGpJ_.js +34 -0
- package/dist/InputSelect.js +6 -0
- package/dist/InputSelect.vue_vue_type_script_setup_true_lang-DSM-ClgU.js +216 -0
- package/dist/InputSwitch.js +6 -0
- package/dist/InputSwitch.vue_vue_type_script_setup_true_lang-DCYkakov.js +62 -0
- package/dist/InputText.js +6 -0
- package/dist/InputText.vue_vue_type_script_setup_true_lang-KUUuOOlk.js +41 -0
- package/dist/InputTextarea.js +6 -0
- package/dist/InputTextarea.vue_vue_type_script_setup_true_lang-01amgZ6U.js +43 -0
- package/dist/LineChart.js +6 -0
- package/dist/LineChart.vue_vue_type_script_setup_true_lang-Do8SXht4.js +17 -0
- package/dist/Modal.js +6 -0
- package/dist/Modal.vue_vue_type_script_setup_true_lang-DE2ySBCY.js +82 -0
- package/dist/ModalForm.js +6 -0
- package/dist/ModalForm.vue_vue_type_script_setup_true_lang-VhRoRmxZ.js +108 -0
- package/dist/Pagination.js +6 -0
- package/dist/Pagination.vue_vue_type_script_setup_true_lang-PLZQJUd0.js +89 -0
- package/dist/PieChart.js +6 -0
- package/dist/PieChart.vue_vue_type_script_setup_true_lang-CmEDNOuk.js +17 -0
- package/dist/Popconfirm.js +6 -0
- package/dist/Popconfirm.vue_vue_type_script_setup_true_lang-Dy1m3j6J.js +65 -0
- package/dist/Popover.js +6 -0
- package/dist/Popover.vue_vue_type_script_setup_true_lang-OFi2-aWk.js +987 -0
- package/dist/ProgressCircle-iWjZBZwm.js +58 -0
- package/dist/ProgressCircle.js +6 -0
- package/dist/ProgressLine-BT-YgI1t.js +62 -0
- package/dist/ProgressLine.js +6 -0
- package/dist/SensitiveInfo.js +6 -0
- package/dist/SensitiveInfo.vue_vue_type_script_setup_true_lang-lCdRDxvZ.js +22 -0
- package/dist/Tab.js +6 -0
- package/dist/Tab.vue_vue_type_script_setup_true_lang-VzvYvoqa.js +47 -0
- package/dist/Table-CTeoQmG3.js +154 -0
- package/dist/Table.js +6 -0
- package/dist/Tag.js +6 -0
- package/dist/Tag.vue_vue_type_script_setup_true_lang-BeWozUNz.js +63 -0
- package/dist/Toast.js +6 -0
- package/dist/Toast.vue_vue_type_script_setup_true_lang-CpDXLnat.js +61 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/account-BJGxzbeL.js +5 -0
- package/dist/alert-octagon-D8wznooU.js +4 -0
- package/dist/alert-octagon-outline-fM2QVbyq.js +5 -0
- package/dist/archive-DDuuzVUo.js +5 -0
- package/dist/archive-outline-BT6uCRX5.js +5 -0
- package/dist/arrow-left-CVipcGWo.js +5 -0
- package/dist/arrow-right-DHFo5L72.js +5 -0
- package/dist/bank-lwoR1P6d.js +5 -0
- package/dist/bank-outline-wy0O9ni0.js +5 -0
- package/dist/camera-BXoPauop.js +5 -0
- package/dist/cards-outline-B0no8Z63.js +5 -0
- package/dist/cards-variant-CU6V8mdM.js +5 -0
- package/dist/cart-outline-C99s8OpS.js +4 -0
- package/dist/chart-box-outline-C9ymwfIH.js +5 -0
- package/dist/chart-box-tyepg_QH.js +5 -0
- package/dist/check-circle-C3Kf7DnE.js +5 -0
- package/dist/check-circle-outline-B4zmPfuc.js +5 -0
- package/dist/check-iUT-FuWa.js +5 -0
- package/dist/checkbox-TojXdFTq.js +5 -0
- package/dist/checkbox-dark-D_btgwCX.js +5 -0
- package/dist/checkbox-indeterminate-CtbmyFkw.js +5 -0
- package/dist/checkbox-indeterminate-dark-CSrkJBRG.js +5 -0
- package/dist/chevron-down-CJLshITY.js +5 -0
- package/dist/chevron-left-n_sGCmlG.js +5 -0
- package/dist/chevron-right-C8uLqjmq.js +5 -0
- package/dist/chevron-up-b6VdQM8S.js +5 -0
- package/dist/circle-DhoEDuC5.js +5 -0
- package/dist/clock-BqMI2OIG.js +5 -0
- package/dist/close-DemH4JAO.js +5 -0
- package/dist/close-circle-Bsf9_pUR.js +4 -0
- package/dist/close-circle-outline-CUXfYV4M.js +5 -0
- package/dist/cog-Dd9I6z5D.js +5 -0
- package/dist/color-fill-DWx77G0p.js +5 -0
- package/dist/components.js +89 -0
- package/dist/composables.js +17 -0
- package/dist/copy-D-Dqxp8h.js +5 -0
- package/dist/credit-card-B3VjoUad.js +5 -0
- package/dist/credit-card-plus-TUZq5Zi0.js +4 -0
- package/dist/crud-d9NUddtZ.js +61 -0
- package/dist/currency-BuSji4qA.js +5 -0
- package/dist/database-CNG_l2Or.js +5 -0
- package/dist/date.js +155 -0
- package/dist/dots-grid-BhRGZg1t.js +5 -0
- package/dist/dots-vertical-nYIDxlT1.js +5 -0
- package/dist/email-open-outline-NlRAK8vu.js +5 -0
- package/dist/email-outline-v-beMKo_.js +5 -0
- package/dist/enums.js +9 -0
- package/dist/eye-C7_UM0rn.js +5 -0
- package/dist/eye-off-Dq2WOPSG.js +5 -0
- package/dist/file-document-plus-outline-C_GeG8ak.js +5 -0
- package/dist/filmstrip-Dg66xHap.js +4 -0
- package/dist/filter-07gM0IrM.js +5 -0
- package/dist/form2.js +20 -0
- package/dist/fullscreen-daZRwm-1.js +5 -0
- package/dist/fullscreen-exit-DvHy2f8E.js +5 -0
- package/dist/group-B1HQcmCl.js +5 -0
- package/dist/image-C-DY_SfK.js +5 -0
- package/dist/image-album-DVl72ioK.js +5 -0
- package/dist/image-album-outline-oiPipPnp.js +5 -0
- package/dist/image-outline-CLpFyr7w.js +5 -0
- package/dist/index-CVD_wAsU.js +2022 -0
- package/dist/index-CgLIzaY3.js +7772 -0
- package/dist/index-CjvqeRf7.js +1280 -0
- package/dist/index-CuyePt3m.js +40 -0
- package/dist/index-DBecmJ_I.js +7 -0
- package/dist/info-outline-Mn6Hjz_K.js +5 -0
- package/dist/key-B8iEXxGx.js +5 -0
- package/dist/key-chain-D-8-GrU2.js +5 -0
- package/dist/key-variant-DViBRFAJ.js +5 -0
- package/dist/listbox-outline-BBriTS-r.js +5 -0
- package/dist/loading-E4eFmVsP.js +5 -0
- package/dist/lock-Nv-e-b24.js +5 -0
- package/dist/lock-outline-K2LxC2b6.js +5 -0
- package/dist/logout-BHwFpuou.js +5 -0
- package/dist/menu-down-B4Fy5IG1.js +4 -0
- package/dist/menu-left-D8G3frKt.js +4 -0
- package/dist/menu-pq7WWaJu.js +5 -0
- package/dist/menu-right-CMt4thJ2.js +4 -0
- package/dist/minus-CSCkQnOm.js +5 -0
- package/dist/minus-circle-D_N5NZW-.js +5 -0
- package/dist/minus-circle-outline-B-x6EXPD.js +5 -0
- package/dist/moon-Bhm_ZTV6.js +5 -0
- package/dist/open-in-new-C2Btl_1k.js +5 -0
- package/dist/pencil-BETebgXX.js +5 -0
- package/dist/people-BUW1DRzH.js +5 -0
- package/dist/piggy-bank-outline-5cDQNrSU.js +5 -0
- package/dist/plugin--u5hKcI0.js +10 -0
- package/dist/plugin-2nTovNcx.js +10 -0
- package/dist/plugin-5vn4G57V.js +10 -0
- package/dist/plugin-APHHlXVq.js +10 -0
- package/dist/plugin-B5Guy9c3.js +10 -0
- package/dist/plugin-BC-6G-0o.js +10 -0
- package/dist/plugin-BHaaQBWr.js +10 -0
- package/dist/plugin-BLe_xel4.js +10 -0
- package/dist/plugin-BPR3wKP8.js +10 -0
- package/dist/plugin-BTfinCzO.js +10 -0
- package/dist/plugin-BYkYqIjb.js +10 -0
- package/dist/plugin-BeNCIHgJ.js +10 -0
- package/dist/plugin-Bg2uvrOR.js +10 -0
- package/dist/plugin-Br57SoWk.js +10 -0
- package/dist/plugin-Buc7eEox.js +10 -0
- package/dist/plugin-C-iGigb_.js +10 -0
- package/dist/plugin-C27tBvHp.js +10 -0
- package/dist/plugin-C2MSl67l.js +10 -0
- package/dist/plugin-CF2ujTru.js +10 -0
- package/dist/plugin-CHF44uaz.js +10 -0
- package/dist/plugin-CHyrn6sC.js +10 -0
- package/dist/plugin-CIRUNt1_.js +10 -0
- package/dist/plugin-CQ6DHzD0.js +10 -0
- package/dist/plugin-CSrviP_c.js +10 -0
- package/dist/plugin-CoGzF5YO.js +10 -0
- package/dist/plugin-CpACKUGt.js +10 -0
- package/dist/plugin-CxGfRAW1.js +10 -0
- package/dist/plugin-DDPcV7Fj.js +10 -0
- package/dist/plugin-DN54VuID.js +10 -0
- package/dist/plugin-DOeDaXWj.js +10 -0
- package/dist/plugin-DSCBycRO.js +10 -0
- package/dist/plugin-DaibhM02.js +10 -0
- package/dist/plugin-Dbdsdqqh.js +10 -0
- package/dist/plugin-DdQB9R9S.js +10 -0
- package/dist/plugin-DdrfzyNc.js +35 -0
- package/dist/plugin-Dg87-qPm.js +10 -0
- package/dist/plugin-Xg1SCgfO.js +10 -0
- package/dist/plugin-YUomn9tF.js +10 -0
- package/dist/plugin-cvHKUGjm.js +10 -0
- package/dist/plugin-hpCgD9-h.js +10 -0
- package/dist/plugin-nzCD2cWq.js +10 -0
- package/dist/plugin-rFDM6yOH.js +10 -0
- package/dist/plugin-turENJ3j.js +10 -0
- package/dist/plugins-DumG9GBB.js +107 -0
- package/dist/plugins.js +103 -0
- package/dist/plus-circle-Cl0YprEp.js +5 -0
- package/dist/plus-circle-outline-C-kkX0ke.js +5 -0
- package/dist/plus-sbcOm60H.js +5 -0
- package/dist/qrcode-scan-CpLrVFw_.js +5 -0
- package/dist/radio-DkjVAhsO.js +5 -0
- package/dist/radio-dark-Cr5v17AF.js +5 -0
- package/dist/refresh-DPlMWd1M.js +5 -0
- package/dist/register-component-B-fdqewb.js +6 -0
- package/dist/save-BmMH4S8b.js +4 -0
- package/dist/search-Co2MwWOK.js +5 -0
- package/dist/spotlight-TNyCQzOY.js +4 -0
- package/dist/store-outline-B-fuVZzv.js +5 -0
- package/dist/sun-BWKjCEHH.js +5 -0
- package/dist/swap-CNbqKTl0.js +5 -0
- package/dist/swap-horizontal-DociZUG2.js +5 -0
- package/dist/swap-left-Bd2DOgf3.js +5 -0
- package/dist/swap-right-D0VYxBDb.js +5 -0
- package/dist/system-theme-Cez6mSv_.js +5 -0
- package/dist/tag-outline-Ce_qOxif.js +5 -0
- package/dist/tamandua.js +21 -0
- package/dist/trash-can-CKPtMqSf.js +5 -0
- package/dist/trash-can-outline-DjtqZHOC.js +5 -0
- package/dist/types/components/Avatar/Avatar.story.d.ts +9 -0
- package/dist/types/components/Avatar/Avatar.vue.d.ts +58 -0
- package/dist/types/components/Avatar/index.d.ts +4 -0
- package/dist/types/components/Avatar/plugin.d.ts +4 -0
- package/dist/types/components/Backdrop/Backdrop.vue.d.ts +33 -0
- package/dist/types/components/Backdrop/index.d.ts +4 -0
- package/dist/types/components/Backdrop/plugin.d.ts +4 -0
- package/dist/types/components/Button/Button.story.d.ts +70 -0
- package/dist/types/components/Button/Button.vue.d.ts +153 -0
- package/dist/types/components/Button/index.d.ts +4 -0
- package/dist/types/components/Button/plugin.d.ts +4 -0
- package/dist/types/components/ButtonCopy/ButtonCopy.vue.d.ts +32 -0
- package/dist/types/components/ButtonCopy/index.d.ts +4 -0
- package/dist/types/components/ButtonCopy/plugin.d.ts +4 -0
- package/dist/types/components/Drawer/Drawer.vue.d.ts +67 -0
- package/dist/types/components/Drawer/index.d.ts +4 -0
- package/dist/types/components/Drawer/plugin.d.ts +4 -0
- package/dist/types/components/Dropdown/Dropdown.vue.d.ts +117 -0
- package/dist/types/components/Dropdown/index.d.ts +4 -0
- package/dist/types/components/Dropdown/plugin.d.ts +4 -0
- package/dist/types/components/EventListener/EventListener.vue.d.ts +6 -0
- package/dist/types/components/FileDrop/FileDrop.vue.d.ts +40 -0
- package/dist/types/components/FileDrop/index.d.ts +4 -0
- package/dist/types/components/FileDrop/plugin.d.ts +4 -0
- package/dist/types/components/Form/Form.spec.d.ts +1 -0
- package/dist/types/components/Form/Form.vue.d.ts +111 -0
- package/dist/types/components/Form/index.d.ts +4 -0
- package/dist/types/components/Form/plugin.d.ts +4 -0
- package/dist/types/components/FormItem/FormItem.vue.d.ts +41 -0
- package/dist/types/components/FormItem/index.d.ts +4 -0
- package/dist/types/components/FormItem/plugin.d.ts +4 -0
- package/dist/types/components/GraphyEmpty/GraphyEmpty.vue.d.ts +23 -0
- package/dist/types/components/GraphyEmpty/index.d.ts +4 -0
- package/dist/types/components/GraphyEmpty/plugin.d.ts +4 -0
- package/dist/types/components/GraphyLabel/GraphyLabel.vue.d.ts +43 -0
- package/dist/types/components/GraphyLabel/index.d.ts +4 -0
- package/dist/types/components/GraphyLabel/plugin.d.ts +4 -0
- package/dist/types/components/GraphyPrice/GraphyPrice.story.d.ts +6 -0
- package/dist/types/components/GraphyPrice/GraphyPrice.vue.d.ts +45 -0
- package/dist/types/components/GraphyPrice/index.d.ts +4 -0
- package/dist/types/components/GraphyPrice/plugin.d.ts +4 -0
- package/dist/types/components/GraphySubtitle/GraphySubtitle.vue.d.ts +31 -0
- package/dist/types/components/GraphySubtitle/index.d.ts +4 -0
- package/dist/types/components/GraphySubtitle/plugin.d.ts +4 -0
- package/dist/types/components/GraphyTitle/GraphyTitle.vue.d.ts +15 -0
- package/dist/types/components/GraphyTitle/index.d.ts +4 -0
- package/dist/types/components/GraphyTitle/plugin.d.ts +4 -0
- package/dist/types/components/Icon/Icon.vue.d.ts +40 -0
- package/dist/types/components/Icon/index.d.ts +4 -0
- package/dist/types/components/Icon/plugin.d.ts +4 -0
- package/dist/types/components/IconButton/IconButton.vue.d.ts +153 -0
- package/dist/types/components/IconButton/index.d.ts +4 -0
- package/dist/types/components/IconButton/plugin.d.ts +4 -0
- package/dist/types/components/InputAvatar/InputAvatar.vue.d.ts +19 -0
- package/dist/types/components/InputAvatar/index.d.ts +4 -0
- package/dist/types/components/InputAvatar/plugin.d.ts +4 -0
- package/dist/types/components/InputCheckbox/InputCheckbox.vue.d.ts +52 -0
- package/dist/types/components/InputCheckbox/index.d.ts +4 -0
- package/dist/types/components/InputCheckbox/plugin.d.ts +4 -0
- package/dist/types/components/InputColor/InputColor.vue.d.ts +40 -0
- package/dist/types/components/InputColor/index.d.ts +4 -0
- package/dist/types/components/InputColor/plugin.d.ts +4 -0
- package/dist/types/components/InputDate/InputDate.story.d.ts +6 -0
- package/dist/types/components/InputDate/InputDate.vue.d.ts +23 -0
- package/dist/types/components/InputDate/index.d.ts +4 -0
- package/dist/types/components/InputDate/plugin.d.ts +4 -0
- package/dist/types/components/InputMultiplier/InputMultiplier.vue.d.ts +4 -0
- package/dist/types/components/InputMultiplier/index.d.ts +4 -0
- package/dist/types/components/InputMultiplier/input-multiplier.story.d.ts +19 -0
- package/dist/types/components/InputMultiplier/plugin.d.ts +4 -0
- package/{components/InputMultiplier/types.ts → dist/types/components/InputMultiplier/types.d.ts} +1 -2
- package/dist/types/components/InputPassword/InputPassword.vue.d.ts +68 -0
- package/dist/types/components/InputPassword/index.d.ts +4 -0
- package/dist/types/components/InputPassword/plugin.d.ts +4 -0
- package/dist/types/components/InputPhone/InputPhone.vue.d.ts +40 -0
- package/dist/types/components/InputPhone/index.d.ts +4 -0
- package/dist/types/components/InputPhone/plugin.d.ts +4 -0
- package/dist/types/components/InputPrice/InputPrice.vue.d.ts +39 -0
- package/dist/types/components/InputPrice/index.d.ts +4 -0
- package/dist/types/components/InputPrice/plugin.d.ts +4 -0
- package/dist/types/components/InputRadio/InputRadio.vue.d.ts +17 -0
- package/dist/types/components/InputRadio/InputRadioGroup.story.d.ts +7 -0
- package/dist/types/components/InputRadio/InputRadioGroup.vue.d.ts +44 -0
- package/dist/types/components/InputRadio/index.d.ts +4 -0
- package/dist/types/components/InputRadio/plugin.d.ts +4 -0
- package/dist/types/components/InputSelect/InputSelect.story.d.ts +6 -0
- package/dist/types/components/InputSelect/InputSelect.vue.d.ts +116 -0
- package/dist/types/components/InputSelect/index.d.ts +4 -0
- package/dist/types/components/InputSelect/plugin.d.ts +4 -0
- package/dist/types/components/InputSwitch/InputSwitch.story.d.ts +29 -0
- package/dist/types/components/InputSwitch/InputSwitch.vue.d.ts +40 -0
- package/dist/types/components/InputSwitch/index.d.ts +4 -0
- package/dist/types/components/InputSwitch/plugin.d.ts +4 -0
- package/dist/types/components/InputText/InputText.vue.d.ts +60 -0
- package/dist/types/components/InputText/index.d.ts +4 -0
- package/dist/types/components/InputText/plugin.d.ts +4 -0
- package/dist/types/components/InputTextarea/InputTextarea.vue.d.ts +50 -0
- package/dist/types/components/InputTextarea/index.d.ts +4 -0
- package/dist/types/components/InputTextarea/plugin.d.ts +4 -0
- package/dist/types/components/LineChart/LineChart.vue.d.ts +17 -0
- package/dist/types/components/LineChart/index.d.ts +4 -0
- package/dist/types/components/LineChart/plugin.d.ts +4 -0
- package/dist/types/components/Modal/Modal.vue.d.ts +70 -0
- package/dist/types/components/Modal/index.d.ts +4 -0
- package/dist/types/components/Modal/plugin.d.ts +4 -0
- package/dist/types/components/ModalForm/ModalForm.vue.d.ts +53 -0
- package/dist/types/components/ModalForm/index.d.ts +4 -0
- package/dist/types/components/ModalForm/plugin.d.ts +4 -0
- package/dist/types/components/Pagination/Pagination.story.d.ts +5 -0
- package/dist/types/components/Pagination/Pagination.vue.d.ts +50 -0
- package/dist/types/components/Pagination/index.d.ts +4 -0
- package/dist/types/components/Pagination/plugin.d.ts +4 -0
- package/dist/types/components/PieChart/PieChart.vue.d.ts +17 -0
- package/dist/types/components/PieChart/index.d.ts +4 -0
- package/dist/types/components/PieChart/plugin.d.ts +4 -0
- package/dist/types/components/Popconfirm/Popconfirm.vue.d.ts +49 -0
- package/dist/types/components/Popconfirm/index.d.ts +4 -0
- package/dist/types/components/Popconfirm/plugin.d.ts +4 -0
- package/dist/types/components/Popover/Popover.vue.d.ts +68 -0
- package/dist/types/components/Popover/index.d.ts +4 -0
- package/dist/types/components/Popover/plugin.d.ts +4 -0
- package/dist/types/components/ProgressCircle/ProgressCircle.story.d.ts +5 -0
- package/dist/types/components/ProgressCircle/ProgressCircle.vue.d.ts +56 -0
- package/dist/types/components/ProgressCircle/index.d.ts +4 -0
- package/dist/types/components/ProgressCircle/plugin.d.ts +4 -0
- package/dist/types/components/ProgressLine/ProgressLine.story.d.ts +5 -0
- package/dist/types/components/ProgressLine/ProgressLine.vue.d.ts +75 -0
- package/dist/types/components/ProgressLine/index.d.ts +4 -0
- package/dist/types/components/ProgressLine/plugin.d.ts +4 -0
- package/dist/types/components/SensitiveInfo/SensitiveInfo.vue.d.ts +22 -0
- package/dist/types/components/SensitiveInfo/index.d.ts +4 -0
- package/dist/types/components/SensitiveInfo/plugin.d.ts +4 -0
- package/dist/types/components/Tab/Tab.vue.d.ts +36 -0
- package/dist/types/components/Tab/index.d.ts +4 -0
- package/dist/types/components/Tab/plugin.d.ts +4 -0
- package/dist/types/components/Table/Table.story.d.ts +5 -0
- package/dist/types/components/Table/Table.vue.d.ts +97 -0
- package/dist/types/components/Table/index.d.ts +4 -0
- package/dist/types/components/Table/plugin.d.ts +4 -0
- package/{components/Table/types.ts → dist/types/components/Table/types.d.ts} +1 -2
- package/dist/types/components/Tag/Tag.vue.d.ts +54 -0
- package/dist/types/components/Tag/index.d.ts +4 -0
- package/dist/types/components/Tag/plugin.d.ts +4 -0
- package/{components/Tag/types.ts → dist/types/components/Tag/types.d.ts} +1 -2
- package/dist/types/components/Toast/Toast.vue.d.ts +21 -0
- package/dist/types/components/Toast/index.d.ts +4 -0
- package/dist/types/components/Toast/plugin.d.ts +4 -0
- package/dist/types/components/index.d.ts +45 -0
- package/dist/types/components/plugins.d.ts +45 -0
- package/dist/types/composables/index.d.ts +4 -0
- package/dist/types/composables/useBreakpoints.d.ts +5 -0
- package/dist/types/composables/useRender.d.ts +3 -0
- package/dist/types/enums/form.d.ts +23 -0
- package/dist/types/enums/index.d.ts +4 -0
- package/{enums/ui.ts → dist/types/enums/ui.d.ts} +16 -30
- package/dist/types/form/convertors.d.ts +3 -0
- package/dist/types/form/crud.d.ts +27 -0
- package/dist/types/form/form-data-transformers.d.ts +4 -0
- package/dist/types/form/form-transformer.d.ts +7 -0
- package/dist/types/form/form-value-transformers.d.ts +8 -0
- package/dist/types/form/form.test.d.ts +1 -0
- package/dist/types/form/index.d.ts +4 -0
- package/dist/types/form/json-transformers.d.ts +4 -0
- package/dist/types/i18n.d.ts +15 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/plugins/register-component.d.ts +4 -0
- package/dist/types/services/clipboard.d.ts +2 -0
- package/dist/types/services/date.d.ts +3 -0
- package/dist/types/services/password.d.ts +7 -0
- package/dist/types/services/ui.d.ts +9 -0
- package/{types/address.ts → dist/types/types/address.d.ts} +0 -5
- package/{types/api.ts → dist/types/types/api.d.ts} +0 -4
- package/{types/common.ts → dist/types/types/common.d.ts} +0 -1
- package/{types/form.ts → dist/types/types/form.d.ts} +32 -62
- package/dist/types/types/index.d.ts +5 -0
- package/{types/ui.ts → dist/types/types/ui.d.ts} +11 -16
- package/{types/website.ts → dist/types/types/website.d.ts} +0 -1
- package/dist/types/vitest.setup.d.ts +1 -0
- package/dist/ui-BLR-4Xlv.js +11 -0
- package/dist/ui-MicIL_Lw.js +23 -0
- package/dist/upload-CKfrBexU.js +5 -0
- package/dist/useRender-D8PeooXE.js +16 -0
- package/dist/user-circle-D102n1FB.js +5 -0
- package/dist/zip-box-C10560VY.js +5 -0
- package/package.json +46 -11
- package/volar.d.ts +48 -0
- package/.editorconfig +0 -12
- package/.prettierrc +0 -5
- package/.storybook/main.ts +0 -22
- package/.storybook/preview-body.html +0 -3
- package/.storybook/preview.ts +0 -24
- package/App.vue +0 -1
- package/Dockerfile +0 -21
- package/assets/icons/account.svg +0 -1
- package/assets/icons/alert-octagon-outline.svg +0 -1
- package/assets/icons/alert-octagon.svg +0 -1
- package/assets/icons/archive-outline.svg +0 -1
- package/assets/icons/archive.svg +0 -1
- package/assets/icons/arrow-left.svg +0 -1
- package/assets/icons/arrow-right.svg +0 -1
- package/assets/icons/bank-outline.svg +0 -1
- package/assets/icons/bank.svg +0 -1
- package/assets/icons/camera.svg +0 -1
- package/assets/icons/cards-outline.svg +0 -1
- package/assets/icons/cards-variant.svg +0 -1
- package/assets/icons/cart-outline.svg +0 -1
- package/assets/icons/chart-box-outline.svg +0 -1
- package/assets/icons/chart-box.svg +0 -1
- package/assets/icons/check-circle-outline.svg +0 -1
- package/assets/icons/check-circle.svg +0 -1
- package/assets/icons/check.svg +0 -1
- package/assets/icons/checkbox-dark.svg +0 -1
- package/assets/icons/checkbox-indeterminate-dark.svg +0 -1
- package/assets/icons/checkbox-indeterminate.svg +0 -1
- package/assets/icons/checkbox.svg +0 -1
- package/assets/icons/chevron-down.svg +0 -1
- package/assets/icons/chevron-left.svg +0 -1
- package/assets/icons/chevron-right.svg +0 -1
- package/assets/icons/chevron-up.svg +0 -1
- package/assets/icons/circle.svg +0 -1
- package/assets/icons/clock.svg +0 -1
- package/assets/icons/close-circle-outline.svg +0 -1
- package/assets/icons/close-circle.svg +0 -1
- package/assets/icons/close.svg +0 -1
- package/assets/icons/cog.svg +0 -1
- package/assets/icons/color-fill.svg +0 -1
- package/assets/icons/copy.svg +0 -1
- package/assets/icons/credit-card-plus.svg +0 -1
- package/assets/icons/credit-card.svg +0 -1
- package/assets/icons/currency.svg +0 -1
- package/assets/icons/database.svg +0 -1
- package/assets/icons/dots-grid.svg +0 -1
- package/assets/icons/dots-vertical.svg +0 -1
- package/assets/icons/email-open-outline.svg +0 -1
- package/assets/icons/email-outline.svg +0 -1
- package/assets/icons/eye-off.svg +0 -1
- package/assets/icons/eye.svg +0 -1
- package/assets/icons/file-document-plus-outline.svg +0 -1
- package/assets/icons/filmstrip.svg +0 -1
- package/assets/icons/filter.svg +0 -1
- package/assets/icons/fullscreen-exit.svg +0 -1
- package/assets/icons/fullscreen.svg +0 -1
- package/assets/icons/group.svg +0 -1
- package/assets/icons/image-album-outline.svg +0 -1
- package/assets/icons/image-album.svg +0 -1
- package/assets/icons/image-outline.svg +0 -1
- package/assets/icons/image.svg +0 -1
- package/assets/icons/info-outline.svg +0 -1
- package/assets/icons/key-chain.svg +0 -1
- package/assets/icons/key-variant.svg +0 -1
- package/assets/icons/key.svg +0 -1
- package/assets/icons/listbox-outline.svg +0 -1
- package/assets/icons/loading.svg +0 -1
- package/assets/icons/lock-outline.svg +0 -1
- package/assets/icons/lock.svg +0 -1
- package/assets/icons/logout.svg +0 -1
- package/assets/icons/menu-down.svg +0 -1
- package/assets/icons/menu-left.svg +0 -1
- package/assets/icons/menu-right.svg +0 -1
- package/assets/icons/menu.svg +0 -1
- package/assets/icons/minus-circle-outline.svg +0 -1
- package/assets/icons/minus-circle.svg +0 -1
- package/assets/icons/minus.svg +0 -1
- package/assets/icons/moon.svg +0 -1
- package/assets/icons/open-in-new.svg +0 -1
- package/assets/icons/pencil.svg +0 -1
- package/assets/icons/people.svg +0 -1
- package/assets/icons/piggy-bank-outline.svg +0 -1
- package/assets/icons/plus-circle-outline.svg +0 -1
- package/assets/icons/plus-circle.svg +0 -1
- package/assets/icons/plus.svg +0 -1
- package/assets/icons/qrcode-scan.svg +0 -1
- package/assets/icons/radio-dark.svg +0 -1
- package/assets/icons/radio.svg +0 -1
- package/assets/icons/refresh.svg +0 -1
- package/assets/icons/save.svg +0 -1
- package/assets/icons/search.svg +0 -1
- package/assets/icons/spotlight.svg +0 -1
- package/assets/icons/store-outline.svg +0 -1
- package/assets/icons/sun.svg +0 -1
- package/assets/icons/swap-horizontal.svg +0 -1
- package/assets/icons/swap-left.svg +0 -1
- package/assets/icons/swap-right.svg +0 -1
- package/assets/icons/swap.svg +0 -1
- package/assets/icons/system-theme.svg +0 -1
- package/assets/icons/tag-outline.svg +0 -1
- package/assets/icons/trash-can-outline.svg +0 -1
- package/assets/icons/trash-can.svg +0 -1
- package/assets/icons/upload.svg +0 -1
- package/assets/icons/user-circle.svg +0 -1
- package/assets/icons/zip-box.svg +0 -1
- package/assets/images/fs/apk.svg +0 -11
- package/assets/images/fs/bmp.svg +0 -7
- package/assets/images/fs/css.svg +0 -8
- package/assets/images/fs/doc.svg +0 -9
- package/assets/images/fs/docx.svg +0 -9
- package/assets/images/fs/folder-adwaita.svg +0 -8
- package/assets/images/fs/folder-black.svg +0 -8
- package/assets/images/fs/folder-brown.svg +0 -8
- package/assets/images/fs/folder-grey.svg +0 -8
- package/assets/images/fs/folder-nordic.svg +0 -8
- package/assets/images/fs/folder-orange.svg +0 -8
- package/assets/images/fs/folder-palebrown.svg +0 -8
- package/assets/images/fs/folder-paleorange.svg +0 -8
- package/assets/images/fs/folder-teal.svg +0 -8
- package/assets/images/fs/folder-white.svg +0 -8
- package/assets/images/fs/folder-yellow.svg +0 -8
- package/assets/images/fs/gif.svg +0 -7
- package/assets/images/fs/go.svg +0 -9
- package/assets/images/fs/ics.svg +0 -24
- package/assets/images/fs/iso.svg +0 -10
- package/assets/images/fs/jpeg.svg +0 -7
- package/assets/images/fs/jpg.svg +0 -7
- package/assets/images/fs/js.svg +0 -9
- package/assets/images/fs/json.svg +0 -9
- package/assets/images/fs/lua.svg +0 -9
- package/assets/images/fs/m4v.svg +0 -7
- package/assets/images/fs/md.svg +0 -10
- package/assets/images/fs/mov.svg +0 -7
- package/assets/images/fs/mp3.svg +0 -9
- package/assets/images/fs/mp4.svg +0 -7
- package/assets/images/fs/pdf.svg +0 -9
- package/assets/images/fs/pgp.svg +0 -8
- package/assets/images/fs/php.svg +0 -9
- package/assets/images/fs/png.svg +0 -7
- package/assets/images/fs/ppt.svg +0 -9
- package/assets/images/fs/py.svg +0 -9
- package/assets/images/fs/rar.svg +0 -20
- package/assets/images/fs/rpm.svg +0 -7
- package/assets/images/fs/rs.svg +0 -9
- package/assets/images/fs/sh.svg +0 -9
- package/assets/images/fs/tar.svg +0 -20
- package/assets/images/fs/txt.svg +0 -8
- package/assets/images/fs/unknown.svg +0 -8
- package/assets/images/fs/xls.svg +0 -9
- package/assets/images/fs/xlsx.svg +0 -9
- package/assets/images/fs/xml.svg +0 -8
- package/assets/images/fs/yaml.svg +0 -9
- package/assets/images/fs/zip.svg +0 -20
- package/components/Avatar/Avatar.story.ts +0 -55
- package/components/Avatar/Avatar.vue +0 -82
- package/components/Avatar/index.ts +0 -12
- package/components/Backdrop/Backdrop.vue +0 -27
- package/components/Backdrop/index.ts +0 -12
- package/components/Button/Button.story.ts +0 -74
- package/components/Button/Button.vue +0 -230
- package/components/Button/index.ts +0 -12
- package/components/ButtonCopy/ButtonCopy.vue +0 -61
- package/components/ButtonCopy/index.ts +0 -12
- package/components/Drawer/Drawer.vue +0 -102
- package/components/Drawer/index.ts +0 -12
- package/components/Dropdown/Dropdown.vue +0 -258
- package/components/Dropdown/index.ts +0 -12
- package/components/EventListener/EventListener.vue +0 -12
- package/components/FileDrop/FileDrop.vue +0 -116
- package/components/FileDrop/index.ts +0 -12
- package/components/Form/Form.spec.ts +0 -72
- package/components/Form/Form.vue +0 -134
- package/components/Form/index.ts +0 -12
- package/components/FormItem/FormItem.vue +0 -85
- package/components/FormItem/index.ts +0 -12
- package/components/GraphyEmpty/GraphyEmpty.vue +0 -16
- package/components/GraphyEmpty/index.ts +0 -12
- package/components/GraphyLabel/GraphyLabel.vue +0 -34
- package/components/GraphyLabel/index.ts +0 -12
- package/components/GraphyPrice/GraphyPrice.story.ts +0 -37
- package/components/GraphyPrice/GraphyPrice.vue +0 -65
- package/components/GraphyPrice/index.ts +0 -12
- package/components/GraphySubtitle/GraphySubtitle.vue +0 -22
- package/components/GraphySubtitle/index.ts +0 -12
- package/components/GraphyTitle/GraphyTitle.vue +0 -13
- package/components/GraphyTitle/index.ts +0 -12
- package/components/Icon/Icon.vue +0 -84
- package/components/Icon/index.ts +0 -12
- package/components/IconButton/IconButton.vue +0 -168
- package/components/IconButton/index.ts +0 -12
- package/components/InputAvatar/InputAvatar.vue +0 -63
- package/components/InputAvatar/index.ts +0 -12
- package/components/InputCheckbox/InputCheckbox.vue +0 -77
- package/components/InputCheckbox/index.ts +0 -12
- package/components/InputColor/InputColor.vue +0 -54
- package/components/InputColor/index.ts +0 -12
- package/components/InputDate/InputDate.story.ts +0 -15
- package/components/InputDate/InputDate.vue +0 -368
- package/components/InputDate/index.ts +0 -12
- package/components/InputMultiplier/InputMultiplier.vue +0 -119
- package/components/InputMultiplier/index.ts +0 -12
- package/components/InputMultiplier/input-multiplier.story.ts +0 -30
- package/components/InputPassword/InputPassword.vue +0 -170
- package/components/InputPassword/index.ts +0 -12
- package/components/InputPhone/InputPhone.vue +0 -125
- package/components/InputPhone/index.ts +0 -12
- package/components/InputPrice/InputPrice.vue +0 -96
- package/components/InputPrice/index.ts +0 -12
- package/components/InputRadio/InputRadio.vue +0 -41
- package/components/InputRadio/InputRadioGroup.story.ts +0 -24
- package/components/InputRadio/InputRadioGroup.vue +0 -48
- package/components/InputRadio/index.ts +0 -14
- package/components/InputSelect/InputSelect.story.ts +0 -87
- package/components/InputSelect/InputSelect.vue +0 -507
- package/components/InputSelect/index.ts +0 -12
- package/components/InputSwitch/InputSwitch.story.ts +0 -34
- package/components/InputSwitch/InputSwitch.vue +0 -82
- package/components/InputSwitch/index.ts +0 -12
- package/components/InputText/InputText.vue +0 -62
- package/components/InputText/index.ts +0 -12
- package/components/InputTextarea/InputTextarea.vue +0 -64
- package/components/InputTextarea/index.ts +0 -12
- package/components/LineChart/LineChart.vue +0 -14
- package/components/LineChart/index.ts +0 -12
- package/components/Modal/Modal.vue +0 -106
- package/components/Modal/index.ts +0 -12
- package/components/ModalForm/ModalForm.vue +0 -141
- package/components/ModalForm/index.ts +0 -12
- package/components/Pagination/Pagination.story.ts +0 -15
- package/components/Pagination/Pagination.vue +0 -138
- package/components/Pagination/index.ts +0 -12
- package/components/PieChart/PieChart.vue +0 -14
- package/components/PieChart/index.ts +0 -12
- package/components/Popconfirm/Popconfirm.vue +0 -80
- package/components/Popconfirm/index.ts +0 -12
- package/components/Popover/Popover.vue +0 -133
- package/components/Popover/index.ts +0 -12
- package/components/ProgressCircle/ProgressCircle.story.ts +0 -31
- package/components/ProgressCircle/ProgressCircle.vue +0 -82
- package/components/ProgressCircle/index.ts +0 -12
- package/components/ProgressLine/ProgressLine.story.ts +0 -27
- package/components/ProgressLine/ProgressLine.vue +0 -104
- package/components/ProgressLine/index.ts +0 -12
- package/components/SensitiveInfo/SensitiveInfo.vue +0 -18
- package/components/SensitiveInfo/index.ts +0 -12
- package/components/Tab/Tab.vue +0 -58
- package/components/Tab/index.ts +0 -12
- package/components/Table/Table.story.ts +0 -30
- package/components/Table/Table.vue +0 -291
- package/components/Table/index.ts +0 -12
- package/components/Tag/Tag.vue +0 -61
- package/components/Tag/index.ts +0 -12
- package/components/Toast/Toast.vue +0 -75
- package/components/Toast/index.ts +0 -12
- package/components/index.ts +0 -43
- package/components/plugins.ts +0 -89
- package/composables/index.ts +0 -2
- package/composables/useBreakpoints.ts +0 -30
- package/composables/useRender.ts +0 -29
- package/entrypoint.sh +0 -19
- package/enums/app.ts +0 -5
- package/enums/form.ts +0 -25
- package/env.d.ts +0 -8
- package/form/convertors.ts +0 -31
- package/form/crud.ts +0 -109
- package/form/form-data-transformers.ts +0 -148
- package/form/form-transformer.ts +0 -54
- package/form/form-value-transformers.ts +0 -32
- package/form/form.test.ts +0 -96
- package/form/json-transformers.ts +0 -91
- package/i18n.ts +0 -20
- package/index.html +0 -22
- package/index.ts +0 -14
- package/main.ts +0 -31
- package/plugins/register-component.ts +0 -5
- package/postcss.config.js +0 -6
- package/services/clipboard.ts +0 -5
- package/services/date.ts +0 -27
- package/services/password.ts +0 -309
- package/services/ui.ts +0 -43
- package/tailwind.config.js +0 -16
- package/tsconfig.json +0 -23
- package/types/index.ts +0 -5
- package/vite.config.mts +0 -14
- package/vitest.setup.ts +0 -21
- /package/{index.css → dist/index.css} +0 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { defineComponent as w, ref as a, inject as x, onBeforeMount as C, watch as g, resolveComponent as i, openBlock as U, createElementBlock as j, normalizeClass as B, unref as I, createVNode as p, mergeProps as m } from "vue";
|
|
2
|
+
const $ = /* @__PURE__ */ w({
|
|
3
|
+
name: "TInputPrice",
|
|
4
|
+
inheritAttrs: !1,
|
|
5
|
+
__name: "InputPrice",
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: { default: () => ({}) },
|
|
8
|
+
wrapperClass: {},
|
|
9
|
+
resource: {}
|
|
10
|
+
},
|
|
11
|
+
emits: ["update:modelValue"],
|
|
12
|
+
setup(c, { emit: d }) {
|
|
13
|
+
const t = c, f = d, l = a(""), o = a(""), V = x("formStyle", { label: "", input: "" }), r = a([]), v = async () => {
|
|
14
|
+
r.value = (await t.resource()).map(
|
|
15
|
+
(e) => ({
|
|
16
|
+
label: e.symbol,
|
|
17
|
+
value: e.iso
|
|
18
|
+
})
|
|
19
|
+
);
|
|
20
|
+
}, s = () => {
|
|
21
|
+
f("update:modelValue", {
|
|
22
|
+
iso: o.value,
|
|
23
|
+
value: parseFloat(l.value)
|
|
24
|
+
});
|
|
25
|
+
}, b = (e) => {
|
|
26
|
+
!e || typeof e != "object" || (t.modelValue?.value && (l.value = `${t.modelValue.value}`), t.modelValue?.iso && (o.value = t.modelValue.iso));
|
|
27
|
+
};
|
|
28
|
+
return C(async () => {
|
|
29
|
+
await v();
|
|
30
|
+
}), g(
|
|
31
|
+
() => t.modelValue,
|
|
32
|
+
(e) => {
|
|
33
|
+
b(e);
|
|
34
|
+
},
|
|
35
|
+
{ immediate: !0 }
|
|
36
|
+
), (e, n) => {
|
|
37
|
+
const y = i("t-input-select"), _ = i("t-input-text");
|
|
38
|
+
return U(), j("div", {
|
|
39
|
+
class: B(["flex h-9", {
|
|
40
|
+
[I(V).input]: !0,
|
|
41
|
+
"input-bg-color input-text-color border input-border input-roundness": !t.wrapperClass
|
|
42
|
+
}])
|
|
43
|
+
}, [
|
|
44
|
+
p(y, m({
|
|
45
|
+
modelValue: o.value,
|
|
46
|
+
"onUpdate:modelValue": n[0] || (n[0] = (u) => o.value = u),
|
|
47
|
+
options: r.value,
|
|
48
|
+
"disable-style": !0,
|
|
49
|
+
class: "w-20 flex justify-center items-center border-r input-border"
|
|
50
|
+
}, e.$attrs, { "onUpdate:modelValue": s }), null, 16, ["modelValue", "options"]),
|
|
51
|
+
p(_, m({
|
|
52
|
+
modelValue: l.value,
|
|
53
|
+
"onUpdate:modelValue": n[1] || (n[1] = (u) => l.value = u),
|
|
54
|
+
"disable-style": !0,
|
|
55
|
+
class: "w-full input-bg-color input-text-color input-outline input-roundness input-padding"
|
|
56
|
+
}, e.$attrs, { "onUpdate:modelValue": s }), null, 16, ["modelValue"])
|
|
57
|
+
], 2);
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
export {
|
|
62
|
+
$ as _
|
|
63
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineComponent as m, inject as e, openBlock as u, createElementBlock as b, createElementVNode as o, unref as r, toDisplayString as v } from "vue";
|
|
2
|
+
const h = { class: "h-9 inline-flex items-center" }, f = ["value", "name", "disabled", "checked"];
|
|
3
|
+
let _ = 0;
|
|
4
|
+
const k = /* @__PURE__ */ m({
|
|
5
|
+
name: "TInputRadio",
|
|
6
|
+
__name: "InputRadio",
|
|
7
|
+
props: {
|
|
8
|
+
value: {},
|
|
9
|
+
label: {}
|
|
10
|
+
},
|
|
11
|
+
setup(t) {
|
|
12
|
+
const a = t, i = `radio_${++_}`, c = e("name", ""), l = e("model", ""), d = e("change", () => {
|
|
13
|
+
}), p = e("disabled", !1);
|
|
14
|
+
return (s, n) => (u(), b("div", h, [
|
|
15
|
+
o("input", {
|
|
16
|
+
value: a.value,
|
|
17
|
+
name: r(c),
|
|
18
|
+
id: i,
|
|
19
|
+
disabled: r(p),
|
|
20
|
+
checked: a.value === r(l),
|
|
21
|
+
type: "radio",
|
|
22
|
+
class: "form-radio relative w-5 h-5 border border-caipira-primary-inverted checked:hover:border-caipira-primary-inverted checked:focus:border-caipira-primary-inverted checked:border-caipira-primary-inverted input-outline focus:input-outline bg-caipira-primary color-caipira-primary cursor-pointer bg-[length:30px]",
|
|
23
|
+
onChange: n[0] || (n[0] = (y) => r(d)(a.value))
|
|
24
|
+
}, null, 40, f),
|
|
25
|
+
o("label", {
|
|
26
|
+
class: "cursor-pointer pl-2 mr-3 input-label",
|
|
27
|
+
for: i
|
|
28
|
+
}, v(s.label), 1)
|
|
29
|
+
]));
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
export {
|
|
33
|
+
k as _
|
|
34
|
+
};
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { defineComponent as se, ref as p, inject as ue, computed as R, onBeforeMount as re, onBeforeUnmount as ce, watch as A, resolveComponent as b, openBlock as u, createElementBlock as d, normalizeClass as k, unref as K, createElementVNode as I, withKeys as pe, renderSlot as g, normalizeProps as V, mergeProps as j, Fragment as _, renderList as M, guardReactiveProps as U, createBlock as N, toDisplayString as de, createCommentVNode as q, withDirectives as fe, vModelText as me, createVNode as P, withCtx as G, createSlots as ve, nextTick as ye } from "vue";
|
|
2
|
+
import { E as be, c as he } from "./ui-BLR-4Xlv.js";
|
|
3
|
+
import { u as we } from "./ui-MicIL_Lw.js";
|
|
4
|
+
const ke = { key: 1 }, ge = ["placeholder", "disabled", "readonly"], Ve = { class: "flex w-full justify-between items-center" }, _e = { class: "flex items-center" };
|
|
5
|
+
let Se = 0;
|
|
6
|
+
const Ee = /* @__PURE__ */ se({
|
|
7
|
+
name: "TInputSelect",
|
|
8
|
+
__name: "InputSelect",
|
|
9
|
+
props: {
|
|
10
|
+
size: { default: be.DEFAULT },
|
|
11
|
+
options: { default: () => [] },
|
|
12
|
+
mapper: { type: Function, default: (f) => ({ value: f.id ?? f.uuid, label: f }) },
|
|
13
|
+
filter: { type: Function, default: (f, S) => S.label.toLowerCase().indexOf(f.toLowerCase()) >= 0 },
|
|
14
|
+
tooltip: { default: "" },
|
|
15
|
+
disabled: { type: Boolean },
|
|
16
|
+
resource: {},
|
|
17
|
+
multiple: { type: Boolean, default: !1 },
|
|
18
|
+
identifier: { default: "id" },
|
|
19
|
+
modelValue: {},
|
|
20
|
+
placeholder: { default: "" },
|
|
21
|
+
initialValue: {},
|
|
22
|
+
disableStyle: { type: Boolean, default: !1 },
|
|
23
|
+
isSearchable: { type: Boolean, default: !1 },
|
|
24
|
+
dropdownPlacement: { default: he.BOTTOM }
|
|
25
|
+
},
|
|
26
|
+
emits: ["update:modelValue"],
|
|
27
|
+
setup(f, { emit: S }) {
|
|
28
|
+
const l = f;
|
|
29
|
+
let x = !1, h, T = "";
|
|
30
|
+
const H = `checkbox_${++Se}`, r = p(""), o = p([]), $ = p(null), L = ue("formStyle", { label: "", input: "" }), C = p(null), n = p(!1), D = p(null), a = p([]), c = p(null), J = S, B = R(() => a.value.length > 0), O = R(() => l.isSearchable && n.value), v = R(() => typeof l.resource == "function"), Q = (e) => !l.multiple || !l.modelValue || !Array.isArray(l.modelValue) ? !1 : l.modelValue.includes(e.option[l.identifier]), W = (e = l.modelValue) => !(e === void 0 || e === "" || Array.isArray(e) && e.length === 0), X = (e) => {
|
|
31
|
+
J("update:modelValue", e);
|
|
32
|
+
}, m = (e = l.modelValue) => {
|
|
33
|
+
if (W(e))
|
|
34
|
+
if (l.multiple)
|
|
35
|
+
Array.isArray(e) && (a.value = e.map(
|
|
36
|
+
(t) => E(t)
|
|
37
|
+
).filter((t) => t > -1));
|
|
38
|
+
else {
|
|
39
|
+
const t = E(e);
|
|
40
|
+
~t && (a.value = [t]);
|
|
41
|
+
}
|
|
42
|
+
}, z = (e) => {
|
|
43
|
+
n.value = !n.value, n.value && O.value && ye(() => {
|
|
44
|
+
$.value?.focus();
|
|
45
|
+
}), e.stopPropagation();
|
|
46
|
+
}, E = (e) => o.value.findIndex(
|
|
47
|
+
(t) => t.value === e
|
|
48
|
+
), F = (e) => {
|
|
49
|
+
C.value && we.wasClickOutsideOfContainer(e, C.value) && (n.value = !1);
|
|
50
|
+
}, w = async (e = !1) => {
|
|
51
|
+
if (!l.resource)
|
|
52
|
+
return;
|
|
53
|
+
const t = {
|
|
54
|
+
t: r.value,
|
|
55
|
+
r: "option"
|
|
56
|
+
};
|
|
57
|
+
e && c.value && c.value.pages > c.value.page ? t.page = c.value.page + 1 : e = !1, !r.value && l.modelValue && (t.i = l.modelValue);
|
|
58
|
+
const i = await l.resource(t);
|
|
59
|
+
e ? o.value.push(...i.items.map(l.mapper)) : o.value = i.items.map(l.mapper), c.value = i.pagination, !v.value && r.value && m(r.value);
|
|
60
|
+
}, Y = () => {
|
|
61
|
+
T !== r.value && (h && (clearTimeout(h), h = null), h = setTimeout(() => {
|
|
62
|
+
T = r.value, v.value ? (n.value || (n.value = !0), w()) : l.isSearchable && (o.value = l.options.filter(
|
|
63
|
+
(e) => l.filter(r.value, e)
|
|
64
|
+
));
|
|
65
|
+
}, 500));
|
|
66
|
+
}, Z = () => {
|
|
67
|
+
n.value = !1;
|
|
68
|
+
}, ee = (e) => {
|
|
69
|
+
n.value = !1, e.stopPropagation();
|
|
70
|
+
}, le = ({
|
|
71
|
+
index: e,
|
|
72
|
+
hold: t
|
|
73
|
+
}) => {
|
|
74
|
+
if (x = !0, l.multiple) {
|
|
75
|
+
const i = a.value.findIndex(
|
|
76
|
+
(y) => y === e
|
|
77
|
+
);
|
|
78
|
+
~i ? a.value.splice(i, 1) : a.value.push(e);
|
|
79
|
+
} else
|
|
80
|
+
a.value = [e];
|
|
81
|
+
(!l.multiple || !t) && (n.value = !1);
|
|
82
|
+
}, te = () => {
|
|
83
|
+
v.value && c.value && c.value.pages > c.value.page && w(!0);
|
|
84
|
+
}, ae = async (e) => {
|
|
85
|
+
switch (e.key) {
|
|
86
|
+
case "ArrowDown":
|
|
87
|
+
D.value?.move(e);
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
return re(async () => {
|
|
92
|
+
v.value ? (await w(), m()) : l.options.length > 0 && (o.value = l.options), !l.modelValue && l.initialValue ? m(l.initialValue) : m(l.modelValue), document.addEventListener("click", F);
|
|
93
|
+
}), ce(() => {
|
|
94
|
+
document.removeEventListener("click", F);
|
|
95
|
+
}), A(
|
|
96
|
+
() => l.modelValue,
|
|
97
|
+
async (e) => {
|
|
98
|
+
e && (E(e) < 0 && v.value && await w(), m(e));
|
|
99
|
+
}
|
|
100
|
+
), A(
|
|
101
|
+
a,
|
|
102
|
+
(e) => {
|
|
103
|
+
const t = l.multiple ? o.value.filter(
|
|
104
|
+
(i, y) => a.value.includes(y)
|
|
105
|
+
).map((i) => i.value) : o.value[a.value[0]].value;
|
|
106
|
+
x && (x = !1, X(t));
|
|
107
|
+
},
|
|
108
|
+
{ deep: !0 }
|
|
109
|
+
), A(
|
|
110
|
+
() => l.options,
|
|
111
|
+
(e) => {
|
|
112
|
+
e.length > 0 && (o.value = e, l.modelValue && a.value.length === 0 && m(l.modelValue));
|
|
113
|
+
}
|
|
114
|
+
), (e, t) => {
|
|
115
|
+
const i = b("t-tag"), y = b("t-icon-button"), oe = b("t-icon"), ne = b("t-dropdown"), ie = b("t-popover");
|
|
116
|
+
return u(), d("div", {
|
|
117
|
+
class: k({ [K(L).input]: !l.disableStyle })
|
|
118
|
+
}, [
|
|
119
|
+
I("div", {
|
|
120
|
+
ref_key: "wrapperRef",
|
|
121
|
+
ref: C,
|
|
122
|
+
class: k([{
|
|
123
|
+
"h-9": !l.disableStyle && !l.multiple,
|
|
124
|
+
"min-h-9": !l.disableStyle && l.multiple,
|
|
125
|
+
"text-left select-none input-bg-color input-text-color border input-border input-roundness": !l.disableStyle,
|
|
126
|
+
[K(L).input]: !l.disableStyle
|
|
127
|
+
}, "inline-flex justify-between items-center w-full text-left"]),
|
|
128
|
+
role: "button",
|
|
129
|
+
onClick: z,
|
|
130
|
+
onBlur: Z,
|
|
131
|
+
onKeyup: pe(ee, ["esc"])
|
|
132
|
+
}, [
|
|
133
|
+
O.value ? fe((u(), d("input", {
|
|
134
|
+
key: 1,
|
|
135
|
+
"onUpdate:modelValue": t[0] || (t[0] = (s) => r.value = s),
|
|
136
|
+
type: "text",
|
|
137
|
+
ref_key: "inputRef",
|
|
138
|
+
ref: $,
|
|
139
|
+
placeholder: l.placeholder,
|
|
140
|
+
disabled: l.disabled,
|
|
141
|
+
readonly: !l.isSearchable,
|
|
142
|
+
class: k([{ "cursor-pointer": !l.isSearchable }, "w-full h-9 bg-transparent input-padding input-roundness input-outline"]),
|
|
143
|
+
onClick: t[1] || (t[1] = (s) => s.stopPropagation()),
|
|
144
|
+
onInput: Y,
|
|
145
|
+
onKeydown: ae
|
|
146
|
+
}, null, 42, ge)), [
|
|
147
|
+
[me, r.value]
|
|
148
|
+
]) : (u(), d("div", {
|
|
149
|
+
key: 0,
|
|
150
|
+
class: k(["flex items-center ml-2", {
|
|
151
|
+
"overflow-hidden whitespace-nowrap": !l.multiple,
|
|
152
|
+
"flex-wrap": l.multiple
|
|
153
|
+
}])
|
|
154
|
+
}, [
|
|
155
|
+
e.$slots.selection && B.value ? g(e.$slots, "selection", V(j({ key: 0 }, o.value[a.value[0]].label))) : e.$slots.default && B.value ? (u(), d(_, { key: 1 }, [
|
|
156
|
+
l.multiple ? (u(!0), d(_, { key: 0 }, M(a.value, (s) => g(e.$slots, "default", V(U(o.value[s].label)))), 256)) : g(e.$slots, "default", V(j({ key: 1 }, o.value[a.value[0]].label)))
|
|
157
|
+
], 64)) : B.value ? (u(), d(_, { key: 2 }, [
|
|
158
|
+
l.multiple ? (u(!0), d(_, { key: 0 }, M(a.value, (s) => (u(), N(i, {
|
|
159
|
+
key: s,
|
|
160
|
+
text: o.value[s].label,
|
|
161
|
+
color: "#6e6e6e"
|
|
162
|
+
}, null, 8, ["text"]))), 128)) : (u(), d("span", ke, de(o.value[a.value[0]]?.label), 1))
|
|
163
|
+
], 64)) : q("", !0)
|
|
164
|
+
], 2)),
|
|
165
|
+
P(y, {
|
|
166
|
+
"disable-style": !0,
|
|
167
|
+
class: "h-9",
|
|
168
|
+
icon: n.value === !0 ? "chevron-up" : "chevron-down",
|
|
169
|
+
onClick: z
|
|
170
|
+
}, null, 8, ["icon"])
|
|
171
|
+
], 34),
|
|
172
|
+
P(ie, {
|
|
173
|
+
placement: l.dropdownPlacement,
|
|
174
|
+
"is-visible": n.value
|
|
175
|
+
}, {
|
|
176
|
+
content: G(() => [
|
|
177
|
+
P(ne, {
|
|
178
|
+
ref_key: "dropdownRef",
|
|
179
|
+
ref: D,
|
|
180
|
+
owner: H,
|
|
181
|
+
items: o.value,
|
|
182
|
+
"is-visible": n.value,
|
|
183
|
+
multiple: l.multiple,
|
|
184
|
+
class: "fixed",
|
|
185
|
+
"aria-describedby": "tooltip",
|
|
186
|
+
onChange: le,
|
|
187
|
+
onEndReached: te
|
|
188
|
+
}, ve({ _: 2 }, [
|
|
189
|
+
e.$slots.default ? {
|
|
190
|
+
name: "default",
|
|
191
|
+
fn: G((s) => [
|
|
192
|
+
I("div", Ve, [
|
|
193
|
+
I("div", _e, [
|
|
194
|
+
g(e.$slots, "default", V(U(s.label)))
|
|
195
|
+
]),
|
|
196
|
+
Q(s) ? (u(), N(oe, {
|
|
197
|
+
key: 0,
|
|
198
|
+
icon: "check",
|
|
199
|
+
size: "sm",
|
|
200
|
+
class: "float-right ml-2"
|
|
201
|
+
})) : q("", !0)
|
|
202
|
+
])
|
|
203
|
+
]),
|
|
204
|
+
key: "0"
|
|
205
|
+
} : void 0
|
|
206
|
+
]), 1032, ["items", "is-visible", "multiple"])
|
|
207
|
+
]),
|
|
208
|
+
_: 3
|
|
209
|
+
}, 8, ["placement", "is-visible"])
|
|
210
|
+
], 2);
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
export {
|
|
215
|
+
Ee as _
|
|
216
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defineComponent as b, ref as v, watch as f, openBlock as i, createElementBlock as n, createElementVNode as t, normalizeClass as o, withDirectives as h, vModelCheckbox as y, toDisplayString as k, createCommentVNode as w } from "vue";
|
|
2
|
+
const V = ["disabled"];
|
|
3
|
+
let g = 0;
|
|
4
|
+
const B = /* @__PURE__ */ b({
|
|
5
|
+
name: "TInputSwitch",
|
|
6
|
+
__name: "InputSwitch",
|
|
7
|
+
props: {
|
|
8
|
+
label: { default: "" },
|
|
9
|
+
disabled: { type: Boolean, default: !1 },
|
|
10
|
+
modelValue: { type: Boolean }
|
|
11
|
+
},
|
|
12
|
+
emits: ["update:modelValue"],
|
|
13
|
+
setup(d, { emit: u }) {
|
|
14
|
+
const s = d, c = u, a = `switch_${++g}`, e = v(!1), p = () => {
|
|
15
|
+
const l = !e.value;
|
|
16
|
+
c("update:modelValue", l);
|
|
17
|
+
};
|
|
18
|
+
return f(
|
|
19
|
+
() => s.modelValue,
|
|
20
|
+
(l) => {
|
|
21
|
+
e.value = !!l;
|
|
22
|
+
},
|
|
23
|
+
{ immediate: !0 }
|
|
24
|
+
), (l, r) => (i(), n("div", null, [
|
|
25
|
+
t("div", {
|
|
26
|
+
class: o(["relative inline-block w-12 mr-2 align-middle select-none", {
|
|
27
|
+
"rounded-full": !e.value
|
|
28
|
+
}])
|
|
29
|
+
}, [
|
|
30
|
+
h(t("input", {
|
|
31
|
+
"onUpdate:modelValue": r[0] || (r[0] = (m) => e.value = m),
|
|
32
|
+
type: "checkbox",
|
|
33
|
+
class: o(["absolute block w-6 h-6 rounded-full appearance-none cursor-pointer bg-caipira-primary border input-outline", {
|
|
34
|
+
"right-0 border-caipira-primary-inverted": e.value,
|
|
35
|
+
"border-caipira-tertiary": !e.value
|
|
36
|
+
}]),
|
|
37
|
+
name: a,
|
|
38
|
+
id: a,
|
|
39
|
+
disabled: l.disabled,
|
|
40
|
+
onInput: p
|
|
41
|
+
}, null, 42, V), [
|
|
42
|
+
[y, e.value]
|
|
43
|
+
]),
|
|
44
|
+
t("label", {
|
|
45
|
+
for: a,
|
|
46
|
+
class: o([{
|
|
47
|
+
"bg-caipira-primary-inverted": e.value,
|
|
48
|
+
"bg-caipira-tertiary": !e.value
|
|
49
|
+
}, "block overflow-hidden h-6 rounded-full cursor-pointer"])
|
|
50
|
+
}, null, 2)
|
|
51
|
+
], 2),
|
|
52
|
+
l.label ? (i(), n("label", {
|
|
53
|
+
key: 0,
|
|
54
|
+
class: "text-base cursor-pointer",
|
|
55
|
+
for: a
|
|
56
|
+
}, k(l.label), 1)) : w("", !0)
|
|
57
|
+
]));
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
export {
|
|
61
|
+
B as _
|
|
62
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineComponent as f, inject as l, computed as v, withDirectives as y, openBlock as b, createElementBlock as h, mergeProps as _, unref as t, vModelDynamic as x } from "vue";
|
|
2
|
+
const S = ["type", "id", "placeholder", "autocomplete", "disabled"], B = /* @__PURE__ */ f({
|
|
3
|
+
name: "TInputText",
|
|
4
|
+
__name: "InputText",
|
|
5
|
+
props: {
|
|
6
|
+
modelValue: { default: "" },
|
|
7
|
+
type: { default: "text" },
|
|
8
|
+
placeholder: { default: void 0 },
|
|
9
|
+
autocomplete: { default: void 0 },
|
|
10
|
+
disabled: { type: Boolean, default: !1 },
|
|
11
|
+
disableStyle: { type: Boolean, default: !1 }
|
|
12
|
+
},
|
|
13
|
+
emits: ["update:model-value", "keyup.enter"],
|
|
14
|
+
setup(i, { emit: p }) {
|
|
15
|
+
const e = i, r = p, s = l("id", ""), d = l("invalid", !1), c = l("formStyle", { input: "w-full" }), a = l("validated", !1), n = v({
|
|
16
|
+
get: () => e.modelValue,
|
|
17
|
+
set: (o) => {
|
|
18
|
+
r("update:model-value", o);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
return (o, u) => y((b(), h("input", _({
|
|
22
|
+
"onUpdate:modelValue": u[0] || (u[0] = (m) => n.value = m),
|
|
23
|
+
type: e.type,
|
|
24
|
+
class: {
|
|
25
|
+
"h-9 input-bg-color input-text-color input-outline border input-border input-roundnes input-padding input-roundness": !e.disableStyle,
|
|
26
|
+
[t(c).input]: !e.disableStyle,
|
|
27
|
+
"border-red-500": !t(a) && t(d),
|
|
28
|
+
"border-emerald-500": t(a) && !t(d)
|
|
29
|
+
},
|
|
30
|
+
id: t(s),
|
|
31
|
+
placeholder: e.placeholder,
|
|
32
|
+
autocomplete: e.autocomplete,
|
|
33
|
+
disabled: e.disabled
|
|
34
|
+
}, o.$attrs), null, 16, S)), [
|
|
35
|
+
[x, n.value]
|
|
36
|
+
]);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
B as _
|
|
41
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineComponent as f, ref as r, inject as l, watch as b, openBlock as y, createElementBlock as h, normalizeClass as v, unref as t } from "vue";
|
|
2
|
+
const S = ["value", "type", "placeholder", "disabled"], V = /* @__PURE__ */ f({
|
|
3
|
+
name: "TInputTextarea",
|
|
4
|
+
__name: "InputTextarea",
|
|
5
|
+
props: {
|
|
6
|
+
type: { default: "text" },
|
|
7
|
+
disabled: { type: Boolean, default: !1 },
|
|
8
|
+
modelValue: {},
|
|
9
|
+
placeholder: { default: void 0 },
|
|
10
|
+
disableStyle: { type: Boolean, default: !1 }
|
|
11
|
+
},
|
|
12
|
+
emits: ["update:modelValue"],
|
|
13
|
+
setup(i, { emit: u }) {
|
|
14
|
+
const s = i, p = u, a = r(""), o = l("invalid", !1), c = l("formStyle", { input: "w-full" }), n = l("validated", !1);
|
|
15
|
+
r("");
|
|
16
|
+
const m = ({ target: e }) => {
|
|
17
|
+
const d = e.value;
|
|
18
|
+
p("update:modelValue", d);
|
|
19
|
+
};
|
|
20
|
+
return b(
|
|
21
|
+
() => s.modelValue,
|
|
22
|
+
(e) => {
|
|
23
|
+
e && (a.value = e);
|
|
24
|
+
},
|
|
25
|
+
{ immediate: !0 }
|
|
26
|
+
), (e, d) => (y(), h("textarea", {
|
|
27
|
+
value: a.value,
|
|
28
|
+
type: e.type,
|
|
29
|
+
class: v(["min-h-9 input-bg-color input-text-color input-outline border input-border input-roundnes input-padding input-roundness", {
|
|
30
|
+
"border rounded h-9": !e.disableStyle,
|
|
31
|
+
[t(c).input]: !e.disableStyle,
|
|
32
|
+
"border-red-500": !t(n) && t(o),
|
|
33
|
+
"border-emerald-500": t(n) && !t(o)
|
|
34
|
+
}]),
|
|
35
|
+
placeholder: e.placeholder,
|
|
36
|
+
disabled: e.disabled,
|
|
37
|
+
onInput: m
|
|
38
|
+
}, null, 42, S));
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
export {
|
|
42
|
+
V as _
|
|
43
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { defineComponent as r, openBlock as n, createBlock as t, unref as a, normalizeProps as p, guardReactiveProps as s } from "vue";
|
|
2
|
+
import { e as c } from "./index-CgLIzaY3.js";
|
|
3
|
+
const f = /* @__PURE__ */ r({
|
|
4
|
+
name: "TLineChart",
|
|
5
|
+
__name: "LineChart",
|
|
6
|
+
props: {
|
|
7
|
+
data: {},
|
|
8
|
+
options: {}
|
|
9
|
+
},
|
|
10
|
+
setup(e) {
|
|
11
|
+
const o = e;
|
|
12
|
+
return (i, m) => (n(), t(a(c), p(s(o)), null, 16));
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
f as _
|
|
17
|
+
};
|
package/dist/Modal.js
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { defineComponent as m, ref as y, onMounted as b, resolveComponent as _, openBlock as o, createElementBlock as l, normalizeClass as n, withKeys as h, createBlock as k, createCommentVNode as s, createElementVNode as a, toDisplayString as w, renderSlot as i, createVNode as v } from "vue";
|
|
2
|
+
import { _ as x } from "./Backdrop.vue_vue_type_script_setup_true_lang-OaEBTmYK.js";
|
|
3
|
+
const S = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "flex justify-between items-center p-4 border-b border-color"
|
|
6
|
+
}, B = { class: "" }, C = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "inline-block font-semibold uppercase mr-8"
|
|
9
|
+
}, j = {
|
|
10
|
+
key: 1,
|
|
11
|
+
class: "flex flex-row items-center justify-between p-4 border-t border-color"
|
|
12
|
+
}, M = /* @__PURE__ */ m({
|
|
13
|
+
name: "TModal",
|
|
14
|
+
__name: "Modal",
|
|
15
|
+
props: {
|
|
16
|
+
title: { default: "" },
|
|
17
|
+
showHeader: { type: Boolean, default: !0 },
|
|
18
|
+
injectStyle: { default: () => ({ wrapper: "", body: "", container: "" }) },
|
|
19
|
+
hasBackdrop: { type: Boolean, default: !0 },
|
|
20
|
+
disableStyle: { type: Boolean, default: !1 }
|
|
21
|
+
},
|
|
22
|
+
emits: ["closed"],
|
|
23
|
+
setup(d, { emit: u }) {
|
|
24
|
+
const e = d, c = y(null), p = u, r = (t) => {
|
|
25
|
+
t.stopPropagation(), p("closed");
|
|
26
|
+
};
|
|
27
|
+
return b(() => {
|
|
28
|
+
c.value?.focus();
|
|
29
|
+
}), (t, $) => {
|
|
30
|
+
const f = _("t-icon");
|
|
31
|
+
return o(), l("div", {
|
|
32
|
+
class: n(["fixed inset-0 focus-visible:outline-none z-10", {
|
|
33
|
+
"flex items-center": !e.disableStyle,
|
|
34
|
+
[e.injectStyle.wrapper]: !0
|
|
35
|
+
}]),
|
|
36
|
+
tabindex: "-1",
|
|
37
|
+
ref_key: "modal",
|
|
38
|
+
ref: c,
|
|
39
|
+
onKeyup: h(r, ["esc"])
|
|
40
|
+
}, [
|
|
41
|
+
e.hasBackdrop ? (o(), k(x, {
|
|
42
|
+
key: 0,
|
|
43
|
+
class: "z-10",
|
|
44
|
+
onClick: r
|
|
45
|
+
})) : s("", !0),
|
|
46
|
+
a("div", {
|
|
47
|
+
class: n(["z-10 w-full md:w-[36rem] mx-auto", {
|
|
48
|
+
"bg-caipira-primary input-roundness shadow-2xl": !e.disableStyle,
|
|
49
|
+
[e.injectStyle.container]: !0
|
|
50
|
+
}])
|
|
51
|
+
}, [
|
|
52
|
+
e.showHeader ? (o(), l("div", S, [
|
|
53
|
+
a("div", B, [
|
|
54
|
+
e.title ? (o(), l("span", C, w(e.title), 1)) : s("", !0),
|
|
55
|
+
t.$slots.header ? i(t.$slots, "header", { key: 1 }) : s("", !0)
|
|
56
|
+
]),
|
|
57
|
+
v(f, {
|
|
58
|
+
icon: "close",
|
|
59
|
+
role: "button",
|
|
60
|
+
class: "text-neutral-600",
|
|
61
|
+
onClick: r
|
|
62
|
+
})
|
|
63
|
+
])) : s("", !0),
|
|
64
|
+
a("div", {
|
|
65
|
+
class: n(["flex flex-col flex-1 overflow-y-auto scrollbar", {
|
|
66
|
+
[e.injectStyle.body]: !0
|
|
67
|
+
}]),
|
|
68
|
+
style: { "max-height": "80vh" }
|
|
69
|
+
}, [
|
|
70
|
+
i(t.$slots, "default")
|
|
71
|
+
], 2),
|
|
72
|
+
t.$slots.footer ? (o(), l("div", j, [
|
|
73
|
+
i(t.$slots, "footer")
|
|
74
|
+
])) : s("", !0)
|
|
75
|
+
], 2)
|
|
76
|
+
], 34);
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
export {
|
|
81
|
+
M as _
|
|
82
|
+
};
|