@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,45 @@
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
+ <template>
27
+ <v-alert :title="title" :type="type">
28
+ <slot />
29
+ </v-alert>
30
+ </template>
31
+ <script lang="ts">
32
+ import type { PropType } from "vue";
33
+ import type { VAlert } from "vuetify/lib/components/VAlert/index.mjs";
34
+
35
+ export default {
36
+ components: {},
37
+ props: {
38
+ title: { type: String, required: true },
39
+ type: {
40
+ type: Object as PropType<VAlert["type"] | undefined>,
41
+ required: true,
42
+ },
43
+ },
44
+ };
45
+ </script>
@@ -0,0 +1,36 @@
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
+ <template>
27
+ <v-avatar :image="image" :size="size"></v-avatar>
28
+ </template>
29
+ <script lang="ts">
30
+ export default {
31
+ props: {
32
+ image: { type: String, required: true },
33
+ size: { type: String, required: true },
34
+ },
35
+ };
36
+ </script>
@@ -0,0 +1,36 @@
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
+ <script setup lang="ts">
27
+ import { BreadcrumbProps } from "@xwiki/cristal-dsapi";
28
+
29
+ defineProps<BreadcrumbProps>();
30
+ </script>
31
+
32
+ <template>
33
+ <v-breadcrumbs :items="items"></v-breadcrumbs>
34
+ </template>
35
+
36
+ <style scoped></style>
@@ -0,0 +1,30 @@
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
+ <template>
27
+ <v-btn>
28
+ <slot />
29
+ </v-btn>
30
+ </template>
@@ -0,0 +1,35 @@
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
+ <template>
27
+ <v-card :title="title" variant="outlined">
28
+ <slot />
29
+ </v-card>
30
+ </template>
31
+ <script lang="ts">
32
+ export default {
33
+ props: { title: { type: String, required: true } },
34
+ };
35
+ </script>
@@ -0,0 +1,50 @@
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
+ <script lang="ts" setup>
27
+ defineProps<{
28
+ title: string;
29
+ width: string | number | undefined;
30
+ }>();
31
+
32
+ // const innerIsActive = ref(props.isActive);
33
+ </script>
34
+
35
+ <template>
36
+ <v-dialog :width="width">
37
+ <template #activator="{ props }">
38
+ <span v-bind="props">
39
+ <slot name="activator" />
40
+ </span>
41
+ </template>
42
+ <template #default>
43
+ <v-card :title="title">
44
+ <v-card-text>
45
+ <slot name="default" />
46
+ </v-card-text>
47
+ </v-card>
48
+ </template>
49
+ </v-dialog>
50
+ </template>
@@ -0,0 +1,28 @@
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
+ <template>
27
+ <v-divider :thickness="2" class="border-opacity-100" color="info" />
28
+ </template>
@@ -0,0 +1,34 @@
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
+ <template>
27
+ <!-- TODO: add an alt attribute for accessibility -->
28
+ <img :src="src" />
29
+ </template>
30
+ <script lang="ts">
31
+ export default {
32
+ props: { src: { type: String, required: true } },
33
+ };
34
+ </script>
@@ -0,0 +1,33 @@
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
+ <script setup lang="ts">
27
+ import "vuetify/styles";
28
+ import "./css/style.css";
29
+ </script>
30
+
31
+ <template><span></span></template>
32
+
33
+ <style scoped></style>
@@ -0,0 +1,35 @@
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
+ <script lang="ts" setup>
27
+ defineProps<{
28
+ title: string;
29
+ }>();
30
+ </script>
31
+ <template>
32
+ <v-list-item>
33
+ <slot name="default" />
34
+ </v-list-item>
35
+ </template>
@@ -0,0 +1,42 @@
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
+ <script lang="ts" setup>
27
+ defineProps<{
28
+ title: string;
29
+ }>();
30
+ </script>
31
+ <template>
32
+ <v-menu open-on-hover>
33
+ <template #activator="{ props }">
34
+ <span v-bind="props">
35
+ <slot name="activator" />
36
+ </span>
37
+ </template>
38
+ <v-list>
39
+ <slot name="default" />
40
+ </v-list>
41
+ </v-menu>
42
+ </template>
@@ -0,0 +1,40 @@
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
+ <script setup lang="ts"></script>
27
+
28
+ <template>
29
+ <v-autocomplete
30
+ density="comfortable"
31
+ menu-icon=""
32
+ placeholder="Search"
33
+ prepend-inner-icon="mdi-magnify"
34
+ variant="solo"
35
+ auto-select-first
36
+ rounded
37
+ ></v-autocomplete>
38
+ </template>
39
+
40
+ <style scoped></style>
package/src/vue.d.ts ADDED
@@ -0,0 +1,32 @@
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
+ // vue.d.ts
27
+ declare module "*.vue" {
28
+ import type { DefineComponent } from "vue";
29
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
30
+ const component: DefineComponent<{}, {}, any>;
31
+ export default component;
32
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "compilerOptions": {
3
+ "rootDir" : "src",
4
+ "outDir" : "dist",
5
+ },
6
+ "extends": "./../../tsconfig.json",
7
+ "include": ["./src/index.ts", "./src/**/*"]
8
+ }
package/vite.config.ts ADDED
@@ -0,0 +1,28 @@
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 { generateConfigVue } from "../../vite.config";
27
+
28
+ export default generateConfigVue(import.meta.url);