@xwiki/cristal-dsvuetify 0.8.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 (68) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/LICENSE +505 -0
  3. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +10 -0
  4. package/dist/_plugin-vue_export-helper-CHgC5LLL.js.map +1 -0
  5. package/dist/components/componentsInit.d.ts +5 -0
  6. package/dist/components/vuetifyDesignSystemLoader.d.ts +6 -0
  7. package/dist/index.d.ts +3 -0
  8. package/dist/index.es.js +20958 -0
  9. package/dist/index.es.js.map +1 -0
  10. package/dist/index.umd.js +26 -0
  11. package/dist/index.umd.js.map +1 -0
  12. package/dist/style.css +5 -0
  13. package/dist/vue/x-alert.vue.d.ts +22 -0
  14. package/dist/vue/x-avatar.vue.d.ts +20 -0
  15. package/dist/vue/x-breadcrumb.vue.d.ts +13 -0
  16. package/dist/vue/x-btn.vue.d.ts +9 -0
  17. package/dist/vue/x-card.vue.d.ts +12 -0
  18. package/dist/vue/x-dialog.vue.d.ts +25 -0
  19. package/dist/vue/x-divider.vue.d.ts +2 -0
  20. package/dist/vue/x-img.vue.d.ts +12 -0
  21. package/dist/vue/x-load.vue.d.ts +3 -0
  22. package/dist/vue/x-menu-item.vue.d.ts +22 -0
  23. package/dist/vue/x-menu.vue.d.ts +23 -0
  24. package/dist/vue/x-search.vue.d.ts +2 -0
  25. package/dist/x-alert-Cm6mzRpR.js +29 -0
  26. package/dist/x-alert-Cm6mzRpR.js.map +1 -0
  27. package/dist/x-avatar-But_Z7ic.js +20 -0
  28. package/dist/x-avatar-But_Z7ic.js.map +1 -0
  29. package/dist/x-breadcrumb-DKUFjeVQ.js +17 -0
  30. package/dist/x-breadcrumb-DKUFjeVQ.js.map +1 -0
  31. package/dist/x-btn-DsACLwMY.js +17 -0
  32. package/dist/x-btn-DsACLwMY.js.map +1 -0
  33. package/dist/x-card-CRM9KUby.js +22 -0
  34. package/dist/x-card-CRM9KUby.js.map +1 -0
  35. package/dist/x-dialog-Ce8KWptm.js +38 -0
  36. package/dist/x-dialog-Ce8KWptm.js.map +1 -0
  37. package/dist/x-divider-7cmRuxTV.js +16 -0
  38. package/dist/x-divider-7cmRuxTV.js.map +1 -0
  39. package/dist/x-img-BYgs_O1F.js +13 -0
  40. package/dist/x-img-BYgs_O1F.js.map +1 -0
  41. package/dist/x-load-CDyapJH_.js +11 -0
  42. package/dist/x-load-CDyapJH_.js.map +1 -0
  43. package/dist/x-menu-VerLAd9F.js +32 -0
  44. package/dist/x-menu-VerLAd9F.js.map +1 -0
  45. package/dist/x-menu-item-DGurfOCF.js +22 -0
  46. package/dist/x-menu-item-DGurfOCF.js.map +1 -0
  47. package/dist/x-search-C4yZLrSp.js +20 -0
  48. package/dist/x-search-C4yZLrSp.js.map +1 -0
  49. package/package.json +45 -0
  50. package/src/components/componentsInit.ts +37 -0
  51. package/src/components/vuetifyDesignSystemLoader.ts +98 -0
  52. package/src/index.ts +28 -0
  53. package/src/vue/css/style.css +541 -0
  54. package/src/vue/x-alert.vue +45 -0
  55. package/src/vue/x-avatar.vue +36 -0
  56. package/src/vue/x-breadcrumb.vue +36 -0
  57. package/src/vue/x-btn.vue +30 -0
  58. package/src/vue/x-card.vue +35 -0
  59. package/src/vue/x-dialog.vue +50 -0
  60. package/src/vue/x-divider.vue +28 -0
  61. package/src/vue/x-img.vue +34 -0
  62. package/src/vue/x-load.vue +33 -0
  63. package/src/vue/x-menu-item.vue +35 -0
  64. package/src/vue/x-menu.vue +42 -0
  65. package/src/vue/x-search.vue +40 -0
  66. package/src/vue.d.ts +32 -0
  67. package/tsconfig.json +8 -0
  68. package/vite.config.ts +28 -0
