@xwiki/cristal-dsvuetify 0.23.1 → 0.24.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 (32) hide show
  1. package/CHANGELOG.md +0 -14
  2. package/dist/{index-DuymNdmD.js → index-CuRY2kJg.js} +7357 -7235
  3. package/dist/index-CuRY2kJg.js.map +1 -0
  4. package/dist/index.es.js +4 -4
  5. package/dist/index.umd.js +9 -9
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/vue/x-tree.vue.d.ts +2 -1
  8. package/dist/x-alert-YX1txXZY.js +48 -0
  9. package/dist/x-alert-YX1txXZY.js.map +1 -0
  10. package/dist/{x-checkbox-DPBHV522.js → x-checkbox-DoxVAidm.js} +2 -2
  11. package/dist/{x-checkbox-DPBHV522.js.map → x-checkbox-DoxVAidm.js.map} +1 -1
  12. package/dist/{x-file-input-BF8IdlrX.js → x-file-input-B50TiQaF.js} +2 -2
  13. package/dist/{x-file-input-BF8IdlrX.js.map → x-file-input-B50TiQaF.js.map} +1 -1
  14. package/dist/{x-form-7_KNhAtf.js → x-form-CMwcPIyL.js} +2 -2
  15. package/dist/{x-form-7_KNhAtf.js.map → x-form-CMwcPIyL.js.map} +1 -1
  16. package/dist/{x-navigation-tree-B5pIL2rS.js → x-navigation-tree-CSpekTTC.js} +2 -2
  17. package/dist/{x-navigation-tree-B5pIL2rS.js.map → x-navigation-tree-CSpekTTC.js.map} +1 -1
  18. package/dist/{x-navigation-tree-select-BHnoY91T.js → x-navigation-tree-select-DgyGTYDy.js} +2 -2
  19. package/dist/{x-navigation-tree-select-BHnoY91T.js.map → x-navigation-tree-select-DgyGTYDy.js.map} +1 -1
  20. package/dist/{x-select-mVjAXRju.js → x-select-D2T4qd71.js} +2 -2
  21. package/dist/{x-select-mVjAXRju.js.map → x-select-D2T4qd71.js.map} +1 -1
  22. package/dist/{x-text-field-DTZ5xunG.js → x-text-field-DoGMe9Qc.js} +2 -2
  23. package/dist/{x-text-field-DTZ5xunG.js.map → x-text-field-DoGMe9Qc.js.map} +1 -1
  24. package/dist/{x-tree-iloM7Rw9.js → x-tree-DFzX3ffS.js} +14 -14
  25. package/dist/x-tree-DFzX3ffS.js.map +1 -0
  26. package/package.json +14 -14
  27. package/src/vue/x-alert.vue +12 -3
  28. package/src/vue/x-tree.vue +4 -3
  29. package/dist/index-DuymNdmD.js.map +0 -1
  30. package/dist/x-alert-CWUIStcc.js +0 -46
  31. package/dist/x-alert-CWUIStcc.js.map +0 -1
  32. package/dist/x-tree-iloM7Rw9.js.map +0 -1
