@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,52 @@
|
|
|
1
|
+
import { defineComponent as v, ref as o, watch as f, resolveComponent as n, openBlock as g, createElementBlock as h, createVNode as c, createElementVNode as r } from "vue";
|
|
2
|
+
const b = { class: "relative h-40 w-40" }, y = {
|
|
3
|
+
for: "file",
|
|
4
|
+
class: "absolute transform bottom-1 right-2"
|
|
5
|
+
}, V = ["value"], C = /* @__PURE__ */ v({
|
|
6
|
+
name: "TInputAvatar",
|
|
7
|
+
__name: "InputAvatar",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: {}
|
|
10
|
+
},
|
|
11
|
+
emits: ["update:modelValue"],
|
|
12
|
+
setup(s, { emit: l }) {
|
|
13
|
+
const i = s, m = l, a = o(), u = o(), p = async (e) => {
|
|
14
|
+
const t = e.target.files;
|
|
15
|
+
a.value = URL.createObjectURL(t[0]), m("update:modelValue", t[0]);
|
|
16
|
+
};
|
|
17
|
+
return f(
|
|
18
|
+
() => i.modelValue,
|
|
19
|
+
(e) => {
|
|
20
|
+
typeof e == "string" && (a.value = e);
|
|
21
|
+
},
|
|
22
|
+
{ immediate: !0 }
|
|
23
|
+
), (e, d) => {
|
|
24
|
+
const t = n("t-avatar"), _ = n("t-icon");
|
|
25
|
+
return g(), h("div", b, [
|
|
26
|
+
c(t, {
|
|
27
|
+
size: "xl",
|
|
28
|
+
image: a.value,
|
|
29
|
+
icon: "account",
|
|
30
|
+
class: "text-white"
|
|
31
|
+
}, null, 8, ["image"]),
|
|
32
|
+
r("label", y, [
|
|
33
|
+
c(_, {
|
|
34
|
+
icon: "camera",
|
|
35
|
+
size: "lg",
|
|
36
|
+
class: "rounded-full cursor-pointer p-2 color-caipira-primary-inverted bg-caipira-primary"
|
|
37
|
+
})
|
|
38
|
+
]),
|
|
39
|
+
r("input", {
|
|
40
|
+
id: "file",
|
|
41
|
+
value: u.value,
|
|
42
|
+
type: "file",
|
|
43
|
+
class: "hidden",
|
|
44
|
+
onChange: p
|
|
45
|
+
}, null, 40, V)
|
|
46
|
+
]);
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
export {
|
|
51
|
+
C as _
|
|
52
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { defineComponent as m, inject as o, ref as f, watch as b, openBlock as v, createElementBlock as y, normalizeClass as h, unref as l, withDirectives as k, createElementVNode as x, mergeProps as B, vModelCheckbox as C } from "vue";
|
|
2
|
+
const I = ["indeterminate", "id", "disabled"], _ = /* @__PURE__ */ m({
|
|
3
|
+
name: "TInputCheckbox",
|
|
4
|
+
__name: "InputCheckbox",
|
|
5
|
+
props: {
|
|
6
|
+
key: { default: "checkbox" },
|
|
7
|
+
disabled: { type: Boolean, default: !1 },
|
|
8
|
+
modelValue: { type: Boolean },
|
|
9
|
+
isIndeterminate: { type: Boolean, default: !1 },
|
|
10
|
+
initializeValue: { type: Boolean, default: !1 }
|
|
11
|
+
},
|
|
12
|
+
emits: ["update:model-value", "input"],
|
|
13
|
+
setup(r, { emit: d }) {
|
|
14
|
+
const a = r, i = d, u = o("id", ""), t = f(!1), s = o("formStyle", { label: "", input: "" }), p = () => {
|
|
15
|
+
const e = !t.value;
|
|
16
|
+
i("update:model-value", e), i("input", e);
|
|
17
|
+
};
|
|
18
|
+
return b(
|
|
19
|
+
() => a.modelValue,
|
|
20
|
+
(e) => {
|
|
21
|
+
a.initializeValue && typeof e > "u" && i("update:model-value", !1), t.value = e;
|
|
22
|
+
},
|
|
23
|
+
{ immediate: !0 }
|
|
24
|
+
), (e, n) => (v(), y("div", {
|
|
25
|
+
class: h({
|
|
26
|
+
[l(s).label]: !0
|
|
27
|
+
})
|
|
28
|
+
}, [
|
|
29
|
+
k(x("input", B({
|
|
30
|
+
"onUpdate:modelValue": n[0] || (n[0] = (c) => t.value = c)
|
|
31
|
+
}, e.$attrs, {
|
|
32
|
+
type: "checkbox",
|
|
33
|
+
class: "form-checkbox relative w-5 h-5 border input-border input-roundness color-caipira-primary-inverted bg-caipira-primary checked:bg-caipira-primary-inverted cursor-pointer input-outline",
|
|
34
|
+
indeterminate: a.isIndeterminate,
|
|
35
|
+
id: l(u),
|
|
36
|
+
disabled: e.disabled,
|
|
37
|
+
onInput: p
|
|
38
|
+
}), null, 16, I), [
|
|
39
|
+
[C, t.value]
|
|
40
|
+
])
|
|
41
|
+
], 2));
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
export {
|
|
45
|
+
_
|
|
46
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineComponent as i, ref as r, inject as p, watch as d, openBlock as c, createElementBlock as m } from "vue";
|
|
2
|
+
const f = ["value", "disabled"], b = /* @__PURE__ */ i({
|
|
3
|
+
name: "TInputColor",
|
|
4
|
+
__name: "InputColor",
|
|
5
|
+
props: {
|
|
6
|
+
disabled: { type: Boolean, default: !1 },
|
|
7
|
+
modelValue: {},
|
|
8
|
+
disableStyle: { type: Boolean, default: !1 }
|
|
9
|
+
},
|
|
10
|
+
emits: ["update:modelValue"],
|
|
11
|
+
setup(n, { emit: a }) {
|
|
12
|
+
const l = n, u = a, t = r("");
|
|
13
|
+
p("formStyle", { label: "", input: "" });
|
|
14
|
+
const s = ({ target: e }) => {
|
|
15
|
+
const o = e.value;
|
|
16
|
+
o && u("update:modelValue", o);
|
|
17
|
+
};
|
|
18
|
+
return d(
|
|
19
|
+
() => l.modelValue,
|
|
20
|
+
(e) => {
|
|
21
|
+
e && e !== t.value && (t.value = e);
|
|
22
|
+
},
|
|
23
|
+
{ immediate: !0 }
|
|
24
|
+
), (e, o) => (c(), m("input", {
|
|
25
|
+
type: "color",
|
|
26
|
+
class: "h-10 border-0 input-bg-color input-text-color input-outline input-roundnes input-roundness w-12",
|
|
27
|
+
value: t.value,
|
|
28
|
+
disabled: l.disabled,
|
|
29
|
+
onInput: s
|
|
30
|
+
}, null, 40, f));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
b as _
|
|
35
|
+
};
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { defineComponent as Z, inject as ee, ref as f, watch as O, computed as S, onBeforeMount as te, resolveComponent as oe, openBlock as c, createElementBlock as v, normalizeClass as x, unref as j, createElementVNode as n, withKeys as le, withDirectives as ne, toDisplayString as k, Fragment as F, renderList as T, createVNode as B, vShow as ae } from "vue";
|
|
2
|
+
import { u as se } from "./ui-MicIL_Lw.js";
|
|
3
|
+
import { f as E } from "./index-CjvqeRf7.js";
|
|
4
|
+
import { g as L, s as $, a as re, b as N, c as ue } from "./index-CuyePt3m.js";
|
|
5
|
+
const ie = ["value"], de = {
|
|
6
|
+
class: "mt-9 shadow-md p-4 absolute top-0 left-0 select-none z-10 bg-caipira-primary border input-border input-roundness",
|
|
7
|
+
style: { width: "17rem" }
|
|
8
|
+
}, ce = { class: "flex justify-between items-center mb-2" }, ve = { class: "text-lg font-bold" }, pe = ["value", "selected"], me = ["disabled"], fe = ["disabled"], he = { class: "flex flex-wrap mb-3 -mx-1" }, ye = { class: "font-medium text-center text-xs" }, ge = { class: "flex flex-wrap -mx-1" }, be = ["onClick"], M = !0, Me = /* @__PURE__ */ Z({
|
|
9
|
+
name: "TInputDate",
|
|
10
|
+
__name: "InputDate",
|
|
11
|
+
props: {
|
|
12
|
+
value: {},
|
|
13
|
+
modelValue: {},
|
|
14
|
+
initialValue: {}
|
|
15
|
+
},
|
|
16
|
+
emits: ["update:model-value"],
|
|
17
|
+
setup(z, { emit: A }) {
|
|
18
|
+
const a = z, V = A, h = /* @__PURE__ */ new Date(), K = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], P = ee("formStyle", { input: "w-full" }), C = f(null), y = f(!1), e = f(/* @__PURE__ */ new Date()), s = f(e.value.getFullYear()), p = f(e.value.getMonth());
|
|
19
|
+
O(
|
|
20
|
+
() => e.value,
|
|
21
|
+
(t) => {
|
|
22
|
+
p.value = t.getMonth(), s.value = t.getFullYear();
|
|
23
|
+
},
|
|
24
|
+
{ immediate: !0 }
|
|
25
|
+
);
|
|
26
|
+
let m, g, b;
|
|
27
|
+
O(
|
|
28
|
+
() => a.modelValue,
|
|
29
|
+
() => {
|
|
30
|
+
if (a.modelValue)
|
|
31
|
+
switch (typeof a.modelValue) {
|
|
32
|
+
case "string":
|
|
33
|
+
const t = new Date(a.modelValue);
|
|
34
|
+
t && V("update:model-value", t);
|
|
35
|
+
break;
|
|
36
|
+
case "object":
|
|
37
|
+
e.value = a.modelValue, m = e.value.getDate(), g = e.value.getFullYear(), b = e.value.getMonth();
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{ immediate: !0 }
|
|
42
|
+
);
|
|
43
|
+
const R = S(() => {
|
|
44
|
+
if (!a.modelValue)
|
|
45
|
+
return "";
|
|
46
|
+
const t = typeof a.modelValue == "string" ? new Date(a.modelValue) : a.modelValue;
|
|
47
|
+
return E(t, "yyyy-MM-dd");
|
|
48
|
+
}), W = S(() => {
|
|
49
|
+
const t = h.getFullYear();
|
|
50
|
+
return Array.from({ length: 49 }, (i, r) => t - 1 - r).reverse().concat(Array.from({ length: 51 }, (i, r) => t + r));
|
|
51
|
+
}), G = (t) => e.value = re(
|
|
52
|
+
e.value,
|
|
53
|
+
t?.target?.value
|
|
54
|
+
), w = () => {
|
|
55
|
+
y.value = !1, e.value = m ? a.modelValue : /* @__PURE__ */ new Date();
|
|
56
|
+
}, q = (t) => {
|
|
57
|
+
t.overflow && (e.value = t.overflow > 0 ? N(e.value, t.overflow) : $(e.value, ~t.overflow + 1)), e.value = ue(e.value, t.day), V("update:model-value", e.value), w();
|
|
58
|
+
}, H = () => {
|
|
59
|
+
e.value = $(e.value, 1);
|
|
60
|
+
}, J = () => {
|
|
61
|
+
e.value = N(e.value, 1);
|
|
62
|
+
}, Q = S(() => {
|
|
63
|
+
const i = [], r = new Date(s.value, p.value).getDay(), l = L($(e.value, 1)), I = L(e.value), Y = h.getDate(), D = h.getFullYear(), d = h.getMonth();
|
|
64
|
+
let _ = 1, u = p.value - 1;
|
|
65
|
+
for (let o = l - (r - 1); o <= l; o++)
|
|
66
|
+
i.push({
|
|
67
|
+
key: `${o}-${d - 1}`,
|
|
68
|
+
day: o,
|
|
69
|
+
isToday: Y === o && d === u && D === s.value,
|
|
70
|
+
selected: m === o && b === u && g === s.value,
|
|
71
|
+
overflow: -1
|
|
72
|
+
}), _++;
|
|
73
|
+
u = p.value;
|
|
74
|
+
for (let o = 1; o <= I; o++)
|
|
75
|
+
i.push({
|
|
76
|
+
key: `${o}-${d}`,
|
|
77
|
+
day: o,
|
|
78
|
+
isToday: Y === o && d === u && D === s.value,
|
|
79
|
+
selected: m === o && b === u && g === s.value,
|
|
80
|
+
overflow: 0
|
|
81
|
+
}), _++;
|
|
82
|
+
u = p.value + 1;
|
|
83
|
+
for (let o = 1; _ <= 42; o++)
|
|
84
|
+
i.push({
|
|
85
|
+
key: `${o}-${d + 1}`,
|
|
86
|
+
day: o,
|
|
87
|
+
isToday: Y === o && d === u && D === s.value,
|
|
88
|
+
selected: m === o && b === u && g === s.value,
|
|
89
|
+
overflow: 1
|
|
90
|
+
}), _++;
|
|
91
|
+
return i;
|
|
92
|
+
}), U = () => {
|
|
93
|
+
y.value ? w() : y.value = !0;
|
|
94
|
+
}, X = (t) => {
|
|
95
|
+
C.value && se.wasClickOutsideOfContainer(t, C.value) && w();
|
|
96
|
+
};
|
|
97
|
+
return te(() => {
|
|
98
|
+
document.addEventListener("click", X), !a.modelValue && a.initialValue && V("update:model-value", a.initialValue);
|
|
99
|
+
}), (t, i) => {
|
|
100
|
+
const r = oe("t-icon");
|
|
101
|
+
return c(), v("div", {
|
|
102
|
+
class: x(["inline-block relative", { [j(P).input]: !0 }]),
|
|
103
|
+
ref_key: "wrapperRef",
|
|
104
|
+
ref: C
|
|
105
|
+
}, [
|
|
106
|
+
n("input", {
|
|
107
|
+
type: "text",
|
|
108
|
+
readonly: "",
|
|
109
|
+
value: R.value,
|
|
110
|
+
onClick: U,
|
|
111
|
+
onKeydown: le(w, ["escape"]),
|
|
112
|
+
class: "w-full pl-2 pr-10 py-2 leading-none input-bg-color input-text-color border input-border input-roundness input-outline",
|
|
113
|
+
placeholder: "Select date"
|
|
114
|
+
}, null, 40, ie),
|
|
115
|
+
ne(n("div", de, [
|
|
116
|
+
n("div", ce, [
|
|
117
|
+
n("div", null, [
|
|
118
|
+
n("span", ve, k(j(E)(e.value, "MMMM")), 1),
|
|
119
|
+
n("select", {
|
|
120
|
+
class: "ml-2 text-lg input-bg-color border input-border input-outline",
|
|
121
|
+
onChange: G
|
|
122
|
+
}, [
|
|
123
|
+
(c(!0), v(F, null, T(W.value, (l) => (c(), v("option", {
|
|
124
|
+
key: l,
|
|
125
|
+
value: l,
|
|
126
|
+
selected: l === s.value
|
|
127
|
+
}, k(l), 9, pe))), 128))
|
|
128
|
+
], 32)
|
|
129
|
+
]),
|
|
130
|
+
n("div", null, [
|
|
131
|
+
n("button", {
|
|
132
|
+
type: "button",
|
|
133
|
+
class: x(["transition ease-in-out duration-100 inline-flex cursor-pointer hover:bg-hover p-1 rounded-full", {
|
|
134
|
+
"cursor-not-allowed opacity-25": !M
|
|
135
|
+
}]),
|
|
136
|
+
disabled: !M,
|
|
137
|
+
onClick: H
|
|
138
|
+
}, [
|
|
139
|
+
B(r, { icon: "chevron-left" })
|
|
140
|
+
], 10, me),
|
|
141
|
+
n("button", {
|
|
142
|
+
type: "button",
|
|
143
|
+
class: x(["transition ease-in-out duration-100 inline-flex cursor-pointer p-1 rounded-full hover:bg-hover", {
|
|
144
|
+
"cursor-not-allowed opacity-25": !M
|
|
145
|
+
}]),
|
|
146
|
+
disabled: !M,
|
|
147
|
+
onClick: J
|
|
148
|
+
}, [
|
|
149
|
+
B(r, { icon: "chevron-right" })
|
|
150
|
+
], 10, fe)
|
|
151
|
+
])
|
|
152
|
+
]),
|
|
153
|
+
n("div", he, [
|
|
154
|
+
(c(), v(F, null, T(K, (l) => n("div", {
|
|
155
|
+
key: l,
|
|
156
|
+
style: { width: "14.26%" },
|
|
157
|
+
class: "px-1"
|
|
158
|
+
}, [
|
|
159
|
+
n("div", ye, k(l), 1)
|
|
160
|
+
])), 64))
|
|
161
|
+
]),
|
|
162
|
+
n("div", ge, [
|
|
163
|
+
(c(!0), v(F, null, T(Q.value, (l) => (c(), v("div", {
|
|
164
|
+
key: l.key,
|
|
165
|
+
style: { width: "14.28%" },
|
|
166
|
+
class: "px-1 mb-1"
|
|
167
|
+
}, [
|
|
168
|
+
n("div", {
|
|
169
|
+
onClick: (I) => q(l),
|
|
170
|
+
class: x(["cursor-pointer text-center text-sm rounded leading-loose transition ease-in-out duration-100", {
|
|
171
|
+
"hover:bg-hover": !l.selected,
|
|
172
|
+
"color-unfocused-text": l.overflow !== 0,
|
|
173
|
+
"border border-caipira-primary-inverted": l.isToday,
|
|
174
|
+
"color-caipira-primary bg-caipira-primary-inverted": l.selected
|
|
175
|
+
}])
|
|
176
|
+
}, k(l.day), 11, be)
|
|
177
|
+
]))), 128))
|
|
178
|
+
])
|
|
179
|
+
], 512), [
|
|
180
|
+
[ae, y.value]
|
|
181
|
+
])
|
|
182
|
+
], 2);
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
export {
|
|
187
|
+
Me as _
|
|
188
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { defineComponent as I, ref as $, inject as N, watch as r, resolveComponent as a, openBlock as n, createElementBlock as s, createElementVNode as c, createBlock as m, createCommentVNode as z, createVNode as i, Fragment as B, renderList as P, normalizeClass as j, unref as E, resolveDynamicComponent as M, mergeProps as S, toHandlers as U } from "vue";
|
|
2
|
+
const A = { class: "inline-flex w-full items-center my-3" }, D = ["label"], H = /* @__PURE__ */ I({
|
|
3
|
+
name: "TInputMultiplier",
|
|
4
|
+
__name: "InputMultiplier",
|
|
5
|
+
props: {
|
|
6
|
+
component: {},
|
|
7
|
+
inputProps: { default: () => ({}) },
|
|
8
|
+
label: { default: "" },
|
|
9
|
+
listeners: { default: () => ({}) },
|
|
10
|
+
modelValue: {}
|
|
11
|
+
},
|
|
12
|
+
emits: ["update:model-value"],
|
|
13
|
+
setup(p, { emit: d }) {
|
|
14
|
+
const l = p, _ = d, t = $([]), b = N("formStyle", { label: "", input: "" }), f = () => {
|
|
15
|
+
t.value.push({});
|
|
16
|
+
}, v = (e) => {
|
|
17
|
+
t.value = e;
|
|
18
|
+
}, y = (e) => {
|
|
19
|
+
t.value.splice(e, 1);
|
|
20
|
+
}, V = (e, u) => {
|
|
21
|
+
switch (l.type) {
|
|
22
|
+
case "social":
|
|
23
|
+
return `${e.network}-${e.profile}`;
|
|
24
|
+
default:
|
|
25
|
+
return u;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
return r(
|
|
29
|
+
t,
|
|
30
|
+
(e) => {
|
|
31
|
+
_("update:model-value", e);
|
|
32
|
+
},
|
|
33
|
+
{ deep: !0 }
|
|
34
|
+
), r(
|
|
35
|
+
() => l.modelValue,
|
|
36
|
+
(e) => {
|
|
37
|
+
v(e ?? []);
|
|
38
|
+
},
|
|
39
|
+
{ immediate: !0 }
|
|
40
|
+
), (e, u) => {
|
|
41
|
+
const h = a("t-graphy-label"), k = a("t-button"), C = a("t-icon-button");
|
|
42
|
+
return n(), s("div", null, [
|
|
43
|
+
c("div", A, [
|
|
44
|
+
e.label ? (n(), m(h, {
|
|
45
|
+
key: 0,
|
|
46
|
+
text: e.label,
|
|
47
|
+
class: "text-right"
|
|
48
|
+
}, null, 8, ["text"])) : z("", !0),
|
|
49
|
+
i(k, {
|
|
50
|
+
label: `Add ${e.label}`,
|
|
51
|
+
variant: "primary",
|
|
52
|
+
"is-outline": !0,
|
|
53
|
+
icon: "plus",
|
|
54
|
+
size: "sm",
|
|
55
|
+
onClick: f
|
|
56
|
+
}, null, 8, ["label"])
|
|
57
|
+
]),
|
|
58
|
+
(n(!0), s(B, null, P(t.value, (g, o) => (n(), s("div", {
|
|
59
|
+
key: V(g, o),
|
|
60
|
+
label: `${e.label} ${o + 1}`,
|
|
61
|
+
class: "flex items-center justify-start mt-1 ml-2"
|
|
62
|
+
}, [
|
|
63
|
+
c("div", {
|
|
64
|
+
class: j({ [E(b).label]: !0 })
|
|
65
|
+
}, null, 2),
|
|
66
|
+
(n(), m(M(l.component), S({
|
|
67
|
+
modelValue: t.value[o],
|
|
68
|
+
"onUpdate:modelValue": (w) => t.value[o] = w
|
|
69
|
+
}, l.inputProps, U(l.listeners), { class: "my-1" }), null, 16, ["modelValue", "onUpdate:modelValue"])),
|
|
70
|
+
i(C, {
|
|
71
|
+
icon: "close",
|
|
72
|
+
size: "sm",
|
|
73
|
+
class: "ml-2",
|
|
74
|
+
onClick: () => y(o)
|
|
75
|
+
}, null, 8, ["onClick"])
|
|
76
|
+
], 8, D))), 128))
|
|
77
|
+
]);
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
export {
|
|
82
|
+
H as _
|
|
83
|
+
};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { defineComponent as ee, ref as S, inject as te, watch as ne, resolveComponent as O, openBlock as k, createElementBlock as L, normalizeClass as T, unref as U, createElementVNode as P, createVNode as V, createCommentVNode as q, withKeys as le, createBlock as se, toDisplayString as oe } from "vue";
|
|
2
|
+
import { _ as ae } from "./ButtonCopy.vue_vue_type_script_setup_true_lang-C8Ndx2n_.js";
|
|
3
|
+
import { f as re } from "./index-CjvqeRf7.js";
|
|
4
|
+
const ie = (s) => {
|
|
5
|
+
let e = 0, r = 0, l = 0, i = 0, o = 0, u = 0, m = 0, p = 0, f = 0, I = 0, c = 0, x = 0, y = 0, b = 0, M = 0, _ = 0, n = 0, d = 0, A = 2, N = 2, R = 2, g = 2, E = 3, K = 3, D = 3, W = 4, Z = 4, G = 6, B = "", $ = "", j = "", C = "Too Short";
|
|
6
|
+
const H = "abcdefghijklmnopqrstuvwxyz", J = "01234567890", Q = ")!@#$%^&*()", X = 8, v = s.replace(/\s+/g, "").split(/\s*/), w = v.length;
|
|
7
|
+
e = s.length * W, r = s.length;
|
|
8
|
+
for (let t = 0; t < w; t++) {
|
|
9
|
+
v[t].match(/[A-Z]/g) ? (B !== "" && B + 1 == t && x++, B = t, l++) : v[t].match(/[a-z]/g) ? ($ !== "" && $ + 1 == t && y++, $ = t, i++) : v[t].match(/[0-9]/g) ? (t > 0 && t < w - 1 && m++, j !== "" && j + 1 == t && b++, j = t, o++) : v[t].match(/[^a-zA-Z0-9_]/g) && (t > 0 && t < w - 1 && m++, u++);
|
|
10
|
+
let a = !1;
|
|
11
|
+
for (let h = 0; h < w; h++)
|
|
12
|
+
v[t] == v[h] && t != h && (a = !0, c += Math.abs(w / (h - t)));
|
|
13
|
+
a && (I++, f = w - I, c = Math.ceil(f ? c / f : c));
|
|
14
|
+
}
|
|
15
|
+
for (let t = 0; t < 23; t++) {
|
|
16
|
+
let a = H.substring(t, parseInt(t + 3)), h = a.split("").reverse().join("");
|
|
17
|
+
(s.toLowerCase().indexOf(a) != -1 || s.toLowerCase().indexOf(h) != -1) && M++;
|
|
18
|
+
}
|
|
19
|
+
for (let t = 0; t < 8; t++) {
|
|
20
|
+
let a = J.substring(t, parseInt(t + 3));
|
|
21
|
+
var Y = a.split("").reverse().join("");
|
|
22
|
+
(s.toLowerCase().indexOf(a) != -1 || s.toLowerCase().indexOf(Y) != -1) && _++;
|
|
23
|
+
}
|
|
24
|
+
for (let t = 0; t < 8; t++) {
|
|
25
|
+
let a = Q.substring(t, parseInt(t + 3)), h = a.split("").reverse().join("");
|
|
26
|
+
(s.toLowerCase().indexOf(a) != -1 || s.toLowerCase().indexOf(h) != -1) && n++;
|
|
27
|
+
}
|
|
28
|
+
l > 0 && l < r && (e = parseInt(e + (r - l) * 2)), i > 0 && i < r && (e = parseInt(e + (r - i) * 2)), o > 0 && o < r && (e = parseInt(e + o * Z)), u > 0 && (e = parseInt(e + u * G)), m > 0 && (e = parseInt(e + m * A)), (i > 0 || l > 0) && u === 0 && o === 0 && (e = parseInt(e - r)), i === 0 && l === 0 && u === 0 && o > 0 && (e = parseInt(e - r)), I > 0 && (e = parseInt(e - c)), x > 0 && (e = parseInt(e - x * N)), y > 0 && (e = parseInt(e - y * R)), b > 0 && (e = parseInt(e - b * g)), M > 0 && (e = parseInt(e - M * E)), _ > 0 && (e = parseInt(e - _ * K)), n > 0 && (e = parseInt(e - n * D)), p = d;
|
|
29
|
+
let z = 0;
|
|
30
|
+
return s.length >= X ? z = 3 : z = 4, p > z && (e = parseInt(e + p * 2)), e > 100 ? e = 100 : e < 0 && (e = 0), e >= 0 && e < 20 ? C = "Very Weak" : e >= 20 && e < 40 ? C = "Weak" : e >= 40 && e < 60 ? C = "Good" : e >= 60 && e < 80 ? C = "Strong" : e >= 80 && e <= 100 && (C = "Very Strong"), {
|
|
31
|
+
score: e,
|
|
32
|
+
complexity: C
|
|
33
|
+
};
|
|
34
|
+
}, F = {
|
|
35
|
+
getPasswordStrength: ie
|
|
36
|
+
}, ue = { class: "flex border h-9 relative input-roundness input-border" }, pe = { class: "border-l select-none input-border input-control" }, fe = {
|
|
37
|
+
key: 1,
|
|
38
|
+
class: "inline-block float-right select-none"
|
|
39
|
+
}, he = /* @__PURE__ */ ee({
|
|
40
|
+
name: "TInputPassword",
|
|
41
|
+
__name: "InputPassword",
|
|
42
|
+
props: {
|
|
43
|
+
autocomplete: { default: "current-password" },
|
|
44
|
+
canCopy: { type: Boolean, default: !0 },
|
|
45
|
+
encryptor: { type: Function, default: void 0 },
|
|
46
|
+
keyup: { default: () => () => {
|
|
47
|
+
} },
|
|
48
|
+
modelValue: { default: void 0 },
|
|
49
|
+
showRefresh: { type: Boolean, default: !1 },
|
|
50
|
+
showStrength: { type: Boolean, default: !1 },
|
|
51
|
+
simpleMode: { type: Boolean, default: !1 }
|
|
52
|
+
},
|
|
53
|
+
emits: ["generate", "update:modelValue", "enter"],
|
|
54
|
+
setup(s, { expose: e, emit: r }) {
|
|
55
|
+
const l = s, i = r, o = S("password"), u = S(null), m = S(0), p = S(""), f = S(!1), I = te("formStyle", { input: "w-full" }), c = S(), x = (n) => {
|
|
56
|
+
typeof n == "object" && (p.value = n.value, m.value = n.strength ? n.strength : F.getPasswordStrength(n.value).score, c.value = n.updatedAt);
|
|
57
|
+
}, y = async (n) => (m.value = F.getPasswordStrength(n).score, {
|
|
58
|
+
value: n,
|
|
59
|
+
strength: m.value,
|
|
60
|
+
encrypted: l.encryptor ? await l.encryptor(n) : n,
|
|
61
|
+
updatedAt: c.value
|
|
62
|
+
}), b = async (n) => {
|
|
63
|
+
i("update:modelValue", await y(n));
|
|
64
|
+
}, M = () => {
|
|
65
|
+
u.value && u.value.$el && u.value.$el.focus();
|
|
66
|
+
}, _ = async () => {
|
|
67
|
+
f.value = !0;
|
|
68
|
+
const n = "asdasdasd545";
|
|
69
|
+
f.value = !1, i("generate", await y(p.value)), b(n);
|
|
70
|
+
};
|
|
71
|
+
return ne(() => l.modelValue, x, { immediate: !0 }), e({ focus: M }), (n, d) => {
|
|
72
|
+
const A = O("t-icon"), N = O("t-input-text"), R = O("t-progress-line");
|
|
73
|
+
return k(), L("div", {
|
|
74
|
+
class: T({ [U(I).input]: !0 })
|
|
75
|
+
}, [
|
|
76
|
+
P("div", ue, [
|
|
77
|
+
l.canCopy ? (k(), L("div", {
|
|
78
|
+
key: 0,
|
|
79
|
+
class: T(["border-r select-none input-border input-control", { "w-12": l.canCopy }])
|
|
80
|
+
}, [
|
|
81
|
+
V(ae, {
|
|
82
|
+
class: "mx-1",
|
|
83
|
+
text: p.value,
|
|
84
|
+
"is-disabled": f.value
|
|
85
|
+
}, null, 8, ["text", "is-disabled"])
|
|
86
|
+
], 2)) : q("", !0),
|
|
87
|
+
l.showRefresh ? (k(), L("div", {
|
|
88
|
+
key: 1,
|
|
89
|
+
class: T(["border-r select-none input-border input-control", { "w-12": l.showRefresh }])
|
|
90
|
+
}, [
|
|
91
|
+
V(A, {
|
|
92
|
+
icon: "refresh",
|
|
93
|
+
size: "sm",
|
|
94
|
+
role: "button",
|
|
95
|
+
disabled: f.value,
|
|
96
|
+
onClick: _
|
|
97
|
+
}, null, 8, ["disabled"])
|
|
98
|
+
], 2)) : q("", !0),
|
|
99
|
+
V(N, {
|
|
100
|
+
modelValue: p.value,
|
|
101
|
+
"onUpdate:modelValue": d[0] || (d[0] = (g) => p.value = g),
|
|
102
|
+
type: o.value,
|
|
103
|
+
autocomplete: l.autocomplete,
|
|
104
|
+
disabled: f.value,
|
|
105
|
+
"disable-style": !0,
|
|
106
|
+
ref_key: "input",
|
|
107
|
+
ref: u,
|
|
108
|
+
class: "w-full px-2 input-bg-color input-text-color input-outline input-roundness",
|
|
109
|
+
onKeyup: [
|
|
110
|
+
d[1] || (d[1] = le((g) => i("enter"), ["enter"])),
|
|
111
|
+
l.keyup
|
|
112
|
+
],
|
|
113
|
+
onInput: d[2] || (d[2] = (g) => b(p.value))
|
|
114
|
+
}, null, 8, ["modelValue", "type", "autocomplete", "disabled", "onKeyup"]),
|
|
115
|
+
P("div", pe, [
|
|
116
|
+
V(A, {
|
|
117
|
+
icon: o.value === "password" ? "eye" : "eye-off",
|
|
118
|
+
disabled: f.value,
|
|
119
|
+
size: "sm",
|
|
120
|
+
role: "button",
|
|
121
|
+
onClick: d[3] || (d[3] = (g) => o.value = o.value === "password" ? "text" : "password")
|
|
122
|
+
}, null, 8, ["icon", "disabled"])
|
|
123
|
+
])
|
|
124
|
+
]),
|
|
125
|
+
l.showStrength ? (k(), se(R, {
|
|
126
|
+
key: 0,
|
|
127
|
+
value: m.value,
|
|
128
|
+
height: 1,
|
|
129
|
+
"show-percentage": !1,
|
|
130
|
+
class: "rounded-sm"
|
|
131
|
+
}, null, 8, ["value"])) : q("", !0),
|
|
132
|
+
c.value ? (k(), L("small", fe, " Last updated " + oe(U(re)(new Date(c.value), "MMMM do yyyy, hh:mm:ss")), 1)) : q("", !0)
|
|
133
|
+
], 2);
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
export {
|
|
138
|
+
he as _
|
|
139
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { defineComponent as w, ref as a, inject as I, onBeforeMount as h, watch as j, resolveComponent as c, openBlock as B, createElementBlock as S, normalizeClass as k, unref as E, createVNode as m, withCtx as f, createElementVNode as b, toDisplayString as l } from "vue";
|
|
2
|
+
const P = /* @__PURE__ */ w({
|
|
3
|
+
name: "TInputPhone",
|
|
4
|
+
__name: "InputPhone",
|
|
5
|
+
props: {
|
|
6
|
+
resource: {},
|
|
7
|
+
modelValue: { default: () => ({}) }
|
|
8
|
+
},
|
|
9
|
+
emits: ["update:modelValue"],
|
|
10
|
+
setup(V, { emit: v }) {
|
|
11
|
+
const i = V, C = v, u = a(""), o = a(), s = a([]), r = a([]), _ = I("formStyle", { label: "", input: "" }), d = () => {
|
|
12
|
+
if (!o.value)
|
|
13
|
+
return;
|
|
14
|
+
const e = r.value.find(
|
|
15
|
+
(n) => n.dialCode === o.value
|
|
16
|
+
);
|
|
17
|
+
e && C("update:modelValue", {
|
|
18
|
+
iso2: e.iso2,
|
|
19
|
+
dialCode: e.dialCode,
|
|
20
|
+
number: u.value ?? ""
|
|
21
|
+
});
|
|
22
|
+
}, y = async () => {
|
|
23
|
+
r.value = await i.resource(), s.value = r.value.map(
|
|
24
|
+
(e) => ({
|
|
25
|
+
label: e,
|
|
26
|
+
value: e.dialCode
|
|
27
|
+
})
|
|
28
|
+
) ?? [];
|
|
29
|
+
}, p = async (e) => {
|
|
30
|
+
e && typeof e == "object" && (o.value = e.dialCode, "number" in e && (u.value = e.number));
|
|
31
|
+
};
|
|
32
|
+
return h(async () => {
|
|
33
|
+
await y(), p(i.modelValue);
|
|
34
|
+
}), j(
|
|
35
|
+
() => i.modelValue,
|
|
36
|
+
(e) => {
|
|
37
|
+
p(e);
|
|
38
|
+
},
|
|
39
|
+
{ immediate: !0 }
|
|
40
|
+
), (e, n) => {
|
|
41
|
+
const x = c("t-input-select"), g = c("t-input-text");
|
|
42
|
+
return B(), S("div", {
|
|
43
|
+
class: k(["flex border h-9 input-bg-color input-text-color input-border input-roundness", { [E(_).input]: !0 }])
|
|
44
|
+
}, [
|
|
45
|
+
m(x, {
|
|
46
|
+
modelValue: o.value,
|
|
47
|
+
"onUpdate:modelValue": [
|
|
48
|
+
n[0] || (n[0] = (t) => o.value = t),
|
|
49
|
+
d
|
|
50
|
+
],
|
|
51
|
+
options: s.value,
|
|
52
|
+
"disable-style": !0,
|
|
53
|
+
class: "border-r w-min-20 flex justify-center items-center input-border"
|
|
54
|
+
}, {
|
|
55
|
+
default: f((t) => [
|
|
56
|
+
b("span", null, l(t.flag) + " " + l(t.name) + " +" + l(t.dialCode), 1)
|
|
57
|
+
]),
|
|
58
|
+
selection: f((t) => [
|
|
59
|
+
b("span", null, l(t.flag) + " +" + l(t.dialCode), 1)
|
|
60
|
+
]),
|
|
61
|
+
_: 1
|
|
62
|
+
}, 8, ["modelValue", "options"]),
|
|
63
|
+
m(g, {
|
|
64
|
+
modelValue: u.value,
|
|
65
|
+
"onUpdate:modelValue": n[1] || (n[1] = (t) => u.value = t),
|
|
66
|
+
"disable-style": !0,
|
|
67
|
+
class: "w-full input-bg-color input-text-color input-outline input-roundness input-padding",
|
|
68
|
+
onInput: d
|
|
69
|
+
}, null, 8, ["modelValue"])
|
|
70
|
+
], 2);
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
export {
|
|
75
|
+
P as _
|
|
76
|
+
};
|