@xwiki/cristal-dsvuetify 0.25.0 → 1.0.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/dist/{index-D7wZ4Kvq.js → index-CkeFEgm6.js} +8741 -8708
- package/dist/index-CkeFEgm6.js.map +1 -0
- package/dist/index.es.js +6 -8
- package/dist/index.umd.js +12 -14
- package/dist/index.umd.js.map +1 -1
- package/dist/translations-CXVK8zyA.js +21 -0
- package/dist/{translations-BVK9UR9x.js.map → translations-CXVK8zyA.js.map} +1 -1
- package/dist/vue/form/x-text-field.vue.d.ts +16 -1
- package/dist/vue/x-tree.vue.d.ts +19 -14
- package/dist/{x-checkbox-CN6QxF3B.js → x-checkbox-CxPnLGd0.js} +5 -5
- package/dist/{x-checkbox-CN6QxF3B.js.map → x-checkbox-CxPnLGd0.js.map} +1 -1
- package/dist/{x-file-input-CkjbGsMG.js → x-file-input-CEz4Wmf4.js} +3 -3
- package/dist/{x-file-input-CkjbGsMG.js.map → x-file-input-CEz4Wmf4.js.map} +1 -1
- package/dist/{x-form-dk8EltHS.js → x-form-SvpVocOb.js} +2 -2
- package/dist/{x-form-dk8EltHS.js.map → x-form-SvpVocOb.js.map} +1 -1
- package/dist/x-menu-DUp-JvdG.js +31 -0
- package/dist/{x-menu-CZMwPcag.js.map → x-menu-DUp-JvdG.js.map} +1 -1
- package/dist/{x-select-CpWujZTj.js → x-select-BduzHCet.js} +6 -6
- package/dist/{x-select-CpWujZTj.js.map → x-select-BduzHCet.js.map} +1 -1
- package/dist/x-text-field-CvC6id2f.js +50 -0
- package/dist/{x-text-field-wiH4MWRR.js.map → x-text-field-CvC6id2f.js.map} +1 -1
- package/dist/x-tree-CbliYwVw.js +70 -0
- package/dist/x-tree-CbliYwVw.js.map +1 -0
- package/langs/translation-de.json +1 -3
- package/langs/translation-en.json +1 -3
- package/langs/translation-fr.json +1 -3
- package/package.json +15 -15
- package/src/components/vuetifyDesignSystemLoader.ts +0 -10
- package/src/vue/css/style.css +1 -0
- package/src/vue/form/x-text-field.vue +5 -1
- package/src/vue/x-menu.vue +1 -1
- package/src/vue/x-tree.vue +24 -5
- package/dist/index-D7wZ4Kvq.js.map +0 -1
- package/dist/index.es-BOA77_Kh.js +0 -10
- package/dist/index.es-BOA77_Kh.js.map +0 -1
- package/dist/translations-BVK9UR9x.js +0 -27
- package/dist/vue/form/x-navigation-tree-select.vue.d.ts +0 -14
- package/dist/vue/x-navigation-tree.vue.d.ts +0 -5
- package/dist/x-menu-CZMwPcag.js +0 -31
- package/dist/x-navigation-tree-BkJKd5J2.js +0 -188
- package/dist/x-navigation-tree-BkJKd5J2.js.map +0 -1
- package/dist/x-navigation-tree-select-VRsQSFA3.js +0 -109
- package/dist/x-navigation-tree-select-VRsQSFA3.js.map +0 -1
- package/dist/x-text-field-wiH4MWRR.js +0 -45
- package/dist/x-tree-CkUElkU9.js +0 -51
- package/dist/x-tree-CkUElkU9.js.map +0 -1
- package/src/vue/form/x-navigation-tree-select.vue +0 -146
- package/src/vue/x-navigation-tree.vue +0 -355
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
"vuetify.file.input.mandatory": "Pflichtfeld",
|
|
3
|
+
"vuetify.select.input.mandatory": "Pflichtfeld",
|
|
4
|
+
"vuetify.text.input.mandatory": "Pflichtfeld"
|
|
5
|
+
}, i = {
|
|
6
|
+
"vuetify.file.input.mandatory": "Mandatory field",
|
|
7
|
+
"vuetify.select.input.mandatory": "Mandatory field",
|
|
8
|
+
"vuetify.text.input.mandatory": "Mandatory field"
|
|
9
|
+
}, a = {
|
|
10
|
+
"vuetify.file.input.mandatory": "Champ obligatoire",
|
|
11
|
+
"vuetify.select.input.mandatory": "Champ obligatoire",
|
|
12
|
+
"vuetify.text.input.mandatory": "Champ obligatoire"
|
|
13
|
+
}, e = {
|
|
14
|
+
en: i,
|
|
15
|
+
fr: a,
|
|
16
|
+
de: t
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
e as t
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=translations-CXVK8zyA.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations-
|
|
1
|
+
{"version":3,"file":"translations-CXVK8zyA.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;"}
|
|
@@ -3,9 +3,24 @@ type __VLS_Props = TextFieldProps;
|
|
|
3
3
|
type __VLS_PublicProps = {
|
|
4
4
|
modelValue?: string;
|
|
5
5
|
} & __VLS_Props;
|
|
6
|
-
declare
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: any;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
16
|
"update:modelValue": (value: string) => any;
|
|
8
17
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
18
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
10
19
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
11
21
|
export default _default;
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
package/dist/vue/x-tree.vue.d.ts
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import { TreeProps } from '@xwiki/platform-dsapi';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"activated"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
}
|
|
1
|
+
import { DisplayableTreeNode, TreeProps } from '@xwiki/platform-dsapi';
|
|
2
|
+
declare const _default: <T extends DisplayableTreeNode>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
|
+
readonly "onUpdate:activated"?: ((value: string | undefined) => any) | undefined;
|
|
5
|
+
readonly "onUpdate:opened"?: ((value: string[]) => any) | undefined;
|
|
6
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:opened" | "onUpdate:activated"> & ({
|
|
7
|
+
opened?: string[];
|
|
8
|
+
activated?: string | undefined;
|
|
9
|
+
} & TreeProps<T>) & Partial<{}>> & import('vue').PublicProps;
|
|
10
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
11
|
+
attrs: any;
|
|
12
|
+
slots: {};
|
|
13
|
+
emit: ((evt: "update:activated", value: string | undefined) => void) & ((evt: "update:opened", value: string[]) => void);
|
|
14
|
+
}>) => import('vue').VNode & {
|
|
15
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
16
|
+
};
|
|
15
17
|
export default _default;
|
|
18
|
+
type __VLS_PrettifyLocal<T> = {
|
|
19
|
+
[K in keyof T]: T[K];
|
|
20
|
+
} & {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as m, mergeModels as t, useModel as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as m, mergeModels as t, useModel as u, createBlock as d, openBlock as n, unref as s } from "vue";
|
|
2
|
+
import { c } from "./index-CkeFEgm6.js";
|
|
3
3
|
const V = /* @__PURE__ */ m({
|
|
4
4
|
__name: "x-checkbox",
|
|
5
5
|
props: /* @__PURE__ */ t({
|
|
@@ -12,8 +12,8 @@ const V = /* @__PURE__ */ m({
|
|
|
12
12
|
}),
|
|
13
13
|
emits: ["update:modelValue"],
|
|
14
14
|
setup(e) {
|
|
15
|
-
const l =
|
|
16
|
-
return (r, o) => (n(),
|
|
15
|
+
const l = u(e, "modelValue");
|
|
16
|
+
return (r, o) => (n(), d(s(c), {
|
|
17
17
|
modelValue: l.value,
|
|
18
18
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => l.value = a),
|
|
19
19
|
label: e.label,
|
|
@@ -25,4 +25,4 @@ const V = /* @__PURE__ */ m({
|
|
|
25
25
|
export {
|
|
26
26
|
V as default
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=x-checkbox-
|
|
28
|
+
//# sourceMappingURL=x-checkbox-CxPnLGd0.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-checkbox-
|
|
1
|
+
{"version":3,"file":"x-checkbox-CxPnLGd0.js","sources":["../src/vue/form/x-checkbox.vue"],"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<script lang=\"ts\" setup>\nimport { VCheckbox } from \"vuetify/components/VCheckbox\";\nimport type { CheckboxProps } from \"@xwiki/platform-dsapi\";\n\ndefineProps<CheckboxProps>();\n\nconst checked = defineModel<boolean | null>();\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","_createBlock","_unref","VCheckbox","$event","__props"],"mappings":";;;;;;;;;;;;;;AAyBA,UAAMA,IAAUC,iBAA4B;2BAG1CC,EAKcC,EAAAC,CAAA,GAAA;AAAA,kBAJHJ,EAAA;AAAA,oDAAAA,EAAO,QAAAK;AAAA,MACf,OAAOC,EAAA;AAAA,MACP,UAAUA,EAAA;AAAA,MACX,SAAQ;AAAA,IAAA;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as m, mergeModels as s, useModel as d, computed as i, createBlock as p, openBlock as f, unref as c } from "vue";
|
|
2
|
-
import { t as V } from "./translations-
|
|
2
|
+
import { t as V } from "./translations-CXVK8zyA.js";
|
|
3
3
|
import { useI18n as y } from "vue-i18n";
|
|
4
|
-
import { b } from "./index-
|
|
4
|
+
import { b } from "./index-CkeFEgm6.js";
|
|
5
5
|
const g = /* @__PURE__ */ m({
|
|
6
6
|
__name: "x-file-input",
|
|
7
7
|
props: /* @__PURE__ */ s({
|
|
@@ -37,4 +37,4 @@ const g = /* @__PURE__ */ m({
|
|
|
37
37
|
export {
|
|
38
38
|
g as default
|
|
39
39
|
};
|
|
40
|
-
//# sourceMappingURL=x-file-input-
|
|
40
|
+
//# sourceMappingURL=x-file-input-CEz4Wmf4.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-file-input-
|
|
1
|
+
{"version":3,"file":"x-file-input-CEz4Wmf4.js","sources":["../src/vue/form/x-file-input.vue"],"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<script setup lang=\"ts\">\nimport messages from \"../../translations\";\nimport { computed } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nimport { VFileInput } from \"vuetify/components/VFileInput\";\nimport type { FileInputModel, TextFieldProps } from \"@xwiki/platform-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","_createBlock","_unref","VFileInput","$event"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA0BA,UAAM,EAAE,GAAAA,EAAA,IAAMC,EAAQ;AAAA,MAAA,UACpBC;AAAAA,IAAA,CACD,GAEKC,IAAQC,iBAA4B,GACpCC,IAAQC,GAERC,IAAQC,EAAS,MAAM;AAC3B,YAAMC,IAAY,CAAA;AAClB,aAAIJ,EAAM,YACRI,EAAU,KAAK,CAACC,MACVA,IACK,KAEAV,EAAE,8BAA8B,CAE1C,GAEIS;AAAA,IACT,CAAC;2BAICE,EAKgBC,EAAAC,CAAA,GAAA;AAAA,kBAJLV,EAAA;AAAA,oDAAAA,EAAK,QAAAW;AAAA,MACb,OAAOR,EAAA;AAAA,MACP,MAAMA,EAAA;AAAA,MACN,OAAOC,EAAA;AAAA,IAAA;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as s, ref as m, createBlock as f, openBlock as c, unref as u, withModifiers as d, withCtx as _, renderSlot as l } from "vue";
|
|
2
|
-
import { V as p } from "./index-
|
|
2
|
+
import { V as p } from "./index-CkeFEgm6.js";
|
|
3
3
|
import { _ as v } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const x = /* @__PURE__ */ s({
|
|
5
5
|
__name: "x-form",
|
|
@@ -30,4 +30,4 @@ const x = /* @__PURE__ */ s({
|
|
|
30
30
|
export {
|
|
31
31
|
y as default
|
|
32
32
|
};
|
|
33
|
-
//# sourceMappingURL=x-form-
|
|
33
|
+
//# sourceMappingURL=x-form-SvpVocOb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-form-
|
|
1
|
+
{"version":3,"file":"x-form-SvpVocOb.js","sources":["../src/vue/form/x-form.vue"],"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<script setup lang=\"ts\">\nimport { ref } from \"vue\";\nimport { VForm } from \"vuetify/components/VForm\";\nimport type { Ref } from \"vue\";\n\nconst form: Ref<VForm | undefined> = ref(undefined);\nconst emits = defineEmits([\"formSubmit\"]);\n\ndefineExpose({\n reset,\n});\n\nasync function reset() {\n form.value?.reset();\n}\n\nasync function submit() {\n const validation = await form.value?.validate();\n if (validation?.valid) {\n emits(\"formSubmit\");\n }\n}\n</script>\n\n<template>\n <v-form ref=\"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":["form","ref","emits","__emit","__expose","reset","submit","_createBlock","_unref","VForm","_renderSlot","_ctx"],"mappings":";;;;;;;AAwBA,UAAMA,IAA+BC,EAAI,MAAS,GAC5CC,IAAQC;AAEd,IAAAC,EAAa;AAAA,MACX,OAAAC;AAAA,IAAA,CACD;AAED,mBAAeA,IAAQ;AACrB,MAAAL,EAAK,OAAO,MAAA;AAAA,IACd;AAEA,mBAAeM,IAAS;AAEtB,OADmB,MAAMN,EAAK,OAAO,SAAA,IACrB,SACdE,EAAM,YAAY;AAAA,IAEtB;2BAIEK,EAESC,EAAAC,CAAA,GAAA;AAAA,eAFG;AAAA,MAAJ,KAAIT;AAAA,MAAQ,YAAgBM,GAAM,CAAA,SAAA,CAAA;AAAA,IAAA;iBACxC,MAAa;AAAA,QAAbI,EAAaC,EAAA,QAAA,WAAA,CAAA,GAAA,QAAA,EAAA;AAAA,MAAA;;;;;"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { resolveComponent as o, createBlock as s, openBlock as i, withCtx as e, createVNode as l, renderSlot as n, createElementVNode as d, normalizeProps as _, guardReactiveProps as f } from "vue";
|
|
2
|
+
import { _ as p } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const u = {};
|
|
4
|
+
function m(t, v) {
|
|
5
|
+
const a = o("v-list"), c = o("v-menu");
|
|
6
|
+
return i(), s(c, {
|
|
7
|
+
"close-on-content-click": !1,
|
|
8
|
+
attach: "#xwCristalApp",
|
|
9
|
+
"z-index": "initial"
|
|
10
|
+
}, {
|
|
11
|
+
activator: e(({ props: r }) => [
|
|
12
|
+
d("span", _(f(r)), [
|
|
13
|
+
n(t.$slots, "activator", {}, void 0, !0)
|
|
14
|
+
], 16)
|
|
15
|
+
]),
|
|
16
|
+
default: e(() => [
|
|
17
|
+
l(a, { density: "compact" }, {
|
|
18
|
+
default: e(() => [
|
|
19
|
+
n(t.$slots, "default", {}, void 0, !0)
|
|
20
|
+
]),
|
|
21
|
+
_: 3
|
|
22
|
+
})
|
|
23
|
+
]),
|
|
24
|
+
_: 3
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
const k = /* @__PURE__ */ p(u, [["render", m], ["__scopeId", "data-v-f4270af8"]]);
|
|
28
|
+
export {
|
|
29
|
+
k as default
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=x-menu-DUp-JvdG.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-menu-
|
|
1
|
+
{"version":3,"file":"x-menu-DUp-JvdG.js","sources":["../src/vue/x-menu.vue"],"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<script lang=\"ts\" setup></script>\n<template>\n <!-- v-menu needs to be attached inside Cristal DOM to fix its z-index.\n We also reset the default z-index to set it in the style section. -->\n <v-menu\n :close-on-content-click=\"false\"\n attach=\"#xwCristalApp\"\n z-index=\"initial\"\n >\n <template #activator=\"{ props }\">\n <span v-bind=\"props\">\n <slot name=\"activator\" />\n </span>\n </template>\n <v-list density=\"compact\">\n <slot name=\"default\" />\n </v-list>\n </v-menu>\n</template>\n<style scoped>\n.v-overlay {\n z-index: var(--cr-z-index-dropdown);\n}\n</style>\n"],"names":["_createBlock","_component_v_menu","_withCtx","props","_createElementVNode","_renderSlot","_ctx","_createVNode","_component_v_list"],"mappings":";;;;;cAuBEA,EAaSC,GAAA;AAAA,IAZN,0BAAwB;AAAA,IACzB,QAAO;AAAA,IACP,WAAQ;AAAA;IAEG,WAASC,EAClB,CAEO,EAHe,OAAAC,QAAK;AAAA,MAC3BC,EAEO,YAFOD,CAAK,CAAA,GAAA;AAAA,QACjBE,EAAyBC,EAAA,QAAA,aAAA,CAAA,GAAA,QAAA,EAAA;AAAA;;eAG7B,MAES;AAAA,MAFTC,EAESC,GAAA,EAFD,SAAQ,UAAS,GAAA;AAAA,mBACvB,MAAuB;AAAA,UAAvBH,EAAuBC,EAAA,QAAA,WAAA,CAAA,GAAA,QAAA,EAAA;AAAA;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as m, mergeModels as n, useModel as
|
|
2
|
-
import { t as V } from "./translations-
|
|
1
|
+
import { defineComponent as m, mergeModels as n, useModel as d, computed as i, createBlock as c, openBlock as f, unref as p } from "vue";
|
|
2
|
+
import { t as V } from "./translations-CXVK8zyA.js";
|
|
3
3
|
import { useI18n as b } from "vue-i18n";
|
|
4
|
-
import {
|
|
4
|
+
import { d as g } from "./index-CkeFEgm6.js";
|
|
5
5
|
const B = /* @__PURE__ */ m({
|
|
6
6
|
__name: "x-select",
|
|
7
7
|
props: /* @__PURE__ */ n({
|
|
@@ -16,9 +16,9 @@ const B = /* @__PURE__ */ m({
|
|
|
16
16
|
}),
|
|
17
17
|
emits: ["update:modelValue"],
|
|
18
18
|
setup(e) {
|
|
19
|
-
const r = e, s =
|
|
19
|
+
const r = e, s = d(e, "modelValue"), { t: a } = b({
|
|
20
20
|
messages: V
|
|
21
|
-
}), o =
|
|
21
|
+
}), o = i(() => {
|
|
22
22
|
const t = [];
|
|
23
23
|
return r.required && t.push((l) => l ? !0 : a("vuetify.select.input.mandatory")), t;
|
|
24
24
|
});
|
|
@@ -36,4 +36,4 @@ const B = /* @__PURE__ */ m({
|
|
|
36
36
|
export {
|
|
37
37
|
B as default
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=x-select-
|
|
39
|
+
//# sourceMappingURL=x-select-BduzHCet.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-select-
|
|
1
|
+
{"version":3,"file":"x-select-BduzHCet.js","sources":["../src/vue/form/x-select.vue"],"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<script lang=\"ts\" setup>\nimport messages from \"../../translations\";\nimport { computed } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nimport { VSelect } from \"vuetify/components/VSelect\";\nimport type { SelectProps } from \"@xwiki/platform-dsapi\";\n\nconst props = defineProps<SelectProps>();\nconst selected = defineModel<string>();\n\nconst { t } = useI18n({\n messages,\n});\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.select.input.mandatory\");\n }\n });\n }\n return rulesList;\n});\n</script>\n<template>\n <v-select\n v-model=\"selected\"\n :label=\"label\"\n :messages=\"help\"\n :items=\"items\"\n :rules=\"rules\"\n :clearable=\"!required\"\n ></v-select>\n</template>\n"],"names":["props","__props","selected","_useModel","t","useI18n","messages","rules","computed","rulesList","value","_createBlock","_unref","VSelect","$event"],"mappings":";;;;;;;;;;;;;;;;;;AA0BA,UAAMA,IAAQC,GACRC,IAAWC,EAAmBF,GAAA,YAAC,GAE/B,EAAE,GAAAG,EAAA,IAAMC,EAAQ;AAAA,MAAA,UACpBC;AAAAA,IAAA,CACD,GAEKC,IAAQC,EAAS,MAAM;AAC3B,YAAMC,IAAY,CAAA;AAClB,aAAIT,EAAM,YACRS,EAAU,KAAK,CAACC,MACVA,IACK,KAEAN,EAAE,gCAAgC,CAE5C,GAEIK;AAAA,IACT,CAAC;2BAGCE,EAOYC,EAAAC,CAAA,GAAA;AAAA,kBANDX,EAAA;AAAA,oDAAAA,EAAQ,QAAAY;AAAA,MAChB,OAAOb,EAAA;AAAA,MACP,UAAUA,EAAA;AAAA,MACV,OAAOA,EAAA;AAAA,MACP,OAAOM,EAAA;AAAA,MACP,YAAYN,EAAA;AAAA,IAAA;;;"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent as s, mergeModels as d, useModel as i, computed as m, createBlock as f, openBlock as p, unref as c, withCtx as y, renderSlot as h } from "vue";
|
|
2
|
+
import { t as V } from "./translations-CXVK8zyA.js";
|
|
3
|
+
import { useI18n as x } from "vue-i18n";
|
|
4
|
+
import { a as v } from "./index-CkeFEgm6.js";
|
|
5
|
+
const k = /* @__PURE__ */ s({
|
|
6
|
+
__name: "x-text-field",
|
|
7
|
+
props: /* @__PURE__ */ d({
|
|
8
|
+
name: {},
|
|
9
|
+
label: {},
|
|
10
|
+
required: { type: Boolean },
|
|
11
|
+
autofocus: { type: Boolean },
|
|
12
|
+
modelValue: {},
|
|
13
|
+
help: {},
|
|
14
|
+
readonly: { type: Boolean },
|
|
15
|
+
type: {}
|
|
16
|
+
}, {
|
|
17
|
+
modelValue: {},
|
|
18
|
+
modelModifiers: {}
|
|
19
|
+
}),
|
|
20
|
+
emits: ["update:modelValue"],
|
|
21
|
+
setup(e) {
|
|
22
|
+
const { t: a } = x({
|
|
23
|
+
messages: V
|
|
24
|
+
}), n = e, o = i(e, "modelValue"), u = m(() => {
|
|
25
|
+
const t = [];
|
|
26
|
+
return n.required && t.push((l) => l ? !0 : a("vuetify.text.input.mandatory")), t;
|
|
27
|
+
});
|
|
28
|
+
return (t, l) => (p(), f(c(v), {
|
|
29
|
+
modelValue: o.value,
|
|
30
|
+
"onUpdate:modelValue": l[0] || (l[0] = (r) => o.value = r),
|
|
31
|
+
label: e.label,
|
|
32
|
+
name: e.name,
|
|
33
|
+
autofocus: e.autofocus,
|
|
34
|
+
hint: e.help,
|
|
35
|
+
"persistent-hint": e.help !== void 0,
|
|
36
|
+
rules: u.value,
|
|
37
|
+
readonly: e.readonly,
|
|
38
|
+
type: e.type ?? "text"
|
|
39
|
+
}, {
|
|
40
|
+
default: y(() => [
|
|
41
|
+
h(t.$slots, "default")
|
|
42
|
+
]),
|
|
43
|
+
_: 3
|
|
44
|
+
}, 8, ["modelValue", "label", "name", "autofocus", "hint", "persistent-hint", "rules", "readonly", "type"]));
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
k as default
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=x-text-field-CvC6id2f.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-text-field-
|
|
1
|
+
{"version":3,"file":"x-text-field-CvC6id2f.js","sources":["../src/vue/form/x-text-field.vue"],"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<script setup lang=\"ts\">\nimport messages from \"../../translations\";\nimport { computed } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nimport { VTextField } from \"vuetify/components/VTextField\";\nimport type { TextFieldProps } from \"@xwiki/platform-dsapi\";\n\nconst { t } = useI18n({\n messages,\n});\nconst props = defineProps<TextFieldProps>();\nconst input = defineModel<string>();\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.text.input.mandatory\");\n }\n });\n }\n return rulesList;\n});\n</script>\n\n<template>\n <v-text-field\n v-model=\"input\"\n :label=\"label\"\n :name=\"name\"\n :autofocus=\"autofocus\"\n :hint=\"help\"\n :persistent-hint=\"help !== undefined\"\n :rules=\"rules\"\n :readonly=\"readonly\"\n :type=\"type ?? 'text'\"\n >\n <template #default>\n <slot name=\"default\" />\n </template>\n </v-text-field>\n</template>\n\n<style scoped></style>\n"],"names":["t","useI18n","messages","props","__props","input","_useModel","rules","computed","rulesList","value","_createBlock","_unref","VTextField","$event","_renderSlot","_ctx"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA0BA,UAAM,EAAE,GAAAA,EAAA,IAAMC,EAAQ;AAAA,MAAA,UACpBC;AAAAA,IAAA,CACD,GACKC,IAAQC,GACRC,IAAQC,EAAmBF,GAAA,YAAC,GAE5BG,IAAQC,EAAS,MAAM;AAC3B,YAAMC,IAAY,CAAA;AAClB,aAAIN,EAAM,YACRM,EAAU,KAAK,CAACC,MACVA,IACK,KAEAV,EAAE,8BAA8B,CAE1C,GAEIS;AAAA,IACT,CAAC;2BAICE,EAceC,EAAAC,CAAA,GAAA;AAAA,kBAbJR,EAAA;AAAA,oDAAAA,EAAK,QAAAS;AAAA,MACb,OAAOV,EAAA;AAAA,MACP,MAAMA,EAAA;AAAA,MACN,WAAWA,EAAA;AAAA,MACX,MAAMA,EAAA;AAAA,MACN,mBAAiBA,EAAA,SAAS;AAAA,MAC1B,OAAOG,EAAA;AAAA,MACP,UAAUH,EAAA;AAAA,MACV,MAAMA,EAAA,QAAI;AAAA,IAAA;MAEA,WACT,MAAuB;AAAA,QAAvBW,EAAuBC,EAAA,QAAA,SAAA;AAAA,MAAA;;;;;"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { defineComponent as y, mergeModels as h, useModel as s, ref as C, watch as k, createBlock as m, openBlock as i, unref as b, withCtx as w, createElementBlock as v, withModifiers as x, toDisplayString as u } from "vue";
|
|
2
|
+
import { e as A } from "./index-CkeFEgm6.js";
|
|
3
|
+
import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const N = ["href", "onClick"], z = ["href", "onClick"], B = /* @__PURE__ */ y({
|
|
5
|
+
__name: "x-tree",
|
|
6
|
+
props: /* @__PURE__ */ h({
|
|
7
|
+
rootNode: {},
|
|
8
|
+
showRootNode: { type: Boolean },
|
|
9
|
+
activated: {},
|
|
10
|
+
opened: {},
|
|
11
|
+
lazyLoadChildren: { type: Function },
|
|
12
|
+
nodeClickAction: { type: Function }
|
|
13
|
+
}, {
|
|
14
|
+
opened: { default: [], type: Array },
|
|
15
|
+
openedModifiers: {},
|
|
16
|
+
activated: {},
|
|
17
|
+
activatedModifiers: {}
|
|
18
|
+
}),
|
|
19
|
+
emits: ["update:opened", "update:activated"],
|
|
20
|
+
setup(t) {
|
|
21
|
+
const f = t, n = s(t, "opened"), o = s(t, "activated"), c = C([]);
|
|
22
|
+
k(o, l, { immediate: !0 });
|
|
23
|
+
function l() {
|
|
24
|
+
c.value = o.value ? [o.value] : [];
|
|
25
|
+
}
|
|
26
|
+
function r(a) {
|
|
27
|
+
a.activatable && (o.value = a.id);
|
|
28
|
+
}
|
|
29
|
+
async function p(a) {
|
|
30
|
+
await f.lazyLoadChildren(a);
|
|
31
|
+
}
|
|
32
|
+
return (a, d) => (i(), m(b(A), {
|
|
33
|
+
density: "compact",
|
|
34
|
+
activated: c.value,
|
|
35
|
+
items: t.showRootNode ? [t.rootNode] : t.rootNode.children,
|
|
36
|
+
"load-children": t.lazyLoadChildren ? p : void 0,
|
|
37
|
+
activatable: "",
|
|
38
|
+
"active-strategy": "independent",
|
|
39
|
+
"item-value": "id",
|
|
40
|
+
opened: n.value,
|
|
41
|
+
"onUpdate:opened": [
|
|
42
|
+
d[0] || (d[0] = (e) => n.value = e),
|
|
43
|
+
d[1] || (d[1] = (e) => n.value = e)
|
|
44
|
+
],
|
|
45
|
+
"onUpdate:activated": l
|
|
46
|
+
}, {
|
|
47
|
+
title: w(({ item: e }) => [
|
|
48
|
+
t.nodeClickAction ? (i(), v("a", {
|
|
49
|
+
key: 0,
|
|
50
|
+
href: e.url,
|
|
51
|
+
onClick: x(
|
|
52
|
+
async () => {
|
|
53
|
+
r(e), await t.nodeClickAction(e);
|
|
54
|
+
},
|
|
55
|
+
["prevent"]
|
|
56
|
+
)
|
|
57
|
+
}, u(e.label), 9, N)) : (i(), v("a", {
|
|
58
|
+
key: 1,
|
|
59
|
+
href: e.url,
|
|
60
|
+
onClick: (L) => r(e)
|
|
61
|
+
}, u(e.label), 9, z))
|
|
62
|
+
]),
|
|
63
|
+
_: 1
|
|
64
|
+
}, 8, ["activated", "items", "load-children", "opened"]));
|
|
65
|
+
}
|
|
66
|
+
}), T = /* @__PURE__ */ M(B, [["__scopeId", "data-v-b9bb4c28"]]);
|
|
67
|
+
export {
|
|
68
|
+
T as default
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=x-tree-CbliYwVw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-tree-CbliYwVw.js","sources":["../src/vue/x-tree.vue"],"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<script setup lang=\"ts\" generic=\"T extends DisplayableTreeNode\">\nimport { ref, watch } from \"vue\";\nimport { VTreeview } from \"vuetify/components/VTreeview\";\nimport type { DisplayableTreeNode, TreeProps } from \"@xwiki/platform-dsapi\";\nimport type { Ref } from \"vue\";\n\nconst props = defineProps<TreeProps<T>>();\nconst opened = defineModel(\"opened\", { default: [], type: Array<string> });\nconst activated = defineModel<string | undefined>(\"activated\");\n\nconst activatedNodes: Ref<Array<string>> = ref([]);\n\nwatch(activated, resetActivated, { immediate: true });\n\nfunction resetActivated() {\n // Clicking on a node would activate it and this can't be disabled easily.\n // With this listener, we ensure that only the node we want stays active.\n activatedNodes.value = activated.value ? [activated.value] : [];\n}\n\nfunction updateActivated(newActivatedNode: DisplayableTreeNode) {\n if (newActivatedNode.activatable) {\n activated.value = newActivatedNode.id;\n }\n}\n\nasync function lazyLoadChildrenWrapper(node: unknown) {\n // We need this wrapper because our props are more specific than Vuetify's.\n await props.lazyLoadChildren!(node as T);\n}\n</script>\n\n<template>\n <v-treeview\n density=\"compact\"\n :activated=\"activatedNodes\"\n :items=\"showRootNode ? [rootNode] : rootNode.children\"\n :load-children=\"lazyLoadChildren ? lazyLoadChildrenWrapper : undefined\"\n activatable\n active-strategy=\"independent\"\n item-value=\"id\"\n v-model:opened=\"opened as string[]\"\n @update:opened=\"($event: string[]) => (opened = $event)\"\n @update:activated=\"resetActivated\"\n >\n <template #title=\"{ item }\">\n <a\n v-if=\"nodeClickAction\"\n :href=\"item.url\"\n @click.prevent=\"\n async () => {\n updateActivated(item);\n await nodeClickAction!(item as T);\n }\n \"\n >{{ item.label }}</a\n >\n <a v-else :href=\"item.url\" @click=\"updateActivated(item)\">{{\n item.label\n }}</a>\n </template>\n </v-treeview>\n</template>\n\n<style scoped>\n/* Remove the background color from the root div element. */\n.v-list {\n background: none;\n}\n:deep(a) {\n text-decoration: none;\n color: var(--cr-base-text-color);\n}\n/* Disable hover on items. */\n:deep(.v-list-item__overlay) {\n --v-hover-opacity: 0;\n}\n/* Disable hand cursor on items, since we disable the default click action. */\n:deep(.v-list-item--link) {\n cursor: default;\n}\n</style>\n"],"names":["props","__props","opened","_useModel","activated","activatedNodes","ref","watch","resetActivated","updateActivated","newActivatedNode","lazyLoadChildrenWrapper","node","_createBlock","_unref","VTreeview","$event","_withCtx","item","_createElementBlock","_withModifiers","_toDisplayString","_hoisted_1","_hoisted_2"],"mappings":";;;;;;;;;;;;;;;;;;;;AAyBA,UAAMA,IAAQC,GACRC,IAASC,EAAWF,GAAC,QAA8C,GACnEG,IAAYD,KAAgC,WAAW,GAEvDE,IAAqCC,EAAI,EAAE;AAEjD,IAAAC,EAAMH,GAAWI,GAAgB,EAAE,WAAW,IAAM;AAEpD,aAASA,IAAiB;AAGxB,MAAAH,EAAe,QAAQD,EAAU,QAAQ,CAACA,EAAU,KAAK,IAAI,CAAA;AAAA,IAC/D;AAEA,aAASK,EAAgBC,GAAuC;AAC9D,MAAIA,EAAiB,gBACnBN,EAAU,QAAQM,EAAiB;AAAA,IAEvC;AAEA,mBAAeC,EAAwBC,GAAe;AAEpD,YAAMZ,EAAM,iBAAkBY,CAAS;AAAA,IACzC;2BAIEC,EA4BaC,EAAAC,CAAA,GAAA;AAAA,MA3BX,SAAQ;AAAA,MACP,WAAWV,EAAA;AAAA,MACX,OAAOJ,EAAA,eAAY,CAAIA,UAAQ,IAAIA,EAAA,SAAS;AAAA,MAC5C,iBAAeA,EAAA,mBAAmBU,IAA0B;AAAA,MAC7D,aAAA;AAAA,MACA,mBAAgB;AAAA,MAChB,cAAW;AAAA,MACH,QAAQT,EAAA;AAAA;+BAAAA,EAAA,QAAMc;AAAA,yBACLA,MAAsBd,EAAA,QAASc;AAAA,MAAA;AAAA,MAC/C,sBAAkBR;AAAA,IAAA;MAER,OAAKS,EACd,CAUC,EAXiB,MAAAC,QAAI;AAAA,QAEdjB,EAAA,wBADRkB,EAUC,KAAA;AAAA;UARE,MAAMD,EAAK;AAAA,UACX,SAAKE;AAAAA;AAA+C,cAAAX,EAAgBS,CAAI,GAAqB,MAAAjB,EAAA,gBAAiBiB,CAAI;AAAA;;;WAM/GG,EAAAH,EAAK,KAAK,GAAA,GAAAI,CAAA,WAEhBH,EAEM,KAAA;AAAA;UAFK,MAAMD,EAAK;AAAA,UAAM,SAAK,CAAAF,MAAEP,EAAgBS,CAAI;AAAA,QAAA,GACrDG,EAAAH,EAAK,KAAK,GAAA,GAAAK,CAAA;AAAA,MAAA;;;;;"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"vuetify.file.input.mandatory": "Pflichtfeld",
|
|
3
3
|
"vuetify.select.input.mandatory": "Pflichtfeld",
|
|
4
|
-
"vuetify.text.input.mandatory": "Pflichtfeld"
|
|
5
|
-
"vuetify.tree.select.location.label": "Speicherort der Seite ändern",
|
|
6
|
-
"vuetify.tree.select.location.select": "Auswählen"
|
|
4
|
+
"vuetify.text.input.mandatory": "Pflichtfeld"
|
|
7
5
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"vuetify.file.input.mandatory": "Mandatory field",
|
|
3
3
|
"vuetify.select.input.mandatory": "Mandatory field",
|
|
4
|
-
"vuetify.text.input.mandatory": "Mandatory field"
|
|
5
|
-
"vuetify.tree.select.location.label": "Change Page Location",
|
|
6
|
-
"vuetify.tree.select.location.select": "Select"
|
|
4
|
+
"vuetify.text.input.mandatory": "Mandatory field"
|
|
7
5
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"vuetify.file.input.mandatory": "Champ obligatoire",
|
|
3
3
|
"vuetify.select.input.mandatory": "Champ obligatoire",
|
|
4
|
-
"vuetify.text.input.mandatory": "Champ obligatoire"
|
|
5
|
-
"vuetify.tree.select.location.label": "Changer l'emplacement de la page",
|
|
6
|
-
"vuetify.tree.select.location.select": "Sélectionner"
|
|
4
|
+
"vuetify.text.input.mandatory": "Champ obligatoire"
|
|
7
5
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xwiki/cristal-dsvuetify",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"license": "LGPL 2.1",
|
|
5
5
|
"author": "XWiki Org Community <contact@xwiki.org>",
|
|
6
6
|
"homepage": "https://cristal.xwiki.org/",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"main": "./dist/index.es.js",
|
|
29
29
|
"types": "./dist/index.d.ts",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@xwiki/platform-api": "18.0.0
|
|
32
|
-
"@xwiki/platform-document-api": "18.0.0
|
|
33
|
-
"@xwiki/platform-fn-utils": "18.0.0
|
|
34
|
-
"@xwiki/platform-model-api": "18.0.0
|
|
35
|
-
"@xwiki/platform-model-reference-api": "18.0.0
|
|
36
|
-
"@xwiki/platform-navigation-tree-api": "18.0.0
|
|
31
|
+
"@xwiki/platform-api": "18.0.0",
|
|
32
|
+
"@xwiki/platform-document-api": "18.0.0",
|
|
33
|
+
"@xwiki/platform-fn-utils": "18.0.0",
|
|
34
|
+
"@xwiki/platform-model-api": "18.0.0",
|
|
35
|
+
"@xwiki/platform-model-reference-api": "18.0.0",
|
|
36
|
+
"@xwiki/platform-navigation-tree-api": "18.0.0",
|
|
37
37
|
"vue-i18n": "11.2.2",
|
|
38
|
-
"vuetify": "3.11.
|
|
39
|
-
"@xwiki/cristal-hierarchy-api": "0.
|
|
38
|
+
"vuetify": "3.11.6",
|
|
39
|
+
"@xwiki/cristal-hierarchy-api": "1.0.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"inversify": "7.x",
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@vue/test-utils": "2.4.6",
|
|
48
|
-
"@xwiki/platform-dsapi": "18.0.0
|
|
49
|
-
"inversify": "7.
|
|
48
|
+
"@xwiki/platform-dsapi": "18.0.0",
|
|
49
|
+
"inversify": "7.11.0",
|
|
50
50
|
"reflect-metadata": "0.2.2",
|
|
51
51
|
"typescript": "5.9.3",
|
|
52
|
-
"vite": "7.
|
|
53
|
-
"vue": "3.5.
|
|
54
|
-
"vue-tsc": "3.
|
|
55
|
-
"@xwiki/cristal-dev-config": "0.
|
|
52
|
+
"vite": "7.3.1",
|
|
53
|
+
"vue": "3.5.26",
|
|
54
|
+
"vue-tsc": "3.2.2",
|
|
55
|
+
"@xwiki/cristal-dev-config": "1.0.0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"api-extractor:local": "api-extractor run --local",
|
|
@@ -135,21 +135,11 @@ export class VuetifyDesignSystemLoader implements DesignSystemLoader {
|
|
|
135
135
|
"XFileInput",
|
|
136
136
|
() => import("../vue/form/x-file-input.vue"),
|
|
137
137
|
);
|
|
138
|
-
registerAsyncComponent(
|
|
139
|
-
app,
|
|
140
|
-
"XNavigationTree",
|
|
141
|
-
() => import("../vue/x-navigation-tree.vue"),
|
|
142
|
-
);
|
|
143
138
|
registerAsyncComponent(
|
|
144
139
|
app,
|
|
145
140
|
"XCheckbox",
|
|
146
141
|
() => import("../vue/form/x-checkbox.vue"),
|
|
147
142
|
);
|
|
148
|
-
registerAsyncComponent(
|
|
149
|
-
app,
|
|
150
|
-
"XNavigationTreeSelect",
|
|
151
|
-
() => import("../vue/form/x-navigation-tree-select.vue"),
|
|
152
|
-
);
|
|
153
143
|
registerAsyncComponent(
|
|
154
144
|
app,
|
|
155
145
|
"XSelect",
|
package/src/vue/css/style.css
CHANGED
|
@@ -35,6 +35,7 @@ main ul, main ol {
|
|
|
35
35
|
|
|
36
36
|
:root {
|
|
37
37
|
--cr-sizes-max-page-width: 960px; /*This value controls the width of the main content. It should be 100% for spanning text along the whole width or an arbitraty value*/
|
|
38
|
+
--cr-sizes-main-sidebar-header-min-height: 40px; /*The minimum height of the main sidebar's header*/
|
|
38
39
|
--cr-sizes-main-sidebar-width: 15%; /*The default width of the main sidebar*/
|
|
39
40
|
--cr-sizes-main-sidebar-min-width: 250px; /*The minimum width of the main sidebar*/
|
|
40
41
|
--cr-sizes-collapsed-main-sidebar-width: 32px; /*The width of the bar that gets shown containing the menu button to reopen the standard main main sidebar*/
|
|
@@ -56,7 +56,11 @@ const rules = computed(() => {
|
|
|
56
56
|
:rules="rules"
|
|
57
57
|
:readonly="readonly"
|
|
58
58
|
:type="type ?? 'text'"
|
|
59
|
-
|
|
59
|
+
>
|
|
60
|
+
<template #default>
|
|
61
|
+
<slot name="default" />
|
|
62
|
+
</template>
|
|
63
|
+
</v-text-field>
|
|
60
64
|
</template>
|
|
61
65
|
|
|
62
66
|
<style scoped></style>
|