@xwiki/cristal-dsvuetify 0.21.0 → 0.22.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 (85) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/api-extractor.json +4 -0
  3. package/dist/components/componentsInit.d.ts +3 -0
  4. package/dist/index-D8yc5V3N.js +22384 -0
  5. package/dist/index-D8yc5V3N.js.map +1 -0
  6. package/dist/index.es.js +3 -3
  7. package/dist/index.umd.js +8 -36
  8. package/dist/index.umd.js.map +1 -1
  9. package/dist/vue/form/x-form.vue.d.ts +58 -58
  10. package/dist/x-alert-DKgk3dOE.js +46 -0
  11. package/dist/{x-alert-Bqf5Ghy4.js.map → x-alert-DKgk3dOE.js.map} +1 -1
  12. package/dist/{x-avatar-DDWQUeZJ.js → x-avatar-WnkeGyHH.js} +5 -5
  13. package/dist/{x-avatar-DDWQUeZJ.js.map → x-avatar-WnkeGyHH.js.map} +1 -1
  14. package/dist/x-breadcrumb-DiDfmxr5.js +22 -0
  15. package/dist/{x-breadcrumb-Ca8UqeNm.js.map → x-breadcrumb-DiDfmxr5.js.map} +1 -1
  16. package/dist/x-btn-DzH2bk-f.js +50 -0
  17. package/dist/{x-btn-CEN-gSJs.js.map → x-btn-DzH2bk-f.js.map} +1 -1
  18. package/dist/x-card-BlUD5hbt.js +22 -0
  19. package/dist/{x-card-ywmTDQq1.js.map → x-card-BlUD5hbt.js.map} +1 -1
  20. package/dist/x-checkbox-EzA-ce8R.js +28 -0
  21. package/dist/{x-checkbox-DioEzg6D.js.map → x-checkbox-EzA-ce8R.js.map} +1 -1
  22. package/dist/{x-dialog-BR0aOJnF.js → x-dialog-CvZUbP80.js} +10 -10
  23. package/dist/{x-dialog-BR0aOJnF.js.map → x-dialog-CvZUbP80.js.map} +1 -1
  24. package/dist/x-divider-BOCxsH8h.js +12 -0
  25. package/dist/{x-divider-DdCNaWK9.js.map → x-divider-BOCxsH8h.js.map} +1 -1
  26. package/dist/x-file-input-7TdHHaG2.js +40 -0
  27. package/dist/{x-file-input-CR_baWpm.js.map → x-file-input-7TdHHaG2.js.map} +1 -1
  28. package/dist/x-form-DrjHf0um.js +33 -0
  29. package/dist/{x-form-DXezCfh2.js.map → x-form-DrjHf0um.js.map} +1 -1
  30. package/dist/{x-img-X-qoosGi.js → x-img-DWbVDNTs.js} +3 -3
  31. package/dist/{x-img-X-qoosGi.js.map → x-img-DWbVDNTs.js.map} +1 -1
  32. package/dist/x-load-Bw4ftl3k.js +11 -0
  33. package/dist/{x-load-CXDfm5l3.js.map → x-load-Bw4ftl3k.js.map} +1 -1
  34. package/dist/x-menu-CZMwPcag.js +31 -0
  35. package/dist/{x-menu-C7rglNy2.js.map → x-menu-CZMwPcag.js.map} +1 -1
  36. package/dist/x-menu-item-CBdOhZc3.js +22 -0
  37. package/dist/{x-menu-item-CCcPUrHX.js.map → x-menu-item-CBdOhZc3.js.map} +1 -1
  38. package/dist/x-menu-label-D-sFcG_g.js +17 -0
  39. package/dist/{x-menu-label-gVnEylDY.js.map → x-menu-label-D-sFcG_g.js.map} +1 -1
  40. package/dist/{x-navigation-tree-BNc0pKUi.js → x-navigation-tree-BcW_691Y.js} +27 -26
  41. package/dist/x-navigation-tree-BcW_691Y.js.map +1 -0
  42. package/dist/{x-navigation-tree-select-CHoauT-L.js → x-navigation-tree-select-_13SOFbP.js} +28 -27
  43. package/dist/x-navigation-tree-select-_13SOFbP.js.map +1 -0
  44. package/dist/x-search-C7GhoCKj.js +20 -0
  45. package/dist/{x-search-BgVWZd4f.js.map → x-search-C7GhoCKj.js.map} +1 -1
  46. package/dist/x-select-DnRsSLAX.js +39 -0
  47. package/dist/{x-select-bQRFdVPL.js.map → x-select-DnRsSLAX.js.map} +1 -1
  48. package/dist/x-tab-group-BfEaq8Nj.js +49 -0
  49. package/dist/x-tab-group-BfEaq8Nj.js.map +1 -0
  50. package/dist/x-tab-panel-DysgiPCz.js +22 -0
  51. package/dist/{x-tab-panel-DL228tOt.js.map → x-tab-panel-DysgiPCz.js.map} +1 -1
  52. package/dist/x-tab-vRrbUjdK.js +22 -0
  53. package/dist/{x-tab-CFwL72L6.js.map → x-tab-vRrbUjdK.js.map} +1 -1
  54. package/dist/{x-text-field-DtCbDE_F.js → x-text-field-BWaRETwR.js} +15 -14
  55. package/dist/{x-text-field-DtCbDE_F.js.map → x-text-field-BWaRETwR.js.map} +1 -1
  56. package/etc/cristal-dsvuetify.api.md +16 -0
  57. package/package.json +19 -18
  58. package/src/components/componentsInit.ts +3 -0
  59. package/src/vue/x-breadcrumb.vue +1 -1
  60. package/src/vue/x-tab-group.vue +2 -1
  61. package/src/vue/x-tab-panel.vue +1 -1
  62. package/src/vue/x-tab.vue +1 -1
  63. package/vitest.config.ts +1 -1
  64. package/dist/index-CPGfq5JL.js +0 -28214
  65. package/dist/index-CPGfq5JL.js.map +0 -1
  66. package/dist/x-alert-Bqf5Ghy4.js +0 -46
  67. package/dist/x-breadcrumb-Ca8UqeNm.js +0 -22
  68. package/dist/x-btn-CEN-gSJs.js +0 -50
  69. package/dist/x-card-ywmTDQq1.js +0 -22
  70. package/dist/x-checkbox-DioEzg6D.js +0 -27
  71. package/dist/x-divider-DdCNaWK9.js +0 -12
  72. package/dist/x-file-input-CR_baWpm.js +0 -39
  73. package/dist/x-form-DXezCfh2.js +0 -32
  74. package/dist/x-load-CXDfm5l3.js +0 -11
  75. package/dist/x-menu-C7rglNy2.js +0 -31
  76. package/dist/x-menu-item-CCcPUrHX.js +0 -22
  77. package/dist/x-menu-label-gVnEylDY.js +0 -17
  78. package/dist/x-navigation-tree-BNc0pKUi.js.map +0 -1
  79. package/dist/x-navigation-tree-select-CHoauT-L.js.map +0 -1
  80. package/dist/x-search-BgVWZd4f.js +0 -20
  81. package/dist/x-select-bQRFdVPL.js +0 -38
  82. package/dist/x-tab-CFwL72L6.js +0 -22
  83. package/dist/x-tab-group-Bs17utO_.js +0 -49
  84. package/dist/x-tab-group-Bs17utO_.js.map +0 -1
  85. package/dist/x-tab-panel-DL228tOt.js +0 -22
