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