@xwiki/cristal-dsvuetify 1.2.0 → 1.4.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/package.json +17 -17
- package/src/components/vuetifyDesignSystemLoader.ts +1 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -10
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js.map +0 -1
- package/dist/components/componentsInit.d.ts +0 -7
- package/dist/components/vuetifyDesignSystemLoader.d.ts +0 -5
- package/dist/index-BzcWoPad.js +0 -26502
- package/dist/index-BzcWoPad.js.map +0 -1
- package/dist/index.d.cts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.es.js +0 -14
- package/dist/index.es.js.map +0 -1
- package/dist/index.umd.js +0 -17
- package/dist/index.umd.js.map +0 -1
- package/dist/translations-CXVK8zyA.js +0 -21
- package/dist/translations-CXVK8zyA.js.map +0 -1
- package/dist/translations.d.ts +0 -21
- package/dist/vue/__tests__/utils/vuetify.d.ts +0 -24
- package/dist/vue/form/x-checkbox.vue.d.ts +0 -11
- package/dist/vue/form/x-file-input.vue.d.ts +0 -11
- package/dist/vue/form/x-form.vue.d.ts +0 -1225
- package/dist/vue/form/x-select.vue.d.ts +0 -11
- package/dist/vue/form/x-text-field.vue.d.ts +0 -26
- package/dist/vue/x-alert.vue.d.ts +0 -18
- package/dist/vue/x-avatar.vue.d.ts +0 -3
- package/dist/vue/x-breadcrumb.vue.d.ts +0 -3
- package/dist/vue/x-btn.vue.d.ts +0 -18
- package/dist/vue/x-card.vue.d.ts +0 -12
- package/dist/vue/x-dialog.vue.d.ts +0 -23
- package/dist/vue/x-divider.vue.d.ts +0 -2
- package/dist/vue/x-dropdown.vue.d.ts +0 -19
- package/dist/vue/x-img.vue.d.ts +0 -12
- package/dist/vue/x-load.vue.d.ts +0 -2
- package/dist/vue/x-menu-item.vue.d.ts +0 -18
- package/dist/vue/x-menu-label.vue.d.ts +0 -17
- package/dist/vue/x-menu.vue.d.ts +0 -17
- package/dist/vue/x-search.vue.d.ts +0 -2
- package/dist/vue/x-tab-group.vue.d.ts +0 -22
- package/dist/vue/x-tab-panel.vue.d.ts +0 -18
- package/dist/vue/x-tab.vue.d.ts +0 -18
- package/dist/vue/x-tree.vue.d.ts +0 -20
- package/dist/x-alert-ChVriu6T.js +0 -48
- package/dist/x-alert-ChVriu6T.js.map +0 -1
- package/dist/x-avatar-CSobfWTk.js +0 -28
- package/dist/x-avatar-CSobfWTk.js.map +0 -1
- package/dist/x-breadcrumb-GmZWw0HG.js +0 -22
- package/dist/x-breadcrumb-GmZWw0HG.js.map +0 -1
- package/dist/x-btn-B7EtO8yc.js +0 -5
- package/dist/x-btn-B7EtO8yc.js.map +0 -1
- package/dist/x-btn.vue_vue_type_script_setup_true_lang-WWoyaSKz.js +0 -52
- package/dist/x-btn.vue_vue_type_script_setup_true_lang-WWoyaSKz.js.map +0 -1
- package/dist/x-card-CRM9KUby.js +0 -22
- package/dist/x-card-CRM9KUby.js.map +0 -1
- package/dist/x-checkbox-Bg43UZ5N.js +0 -28
- package/dist/x-checkbox-Bg43UZ5N.js.map +0 -1
- package/dist/x-dialog-4cFJfisB.js +0 -49
- package/dist/x-dialog-4cFJfisB.js.map +0 -1
- package/dist/x-divider-Buudf0KI.js +0 -12
- package/dist/x-divider-Buudf0KI.js.map +0 -1
- package/dist/x-dropdown-BL_Wqa5N.js +0 -40
- package/dist/x-dropdown-BL_Wqa5N.js.map +0 -1
- package/dist/x-file-input-Dt2B3iG0.js +0 -40
- package/dist/x-file-input-Dt2B3iG0.js.map +0 -1
- package/dist/x-form-DA_DOJ2L.js +0 -33
- package/dist/x-form-DA_DOJ2L.js.map +0 -1
- package/dist/x-img-BYgs_O1F.js +0 -13
- package/dist/x-img-BYgs_O1F.js.map +0 -1
- package/dist/x-load-DipiCmNY.js +0 -11
- package/dist/x-load-DipiCmNY.js.map +0 -1
- package/dist/x-menu--XKGcL5D.js +0 -17
- package/dist/x-menu--XKGcL5D.js.map +0 -1
- package/dist/x-menu-item-C1ntozOO.js +0 -26
- package/dist/x-menu-item-C1ntozOO.js.map +0 -1
- package/dist/x-menu-label-DniImc0U.js +0 -17
- package/dist/x-menu-label-DniImc0U.js.map +0 -1
- package/dist/x-search-C4yZLrSp.js +0 -20
- package/dist/x-search-C4yZLrSp.js.map +0 -1
- package/dist/x-select-EUko1Rag.js +0 -39
- package/dist/x-select-EUko1Rag.js.map +0 -1
- package/dist/x-tab-D8ZXVkZ2.js +0 -22
- package/dist/x-tab-D8ZXVkZ2.js.map +0 -1
- package/dist/x-tab-group-D1jmHXyJ.js +0 -49
- package/dist/x-tab-group-D1jmHXyJ.js.map +0 -1
- package/dist/x-tab-panel-CwQdoT0T.js +0 -22
- package/dist/x-tab-panel-CwQdoT0T.js.map +0 -1
- package/dist/x-text-field-CZcbvoFI.js +0 -50
- package/dist/x-text-field-CZcbvoFI.js.map +0 -1
- package/dist/x-tree-SDsF-YBu.js +0 -70
- package/dist/x-tree-SDsF-YBu.js.map +0 -1
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { resolveComponent as o, openBlock as r, createBlock as c } from "vue";
|
|
2
|
-
import { _ as n } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
const t = {};
|
|
4
|
-
function _(i, s) {
|
|
5
|
-
const e = o("v-divider");
|
|
6
|
-
return r(), c(e);
|
|
7
|
-
}
|
|
8
|
-
const m = /* @__PURE__ */ n(t, [["render", _]]);
|
|
9
|
-
export {
|
|
10
|
-
m as default
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=x-divider-Buudf0KI.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-divider-Buudf0KI.js","sources":["../src/vue/x-divider.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<template>\n <v-divider />\n</template>\n"],"names":["_createBlock","_component_v_divider"],"mappings":";;;;;cAoBEA,EAAaC,CAAA;;;"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, resolveComponent as c, openBlock as d, createBlock as i, withCtx as o, renderSlot as n, createVNode as l, mergeProps as p } from "vue";
|
|
2
|
-
import { _ as m } from "./x-btn.vue_vue_type_script_setup_true_lang-WWoyaSKz.js";
|
|
3
|
-
import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
const f = /* @__PURE__ */ s({
|
|
5
|
-
__name: "x-dropdown",
|
|
6
|
-
props: {
|
|
7
|
-
disabled: { type: Boolean },
|
|
8
|
-
btnProps: {}
|
|
9
|
-
},
|
|
10
|
-
setup(e) {
|
|
11
|
-
return (t, u) => {
|
|
12
|
-
const a = c("v-menu");
|
|
13
|
-
return d(), i(a, {
|
|
14
|
-
"close-on-content-click": !1,
|
|
15
|
-
attach: "#xwCristalApp",
|
|
16
|
-
"z-index": "initial"
|
|
17
|
-
}, {
|
|
18
|
-
activator: o(({ props: r }) => [
|
|
19
|
-
l(m, p(e.btnProps, {
|
|
20
|
-
disabled: e.disabled,
|
|
21
|
-
onClick: r.onClick
|
|
22
|
-
}), {
|
|
23
|
-
default: o(() => [
|
|
24
|
-
n(t.$slots, "activator", {}, void 0, !0)
|
|
25
|
-
]),
|
|
26
|
-
_: 3
|
|
27
|
-
}, 16, ["disabled", "onClick"])
|
|
28
|
-
]),
|
|
29
|
-
default: o(() => [
|
|
30
|
-
n(t.$slots, "default", {}, void 0, !0)
|
|
31
|
-
]),
|
|
32
|
-
_: 3
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
}), k = /* @__PURE__ */ _(f, [["__scopeId", "data-v-ce7d95bb"]]);
|
|
37
|
-
export {
|
|
38
|
-
k as default
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=x-dropdown-BL_Wqa5N.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-dropdown-BL_Wqa5N.js","sources":["../src/vue/x-dropdown.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 XBtn from \"./x-btn.vue\";\nimport type { DropdownProps } from \"@xwiki/platform-dsapi\";\n\ndefineProps<DropdownProps>();\n</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 <!-- @vue-expect-error click is not part of the API. We need to improve\n Abstract Components type declaration to support generic html elements\n properties. -->\n <x-btn v-bind=\"btnProps\" :disabled=\"disabled\" @click=\"props.onClick\">\n <slot name=\"activator\"></slot>\n </x-btn>\n </template>\n <slot></slot>\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","_createVNode","XBtn","_mergeProps","__props","_renderSlot","_ctx"],"mappings":";;;;;;;;;;;;kBA4BEA,EAcSC,GAAA;AAAA,QAbN,0BAAwB;AAAA,QACzB,QAAO;AAAA,QACP,WAAQ;AAAA,MAAA;QAEG,WAASC,EAIlB,CAEQ,EANc,OAAAC,QAAK;AAAA,UAI3BC,EAEQC,GAFRC,EAEQC,EAAA,UAFe;AAAA,YAAG,UAAUA,EAAA;AAAA,YAAW,SAAOJ,EAAM;AAAA,UAAA;uBAC1D,MAA8B;AAAA,cAA9BK,EAA8BC,EAAA,QAAA,aAAA,CAAA,GAAA,QAAA,EAAA;AAAA,YAAA;;;;mBAGlC,MAAa;AAAA,UAAbD,EAAaC,EAAA,QAAA,WAAA,CAAA,GAAA,QAAA,EAAA;AAAA,QAAA;;;;;;"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, useModel as s, computed as d, openBlock as i, createBlock as p, unref as f, mergeModels as c } from "vue";
|
|
2
|
-
import { t as V } from "./translations-CXVK8zyA.js";
|
|
3
|
-
import { useI18n as y } from "vue-i18n";
|
|
4
|
-
import { b } from "./index-BzcWoPad.js";
|
|
5
|
-
const g = /* @__PURE__ */ m({
|
|
6
|
-
__name: "x-file-input",
|
|
7
|
-
props: /* @__PURE__ */ c({
|
|
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: u } = y({
|
|
23
|
-
messages: V
|
|
24
|
-
}), t = s(e, "modelValue"), a = e, n = d(() => {
|
|
25
|
-
const o = [];
|
|
26
|
-
return a.required && o.push((l) => l ? !0 : u("vuetify.file.input.mandatory")), o;
|
|
27
|
-
});
|
|
28
|
-
return (o, l) => (i(), p(f(b), {
|
|
29
|
-
modelValue: t.value,
|
|
30
|
-
"onUpdate:modelValue": l[0] || (l[0] = (r) => t.value = r),
|
|
31
|
-
label: e.label,
|
|
32
|
-
name: e.name,
|
|
33
|
-
rules: n.value
|
|
34
|
-
}, null, 8, ["modelValue", "label", "name", "rules"]));
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
export {
|
|
38
|
-
g as default
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=x-file-input-Dt2B3iG0.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-file-input-Dt2B3iG0.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;;;"}
|
package/dist/x-form-DA_DOJ2L.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, ref as m, openBlock as f, createBlock as c, unref as u, withModifiers as d, withCtx as _, renderSlot as l } from "vue";
|
|
2
|
-
import { V as p } from "./index-BzcWoPad.js";
|
|
3
|
-
import { _ as v } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
const x = /* @__PURE__ */ s({
|
|
5
|
-
__name: "x-form",
|
|
6
|
-
emits: ["formSubmit"],
|
|
7
|
-
setup(b, { expose: o, emit: r }) {
|
|
8
|
-
const t = m(void 0), i = r;
|
|
9
|
-
o({
|
|
10
|
-
reset: a
|
|
11
|
-
});
|
|
12
|
-
async function a() {
|
|
13
|
-
t.value?.reset();
|
|
14
|
-
}
|
|
15
|
-
async function n() {
|
|
16
|
-
(await t.value?.validate())?.valid && i("formSubmit");
|
|
17
|
-
}
|
|
18
|
-
return (e, S) => (f(), c(u(p), {
|
|
19
|
-
ref_key: "form",
|
|
20
|
-
ref: t,
|
|
21
|
-
onSubmit: d(n, ["prevent"])
|
|
22
|
-
}, {
|
|
23
|
-
default: _(() => [
|
|
24
|
-
l(e.$slots, "default", {}, void 0, !0)
|
|
25
|
-
]),
|
|
26
|
-
_: 3
|
|
27
|
-
}, 512));
|
|
28
|
-
}
|
|
29
|
-
}), y = /* @__PURE__ */ v(x, [["__scopeId", "data-v-5c07499c"]]);
|
|
30
|
-
export {
|
|
31
|
-
y as default
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=x-form-DA_DOJ2L.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-form-DA_DOJ2L.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;;;;;"}
|
package/dist/x-img-BYgs_O1F.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { openBlock as e, createElementBlock as t } from "vue";
|
|
2
|
-
import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
const o = {
|
|
4
|
-
props: { src: { type: String, required: !0 } }
|
|
5
|
-
}, s = ["src"];
|
|
6
|
-
function n(_, p, r, i, a, m) {
|
|
7
|
-
return e(), t("img", { src: r.src }, null, 8, s);
|
|
8
|
-
}
|
|
9
|
-
const d = /* @__PURE__ */ c(o, [["render", n]]);
|
|
10
|
-
export {
|
|
11
|
-
d as default
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=x-img-BYgs_O1F.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-img-BYgs_O1F.js","sources":["../src/vue/x-img.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<template>\n <!-- TODO: add an alt attribute for accessibility -->\n <img :src=\"src\" />\n</template>\n<script lang=\"ts\">\nexport default {\n props: { src: { type: String, required: true } },\n};\n</script>\n"],"names":["_sfc_main","_createElementBlock","$props","_hoisted_1"],"mappings":";;AAwBA,MAAAA,IAAe;AAAA,EACb,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,UAAU,KAAK;AAC/C;;cALEC,EAAkB,OAAA,EAAZ,KAAKC,EAAA,IAAA,GAAG,MAAA,GAAAC,CAAA;;;"}
|
package/dist/x-load-DipiCmNY.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, openBlock as n, createElementBlock as o } from "vue";
|
|
2
|
-
const p = /* @__PURE__ */ e({
|
|
3
|
-
__name: "x-load",
|
|
4
|
-
setup(t) {
|
|
5
|
-
return (r, a) => (n(), o("span"));
|
|
6
|
-
}
|
|
7
|
-
});
|
|
8
|
-
export {
|
|
9
|
-
p as default
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=x-load-DipiCmNY.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-load-DipiCmNY.js","sources":["../src/vue/x-load.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 \"vuetify/styles\";\nimport \"./css/style.css\";\n</script>\n\n<template><span></span></template>\n\n<style scoped></style>\n"],"names":["_createElementBlock"],"mappings":";;;;2BAwBUA,EAAa,MAAA;AAAA;;"}
|
package/dist/x-menu--XKGcL5D.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { resolveComponent as o, openBlock as n, createBlock as r, withCtx as c, renderSlot as s } from "vue";
|
|
2
|
-
import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
const a = {};
|
|
4
|
-
function d(e, f) {
|
|
5
|
-
const t = o("v-list");
|
|
6
|
-
return n(), r(t, { density: "compact" }, {
|
|
7
|
-
default: c(() => [
|
|
8
|
-
s(e.$slots, "default", {}, void 0, !0)
|
|
9
|
-
]),
|
|
10
|
-
_: 3
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
const p = /* @__PURE__ */ _(a, [["render", d], ["__scopeId", "data-v-34407184"]]);
|
|
14
|
-
export {
|
|
15
|
-
p as default
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=x-menu--XKGcL5D.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-menu--XKGcL5D.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-list density=\"compact\">\n <slot name=\"default\" />\n </v-list>\n</template>\n<style scoped>\n.v-overlay {\n z-index: var(--cr-z-index-dropdown);\n}\n</style>\n"],"names":["_createBlock","_component_v_list","_renderSlot","_ctx"],"mappings":";;;;;cAqBEA,EAESC,GAAA,EAFD,SAAQ,aAAS;AAAA,eACvB,MAAuB;AAAA,MAAvBC,EAAuBC,EAAA,QAAA,WAAA,CAAA,GAAA,QAAA,EAAA;AAAA;;;;;"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { defineComponent as o, resolveComponent as a, openBlock as n, createBlock as s, withCtx as d, renderSlot as i } from "vue";
|
|
2
|
-
const u = /* @__PURE__ */ o({
|
|
3
|
-
__name: "x-menu-item",
|
|
4
|
-
props: {
|
|
5
|
-
value: {},
|
|
6
|
-
disabled: { type: Boolean }
|
|
7
|
-
},
|
|
8
|
-
setup(e) {
|
|
9
|
-
return (t, m) => {
|
|
10
|
-
const l = a("v-list-item");
|
|
11
|
-
return n(), s(l, {
|
|
12
|
-
value: e.value,
|
|
13
|
-
disabled: e.disabled
|
|
14
|
-
}, {
|
|
15
|
-
default: d(() => [
|
|
16
|
-
i(t.$slots, "default")
|
|
17
|
-
]),
|
|
18
|
-
_: 3
|
|
19
|
-
}, 8, ["value", "disabled"]);
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
export {
|
|
24
|
-
u as default
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=x-menu-item-C1ntozOO.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-menu-item-C1ntozOO.js","sources":["../src/vue/x-menu-item.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 type { MenuItemProps } from \"@xwiki/platform-dsapi\";\n\ndefineProps<MenuItemProps>();\n</script>\n<template>\n <v-list-item :value=\"value\" :disabled=\"disabled\">\n <slot name=\"default\" />\n </v-list-item>\n</template>\n"],"names":["_createBlock","_component_v_list_item","__props","_renderSlot","_ctx"],"mappings":";;;;;;;;;;kBAyBEA,EAEcC,GAAA;AAAA,QAFA,OAAOC,EAAA;AAAA,QAAQ,UAAUA,EAAA;AAAA,MAAA;mBACrC,MAAuB;AAAA,UAAvBC,EAAuBC,EAAA,QAAA,SAAA;AAAA,QAAA;;;;;;"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { resolveComponent as o, openBlock as r, createBlock as n, withCtx as s, renderSlot as c } from "vue";
|
|
2
|
-
import { _ as l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
const _ = {};
|
|
4
|
-
function a(e, f) {
|
|
5
|
-
const t = o("v-list-subheader");
|
|
6
|
-
return r(), n(t, null, {
|
|
7
|
-
default: s(() => [
|
|
8
|
-
c(e.$slots, "default")
|
|
9
|
-
]),
|
|
10
|
-
_: 3
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
const i = /* @__PURE__ */ l(_, [["render", a]]);
|
|
14
|
-
export {
|
|
15
|
-
i as default
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=x-menu-label-DniImc0U.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-menu-label-DniImc0U.js","sources":["../src/vue/x-menu-label.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-list-subheader>\n <slot name=\"default\" />\n </v-list-subheader>\n</template>\n"],"names":["_createBlock","_component_v_list_subheader","_renderSlot","_ctx"],"mappings":";;;;;cAqBEA,EAEmBC,GAAA,MAAA;AAAA,eADjB,MAAuB;AAAA,MAAvBC,EAAuBC,EAAA,QAAA,SAAA;AAAA;;;;;"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { resolveComponent as o, openBlock as n, createBlock as t } from "vue";
|
|
2
|
-
import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
const r = {};
|
|
4
|
-
function a(m, s) {
|
|
5
|
-
const e = o("v-autocomplete");
|
|
6
|
-
return n(), t(e, {
|
|
7
|
-
density: "comfortable",
|
|
8
|
-
"menu-icon": "",
|
|
9
|
-
placeholder: "Search",
|
|
10
|
-
"prepend-inner-icon": "mdi-magnify",
|
|
11
|
-
variant: "solo",
|
|
12
|
-
"auto-select-first": "",
|
|
13
|
-
rounded: ""
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
const _ = /* @__PURE__ */ c(r, [["render", a]]);
|
|
17
|
-
export {
|
|
18
|
-
_ as default
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=x-search-C4yZLrSp.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-search-C4yZLrSp.js","sources":["../src/vue/x-search.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\"></script>\n\n<template>\n <v-autocomplete\n density=\"comfortable\"\n menu-icon=\"\"\n placeholder=\"Search\"\n prepend-inner-icon=\"mdi-magnify\"\n variant=\"solo\"\n auto-select-first\n rounded\n ></v-autocomplete>\n</template>\n\n<style scoped></style>\n"],"names":["_createBlock","_component_v_autocomplete"],"mappings":";;;;;cAsBEA,EAQkBC,GAAA;AAAA,IAPhB,SAAQ;AAAA,IACR,aAAU;AAAA,IACV,aAAY;AAAA,IACZ,sBAAmB;AAAA,IACnB,SAAQ;AAAA,IACR,qBAAA;AAAA,IACA,SAAA;AAAA;;;"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, useModel as n, computed as d, openBlock as i, createBlock as c, unref as f, mergeModels as p } from "vue";
|
|
2
|
-
import { t as V } from "./translations-CXVK8zyA.js";
|
|
3
|
-
import { useI18n as b } from "vue-i18n";
|
|
4
|
-
import { d as g } from "./index-BzcWoPad.js";
|
|
5
|
-
const B = /* @__PURE__ */ m({
|
|
6
|
-
__name: "x-select",
|
|
7
|
-
props: /* @__PURE__ */ p({
|
|
8
|
-
label: {},
|
|
9
|
-
items: {},
|
|
10
|
-
help: {},
|
|
11
|
-
required: { type: Boolean },
|
|
12
|
-
modelValue: {}
|
|
13
|
-
}, {
|
|
14
|
-
modelValue: {},
|
|
15
|
-
modelModifiers: {}
|
|
16
|
-
}),
|
|
17
|
-
emits: ["update:modelValue"],
|
|
18
|
-
setup(e) {
|
|
19
|
-
const r = e, s = n(e, "modelValue"), { t: a } = b({
|
|
20
|
-
messages: V
|
|
21
|
-
}), o = d(() => {
|
|
22
|
-
const t = [];
|
|
23
|
-
return r.required && t.push((l) => l ? !0 : a("vuetify.select.input.mandatory")), t;
|
|
24
|
-
});
|
|
25
|
-
return (t, l) => (i(), c(f(g), {
|
|
26
|
-
modelValue: s.value,
|
|
27
|
-
"onUpdate:modelValue": l[0] || (l[0] = (u) => s.value = u),
|
|
28
|
-
label: e.label,
|
|
29
|
-
messages: e.help,
|
|
30
|
-
items: e.items,
|
|
31
|
-
rules: o.value,
|
|
32
|
-
clearable: !e.required
|
|
33
|
-
}, null, 8, ["modelValue", "label", "messages", "items", "rules", "clearable"]));
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
export {
|
|
37
|
-
B as default
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=x-select-EUko1Rag.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-select-EUko1Rag.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;;;"}
|
package/dist/x-tab-D8ZXVkZ2.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineComponent as a, resolveComponent as n, openBlock as r, createBlock as l, withCtx as c, renderSlot as p } from "vue";
|
|
2
|
-
const u = /* @__PURE__ */ a({
|
|
3
|
-
__name: "x-tab",
|
|
4
|
-
props: {
|
|
5
|
-
tabId: {}
|
|
6
|
-
},
|
|
7
|
-
setup(e) {
|
|
8
|
-
return (t, s) => {
|
|
9
|
-
const o = n("v-tab");
|
|
10
|
-
return r(), l(o, { value: e.tabId }, {
|
|
11
|
-
default: c(() => [
|
|
12
|
-
p(t.$slots, "default")
|
|
13
|
-
]),
|
|
14
|
-
_: 3
|
|
15
|
-
}, 8, ["value"]);
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
export {
|
|
20
|
-
u as default
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=x-tab-D8ZXVkZ2.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-tab-D8ZXVkZ2.js","sources":["../src/vue/x-tab.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 type { TabProps } from \"@xwiki/platform-dsapi\";\n\ndefineProps<TabProps>();\n</script>\n\n<template>\n <v-tab :value=\"tabId\"><slot></slot></v-tab>\n</template>\n\n<style scoped></style>\n"],"names":["_createBlock","_component_v_tab","__props","_renderSlot","_ctx"],"mappings":";;;;;;;;;kBA0BEA,EAA2CC,GAAA,EAAnC,OAAOC,EAAA,SAAK;AAAA,mBAAE,MAAa;AAAA,UAAbC,EAAaC,EAAA,QAAA,SAAA;AAAA,QAAA;;;;;;"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { defineComponent as f, ref as i, resolveComponent as n, openBlock as b, createBlock as V, withCtx as a, createVNode as s, renderSlot as u } from "vue";
|
|
2
|
-
const x = /* @__PURE__ */ f({
|
|
3
|
-
__name: "x-tab-group",
|
|
4
|
-
emits: ["tab-change"],
|
|
5
|
-
setup(g, { emit: d }) {
|
|
6
|
-
const t = i(), m = d;
|
|
7
|
-
function r(e) {
|
|
8
|
-
typeof e == "string" && m("tab-change", e);
|
|
9
|
-
}
|
|
10
|
-
return (e, o) => {
|
|
11
|
-
const _ = n("v-tabs"), c = n("v-tabs-window"), p = n("v-card-text"), v = n("v-card");
|
|
12
|
-
return b(), V(v, { class: "mx-auto" }, {
|
|
13
|
-
default: a(() => [
|
|
14
|
-
s(_, {
|
|
15
|
-
modelValue: t.value,
|
|
16
|
-
"onUpdate:modelValue": [
|
|
17
|
-
o[0] || (o[0] = (l) => t.value = l),
|
|
18
|
-
r
|
|
19
|
-
]
|
|
20
|
-
}, {
|
|
21
|
-
default: a(() => [
|
|
22
|
-
u(e.$slots, "tabs")
|
|
23
|
-
]),
|
|
24
|
-
_: 3
|
|
25
|
-
}, 8, ["modelValue"]),
|
|
26
|
-
s(p, null, {
|
|
27
|
-
default: a(() => [
|
|
28
|
-
s(c, {
|
|
29
|
-
modelValue: t.value,
|
|
30
|
-
"onUpdate:modelValue": o[1] || (o[1] = (l) => t.value = l)
|
|
31
|
-
}, {
|
|
32
|
-
default: a(() => [
|
|
33
|
-
u(e.$slots, "panels")
|
|
34
|
-
]),
|
|
35
|
-
_: 3
|
|
36
|
-
}, 8, ["modelValue"])
|
|
37
|
-
]),
|
|
38
|
-
_: 3
|
|
39
|
-
})
|
|
40
|
-
]),
|
|
41
|
-
_: 3
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
export {
|
|
47
|
-
x as default
|
|
48
|
-
};
|
|
49
|
-
//# sourceMappingURL=x-tab-group-D1jmHXyJ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-tab-group-D1jmHXyJ.js","sources":["../src/vue/x-tab-group.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 type { Ref } from \"vue\";\nconst tab: Ref<unknown> = ref();\n\nconst emits = defineEmits([\"tab-change\"]);\n\nfunction change(tabId: unknown) {\n if (typeof tabId == \"string\") {\n emits(\"tab-change\", tabId);\n }\n}\n</script>\n\n<template>\n <v-card class=\"mx-auto\">\n <v-tabs v-model=\"tab\" @update:model-value=\"change\">\n <slot name=\"tabs\"></slot>\n </v-tabs>\n <v-card-text>\n <v-tabs-window v-model=\"tab\">\n <slot name=\"panels\"></slot>\n </v-tabs-window>\n </v-card-text>\n </v-card>\n</template>\n\n<style scoped></style>\n"],"names":["tab","ref","emits","__emit","change","tabId","_createBlock","_component_v_card","_createVNode","_component_v_tabs","$event","_renderSlot","_ctx","_component_v_card_text","_component_v_tabs_window"],"mappings":";;;;;AAsBA,UAAMA,IAAoBC,EAAA,GAEpBC,IAAQC;AAEd,aAASC,EAAOC,GAAgB;AAC9B,MAAI,OAAOA,KAAS,YAClBH,EAAM,cAAcG,CAAK;AAAA,IAE7B;;;kBAIEC,EASSC,GAAA,EATD,OAAM,aAAS;AAAA,mBACrB,MAES;AAAA,UAFTC,EAESC,GAAA;AAAA,wBAFQT,EAAA;AAAA;qCAAAA,EAAG,QAAAU;AAAA,cAAuBN;AAAA,YAAA;AAAA;uBACzC,MAAyB;AAAA,cAAzBO,EAAyBC,EAAA,QAAA,MAAA;AAAA,YAAA;;;UAE3BJ,EAIcK,GAAA,MAAA;AAAA,uBAHZ,MAEgB;AAAA,cAFhBL,EAEgBM,GAAA;AAAA,4BAFQd,EAAA;AAAA,8DAAAA,EAAG,QAAAU;AAAA,cAAA;2BACzB,MAA2B;AAAA,kBAA3BC,EAA2BC,EAAA,QAAA,QAAA;AAAA,gBAAA;;;;;;;;;;;;"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineComponent as n, resolveComponent as a, openBlock as r, createBlock as l, withCtx as s, renderSlot as _ } from "vue";
|
|
2
|
-
const d = /* @__PURE__ */ n({
|
|
3
|
-
__name: "x-tab-panel",
|
|
4
|
-
props: {
|
|
5
|
-
tabId: {}
|
|
6
|
-
},
|
|
7
|
-
setup(e) {
|
|
8
|
-
return (t, p) => {
|
|
9
|
-
const o = a("v-tabs-window-item");
|
|
10
|
-
return r(), l(o, { value: e.tabId }, {
|
|
11
|
-
default: s(() => [
|
|
12
|
-
_(t.$slots, "default")
|
|
13
|
-
]),
|
|
14
|
-
_: 3
|
|
15
|
-
}, 8, ["value"]);
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
export {
|
|
20
|
-
d as default
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=x-tab-panel-CwQdoT0T.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-tab-panel-CwQdoT0T.js","sources":["../src/vue/x-tab-panel.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 type { TabPanelProps } from \"@xwiki/platform-dsapi\";\n\ndefineProps<TabPanelProps>();\n</script>\n\n<template>\n <v-tabs-window-item :value=\"tabId\"><slot></slot></v-tabs-window-item>\n</template>\n"],"names":["_createBlock","_component_v_tabs_window_item","__props","_renderSlot","_ctx"],"mappings":";;;;;;;;;kBA0BEA,EAAqEC,GAAA,EAAhD,OAAOC,EAAA,SAAK;AAAA,mBAAE,MAAa;AAAA,UAAbC,EAAaC,EAAA,QAAA,SAAA;AAAA,QAAA;;;;;;"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, useModel as d, computed as i, openBlock as m, createBlock as f, unref as p, withCtx as c, renderSlot as y, mergeModels 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-BzcWoPad.js";
|
|
5
|
-
const k = /* @__PURE__ */ s({
|
|
6
|
-
__name: "x-text-field",
|
|
7
|
-
props: /* @__PURE__ */ h({
|
|
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 = d(e, "modelValue"), u = i(() => {
|
|
25
|
-
const t = [];
|
|
26
|
-
return n.required && t.push((l) => l ? !0 : a("vuetify.text.input.mandatory")), t;
|
|
27
|
-
});
|
|
28
|
-
return (t, l) => (m(), f(p(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: c(() => [
|
|
41
|
-
y(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-CZcbvoFI.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-text-field-CZcbvoFI.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;;;;;"}
|
package/dist/x-tree-SDsF-YBu.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { defineComponent as y, useModel as s, ref as h, watch as C, openBlock as i, createBlock as k, unref as m, withCtx as b, createElementBlock as v, withModifiers as w, toDisplayString as u, mergeModels as x } from "vue";
|
|
2
|
-
import { e as A } from "./index-BzcWoPad.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__ */ x({
|
|
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 = h([]);
|
|
22
|
-
C(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(), k(m(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: b(({ item: e }) => [
|
|
48
|
-
t.nodeClickAction ? (i(), v("a", {
|
|
49
|
-
key: 0,
|
|
50
|
-
href: e.url,
|
|
51
|
-
onClick: w(
|
|
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-SDsF-YBu.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-tree-SDsF-YBu.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;;;;;"}
|