energy-components 1.22.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 +51 -55
- package/dist/components/modal.es.js +20 -20
- package/dist/components/multiselect.es.js +2 -3
- 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 +9101 -24972
- 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/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,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as q, toRefs as G, ref as
|
|
2
|
-
import { a as oe, o as le, f as ae, s as ie, b as se, c as re, d as ne } from "./floating-ui.vue-
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent as q, toRefs as G, ref as n, computed as T, onBeforeUnmount as J, createElementBlock as x, openBlock as f, createElementVNode as m, createBlock as K, renderSlot as A, Teleport as Q, normalizeClass as D, createCommentVNode as N, unref as O, createVNode as Z, toDisplayString as U, createTextVNode as ee, nextTick as te } from "vue";
|
|
2
|
+
import { a as oe, o as le, f as ae, s as ie, b as se, c as re, d as ne } from "./floating-ui.vue-C-DgKOwt.js";
|
|
3
|
+
import { I as ue } from "./icon-svg-DxlNo61Q.js";
|
|
4
4
|
import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
import './style/tooltip.css';const ce = ["id"],
|
|
5
|
+
import './style/tooltip.css';const ce = ["id"], pe = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "rds-e-tooltip__header"
|
|
8
|
-
},
|
|
8
|
+
}, fe = { class: "rds-e-tooltip__title" }, me = { class: "rds-e-tooltip__content" }, ve = /* @__PURE__ */ q({
|
|
9
9
|
__name: "tooltip",
|
|
10
10
|
props: {
|
|
11
11
|
/**
|
|
@@ -111,68 +111,68 @@ import './style/tooltip.css';const ce = ["id"], fe = {
|
|
|
111
111
|
*/
|
|
112
112
|
"hide"
|
|
113
113
|
],
|
|
114
|
-
setup(a, { expose:
|
|
115
|
-
const
|
|
116
|
-
let l = null, _ = !1, y = !1,
|
|
117
|
-
const b = T(() => Math.min(Math.max(
|
|
114
|
+
setup(a, { expose: E, emit: H }) {
|
|
115
|
+
const t = a, u = H, { large: S, fullWidth: I, title: v, inverse: V } = G(t), d = n(), i = n(), s = n(), e = n(!0), h = n("");
|
|
116
|
+
let l = null, _ = !1, y = !1, o = null;
|
|
117
|
+
const b = T(() => Math.min(Math.max(t.hideDelay, 0), 3e3)), j = T(() => ({
|
|
118
118
|
"rds-e-tooltip__tooltip": !0,
|
|
119
119
|
"rds-e-tooltip__tooltip-hidden": e.value,
|
|
120
120
|
"rds-e-tooltip__tooltip--large": S.value,
|
|
121
|
-
"rds-e-tooltip__tooltip--inverse":
|
|
121
|
+
"rds-e-tooltip__tooltip--inverse": V.value
|
|
122
122
|
})), k = async () => {
|
|
123
|
-
const
|
|
124
|
-
le(
|
|
123
|
+
const r = [
|
|
124
|
+
le(t.offsetSpace),
|
|
125
125
|
ae(),
|
|
126
126
|
ie(),
|
|
127
127
|
se({
|
|
128
|
-
apply({ availableHeight:
|
|
128
|
+
apply({ availableHeight: c, availableWidth: p, elements: w }) {
|
|
129
129
|
Object.assign(w.floating.style, {
|
|
130
|
-
maxWidth:
|
|
130
|
+
maxWidth: I.value ? `${Math.max(0, p)}px` : "380px",
|
|
131
131
|
width: "max-content",
|
|
132
|
-
maxHeight: `${Math.max(0,
|
|
132
|
+
maxHeight: `${Math.max(0, c)}px`
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
135
|
})
|
|
136
136
|
];
|
|
137
|
-
!
|
|
138
|
-
element:
|
|
137
|
+
!t.hideArrow && s.value && r.push(re({
|
|
138
|
+
element: s.value,
|
|
139
139
|
padding: S.value ? 16 : 8
|
|
140
140
|
}));
|
|
141
|
-
const { x:
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
const { x: C, y: Y, middlewareData: M, placement: R } = await ne(
|
|
142
|
+
d.value,
|
|
143
|
+
i.value,
|
|
144
144
|
{
|
|
145
|
-
placement:
|
|
146
|
-
middleware:
|
|
145
|
+
placement: t.placement,
|
|
146
|
+
middleware: r
|
|
147
147
|
}
|
|
148
148
|
);
|
|
149
|
-
if (Object.assign(
|
|
150
|
-
left: `${
|
|
149
|
+
if (Object.assign(i.value.style, {
|
|
150
|
+
left: `${C}px`,
|
|
151
151
|
top: `${Y}px`
|
|
152
|
-
}), !
|
|
153
|
-
const { x:
|
|
152
|
+
}), !t.hideArrow && s.value && M.arrow) {
|
|
153
|
+
const { x: c, y: p } = M.arrow, w = {
|
|
154
154
|
left: "right",
|
|
155
155
|
right: "left",
|
|
156
156
|
bottom: "top",
|
|
157
157
|
top: "bottom"
|
|
158
158
|
};
|
|
159
|
-
h.value = `rds-e-tooltip__tooltip-arrow--${
|
|
160
|
-
left:
|
|
159
|
+
h.value = `rds-e-tooltip__tooltip-arrow--${R}`, Object.assign(s.value.style, {
|
|
160
|
+
left: c != null ? `${c}px` : "",
|
|
161
161
|
top: p != null ? `${p}px` : "",
|
|
162
162
|
bottom: "",
|
|
163
163
|
right: "",
|
|
164
|
-
[w[
|
|
164
|
+
[w[R.split("-")[0]]]: "-4px"
|
|
165
165
|
});
|
|
166
|
-
} else
|
|
166
|
+
} else t.hideArrow && (h.value = "");
|
|
167
167
|
}, W = () => {
|
|
168
|
-
clearTimeout(l), e.value ? e.value = !0 : (e.value = !0,
|
|
168
|
+
clearTimeout(l), e.value ? e.value = !0 : (e.value = !0, u("hide"));
|
|
169
169
|
}, B = () => {
|
|
170
|
-
|
|
170
|
+
v?.value || (e.value ? e.value = !0 : (e.value = !0, u("hide"))), clearTimeout(l);
|
|
171
171
|
}, g = () => {
|
|
172
|
-
|
|
173
|
-
k(),
|
|
174
|
-
|
|
175
|
-
|
|
172
|
+
t.suppressed || (clearTimeout(l), e.value = !1, u("show"), te(() => {
|
|
173
|
+
k(), t.autoUpdate && d.value && i.value && (o?.(), o = oe(
|
|
174
|
+
d.value,
|
|
175
|
+
i.value,
|
|
176
176
|
() => {
|
|
177
177
|
k();
|
|
178
178
|
}
|
|
@@ -190,62 +190,62 @@ import './style/tooltip.css';const ce = ["id"], fe = {
|
|
|
190
190
|
_ = !1, y || (l = setTimeout(() => {
|
|
191
191
|
B();
|
|
192
192
|
}, b.value));
|
|
193
|
-
},
|
|
194
|
-
e.value || (e.value = !0,
|
|
193
|
+
}, $ = () => {
|
|
194
|
+
e.value || (e.value = !0, u("hide"), o && (o(), o = null));
|
|
195
195
|
}, X = () => {
|
|
196
|
-
|
|
196
|
+
$();
|
|
197
197
|
};
|
|
198
|
-
return
|
|
198
|
+
return E({
|
|
199
199
|
show: g,
|
|
200
|
-
hide:
|
|
200
|
+
hide: $,
|
|
201
201
|
isOpen: T(() => !e.value)
|
|
202
202
|
}), J(() => {
|
|
203
|
-
clearTimeout(l),
|
|
204
|
-
}), (
|
|
203
|
+
clearTimeout(l), o && (o(), o = null);
|
|
204
|
+
}), (r, C) => (f(), x("div", {
|
|
205
205
|
id: a.id,
|
|
206
206
|
class: "rds-e-tooltip"
|
|
207
207
|
}, [
|
|
208
|
-
|
|
208
|
+
m("div", {
|
|
209
209
|
ref_key: "referenceRef",
|
|
210
|
-
ref:
|
|
210
|
+
ref: d,
|
|
211
211
|
class: "rds-e-tooltip__trigger",
|
|
212
212
|
onBlur: W,
|
|
213
213
|
onFocus: g,
|
|
214
214
|
onMouseenter: z,
|
|
215
215
|
onMouseleave: L
|
|
216
216
|
}, [
|
|
217
|
-
|
|
217
|
+
A(r.$slots, "default", {}, void 0, !0)
|
|
218
218
|
], 544),
|
|
219
|
-
(
|
|
219
|
+
(f(), K(Q, {
|
|
220
220
|
to: a.teleportTo,
|
|
221
221
|
disabled: !a.teleportTo
|
|
222
222
|
}, [
|
|
223
|
-
|
|
223
|
+
m("div", {
|
|
224
224
|
ref_key: "floatingRef",
|
|
225
|
-
ref:
|
|
226
|
-
class:
|
|
225
|
+
ref: i,
|
|
226
|
+
class: D(j.value),
|
|
227
227
|
onMouseenter: P,
|
|
228
228
|
onMouseleave: F
|
|
229
229
|
}, [
|
|
230
|
-
|
|
231
|
-
|
|
230
|
+
O(v) ? (f(), x("div", pe, [
|
|
231
|
+
m("h3", fe, U(O(v)), 1),
|
|
232
232
|
Z(ue, {
|
|
233
233
|
name: "close",
|
|
234
234
|
"aria-hidden": "true",
|
|
235
235
|
class: "rds-e-tooltip__icon",
|
|
236
236
|
onClick: X
|
|
237
237
|
})
|
|
238
|
-
])) :
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
ee(
|
|
238
|
+
])) : N("", !0),
|
|
239
|
+
m("div", me, [
|
|
240
|
+
A(r.$slots, "tooltip-content", {}, () => [
|
|
241
|
+
ee(U(a.content), 1)
|
|
242
242
|
], !0)
|
|
243
243
|
]),
|
|
244
|
-
a.hideArrow ?
|
|
244
|
+
a.hideArrow ? N("", !0) : (f(), x("div", {
|
|
245
245
|
key: 1,
|
|
246
246
|
ref_key: "arrowRef",
|
|
247
|
-
ref:
|
|
248
|
-
class:
|
|
247
|
+
ref: s,
|
|
248
|
+
class: D(["rds-e-tooltip__tooltip-arrow", h.value])
|
|
249
249
|
}, null, 2))
|
|
250
250
|
], 34)
|
|
251
251
|
], 8, ["to", "disabled"]))
|