@xwiki/cristal-dsvuetify 0.24.0 → 0.25.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 (74) hide show
  1. package/dist/components/vuetifyDesignSystemLoader.d.ts +1 -1
  2. package/dist/index-D7wZ4Kvq.js +25979 -0
  3. package/dist/index-D7wZ4Kvq.js.map +1 -0
  4. package/dist/index.es-BOA77_Kh.js +10 -0
  5. package/dist/index.es-BOA77_Kh.js.map +1 -0
  6. package/dist/index.es.js +8 -12
  7. package/dist/index.umd.js +13 -19
  8. package/dist/index.umd.js.map +1 -1
  9. package/dist/vue/form/x-checkbox.vue.d.ts +1 -1
  10. package/dist/vue/form/x-file-input.vue.d.ts +1 -1
  11. package/dist/vue/form/x-navigation-tree-select.vue.d.ts +2 -2
  12. package/dist/vue/form/x-select.vue.d.ts +1 -1
  13. package/dist/vue/form/x-text-field.vue.d.ts +1 -1
  14. package/dist/vue/x-alert.vue.d.ts +1 -1
  15. package/dist/vue/x-avatar.vue.d.ts +1 -1
  16. package/dist/vue/x-breadcrumb.vue.d.ts +1 -1
  17. package/dist/vue/x-btn.vue.d.ts +1 -1
  18. package/dist/vue/x-menu-item.vue.d.ts +1 -1
  19. package/dist/vue/x-navigation-tree.vue.d.ts +1 -1
  20. package/dist/vue/x-tab-panel.vue.d.ts +1 -1
  21. package/dist/vue/x-tab.vue.d.ts +1 -1
  22. package/dist/vue/x-tree.vue.d.ts +3 -3
  23. package/dist/{x-alert-YX1txXZY.js → x-alert-C1NRkhdt.js} +6 -6
  24. package/dist/x-alert-C1NRkhdt.js.map +1 -0
  25. package/dist/x-avatar-B5IoAQPQ.js.map +1 -1
  26. package/dist/{x-breadcrumb-DiDfmxr5.js → x-breadcrumb-DaJw0U-E.js} +5 -5
  27. package/dist/{x-breadcrumb-DiDfmxr5.js.map → x-breadcrumb-DaJw0U-E.js.map} +1 -1
  28. package/dist/x-btn-DzH2bk-f.js.map +1 -1
  29. package/dist/{x-checkbox-DoxVAidm.js → x-checkbox-CN6QxF3B.js} +2 -2
  30. package/dist/{x-checkbox-DoxVAidm.js.map → x-checkbox-CN6QxF3B.js.map} +1 -1
  31. package/dist/{x-file-input-B50TiQaF.js → x-file-input-CkjbGsMG.js} +2 -2
  32. package/dist/x-file-input-CkjbGsMG.js.map +1 -0
  33. package/dist/{x-form-CMwcPIyL.js → x-form-dk8EltHS.js} +2 -2
  34. package/dist/{x-form-CMwcPIyL.js.map → x-form-dk8EltHS.js.map} +1 -1
  35. package/dist/x-menu-item-Ph5-wwcR.js.map +1 -1
  36. package/dist/{x-navigation-tree-CSpekTTC.js → x-navigation-tree-BkJKd5J2.js} +48 -49
  37. package/dist/x-navigation-tree-BkJKd5J2.js.map +1 -0
  38. package/dist/{x-navigation-tree-select-DgyGTYDy.js → x-navigation-tree-select-VRsQSFA3.js} +26 -27
  39. package/dist/x-navigation-tree-select-VRsQSFA3.js.map +1 -0
  40. package/dist/{x-select-D2T4qd71.js → x-select-CpWujZTj.js} +2 -2
  41. package/dist/x-select-CpWujZTj.js.map +1 -0
  42. package/dist/x-tab-B8YFmNK2.js.map +1 -1
  43. package/dist/x-tab-panel-B7a_xbQd.js.map +1 -1
  44. package/dist/{x-text-field-DoGMe9Qc.js → x-text-field-wiH4MWRR.js} +2 -2
  45. package/dist/x-text-field-wiH4MWRR.js.map +1 -0
  46. package/dist/{x-tree-DFzX3ffS.js → x-tree-CkUElkU9.js} +3 -3
  47. package/dist/x-tree-CkUElkU9.js.map +1 -0
  48. package/package.json +16 -16
  49. package/src/components/componentsInit.ts +1 -1
  50. package/src/components/vuetifyDesignSystemLoader.ts +2 -2
  51. package/src/vue/form/x-checkbox.vue +1 -1
  52. package/src/vue/form/x-file-input.vue +2 -2
  53. package/src/vue/form/x-navigation-tree-select.vue +7 -7
  54. package/src/vue/form/x-select.vue +1 -1
  55. package/src/vue/form/x-text-field.vue +1 -1
  56. package/src/vue/x-alert.vue +1 -1
  57. package/src/vue/x-avatar.vue +1 -1
  58. package/src/vue/x-breadcrumb.vue +1 -1
  59. package/src/vue/x-btn.vue +1 -1
  60. package/src/vue/x-menu-item.vue +1 -1
  61. package/src/vue/x-navigation-tree.vue +7 -7
  62. package/src/vue/x-tab-panel.vue +1 -1
  63. package/src/vue/x-tab.vue +1 -1
  64. package/src/vue/x-tree.vue +1 -1
  65. package/CHANGELOG.md +0 -266
  66. package/dist/index-CuRY2kJg.js +0 -22937
  67. package/dist/index-CuRY2kJg.js.map +0 -1
  68. package/dist/x-alert-YX1txXZY.js.map +0 -1
  69. package/dist/x-file-input-B50TiQaF.js.map +0 -1
  70. package/dist/x-navigation-tree-CSpekTTC.js.map +0 -1
  71. package/dist/x-navigation-tree-select-DgyGTYDy.js.map +0 -1
  72. package/dist/x-select-D2T4qd71.js.map +0 -1
  73. package/dist/x-text-field-DoGMe9Qc.js.map +0 -1
  74. package/dist/x-tree-DFzX3ffS.js.map +0 -1
