@xwiki/cristal-dsvuetify 0.13.0 → 0.14.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 +14 -0
- package/dist/{index-UP1o6s9t.js → index-C4ioHAez.js} +3275 -3259
- package/dist/index-C4ioHAez.js.map +1 -0
- package/dist/index.es.js +6 -5
- package/dist/index.umd.js +10 -9
- package/dist/index.umd.js.map +1 -1
- package/dist/vue/form/x-checkbox.vue.d.ts +11 -0
- package/dist/vue/form/x-file-input.vue.d.ts +6 -6
- package/dist/vue/form/x-form.vue.d.ts +2 -1
- package/dist/vue/form/x-text-field.vue.d.ts +9 -1
- package/dist/vue/x-alert.vue.d.ts +2 -1
- package/dist/vue/x-avatar.vue.d.ts +2 -19
- package/dist/vue/x-btn.vue.d.ts +2 -1
- package/dist/vue/x-dialog.vue.d.ts +7 -8
- package/dist/vue/x-load.vue.d.ts +1 -1
- package/dist/vue/x-menu-item.vue.d.ts +6 -6
- package/dist/vue/x-menu-label.vue.d.ts +2 -1
- package/dist/vue/x-menu.vue.d.ts +2 -1
- package/dist/vue/x-navigation-tree.vue.d.ts +3 -5
- package/dist/vue/x-tab-group.vue.d.ts +4 -3
- package/dist/vue/x-tab-panel.vue.d.ts +2 -1
- package/dist/vue/x-tab.vue.d.ts +2 -1
- package/dist/x-alert-CTAhsN6L.js +46 -0
- package/dist/x-alert-CTAhsN6L.js.map +1 -0
- package/dist/x-avatar-Ds9aYRI9.js +28 -0
- package/dist/x-avatar-Ds9aYRI9.js.map +1 -0
- package/dist/{x-btn-DNlhiqjD.js → x-btn-BsiSIiiO.js} +9 -7
- package/dist/{x-btn-DNlhiqjD.js.map → x-btn-BsiSIiiO.js.map} +1 -1
- package/dist/x-checkbox-CJ3_IJ-Y.js +28 -0
- package/dist/x-checkbox-CJ3_IJ-Y.js.map +1 -0
- package/dist/x-dialog-C4gz0mOu.js +48 -0
- package/dist/x-dialog-C4gz0mOu.js.map +1 -0
- package/dist/{x-file-input-BsaodA0p.js → x-file-input-CMM5DWJc.js} +4 -3
- package/dist/{x-file-input-BsaodA0p.js.map → x-file-input-CMM5DWJc.js.map} +1 -1
- package/dist/{x-form-iQFXj1PW.js → x-form-BLg386BG.js} +2 -2
- package/dist/{x-form-iQFXj1PW.js.map → x-form-BLg386BG.js.map} +1 -1
- package/dist/x-navigation-tree-BW05Yivz.js +502 -0
- package/dist/x-navigation-tree-BW05Yivz.js.map +1 -0
- package/dist/{x-tab-group-ngNByee3.js → x-tab-group-Bp7V46k9.js} +5 -5
- package/dist/{x-tab-group-ngNByee3.js.map → x-tab-group-Bp7V46k9.js.map} +1 -1
- package/dist/x-text-field-BxSiyeFc.js +38 -0
- package/dist/x-text-field-BxSiyeFc.js.map +1 -0
- package/langs/translation-fr.json +4 -1
- package/package.json +13 -13
- package/src/components/vuetifyDesignSystemLoader.ts +5 -0
- package/src/vue/css/style.css +6 -0
- package/src/vue/form/x-checkbox.vue +35 -0
- package/src/vue/form/x-file-input.vue +2 -2
- package/src/vue/form/x-text-field.vue +2 -0
- package/src/vue/x-alert.vue +8 -0
- package/src/vue/x-avatar.vue +9 -9
- package/src/vue/x-dialog.vue +1 -7
- package/src/vue/x-navigation-tree.vue +43 -10
- package/src/vue/x-tab-group.vue +2 -2
- package/src/vue/x-tab-panel.vue +0 -2
- package/dist/index-UP1o6s9t.js.map +0 -1
- package/dist/x-alert-Bmt4mXHQ.js +0 -45
- package/dist/x-alert-Bmt4mXHQ.js.map +0 -1
- package/dist/x-avatar-But_Z7ic.js +0 -20
- package/dist/x-avatar-But_Z7ic.js.map +0 -1
- package/dist/x-dialog-C-dMkFJk.js +0 -49
- package/dist/x-dialog-C-dMkFJk.js.map +0 -1
- package/dist/x-navigation-tree-DN2Qz7Sm.js +0 -501
- package/dist/x-navigation-tree-DN2Qz7Sm.js.map +0 -1
- package/dist/x-text-field-CTsLZhLE.js +0 -31
- package/dist/x-text-field-CTsLZhLE.js.map +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CheckboxProps } from '@xwiki/cristal-dsapi';
|
|
2
|
+
type __VLS_Props = CheckboxProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
modelValue?: boolean;
|
|
5
|
+
} & __VLS_Props;
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (value: boolean) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { FileInputModel, TextFieldProps } from '@xwiki/cristal-dsapi';
|
|
2
|
+
type __VLS_Props = TextFieldProps;
|
|
3
3
|
type __VLS_PublicProps = {
|
|
4
|
-
modelValue?:
|
|
5
|
-
} &
|
|
4
|
+
modelValue?: FileInputModel;
|
|
5
|
+
} & __VLS_Props;
|
|
6
6
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
-
"update:modelValue": (
|
|
7
|
+
"update:modelValue": (value: FileInputModel) => any;
|
|
8
8
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
|
-
"onUpdate:modelValue"?: ((
|
|
9
|
+
"onUpdate:modelValue"?: ((value: FileInputModel) => any) | undefined;
|
|
10
10
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
export default _default;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
2
3
|
slots: {
|
|
3
4
|
default?(_: {}): any;
|
|
4
5
|
};
|
|
5
6
|
refs: {};
|
|
6
|
-
|
|
7
|
+
rootEl: any;
|
|
7
8
|
};
|
|
8
9
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
10
|
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
import { TextFieldProps } from '@xwiki/cristal-dsapi';
|
|
2
|
-
|
|
2
|
+
type __VLS_Props = TextFieldProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
modelValue?: string;
|
|
5
|
+
} & __VLS_Props;
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (value: string) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
3
11
|
export default _default;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { AlertProps } from '@xwiki/cristal-dsapi';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
3
4
|
slots: {
|
|
4
5
|
default?(_: {}): any;
|
|
5
6
|
};
|
|
6
7
|
refs: {};
|
|
7
|
-
|
|
8
|
+
rootEl: any;
|
|
8
9
|
};
|
|
9
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
11
|
declare const __VLS_component: import('vue').DefineComponent<AlertProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AlertProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
required: true;
|
|
5
|
-
};
|
|
6
|
-
size: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
|
-
image: {
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
required: true;
|
|
14
|
-
};
|
|
15
|
-
size: {
|
|
16
|
-
type: StringConstructor;
|
|
17
|
-
required: true;
|
|
18
|
-
};
|
|
19
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1
|
+
import { AvatarProps } from '@xwiki/cristal-dsapi';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<AvatarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AvatarProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
3
|
export default _default;
|
package/dist/vue/x-btn.vue.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { BtnProps } from '@xwiki/cristal-dsapi';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
3
4
|
slots: {
|
|
4
5
|
default?(_: {}): any;
|
|
5
6
|
};
|
|
6
7
|
refs: {};
|
|
7
|
-
|
|
8
|
+
rootEl: any;
|
|
8
9
|
};
|
|
9
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
11
|
declare const __VLS_component: import('vue').DefineComponent<BtnProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BtnProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
width: string | number | undefined;
|
|
4
|
+
};
|
|
1
5
|
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
2
7
|
slots: {
|
|
3
8
|
activator?(_: {}): any;
|
|
4
9
|
default?(_: {}): any;
|
|
5
10
|
footer?(_: {}): any;
|
|
6
11
|
};
|
|
7
12
|
refs: {};
|
|
8
|
-
|
|
13
|
+
rootEl: any;
|
|
9
14
|
};
|
|
10
15
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: import('vue').DefineComponent<{
|
|
12
|
-
title: string;
|
|
13
|
-
width: string | number | undefined;
|
|
14
|
-
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
15
|
-
title: string;
|
|
16
|
-
width: string | number | undefined;
|
|
17
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
17
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
18
|
export default _default;
|
|
20
19
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
package/dist/vue/x-load.vue.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLSpanElement>;
|
|
2
2
|
export default _default;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value: string;
|
|
3
|
+
};
|
|
1
4
|
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
2
6
|
slots: {
|
|
3
7
|
default?(_: {}): any;
|
|
4
8
|
};
|
|
5
9
|
refs: {};
|
|
6
|
-
|
|
10
|
+
rootEl: any;
|
|
7
11
|
};
|
|
8
12
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
|
-
declare const __VLS_component: import('vue').DefineComponent<{
|
|
10
|
-
value: string;
|
|
11
|
-
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
12
|
-
value: string;
|
|
13
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
15
|
export default _default;
|
|
16
16
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
2
3
|
slots: {
|
|
3
4
|
default?(_: {}): any;
|
|
4
5
|
};
|
|
5
6
|
refs: {};
|
|
6
|
-
|
|
7
|
+
rootEl: any;
|
|
7
8
|
};
|
|
8
9
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
10
|
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
package/dist/vue/x-menu.vue.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
2
3
|
slots: {
|
|
3
4
|
activator?(_: {}): any;
|
|
4
5
|
default?(_: {}): any;
|
|
5
6
|
};
|
|
6
7
|
refs: {};
|
|
7
|
-
|
|
8
|
+
rootEl: any;
|
|
8
9
|
};
|
|
9
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
11
|
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { PageData } from '@xwiki/cristal-api';
|
|
2
2
|
import { NavigationTreeNode } from '@xwiki/cristal-navigation-tree-api';
|
|
3
3
|
type OnClickAction = (node: NavigationTreeNode) => void;
|
|
4
|
-
|
|
4
|
+
type __VLS_Props = {
|
|
5
5
|
clickAction?: OnClickAction;
|
|
6
6
|
currentPage?: PageData;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
currentPage?: PageData;
|
|
10
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
9
|
export default _default;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
2
3
|
slots: {
|
|
3
4
|
tabs?(_: {}): any;
|
|
4
5
|
panels?(_: {}): any;
|
|
5
6
|
};
|
|
6
7
|
refs: {};
|
|
7
|
-
|
|
8
|
+
rootEl: any;
|
|
8
9
|
};
|
|
9
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
11
|
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
-
change: (...args: any[]) => void;
|
|
12
|
+
"tab-change": (...args: any[]) => void;
|
|
12
13
|
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
13
|
-
|
|
14
|
+
"onTab-change"?: ((...args: any[]) => any) | undefined;
|
|
14
15
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
15
16
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
17
|
export default _default;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { TabPanelProps } from '@xwiki/cristal-dsapi';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
3
4
|
slots: {
|
|
4
5
|
default?(_: {}): any;
|
|
5
6
|
};
|
|
6
7
|
refs: {};
|
|
7
|
-
|
|
8
|
+
rootEl: any;
|
|
8
9
|
};
|
|
9
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
11
|
declare const __VLS_component: import('vue').DefineComponent<TabPanelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TabPanelProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
package/dist/vue/x-tab.vue.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { TabProps } from '@xwiki/cristal-dsapi';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
3
4
|
slots: {
|
|
4
5
|
default?(_: {}): any;
|
|
5
6
|
};
|
|
6
7
|
refs: {};
|
|
7
|
-
|
|
8
|
+
rootEl: any;
|
|
8
9
|
};
|
|
9
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
11
|
declare const __VLS_component: import('vue').DefineComponent<TabProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TabProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { defineComponent as d, resolveComponent as n, openBlock as t, createBlock as a, withCtx as r, createElementBlock as l, Fragment as m, renderList as _, createTextVNode as u, toDisplayString as s, createCommentVNode as i, renderSlot as f } from "vue";
|
|
2
|
+
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const y = { key: 0 }, b = { key: 1 }, v = /* @__PURE__ */ d({
|
|
4
|
+
__name: "x-alert",
|
|
5
|
+
props: {
|
|
6
|
+
title: {},
|
|
7
|
+
type: {},
|
|
8
|
+
description: {},
|
|
9
|
+
actions: {},
|
|
10
|
+
closable: { type: Boolean },
|
|
11
|
+
details: {}
|
|
12
|
+
},
|
|
13
|
+
setup(C) {
|
|
14
|
+
return (e, h) => {
|
|
15
|
+
const c = n("x-btn"), p = n("v-alert");
|
|
16
|
+
return t(), a(p, {
|
|
17
|
+
closable: e.closable,
|
|
18
|
+
title: e.title,
|
|
19
|
+
type: e.type,
|
|
20
|
+
text: e.description
|
|
21
|
+
}, {
|
|
22
|
+
default: r(() => [
|
|
23
|
+
(t(!0), l(m, null, _(e.actions, (o) => (t(), a(c, {
|
|
24
|
+
key: o.name,
|
|
25
|
+
size: "small",
|
|
26
|
+
variant: "text",
|
|
27
|
+
onClick: o.callback
|
|
28
|
+
}, {
|
|
29
|
+
default: r(() => [
|
|
30
|
+
u(s(o.name), 1)
|
|
31
|
+
]),
|
|
32
|
+
_: 2
|
|
33
|
+
}, 1032, ["onClick"]))), 128)),
|
|
34
|
+
e.details ? (t(), l("br", y)) : i("", !0),
|
|
35
|
+
e.details ? (t(), l("small", b, s(e.details), 1)) : i("", !0),
|
|
36
|
+
f(e.$slots, "default", {}, void 0, !0)
|
|
37
|
+
]),
|
|
38
|
+
_: 3
|
|
39
|
+
}, 8, ["closable", "title", "type", "text"]);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}), g = /* @__PURE__ */ k(v, [["__scopeId", "data-v-c679f3ce"]]);
|
|
43
|
+
export {
|
|
44
|
+
g as default
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=x-alert-CTAhsN6L.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-alert-CTAhsN6L.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent as r, resolveComponent as n, openBlock as a, createBlock as o, withCtx as m, createElementBlock as i, toDisplayString as p } from "vue";
|
|
2
|
+
const c = { key: 1 }, g = /* @__PURE__ */ r({
|
|
3
|
+
__name: "x-avatar",
|
|
4
|
+
props: {
|
|
5
|
+
image: {},
|
|
6
|
+
size: {},
|
|
7
|
+
name: {}
|
|
8
|
+
},
|
|
9
|
+
setup(l) {
|
|
10
|
+
return (e, _) => {
|
|
11
|
+
const t = n("v-img"), s = n("v-avatar");
|
|
12
|
+
return a(), o(s, { size: e.size }, {
|
|
13
|
+
default: m(() => [
|
|
14
|
+
e.image ? (a(), o(t, {
|
|
15
|
+
key: 0,
|
|
16
|
+
alt: e.name,
|
|
17
|
+
src: e.image
|
|
18
|
+
}, null, 8, ["alt", "src"])) : (a(), i("span", c, p(e.name), 1))
|
|
19
|
+
]),
|
|
20
|
+
_: 1
|
|
21
|
+
}, 8, ["size"]);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
g as default
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=x-avatar-Ds9aYRI9.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-avatar-Ds9aYRI9.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { defineComponent as c, computed as r, resolveComponent as s, openBlock as l, createBlock as i, withCtx as u, renderSlot as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as c, computed as r, resolveComponent as s, openBlock as l, createBlock as i, withCtx as u, renderSlot as p } from "vue";
|
|
2
|
+
const m = /* @__PURE__ */ c({
|
|
3
3
|
__name: "x-btn",
|
|
4
4
|
props: {
|
|
5
|
-
variant: {}
|
|
5
|
+
variant: {},
|
|
6
|
+
size: {},
|
|
7
|
+
pill: { type: Boolean }
|
|
6
8
|
},
|
|
7
9
|
setup(a) {
|
|
8
10
|
const t = r(() => {
|
|
@@ -28,14 +30,14 @@ const p = /* @__PURE__ */ c({
|
|
|
28
30
|
}
|
|
29
31
|
return e;
|
|
30
32
|
}), n = r(() => a.variant == "text" ? "text" : "tonal");
|
|
31
|
-
return (e,
|
|
33
|
+
return (e, v) => {
|
|
32
34
|
const o = s("v-btn");
|
|
33
35
|
return l(), i(o, {
|
|
34
36
|
color: t.value,
|
|
35
37
|
variant: n.value
|
|
36
38
|
}, {
|
|
37
39
|
default: u(() => [
|
|
38
|
-
|
|
40
|
+
p(e.$slots, "default")
|
|
39
41
|
]),
|
|
40
42
|
_: 3
|
|
41
43
|
}, 8, ["color", "variant"]);
|
|
@@ -43,6 +45,6 @@ const p = /* @__PURE__ */ c({
|
|
|
43
45
|
}
|
|
44
46
|
});
|
|
45
47
|
export {
|
|
46
|
-
|
|
48
|
+
m as default
|
|
47
49
|
};
|
|
48
|
-
//# sourceMappingURL=x-btn-
|
|
50
|
+
//# sourceMappingURL=x-btn-BsiSIiiO.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-btn-
|
|
1
|
+
{"version":3,"file":"x-btn-BsiSIiiO.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<script lang=\"ts\" setup>\nimport { computed } from \"vue\";\nimport type { BtnProps } from \"@xwiki/cristal-dsapi\";\n\nconst { variant } = defineProps<BtnProps>();\n\n// Map the variants to corresponding vuetify colors.\nconst color = computed(() => {\n let color = undefined;\n switch (variant) {\n case \"default\":\n break;\n case \"primary\":\n color = \"primary\";\n break;\n case \"success\":\n color = \"success\";\n break;\n case \"neutral\":\n color = \"secondary\";\n break;\n case \"warning\":\n color = \"warning\";\n break;\n case \"danger\":\n color = \"error\";\n break;\n }\n return color;\n});\n\nconst vVariant = computed(() => (variant == \"text\" ? \"text\" : \"tonal\"));\n</script>\n<template>\n <v-btn :color=\"color\" :variant=\"vVariant\">\n <slot />\n </v-btn>\n</template>\n"],"names":["color","computed","__props","vVariant"],"mappings":";;;;;;;;;AA0BM,UAAAA,IAAQC,EAAS,MAAM;AAC3B,UAAID;AACJ,cAAQE,EAAO,SAAE;AAAA,QACf,KAAK;AACH;AAAA,QACF,KAAK;AACHF,UAAAA,IAAQ;AACR;AAAA,QACF,KAAK;AACHA,UAAAA,IAAQ;AACR;AAAA,QACF,KAAK;AACHA,UAAAA,IAAQ;AACR;AAAA,QACF,KAAK;AACHA,UAAAA,IAAQ;AACR;AAAA,QACF,KAAK;AACHA,UAAAA,IAAQ;AACR;AAAA,MAAA;AAEGA,aAAAA;AAAAA,IAAA,CACR,GAEKG,IAAWF,EAAS,MAAOC,EAAA,WAAW,SAAS,SAAS,OAAQ;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent as s, mergeModels as d, useModel as t, openBlock as u, createBlock as n, unref as p } from "vue";
|
|
2
|
+
import { x as r } from "./index-C4ioHAez.js";
|
|
3
|
+
const V = /* @__PURE__ */ s({
|
|
4
|
+
__name: "x-checkbox",
|
|
5
|
+
props: /* @__PURE__ */ d({
|
|
6
|
+
label: {},
|
|
7
|
+
help: {},
|
|
8
|
+
modelValue: { type: Boolean }
|
|
9
|
+
}, {
|
|
10
|
+
modelValue: { type: Boolean },
|
|
11
|
+
modelModifiers: {}
|
|
12
|
+
}),
|
|
13
|
+
emits: ["update:modelValue"],
|
|
14
|
+
setup(a) {
|
|
15
|
+
const e = t(a, "modelValue");
|
|
16
|
+
return (l, o) => (u(), n(p(r), {
|
|
17
|
+
modelValue: e.value,
|
|
18
|
+
"onUpdate:modelValue": o[0] || (o[0] = (m) => e.value = m),
|
|
19
|
+
label: l.label,
|
|
20
|
+
messages: l.help,
|
|
21
|
+
density: "compact"
|
|
22
|
+
}, null, 8, ["modelValue", "label", "messages"]));
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
V as default
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=x-checkbox-CJ3_IJ-Y.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-checkbox-CJ3_IJ-Y.js","sources":["../src/vue/form/x-checkbox.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 lang=\"ts\" setup>\nimport { VCheckbox } from \"vuetify/components/VCheckbox\";\nimport type { CheckboxProps } from \"@xwiki/cristal-dsapi\";\n\ndefineProps<CheckboxProps>();\n\nconst checked = defineModel<boolean>();\n</script>\n<template>\n <v-checkbox\n v-model=\"checked\"\n :label=\"label\"\n :messages=\"help\"\n density=\"compact\"\n ></v-checkbox>\n</template>\n"],"names":["checked","_useModel","__props"],"mappings":";;;;;;;;;;;;;;AAyBM,UAAAA,IAAUC,EAAoBC,GAAA,YAAC;;;;;;;;;;"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { defineComponent as p, resolveComponent as e, openBlock as r, createBlock as n, withCtx as o, createElementVNode as m, normalizeProps as v, guardReactiveProps as u, renderSlot as a, createVNode as d, createCommentVNode as f } from "vue";
|
|
2
|
+
import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const g = /* @__PURE__ */ p({
|
|
4
|
+
__name: "x-dialog",
|
|
5
|
+
props: {
|
|
6
|
+
title: {},
|
|
7
|
+
width: {}
|
|
8
|
+
},
|
|
9
|
+
setup(w) {
|
|
10
|
+
return (t, C) => {
|
|
11
|
+
const l = e("v-card-text"), s = e("v-card-actions"), c = e("v-card"), i = e("v-dialog");
|
|
12
|
+
return r(), n(i, {
|
|
13
|
+
width: t.width,
|
|
14
|
+
scrollable: ""
|
|
15
|
+
}, {
|
|
16
|
+
activator: o(({ props: _ }) => [
|
|
17
|
+
m("span", v(u(_)), [
|
|
18
|
+
a(t.$slots, "activator", {}, void 0, !0)
|
|
19
|
+
], 16)
|
|
20
|
+
]),
|
|
21
|
+
default: o(() => [
|
|
22
|
+
d(c, { title: t.title }, {
|
|
23
|
+
default: o(() => [
|
|
24
|
+
d(l, null, {
|
|
25
|
+
default: o(() => [
|
|
26
|
+
a(t.$slots, "default", {}, void 0, !0)
|
|
27
|
+
]),
|
|
28
|
+
_: 3
|
|
29
|
+
}),
|
|
30
|
+
t.$slots.footer ? (r(), n(s, { key: 0 }, {
|
|
31
|
+
default: o(() => [
|
|
32
|
+
a(t.$slots, "footer", {}, void 0, !0)
|
|
33
|
+
]),
|
|
34
|
+
_: 3
|
|
35
|
+
})) : f("", !0)
|
|
36
|
+
]),
|
|
37
|
+
_: 3
|
|
38
|
+
}, 8, ["title"])
|
|
39
|
+
]),
|
|
40
|
+
_: 3
|
|
41
|
+
}, 8, ["width"]);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}), N = /* @__PURE__ */ h(g, [["__scopeId", "data-v-35b45241"]]);
|
|
45
|
+
export {
|
|
46
|
+
N as default
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=x-dialog-C4gz0mOu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-dialog-C4gz0mOu.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { defineComponent as s, mergeModels as m, useModel as i, computed as d, openBlock as p, createBlock as f, unref as c } from "vue";
|
|
2
2
|
import { t as V } from "./translations-BNEIsfPR.js";
|
|
3
3
|
import { useI18n as b } from "vue-i18n";
|
|
4
|
-
import { b as v } from "./index-
|
|
4
|
+
import { b as v } from "./index-C4ioHAez.js";
|
|
5
5
|
const k = /* @__PURE__ */ s({
|
|
6
6
|
__name: "x-file-input",
|
|
7
7
|
props: /* @__PURE__ */ m({
|
|
8
8
|
name: {},
|
|
9
9
|
label: {},
|
|
10
10
|
required: { type: Boolean },
|
|
11
|
-
autofocus: { type: Boolean }
|
|
11
|
+
autofocus: { type: Boolean },
|
|
12
|
+
modelValue: {}
|
|
12
13
|
}, {
|
|
13
14
|
modelValue: {},
|
|
14
15
|
modelModifiers: {}
|
|
@@ -33,4 +34,4 @@ const k = /* @__PURE__ */ s({
|
|
|
33
34
|
export {
|
|
34
35
|
k as default
|
|
35
36
|
};
|
|
36
|
-
//# sourceMappingURL=x-file-input-
|
|
37
|
+
//# sourceMappingURL=x-file-input-CMM5DWJc.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-file-input-
|
|
1
|
+
{"version":3,"file":"x-file-input-CMM5DWJc.js","sources":["../src/vue/form/x-file-input.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport messages from \"../../translations\";\nimport { computed, defineModel } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nimport { VFileInput } from \"vuetify/components/VFileInput\";\nimport type { FileInputModel, TextFieldProps } from \"@xwiki/cristal-dsapi\";\n\nconst { t } = useI18n({\n messages,\n});\n\nconst model = defineModel<FileInputModel>();\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":";;;;;;;;;;;;;;;;;;AAOM,UAAA,EAAE,GAAAA,EAAE,IAAIC,EAAQ;AAAA,MACpBC,UAAAA;AAAAA,IAAA,CACD,GAEKC,IAAQC,iBAA4B,GACpCC,IAAQC,GAERC,IAAQC,EAAS,MAAM;AAC3B,YAAMC,IAAY,CAAC;AACnB,aAAIJ,EAAM,YACEI,EAAA,KAAK,CAACC,MACVA,IACK,KAEAV,EAAE,8BAA8B,CAE1C,GAEIS;AAAA,IAAA,CACR;;;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
2
|
+
import { V as p } from "./index-C4ioHAez.js";
|
|
3
3
|
const h = /* @__PURE__ */ i({
|
|
4
4
|
__name: "x-form",
|
|
5
5
|
emits: ["formSubmit"],
|
|
@@ -29,4 +29,4 @@ const h = /* @__PURE__ */ i({
|
|
|
29
29
|
export {
|
|
30
30
|
h as default
|
|
31
31
|
};
|
|
32
|
-
//# sourceMappingURL=x-form-
|
|
32
|
+
//# sourceMappingURL=x-form-BLg386BG.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-form-
|
|
1
|
+
{"version":3,"file":"x-form-BLg386BG.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,IAAA;;;;;;;;;;;;;;;;;;;"}
|