energy-components 1.12.0 → 1.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/dist/components/breadcrumbs.es.js +59 -40
- package/dist/components/checkbox.es.js +67 -45
- package/dist/components/datepicker.es.js +2276 -2251
- package/dist/components/dropdown.es.js +232 -176
- package/dist/components/index.es.js +15 -15
- package/dist/components/indicator.es.js +8 -8
- package/dist/components/multiselect.es.js +15 -11
- package/dist/components/style/accordion.css +1 -1
- package/dist/components/style/actionButton.css +1 -1
- package/dist/components/style/breadcrumbs.css +1 -1
- package/dist/components/style/button.css +1 -1
- package/dist/components/style/checkbox.css +1 -1
- package/dist/components/style/collapsable.css +1 -1
- package/dist/components/style/datepicker.css +1 -1
- package/dist/components/style/directAccess.css +1 -1
- package/dist/components/style/dragAndDrop.css +1 -1
- package/dist/components/style/dropdown.css +1 -1
- package/dist/components/style/filterChip.css +1 -1
- package/dist/components/style/filterTag.css +1 -1
- package/dist/components/style/indicator.css +1 -1
- package/dist/components/style/infoBox.css +1 -1
- package/dist/components/style/link.css +1 -1
- package/dist/components/style/multiselect.css +1 -1
- package/dist/components/style/persistentToast.css +1 -1
- package/dist/components/style/progressBar.css +1 -1
- package/dist/components/style/quantitySelector.css +1 -1
- package/dist/components/style/radioButton.css +1 -1
- package/dist/components/style/selectionChip.css +1 -1
- package/dist/components/style/switch.css +1 -1
- package/dist/components/style/tableslotedcomponent.css +1 -1
- package/dist/components/style/tag.css +1 -1
- package/dist/components/style/textArea.css +1 -1
- package/dist/components/style/textField.css +1 -1
- package/dist/components/style/tooltip.css +1 -1
- package/dist/components/textField.es.js +25 -25
- package/dist/components/tooltip.es.js +334 -315
- package/dist/energy-components.es.js +14716 -14572
- package/dist/energy-components.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/src/components/content/avatar/avatar.vue.d.ts +2 -2
- package/dist/types/src/components/content/collapsable/collapsable.vue.d.ts +2 -2
- package/dist/types/src/components/input/checkbox/checkbox.vue.d.ts +15 -0
- package/dist/types/src/components/input/datepicker/datepicker.vue.d.ts +4 -2
- package/dist/types/src/components/input/drag-and-drop/drag-and-drop.vue.d.ts +1 -1
- package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +58 -13
- package/dist/types/src/components/input/filter-tag/filter-tag.vue.d.ts +2 -2
- package/dist/types/src/components/input/text-field/text-field.vue.d.ts +1 -1
- package/dist/types/src/components/navigation/breadcrumbs/breadcrumbs.vue.d.ts +15 -0
- package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +17 -2
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { _ as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { _ as
|
|
9
|
-
import './style/dropdown.css';const
|
|
1
|
+
import { defineComponent as fe, mergeModels as J, toRefs as ve, useModel as ye, ref as O, computed as i, provide as U, onMounted as be, nextTick as R, onBeforeUnmount as we, createElementBlock as w, openBlock as u, normalizeClass as T, unref as n, createVNode as S, mergeProps as Q, withModifiers as a, createSlots as X, withCtx as d, createElementVNode as c, createCommentVNode as x, createBlock as K, renderSlot as v, Fragment as ge, toDisplayString as E } from "vue";
|
|
2
|
+
import he from "./multiselect.es.js";
|
|
3
|
+
import ke from "./checkbox.es.js";
|
|
4
|
+
import { _ as $e } from "./radio-group.vue_vue_type_script_setup_true_lang-DpguLlRK.js";
|
|
5
|
+
import Ce from "./radioButton.es.js";
|
|
6
|
+
import { R as Y } from "./icon-svg-DuzOdbk1.js";
|
|
7
|
+
import Z from "./textField.es.js";
|
|
8
|
+
import { _ as De } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__option" }, xe = { class: "rds-e-dropdown__option-container" }, Ve = { class: "rds-e-dropdown__option--prepend" }, Be = { class: "rds-e-dropdown__option--content" }, Ae = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "rds-e-dropdown__option-detail"
|
|
12
|
-
},
|
|
12
|
+
}, Fe = { key: 1 }, Re = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "rds-e-dropdown__option--append"
|
|
15
|
-
},
|
|
15
|
+
}, Te = { class: "rds-e-dropdown__before-list-container" }, Ee = {
|
|
16
16
|
key: 1,
|
|
17
17
|
class: "rds-e-dropdown__before-list"
|
|
18
|
-
},
|
|
18
|
+
}, Le = { class: "rds-e-dropdown__before-list-container" }, Me = { class: "rds-e-dropdown__after-list" }, je = { class: "rds-e-dropdown__after-list-container" }, Ie = /* @__PURE__ */ fe({
|
|
19
19
|
__name: "dropdown",
|
|
20
|
-
props: /* @__PURE__ */
|
|
20
|
+
props: /* @__PURE__ */ J({
|
|
21
21
|
/**
|
|
22
22
|
* Id del dropdown
|
|
23
23
|
*/
|
|
@@ -75,7 +75,7 @@ import './style/dropdown.css';const ke = { class: "rds-e-dropdown" }, $e = { cla
|
|
|
75
75
|
showRadio: {
|
|
76
76
|
type: Boolean,
|
|
77
77
|
default: !1,
|
|
78
|
-
validator: (o,
|
|
78
|
+
validator: (o, L) => o && L.multiple ? (console.error("showRadio solo es valido para seleccion unica"), !1) : !0
|
|
79
79
|
},
|
|
80
80
|
/**
|
|
81
81
|
* Indica si el campo de entrada contiene un error o no.
|
|
@@ -155,6 +155,27 @@ import './style/dropdown.css';const ke = { class: "rds-e-dropdown" }, $e = { cla
|
|
|
155
155
|
type: Object,
|
|
156
156
|
default: () => {
|
|
157
157
|
}
|
|
158
|
+
},
|
|
159
|
+
/**
|
|
160
|
+
* Indica si el dropdown trigger es de solo texto
|
|
161
|
+
*/
|
|
162
|
+
textOnly: {
|
|
163
|
+
type: Boolean,
|
|
164
|
+
default: !1
|
|
165
|
+
},
|
|
166
|
+
/**
|
|
167
|
+
* Clase custom para el trigger del dropdown (solo aplica a text-only trigger)
|
|
168
|
+
*/
|
|
169
|
+
customTriggerClass: {
|
|
170
|
+
type: String,
|
|
171
|
+
default: ""
|
|
172
|
+
},
|
|
173
|
+
/**
|
|
174
|
+
* Indica si el dropdown es de estilo inverso (solo para text-only)
|
|
175
|
+
*/
|
|
176
|
+
inverse: {
|
|
177
|
+
type: Boolean,
|
|
178
|
+
default: !1
|
|
158
179
|
}
|
|
159
180
|
}, {
|
|
160
181
|
modelValue: {
|
|
@@ -162,16 +183,22 @@ import './style/dropdown.css';const ke = { class: "rds-e-dropdown" }, $e = { cla
|
|
|
162
183
|
},
|
|
163
184
|
modelModifiers: {}
|
|
164
185
|
}),
|
|
165
|
-
emits: /* @__PURE__ */
|
|
166
|
-
setup(o, { expose:
|
|
167
|
-
const s = o,
|
|
168
|
-
disabled:
|
|
169
|
-
limit:
|
|
170
|
-
multiple:
|
|
171
|
-
options:
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
186
|
+
emits: /* @__PURE__ */ J(["open", "close", "select", "change"], ["update:modelValue"]),
|
|
187
|
+
setup(o, { expose: L, emit: ee }) {
|
|
188
|
+
const s = o, k = ee, {
|
|
189
|
+
disabled: $,
|
|
190
|
+
limit: M,
|
|
191
|
+
multiple: C,
|
|
192
|
+
options: h,
|
|
193
|
+
textOnly: j
|
|
194
|
+
} = ve(s), r = ye(o, "modelValue"), p = O([]), m = O(), y = O(), I = O(""), _ = O(!1);
|
|
195
|
+
let V = !1;
|
|
196
|
+
const le = () => {
|
|
197
|
+
_.value = !0;
|
|
198
|
+
}, te = i(() => {
|
|
199
|
+
var e;
|
|
200
|
+
return ((e = m.value) == null ? void 0 : e.isOpen) ?? !1;
|
|
201
|
+
}), D = i(() => s.autocomplete && Object.keys(s.autocomplete).length > 0), oe = i(() => ({
|
|
175
202
|
id: s.autocomplete.id || `autocomplete-${s.id}`,
|
|
176
203
|
label: s.autocomplete.label || s.label,
|
|
177
204
|
icon: s.autocomplete.icon || "",
|
|
@@ -183,153 +210,182 @@ import './style/dropdown.css';const ke = { class: "rds-e-dropdown" }, $e = { cla
|
|
|
183
210
|
helperText: s.autocomplete.helperText ?? "",
|
|
184
211
|
readonly: s.autocomplete.readonly ?? !1
|
|
185
212
|
}));
|
|
186
|
-
|
|
187
|
-
e && !
|
|
188
|
-
}),
|
|
189
|
-
const l =
|
|
190
|
-
l > -1 &&
|
|
191
|
-
}),
|
|
192
|
-
const l =
|
|
213
|
+
U("registerDropdownFocusElement", (e) => {
|
|
214
|
+
e && !p.value.includes(e) && p.value.push(e);
|
|
215
|
+
}), U("unregisterDropdownFocusElement", (e) => {
|
|
216
|
+
const l = p.value.findIndex((t) => t === e);
|
|
217
|
+
l > -1 && p.value.splice(l, 1);
|
|
218
|
+
}), U("isFocusWithinDropdown", (e) => {
|
|
219
|
+
const l = p.value.some((f) => f === e || f.contains(e)), t = e.classList && (e.classList.contains("rds-e-dropdown__before-list") || e.closest(".rds-e-dropdown__before-list") || e.classList.contains("multiselect") || e.closest(".multiselect"));
|
|
193
220
|
return l || t;
|
|
194
221
|
});
|
|
195
|
-
const
|
|
222
|
+
const H = i({
|
|
196
223
|
get: () => r.value && typeof r.value == "object" && !Array.isArray(r.value) ? r.value.id : typeof r.value == "string" || typeof r.value == "number" ? r.value : null,
|
|
197
224
|
set: (e) => {
|
|
198
|
-
const l =
|
|
225
|
+
const l = h.value.find((t) => typeof t == "object" ? t.id === e : t === e);
|
|
199
226
|
r.value = l || null;
|
|
200
227
|
}
|
|
201
|
-
}),
|
|
202
|
-
get: () => r.value ? s.multiple ? Array.isArray(r.value) ? r.value.length >
|
|
228
|
+
}), se = i(() => (h.value ?? []).every((e) => typeof e == "object" && (e == null ? void 0 : e.id) && (e == null ? void 0 : e.label))), re = i(() => !C.value || s.closeOnSelect), q = i({
|
|
229
|
+
get: () => r.value ? s.multiple ? Array.isArray(r.value) ? r.value.length > M.value ? s.limitText(M.value) : r.value.map((e) => typeof e == "string" ? e : e.label).join(", ") : "" : typeof r.value == "object" ? r.value.label : typeof r.value == "string" ? r.value : "" : "",
|
|
203
230
|
set: () => null
|
|
204
|
-
}),
|
|
231
|
+
}), ne = i(() => ({
|
|
205
232
|
"rds-e-dropdown-input": !0,
|
|
206
|
-
"rds-e-dropdown--disabled":
|
|
233
|
+
"rds-e-dropdown--disabled": $.value,
|
|
207
234
|
"rds-e-dropdown--small": s.small
|
|
208
|
-
})),
|
|
235
|
+
})), ae = i(() => s.openDirection !== "auto" ? s.openDirection : ""), N = i(() => {
|
|
209
236
|
const e = {};
|
|
210
|
-
return
|
|
237
|
+
return se.value && Object.assign(e, {
|
|
211
238
|
"track-by": "id",
|
|
212
239
|
label: "label"
|
|
213
240
|
}), e;
|
|
214
|
-
}),
|
|
241
|
+
}), de = i(() => D.value && s.autocomplete.autocompleteFilter ? h.value.filter((e) => s.autocomplete.autocompleteFilter(e, I.value)) : h.value), B = (e) => {
|
|
215
242
|
if (r.value === e) return !0;
|
|
216
243
|
if (Array.isArray(r.value)) {
|
|
217
244
|
if (typeof e == "string") return r.value.includes(e);
|
|
218
|
-
if (
|
|
245
|
+
if (N.value.label)
|
|
219
246
|
return r.value.some((l) => l.id === e.id);
|
|
220
247
|
}
|
|
221
248
|
return !1;
|
|
222
|
-
},
|
|
223
|
-
|
|
224
|
-
},
|
|
225
|
-
|
|
226
|
-
},
|
|
227
|
-
|
|
228
|
-
|
|
249
|
+
}, ie = (e) => {
|
|
250
|
+
k("open", e, s.id);
|
|
251
|
+
}, ue = (e) => {
|
|
252
|
+
k("close", e, s.id);
|
|
253
|
+
}, ce = (e) => {
|
|
254
|
+
R(() => {
|
|
255
|
+
k("select", e);
|
|
229
256
|
});
|
|
230
|
-
},
|
|
231
|
-
|
|
232
|
-
if (
|
|
233
|
-
const e =
|
|
257
|
+
}, pe = () => {
|
|
258
|
+
R(() => {
|
|
259
|
+
if (C.value) {
|
|
260
|
+
const e = h.value.filter(
|
|
234
261
|
(l) => B(l)
|
|
235
262
|
) || [];
|
|
236
|
-
|
|
263
|
+
k("change", e);
|
|
237
264
|
} else {
|
|
238
|
-
const e =
|
|
265
|
+
const e = h.value.find(
|
|
239
266
|
(l) => B(l)
|
|
240
267
|
);
|
|
241
|
-
|
|
268
|
+
k("change", [e]);
|
|
242
269
|
}
|
|
243
270
|
});
|
|
244
|
-
},
|
|
245
|
-
|
|
246
|
-
},
|
|
247
|
-
|
|
248
|
-
},
|
|
249
|
-
|
|
250
|
-
},
|
|
251
|
-
|
|
252
|
-
},
|
|
253
|
-
|
|
254
|
-
|
|
271
|
+
}, P = (e) => {
|
|
272
|
+
m.value.select(e), V = !0;
|
|
273
|
+
}, A = () => {
|
|
274
|
+
m.value.activate();
|
|
275
|
+
}, F = () => {
|
|
276
|
+
m.value.deactivate();
|
|
277
|
+
}, W = () => {
|
|
278
|
+
m.value.toggle(), V = !0;
|
|
279
|
+
}, z = () => {
|
|
280
|
+
te.value ? F() : A();
|
|
281
|
+
}, me = () => {
|
|
282
|
+
D.value && y.value && (le(), A(), R(() => {
|
|
283
|
+
y.value.focus();
|
|
255
284
|
}));
|
|
256
|
-
},
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
285
|
+
}, G = (e) => {
|
|
286
|
+
var f, g;
|
|
287
|
+
if (V) {
|
|
288
|
+
V = !1;
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
291
|
+
const l = e.target, t = !((g = (f = m.value) == null ? void 0 : f.$el) != null && g.contains(l));
|
|
292
|
+
if (_.value) {
|
|
293
|
+
const b = y.value && !y.value.$el.contains(l) && !l.closest(".rds-e-dropdown__before-list");
|
|
294
|
+
t && b && (_.value = !1, F());
|
|
295
|
+
} else t && F();
|
|
260
296
|
};
|
|
261
|
-
return
|
|
297
|
+
return be(() => {
|
|
262
298
|
var e;
|
|
263
|
-
(e =
|
|
299
|
+
(e = m.value) != null && e.$el && p.value.push(m.value.$el), R(() => {
|
|
264
300
|
var l;
|
|
265
|
-
if (
|
|
266
|
-
|
|
267
|
-
const t =
|
|
268
|
-
t && !
|
|
301
|
+
if (D.value && ((l = y.value) != null && l.$el)) {
|
|
302
|
+
p.value.push(y.value.$el);
|
|
303
|
+
const t = y.value.$el.closest(".rds-e-dropdown__before-list");
|
|
304
|
+
t && !p.value.includes(t) && p.value.push(t);
|
|
269
305
|
}
|
|
270
|
-
}), document.addEventListener("click",
|
|
271
|
-
}),
|
|
272
|
-
|
|
273
|
-
}),
|
|
306
|
+
}), document.addEventListener("click", G);
|
|
307
|
+
}), we(() => {
|
|
308
|
+
p.value = [], document.removeEventListener("click", G);
|
|
309
|
+
}), L({
|
|
274
310
|
/**
|
|
275
311
|
* Abre el dropdown
|
|
276
312
|
*/
|
|
277
|
-
activate:
|
|
313
|
+
activate: A,
|
|
278
314
|
/**
|
|
279
315
|
* Cierra el dropdown
|
|
280
316
|
*/
|
|
281
|
-
deactivate:
|
|
282
|
-
}), (e, l) => (
|
|
283
|
-
|
|
317
|
+
deactivate: F
|
|
318
|
+
}), (e, l) => (u(), w("div", {
|
|
319
|
+
class: T(["rds-e-dropdown", {
|
|
320
|
+
"rds-e-dropdown--text-only": n(j),
|
|
321
|
+
"rds-e-dropdown--inverse": o.inverse
|
|
322
|
+
}])
|
|
323
|
+
}, [
|
|
324
|
+
S(he, Q({
|
|
284
325
|
ref_key: "multiselect",
|
|
285
|
-
ref:
|
|
326
|
+
ref: m,
|
|
286
327
|
modelValue: r.value,
|
|
287
|
-
"onUpdate:modelValue": l[
|
|
288
|
-
class:
|
|
289
|
-
options:
|
|
290
|
-
"close-on-select":
|
|
328
|
+
"onUpdate:modelValue": l[12] || (l[12] = (t) => r.value = t),
|
|
329
|
+
class: ne.value,
|
|
330
|
+
options: de.value,
|
|
331
|
+
"close-on-select": re.value,
|
|
291
332
|
"show-labels": !1,
|
|
292
|
-
disabled:
|
|
293
|
-
multiple:
|
|
333
|
+
disabled: n($),
|
|
334
|
+
multiple: n(C),
|
|
294
335
|
"max-height": o.maxHeight,
|
|
295
336
|
searchable: !1,
|
|
296
337
|
small: o.small,
|
|
297
|
-
"open-direction":
|
|
298
|
-
limit:
|
|
338
|
+
"open-direction": ae.value,
|
|
339
|
+
limit: n(M),
|
|
299
340
|
"limit-text": o.limitText
|
|
300
|
-
},
|
|
341
|
+
}, N.value, {
|
|
301
342
|
"append-to-body": o.appendToBody,
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
343
|
+
"text-only": n(j),
|
|
344
|
+
onOpen: ie,
|
|
345
|
+
onClose: ue,
|
|
346
|
+
onSelect: ce,
|
|
347
|
+
"onUpdate:modelValue": pe,
|
|
348
|
+
onFocus: l[13] || (l[13] = a(() => A(), ["prevent"])),
|
|
349
|
+
onBlur: a(() => null, ["prevent"])
|
|
350
|
+
}), X({
|
|
309
351
|
selection: d(({ isOpen: t }) => [
|
|
310
|
-
|
|
352
|
+
n(j) ? (u(), w("div", {
|
|
353
|
+
key: 0,
|
|
354
|
+
id: `multiselect-dropdown-${o.id}`,
|
|
355
|
+
class: T([o.customTriggerClass, "rds-e-dropdown__text-only"]),
|
|
356
|
+
onMousedown: a(z, ["prevent", "stop"])
|
|
357
|
+
}, [
|
|
358
|
+
c("span", null, E(q.value || o.label), 1),
|
|
359
|
+
S(n(Y), {
|
|
360
|
+
name: "arrow_down",
|
|
361
|
+
"aria-hidden": "true",
|
|
362
|
+
class: T(["rds-e-dropdown__input-caret", {
|
|
363
|
+
"rds-e-dropdown__input-caret--open": t
|
|
364
|
+
}]),
|
|
365
|
+
onMousedown: a(z, ["prevent", "stop"])
|
|
366
|
+
}, null, 8, ["class"])
|
|
367
|
+
], 42, Oe)) : (u(), K(n(Z), {
|
|
368
|
+
key: 1,
|
|
311
369
|
id: `multiselect-dropdown-${o.id}`,
|
|
312
370
|
modelValue: q.value,
|
|
313
|
-
"onUpdate:modelValue": l[
|
|
371
|
+
"onUpdate:modelValue": l[0] || (l[0] = (f) => q.value = f),
|
|
314
372
|
class: "rds-e-dropdown__input",
|
|
315
|
-
disabled:
|
|
373
|
+
disabled: n($),
|
|
316
374
|
label: o.label,
|
|
317
375
|
error: o.error,
|
|
318
376
|
helper: o.helper,
|
|
319
377
|
"helper-text": o.helperText,
|
|
320
378
|
readonly: "",
|
|
321
|
-
|
|
322
|
-
},
|
|
379
|
+
onMousedown: a(W, ["prevent"])
|
|
380
|
+
}, X({
|
|
323
381
|
"right-icon": d(() => [
|
|
324
|
-
S(
|
|
382
|
+
S(n(Y), {
|
|
325
383
|
name: "arrow_down",
|
|
326
384
|
"aria-hidden": "true",
|
|
327
|
-
class:
|
|
385
|
+
class: T(["rds-e-dropdown__input-caret", {
|
|
328
386
|
"rds-e-dropdown__input-caret--open": t
|
|
329
387
|
}]),
|
|
330
|
-
|
|
331
|
-
}, ["self", "stop"])),
|
|
332
|
-
onMousedown: n(ne, ["self", "prevent", "stop"])
|
|
388
|
+
onMousedown: a(W, ["prevent", "stop"])
|
|
333
389
|
}, null, 8, ["class"])
|
|
334
390
|
]),
|
|
335
391
|
_: 2
|
|
@@ -337,64 +393,64 @@ import './style/dropdown.css';const ke = { class: "rds-e-dropdown" }, $e = { cla
|
|
|
337
393
|
e.$slots["helper-text"] ? {
|
|
338
394
|
name: "helper-text",
|
|
339
395
|
fn: d(() => [
|
|
340
|
-
|
|
396
|
+
v(e.$slots, "helper-text", {}, void 0, !0)
|
|
341
397
|
]),
|
|
342
398
|
key: "0"
|
|
343
399
|
} : void 0
|
|
344
|
-
]), 1032, ["id", "modelValue", "disabled", "label", "error", "helper", "helper-text"
|
|
400
|
+
]), 1032, ["id", "modelValue", "disabled", "label", "error", "helper", "helper-text"]))
|
|
345
401
|
]),
|
|
346
402
|
placeholder: d(() => [
|
|
347
|
-
l[
|
|
403
|
+
l[14] || (l[14] = c("span", null, null, -1))
|
|
348
404
|
]),
|
|
349
|
-
option: d(({ option: t, search:
|
|
350
|
-
c("div",
|
|
351
|
-
c("div",
|
|
352
|
-
c("div",
|
|
353
|
-
|
|
405
|
+
option: d(({ option: t, search: f, index: g }) => [
|
|
406
|
+
c("div", Se, [
|
|
407
|
+
c("div", xe, [
|
|
408
|
+
c("div", Ve, [
|
|
409
|
+
n(C) ? (u(), K(n(ke), {
|
|
354
410
|
key: 0,
|
|
355
|
-
id: `${
|
|
411
|
+
id: `${g}-${t.id}`,
|
|
356
412
|
small: o.small,
|
|
357
413
|
"is-checked": B(t),
|
|
358
|
-
disabled:
|
|
359
|
-
onClick:
|
|
360
|
-
}, null, 8, ["id", "small", "is-checked", "disabled", "onClick"])) : !
|
|
414
|
+
disabled: n($) || (t == null ? void 0 : t.$isDisabled) || !1,
|
|
415
|
+
onClick: a((b) => P(t), ["prevent", "stop"])
|
|
416
|
+
}, null, 8, ["id", "small", "is-checked", "disabled", "onClick"])) : !n(C) && o.showRadio ? (u(), K(n($e), {
|
|
361
417
|
key: 1,
|
|
362
|
-
modelValue:
|
|
363
|
-
"onUpdate:modelValue": l[
|
|
418
|
+
modelValue: H.value,
|
|
419
|
+
"onUpdate:modelValue": l[1] || (l[1] = (b) => H.value = b),
|
|
364
420
|
"group-name": `group-${o.id}`
|
|
365
421
|
}, {
|
|
366
422
|
default: d(() => [
|
|
367
|
-
S(
|
|
368
|
-
id: `${
|
|
423
|
+
S(n(Ce), {
|
|
424
|
+
id: `${g}-${typeof t == "object" ? t.id : g}`,
|
|
369
425
|
small: o.small,
|
|
370
426
|
option: typeof t == "object" ? t.id : t,
|
|
371
427
|
checked: B(t),
|
|
372
|
-
disabled:
|
|
373
|
-
onClick:
|
|
428
|
+
disabled: n($) || (t == null ? void 0 : t.$isDisabled) || !1,
|
|
429
|
+
onClick: a((b) => P(t), ["prevent", "stop"])
|
|
374
430
|
}, null, 8, ["id", "small", "option", "checked", "disabled", "onClick"])
|
|
375
431
|
]),
|
|
376
432
|
_: 2
|
|
377
|
-
}, 1032, ["modelValue", "group-name"])) :
|
|
433
|
+
}, 1032, ["modelValue", "group-name"])) : x("", !0)
|
|
378
434
|
]),
|
|
379
|
-
c("div",
|
|
380
|
-
|
|
381
|
-
var
|
|
435
|
+
c("div", Be, [
|
|
436
|
+
v(e.$slots, "singleLabel", { option: t }, () => {
|
|
437
|
+
var b;
|
|
382
438
|
return [
|
|
383
|
-
(
|
|
384
|
-
c("span", null,
|
|
385
|
-
t != null && t.detail ? (
|
|
386
|
-
], 64)) : (
|
|
439
|
+
(b = N.value) != null && b.label ? (u(), w(ge, { key: 0 }, [
|
|
440
|
+
c("span", null, E(t.label), 1),
|
|
441
|
+
t != null && t.detail ? (u(), w("span", Ae, E(t.detail), 1)) : x("", !0)
|
|
442
|
+
], 64)) : (u(), w("span", Fe, E(t), 1))
|
|
387
443
|
];
|
|
388
444
|
}, !0)
|
|
389
445
|
])
|
|
390
446
|
]),
|
|
391
|
-
e.$slots.optionAppend ? (
|
|
392
|
-
|
|
447
|
+
e.$slots.optionAppend ? (u(), w("div", Re, [
|
|
448
|
+
v(e.$slots, "optionAppend", {
|
|
393
449
|
option: t,
|
|
394
|
-
search:
|
|
395
|
-
index:
|
|
450
|
+
search: f,
|
|
451
|
+
index: g
|
|
396
452
|
}, void 0, !0)
|
|
397
|
-
])) :
|
|
453
|
+
])) : x("", !0)
|
|
398
454
|
])
|
|
399
455
|
]),
|
|
400
456
|
_: 2
|
|
@@ -402,91 +458,91 @@ import './style/dropdown.css';const ke = { class: "rds-e-dropdown" }, $e = { cla
|
|
|
402
458
|
e.$slots.limit ? {
|
|
403
459
|
name: "limit",
|
|
404
460
|
fn: d(() => [
|
|
405
|
-
|
|
461
|
+
v(e.$slots, "limit", {}, void 0, !0)
|
|
406
462
|
]),
|
|
407
463
|
key: "0"
|
|
408
464
|
} : void 0,
|
|
409
465
|
e.$slots.maxElements ? {
|
|
410
466
|
name: "maxElements",
|
|
411
467
|
fn: d(() => [
|
|
412
|
-
|
|
468
|
+
v(e.$slots, "maxElements", {}, void 0, !0)
|
|
413
469
|
]),
|
|
414
470
|
key: "1"
|
|
415
471
|
} : void 0,
|
|
416
472
|
e.$slots.noResult ? {
|
|
417
473
|
name: "noResult",
|
|
418
474
|
fn: d(({ search: t }) => [
|
|
419
|
-
|
|
475
|
+
v(e.$slots, "noResult", { search: t }, void 0, !0)
|
|
420
476
|
]),
|
|
421
477
|
key: "2"
|
|
422
478
|
} : void 0,
|
|
423
479
|
e.$slots.noOptions ? {
|
|
424
480
|
name: "noOptions",
|
|
425
481
|
fn: d(() => [
|
|
426
|
-
|
|
482
|
+
v(e.$slots, "noOptions", {}, void 0, !0)
|
|
427
483
|
]),
|
|
428
484
|
key: "3"
|
|
429
485
|
} : void 0,
|
|
430
|
-
|
|
486
|
+
D.value || e.$slots.beforeList ? {
|
|
431
487
|
name: "beforeList",
|
|
432
488
|
fn: d(() => [
|
|
433
|
-
|
|
489
|
+
D.value ? (u(), w("div", {
|
|
434
490
|
key: 0,
|
|
435
491
|
class: "rds-e-dropdown__before-list",
|
|
436
|
-
onMousedown: l[
|
|
492
|
+
onMousedown: l[5] || (l[5] = a(() => {
|
|
437
493
|
}, ["stop"])),
|
|
438
|
-
onClick:
|
|
439
|
-
onBlur: l[
|
|
494
|
+
onClick: a(me, ["stop"]),
|
|
495
|
+
onBlur: l[6] || (l[6] = a(() => {
|
|
440
496
|
}, ["stop"])),
|
|
441
|
-
onFocus: l[
|
|
497
|
+
onFocus: l[7] || (l[7] = a(() => {
|
|
442
498
|
}, ["stop"])),
|
|
443
|
-
onKeydown: l[
|
|
499
|
+
onKeydown: l[8] || (l[8] = a(() => {
|
|
444
500
|
}, ["stop"])),
|
|
445
|
-
onKeyup: l[
|
|
501
|
+
onKeyup: l[9] || (l[9] = a(() => {
|
|
446
502
|
}, ["stop"])),
|
|
447
|
-
onKeypress: l[
|
|
503
|
+
onKeypress: l[10] || (l[10] = a(() => {
|
|
448
504
|
}, ["stop"])),
|
|
449
|
-
onChange: l[
|
|
505
|
+
onChange: l[11] || (l[11] = a(() => {
|
|
450
506
|
}, ["stop"]))
|
|
451
507
|
}, [
|
|
452
|
-
c("div",
|
|
453
|
-
S(
|
|
508
|
+
c("div", Te, [
|
|
509
|
+
S(n(Z), Q({
|
|
454
510
|
ref_key: "textFieldInput",
|
|
455
|
-
ref:
|
|
456
|
-
modelValue:
|
|
457
|
-
"onUpdate:modelValue": l[
|
|
458
|
-
},
|
|
511
|
+
ref: y,
|
|
512
|
+
modelValue: I.value,
|
|
513
|
+
"onUpdate:modelValue": l[2] || (l[2] = (t) => I.value = t)
|
|
514
|
+
}, oe.value, {
|
|
459
515
|
"full-width": "",
|
|
460
|
-
onMousedown: l[
|
|
516
|
+
onMousedown: l[3] || (l[3] = a(() => {
|
|
461
517
|
}, ["stop", "prevent"])),
|
|
462
|
-
onFocus: l[
|
|
518
|
+
onFocus: l[4] || (l[4] = a(() => {
|
|
463
519
|
}, ["stop"]))
|
|
464
520
|
}), null, 16, ["modelValue"])
|
|
465
521
|
])
|
|
466
|
-
], 32)) :
|
|
467
|
-
e.$slots.beforeList ? (
|
|
468
|
-
c("div",
|
|
469
|
-
|
|
522
|
+
], 32)) : x("", !0),
|
|
523
|
+
e.$slots.beforeList ? (u(), w("div", Ee, [
|
|
524
|
+
c("div", Le, [
|
|
525
|
+
v(e.$slots, "beforeList", {}, void 0, !0)
|
|
470
526
|
])
|
|
471
|
-
])) :
|
|
527
|
+
])) : x("", !0)
|
|
472
528
|
]),
|
|
473
529
|
key: "4"
|
|
474
530
|
} : void 0,
|
|
475
531
|
e.$slots.afterList ? {
|
|
476
532
|
name: "afterList",
|
|
477
533
|
fn: d(() => [
|
|
478
|
-
c("div",
|
|
479
|
-
c("div",
|
|
480
|
-
|
|
534
|
+
c("div", Me, [
|
|
535
|
+
c("div", je, [
|
|
536
|
+
v(e.$slots, "afterList", {}, void 0, !0)
|
|
481
537
|
])
|
|
482
538
|
])
|
|
483
539
|
]),
|
|
484
540
|
key: "5"
|
|
485
541
|
} : void 0
|
|
486
|
-
]), 1040, ["modelValue", "class", "options", "close-on-select", "disabled", "multiple", "max-height", "small", "open-direction", "limit", "limit-text", "append-to-body"])
|
|
487
|
-
]));
|
|
542
|
+
]), 1040, ["modelValue", "class", "options", "close-on-select", "disabled", "multiple", "max-height", "small", "open-direction", "limit", "limit-text", "append-to-body", "text-only"])
|
|
543
|
+
], 2));
|
|
488
544
|
}
|
|
489
|
-
}),
|
|
545
|
+
}), ze = /* @__PURE__ */ De(Ie, [["__scopeId", "data-v-08d45c31"]]);
|
|
490
546
|
export {
|
|
491
|
-
|
|
547
|
+
ze as default
|
|
492
548
|
};
|