@@ -1,40 +1,39 @@
1
- import { defineComponent as R, mergeModels as w, inject as C, useModel as D, ref as v, onMounted as X, resolveComponent as c, createElementBlock as k, openBlock as B, Fragment as H, createVNode as n, unref as r, withCtx as o, createTextVNode as h, toDisplayString as y, mergeDefaults as N } from "vue";
1
+ import { defineComponent as w, mergeModels as C, inject as T, useModel as X, ref as v, onMounted as k, resolveComponent as c, createElementBlock as B, openBlock as D, Fragment as H, createVNode as n, unref as r, withCtx as o, createTextVNode as h, toDisplayString as y, mergeDefaults as N } from "vue";
2
2
  import { t as M } from "./translations-BVK9UR9x.js";
3
- import S from "./x-breadcrumb-DiDfmxr5.js";
4
- import { EntityType as E, SpaceReference as I } from "@xwiki/cristal-model-api";
5
- import { useI18n as A } from "vue-i18n";
6
- import { a as F } from "./index-CuRY2kJg.js";
7
- import { _ as j } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- const z = {
9
- includeTerminals: !1
10
- }, L = /* @__PURE__ */ R({
3
+ import S from "./x-breadcrumb-DaJw0U-E.js";
4
+ import { n as E } from "./index.es-BOA77_Kh.js";
5
+ import { EntityType as I, SpaceReference as A } from "@xwiki/platform-model-api";
6
+ import { useI18n as F } from "vue-i18n";
7
+ import { a as j } from "./index-D7wZ4Kvq.js";
8
+ import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ const L = /* @__PURE__ */ w({
11
10
  __name: "x-navigation-tree-select",
12
- props: /* @__PURE__ */ w(/* @__PURE__ */ N({
11
+ props: /* @__PURE__ */ C(/* @__PURE__ */ N({
13
12
  label: {},
14
13
  help: {},
15
14
  currentPageReference: {},
16
15
  modelValue: {},
17
16
  includeTerminals: { type: Boolean }
18
- }, z), {
17
+ }, E), {
19
18
  modelValue: {},
20
19
  modelModifiers: {}
21
20
  }),
22
21
  emits: ["update:modelValue"],
23
22
  setup(a) {
24
- const d = C("cristal"), s = d.getContainer().get("PageHierarchyResolverProvider").get(), P = d.getContainer().get("ModelReferenceHandlerProvider").get(), { t: u } = A({
23
+ const d = T("cristal"), s = d.getContainer().get("PageHierarchyResolverProvider").get(), b = d.getContainer().get("ModelReferenceHandlerProvider").get(), { t: u } = F({
25
24
  messages: M
26
- }), m = a, g = D(a, "modelValue"), f = v(!1), l = v([]);
25
+ }), m = a, g = X(a, "modelValue"), f = v(!1), l = v([]);
27
26
  let t;
28
- X(async () => {
27
+ k(async () => {
29
28
  t = m.currentPageReference, g.value = m.currentPageReference.space, l.value = await s.getPageHierarchy(
30
29
  m.currentPageReference.space,
31
30
  !1
32
31
  );
33
32
  });
34
- async function b(e) {
35
- e.location.type == E.SPACE ? e.location.names.length > 0 ? (t = P.createDocumentReference(
33
+ async function P(e) {
34
+ e.location.type == I.SPACE ? e.location.names.length > 0 ? (t = b.createDocumentReference(
36
35
  e.location.names[e.location.names.length - 1],
37
- new I(
36
+ new A(
38
37
  e.location.wiki,
39
38
  ...e.location.names.slice(0, -1)
40
39
  )
@@ -47,9 +46,9 @@ const z = {
47
46
  )), g.value = e.location;
48
47
  }
49
48
  return (e, i) => {
50
- const x = c("x-btn"), T = c("XNavigationTree"), V = c("XBtn"), _ = c("XDialog");
51
- return B(), k(H, null, [
52
- n(r(F), {
49
+ const x = c("x-btn"), V = c("XNavigationTree"), _ = c("XBtn"), R = c("XDialog");
50
+ return D(), B(H, null, [
51
+ n(r(j), {
53
52
  label: a.label,
54
53
  hint: a.help,
55
54
  "persistent-hint": a.help !== void 0,
@@ -61,7 +60,7 @@ const z = {
61
60
  ]),
62
61
  _: 1
63
62
  }, 8, ["label", "hint", "persistent-hint", "active"]),
64
- n(_, {
63
+ n(R, {
65
64
  modelValue: f.value,
66
65
  "onUpdate:modelValue": i[1] || (i[1] = (p) => f.value = p),
67
66
  width: "auto",
@@ -80,15 +79,15 @@ const z = {
80
79
  })
81
80
  ]),
82
81
  default: o(() => [
83
- n(T, {
82
+ n(V, {
84
83
  "current-page-reference": r(t),
85
- "click-action": b,
84
+ "click-action": P,
86
85
  "include-terminals": a.includeTerminals,
87
86
  "show-root-node": ""
88
87
  }, null, 8, ["current-page-reference", "include-terminals"])
89
88
  ]),
90
89
  footer: o(() => [
91
- n(V, {
90
+ n(_, {
92
91
  variant: "primary",
93
92
  onClick: i[0] || (i[0] = (p) => f.value = !1)
94
93
  }, {
@@ -103,8 +102,8 @@ const z = {
103
102
  ], 64);
104
103
  };
105
104
  }
106
- }), Q = /* @__PURE__ */ j(L, [["__scopeId", "data-v-09118322"]]);
105
+ }), W = /* @__PURE__ */ z(L, [["__scopeId", "data-v-3fd3a19c"]]);
107
106
  export {
108
- Q as default
107
+ W as default
109
108
  };
110
- //# sourceMappingURL=x-navigation-tree-select-DgyGTYDy.js.map
109
+ //# sourceMappingURL=x-navigation-tree-select-VRsQSFA3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-navigation-tree-select-VRsQSFA3.js","sources":["../src/vue/form/x-navigation-tree-select.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 XBreadcrumb from \"../x-breadcrumb.vue\";\nimport { navigationTreeSelectPropsDefaults } from \"@xwiki/platform-dsapi\";\nimport { EntityType, SpaceReference } from \"@xwiki/platform-model-api\";\nimport { inject, onMounted, ref } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nimport { VTextField } from \"vuetify/components/VTextField\";\nimport type {\n PageHierarchyItem,\n PageHierarchyResolver,\n PageHierarchyResolverProvider,\n} from \"@xwiki/cristal-hierarchy-api\";\nimport type { CristalApp } from \"@xwiki/platform-api\";\nimport type { NavigationTreeSelectProps } from \"@xwiki/platform-dsapi\";\nimport type { DocumentReference } from \"@xwiki/platform-model-api\";\nimport type {\n ModelReferenceHandler,\n ModelReferenceHandlerProvider,\n} from \"@xwiki/platform-model-reference-api\";\nimport type { NavigationTreeNode } from \"@xwiki/platform-navigation-tree-api\";\nimport type { Ref } from \"vue\";\n\nconst cristal: CristalApp = inject<CristalApp>(\"cristal\")!;\nconst hierarchyResolver: PageHierarchyResolver = cristal\n .getContainer()\n .get<PageHierarchyResolverProvider>(\"PageHierarchyResolverProvider\")\n .get()!;\nconst referenceHandler: ModelReferenceHandler = cristal\n .getContainer()\n .get<ModelReferenceHandlerProvider>(\"ModelReferenceHandlerProvider\")\n .get()!;\n\nconst { t } = useI18n({\n messages,\n});\nconst props = withDefaults(\n defineProps<NavigationTreeSelectProps>(),\n navigationTreeSelectPropsDefaults,\n);\nconst model = defineModel<SpaceReference | DocumentReference>();\n\nconst openedLocationDialog: Ref<boolean> = ref(false);\nconst hierarchy: Ref<Array<PageHierarchyItem>> = ref([]);\nlet selectedPage: DocumentReference | undefined;\n\nonMounted(async () => {\n selectedPage = props.currentPageReference;\n model.value = props.currentPageReference!.space;\n hierarchy.value = await hierarchyResolver.getPageHierarchy(\n props.currentPageReference!.space!,\n false,\n );\n});\n\nasync function treeNodeClickAction(node: NavigationTreeNode) {\n if (node.location.type == EntityType.SPACE) {\n if (node.location.names.length > 0) {\n selectedPage = referenceHandler.createDocumentReference(\n node.location.names[node.location.names.length - 1],\n new SpaceReference(\n node.location.wiki,\n ...node.location.names.slice(0, -1),\n ),\n );\n hierarchy.value = await hierarchyResolver.getPageHierarchy(\n selectedPage,\n false,\n );\n } else {\n selectedPage = undefined;\n hierarchy.value = [{ label: node.label, pageId: \"\", url: node.url }];\n }\n } else {\n selectedPage = node.location;\n hierarchy.value = await hierarchyResolver.getPageHierarchy(\n selectedPage,\n false,\n );\n }\n model.value = node.location;\n}\n</script>\n\n<template>\n <v-text-field\n :label=\"label\"\n :hint=\"help\"\n :persistent-hint=\"help !== undefined\"\n :active=\"hierarchy.length > 0\"\n readonly\n >\n <template #default>\n <XBreadcrumb :items=\"hierarchy\"></XBreadcrumb>\n </template>\n </v-text-field>\n <XDialog\n v-model=\"openedLocationDialog\"\n width=\"auto\"\n :title=\"t('vuetify.tree.select.location.label')\"\n >\n <template #activator>\n <x-btn id=\"change-page-location-button\" size=\"small\" color=\"secondary\">\n {{ t(\"vuetify.tree.select.location.label\") }}\n </x-btn>\n </template>\n <template #default>\n <XNavigationTree\n :current-page-reference=\"selectedPage\"\n :click-action=\"treeNodeClickAction\"\n :include-terminals=\"includeTerminals\"\n show-root-node\n ></XNavigationTree>\n </template>\n <template #footer>\n <XBtn variant=\"primary\" @click=\"openedLocationDialog = false\">\n {{ t(\"vuetify.tree.select.location.select\") }}\n </XBtn>\n </template>\n </XDialog>\n</template>\n\n<style scoped>\n.v-treeview {\n overflow: auto;\n}\n</style>\n"],"names":["cristal","inject","hierarchyResolver","referenceHandler","t","useI18n","messages","props","__props","model","_useModel","openedLocationDialog","ref","hierarchy","selectedPage","onMounted","treeNodeClickAction","node","EntityType","SpaceReference","_createVNode","_unref","VTextField","XBreadcrumb","_component_XDialog","$event","_component_x_btn","_component_XNavigationTree","_component_XBtn"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA0CA,UAAMA,IAAsBC,EAAmB,SAAS,GAClDC,IAA2CF,EAC9C,aAAA,EACA,IAAmC,+BAA+B,EAClE,IAAA,GACGG,IAA0CH,EAC7C,aAAA,EACA,IAAmC,+BAA+B,EAClE,IAAA,GAEG,EAAE,GAAAI,EAAA,IAAMC,EAAQ;AAAA,MAAA,UACpBC;AAAAA,IAAA,CACD,GACKC,IAAQC,GAIRC,IAAQC,EAA+CF,GAAA,YAAC,GAExDG,IAAqCC,EAAI,EAAK,GAC9CC,IAA2CD,EAAI,EAAE;AACvD,QAAIE;AAEJ,IAAAC,EAAU,YAAY;AACpB,MAAAD,IAAeP,EAAM,sBACrBE,EAAM,QAAQF,EAAM,qBAAsB,OAC1CM,EAAU,QAAQ,MAAMX,EAAkB;AAAA,QACxCK,EAAM,qBAAsB;AAAA,QAC5B;AAAA,MAAA;AAAA,IAEJ,CAAC;AAED,mBAAeS,EAAoBC,GAA0B;AAC3D,MAAIA,EAAK,SAAS,QAAQC,EAAW,QAC/BD,EAAK,SAAS,MAAM,SAAS,KAC/BH,IAAeX,EAAiB;AAAA,QAC9Bc,EAAK,SAAS,MAAMA,EAAK,SAAS,MAAM,SAAS,CAAC;AAAA,QAClD,IAAIE;AAAA,UACFF,EAAK,SAAS;AAAA,UACd,GAAGA,EAAK,SAAS,MAAM,MAAM,GAAG,EAAE;AAAA,QAAA;AAAA,MACpC,GAEFJ,EAAU,QAAQ,MAAMX,EAAkB;AAAA,QACxCY;AAAA,QACA;AAAA,MAAA,MAGFA,IAAe,QACfD,EAAU,QAAQ,CAAC,EAAE,OAAOI,EAAK,OAAO,QAAQ,IAAI,KAAKA,EAAK,IAAA,CAAK,MAGrEH,IAAeG,EAAK,UACpBJ,EAAU,QAAQ,MAAMX,EAAkB;AAAA,QACxCY;AAAA,QACA;AAAA,MAAA,IAGJL,EAAM,QAAQQ,EAAK;AAAA,IACrB;;;;QAIEG,EAUeC,EAAAC,CAAA,GAAA;AAAA,UATZ,OAAOd,EAAA;AAAA,UACP,MAAMA,EAAA;AAAA,UACN,mBAAiBA,EAAA,SAAS;AAAA,UAC1B,QAAQK,EAAA,MAAU,SAAM;AAAA,UACzB,UAAA;AAAA,QAAA;UAEW,WACT,MAA8C;AAAA,YAA9CO,EAA8CG,GAAA,EAAhC,OAAOV,EAAA,MAAA,GAAS,MAAA,GAAA,CAAA,OAAA,CAAA;AAAA,UAAA;;;QAGlCO,EAuBUI,GAAA;AAAA,sBAtBCb,EAAA;AAAA,wDAAAA,EAAoB,QAAAc;AAAA,UAC7B,OAAM;AAAA,UACL,OAAOJ,EAAAjB,CAAA,EAAC,oCAAA;AAAA,QAAA;UAEE,aACT,MAEQ;AAAA,YAFRgB,EAEQM,GAAA;AAAA,cAFD,IAAG;AAAA,cAA8B,MAAK;AAAA,cAAQ,OAAM;AAAA,YAAA;yBACzD,MAA6C;AAAA,oBAA1CL,EAAAjB,CAAA,EAAC,oCAAA,CAAA,GAAA,CAAA;AAAA,cAAA;;;;UAGG,WACT,MAKmB;AAAA,YALnBgB,EAKmBO,GAAA;AAAA,cAJhB,0BAAwBN,EAAAP,CAAA;AAAA,cACxB,gBAAcE;AAAA,cACd,qBAAmBR,EAAA;AAAA,cACpB,kBAAA;AAAA,YAAA;;UAGO,UACT,MAEO;AAAA,YAFPY,EAEOQ,GAAA;AAAA,cAFD,SAAQ;AAAA,cAAW,gCAAOjB,EAAA,QAAoB;AAAA,YAAA;yBAClD,MAA8C;AAAA,oBAA3CU,EAAAjB,CAAA,EAAC,qCAAA,CAAA,GAAA,CAAA;AAAA,cAAA;;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as m, mergeModels as n, useModel as i, computed as d, createBlock as c, openBlock as f, unref as p } from "vue";
2
2
  import { t as V } from "./translations-BVK9UR9x.js";
3
3
  import { useI18n as b } from "vue-i18n";
4
- import { e as g } from "./index-CuRY2kJg.js";
4
+ import { e as g } from "./index-D7wZ4Kvq.js";
5
5
  const B = /* @__PURE__ */ m({
6
6
  __name: "x-select",
7
7
  props: /* @__PURE__ */ n({
@@ -36,4 +36,4 @@ const B = /* @__PURE__ */ m({
36
36
  export {
37
37
  B as default
38
38
  };
39
- //# sourceMappingURL=x-select-D2T4qd71.js.map
39
+ //# sourceMappingURL=x-select-CpWujZTj.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-select-CpWujZTj.js","sources":["../src/vue/form/x-select.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 messages from \"../../translations\";\nimport { computed } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nimport { VSelect } from \"vuetify/components/VSelect\";\nimport type { SelectProps } from \"@xwiki/platform-dsapi\";\n\nconst props = defineProps<SelectProps>();\nconst selected = defineModel<string>();\n\nconst { t } = useI18n({\n messages,\n});\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.select.input.mandatory\");\n }\n });\n }\n return rulesList;\n});\n</script>\n<template>\n <v-select\n v-model=\"selected\"\n :label=\"label\"\n :messages=\"help\"\n :items=\"items\"\n :rules=\"rules\"\n :clearable=\"!required\"\n ></v-select>\n</template>\n"],"names":["props","__props","selected","_useModel","t","useI18n","messages","rules","computed","rulesList","value","_createBlock","_unref","VSelect","$event"],"mappings":";;;;;;;;;;;;;;;;;;AA0BA,UAAMA,IAAQC,GACRC,IAAWC,EAAmBF,GAAA,YAAC,GAE/B,EAAE,GAAAG,EAAA,IAAMC,EAAQ;AAAA,MAAA,UACpBC;AAAAA,IAAA,CACD,GAEKC,IAAQC,EAAS,MAAM;AAC3B,YAAMC,IAAY,CAAA;AAClB,aAAIT,EAAM,YACRS,EAAU,KAAK,CAACC,MACVA,IACK,KAEAN,EAAE,gCAAgC,CAE5C,GAEIK;AAAA,IACT,CAAC;2BAGCE,EAOYC,EAAAC,CAAA,GAAA;AAAA,kBANDX,EAAA;AAAA,oDAAAA,EAAQ,QAAAY;AAAA,MAChB,OAAOb,EAAA;AAAA,MACP,UAAUA,EAAA;AAAA,MACV,OAAOA,EAAA;AAAA,MACP,OAAOM,EAAA;AAAA,MACP,YAAYN,EAAA;AAAA,IAAA;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"x-tab-B8YFmNK2.js","sources":["../src/vue/x-tab.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 type { TabProps } from \"@xwiki/cristal-dsapi\";\n\ndefineProps<TabProps>();\n</script>\n\n<template>\n <v-tab :value=\"tabId\"><slot></slot></v-tab>\n</template>\n\n<style scoped></style>\n"],"names":["_createBlock","_component_v_tab","__props","_renderSlot","_ctx"],"mappings":";;;;;;;;;kBA0BEA,EAA2CC,GAAA,EAAnC,OAAOC,EAAA,SAAK;AAAA,mBAAE,MAAa;AAAA,UAAbC,EAAaC,EAAA,QAAA,SAAA;AAAA,QAAA;;;;;;"}
1
+ {"version":3,"file":"x-tab-B8YFmNK2.js","sources":["../src/vue/x-tab.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 type { TabProps } from \"@xwiki/platform-dsapi\";\n\ndefineProps<TabProps>();\n</script>\n\n<template>\n <v-tab :value=\"tabId\"><slot></slot></v-tab>\n</template>\n\n<style scoped></style>\n"],"names":["_createBlock","_component_v_tab","__props","_renderSlot","_ctx"],"mappings":";;;;;;;;;kBA0BEA,EAA2CC,GAAA,EAAnC,OAAOC,EAAA,SAAK;AAAA,mBAAE,MAAa;AAAA,UAAbC,EAAaC,EAAA,QAAA,SAAA;AAAA,QAAA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"x-tab-panel-B7a_xbQd.js","sources":["../src/vue/x-tab-panel.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 type { TabPanelProps } from \"@xwiki/cristal-dsapi\";\n\ndefineProps<TabPanelProps>();\n</script>\n\n<template>\n <v-tabs-window-item :value=\"tabId\"><slot></slot></v-tabs-window-item>\n</template>\n"],"names":["_createBlock","_component_v_tabs_window_item","__props","_renderSlot","_ctx"],"mappings":";;;;;;;;;kBA0BEA,EAAqEC,GAAA,EAAhD,OAAOC,EAAA,SAAK;AAAA,mBAAE,MAAa;AAAA,UAAbC,EAAaC,EAAA,QAAA,SAAA;AAAA,QAAA;;;;;;"}
1
+ {"version":3,"file":"x-tab-panel-B7a_xbQd.js","sources":["../src/vue/x-tab-panel.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 type { TabPanelProps } from \"@xwiki/platform-dsapi\";\n\ndefineProps<TabPanelProps>();\n</script>\n\n<template>\n <v-tabs-window-item :value=\"tabId\"><slot></slot></v-tabs-window-item>\n</template>\n"],"names":["_createBlock","_component_v_tabs_window_item","__props","_renderSlot","_ctx"],"mappings":";;;;;;;;;kBA0BEA,EAAqEC,GAAA,EAAhD,OAAOC,EAAA,SAAK;AAAA,mBAAE,MAAa;AAAA,UAAbC,EAAaC,EAAA,QAAA,SAAA;AAAA,QAAA;;;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as s, mergeModels as m, useModel as i, computed as d, createBlock as f, openBlock as c, unref as p } from "vue";
2
2
  import { t as y } from "./translations-BVK9UR9x.js";
3
3
  import { useI18n as V } from "vue-i18n";
4
- import { a as h } from "./index-CuRY2kJg.js";
4
+ import { a as h } from "./index-D7wZ4Kvq.js";
5
5
  const M = /* @__PURE__ */ s({
6
6
  __name: "x-text-field",
7
7
  props: /* @__PURE__ */ m({
@@ -42,4 +42,4 @@ const M = /* @__PURE__ */ s({
42
42
  export {
43
43
  M as default
44
44
  };
45
- //# sourceMappingURL=x-text-field-DoGMe9Qc.js.map
45
+ //# sourceMappingURL=x-text-field-wiH4MWRR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-text-field-wiH4MWRR.js","sources":["../src/vue/form/x-text-field.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 } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nimport { VTextField } from \"vuetify/components/VTextField\";\nimport type { TextFieldProps } from \"@xwiki/platform-dsapi\";\n\nconst { t } = useI18n({\n messages,\n});\nconst props = defineProps<TextFieldProps>();\nconst input = defineModel<string>();\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.text.input.mandatory\");\n }\n });\n }\n return rulesList;\n});\n</script>\n\n<template>\n <v-text-field\n v-model=\"input\"\n :label=\"label\"\n :name=\"name\"\n :autofocus=\"autofocus\"\n :hint=\"help\"\n :persistent-hint=\"help !== undefined\"\n :rules=\"rules\"\n :readonly=\"readonly\"\n :type=\"type ?? 'text'\"\n ></v-text-field>\n</template>\n\n<style scoped></style>\n"],"names":["t","useI18n","messages","props","__props","input","_useModel","rules","computed","rulesList","value","_createBlock","_unref","VTextField","$event"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA0BA,UAAM,EAAE,GAAAA,EAAA,IAAMC,EAAQ;AAAA,MAAA,UACpBC;AAAAA,IAAA,CACD,GACKC,IAAQC,GACRC,IAAQC,EAAmBF,GAAA,YAAC,GAE5BG,IAAQC,EAAS,MAAM;AAC3B,YAAMC,IAAY,CAAA;AAClB,aAAIN,EAAM,YACRM,EAAU,KAAK,CAACC,MACVA,IACK,KAEAV,EAAE,8BAA8B,CAE1C,GAEIS;AAAA,IACT,CAAC;2BAICE,EAUgBC,EAAAC,CAAA,GAAA;AAAA,kBATLR,EAAA;AAAA,oDAAAA,EAAK,QAAAS;AAAA,MACb,OAAOV,EAAA;AAAA,MACP,MAAMA,EAAA;AAAA,MACN,WAAWA,EAAA;AAAA,MACX,MAAMA,EAAA;AAAA,MACN,mBAAiBA,EAAA,SAAS;AAAA,MAC1B,OAAOG,EAAA;AAAA,MACP,UAAUH,EAAA;AAAA,MACV,MAAMA,EAAA,QAAI;AAAA,IAAA;;;"}
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as s, mergeModels as v, useModel as r, ref as p, watch as u, createBlock as f, openBlock as m, unref as h, withCtx as x, createElementVNode as y, toDisplayString as N } from "vue";
2
- import { c as b } from "./index-CuRY2kJg.js";
2
+ import { c as b } from "./index-D7wZ4Kvq.js";
3
3
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const w = ["href", "onClick"], C = /* @__PURE__ */ s({
5
5
  __name: "x-tree",
@@ -44,8 +44,8 @@ const w = ["href", "onClick"], C = /* @__PURE__ */ s({
44
44
  _: 1
45
45
  }, 8, ["activated", "items", "opened"]));
46
46
  }
47
- }), A = /* @__PURE__ */ k(C, [["__scopeId", "data-v-492d4cb8"]]);
47
+ }), A = /* @__PURE__ */ k(C, [["__scopeId", "data-v-3c0b97c1"]]);
48
48
  export {
49
49
  A as default
50
50
  };
51
- //# sourceMappingURL=x-tree-DFzX3ffS.js.map
51
+ //# sourceMappingURL=x-tree-CkUElkU9.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-tree-CkUElkU9.js","sources":["../src/vue/x-tree.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, watch } from \"vue\";\nimport { VTreeview } from \"vuetify/components/VTreeview\";\nimport type { DisplayableTreeNode, TreeProps } from \"@xwiki/platform-dsapi\";\nimport type { Ref } from \"vue\";\n\ndefineProps<TreeProps>();\nconst opened = defineModel(\"opened\", { default: [], type: Array<string> });\nconst activated = defineModel<string | undefined>(\"activated\");\n\nconst activatedNodes: Ref<Array<string>> = ref([]);\n\nwatch(activated, resetActivated, { immediate: true });\n\nfunction resetActivated() {\n // Clicking on a node would activate it and this can't be disabled easily.\n // With this listener, we ensure that only the node we want stays active.\n activatedNodes.value = activated.value ? [activated.value] : [];\n}\n\nfunction updateActivated(newActivatedNode: DisplayableTreeNode) {\n if (newActivatedNode.activatable) {\n activated.value = newActivatedNode.id;\n }\n}\n</script>\n\n<template>\n <v-treeview\n density=\"compact\"\n :activated=\"activatedNodes\"\n :items=\"showRootNode ? [rootNode] : rootNode.children\"\n activatable\n active-strategy=\"independent\"\n item-value=\"id\"\n :opened=\"opened\"\n @update:opened=\"($event) => (opened = $event as string[])\"\n @update:activated=\"resetActivated\"\n >\n <template #title=\"{ item }\">\n <a :href=\"item.url\" @click=\"updateActivated(item)\">{{ item.label }}</a>\n </template>\n </v-treeview>\n</template>\n\n<style scoped>\n/* Remove the background color from the root div element. */\n.v-list {\n background: none;\n}\n:deep(a) {\n text-decoration: none;\n color: var(--cr-base-text-color);\n}\n/* Disable hover on items. */\n:deep(.v-list-item__overlay) {\n --v-hover-opacity: 0;\n}\n/* Disable hand cursor on items, since we disable the default click action. */\n:deep(.v-list-item--link) {\n cursor: default;\n}\n</style>\n"],"names":["opened","_useModel","__props","activated","activatedNodes","ref","watch","resetActivated","updateActivated","newActivatedNode","_createBlock","_unref","VTreeview","_cache","$event","_withCtx","item","_createElementVNode","_toDisplayString","_hoisted_1"],"mappings":";;;;;;;;;;;;;;;;;;AA0BA,UAAMA,IAASC,EAAWC,GAAC,QAA8C,GACnEC,IAAYF,KAAgC,WAAW,GAEvDG,IAAqCC,EAAI,EAAE;AAEjD,IAAAC,EAAMH,GAAWI,GAAgB,EAAE,WAAW,IAAM;AAEpD,aAASA,IAAiB;AAGxB,MAAAH,EAAe,QAAQD,EAAU,QAAQ,CAACA,EAAU,KAAK,IAAI,CAAA;AAAA,IAC/D;AAEA,aAASK,EAAgBC,GAAuC;AAC9D,MAAIA,EAAiB,gBACnBN,EAAU,QAAQM,EAAiB;AAAA,IAEvC;2BAIEC,EAcaC,EAAAC,CAAA,GAAA;AAAA,MAbX,SAAQ;AAAA,MACP,WAAWR,EAAA;AAAA,MACX,OAAOF,EAAA,eAAY,CAAIA,UAAQ,IAAIA,EAAA,SAAS;AAAA,MAC7C,aAAA;AAAA,MACA,mBAAgB;AAAA,MAChB,cAAW;AAAA,MACV,QAAQF,EAAA;AAAA,MACR,mBAAaa,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAGC,MAAYd,EAAA,QAASc;AAAA,MACrC,sBAAkBP;AAAA,IAAA;MAER,OAAKQ,EACd,CAAuE,EADrD,MAAAC,QAAI;AAAA,QACtBC,EAAuE,KAAA;AAAA,UAAnE,MAAMD,EAAK;AAAA,UAAM,SAAK,CAAAF,MAAEN,EAAgBQ,CAAI;AAAA,QAAA,GAAME,EAAAF,EAAK,KAAK,GAAA,GAAAG,CAAA;AAAA,MAAA;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xwiki/cristal-dsvuetify",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "license": "LGPL 2.1",
5
5
  "author": "XWiki Org Community <contact@xwiki.org>",
6
6
  "homepage": "https://cristal.xwiki.org/",
@@ -28,15 +28,15 @@
28
28
  "main": "./dist/index.es.js",
29
29
  "types": "./dist/index.d.ts",
30
30
  "dependencies": {
31
- "vue-i18n": "11.1.12",
32
- "vuetify": "3.10.8",
33
- "@xwiki/cristal-api": "0.24.0",
34
- "@xwiki/cristal-document-api": "0.24.0",
35
- "@xwiki/cristal-fn-utils": "0.24.0",
36
- "@xwiki/cristal-hierarchy-api": "0.24.0",
37
- "@xwiki/cristal-model-reference-api": "0.24.0",
38
- "@xwiki/cristal-model-api": "0.24.0",
39
- "@xwiki/cristal-navigation-tree-api": "0.24.0"
31
+ "@xwiki/platform-api": "18.0.0-1766398944",
32
+ "@xwiki/platform-document-api": "18.0.0-1766398944",
33
+ "@xwiki/platform-fn-utils": "18.0.0-1766398944",
34
+ "@xwiki/platform-model-api": "18.0.0-1766398944",
35
+ "@xwiki/platform-model-reference-api": "18.0.0-1766398944",
36
+ "@xwiki/platform-navigation-tree-api": "18.0.0-1766398944",
37
+ "vue-i18n": "11.2.2",
38
+ "vuetify": "3.11.3",
39
+ "@xwiki/cristal-hierarchy-api": "0.25.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "inversify": "7.x",
@@ -45,14 +45,14 @@
45
45
  },
46
46
  "devDependencies": {
47
47
  "@vue/test-utils": "2.4.6",
48
- "inversify": "7.10.4",
48
+ "@xwiki/platform-dsapi": "18.0.0-1766398944",
49
+ "inversify": "7.10.6",
49
50
  "reflect-metadata": "0.2.2",
50
51
  "typescript": "5.9.3",
51
- "vite": "7.1.12",
52
- "vue": "3.5.22",
53
- "vue-tsc": "3.1.3",
54
- "@xwiki/cristal-dev-config": "0.24.0",
55
- "@xwiki/cristal-dsapi": "0.24.0"
52
+ "vite": "7.2.7",
53
+ "vue": "3.5.25",
54
+ "vue-tsc": "3.1.8",
55
+ "@xwiki/cristal-dev-config": "0.25.0"
56
56
  },
57
57
  "scripts": {
58
58
  "api-extractor:local": "api-extractor run --local",
@@ -19,7 +19,7 @@
19
19
  */
20
20
 
21
21
  import { VuetifyDesignSystemLoader } from "./vuetifyDesignSystemLoader";
22
- import type { DesignSystemLoader } from "@xwiki/cristal-api";
22
+ import type { DesignSystemLoader } from "@xwiki/platform-api";
23
23
  import type { Container } from "inversify";
24
24
 
25
25
  /**
@@ -18,7 +18,7 @@
18
18
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
19
  */
20
20
 
21
- import { registerAsyncComponent } from "@xwiki/cristal-api";
21
+ import { registerAsyncComponent } from "@xwiki/platform-api";
22
22
  import { injectable } from "inversify";
23
23
  import { createVuetify } from "vuetify";
24
24
  import * as components from "vuetify/components";
@@ -27,7 +27,7 @@ import { VCol, VContainer, VRow } from "vuetify/components";
27
27
  import * as directives from "vuetify/directives";
28
28
  import { aliases, mdi } from "vuetify/iconsets/mdi-svg";
29
29
  import { blue, blueGrey } from "vuetify/util/colors";
30
- import type { DesignSystemLoader } from "@xwiki/cristal-api";
30
+ import type { DesignSystemLoader } from "@xwiki/platform-api";
31
31
  import type { App } from "vue";
32
32
 
33
33
  @injectable()
@@ -19,7 +19,7 @@
19
19
  -->
20
20
  <script lang="ts" setup>
21
21
  import { VCheckbox } from "vuetify/components/VCheckbox";
22
- import type { CheckboxProps } from "@xwiki/cristal-dsapi";
22
+ import type { CheckboxProps } from "@xwiki/platform-dsapi";
23
23
 
24
24
  defineProps<CheckboxProps>();
25
25
 
@@ -19,10 +19,10 @@
19
19
  -->
20
20
  <script setup lang="ts">
21
21
  import messages from "../../translations";
22
- import { computed, defineModel } from "vue";
22
+ import { computed } from "vue";
23
23
  import { useI18n } from "vue-i18n";
24
24
  import { VFileInput } from "vuetify/components/VFileInput";
25
- import type { FileInputModel, TextFieldProps } from "@xwiki/cristal-dsapi";
25
+ import type { FileInputModel, TextFieldProps } from "@xwiki/platform-dsapi";
26
26
 
27
27
  const { t } = useI18n({
28
28
  messages,
@@ -20,24 +20,24 @@
20
20
  <script setup lang="ts">
21
21
  import messages from "../../translations";
22
22
  import XBreadcrumb from "../x-breadcrumb.vue";
23
- import { navigationTreeSelectPropsDefaults } from "@xwiki/cristal-dsapi";
24
- import { EntityType, SpaceReference } from "@xwiki/cristal-model-api";
23
+ import { navigationTreeSelectPropsDefaults } from "@xwiki/platform-dsapi";
24
+ import { EntityType, SpaceReference } from "@xwiki/platform-model-api";
25
25
  import { inject, onMounted, ref } from "vue";
26
26
  import { useI18n } from "vue-i18n";
27
27
  import { VTextField } from "vuetify/components/VTextField";
28
- import type { CristalApp } from "@xwiki/cristal-api";
29
- import type { NavigationTreeSelectProps } from "@xwiki/cristal-dsapi";
30
28
  import type {
31
29
  PageHierarchyItem,
32
30
  PageHierarchyResolver,
33
31
  PageHierarchyResolverProvider,
34
32
  } from "@xwiki/cristal-hierarchy-api";
35
- import type { DocumentReference } from "@xwiki/cristal-model-api";
33
+ import type { CristalApp } from "@xwiki/platform-api";
34
+ import type { NavigationTreeSelectProps } from "@xwiki/platform-dsapi";
35
+ import type { DocumentReference } from "@xwiki/platform-model-api";
36
36
  import type {
37
37
  ModelReferenceHandler,
38
38
  ModelReferenceHandlerProvider,
39
- } from "@xwiki/cristal-model-reference-api";
40
- import type { NavigationTreeNode } from "@xwiki/cristal-navigation-tree-api";
39
+ } from "@xwiki/platform-model-reference-api";
40
+ import type { NavigationTreeNode } from "@xwiki/platform-navigation-tree-api";
41
41
  import type { Ref } from "vue";
42
42
 
43
43
  const cristal: CristalApp = inject<CristalApp>("cristal")!;
@@ -22,7 +22,7 @@ import messages from "../../translations";
22
22
  import { computed } from "vue";
23
23
  import { useI18n } from "vue-i18n";
24
24
  import { VSelect } from "vuetify/components/VSelect";
25
- import type { SelectProps } from "@xwiki/cristal-dsapi";
25
+ import type { SelectProps } from "@xwiki/platform-dsapi";
26
26
 
27
27
  const props = defineProps<SelectProps>();
28
28
  const selected = defineModel<string>();
@@ -22,7 +22,7 @@ import messages from "../../translations";
22
22
  import { computed } from "vue";
23
23
  import { useI18n } from "vue-i18n";
24
24
  import { VTextField } from "vuetify/components/VTextField";
25
- import type { TextFieldProps } from "@xwiki/cristal-dsapi";
25
+ import type { TextFieldProps } from "@xwiki/platform-dsapi";
26
26
 
27
27
  const { t } = useI18n({
28
28
  messages,
@@ -18,7 +18,7 @@
18
18
  02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
19
  -->
20
20
  <script setup lang="ts">
21
- import type { AlertProps } from "@xwiki/cristal-dsapi";
21
+ import type { AlertProps } from "@xwiki/platform-dsapi";
22
22
 
23
23
  defineProps<AlertProps>();
24
24
  </script>
@@ -18,7 +18,7 @@
18
18
  02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
19
  -->
20
20
  <script lang="ts" setup>
21
- import type { AvatarProps } from "@xwiki/cristal-dsapi";
21
+ import type { AvatarProps } from "@xwiki/platform-dsapi";
22
22
 
23
23
  defineProps<AvatarProps>();
24
24
  </script>
@@ -19,7 +19,7 @@
19
19
  -->
20
20
  <script setup lang="ts">
21
21
  import { computed } from "vue";
22
- import type { BreadcrumbProps } from "@xwiki/cristal-dsapi";
22
+ import type { BreadcrumbProps } from "@xwiki/platform-dsapi";
23
23
 
24
24
  const props = defineProps<BreadcrumbProps>();
25
25
  // Converts props items to the format expected by v-breadcrumbs
package/src/vue/x-btn.vue CHANGED
@@ -19,7 +19,7 @@
19
19
  -->
20
20
  <script lang="ts" setup>
21
21
  import { computed } from "vue";
22
- import type { BtnProps } from "@xwiki/cristal-dsapi";
22
+ import type { BtnProps } from "@xwiki/platform-dsapi";
23
23
 
24
24
  const { variant } = defineProps<BtnProps>();
25
25
 
@@ -18,7 +18,7 @@
18
18
  02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
19
  -->
20
20
  <script lang="ts" setup>
21
- import type { MenuItemProps } from "@xwiki/cristal-dsapi";
21
+ import type { MenuItemProps } from "@xwiki/platform-dsapi";
22
22
 
23
23
  defineProps<MenuItemProps>();
24
24
  </script>
@@ -29,18 +29,18 @@
29
29
  * item was disabled. Default hover effects, such as darkening or changing
30
30
  * the cursor on items, were also disabled.
31
31
  */
32
- import { navigationTreePropsDefaults } from "@xwiki/cristal-dsapi";
33
- import { SpaceReference } from "@xwiki/cristal-model-api";
32
+ import { navigationTreePropsDefaults } from "@xwiki/platform-dsapi";
33
+ import { SpaceReference } from "@xwiki/platform-model-api";
34
34
  import { inject, onBeforeMount, ref, watch } from "vue";
35
35
  import { VTreeview } from "vuetify/components/VTreeview";
36
- import type { CristalApp } from "@xwiki/cristal-api";
37
- import type { DocumentService } from "@xwiki/cristal-document-api";
38
- import type { NavigationTreeProps } from "@xwiki/cristal-dsapi";
39
- import type { DocumentReference } from "@xwiki/cristal-model-api";
36
+ import type { CristalApp } from "@xwiki/platform-api";
37
+ import type { DocumentService } from "@xwiki/platform-document-api";
38
+ import type { NavigationTreeProps } from "@xwiki/platform-dsapi";
39
+ import type { DocumentReference } from "@xwiki/platform-model-api";
40
40
  import type {
41
41
  NavigationTreeSource,
42
42
  NavigationTreeSourceProvider,
43
- } from "@xwiki/cristal-navigation-tree-api";
43
+ } from "@xwiki/platform-navigation-tree-api";
44
44
  import type { Ref } from "vue";
45
45
 
46
46
  type TreeItem = {
@@ -18,7 +18,7 @@
18
18
  02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
19
  -->
20
20
  <script setup lang="ts">
21
- import type { TabPanelProps } from "@xwiki/cristal-dsapi";
21
+ import type { TabPanelProps } from "@xwiki/platform-dsapi";
22
22
 
23
23
  defineProps<TabPanelProps>();
24
24
  </script>
package/src/vue/x-tab.vue CHANGED
@@ -18,7 +18,7 @@
18
18
  02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
19
  -->
20
20
  <script setup lang="ts">
21
- import type { TabProps } from "@xwiki/cristal-dsapi";
21
+ import type { TabProps } from "@xwiki/platform-dsapi";
22
22
 
23
23
  defineProps<TabProps>();
24
24
  </script>
@@ -20,7 +20,7 @@
20
20
  <script setup lang="ts">
21
21
  import { ref, watch } from "vue";
22
22
  import { VTreeview } from "vuetify/components/VTreeview";
23
- import type { DisplayableTreeNode, TreeProps } from "@xwiki/cristal-dsapi";
23
+ import type { DisplayableTreeNode, TreeProps } from "@xwiki/platform-dsapi";
24
24
  import type { Ref } from "vue";
25
25
 
26
26
  defineProps<TreeProps>();