@@ -0,0 +1,50 @@
1
+ import { defineComponent as c, computed as r, resolveComponent as s, createBlock as l, openBlock as i, withCtx as u, renderSlot as p } from "vue";
2
+ const m = /* @__PURE__ */ c({
3
+ __name: "x-btn",
4
+ props: {
5
+ variant: {},
6
+ size: {},
7
+ pill: { type: Boolean }
8
+ },
9
+ setup(a) {
10
+ const t = r(() => {
11
+ let e;
12
+ switch (a.variant) {
13
+ case "default":
14
+ break;
15
+ case "primary":
16
+ e = "primary";
17
+ break;
18
+ case "success":
19
+ e = "success";
20
+ break;
21
+ case "neutral":
22
+ e = "secondary";
23
+ break;
24
+ case "warning":
25
+ e = "warning";
26
+ break;
27
+ case "danger":
28
+ e = "error";
29
+ break;
30
+ }
31
+ return e;
32
+ }), n = r(() => a.variant == "text" ? "text" : "tonal");
33
+ return (e, v) => {
34
+ const o = s("v-btn");
35
+ return i(), l(o, {
36
+ color: t.value,
37
+ variant: n.value
38
+ }, {
39
+ default: u(() => [
40
+ p(e.$slots, "default")
41
+ ]),
42
+ _: 3
43
+ }, 8, ["color", "variant"]);
44
+ };
45
+ }
46
+ });
47
+ export {
48
+ m as default
49
+ };
50
+ //# sourceMappingURL=x-btn-DzH2bk-f.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"x-btn-CEN-gSJs.js","sources":["../src/vue/x-btn.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 { computed } from \"vue\";\nimport type { BtnProps } from \"@xwiki/cristal-dsapi\";\n\nconst { variant } = defineProps<BtnProps>();\n\n// Map the variants to corresponding vuetify colors.\nconst color = computed(() => {\n let color = undefined;\n switch (variant) {\n case \"default\":\n break;\n case \"primary\":\n color = \"primary\";\n break;\n case \"success\":\n color = \"success\";\n break;\n case \"neutral\":\n color = \"secondary\";\n break;\n case \"warning\":\n color = \"warning\";\n break;\n case \"danger\":\n color = \"error\";\n break;\n }\n return color;\n});\n\nconst vVariant = computed(() => (variant == \"text\" ? \"text\" : \"tonal\"));\n</script>\n<template>\n <v-btn :color=\"color\" :variant=\"vVariant\">\n <slot />\n </v-btn>\n</template>\n"],"names":["color","computed","__props","vVariant","_createBlock","_component_v_btn","_renderSlot","_ctx"],"mappings":";;;;;;;;;AA0BA,UAAMA,IAAQC,EAAS,MAAM;AAC3B,UAAID;AACJ,cAAQE,EAAA,SAAA;AAAA,QACN,KAAK;AACH;AAAA,QACF,KAAK;AACHF,UAAAA,IAAQ;AACR;AAAA,QACF,KAAK;AACHA,UAAAA,IAAQ;AACR;AAAA,QACF,KAAK;AACHA,UAAAA,IAAQ;AACR;AAAA,QACF,KAAK;AACHA,UAAAA,IAAQ;AACR;AAAA,QACF,KAAK;AACHA,UAAAA,IAAQ;AACR;AAAA,MAAA;AAEJ,aAAOA;AAAAA,IACT,CAAC,GAEKG,IAAWF,EAAS,MAAOC,EAAA,WAAW,SAAS,SAAS,OAAQ;;;kBAGpEE,EAEQC,GAAA;AAAA,QAFA,OAAOL,EAAA;AAAA,QAAQ,SAASG,EAAA;AAAA,MAAA;mBAC9B,MAAQ;AAAA,UAARG,EAAQC,EAAA,QAAA,SAAA;AAAA,QAAA;;;;;;"}
1
+ {"version":3,"file":"x-btn-DzH2bk-f.js","sources":["../src/vue/x-btn.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 { computed } from \"vue\";\nimport type { BtnProps } from \"@xwiki/cristal-dsapi\";\n\nconst { variant } = defineProps<BtnProps>();\n\n// Map the variants to corresponding vuetify colors.\nconst color = computed(() => {\n let color = undefined;\n switch (variant) {\n case \"default\":\n break;\n case \"primary\":\n color = \"primary\";\n break;\n case \"success\":\n color = \"success\";\n break;\n case \"neutral\":\n color = \"secondary\";\n break;\n case \"warning\":\n color = \"warning\";\n break;\n case \"danger\":\n color = \"error\";\n break;\n }\n return color;\n});\n\nconst vVariant = computed(() => (variant == \"text\" ? \"text\" : \"tonal\"));\n</script>\n<template>\n <v-btn :color=\"color\" :variant=\"vVariant\">\n <slot />\n </v-btn>\n</template>\n"],"names":["color","computed","__props","vVariant","_createBlock","_component_v_btn","_renderSlot","_ctx"],"mappings":";;;;;;;;;AA0BA,UAAMA,IAAQC,EAAS,MAAM;AAC3B,UAAID;AACJ,cAAQE,EAAA,SAAA;AAAA,QACN,KAAK;AACH;AAAA,QACF,KAAK;AACHF,UAAAA,IAAQ;AACR;AAAA,QACF,KAAK;AACHA,UAAAA,IAAQ;AACR;AAAA,QACF,KAAK;AACHA,UAAAA,IAAQ;AACR;AAAA,QACF,KAAK;AACHA,UAAAA,IAAQ;AACR;AAAA,QACF,KAAK;AACHA,UAAAA,IAAQ;AACR;AAAA,MAAA;AAEJ,aAAOA;AAAAA,IACT,CAAC,GAEKG,IAAWF,EAAS,MAAOC,EAAA,WAAW,SAAS,SAAS,OAAQ;;;kBAGpEE,EAEQC,GAAA;AAAA,QAFA,OAAOL,EAAA;AAAA,QAAQ,SAASG,EAAA;AAAA,MAAA;mBAC9B,MAAQ;AAAA,UAARG,EAAQC,EAAA,QAAA,SAAA;AAAA,QAAA;;;;;;"}
@@ -0,0 +1,22 @@
1
+ import { resolveComponent as o, createBlock as n, openBlock as a, withCtx as c, renderSlot as i } from "vue";
2
+ import { _ as s } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const l = {
4
+ props: { title: { type: String, required: !0 } }
5
+ };
6
+ function d(t, p, e, _, f, u) {
7
+ const r = o("v-card");
8
+ return a(), n(r, {
9
+ title: e.title,
10
+ variant: "outlined"
11
+ }, {
12
+ default: c(() => [
13
+ i(t.$slots, "default")
14
+ ]),
15
+ _: 3
16
+ }, 8, ["title"]);
17
+ }
18
+ const x = /* @__PURE__ */ s(l, [["render", d]]);
19
+ export {
20
+ x as default
21
+ };
22
+ //# sourceMappingURL=x-card-BlUD5hbt.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"x-card-ywmTDQq1.js","sources":["../src/vue/x-card.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-card :title=\"title\" variant=\"outlined\">\n <slot />\n </v-card>\n</template>\n<script lang=\"ts\">\nexport default {\n props: { title: { type: String, required: true } },\n};\n</script>\n"],"names":["_sfc_main","_createBlock","_component_v_card","$props","_renderSlot","_ctx"],"mappings":";;AAyBA,MAAAA,IAAe;AAAA,EACb,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,UAAU,KAAK;AACjD;;;cAPEC,EAESC,GAAA;AAAA,IAFA,OAAOC,EAAA;AAAA,IAAO,SAAQ;AAAA,EAAA,GAAA;AAAA,eAC7B,MAAQ;AAAA,MAARC,EAAQC,EAAA,QAAA,SAAA;AAAA,IAAA,CAAA;AAAA;;;;"}
1
+ {"version":3,"file":"x-card-BlUD5hbt.js","sources":["../src/vue/x-card.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-card :title=\"title\" variant=\"outlined\">\n <slot />\n </v-card>\n</template>\n<script lang=\"ts\">\nexport default {\n props: { title: { type: String, required: true } },\n};\n</script>\n"],"names":["_sfc_main","_createBlock","_component_v_card","$props","_renderSlot","_ctx"],"mappings":";;AAyBA,MAAAA,IAAe;AAAA,EACb,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,UAAU,KAAK;AACjD;;;cAPEC,EAESC,GAAA;AAAA,IAFA,OAAOC,EAAA;AAAA,IAAO,SAAQ;AAAA,EAAA,GAAA;AAAA,eAC7B,MAAQ;AAAA,MAARC,EAAQC,EAAA,QAAA,SAAA;AAAA,IAAA,CAAA;AAAA;;;;"}
@@ -0,0 +1,28 @@
1
+ import { defineComponent as d, mergeModels as s, useModel as u, createBlock as n, openBlock as t, unref as p } from "vue";
2
+ import { d as r } from "./index-D8yc5V3N.js";
3
+ const V = /* @__PURE__ */ d({
4
+ __name: "x-checkbox",
5
+ props: /* @__PURE__ */ s({
6
+ label: {},
7
+ help: {},
8
+ modelValue: { type: Boolean }
9
+ }, {
10
+ modelValue: { type: [Boolean, null] },
11
+ modelModifiers: {}
12
+ }),
13
+ emits: ["update:modelValue"],
14
+ setup(a) {
15
+ const e = u(a, "modelValue");
16
+ return (l, o) => (t(), n(p(r), {
17
+ modelValue: e.value,
18
+ "onUpdate:modelValue": o[0] || (o[0] = (m) => e.value = m),
19
+ label: l.label,
20
+ messages: l.help,
21
+ density: "compact"
22
+ }, null, 8, ["modelValue", "label", "messages"]));
23
+ }
24
+ });
25
+ export {
26
+ V as default
27
+ };
28
+ //# sourceMappingURL=x-checkbox-EzA-ce8R.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"x-checkbox-DioEzg6D.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/cristal-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","label","help"],"mappings":";;;;;;;;;;;;;AAyBA,UAAMA,IAAUC,iBAA4B;2BAG1CC,EAKcC,EAAAC,CAAA,GAAA;AAAA,kBAJHJ,EAAA;AAAA,oDAAAA,EAAO,QAAAK;AAAA,MACf,OAAOC,EAAAA;AAAAA,MACP,UAAUC,EAAAA;AAAAA,MACX,SAAQ;AAAA,IAAA;;;"}
1
+ {"version":3,"file":"x-checkbox-EzA-ce8R.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/cristal-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","label","help"],"mappings":";;;;;;;;;;;;;;AAyBA,UAAMA,IAAUC,iBAA4B;2BAG1CC,EAKcC,EAAAC,CAAA,GAAA;AAAA,kBAJHJ,EAAA;AAAA,oDAAAA,EAAO,QAAAK;AAAA,MACf,OAAOC,EAAAA;AAAAA,MACP,UAAUC,EAAAA;AAAAA,MACX,SAAQ;AAAA,IAAA;;;"}
@@ -1,4 +1,4 @@
1
- import { d as p, r as o, b as s, w as e, o as r, i as n, f as v, e as a, j as m, n as u, k as f } from "./index-CPGfq5JL.js";
1
+ import { defineComponent as p, resolveComponent as o, createBlock as r, openBlock as n, withCtx as e, createVNode as d, createCommentVNode as v, renderSlot as a, createElementVNode as m, normalizeProps as u, guardReactiveProps as f } from "vue";
2
2
  import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
