@xwiki/cristal-dsvuetify 0.13.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/{index-UP1o6s9t.js → index-BAakw3UY.js} +6415 -6339
  3. package/dist/index-BAakw3UY.js.map +1 -0
  4. package/dist/index.es.js +9 -6
  5. package/dist/index.umd.js +13 -10
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/translations-k4crOAds.js +24 -0
  8. package/dist/{translations-BNEIsfPR.js.map → translations-k4crOAds.js.map} +1 -1
  9. package/dist/vue/form/x-checkbox.vue.d.ts +11 -0
  10. package/dist/vue/form/x-file-input.vue.d.ts +6 -6
  11. package/dist/vue/form/x-form.vue.d.ts +2 -1
  12. package/dist/vue/form/x-navigation-tree-select.vue.d.ts +12 -0
  13. package/dist/vue/form/x-text-field.vue.d.ts +9 -1
  14. package/dist/vue/x-alert.vue.d.ts +2 -1
  15. package/dist/vue/x-avatar.vue.d.ts +2 -19
  16. package/dist/vue/x-btn.vue.d.ts +2 -1
  17. package/dist/vue/x-dialog.vue.d.ts +7 -8
  18. package/dist/vue/x-load.vue.d.ts +1 -1
  19. package/dist/vue/x-menu-item.vue.d.ts +6 -6
  20. package/dist/vue/x-menu-label.vue.d.ts +2 -1
  21. package/dist/vue/x-menu.vue.d.ts +2 -1
  22. package/dist/vue/x-navigation-tree.vue.d.ts +2 -10
  23. package/dist/vue/x-tab-group.vue.d.ts +4 -3
  24. package/dist/vue/x-tab-panel.vue.d.ts +2 -1
  25. package/dist/vue/x-tab.vue.d.ts +2 -1
  26. package/dist/x-alert-CRdF8zFB.js +46 -0
  27. package/dist/x-alert-CRdF8zFB.js.map +1 -0
  28. package/dist/x-avatar-Ds9aYRI9.js +28 -0
  29. package/dist/x-avatar-Ds9aYRI9.js.map +1 -0
  30. package/dist/{x-btn-DNlhiqjD.js → x-btn-DwTcXGgx.js} +8 -6
  31. package/dist/{x-btn-DNlhiqjD.js.map → x-btn-DwTcXGgx.js.map} +1 -1
  32. package/dist/x-checkbox-Fro597Ax.js +28 -0
  33. package/dist/x-checkbox-Fro597Ax.js.map +1 -0
  34. package/dist/x-dialog-DCEnccuq.js +48 -0
  35. package/dist/x-dialog-DCEnccuq.js.map +1 -0
  36. package/dist/x-file-input-CvH0AC3G.js +39 -0
  37. package/dist/{x-file-input-BsaodA0p.js.map → x-file-input-CvH0AC3G.js.map} +1 -1
  38. package/dist/x-form-DCHdDC6W.js +25 -0
  39. package/dist/x-form-DCHdDC6W.js.map +1 -0
  40. package/dist/x-navigation-tree-D_fUW-gW.js +520 -0
  41. package/dist/x-navigation-tree-D_fUW-gW.js.map +1 -0
  42. package/dist/x-navigation-tree-select-DaiYF3ux.js +95 -0
  43. package/dist/x-navigation-tree-select-DaiYF3ux.js.map +1 -0
  44. package/dist/{x-tab-group-ngNByee3.js → x-tab-group-Bp7V46k9.js} +5 -5
  45. package/dist/{x-tab-group-ngNByee3.js.map → x-tab-group-Bp7V46k9.js.map} +1 -1
  46. package/dist/x-text-field-2Sv6HUGW.js +43 -0
  47. package/dist/x-text-field-2Sv6HUGW.js.map +1 -0
  48. package/langs/translation-de.json +3 -1
  49. package/langs/translation-en.json +3 -1
  50. package/langs/translation-fr.json +6 -1
  51. package/package.json +15 -13
  52. package/src/components/vuetifyDesignSystemLoader.ts +12 -1
  53. package/src/translations.ts +4 -0
  54. package/src/vue/css/style.css +6 -0
  55. package/src/vue/form/x-checkbox.vue +35 -0
  56. package/src/vue/form/x-file-input.vue +2 -2
  57. package/src/vue/form/x-form.vue +8 -4
  58. package/src/vue/form/x-navigation-tree-select.vue +120 -0
  59. package/src/vue/form/x-text-field.vue +5 -0
  60. package/src/vue/x-alert.vue +8 -0
  61. package/src/vue/x-avatar.vue +9 -9
  62. package/src/vue/x-dialog.vue +1 -7
  63. package/src/vue/x-navigation-tree.vue +47 -24
  64. package/src/vue/x-tab-group.vue +2 -2
  65. package/src/vue/x-tab-panel.vue +0 -2
  66. package/dist/index-UP1o6s9t.js.map +0 -1
  67. package/dist/translations-BNEIsfPR.js +0 -10
  68. package/dist/x-alert-Bmt4mXHQ.js +0 -45
  69. package/dist/x-alert-Bmt4mXHQ.js.map +0 -1
  70. package/dist/x-avatar-But_Z7ic.js +0 -20
  71. package/dist/x-avatar-But_Z7ic.js.map +0 -1
  72. package/dist/x-dialog-C-dMkFJk.js +0 -49
  73. package/dist/x-dialog-C-dMkFJk.js.map +0 -1
  74. package/dist/x-file-input-BsaodA0p.js +0 -36
  75. package/dist/x-form-iQFXj1PW.js +0 -32
  76. package/dist/x-form-iQFXj1PW.js.map +0 -1
  77. package/dist/x-navigation-tree-DN2Qz7Sm.js +0 -501
  78. package/dist/x-navigation-tree-DN2Qz7Sm.js.map +0 -1
  79. package/dist/x-text-field-CTsLZhLE.js +0 -31
  80. package/dist/x-text-field-CTsLZhLE.js.map +0 -1
