energy-components 2.0.0-beta.3 → 2.0.0-beta.4
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/dropdown.es.js +252 -223
- package/dist/components/indicator.es.js +137 -81
- package/dist/components/link.es.js +7 -7
- package/dist/components/multiselect.es.js +104 -51
- package/dist/components/style/actionButton.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/dropdown.css +1 -1
- package/dist/components/style/filterChip.css +1 -1
- package/dist/components/style/filterTag.css +1 -1
- package/dist/components/style/floatingActionButton.css +1 -1
- package/dist/components/style/indicator.css +1 -1
- package/dist/components/style/link.css +1 -1
- package/dist/components/style/multiselect.css +1 -1
- package/dist/components/style/multiselectcontentwrapper.css +1 -1
- package/dist/components/style/selectionChip.css +1 -1
- package/dist/components/style/switch.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/toggle.css +1 -1
- package/dist/components/tag.es.js +33 -22
- package/dist/components/toggle.es.js +31 -26
- package/dist/energy-components.css +1 -1
- package/dist/energy-components.es.js +5002 -4849
- package/dist/energy-components.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/src/components/buttons/action-button/action-button.vue.d.ts +3 -3
- package/dist/types/src/components/buttons/button/button.vue.d.ts +4 -4
- package/dist/types/src/components/buttons/floating-action-button/floating-action-button.vue.d.ts +3 -3
- package/dist/types/src/components/content/avatar/avatar.vue.d.ts +1 -1
- package/dist/types/src/components/content/collapsable/collapsable.vue.d.ts +2 -2
- package/dist/types/src/components/content/table/table.vue.d.ts +1 -1
- package/dist/types/src/components/content/tag/tag.vue.d.ts +23 -2
- package/dist/types/src/components/feedback/indicator/indicator.vue.d.ts +88 -1
- package/dist/types/src/components/input/checkbox/checkbox.vue.d.ts +3 -3
- package/dist/types/src/components/input/datepicker/datepicker.vue.d.ts +3 -3
- package/dist/types/src/components/input/drag-and-drop/drag-and-drop.vue.d.ts +2 -2
- package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +7 -7
- package/dist/types/src/components/input/file-upload-item/file-upload-item.vue.d.ts +2 -2
- package/dist/types/src/components/input/filter-chip/filter-chip.vue.d.ts +4 -4
- package/dist/types/src/components/input/quantity-selector/quantity-selector.vue.d.ts +3 -3
- package/dist/types/src/components/input/radio-button/radio-button.vue.d.ts +1 -1
- package/dist/types/src/components/input/selection-chip/selection-chip.vue.d.ts +4 -4
- package/dist/types/src/components/input/switch/switch.vue.d.ts +1 -1
- package/dist/types/src/components/input/text-area/text-area.vue.d.ts +2 -2
- package/dist/types/src/components/input/text-field/text-field.vue.d.ts +7 -7
- package/dist/types/src/components/input/toggle/toggle.vue.d.ts +7 -0
- package/dist/types/src/components/navigation/direct-access/direct-access.vue.d.ts +4 -4
- package/dist/types/src/components/navigation/link/link.vue.d.ts +2 -2
- package/dist/types/src/components/navigation/pagination/pagination.vue.d.ts +2 -2
- package/dist/types/src/components/navigation/tab-bar/tab-bar.vue.d.ts +2 -2
- package/dist/types/src/components/overlay/modal/modal.vue.d.ts +1 -1
- package/dist/types/src/components/overlay/popover/popover.vue.d.ts +7 -7
- package/dist/types/src/components/overlay/popover-menu/popover-menu.vue.d.ts +5 -5
- package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +9 -9
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/llms/rdsindicator.md +5 -0
- package/llms/rdstag.md +1 -0
- package/llms/rdstoggle.md +1 -0
- package/package.json +2 -2
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as ge, mergeModels as Y, useSlots as we, toRefs as he, useModel as ke, ref as B, computed as u, provide as P, onMounted as xe, nextTick as L, onBeforeUnmount as $e, createElementBlock as y, openBlock as c, normalizeClass as R, unref as a, createVNode as $, mergeProps as Z, withModifiers as r, createSlots as ee, withCtx as d, createElementVNode as v, createCommentVNode as V, createBlock as te, renderSlot as m, Fragment as Se, toDisplayString as T } from "vue";
|
|
2
|
+
import De from "./multiselect.es.js";
|
|
3
3
|
import Ce from "./checkbox.es.js";
|
|
4
|
-
import { _ as
|
|
5
|
-
import
|
|
6
|
-
import { R as
|
|
7
|
-
import
|
|
8
|
-
import { _ as
|
|
9
|
-
import './style/dropdown.css';const
|
|
4
|
+
import { _ as Oe } from "./radio-group.vue_vue_type_script_setup_true_lang-DpguLlRK.js";
|
|
5
|
+
import Be from "./radioButton.es.js";
|
|
6
|
+
import { R as oe } from "./icon-svg-CTR8GnC2.js";
|
|
7
|
+
import le from "./textField.es.js";
|
|
8
|
+
import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
import './style/dropdown.css';const Ve = ["id", "aria-expanded", "aria-controls"], Ae = ["aria-expanded", "aria-controls"], Ee = { class: "rds-e-dropdown__option" }, Re = { class: "rds-e-dropdown__option-container" }, Te = { class: "rds-e-dropdown__option--prepend" }, _e = { class: "rds-e-dropdown__option--content" }, Fe = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "rds-e-dropdown__option-detail"
|
|
12
|
-
},
|
|
12
|
+
}, Ne = { key: 1 }, je = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "rds-e-dropdown__option--append"
|
|
15
|
-
},
|
|
15
|
+
}, Me = { class: "rds-e-dropdown__before-list-container" }, Ie = {
|
|
16
16
|
key: 1,
|
|
17
17
|
class: "rds-e-dropdown__before-list"
|
|
18
|
-
},
|
|
18
|
+
}, qe = { class: "rds-e-dropdown__before-list-container" }, Ke = { class: "rds-e-dropdown__after-list" }, Ue = { class: "rds-e-dropdown__after-list-container" }, Pe = "beforeList", He = "afterList", We = "singleLabel", ze = "noOptions", Ge = "noResult", Je = "limit", Qe = "maxElements", Xe = /* @__PURE__ */ ge({
|
|
19
19
|
__name: "dropdown",
|
|
20
|
-
props: /* @__PURE__ */
|
|
20
|
+
props: /* @__PURE__ */ Y({
|
|
21
21
|
/**
|
|
22
22
|
* Id del dropdown
|
|
23
23
|
*/
|
|
@@ -74,7 +74,7 @@ import './style/dropdown.css';const Oe = ["id", "aria-expanded", "onKeydown"], L
|
|
|
74
74
|
showRadio: {
|
|
75
75
|
type: Boolean,
|
|
76
76
|
default: !1,
|
|
77
|
-
validator: (l,
|
|
77
|
+
validator: (l, _) => l && _.multiple ? (console.error("showRadio solo es valido para seleccion unica"), !1) : !0
|
|
78
78
|
},
|
|
79
79
|
/**
|
|
80
80
|
* Indica si el campo de entrada contiene un error o no.
|
|
@@ -189,217 +189,246 @@ import './style/dropdown.css';const Oe = ["id", "aria-expanded", "onKeydown"], L
|
|
|
189
189
|
},
|
|
190
190
|
modelModifiers: {}
|
|
191
191
|
}),
|
|
192
|
-
emits: /* @__PURE__ */
|
|
193
|
-
setup(l, { expose:
|
|
194
|
-
const
|
|
195
|
-
disabled:
|
|
196
|
-
limit:
|
|
197
|
-
multiple:
|
|
198
|
-
options:
|
|
192
|
+
emits: /* @__PURE__ */ Y(["open", "close", "select", "change"], ["update:modelValue"]),
|
|
193
|
+
setup(l, { expose: _, emit: ne }) {
|
|
194
|
+
const n = l, S = ne, H = we(), p = (e) => !!(H && H[e]), {
|
|
195
|
+
disabled: h,
|
|
196
|
+
limit: F,
|
|
197
|
+
multiple: D,
|
|
198
|
+
options: k,
|
|
199
199
|
textOnly: N
|
|
200
|
-
} =
|
|
201
|
-
let
|
|
200
|
+
} = he(n), s = ke(l, "modelValue"), f = B([]), i = B(), b = B(), j = B(""), M = B(!1);
|
|
201
|
+
let C = !1;
|
|
202
202
|
const se = () => {
|
|
203
|
-
|
|
204
|
-
},
|
|
205
|
-
id:
|
|
206
|
-
label:
|
|
207
|
-
icon:
|
|
208
|
-
rightIcon:
|
|
209
|
-
disabled:
|
|
210
|
-
clearable:
|
|
211
|
-
error:
|
|
212
|
-
helper:
|
|
213
|
-
helperText:
|
|
214
|
-
readonly:
|
|
203
|
+
M.value = !0;
|
|
204
|
+
}, w = u(() => i.value?.isOpen ?? !1), O = u(() => n.autocomplete && Object.keys(n.autocomplete).length > 0), ae = u(() => ({
|
|
205
|
+
id: n.autocomplete.id || `autocomplete-${n.id}`,
|
|
206
|
+
label: n.autocomplete.label || n.label,
|
|
207
|
+
icon: n.autocomplete.icon || "",
|
|
208
|
+
rightIcon: n.autocomplete.rightIcon || "",
|
|
209
|
+
disabled: n.autocomplete.disabled || !1,
|
|
210
|
+
clearable: n.autocomplete.clearable || !1,
|
|
211
|
+
error: n.autocomplete.error ?? !1,
|
|
212
|
+
helper: n.autocomplete.helper ?? !1,
|
|
213
|
+
helperText: n.autocomplete.helperText ?? "",
|
|
214
|
+
readonly: n.autocomplete.readonly ?? !1
|
|
215
215
|
}));
|
|
216
|
-
|
|
217
|
-
e && !
|
|
218
|
-
}),
|
|
219
|
-
const t =
|
|
220
|
-
t > -1 &&
|
|
221
|
-
}),
|
|
222
|
-
const t =
|
|
216
|
+
P("registerDropdownFocusElement", (e) => {
|
|
217
|
+
e && !f.value.includes(e) && f.value.push(e);
|
|
218
|
+
}), P("unregisterDropdownFocusElement", (e) => {
|
|
219
|
+
const t = f.value.findIndex((o) => o === e);
|
|
220
|
+
t > -1 && f.value.splice(t, 1);
|
|
221
|
+
}), P("isFocusWithinDropdown", (e) => {
|
|
222
|
+
const t = f.value.some((g) => g === e || g.contains(e)), o = e.classList && (e.classList.contains("rds-e-dropdown__before-list") || e.closest(".rds-e-dropdown__before-list") || e.classList.contains("multiselect") || e.closest(".multiselect"));
|
|
223
223
|
return t || o;
|
|
224
224
|
});
|
|
225
|
-
const
|
|
226
|
-
get: () =>
|
|
225
|
+
const W = u({
|
|
226
|
+
get: () => s.value && typeof s.value == "object" && !Array.isArray(s.value) ? s.value.id : typeof s.value == "string" || typeof s.value == "number" ? s.value : null,
|
|
227
227
|
set: (e) => {
|
|
228
|
-
const t =
|
|
229
|
-
|
|
228
|
+
const t = k.value.find((o) => typeof o == "object" ? o.id === e : o === e);
|
|
229
|
+
s.value = t || null;
|
|
230
230
|
}
|
|
231
|
-
}), re =
|
|
232
|
-
get: () =>
|
|
231
|
+
}), re = u(() => (k.value ?? []).every((e) => typeof e == "object" && e?.id && e?.label)), z = u(() => !D.value || n.closeOnSelect), I = u({
|
|
232
|
+
get: () => s.value ? n.multiple ? Array.isArray(s.value) ? s.value.length > F.value ? n.limitText(F.value) : s.value.map((e) => typeof e == "string" ? e : e.label).join(", ") : "" : typeof s.value == "object" ? s.value.label : typeof s.value == "string" ? s.value : "" : "",
|
|
233
233
|
set: () => null
|
|
234
|
-
}),
|
|
234
|
+
}), ie = u(() => ({
|
|
235
235
|
"rds-e-dropdown-input": !0,
|
|
236
|
-
"rds-e-dropdown--disabled":
|
|
237
|
-
"rds-e-dropdown--small":
|
|
238
|
-
})),
|
|
236
|
+
"rds-e-dropdown--disabled": h.value,
|
|
237
|
+
"rds-e-dropdown--small": n.small
|
|
238
|
+
})), de = u(() => n.openDirection !== "auto" ? n.openDirection : "auto"), q = u(() => {
|
|
239
239
|
const e = {};
|
|
240
240
|
return re.value && Object.assign(e, {
|
|
241
241
|
"track-by": "id",
|
|
242
242
|
label: "label"
|
|
243
243
|
}), e;
|
|
244
|
-
}),
|
|
245
|
-
if (
|
|
246
|
-
if (Array.isArray(
|
|
247
|
-
if (typeof e == "string") return
|
|
248
|
-
if (
|
|
249
|
-
return
|
|
244
|
+
}), ue = u(() => O.value && n.autocomplete.autocompleteFilter ? k.value.filter((e) => n.autocomplete.autocompleteFilter(e, j.value)) : k.value), A = (e) => {
|
|
245
|
+
if (s.value === e) return !0;
|
|
246
|
+
if (Array.isArray(s.value)) {
|
|
247
|
+
if (typeof e == "string") return s.value.includes(e);
|
|
248
|
+
if (q.value.label)
|
|
249
|
+
return s.value.some((t) => t.id === e.id);
|
|
250
250
|
}
|
|
251
251
|
return !1;
|
|
252
252
|
}, ce = (e) => {
|
|
253
|
-
|
|
254
|
-
},
|
|
255
|
-
|
|
253
|
+
S("open", e, n.id);
|
|
254
|
+
}, pe = (e) => {
|
|
255
|
+
S("close", e, n.id);
|
|
256
256
|
}, fe = (e) => {
|
|
257
|
-
|
|
258
|
-
|
|
257
|
+
L(() => {
|
|
258
|
+
S("select", e);
|
|
259
259
|
});
|
|
260
260
|
}, ve = () => {
|
|
261
|
-
|
|
262
|
-
if (
|
|
263
|
-
const e =
|
|
264
|
-
(t) =>
|
|
261
|
+
L(() => {
|
|
262
|
+
if (D.value) {
|
|
263
|
+
const e = k.value.filter(
|
|
264
|
+
(t) => A(t)
|
|
265
265
|
) || [];
|
|
266
|
-
|
|
266
|
+
S("change", e);
|
|
267
267
|
} else {
|
|
268
|
-
const e =
|
|
269
|
-
(t) =>
|
|
268
|
+
const e = k.value.find(
|
|
269
|
+
(t) => A(t)
|
|
270
270
|
);
|
|
271
|
-
|
|
271
|
+
S("change", [e]);
|
|
272
272
|
}
|
|
273
273
|
});
|
|
274
|
-
},
|
|
275
|
-
|
|
276
|
-
},
|
|
277
|
-
|
|
278
|
-
},
|
|
279
|
-
|
|
280
|
-
},
|
|
281
|
-
|
|
282
|
-
}, H = () => {
|
|
283
|
-
ne.value ? O() : q();
|
|
274
|
+
}, G = (e) => {
|
|
275
|
+
i.value.select(e), C = !0;
|
|
276
|
+
}, K = () => {
|
|
277
|
+
i.value.activate();
|
|
278
|
+
}, x = () => {
|
|
279
|
+
i.value.deactivate();
|
|
280
|
+
}, me = () => {
|
|
281
|
+
i.value.toggle(), C = !0;
|
|
284
282
|
}, ye = () => {
|
|
285
|
-
|
|
283
|
+
w.value ? x() : K();
|
|
284
|
+
}, J = () => {
|
|
285
|
+
C = !0;
|
|
286
|
+
}, Q = (e) => {
|
|
287
|
+
if (!h.value && e.key !== "Tab") {
|
|
288
|
+
if (!w.value && (e.key === "Enter" || e.key === " ")) {
|
|
289
|
+
e.preventDefault(), i.value?.toggle();
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
if (!w.value && e.key === "ArrowDown") {
|
|
293
|
+
e.preventDefault(), i.value?.toggle(), L(() => {
|
|
294
|
+
try {
|
|
295
|
+
i.value?.pointerForward?.();
|
|
296
|
+
} catch {
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
if (w.value && e.key === "Escape") {
|
|
302
|
+
e.preventDefault(), x();
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
305
|
+
if (w.value && (e.key === "Enter" || e.key === " ")) {
|
|
306
|
+
e.preventDefault();
|
|
307
|
+
try {
|
|
308
|
+
i.value?.addPointerElement?.({ key: e.key });
|
|
309
|
+
} catch {
|
|
310
|
+
}
|
|
311
|
+
z.value && x();
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}, be = () => {
|
|
315
|
+
O.value && b.value && (se(), K(), L(() => {
|
|
286
316
|
b.value.focus();
|
|
287
317
|
}));
|
|
288
|
-
},
|
|
289
|
-
if (
|
|
290
|
-
|
|
318
|
+
}, X = (e) => {
|
|
319
|
+
if (C) {
|
|
320
|
+
C = !1;
|
|
291
321
|
return;
|
|
292
322
|
}
|
|
293
|
-
const t = e.target, o = !
|
|
294
|
-
if (
|
|
295
|
-
const
|
|
296
|
-
o &&
|
|
297
|
-
} else o &&
|
|
323
|
+
const t = e.target, o = !i.value?.$el?.contains(t);
|
|
324
|
+
if (M.value) {
|
|
325
|
+
const g = b.value && !b.value.$el.contains(t) && !t.closest(".rds-e-dropdown__before-list");
|
|
326
|
+
o && g && (M.value = !1, x());
|
|
327
|
+
} else o && x();
|
|
298
328
|
};
|
|
299
|
-
return
|
|
300
|
-
|
|
301
|
-
if (
|
|
302
|
-
|
|
329
|
+
return xe(() => {
|
|
330
|
+
i.value?.$el && f.value.push(i.value.$el), L(() => {
|
|
331
|
+
if (O.value && b.value?.$el) {
|
|
332
|
+
f.value.push(b.value.$el);
|
|
303
333
|
const e = b.value.$el.closest(".rds-e-dropdown__before-list");
|
|
304
|
-
e && !
|
|
334
|
+
e && !f.value.includes(e) && f.value.push(e);
|
|
305
335
|
}
|
|
306
|
-
}), document.addEventListener("pointerdown",
|
|
307
|
-
}),
|
|
308
|
-
|
|
309
|
-
}),
|
|
336
|
+
}), document.addEventListener("pointerdown", X);
|
|
337
|
+
}), $e(() => {
|
|
338
|
+
f.value = [], document.removeEventListener("pointerdown", X);
|
|
339
|
+
}), _({
|
|
310
340
|
/**
|
|
311
341
|
* Abre el dropdown
|
|
312
342
|
*/
|
|
313
|
-
activate:
|
|
343
|
+
activate: K,
|
|
314
344
|
/**
|
|
315
345
|
* Cierra el dropdown
|
|
316
346
|
*/
|
|
317
|
-
deactivate:
|
|
318
|
-
}), (e, t) => (
|
|
319
|
-
class:
|
|
320
|
-
"rds-e-dropdown--text-only":
|
|
347
|
+
deactivate: x
|
|
348
|
+
}), (e, t) => (c(), y("div", {
|
|
349
|
+
class: R(["rds-e-dropdown", {
|
|
350
|
+
"rds-e-dropdown--text-only": a(N),
|
|
321
351
|
"rds-e-dropdown--inverse": l.inverse
|
|
322
352
|
}])
|
|
323
353
|
}, [
|
|
324
|
-
|
|
354
|
+
$(De, Z({
|
|
325
355
|
ref_key: "multiselect",
|
|
326
|
-
ref:
|
|
327
|
-
modelValue:
|
|
328
|
-
"onUpdate:modelValue": t[12] || (t[12] = (o) =>
|
|
329
|
-
class:
|
|
330
|
-
options:
|
|
331
|
-
"close-on-select":
|
|
356
|
+
ref: i,
|
|
357
|
+
modelValue: s.value,
|
|
358
|
+
"onUpdate:modelValue": t[12] || (t[12] = (o) => s.value = o),
|
|
359
|
+
class: ie.value,
|
|
360
|
+
options: ue.value,
|
|
361
|
+
"close-on-select": z.value,
|
|
332
362
|
"show-labels": !1,
|
|
333
|
-
disabled:
|
|
334
|
-
multiple:
|
|
363
|
+
disabled: a(h),
|
|
364
|
+
multiple: a(D),
|
|
335
365
|
"max-height": l.maxHeight,
|
|
336
366
|
searchable: !1,
|
|
337
367
|
"open-on-focus": !1,
|
|
338
368
|
small: l.small,
|
|
339
|
-
"open-direction":
|
|
340
|
-
limit:
|
|
369
|
+
"open-direction": de.value,
|
|
370
|
+
limit: a(F),
|
|
341
371
|
"limit-text": l.limitText
|
|
342
|
-
}, { ...
|
|
372
|
+
}, { ...q.value, ...e.$attrs }, {
|
|
343
373
|
"append-to-body": l.appendToBody,
|
|
344
|
-
"text-only":
|
|
374
|
+
"text-only": a(N),
|
|
345
375
|
onOpen: ce,
|
|
346
|
-
onClose:
|
|
376
|
+
onClose: pe,
|
|
347
377
|
onSelect: fe,
|
|
348
378
|
"onUpdate:modelValue": ve,
|
|
349
|
-
onBlur:
|
|
350
|
-
}),
|
|
351
|
-
selection:
|
|
352
|
-
|
|
379
|
+
onBlur: r(() => null, ["prevent"])
|
|
380
|
+
}), ee({
|
|
381
|
+
selection: d(({ isOpen: o }) => [
|
|
382
|
+
a(N) ? (c(), y("div", {
|
|
353
383
|
key: 0,
|
|
354
384
|
id: `multiselect-dropdown-${l.id}`,
|
|
355
|
-
class:
|
|
356
|
-
role: "
|
|
357
|
-
tabindex: "0",
|
|
385
|
+
class: R([l.customTriggerClass, "rds-e-dropdown__text-only"]),
|
|
386
|
+
role: "combobox",
|
|
358
387
|
"aria-haspopup": "listbox",
|
|
359
|
-
"aria-expanded":
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
388
|
+
"aria-expanded": w.value ? "true" : "false",
|
|
389
|
+
"aria-controls": `listbox-${l.id}`,
|
|
390
|
+
tabindex: "0",
|
|
391
|
+
onClick: r(ye, ["prevent", "stop"]),
|
|
392
|
+
onMousedown: r(J, ["prevent", "stop"]),
|
|
393
|
+
onKeydown: Q
|
|
365
394
|
}, [
|
|
366
|
-
|
|
367
|
-
|
|
395
|
+
v("span", null, T(I.value || l.label), 1),
|
|
396
|
+
$(a(oe), {
|
|
368
397
|
name: "arrow_down",
|
|
369
398
|
"aria-hidden": "true",
|
|
370
|
-
class:
|
|
399
|
+
class: R(["rds-e-dropdown__input-caret", {
|
|
371
400
|
"rds-e-dropdown__input-caret--open": o
|
|
372
401
|
}])
|
|
373
402
|
}, null, 8, ["class"])
|
|
374
|
-
], 42,
|
|
403
|
+
], 42, Ve)) : (c(), y("div", {
|
|
375
404
|
key: 1,
|
|
376
405
|
class: "rds-e-dropdown__input-wrapper",
|
|
377
406
|
role: "button",
|
|
378
407
|
"aria-haspopup": "listbox",
|
|
379
|
-
"aria-expanded":
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
]
|
|
408
|
+
"aria-expanded": w.value ? "true" : "false",
|
|
409
|
+
"aria-controls": `listbox-${l.id}`,
|
|
410
|
+
onClick: r(me, ["prevent"]),
|
|
411
|
+
onMousedown: r(J, ["prevent"]),
|
|
412
|
+
onKeydown: Q
|
|
385
413
|
}, [
|
|
386
|
-
|
|
414
|
+
$(a(le), {
|
|
387
415
|
id: `multiselect-dropdown-${l.id}`,
|
|
388
|
-
modelValue:
|
|
389
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
416
|
+
modelValue: I.value,
|
|
417
|
+
"onUpdate:modelValue": t[0] || (t[0] = (g) => I.value = g),
|
|
390
418
|
class: "rds-e-dropdown__input",
|
|
391
419
|
label: l.label,
|
|
420
|
+
disabled: a(h),
|
|
392
421
|
error: l.error,
|
|
393
422
|
helper: l.helper,
|
|
394
423
|
"helper-text": l.helperText,
|
|
395
424
|
loading: l.loading,
|
|
396
425
|
readonly: ""
|
|
397
|
-
},
|
|
398
|
-
"right-icon":
|
|
399
|
-
|
|
426
|
+
}, ee({
|
|
427
|
+
"right-icon": d(() => [
|
|
428
|
+
$(a(oe), {
|
|
400
429
|
name: "arrow_down",
|
|
401
430
|
"aria-hidden": "true",
|
|
402
|
-
class:
|
|
431
|
+
class: R(["rds-e-dropdown__input-caret", {
|
|
403
432
|
"rds-e-dropdown__input-caret--open": o
|
|
404
433
|
}])
|
|
405
434
|
}, null, 8, ["class"])
|
|
@@ -408,159 +437,159 @@ import './style/dropdown.css';const Oe = ["id", "aria-expanded", "onKeydown"], L
|
|
|
408
437
|
}, [
|
|
409
438
|
p("helper-text") ? {
|
|
410
439
|
name: "helper-text",
|
|
411
|
-
fn:
|
|
412
|
-
|
|
440
|
+
fn: d(() => [
|
|
441
|
+
m(e.$slots, "helper-text", {}, void 0, !0)
|
|
413
442
|
]),
|
|
414
443
|
key: "0"
|
|
415
444
|
} : void 0
|
|
416
|
-
]), 1032, ["id", "modelValue", "label", "error", "helper", "helper-text", "loading"])
|
|
417
|
-
], 40,
|
|
445
|
+
]), 1032, ["id", "modelValue", "label", "disabled", "error", "helper", "helper-text", "loading"])
|
|
446
|
+
], 40, Ae))
|
|
418
447
|
]),
|
|
419
|
-
option:
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
448
|
+
option: d(({ option: o, search: g, index: E }) => [
|
|
449
|
+
v("div", Ee, [
|
|
450
|
+
v("div", Re, [
|
|
451
|
+
v("div", Te, [
|
|
452
|
+
a(D) ? (c(), te(a(Ce), {
|
|
424
453
|
key: 0,
|
|
425
|
-
id: `${
|
|
454
|
+
id: `${E}-${o.id}`,
|
|
426
455
|
small: l.small,
|
|
427
|
-
"model-value":
|
|
428
|
-
disabled:
|
|
429
|
-
onClick:
|
|
430
|
-
}, null, 8, ["id", "small", "model-value", "disabled", "onClick"])) : !
|
|
456
|
+
"model-value": A(o),
|
|
457
|
+
disabled: a(h) || o?.$isDisabled || !1,
|
|
458
|
+
onClick: r((U) => G(o), ["prevent", "stop"])
|
|
459
|
+
}, null, 8, ["id", "small", "model-value", "disabled", "onClick"])) : !a(D) && l.showRadio ? (c(), te(a(Oe), {
|
|
431
460
|
key: 1,
|
|
432
|
-
modelValue:
|
|
433
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
461
|
+
modelValue: W.value,
|
|
462
|
+
"onUpdate:modelValue": t[1] || (t[1] = (U) => W.value = U),
|
|
434
463
|
"group-name": `group-${l.id}`
|
|
435
464
|
}, {
|
|
436
|
-
default:
|
|
437
|
-
|
|
438
|
-
id: `${
|
|
465
|
+
default: d(() => [
|
|
466
|
+
$(a(Be), {
|
|
467
|
+
id: `${E}-${typeof o == "object" ? o.id : E}`,
|
|
439
468
|
small: l.small,
|
|
440
469
|
option: typeof o == "object" ? o.id : o,
|
|
441
|
-
checked:
|
|
442
|
-
disabled:
|
|
443
|
-
onClick:
|
|
470
|
+
checked: A(o),
|
|
471
|
+
disabled: a(h) || o?.$isDisabled || !1,
|
|
472
|
+
onClick: r((U) => G(o), ["prevent", "stop"])
|
|
444
473
|
}, null, 8, ["id", "small", "option", "checked", "disabled", "onClick"])
|
|
445
474
|
]),
|
|
446
475
|
_: 2
|
|
447
|
-
}, 1032, ["modelValue", "group-name"])) :
|
|
476
|
+
}, 1032, ["modelValue", "group-name"])) : V("", !0)
|
|
448
477
|
]),
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
o?.detail ? (
|
|
454
|
-
], 64)) : (
|
|
478
|
+
v("div", _e, [
|
|
479
|
+
m(e.$slots, "singleLabel", { option: o }, () => [
|
|
480
|
+
q.value?.label ? (c(), y(Se, { key: 0 }, [
|
|
481
|
+
v("span", null, T(o.label), 1),
|
|
482
|
+
o?.detail ? (c(), y("span", Fe, T(o.detail), 1)) : V("", !0)
|
|
483
|
+
], 64)) : (c(), y("span", Ne, T(o), 1))
|
|
455
484
|
], !0)
|
|
456
485
|
])
|
|
457
486
|
]),
|
|
458
|
-
p("optionAppend") ? (
|
|
459
|
-
|
|
487
|
+
p("optionAppend") ? (c(), y("div", je, [
|
|
488
|
+
m(e.$slots, "optionAppend", {
|
|
460
489
|
option: o,
|
|
461
|
-
search:
|
|
462
|
-
index:
|
|
490
|
+
search: g,
|
|
491
|
+
index: E
|
|
463
492
|
}, void 0, !0)
|
|
464
|
-
])) :
|
|
493
|
+
])) : V("", !0)
|
|
465
494
|
])
|
|
466
495
|
]),
|
|
467
496
|
_: 2
|
|
468
497
|
}, [
|
|
469
|
-
|
|
470
|
-
name:
|
|
471
|
-
fn:
|
|
472
|
-
|
|
498
|
+
O.value || p("beforeList") ? {
|
|
499
|
+
name: Pe,
|
|
500
|
+
fn: d(() => [
|
|
501
|
+
O.value ? (c(), y("div", {
|
|
473
502
|
key: 0,
|
|
474
503
|
class: "rds-e-dropdown__before-list",
|
|
475
|
-
onMousedown: t[5] || (t[5] =
|
|
504
|
+
onMousedown: t[5] || (t[5] = r(() => {
|
|
476
505
|
}, ["stop"])),
|
|
477
|
-
onClick:
|
|
478
|
-
onBlur: t[6] || (t[6] =
|
|
506
|
+
onClick: r(be, ["stop"]),
|
|
507
|
+
onBlur: t[6] || (t[6] = r(() => {
|
|
479
508
|
}, ["stop"])),
|
|
480
|
-
onFocus: t[7] || (t[7] =
|
|
509
|
+
onFocus: t[7] || (t[7] = r(() => {
|
|
481
510
|
}, ["stop"])),
|
|
482
|
-
onKeydown: t[8] || (t[8] =
|
|
511
|
+
onKeydown: t[8] || (t[8] = r(() => {
|
|
483
512
|
}, ["stop"])),
|
|
484
|
-
onKeyup: t[9] || (t[9] =
|
|
513
|
+
onKeyup: t[9] || (t[9] = r(() => {
|
|
485
514
|
}, ["stop"])),
|
|
486
|
-
onKeypress: t[10] || (t[10] =
|
|
515
|
+
onKeypress: t[10] || (t[10] = r(() => {
|
|
487
516
|
}, ["stop"])),
|
|
488
|
-
onChange: t[11] || (t[11] =
|
|
517
|
+
onChange: t[11] || (t[11] = r(() => {
|
|
489
518
|
}, ["stop"]))
|
|
490
519
|
}, [
|
|
491
|
-
|
|
492
|
-
|
|
520
|
+
v("div", Me, [
|
|
521
|
+
$(a(le), Z({
|
|
493
522
|
ref_key: "textFieldInput",
|
|
494
523
|
ref: b,
|
|
495
524
|
modelValue: j.value,
|
|
496
525
|
"onUpdate:modelValue": t[2] || (t[2] = (o) => j.value = o)
|
|
497
526
|
}, ae.value, {
|
|
498
527
|
"full-width": "",
|
|
499
|
-
onMousedown: t[3] || (t[3] =
|
|
528
|
+
onMousedown: t[3] || (t[3] = r(() => {
|
|
500
529
|
}, ["stop", "prevent"])),
|
|
501
|
-
onFocus: t[4] || (t[4] =
|
|
530
|
+
onFocus: t[4] || (t[4] = r(() => {
|
|
502
531
|
}, ["stop"]))
|
|
503
532
|
}), null, 16, ["modelValue"])
|
|
504
533
|
])
|
|
505
|
-
], 32)) :
|
|
506
|
-
p("beforeList") ? (
|
|
507
|
-
|
|
508
|
-
|
|
534
|
+
], 32)) : V("", !0),
|
|
535
|
+
p("beforeList") ? (c(), y("div", Ie, [
|
|
536
|
+
v("div", qe, [
|
|
537
|
+
m(e.$slots, "beforeList", {}, void 0, !0)
|
|
509
538
|
])
|
|
510
|
-
])) :
|
|
539
|
+
])) : V("", !0)
|
|
511
540
|
]),
|
|
512
541
|
key: "0"
|
|
513
542
|
} : void 0,
|
|
514
543
|
p("afterList") ? {
|
|
515
544
|
name: He,
|
|
516
|
-
fn:
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
545
|
+
fn: d(() => [
|
|
546
|
+
v("div", Ke, [
|
|
547
|
+
v("div", Ue, [
|
|
548
|
+
m(e.$slots, "afterList", {}, void 0, !0)
|
|
520
549
|
])
|
|
521
550
|
])
|
|
522
551
|
]),
|
|
523
552
|
key: "1"
|
|
524
553
|
} : void 0,
|
|
525
554
|
p("noOptions") ? {
|
|
526
|
-
name:
|
|
527
|
-
fn:
|
|
528
|
-
|
|
555
|
+
name: ze,
|
|
556
|
+
fn: d(() => [
|
|
557
|
+
m(e.$slots, "noOptions", {}, void 0, !0)
|
|
529
558
|
]),
|
|
530
559
|
key: "2"
|
|
531
560
|
} : void 0,
|
|
532
561
|
p("noResult") ? {
|
|
533
|
-
name:
|
|
534
|
-
fn:
|
|
535
|
-
|
|
562
|
+
name: Ge,
|
|
563
|
+
fn: d(({ search: o }) => [
|
|
564
|
+
m(e.$slots, "noResult", { search: o }, void 0, !0)
|
|
536
565
|
]),
|
|
537
566
|
key: "3"
|
|
538
567
|
} : void 0,
|
|
539
568
|
p("limit") ? {
|
|
540
|
-
name:
|
|
541
|
-
fn:
|
|
542
|
-
|
|
569
|
+
name: Je,
|
|
570
|
+
fn: d(() => [
|
|
571
|
+
m(e.$slots, "limit", {}, void 0, !0)
|
|
543
572
|
]),
|
|
544
573
|
key: "4"
|
|
545
574
|
} : void 0,
|
|
546
575
|
p("maxElements") ? {
|
|
547
|
-
name:
|
|
548
|
-
fn:
|
|
549
|
-
|
|
576
|
+
name: Qe,
|
|
577
|
+
fn: d(() => [
|
|
578
|
+
m(e.$slots, "maxElements", {}, void 0, !0)
|
|
550
579
|
]),
|
|
551
580
|
key: "5"
|
|
552
581
|
} : void 0,
|
|
553
582
|
p("singleLabel") ? {
|
|
554
|
-
name:
|
|
555
|
-
fn:
|
|
556
|
-
|
|
583
|
+
name: We,
|
|
584
|
+
fn: d(({ option: o }) => [
|
|
585
|
+
m(e.$slots, "singleLabel", { option: o }, void 0, !0)
|
|
557
586
|
]),
|
|
558
587
|
key: "6"
|
|
559
588
|
} : void 0
|
|
560
589
|
]), 1040, ["modelValue", "class", "options", "close-on-select", "disabled", "multiple", "max-height", "small", "open-direction", "limit", "limit-text", "append-to-body", "text-only"])
|
|
561
590
|
], 2));
|
|
562
591
|
}
|
|
563
|
-
}),
|
|
592
|
+
}), at = /* @__PURE__ */ Le(Xe, [["__scopeId", "data-v-14ac5f89"]]);
|
|
564
593
|
export {
|
|
565
|
-
|
|
594
|
+
at as default
|
|
566
595
|
};
|