3
  const w = /* @__PURE__ */ p({
4
4
  __name: "x-dialog",
@@ -7,9 +7,9 @@ const w = /* @__PURE__ */ p({
7
7
  width: {}
8
8
  },
9
9
  setup(g) {
10
- return (t, k) => {
11
- const d = o("v-card-text"), c = o("v-card-actions"), i = o("v-card"), l = o("v-dialog");
12
- return r(), s(l, {
10
+ return (t, C) => {
11
+ const c = o("v-card-text"), l = o("v-card-actions"), s = o("v-card"), i = o("v-dialog");
12
+ return n(), r(i, {
13
13
  width: t.width,
14
14
  attach: "#view",
15
15
  scrollable: ""
@@ -20,15 +20,15 @@ const w = /* @__PURE__ */ p({
20
20
  ], 16)
21
21
  ]),
22
22
  default: e(() => [
23
- n(i, { title: t.title }, {
23
+ d(s, { title: t.title }, {
24
24
  default: e(() => [
25
- n(d, null, {
25
+ d(c, null, {
26
26
  default: e(() => [
27
27
  a(t.$slots, "default", {}, void 0, !0)
28
28
  ]),
29
29
  _: 3
30
30
  }),
31
- t.$slots.footer ? (r(), s(c, { key: 0 }, {
31
+ t.$slots.footer ? (n(), r(l, { key: 0 }, {
32
32
  default: e(() => [
33
33
  a(t.$slots, "footer", {}, void 0, !0)
34
34
  ]),
@@ -42,8 +42,8 @@ const w = /* @__PURE__ */ p({
42
42
  }, 8, ["width"]);
43
43
  };
44
44
  }
45
- }), B = /* @__PURE__ */ h(w, [["__scopeId", "data-v-9e36865e"]]);
45
+ }), N = /* @__PURE__ */ h(w, [["__scopeId", "data-v-9e36865e"]]);
46
46
  export {
47
- B as default
47
+ N as default
48
48
  };
49
- //# sourceMappingURL=x-dialog-BR0aOJnF.js.map
49
+ //# sourceMappingURL=x-dialog-CvZUbP80.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"x-dialog-BR0aOJnF.js","sources":["../src/vue/x-dialog.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>\ndefineProps<{\n title: string;\n width: string | number | undefined;\n}>();\n</script>\n\n<template>\n <v-dialog :width=\"width\" attach=\"#view\" 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":["_createBlock","_component_v_dialog","width","_withCtx","props","_createElementVNode","_renderSlot","_ctx","_createVNode","_component_v_card","title","_component_v_card_text","$slots","_component_v_card_actions"],"mappings":";;;;;;;;;;;kBA2BEA,EAgBWC,GAAA;AAAA,QAhBA,OAAOC,EAAAA;AAAAA,QAAO,QAAO;AAAA,QAAQ,YAAA;AAAA,MAAA;QAC3B,WAASC,EAClB,CAEO,EAHe,OAAAC,QAAK;AAAA,UAC3BC,EAEO,YAFOD,CAAK,CAAA,GAAA;AAAA,YACjBE,EAAyBC,EAAA,QAAA,aAAA,CAAA,GAAA,QAAA,EAAA;AAAA,UAAA;;QAGlB,WACT,MAOS;AAAA,UAPTC,EAOSC,GAAA,EAPA,OAAOC,EAAAA,SAAK;AAAA,uBACnB,MAEc;AAAA,cAFdF,EAEcG,GAAA,MAAA;AAAA,2BADZ,MAAuB;AAAA,kBAAvBL,EAAuBC,EAAA,QAAA,WAAA,CAAA,GAAA,QAAA,EAAA;AAAA,gBAAA;;;cAEHK,EAAAA,OAAO,eAA7BZ,EAEiBa,GAAA,EAAA,KAAA,KAAA;AAAA,2BADf,MAAsB;AAAA,kBAAtBP,EAAsBC,EAAA,QAAA,UAAA,CAAA,GAAA,QAAA,EAAA;AAAA,gBAAA;;;;;;;;;;;;"}
1
+ {"version":3,"file":"x-dialog-CvZUbP80.js","sources":["../src/vue/x-dialog.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>\ndefineProps<{\n title: string;\n width: string | number | undefined;\n}>();\n</script>\n\n<template>\n <v-dialog :width=\"width\" attach=\"#view\" 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":["_createBlock","_component_v_dialog","width","_withCtx","props","_createElementVNode","_renderSlot","_ctx","_createVNode","_component_v_card","title","_component_v_card_text","$slots","_component_v_card_actions"],"mappings":";;;;;;;;;;;kBA2BEA,EAgBWC,GAAA;AAAA,QAhBA,OAAOC,EAAAA;AAAAA,QAAO,QAAO;AAAA,QAAQ,YAAA;AAAA,MAAA;QAC3B,WAASC,EAClB,CAEO,EAHe,OAAAC,QAAK;AAAA,UAC3BC,EAEO,YAFOD,CAAK,CAAA,GAAA;AAAA,YACjBE,EAAyBC,EAAA,QAAA,aAAA,CAAA,GAAA,QAAA,EAAA;AAAA,UAAA;;QAGlB,WACT,MAOS;AAAA,UAPTC,EAOSC,GAAA,EAPA,OAAOC,EAAAA,SAAK;AAAA,uBACnB,MAEc;AAAA,cAFdF,EAEcG,GAAA,MAAA;AAAA,2BADZ,MAAuB;AAAA,kBAAvBL,EAAuBC,EAAA,QAAA,WAAA,CAAA,GAAA,QAAA,EAAA;AAAA,gBAAA;;;cAEHK,EAAAA,OAAO,eAA7BZ,EAEiBa,GAAA,EAAA,KAAA,KAAA;AAAA,2BADf,MAAsB;AAAA,kBAAtBP,EAAsBC,EAAA,QAAA,UAAA,CAAA,GAAA,QAAA,EAAA;AAAA,gBAAA;;;;;;;;;;;;"}
@@ -0,0 +1,12 @@
1
+ import { resolveComponent as o, createBlock as r, openBlock 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 c(), r(e);
7
+ }
8
+ const m = /* @__PURE__ */ n(t, [["render", _]]);
9
+ export {
10
+ m as default
11
+ };
12
+ //# sourceMappingURL=x-divider-BOCxsH8h.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"x-divider-DdCNaWK9.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
+ {"version":3,"file":"x-divider-BOCxsH8h.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;;;"}
@@ -0,0 +1,40 @@
1
+ import { defineComponent as s, mergeModels as m, useModel as p, computed as d, createBlock as i, openBlock as f, unref as c } from "vue";
2
+ import { t as V } from "./translations-BVK9UR9x.js";
3
+ import { useI18n as y } from "vue-i18n";
4
+ import { b } from "./index-D8yc5V3N.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
+ modelValue: {},
13
+ help: {},
14
+ readonly: { type: Boolean },
15
+ type: {}
16
+ }, {
17
+ modelValue: {},
18
+ modelModifiers: {}
19
+ }),
20
+ emits: ["update:modelValue"],
21
+ setup(o) {
22
+ const { t: u } = y({
23
+ messages: V
24
+ }), t = p(o, "modelValue"), a = o, r = d(() => {
25
+ const e = [];
26
+ return a.required && e.push((l) => l ? !0 : u("vuetify.file.input.mandatory")), e;
27
+ });
28
+ return (e, l) => (f(), i(c(b), {
29
+ modelValue: t.value,
30
+ "onUpdate:modelValue": l[0] || (l[0] = (n) => t.value = n),
31
+ label: e.label,
32
+ name: e.name,
33
+ rules: r.value
34
+ }, null, 8, ["modelValue", "label", "name", "rules"]));
35
+ }
36
+ });
37
+ export {
38
+ k as default
39
+ };
40
+ //# sourceMappingURL=x-file-input-7TdHHaG2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"x-file-input-CR_baWpm.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, defineModel } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nimport { VFileInput } from \"vuetify/components/VFileInput\";\nimport type { FileInputModel, TextFieldProps } from \"@xwiki/cristal-dsapi\";\n\nconst { t } = useI18n({\n messages,\n});\n\nconst model = defineModel<FileInputModel>();\nconst props = defineProps<TextFieldProps>();\n\nconst rules = computed(() => {\n const rulesList = [];\n if (props.required) {\n rulesList.push((value: unknown) => {\n if (value) {\n return true;\n } else {\n return t(\"vuetify.file.input.mandatory\");\n }\n });\n }\n return rulesList;\n});\n</script>\n\n<template>\n <v-file-input\n v-model=\"model\"\n :label=\"label\"\n :name=\"name\"\n :rules=\"rules\"\n ></v-file-input>\n</template>\n\n<style scoped></style>\n"],"names":["useI18n","messages","model","_useModel","props","__props","rules","computed","rulesList","value","_createBlock","_unref","VFileInput","$event","label","name"],"mappings":";;;;;;;;;;;;;;;;;;;;AA0BA,UAAM,EAAE,EAAA,IAAMA,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,KAEA,EAAE,8BAA8B,CAE1C,GAEID;AAAA,IACT,CAAC;2BAICE,EAKgBC,EAAAC,CAAA,GAAA;AAAA,kBAJLV,EAAA;AAAA,oDAAAA,EAAK,QAAAW;AAAA,MACb,OAAOC,EAAAA;AAAAA,MACP,MAAMC,EAAAA;AAAAA,MACN,OAAOT,EAAA;AAAA,IAAA;;;"}
1
+ {"version":3,"file":"x-file-input-7TdHHaG2.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, defineModel } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nimport { VFileInput } from \"vuetify/components/VFileInput\";\nimport type { FileInputModel, TextFieldProps } from \"@xwiki/cristal-dsapi\";\n\nconst { t } = useI18n({\n messages,\n});\n\nconst model = defineModel<FileInputModel>();\nconst props = defineProps<TextFieldProps>();\n\nconst rules = computed(() => {\n const rulesList = [];\n if (props.required) {\n rulesList.push((value: unknown) => {\n if (value) {\n return true;\n } else {\n return t(\"vuetify.file.input.mandatory\");\n }\n });\n }\n return rulesList;\n});\n</script>\n\n<template>\n <v-file-input\n v-model=\"model\"\n :label=\"label\"\n :name=\"name\"\n :rules=\"rules\"\n ></v-file-input>\n</template>\n\n<style scoped></style>\n"],"names":["t","useI18n","messages","model","_useModel","props","__props","rules","computed","rulesList","value","_createBlock","_unref","VFileInput","$event","label","name"],"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,OAAOC,EAAAA;AAAAA,MACP,MAAMC,EAAAA;AAAAA,MACN,OAAOT,EAAA;AAAA,IAAA;;;"}
@@ -0,0 +1,33 @@
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-D8yc5V3N.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) => (c(), f(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-DrjHf0um.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"x-form-DXezCfh2.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;;;;;"}
1
+ {"version":3,"file":"x-form-DrjHf0um.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;;;;;"}
@@ -1,13 +1,13 @@
1
- import { c as e, o as t } from "./index-CPGfq5JL.js";
1
+ import { createElementBlock as e, openBlock as t } from "vue";
2
2
  import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
3
  const o = {
4
4
  props: { src: { type: String, required: !0 } }
5
5
  }, s = ["src"];
6
- function n(_, a, r, p, i, m) {
6
+ function n(_, p, r, i, a, m) {
7
7
  return t(), e("img", { src: r.src }, null, 8, s);
8
8
  }
9
9
  const d = /* @__PURE__ */ c(o, [["render", n]]);
10
10
  export {
11
11
  d as default
12
12
  };
13
- //# sourceMappingURL=x-img-X-qoosGi.js.map
13
+ //# sourceMappingURL=x-img-DWbVDNTs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"x-img-X-qoosGi.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;;;"}
1
+ {"version":3,"file":"x-img-DWbVDNTs.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;;;"}
@@ -0,0 +1,11 @@
1
+ import { defineComponent as e, createElementBlock as n, openBlock as o } from "vue";
2
+ const p = /* @__PURE__ */ e({
3
+ __name: "x-load",
4
+ setup(t) {
5
+ return (r, a) => (o(), n("span"));
6
+ }
7
+ });
8
+ export {
9
+ p as default
10
+ };
11
+ //# sourceMappingURL=x-load-Bw4ftl3k.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"x-load-CXDfm5l3.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;;"}
1
+ {"version":3,"file":"x-load-Bw4ftl3k.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;;"}
@@ -0,0 +1,31 @@
1
+ import { resolveComponent as o, createBlock as s, openBlock as l, withCtx as e, createVNode as d, renderSlot as n, createElementVNode as i, normalizeProps as _, guardReactiveProps as u } from "vue";
2
+ import { _ as f } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const p = {};
4
+ function m(t, v) {
5
+ const r = o("v-list"), a = o("v-menu");
6
+ return l(), s(a, {
7
+ "close-on-content-click": !1,
8
+ attach: "#xwCristalApp",
9
+ "z-index": "initial"
10
+ }, {
11
+ activator: e(({ props: c }) => [
12
+ i("span", _(u(c)), [
13
+ n(t.$slots, "activator", {}, void 0, !0)
14
+ ], 16)
15
+ ]),
16
+ default: e(() => [
17
+ d(r, null, {
18
+ default: e(() => [
19
+ n(t.$slots, "default", {}, void 0, !0)
20
+ ]),
21
+ _: 3
22
+ })
23
+ ]),
24
+ _: 3
25
+ });
26
+ }
27
+ const k = /* @__PURE__ */ f(p, [["render", m], ["__scopeId", "data-v-dd1f30d6"]]);
28
+ export {
29
+ k as default
30
+ };
31
+ //# sourceMappingURL=x-menu-CZMwPcag.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"x-menu-C7rglNy2.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>\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,MAAA;AAAA,mBADP,MAAuB;AAAA,UAAvBH,EAAuBC,EAAA,QAAA,WAAA,CAAA,GAAA,QAAA,EAAA;AAAA;;;;;;;;"}
1
+ {"version":3,"file":"x-menu-CZMwPcag.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>\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,MAAA;AAAA,mBADP,MAAuB;AAAA,UAAvBH,EAAuBC,EAAA,QAAA,WAAA,CAAA,GAAA,QAAA,EAAA;AAAA;;;;;;;;"}
@@ -0,0 +1,22 @@
1
+ import { defineComponent as o, resolveComponent as n, createBlock as l, openBlock as r, withCtx as a, renderSlot as s } from "vue";
2
+ const _ = /* @__PURE__ */ o({
3
+ __name: "x-menu-item",
4
+ props: {
5
+ value: {}
6
+ },
7
+ setup(m) {
8
+ return (e, p) => {
9
+ const t = n("v-list-item");
10
+ return r(), l(t, { value: e.value }, {
11
+ default: a(() => [
12
+ s(e.$slots, "default")
13
+ ]),
14
+ _: 3
15
+ }, 8, ["value"]);
16
+ };
17
+ }
18
+ });
19
+ export {
20
+ _ as default
21
+ };
22
+ //# sourceMappingURL=x-menu-item-CBdOhZc3.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"x-menu-item-CCcPUrHX.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>\ndefineProps<{\n value: string;\n}>();\n</script>\n<template>\n <v-list-item :value=\"value\">\n <slot name=\"default\" />\n </v-list-item>\n</template>\n"],"names":["_createBlock","_component_v_list_item","value","_renderSlot","_ctx"],"mappings":";;;;;;;;;kBAyBEA,EAEcC,GAAA,EAFA,OAAOC,EAAAA,SAAK;AAAA,mBACxB,MAAuB;AAAA,UAAvBC,EAAuBC,EAAA,QAAA,SAAA;AAAA,QAAA;;;;;;"}
1
+ {"version":3,"file":"x-menu-item-CBdOhZc3.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>\ndefineProps<{\n value: string;\n}>();\n</script>\n<template>\n <v-list-item :value=\"value\">\n <slot name=\"default\" />\n </v-list-item>\n</template>\n"],"names":["_createBlock","_component_v_list_item","value","_renderSlot","_ctx"],"mappings":";;;;;;;;;kBAyBEA,EAEcC,GAAA,EAFA,OAAOC,EAAAA,SAAK;AAAA,mBACxB,MAAuB;AAAA,UAAvBC,EAAuBC,EAAA,QAAA,SAAA;AAAA,QAAA;;;;;;"}
@@ -0,0 +1,17 @@
1
+ import { resolveComponent as o, createBlock as r, openBlock 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 n(), r(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-D-sFcG_g.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"x-menu-label-gVnEylDY.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
+ {"version":3,"file":"x-menu-label-D-sFcG_g.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;;;;;"}