@@ -0,0 +1,22 @@
1
+ import { PropType } from 'vue';
2
+
3
+ declare const _default: import('vue').DefineComponent<{
4
+ title: {
5
+ type: StringConstructor;
6
+ required: true;
7
+ };
8
+ type: {
9
+ type: PropType<"error" | "success" | "warning" | "info" | undefined>;
10
+ required: true;
11
+ };
12
+ }, unknown, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
13
+ title: {
14
+ type: StringConstructor;
15
+ required: true;
16
+ };
17
+ type: {
18
+ type: PropType<"error" | "success" | "warning" | "info" | undefined>;
19
+ required: true;
20
+ };
21
+ }>>, {}, {}>;
22
+ export default _default;
@@ -0,0 +1,20 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ image: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ };
6
+ size: {
7
+ type: StringConstructor;
8
+ required: true;
9
+ };
10
+ }, unknown, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
11
+ image: {
12
+ type: StringConstructor;
13
+ required: true;
14
+ };
15
+ size: {
16
+ type: StringConstructor;
17
+ required: true;
18
+ };
19
+ }>>, {}, {}>;
20
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { BreadcrumbProps } from '@xwiki/cristal-dsapi';
2
+
3
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<BreadcrumbProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<BreadcrumbProps>>>, {}, {}>;
4
+ export default _default;
5
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
6
+ type __VLS_TypePropsToRuntimeProps<T> = {
7
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
8
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
9
+ } : {
10
+ type: import('vue').PropType<T[K]>;
11
+ required: true;
12
+ };
13
+ };
@@ -0,0 +1,9 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>, {
2
+ default?(_: {}): any;
3
+ }>;
4
+ export default _default;
5
+ type __VLS_WithTemplateSlots<T, S> = T & {
6
+ new (): {
7
+ $slots: S;
8
+ };
9
+ };
@@ -0,0 +1,12 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ title: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ };
6
+ }, unknown, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
7
+ title: {
8
+ type: StringConstructor;
9
+ required: true;
10
+ };
11
+ }>>, {}, {}>;
12
+ export default _default;
@@ -0,0 +1,25 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
+ title: string;
3
+ width: string | number | undefined;
4
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
+ title: string;
6
+ width: string | number | undefined;
7
+ }>>>, {}, {}>, {
8
+ activator?(_: {}): any;
9
+ default?(_: {}): any;
10
+ }>;
11
+ export default _default;
12
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
+ type __VLS_TypePropsToRuntimeProps<T> = {
14
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
15
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
+ } : {
17
+ type: import('vue').PropType<T[K]>;
18
+ required: true;
19
+ };
20
+ };
21
+ type __VLS_WithTemplateSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,12 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ src: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ };
6
+ }, unknown, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
7
+ src: {
8
+ type: StringConstructor;
9
+ required: true;
10
+ };
11
+ }>>, {}, {}>;
12
+ export default _default;
@@ -0,0 +1,3 @@
1
+
2
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
3
+ export default _default;
@@ -0,0 +1,22 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
+ title: string;
3
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
+ title: string;
5
+ }>>>, {}, {}>, {
6
+ default?(_: {}): any;
7
+ }>;
8
+ export default _default;
9
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
10
+ type __VLS_TypePropsToRuntimeProps<T> = {
11
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
12
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
13
+ } : {
14
+ type: import('vue').PropType<T[K]>;
15
+ required: true;
16
+ };
17
+ };
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,23 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
+ title: string;
3
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
+ title: string;
5
+ }>>>, {}, {}>, {
6
+ activator?(_: {}): any;
7
+ default?(_: {}): any;
8
+ }>;
9
+ export default _default;
10
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
+ type __VLS_TypePropsToRuntimeProps<T> = {
12
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
13
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
14
+ } : {
15
+ type: import('vue').PropType<T[K]>;
16
+ required: true;
17
+ };
18
+ };
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import { resolveComponent as o, openBlock as n, createBlock as p, withCtx as c, renderSlot as l } from "vue";
2
+ import { _ as s } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const i = {
4
+ components: {},
5
+ props: {
6
+ title: { type: String, required: !0 },
7
+ type: {
8
+ type: Object,
9
+ required: !0
10
+ }
11
+ }
12
+ };
13
+ function a(e, _, t, u, d, f) {
14
+ const r = o("v-alert");
15
+ return n(), p(r, {
16
+ title: t.title,
17
+ type: t.type
18
+ }, {
19
+ default: c(() => [
20
+ l(e.$slots, "default")
21
+ ]),
22
+ _: 3
23
+ }, 8, ["title", "type"]);
24
+ }
25
+ const x = /* @__PURE__ */ s(i, [["render", a]]);
26
+ export {
27
+ x as default
28
+ };
29
+ //# sourceMappingURL=x-alert-Cm6mzRpR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-alert-Cm6mzRpR.js","sources":["../src/vue/x-alert.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 Affero 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 Affero 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 * This file is part of the Cristal Wiki software prototype\n * @copyright Copyright (c) 2023 XWiki SAS\n * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0\n *\n **/\n-->\n<template>\n <v-alert :title=\"title\" :type=\"type\">\n <slot />\n </v-alert>\n</template>\n<script lang=\"ts\">\nimport type { PropType } from \"vue\";\nimport type { VAlert } from \"vuetify/lib/components/VAlert/index.mjs\";\n\nexport default {\n components: {},\n props: {\n title: { type: String, required: true },\n type: {\n type: Object as PropType<VAlert[\"type\"] | undefined>,\n required: true,\n },\n },\n};\n</script>\n"],"names":["_sfc_main","_resolveComponent","_openBlock","_createBlock","_component_v_alert","$props","_renderSlot","_ctx"],"mappings":";;AAkCA,MAAeA,IAAA;AAAA,EACb,YAAY,CAAC;AAAA,EACb,OAAO;AAAA,IACL,OAAO,EAAE,MAAM,QAAQ,UAAU,GAAK;AAAA,IACtC,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,EACF;AACF;;YAjBEC,EAEU,SAAA;SAFqBC,EAAI,GAAAC,EAAAC,GAAA;AAAA,IAAA,OAAAC,EAAA;AAAA,IA1BrC,MAAAA,EAAA;AAAA,EAAA,GAAA;AAAA;MAAAC,EAAAC,EAAA,QAAA,SAAA;AAAA,IAAA,CAAA;AAAA;;;;"}
@@ -0,0 +1,20 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-avatar-But_Z7ic.js","sources":["../src/vue/x-avatar.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 Affero 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 Affero 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 * This file is part of the Cristal Wiki software prototype\n * @copyright Copyright (c) 2023 XWiki SAS\n * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0\n *\n **/\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":";;AA6BA,MAAeA,IAAA;AAAA,EACb,OAAO;AAAA,IACL,OAAO,EAAE,MAAM,QAAQ,UAAU,GAAK;AAAA,IACtC,MAAM,EAAE,MAAM,QAAQ,UAAU,GAAK;AAAA,EACvC;AACF;;YAREC,EAAiD,UAAA;SAAjBC,EAAI,GAAAC,EAAAC,GAAA;AAAA,IAAA,OAAAC,EAAA;AAAA;;;;"}
@@ -0,0 +1,17 @@
1
+ import { defineComponent as r, resolveComponent as t, openBlock as n, createBlock as m } from "vue";
2
+ const _ = /* @__PURE__ */ r({
3
+ __name: "x-breadcrumb",
4
+ props: {
5
+ items: {}
6
+ },
7
+ setup(s) {
8
+ return (e, c) => {
9
+ const o = t("v-breadcrumbs");
10
+ return n(), m(o, { items: e.items }, null, 8, ["items"]);
11
+ };
12
+ }
13
+ });
14
+ export {
15
+ _ as default
16
+ };
17
+ //# sourceMappingURL=x-breadcrumb-DKUFjeVQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-breadcrumb-DKUFjeVQ.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -0,0 +1,17 @@
1
+ import { resolveComponent as o, openBlock as n, createBlock as r, withCtx as c, renderSlot as _ } from "vue";
2
+ import { _ as s } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const l = {};
4
+ function f(t, a) {
5
+ const e = o("v-btn");
6
+ return n(), r(e, null, {
7
+ default: c(() => [
8
+ _(t.$slots, "default")
9
+ ]),
10
+ _: 3
11
+ });
12
+ }
13
+ const d = /* @__PURE__ */ s(l, [["render", f]]);
14
+ export {
15
+ d as default
16
+ };
17
+ //# sourceMappingURL=x-btn-DsACLwMY.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-btn-DsACLwMY.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 Affero 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 Affero 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 * This file is part of the Cristal Wiki software prototype\n * @copyright Copyright (c) 2023 XWiki SAS\n * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0\n *\n **/\n-->\n<template>\n <v-btn>\n <slot />\n </v-btn>\n</template>\n"],"names":["_openBlock","_createBlock","_component_v_btn","_withCtx"],"mappings":";;;;;AAAA,SAAAA,EA2BI,GAAQC,EAAAC,GAAA,MAAA;AAAA,aAAAC,EAAA,MAAA;AAAA;KA3BZ;AAAA;;;;"}
@@ -0,0 +1,22 @@
1
+ import { resolveComponent as o, openBlock as n, createBlock 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 n(), a(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-CRM9KUby.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-card-CRM9KUby.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 Affero 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 Affero 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 * This file is part of the Cristal Wiki software prototype\n * @copyright Copyright (c) 2023 XWiki SAS\n * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0\n *\n **/\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","_resolveComponent","_openBlock","_createBlock","_component_v_card","$props","_renderSlot","_ctx"],"mappings":";;AA+BA,MAAeA,IAAA;AAAA,EACb,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,UAAU,KAAO;AACnD;;YAPEC,EAES,QAAA;AAFc,SAAAC,EAAA,GAAkBC,EAAAC,GAAA;AAAA,IAAA,OAAAC,EAAA;AAAA,IA1B3C,SAAA;AAAA,EAAA,GAAA;AAAA;MAAAC,EAAAC,EAAA,QAAA,SAAA;AAAA,IAAA,CAAA;AAAA;;;;"}
@@ -0,0 +1,38 @@
1
+ import { defineComponent as i, resolveComponent as o, openBlock as s, createBlock as _, withCtx as e, createElementVNode as p, normalizeProps as m, guardReactiveProps as u, renderSlot as a, createVNode as n } from "vue";
2
+ const w = /* @__PURE__ */ i({
3
+ __name: "x-dialog",
4
+ props: {
5
+ title: {},
6
+ width: {}
7
+ },
8
+ setup(v) {
9
+ return (t, f) => {
10
+ const r = o("v-card-text"), l = o("v-card"), d = o("v-dialog");
11
+ return s(), _(d, { width: t.width }, {
12
+ activator: e(({ props: c }) => [
13
+ p("span", m(u(c)), [
14
+ a(t.$slots, "activator")
15
+ ], 16)
16
+ ]),
17
+ default: e(() => [
18
+ n(l, { title: t.title }, {
19
+ default: e(() => [
20
+ n(r, null, {
21
+ default: e(() => [
22
+ a(t.$slots, "default")
23
+ ]),
24
+ _: 3
25
+ })
26
+ ]),
27
+ _: 3
28
+ }, 8, ["title"])
29
+ ]),
30
+ _: 3
31
+ }, 8, ["width"]);
32
+ };
33
+ }
34
+ });
35
+ export {
36
+ w as default
37
+ };
38
+ //# sourceMappingURL=x-dialog-Ce8KWptm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-dialog-Ce8KWptm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,16 @@
1
+ import { resolveComponent as e, 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 o = e("v-divider");
6
+ return r(), c(o, {
7
+ thickness: 2,
8
+ class: "border-opacity-100",
9
+ color: "info"
10
+ });
11
+ }
12
+ const f = /* @__PURE__ */ n(t, [["render", i]]);
13
+ export {
14
+ f as default
15
+ };
16
+ //# sourceMappingURL=x-divider-7cmRuxTV.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-divider-7cmRuxTV.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 Affero 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 Affero 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 * This file is part of the Cristal Wiki software prototype\n * @copyright Copyright (c) 2023 XWiki SAS\n * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0\n *\n **/\n-->\n<template>\n <v-divider :thickness=\"2\" class=\"border-opacity-100\" color=\"info\" />\n</template>\n"],"names":["_openBlock","_createBlock","_component_v_divider"],"mappings":";;;;;AA0Bc,SAAAA,EAAY,GAAAC,EAAAC,GAAA;AAAA,IAAE,WAA0B;AAAA,IAAC,OAAM;AAAA;;;;"}
@@ -0,0 +1,13 @@
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
@@ -0,0 +1 @@
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 Affero 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 Affero 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 * This file is part of the Cristal Wiki software prototype\n * @copyright Copyright (c) 2023 XWiki SAS\n * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0\n *\n **/\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"],"mappings":";;AA8BA,MAAeA,IAAA;AAAA,EACb,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,UAAU,KAAO;AACjD;;;;;"}
@@ -0,0 +1,11 @@
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-CDyapJH_.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-load-CDyapJH_.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -0,0 +1,32 @@
1
+ import { defineComponent as l, resolveComponent as t, openBlock as p, createBlock as c, withCtx as e, createElementVNode as _, normalizeProps as m, guardReactiveProps as u, renderSlot as n, createVNode as i } from "vue";
2
+ const h = /* @__PURE__ */ l({
3
+ __name: "x-menu",
4
+ props: {
5
+ title: {}
6
+ },
7
+ setup(d) {
8
+ return (o, v) => {
9
+ const r = t("v-list"), a = t("v-menu");
10
+ return p(), c(a, { "open-on-hover": "" }, {
11
+ activator: e(({ props: s }) => [
12
+ _("span", m(u(s)), [
13
+ n(o.$slots, "activator")
14
+ ], 16)
15
+ ]),
16
+ default: e(() => [
17
+ i(r, null, {
18
+ default: e(() => [
19
+ n(o.$slots, "default")
20
+ ]),
21
+ _: 3
22
+ })
23
+ ]),
24
+ _: 3
25
+ });
26
+ };
27
+ }
28
+ });
29
+ export {
30
+ h as default
31
+ };
32
+ //# sourceMappingURL=x-menu-VerLAd9F.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-menu-VerLAd9F.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,22 @@
1
+ import { defineComponent as o, resolveComponent as n, openBlock as l, createBlock as r, withCtx as s, renderSlot as _ } from "vue";
2
+ const c = /* @__PURE__ */ o({
3
+ __name: "x-menu-item",
4
+ props: {
5
+ title: {}
6
+ },
7
+ setup(m) {
8
+ return (e, p) => {
9
+ const t = n("v-list-item");
10
+ return l(), r(t, null, {
11
+ default: s(() => [
12
+ _(e.$slots, "default")
13
+ ]),
14
+ _: 3
15
+ });
16
+ };
17
+ }
18
+ });
19
+ export {
20
+ c as default
21
+ };
22
+ //# sourceMappingURL=x-menu-item-DGurfOCF.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-menu-item-DGurfOCF.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,20 @@
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
@@ -0,0 +1 @@
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 Affero 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 Affero 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 * This file is part of the Cristal Wiki software prototype\n * @copyright Copyright (c) 2023 XWiki SAS\n * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0\n *\n **/\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":["_openBlock","_createBlock","_component_v_autocomplete"],"mappings":";;;;;AA6BI,SAAAA,EAAqB,GAAAC,EAAAC,GAAA;AAAA,IACrB,SAAA;AAAA,IACA,aAAY;AAAA,IACZ,aAAA;AAAA,IACA,sBAAc;AAAA,IACd,SAAA;AAAA,IACA,qBAAO;AAAA;;;;"}
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@xwiki/cristal-dsvuetify",
3
+ "version": "0.8.0",
4
+ "license": "AGPL-3.0",
5
+ "author": "XWiki Org Community <contact@xwiki.org>",
6
+ "homepage": "https://cristal.xwiki.org/",
7
+ "repository": {
8
+ "type": "git",
9
+ "directory": "ds/vuetify",
10
+ "url": "https://github.com/xwiki-contrib/cristal/"
11
+ },
12
+ "bugs": {
13
+ "url": "https://jira.xwiki.org/projects/CRISTAL/"
14
+ },
15
+ "type": "module",
16
+ "exports": {
17
+ ".": {
18
+ "import": "./dist/index.es.js",
19
+ "require": "./dist/index.umd.js",
20
+ "types": "./dist/index.d.ts"
21
+ }
22
+ },
23
+ "main": "./dist/index.es.js",
24
+ "dependencies": {
25
+ "inversify": "6.0.2",
26
+ "vue": "3.4.27",
27
+ "vue-i18n": "9.13.1",
28
+ "vuetify": "3.6.7",
29
+ "@xwiki/cristal-api": "0.8.0",
30
+ "@xwiki/cristal-dsapi": "0.8.0"
31
+ },
32
+ "devDependencies": {
33
+ "rimraf": "5.0.7",
34
+ "vite": "5.2.11",
35
+ "vue-tsc": "2.0.19"
36
+ },
37
+ "scripts": {
38
+ "build": "pnpm compile",
39
+ "clean": "rimraf dist",
40
+ "compile": "vue-tsc --project tsconfig.json --noEmit && vite build",
41
+ "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0",
42
+ "test": "echo 'no test'"
43
+ },
44
+ "types": "./dist/index.d.ts"
45
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * See the LICENSE file distributed with this work for additional
3
+ * information regarding copyright ownership.
4
+ *
5
+ * This is free software; you can redistribute it and/or modify it
6
+ * under the terms of the GNU Affero General Public License as
7
+ * published by the Free Software Foundation; either version 2.1 of
8
+ * the License, or (at your option) any later version.
9
+ *
10
+ * This software is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ * Lesser General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public
16
+ * License along with this software; if not, write to the Free
17
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
+ *
20
+ * This file is part of the Cristal Wiki software prototype
21
+ * @copyright Copyright (c) 2023 XWiki SAS
22
+ * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
23
+ *
24
+ **/
25
+
26
+ import type { DesignSystemLoader } from "@xwiki/cristal-api";
27
+ import type { Container } from "inversify";
28
+ import { VuetifyDesignSystemLoader } from "./vuetifyDesignSystemLoader";
29
+
30
+ export default class ComponentInit {
31
+ constructor(container: Container) {
32
+ container
33
+ .bind<DesignSystemLoader>("DesignSystemLoader")
34
+ .to(VuetifyDesignSystemLoader)
35
+ .whenTargetNamed("vuetify");
36
+ }
37
+ }