@@ -1,10 +0,0 @@
1
- const t = {
2
- "vuetify.file.input.mandatory": "Mandatory field",
3
- "vuetify.text.input.mandatory": "Mandatory field"
4
- }, a = {
5
- en: t
6
- };
7
- export {
8
- a as t
9
- };
10
- //# sourceMappingURL=translations-BNEIsfPR.js.map
@@ -1,45 +0,0 @@
1
- import { defineComponent as d, resolveComponent as n, openBlock as t, createBlock as a, withCtx as r, createElementBlock as o, Fragment as m, renderList as u, createTextVNode as _, toDisplayString as s, createCommentVNode as i, renderSlot as k } from "vue";
2
- const y = { key: 0 }, b = { key: 1 }, v = /* @__PURE__ */ d({
3
- __name: "x-alert",
4
- props: {
5
- title: {},
6
- type: {},
7
- description: {},
8
- actions: {},
9
- closable: { type: Boolean },
10
- details: {}
11
- },
12
- setup(f) {
13
- return (e, C) => {
14
- const p = n("x-btn"), c = n("v-alert");
15
- return t(), a(c, {
16
- closable: e.closable,
17
- title: e.title,
18
- type: e.type,
19
- text: e.description
20
- }, {
21
- default: r(() => [
22
- (t(!0), o(m, null, u(e.actions, (l) => (t(), a(p, {
23
- key: l.name,
24
- size: "small",
25
- variant: "text",
26
- onClick: l.callback
27
- }, {
28
- default: r(() => [
29
- _(s(l.name), 1)
30
- ]),
31
- _: 2
32
- }, 1032, ["onClick"]))), 128)),
33
- e.details ? (t(), o("br", y)) : i("", !0),
34
- e.details ? (t(), o("small", b, s(e.details), 1)) : i("", !0),
35
- k(e.$slots, "default")
36
- ]),
37
- _: 3
38
- }, 8, ["closable", "title", "type", "text"]);
39
- };
40
- }
41
- });
42
- export {
43
- v as default
44
- };
45
- //# sourceMappingURL=x-alert-Bmt4mXHQ.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"x-alert-Bmt4mXHQ.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,20 +0,0 @@
1
- import { resolveComponent as r, openBlock as a, createBlock as o } from "vue";
2
- import { _ as n } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- const i = {
4
- props: {
5
- image: { type: String, required: !0 },
6
- size: { type: String, required: !0 }
7
- }
8
- };
9
- function s(c, _, e, m, p, u) {
10
- const t = r("v-avatar");
11
- return a(), o(t, {
12
- image: e.image,
13
- size: e.size
14
- }, null, 8, ["image", "size"]);
15
- }
16
- const g = /* @__PURE__ */ n(i, [["render", s]]);
17
- export {
18
- g as default
19
- };
20
- //# sourceMappingURL=x-avatar-But_Z7ic.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"x-avatar-But_Z7ic.js","sources":["../src/vue/x-avatar.vue"],"sourcesContent":["<!--\nSee the LICENSE file distributed with this work for additional\ninformation regarding copyright ownership.\n\nThis is free software; you can redistribute it and/or modify it\nunder the terms of the GNU Lesser General Public License as\npublished by the Free Software Foundation; either version 2.1 of\nthe License, or (at your option) any later version.\n\nThis software is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this software; if not, write to the Free\nSoftware Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<template>\n <v-avatar :image=\"image\" :size=\"size\"></v-avatar>\n</template>\n<script lang=\"ts\">\nexport default {\n props: {\n image: { type: String, required: true },\n size: { type: String, required: true },\n },\n};\n</script>\n"],"names":["_sfc_main","_resolveComponent","_openBlock","_createBlock","_component_v_avatar","$props"],"mappings":";;AAuBA,MAAeA,IAAA;AAAA,EACb,OAAO;AAAA,IACL,OAAO,EAAE,MAAM,QAAQ,UAAU,GAAK;AAAA,IACtC,MAAM,EAAE,MAAM,QAAQ,UAAU,GAAK;AAAA,EAAA;AAEzC;;YAREC,EAAiD,UAAA;SAAjBC,EAAI,GAAAC,EAAAC,GAAA;AAAA,IAAA,OAAAC,EAAA;AAAA;;;;"}
@@ -1,49 +0,0 @@
1
- import { defineComponent as u, useSlots as m, resolveComponent as o, openBlock as a, createBlock as n, withCtx as e, createElementVNode as v, normalizeProps as f, guardReactiveProps as h, renderSlot as r, createVNode as s, unref as g, createCommentVNode as w } from "vue";
2
- import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- const k = /* @__PURE__ */ u({
4
- __name: "x-dialog",
5
- props: {
6
- title: {},
7
- width: {}
8
- },
9
- setup(x) {
10
- const d = m();
11
- return (t, N) => {
12
- const c = o("v-card-text"), l = o("v-card-actions"), i = o("v-card"), _ = o("v-dialog");
13
- return a(), n(_, {
14
- width: t.width,
15
- scrollable: ""
16
- }, {
17
- activator: e(({ props: p }) => [
18
- v("span", f(h(p)), [
19
- r(t.$slots, "activator", {}, void 0, !0)
20
- ], 16)
21
- ]),
22
- default: e(() => [
23
- s(i, { title: t.title }, {
24
- default: e(() => [
25
- s(c, null, {
26
- default: e(() => [
27
- r(t.$slots, "default", {}, void 0, !0)
28
- ]),
29
- _: 3
30
- }),
31
- g(d).footer ? (a(), n(l, { key: 0 }, {
32
- default: e(() => [
33
- r(t.$slots, "footer", {}, void 0, !0)
34
- ]),
35
- _: 3
36
- })) : w("", !0)
37
- ]),
38
- _: 3
39
- }, 8, ["title"])
40
- ]),
41
- _: 3
42
- }, 8, ["width"]);
43
- };
44
- }
45
- }), B = /* @__PURE__ */ C(k, [["__scopeId", "data-v-4640de4f"]]);
46
- export {
47
- B as default
48
- };
49
- //# sourceMappingURL=x-dialog-C-dMkFJk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"x-dialog-C-dMkFJk.js","sources":["../src/vue/x-dialog.vue"],"sourcesContent":["<!--\nSee the LICENSE file distributed with this work for additional\ninformation regarding copyright ownership.\n\nThis is free software; you can redistribute it and/or modify it\nunder the terms of the GNU Lesser General Public License as\npublished by the Free Software Foundation; either version 2.1 of\nthe License, or (at your option) any later version.\n\nThis software is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this software; if not, write to the Free\nSoftware Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script lang=\"ts\" setup>\nimport { useSlots } from \"vue\";\n\ndefineProps<{\n title: string;\n width: string | number | undefined;\n}>();\n\nconst slots = useSlots();\n\n// const innerIsActive = ref(props.isActive);\n</script>\n\n<template>\n <v-dialog :width=\"width\" scrollable>\n <template #activator=\"{ props }\">\n <span v-bind=\"props\">\n <slot name=\"activator\" />\n </span>\n </template>\n <template #default>\n <v-card :title=\"title\">\n <v-card-text>\n <slot name=\"default\" />\n </v-card-text>\n <v-card-actions v-if=\"slots.footer\">\n <slot name=\"footer\" />\n </v-card-actions>\n </v-card>\n </template>\n </v-dialog>\n</template>\n\n<style scoped>\n:deep(.v-card-actions) {\n padding: var(--cr-spacing-large);\n}\n</style>\n"],"names":["slots","useSlots"],"mappings":";;;;;;;;;AA2BA,UAAMA,IAAQC,EAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,36 +0,0 @@
1
- import { defineComponent as s, mergeModels as m, useModel as i, computed as d, openBlock as p, createBlock as f, unref as c } from "vue";
2
- import { t as V } from "./translations-BNEIsfPR.js";
3
- import { useI18n as b } from "vue-i18n";
4
- import { b as v } from "./index-UP1o6s9t.js";
5
- const k = /* @__PURE__ */ s({
6
- __name: "x-file-input",
7
- props: /* @__PURE__ */ m({
8
- name: {},
9
- label: {},
10
- required: { type: Boolean },
11
- autofocus: { type: Boolean }
12
- }, {
13
- modelValue: {},
14
- modelModifiers: {}
15
- }),
16
- emits: ["update:modelValue"],
17
- setup(o) {
18
- const { t: u } = b({
19
- messages: V
20
- }), t = i(o, "modelValue"), r = o, a = d(() => {
21
- const e = [];
22
- return r.required && e.push((l) => l ? !0 : u("vuetify.file.input.mandatory")), e;
23
- });
24
- return (e, l) => (p(), f(c(v), {
25
- modelValue: t.value,
26
- "onUpdate:modelValue": l[0] || (l[0] = (n) => t.value = n),
27
- label: e.label,
28
- name: e.name,
29
- rules: a.value
30
- }, null, 8, ["modelValue", "label", "name", "rules"]));
31
- }
32
- });
33
- export {
34
- k as default
35
- };
36
- //# sourceMappingURL=x-file-input-BsaodA0p.js.map
@@ -1,32 +0,0 @@
1
- import { defineComponent as i, resolveComponent as s, openBlock as c, createBlock as f, unref as u, withModifiers as a, withCtx as e, createVNode as _, renderSlot as l } from "vue";
2
- import { V as p } from "./index-UP1o6s9t.js";
3
- const h = /* @__PURE__ */ i({
4
- __name: "x-form",
5
- emits: ["formSubmit"],
6
- setup(d, { emit: t }) {
7
- const o = t;
8
- function n() {
9
- o("formSubmit");
10
- }
11
- return (r, b) => {
12
- const m = s("v-container");
13
- return c(), f(u(p), {
14
- onSubmit: a(n, ["prevent"])
15
- }, {
16
- default: e(() => [
17
- _(m, null, {
18
- default: e(() => [
19
- l(r.$slots, "default")
20
- ]),
21
- _: 3
22
- })
23
- ]),
24
- _: 3
25
- });
26
- };
27
- }
28
- });
29
- export {
30
- h as default
31
- };
32
- //# sourceMappingURL=x-form-iQFXj1PW.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"x-form-iQFXj1PW.js","sources":["../src/vue/form/x-form.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { VForm } from \"vuetify/components/VForm\";\nconst emits = defineEmits([\"formSubmit\"]);\nfunction submit() {\n emits(\"formSubmit\");\n}\n</script>\n\n<template>\n <v-form @submit.prevent=\"submit\">\n <v-container>\n <slot></slot>\n </v-container>\n </v-form>\n</template>\n\n<style scoped></style>\n"],"names":["emits","__emit","submit"],"mappings":";;;;;;AAEA,UAAMA,IAAQC;AACd,aAASC,IAAS;AAChB,MAAAF,EAAM,YAAY;AAAA,IAAA;;;;;;;;;;;;;;;;;;;"}