@xwiki/cristal-dsvuetify 0.8.0 → 0.9.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.
- package/CHANGELOG.md +12 -0
- package/dist/index-CkW0K4NP.js +20803 -0
- package/dist/index-CkW0K4NP.js.map +1 -0
- package/dist/index.es.js +8 -20955
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +13 -25
- package/dist/index.umd.js.map +1 -1
- package/dist/translations-CFfpgNrx.js +10 -0
- package/dist/translations-CFfpgNrx.js.map +1 -0
- package/dist/translations.d.ts +2 -0
- package/dist/vue/form/x-file-input.vue.d.ts +32 -0
- package/dist/vue/form/x-form.vue.d.ts +15 -0
- package/dist/vue/form/x-text-field.vue.d.ts +13 -0
- package/dist/vue/x-alert.vue.d.ts +3 -2
- package/dist/vue/x-btn.vue.d.ts +4 -2
- package/dist/vue/x-dialog.vue.d.ts +7 -5
- package/dist/vue/x-menu-item.vue.d.ts +6 -4
- package/dist/vue/x-menu.vue.d.ts +7 -5
- package/dist/vue/x-tab-group.vue.d.ts +16 -0
- package/dist/vue/x-tab-panel.vue.d.ts +22 -0
- package/dist/vue/x-tab.vue.d.ts +22 -0
- package/dist/x-alert-Cm6mzRpR.js.map +1 -1
- package/dist/x-avatar-But_Z7ic.js.map +1 -1
- package/dist/x-breadcrumb-DBZVExfF.js +21 -0
- package/dist/x-breadcrumb-DBZVExfF.js.map +1 -0
- package/dist/x-btn-DsACLwMY.js.map +1 -1
- package/dist/x-card-CRM9KUby.js.map +1 -1
- package/dist/x-divider-7cmRuxTV.js.map +1 -1
- package/dist/x-file-input-COSLRt5u.js +35 -0
- package/dist/x-file-input-COSLRt5u.js.map +1 -0
- package/dist/x-form-B5rljfJA.js +32 -0
- package/dist/x-form-B5rljfJA.js.map +1 -0
- package/dist/x-img-BYgs_O1F.js.map +1 -1
- package/dist/{x-load-CDyapJH_.js → x-load-DipiCmNY.js} +1 -1
- package/dist/x-load-DipiCmNY.js.map +1 -0
- package/dist/x-search-C4yZLrSp.js.map +1 -1
- package/dist/x-tab-OWsxC4de.js +22 -0
- package/dist/x-tab-OWsxC4de.js.map +1 -0
- package/dist/x-tab-group-DTR-H8Sn.js +49 -0
- package/dist/x-tab-group-DTR-H8Sn.js.map +1 -0
- package/dist/x-tab-panel-YsSPuuLL.js +22 -0
- package/dist/x-tab-panel-YsSPuuLL.js.map +1 -0
- package/dist/x-text-field-Ccv2SH00.js +29 -0
- package/dist/x-text-field-Ccv2SH00.js.map +1 -0
- package/langs/translation-en.json +4 -0
- package/package.json +8 -9
- package/src/components/componentsInit.ts +4 -9
- package/src/components/vuetifyDesignSystemLoader.ts +30 -9
- package/src/index.ts +4 -9
- package/src/translations.ts +26 -0
- package/src/vue/css/style.css +28 -10
- package/src/vue/form/x-file-input.vue +40 -0
- package/src/vue/form/x-form.vue +17 -0
- package/src/vue/form/x-text-field.vue +32 -0
- package/src/vue/x-alert.vue +17 -23
- package/src/vue/x-avatar.vue +17 -23
- package/src/vue/x-breadcrumb.vue +28 -24
- package/src/vue/x-btn.vue +17 -23
- package/src/vue/x-card.vue +17 -23
- package/src/vue/x-dialog.vue +17 -23
- package/src/vue/x-divider.vue +17 -23
- package/src/vue/x-img.vue +17 -23
- package/src/vue/x-load.vue +17 -23
- package/src/vue/x-menu-item.vue +17 -23
- package/src/vue/x-menu.vue +17 -23
- package/src/vue/x-search.vue +17 -23
- package/src/vue/x-tab-group.vue +44 -0
- package/src/vue/x-tab-panel.vue +30 -0
- package/src/vue/x-tab.vue +30 -0
- package/src/vue.d.ts +4 -9
- package/tsconfig.json +1 -0
- package/vite.config.ts +4 -9
- package/dist/style.css +0 -5
- package/dist/x-breadcrumb-DKUFjeVQ.js +0 -17
- package/dist/x-breadcrumb-DKUFjeVQ.js.map +0 -1
- package/dist/x-load-CDyapJH_.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translations-CFfpgNrx.js","sources":["../src/translations.ts"],"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\nimport en from \"../langs/translation-en.json\";\n\nconst translations: Record<string, Record<string, string>> = {\n en,\n};\nexport default translations;\n"],"names":["translations","en","messages"],"mappings":";;;GAsBMA,IAAuD;AAAA,EAC3D,IAAAC;AACF,GACAC,IAAeF;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { TextFieldModel } from '@xwiki/cristal-dsapi';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<{
|
|
4
|
+
modelValue: import('vue').PropType<TextFieldModel>;
|
|
5
|
+
name: {
|
|
6
|
+
type: import('vue').PropType<string>;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
label: {
|
|
10
|
+
type: import('vue').PropType<string>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
required: {
|
|
14
|
+
type: import('vue').PropType<boolean>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
18
|
+
modelValue: import('vue').PropType<TextFieldModel>;
|
|
19
|
+
name: {
|
|
20
|
+
type: import('vue').PropType<string>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
label: {
|
|
24
|
+
type: import('vue').PropType<string>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
required: {
|
|
28
|
+
type: import('vue').PropType<boolean>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
}>>, {}, {}>;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
formSubmit: (...args: any[]) => void;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>> & {
|
|
7
|
+
onFormSubmit?: ((...args: any[]) => any) | undefined;
|
|
8
|
+
}, {}, {}>;
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TextFieldProps } from '@xwiki/cristal-dsapi';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<TextFieldProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TextFieldProps>>>, {}, {}>;
|
|
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
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { VAlert } from 'vuetify/lib/components/VAlert/index.mjs';
|
|
2
3
|
|
|
3
4
|
declare const _default: import('vue').DefineComponent<{
|
|
4
5
|
title: {
|
|
@@ -6,7 +7,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
6
7
|
required: true;
|
|
7
8
|
};
|
|
8
9
|
type: {
|
|
9
|
-
type: PropType<"
|
|
10
|
+
type: PropType<VAlert["type"] | undefined>;
|
|
10
11
|
required: true;
|
|
11
12
|
};
|
|
12
13
|
}, unknown, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -15,7 +16,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
15
16
|
required: true;
|
|
16
17
|
};
|
|
17
18
|
type: {
|
|
18
|
-
type: PropType<"
|
|
19
|
+
type: PropType<VAlert["type"] | undefined>;
|
|
19
20
|
required: true;
|
|
20
21
|
};
|
|
21
22
|
}>>, {}, {}>;
|
package/dist/vue/x-btn.vue.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
2
|
default?(_: {}): any;
|
|
3
|
-
}
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
4
6
|
export default _default;
|
|
5
7
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
6
8
|
new (): {
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
activator?(_: {}): any;
|
|
3
|
+
default?(_: {}): any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
6
|
title: string;
|
|
3
7
|
width: string | number | undefined;
|
|
4
8
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
9
|
title: string;
|
|
6
10
|
width: string | number | undefined;
|
|
7
|
-
}>>>, {}, {}
|
|
8
|
-
|
|
9
|
-
default?(_: {}): any;
|
|
10
|
-
}>;
|
|
11
|
+
}>>>, {}, {}>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
11
13
|
export default _default;
|
|
12
14
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
15
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
5
|
title: string;
|
|
3
6
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
7
|
title: string;
|
|
5
|
-
}>>>, {}, {}
|
|
6
|
-
|
|
7
|
-
}>;
|
|
8
|
+
}>>>, {}, {}>;
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
8
10
|
export default _default;
|
|
9
11
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
12
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
package/dist/vue/x-menu.vue.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
activator?(_: {}): any;
|
|
3
|
+
default?(_: {}): any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
6
|
title: string;
|
|
3
7
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
8
|
title: string;
|
|
5
|
-
}>>>, {}, {}
|
|
6
|
-
|
|
7
|
-
default?(_: {}): any;
|
|
8
|
-
}>;
|
|
9
|
+
}>>>, {}, {}>;
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
9
11
|
export default _default;
|
|
10
12
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
13
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
tabs?(_: {}): any;
|
|
3
|
+
panels?(_: {}): any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
change: (...args: any[]) => void;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>> & {
|
|
8
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
}, {}, {}>;
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { TabPanelProps } from '@xwiki/cristal-dsapi';
|
|
2
|
+
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<TabPanelProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TabPanelProps>>>, {}, {}>;
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
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,22 @@
|
|
|
1
|
+
import { TabProps } from '@xwiki/cristal-dsapi';
|
|
2
|
+
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<TabProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TabProps>>>, {}, {}>;
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
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
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-alert-Cm6mzRpR.js","sources":["../src/vue/x-alert.vue"],"sourcesContent":["<!--\
|
|
1
|
+
{"version":3,"file":"x-alert-Cm6mzRpR.js","sources":["../src/vue/x-alert.vue"],"sourcesContent":["<!--\nSee the LICENSE file distributed with this work for additional\ninformation regarding copyright ownership.\n\nThis is free software; you can redistribute it and/or modify it\nunder the terms of the GNU Lesser General Public License as\npublished by the Free Software Foundation; either version 2.1 of\nthe License, or (at your option) any later version.\n\nThis software is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this software; if not, write to the Free\nSoftware Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n02110-1301 USA, or see the FSF site: http://www.fsf.org.\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":";;AA4BA,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,IApBrC,MAAAA,EAAA;AAAA,EAAA,GAAA;AAAA;MAAAC,EAAAC,EAAA,QAAA,SAAA;AAAA,IAAA,CAAA;AAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-avatar-But_Z7ic.js","sources":["../src/vue/x-avatar.vue"],"sourcesContent":["<!--\
|
|
1
|
+
{"version":3,"file":"x-avatar-But_Z7ic.js","sources":["../src/vue/x-avatar.vue"],"sourcesContent":["<!--\nSee the LICENSE file distributed with this work for additional\ninformation regarding copyright ownership.\n\nThis is free software; you can redistribute it and/or modify it\nunder the terms of the GNU Lesser General Public License as\npublished by the Free Software Foundation; either version 2.1 of\nthe License, or (at your option) any later version.\n\nThis software is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this software; if not, write to the Free\nSoftware Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n02110-1301 USA, or see the FSF site: http://www.fsf.org.\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":";;AAuBA,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,21 @@
|
|
|
1
|
+
import { defineComponent as s, computed as c, resolveComponent as p, openBlock as u, createBlock as a } from "vue";
|
|
2
|
+
const _ = /* @__PURE__ */ s({
|
|
3
|
+
__name: "x-breadcrumb",
|
|
4
|
+
props: {
|
|
5
|
+
items: {}
|
|
6
|
+
},
|
|
7
|
+
setup(r) {
|
|
8
|
+
const o = r, n = c(() => o.items.map(({ label: e, url: t }) => ({
|
|
9
|
+
title: e,
|
|
10
|
+
href: t
|
|
11
|
+
})));
|
|
12
|
+
return (e, t) => {
|
|
13
|
+
const m = p("v-breadcrumbs");
|
|
14
|
+
return u(), a(m, { items: n.value }, null, 8, ["items"]);
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
export {
|
|
19
|
+
_ as default
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=x-breadcrumb-DBZVExfF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-breadcrumb-DBZVExfF.js","sources":["../src/vue/x-breadcrumb.vue"],"sourcesContent":["<!--\nSee the LICENSE file distributed with this work for additional\ninformation regarding copyright ownership.\n\nThis is free software; you can redistribute it and/or modify it\nunder the terms of the GNU Lesser General Public License as\npublished by the Free Software Foundation; either version 2.1 of\nthe License, or (at your option) any later version.\n\nThis software is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this software; if not, write to the Free\nSoftware Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script setup lang=\"ts\">\nimport { BreadcrumbProps } from \"@xwiki/cristal-dsapi\";\nimport { computed } from \"vue\";\n\nconst props = defineProps<BreadcrumbProps>();\n// Converts props items to the format expected by v-breadcrumbs\nconst items = computed(() => {\n return props.items.map(({ label, url }) => {\n return {\n title: label,\n href: url,\n };\n });\n});\n</script>\n\n<template>\n <v-breadcrumbs :items=\"items\"></v-breadcrumbs>\n</template>\n\n<style scoped></style>\n"],"names":["props","__props","items","computed","label","url"],"mappings":";;;;;;;AAuBA,UAAMA,IAAQC,GAERC,IAAQC,EAAS,MACdH,EAAM,MAAM,IAAI,CAAC,EAAE,OAAAI,GAAO,KAAAC,SACxB;AAAA,MACL,OAAOD;AAAA,MACP,MAAMC;AAAA,IAAA,EAET,CACF;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-btn-DsACLwMY.js","sources":["../src/vue/x-btn.vue"],"sourcesContent":["<!--\
|
|
1
|
+
{"version":3,"file":"x-btn-DsACLwMY.js","sources":["../src/vue/x-btn.vue"],"sourcesContent":["<!--\nSee the LICENSE file distributed with this work for additional\ninformation regarding copyright ownership.\n\nThis is free software; you can redistribute it and/or modify it\nunder the terms of the GNU Lesser General Public License as\npublished by the Free Software Foundation; either version 2.1 of\nthe License, or (at your option) any later version.\n\nThis software is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this software; if not, write to the Free\nSoftware Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<template>\n <v-btn>\n <slot />\n </v-btn>\n</template>\n"],"names":["_openBlock","_createBlock","_component_v_btn","_withCtx"],"mappings":";;;;;AAAA,SAAAA,EAqBI,GAAQC,EAAAC,GAAA,MAAA;AAAA,aAAAC,EAAA,MAAA;AAAA;KArBZ;AAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-card-CRM9KUby.js","sources":["../src/vue/x-card.vue"],"sourcesContent":["<!--\
|
|
1
|
+
{"version":3,"file":"x-card-CRM9KUby.js","sources":["../src/vue/x-card.vue"],"sourcesContent":["<!--\nSee the LICENSE file distributed with this work for additional\ninformation regarding copyright ownership.\n\nThis is free software; you can redistribute it and/or modify it\nunder the terms of the GNU Lesser General Public License as\npublished by the Free Software Foundation; either version 2.1 of\nthe License, or (at your option) any later version.\n\nThis software is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this software; if not, write to the Free\nSoftware Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n02110-1301 USA, or see the FSF site: http://www.fsf.org.\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":";;AAyBA,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,IApB3C,SAAA;AAAA,EAAA,GAAA;AAAA;MAAAC,EAAAC,EAAA,QAAA,SAAA;AAAA,IAAA,CAAA;AAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-divider-7cmRuxTV.js","sources":["../src/vue/x-divider.vue"],"sourcesContent":["<!--\
|
|
1
|
+
{"version":3,"file":"x-divider-7cmRuxTV.js","sources":["../src/vue/x-divider.vue"],"sourcesContent":["<!--\nSee the LICENSE file distributed with this work for additional\ninformation regarding copyright ownership.\n\nThis is free software; you can redistribute it and/or modify it\nunder the terms of the GNU Lesser General Public License as\npublished by the Free Software Foundation; either version 2.1 of\nthe License, or (at your option) any later version.\n\nThis software is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this software; if not, write to the Free\nSoftware Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<template>\n <v-divider :thickness=\"2\" class=\"border-opacity-100\" color=\"info\" />\n</template>\n"],"names":["_openBlock","_createBlock","_component_v_divider"],"mappings":";;;;;AAoBc,SAAAA,EAAY,GAAAC,EAAAC,GAAA;AAAA,IAAE,WAA0B;AAAA,IAAC,OAAM;AAAA;;;;"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineComponent as m, mergeModels as s, useModel as i, computed as d, openBlock as p, createBlock as f, unref as c } from "vue";
|
|
2
|
+
import { m as V } from "./translations-CFfpgNrx.js";
|
|
3
|
+
import { useI18n as b } from "vue-i18n";
|
|
4
|
+
import { b as v } from "./index-CkW0K4NP.js";
|
|
5
|
+
const k = /* @__PURE__ */ m({
|
|
6
|
+
__name: "x-file-input",
|
|
7
|
+
props: /* @__PURE__ */ s({
|
|
8
|
+
name: {},
|
|
9
|
+
label: {},
|
|
10
|
+
required: { type: Boolean }
|
|
11
|
+
}, {
|
|
12
|
+
modelValue: {},
|
|
13
|
+
modelModifiers: {}
|
|
14
|
+
}),
|
|
15
|
+
emits: ["update:modelValue"],
|
|
16
|
+
setup(o) {
|
|
17
|
+
const { t: u } = b({
|
|
18
|
+
messages: V
|
|
19
|
+
}), r = i(o, "modelValue"), t = o, n = d(() => {
|
|
20
|
+
const e = [];
|
|
21
|
+
return t.required && e.push((l) => l ? !0 : u("vuetify.file.input.mandatory")), e;
|
|
22
|
+
});
|
|
23
|
+
return (e, l) => (p(), f(c(v), {
|
|
24
|
+
modelValue: r.value,
|
|
25
|
+
"onUpdate:modelValue": l[0] || (l[0] = (a) => r.value = a),
|
|
26
|
+
label: e.label,
|
|
27
|
+
name: e.name,
|
|
28
|
+
rules: n.value
|
|
29
|
+
}, null, 8, ["modelValue", "label", "name", "rules"]));
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
export {
|
|
33
|
+
k as default
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=x-file-input-COSLRt5u.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-file-input-COSLRt5u.js","sources":["../src/vue/form/x-file-input.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { TextFieldModel, TextFieldProps } from \"@xwiki/cristal-dsapi\";\nimport { computed } from \"vue\";\nimport { VFileInput } from \"vuetify/components/VFileInput\";\nimport messages from \"../../translations\";\nimport { useI18n } from \"vue-i18n\";\nimport { defineModel } from \"vue\";\n\nconst { t } = useI18n({\n messages,\n});\n\nconst model = defineModel<TextFieldModel>();\nconst props = defineProps<TextFieldProps>();\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.file.input.mandatory\");\n }\n });\n }\n return rulesList;\n});\n</script>\n\n<template>\n <v-file-input\n v-model=\"model\"\n :label=\"label\"\n :name=\"name\"\n :rules=\"rules\"\n ></v-file-input>\n</template>\n\n<style scoped></style>\n"],"names":["t","useI18n","messages","model","_useModel","__props","props","rules","computed","rulesList","value"],"mappings":";;;;;;;;;;;;;;;;AAQM,UAAA,EAAE,GAAAA,EAAE,IAAIC,EAAQ;AAAA,MACpB,UAAAC;AAAA,IAAA,CACD,GAEKC,IAAQC,EAA2BC,GAAA,YAAC,GACpCC,IAAQD,GAERE,IAAQC,EAAS,MAAM;AAC3B,YAAMC,IAAY,CAAA;AAClB,aAAIH,EAAM,YACEG,EAAA,KAAK,CAACC,MACVA,IACK,KAEAV,EAAE,8BAA8B,CAE1C,GAEIS;AAAA,IAAA,CACR;;;;;;;;;;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineComponent as i, resolveComponent as s, openBlock as c, createBlock as f, unref as u, withModifiers as a, withCtx as e, createVNode as _, renderSlot as l } from "vue";
|
|
2
|
+
import { V as p } from "./index-CkW0K4NP.js";
|
|
3
|
+
const h = /* @__PURE__ */ i({
|
|
4
|
+
__name: "x-form",
|
|
5
|
+
emits: ["formSubmit"],
|
|
6
|
+
setup(d, { emit: t }) {
|
|
7
|
+
const o = t;
|
|
8
|
+
function n() {
|
|
9
|
+
o("formSubmit");
|
|
10
|
+
}
|
|
11
|
+
return (r, b) => {
|
|
12
|
+
const m = s("v-container");
|
|
13
|
+
return c(), f(u(p), {
|
|
14
|
+
onSubmit: a(n, ["prevent"])
|
|
15
|
+
}, {
|
|
16
|
+
default: e(() => [
|
|
17
|
+
_(m, null, {
|
|
18
|
+
default: e(() => [
|
|
19
|
+
l(r.$slots, "default")
|
|
20
|
+
]),
|
|
21
|
+
_: 3
|
|
22
|
+
})
|
|
23
|
+
]),
|
|
24
|
+
_: 3
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export {
|
|
30
|
+
h as default
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=x-form-B5rljfJA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-form-B5rljfJA.js","sources":["../src/vue/form/x-form.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { VForm } from \"vuetify/components/VForm\";\nconst emits = defineEmits([\"formSubmit\"]);\nfunction submit() {\n emits(\"formSubmit\");\n}\n</script>\n\n<template>\n <v-form @submit.prevent=\"submit\">\n <v-container>\n <slot></slot>\n </v-container>\n </v-form>\n</template>\n\n<style scoped></style>\n"],"names":["emits","__emit","submit"],"mappings":";;;;;;AAEA,UAAMA,IAAQC;AACd,aAASC,IAAS;AAChB,MAAAF,EAAM,YAAY;AAAA,IACpB;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-img-BYgs_O1F.js","sources":["../src/vue/x-img.vue"],"sourcesContent":["<!--\
|
|
1
|
+
{"version":3,"file":"x-img-BYgs_O1F.js","sources":["../src/vue/x-img.vue"],"sourcesContent":["<!--\nSee the LICENSE file distributed with this work for additional\ninformation regarding copyright ownership.\n\nThis is free software; you can redistribute it and/or modify it\nunder the terms of the GNU Lesser General Public License as\npublished by the Free Software Foundation; either version 2.1 of\nthe License, or (at your option) any later version.\n\nThis software is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this software; if not, write to the Free\nSoftware Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n02110-1301 USA, or see the FSF site: http://www.fsf.org.\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":";;AAwBA,MAAeA,IAAA;AAAA,EACb,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,UAAU,KAAO;AACjD;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-load-DipiCmNY.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-search-C4yZLrSp.js","sources":["../src/vue/x-search.vue"],"sourcesContent":["<!--\
|
|
1
|
+
{"version":3,"file":"x-search-C4yZLrSp.js","sources":["../src/vue/x-search.vue"],"sourcesContent":["<!--\nSee the LICENSE file distributed with this work for additional\ninformation regarding copyright ownership.\n\nThis is free software; you can redistribute it and/or modify it\nunder the terms of the GNU Lesser General Public License as\npublished by the Free Software Foundation; either version 2.1 of\nthe License, or (at your option) any later version.\n\nThis software is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this software; if not, write to the Free\nSoftware Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n02110-1301 USA, or see the FSF site: http://www.fsf.org.\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":";;;;;AAuBI,SAAAA,EAAqB,GAAAC,EAAAC,GAAA;AAAA,IACrB,SAAA;AAAA,IACA,aAAY;AAAA,IACZ,aAAA;AAAA,IACA,sBAAc;AAAA,IACd,SAAA;AAAA,IACA,qBAAO;AAAA;;;;"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent as o, resolveComponent as a, openBlock as n, createBlock as r, withCtx as p, renderSlot as l } from "vue";
|
|
2
|
+
const u = /* @__PURE__ */ o({
|
|
3
|
+
__name: "x-tab",
|
|
4
|
+
props: {
|
|
5
|
+
tabId: {}
|
|
6
|
+
},
|
|
7
|
+
setup(s) {
|
|
8
|
+
return (e, _) => {
|
|
9
|
+
const t = a("v-tab");
|
|
10
|
+
return n(), r(t, { value: e.tabId }, {
|
|
11
|
+
default: p(() => [
|
|
12
|
+
l(e.$slots, "default")
|
|
13
|
+
]),
|
|
14
|
+
_: 3
|
|
15
|
+
}, 8, ["value"]);
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
u as default
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=x-tab-OWsxC4de.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-tab-OWsxC4de.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineComponent as f, ref as i, resolveComponent as n, openBlock as b, createBlock as V, withCtx as a, createVNode as s, renderSlot as u } from "vue";
|
|
2
|
+
const g = /* @__PURE__ */ f({
|
|
3
|
+
__name: "x-tab-group",
|
|
4
|
+
emits: ["change"],
|
|
5
|
+
setup(w, { emit: d }) {
|
|
6
|
+
const e = i(null), m = d;
|
|
7
|
+
function _(t) {
|
|
8
|
+
m("change", t);
|
|
9
|
+
}
|
|
10
|
+
return (t, o) => {
|
|
11
|
+
const r = n("v-tabs"), c = n("v-tabs-window"), p = n("v-card-text"), v = n("v-card");
|
|
12
|
+
return b(), V(v, { class: "mx-auto" }, {
|
|
13
|
+
default: a(() => [
|
|
14
|
+
s(r, {
|
|
15
|
+
modelValue: e.value,
|
|
16
|
+
"onUpdate:modelValue": [
|
|
17
|
+
o[0] || (o[0] = (l) => e.value = l),
|
|
18
|
+
_
|
|
19
|
+
]
|
|
20
|
+
}, {
|
|
21
|
+
default: a(() => [
|
|
22
|
+
u(t.$slots, "tabs")
|
|
23
|
+
]),
|
|
24
|
+
_: 3
|
|
25
|
+
}, 8, ["modelValue"]),
|
|
26
|
+
s(p, null, {
|
|
27
|
+
default: a(() => [
|
|
28
|
+
s(c, {
|
|
29
|
+
modelValue: e.value,
|
|
30
|
+
"onUpdate:modelValue": o[1] || (o[1] = (l) => e.value = l)
|
|
31
|
+
}, {
|
|
32
|
+
default: a(() => [
|
|
33
|
+
u(t.$slots, "panels")
|
|
34
|
+
]),
|
|
35
|
+
_: 3
|
|
36
|
+
}, 8, ["modelValue"])
|
|
37
|
+
]),
|
|
38
|
+
_: 3
|
|
39
|
+
})
|
|
40
|
+
]),
|
|
41
|
+
_: 3
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
export {
|
|
47
|
+
g as default
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=x-tab-group-DTR-H8Sn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-tab-group-DTR-H8Sn.js","sources":["../src/vue/x-tab-group.vue"],"sourcesContent":["<!--\nSee the LICENSE file distributed with this work for additional\ninformation regarding copyright ownership.\n\nThis is free software; you can redistribute it and/or modify it\nunder the terms of the GNU Lesser General Public License as\npublished by the Free Software Foundation; either version 2.1 of\nthe License, or (at your option) any later version.\n\nThis software is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this software; if not, write to the Free\nSoftware Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script setup lang=\"ts\">\nimport { ref } from \"vue\";\nconst tab = ref(null);\n\nconst emits = defineEmits([\"change\"]);\n\nfunction change(tabId: string) {\n emits(\"change\", tabId);\n}\n</script>\n\n<template>\n <v-card class=\"mx-auto\">\n <v-tabs v-model=\"tab\" @update:model-value=\"change\">\n <slot name=\"tabs\"></slot>\n </v-tabs>\n <v-card-text>\n <v-tabs-window v-model=\"tab\">\n <slot name=\"panels\"></slot>\n </v-tabs-window>\n </v-card-text>\n </v-card>\n</template>\n\n<style scoped></style>\n"],"names":["tab","ref","emits","__emit","change","tabId"],"mappings":";;;;;AAqBM,UAAAA,IAAMC,EAAI,IAAI,GAEdC,IAAQC;AAEd,aAASC,EAAOC,GAAe;AAC7B,MAAAH,EAAM,UAAUG,CAAK;AAAA,IACvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent as o, resolveComponent as n, openBlock as a, createBlock as r, withCtx as p, renderSlot as s } from "vue";
|
|
2
|
+
const m = /* @__PURE__ */ o({
|
|
3
|
+
__name: "x-tab-panel",
|
|
4
|
+
props: {
|
|
5
|
+
tabId: {}
|
|
6
|
+
},
|
|
7
|
+
setup(_) {
|
|
8
|
+
return (e, l) => {
|
|
9
|
+
const t = n("v-tabs-window-item");
|
|
10
|
+
return a(), r(t, { value: e.tabId }, {
|
|
11
|
+
default: p(() => [
|
|
12
|
+
s(e.$slots, "default")
|
|
13
|
+
]),
|
|
14
|
+
_: 3
|
|
15
|
+
}, 8, ["value"]);
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
m as default
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=x-tab-panel-YsSPuuLL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-tab-panel-YsSPuuLL.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defineComponent as a, computed as l, openBlock as u, createBlock as m, unref as p } from "vue";
|
|
2
|
+
import { m as i } from "./translations-CFfpgNrx.js";
|
|
3
|
+
import { useI18n as f } from "vue-i18n";
|
|
4
|
+
import { a as c } from "./index-CkW0K4NP.js";
|
|
5
|
+
const y = /* @__PURE__ */ a({
|
|
6
|
+
__name: "x-text-field",
|
|
7
|
+
props: {
|
|
8
|
+
name: {},
|
|
9
|
+
label: {},
|
|
10
|
+
required: { type: Boolean }
|
|
11
|
+
},
|
|
12
|
+
setup(t) {
|
|
13
|
+
const { t: n } = f({
|
|
14
|
+
messages: i
|
|
15
|
+
}), o = t, s = l(() => {
|
|
16
|
+
const e = [];
|
|
17
|
+
return o.required && e.push((r) => r ? !0 : n("vuetify.text.input.mandatory")), e;
|
|
18
|
+
});
|
|
19
|
+
return (e, r) => (u(), m(p(c), {
|
|
20
|
+
label: e.label,
|
|
21
|
+
name: e.name,
|
|
22
|
+
rules: s.value
|
|
23
|
+
}, null, 8, ["label", "name", "rules"]));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
y as default
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=x-text-field-Ccv2SH00.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-text-field-Ccv2SH00.js","sources":["../src/vue/form/x-text-field.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { type TextFieldProps } from \"@xwiki/cristal-dsapi\";\nimport { computed } from \"vue\";\nimport { VTextField } from \"vuetify/components/VTextField\";\nimport messages from \"../../translations\";\nimport { useI18n } from \"vue-i18n\";\n\nconst { t } = useI18n({\n messages,\n});\nconst props = defineProps<TextFieldProps>();\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 :label=\"label\" :name=\"name\" :rules=\"rules\"></v-text-field>\n</template>\n\n<style scoped></style>\n"],"names":["t","useI18n","messages","props","__props","rules","computed","rulesList","value"],"mappings":";;;;;;;;;;;;AAOM,UAAA,EAAE,GAAAA,EAAE,IAAIC,EAAQ;AAAA,MACpB,UAAAC;AAAA,IAAA,CACD,GACKC,IAAQC,GAERC,IAAQC,EAAS,MAAM;AAC3B,YAAMC,IAAY,CAAA;AAClB,aAAIJ,EAAM,YACEI,EAAA,KAAK,CAACC,MACVA,IACK,KAEAR,EAAE,8BAA8B,CAE1C,GAEIO;AAAA,IAAA,CACR;;;;;;;;"}
|