cisse-vue-ui 0.10.1 → 0.11.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/dist/{CheckboxGroup.vue_vue_type_script_setup_true_lang-ZP02bMgY.js → CheckboxGroup.vue_vue_type_script_setup_true_lang-CZ4Sox5V.js} +409 -169
- package/dist/CheckboxGroup.vue_vue_type_script_setup_true_lang-CZ4Sox5V.js.map +1 -0
- package/dist/{CheckboxGroup.vue_vue_type_script_setup_true_lang-BC86pBlY.cjs → CheckboxGroup.vue_vue_type_script_setup_true_lang-DGGefZ7m.cjs} +406 -166
- package/dist/CheckboxGroup.vue_vue_type_script_setup_true_lang-DGGefZ7m.cjs.map +1 -0
- package/dist/{FilterTabs.vue_vue_type_script_setup_true_lang-CwcJkw3D.cjs → DataList.vue_vue_type_script_setup_true_lang-MshUshzx.cjs} +477 -221
- package/dist/DataList.vue_vue_type_script_setup_true_lang-MshUshzx.cjs.map +1 -0
- package/dist/{FilterTabs.vue_vue_type_script_setup_true_lang-aPs8YGWB.js → DataList.vue_vue_type_script_setup_true_lang-e5XO82_b.js} +498 -242
- package/dist/DataList.vue_vue_type_script_setup_true_lang-e5XO82_b.js.map +1 -0
- package/dist/components/core/Divider.stories.d.ts +13 -0
- package/dist/components/core/Divider.test.d.ts +1 -0
- package/dist/components/core/Divider.vue.d.ts +24 -0
- package/dist/components/core/Drawer.vue.d.ts +2 -0
- package/dist/components/core/Menu.stories.d.ts +11 -0
- package/dist/components/core/Menu.test.d.ts +1 -0
- package/dist/components/core/Menu.vue.d.ts +30 -0
- package/dist/components/core/datalist/DataList.stories.d.ts +12 -0
- package/dist/components/core/datalist/DataList.test.d.ts +1 -0
- package/dist/components/core/datalist/DataList.vue.d.ts +39 -0
- package/dist/components/core/datalist/DataListItem.vue.d.ts +33 -0
- package/dist/components/core/datalist/DataListLabel.vue.d.ts +26 -0
- package/dist/components/core/datalist/DataListValue.vue.d.ts +26 -0
- package/dist/components/core/datalist/index.d.ts +5 -0
- package/dist/components/core/index.cjs +49 -42
- package/dist/components/core/index.cjs.map +1 -1
- package/dist/components/core/index.d.ts +7 -0
- package/dist/components/core/index.js +27 -20
- package/dist/components/form/Form.stories.d.ts +11 -0
- package/dist/components/form/Form.test.d.ts +1 -0
- package/dist/components/form/Form.vue.d.ts +55 -0
- package/dist/components/form/FormSection.vue.d.ts +1 -1
- package/dist/components/form/InputGroup.stories.d.ts +12 -0
- package/dist/components/form/InputGroup.test.d.ts +1 -0
- package/dist/components/form/InputGroup.vue.d.ts +32 -0
- package/dist/components/form/Option.vue.d.ts +27 -0
- package/dist/components/form/Select.stories.d.ts +13 -0
- package/dist/components/form/Select.test.d.ts +1 -0
- package/dist/components/form/Select.vue.d.ts +53 -0
- package/dist/components/form/index.cjs +33 -29
- package/dist/components/form/index.cjs.map +1 -1
- package/dist/components/form/index.d.ts +7 -0
- package/dist/components/form/index.js +33 -29
- package/dist/components/index.cjs +82 -71
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +62 -51
- package/dist/index-CO3nD8zb.js +127 -0
- package/dist/{index-D-VE0o-l.js.map → index-CO3nD8zb.js.map} +1 -1
- package/dist/{index-CKd33NtQ.cjs → index-DK_UojhF.cjs} +83 -72
- package/dist/{index-CKd33NtQ.cjs.map → index-DK_UojhF.cjs.map} +1 -1
- package/dist/index.cjs +83 -72
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +63 -52
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/CheckboxGroup.vue_vue_type_script_setup_true_lang-BC86pBlY.cjs.map +0 -1
- package/dist/CheckboxGroup.vue_vue_type_script_setup_true_lang-ZP02bMgY.js.map +0 -1
- package/dist/FilterTabs.vue_vue_type_script_setup_true_lang-CwcJkw3D.cjs.map +0 -1
- package/dist/FilterTabs.vue_vue_type_script_setup_true_lang-aPs8YGWB.js.map +0 -1
- package/dist/index-D-VE0o-l.js +0 -116
|
@@ -1,13 +1,161 @@
|
|
|
1
|
-
import { defineComponent, createElementBlock, openBlock, renderSlot, createTextVNode,
|
|
2
|
-
import { u as useId } from "./useId-xeHj7rkg.js";
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, createBlock, createCommentVNode, createVNode, renderSlot, withCtx, createTextVNode, unref, toDisplayString, Fragment, createElementVNode, normalizeStyle, useSlots, computed, toRef, mergeModels, useModel, withDirectives, mergeProps, vModelDynamic, ref, watch, Teleport, Transition, vModelText, renderList, nextTick, vModelSelect, withModifiers, withKeys, vShow, createSlots, onMounted, TransitionGroup } from "vue";
|
|
3
2
|
import { Icon } from "@iconify/vue";
|
|
4
|
-
import {
|
|
3
|
+
import { _ as _sfc_main$y } from "./Button.vue_vue_type_script_setup_true_lang-CBYr0Z2_.js";
|
|
5
4
|
import { u as useInputStyles } from "./useInputStyles-BFTJdXHL.js";
|
|
5
|
+
import { u as useId } from "./useId-xeHj7rkg.js";
|
|
6
|
+
import { u as useDropdown } from "./useDropdown-XITCE_SM.js";
|
|
6
7
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
|
|
7
|
-
import { o as onClickOutside, u as useDebounceFn, _ as _sfc_main$
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
|
|
8
|
+
import { o as onClickOutside, u as useDebounceFn, _ as _sfc_main$z } from "./index-BaWpldIJ.js";
|
|
9
|
+
const _hoisted_1$w = { key: 1 };
|
|
10
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
11
|
+
__name: "FormActions",
|
|
12
|
+
props: {
|
|
13
|
+
submitLabel: { default: "Enregistrer" },
|
|
14
|
+
cancelLabel: { default: "Annuler" },
|
|
15
|
+
submitIcon: { default: "heroicons:check" },
|
|
16
|
+
cancelIcon: { default: "heroicons:x-mark" },
|
|
17
|
+
loading: { type: Boolean },
|
|
18
|
+
loadingLabel: {},
|
|
19
|
+
disabled: { type: Boolean },
|
|
20
|
+
showCancel: { type: Boolean, default: true },
|
|
21
|
+
align: { default: "right" },
|
|
22
|
+
stackOnMobile: { type: Boolean, default: false },
|
|
23
|
+
submitVariant: { default: "primary" }
|
|
24
|
+
},
|
|
25
|
+
emits: ["submit", "cancel"],
|
|
26
|
+
setup(__props, { emit: __emit }) {
|
|
27
|
+
const emit = __emit;
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
return openBlock(), createElementBlock("div", {
|
|
30
|
+
class: normalizeClass([
|
|
31
|
+
"flex gap-3 pt-2",
|
|
32
|
+
__props.align === "left" && "justify-start",
|
|
33
|
+
__props.align === "center" && "justify-center",
|
|
34
|
+
__props.align === "right" && "justify-end",
|
|
35
|
+
__props.align === "stretch" && "[&>*]:flex-1",
|
|
36
|
+
__props.stackOnMobile && "flex-col sm:flex-row"
|
|
37
|
+
])
|
|
38
|
+
}, [
|
|
39
|
+
__props.showCancel ? (openBlock(), createBlock(_sfc_main$y, {
|
|
40
|
+
key: 0,
|
|
41
|
+
type: "button",
|
|
42
|
+
variant: "outline",
|
|
43
|
+
disabled: __props.loading,
|
|
44
|
+
class: normalizeClass([
|
|
45
|
+
__props.stackOnMobile && "order-2 sm:order-1"
|
|
46
|
+
]),
|
|
47
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("cancel"))
|
|
48
|
+
}, {
|
|
49
|
+
default: withCtx(() => [
|
|
50
|
+
__props.cancelIcon ? (openBlock(), createBlock(unref(Icon), {
|
|
51
|
+
key: 0,
|
|
52
|
+
icon: __props.cancelIcon,
|
|
53
|
+
class: "w-5 h-5"
|
|
54
|
+
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
55
|
+
createTextVNode(" " + toDisplayString(__props.cancelLabel), 1)
|
|
56
|
+
]),
|
|
57
|
+
_: 1
|
|
58
|
+
}, 8, ["disabled", "class"])) : createCommentVNode("", true),
|
|
59
|
+
createVNode(_sfc_main$y, {
|
|
60
|
+
type: "submit",
|
|
61
|
+
variant: __props.submitVariant,
|
|
62
|
+
disabled: __props.disabled || __props.loading,
|
|
63
|
+
loading: __props.loading,
|
|
64
|
+
class: normalizeClass([
|
|
65
|
+
__props.stackOnMobile && "order-1 sm:order-2"
|
|
66
|
+
]),
|
|
67
|
+
onClick: _cache[1] || (_cache[1] = ($event) => emit("submit"))
|
|
68
|
+
}, {
|
|
69
|
+
default: withCtx(() => [
|
|
70
|
+
!__props.loading ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
71
|
+
__props.submitIcon ? (openBlock(), createBlock(unref(Icon), {
|
|
72
|
+
key: 0,
|
|
73
|
+
icon: __props.submitIcon,
|
|
74
|
+
class: "w-5 h-5"
|
|
75
|
+
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
76
|
+
createTextVNode(" " + toDisplayString(__props.submitLabel), 1)
|
|
77
|
+
], 64)) : (openBlock(), createElementBlock("span", _hoisted_1$w, toDisplayString(__props.loadingLabel || __props.submitLabel + "..."), 1))
|
|
78
|
+
]),
|
|
79
|
+
_: 1
|
|
80
|
+
}, 8, ["variant", "disabled", "loading", "class"]),
|
|
81
|
+
renderSlot(_ctx.$slots, "extra")
|
|
82
|
+
], 2);
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
const _hoisted_1$v = {
|
|
87
|
+
key: 0,
|
|
88
|
+
class: "pb-5 mb-5"
|
|
89
|
+
};
|
|
90
|
+
const _hoisted_2$k = {
|
|
91
|
+
key: 0,
|
|
92
|
+
class: "text-base/7 font-semibold text-gray-900 dark:text-gray-100"
|
|
93
|
+
};
|
|
94
|
+
const _hoisted_3$i = {
|
|
95
|
+
key: 1,
|
|
96
|
+
class: "mt-1 max-w-2xl text-sm/6 text-gray-600 dark:text-gray-400"
|
|
97
|
+
};
|
|
98
|
+
const _hoisted_4$e = {
|
|
99
|
+
key: 1,
|
|
100
|
+
class: "border-t border-gray-900/10 dark:border-gray-100/10 pt-5 mt-5"
|
|
101
|
+
};
|
|
102
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
103
|
+
__name: "Form",
|
|
104
|
+
props: {
|
|
105
|
+
title: {},
|
|
106
|
+
description: {},
|
|
107
|
+
layout: { default: "vertical" },
|
|
108
|
+
divide: { type: Boolean, default: false },
|
|
109
|
+
hideFooter: { type: Boolean, default: false },
|
|
110
|
+
submitLabel: { default: "Enregistrer" },
|
|
111
|
+
cancelLabel: { default: "Annuler" },
|
|
112
|
+
loading: { type: Boolean },
|
|
113
|
+
disabled: { type: Boolean },
|
|
114
|
+
cols: { default: 12 }
|
|
115
|
+
},
|
|
116
|
+
emits: ["submit", "cancel"],
|
|
117
|
+
setup(__props, { emit: __emit }) {
|
|
118
|
+
const emit = __emit;
|
|
119
|
+
function handleSubmit(event) {
|
|
120
|
+
event.preventDefault();
|
|
121
|
+
emit("submit", event);
|
|
122
|
+
}
|
|
123
|
+
return (_ctx, _cache) => {
|
|
124
|
+
return openBlock(), createElementBlock("form", { onSubmit: handleSubmit }, [
|
|
125
|
+
__props.title || __props.description || _ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
126
|
+
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
127
|
+
__props.title ? (openBlock(), createElementBlock("h2", _hoisted_2$k, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
128
|
+
__props.description ? (openBlock(), createElementBlock("p", _hoisted_3$i, toDisplayString(__props.description), 1)) : createCommentVNode("", true)
|
|
129
|
+
])
|
|
130
|
+
])) : createCommentVNode("", true),
|
|
131
|
+
createElementVNode("div", {
|
|
132
|
+
class: normalizeClass([
|
|
133
|
+
"grid gap-6",
|
|
134
|
+
__props.layout === "horizontal" && "sm:grid-cols-12 gap-x-6 gap-y-8",
|
|
135
|
+
__props.layout === "vertical" && `grid-cols-${__props.cols}`,
|
|
136
|
+
__props.divide && "sm:divide-y sm:divide-gray-900/10 dark:sm:divide-gray-100/10"
|
|
137
|
+
]),
|
|
138
|
+
style: normalizeStyle(__props.layout === "vertical" ? { gridTemplateColumns: `repeat(${__props.cols}, minmax(0, 1fr))` } : void 0)
|
|
139
|
+
}, [
|
|
140
|
+
renderSlot(_ctx.$slots, "default")
|
|
141
|
+
], 6),
|
|
142
|
+
!__props.hideFooter || _ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_4$e, [
|
|
143
|
+
renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
144
|
+
createVNode(_sfc_main$x, {
|
|
145
|
+
"submit-label": __props.submitLabel,
|
|
146
|
+
"cancel-label": __props.cancelLabel,
|
|
147
|
+
loading: __props.loading,
|
|
148
|
+
disabled: __props.disabled,
|
|
149
|
+
onCancel: _cache[0] || (_cache[0] = ($event) => emit("cancel"))
|
|
150
|
+
}, null, 8, ["submit-label", "cancel-label", "loading", "disabled"])
|
|
151
|
+
])
|
|
152
|
+
])) : createCommentVNode("", true)
|
|
153
|
+
], 32);
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
const _hoisted_1$u = ["data-error", "for"];
|
|
158
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
11
159
|
__name: "FormLabel",
|
|
12
160
|
props: {
|
|
13
161
|
error: { type: [String, Boolean] },
|
|
@@ -21,12 +169,12 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
21
169
|
class: "block text-sm font-medium text-gray-700 data-[error=true]:text-red-500 dark:text-gray-300"
|
|
22
170
|
}, [
|
|
23
171
|
renderSlot(_ctx.$slots, "default")
|
|
24
|
-
], 8, _hoisted_1$
|
|
172
|
+
], 8, _hoisted_1$u);
|
|
25
173
|
};
|
|
26
174
|
}
|
|
27
175
|
});
|
|
28
|
-
const _hoisted_1$
|
|
29
|
-
const _sfc_main$
|
|
176
|
+
const _hoisted_1$t = ["id", "data-error", "role", "aria-live"];
|
|
177
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
30
178
|
__name: "FormHelp",
|
|
31
179
|
props: {
|
|
32
180
|
id: {},
|
|
@@ -45,19 +193,19 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
45
193
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
46
194
|
createTextVNode(toDisplayString(__props.text ?? ""), 1)
|
|
47
195
|
])
|
|
48
|
-
], 8, _hoisted_1$
|
|
196
|
+
], 8, _hoisted_1$t);
|
|
49
197
|
};
|
|
50
198
|
}
|
|
51
199
|
});
|
|
52
|
-
const _hoisted_1$
|
|
200
|
+
const _hoisted_1$s = {
|
|
53
201
|
key: 0,
|
|
54
202
|
class: "absolute left-3 top-1/2 -translate-y-1/2 pointer-events-none text-gray-400"
|
|
55
203
|
};
|
|
56
|
-
const _hoisted_2$
|
|
204
|
+
const _hoisted_2$j = {
|
|
57
205
|
key: 1,
|
|
58
206
|
class: "absolute right-3 top-1/2 -translate-y-1/2 flex items-center gap-1"
|
|
59
207
|
};
|
|
60
|
-
const _sfc_main$
|
|
208
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
61
209
|
__name: "InputWrapper",
|
|
62
210
|
props: {
|
|
63
211
|
icon: {},
|
|
@@ -86,7 +234,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
86
234
|
return openBlock(), createElementBlock("div", {
|
|
87
235
|
class: normalizeClass(["relative", __props.wrapperClass])
|
|
88
236
|
}, [
|
|
89
|
-
hasLeftIcon.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
237
|
+
hasLeftIcon.value ? (openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
90
238
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
91
239
|
__props.icon ? (openBlock(), createBlock(unref(Icon), {
|
|
92
240
|
key: 0,
|
|
@@ -96,7 +244,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
96
244
|
])
|
|
97
245
|
])) : createCommentVNode("", true),
|
|
98
246
|
renderSlot(_ctx.$slots, "default", { inputClass: unref(inputClass) }),
|
|
99
|
-
hasRightContent.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
247
|
+
hasRightContent.value ? (openBlock(), createElementBlock("div", _hoisted_2$j, [
|
|
100
248
|
renderSlot(_ctx.$slots, "actions", {}, () => [
|
|
101
249
|
__props.iconRight ? (openBlock(), createBlock(unref(Icon), {
|
|
102
250
|
key: 0,
|
|
@@ -109,8 +257,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
109
257
|
};
|
|
110
258
|
}
|
|
111
259
|
});
|
|
112
|
-
const _hoisted_1$
|
|
113
|
-
const _sfc_main$
|
|
260
|
+
const _hoisted_1$r = ["id", "disabled", "name", "placeholder", "type", "required", "aria-invalid", "aria-required", "aria-describedby"];
|
|
261
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
114
262
|
...{
|
|
115
263
|
inheritAttrs: false
|
|
116
264
|
},
|
|
@@ -136,7 +284,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
136
284
|
const props = __props;
|
|
137
285
|
const modelValue = useModel(__props, "modelValue");
|
|
138
286
|
return (_ctx, _cache) => {
|
|
139
|
-
return openBlock(), createBlock(_sfc_main$
|
|
287
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
140
288
|
icon: props.icon,
|
|
141
289
|
"icon-right": props.iconRight,
|
|
142
290
|
disabled: props.disabled,
|
|
@@ -155,7 +303,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
155
303
|
"aria-required": props.required || void 0,
|
|
156
304
|
"aria-describedby": props.describedBy || void 0,
|
|
157
305
|
class: inputClass
|
|
158
|
-
}, _ctx.$attrs), null, 16, _hoisted_1$
|
|
306
|
+
}, _ctx.$attrs), null, 16, _hoisted_1$r), [
|
|
159
307
|
[vModelDynamic, modelValue.value]
|
|
160
308
|
])
|
|
161
309
|
]),
|
|
@@ -164,10 +312,10 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
164
312
|
};
|
|
165
313
|
}
|
|
166
314
|
});
|
|
167
|
-
const _hoisted_1$
|
|
168
|
-
const _hoisted_2$
|
|
169
|
-
const _hoisted_3$
|
|
170
|
-
const _hoisted_4$
|
|
315
|
+
const _hoisted_1$q = { class: "relative" };
|
|
316
|
+
const _hoisted_2$i = ["id", "disabled", "aria-expanded", "aria-controls", "aria-invalid", "aria-describedby"];
|
|
317
|
+
const _hoisted_3$h = { class: "flex-1 truncate" };
|
|
318
|
+
const _hoisted_4$d = ["id", "aria-label"];
|
|
171
319
|
const _hoisted_5$9 = {
|
|
172
320
|
key: 0,
|
|
173
321
|
class: "sticky top-0 border-b border-gray-200 bg-white p-2 dark:border-gray-700 dark:bg-gray-800"
|
|
@@ -186,7 +334,7 @@ const _hoisted_10$4 = {
|
|
|
186
334
|
"aria-hidden": "true"
|
|
187
335
|
};
|
|
188
336
|
const _hoisted_11$4 = { class: "flex-1" };
|
|
189
|
-
const _sfc_main$
|
|
337
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
190
338
|
__name: "FormSelect",
|
|
191
339
|
props: /* @__PURE__ */ mergeModels({
|
|
192
340
|
options: {},
|
|
@@ -312,7 +460,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
312
460
|
props.triggerClass
|
|
313
461
|
]);
|
|
314
462
|
return (_ctx, _cache) => {
|
|
315
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
463
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
316
464
|
createElementVNode("button", {
|
|
317
465
|
id: triggerId.value,
|
|
318
466
|
ref_key: "triggerRef",
|
|
@@ -332,14 +480,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
332
480
|
option: selectedOption.value,
|
|
333
481
|
placeholder: __props.placeholder
|
|
334
482
|
}, () => [
|
|
335
|
-
createElementVNode("span", _hoisted_3$
|
|
483
|
+
createElementVNode("span", _hoisted_3$h, toDisplayString(displayValue.value), 1)
|
|
336
484
|
]),
|
|
337
485
|
createVNode(unref(Icon), {
|
|
338
486
|
icon: "lucide:chevron-down",
|
|
339
487
|
class: normalizeClass(["size-4 shrink-0 text-gray-400 transition-transform", unref(isOpen) && "rotate-180"]),
|
|
340
488
|
"aria-hidden": "true"
|
|
341
489
|
}, null, 8, ["class"])
|
|
342
|
-
], 42, _hoisted_2$
|
|
490
|
+
], 42, _hoisted_2$i),
|
|
343
491
|
(openBlock(), createBlock(Teleport, {
|
|
344
492
|
to: "body",
|
|
345
493
|
disabled: !__props.teleport
|
|
@@ -421,7 +569,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
421
569
|
], 42, _hoisted_9$4);
|
|
422
570
|
}), 128))
|
|
423
571
|
])
|
|
424
|
-
], 14, _hoisted_4$
|
|
572
|
+
], 14, _hoisted_4$d)) : createCommentVNode("", true)
|
|
425
573
|
]),
|
|
426
574
|
_: 3
|
|
427
575
|
})
|
|
@@ -430,7 +578,106 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
430
578
|
};
|
|
431
579
|
}
|
|
432
580
|
});
|
|
433
|
-
const _hoisted_1$
|
|
581
|
+
const _hoisted_1$p = { class: "relative grid grid-cols-1" };
|
|
582
|
+
const _hoisted_2$h = ["name", "id", "disabled", "required"];
|
|
583
|
+
const _hoisted_3$g = {
|
|
584
|
+
key: 0,
|
|
585
|
+
value: "",
|
|
586
|
+
disabled: ""
|
|
587
|
+
};
|
|
588
|
+
const _hoisted_4$c = ["value", "disabled"];
|
|
589
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
590
|
+
__name: "Select",
|
|
591
|
+
props: /* @__PURE__ */ mergeModels({
|
|
592
|
+
options: {},
|
|
593
|
+
placeholder: { default: "Sélectionnez une option" },
|
|
594
|
+
name: {},
|
|
595
|
+
id: {},
|
|
596
|
+
disabled: { type: Boolean },
|
|
597
|
+
required: { type: Boolean },
|
|
598
|
+
invalid: { type: Boolean },
|
|
599
|
+
size: { default: "md" },
|
|
600
|
+
class: {}
|
|
601
|
+
}, {
|
|
602
|
+
"modelValue": {},
|
|
603
|
+
"modelModifiers": {}
|
|
604
|
+
}),
|
|
605
|
+
emits: ["update:modelValue"],
|
|
606
|
+
setup(__props) {
|
|
607
|
+
const props = __props;
|
|
608
|
+
const modelValue = useModel(__props, "modelValue");
|
|
609
|
+
const hasValue = computed(() => modelValue.value !== null && modelValue.value !== "");
|
|
610
|
+
const { inputClass } = useInputStyles({
|
|
611
|
+
disabled: toRef(props, "disabled"),
|
|
612
|
+
invalid: toRef(props, "invalid"),
|
|
613
|
+
size: toRef(props, "size"),
|
|
614
|
+
hasValue
|
|
615
|
+
});
|
|
616
|
+
const selectClasses = computed(() => [
|
|
617
|
+
...inputClass.value,
|
|
618
|
+
"appearance-none cursor-pointer pr-10",
|
|
619
|
+
props.class
|
|
620
|
+
]);
|
|
621
|
+
return (_ctx, _cache) => {
|
|
622
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
623
|
+
withDirectives(createElementVNode("select", {
|
|
624
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
|
|
625
|
+
name: __props.name,
|
|
626
|
+
id: __props.id,
|
|
627
|
+
disabled: __props.disabled,
|
|
628
|
+
required: __props.required,
|
|
629
|
+
class: normalizeClass([selectClasses.value, "col-start-1 row-start-1"])
|
|
630
|
+
}, [
|
|
631
|
+
__props.placeholder ? (openBlock(), createElementBlock("option", _hoisted_3$g, toDisplayString(__props.placeholder), 1)) : createCommentVNode("", true),
|
|
632
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
633
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
|
|
634
|
+
return openBlock(), createElementBlock("option", {
|
|
635
|
+
key: option.value,
|
|
636
|
+
value: option.value,
|
|
637
|
+
disabled: option.disabled
|
|
638
|
+
}, toDisplayString(option.label), 9, _hoisted_4$c);
|
|
639
|
+
}), 128))
|
|
640
|
+
])
|
|
641
|
+
], 10, _hoisted_2$h), [
|
|
642
|
+
[vModelSelect, modelValue.value]
|
|
643
|
+
]),
|
|
644
|
+
createVNode(unref(Icon), {
|
|
645
|
+
icon: "heroicons:chevron-down",
|
|
646
|
+
class: "pointer-events-none col-start-1 row-start-1 mr-3 size-5 self-center justify-self-end text-gray-500 dark:text-gray-400 sm:size-4",
|
|
647
|
+
"aria-hidden": "true"
|
|
648
|
+
})
|
|
649
|
+
]);
|
|
650
|
+
};
|
|
651
|
+
}
|
|
652
|
+
});
|
|
653
|
+
const _hoisted_1$o = ["value", "disabled", "selected"];
|
|
654
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
655
|
+
__name: "Option",
|
|
656
|
+
props: {
|
|
657
|
+
value: {},
|
|
658
|
+
disabled: { type: Boolean },
|
|
659
|
+
selected: { type: Boolean },
|
|
660
|
+
class: {}
|
|
661
|
+
},
|
|
662
|
+
setup(__props) {
|
|
663
|
+
return (_ctx, _cache) => {
|
|
664
|
+
return openBlock(), createElementBlock("option", {
|
|
665
|
+
value: __props.value,
|
|
666
|
+
disabled: __props.disabled,
|
|
667
|
+
selected: __props.selected,
|
|
668
|
+
class: normalizeClass([
|
|
669
|
+
"appearance-none py-1.5 pr-8 pl-3 bg-white dark:bg-gray-900",
|
|
670
|
+
"text-base text-gray-900 dark:text-gray-100 sm:text-sm/6",
|
|
671
|
+
"hover:bg-gray-100 dark:hover:bg-gray-800",
|
|
672
|
+
_ctx.$props.class
|
|
673
|
+
])
|
|
674
|
+
}, [
|
|
675
|
+
renderSlot(_ctx.$slots, "default")
|
|
676
|
+
], 10, _hoisted_1$o);
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
});
|
|
680
|
+
const _hoisted_1$n = ["hidden"];
|
|
434
681
|
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
435
682
|
__name: "FormGroup",
|
|
436
683
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -472,7 +719,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
472
719
|
}, [
|
|
473
720
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
474
721
|
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
475
|
-
__props.label ? (openBlock(), createBlock(_sfc_main$
|
|
722
|
+
__props.label ? (openBlock(), createBlock(_sfc_main$v, {
|
|
476
723
|
key: 0,
|
|
477
724
|
"html-for": inputId.value,
|
|
478
725
|
error: __props.error
|
|
@@ -484,7 +731,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
484
731
|
}, 8, ["html-for", "error"])) : createCommentVNode("", true)
|
|
485
732
|
]),
|
|
486
733
|
renderSlot(_ctx.$slots, "input", {}, () => [
|
|
487
|
-
isSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
734
|
+
isSelect.value ? (openBlock(), createBlock(_sfc_main$r, mergeProps({
|
|
488
735
|
key: 0,
|
|
489
736
|
modelValue: modelValue.value,
|
|
490
737
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event)
|
|
@@ -492,7 +739,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
492
739
|
id: inputId.value,
|
|
493
740
|
invalid: Boolean(__props.error),
|
|
494
741
|
"described-by": hasError.value ? helpId.value : void 0
|
|
495
|
-
}), null, 16, ["modelValue", "id", "invalid", "described-by"])) : (openBlock(), createBlock(_sfc_main$
|
|
742
|
+
}), null, 16, ["modelValue", "id", "invalid", "described-by"])) : (openBlock(), createBlock(_sfc_main$s, mergeProps({
|
|
496
743
|
key: 1,
|
|
497
744
|
modelValue: modelValue.value,
|
|
498
745
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => modelValue.value = $event)
|
|
@@ -502,7 +749,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
502
749
|
"described-by": hasError.value ? helpId.value : void 0
|
|
503
750
|
}), null, 16, ["modelValue", "id", "invalid", "described-by"]))
|
|
504
751
|
]),
|
|
505
|
-
hasError.value ? (openBlock(), createBlock(_sfc_main$
|
|
752
|
+
hasError.value ? (openBlock(), createBlock(_sfc_main$u, {
|
|
506
753
|
key: 0,
|
|
507
754
|
id: helpId.value,
|
|
508
755
|
error: true
|
|
@@ -513,11 +760,11 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
513
760
|
_: 1
|
|
514
761
|
}, 8, ["id"])) : createCommentVNode("", true)
|
|
515
762
|
])
|
|
516
|
-
], 12, _hoisted_1$
|
|
763
|
+
], 12, _hoisted_1$n);
|
|
517
764
|
};
|
|
518
765
|
}
|
|
519
766
|
});
|
|
520
|
-
const _hoisted_1$
|
|
767
|
+
const _hoisted_1$m = ["name", "placeholder", "disabled"];
|
|
521
768
|
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
522
769
|
...{
|
|
523
770
|
inheritAttrs: false
|
|
@@ -538,7 +785,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
538
785
|
const props = __props;
|
|
539
786
|
const modelValue = useModel(__props, "modelValue");
|
|
540
787
|
return (_ctx, _cache) => {
|
|
541
|
-
return openBlock(), createBlock(_sfc_main$
|
|
788
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
542
789
|
icon: props.icon,
|
|
543
790
|
size: props.size,
|
|
544
791
|
disabled: props.disabled
|
|
@@ -551,7 +798,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
551
798
|
placeholder: props.placeholder,
|
|
552
799
|
disabled: props.disabled,
|
|
553
800
|
class: inputClass
|
|
554
|
-
}, _ctx.$attrs), null, 16, _hoisted_1$
|
|
801
|
+
}, _ctx.$attrs), null, 16, _hoisted_1$m), [
|
|
555
802
|
[vModelText, modelValue.value]
|
|
556
803
|
])
|
|
557
804
|
]),
|
|
@@ -560,7 +807,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
560
807
|
};
|
|
561
808
|
}
|
|
562
809
|
});
|
|
563
|
-
const _hoisted_1$
|
|
810
|
+
const _hoisted_1$l = ["id", "aria-checked", "aria-labelledby", "aria-describedby", "disabled"];
|
|
564
811
|
const _hoisted_2$g = {
|
|
565
812
|
key: 0,
|
|
566
813
|
class: "flex flex-col"
|
|
@@ -631,7 +878,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
631
878
|
]),
|
|
632
879
|
"aria-hidden": "true"
|
|
633
880
|
}, null, 2)
|
|
634
|
-
], 10, _hoisted_1$
|
|
881
|
+
], 10, _hoisted_1$l),
|
|
635
882
|
__props.label || __props.description ? (openBlock(), createElementBlock("div", _hoisted_2$g, [
|
|
636
883
|
__props.label ? (openBlock(), createElementBlock("span", {
|
|
637
884
|
key: 0,
|
|
@@ -648,7 +895,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
648
895
|
};
|
|
649
896
|
}
|
|
650
897
|
});
|
|
651
|
-
const _hoisted_1$
|
|
898
|
+
const _hoisted_1$k = { class: "w-full" };
|
|
652
899
|
const _hoisted_2$f = {
|
|
653
900
|
key: 0,
|
|
654
901
|
class: "mb-2 flex justify-between text-sm"
|
|
@@ -690,7 +937,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
690
937
|
modelValue.value = Number(target.value);
|
|
691
938
|
};
|
|
692
939
|
return (_ctx, _cache) => {
|
|
693
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
940
|
+
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
694
941
|
__props.showValue ? (openBlock(), createElementBlock("div", _hoisted_2$f, [
|
|
695
942
|
createElementVNode("span", _hoisted_3$e, toDisplayString(__props.min), 1),
|
|
696
943
|
createElementVNode("span", _hoisted_4$a, toDisplayString(displayValue.value), 1),
|
|
@@ -719,7 +966,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
719
966
|
}
|
|
720
967
|
});
|
|
721
968
|
const Slider = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-a411f1b4"]]);
|
|
722
|
-
const _hoisted_1$
|
|
969
|
+
const _hoisted_1$j = { class: "relative" };
|
|
723
970
|
const _hoisted_2$e = ["id", "disabled", "aria-expanded", "aria-controls"];
|
|
724
971
|
const _hoisted_3$d = { class: "flex-1 truncate" };
|
|
725
972
|
const _hoisted_4$9 = { class: "flex items-center gap-1" };
|
|
@@ -870,7 +1117,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
870
1117
|
size: toRef(props, "size")
|
|
871
1118
|
});
|
|
872
1119
|
return (_ctx, _cache) => {
|
|
873
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1120
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
874
1121
|
createElementVNode("button", {
|
|
875
1122
|
id: triggerId.value,
|
|
876
1123
|
ref_key: "triggerRef",
|
|
@@ -1010,7 +1257,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1010
1257
|
};
|
|
1011
1258
|
}
|
|
1012
1259
|
});
|
|
1013
|
-
const _hoisted_1$
|
|
1260
|
+
const _hoisted_1$i = { class: "space-y-4" };
|
|
1014
1261
|
const _hoisted_2$d = ["accept", "multiple", "disabled"];
|
|
1015
1262
|
const _hoisted_3$c = { class: "space-y-2" };
|
|
1016
1263
|
const _hoisted_4$8 = { class: "text-sm font-medium text-gray-700 dark:text-gray-300" };
|
|
@@ -1158,7 +1405,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1158
1405
|
return "heroicons:document";
|
|
1159
1406
|
};
|
|
1160
1407
|
return (_ctx, _cache) => {
|
|
1161
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1408
|
+
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
1162
1409
|
createElementVNode("div", {
|
|
1163
1410
|
class: normalizeClass(dropzoneClasses.value),
|
|
1164
1411
|
onDrop: withModifiers(handleDrop, ["prevent"]),
|
|
@@ -1217,7 +1464,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1217
1464
|
};
|
|
1218
1465
|
}
|
|
1219
1466
|
});
|
|
1220
|
-
const _hoisted_1$
|
|
1467
|
+
const _hoisted_1$h = { class: "flex items-center gap-1" };
|
|
1221
1468
|
const _hoisted_2$c = ["disabled", "onClick", "onMousemove"];
|
|
1222
1469
|
const _hoisted_3$b = {
|
|
1223
1470
|
key: 0,
|
|
@@ -1286,7 +1533,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1286
1533
|
hoverValue.value = null;
|
|
1287
1534
|
};
|
|
1288
1535
|
return (_ctx, _cache) => {
|
|
1289
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1536
|
+
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
1290
1537
|
createElementVNode("div", {
|
|
1291
1538
|
class: "flex items-center",
|
|
1292
1539
|
onMouseleave: handleMouseLeave
|
|
@@ -1326,7 +1573,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1326
1573
|
};
|
|
1327
1574
|
}
|
|
1328
1575
|
});
|
|
1329
|
-
const _hoisted_1$
|
|
1576
|
+
const _hoisted_1$g = { class: "relative inline-block" };
|
|
1330
1577
|
const _hoisted_2$b = {
|
|
1331
1578
|
key: 0,
|
|
1332
1579
|
class: "block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"
|
|
@@ -1409,7 +1656,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1409
1656
|
isOpen.value = false;
|
|
1410
1657
|
};
|
|
1411
1658
|
return (_ctx, _cache) => {
|
|
1412
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1659
|
+
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
1413
1660
|
__props.label ? (openBlock(), createElementBlock("label", _hoisted_2$b, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
|
|
1414
1661
|
createElementVNode("button", {
|
|
1415
1662
|
type: "button",
|
|
@@ -1500,7 +1747,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1500
1747
|
};
|
|
1501
1748
|
}
|
|
1502
1749
|
});
|
|
1503
|
-
const _hoisted_1$
|
|
1750
|
+
const _hoisted_1$f = { class: "space-y-2" };
|
|
1504
1751
|
const _hoisted_2$a = {
|
|
1505
1752
|
key: 0,
|
|
1506
1753
|
class: "flex justify-between text-sm font-medium text-gray-700 dark:text-gray-300"
|
|
@@ -1587,7 +1834,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1587
1834
|
}
|
|
1588
1835
|
};
|
|
1589
1836
|
return (_ctx, _cache) => {
|
|
1590
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1837
|
+
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
1591
1838
|
__props.showLabels ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
1592
1839
|
createElementVNode("span", null, toDisplayString(__props.formatLabel(minValue.value)), 1),
|
|
1593
1840
|
createElementVNode("span", null, toDisplayString(__props.formatLabel(maxValue.value)), 1)
|
|
@@ -1629,7 +1876,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1629
1876
|
};
|
|
1630
1877
|
}
|
|
1631
1878
|
});
|
|
1632
|
-
const _hoisted_1$
|
|
1879
|
+
const _hoisted_1$e = ["aria-expanded", "aria-controls"];
|
|
1633
1880
|
const _hoisted_2$9 = ["id", "name", "placeholder", "disabled", "aria-controls"];
|
|
1634
1881
|
const _hoisted_3$8 = { class: "flex items-center gap-1" };
|
|
1635
1882
|
const _hoisted_4$6 = ["id", "aria-label", "aria-multiselectable"];
|
|
@@ -1801,7 +2048,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1801
2048
|
"aria-hidden": "true"
|
|
1802
2049
|
}, null, 8, ["class"])
|
|
1803
2050
|
])
|
|
1804
|
-
], 10, _hoisted_1$
|
|
2051
|
+
], 10, _hoisted_1$e),
|
|
1805
2052
|
(openBlock(), createBlock(Teleport, {
|
|
1806
2053
|
to: teleportTarget.value,
|
|
1807
2054
|
disabled: teleportDisabled.value
|
|
@@ -1869,7 +2116,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1869
2116
|
};
|
|
1870
2117
|
}
|
|
1871
2118
|
});
|
|
1872
|
-
const _hoisted_1$
|
|
2119
|
+
const _hoisted_1$d = { class: "relative" };
|
|
1873
2120
|
const _hoisted_2$8 = {
|
|
1874
2121
|
key: 0,
|
|
1875
2122
|
class: "text-red-500 ml-0.5"
|
|
@@ -2027,8 +2274,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2027
2274
|
searchQuery.value = "";
|
|
2028
2275
|
}
|
|
2029
2276
|
return (_ctx, _cache) => {
|
|
2030
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2031
|
-
__props.label ? (openBlock(), createBlock(_sfc_main$
|
|
2277
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
2278
|
+
__props.label ? (openBlock(), createBlock(_sfc_main$v, {
|
|
2032
2279
|
key: 0,
|
|
2033
2280
|
"html-for": inputId.value,
|
|
2034
2281
|
error: __props.error
|
|
@@ -2076,7 +2323,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2076
2323
|
class: "size-4 text-gray-400"
|
|
2077
2324
|
})
|
|
2078
2325
|
], 10, _hoisted_3$7),
|
|
2079
|
-
__props.help && !hasError.value ? (openBlock(), createBlock(_sfc_main$
|
|
2326
|
+
__props.help && !hasError.value ? (openBlock(), createBlock(_sfc_main$u, {
|
|
2080
2327
|
key: 1,
|
|
2081
2328
|
id: helpId.value
|
|
2082
2329
|
}, {
|
|
@@ -2085,7 +2332,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2085
2332
|
]),
|
|
2086
2333
|
_: 1
|
|
2087
2334
|
}, 8, ["id"])) : createCommentVNode("", true),
|
|
2088
|
-
hasError.value ? (openBlock(), createBlock(_sfc_main$
|
|
2335
|
+
hasError.value ? (openBlock(), createBlock(_sfc_main$u, {
|
|
2089
2336
|
key: 2,
|
|
2090
2337
|
id: helpId.value,
|
|
2091
2338
|
error: true
|
|
@@ -2162,7 +2409,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2162
2409
|
};
|
|
2163
2410
|
}
|
|
2164
2411
|
});
|
|
2165
|
-
const _hoisted_1$
|
|
2412
|
+
const _hoisted_1$c = { class: "flex items-center justify-between" };
|
|
2166
2413
|
const _hoisted_2$7 = { class: "flex items-center gap-3" };
|
|
2167
2414
|
const _hoisted_3$6 = { class: "text-lg font-semibold text-gray-900 dark:text-white" };
|
|
2168
2415
|
const _hoisted_4$4 = {
|
|
@@ -2208,7 +2455,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2208
2455
|
]),
|
|
2209
2456
|
onClick: _cache[0] || (_cache[0] = ($event) => __props.collapsible && toggleCollapse())
|
|
2210
2457
|
}, [
|
|
2211
|
-
createElementVNode("div", _hoisted_1$
|
|
2458
|
+
createElementVNode("div", _hoisted_1$c, [
|
|
2212
2459
|
createElementVNode("div", _hoisted_2$7, [
|
|
2213
2460
|
__props.icon ? (openBlock(), createElementBlock("div", {
|
|
2214
2461
|
key: 0,
|
|
@@ -2277,79 +2524,68 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2277
2524
|
};
|
|
2278
2525
|
}
|
|
2279
2526
|
});
|
|
2280
|
-
const _hoisted_1$c = { key: 1 };
|
|
2281
2527
|
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
2282
|
-
__name: "
|
|
2528
|
+
__name: "InputGroup",
|
|
2283
2529
|
props: {
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
loading: { type: Boolean },
|
|
2289
|
-
loadingLabel: {},
|
|
2290
|
-
disabled: { type: Boolean },
|
|
2291
|
-
showCancel: { type: Boolean, default: true },
|
|
2292
|
-
align: { default: "right" },
|
|
2293
|
-
stackOnMobile: { type: Boolean, default: false },
|
|
2294
|
-
submitVariant: { default: "primary" }
|
|
2530
|
+
size: { default: "md" },
|
|
2531
|
+
prefix: {},
|
|
2532
|
+
suffix: {},
|
|
2533
|
+
class: {}
|
|
2295
2534
|
},
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
const
|
|
2535
|
+
setup(__props) {
|
|
2536
|
+
const props = __props;
|
|
2537
|
+
const slots = useSlots();
|
|
2538
|
+
const hasPrefix = computed(() => !!props.prefix || !!slots.prefix);
|
|
2539
|
+
const hasSuffix = computed(() => !!props.suffix || !!slots.suffix);
|
|
2540
|
+
const sizeClasses = {
|
|
2541
|
+
sm: { addon: "px-2.5 py-1.5", text: "text-sm" },
|
|
2542
|
+
md: { addon: "px-3 py-2", text: "text-sm" },
|
|
2543
|
+
lg: { addon: "px-4 py-3", text: "text-base" }
|
|
2544
|
+
};
|
|
2545
|
+
const addonClasses = computed(() => [
|
|
2546
|
+
sizeClasses[props.size].addon,
|
|
2547
|
+
sizeClasses[props.size].text,
|
|
2548
|
+
"inline-flex items-center text-gray-500 dark:text-gray-400",
|
|
2549
|
+
"bg-gray-50 dark:bg-gray-800",
|
|
2550
|
+
"border border-gray-300 dark:border-gray-600"
|
|
2551
|
+
]);
|
|
2552
|
+
const prefixClasses = computed(() => [
|
|
2553
|
+
...addonClasses.value,
|
|
2554
|
+
"rounded-l-md border-r-0"
|
|
2555
|
+
]);
|
|
2556
|
+
const suffixClasses = computed(() => [
|
|
2557
|
+
...addonClasses.value,
|
|
2558
|
+
"rounded-r-md border-l-0"
|
|
2559
|
+
]);
|
|
2299
2560
|
return (_ctx, _cache) => {
|
|
2300
2561
|
return openBlock(), createElementBlock("div", {
|
|
2301
|
-
class: normalizeClass([
|
|
2302
|
-
"flex gap-3 pt-2",
|
|
2303
|
-
__props.align === "left" && "justify-start",
|
|
2304
|
-
__props.align === "center" && "justify-center",
|
|
2305
|
-
__props.align === "right" && "justify-end",
|
|
2306
|
-
__props.align === "stretch" && "[&>*]:flex-1",
|
|
2307
|
-
__props.stackOnMobile && "flex-col sm:flex-row"
|
|
2308
|
-
])
|
|
2562
|
+
class: normalizeClass(["flex", props.class])
|
|
2309
2563
|
}, [
|
|
2310
|
-
|
|
2564
|
+
hasPrefix.value ? (openBlock(), createElementBlock("span", {
|
|
2311
2565
|
key: 0,
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
}, {
|
|
2320
|
-
default: withCtx(() => [
|
|
2321
|
-
__props.cancelIcon ? (openBlock(), createBlock(unref(Icon), {
|
|
2322
|
-
key: 0,
|
|
2323
|
-
icon: __props.cancelIcon,
|
|
2324
|
-
class: "w-5 h-5"
|
|
2325
|
-
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
2326
|
-
createTextVNode(" " + toDisplayString(__props.cancelLabel), 1)
|
|
2327
|
-
]),
|
|
2328
|
-
_: 1
|
|
2329
|
-
}, 8, ["disabled", "class"])) : createCommentVNode("", true),
|
|
2330
|
-
createVNode(_sfc_main$u, {
|
|
2331
|
-
type: "submit",
|
|
2332
|
-
variant: __props.submitVariant,
|
|
2333
|
-
disabled: __props.disabled || __props.loading,
|
|
2334
|
-
loading: __props.loading,
|
|
2566
|
+
class: normalizeClass(prefixClasses.value)
|
|
2567
|
+
}, [
|
|
2568
|
+
renderSlot(_ctx.$slots, "prefix", {}, () => [
|
|
2569
|
+
createTextVNode(toDisplayString(__props.prefix), 1)
|
|
2570
|
+
])
|
|
2571
|
+
], 2)) : createCommentVNode("", true),
|
|
2572
|
+
createElementVNode("div", {
|
|
2335
2573
|
class: normalizeClass([
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
])
|
|
2350
|
-
|
|
2351
|
-
}, 8, ["variant", "disabled", "loading", "class"]),
|
|
2352
|
-
renderSlot(_ctx.$slots, "extra")
|
|
2574
|
+
"flex-1 min-w-0",
|
|
2575
|
+
hasPrefix.value && "[&>*]:rounded-l-none [&>*]:border-l-0",
|
|
2576
|
+
hasSuffix.value && "[&>*]:rounded-r-none [&>*]:border-r-0"
|
|
2577
|
+
])
|
|
2578
|
+
}, [
|
|
2579
|
+
renderSlot(_ctx.$slots, "default")
|
|
2580
|
+
], 2),
|
|
2581
|
+
hasSuffix.value ? (openBlock(), createElementBlock("span", {
|
|
2582
|
+
key: 1,
|
|
2583
|
+
class: normalizeClass(suffixClasses.value)
|
|
2584
|
+
}, [
|
|
2585
|
+
renderSlot(_ctx.$slots, "suffix", {}, () => [
|
|
2586
|
+
createTextVNode(toDisplayString(__props.suffix), 1)
|
|
2587
|
+
])
|
|
2588
|
+
], 2)) : createCommentVNode("", true)
|
|
2353
2589
|
], 2);
|
|
2354
2590
|
};
|
|
2355
2591
|
}
|
|
@@ -2390,7 +2626,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2390
2626
|
isTouched.value = true;
|
|
2391
2627
|
}
|
|
2392
2628
|
return (_ctx, _cache) => {
|
|
2393
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2629
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
2394
2630
|
icon: "lucide:mail",
|
|
2395
2631
|
size: __props.size,
|
|
2396
2632
|
disabled: __props.disabled,
|
|
@@ -2490,7 +2726,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2490
2726
|
return (_ctx, _cache) => {
|
|
2491
2727
|
var _a, _b;
|
|
2492
2728
|
return openBlock(), createElementBlock("div", null, [
|
|
2493
|
-
createVNode(_sfc_main$
|
|
2729
|
+
createVNode(_sfc_main$t, {
|
|
2494
2730
|
icon: "lucide:lock",
|
|
2495
2731
|
size: __props.size,
|
|
2496
2732
|
disabled: __props.disabled
|
|
@@ -2737,7 +2973,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2737
2973
|
ref_key: "dropdownRef",
|
|
2738
2974
|
ref: dropdownRef
|
|
2739
2975
|
}, [
|
|
2740
|
-
createVNode(_sfc_main$
|
|
2976
|
+
createVNode(_sfc_main$t, {
|
|
2741
2977
|
size: __props.size,
|
|
2742
2978
|
disabled: __props.disabled
|
|
2743
2979
|
}, {
|
|
@@ -2887,7 +3123,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2887
3123
|
}
|
|
2888
3124
|
}
|
|
2889
3125
|
return (_ctx, _cache) => {
|
|
2890
|
-
return openBlock(), createBlock(_sfc_main$
|
|
3126
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
2891
3127
|
size: __props.size,
|
|
2892
3128
|
disabled: __props.disabled
|
|
2893
3129
|
}, createSlots({
|
|
@@ -3025,7 +3261,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3025
3261
|
}
|
|
3026
3262
|
}
|
|
3027
3263
|
return (_ctx, _cache) => {
|
|
3028
|
-
return openBlock(), createBlock(_sfc_main$
|
|
3264
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
3029
3265
|
size: __props.size,
|
|
3030
3266
|
disabled: __props.disabled
|
|
3031
3267
|
}, createSlots({
|
|
@@ -3113,7 +3349,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3113
3349
|
displayValue.value = target.value;
|
|
3114
3350
|
}
|
|
3115
3351
|
return (_ctx, _cache) => {
|
|
3116
|
-
return openBlock(), createBlock(_sfc_main$
|
|
3352
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
3117
3353
|
size: __props.size,
|
|
3118
3354
|
disabled: __props.disabled
|
|
3119
3355
|
}, {
|
|
@@ -3315,7 +3551,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3315
3551
|
}
|
|
3316
3552
|
}
|
|
3317
3553
|
return (_ctx, _cache) => {
|
|
3318
|
-
return openBlock(), createBlock(_sfc_main$
|
|
3554
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
3319
3555
|
icon: "lucide:link",
|
|
3320
3556
|
size: __props.size,
|
|
3321
3557
|
disabled: __props.disabled,
|
|
@@ -3720,7 +3956,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3720
3956
|
}
|
|
3721
3957
|
return (_ctx, _cache) => {
|
|
3722
3958
|
return openBlock(), createElementBlock("div", null, [
|
|
3723
|
-
__props.label || _ctx.$slots.label ? (openBlock(), createBlock(_sfc_main$
|
|
3959
|
+
__props.label || _ctx.$slots.label ? (openBlock(), createBlock(_sfc_main$v, {
|
|
3724
3960
|
key: 0,
|
|
3725
3961
|
error: __props.error
|
|
3726
3962
|
}, {
|
|
@@ -3753,13 +3989,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3753
3989
|
__props.maxLength ? (openBlock(), createElementBlock("span", _hoisted_5, " / " + toDisplayString(__props.maxLength), 1)) : createCommentVNode("", true)
|
|
3754
3990
|
])
|
|
3755
3991
|
])) : createCommentVNode("", true),
|
|
3756
|
-
__props.hint && !__props.error ? (openBlock(), createBlock(_sfc_main$
|
|
3992
|
+
__props.hint && !__props.error ? (openBlock(), createBlock(_sfc_main$u, { key: 2 }, {
|
|
3757
3993
|
default: withCtx(() => [
|
|
3758
3994
|
createTextVNode(toDisplayString(__props.hint), 1)
|
|
3759
3995
|
]),
|
|
3760
3996
|
_: 1
|
|
3761
3997
|
})) : createCommentVNode("", true),
|
|
3762
|
-
__props.error ? (openBlock(), createBlock(_sfc_main$
|
|
3998
|
+
__props.error ? (openBlock(), createBlock(_sfc_main$u, {
|
|
3763
3999
|
key: 3,
|
|
3764
4000
|
error: true
|
|
3765
4001
|
}, {
|
|
@@ -3824,7 +4060,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3824
4060
|
}
|
|
3825
4061
|
return (_ctx, _cache) => {
|
|
3826
4062
|
return openBlock(), createElementBlock("div", null, [
|
|
3827
|
-
__props.label ? (openBlock(), createBlock(_sfc_main$
|
|
4063
|
+
__props.label ? (openBlock(), createBlock(_sfc_main$v, {
|
|
3828
4064
|
key: 0,
|
|
3829
4065
|
error: __props.error
|
|
3830
4066
|
}, {
|
|
@@ -3838,7 +4074,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3838
4074
|
class: normalizeClass([gridClass.value, __props.label ? "mt-2" : ""])
|
|
3839
4075
|
}, [
|
|
3840
4076
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
|
|
3841
|
-
return openBlock(), createBlock(_sfc_main$
|
|
4077
|
+
return openBlock(), createBlock(_sfc_main$z, {
|
|
3842
4078
|
key: option.value,
|
|
3843
4079
|
"model-value": isChecked(option.value),
|
|
3844
4080
|
label: option.label,
|
|
@@ -3847,13 +4083,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3847
4083
|
}, null, 8, ["model-value", "label", "disabled", "onUpdate:modelValue"]);
|
|
3848
4084
|
}), 128))
|
|
3849
4085
|
], 2),
|
|
3850
|
-
__props.hint && !__props.error ? (openBlock(), createBlock(_sfc_main$
|
|
4086
|
+
__props.hint && !__props.error ? (openBlock(), createBlock(_sfc_main$u, { key: 1 }, {
|
|
3851
4087
|
default: withCtx(() => [
|
|
3852
4088
|
createTextVNode(toDisplayString(__props.hint), 1)
|
|
3853
4089
|
]),
|
|
3854
4090
|
_: 1
|
|
3855
4091
|
})) : createCommentVNode("", true),
|
|
3856
|
-
__props.error ? (openBlock(), createBlock(_sfc_main$
|
|
4092
|
+
__props.error ? (openBlock(), createBlock(_sfc_main$u, {
|
|
3857
4093
|
key: 2,
|
|
3858
4094
|
error: true
|
|
3859
4095
|
}, {
|
|
@@ -3867,35 +4103,39 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3867
4103
|
}
|
|
3868
4104
|
});
|
|
3869
4105
|
export {
|
|
3870
|
-
_sfc_main as A,
|
|
4106
|
+
_sfc_main$5 as A,
|
|
4107
|
+
_sfc_main$4 as B,
|
|
4108
|
+
_sfc_main$3 as C,
|
|
4109
|
+
_sfc_main$1 as D,
|
|
4110
|
+
_sfc_main as E,
|
|
3871
4111
|
Slider as S,
|
|
3872
4112
|
TagsInput as T,
|
|
3873
|
-
_sfc_main$
|
|
3874
|
-
_sfc_main$
|
|
3875
|
-
_sfc_main$
|
|
3876
|
-
_sfc_main$
|
|
3877
|
-
_sfc_main$
|
|
3878
|
-
_sfc_main$
|
|
3879
|
-
_sfc_main$
|
|
3880
|
-
_sfc_main$
|
|
3881
|
-
_sfc_main$
|
|
3882
|
-
_sfc_main$
|
|
3883
|
-
_sfc_main$
|
|
3884
|
-
_sfc_main$
|
|
3885
|
-
_sfc_main$
|
|
3886
|
-
_sfc_main$
|
|
3887
|
-
_sfc_main$
|
|
3888
|
-
_sfc_main$
|
|
3889
|
-
_sfc_main$
|
|
3890
|
-
_sfc_main$
|
|
3891
|
-
_sfc_main$
|
|
3892
|
-
_sfc_main$
|
|
3893
|
-
_sfc_main$
|
|
3894
|
-
_sfc_main$
|
|
3895
|
-
_sfc_main$
|
|
3896
|
-
_sfc_main$
|
|
3897
|
-
_sfc_main$
|
|
3898
|
-
_sfc_main$
|
|
3899
|
-
_sfc_main$
|
|
4113
|
+
_sfc_main$w as _,
|
|
4114
|
+
_sfc_main$v as a,
|
|
4115
|
+
_sfc_main$u as b,
|
|
4116
|
+
_sfc_main$s as c,
|
|
4117
|
+
_sfc_main$r as d,
|
|
4118
|
+
_sfc_main$q as e,
|
|
4119
|
+
_sfc_main$p as f,
|
|
4120
|
+
_sfc_main$o as g,
|
|
4121
|
+
_sfc_main$n as h,
|
|
4122
|
+
_sfc_main$m as i,
|
|
4123
|
+
_sfc_main$k as j,
|
|
4124
|
+
_sfc_main$j as k,
|
|
4125
|
+
_sfc_main$i as l,
|
|
4126
|
+
_sfc_main$h as m,
|
|
4127
|
+
_sfc_main$g as n,
|
|
4128
|
+
_sfc_main$f as o,
|
|
4129
|
+
_sfc_main$e as p,
|
|
4130
|
+
_sfc_main$d as q,
|
|
4131
|
+
_sfc_main$x as r,
|
|
4132
|
+
_sfc_main$t as s,
|
|
4133
|
+
_sfc_main$c as t,
|
|
4134
|
+
_sfc_main$b as u,
|
|
4135
|
+
_sfc_main$a as v,
|
|
4136
|
+
_sfc_main$9 as w,
|
|
4137
|
+
_sfc_main$8 as x,
|
|
4138
|
+
_sfc_main$7 as y,
|
|
4139
|
+
_sfc_main$6 as z
|
|
3900
4140
|
};
|
|
3901
|
-
//# sourceMappingURL=CheckboxGroup.vue_vue_type_script_setup_true_lang-
|
|
4141
|
+
//# sourceMappingURL=CheckboxGroup.vue_vue_type_script_setup_true_lang-CZ4Sox5V.js.map
|