energy-components 1.23.0 → 2.0.0-beta.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/README.md +21 -6
- package/dist/components/accordion.es.js +17 -17
- package/dist/components/avatar.es.js +7 -7
- package/dist/components/breadcrumbs.es.js +32 -32
- package/dist/components/button.es.js +24 -24
- package/dist/components/checkbox.es.js +14 -17
- package/dist/components/collapsable.es.js +1 -1
- package/dist/components/{collapsable.scss_vue_type_style_index_0_src_true_lang-f-OHx-l3.js → collapsable.scss_vue_type_style_index_0_src_true_lang-BERfoghR.js} +10 -10
- package/dist/components/datepicker.es.js +4644 -4639
- package/dist/components/directAccess.es.js +45 -50
- package/dist/components/dragAndDrop.es.js +44 -46
- package/dist/components/dropdown.es.js +154 -163
- package/dist/components/fileUploadItem.es.js +18 -18
- package/dist/components/filterChip.es.js +9 -9
- package/dist/components/filterTag.es.js +7 -7
- package/dist/components/{floating-ui.vue-DHEoOe5S.js → floating-ui.vue-C-DgKOwt.js} +1 -1
- package/dist/components/functions-D3GA3OzJ.js +24 -0
- package/dist/components/icon-svg-DxlNo61Q.js +869 -0
- package/dist/components/iconList.es.js +25 -29
- package/dist/components/iconSvg.es.js +1 -1
- package/dist/components/index.es.js +46 -46
- package/dist/components/indicator.es.js +27 -28
- package/dist/components/infoBox.es.js +17 -17
- package/dist/components/link.es.js +82 -85
- package/dist/components/modal.es.js +20 -20
- package/dist/components/multiselect.es.js +54 -55
- package/dist/components/overlay.es.js +20 -15
- package/dist/components/pagination.es.js +111 -111
- package/dist/components/persistentToast.es.js +11 -11
- package/dist/components/popover.es.js +18 -18
- package/dist/components/popoverMenu.es.js +22 -22
- package/dist/components/progressBar.es.js +8 -8
- package/dist/components/quantitySelector.es.js +12 -12
- package/dist/components/radioButton.es.js +26 -26
- package/dist/components/selectionChip.es.js +5 -5
- package/dist/components/sidedrawer.es.js +19 -19
- package/dist/components/style/accordionGroup.css +1 -1
- 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/datepicker.css +1 -1
- package/dist/components/style/directAccess.css +1 -1
- package/dist/components/style/dragAndDrop.css +1 -1
- package/dist/components/style/filterChip.css +1 -1
- package/dist/components/style/icon-svg.css +1 -1
- package/dist/components/style/iconList.css +1 -1
- package/dist/components/style/link.css +1 -1
- package/dist/components/style/modal.css +1 -1
- package/dist/components/style/overlay.css +1 -1
- package/dist/components/style/pagination.css +1 -1
- package/dist/components/style/persistentToast.css +1 -1
- package/dist/components/style/selectionChip.css +1 -1
- package/dist/components/style/sidedrawer.css +1 -1
- package/dist/components/style/tabBar.css +1 -1
- package/dist/components/style/tableslotedcomponent.css +1 -1
- package/dist/components/switch.es.js +9 -9
- package/dist/components/tabBar.es.js +32 -33
- package/dist/components/tablepaginatedcomponent.es.js +35 -36
- package/dist/components/tableslotedcomponent.es.js +116 -121
- package/dist/components/tag.es.js +6 -6
- package/dist/components/textArea.es.js +103 -106
- package/dist/components/textField.es.js +21 -22
- package/dist/components/toggle.es.js +23 -23
- package/dist/components/tooltip.es.js +59 -59
- package/dist/energy-components.css +1 -0
- package/dist/energy-components.es.js +8931 -24801
- package/dist/energy-components.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/src/components/icon-svg/icon-list.d.ts +8 -9
- package/dist/types/src/components/input/filter-chip/filter-chip.vue.d.ts +2 -2
- package/dist/types/src/components/input/selection-chip/selection-chip.vue.d.ts +2 -2
- package/dist/types/src/components/navigation/direct-access/direct-access.vue.d.ts +2 -2
- package/dist/types/src/components/navigation/link/link.vue.d.ts +5 -8
- package/dist/types/src/components/overlay/modal/modal.vue.d.ts +1 -1
- package/dist/types/src/helpers/functions.d.ts +1 -0
- package/dist/types/style.d.ts +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +24 -17
- package/dist/components/functions-DIHwdgF0.js +0 -18
- package/dist/components/icon-svg-K8-vLJgV.js +0 -16718
- package/dist/composables/index.es.js +0 -37
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as $, toRefs as M, computed as s, createBlock as f, openBlock as t, resolveDynamicComponent as O, unref as e, normalizeStyle as P, normalizeClass as p, withCtx as U, createCommentVNode as d, createElementBlock as B, mergeProps as _, renderSlot as I, createTextVNode as z, toDisplayString as j } from "vue";
|
|
2
|
+
import { s as q } from "./functions-D3GA3OzJ.js";
|
|
3
|
+
import { I as k } from "./icon-svg-DxlNo61Q.js";
|
|
3
4
|
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
import './style/link.css';const
|
|
5
|
+
import './style/link.css';const F = /* @__PURE__ */ $({
|
|
5
6
|
__name: "link",
|
|
6
7
|
props: {
|
|
7
8
|
/**
|
|
8
9
|
* <span>Texto a mostrar en el link</span>
|
|
9
10
|
*/
|
|
10
11
|
text: {
|
|
11
|
-
type: String
|
|
12
|
-
default: void 0
|
|
12
|
+
type: String
|
|
13
13
|
},
|
|
14
14
|
/**
|
|
15
|
-
* <span>Url a la que redirige el link
|
|
15
|
+
* <span>Url a la que redirige el link</span>
|
|
16
16
|
*/
|
|
17
17
|
to: {
|
|
18
|
-
type:
|
|
19
|
-
// Corregido: Permite objetos de ruta sin lanzar warning
|
|
18
|
+
type: String,
|
|
20
19
|
default: ""
|
|
21
20
|
},
|
|
22
21
|
/**
|
|
@@ -25,7 +24,7 @@ import './style/link.css';const R = /* @__PURE__ */ D({
|
|
|
25
24
|
icon: {
|
|
26
25
|
type: Object,
|
|
27
26
|
default: () => ({ name: "", modifier: "" }),
|
|
28
|
-
validator: (
|
|
27
|
+
validator: (o) => typeof o.name == "string" && (o.modifier === void 0 || typeof o.modifier == "string") ? !0 : (console.error("El icono debe tener una propiedad name de tipo string y una propiedad modifier opcional de tipo string"), !1)
|
|
29
28
|
},
|
|
30
29
|
/**
|
|
31
30
|
* <span>Tag del link</span>
|
|
@@ -99,94 +98,92 @@ import './style/link.css';const R = /* @__PURE__ */ D({
|
|
|
99
98
|
}
|
|
100
99
|
},
|
|
101
100
|
emits: ["click"],
|
|
102
|
-
setup(
|
|
103
|
-
const
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
onClick: x
|
|
140
|
-
}), {
|
|
141
|
-
default: N(() => [
|
|
142
|
-
r.icon.name && !r.right && !r.arrow ? (i(), l(c, s({
|
|
101
|
+
setup(o, { emit: v }) {
|
|
102
|
+
const D = o, E = v, {
|
|
103
|
+
text: y,
|
|
104
|
+
to: w,
|
|
105
|
+
icon: a,
|
|
106
|
+
tag: u,
|
|
107
|
+
disabled: i,
|
|
108
|
+
inverse: m,
|
|
109
|
+
arrow: c,
|
|
110
|
+
right: n,
|
|
111
|
+
underline: g,
|
|
112
|
+
customClass: h,
|
|
113
|
+
color: l,
|
|
114
|
+
arrowSmall: b,
|
|
115
|
+
id: L
|
|
116
|
+
} = M(D), N = s(() => l.value ? { color: l.value } : void 0), R = s(() => q(w.value)), T = s(() => {
|
|
117
|
+
const r = ["rds-e-link"];
|
|
118
|
+
return m.value && r.push("rds-e-link--inverse"), g.value && r.push("rds-e-link--underline"), i.value && r.push("rds-e-style-state-disabled"), a?.value?.name !== "arrow" && r.push("rds-e-arrow-link"), a?.value?.name !== "arrow" && m.value && r.push("rds-e-arrow-link__icon--inverse"), h.value === "rds-e-breadcrumbs__link--text" && r.push("rds-e-link__breadcrumbs"), r.join(" ");
|
|
119
|
+
}), x = s(() => {
|
|
120
|
+
const r = ["rds-e-arrow-link__icon--arrow"];
|
|
121
|
+
return a?.value && (r.push("rds-e-arrow-link__icon"), i.value && r.push("rds-e-arrow-link__icon--disabled")), a?.value?.name !== "arrow" && m.value && r.push("rds-e-arrow-link__icon--inverse"), r.push(
|
|
122
|
+
n.value ? "rds-e-arrow-link__icon--animation-right" : "rds-e-arrow-link__icon--animation-left"
|
|
123
|
+
), r.join(" ");
|
|
124
|
+
}), S = s(() => c.value || a?.value?.name);
|
|
125
|
+
return (r, C) => (t(), f(O(e(u) === "a" ? e(u) : "router-link"), {
|
|
126
|
+
id: e(L),
|
|
127
|
+
class: p(T.value),
|
|
128
|
+
to: e(u) === "router-link" ? e(w) : null,
|
|
129
|
+
href: e(u) === "a" ? R.value : null,
|
|
130
|
+
disable: e(i),
|
|
131
|
+
style: P(N.value),
|
|
132
|
+
tabindex: e(i) ? -1 : void 0,
|
|
133
|
+
"aria-disabled": e(i),
|
|
134
|
+
onClick: C[0] || (C[0] = (V) => E("click", V))
|
|
135
|
+
}, {
|
|
136
|
+
default: U(() => [
|
|
137
|
+
e(a).name && !e(n) && !e(c) ? (t(), f(k, _({
|
|
143
138
|
key: 0,
|
|
144
|
-
name:
|
|
145
|
-
}, {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
139
|
+
name: e(a).name
|
|
140
|
+
}, {
|
|
141
|
+
...e(a)
|
|
142
|
+
}, {
|
|
143
|
+
class: ["rds-e-link__icon-left", x.value],
|
|
144
|
+
style: e(l) ? { color: e(l) } : void 0
|
|
145
|
+
}), null, 16, ["name", "class", "style"])) : d("", !0),
|
|
146
|
+
e(n) ? (t(), B("span", {
|
|
150
147
|
key: 1,
|
|
151
|
-
class:
|
|
152
|
-
"rds-e-mr-xs":
|
|
153
|
-
"rds-e-link__text--underline":
|
|
148
|
+
class: p(["rds-e-link__text", [e(h), {
|
|
149
|
+
"rds-e-mr-xs": S.value,
|
|
150
|
+
"rds-e-link__text--underline": e(g)
|
|
154
151
|
}]])
|
|
155
152
|
}, [
|
|
156
|
-
|
|
157
|
-
|
|
153
|
+
I(r.$slots, "default", {}, () => [
|
|
154
|
+
z(j(e(y)), 1)
|
|
158
155
|
], !0)
|
|
159
|
-
], 2)) :
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
class:
|
|
165
|
-
|
|
166
|
-
{ "rds-flex rds-flex-center-center":
|
|
167
|
-
]]
|
|
168
|
-
style:
|
|
169
|
-
}, null,
|
|
170
|
-
|
|
156
|
+
], 2)) : d("", !0),
|
|
157
|
+
e(c) ? (t(), f(k, _({ key: 2 }, {
|
|
158
|
+
name: e(n) ? "arrow_right" : "arrow_left",
|
|
159
|
+
size: e(b) ? 16 : void 0
|
|
160
|
+
}, {
|
|
161
|
+
class: ["rds-e-arrow-link__icon--arrow", [
|
|
162
|
+
e(n) ? "rds-e-arrow-link__icon--animation-right" : "rds-e-arrow-link__icon--animation-left",
|
|
163
|
+
{ "rds-flex rds-flex-center-center": e(b) }
|
|
164
|
+
]],
|
|
165
|
+
style: e(l) ? { color: e(l) } : void 0
|
|
166
|
+
}), null, 16, ["class", "style"])) : d("", !0),
|
|
167
|
+
e(n) ? d("", !0) : (t(), B("span", {
|
|
171
168
|
key: 3,
|
|
172
|
-
class:
|
|
169
|
+
class: p(["rds-e-link__text", { "rds-e-ml-xs": S.value }])
|
|
173
170
|
}, [
|
|
174
|
-
|
|
175
|
-
|
|
171
|
+
I(r.$slots, "default", {}, () => [
|
|
172
|
+
z(j(e(y)), 1)
|
|
176
173
|
], !0)
|
|
177
174
|
], 2)),
|
|
178
|
-
|
|
175
|
+
e(a).name && e(n) && !e(c) ? (t(), f(k, _({
|
|
179
176
|
key: 4,
|
|
180
|
-
name:
|
|
181
|
-
},
|
|
182
|
-
class: ["rds-e-link__icon-right",
|
|
183
|
-
style: e
|
|
184
|
-
}), null, 16, ["name", "class", "style"])) :
|
|
177
|
+
name: e(a).name
|
|
178
|
+
}, e(a), {
|
|
179
|
+
class: ["rds-e-link__icon-right", x.value],
|
|
180
|
+
style: e(l) ? { color: e(l) } : void 0
|
|
181
|
+
}), null, 16, ["name", "class", "style"])) : d("", !0)
|
|
185
182
|
]),
|
|
186
183
|
_: 3
|
|
187
|
-
},
|
|
184
|
+
}, 8, ["id", "class", "to", "href", "disable", "style", "tabindex", "aria-disabled"]));
|
|
188
185
|
}
|
|
189
|
-
}),
|
|
186
|
+
}), Q = /* @__PURE__ */ A(F, [["__scopeId", "data-v-794c0d15"]]);
|
|
190
187
|
export {
|
|
191
|
-
|
|
188
|
+
Q as default
|
|
192
189
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as z, ref as m, onMounted as N, onBeforeUnmount as W, watch as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as z, ref as m, onMounted as N, onBeforeUnmount as W, watch as E, computed as _, createBlock as C, createCommentVNode as f, openBlock as d, unref as c, withCtx as R, createVNode as F, withModifiers as T, normalizeStyle as V, createElementVNode as v, normalizeClass as k, createElementBlock as h, renderSlot as p } from "vue";
|
|
2
|
+
import I from "./overlay.es.js";
|
|
3
3
|
import L from "./card.es.js";
|
|
4
|
-
import {
|
|
5
|
-
import { _ as
|
|
4
|
+
import { I as A } from "./icon-svg-DxlNo61Q.js";
|
|
5
|
+
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
import './style/modal.css';const U = { class: "rds-e-modal__header" }, j = { class: "rds-e-modal__header-text" }, G = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "rds-e-modal__spacer"
|
|
@@ -73,8 +73,8 @@ import './style/modal.css';const U = { class: "rds-e-modal__header" }, j = { cla
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
emits: ["onCloseRequest", "onOpenRequest", "onToggleRequest"],
|
|
76
|
-
setup(o, { expose:
|
|
77
|
-
const t = o, s = O,
|
|
76
|
+
setup(o, { expose: S, emit: O }) {
|
|
77
|
+
const t = o, s = O, $ = m(null), r = m(null), q = m(null), u = m(!1);
|
|
78
78
|
let i = null, a = null;
|
|
79
79
|
const n = () => {
|
|
80
80
|
const e = r.value;
|
|
@@ -103,7 +103,7 @@ import './style/modal.css';const U = { class: "rds-e-modal__header" }, j = { cla
|
|
|
103
103
|
t.open && y();
|
|
104
104
|
}), W(() => {
|
|
105
105
|
b();
|
|
106
|
-
}),
|
|
106
|
+
}), E(() => t.open, (e) => {
|
|
107
107
|
e ? y() : b();
|
|
108
108
|
});
|
|
109
109
|
const x = _(() => t.mobileHeight < 30 ? "30vh" : t.mobileHeight > 90 ? "90vh" : `${t.mobileHeight}vh`), B = _(() => {
|
|
@@ -112,7 +112,7 @@ import './style/modal.css';const U = { class: "rds-e-modal__header" }, j = { cla
|
|
|
112
112
|
}), g = () => {
|
|
113
113
|
t.preventClose || s("onCloseRequest");
|
|
114
114
|
};
|
|
115
|
-
return
|
|
115
|
+
return S({
|
|
116
116
|
/**
|
|
117
117
|
* { () => void } Gestiona el clic fuera del modal.
|
|
118
118
|
*/
|
|
@@ -142,32 +142,32 @@ import './style/modal.css';const U = { class: "rds-e-modal__header" }, j = { cla
|
|
|
142
142
|
toggleModal: () => {
|
|
143
143
|
s("onToggleRequest");
|
|
144
144
|
}
|
|
145
|
-
}), (e, l) => o.open ? (d(),
|
|
145
|
+
}), (e, l) => o.open ? (d(), C(c(I), {
|
|
146
146
|
key: 0,
|
|
147
147
|
id: o.id,
|
|
148
148
|
ref_key: "overlay",
|
|
149
|
-
ref:
|
|
149
|
+
ref: $,
|
|
150
150
|
class: "rds-e-modal__overlay",
|
|
151
151
|
teleport: t.teleport,
|
|
152
152
|
onClick: g
|
|
153
153
|
}, {
|
|
154
|
-
default:
|
|
155
|
-
|
|
154
|
+
default: R(() => [
|
|
155
|
+
F(c(L), {
|
|
156
156
|
id: o.id ? `${o.id}-card` : void 0,
|
|
157
157
|
class: "rds-e-modal__card",
|
|
158
|
-
style:
|
|
159
|
-
onClick: l[1] || (l[1] =
|
|
158
|
+
style: V(B.value),
|
|
159
|
+
onClick: l[1] || (l[1] = T(() => {
|
|
160
160
|
}, ["stop"]))
|
|
161
161
|
}, {
|
|
162
|
-
default:
|
|
162
|
+
default: R(() => [
|
|
163
163
|
v("div", {
|
|
164
|
-
class:
|
|
164
|
+
class: k(["rds-e-modal__container", { "rds-e-modal__container--no-footer": !e.$slots.footer }])
|
|
165
165
|
}, [
|
|
166
166
|
v("div", U, [
|
|
167
167
|
v("div", j, [
|
|
168
168
|
p(e.$slots, "header", {}, void 0, !0)
|
|
169
169
|
]),
|
|
170
|
-
t.showClose ? (d(),
|
|
170
|
+
t.showClose ? (d(), C(c(A), {
|
|
171
171
|
key: 0,
|
|
172
172
|
class: "rds-e-modal__header-close",
|
|
173
173
|
name: "close",
|
|
@@ -187,8 +187,8 @@ import './style/modal.css';const U = { class: "rds-e-modal__header" }, j = { cla
|
|
|
187
187
|
e.$slots.footer ? (d(), h("div", {
|
|
188
188
|
key: 2,
|
|
189
189
|
ref_key: "footerRef",
|
|
190
|
-
ref:
|
|
191
|
-
class:
|
|
190
|
+
ref: q,
|
|
191
|
+
class: k(["rds-e-modal__footer", { "rds-e-modal__footer--has-shadow": u.value }])
|
|
192
192
|
}, [
|
|
193
193
|
p(e.$slots, "footer", {}, void 0, !0)
|
|
194
194
|
], 2)) : f("", !0)
|
|
@@ -200,7 +200,7 @@ import './style/modal.css';const U = { class: "rds-e-modal__header" }, j = { cla
|
|
|
200
200
|
_: 3
|
|
201
201
|
}, 8, ["id", "teleport"])) : f("", !0);
|
|
202
202
|
}
|
|
203
|
-
}), Z = /* @__PURE__ */
|
|
203
|
+
}), Z = /* @__PURE__ */ D(J, [["__scopeId", "data-v-5521fdf1"]]);
|
|
204
204
|
export {
|
|
205
205
|
Z as default
|
|
206
206
|
};
|
|
@@ -11,7 +11,7 @@ function M(e, t) {
|
|
|
11
11
|
return e === void 0 && (e = "undefined"), e === null && (e = "null"), e === !1 && (e = "false"), e.toString().toLowerCase().indexOf(t.trim()) !== -1;
|
|
12
12
|
}
|
|
13
13
|
function E(e, t, i, r) {
|
|
14
|
-
return t ? e.filter((n) => M(r(n, i), t)).sort((n,
|
|
14
|
+
return t ? e.filter((n) => M(r(n, i), t)).sort((n, s) => r(n, i).length - r(s, i).length) : e;
|
|
15
15
|
}
|
|
16
16
|
function z(e) {
|
|
17
17
|
return e.filter((t) => !t.$isLabel);
|
|
@@ -23,13 +23,13 @@ function V(e, t) {
|
|
|
23
23
|
}), r.concat(n[e])) : r, []);
|
|
24
24
|
}
|
|
25
25
|
function j(e, t, i, r, n) {
|
|
26
|
-
return (
|
|
26
|
+
return (s) => s.map((d) => {
|
|
27
27
|
if (!d[i])
|
|
28
28
|
return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."), [];
|
|
29
|
-
const
|
|
30
|
-
return
|
|
29
|
+
const l = E(d[i], e, t, n);
|
|
30
|
+
return l.length ? {
|
|
31
31
|
[r]: d[r],
|
|
32
|
-
[i]:
|
|
32
|
+
[i]: l
|
|
33
33
|
} : [];
|
|
34
34
|
});
|
|
35
35
|
}
|
|
@@ -420,7 +420,7 @@ const G = (...e) => (t) => e.reduce((i, r) => r(i), t), q = {
|
|
|
420
420
|
this.$emit("tag", e.label, this.id), this.search = "", this.closeOnSelect && !this.multiple && this.deactivate();
|
|
421
421
|
else {
|
|
422
422
|
if (this.isSelected(e)) {
|
|
423
|
-
|
|
423
|
+
t !== "Tab" && this.removeElement(e);
|
|
424
424
|
return;
|
|
425
425
|
}
|
|
426
426
|
this.multiple ? this.$emit("update:modelValue", this.internalValue.concat([e])) : this.$emit("update:modelValue", e), this.$emit("select", e, this.id), this.clearOnSelect && (this.search = "");
|
|
@@ -618,10 +618,9 @@ const G = (...e) => (t) => e.reduce((i, r) => r(i), t), q = {
|
|
|
618
618
|
this.pointer > 0 ? (this.pointer--, this.$refs.list.scrollTop >= this.pointerPosition && (this.$refs.list.scrollTop = this.pointerPosition), this.filteredOptions[this.pointer] && this.filteredOptions[this.pointer].$isLabel && !this.groupSelect && this.pointerBackward()) : this.filteredOptions[this.pointer] && this.filteredOptions[0].$isLabel && !this.groupSelect && this.pointerForward(), this.pointerDirty = !0;
|
|
619
619
|
},
|
|
620
620
|
pointerReset() {
|
|
621
|
-
var e;
|
|
622
621
|
if (this.closeOnSelect && (this.pointer = 0, this.$refs.list)) {
|
|
623
|
-
const
|
|
624
|
-
|
|
622
|
+
const e = this.$refs.list.$refs?.wrapper || this.$refs.list;
|
|
623
|
+
e.scrollTop && (e.scrollTop = 0);
|
|
625
624
|
}
|
|
626
625
|
},
|
|
627
626
|
pointerAdjust() {
|
|
@@ -898,25 +897,25 @@ const G = (...e) => (t) => e.reduce((i, r) => r(i), t), q = {
|
|
|
898
897
|
ref: "tags",
|
|
899
898
|
class: "multiselect__tags"
|
|
900
899
|
}, Q = { class: "multiselect__tags-wrap" }, X = ["textContent"], Y = ["onKeypress", "onMousedown"], Z = ["textContent"], _ = { class: "multiselect__spinner" }, ee = ["name", "id", "spellcheck", "placeholder", "required", "value", "disabled", "tabindex", "aria-controls"];
|
|
901
|
-
function te(e, t, i, r, n,
|
|
900
|
+
function te(e, t, i, r, n, s) {
|
|
902
901
|
const d = H("MultiselectContentWrapper");
|
|
903
902
|
return c(), g("div", {
|
|
904
903
|
tabindex: e.searchable ? -1 : i.tabindex,
|
|
905
|
-
class: P([{ "multiselect--active": e.isOpen, "multiselect--disabled": i.disabled, "multiselect--above":
|
|
906
|
-
onFocus: t[11] || (t[11] = (
|
|
907
|
-
onBlur: t[12] || (t[12] = (...
|
|
904
|
+
class: P([{ "multiselect--active": e.isOpen, "multiselect--disabled": i.disabled, "multiselect--above": s.isAbove, "multiselect--has-options-group": s.hasOptionGroup }, "multiselect"]),
|
|
905
|
+
onFocus: t[11] || (t[11] = (l) => e.activate()),
|
|
906
|
+
onBlur: t[12] || (t[12] = (...l) => s.onBlur && s.onBlur(...l)),
|
|
908
907
|
onKeydown: [
|
|
909
|
-
t[13] || (t[13] = a(o((
|
|
910
|
-
t[14] || (t[14] = a(o((
|
|
908
|
+
t[13] || (t[13] = a(o((l) => e.pointerForward(), ["self", "prevent"]), ["down"])),
|
|
909
|
+
t[14] || (t[14] = a(o((l) => e.pointerBackward(), ["self", "prevent"]), ["up"]))
|
|
911
910
|
],
|
|
912
|
-
onKeypress: t[15] || (t[15] = a(o((
|
|
913
|
-
onKeyup: t[16] || (t[16] = a((
|
|
911
|
+
onKeypress: t[15] || (t[15] = a(o((l) => e.addPointerElement(l), ["stop", "self"]), ["enter", "tab"])),
|
|
912
|
+
onKeyup: t[16] || (t[16] = a((l) => e.deactivate(), ["esc"])),
|
|
914
913
|
role: "combobox",
|
|
915
914
|
"aria-owns": "listbox-" + e.id
|
|
916
915
|
}, [
|
|
917
916
|
u(e.$slots, "caret", { toggle: e.toggle }, () => [
|
|
918
917
|
p("div", {
|
|
919
|
-
onMousedown: t[0] || (t[0] = o((
|
|
918
|
+
onMousedown: t[0] || (t[0] = o((l) => e.toggle(), ["prevent", "stop"])),
|
|
920
919
|
class: "multiselect__select"
|
|
921
920
|
}, null, 32)
|
|
922
921
|
], !0),
|
|
@@ -925,12 +924,12 @@ function te(e, t, i, r, n, l) {
|
|
|
925
924
|
u(e.$slots, "selection", {
|
|
926
925
|
search: e.search,
|
|
927
926
|
remove: e.removeElement,
|
|
928
|
-
values:
|
|
927
|
+
values: s.visibleValues,
|
|
929
928
|
isOpen: e.isOpen
|
|
930
929
|
}, () => [
|
|
931
930
|
v(p("div", Q, [
|
|
932
|
-
(c(!0), g(N, null, L(
|
|
933
|
-
option:
|
|
931
|
+
(c(!0), g(N, null, L(s.visibleValues, (l, h) => u(e.$slots, "tag", {
|
|
932
|
+
option: l,
|
|
934
933
|
search: e.search,
|
|
935
934
|
remove: e.removeElement
|
|
936
935
|
}, () => [
|
|
@@ -939,18 +938,18 @@ function te(e, t, i, r, n, l) {
|
|
|
939
938
|
key: h
|
|
940
939
|
}, [
|
|
941
940
|
p("span", {
|
|
942
|
-
textContent: w(e.getOptionLabel(
|
|
941
|
+
textContent: w(e.getOptionLabel(l))
|
|
943
942
|
}, null, 8, X),
|
|
944
943
|
p("i", {
|
|
945
944
|
tabindex: "1",
|
|
946
|
-
onKeypress: a(o((f) => e.removeElement(
|
|
947
|
-
onMousedown: o((f) => e.removeElement(
|
|
945
|
+
onKeypress: a(o((f) => e.removeElement(l), ["prevent"]), ["enter"]),
|
|
946
|
+
onMousedown: o((f) => e.removeElement(l), ["prevent"]),
|
|
948
947
|
class: "multiselect__tag-icon"
|
|
949
948
|
}, null, 40, Y)
|
|
950
949
|
]))
|
|
951
950
|
], !0)), 256))
|
|
952
951
|
], 512), [
|
|
953
|
-
[O,
|
|
952
|
+
[O, s.visibleValues.length > 0]
|
|
954
953
|
]),
|
|
955
954
|
e.internalValue && e.internalValue.length > i.limit ? u(e.$slots, "limit", { key: 0 }, () => [
|
|
956
955
|
p("strong", {
|
|
@@ -980,30 +979,30 @@ function te(e, t, i, r, n, l) {
|
|
|
980
979
|
placeholder: e.placeholder,
|
|
981
980
|
required: i.required,
|
|
982
981
|
style: C({
|
|
983
|
-
...
|
|
982
|
+
...s.inputStyle
|
|
984
983
|
}),
|
|
985
984
|
value: e.search,
|
|
986
985
|
disabled: i.disabled,
|
|
987
986
|
tabindex: i.tabindex,
|
|
988
|
-
onInput: t[1] || (t[1] = (
|
|
989
|
-
onFocus: t[2] || (t[2] = o((
|
|
990
|
-
onBlur: t[3] || (t[3] = o((
|
|
991
|
-
onKeyup: t[4] || (t[4] = a((
|
|
987
|
+
onInput: t[1] || (t[1] = (l) => e.updateSearch(l.target.value)),
|
|
988
|
+
onFocus: t[2] || (t[2] = o((l) => e.activate(), ["prevent"])),
|
|
989
|
+
onBlur: t[3] || (t[3] = o((l) => e.deactivate(), ["prevent"])),
|
|
990
|
+
onKeyup: t[4] || (t[4] = a((l) => e.deactivate(), ["esc"])),
|
|
992
991
|
onKeydown: [
|
|
993
|
-
t[5] || (t[5] = a(o((
|
|
994
|
-
t[6] || (t[6] = a(o((
|
|
995
|
-
t[8] || (t[8] = a(o((
|
|
992
|
+
t[5] || (t[5] = a(o((l) => e.pointerForward(), ["prevent"]), ["down"])),
|
|
993
|
+
t[6] || (t[6] = a(o((l) => e.pointerBackward(), ["prevent"]), ["up"])),
|
|
994
|
+
t[8] || (t[8] = a(o((l) => e.removeLastElement(), ["stop"]), ["delete"]))
|
|
996
995
|
],
|
|
997
|
-
onKeypress: t[7] || (t[7] = a(o((
|
|
996
|
+
onKeypress: t[7] || (t[7] = a(o((l) => e.addPointerElement(l), ["prevent", "stop", "self"]), ["enter"])),
|
|
998
997
|
class: "multiselect__input",
|
|
999
998
|
"aria-controls": "listbox-" + e.id
|
|
1000
999
|
}, null, 44, ee)) : b("", !0),
|
|
1001
|
-
|
|
1000
|
+
s.isSingleLabelVisible ? (c(), g("span", {
|
|
1002
1001
|
key: 1,
|
|
1003
1002
|
class: "multiselect__single",
|
|
1004
|
-
onMousedown: t[9] || (t[9] = o((...
|
|
1003
|
+
onMousedown: t[9] || (t[9] = o((...l) => e.toggle && e.toggle(...l), ["prevent"]))
|
|
1005
1004
|
}, [
|
|
1006
|
-
u(e.$slots, "singleLabel", { option:
|
|
1005
|
+
u(e.$slots, "singleLabel", { option: s.singleValue }, () => [
|
|
1007
1006
|
F(w(e.currentOptionLabel), 1)
|
|
1008
1007
|
], !0)
|
|
1009
1008
|
], 32)) : b("", !0)
|
|
@@ -1021,29 +1020,29 @@ function te(e, t, i, r, n, l) {
|
|
|
1021
1020
|
optionHighlight: e.optionHighlight,
|
|
1022
1021
|
select: e.select,
|
|
1023
1022
|
pointerSet: e.pointerSet,
|
|
1024
|
-
selectLabelText:
|
|
1025
|
-
selectedLabelText:
|
|
1026
|
-
deselectLabelText:
|
|
1023
|
+
selectLabelText: s.selectLabelText,
|
|
1024
|
+
selectedLabelText: s.selectedLabelText,
|
|
1025
|
+
deselectLabelText: s.deselectLabelText,
|
|
1027
1026
|
tagPlaceholder: e.tagPlaceholder,
|
|
1028
1027
|
groupSelect: e.groupSelect,
|
|
1029
|
-
selectGroupLabelText:
|
|
1030
|
-
deselectGroupLabelText:
|
|
1028
|
+
selectGroupLabelText: s.selectGroupLabelText,
|
|
1029
|
+
deselectGroupLabelText: s.deselectGroupLabelText,
|
|
1031
1030
|
getOptionLabel: e.getOptionLabel,
|
|
1032
1031
|
groupHighlight: e.groupHighlight,
|
|
1033
1032
|
selectGroup: e.selectGroup,
|
|
1034
1033
|
options: e.options,
|
|
1035
|
-
hasOptionGroup:
|
|
1034
|
+
hasOptionGroup: s.hasOptionGroup,
|
|
1036
1035
|
search: e.search,
|
|
1037
1036
|
loading: i.loading,
|
|
1038
1037
|
showNoResults: i.showNoResults,
|
|
1039
1038
|
showNoOptions: i.showNoOptions,
|
|
1040
1039
|
small: i.small,
|
|
1041
|
-
contentStyle:
|
|
1042
|
-
customStyle:
|
|
1040
|
+
contentStyle: s.contentStyle,
|
|
1041
|
+
customStyle: s.dropdownStyle,
|
|
1043
1042
|
ref: "list",
|
|
1044
1043
|
onFocus: e.activate
|
|
1045
1044
|
}, B({ _: 2 }, [
|
|
1046
|
-
L(e.$slots, (
|
|
1045
|
+
L(e.$slots, (l, h) => ({
|
|
1047
1046
|
name: h,
|
|
1048
1047
|
fn: y((f) => [
|
|
1049
1048
|
u(e.$slots, h, $(D(f)), void 0, !0)
|
|
@@ -1070,30 +1069,30 @@ function te(e, t, i, r, n, l) {
|
|
|
1070
1069
|
optionHighlight: e.optionHighlight,
|
|
1071
1070
|
select: e.select,
|
|
1072
1071
|
pointerSet: e.pointerSet,
|
|
1073
|
-
selectLabelText:
|
|
1074
|
-
selectedLabelText:
|
|
1075
|
-
deselectLabelText:
|
|
1072
|
+
selectLabelText: s.selectLabelText,
|
|
1073
|
+
selectedLabelText: s.selectedLabelText,
|
|
1074
|
+
deselectLabelText: s.deselectLabelText,
|
|
1076
1075
|
tagPlaceholder: e.tagPlaceholder,
|
|
1077
1076
|
groupSelect: e.groupSelect,
|
|
1078
|
-
selectGroupLabelText:
|
|
1079
|
-
deselectGroupLabelText:
|
|
1077
|
+
selectGroupLabelText: s.selectGroupLabelText,
|
|
1078
|
+
deselectGroupLabelText: s.deselectGroupLabelText,
|
|
1080
1079
|
getOptionLabel: e.getOptionLabel,
|
|
1081
1080
|
groupHighlight: e.groupHighlight,
|
|
1082
1081
|
selectGroup: e.selectGroup,
|
|
1083
1082
|
options: e.options,
|
|
1084
|
-
hasOptionGroup:
|
|
1083
|
+
hasOptionGroup: s.hasOptionGroup,
|
|
1085
1084
|
search: e.search,
|
|
1086
1085
|
loading: i.loading,
|
|
1087
1086
|
showNoResults: i.showNoResults,
|
|
1088
1087
|
showNoOptions: i.showNoOptions,
|
|
1089
1088
|
small: i.small,
|
|
1090
|
-
contentStyle:
|
|
1091
|
-
customStyle:
|
|
1089
|
+
contentStyle: s.contentStyle,
|
|
1090
|
+
customStyle: s.teleportedContentStyle,
|
|
1092
1091
|
onFocus: e.activate,
|
|
1093
1092
|
onClick: t[10] || (t[10] = o(() => {
|
|
1094
1093
|
}, ["stop"]))
|
|
1095
1094
|
}, B({ _: 2 }, [
|
|
1096
|
-
L(e.$slots, (
|
|
1095
|
+
L(e.$slots, (l, h) => ({
|
|
1097
1096
|
name: h,
|
|
1098
1097
|
fn: y((f) => [
|
|
1099
1098
|
u(e.$slots, h, $(D(f)), void 0, !0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as d, createBlock as
|
|
2
|
-
import { _ as
|
|
3
|
-
import './style/overlay.css';const
|
|
1
|
+
import { defineComponent as c, useAttrs as d, computed as l, createBlock as p, openBlock as u, Teleport as f, createElementVNode as s, mergeProps as _, renderSlot as m } from "vue";
|
|
2
|
+
import { _ as v } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
import './style/overlay.css';const y = ["id"], h = { class: "rds-e-overlay__content" }, g = /* @__PURE__ */ c({
|
|
4
4
|
__name: "overlay",
|
|
5
5
|
props: {
|
|
6
6
|
/**
|
|
@@ -20,22 +20,27 @@ import './style/overlay.css';const p = ["id"], _ = { class: "rds-e-overlay__cont
|
|
|
20
20
|
default: void 0
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
|
-
setup(
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
setup(o) {
|
|
24
|
+
const a = o, n = d(), i = l(() => {
|
|
25
|
+
const t = {};
|
|
26
|
+
return Object.entries(n).forEach(([e, r]) => {
|
|
27
|
+
/^on[a-z]+/i.test(e) || typeof r == "string" && r.trim().toLowerCase().startsWith("javascript:") || (t[e] = r);
|
|
28
|
+
}), t;
|
|
29
|
+
});
|
|
30
|
+
return (t, e) => (u(), p(f, {
|
|
31
|
+
to: a.teleport
|
|
27
32
|
}, [
|
|
28
|
-
|
|
29
|
-
id:
|
|
33
|
+
s("div", _({
|
|
34
|
+
id: o.id,
|
|
30
35
|
class: "rds-e-overlay"
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
|
|
36
|
+
}, i.value), [
|
|
37
|
+
s("div", h, [
|
|
38
|
+
m(t.$slots, "default", {}, void 0, !0)
|
|
34
39
|
])
|
|
35
|
-
], 16,
|
|
40
|
+
], 16, y)
|
|
36
41
|
], 8, ["to"]));
|
|
37
42
|
}
|
|
38
|
-
}),
|
|
43
|
+
}), j = /* @__PURE__ */ v(g, [["__scopeId", "data-v-e82b4703"]]);
|
|
39
44
|
export {
|
|
40
|
-
|
|
45
|
+
j as default
|
|
41
46
|
};
|