energy-components 1.0.4 → 1.1.2-beta.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/getInstance-GhoEcxLF.js +21 -0
- package/dist/components/index.es.js +25 -22
- package/dist/components/infoBox.es.js +4 -4
- package/dist/components/link.es.js +41 -33
- package/dist/components/modal.es.js +60 -39
- package/dist/components/persistentToast.es.js +4 -4
- package/dist/components/radioButton.es.js +43 -59
- package/dist/components/sidebar.es.js +102 -0
- package/dist/components/style/accordion.css +1 -1
- package/dist/components/style/accordionGroup.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/card.css +1 -1
- package/dist/components/style/checkbox.css +1 -1
- package/dist/components/style/datepicker.css +1 -1
- package/dist/components/style/divider.css +1 -1
- package/dist/components/style/dropdown.css +1 -1
- package/dist/components/style/floatingActionButton.css +1 -1
- package/dist/components/style/icon-svg.css +1 -1
- package/dist/components/style/iconList.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/overlay.css +1 -1
- package/dist/components/style/pagination.css +1 -1
- package/dist/components/style/persistentToast.css +1 -1
- package/dist/components/style/radioButton.css +1 -1
- package/dist/components/style/sidebar.css +1 -0
- package/dist/components/style/switch.css +1 -1
- package/dist/components/style/tabBar.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 +58 -59
- package/dist/components/tooltip.es.js +34 -33
- package/dist/composables/index.es.js +37 -0
- package/dist/energy-components.es.js +2847 -2720
- package/dist/energy-components.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/components/index.d.ts +1 -0
- package/dist/types/src/components/input/text-field/text-field.vue.d.ts +4 -7
- package/dist/types/src/components/layout/sidebar/sidebar.vue.d.ts +49 -0
- package/dist/types/src/components/navigation/link/link.vue.d.ts +15 -0
- package/dist/types/src/components/overlay/modal/modal.vue.d.ts +34 -2
- package/dist/types/src/composables/breakpoints.d.ts +5 -0
- package/dist/types/src/composables/index.d.ts +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -3
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as P, toRefs as z, ref as F, computed as s, watch as H, openBlock as u, createElementBlock as m, normalizeClass as v, createElementVNode as i, renderSlot as h, createBlock as M, mergeProps as w, toHandlers as U, createCommentVNode as _, unref as t, toDisplayString as L, createVNode as A, withModifiers as G } from "vue";
|
|
2
|
+
import { g as J } from "./getInstance-GhoEcxLF.js";
|
|
3
|
+
import { I as S } from "./icon-svg-CEZ-L3iv.js";
|
|
4
|
+
import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
import './style/textField.css';const O = { class: "rds-e-textfield__container" }, Q = { class: "rds-e-textfield__input-container" }, W = ["id", "type", "maxLength", "minLength", "disabled", "value", "autocomplete", "readonly"], X = ["for"], Y = {
|
|
5
6
|
key: 0,
|
|
6
7
|
class: "rds-e-textfield__icon rds-e-textfield__icon--right"
|
|
7
|
-
},
|
|
8
|
+
}, Z = { class: "rds-e-textfield__helper" }, ee = /* @__PURE__ */ P({
|
|
8
9
|
__name: "text-field",
|
|
9
10
|
props: {
|
|
10
11
|
/**
|
|
@@ -18,9 +19,8 @@ import './style/textField.css';const K = { class: "rds-e-textfield__container" }
|
|
|
18
19
|
* Identificador único del campo de entrada.
|
|
19
20
|
*/
|
|
20
21
|
id: {
|
|
21
|
-
type:
|
|
22
|
-
required: !
|
|
23
|
-
default: "text-field-0"
|
|
22
|
+
type: String,
|
|
23
|
+
required: !1
|
|
24
24
|
},
|
|
25
25
|
/**
|
|
26
26
|
* v-model valor de entrada y salida
|
|
@@ -118,40 +118,39 @@ import './style/textField.css';const K = { class: "rds-e-textfield__container" }
|
|
|
118
118
|
type: String,
|
|
119
119
|
default: "off",
|
|
120
120
|
validator: (l, c) => {
|
|
121
|
-
const
|
|
122
|
-
return c.password && !
|
|
121
|
+
const a = ["new-password", "current-password", "off"];
|
|
122
|
+
return c.password && !a.includes(l) ? (console.info(`[RDSTextfield]: El valor de autocomplete para un campo de contraseña debe ser uno de los siguientes: ${a.join(", ")}`), !1) : !0;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
126
|
emits: ["update:modelValue"],
|
|
127
127
|
setup(l, { emit: c }) {
|
|
128
|
-
const
|
|
128
|
+
const a = l, g = c, {
|
|
129
129
|
label: B,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
modelValue: a,
|
|
130
|
+
disabled: d,
|
|
131
|
+
maxLength: x,
|
|
132
|
+
minLength: y,
|
|
133
|
+
modelValue: o,
|
|
135
134
|
icon: V,
|
|
136
135
|
rightIcon: E,
|
|
137
136
|
helper: I,
|
|
138
137
|
error: f,
|
|
139
138
|
helperText: T,
|
|
140
|
-
clearable:
|
|
139
|
+
clearable: $,
|
|
141
140
|
password: p,
|
|
142
|
-
autocomplete:
|
|
143
|
-
} =
|
|
141
|
+
autocomplete: C
|
|
142
|
+
} = z(a), n = F(!0), R = J(), b = s(() => a.id || `text-field-${R}`), q = s(() => {
|
|
144
143
|
if (p.value)
|
|
145
|
-
return
|
|
144
|
+
return C.value;
|
|
146
145
|
}), N = (e) => {
|
|
147
146
|
g(
|
|
148
147
|
"update:modelValue",
|
|
149
148
|
e.target.value
|
|
150
149
|
);
|
|
151
|
-
}, D =
|
|
150
|
+
}, D = s(() => !!(f.value || o.value.length && (o.value.length < y.value || o.value.length > x.value))), j = s(() => {
|
|
152
151
|
const e = [];
|
|
153
|
-
return
|
|
154
|
-
}), r =
|
|
152
|
+
return o.value && e.push("rds-e-textfield--filled"), D.value && e.push("rds-e-textfield--error"), d.value && e.push("rds-e-textfield--disabled"), e.join(" ");
|
|
153
|
+
}), r = s(() => {
|
|
155
154
|
const e = {
|
|
156
155
|
name: V.value,
|
|
157
156
|
class: "",
|
|
@@ -159,7 +158,7 @@ import './style/textField.css';const K = { class: "rds-e-textfield__container" }
|
|
|
159
158
|
click: () => {
|
|
160
159
|
}
|
|
161
160
|
}
|
|
162
|
-
},
|
|
161
|
+
}, k = {
|
|
163
162
|
left: {
|
|
164
163
|
...e
|
|
165
164
|
},
|
|
@@ -175,13 +174,13 @@ import './style/textField.css';const K = { class: "rds-e-textfield__container" }
|
|
|
175
174
|
},
|
|
176
175
|
right: {
|
|
177
176
|
...e,
|
|
178
|
-
name:
|
|
177
|
+
name: n.value ? "eye_open" : "eye_close",
|
|
179
178
|
class: "rds-e-textfield__icon--password",
|
|
180
179
|
events: {
|
|
181
|
-
click: () =>
|
|
180
|
+
click: () => n.value = !n.value
|
|
182
181
|
}
|
|
183
182
|
}
|
|
184
|
-
} :
|
|
183
|
+
} : $.value ? {
|
|
185
184
|
left: {
|
|
186
185
|
...e
|
|
187
186
|
},
|
|
@@ -193,45 +192,45 @@ import './style/textField.css';const K = { class: "rds-e-textfield__container" }
|
|
|
193
192
|
click: () => g("update:modelValue", "")
|
|
194
193
|
}
|
|
195
194
|
}
|
|
196
|
-
} :
|
|
195
|
+
} : k;
|
|
197
196
|
});
|
|
198
|
-
return
|
|
197
|
+
return H(
|
|
199
198
|
p,
|
|
200
|
-
(e) =>
|
|
199
|
+
(e) => n.value = !e,
|
|
201
200
|
{ immediate: !0 }
|
|
202
|
-
), (e,
|
|
203
|
-
class:
|
|
201
|
+
), (e, k) => (u(), m("div", {
|
|
202
|
+
class: v(["rds-e-textfield", j.value])
|
|
204
203
|
}, [
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
r.value.left.name ? (u(),
|
|
204
|
+
i("div", O, [
|
|
205
|
+
h(e.$slots, "left-icon", {}, () => [
|
|
206
|
+
r.value.left.name ? (u(), M(S, w({
|
|
208
207
|
key: 0,
|
|
209
208
|
class: "rds-e-textfield__icon rds-e-textfield__icon--left",
|
|
210
209
|
"aria-hidden": "true"
|
|
211
|
-
}, r.value.left,
|
|
210
|
+
}, r.value.left, U(r.value.left.events)), null, 16)) : _("", !0)
|
|
212
211
|
], !0),
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
id:
|
|
216
|
-
type:
|
|
212
|
+
i("div", Q, [
|
|
213
|
+
i("input", {
|
|
214
|
+
id: b.value,
|
|
215
|
+
type: n.value ? "text" : "password",
|
|
217
216
|
class: "rds-e-textfield__input",
|
|
218
|
-
maxLength: t(
|
|
219
|
-
minLength: t(
|
|
220
|
-
disabled: t(
|
|
221
|
-
value: t(
|
|
217
|
+
maxLength: t(x),
|
|
218
|
+
minLength: t(y),
|
|
219
|
+
disabled: t(d),
|
|
220
|
+
value: t(o),
|
|
222
221
|
autocomplete: q.value,
|
|
223
222
|
readonly: l.readonly,
|
|
224
223
|
onInput: N,
|
|
225
224
|
onBlur: N
|
|
226
|
-
}, null, 40,
|
|
227
|
-
|
|
228
|
-
for:
|
|
229
|
-
class:
|
|
230
|
-
},
|
|
225
|
+
}, null, 40, W),
|
|
226
|
+
i("label", {
|
|
227
|
+
for: b.value,
|
|
228
|
+
class: v(["rds-e-textfield__label", t(d) ? "rds-e-textfield__label--disabled" : ""])
|
|
229
|
+
}, L(t(B)), 11, X)
|
|
231
230
|
]),
|
|
232
|
-
r.value.right.name || e.$slots["right-icon"] ? (u(), m("span",
|
|
233
|
-
|
|
234
|
-
A(
|
|
231
|
+
r.value.right.name || e.$slots["right-icon"] ? (u(), m("span", Y, [
|
|
232
|
+
h(e.$slots, "right-icon", {}, () => [
|
|
233
|
+
A(S, w({
|
|
235
234
|
"aria-hidden": "true",
|
|
236
235
|
class: "rds-e-textfield__icon rds-e-textfield__icon--right"
|
|
237
236
|
}, r.value.right, {
|
|
@@ -240,17 +239,17 @@ import './style/textField.css';const K = { class: "rds-e-textfield__container" }
|
|
|
240
239
|
], !0)
|
|
241
240
|
])) : _("", !0)
|
|
242
241
|
]),
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
(t(I) || t(f)) && !t(
|
|
242
|
+
i("div", Z, [
|
|
243
|
+
h(e.$slots, "helper-text", {}, () => [
|
|
244
|
+
(t(I) || t(f)) && !t(d) ? (u(), m("span", {
|
|
246
245
|
key: 0,
|
|
247
|
-
class:
|
|
248
|
-
},
|
|
246
|
+
class: v(t(f) ? "rds-e-textfield__helper--error" : "")
|
|
247
|
+
}, L(t(T)), 3)) : _("", !0)
|
|
249
248
|
], !0)
|
|
250
249
|
])
|
|
251
250
|
], 2));
|
|
252
251
|
}
|
|
253
|
-
}),
|
|
252
|
+
}), oe = /* @__PURE__ */ K(ee, [["__scopeId", "data-v-0fc1a0b1"]]);
|
|
254
253
|
export {
|
|
255
|
-
|
|
254
|
+
oe as default
|
|
256
255
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { unref as at, defineComponent as Vt, toRefs as Mt, ref as U, computed as Ft, openBlock as bt, createElementBlock as At, createElementVNode as Z, renderSlot as Ht, normalizeClass as Ct, toDisplayString as Rt, createVNode as jt, createCommentVNode as Yt } from "vue";
|
|
2
2
|
import { I as Xt } from "./icon-svg-CEZ-L3iv.js";
|
|
3
3
|
import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
import './style/tooltip.css';const X = Math.min,
|
|
4
|
+
import './style/tooltip.css';const X = Math.min, R = Math.max, nt = Math.round, H = (t) => ({
|
|
5
5
|
x: t,
|
|
6
6
|
y: t
|
|
7
7
|
}), zt = {
|
|
@@ -14,7 +14,7 @@ import './style/tooltip.css';const X = Math.min, O = Math.max, nt = Math.round,
|
|
|
14
14
|
end: "start"
|
|
15
15
|
};
|
|
16
16
|
function ft(t, e, o) {
|
|
17
|
-
return
|
|
17
|
+
return R(t, X(e, o));
|
|
18
18
|
}
|
|
19
19
|
function J(t, e) {
|
|
20
20
|
return typeof t == "function" ? t(e) : t;
|
|
@@ -282,9 +282,9 @@ const te = (t) => ({
|
|
|
282
282
|
x: o,
|
|
283
283
|
y: n
|
|
284
284
|
}, d = ht(i), m = gt(d), g = await s.getDimensions(a), h = d === "y", w = h ? "top" : "left", x = h ? "bottom" : "right", y = h ? "clientHeight" : "clientWidth", b = r.reference[m] + r.reference[d] - p[d] - r.floating[m], v = p[d] - r.reference[d], T = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a));
|
|
285
|
-
let
|
|
286
|
-
(!
|
|
287
|
-
const $ = b / 2 - v / 2, E =
|
|
285
|
+
let O = T ? T[y] : 0;
|
|
286
|
+
(!O || !await (s.isElement == null ? void 0 : s.isElement(T))) && (O = l.floating[y] || r.floating[m]);
|
|
287
|
+
const $ = b / 2 - v / 2, E = O / 2 - g[m] / 2 - 1, _ = X(u[w], E), B = X(u[x], E), P = _, V = O - g[m] - B, A = O / 2 - g[m] / 2 + $, K = ft(P, A, V), W = !c.arrow && Q(i) != null && A !== K && r.reference[m] / 2 - (A < P ? _ : B) - g[m] / 2 < 0, L = W ? A < P ? A - P : A - V : 0;
|
|
288
288
|
return {
|
|
289
289
|
[d]: p[d] + L,
|
|
290
290
|
data: {
|
|
@@ -323,7 +323,7 @@ const te = (t) => ({
|
|
|
323
323
|
return {};
|
|
324
324
|
const w = j(i), x = I(l), y = j(l) === l, b = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), v = p || (y || !g ? [ot(l)] : Gt(l)), T = m !== "none";
|
|
325
325
|
!p && T && v.push(...Qt(l, g, m, b));
|
|
326
|
-
const
|
|
326
|
+
const O = [l, ...v], $ = await wt(e, h), E = [];
|
|
327
327
|
let _ = ((n = r.flip) == null ? void 0 : n.overflows) || [];
|
|
328
328
|
if (f && E.push($[w]), u) {
|
|
329
329
|
const A = qt(i, s, b);
|
|
@@ -334,7 +334,7 @@ const te = (t) => ({
|
|
|
334
334
|
overflows: E
|
|
335
335
|
}], !E.every((A) => A <= 0)) {
|
|
336
336
|
var B, P;
|
|
337
|
-
const A = (((B = r.flip) == null ? void 0 : B.index) || 0) + 1, K =
|
|
337
|
+
const A = (((B = r.flip) == null ? void 0 : B.index) || 0) + 1, K = O[A];
|
|
338
338
|
if (K)
|
|
339
339
|
return {
|
|
340
340
|
data: {
|
|
@@ -504,15 +504,15 @@ const oe = function(t) {
|
|
|
504
504
|
let h, w;
|
|
505
505
|
u === "top" || u === "bottom" ? (h = u, w = p === (await (s.isRTL == null ? void 0 : s.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (w = u, h = p === "end" ? "top" : "bottom");
|
|
506
506
|
const x = g - f.top - f.bottom, y = m - f.left - f.right, b = X(g - f[h], x), v = X(m - f[w], y), T = !e.middlewareData.shift;
|
|
507
|
-
let
|
|
508
|
-
if ((o = e.middlewareData.shift) != null && o.enabled.x && ($ = y), (n = e.middlewareData.shift) != null && n.enabled.y && (
|
|
509
|
-
const _ =
|
|
510
|
-
d ? $ = m - 2 * (_ !== 0 || B !== 0 ? _ + B :
|
|
507
|
+
let O = b, $ = v;
|
|
508
|
+
if ((o = e.middlewareData.shift) != null && o.enabled.x && ($ = y), (n = e.middlewareData.shift) != null && n.enabled.y && (O = x), T && !p) {
|
|
509
|
+
const _ = R(f.left, 0), B = R(f.right, 0), P = R(f.top, 0), V = R(f.bottom, 0);
|
|
510
|
+
d ? $ = m - 2 * (_ !== 0 || B !== 0 ? _ + B : R(f.left, f.right)) : O = g - 2 * (P !== 0 || V !== 0 ? P + V : R(f.top, f.bottom));
|
|
511
511
|
}
|
|
512
512
|
await c({
|
|
513
513
|
...e,
|
|
514
514
|
availableWidth: $,
|
|
515
|
-
availableHeight:
|
|
515
|
+
availableHeight: O
|
|
516
516
|
});
|
|
517
517
|
const E = await s.getDimensions(l.floating);
|
|
518
518
|
return m !== E.width || g !== E.height ? {
|
|
@@ -529,7 +529,7 @@ function st() {
|
|
|
529
529
|
function z(t) {
|
|
530
530
|
return xt(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function C(t) {
|
|
533
533
|
var e;
|
|
534
534
|
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
535
535
|
}
|
|
@@ -538,16 +538,16 @@ function N(t) {
|
|
|
538
538
|
return (e = (xt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
539
539
|
}
|
|
540
540
|
function xt(t) {
|
|
541
|
-
return st() ? t instanceof Node || t instanceof
|
|
541
|
+
return st() ? t instanceof Node || t instanceof C(t).Node : !1;
|
|
542
542
|
}
|
|
543
543
|
function S(t) {
|
|
544
|
-
return st() ? t instanceof Element || t instanceof
|
|
544
|
+
return st() ? t instanceof Element || t instanceof C(t).Element : !1;
|
|
545
545
|
}
|
|
546
546
|
function k(t) {
|
|
547
|
-
return st() ? t instanceof HTMLElement || t instanceof
|
|
547
|
+
return st() ? t instanceof HTMLElement || t instanceof C(t).HTMLElement : !1;
|
|
548
548
|
}
|
|
549
549
|
function _t(t) {
|
|
550
|
-
return !st() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof
|
|
550
|
+
return !st() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof C(t).ShadowRoot;
|
|
551
551
|
}
|
|
552
552
|
function et(t) {
|
|
553
553
|
const {
|
|
@@ -592,7 +592,7 @@ function G(t) {
|
|
|
592
592
|
return ["html", "body", "#document"].includes(z(t));
|
|
593
593
|
}
|
|
594
594
|
function D(t) {
|
|
595
|
-
return
|
|
595
|
+
return C(t).getComputedStyle(t);
|
|
596
596
|
}
|
|
597
597
|
function lt(t) {
|
|
598
598
|
return S(t) ? {
|
|
@@ -622,7 +622,7 @@ function Pt(t) {
|
|
|
622
622
|
function dt(t, e, o) {
|
|
623
623
|
var n;
|
|
624
624
|
e === void 0 && (e = []), o === void 0 && (o = !0);
|
|
625
|
-
const i = Pt(t), r = i === ((n = t.ownerDocument) == null ? void 0 : n.body), s =
|
|
625
|
+
const i = Pt(t), r = i === ((n = t.ownerDocument) == null ? void 0 : n.body), s = C(i);
|
|
626
626
|
if (r) {
|
|
627
627
|
const l = mt(s);
|
|
628
628
|
return e.concat(s, s.visualViewport || [], et(i) ? i : [], l && o ? dt(l) : []);
|
|
@@ -662,14 +662,14 @@ function q(t) {
|
|
|
662
662
|
}
|
|
663
663
|
const ce = /* @__PURE__ */ H(0);
|
|
664
664
|
function $t(t) {
|
|
665
|
-
const e =
|
|
665
|
+
const e = C(t);
|
|
666
666
|
return !vt() || !e.visualViewport ? ce : {
|
|
667
667
|
x: e.visualViewport.offsetLeft,
|
|
668
668
|
y: e.visualViewport.offsetTop
|
|
669
669
|
};
|
|
670
670
|
}
|
|
671
671
|
function ae(t, e, o) {
|
|
672
|
-
return e === void 0 && (e = !1), !o || e && o !==
|
|
672
|
+
return e === void 0 && (e = !1), !o || e && o !== C(t) ? !1 : e;
|
|
673
673
|
}
|
|
674
674
|
function tt(t, e, o, n) {
|
|
675
675
|
e === void 0 && (e = !1), o === void 0 && (o = !1);
|
|
@@ -679,11 +679,11 @@ function tt(t, e, o, n) {
|
|
|
679
679
|
const l = ae(r, o, n) ? $t(r) : H(0);
|
|
680
680
|
let c = (i.left + l.x) / s.x, a = (i.top + l.y) / s.y, f = i.width / s.x, u = i.height / s.y;
|
|
681
681
|
if (r) {
|
|
682
|
-
const p =
|
|
682
|
+
const p = C(r), d = n && S(n) ? C(n) : n;
|
|
683
683
|
let m = p, g = mt(m);
|
|
684
684
|
for (; g && n && d !== m; ) {
|
|
685
685
|
const h = q(g), w = g.getBoundingClientRect(), x = D(g), y = w.left + (g.clientLeft + parseFloat(x.paddingLeft)) * h.x, b = w.top + (g.clientTop + parseFloat(x.paddingTop)) * h.y;
|
|
686
|
-
c *= h.x, a *= h.y, f *= h.x, u *= h.y, c += y, a += b, m =
|
|
686
|
+
c *= h.x, a *= h.y, f *= h.x, u *= h.y, c += y, a += b, m = C(g), g = mt(m);
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
689
|
return it({
|
|
@@ -727,10 +727,10 @@ function pt(t, e) {
|
|
|
727
727
|
return e ? e.left + o : tt(N(t)).left + o;
|
|
728
728
|
}
|
|
729
729
|
function de(t) {
|
|
730
|
-
const e = N(t), o = lt(t), n = t.ownerDocument.body, i =
|
|
730
|
+
const e = N(t), o = lt(t), n = t.ownerDocument.body, i = R(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = R(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
731
731
|
let s = -o.scrollLeft + pt(t);
|
|
732
732
|
const l = -o.scrollTop;
|
|
733
|
-
return D(n).direction === "rtl" && (s +=
|
|
733
|
+
return D(n).direction === "rtl" && (s += R(e.clientWidth, n.clientWidth) - i), {
|
|
734
734
|
width: i,
|
|
735
735
|
height: r,
|
|
736
736
|
x: s,
|
|
@@ -738,7 +738,7 @@ function de(t) {
|
|
|
738
738
|
};
|
|
739
739
|
}
|
|
740
740
|
function me(t, e) {
|
|
741
|
-
const o =
|
|
741
|
+
const o = C(t), n = N(t), i = o.visualViewport;
|
|
742
742
|
let r = n.clientWidth, s = n.clientHeight, l = 0, c = 0;
|
|
743
743
|
if (i) {
|
|
744
744
|
r = i.width, s = i.height;
|
|
@@ -805,7 +805,7 @@ function he(t) {
|
|
|
805
805
|
} = t;
|
|
806
806
|
const s = [...o === "clippingAncestors" ? rt(e) ? [] : ge(e, this._c) : [].concat(o), n], l = s[0], c = s.reduce((a, f) => {
|
|
807
807
|
const u = St(e, f, i);
|
|
808
|
-
return a.top =
|
|
808
|
+
return a.top = R(u.top, a.top), a.right = X(u.right, a.right), a.bottom = X(u.bottom, a.bottom), a.left = R(u.left, a.left), a;
|
|
809
809
|
}, St(e, l, i));
|
|
810
810
|
return {
|
|
811
811
|
width: c.right - c.left,
|
|
@@ -862,7 +862,7 @@ function Dt(t, e) {
|
|
|
862
862
|
return N(t) === o && (o = o.ownerDocument.body), o;
|
|
863
863
|
}
|
|
864
864
|
function Nt(t, e) {
|
|
865
|
-
const o =
|
|
865
|
+
const o = C(t);
|
|
866
866
|
if (rt(t))
|
|
867
867
|
return o;
|
|
868
868
|
if (!k(t)) {
|
|
@@ -1005,10 +1005,11 @@ const Le = { class: "rds-e-tooltip" }, ke = {
|
|
|
1005
1005
|
Re(),
|
|
1006
1006
|
Ce(),
|
|
1007
1007
|
Oe({
|
|
1008
|
-
apply({
|
|
1009
|
-
Object.assign(
|
|
1010
|
-
maxWidth:
|
|
1011
|
-
|
|
1008
|
+
apply({ availableHeight: v, elements: T }) {
|
|
1009
|
+
Object.assign(T.floating.style, {
|
|
1010
|
+
// maxWidth: '380px',
|
|
1011
|
+
maxWidth: "380px",
|
|
1012
|
+
maxHeight: `${Math.max(0, v)}px`
|
|
1012
1013
|
});
|
|
1013
1014
|
}
|
|
1014
1015
|
}),
|
|
@@ -1076,7 +1077,7 @@ const Le = { class: "rds-e-tooltip" }, ke = {
|
|
|
1076
1077
|
], 2)
|
|
1077
1078
|
]));
|
|
1078
1079
|
}
|
|
1079
|
-
}), Fe = /* @__PURE__ */ It(Ne, [["__scopeId", "data-v-
|
|
1080
|
+
}), Fe = /* @__PURE__ */ It(Ne, [["__scopeId", "data-v-84af6768"]]);
|
|
1080
1081
|
export {
|
|
1081
1082
|
Fe as default
|
|
1082
1083
|
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ref as r, onMounted as m, onUnmounted as p } from "vue";
|
|
2
|
+
function h() {
|
|
3
|
+
const o = {
|
|
4
|
+
mobile: "(min-width: 0px) and (max-width: 719px)",
|
|
5
|
+
tablet: "(min-width: 720px) and (max-width: 1279px)",
|
|
6
|
+
desktop: "(min-width: 1280px) and (max-width: 1438px)",
|
|
7
|
+
desktopLarge: "(min-width: 1440px) and (max-width: 1599px)",
|
|
8
|
+
ultrawide: "(min-width: 1600px)"
|
|
9
|
+
}, a = r({
|
|
10
|
+
mobile: !1,
|
|
11
|
+
tablet: !1,
|
|
12
|
+
desktop: !1,
|
|
13
|
+
desktopLarge: !1,
|
|
14
|
+
ultrawide: !1
|
|
15
|
+
}), s = () => {
|
|
16
|
+
for (const [n, e] of Object.entries(o)) {
|
|
17
|
+
const t = window.matchMedia(e);
|
|
18
|
+
a.value[n] = t.matches;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
return m(() => {
|
|
22
|
+
const n = Object.entries(o).map(([e, t]) => {
|
|
23
|
+
const i = window.matchMedia(t);
|
|
24
|
+
a.value[e] = i.matches;
|
|
25
|
+
const d = () => s();
|
|
26
|
+
return i.addEventListener("change", d), { mediaQuery: i, listener: d };
|
|
27
|
+
});
|
|
28
|
+
p(() => {
|
|
29
|
+
n.forEach(({ mediaQuery: e, listener: t }) => {
|
|
30
|
+
e.removeEventListener("change", t);
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
}), a;
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
h as useBreakpoints
|
|
37
|
+
};
|