vlite3 1.4.21 → 1.4.22
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/components/CategoryManager/CategoryManager.vue2.js +3 -3
- package/components/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.js +2 -2
- package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem.vue2.js → CommandPaletteItem.vue.js} +1 -1
- package/components/Dropdown/DropdownMenu.vue.js +1 -1
- package/components/Form/AccordionView.vue.js +80 -77
- package/components/Form/Form.vue.js +2 -2
- package/components/Form/Form.vue2.js +164 -162
- package/components/Form/FormField.vue.js +26 -28
- package/components/Form/FormFields.vue.js +2 -2
- package/components/Form/FormFields.vue2.js +21 -18
- package/components/Form/composables/useForm.js +150 -150
- package/components/Form/index.vue.js +1 -1
- package/components/Form/index.vue2.js +43 -39
- package/components/Input.vue.js +3 -3
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/RichTextEditor/RichTextEditor.vue.js +4 -4
- package/components/RichTextEditor/RichTextLinkPopover.vue3.js +2 -2
- package/components/RichTextEditor/RichTextToolbar.vue3.js +2 -2
- package/components/Screen/ScreenFilter.vue.js +3 -3
- package/components/Textarea.vue.js +14 -14
- package/index.js +389 -388
- package/package.json +1 -1
- package/style.css +1 -1
- package/utils/i18n.d.ts +10 -4
- package/utils/i18n.js +14 -3
- /package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +0 -0
- /package/components/Dropdown/{DropdownMenu.vue3.js → DropdownMenu.vue2.js} +0 -0
- /package/components/RichTextEditor/{RichTextLinkPopover.vue.js → RichTextLinkPopover.vue2.js} +0 -0
- /package/components/RichTextEditor/{RichTextToolbar.vue.js → RichTextToolbar.vue2.js} +0 -0
|
@@ -15,14 +15,14 @@ import "v-datepicker-lite";
|
|
|
15
15
|
import "v-datepicker-lite/style.css";
|
|
16
16
|
import "@jaames/iro";
|
|
17
17
|
import "@vueuse/core";
|
|
18
|
-
/* empty css
|
|
18
|
+
/* empty css */
|
|
19
19
|
import "iconify-icon-picker";
|
|
20
20
|
import "iconify-icon-picker/style.css";
|
|
21
21
|
/* empty css */
|
|
22
22
|
/* empty css */
|
|
23
23
|
/* empty css */
|
|
24
|
-
/* empty css
|
|
25
|
-
/* empty css
|
|
24
|
+
/* empty css */
|
|
25
|
+
/* empty css */
|
|
26
26
|
import "../../core/config.js";
|
|
27
27
|
/* empty css */
|
|
28
28
|
/* empty css */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as c, computed as r, openBlock as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as c, computed as r, openBlock as m, createElementBlock as p, normalizeClass as f } from "vue";
|
|
2
|
+
import { resolveI18nText as b } from "../utils/i18n.js";
|
|
3
|
+
const x = ["value", "rows", "disabled", "placeholder", "data-testid"], g = /* @__PURE__ */ c({
|
|
4
4
|
__name: "Textarea",
|
|
5
5
|
props: {
|
|
6
6
|
modelValue: { default: "" },
|
|
@@ -11,27 +11,27 @@ const h = ["value", "rows", "disabled", "placeholder", "data-testid"], g = /* @_
|
|
|
11
11
|
class: { default: "" }
|
|
12
12
|
},
|
|
13
13
|
emits: ["update:modelValue", "focus", "blur"],
|
|
14
|
-
setup(
|
|
15
|
-
const a =
|
|
14
|
+
setup(l, { emit: s }) {
|
|
15
|
+
const a = l, o = s, n = r(() => [
|
|
16
16
|
"flex min-h-[80px] w-full rounded-md border border-input px-3 py-2 text-sm placeholder:text-muted-foreground/50 focus-visible:outline-none focus-visible:border-black disabled:cursor-not-allowed disabled:opacity-50 bg-background text-foreground",
|
|
17
17
|
a.class
|
|
18
|
-
].join(" ")), u = (
|
|
19
|
-
const e =
|
|
18
|
+
].join(" ")), u = (t) => {
|
|
19
|
+
const e = t.target;
|
|
20
20
|
o("update:modelValue", e.value);
|
|
21
21
|
}, i = r(
|
|
22
|
-
() =>
|
|
22
|
+
() => b(a.placeholderI18n, a.placeholder)
|
|
23
23
|
);
|
|
24
|
-
return (
|
|
25
|
-
value:
|
|
26
|
-
rows:
|
|
27
|
-
disabled:
|
|
24
|
+
return (t, e) => (m(), p("textarea", {
|
|
25
|
+
value: l.modelValue,
|
|
26
|
+
rows: l.rows,
|
|
27
|
+
disabled: l.disabled,
|
|
28
28
|
placeholder: i.value,
|
|
29
29
|
class: f(n.value),
|
|
30
30
|
onInput: u,
|
|
31
31
|
onFocus: e[0] || (e[0] = (d) => o("focus", d)),
|
|
32
32
|
onBlur: e[1] || (e[1] = (d) => o("blur", d)),
|
|
33
|
-
"data-testid":
|
|
34
|
-
}, null, 42,
|
|
33
|
+
"data-testid": t.$attrs["data-testid"] || (t.$attrs.name ? `textarea-${t.$attrs.name}` : "textarea")
|
|
34
|
+
}, null, 42, x));
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
export {
|