@xwiki/cristal-dsvuetify 1.1.0 → 1.2.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 (36) hide show
  1. package/dist/{index-5yb_QWW0.js → index-BzcWoPad.js} +10235 -9749
  2. package/dist/index-BzcWoPad.js.map +1 -0
  3. package/dist/index.es.js +5 -4
  4. package/dist/index.umd.js +11 -10
  5. package/dist/index.umd.js.map +1 -1
  6. package/dist/vue/x-dropdown.vue.d.ts +19 -0
  7. package/dist/vue/x-menu.vue.d.ts +0 -1
  8. package/dist/x-btn-B7EtO8yc.js +5 -0
  9. package/dist/x-btn-B7EtO8yc.js.map +1 -0
  10. package/dist/{x-btn-BsiSIiiO.js → x-btn.vue_vue_type_script_setup_true_lang-WWoyaSKz.js} +15 -13
  11. package/dist/x-btn.vue_vue_type_script_setup_true_lang-WWoyaSKz.js.map +1 -0
  12. package/dist/{x-checkbox-vREi3-wS.js → x-checkbox-Bg43UZ5N.js} +2 -2
  13. package/dist/{x-checkbox-vREi3-wS.js.map → x-checkbox-Bg43UZ5N.js.map} +1 -1
  14. package/dist/x-dropdown-BL_Wqa5N.js +40 -0
  15. package/dist/x-dropdown-BL_Wqa5N.js.map +1 -0
  16. package/dist/{x-file-input-f35OKy3m.js → x-file-input-Dt2B3iG0.js} +2 -2
  17. package/dist/{x-file-input-f35OKy3m.js.map → x-file-input-Dt2B3iG0.js.map} +1 -1
  18. package/dist/{x-form-ClKnXXd0.js → x-form-DA_DOJ2L.js} +2 -2
  19. package/dist/{x-form-ClKnXXd0.js.map → x-form-DA_DOJ2L.js.map} +1 -1
  20. package/dist/x-menu--XKGcL5D.js +17 -0
  21. package/dist/x-menu--XKGcL5D.js.map +1 -0
  22. package/dist/{x-select-B-9ebdG3.js → x-select-EUko1Rag.js} +2 -2
  23. package/dist/{x-select-B-9ebdG3.js.map → x-select-EUko1Rag.js.map} +1 -1
  24. package/dist/{x-text-field-BoIZJ_CH.js → x-text-field-CZcbvoFI.js} +2 -2
  25. package/dist/{x-text-field-BoIZJ_CH.js.map → x-text-field-CZcbvoFI.js.map} +1 -1
  26. package/dist/{x-tree-CrHakAmV.js → x-tree-SDsF-YBu.js} +2 -2
  27. package/dist/{x-tree-CrHakAmV.js.map → x-tree-SDsF-YBu.js.map} +1 -1
  28. package/package.json +13 -13
  29. package/src/components/vuetifyDesignSystemLoader.ts +5 -0
  30. package/src/vue/x-btn.vue +1 -1
  31. package/src/vue/x-dropdown.vue +49 -0
  32. package/src/vue/x-menu.vue +3 -16
  33. package/dist/index-5yb_QWW0.js.map +0 -1
  34. package/dist/x-btn-BsiSIiiO.js.map +0 -1
  35. package/dist/x-menu-Dvd5JVz3.js +0 -31
  36. package/dist/x-menu-Dvd5JVz3.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"x-btn-BsiSIiiO.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/platform-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,31 +0,0 @@
1
- import { resolveComponent as o, openBlock as s, createBlock as i, withCtx as e, createVNode as l, renderSlot as n, createElementVNode as d, normalizeProps as _, guardReactiveProps as f } from "vue";
2
- import { _ as p } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- const u = {};
4
- function m(t, v) {
5
- const a = o("v-list"), c = o("v-menu");
6
- return s(), i(c, {
7
- "close-on-content-click": !1,
8
- attach: "#xwCristalApp",
9
- "z-index": "initial"
10
- }, {
11
- activator: e(({ props: r }) => [
12
- d("span", _(f(r)), [
13
- n(t.$slots, "activator", {}, void 0, !0)
14
- ], 16)
15
- ]),
16
- default: e(() => [
17
- l(a, { density: "compact" }, {
18
- default: e(() => [
19
- n(t.$slots, "default", {}, void 0, !0)
20
- ]),
21
- _: 3
22
- })
23
- ]),
24
- _: 3
25
- });
26
- }
27
- const k = /* @__PURE__ */ p(u, [["render", m], ["__scopeId", "data-v-f4270af8"]]);
28
- export {
29
- k as default
30
- };
31
- //# sourceMappingURL=x-menu-Dvd5JVz3.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"x-menu-Dvd5JVz3.js","sources":["../src/vue/x-menu.vue"],"sourcesContent":["<!--\n See the LICENSE file distributed with this work for additional\n information regarding copyright ownership.\n\n This is free software; you can redistribute it and/or modify it\n under the terms of the GNU Lesser General Public License as\n published by the Free Software Foundation; either version 2.1 of\n the License, or (at your option) any later version.\n\n This software is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this software; if not, write to the Free\n Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script lang=\"ts\" setup></script>\n<template>\n <!-- v-menu needs to be attached inside Cristal DOM to fix its z-index.\n We also reset the default z-index to set it in the style section. -->\n <v-menu\n :close-on-content-click=\"false\"\n attach=\"#xwCristalApp\"\n z-index=\"initial\"\n >\n <template #activator=\"{ props }\">\n <span v-bind=\"props\">\n <slot name=\"activator\" />\n </span>\n </template>\n <v-list density=\"compact\">\n <slot name=\"default\" />\n </v-list>\n </v-menu>\n</template>\n<style scoped>\n.v-overlay {\n z-index: var(--cr-z-index-dropdown);\n}\n</style>\n"],"names":["_createBlock","_component_v_menu","_withCtx","props","_createElementVNode","_renderSlot","_ctx","_createVNode","_component_v_list"],"mappings":";;;;;cAuBEA,EAaSC,GAAA;AAAA,IAZN,0BAAwB;AAAA,IACzB,QAAO;AAAA,IACP,WAAQ;AAAA;IAEG,WAASC,EAClB,CAEO,EAHe,OAAAC,QAAK;AAAA,MAC3BC,EAEO,YAFOD,CAAK,CAAA,GAAA;AAAA,QACjBE,EAAyBC,EAAA,QAAA,aAAA,CAAA,GAAA,QAAA,EAAA;AAAA;;eAG7B,MAES;AAAA,MAFTC,EAESC,GAAA,EAFD,SAAQ,UAAS,GAAA;AAAA,mBACvB,MAAuB;AAAA,UAAvBH,EAAuBC,EAAA,QAAA,WAAA,CAAA,GAAA,QAAA,EAAA;AAAA;;;;;;;;"}