@@ -1,46 +0,0 @@
1
- import { defineComponent as u, resolveComponent as n, createBlock as a, openBlock as t, withCtx as c, createElementBlock as o, createCommentVNode as r, renderSlot as x, Fragment as f, renderList as b, createTextVNode as k, toDisplayString as s } from "vue";
2
- import { _ as y } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- const _ = { key: 0 }, p = { key: 1 }, v = /* @__PURE__ */ u({
4
- __name: "x-alert",
5
- props: {
6
- title: {},
7
- type: {},
8
- description: {},
9
- actions: {},
10
- closable: { type: Boolean },
11
- details: {}
12
- },
13
- setup(e) {
14
- return (i, C) => {
15
- const d = n("x-btn"), m = n("v-alert");
16
- return t(), a(m, {
17
- closable: e.closable,
18
- title: e.title,
19
- type: e.type,
20
- text: e.description
21
- }, {
22
- default: c(() => [
23
- (t(!0), o(f, null, b(e.actions, (l) => (t(), a(d, {
24
- key: l.name,
25
- size: "small",
26
- variant: "text",
27
- onClick: l.callback
28
- }, {
29
- default: c(() => [
30
- k(s(l.name), 1)
31
- ]),
32
- _: 2
33
- }, 1032, ["onClick"]))), 128)),
34
- e.details ? (t(), o("br", _)) : r("", !0),
35
- e.details ? (t(), o("small", p, s(e.details), 1)) : r("", !0),
36
- x(i.$slots, "default", {}, void 0, !0)
37
- ]),
38
- _: 3
39
- }, 8, ["closable", "title", "type", "text"]);
40
- };
41
- }
42
- }), g = /* @__PURE__ */ y(v, [["__scopeId", "data-v-3b5794fd"]]);
43
- export {
44
- g as default
45
- };
46
- //# sourceMappingURL=x-alert-CWUIStcc.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"x-alert-CWUIStcc.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 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 { AlertProps } from \"@xwiki/cristal-dsapi\";\n\ndefineProps<AlertProps>();\n</script>\n<template>\n <v-alert :closable=\"closable\" :title=\"title\" :type=\"type\" :text=\"description\">\n <x-btn\n v-for=\"action of actions\"\n :key=\"action.name\"\n size=\"small\"\n variant=\"text\"\n @click=\"action.callback\"\n >{{ action.name }}</x-btn\n >\n <br v-if=\"details\" />\n <small v-if=\"details\">{{ details }}</small>\n <slot />\n </v-alert>\n</template>\n\n<style scoped>\n:deep(.v-alert__content a.router-link-active),\n:deep(.v-alert__content a.router-link-active:visited) {\n color: inherit;\n text-decoration-color: inherit;\n}\n</style>\n"],"names":["_createBlock","_component_v_alert","__props","_createElementBlock","_Fragment","_renderList","action","_component_x_btn","_createTextVNode","_toDisplayString","_hoisted_1","_openBlock","_renderSlot","_ctx"],"mappings":";;;;;;;;;;;;;;;kBAyBEA,EAYUC,GAAA;AAAA,QAZA,UAAUC,EAAA;AAAA,QAAW,OAAOA,EAAA;AAAA,QAAQ,MAAMA,EAAA;AAAA,QAAO,MAAMA,EAAA;AAAA,MAAA;mBAE7D,MAAyB;AAAA,kBAD3BC,EAOCC,GAAA,MAAAC,EANkBH,EAAA,SAAO,CAAjBI,YADTN,EAOCO,GAAA;AAAA,YALE,KAAKD,EAAO;AAAA,YACb,MAAK;AAAA,YACL,SAAQ;AAAA,YACP,SAAOA,EAAO;AAAA,UAAA;uBACd,MAAiB;AAAA,cAAdE,EAAAC,EAAAH,EAAO,IAAI,GAAA,CAAA;AAAA,YAAA;;;UAEPJ,EAAA,gBAAVC,EAAqB,MAAAO,CAAA;UACRR,EAAA,WAAbS,EAAA,GAAAR,EAA2C,cAAlBD,EAAA,OAAO,GAAA,CAAA;UAChCU,EAAQC,EAAA,QAAA,WAAA,CAAA,GAAA,QAAA,EAAA;AAAA,QAAA;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"x-tree-iloM7Rw9.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/cristal-dsapi\";\nimport type { Ref } from \"vue\";\n\ndefineProps<TreeProps>();\nconst opened = defineModel<string[]>(\"opened\", { default: [] });\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 v-model:opened=\"opened\"\n @update:activated=\"resetActivated\"\n >\n <template #title=\"{ item }: { item: DisplayableTreeNode }\">\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","$event","_withCtx","item","_createElementVNode","_toDisplayString","_hoisted_1"],"mappings":";;;;;;;;;;;;;;;;;;AA0BA,UAAMA,IAASC,EAAqBC,GAAC,QAAyB,GACxDC,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,EAaaC,EAAAC,CAAA,GAAA;AAAA,MAZX,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,MACH,QAAQF,EAAA;AAAA,gDAAAA,EAAM,QAAAa;AAAA,MACrB,sBAAkBN;AAAA,IAAA;MAER,OAAKO,EACd,CAAuE,EADrD,MAAAC,QAAI;AAAA,QACtBC,EAAuE,KAAA;AAAA,UAAnE,MAAMD,EAAK;AAAA,UAAM,SAAK,CAAAF,MAAEL,EAAgBO,CAAI;AAAA,QAAA,GAAME,EAAAF,EAAK,KAAK,GAAA,GAAAG,CAAA;AAAA,MAAA;;;;;"}