@8wave/ai-elements 0.124.0-beta.7 → 0.124.0-beta.9
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/_chunks/{PkChatbotFilePreview-Dk748hZ0.js → PkChatbotFilePreview-DuvRnOes.js} +2 -2
- package/dist/_chunks/{PkChatbotFilePreview-Dk748hZ0.js.map → PkChatbotFilePreview-DuvRnOes.js.map} +1 -1
- package/dist/_chunks/{PkEditorRadioButtons-DWNs2pp4.js → PkEditorRadioButtons-Cif9q08d.js} +2 -2
- package/dist/_chunks/{PkEditorRadioButtons-DWNs2pp4.js.map → PkEditorRadioButtons-Cif9q08d.js.map} +1 -1
- package/dist/_chunks/{PkFilePreview-CC2W-RXG.js → PkFilePreview-D_piCsAW.js} +203 -203
- package/dist/_chunks/{PkFilePreview-CC2W-RXG.js.map → PkFilePreview-D_piCsAW.js.map} +1 -1
- package/dist/_chunks/{PkFilePreviewDialog-DYU2CUZS.js → PkFilePreviewDialog-Bq0ipzrJ.js} +3 -3
- package/dist/_chunks/{PkFilePreviewDialog-DYU2CUZS.js.map → PkFilePreviewDialog-Bq0ipzrJ.js.map} +1 -1
- package/dist/_chunks/{PkHeldImage-BUHSVQzX.js → PkHeldImage-EMuOT-Iv.js} +2 -2
- package/dist/_chunks/{PkHeldImage-BUHSVQzX.js.map → PkHeldImage-EMuOT-Iv.js.map} +1 -1
- package/dist/_chunks/{PkLazyImg-B7PfEr4P.js → PkLazyImg-CLCyyzuo.js} +2 -2
- package/dist/_chunks/{PkLazyImg-B7PfEr4P.js.map → PkLazyImg-CLCyyzuo.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-CeWyL_2B.js → PkStreamingMarkdown-CHwrLP75.js} +3 -3
- package/dist/_chunks/{PkStreamingMarkdown-CeWyL_2B.js.map → PkStreamingMarkdown-CHwrLP75.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-BMj7-urz.js → PkToolChatFile-DO4zjMJr.js} +4 -4
- package/dist/_chunks/{PkToolChatFile-BMj7-urz.js.map → PkToolChatFile-DO4zjMJr.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-D98zUqNQ.js → PkToolRequestGeolocation-C9PSITRU.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-D98zUqNQ.js.map → PkToolRequestGeolocation-C9PSITRU.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-DwcRnUcd.js → PkToolRequestOAuthConnection-CWi5SeCi.js} +3 -3
- package/dist/_chunks/{PkToolRequestOAuthConnection-DwcRnUcd.js.map → PkToolRequestOAuthConnection-CWi5SeCi.js.map} +1 -1
- package/dist/_chunks/{PkToolShareDocument-1zhZDa0R.js → PkToolShareDocument-Buzu27rQ.js} +6 -6
- package/dist/_chunks/{PkToolShareDocument-1zhZDa0R.js.map → PkToolShareDocument-Buzu27rQ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-BoJC-NtV.js → PkToolShowArtifact-B2-3-k2F.js} +4 -4
- package/dist/_chunks/{PkToolShowArtifact-BoJC-NtV.js.map → PkToolShowArtifact-B2-3-k2F.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-Dvp1SwBY.js → PkToolShowCalendarEvent-mVY2FS24.js} +4 -4
- package/dist/_chunks/{PkToolShowCalendarEvent-Dvp1SwBY.js.map → PkToolShowCalendarEvent-mVY2FS24.js.map} +1 -1
- package/dist/_chunks/{PkToolShowComparison-BPfyn08U.js → PkToolShowComparison-7NCImocZ.js} +4 -4
- package/dist/_chunks/{PkToolShowComparison-BPfyn08U.js.map → PkToolShowComparison-7NCImocZ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-CErVBzjl.js → PkToolShowContactForm-DbOZHB_G.js} +5 -5
- package/dist/_chunks/{PkToolShowContactForm-CErVBzjl.js.map → PkToolShowContactForm-DbOZHB_G.js.map} +1 -1
- package/dist/_chunks/{PkToolShowDiagram-C1Q5jhbk.js → PkToolShowDiagram-BHd-C_cx.js} +4 -4
- package/dist/_chunks/{PkToolShowDiagram-C1Q5jhbk.js.map → PkToolShowDiagram-BHd-C_cx.js.map} +1 -1
- package/dist/_chunks/{PkToolShowEmail-Ckxmf4jc.js → PkToolShowEmail-B9F7dnif.js} +4 -4
- package/dist/_chunks/{PkToolShowEmail-Ckxmf4jc.js.map → PkToolShowEmail-B9F7dnif.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-B7Q79XAb.js → PkToolShowForm-o2LuWDNq.js} +6 -6
- package/dist/_chunks/{PkToolShowForm-B7Q79XAb.js.map → PkToolShowForm-o2LuWDNq.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-CxeQcE6A.js → PkToolShowImageGallery-DAcW2Dau.js} +3 -3
- package/dist/_chunks/{PkToolShowImageGallery-CxeQcE6A.js.map → PkToolShowImageGallery-DAcW2Dau.js.map} +1 -1
- package/dist/_chunks/{PkToolShowLocation-Drq1nnwN.js → PkToolShowLocation-CLS9HQIJ.js} +4 -4
- package/dist/_chunks/{PkToolShowLocation-Drq1nnwN.js.map → PkToolShowLocation-CLS9HQIJ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowMessage-h2LUBvO4.js → PkToolShowMessage-BoKDMyvU.js} +4 -4
- package/dist/_chunks/{PkToolShowMessage-h2LUBvO4.js.map → PkToolShowMessage-BoKDMyvU.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-DDqYsHNq.js → PkToolShowProductList-OYwQCHar.js} +4 -4
- package/dist/_chunks/{PkToolShowProductList-DDqYsHNq.js.map → PkToolShowProductList-OYwQCHar.js.map} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-C8GfpW7f.js → PkToolShowQrCode-e6DxEcWY.js} +4 -4
- package/dist/_chunks/{PkToolShowQrCode-C8GfpW7f.js.map → PkToolShowQrCode-e6DxEcWY.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-CTc2s510.js → PkToolShowSources-CUNneZCp.js} +4 -4
- package/dist/_chunks/{PkToolShowSources-CTc2s510.js.map → PkToolShowSources-CUNneZCp.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-vui8vph1.js → PkToolShowSuggestedReply-BTE7TZ4Z.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-vui8vph1.js.map → PkToolShowSuggestedReply-BTE7TZ4Z.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-C2kh6pVN.js → PkToolShowVideo-bTWeXtZd.js} +3 -3
- package/dist/_chunks/{PkToolShowVideo-C2kh6pVN.js.map → PkToolShowVideo-bTWeXtZd.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWeather-7_f5k1pX.js → PkToolShowWeather-Nr7POGAS.js} +2 -2
- package/dist/_chunks/{PkToolShowWeather-7_f5k1pX.js.map → PkToolShowWeather-Nr7POGAS.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-By7zBIVa.js → PkToolShowWebPages-DNbdkSSz.js} +4 -4
- package/dist/_chunks/{PkToolShowWebPages-By7zBIVa.js.map → PkToolShowWebPages-DNbdkSSz.js.map} +1 -1
- package/dist/_chunks/{VvButtonLocalized-DCJiCUYU.js → VvButtonLocalized-KEhD3ono.js} +2 -2
- package/dist/_chunks/{VvButtonLocalized-DCJiCUYU.js.map → VvButtonLocalized-KEhD3ono.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-tzyEhJUc.js → VvCheckboxGroup.es-D67JvxVf.js} +2 -2
- package/dist/_chunks/{VvCheckboxGroup.es-tzyEhJUc.js.map → VvCheckboxGroup.es-D67JvxVf.js.map} +1 -1
- package/dist/_chunks/{VvCombobox.es-D8QFCY85.js → VvCombobox.es-Bb9Dbtdg.js} +457 -457
- package/dist/_chunks/{VvCombobox.es-D8QFCY85.js.map → VvCombobox.es-Bb9Dbtdg.js.map} +1 -1
- package/dist/_chunks/{VvInputText.es-CaN-GUXU.js → VvInputText.es-CWgEXnVy.js} +396 -396
- package/dist/_chunks/{VvInputText.es-CaN-GUXU.js.map → VvInputText.es-CWgEXnVy.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es-D73Elvh0.js → VvRadioGroup.es-B3UbDh0z.js} +2 -2
- package/dist/_chunks/{VvRadioGroup.es-D73Elvh0.js.map → VvRadioGroup.es-B3UbDh0z.js.map} +1 -1
- package/dist/_chunks/{VvSelect.es-8ZE8Zjm9.js → VvSelect.es-BZkBK0gK.js} +170 -170
- package/dist/_chunks/{VvSelect.es-8ZE8Zjm9.js.map → VvSelect.es-BZkBK0gK.js.map} +1 -1
- package/dist/_chunks/{VvTextarea.es-BNgA61wM.js → VvTextarea.es-C8vAvoJh.js} +139 -139
- package/dist/_chunks/{VvTextarea.es-BNgA61wM.js.map → VvTextarea.es-C8vAvoJh.js.map} +1 -1
- package/dist/_chunks/{dist-m75acBC9.js → dist-B3-I_01H.js} +67 -15
- package/dist/_chunks/dist-B3-I_01H.js.map +1 -0
- package/dist/_chunks/{index.es-fkUmGg9G.js → index.es-C7ON2BA3.js} +38 -38
- package/dist/_chunks/{index.es-fkUmGg9G.js.map → index.es-C7ON2BA3.js.map} +1 -1
- package/dist/_chunks/{index.es-DRbDRAW5.js → index.es-CYAq7LJb.js} +10 -10
- package/dist/_chunks/{index.es-DRbDRAW5.js.map → index.es-CYAq7LJb.js.map} +1 -1
- package/dist/_chunks/{utils-DAQfsk2H.js → utils-BHvRrCzW.js} +6 -2
- package/dist/_chunks/utils-BHvRrCzW.js.map +1 -0
- package/dist/ai-elements.es.js +2747 -2727
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/_chunks/utils-BuxgMuKv.js.map +1 -1
- package/dist-vue/apps/web-component/src/pageTools/snapshot.d.ts +9 -0
- package/dist-vue/packages/components/src/chat/PkPageControlBar.d.ts +6 -0
- package/dist-vue/packages/components/src/chat/utils.d.ts +8 -0
- package/package.json +1 -1
- package/dist/_chunks/dist-m75acBC9.js.map +0 -1
- package/dist/_chunks/utils-DAQfsk2H.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { A as e, D as t, Dt as n, E as r, Et as i, H as a, M as o, P as s, Q as c, S as l, Tt as u, V as d, Y as ee, _ as f, b as te, f as p, g as m, gt as ne, h, k as re, kt as g, nt as ie, ot as _, q as v, r as ae, s as oe, tt as y, ut as se, v as b, w as x, wt as S, xt as C, y as w, z as T } from "./vue.runtime.esm-bundler-C2U5uTqB.js";
|
|
2
2
|
import { a as E, i as D, t as O } from "./iconify-oSMMdRMF.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
3
|
+
import { d as k, u as ce } from "./dist-B3-I_01H.js";
|
|
4
|
+
import { t as A } from "./dot-prop-Dmp6Zjqs.js";
|
|
5
5
|
// ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.25_@json-render+core@0.19.0_zod@4.6.7__@volverjs+style@0.1.32_@vue_6457cdc65e61a009108dae6427ee3925/node_modules/@volverjs/ui-vue/dist/components/VvSelect/VvSelect.es.js
|
|
6
6
|
re(), _(), u(), ae();
|
|
7
|
-
var
|
|
7
|
+
var le = {
|
|
8
8
|
showPassword: "eye-on",
|
|
9
9
|
hidePassword: "eye-off",
|
|
10
10
|
showDatePicker: "calendar",
|
|
@@ -15,17 +15,17 @@ var ue = {
|
|
|
15
15
|
remove: "trash",
|
|
16
16
|
edit: "edit",
|
|
17
17
|
download: "download"
|
|
18
|
-
},
|
|
18
|
+
}, j = { prefix: "normal" }, ue = /* @__PURE__ */ (function(e) {
|
|
19
19
|
return e.local = "local", e.session = "session", e;
|
|
20
|
-
})({}), j = /* @__PURE__ */ (function(e) {
|
|
21
|
-
return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
|
|
22
20
|
})({}), M = /* @__PURE__ */ (function(e) {
|
|
21
|
+
return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
|
|
22
|
+
})({}), N = /* @__PURE__ */ (function(e) {
|
|
23
23
|
return e.before = "before", e.after = "after", e;
|
|
24
|
-
})({}),
|
|
24
|
+
})({}), de = /* @__PURE__ */ (function(e) {
|
|
25
25
|
return e.button = "button", e.submit = "submit", e.reset = "reset", e;
|
|
26
|
-
})({}),
|
|
26
|
+
})({}), fe = /* @__PURE__ */ (function(e) {
|
|
27
27
|
return e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e;
|
|
28
|
-
})({}),
|
|
28
|
+
})({}), pe = /* @__PURE__ */ Symbol.for("volver"), me = {
|
|
29
29
|
to: { type: [String, Object] },
|
|
30
30
|
href: String,
|
|
31
31
|
target: String,
|
|
@@ -33,7 +33,7 @@ var ue = {
|
|
|
33
33
|
type: String,
|
|
34
34
|
default: "noopener noreferrer"
|
|
35
35
|
}
|
|
36
|
-
},
|
|
36
|
+
}, P = {
|
|
37
37
|
valid: {
|
|
38
38
|
type: Boolean,
|
|
39
39
|
default: !1
|
|
@@ -42,7 +42,7 @@ var ue = {
|
|
|
42
42
|
type: [String, Array],
|
|
43
43
|
default: void 0
|
|
44
44
|
}
|
|
45
|
-
},
|
|
45
|
+
}, F = {
|
|
46
46
|
invalid: {
|
|
47
47
|
type: Boolean,
|
|
48
48
|
default: !1
|
|
@@ -51,7 +51,7 @@ var ue = {
|
|
|
51
51
|
type: [String, Array],
|
|
52
52
|
default: void 0
|
|
53
53
|
}
|
|
54
|
-
},
|
|
54
|
+
}, I = {
|
|
55
55
|
loading: {
|
|
56
56
|
type: Boolean,
|
|
57
57
|
default: !1
|
|
@@ -60,38 +60,38 @@ var ue = {
|
|
|
60
60
|
type: String,
|
|
61
61
|
default: "Loading..."
|
|
62
62
|
}
|
|
63
|
-
},
|
|
63
|
+
}, L = { disabled: {
|
|
64
64
|
type: Boolean,
|
|
65
65
|
default: !1
|
|
66
|
-
} },
|
|
66
|
+
} }, R = { required: {
|
|
67
67
|
type: Boolean,
|
|
68
68
|
default: !1
|
|
69
|
-
} },
|
|
69
|
+
} }, z = { active: {
|
|
70
70
|
type: Boolean,
|
|
71
71
|
default: !1
|
|
72
|
-
} },
|
|
72
|
+
} }, B = { current: {
|
|
73
73
|
type: Boolean,
|
|
74
74
|
default: !1
|
|
75
|
-
} },
|
|
75
|
+
} }, V = {
|
|
76
76
|
showClearAction: {
|
|
77
77
|
type: Boolean,
|
|
78
78
|
default: !1
|
|
79
79
|
},
|
|
80
80
|
iconClear: {
|
|
81
81
|
type: [String, Object],
|
|
82
|
-
default:
|
|
82
|
+
default: le.clear
|
|
83
83
|
},
|
|
84
84
|
labelClear: {
|
|
85
85
|
type: String,
|
|
86
86
|
default: "Clear"
|
|
87
87
|
}
|
|
88
|
-
},
|
|
88
|
+
}, he = { pressed: {
|
|
89
89
|
type: Boolean,
|
|
90
90
|
default: !1
|
|
91
|
-
} },
|
|
91
|
+
} }, H = { label: {
|
|
92
92
|
type: [String, Number],
|
|
93
93
|
default: void 0
|
|
94
|
-
} },
|
|
94
|
+
} }, U = {
|
|
95
95
|
ariaLabel: {
|
|
96
96
|
type: String,
|
|
97
97
|
default: void 0
|
|
@@ -104,16 +104,16 @@ var ue = {
|
|
|
104
104
|
type: String,
|
|
105
105
|
default: void 0
|
|
106
106
|
}
|
|
107
|
-
},
|
|
107
|
+
}, W = { readonly: {
|
|
108
108
|
type: Boolean,
|
|
109
109
|
default: !1
|
|
110
|
-
} },
|
|
110
|
+
} }, G = { modifiers: {
|
|
111
111
|
type: [String, Array],
|
|
112
112
|
default: void 0
|
|
113
|
-
} },
|
|
113
|
+
} }, K = { hintLabel: {
|
|
114
114
|
type: String,
|
|
115
115
|
default: ""
|
|
116
|
-
} },
|
|
116
|
+
} }, q = {
|
|
117
117
|
options: {
|
|
118
118
|
type: Array,
|
|
119
119
|
default: () => []
|
|
@@ -130,7 +130,7 @@ var ue = {
|
|
|
130
130
|
type: [String, Function],
|
|
131
131
|
default: "disabled"
|
|
132
132
|
}
|
|
133
|
-
},
|
|
133
|
+
}, J = { count: {
|
|
134
134
|
type: [Boolean, String],
|
|
135
135
|
default: !1,
|
|
136
136
|
validator: (e) => [
|
|
@@ -139,111 +139,111 @@ var ue = {
|
|
|
139
139
|
"limit",
|
|
140
140
|
"countdown"
|
|
141
141
|
].includes(e)
|
|
142
|
-
} },
|
|
142
|
+
} }, ge = { debounce: {
|
|
143
143
|
type: [Number, String],
|
|
144
144
|
default: void 0
|
|
145
|
-
} },
|
|
145
|
+
} }, Y = {
|
|
146
146
|
icon: {
|
|
147
147
|
type: [String, Object],
|
|
148
148
|
default: void 0
|
|
149
149
|
},
|
|
150
150
|
iconPosition: {
|
|
151
151
|
type: String,
|
|
152
|
-
default:
|
|
153
|
-
validator: (e) => Object.values(
|
|
152
|
+
default: N.before,
|
|
153
|
+
validator: (e) => Object.values(N).includes(e)
|
|
154
154
|
}
|
|
155
|
-
},
|
|
155
|
+
}, X = { tabindex: {
|
|
156
156
|
type: [String, Number],
|
|
157
157
|
default: 0
|
|
158
|
-
} },
|
|
158
|
+
} }, Z = { floating: {
|
|
159
159
|
type: Boolean,
|
|
160
160
|
default: !1
|
|
161
|
-
} },
|
|
161
|
+
} }, _e = { unselectable: {
|
|
162
162
|
type: Boolean,
|
|
163
163
|
default: !0
|
|
164
|
-
} },
|
|
165
|
-
|
|
166
|
-
var
|
|
167
|
-
...
|
|
164
|
+
} }, ve = { id: [String, Number] };
|
|
165
|
+
M.bottom;
|
|
166
|
+
var Q = {
|
|
167
|
+
...ve,
|
|
168
168
|
name: {
|
|
169
169
|
type: String,
|
|
170
170
|
required: !0
|
|
171
171
|
}
|
|
172
|
-
},
|
|
172
|
+
}, ye = { autofocus: {
|
|
173
173
|
type: Boolean,
|
|
174
174
|
default: !1
|
|
175
|
-
} },
|
|
175
|
+
} }, be = { autocomplete: {
|
|
176
176
|
type: String,
|
|
177
177
|
default: "off"
|
|
178
178
|
} };
|
|
179
179
|
({
|
|
180
|
-
...
|
|
180
|
+
...Q,
|
|
181
|
+
...ye,
|
|
181
182
|
...be,
|
|
182
|
-
...
|
|
183
|
-
...
|
|
184
|
-
...
|
|
185
|
-
...U,
|
|
186
|
-
...N,
|
|
183
|
+
...X,
|
|
184
|
+
...L,
|
|
185
|
+
...W,
|
|
187
186
|
...P,
|
|
188
|
-
...G,
|
|
189
187
|
...F,
|
|
190
|
-
...
|
|
191
|
-
...
|
|
192
|
-
...
|
|
188
|
+
...K,
|
|
189
|
+
...I,
|
|
190
|
+
...G,
|
|
193
191
|
...J,
|
|
194
|
-
...
|
|
195
|
-
...V,
|
|
196
|
-
...H
|
|
197
|
-
}), { ...L }, {
|
|
198
|
-
...Z,
|
|
192
|
+
...ge,
|
|
199
193
|
...Y,
|
|
200
|
-
...
|
|
194
|
+
...Z,
|
|
195
|
+
...H,
|
|
196
|
+
...U
|
|
197
|
+
}), { ...R }, {
|
|
198
|
+
...Q,
|
|
199
|
+
...X,
|
|
201
200
|
...P,
|
|
202
|
-
...
|
|
203
|
-
...
|
|
204
|
-
...
|
|
201
|
+
...F,
|
|
202
|
+
...K,
|
|
203
|
+
...L,
|
|
205
204
|
...W,
|
|
206
|
-
...
|
|
205
|
+
...G,
|
|
207
206
|
...H,
|
|
208
|
-
...
|
|
207
|
+
...U,
|
|
208
|
+
...I
|
|
209
209
|
}, {
|
|
210
|
-
...N,
|
|
211
210
|
...P,
|
|
211
|
+
...F,
|
|
212
|
+
...q,
|
|
212
213
|
...K,
|
|
214
|
+
...L,
|
|
215
|
+
...W,
|
|
213
216
|
...G,
|
|
217
|
+
...H,
|
|
214
218
|
...I,
|
|
215
|
-
...
|
|
216
|
-
...W,
|
|
217
|
-
...V,
|
|
218
|
-
...F,
|
|
219
|
-
...L
|
|
219
|
+
...R
|
|
220
220
|
}, {
|
|
221
|
-
...
|
|
222
|
-
...
|
|
223
|
-
...
|
|
224
|
-
...R,
|
|
221
|
+
...L,
|
|
222
|
+
...H,
|
|
223
|
+
...he,
|
|
225
224
|
...z,
|
|
226
|
-
...
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
225
|
+
...B,
|
|
226
|
+
...me
|
|
227
|
+
}, de.button, fe.button, ue.local;
|
|
228
|
+
var xe = {
|
|
229
|
+
...Q,
|
|
230
|
+
...ye,
|
|
230
231
|
...be,
|
|
231
|
-
...
|
|
232
|
-
...Y,
|
|
233
|
-
...N,
|
|
232
|
+
...X,
|
|
234
233
|
...P,
|
|
235
|
-
...G,
|
|
236
234
|
...F,
|
|
235
|
+
...K,
|
|
237
236
|
...I,
|
|
238
|
-
...
|
|
237
|
+
...L,
|
|
239
238
|
...W,
|
|
240
|
-
...
|
|
241
|
-
...
|
|
242
|
-
...
|
|
243
|
-
...
|
|
244
|
-
...
|
|
239
|
+
...G,
|
|
240
|
+
...q,
|
|
241
|
+
...Y,
|
|
242
|
+
...Z,
|
|
243
|
+
..._e,
|
|
245
244
|
...H,
|
|
246
|
-
...
|
|
245
|
+
...U,
|
|
246
|
+
...V,
|
|
247
247
|
multiple: Boolean,
|
|
248
248
|
required: Boolean,
|
|
249
249
|
size: [String, Number],
|
|
@@ -263,24 +263,24 @@ var Se = {
|
|
|
263
263
|
},
|
|
264
264
|
placeholder: String
|
|
265
265
|
};
|
|
266
|
-
function
|
|
266
|
+
function Se() {
|
|
267
267
|
return {
|
|
268
|
-
...
|
|
268
|
+
...xe,
|
|
269
269
|
options: {
|
|
270
|
-
...
|
|
270
|
+
...xe.options,
|
|
271
271
|
type: Array,
|
|
272
272
|
default: () => []
|
|
273
273
|
}
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function Ce(e) {
|
|
277
277
|
return typeof e == "string";
|
|
278
278
|
}
|
|
279
|
-
function
|
|
280
|
-
return Array.isArray(e) ? e.filter((e) =>
|
|
279
|
+
function we(e) {
|
|
280
|
+
return Array.isArray(e) ? e.filter((e) => Ce(e)).join(" ") : e;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
283
|
-
let r = h(() => se(e) ? e.value : e), i = h(() =>
|
|
282
|
+
function Te(e, n) {
|
|
283
|
+
let r = h(() => se(e) ? e.value : e), i = h(() => we(r.value.invalidLabel)), a = h(() => we(r.value.validLabel)), o = h(() => r.value.loadingLabel), s = h(() => r.value.hintLabel), c = h(() => !!(r.value.loading && (n.loading || o.value))), l = h(() => !c.value && !!(r.value.invalid && (n.invalid || i.value))), u = h(() => !c.value && !l.value && !!(r.value.valid && (n.valid || a.value))), d = h(() => !c.value && !l.value && !u.value && !!(n.hint || s.value)), ee = h(() => l.value || u.value || c.value || d.value);
|
|
284
284
|
return {
|
|
285
285
|
hasInvalidLabelOrSlot: l,
|
|
286
286
|
hasHintLabelOrSlot: d,
|
|
@@ -321,10 +321,10 @@ function Ee(e, n) {
|
|
|
321
321
|
})
|
|
322
322
|
};
|
|
323
323
|
}
|
|
324
|
-
function
|
|
325
|
-
return e(
|
|
324
|
+
function Ee() {
|
|
325
|
+
return e(pe, void 0);
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function De(e, t, n) {
|
|
328
328
|
return h(() => {
|
|
329
329
|
let r = { [e]: !0 }, i = typeof t?.value == "string" ? t.value.split(" ") : t?.value;
|
|
330
330
|
return i && Array.isArray(i) && i.forEach((t) => {
|
|
@@ -334,7 +334,7 @@ function Oe(e, t, n) {
|
|
|
334
334
|
}), r;
|
|
335
335
|
});
|
|
336
336
|
}
|
|
337
|
-
var
|
|
337
|
+
var $ = /* @__PURE__ */ x({
|
|
338
338
|
name: "VvIcon",
|
|
339
339
|
props: /* @__PURE__ */ o({
|
|
340
340
|
name: {},
|
|
@@ -353,9 +353,9 @@ var Q = /* @__PURE__ */ x({
|
|
|
353
353
|
onLoad: { type: Function },
|
|
354
354
|
svg: {},
|
|
355
355
|
modifiers: {}
|
|
356
|
-
},
|
|
356
|
+
}, j),
|
|
357
357
|
setup(e) {
|
|
358
|
-
let t = e, n = h(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = ne(!0), i =
|
|
358
|
+
let t = e, n = h(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = ne(!0), i = Ee(), { modifiers: a } = C(t), o = De("vv-icon", a), c = h(() => t.provider || i?.iconsProvider), l = h(() => {
|
|
359
359
|
let e = t.name ?? "", n = `@${c.value}:${t.prefix}:${e}`;
|
|
360
360
|
if (E(n)) return n;
|
|
361
361
|
let r = i?.iconsCollections.find((t) => {
|
|
@@ -395,20 +395,20 @@ var Q = /* @__PURE__ */ x({
|
|
|
395
395
|
}, { onLoad: e.onLoad }), null, 16, ["class", "onLoad"])) : b("v-if", !0);
|
|
396
396
|
}
|
|
397
397
|
});
|
|
398
|
-
function
|
|
399
|
-
let n = h(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = h(() => t?.value ===
|
|
398
|
+
function Oe(e, t) {
|
|
399
|
+
let n = h(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = h(() => t?.value === N.before ? n.value : void 0), i = h(() => t?.value === N.after ? n.value : void 0);
|
|
400
400
|
return {
|
|
401
401
|
hasIcon: n,
|
|
402
|
-
hasIconLeft: h(() => t?.value ===
|
|
403
|
-
hasIconRight: h(() => t?.value ===
|
|
404
|
-
hasIconTop: h(() => t?.value ===
|
|
405
|
-
hasIconBottom: h(() => t?.value ===
|
|
402
|
+
hasIconLeft: h(() => t?.value === M.left ? n.value : void 0),
|
|
403
|
+
hasIconRight: h(() => t?.value === M.right ? n.value : void 0),
|
|
404
|
+
hasIconTop: h(() => t?.value === M.top ? n.value : void 0),
|
|
405
|
+
hasIconBottom: h(() => t?.value === M.bottom ? n.value : void 0),
|
|
406
406
|
hasIconBefore: r,
|
|
407
407
|
hasIconAfter: i
|
|
408
408
|
};
|
|
409
409
|
}
|
|
410
410
|
var ke = x({
|
|
411
|
-
components: { VvIcon:
|
|
411
|
+
components: { VvIcon: $ },
|
|
412
412
|
props: {
|
|
413
413
|
inputType: {
|
|
414
414
|
type: String,
|
|
@@ -429,7 +429,7 @@ var ke = x({
|
|
|
429
429
|
},
|
|
430
430
|
emits: ["clear"],
|
|
431
431
|
setup(e, { emit: t }) {
|
|
432
|
-
let { hasIcon: n } =
|
|
432
|
+
let { hasIcon: n } = Oe(h(() => e.icon));
|
|
433
433
|
function r(n) {
|
|
434
434
|
n?.stopPropagation(), e.disabled || t("clear");
|
|
435
435
|
}
|
|
@@ -439,7 +439,7 @@ var ke = x({
|
|
|
439
439
|
};
|
|
440
440
|
},
|
|
441
441
|
render() {
|
|
442
|
-
let e = this.hasIcon ? t(
|
|
442
|
+
let e = this.hasIcon ? t($, {
|
|
443
443
|
...this.hasIcon,
|
|
444
444
|
class: `vv-${this.inputType}__icon`
|
|
445
445
|
}) : void 0;
|
|
@@ -465,7 +465,7 @@ function Ae(e, t, n) {
|
|
|
465
465
|
return r;
|
|
466
466
|
}
|
|
467
467
|
function je(e, t, n) {
|
|
468
|
-
let r =
|
|
468
|
+
let r = Ee(), i = h(() => {
|
|
469
469
|
if (r?.defaults.value?.[e]) return r.defaults.value[e];
|
|
470
470
|
});
|
|
471
471
|
return h(() => {
|
|
@@ -478,7 +478,7 @@ function je(e, t, n) {
|
|
|
478
478
|
});
|
|
479
479
|
}
|
|
480
480
|
function Me(e, t) {
|
|
481
|
-
let { focused: n } =
|
|
481
|
+
let { focused: n } = k(e);
|
|
482
482
|
return c(n, (n) => {
|
|
483
483
|
t(n ? "focus" : "blur", S(e));
|
|
484
484
|
}), { focused: n };
|
|
@@ -491,9 +491,9 @@ function Pe(e) {
|
|
|
491
491
|
let { options: t, labelKey: n, valueKey: r, disabledKey: i } = C(e);
|
|
492
492
|
return {
|
|
493
493
|
options: t,
|
|
494
|
-
getOptionLabel: (e) => typeof e == "string" ? e : typeof n.value == "function" ? n.value(e) : String(n.value ?
|
|
495
|
-
getOptionValue: (e) => typeof e == "string" ? e : typeof r.value == "function" ? r.value(e) : r.value ?
|
|
496
|
-
isOptionDisabled: (e) => typeof e == "string" ? !1 : typeof i.value == "function" ? i.value(e) : i.value ? !!
|
|
494
|
+
getOptionLabel: (e) => typeof e == "string" ? e : typeof n.value == "function" ? n.value(e) : String(n.value ? A(e, n.value) : e),
|
|
495
|
+
getOptionValue: (e) => typeof e == "string" ? e : typeof r.value == "function" ? r.value(e) : r.value ? A(e, r.value) : e,
|
|
496
|
+
isOptionDisabled: (e) => typeof e == "string" ? !1 : typeof i.value == "function" ? i.value(e) : i.value ? !!A(e, i.value) : !1,
|
|
497
497
|
getOptionGrouped: (e) => typeof e == "string" ? [] : typeof e == "object" && e && "options" in e ? e.options : []
|
|
498
498
|
};
|
|
499
499
|
}
|
|
@@ -505,7 +505,7 @@ var Fe = ["for"], Ie = { class: "vv-select__wrapper" }, Le = {
|
|
|
505
505
|
class: "vv-select__input-after"
|
|
506
506
|
}, Ge = /* @__PURE__ */ x({
|
|
507
507
|
name: "VvSelect",
|
|
508
|
-
props:
|
|
508
|
+
props: Se(),
|
|
509
509
|
emits: [
|
|
510
510
|
"update:modelValue",
|
|
511
511
|
"focus",
|
|
@@ -513,111 +513,111 @@ var Fe = ["for"], Ie = { class: "vv-select__wrapper" }, Le = {
|
|
|
513
513
|
"clear"
|
|
514
514
|
],
|
|
515
515
|
setup(e, { emit: t }) {
|
|
516
|
-
let o = e, u = t, re = ee(), _ = je("VvSelect",
|
|
517
|
-
function
|
|
516
|
+
let o = e, u = t, re = ee(), _ = je("VvSelect", Se(), o), v = ne(), { HintSlot: ae, hasHintLabelOrSlot: x, hasInvalidLabelOrSlot: E, hintSlotScope: D } = Te(_, re), { focused: O } = Me(v, u);
|
|
517
|
+
function k(e) {
|
|
518
518
|
return typeof e != "string" && e.options?.length;
|
|
519
519
|
}
|
|
520
|
-
let { id:
|
|
520
|
+
let { id: A, modifiers: le, disabled: j, readonly: ue, loading: M, icon: N, iconPosition: de, invalid: fe, valid: pe, floating: me, multiple: P } = C(o), F = Ne(A), I = h(() => `${F.value}-hint`), L = h(() => o.disabled || o.readonly), R = h(() => L.value ? -1 : o.tabindex), z = h({
|
|
521
521
|
get: () => o.modelValue,
|
|
522
522
|
set: (e) => {
|
|
523
523
|
Array.isArray(e) && (e = e.filter((e) => e !== void 0), e.length === 0 && !o.unselectable && v.value) ? v.value.value = String(o.modelValue) : u("update:modelValue", e);
|
|
524
524
|
}
|
|
525
|
-
}),
|
|
526
|
-
c(
|
|
525
|
+
}), B = h(() => Array.isArray(z.value) ? z.value.length > 0 : z.value !== void 0 && z.value !== null), V = h(() => !L.value && o.unselectable), he = ce(v);
|
|
526
|
+
c(he, (e) => {
|
|
527
527
|
e && o.autofocus && (O.value = !0);
|
|
528
528
|
});
|
|
529
|
-
let { hasIconBefore:
|
|
529
|
+
let { hasIconBefore: H, hasIconAfter: U } = Oe(N, de), W = h(() => {
|
|
530
530
|
if (o.invalid === !0) return !0;
|
|
531
531
|
if (o.valid === !0) return !1;
|
|
532
|
-
}),
|
|
533
|
-
valid:
|
|
534
|
-
invalid:
|
|
535
|
-
loading:
|
|
536
|
-
disabled:
|
|
537
|
-
readonly:
|
|
538
|
-
"icon-before":
|
|
539
|
-
"icon-after":
|
|
540
|
-
dirty:
|
|
541
|
-
focus: O.value && !
|
|
542
|
-
floating:
|
|
543
|
-
multiple:
|
|
544
|
-
}))), { getOptionLabel:
|
|
532
|
+
}), G = De("vv-select", le, h(() => ({
|
|
533
|
+
valid: pe.value,
|
|
534
|
+
invalid: fe.value,
|
|
535
|
+
loading: M.value,
|
|
536
|
+
disabled: j.value,
|
|
537
|
+
readonly: ue.value,
|
|
538
|
+
"icon-before": H.value !== void 0,
|
|
539
|
+
"icon-after": U.value !== void 0,
|
|
540
|
+
dirty: B.value,
|
|
541
|
+
focus: O.value && !L.value,
|
|
542
|
+
floating: me.value,
|
|
543
|
+
multiple: P.value
|
|
544
|
+
}))), { getOptionLabel: K, getOptionValue: q, isOptionDisabled: J, getOptionGrouped: ge } = Pe(o);
|
|
545
545
|
c(() => o.options, (e) => {
|
|
546
|
-
if (e?.length && o.autoselectFirst && !
|
|
547
|
-
let t =
|
|
548
|
-
|
|
546
|
+
if (e?.length && o.autoselectFirst && !B.value) {
|
|
547
|
+
let t = q(e[0]);
|
|
548
|
+
z.value = o.multiple ? [t] : t;
|
|
549
549
|
}
|
|
550
550
|
}, { immediate: !0 });
|
|
551
|
-
function
|
|
552
|
-
Array.isArray(
|
|
551
|
+
function Y() {
|
|
552
|
+
Array.isArray(z.value) ? z.value = [] : z.value = void 0, u("clear");
|
|
553
553
|
}
|
|
554
|
-
let
|
|
554
|
+
let X = h(() => ({
|
|
555
555
|
name: o.name,
|
|
556
|
-
tabindex:
|
|
557
|
-
disabled:
|
|
556
|
+
tabindex: R.value,
|
|
557
|
+
disabled: L.value,
|
|
558
558
|
required: o.required,
|
|
559
559
|
size: o.size,
|
|
560
560
|
autocomplete: o.autocomplete,
|
|
561
561
|
multiple: o.multiple,
|
|
562
562
|
"aria-label": o.ariaLabel || void 0,
|
|
563
563
|
"aria-labelledby": o.ariaLabelledby || void 0,
|
|
564
|
-
"aria-invalid":
|
|
565
|
-
"aria-describedby": [o.ariaDescribedby, x.value ?
|
|
566
|
-
"aria-errormessage": E.value ?
|
|
567
|
-
})),
|
|
564
|
+
"aria-invalid": W.value,
|
|
565
|
+
"aria-describedby": [o.ariaDescribedby, x.value ? I.value : void 0].filter(Boolean).join(" ") || void 0,
|
|
566
|
+
"aria-errormessage": E.value ? I.value : void 0
|
|
567
|
+
})), Z = h(() => ({
|
|
568
568
|
valid: o.valid,
|
|
569
569
|
invalid: o.invalid,
|
|
570
570
|
modelValue: o.modelValue
|
|
571
571
|
}));
|
|
572
|
-
return (e, t) => (T(), w("div", { class: i(S(
|
|
572
|
+
return (e, t) => (T(), w("div", { class: i(S(G)) }, [
|
|
573
573
|
e.label ? (T(), w("label", {
|
|
574
574
|
key: 0,
|
|
575
|
-
for: S(
|
|
575
|
+
for: S(F)
|
|
576
576
|
}, g(e.label), 9, Fe)) : b("v-if", !0),
|
|
577
577
|
m("div", Ie, [
|
|
578
|
-
e.$slots.before ? (T(), w("div", Le, [a(e.$slots, "before", n(r(S(
|
|
578
|
+
e.$slots.before ? (T(), w("div", Le, [a(e.$slots, "before", n(r(S(Z))))])) : b("v-if", !0),
|
|
579
579
|
m("div", Re, [
|
|
580
|
-
S(
|
|
580
|
+
S(H) ? (T(), f($, s({ key: 0 }, S(H), { class: "vv-select__icon" }), null, 16)) : b("v-if", !0),
|
|
581
581
|
ie(m("select", s({
|
|
582
|
-
id: S(
|
|
582
|
+
id: S(F),
|
|
583
583
|
ref_key: "selectEl",
|
|
584
584
|
ref: v
|
|
585
|
-
}, S(
|
|
585
|
+
}, S(X), { "onUpdate:modelValue": t[0] ||= (e) => se(z) ? z.value = e : null }), [e.placeholder ? (T(), w("option", {
|
|
586
586
|
key: 0,
|
|
587
587
|
value: void 0,
|
|
588
|
-
disabled: !S(
|
|
589
|
-
hidden: !S(
|
|
590
|
-
}, g(e.placeholder), 9, Be)) : b("v-if", !0), (T(!0), w(p, null, d(e.options, (e, t) => (T(), w(p, null, [
|
|
588
|
+
disabled: !S(V),
|
|
589
|
+
hidden: !S(V)
|
|
590
|
+
}, g(e.placeholder), 9, Be)) : b("v-if", !0), (T(!0), w(p, null, d(e.options, (e, t) => (T(), w(p, null, [k(e) ? (T(), w("optgroup", {
|
|
591
591
|
key: `group-${t}`,
|
|
592
|
-
disabled: S(
|
|
593
|
-
label: S(
|
|
594
|
-
}, [(T(!0), w(p, null, d(S(
|
|
592
|
+
disabled: S(J)(e),
|
|
593
|
+
label: S(K)(e)
|
|
594
|
+
}, [(T(!0), w(p, null, d(S(ge)(e), (e, n) => (T(), w("option", {
|
|
595
595
|
key: `group-${t}-item-${n}`,
|
|
596
|
-
disabled: S(
|
|
597
|
-
value: S(
|
|
598
|
-
}, g(S(
|
|
596
|
+
disabled: S(J)(e),
|
|
597
|
+
value: S(q)(e)
|
|
598
|
+
}, g(S(K)(e)), 9, Ue))), 128))], 8, He)) : (T(), w("option", {
|
|
599
599
|
key: t,
|
|
600
|
-
disabled: S(
|
|
601
|
-
value: S(
|
|
602
|
-
}, g(S(
|
|
603
|
-
S(
|
|
600
|
+
disabled: S(J)(e),
|
|
601
|
+
value: S(q)(e)
|
|
602
|
+
}, g(S(K)(e)), 9, Ve))], 64))), 256))], 16, ze), [[oe, S(z)]]),
|
|
603
|
+
S(U) ? (T(), f($, s({ key: 1 }, S(U), { class: "vv-select__icon vv-select__icon-after" }), null, 16)) : b("v-if", !0)
|
|
604
604
|
]),
|
|
605
|
-
S(
|
|
605
|
+
S(V) && S(_).showClearAction ? (T(), f(S(ke), {
|
|
606
606
|
key: 1,
|
|
607
607
|
"input-type": "select",
|
|
608
608
|
label: e.labelClear,
|
|
609
609
|
icon: e.iconClear,
|
|
610
|
-
disabled: !S(
|
|
611
|
-
onClear:
|
|
610
|
+
disabled: !S(B),
|
|
611
|
+
onClear: Y
|
|
612
612
|
}, null, 8, [
|
|
613
613
|
"label",
|
|
614
614
|
"icon",
|
|
615
615
|
"disabled"
|
|
616
616
|
])) : b("v-if", !0),
|
|
617
|
-
e.$slots.after ? (T(), w("div", We, [a(e.$slots, "after", n(r(S(
|
|
617
|
+
e.$slots.after ? (T(), w("div", We, [a(e.$slots, "after", n(r(S(Z))))])) : b("v-if", !0)
|
|
618
618
|
]),
|
|
619
619
|
l(S(ae), {
|
|
620
|
-
id: S(
|
|
620
|
+
id: S(I),
|
|
621
621
|
class: "vv-select__hint"
|
|
622
622
|
}, te({ _: 2 }, [
|
|
623
623
|
e.$slots.hint ? {
|
|
@@ -646,4 +646,4 @@ var Fe = ["for"], Ie = { class: "vv-select__wrapper" }, Le = {
|
|
|
646
646
|
});
|
|
647
647
|
export { Ge as default };
|
|
648
648
|
|
|
649
|
-
//# sourceMappingURL=VvSelect.es-
|
|
649
|
+
//# sourceMappingURL=VvSelect.es-BZkBK0gK.js.map
|