@caipira/tamandua 0.0.8 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Avatar.js +2 -2
- package/dist/Avatar.vue_vue_type_script_setup_true_lang-DshMIzMM.js +51 -0
- package/dist/{Button-Bzvqv1bQ.js → Button-BVshp51o.js} +2 -2
- package/dist/Button.js +2 -2
- package/dist/{Button.vue_vue_type_style_index_0_scoped_5056001e_lang-DmQxrvfv.js → Button.vue_vue_type_style_index_0_scoped_8639b950_lang-C9uKZk0F.js} +24 -24
- package/dist/ButtonCopy.js +2 -2
- package/dist/ButtonCopy.vue_vue_type_script_setup_true_lang-CZsqPE-4.js +42 -0
- package/dist/{Drawer-DH5EEenO.js → Drawer-omdZnBPG.js} +6 -6
- package/dist/Drawer.js +2 -2
- package/dist/Dropdown.js +2 -2
- package/dist/{Dropdown.vue_vue_type_script_setup_true_lang-CJ6tMLP5.js → Dropdown.vue_vue_type_script_setup_true_lang-BUcFKrav.js} +2 -2
- package/dist/FileDrop.js +2 -2
- package/dist/{FileDrop.vue_vue_type_script_setup_true_lang-Cmrpt2_c.js → FileDrop.vue_vue_type_script_setup_true_lang-DJ05bRaU.js} +2 -2
- package/dist/Form.js +2 -2
- package/dist/{Form.vue_vue_type_script_setup_true_lang-CgTo7ahn.js → Form.vue_vue_type_script_setup_true_lang-DIh6jDi0.js} +11 -11
- package/dist/GraphyPrice.js +2 -2
- package/dist/{GraphyPrice.vue_vue_type_script_setup_true_lang-BOW4su3l.js → GraphyPrice.vue_vue_type_script_setup_true_lang-BxKdnVzF.js} +1 -1
- package/dist/Icon.js +2 -2
- package/dist/{Icon.vue_vue_type_script_setup_true_lang-hxJ1wXXd.js → Icon.vue_vue_type_script_setup_true_lang-DiRGfOxc.js} +16 -16
- package/dist/IconButton.js +2 -2
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-BDjy7ycQ.js → IconButton.vue_vue_type_script_setup_true_lang-DEL6iIAu.js} +30 -30
- package/dist/InputAvatar.js +2 -2
- package/dist/{InputAvatar.vue_vue_type_script_setup_true_lang-Dzq2QUAy.js → InputAvatar.vue_vue_type_script_setup_true_lang-coNpUH5g.js} +7 -7
- package/dist/InputColor.js +2 -2
- package/dist/{InputColor.vue_vue_type_script_setup_true_lang-DunYzjId.js → InputColor.vue_vue_type_script_setup_true_lang-CZ0o-B7I.js} +2 -2
- package/dist/InputDate.js +2 -2
- package/dist/{InputDate.vue_vue_type_script_setup_true_lang-DM9vaaiW.js → InputDate.vue_vue_type_script_setup_true_lang-D1H0urIZ.js} +44 -44
- package/dist/InputPassword.js +2 -2
- package/dist/{InputPassword.vue_vue_type_script_setup_true_lang-SuGempaV.js → InputPassword.vue_vue_type_script_setup_true_lang-kknXv5I-.js} +15 -15
- package/dist/InputPhone.js +2 -2
- package/dist/{InputPhone.vue_vue_type_script_setup_true_lang-BH89TX0s.js → InputPhone.vue_vue_type_script_setup_true_lang-uNqXphQY.js} +4 -4
- package/dist/InputPrice.js +2 -2
- package/dist/{InputPrice.vue_vue_type_script_setup_true_lang-Zi-JuhSl.js → InputPrice.vue_vue_type_script_setup_true_lang-BBi8qKn8.js} +7 -7
- package/dist/InputRadio.js +2 -2
- package/dist/{InputRadio.vue_vue_type_script_setup_true_lang-cPnYGpJ_.js → InputRadio.vue_vue_type_script_setup_true_lang-Dqbov2kN.js} +1 -1
- package/dist/InputSelect.js +2 -2
- package/dist/{InputSelect.vue_vue_type_script_setup_true_lang-DSM-ClgU.js → InputSelect.vue_vue_type_script_setup_true_lang-ByRPZrIg.js} +67 -67
- package/dist/InputSwitch.js +2 -2
- package/dist/{InputSwitch.vue_vue_type_script_setup_true_lang-DCYkakov.js → InputSwitch.vue_vue_type_script_setup_true_lang-Dq_U-mFJ.js} +6 -6
- package/dist/InputText.js +2 -2
- package/dist/{InputText.vue_vue_type_script_setup_true_lang-KUUuOOlk.js → InputText.vue_vue_type_script_setup_true_lang-CkoBmp9p.js} +3 -3
- package/dist/InputTextarea.js +2 -2
- package/dist/{InputTextarea.vue_vue_type_script_setup_true_lang-01amgZ6U.js → InputTextarea.vue_vue_type_script_setup_true_lang-IMz1cgV5.js} +7 -7
- package/dist/Modal.js +2 -2
- package/dist/{Modal.vue_vue_type_script_setup_true_lang-DE2ySBCY.js → Modal.vue_vue_type_script_setup_true_lang-DLl5shGS.js} +1 -1
- package/dist/ModalForm.js +2 -2
- package/dist/{ModalForm.vue_vue_type_script_setup_true_lang-VhRoRmxZ.js → ModalForm.vue_vue_type_script_setup_true_lang-CUk3DI3O.js} +1 -1
- package/dist/Popconfirm.js +2 -2
- package/dist/{Popconfirm.vue_vue_type_script_setup_true_lang-Dy1m3j6J.js → Popconfirm.vue_vue_type_script_setup_true_lang-DWMW-u7V.js} +1 -1
- package/dist/Popover.js +2 -2
- package/dist/{Popover.vue_vue_type_script_setup_true_lang-OFi2-aWk.js → Popover.vue_vue_type_script_setup_true_lang-Dhcy-iL3.js} +95 -95
- package/dist/{ProgressCircle-iWjZBZwm.js → ProgressCircle-BY2eeyGY.js} +7 -7
- package/dist/ProgressCircle.js +2 -2
- package/dist/{ProgressLine-BT-YgI1t.js → ProgressLine-CfZKbUcx.js} +1 -1
- package/dist/ProgressLine.js +2 -2
- package/dist/{Table-CTeoQmG3.js → Table-grkQ9tby.js} +2 -2
- package/dist/Table.js +2 -2
- package/dist/Tag.js +2 -2
- package/dist/{Tag.vue_vue_type_script_setup_true_lang-BeWozUNz.js → Tag.vue_vue_type_script_setup_true_lang-vLIykMPS.js} +5 -5
- package/dist/Toast.js +2 -2
- package/dist/{Toast.vue_vue_type_script_setup_true_lang-CpDXLnat.js → Toast.vue_vue_type_script_setup_true_lang-BAsJNxU_.js} +11 -11
- package/dist/components.js +30 -30
- package/dist/composables.js +16 -12
- package/dist/{crud-d9NUddtZ.js → crud-lKm5HfM4.js} +5 -6
- package/dist/enums.js +2 -2
- package/dist/{index-DBecmJ_I.js → form-BkXpIJ0e.js} +3 -4
- package/dist/form2.js +1 -1
- package/dist/{plugin-Dg87-qPm.js → plugin--F5QK2vy.js} +1 -1
- package/dist/{plugin-DDPcV7Fj.js → plugin-3VDgn3kO.js} +1 -1
- package/dist/{plugin-CoGzF5YO.js → plugin-7M6YmkX3.js} +1 -1
- package/dist/{plugin-turENJ3j.js → plugin-A7Ru6-Ae.js} +1 -1
- package/dist/{plugin-BHaaQBWr.js → plugin-AFgt8nH4.js} +1 -1
- package/dist/{plugin-BTfinCzO.js → plugin-BCt5Fd1Y.js} +1 -1
- package/dist/{plugin-CF2ujTru.js → plugin-BLdCHEGS.js} +1 -1
- package/dist/{plugin-CIRUNt1_.js → plugin-BURDNZOq.js} +1 -1
- package/dist/{plugin-BPR3wKP8.js → plugin-BZC231Oj.js} +1 -1
- package/dist/{plugin-DdrfzyNc.js → plugin-BrwUi1gG.js} +13 -13
- package/dist/{plugin-rFDM6yOH.js → plugin-C3tFXHbZ.js} +1 -1
- package/dist/{plugin-Dbdsdqqh.js → plugin-CGg5IOSy.js} +1 -1
- package/dist/{plugin-B5Guy9c3.js → plugin-CIK2QwfI.js} +1 -1
- package/dist/{plugin-Br57SoWk.js → plugin-CNoSZVuJ.js} +1 -1
- package/dist/{plugin-C27tBvHp.js → plugin-Ce0OhiOa.js} +1 -1
- package/dist/{plugin-hpCgD9-h.js → plugin-Cp-YlP7M.js} +1 -1
- package/dist/{plugin-Xg1SCgfO.js → plugin-CqcxTgW6.js} +1 -1
- package/dist/{plugin-CxGfRAW1.js → plugin-CwJMh4ht.js} +1 -1
- package/dist/{plugin-CHF44uaz.js → plugin-D9vhvf_z.js} +1 -1
- package/dist/{plugin-APHHlXVq.js → plugin-DAoreRkB.js} +1 -1
- package/dist/{plugin-CSrviP_c.js → plugin-DGx9kLvd.js} +1 -1
- package/dist/{plugin-DSCBycRO.js → plugin-DLUdf4JV.js} +1 -1
- package/dist/{plugin-BC-6G-0o.js → plugin-DRcJuXpS.js} +1 -1
- package/dist/{plugin-Bg2uvrOR.js → plugin-DT7LVAli.js} +1 -1
- package/dist/{plugin-C2MSl67l.js → plugin-DXSsGfRI.js} +1 -1
- package/dist/{plugin-nzCD2cWq.js → plugin-DYnmuOWz.js} +1 -1
- package/dist/{plugin-BeNCIHgJ.js → plugin-DkDbha5K.js} +1 -1
- package/dist/{plugin-BLe_xel4.js → plugin-DmkLbCIU.js} +1 -1
- package/dist/{plugin-CpACKUGt.js → plugin-DppW8rQi.js} +1 -1
- package/dist/{plugin--u5hKcI0.js → plugin-c1rFpmlH.js} +1 -1
- package/dist/plugins-QF-BxY4i.js +107 -0
- package/dist/plugins.js +44 -44
- package/dist/tamandua.js +1 -1
- package/dist/types/components/Avatar/Avatar.vue.d.ts +5 -20
- package/dist/types/components/Avatar/index.d.ts +1 -0
- package/dist/types/components/Avatar/types.d.ts +11 -0
- package/dist/types/components/Backdrop/Backdrop.vue.d.ts +4 -6
- package/dist/types/components/Backdrop/index.d.ts +1 -0
- package/dist/types/components/Backdrop/types.d.ts +6 -0
- package/dist/types/components/Button/Button.vue.d.ts +8 -66
- package/dist/types/components/Button/index.d.ts +1 -0
- package/dist/types/components/Button/types.d.ts +23 -0
- package/dist/types/components/ButtonCopy/ButtonCopy.vue.d.ts +4 -9
- package/dist/types/components/ButtonCopy/index.d.ts +1 -0
- package/dist/types/components/ButtonCopy/types.d.ts +4 -0
- package/dist/types/components/Drawer/Drawer.vue.d.ts +2 -56
- package/dist/types/components/Drawer/index.d.ts +1 -0
- package/dist/types/components/Drawer/types.d.ts +11 -0
- package/dist/types/components/Dropdown/Dropdown.vue.d.ts +4 -108
- package/dist/types/components/Dropdown/index.d.ts +1 -0
- package/dist/types/components/Dropdown/types.d.ts +25 -0
- package/dist/types/components/FileDrop/FileDrop.vue.d.ts +6 -12
- package/dist/types/components/FileDrop/index.d.ts +1 -0
- package/dist/types/components/FileDrop/types.d.ts +8 -0
- package/dist/types/components/Form/Form.vue.d.ts +11 -26
- package/dist/types/components/Form/index.d.ts +1 -0
- package/dist/types/components/Form/types.d.ts +21 -0
- package/dist/types/components/FormItem/FormItem.vue.d.ts +4 -10
- package/dist/types/components/FormItem/index.d.ts +1 -0
- package/dist/types/components/FormItem/types.d.ts +5 -0
- package/dist/types/components/GraphyEmpty/GraphyEmpty.vue.d.ts +3 -5
- package/dist/types/components/GraphyEmpty/index.d.ts +1 -0
- package/dist/types/components/GraphyEmpty/types.d.ts +3 -0
- package/dist/types/components/GraphyLabel/GraphyLabel.vue.d.ts +2 -34
- package/dist/types/components/GraphyLabel/index.d.ts +1 -0
- package/dist/types/components/GraphyLabel/types.d.ts +5 -0
- package/dist/types/components/GraphyPrice/GraphyPrice.vue.d.ts +4 -15
- package/dist/types/components/GraphyPrice/index.d.ts +1 -0
- package/dist/types/components/GraphyPrice/types.d.ts +9 -0
- package/dist/types/components/GraphySubtitle/GraphySubtitle.vue.d.ts +2 -29
- package/dist/types/components/GraphySubtitle/index.d.ts +1 -0
- package/dist/types/components/GraphySubtitle/types.d.ts +4 -0
- package/dist/types/components/GraphyTitle/GraphyTitle.vue.d.ts +3 -14
- package/dist/types/components/GraphyTitle/index.d.ts +1 -0
- package/dist/types/components/GraphyTitle/types.d.ts +3 -0
- package/dist/types/components/Icon/Icon.vue.d.ts +3 -37
- package/dist/types/components/Icon/index.d.ts +1 -0
- package/dist/types/components/Icon/types.d.ts +7 -0
- package/dist/types/components/IconButton/IconButton.vue.d.ts +10 -68
- package/dist/types/components/IconButton/index.d.ts +1 -0
- package/dist/types/components/IconButton/types.d.ts +23 -0
- package/dist/types/components/InputAvatar/InputAvatar.vue.d.ts +6 -8
- package/dist/types/components/InputAvatar/index.d.ts +1 -0
- package/dist/types/components/InputAvatar/types.d.ts +6 -0
- package/dist/types/components/InputCheckbox/InputCheckbox.vue.d.ts +2 -50
- package/dist/types/components/InputCheckbox/index.d.ts +1 -0
- package/dist/types/components/InputCheckbox/types.d.ts +11 -0
- package/dist/types/components/InputColor/InputColor.vue.d.ts +2 -38
- package/dist/types/components/InputColor/index.d.ts +1 -0
- package/dist/types/components/InputColor/types.d.ts +8 -0
- package/dist/types/components/InputDate/InputDate.vue.d.ts +3 -22
- package/dist/types/components/InputDate/index.d.ts +1 -0
- package/dist/types/components/InputDate/types.d.ts +15 -0
- package/dist/types/components/InputPassword/InputPassword.vue.d.ts +3 -12
- package/dist/types/components/InputPassword/index.d.ts +1 -0
- package/dist/types/components/InputPassword/types.d.ts +17 -0
- package/dist/types/components/InputPhone/InputPhone.vue.d.ts +19 -16
- package/dist/types/components/InputPhone/index.d.ts +1 -0
- package/dist/types/components/InputPhone/types.d.ts +13 -0
- package/dist/types/components/InputPrice/InputPrice.vue.d.ts +2 -37
- package/dist/types/components/InputPrice/index.d.ts +1 -0
- package/dist/types/components/InputPrice/types.d.ts +10 -0
- package/dist/types/components/InputRadio/InputRadio.vue.d.ts +3 -16
- package/dist/types/components/InputRadio/InputRadioGroup.vue.d.ts +2 -35
- package/dist/types/components/InputRadio/index.d.ts +1 -0
- package/dist/types/components/InputRadio/types.d.ts +12 -0
- package/dist/types/components/InputSelect/InputSelect.vue.d.ts +2 -106
- package/dist/types/components/InputSelect/index.d.ts +1 -0
- package/dist/types/components/InputSelect/types.d.ts +31 -0
- package/dist/types/components/InputSwitch/InputSwitch.vue.d.ts +2 -38
- package/dist/types/components/InputSwitch/index.d.ts +1 -0
- package/dist/types/components/InputSwitch/types.d.ts +8 -0
- package/dist/types/components/InputText/InputText.vue.d.ts +4 -16
- package/dist/types/components/InputText/index.d.ts +1 -0
- package/dist/types/components/InputText/types.d.ts +12 -0
- package/dist/types/components/InputTextarea/InputTextarea.vue.d.ts +2 -48
- package/dist/types/components/InputTextarea/index.d.ts +1 -0
- package/dist/types/components/InputTextarea/types.d.ts +10 -0
- package/dist/types/components/LineChart/LineChart.vue.d.ts +3 -16
- package/dist/types/components/LineChart/index.d.ts +1 -0
- package/dist/types/components/LineChart/types.d.ts +4 -0
- package/dist/types/components/Modal/Modal.vue.d.ts +2 -59
- package/dist/types/components/Modal/index.d.ts +1 -0
- package/dist/types/components/Modal/types.d.ts +10 -0
- package/dist/types/components/ModalForm/ModalForm.vue.d.ts +4 -18
- package/dist/types/components/ModalForm/index.d.ts +1 -0
- package/dist/types/components/ModalForm/types.d.ts +17 -0
- package/dist/types/components/Pagination/Pagination.vue.d.ts +2 -48
- package/dist/types/components/Pagination/index.d.ts +1 -0
- package/dist/types/components/Pagination/types.d.ts +11 -0
- package/dist/types/components/PieChart/PieChart.vue.d.ts +3 -16
- package/dist/types/components/PieChart/index.d.ts +1 -0
- package/dist/types/components/PieChart/types.d.ts +4 -0
- package/dist/types/components/Popconfirm/Popconfirm.vue.d.ts +2 -38
- package/dist/types/components/Popconfirm/index.d.ts +1 -0
- package/dist/types/components/Popconfirm/types.d.ts +9 -0
- package/dist/types/components/Popover/Popover.vue.d.ts +4 -17
- package/dist/types/components/Popover/index.d.ts +1 -0
- package/dist/types/components/Popover/types.d.ts +10 -0
- package/dist/types/components/ProgressCircle/ProgressCircle.vue.d.ts +2 -47
- package/dist/types/components/ProgressCircle/index.d.ts +1 -0
- package/dist/types/components/ProgressCircle/types.d.ts +7 -0
- package/dist/types/components/ProgressLine/ProgressLine.vue.d.ts +2 -66
- package/dist/types/components/ProgressLine/index.d.ts +1 -0
- package/dist/types/components/ProgressLine/types.d.ts +12 -0
- package/dist/types/components/SensitiveInfo/SensitiveInfo.vue.d.ts +3 -14
- package/dist/types/components/SensitiveInfo/index.d.ts +1 -0
- package/dist/types/components/SensitiveInfo/types.d.ts +3 -0
- package/dist/types/components/Tab/Tab.vue.d.ts +3 -30
- package/dist/types/components/Tab/index.d.ts +1 -0
- package/dist/types/components/Tab/types.d.ts +5 -0
- package/dist/types/components/Table/Table.vue.d.ts +5 -12
- package/dist/types/components/Table/index.d.ts +1 -1
- package/dist/types/components/Table/types.d.ts +4 -0
- package/dist/types/components/Toast/Toast.vue.d.ts +3 -20
- package/dist/types/components/Toast/index.d.ts +1 -0
- package/dist/types/components/Toast/types.d.ts +8 -0
- package/dist/types/components/index.d.ts +42 -42
- package/dist/types/composables/index.d.ts +3 -1
- package/dist/types/composables/useClipboard.d.ts +3 -0
- package/dist/types/composables/useDomHelpers.d.ts +7 -0
- package/dist/types/form/crud.d.ts +1 -1
- package/dist/{ui-BLR-4Xlv.js → ui-DtSy-y9T.js} +4 -4
- package/dist/useClipboard-BHFD0Jvv.js +11 -0
- package/dist/useDomHelpers-5CFMo6bx.js +23 -0
- package/package.json +3 -4
- package/dist/Avatar.vue_vue_type_script_setup_true_lang-C3xje4Mr.js +0 -51
- package/dist/ButtonCopy.vue_vue_type_script_setup_true_lang-C8Ndx2n_.js +0 -43
- package/dist/plugins-DumG9GBB.js +0 -107
- package/dist/types/services/clipboard.d.ts +0 -2
- package/dist/types/services/ui.d.ts +0 -9
- package/dist/ui-MicIL_Lw.js +0 -23
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
5
|
-
let
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as ue, ref as p, inject as re, computed as R, onBeforeMount as ce, onBeforeUnmount as pe, watch as A, resolveComponent as b, openBlock as u, createElementBlock as d, normalizeClass as k, unref as K, createElementVNode as I, withKeys as de, renderSlot as g, normalizeProps as V, mergeProps as j, Fragment as _, renderList as M, guardReactiveProps as U, createBlock as H, toDisplayString as fe, createCommentVNode as N, withDirectives as me, vModelText as ve, createVNode as P, withCtx as q, createSlots as ye, nextTick as be } from "vue";
|
|
2
|
+
import { u as he } from "./useDomHelpers-5CFMo6bx.js";
|
|
3
|
+
import { b as we, E as ke } from "./ui-DtSy-y9T.js";
|
|
4
|
+
const ge = { key: 1 }, Ve = ["placeholder", "disabled", "readonly"], _e = { class: "flex w-full justify-between items-center" }, Se = { class: "flex items-center" };
|
|
5
|
+
let xe = 0;
|
|
6
|
+
const Re = /* @__PURE__ */ ue({
|
|
7
7
|
name: "TInputSelect",
|
|
8
8
|
__name: "InputSelect",
|
|
9
9
|
props: {
|
|
10
|
-
size: { default:
|
|
10
|
+
size: { default: we.DEFAULT },
|
|
11
11
|
options: { default: () => [] },
|
|
12
12
|
mapper: { type: Function, default: (f) => ({ value: f.id ?? f.uuid, label: f }) },
|
|
13
13
|
filter: { type: Function, default: (f, S) => S.label.toLowerCase().indexOf(f.toLowerCase()) >= 0 },
|
|
@@ -21,32 +21,32 @@ const Ee = /* @__PURE__ */ se({
|
|
|
21
21
|
initialValue: {},
|
|
22
22
|
disableStyle: { type: Boolean, default: !1 },
|
|
23
23
|
isSearchable: { type: Boolean, default: !1 },
|
|
24
|
-
dropdownPlacement: { default:
|
|
24
|
+
dropdownPlacement: { default: ke.BOTTOM }
|
|
25
25
|
},
|
|
26
|
-
emits: ["update:
|
|
26
|
+
emits: ["update:model-value"],
|
|
27
27
|
setup(f, { emit: S }) {
|
|
28
28
|
const l = f;
|
|
29
29
|
let x = !1, h, T = "";
|
|
30
|
-
const
|
|
31
|
-
|
|
30
|
+
const G = S, J = `checkbox_${++xe}`, r = p(""), a = p([]), $ = p(null), D = re("formStyle", { label: "", input: "" }), C = p(null), n = p(!1), L = p(null), o = p([]), { wasClickOutsideOfContainer: Q } = he(), c = p(null), B = R(() => o.value.length > 0), O = R(() => l.isSearchable && n.value), v = R(() => typeof l.resource == "function"), W = (e) => !l.multiple || !l.modelValue || !Array.isArray(l.modelValue) ? !1 : l.modelValue.includes(e.option[l.identifier]), X = (e = l.modelValue) => !(e === void 0 || e === "" || Array.isArray(e) && e.length === 0), Y = (e) => {
|
|
31
|
+
G("update:model-value", e);
|
|
32
32
|
}, m = (e = l.modelValue) => {
|
|
33
|
-
if (
|
|
33
|
+
if (X(e))
|
|
34
34
|
if (l.multiple)
|
|
35
|
-
Array.isArray(e) && (
|
|
35
|
+
Array.isArray(e) && (o.value = e.map(
|
|
36
36
|
(t) => E(t)
|
|
37
37
|
).filter((t) => t > -1));
|
|
38
38
|
else {
|
|
39
39
|
const t = E(e);
|
|
40
|
-
~t && (
|
|
40
|
+
~t && (o.value = [t]);
|
|
41
41
|
}
|
|
42
42
|
}, z = (e) => {
|
|
43
|
-
n.value = !n.value, n.value && O.value &&
|
|
43
|
+
n.value = !n.value, n.value && O.value && be(() => {
|
|
44
44
|
$.value?.focus();
|
|
45
45
|
}), e.stopPropagation();
|
|
46
|
-
}, E = (e) =>
|
|
46
|
+
}, E = (e) => a.value.findIndex(
|
|
47
47
|
(t) => t.value === e
|
|
48
48
|
), F = (e) => {
|
|
49
|
-
C.value &&
|
|
49
|
+
C.value && Q(e, C.value) && (n.value = !1);
|
|
50
50
|
}, w = async (e = !1) => {
|
|
51
51
|
if (!l.resource)
|
|
52
52
|
return;
|
|
@@ -56,41 +56,41 @@ const Ee = /* @__PURE__ */ se({
|
|
|
56
56
|
};
|
|
57
57
|
e && c.value && c.value.pages > c.value.page ? t.page = c.value.page + 1 : e = !1, !r.value && l.modelValue && (t.i = l.modelValue);
|
|
58
58
|
const i = await l.resource(t);
|
|
59
|
-
e ?
|
|
60
|
-
},
|
|
59
|
+
e ? a.value.push(...i.items.map(l.mapper)) : a.value = i.items.map(l.mapper), c.value = i.pagination, !v.value && r.value && m(r.value);
|
|
60
|
+
}, Z = () => {
|
|
61
61
|
T !== r.value && (h && (clearTimeout(h), h = null), h = setTimeout(() => {
|
|
62
|
-
T = r.value, v.value ? (n.value || (n.value = !0), w()) : l.isSearchable && (
|
|
62
|
+
T = r.value, v.value ? (n.value || (n.value = !0), w()) : l.isSearchable && (a.value = l.options.filter(
|
|
63
63
|
(e) => l.filter(r.value, e)
|
|
64
64
|
));
|
|
65
65
|
}, 500));
|
|
66
|
-
},
|
|
66
|
+
}, ee = () => {
|
|
67
67
|
n.value = !1;
|
|
68
|
-
},
|
|
68
|
+
}, le = (e) => {
|
|
69
69
|
n.value = !1, e.stopPropagation();
|
|
70
|
-
},
|
|
70
|
+
}, te = ({
|
|
71
71
|
index: e,
|
|
72
72
|
hold: t
|
|
73
73
|
}) => {
|
|
74
74
|
if (x = !0, l.multiple) {
|
|
75
|
-
const i =
|
|
75
|
+
const i = o.value.findIndex(
|
|
76
76
|
(y) => y === e
|
|
77
77
|
);
|
|
78
|
-
~i ?
|
|
78
|
+
~i ? o.value.splice(i, 1) : o.value.push(e);
|
|
79
79
|
} else
|
|
80
|
-
|
|
80
|
+
o.value = [e];
|
|
81
81
|
(!l.multiple || !t) && (n.value = !1);
|
|
82
|
-
},
|
|
82
|
+
}, oe = () => {
|
|
83
83
|
v.value && c.value && c.value.pages > c.value.page && w(!0);
|
|
84
84
|
}, ae = async (e) => {
|
|
85
85
|
switch (e.key) {
|
|
86
86
|
case "ArrowDown":
|
|
87
|
-
|
|
87
|
+
L.value?.move(e);
|
|
88
88
|
break;
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
|
-
return
|
|
92
|
-
v.value ? (await w(), m()) : l.options.length > 0 && (
|
|
93
|
-
}),
|
|
91
|
+
return ce(async () => {
|
|
92
|
+
v.value ? (await w(), m()) : l.options.length > 0 && (a.value = l.options), !l.modelValue && l.initialValue ? m(l.initialValue) : m(l.modelValue), document.addEventListener("click", F);
|
|
93
|
+
}), pe(() => {
|
|
94
94
|
document.removeEventListener("click", F);
|
|
95
95
|
}), A(
|
|
96
96
|
() => l.modelValue,
|
|
@@ -98,23 +98,23 @@ const Ee = /* @__PURE__ */ se({
|
|
|
98
98
|
e && (E(e) < 0 && v.value && await w(), m(e));
|
|
99
99
|
}
|
|
100
100
|
), A(
|
|
101
|
-
|
|
101
|
+
o,
|
|
102
102
|
(e) => {
|
|
103
|
-
const t = l.multiple ?
|
|
104
|
-
(i, y) =>
|
|
105
|
-
).map((i) => i.value) :
|
|
106
|
-
x && (x = !1,
|
|
103
|
+
const t = l.multiple ? a.value.filter(
|
|
104
|
+
(i, y) => o.value.includes(y)
|
|
105
|
+
).map((i) => i.value) : a.value[o.value[0]].value;
|
|
106
|
+
x && (x = !1, Y(t));
|
|
107
107
|
},
|
|
108
108
|
{ deep: !0 }
|
|
109
109
|
), A(
|
|
110
110
|
() => l.options,
|
|
111
111
|
(e) => {
|
|
112
|
-
e.length > 0 && (
|
|
112
|
+
e.length > 0 && (a.value = e, l.modelValue && o.value.length === 0 && m(l.modelValue));
|
|
113
113
|
}
|
|
114
114
|
), (e, t) => {
|
|
115
|
-
const i = b("t-tag"), y = b("t-icon-button"),
|
|
115
|
+
const i = b("t-tag"), y = b("t-icon-button"), ne = b("t-icon"), ie = b("t-dropdown"), se = b("t-popover");
|
|
116
116
|
return u(), d("div", {
|
|
117
|
-
class: k({ [K(
|
|
117
|
+
class: k({ [K(D).input]: !l.disableStyle })
|
|
118
118
|
}, [
|
|
119
119
|
I("div", {
|
|
120
120
|
ref_key: "wrapperRef",
|
|
@@ -123,14 +123,14 @@ const Ee = /* @__PURE__ */ se({
|
|
|
123
123
|
"h-9": !l.disableStyle && !l.multiple,
|
|
124
124
|
"min-h-9": !l.disableStyle && l.multiple,
|
|
125
125
|
"text-left select-none input-bg-color input-text-color border input-border input-roundness": !l.disableStyle,
|
|
126
|
-
[K(
|
|
126
|
+
[K(D).input]: !l.disableStyle
|
|
127
127
|
}, "inline-flex justify-between items-center w-full text-left"]),
|
|
128
128
|
role: "button",
|
|
129
129
|
onClick: z,
|
|
130
|
-
onBlur:
|
|
131
|
-
onKeyup:
|
|
130
|
+
onBlur: ee,
|
|
131
|
+
onKeyup: de(le, ["esc"])
|
|
132
132
|
}, [
|
|
133
|
-
O.value ?
|
|
133
|
+
O.value ? me((u(), d("input", {
|
|
134
134
|
key: 1,
|
|
135
135
|
"onUpdate:modelValue": t[0] || (t[0] = (s) => r.value = s),
|
|
136
136
|
type: "text",
|
|
@@ -141,10 +141,10 @@ const Ee = /* @__PURE__ */ se({
|
|
|
141
141
|
readonly: !l.isSearchable,
|
|
142
142
|
class: k([{ "cursor-pointer": !l.isSearchable }, "w-full h-9 bg-transparent input-padding input-roundness input-outline"]),
|
|
143
143
|
onClick: t[1] || (t[1] = (s) => s.stopPropagation()),
|
|
144
|
-
onInput:
|
|
144
|
+
onInput: Z,
|
|
145
145
|
onKeydown: ae
|
|
146
|
-
}, null, 42,
|
|
147
|
-
[
|
|
146
|
+
}, null, 42, Ve)), [
|
|
147
|
+
[ve, r.value]
|
|
148
148
|
]) : (u(), d("div", {
|
|
149
149
|
key: 0,
|
|
150
150
|
class: k(["flex items-center ml-2", {
|
|
@@ -152,15 +152,15 @@ const Ee = /* @__PURE__ */ se({
|
|
|
152
152
|
"flex-wrap": l.multiple
|
|
153
153
|
}])
|
|
154
154
|
}, [
|
|
155
|
-
e.$slots.selection && B.value ? g(e.$slots, "selection", V(j({ key: 0 },
|
|
156
|
-
l.multiple ? (u(!0), d(_, { key: 0 }, M(
|
|
155
|
+
e.$slots.selection && B.value ? g(e.$slots, "selection", V(j({ key: 0 }, a.value[o.value[0]].label))) : e.$slots.default && B.value ? (u(), d(_, { key: 1 }, [
|
|
156
|
+
l.multiple ? (u(!0), d(_, { key: 0 }, M(o.value, (s) => g(e.$slots, "default", V(U(a.value[s].label)))), 256)) : g(e.$slots, "default", V(j({ key: 1 }, a.value[o.value[0]].label)))
|
|
157
157
|
], 64)) : B.value ? (u(), d(_, { key: 2 }, [
|
|
158
|
-
l.multiple ? (u(!0), d(_, { key: 0 }, M(
|
|
158
|
+
l.multiple ? (u(!0), d(_, { key: 0 }, M(o.value, (s) => (u(), H(i, {
|
|
159
159
|
key: s,
|
|
160
|
-
text:
|
|
160
|
+
text: a.value[s].label,
|
|
161
161
|
color: "#6e6e6e"
|
|
162
|
-
}, null, 8, ["text"]))), 128)) : (u(), d("span",
|
|
163
|
-
], 64)) :
|
|
162
|
+
}, null, 8, ["text"]))), 128)) : (u(), d("span", ge, fe(a.value[o.value[0]]?.label), 1))
|
|
163
|
+
], 64)) : N("", !0)
|
|
164
164
|
], 2)),
|
|
165
165
|
P(y, {
|
|
166
166
|
"disable-style": !0,
|
|
@@ -169,36 +169,36 @@ const Ee = /* @__PURE__ */ se({
|
|
|
169
169
|
onClick: z
|
|
170
170
|
}, null, 8, ["icon"])
|
|
171
171
|
], 34),
|
|
172
|
-
P(
|
|
172
|
+
P(se, {
|
|
173
173
|
placement: l.dropdownPlacement,
|
|
174
174
|
"is-visible": n.value
|
|
175
175
|
}, {
|
|
176
|
-
content:
|
|
177
|
-
P(
|
|
176
|
+
content: q(() => [
|
|
177
|
+
P(ie, {
|
|
178
178
|
ref_key: "dropdownRef",
|
|
179
|
-
ref:
|
|
180
|
-
owner:
|
|
181
|
-
items:
|
|
179
|
+
ref: L,
|
|
180
|
+
owner: J,
|
|
181
|
+
items: a.value,
|
|
182
182
|
"is-visible": n.value,
|
|
183
183
|
multiple: l.multiple,
|
|
184
184
|
class: "fixed",
|
|
185
185
|
"aria-describedby": "tooltip",
|
|
186
|
-
onChange:
|
|
187
|
-
onEndReached:
|
|
188
|
-
},
|
|
186
|
+
onChange: te,
|
|
187
|
+
onEndReached: oe
|
|
188
|
+
}, ye({ _: 2 }, [
|
|
189
189
|
e.$slots.default ? {
|
|
190
190
|
name: "default",
|
|
191
|
-
fn:
|
|
192
|
-
I("div",
|
|
193
|
-
I("div",
|
|
191
|
+
fn: q((s) => [
|
|
192
|
+
I("div", _e, [
|
|
193
|
+
I("div", Se, [
|
|
194
194
|
g(e.$slots, "default", V(U(s.label)))
|
|
195
195
|
]),
|
|
196
|
-
|
|
196
|
+
W(s) ? (u(), H(ne, {
|
|
197
197
|
key: 0,
|
|
198
198
|
icon: "check",
|
|
199
199
|
size: "sm",
|
|
200
200
|
class: "float-right ml-2"
|
|
201
|
-
})) :
|
|
201
|
+
})) : N("", !0)
|
|
202
202
|
])
|
|
203
203
|
]),
|
|
204
204
|
key: "0"
|
|
@@ -212,5 +212,5 @@ const Ee = /* @__PURE__ */ se({
|
|
|
212
212
|
}
|
|
213
213
|
});
|
|
214
214
|
export {
|
|
215
|
-
|
|
215
|
+
Re as _
|
|
216
216
|
};
|
package/dist/InputSwitch.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as o } from "./InputSwitch.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as i } from "./plugin-
|
|
1
|
+
import { _ as o } from "./InputSwitch.vue_vue_type_script_setup_true_lang-Dq_U-mFJ.js";
|
|
2
|
+
import { p as i } from "./plugin-DT7LVAli.js";
|
|
3
3
|
export {
|
|
4
4
|
o as InputSwitch,
|
|
5
5
|
i as InputSwitchPlugin
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as b, ref as v, watch as f, openBlock as i, createElementBlock as n, createElementVNode as t, normalizeClass as o, withDirectives as h, vModelCheckbox as y, toDisplayString as k, createCommentVNode as w } from "vue";
|
|
2
|
-
const
|
|
3
|
-
let
|
|
2
|
+
const g = ["disabled"];
|
|
3
|
+
let V = 0;
|
|
4
4
|
const B = /* @__PURE__ */ b({
|
|
5
5
|
name: "TInputSwitch",
|
|
6
6
|
__name: "InputSwitch",
|
|
@@ -9,11 +9,11 @@ const B = /* @__PURE__ */ b({
|
|
|
9
9
|
disabled: { type: Boolean, default: !1 },
|
|
10
10
|
modelValue: { type: Boolean }
|
|
11
11
|
},
|
|
12
|
-
emits: ["update:
|
|
12
|
+
emits: ["update:model-value"],
|
|
13
13
|
setup(d, { emit: u }) {
|
|
14
|
-
const s = d, c = u, a = `switch_${++
|
|
14
|
+
const s = d, c = u, a = `switch_${++V}`, e = v(!1), p = () => {
|
|
15
15
|
const l = !e.value;
|
|
16
|
-
c("update:
|
|
16
|
+
c("update:model-value", l);
|
|
17
17
|
};
|
|
18
18
|
return f(
|
|
19
19
|
() => s.modelValue,
|
|
@@ -38,7 +38,7 @@ const B = /* @__PURE__ */ b({
|
|
|
38
38
|
id: a,
|
|
39
39
|
disabled: l.disabled,
|
|
40
40
|
onInput: p
|
|
41
|
-
}, null, 42,
|
|
41
|
+
}, null, 42, g), [
|
|
42
42
|
[y, e.value]
|
|
43
43
|
]),
|
|
44
44
|
t("label", {
|
package/dist/InputText.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as e } from "./InputText.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as r } from "./plugin-
|
|
1
|
+
import { _ as e } from "./InputText.vue_vue_type_script_setup_true_lang-CkoBmp9p.js";
|
|
2
|
+
import { p as r } from "./plugin-CwJMh4ht.js";
|
|
3
3
|
export {
|
|
4
4
|
e as InputText,
|
|
5
5
|
r as InputTextPlugin
|
|
@@ -12,10 +12,10 @@ const S = ["type", "id", "placeholder", "autocomplete", "disabled"], B = /* @__P
|
|
|
12
12
|
},
|
|
13
13
|
emits: ["update:model-value", "keyup.enter"],
|
|
14
14
|
setup(i, { emit: p }) {
|
|
15
|
-
const e = i, r =
|
|
15
|
+
const e = i, r = l("id", ""), s = p, d = l("invalid", !1), c = l("formStyle", { input: "w-full" }), a = l("validated", !1), n = v({
|
|
16
16
|
get: () => e.modelValue,
|
|
17
17
|
set: (o) => {
|
|
18
|
-
|
|
18
|
+
s("update:model-value", o);
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
return (o, u) => y((b(), h("input", _({
|
|
@@ -27,7 +27,7 @@ const S = ["type", "id", "placeholder", "autocomplete", "disabled"], B = /* @__P
|
|
|
27
27
|
"border-red-500": !t(a) && t(d),
|
|
28
28
|
"border-emerald-500": t(a) && !t(d)
|
|
29
29
|
},
|
|
30
|
-
id: t(
|
|
30
|
+
id: t(r),
|
|
31
31
|
placeholder: e.placeholder,
|
|
32
32
|
autocomplete: e.autocomplete,
|
|
33
33
|
disabled: e.disabled
|
package/dist/InputTextarea.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as r } from "./InputTextarea.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p } from "./plugin-
|
|
1
|
+
import { _ as r } from "./InputTextarea.vue_vue_type_script_setup_true_lang-IMz1cgV5.js";
|
|
2
|
+
import { p } from "./plugin-CqcxTgW6.js";
|
|
3
3
|
export {
|
|
4
4
|
r as InputTextarea,
|
|
5
5
|
p as InputTextareaPlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as f, ref as r, inject as l, watch as b, openBlock as
|
|
2
|
-
const S = ["value", "type", "placeholder", "disabled"],
|
|
1
|
+
import { defineComponent as f, ref as r, inject as l, watch as b, openBlock as v, createElementBlock as y, normalizeClass as h, unref as t } from "vue";
|
|
2
|
+
const S = ["value", "type", "placeholder", "disabled"], _ = /* @__PURE__ */ f({
|
|
3
3
|
name: "TInputTextarea",
|
|
4
4
|
__name: "InputTextarea",
|
|
5
5
|
props: {
|
|
@@ -9,13 +9,13 @@ const S = ["value", "type", "placeholder", "disabled"], V = /* @__PURE__ */ f({
|
|
|
9
9
|
placeholder: { default: void 0 },
|
|
10
10
|
disableStyle: { type: Boolean, default: !1 }
|
|
11
11
|
},
|
|
12
|
-
emits: ["update:
|
|
12
|
+
emits: ["update:model-value"],
|
|
13
13
|
setup(i, { emit: u }) {
|
|
14
14
|
const s = i, p = u, a = r(""), o = l("invalid", !1), c = l("formStyle", { input: "w-full" }), n = l("validated", !1);
|
|
15
15
|
r("");
|
|
16
16
|
const m = ({ target: e }) => {
|
|
17
17
|
const d = e.value;
|
|
18
|
-
p("update:
|
|
18
|
+
p("update:model-value", d);
|
|
19
19
|
};
|
|
20
20
|
return b(
|
|
21
21
|
() => s.modelValue,
|
|
@@ -23,10 +23,10 @@ const S = ["value", "type", "placeholder", "disabled"], V = /* @__PURE__ */ f({
|
|
|
23
23
|
e && (a.value = e);
|
|
24
24
|
},
|
|
25
25
|
{ immediate: !0 }
|
|
26
|
-
), (e, d) => (
|
|
26
|
+
), (e, d) => (v(), y("textarea", {
|
|
27
27
|
value: a.value,
|
|
28
28
|
type: e.type,
|
|
29
|
-
class:
|
|
29
|
+
class: h(["min-h-9 input-bg-color input-text-color input-outline border input-border input-roundnes input-padding input-roundness", {
|
|
30
30
|
"border rounded h-9": !e.disableStyle,
|
|
31
31
|
[t(c).input]: !e.disableStyle,
|
|
32
32
|
"border-red-500": !t(n) && t(o),
|
|
@@ -39,5 +39,5 @@ const S = ["value", "type", "placeholder", "disabled"], V = /* @__PURE__ */ f({
|
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
_
|
|
43
43
|
};
|
package/dist/Modal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as r } from "./Modal.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p } from "./plugin-
|
|
1
|
+
import { _ as r } from "./Modal.vue_vue_type_script_setup_true_lang-DLl5shGS.js";
|
|
2
|
+
import { p } from "./plugin-BZC231Oj.js";
|
|
3
3
|
export {
|
|
4
4
|
r as Modal,
|
|
5
5
|
p as ModalPlugin
|
package/dist/ModalForm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as a } from "./ModalForm.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as l } from "./plugin-
|
|
1
|
+
import { _ as a } from "./ModalForm.vue_vue_type_script_setup_true_lang-CUk3DI3O.js";
|
|
2
|
+
import { p as l } from "./plugin-CIK2QwfI.js";
|
|
3
3
|
export {
|
|
4
4
|
a as ModalForm,
|
|
5
5
|
l as ModalFormPlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as K, ref as u, computed as L, resolveComponent as o, openBlock as l, createBlock as a, withCtx as n, createCommentVNode as d, createElementBlock as M, createVNode as c, normalizeClass as b, resolveDynamicComponent as N } from "vue";
|
|
2
|
-
import { C as R } from "./crud-
|
|
2
|
+
import { C as R } from "./crud-lKm5HfM4.js";
|
|
3
3
|
const $ = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "inline-flex"
|
package/dist/Popconfirm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as p } from "./Popconfirm.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as m } from "./plugin-
|
|
1
|
+
import { _ as p } from "./Popconfirm.vue_vue_type_script_setup_true_lang-DWMW-u7V.js";
|
|
2
|
+
import { p as m } from "./plugin-D9vhvf_z.js";
|
|
3
3
|
export {
|
|
4
4
|
p as Popconfirm,
|
|
5
5
|
m as PopconfirmPlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as C, ref as x, resolveComponent as s, openBlock as y, createBlock as k, withCtx as a, createElementVNode as o, createVNode as l, toDisplayString as P, renderSlot as g } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { E as w } from "./ui-DtSy-y9T.js";
|
|
3
3
|
const z = { class: "text-sm mb-6 flex" }, B = { class: "flex justify-end" }, N = /* @__PURE__ */ C({
|
|
4
4
|
name: "TPopconfirm",
|
|
5
5
|
__name: "Popconfirm",
|
package/dist/Popover.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as p } from "./Popover.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as P } from "./plugin
|
|
1
|
+
import { _ as p } from "./Popover.vue_vue_type_script_setup_true_lang-Dhcy-iL3.js";
|
|
2
|
+
import { p as P } from "./plugin-c1rFpmlH.js";
|
|
3
3
|
export {
|
|
4
4
|
p as Popover,
|
|
5
5
|
P as PopoverPlugin
|