@xwiki/cristal-dsvuetify 0.14.0 → 0.15.0
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/CHANGELOG.md +16 -0
- package/dist/{index-C4ioHAez.js → index-BAakw3UY.js} +5925 -5865
- package/dist/index-BAakw3UY.js.map +1 -0
- package/dist/index.es.js +7 -5
- package/dist/index.umd.js +11 -9
- package/dist/index.umd.js.map +1 -1
- package/dist/translations-k4crOAds.js +24 -0
- package/dist/{translations-BNEIsfPR.js.map → translations-k4crOAds.js.map} +1 -1
- package/dist/vue/form/x-navigation-tree-select.vue.d.ts +12 -0
- package/dist/vue/x-navigation-tree.vue.d.ts +2 -8
- package/dist/{x-alert-CTAhsN6L.js → x-alert-CRdF8zFB.js} +4 -4
- package/dist/x-alert-CRdF8zFB.js.map +1 -0
- package/dist/{x-btn-BsiSIiiO.js → x-btn-DwTcXGgx.js} +2 -2
- package/dist/{x-btn-BsiSIiiO.js.map → x-btn-DwTcXGgx.js.map} +1 -1
- package/dist/{x-checkbox-CJ3_IJ-Y.js → x-checkbox-Fro597Ax.js} +2 -2
- package/dist/{x-checkbox-CJ3_IJ-Y.js.map → x-checkbox-Fro597Ax.js.map} +1 -1
- package/dist/x-dialog-DCEnccuq.js +48 -0
- package/dist/x-dialog-DCEnccuq.js.map +1 -0
- package/dist/{x-file-input-CMM5DWJc.js → x-file-input-CvH0AC3G.js} +13 -11
- package/dist/{x-file-input-CMM5DWJc.js.map → x-file-input-CvH0AC3G.js.map} +1 -1
- package/dist/x-form-DCHdDC6W.js +25 -0
- package/dist/x-form-DCHdDC6W.js.map +1 -0
- package/dist/x-navigation-tree-D_fUW-gW.js +520 -0
- package/dist/x-navigation-tree-D_fUW-gW.js.map +1 -0
- package/dist/x-navigation-tree-select-DaiYF3ux.js +95 -0
- package/dist/x-navigation-tree-select-DaiYF3ux.js.map +1 -0
- package/dist/x-text-field-2Sv6HUGW.js +43 -0
- package/dist/{x-text-field-BxSiyeFc.js.map → x-text-field-2Sv6HUGW.js.map} +1 -1
- package/langs/translation-de.json +3 -1
- package/langs/translation-en.json +3 -1
- package/langs/translation-fr.json +3 -1
- package/package.json +13 -11
- package/src/components/vuetifyDesignSystemLoader.ts +7 -1
- package/src/translations.ts +4 -0
- package/src/vue/css/style.css +1 -1
- package/src/vue/form/x-form.vue +8 -4
- package/src/vue/form/x-navigation-tree-select.vue +120 -0
- package/src/vue/form/x-text-field.vue +3 -0
- package/src/vue/x-navigation-tree.vue +17 -27
- package/dist/index-C4ioHAez.js.map +0 -1
- package/dist/translations-BNEIsfPR.js +0 -10
- package/dist/x-alert-CTAhsN6L.js.map +0 -1
- package/dist/x-dialog-C4gz0mOu.js +0 -48
- package/dist/x-dialog-C4gz0mOu.js.map +0 -1
- package/dist/x-form-BLg386BG.js +0 -32
- package/dist/x-form-BLg386BG.js.map +0 -1
- package/dist/x-navigation-tree-BW05Yivz.js +0 -502
- package/dist/x-navigation-tree-BW05Yivz.js.map +0 -1
- package/dist/x-text-field-BxSiyeFc.js +0 -38
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
"vuetify.file.input.mandatory": "Pflichtfeld",
|
|
3
|
+
"vuetify.text.input.mandatory": "Pflichtfeld",
|
|
4
|
+
"vuetify.tree.select.location.label": "Speicherort der Seite ändern",
|
|
5
|
+
"vuetify.tree.select.location.select": "Auswählen"
|
|
6
|
+
}, t = {
|
|
7
|
+
"vuetify.file.input.mandatory": "Mandatory field",
|
|
8
|
+
"vuetify.text.input.mandatory": "Mandatory field",
|
|
9
|
+
"vuetify.tree.select.location.label": "Change Page Location",
|
|
10
|
+
"vuetify.tree.select.location.select": "Select"
|
|
11
|
+
}, i = {
|
|
12
|
+
"vuetify.file.input.mandatory": "Champ obligatoire",
|
|
13
|
+
"vuetify.text.input.mandatory": "Champ obligatoire",
|
|
14
|
+
"vuetify.tree.select.location.label": "Changer l'emplacement de la page",
|
|
15
|
+
"vuetify.tree.select.location.select": "Sélectionner"
|
|
16
|
+
}, a = {
|
|
17
|
+
en: t,
|
|
18
|
+
fr: i,
|
|
19
|
+
de: e
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
a as t
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=translations-k4crOAds.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations-
|
|
1
|
+
{"version":3,"file":"translations-k4crOAds.js","sources":["../src/translations.ts"],"sourcesContent":["/*\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport de from \"../langs/translation-de.json\";\nimport en from \"../langs/translation-en.json\";\nimport fr from \"../langs/translation-fr.json\";\n\nconst translations: Record<string, Record<string, string>> = {\n en,\n fr,\n de,\n};\nexport default translations;\n"],"names":["translations","en","fr","de"],"mappings":";;;;;;;;;;;;;;;GAwBMA,IAAuD;AAAA,EAC3D,IAAAC;AAAA,EACA,IAAAC;AAAA,EACA,IAAAC;AACF;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SpaceReference } from '@xwiki/cristal-model-api';
|
|
2
|
+
import { NavigationTreeSelectProps } from '@xwiki/cristal-dsapi';
|
|
3
|
+
type __VLS_Props = NavigationTreeSelectProps;
|
|
4
|
+
type __VLS_PublicProps = {
|
|
5
|
+
modelValue?: SpaceReference;
|
|
6
|
+
} & __VLS_Props;
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (value: SpaceReference) => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: SpaceReference) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
type OnClickAction = (node: NavigationTreeNode) => void;
|
|
4
|
-
type __VLS_Props = {
|
|
5
|
-
clickAction?: OnClickAction;
|
|
6
|
-
currentPage?: PageData;
|
|
7
|
-
};
|
|
8
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
1
|
+
import { NavigationTreeProps } from '@xwiki/cristal-dsapi';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<NavigationTreeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NavigationTreeProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
3
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as d, resolveComponent as n, openBlock as t, createBlock as a, withCtx as r, createElementBlock as l, Fragment as m, renderList as _, createTextVNode as u, toDisplayString as s, createCommentVNode as i, renderSlot as f } from "vue";
|
|
2
2
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
const y = { key: 0 }, b = { key: 1 },
|
|
3
|
+
const y = { key: 0 }, b = { key: 1 }, C = /* @__PURE__ */ d({
|
|
4
4
|
__name: "x-alert",
|
|
5
5
|
props: {
|
|
6
6
|
title: {},
|
|
@@ -10,7 +10,7 @@ const y = { key: 0 }, b = { key: 1 }, v = /* @__PURE__ */ d({
|
|
|
10
10
|
closable: { type: Boolean },
|
|
11
11
|
details: {}
|
|
12
12
|
},
|
|
13
|
-
setup(
|
|
13
|
+
setup(v) {
|
|
14
14
|
return (e, h) => {
|
|
15
15
|
const c = n("x-btn"), p = n("v-alert");
|
|
16
16
|
return t(), a(p, {
|
|
@@ -39,8 +39,8 @@ const y = { key: 0 }, b = { key: 1 }, v = /* @__PURE__ */ d({
|
|
|
39
39
|
}, 8, ["closable", "title", "type", "text"]);
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
}), g = /* @__PURE__ */ k(
|
|
42
|
+
}), g = /* @__PURE__ */ k(C, [["__scopeId", "data-v-c679f3ce"]]);
|
|
43
43
|
export {
|
|
44
44
|
g as default
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=x-alert-
|
|
46
|
+
//# sourceMappingURL=x-alert-CRdF8zFB.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-alert-CRdF8zFB.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -30,7 +30,7 @@ const m = /* @__PURE__ */ c({
|
|
|
30
30
|
}
|
|
31
31
|
return e;
|
|
32
32
|
}), n = r(() => a.variant == "text" ? "text" : "tonal");
|
|
33
|
-
return (e,
|
|
33
|
+
return (e, d) => {
|
|
34
34
|
const o = s("v-btn");
|
|
35
35
|
return l(), i(o, {
|
|
36
36
|
color: t.value,
|
|
@@ -47,4 +47,4 @@ const m = /* @__PURE__ */ c({
|
|
|
47
47
|
export {
|
|
48
48
|
m as default
|
|
49
49
|
};
|
|
50
|
-
//# sourceMappingURL=x-btn-
|
|
50
|
+
//# sourceMappingURL=x-btn-DwTcXGgx.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-btn-
|
|
1
|
+
{"version":3,"file":"x-btn-DwTcXGgx.js","sources":["../src/vue/x-btn.vue"],"sourcesContent":["<!--\nSee the LICENSE file distributed with this work for additional\ninformation regarding copyright ownership.\n\nThis is free software; you can redistribute it and/or modify it\nunder the terms of the GNU Lesser General Public License as\npublished by the Free Software Foundation; either version 2.1 of\nthe License, or (at your option) any later version.\n\nThis software is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this software; if not, write to the Free\nSoftware Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script lang=\"ts\" setup>\nimport { computed } from \"vue\";\nimport type { BtnProps } from \"@xwiki/cristal-dsapi\";\n\nconst { variant } = defineProps<BtnProps>();\n\n// Map the variants to corresponding vuetify colors.\nconst color = computed(() => {\n let color = undefined;\n switch (variant) {\n case \"default\":\n break;\n case \"primary\":\n color = \"primary\";\n break;\n case \"success\":\n color = \"success\";\n break;\n case \"neutral\":\n color = \"secondary\";\n break;\n case \"warning\":\n color = \"warning\";\n break;\n case \"danger\":\n color = \"error\";\n break;\n }\n return color;\n});\n\nconst vVariant = computed(() => (variant == \"text\" ? \"text\" : \"tonal\"));\n</script>\n<template>\n <v-btn :color=\"color\" :variant=\"vVariant\">\n <slot />\n </v-btn>\n</template>\n"],"names":["color","computed","__props","vVariant"],"mappings":";;;;;;;;;AA0BM,UAAAA,IAAQC,EAAS,MAAM;AAC3B,UAAID;AACJ,cAAQE,EAAO,SAAE;AAAA,QACf,KAAK;AACH;AAAA,QACF,KAAK;AACHF,UAAAA,IAAQ;AACR;AAAA,QACF,KAAK;AACHA,UAAAA,IAAQ;AACR;AAAA,QACF,KAAK;AACHA,UAAAA,IAAQ;AACR;AAAA,QACF,KAAK;AACHA,UAAAA,IAAQ;AACR;AAAA,QACF,KAAK;AACHA,UAAAA,IAAQ;AACR;AAAA,MAAA;AAEGA,aAAAA;AAAAA,IAAA,CACR,GAEKG,IAAWF,EAAS,MAAOC,EAAA,WAAW,SAAS,SAAS,OAAQ;;;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as s, mergeModels as d, useModel as t, openBlock as u, createBlock as n, unref as p } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { y as r } from "./index-BAakw3UY.js";
|
|
3
3
|
const V = /* @__PURE__ */ s({
|
|
4
4
|
__name: "x-checkbox",
|
|
5
5
|
props: /* @__PURE__ */ d({
|
|
@@ -25,4 +25,4 @@ const V = /* @__PURE__ */ s({
|
|
|
25
25
|
export {
|
|
26
26
|
V as default
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=x-checkbox-
|
|
28
|
+
//# sourceMappingURL=x-checkbox-Fro597Ax.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-checkbox-
|
|
1
|
+
{"version":3,"file":"x-checkbox-Fro597Ax.js","sources":["../src/vue/form/x-checkbox.vue"],"sourcesContent":["<!--\nSee the LICENSE file distributed with this work for additional\ninformation regarding copyright ownership.\n\nThis is free software; you can redistribute it and/or modify it\nunder the terms of the GNU Lesser General Public License as\npublished by the Free Software Foundation; either version 2.1 of\nthe License, or (at your option) any later version.\n\nThis software is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this software; if not, write to the Free\nSoftware Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script lang=\"ts\" setup>\nimport { VCheckbox } from \"vuetify/components/VCheckbox\";\nimport type { CheckboxProps } from \"@xwiki/cristal-dsapi\";\n\ndefineProps<CheckboxProps>();\n\nconst checked = defineModel<boolean>();\n</script>\n<template>\n <v-checkbox\n v-model=\"checked\"\n :label=\"label\"\n :messages=\"help\"\n density=\"compact\"\n ></v-checkbox>\n</template>\n"],"names":["checked","_useModel","__props"],"mappings":";;;;;;;;;;;;;;AAyBM,UAAAA,IAAUC,EAAoBC,GAAA,YAAC;;;;;;;;;;"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { defineComponent as p, resolveComponent as o, openBlock as n, createBlock as r, withCtx as t, createElementVNode as u, normalizeProps as f, guardReactiveProps as m, renderSlot as a, createVNode as d, createCommentVNode as v } from "vue";
|
|
2
|
+
import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const g = /* @__PURE__ */ p({
|
|
4
|
+
__name: "x-dialog",
|
|
5
|
+
props: {
|
|
6
|
+
title: {},
|
|
7
|
+
width: {}
|
|
8
|
+
},
|
|
9
|
+
setup(w) {
|
|
10
|
+
return (e, C) => {
|
|
11
|
+
const l = o("v-card-text"), s = o("v-card-actions"), c = o("v-card"), i = o("v-dialog");
|
|
12
|
+
return n(), r(i, {
|
|
13
|
+
width: e.width,
|
|
14
|
+
scrollable: ""
|
|
15
|
+
}, {
|
|
16
|
+
activator: t(({ props: _ }) => [
|
|
17
|
+
u("span", f(m(_)), [
|
|
18
|
+
a(e.$slots, "activator", {}, void 0, !0)
|
|
19
|
+
], 16)
|
|
20
|
+
]),
|
|
21
|
+
default: t(() => [
|
|
22
|
+
d(c, { title: e.title }, {
|
|
23
|
+
default: t(() => [
|
|
24
|
+
d(l, null, {
|
|
25
|
+
default: t(() => [
|
|
26
|
+
a(e.$slots, "default", {}, void 0, !0)
|
|
27
|
+
]),
|
|
28
|
+
_: 3
|
|
29
|
+
}),
|
|
30
|
+
e.$slots.footer ? (n(), r(s, { key: 0 }, {
|
|
31
|
+
default: t(() => [
|
|
32
|
+
a(e.$slots, "footer", {}, void 0, !0)
|
|
33
|
+
]),
|
|
34
|
+
_: 3
|
|
35
|
+
})) : v("", !0)
|
|
36
|
+
]),
|
|
37
|
+
_: 3
|
|
38
|
+
}, 8, ["title"])
|
|
39
|
+
]),
|
|
40
|
+
_: 3
|
|
41
|
+
}, 8, ["width"]);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}), N = /* @__PURE__ */ h(g, [["__scopeId", "data-v-35b45241"]]);
|
|
45
|
+
export {
|
|
46
|
+
N as default
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=x-dialog-DCEnccuq.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-dialog-DCEnccuq.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as s, mergeModels as m, useModel as
|
|
2
|
-
import { t as V } from "./translations-
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { b
|
|
1
|
+
import { defineComponent as s, mergeModels as m, useModel as d, computed as i, openBlock as p, createBlock as f, unref as c } from "vue";
|
|
2
|
+
import { t as V } from "./translations-k4crOAds.js";
|
|
3
|
+
import { useI18n as y } from "vue-i18n";
|
|
4
|
+
import { b } from "./index-BAakw3UY.js";
|
|
5
5
|
const k = /* @__PURE__ */ s({
|
|
6
6
|
__name: "x-file-input",
|
|
7
7
|
props: /* @__PURE__ */ m({
|
|
@@ -9,29 +9,31 @@ const k = /* @__PURE__ */ s({
|
|
|
9
9
|
label: {},
|
|
10
10
|
required: { type: Boolean },
|
|
11
11
|
autofocus: { type: Boolean },
|
|
12
|
-
modelValue: {}
|
|
12
|
+
modelValue: {},
|
|
13
|
+
help: {},
|
|
14
|
+
readonly: { type: Boolean }
|
|
13
15
|
}, {
|
|
14
16
|
modelValue: {},
|
|
15
17
|
modelModifiers: {}
|
|
16
18
|
}),
|
|
17
19
|
emits: ["update:modelValue"],
|
|
18
20
|
setup(o) {
|
|
19
|
-
const { t: u } =
|
|
21
|
+
const { t: u } = y({
|
|
20
22
|
messages: V
|
|
21
|
-
}), t =
|
|
23
|
+
}), t = d(o, "modelValue"), a = o, r = i(() => {
|
|
22
24
|
const e = [];
|
|
23
|
-
return
|
|
25
|
+
return a.required && e.push((l) => l ? !0 : u("vuetify.file.input.mandatory")), e;
|
|
24
26
|
});
|
|
25
|
-
return (e, l) => (p(), f(c(
|
|
27
|
+
return (e, l) => (p(), f(c(b), {
|
|
26
28
|
modelValue: t.value,
|
|
27
29
|
"onUpdate:modelValue": l[0] || (l[0] = (n) => t.value = n),
|
|
28
30
|
label: e.label,
|
|
29
31
|
name: e.name,
|
|
30
|
-
rules:
|
|
32
|
+
rules: r.value
|
|
31
33
|
}, null, 8, ["modelValue", "label", "name", "rules"]));
|
|
32
34
|
}
|
|
33
35
|
});
|
|
34
36
|
export {
|
|
35
37
|
k as default
|
|
36
38
|
};
|
|
37
|
-
//# sourceMappingURL=x-file-input-
|
|
39
|
+
//# sourceMappingURL=x-file-input-CvH0AC3G.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-file-input-
|
|
1
|
+
{"version":3,"file":"x-file-input-CvH0AC3G.js","sources":["../src/vue/form/x-file-input.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport messages from \"../../translations\";\nimport { computed, defineModel } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nimport { VFileInput } from \"vuetify/components/VFileInput\";\nimport type { FileInputModel, TextFieldProps } from \"@xwiki/cristal-dsapi\";\n\nconst { t } = useI18n({\n messages,\n});\n\nconst model = defineModel<FileInputModel>();\nconst props = defineProps<TextFieldProps>();\n\nconst rules = computed(() => {\n const rulesList = [];\n if (props.required) {\n rulesList.push((value: unknown) => {\n if (value) {\n return true;\n } else {\n return t(\"vuetify.file.input.mandatory\");\n }\n });\n }\n return rulesList;\n});\n</script>\n\n<template>\n <v-file-input\n v-model=\"model\"\n :label=\"label\"\n :name=\"name\"\n :rules=\"rules\"\n ></v-file-input>\n</template>\n\n<style scoped></style>\n"],"names":["t","useI18n","messages","model","_useModel","props","__props","rules","computed","rulesList","value"],"mappings":";;;;;;;;;;;;;;;;;;;;AAOM,UAAA,EAAE,GAAAA,EAAE,IAAIC,EAAQ;AAAA,MACpBC,UAAAA;AAAAA,IAAA,CACD,GAEKC,IAAQC,iBAA4B,GACpCC,IAAQC,GAERC,IAAQC,EAAS,MAAM;AAC3B,YAAMC,IAAY,CAAC;AACnB,aAAIJ,EAAM,YACEI,EAAA,KAAK,CAACC,MACVA,IACK,KAEAV,EAAE,8BAA8B,CAE1C,GAEIS;AAAA,IAAA,CACR;;;;;;;;;;"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineComponent as m, openBlock as n, createBlock as i, unref as s, withModifiers as f, withCtx as u, renderSlot as a } from "vue";
|
|
2
|
+
import { V as c } from "./index-BAakw3UY.js";
|
|
3
|
+
import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const p = /* @__PURE__ */ m({
|
|
5
|
+
__name: "x-form",
|
|
6
|
+
emits: ["formSubmit"],
|
|
7
|
+
setup(d, { emit: t }) {
|
|
8
|
+
const e = t;
|
|
9
|
+
function o() {
|
|
10
|
+
e("formSubmit");
|
|
11
|
+
}
|
|
12
|
+
return (r, l) => (n(), i(s(c), {
|
|
13
|
+
onSubmit: f(o, ["prevent"])
|
|
14
|
+
}, {
|
|
15
|
+
default: u(() => [
|
|
16
|
+
a(r.$slots, "default", {}, void 0, !0)
|
|
17
|
+
]),
|
|
18
|
+
_: 3
|
|
19
|
+
}));
|
|
20
|
+
}
|
|
21
|
+
}), h = /* @__PURE__ */ _(p, [["__scopeId", "data-v-0c08a087"]]);
|
|
22
|
+
export {
|
|
23
|
+
h as default
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=x-form-DCHdDC6W.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-form-DCHdDC6W.js","sources":["../src/vue/form/x-form.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { VForm } from \"vuetify/components/VForm\";\nconst emits = defineEmits([\"formSubmit\"]);\nfunction submit() {\n emits(\"formSubmit\");\n}\n</script>\n\n<template>\n <v-form @submit.prevent=\"submit\">\n <slot></slot>\n </v-form>\n</template>\n\n<style scoped>\n.v-form {\n display: flex;\n flex-direction: column;\n gap: var(--cr-spacing-x-small);\n}\n</style>\n"],"names":["emits","__emit","submit"],"mappings":";;;;;;;AAEA,UAAMA,IAAQC;AACd,aAASC,IAAS;AAChB,MAAAF,EAAM,YAAY;AAAA,IAAA;;;;;;;;;;;"}
|