@caipira/tamandua 0.0.3 → 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/components.js +89 -0
- package/dist/composables.js +17 -0
- package/dist/crud-d9NUddtZ.js +61 -0
- package/dist/date.js +155 -0
- package/dist/enums.js +9 -0
- package/dist/form2.js +20 -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/index.css +297 -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/register-component-B-fdqewb.js +6 -0
- package/dist/tamandua.js +17 -15366
- package/dist/{components → types/components}/Avatar/Avatar.vue.d.ts +1 -1
- package/dist/types/components/Avatar/index.d.ts +4 -0
- package/dist/{components/Tag/index.d.ts → types/components/Avatar/plugin.d.ts} +0 -2
- package/dist/types/components/Backdrop/index.d.ts +4 -0
- package/dist/{components/Tab/index.d.ts → types/components/Backdrop/plugin.d.ts} +0 -2
- package/dist/{components → types/components}/Button/Button.story.d.ts +1 -1
- package/dist/{components → types/components}/Button/Button.vue.d.ts +1 -1
- package/dist/types/components/Button/index.d.ts +4 -0
- package/dist/{components/Form/index.d.ts → types/components/Button/plugin.d.ts} +0 -2
- package/dist/types/components/ButtonCopy/index.d.ts +4 -0
- package/dist/{components/Icon/index.d.ts → types/components/ButtonCopy/plugin.d.ts} +0 -2
- package/dist/types/components/Drawer/index.d.ts +4 -0
- package/dist/types/components/Drawer/plugin.d.ts +4 -0
- package/dist/{components → types/components}/Dropdown/Dropdown.vue.d.ts +4 -4
- package/dist/types/components/Dropdown/index.d.ts +4 -0
- package/dist/types/components/Dropdown/plugin.d.ts +4 -0
- package/dist/types/components/FileDrop/index.d.ts +4 -0
- package/dist/types/components/FileDrop/plugin.d.ts +4 -0
- package/dist/{components → types/components}/Form/Form.vue.d.ts +3 -3
- 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/index.d.ts +4 -0
- package/dist/types/components/FormItem/plugin.d.ts +4 -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/index.d.ts +4 -0
- package/dist/types/components/GraphyLabel/plugin.d.ts +4 -0
- package/dist/{components → types/components}/GraphyPrice/GraphyPrice.vue.d.ts +1 -1
- 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/index.d.ts +4 -0
- package/dist/types/components/GraphySubtitle/plugin.d.ts +4 -0
- package/dist/types/components/GraphyTitle/index.d.ts +4 -0
- package/dist/types/components/GraphyTitle/plugin.d.ts +4 -0
- package/dist/{components → types/components}/Icon/Icon.vue.d.ts +1 -1
- package/dist/types/components/Icon/index.d.ts +4 -0
- package/dist/types/components/Icon/plugin.d.ts +4 -0
- package/dist/{components → types/components}/IconButton/IconButton.vue.d.ts +1 -1
- 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/index.d.ts +4 -0
- package/dist/types/components/InputAvatar/plugin.d.ts +4 -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/index.d.ts +4 -0
- package/dist/types/components/InputColor/plugin.d.ts +4 -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/plugin.d.ts +4 -0
- package/dist/{components → types/components}/InputPassword/InputPassword.vue.d.ts +1 -1
- 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/index.d.ts +4 -0
- package/dist/types/components/InputPhone/plugin.d.ts +4 -0
- package/dist/{components → types/components}/InputPrice/InputPrice.vue.d.ts +1 -1
- 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/index.d.ts +4 -0
- package/dist/types/components/InputRadio/plugin.d.ts +4 -0
- package/dist/{components → types/components}/InputSelect/InputSelect.vue.d.ts +4 -4
- 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/index.d.ts +4 -0
- package/dist/types/components/InputSwitch/plugin.d.ts +4 -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/index.d.ts +4 -0
- package/dist/types/components/InputTextarea/plugin.d.ts +4 -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/index.d.ts +4 -0
- package/dist/types/components/Modal/plugin.d.ts +4 -0
- package/dist/{components → types/components}/ModalForm/ModalForm.vue.d.ts +1 -1
- package/dist/types/components/ModalForm/index.d.ts +4 -0
- package/dist/types/components/ModalForm/plugin.d.ts +4 -0
- package/dist/{components → types/components}/Pagination/Pagination.vue.d.ts +1 -1
- 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/index.d.ts +4 -0
- package/dist/types/components/PieChart/plugin.d.ts +4 -0
- package/dist/{components → types/components}/Popconfirm/Popconfirm.vue.d.ts +1 -1
- package/dist/types/components/Popconfirm/index.d.ts +4 -0
- package/dist/types/components/Popconfirm/plugin.d.ts +4 -0
- package/dist/{components → types/components}/Popover/Popover.vue.d.ts +2 -2
- 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/index.d.ts +4 -0
- package/dist/types/components/ProgressCircle/plugin.d.ts +4 -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/index.d.ts +4 -0
- package/dist/types/components/SensitiveInfo/plugin.d.ts +4 -0
- package/dist/{components → types/components}/Tab/Tab.vue.d.ts +1 -1
- package/dist/types/components/Tab/index.d.ts +4 -0
- package/dist/types/components/Tab/plugin.d.ts +4 -0
- package/dist/{components → types/components}/Table/Table.vue.d.ts +3 -3
- package/dist/types/components/Table/index.d.ts +4 -0
- package/dist/types/components/Table/plugin.d.ts +4 -0
- package/dist/{components → types/components}/Table/types.d.ts +1 -1
- package/dist/{components → types/components}/Tag/Tag.vue.d.ts +2 -2
- package/dist/types/components/Tag/index.d.ts +4 -0
- package/dist/types/components/Tag/plugin.d.ts +4 -0
- package/dist/{components → types/components}/Tag/types.d.ts +1 -1
- package/dist/{components → types/components}/Toast/Toast.vue.d.ts +1 -1
- 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/useRender.d.ts +3 -0
- package/dist/{enums → types/enums}/form.d.ts +1 -1
- package/dist/types/enums/index.d.ts +4 -0
- package/dist/{enums → types/enums}/ui.d.ts +8 -8
- package/dist/{form → types/form}/crud.d.ts +1 -1
- package/dist/{form → types/form}/form-data-transformers.d.ts +2 -2
- package/dist/{form → types/form}/form-transformer.d.ts +2 -2
- package/dist/{form → types/form}/form-value-transformers.d.ts +2 -2
- package/dist/types/form/index.d.ts +4 -0
- package/dist/{form → types/form}/json-transformers.d.ts +2 -2
- package/dist/types/index.d.ts +4 -5
- package/dist/types/services/date.d.ts +3 -0
- package/dist/types/{form.d.ts → types/form.d.ts} +6 -6
- package/dist/types/types/index.d.ts +5 -0
- package/dist/types/{ui.d.ts → types/ui.d.ts} +1 -1
- package/dist/ui-BLR-4Xlv.js +11 -0
- package/dist/ui-MicIL_Lw.js +23 -0
- package/dist/useRender-D8PeooXE.js +16 -0
- package/package.json +39 -15
- package/volar.d.ts +48 -0
- package/dist/components/Avatar/index.d.ts +0 -6
- package/dist/components/Backdrop/index.d.ts +0 -6
- package/dist/components/Button/index.d.ts +0 -6
- package/dist/components/ButtonCopy/index.d.ts +0 -6
- package/dist/components/Drawer/index.d.ts +0 -6
- package/dist/components/Dropdown/index.d.ts +0 -6
- package/dist/components/FileDrop/index.d.ts +0 -6
- package/dist/components/FormItem/index.d.ts +0 -6
- package/dist/components/GraphyEmpty/index.d.ts +0 -6
- package/dist/components/GraphyLabel/index.d.ts +0 -6
- package/dist/components/GraphyPrice/index.d.ts +0 -6
- package/dist/components/GraphySubtitle/index.d.ts +0 -6
- package/dist/components/GraphyTitle/index.d.ts +0 -6
- package/dist/components/IconButton/index.d.ts +0 -6
- package/dist/components/InputAvatar/index.d.ts +0 -6
- package/dist/components/InputCheckbox/index.d.ts +0 -6
- package/dist/components/InputColor/index.d.ts +0 -6
- package/dist/components/InputDate/index.d.ts +0 -6
- package/dist/components/InputMultiplier/InputMultiplier.vue.d.ts +0 -41
- package/dist/components/InputMultiplier/index.d.ts +0 -6
- package/dist/components/InputPassword/index.d.ts +0 -6
- package/dist/components/InputPhone/index.d.ts +0 -6
- package/dist/components/InputPrice/index.d.ts +0 -6
- package/dist/components/InputRadio/index.d.ts +0 -7
- package/dist/components/InputSelect/index.d.ts +0 -6
- package/dist/components/InputSwitch/index.d.ts +0 -6
- package/dist/components/InputText/index.d.ts +0 -6
- package/dist/components/InputTextarea/index.d.ts +0 -6
- package/dist/components/LineChart/index.d.ts +0 -6
- package/dist/components/Modal/index.d.ts +0 -6
- package/dist/components/ModalForm/index.d.ts +0 -6
- package/dist/components/Pagination/index.d.ts +0 -6
- package/dist/components/PieChart/index.d.ts +0 -6
- package/dist/components/Popconfirm/index.d.ts +0 -6
- package/dist/components/Popover/index.d.ts +0 -6
- package/dist/components/ProgressCircle/index.d.ts +0 -6
- package/dist/components/ProgressLine/index.d.ts +0 -6
- package/dist/components/SensitiveInfo/index.d.ts +0 -6
- package/dist/components/Table/index.d.ts +0 -6
- package/dist/components/Toast/index.d.ts +0 -6
- package/dist/components/index.d.ts +0 -43
- package/dist/components/plugins.d.ts +0 -45
- package/dist/composables/index.d.ts +0 -2
- package/dist/composables/useRender.d.ts +0 -3
- package/dist/enums/app.d.ts +0 -5
- package/dist/enums/index.d.ts +0 -3
- package/dist/index.d.ts +0 -5
- package/dist/services/date.d.ts +0 -16
- package/dist/style.css +0 -1
- package/dist/vite.config.d.mts +0 -2
- /package/dist/{components → types/components}/Avatar/Avatar.story.d.ts +0 -0
- /package/dist/{components → types/components}/Backdrop/Backdrop.vue.d.ts +0 -0
- /package/dist/{components → types/components}/ButtonCopy/ButtonCopy.vue.d.ts +0 -0
- /package/dist/{components → types/components}/Drawer/Drawer.vue.d.ts +0 -0
- /package/dist/{components → types/components}/EventListener/EventListener.vue.d.ts +0 -0
- /package/dist/{components → types/components}/FileDrop/FileDrop.vue.d.ts +0 -0
- /package/dist/{components → types/components}/Form/Form.spec.d.ts +0 -0
- /package/dist/{components → types/components}/FormItem/FormItem.vue.d.ts +0 -0
- /package/dist/{components → types/components}/GraphyEmpty/GraphyEmpty.vue.d.ts +0 -0
- /package/dist/{components → types/components}/GraphyLabel/GraphyLabel.vue.d.ts +0 -0
- /package/dist/{components → types/components}/GraphyPrice/GraphyPrice.story.d.ts +0 -0
- /package/dist/{components → types/components}/GraphySubtitle/GraphySubtitle.vue.d.ts +0 -0
- /package/dist/{components → types/components}/GraphyTitle/GraphyTitle.vue.d.ts +0 -0
- /package/dist/{components → types/components}/InputAvatar/InputAvatar.vue.d.ts +0 -0
- /package/dist/{components → types/components}/InputCheckbox/InputCheckbox.vue.d.ts +0 -0
- /package/dist/{components → types/components}/InputColor/InputColor.vue.d.ts +0 -0
- /package/dist/{components → types/components}/InputDate/InputDate.story.d.ts +0 -0
- /package/dist/{components → types/components}/InputDate/InputDate.vue.d.ts +0 -0
- /package/dist/{components → types/components}/InputMultiplier/input-multiplier.story.d.ts +0 -0
- /package/dist/{components → types/components}/InputMultiplier/types.d.ts +0 -0
- /package/dist/{components → types/components}/InputPhone/InputPhone.vue.d.ts +0 -0
- /package/dist/{components → types/components}/InputRadio/InputRadio.vue.d.ts +0 -0
- /package/dist/{components → types/components}/InputRadio/InputRadioGroup.story.d.ts +0 -0
- /package/dist/{components → types/components}/InputRadio/InputRadioGroup.vue.d.ts +0 -0
- /package/dist/{components → types/components}/InputSelect/InputSelect.story.d.ts +0 -0
- /package/dist/{components → types/components}/InputSwitch/InputSwitch.story.d.ts +0 -0
- /package/dist/{components → types/components}/InputSwitch/InputSwitch.vue.d.ts +0 -0
- /package/dist/{components → types/components}/InputText/InputText.vue.d.ts +0 -0
- /package/dist/{components → types/components}/InputTextarea/InputTextarea.vue.d.ts +0 -0
- /package/dist/{components → types/components}/LineChart/LineChart.vue.d.ts +0 -0
- /package/dist/{components → types/components}/Modal/Modal.vue.d.ts +0 -0
- /package/dist/{components → types/components}/Pagination/Pagination.story.d.ts +0 -0
- /package/dist/{components → types/components}/PieChart/PieChart.vue.d.ts +0 -0
- /package/dist/{components → types/components}/ProgressCircle/ProgressCircle.story.d.ts +0 -0
- /package/dist/{components → types/components}/ProgressCircle/ProgressCircle.vue.d.ts +0 -0
- /package/dist/{components → types/components}/ProgressLine/ProgressLine.story.d.ts +0 -0
- /package/dist/{components → types/components}/ProgressLine/ProgressLine.vue.d.ts +0 -0
- /package/dist/{components → types/components}/SensitiveInfo/SensitiveInfo.vue.d.ts +0 -0
- /package/dist/{components → types/components}/Table/Table.story.d.ts +0 -0
- /package/dist/{composables → types/composables}/useBreakpoints.d.ts +0 -0
- /package/dist/{form → types/form}/convertors.d.ts +0 -0
- /package/dist/{form → types/form}/form.test.d.ts +0 -0
- /package/dist/{i18n.d.ts → types/i18n.d.ts} +0 -0
- /package/dist/{plugins → types/plugins}/register-component.d.ts +0 -0
- /package/dist/{services → types/services}/clipboard.d.ts +0 -0
- /package/dist/{services → types/services}/password.d.ts +0 -0
- /package/dist/{services → types/services}/ui.d.ts +0 -0
- /package/dist/types/{address.d.ts → types/address.d.ts} +0 -0
- /package/dist/types/{api.d.ts → types/api.d.ts} +0 -0
- /package/dist/types/{common.d.ts → types/common.d.ts} +0 -0
- /package/dist/types/{website.d.ts → types/website.d.ts} +0 -0
- /package/dist/{vitest.setup.d.ts → types/vitest.setup.d.ts} +0 -0
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { defineComponent as A, reactive as P, ref as _, watch as T, provide as N, resolveComponent as O, openBlock as E, createElementBlock as j, renderSlot as J, createElementVNode as R, normalizeClass as W, withDirectives as B, createVNode as M, mergeProps as z, vShow as K } from "vue";
|
|
2
|
+
import { b as L } from "./ui-BLR-4Xlv.js";
|
|
3
|
+
import { a, b as p } from "./index-DBecmJ_I.js";
|
|
4
|
+
import { f as I } from "./index-CjvqeRf7.js";
|
|
5
|
+
const y = (t) => t ? I(t, "yyyy-MM-dd") : "", V = (t) => [`${t?.iso}`, `${t?.value}`], b = (t) => t?.iso2 ?? "", w = async (t) => t?.encrypted ?? t?.value ?? "", i = {
|
|
6
|
+
default: (t, r, e) => (r[e] = t, r),
|
|
7
|
+
price: (t, r, e, n = ["Currency", "Value"]) => {
|
|
8
|
+
const [c, s] = V(t);
|
|
9
|
+
return r[`${e}${n[0]}`] = c, r[`${e}${n[1]}`] = s, r;
|
|
10
|
+
},
|
|
11
|
+
password: async (t, r, e) => (r[e] = await w(t), r),
|
|
12
|
+
stringArray: (t, r, e) => (r[e] = t, r)
|
|
13
|
+
}, Y = async (t, r, e, n) => {
|
|
14
|
+
switch (t) {
|
|
15
|
+
case a.Country:
|
|
16
|
+
return i.default(
|
|
17
|
+
b(e),
|
|
18
|
+
r,
|
|
19
|
+
n
|
|
20
|
+
);
|
|
21
|
+
case a.Documents:
|
|
22
|
+
return i.default(e, r, n);
|
|
23
|
+
case a.Date:
|
|
24
|
+
return i.default(
|
|
25
|
+
y(e),
|
|
26
|
+
r,
|
|
27
|
+
n
|
|
28
|
+
);
|
|
29
|
+
case a.Address:
|
|
30
|
+
return i.default(e, r, n);
|
|
31
|
+
case a.Price:
|
|
32
|
+
return i.price(e, r, n);
|
|
33
|
+
case a.Password:
|
|
34
|
+
return await i.password(e, r, n);
|
|
35
|
+
case a.StringArray:
|
|
36
|
+
return i.stringArray(e, r, n);
|
|
37
|
+
default:
|
|
38
|
+
return i.default(e, r, n);
|
|
39
|
+
}
|
|
40
|
+
}, m = (t) => (t == null ? t = "" : typeof t == "object" ? t = JSON.stringify(t) : typeof t == "number" ? t = t.toString() : typeof t == "boolean" && (t = t ? "1" : "0"), t), u = {
|
|
41
|
+
default: (t, r, e) => (t = m(t), t && r.append(e, t), r),
|
|
42
|
+
price: (t, r, e, n = ["Currency", "Value"]) => {
|
|
43
|
+
const [c, s] = V(t);
|
|
44
|
+
return r.append(`${e}${n[0]}`, m(c)), r.append(`${e}${n[1]}`, m(s)), r;
|
|
45
|
+
},
|
|
46
|
+
address: (t, r, e) => (r.append(
|
|
47
|
+
e,
|
|
48
|
+
JSON.stringify({
|
|
49
|
+
...t,
|
|
50
|
+
country: b(t?.country)
|
|
51
|
+
})
|
|
52
|
+
), r),
|
|
53
|
+
documents: (t, r, e) => (e.endsWith("[]") || (e = `${e}[]`), Array.from(t).forEach((n) => r.append(e, n)), r),
|
|
54
|
+
document: (t, r, e) => (r.append(e, t), r),
|
|
55
|
+
stringArray: (t, r, e) => (e.endsWith("[]") || (e = `${e}[]`), t.forEach((n) => r.append(e, m(n))), r)
|
|
56
|
+
}, q = async (t, r, e, n) => {
|
|
57
|
+
switch (t) {
|
|
58
|
+
case a.Country:
|
|
59
|
+
return u.default(
|
|
60
|
+
b(e),
|
|
61
|
+
r,
|
|
62
|
+
n
|
|
63
|
+
);
|
|
64
|
+
case a.Document:
|
|
65
|
+
return u.document(e, r, n);
|
|
66
|
+
case a.Documents:
|
|
67
|
+
return u.documents(e, r, n);
|
|
68
|
+
case a.Date:
|
|
69
|
+
return u.default(
|
|
70
|
+
y(e),
|
|
71
|
+
r,
|
|
72
|
+
n
|
|
73
|
+
);
|
|
74
|
+
case a.Address:
|
|
75
|
+
return u.address(e, r, n);
|
|
76
|
+
case a.Price:
|
|
77
|
+
return u.price(e, r, n);
|
|
78
|
+
case a.Password:
|
|
79
|
+
return u.default(
|
|
80
|
+
await w(e),
|
|
81
|
+
r,
|
|
82
|
+
n
|
|
83
|
+
);
|
|
84
|
+
case a.StringArray:
|
|
85
|
+
return u.stringArray(e, r, n);
|
|
86
|
+
default:
|
|
87
|
+
return u.default(e, r, n);
|
|
88
|
+
}
|
|
89
|
+
}, x = async (t, r, e) => {
|
|
90
|
+
switch (e) {
|
|
91
|
+
case p.JSON:
|
|
92
|
+
let n = {};
|
|
93
|
+
for (const s in t)
|
|
94
|
+
n = await Y(
|
|
95
|
+
r[s],
|
|
96
|
+
n,
|
|
97
|
+
t[s],
|
|
98
|
+
s
|
|
99
|
+
);
|
|
100
|
+
return n;
|
|
101
|
+
case p.FormData:
|
|
102
|
+
default:
|
|
103
|
+
let c = new FormData();
|
|
104
|
+
for (const s in t)
|
|
105
|
+
c = await q(
|
|
106
|
+
r[s],
|
|
107
|
+
c,
|
|
108
|
+
t[s],
|
|
109
|
+
s
|
|
110
|
+
);
|
|
111
|
+
return c;
|
|
112
|
+
}
|
|
113
|
+
}, X = /* @__PURE__ */ A({
|
|
114
|
+
name: "TForm",
|
|
115
|
+
__name: "Form",
|
|
116
|
+
props: {
|
|
117
|
+
id: { default: "" },
|
|
118
|
+
idKey: { default: "id" },
|
|
119
|
+
schema: { default: () => ({}) },
|
|
120
|
+
formStyle: { default: () => ({}) },
|
|
121
|
+
showSubmit: { type: Boolean, default: !1 },
|
|
122
|
+
submitLabel: { default: "Submit" },
|
|
123
|
+
buttonProps: {},
|
|
124
|
+
buttonVariant: { default: L.PRIMARY },
|
|
125
|
+
submissionFormat: { default: p.FormData },
|
|
126
|
+
buttonWrapperClasses: { default: "" }
|
|
127
|
+
},
|
|
128
|
+
emits: ["submit", "change"],
|
|
129
|
+
setup(t, { expose: r, emit: e }) {
|
|
130
|
+
const n = t, c = e, s = P({}), S = _(null), l = async () => {
|
|
131
|
+
c("submit", await h());
|
|
132
|
+
}, h = async () => {
|
|
133
|
+
const o = { ...s };
|
|
134
|
+
return n.id && (o[n.idKey] = n.id), {
|
|
135
|
+
isValid: !0,
|
|
136
|
+
form: await x(
|
|
137
|
+
o,
|
|
138
|
+
n.schema,
|
|
139
|
+
n.submissionFormat
|
|
140
|
+
)
|
|
141
|
+
};
|
|
142
|
+
}, F = () => {
|
|
143
|
+
Object.assign(s, {});
|
|
144
|
+
}, g = (o) => {
|
|
145
|
+
for (const [d, f] of Object.entries(o))
|
|
146
|
+
s[d] = f;
|
|
147
|
+
}, $ = () => s, D = (o, d) => {
|
|
148
|
+
s[o] = d;
|
|
149
|
+
}, C = (o) => s[o];
|
|
150
|
+
return T(s, (o) => {
|
|
151
|
+
c("change", o);
|
|
152
|
+
}), N("formStyle", n.formStyle), r({
|
|
153
|
+
submit: l,
|
|
154
|
+
reset: F,
|
|
155
|
+
setValues: g,
|
|
156
|
+
getValues: $,
|
|
157
|
+
setValue: D,
|
|
158
|
+
getValue: C
|
|
159
|
+
}), (o, d) => {
|
|
160
|
+
const f = O("t-button");
|
|
161
|
+
return E(), j("form", {
|
|
162
|
+
onSubmit: l,
|
|
163
|
+
ref_key: "formReference",
|
|
164
|
+
ref: S
|
|
165
|
+
}, [
|
|
166
|
+
J(o.$slots, "default", { form: s }),
|
|
167
|
+
R("div", {
|
|
168
|
+
class: W([n.buttonWrapperClasses])
|
|
169
|
+
}, [
|
|
170
|
+
B(M(f, z(n.buttonProps, {
|
|
171
|
+
type: "submit",
|
|
172
|
+
class: "mt-4",
|
|
173
|
+
variant: n.buttonVariant,
|
|
174
|
+
label: n.submitLabel,
|
|
175
|
+
onClick: l
|
|
176
|
+
}), null, 16, ["variant", "label"]), [
|
|
177
|
+
[K, n.showSubmit]
|
|
178
|
+
])
|
|
179
|
+
], 2)
|
|
180
|
+
], 544);
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
export {
|
|
185
|
+
X as _
|
|
186
|
+
};
|
package/dist/FormItem.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { defineComponent as h, useSlots as k, computed as v, provide as g, resolveComponent as C, openBlock as o, createElementBlock as a, createElementVNode as d, normalizeClass as n, unref as f, createBlock as p, withCtx as _, renderSlot as c, createCommentVNode as u, Fragment as B, renderList as $, toDisplayString as F } from "vue";
|
|
2
|
+
const I = { class: "w-full" }, S = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "float-right"
|
|
5
|
+
};
|
|
6
|
+
let w = 0;
|
|
7
|
+
const V = /* @__PURE__ */ h({
|
|
8
|
+
name: "TFormItem",
|
|
9
|
+
__name: "FormItem",
|
|
10
|
+
props: {
|
|
11
|
+
label: {},
|
|
12
|
+
rules: {},
|
|
13
|
+
inline: { type: Boolean, default: !0 }
|
|
14
|
+
},
|
|
15
|
+
setup(b) {
|
|
16
|
+
const t = b, r = `formitem_${++w}`, l = k(), i = [], s = v(() => {
|
|
17
|
+
if (!l || !l.default)
|
|
18
|
+
return !1;
|
|
19
|
+
const e = l?.default();
|
|
20
|
+
return e ? (e[0].type?.props?.key?.default ?? "") === "checkbox" : !1;
|
|
21
|
+
});
|
|
22
|
+
return g("id", r), (e, E) => {
|
|
23
|
+
const m = C("t-graphy-label");
|
|
24
|
+
return o(), a("div", I, [
|
|
25
|
+
d("div", {
|
|
26
|
+
class: n(["flex items-start my-3", { "flex-col": !t.inline }])
|
|
27
|
+
}, [
|
|
28
|
+
!s.value && (t.label || f(l).label) ? (o(), p(m, {
|
|
29
|
+
key: 0,
|
|
30
|
+
text: t.label,
|
|
31
|
+
for: r,
|
|
32
|
+
class: n([{
|
|
33
|
+
"cursor-pointer": s.value
|
|
34
|
+
}, "text-right"])
|
|
35
|
+
}, {
|
|
36
|
+
default: _(() => [
|
|
37
|
+
c(e.$slots, "label")
|
|
38
|
+
]),
|
|
39
|
+
_: 3
|
|
40
|
+
}, 8, ["text", "class"])) : u("", !0),
|
|
41
|
+
c(e.$slots, "default"),
|
|
42
|
+
s.value && (t.label || f(l).label) ? (o(), p(m, {
|
|
43
|
+
key: 1,
|
|
44
|
+
"invert-controls": !0,
|
|
45
|
+
text: t.label,
|
|
46
|
+
for: r,
|
|
47
|
+
class: n([{
|
|
48
|
+
"cursor-pointer": s.value
|
|
49
|
+
}, "text-left"])
|
|
50
|
+
}, {
|
|
51
|
+
default: _(() => [
|
|
52
|
+
c(e.$slots, "label")
|
|
53
|
+
]),
|
|
54
|
+
_: 3
|
|
55
|
+
}, 8, ["text", "class"])) : u("", !0)
|
|
56
|
+
], 2),
|
|
57
|
+
i ? (o(), a("div", S, [
|
|
58
|
+
(o(), a(B, null, $(i, (x, y) => d("span", {
|
|
59
|
+
class: "text-sm text-red-600",
|
|
60
|
+
key: y
|
|
61
|
+
}, F(x), 1)), 64))
|
|
62
|
+
])) : u("", !0)
|
|
63
|
+
]);
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
export {
|
|
68
|
+
V as _
|
|
69
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { defineComponent as n, openBlock as o, createElementBlock as p, toDisplayString as r } from "vue";
|
|
2
|
+
const s = { class: "text-gray-400 select-none" }, _ = /* @__PURE__ */ n({
|
|
3
|
+
name: "TGraphyEmpty",
|
|
4
|
+
__name: "GraphyEmpty",
|
|
5
|
+
props: {
|
|
6
|
+
text: {}
|
|
7
|
+
},
|
|
8
|
+
setup(t) {
|
|
9
|
+
const e = t;
|
|
10
|
+
return (a, c) => (o(), p("span", s, r(e.text), 1));
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
_
|
|
15
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent as r, inject as a, openBlock as s, createElementBlock as i, normalizeClass as c, unref as o, createTextVNode as m, toDisplayString as p, renderSlot as y } from "vue";
|
|
2
|
+
const S = /* @__PURE__ */ r({
|
|
3
|
+
name: "TGraphyLabel",
|
|
4
|
+
__name: "GraphyLabel",
|
|
5
|
+
props: {
|
|
6
|
+
text: {},
|
|
7
|
+
invertControls: { type: Boolean, default: !1 },
|
|
8
|
+
injectFormStyle: { type: Boolean, default: !0 }
|
|
9
|
+
},
|
|
10
|
+
setup(l) {
|
|
11
|
+
const e = l, t = a("formStyle", { input: "", label: "" });
|
|
12
|
+
return (n, u) => (s(), i("label", {
|
|
13
|
+
class: c(["input-label", {
|
|
14
|
+
[o(t).label]: e.injectFormStyle && !e.invertControls,
|
|
15
|
+
[o(t).input]: e.injectFormStyle && e.invertControls,
|
|
16
|
+
"mr-2": e.injectFormStyle && !e.invertControls,
|
|
17
|
+
"ml-2": e.injectFormStyle && e.invertControls
|
|
18
|
+
}])
|
|
19
|
+
}, [
|
|
20
|
+
m(p(e.text) + " ", 1),
|
|
21
|
+
y(n.$slots, "default")
|
|
22
|
+
], 2));
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
S as _
|
|
27
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { defineComponent as c, reactive as p, watch as l, openBlock as s, createElementBlock as u, normalizeClass as m, unref as r, toDisplayString as v } from "vue";
|
|
2
|
+
import { G as e } from "./ui-BLR-4Xlv.js";
|
|
3
|
+
import { g as f } from "./index-CVD_wAsU.js";
|
|
4
|
+
import { useI18n as y } from "vue-i18n";
|
|
5
|
+
const _ = /* @__PURE__ */ c({
|
|
6
|
+
name: "TGraphyPrice",
|
|
7
|
+
__name: "GraphyPrice",
|
|
8
|
+
props: {
|
|
9
|
+
value: {},
|
|
10
|
+
currency: {},
|
|
11
|
+
animate: { type: Boolean, default: !1 },
|
|
12
|
+
variant: { default: e.DEFAULT },
|
|
13
|
+
priceColor: { default: "color-text" }
|
|
14
|
+
},
|
|
15
|
+
setup(n) {
|
|
16
|
+
const a = n, { n: o } = y(), t = p({ value: 0 });
|
|
17
|
+
return l(
|
|
18
|
+
() => a.value,
|
|
19
|
+
(i) => {
|
|
20
|
+
if (!a.animate) {
|
|
21
|
+
t.value = i;
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
f.to(t, {
|
|
25
|
+
duration: 0.5,
|
|
26
|
+
ease: "power3.in",
|
|
27
|
+
value: i
|
|
28
|
+
});
|
|
29
|
+
},
|
|
30
|
+
{ immediate: !0 }
|
|
31
|
+
), (i, C) => (s(), u("span", {
|
|
32
|
+
class: m(["tracking-tighter", {
|
|
33
|
+
"color-caipira-green": a.variant === r(e).INCREASE || a.variant === r(e).AUTO && t.value > 0,
|
|
34
|
+
"color-caipira-red": a.variant === r(e).DECREASE || a.variant === r(e).AUTO && t.value < 0,
|
|
35
|
+
[a.priceColor]: a.variant === r(e).DEFAULT || a.variant === r(e).AUTO && t.value === 0
|
|
36
|
+
}])
|
|
37
|
+
}, v(r(o)(t.value, "currency", a.currency.toUpperCase())), 3));
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
export {
|
|
41
|
+
_
|
|
42
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineComponent as r, openBlock as l, createElementBlock as n, normalizeClass as a, toDisplayString as p } from "vue";
|
|
2
|
+
const m = /* @__PURE__ */ r({
|
|
3
|
+
name: "TGraphySubtitle",
|
|
4
|
+
__name: "GraphySubtitle",
|
|
5
|
+
props: {
|
|
6
|
+
text: {},
|
|
7
|
+
textColor: { default: "color-text" }
|
|
8
|
+
},
|
|
9
|
+
setup(t) {
|
|
10
|
+
const e = t;
|
|
11
|
+
return (o, s) => (l(), n("h2", {
|
|
12
|
+
class: a(["text-2xl font-bold mr-2", [o.textColor]])
|
|
13
|
+
}, p(e.text), 3));
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
m as _
|
|
18
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { defineComponent as o, openBlock as r, createElementBlock as n, toDisplayString as c } from "vue";
|
|
2
|
+
const p = { class: "color-caipira-primary-inverted text-3xl select-none" }, l = /* @__PURE__ */ o({
|
|
3
|
+
name: "TGraphyTitle",
|
|
4
|
+
__name: "GraphyTitle",
|
|
5
|
+
props: {
|
|
6
|
+
text: {}
|
|
7
|
+
},
|
|
8
|
+
setup(e) {
|
|
9
|
+
const t = e;
|
|
10
|
+
return (a, s) => (r(), n("h1", p, c(t.text), 1));
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
l as _
|
|
15
|
+
};
|
package/dist/Icon.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { defineComponent as h, ref as v, getCurrentInstance as k, computed as g, watch as b, openBlock as w, createElementBlock as y, normalizeClass as A, unref as e } from "vue";
|
|
2
|
+
import { E as i } from "./ui-BLR-4Xlv.js";
|
|
3
|
+
import { u as a } from "./ui-MicIL_Lw.js";
|
|
4
|
+
const z = (r, n) => {
|
|
5
|
+
const s = r[n];
|
|
6
|
+
return s ? typeof s == "function" ? s() : Promise.resolve(s) : new Promise((c, t) => {
|
|
7
|
+
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(t.bind(null, new Error("Unknown variable dynamic import: " + n)));
|
|
8
|
+
});
|
|
9
|
+
}, E = ["innerHTML", "role"], x = /* @__PURE__ */ h({
|
|
10
|
+
name: "TIcon",
|
|
11
|
+
__name: "Icon",
|
|
12
|
+
props: {
|
|
13
|
+
icon: {},
|
|
14
|
+
role: { default: "" },
|
|
15
|
+
size: { default: i.DEFAULT }
|
|
16
|
+
},
|
|
17
|
+
setup(r, { expose: n }) {
|
|
18
|
+
const s = r, c = v(""), t = k(), m = v(null), l = g(() => s.role === "button"), u = g(() => s.role !== "" ? s.role : t && a.isPopoverActivator(t) ? "button" : ""), f = (o) => {
|
|
19
|
+
t && a.isPopoverActivator(t) && a.onPopoverActivatorClick(o, t);
|
|
20
|
+
}, d = async () => (await z(/* @__PURE__ */ Object.assign({ "../../assets/icons/account.svg": () => import("./account-BJGxzbeL.js"), "../../assets/icons/alert-octagon-outline.svg": () => import("./alert-octagon-outline-fM2QVbyq.js"), "../../assets/icons/alert-octagon.svg": () => import("./alert-octagon-D8wznooU.js"), "../../assets/icons/archive-outline.svg": () => import("./archive-outline-BT6uCRX5.js"), "../../assets/icons/archive.svg": () => import("./archive-DDuuzVUo.js"), "../../assets/icons/arrow-left.svg": () => import("./arrow-left-CVipcGWo.js"), "../../assets/icons/arrow-right.svg": () => import("./arrow-right-DHFo5L72.js"), "../../assets/icons/bank-outline.svg": () => import("./bank-outline-wy0O9ni0.js"), "../../assets/icons/bank.svg": () => import("./bank-lwoR1P6d.js"), "../../assets/icons/camera.svg": () => import("./camera-BXoPauop.js"), "../../assets/icons/cards-outline.svg": () => import("./cards-outline-B0no8Z63.js"), "../../assets/icons/cards-variant.svg": () => import("./cards-variant-CU6V8mdM.js"), "../../assets/icons/cart-outline.svg": () => import("./cart-outline-C99s8OpS.js"), "../../assets/icons/chart-box-outline.svg": () => import("./chart-box-outline-C9ymwfIH.js"), "../../assets/icons/chart-box.svg": () => import("./chart-box-tyepg_QH.js"), "../../assets/icons/check-circle-outline.svg": () => import("./check-circle-outline-B4zmPfuc.js"), "../../assets/icons/check-circle.svg": () => import("./check-circle-C3Kf7DnE.js"), "../../assets/icons/check.svg": () => import("./check-iUT-FuWa.js"), "../../assets/icons/checkbox-dark.svg": () => import("./checkbox-dark-D_btgwCX.js"), "../../assets/icons/checkbox-indeterminate-dark.svg": () => import("./checkbox-indeterminate-dark-CSrkJBRG.js"), "../../assets/icons/checkbox-indeterminate.svg": () => import("./checkbox-indeterminate-CtbmyFkw.js"), "../../assets/icons/checkbox.svg": () => import("./checkbox-TojXdFTq.js"), "../../assets/icons/chevron-down.svg": () => import("./chevron-down-CJLshITY.js"), "../../assets/icons/chevron-left.svg": () => import("./chevron-left-n_sGCmlG.js"), "../../assets/icons/chevron-right.svg": () => import("./chevron-right-C8uLqjmq.js"), "../../assets/icons/chevron-up.svg": () => import("./chevron-up-b6VdQM8S.js"), "../../assets/icons/circle.svg": () => import("./circle-DhoEDuC5.js"), "../../assets/icons/clock.svg": () => import("./clock-BqMI2OIG.js"), "../../assets/icons/close-circle-outline.svg": () => import("./close-circle-outline-CUXfYV4M.js"), "../../assets/icons/close-circle.svg": () => import("./close-circle-Bsf9_pUR.js"), "../../assets/icons/close.svg": () => import("./close-DemH4JAO.js"), "../../assets/icons/cog.svg": () => import("./cog-Dd9I6z5D.js"), "../../assets/icons/color-fill.svg": () => import("./color-fill-DWx77G0p.js"), "../../assets/icons/copy.svg": () => import("./copy-D-Dqxp8h.js"), "../../assets/icons/credit-card-plus.svg": () => import("./credit-card-plus-TUZq5Zi0.js"), "../../assets/icons/credit-card.svg": () => import("./credit-card-B3VjoUad.js"), "../../assets/icons/currency.svg": () => import("./currency-BuSji4qA.js"), "../../assets/icons/database.svg": () => import("./database-CNG_l2Or.js"), "../../assets/icons/dots-grid.svg": () => import("./dots-grid-BhRGZg1t.js"), "../../assets/icons/dots-vertical.svg": () => import("./dots-vertical-nYIDxlT1.js"), "../../assets/icons/email-open-outline.svg": () => import("./email-open-outline-NlRAK8vu.js"), "../../assets/icons/email-outline.svg": () => import("./email-outline-v-beMKo_.js"), "../../assets/icons/eye-off.svg": () => import("./eye-off-Dq2WOPSG.js"), "../../assets/icons/eye.svg": () => import("./eye-C7_UM0rn.js"), "../../assets/icons/file-document-plus-outline.svg": () => import("./file-document-plus-outline-C_GeG8ak.js"), "../../assets/icons/filmstrip.svg": () => import("./filmstrip-Dg66xHap.js"), "../../assets/icons/filter.svg": () => import("./filter-07gM0IrM.js"), "../../assets/icons/fullscreen-exit.svg": () => import("./fullscreen-exit-DvHy2f8E.js"), "../../assets/icons/fullscreen.svg": () => import("./fullscreen-daZRwm-1.js"), "../../assets/icons/group.svg": () => import("./group-B1HQcmCl.js"), "../../assets/icons/image-album-outline.svg": () => import("./image-album-outline-oiPipPnp.js"), "../../assets/icons/image-album.svg": () => import("./image-album-DVl72ioK.js"), "../../assets/icons/image-outline.svg": () => import("./image-outline-CLpFyr7w.js"), "../../assets/icons/image.svg": () => import("./image-C-DY_SfK.js"), "../../assets/icons/info-outline.svg": () => import("./info-outline-Mn6Hjz_K.js"), "../../assets/icons/key-chain.svg": () => import("./key-chain-D-8-GrU2.js"), "../../assets/icons/key-variant.svg": () => import("./key-variant-DViBRFAJ.js"), "../../assets/icons/key.svg": () => import("./key-B8iEXxGx.js"), "../../assets/icons/listbox-outline.svg": () => import("./listbox-outline-BBriTS-r.js"), "../../assets/icons/loading.svg": () => import("./loading-E4eFmVsP.js"), "../../assets/icons/lock-outline.svg": () => import("./lock-outline-K2LxC2b6.js"), "../../assets/icons/lock.svg": () => import("./lock-Nv-e-b24.js"), "../../assets/icons/logout.svg": () => import("./logout-BHwFpuou.js"), "../../assets/icons/menu-down.svg": () => import("./menu-down-B4Fy5IG1.js"), "../../assets/icons/menu-left.svg": () => import("./menu-left-D8G3frKt.js"), "../../assets/icons/menu-right.svg": () => import("./menu-right-CMt4thJ2.js"), "../../assets/icons/menu.svg": () => import("./menu-pq7WWaJu.js"), "../../assets/icons/minus-circle-outline.svg": () => import("./minus-circle-outline-B-x6EXPD.js"), "../../assets/icons/minus-circle.svg": () => import("./minus-circle-D_N5NZW-.js"), "../../assets/icons/minus.svg": () => import("./minus-CSCkQnOm.js"), "../../assets/icons/moon.svg": () => import("./moon-Bhm_ZTV6.js"), "../../assets/icons/open-in-new.svg": () => import("./open-in-new-C2Btl_1k.js"), "../../assets/icons/pencil.svg": () => import("./pencil-BETebgXX.js"), "../../assets/icons/people.svg": () => import("./people-BUW1DRzH.js"), "../../assets/icons/piggy-bank-outline.svg": () => import("./piggy-bank-outline-5cDQNrSU.js"), "../../assets/icons/plus-circle-outline.svg": () => import("./plus-circle-outline-C-kkX0ke.js"), "../../assets/icons/plus-circle.svg": () => import("./plus-circle-Cl0YprEp.js"), "../../assets/icons/plus.svg": () => import("./plus-sbcOm60H.js"), "../../assets/icons/qrcode-scan.svg": () => import("./qrcode-scan-CpLrVFw_.js"), "../../assets/icons/radio-dark.svg": () => import("./radio-dark-Cr5v17AF.js"), "../../assets/icons/radio.svg": () => import("./radio-DkjVAhsO.js"), "../../assets/icons/refresh.svg": () => import("./refresh-DPlMWd1M.js"), "../../assets/icons/save.svg": () => import("./save-BmMH4S8b.js"), "../../assets/icons/search.svg": () => import("./search-Co2MwWOK.js"), "../../assets/icons/spotlight.svg": () => import("./spotlight-TNyCQzOY.js"), "../../assets/icons/store-outline.svg": () => import("./store-outline-B-fuVZzv.js"), "../../assets/icons/sun.svg": () => import("./sun-BWKjCEHH.js"), "../../assets/icons/swap-horizontal.svg": () => import("./swap-horizontal-DociZUG2.js"), "../../assets/icons/swap-left.svg": () => import("./swap-left-Bd2DOgf3.js"), "../../assets/icons/swap-right.svg": () => import("./swap-right-D0VYxBDb.js"), "../../assets/icons/swap.svg": () => import("./swap-CNbqKTl0.js"), "../../assets/icons/system-theme.svg": () => import("./system-theme-Cez6mSv_.js"), "../../assets/icons/tag-outline.svg": () => import("./tag-outline-Ce_qOxif.js"), "../../assets/icons/trash-can-outline.svg": () => import("./trash-can-outline-DjtqZHOC.js"), "../../assets/icons/trash-can.svg": () => import("./trash-can-CKPtMqSf.js"), "../../assets/icons/upload.svg": () => import("./upload-CKfrBexU.js"), "../../assets/icons/user-circle.svg": () => import("./user-circle-D102n1FB.js"), "../../assets/icons/zip-box.svg": () => import("./zip-box-C10560VY.js") }), `../../assets/icons/${s.icon}.svg`)).default;
|
|
21
|
+
return b(
|
|
22
|
+
() => s.icon,
|
|
23
|
+
async (o, p) => {
|
|
24
|
+
o !== p && (c.value = await d());
|
|
25
|
+
},
|
|
26
|
+
{ immediate: !0 }
|
|
27
|
+
), n({ reference: m }), (o, p) => (w(), y("i", {
|
|
28
|
+
innerHTML: c.value,
|
|
29
|
+
ref_key: "reference",
|
|
30
|
+
ref: m,
|
|
31
|
+
class: A(["inline-block fill-current", {
|
|
32
|
+
"w-4": o.size === e(i).EXTRA_SMALL,
|
|
33
|
+
"w-5": o.size === e(i).SMALL,
|
|
34
|
+
"w-6": o.size === e(i).DEFAULT,
|
|
35
|
+
"w-10": o.size === e(i).LARGE,
|
|
36
|
+
"w-12": o.size === e(i).EXTRA_LARGE,
|
|
37
|
+
"cursor-pointer": l.value
|
|
38
|
+
}]),
|
|
39
|
+
role: u.value,
|
|
40
|
+
onClick: f
|
|
41
|
+
}, null, 10, E));
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
export {
|
|
45
|
+
x as _
|
|
46
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { defineComponent as L, getCurrentInstance as T, ref as p, computed as a, resolveComponent as k, openBlock as f, createBlock as g, resolveDynamicComponent as U, normalizeClass as d, unref as o, withCtx as z, renderSlot as A, createVNode as N, createElementBlock as R, createCommentVNode as x } from "vue";
|
|
2
|
+
import { B as t, E as i, a as r, b as F } from "./ui-BLR-4Xlv.js";
|
|
3
|
+
import { u as m } from "./ui-MicIL_Lw.js";
|
|
4
|
+
import "./Icon.vue_vue_type_script_setup_true_lang-hxJ1wXXd.js";
|
|
5
|
+
const w = ["multiple"], P = /* @__PURE__ */ L({
|
|
6
|
+
name: "TIconButton",
|
|
7
|
+
__name: "IconButton",
|
|
8
|
+
props: {
|
|
9
|
+
to: {},
|
|
10
|
+
icon: {},
|
|
11
|
+
href: { default: "" },
|
|
12
|
+
type: { default: t.BUTTON },
|
|
13
|
+
size: { default: i.DEFAULT },
|
|
14
|
+
label: { default: "" },
|
|
15
|
+
shape: { default: r.ROUNDED },
|
|
16
|
+
target: { default: void 0 },
|
|
17
|
+
variant: { default: F.DEFAULT },
|
|
18
|
+
multiple: { type: Boolean, default: !1 },
|
|
19
|
+
isOutline: { type: Boolean, default: !1 },
|
|
20
|
+
isDisabled: { type: Boolean, default: !1 },
|
|
21
|
+
injectStyle: { default: () => ({ icon: "" }) },
|
|
22
|
+
disableStyle: { type: Boolean, default: !1 }
|
|
23
|
+
},
|
|
24
|
+
emits: ["upload"],
|
|
25
|
+
setup(y, { expose: v, emit: h }) {
|
|
26
|
+
const e = y, b = h, s = T(), u = p(), c = p(null), _ = a(() => e.href ? e.href : void 0), B = a(() => {
|
|
27
|
+
switch (e.type) {
|
|
28
|
+
case t.LINK:
|
|
29
|
+
return;
|
|
30
|
+
case t.FILE:
|
|
31
|
+
return "button";
|
|
32
|
+
default:
|
|
33
|
+
return e.type;
|
|
34
|
+
}
|
|
35
|
+
}), E = a(() => e.type === t.SUBMIT ? e.label : void 0), S = a(() => {
|
|
36
|
+
switch (e.type) {
|
|
37
|
+
case t.SUBMIT:
|
|
38
|
+
return "input";
|
|
39
|
+
case t.LINK:
|
|
40
|
+
return "a";
|
|
41
|
+
case t.ROUTER_LINK:
|
|
42
|
+
return "router-link";
|
|
43
|
+
default:
|
|
44
|
+
return "button";
|
|
45
|
+
}
|
|
46
|
+
}), D = (n) => {
|
|
47
|
+
s && m.isPopoverActivator(s) && m.onPopoverActivatorClick(n, s), e.type === t.SUBMIT && n.preventDefault(), e.type === t.FILE && u.value?.click();
|
|
48
|
+
}, I = (n) => {
|
|
49
|
+
n.stopPropagation();
|
|
50
|
+
const l = n.target.files;
|
|
51
|
+
!l || !l.length || b("upload", l);
|
|
52
|
+
};
|
|
53
|
+
return v({ iconReference: c }), (n, C) => {
|
|
54
|
+
const l = k("t-icon");
|
|
55
|
+
return f(), g(U(S.value), {
|
|
56
|
+
type: B.value,
|
|
57
|
+
href: _.value,
|
|
58
|
+
value: E.value,
|
|
59
|
+
to: e.to,
|
|
60
|
+
disabled: e.isDisabled,
|
|
61
|
+
target: e.target,
|
|
62
|
+
class: d([{
|
|
63
|
+
"opacity-50": e.isDisabled,
|
|
64
|
+
// Padding
|
|
65
|
+
"px-1 py-0": !e.disableStyle && e.size === o(i).EXTRA_SMALL,
|
|
66
|
+
"px-1": !e.disableStyle && e.size === o(i).SMALL,
|
|
67
|
+
"px-4 py-2 h-10": !e.disableStyle && e.size === o(i).DEFAULT,
|
|
68
|
+
// Shape
|
|
69
|
+
"rounded-full": e.shape === o(r).CIRCLE,
|
|
70
|
+
"input-roundness": e.shape === o(r).ROUNDED,
|
|
71
|
+
// Cursor
|
|
72
|
+
"cursor-pointer": !e.isDisabled,
|
|
73
|
+
"cursor-not-allowed": e.isDisabled
|
|
74
|
+
}, "input-outline inline-flex items-center justify-center"]),
|
|
75
|
+
role: "button",
|
|
76
|
+
onClick: D
|
|
77
|
+
}, {
|
|
78
|
+
default: z(() => [
|
|
79
|
+
A(n.$slots, "default"),
|
|
80
|
+
N(l, {
|
|
81
|
+
ref_key: "iconReference",
|
|
82
|
+
ref: c,
|
|
83
|
+
size: e.size,
|
|
84
|
+
icon: e.icon,
|
|
85
|
+
class: d({
|
|
86
|
+
[e.injectStyle.icon]: !0
|
|
87
|
+
})
|
|
88
|
+
}, null, 8, ["size", "icon", "class"]),
|
|
89
|
+
e.type === "file" ? (f(), R("input", {
|
|
90
|
+
key: 0,
|
|
91
|
+
multiple: e.multiple,
|
|
92
|
+
onChange: I,
|
|
93
|
+
type: "file",
|
|
94
|
+
ref_key: "fileInput",
|
|
95
|
+
ref: u,
|
|
96
|
+
class: "hidden"
|
|
97
|
+
}, null, 40, w)) : x("", !0)
|
|
98
|
+
]),
|
|
99
|
+
_: 3
|
|
100
|
+
}, 8, ["type", "href", "value", "to", "disabled", "target", "class"]);
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
export {
|
|
105
|
+
P as _
|
|
106
|
+
};
|