energy-components 2.2.0 → 2.3.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/index.es.js +127 -121
- package/dist/components/indicatorDots.es.js +215 -0
- package/dist/components/loader.es.js +9 -9
- package/dist/components/searchField.es.js +188 -0
- package/dist/components/style/indicatorDots.css +1 -0
- package/dist/components/style/searchField.css +1 -0
- package/dist/components/style/table.css +1 -1
- package/dist/components/style/tableRenderer.css +1 -1
- package/dist/components/table.es.js +76 -71
- package/dist/components/tableRenderer.es.js +242 -139
- package/dist/energy-components.css +1 -1
- package/dist/energy-components.es.js +6216 -5717
- package/dist/energy-components.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/src/components/content/table/table-renderer.vue.d.ts +10 -1
- package/dist/types/src/components/content/table/table.vue.d.ts +13 -1
- package/dist/types/src/components/content/table/use-column-resize.d.ts +9 -0
- package/dist/types/src/components/feedback/indicator-dots/indicator-dots.vue.d.ts +181 -0
- package/dist/types/src/components/index.d.ts +2 -0
- package/dist/types/src/components/input/search-field/search-field.vue.d.ts +137 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/llms/index.md +2 -0
- package/llms/rdsindicator-dots.md +23 -0
- package/llms/rdssearch-field.md +22 -0
- package/llms/rdstable.md +2 -0
- package/package.json +1 -1
|
@@ -1,103 +1,107 @@
|
|
|
1
|
-
import { R as
|
|
2
|
-
import
|
|
1
|
+
import { R as i } from "./icon-svg-CW3eQRcp.js";
|
|
2
|
+
import a from "./button.es.js";
|
|
3
3
|
import e from "./floatingActionButton.es.js";
|
|
4
4
|
import m from "./actionButton.es.js";
|
|
5
5
|
import S from "./checkbox.es.js";
|
|
6
6
|
import D from "./textField.es.js";
|
|
7
|
+
import R from "./searchField.es.js";
|
|
7
8
|
import p from "./textArea.es.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
9
|
+
import n from "./switch.es.js";
|
|
10
|
+
import s from "./radioButton.es.js";
|
|
11
|
+
import { _ as c } from "./radio-group.vue_vue_type_script_setup_true_lang-CwgSZYeD.js";
|
|
12
|
+
import f from "./dropdown.es.js";
|
|
13
|
+
import d from "./datepicker.es.js";
|
|
14
|
+
import l from "./quantitySelector.es.js";
|
|
15
|
+
import u from "./toggle.es.js";
|
|
16
|
+
import g from "./selectionChip.es.js";
|
|
17
|
+
import b from "./filterChip.es.js";
|
|
18
|
+
import B from "./dragAndDrop.es.js";
|
|
19
|
+
import A from "./fileUploadItem.es.js";
|
|
20
|
+
import v from "./filterTag.es.js";
|
|
21
|
+
import T from "./tag.es.js";
|
|
22
|
+
import h from "./accordionGroup.es.js";
|
|
23
|
+
import F from "./accordion.es.js";
|
|
24
|
+
import I from "./divider.es.js";
|
|
25
|
+
import _ from "./card.es.js";
|
|
26
|
+
import x from "./table.es.js";
|
|
27
|
+
import C from "./avatar.es.js";
|
|
27
28
|
import { _ as P } from "./collapsable.scss_vue_type_style_index_0_src_true_lang-BfTKaP_f.js";
|
|
28
29
|
import y from "./link.es.js";
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
30
|
+
import k from "./breadcrumbs.es.js";
|
|
31
|
+
import w from "./tabBar.es.js";
|
|
32
|
+
import M from "./pagination.es.js";
|
|
33
|
+
import G from "./directAccess.es.js";
|
|
34
|
+
import O from "./indicator.es.js";
|
|
35
|
+
import U from "./indicatorDots.es.js";
|
|
36
|
+
import j from "./badge.es.js";
|
|
35
37
|
import L from "./persistentToast.es.js";
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
38
|
+
import Q from "./snackBar.es.js";
|
|
39
|
+
import V from "./infoBox.es.js";
|
|
40
|
+
import q from "./progressBar.es.js";
|
|
41
|
+
import z from "./loader.es.js";
|
|
42
|
+
import K from "./modal.es.js";
|
|
43
|
+
import $ from "./overlay.es.js";
|
|
44
|
+
import E from "./tooltip.es.js";
|
|
45
|
+
import H from "./popover.es.js";
|
|
46
|
+
import J from "./popoverMenu.es.js";
|
|
47
|
+
import N from "./sidebar.es.js";
|
|
48
|
+
import W from "./sidedrawer.es.js";
|
|
47
49
|
const t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
48
50
|
__proto__: null,
|
|
49
|
-
RDSAccordion:
|
|
50
|
-
RDSAccordionGroup:
|
|
51
|
+
RDSAccordion: F,
|
|
52
|
+
RDSAccordionGroup: h,
|
|
51
53
|
RDSActionButton: m,
|
|
52
|
-
RDSAvatar:
|
|
53
|
-
RDSBadge:
|
|
54
|
-
RDSBreadcrumbs:
|
|
55
|
-
RDSButton:
|
|
56
|
-
RDSCard:
|
|
54
|
+
RDSAvatar: C,
|
|
55
|
+
RDSBadge: j,
|
|
56
|
+
RDSBreadcrumbs: k,
|
|
57
|
+
RDSButton: a,
|
|
58
|
+
RDSCard: _,
|
|
57
59
|
RDSCheckbox: S,
|
|
58
60
|
RDSCollapsable: P,
|
|
59
|
-
RDSDatePicker:
|
|
60
|
-
RDSDirectAccess:
|
|
61
|
-
RDSDivider:
|
|
62
|
-
RDSDragAndDrop:
|
|
63
|
-
RDSDropdown:
|
|
64
|
-
RDSFileUploadItem:
|
|
65
|
-
RDSFilterChip:
|
|
66
|
-
RDSFilterTag:
|
|
61
|
+
RDSDatePicker: d,
|
|
62
|
+
RDSDirectAccess: G,
|
|
63
|
+
RDSDivider: I,
|
|
64
|
+
RDSDragAndDrop: B,
|
|
65
|
+
RDSDropdown: f,
|
|
66
|
+
RDSFileUploadItem: A,
|
|
67
|
+
RDSFilterChip: b,
|
|
68
|
+
RDSFilterTag: v,
|
|
67
69
|
RDSFloatinActionButton: e,
|
|
68
|
-
RDSIconSvg:
|
|
69
|
-
RDSIndicator:
|
|
70
|
-
|
|
70
|
+
RDSIconSvg: i,
|
|
71
|
+
RDSIndicator: O,
|
|
72
|
+
RDSIndicatorDots: U,
|
|
73
|
+
RDSInfoBox: V,
|
|
71
74
|
RDSLink: y,
|
|
72
|
-
RDSLoader:
|
|
73
|
-
RDSModal:
|
|
74
|
-
RDSOverlay:
|
|
75
|
-
RDSPagination:
|
|
75
|
+
RDSLoader: z,
|
|
76
|
+
RDSModal: K,
|
|
77
|
+
RDSOverlay: $,
|
|
78
|
+
RDSPagination: M,
|
|
76
79
|
RDSPersistentToast: L,
|
|
77
|
-
RDSPopover:
|
|
78
|
-
RDSPopoverMenu:
|
|
79
|
-
RDSProgressBar:
|
|
80
|
-
RDSQuantitySelector:
|
|
81
|
-
RDSRadioButton:
|
|
82
|
-
RDSRadioGroup:
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
80
|
+
RDSPopover: H,
|
|
81
|
+
RDSPopoverMenu: J,
|
|
82
|
+
RDSProgressBar: q,
|
|
83
|
+
RDSQuantitySelector: l,
|
|
84
|
+
RDSRadioButton: s,
|
|
85
|
+
RDSRadioGroup: c,
|
|
86
|
+
RDSSearchField: R,
|
|
87
|
+
RDSSelectionChip: g,
|
|
88
|
+
RDSSidebar: N,
|
|
89
|
+
RDSSidedrawer: W,
|
|
90
|
+
RDSSnackBar: Q,
|
|
91
|
+
RDSSwitch: n,
|
|
92
|
+
RDSTabBar: w,
|
|
93
|
+
RDSTable: x,
|
|
94
|
+
RDSTag: T,
|
|
91
95
|
RDSTextArea: p,
|
|
92
96
|
RDSTextField: D,
|
|
93
|
-
RDSToggle:
|
|
94
|
-
RDSTooltip:
|
|
97
|
+
RDSToggle: u,
|
|
98
|
+
RDSTooltip: E
|
|
95
99
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
96
|
-
let
|
|
97
|
-
function
|
|
98
|
-
|
|
100
|
+
let X;
|
|
101
|
+
function Ho(o) {
|
|
102
|
+
X = o;
|
|
99
103
|
}
|
|
100
|
-
const
|
|
104
|
+
const Jo = {
|
|
101
105
|
install: (o) => {
|
|
102
106
|
for (const r in t)
|
|
103
107
|
o.component(
|
|
@@ -107,53 +111,55 @@ const Ko = {
|
|
|
107
111
|
}
|
|
108
112
|
};
|
|
109
113
|
export {
|
|
110
|
-
|
|
111
|
-
|
|
114
|
+
F as RDSAccordion,
|
|
115
|
+
h as RDSAccordionGroup,
|
|
112
116
|
m as RDSActionButton,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
117
|
+
C as RDSAvatar,
|
|
118
|
+
j as RDSBadge,
|
|
119
|
+
k as RDSBreadcrumbs,
|
|
120
|
+
a as RDSButton,
|
|
121
|
+
_ as RDSCard,
|
|
118
122
|
S as RDSCheckbox,
|
|
119
123
|
P as RDSCollapsable,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
124
|
+
d as RDSDatePicker,
|
|
125
|
+
G as RDSDirectAccess,
|
|
126
|
+
I as RDSDivider,
|
|
127
|
+
B as RDSDragAndDrop,
|
|
128
|
+
f as RDSDropdown,
|
|
129
|
+
A as RDSFileUploadItem,
|
|
130
|
+
b as RDSFilterChip,
|
|
131
|
+
v as RDSFilterTag,
|
|
128
132
|
e as RDSFloatinActionButton,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
133
|
+
i as RDSIconSvg,
|
|
134
|
+
O as RDSIndicator,
|
|
135
|
+
U as RDSIndicatorDots,
|
|
136
|
+
V as RDSInfoBox,
|
|
132
137
|
y as RDSLink,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
138
|
+
z as RDSLoader,
|
|
139
|
+
K as RDSModal,
|
|
140
|
+
$ as RDSOverlay,
|
|
141
|
+
M as RDSPagination,
|
|
137
142
|
L as RDSPersistentToast,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
143
|
+
H as RDSPopover,
|
|
144
|
+
J as RDSPopoverMenu,
|
|
145
|
+
q as RDSProgressBar,
|
|
146
|
+
l as RDSQuantitySelector,
|
|
147
|
+
s as RDSRadioButton,
|
|
148
|
+
c as RDSRadioGroup,
|
|
149
|
+
R as RDSSearchField,
|
|
150
|
+
g as RDSSelectionChip,
|
|
151
|
+
N as RDSSidebar,
|
|
152
|
+
W as RDSSidedrawer,
|
|
153
|
+
Q as RDSSnackBar,
|
|
154
|
+
n as RDSSwitch,
|
|
155
|
+
w as RDSTabBar,
|
|
156
|
+
x as RDSTable,
|
|
157
|
+
T as RDSTag,
|
|
152
158
|
p as RDSTextArea,
|
|
153
159
|
D as RDSTextField,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
160
|
+
u as RDSToggle,
|
|
161
|
+
E as RDSTooltip,
|
|
162
|
+
X as VueInstance,
|
|
163
|
+
Jo as default,
|
|
164
|
+
Ho as setVueInstance
|
|
159
165
|
};
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { defineComponent as E, toRefs as L, ref as k, watch as T, onBeforeUnmount as G, computed as H, openBlock as l, createElementBlock as u, normalizeClass as O, unref as i, createVNode as I, createCommentVNode as p, createElementVNode as D, Fragment as U, renderList as W, createBlock as Z, resolveDynamicComponent as j, mergeProps as J, withCtx as K, normalizeStyle as B } from "vue";
|
|
2
|
+
import { R as S } from "./icon-svg-CW3eQRcp.js";
|
|
3
|
+
import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
import './style/indicatorDots.css';const X = ["id"], Y = { class: "rds-e-indicator-dots__dots" }, ee = ["aria-label"], $ = 32, te = /* @__PURE__ */ E({
|
|
5
|
+
__name: "indicator-dots",
|
|
6
|
+
props: {
|
|
7
|
+
/**
|
|
8
|
+
* Número total de elementos a indicar.
|
|
9
|
+
*/
|
|
10
|
+
items: {
|
|
11
|
+
type: Number,
|
|
12
|
+
required: !0,
|
|
13
|
+
validator(t) {
|
|
14
|
+
return t < 2 ? (console.warn("RDSIndicatorDots: items debe ser al menos 2."), !1) : t > 9 ? (console.warn("RDSIndicatorDots: items no puede superar 9. Considera usar paginación para más elementos."), !1) : !0;
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
/**
|
|
18
|
+
* Índice del elemento activo actual (base 0).
|
|
19
|
+
*/
|
|
20
|
+
modelValue: {
|
|
21
|
+
type: Number,
|
|
22
|
+
required: !0
|
|
23
|
+
},
|
|
24
|
+
/**
|
|
25
|
+
* Muestra los botones de flecha anterior/siguiente.
|
|
26
|
+
*/
|
|
27
|
+
showArrows: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: !1
|
|
30
|
+
},
|
|
31
|
+
/**
|
|
32
|
+
* Variante de tamaño del componente.
|
|
33
|
+
*/
|
|
34
|
+
size: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: "default"
|
|
37
|
+
},
|
|
38
|
+
/**
|
|
39
|
+
* Usa los tokens de color inverso (superficie oscura).
|
|
40
|
+
*/
|
|
41
|
+
inverse: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: !1
|
|
44
|
+
},
|
|
45
|
+
/**
|
|
46
|
+
* Número máximo de puntos visibles a la vez antes de activar la ventana deslizante.
|
|
47
|
+
*/
|
|
48
|
+
maxVisible: {
|
|
49
|
+
type: Number,
|
|
50
|
+
default: 7
|
|
51
|
+
},
|
|
52
|
+
/**
|
|
53
|
+
* Duración en milisegundos de cada elemento antes de avanzar automáticamente cuando isPlaying es true.
|
|
54
|
+
*/
|
|
55
|
+
playInterval: {
|
|
56
|
+
type: Number,
|
|
57
|
+
default: 3e3
|
|
58
|
+
},
|
|
59
|
+
/**
|
|
60
|
+
* Si es true, habilita la navegación manual: flechas (si showArrows) y clics en los puntos.
|
|
61
|
+
* Si es false, las flechas se ocultan y los puntos son solo visuales.
|
|
62
|
+
*/
|
|
63
|
+
interactive: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
default: !1
|
|
66
|
+
},
|
|
67
|
+
/**
|
|
68
|
+
* Muestra el botón de acción play/pause al final del componente.
|
|
69
|
+
*/
|
|
70
|
+
showPlayPause: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
default: !1
|
|
73
|
+
},
|
|
74
|
+
/**
|
|
75
|
+
* Si es true, el componente avanza automáticamente por los elementos con un temporizador, emitiendo update:modelValue.
|
|
76
|
+
* El botón play/pause (showPlayPause) refleja y controla este estado.
|
|
77
|
+
*/
|
|
78
|
+
isPlaying: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
default: !1
|
|
81
|
+
},
|
|
82
|
+
/**
|
|
83
|
+
* Atributo ID opcional para pruebas.
|
|
84
|
+
*/
|
|
85
|
+
id: {
|
|
86
|
+
type: String,
|
|
87
|
+
default: void 0
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
emits: ["update:modelValue", "playPauseClick"],
|
|
91
|
+
setup(t, { emit: N }) {
|
|
92
|
+
const _ = t, d = N, { items: b, modelValue: r, maxVisible: C, playInterval: P, isPlaying: v } = L(_), g = k(null), w = k(null);
|
|
93
|
+
let o = null;
|
|
94
|
+
const c = k(0);
|
|
95
|
+
let s = null, f = null, m = null;
|
|
96
|
+
function h() {
|
|
97
|
+
s !== null && (cancelAnimationFrame(s), s = null), f !== null && (clearInterval(f), f = null), c.value = 0, m = null;
|
|
98
|
+
}
|
|
99
|
+
function x(e) {
|
|
100
|
+
m === null && (m = e);
|
|
101
|
+
const a = e - m;
|
|
102
|
+
c.value = Math.min(a / P.value * 100, 100), c.value < 100 && (s = requestAnimationFrame(x));
|
|
103
|
+
}
|
|
104
|
+
function R() {
|
|
105
|
+
h(), s = requestAnimationFrame(x), f = setInterval(() => {
|
|
106
|
+
const e = r.value + 1 >= b.value ? 0 : r.value + 1;
|
|
107
|
+
d("update:modelValue", e), c.value = 0, m = null, s = requestAnimationFrame(x);
|
|
108
|
+
}, P.value);
|
|
109
|
+
}
|
|
110
|
+
T(v, (e) => {
|
|
111
|
+
e ? R() : h();
|
|
112
|
+
}, { immediate: !0 }), T(
|
|
113
|
+
() => _.modelValue,
|
|
114
|
+
(e, a) => {
|
|
115
|
+
a == null || e == null || e === a || (e > a ? (g.value = a, o !== null && clearTimeout(o), o = setTimeout(() => {
|
|
116
|
+
g.value = null, o = null;
|
|
117
|
+
}, 700)) : (w.value = e, requestAnimationFrame(() => {
|
|
118
|
+
requestAnimationFrame(() => {
|
|
119
|
+
w.value = null;
|
|
120
|
+
});
|
|
121
|
+
})));
|
|
122
|
+
}
|
|
123
|
+
);
|
|
124
|
+
function V(e) {
|
|
125
|
+
return w.value === e ? { width: `${$}px`, transition: "none" } : g.value === e ? { width: `${$}px` } : {};
|
|
126
|
+
}
|
|
127
|
+
G(() => {
|
|
128
|
+
h(), o !== null && clearTimeout(o);
|
|
129
|
+
});
|
|
130
|
+
const q = H(() => {
|
|
131
|
+
const e = b.value, a = r.value, n = Math.min(C.value, e);
|
|
132
|
+
if (e <= C.value)
|
|
133
|
+
return Array.from({ length: e }, (M, y) => ({
|
|
134
|
+
index: y,
|
|
135
|
+
dotSize: y === a ? "active" : "normal"
|
|
136
|
+
}));
|
|
137
|
+
const A = a - Math.floor(n / 2), F = Math.max(0, Math.min(A, e - n));
|
|
138
|
+
return Array.from({ length: n }, (M, y) => {
|
|
139
|
+
const z = F + y;
|
|
140
|
+
return { index: z, dotSize: z === a ? "active" : "normal" };
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
return (e, a) => (l(), u("div", {
|
|
144
|
+
id: t.id,
|
|
145
|
+
class: O(["rds-e-indicator-dots", [
|
|
146
|
+
{ "rds-e-indicator-dots--interactive": t.interactive },
|
|
147
|
+
{ "rds-e-indicator-dots--inverse": t.inverse },
|
|
148
|
+
{ "rds-e-indicator-dots--small": t.size === "small" }
|
|
149
|
+
]])
|
|
150
|
+
}, [
|
|
151
|
+
t.interactive && t.showArrows && i(r) > 0 ? (l(), u("button", {
|
|
152
|
+
key: 0,
|
|
153
|
+
type: "button",
|
|
154
|
+
class: "rds-e-indicator-dots__arrow rds-e-indicator-dots__arrow--left",
|
|
155
|
+
"aria-label": "Previous",
|
|
156
|
+
onClick: a[0] || (a[0] = (n) => d("update:modelValue", i(r) - 1))
|
|
157
|
+
}, [
|
|
158
|
+
I(S, {
|
|
159
|
+
class: "rds-e-indicator-dots__arrow-icon",
|
|
160
|
+
name: "arrow_left",
|
|
161
|
+
size: 16
|
|
162
|
+
})
|
|
163
|
+
])) : p("", !0),
|
|
164
|
+
D("div", Y, [
|
|
165
|
+
(l(!0), u(U, null, W(q.value, (n) => (l(), Z(j(t.interactive ? "button" : "span"), J({
|
|
166
|
+
key: n.index,
|
|
167
|
+
class: ["rds-e-indicator-dots__dot", `rds-e-indicator-dots__dot--${n.dotSize}`]
|
|
168
|
+
}, { ref_for: !0 }, t.interactive ? { type: "button" } : {}, {
|
|
169
|
+
"aria-label": t.interactive ? `Go to item ${n.index + 1}` : void 0,
|
|
170
|
+
onClick: (A) => t.interactive ? d("update:modelValue", n.index) : void 0
|
|
171
|
+
}), {
|
|
172
|
+
default: K(() => [
|
|
173
|
+
D("span", {
|
|
174
|
+
class: "rds-e-indicator-dots__dot-inner",
|
|
175
|
+
style: B(V(n.index))
|
|
176
|
+
}, null, 4),
|
|
177
|
+
n.dotSize === "active" && i(v) ? (l(), u("span", {
|
|
178
|
+
key: 0,
|
|
179
|
+
class: "rds-e-indicator-dots__dot-progress",
|
|
180
|
+
style: B({ width: `${c.value}%` })
|
|
181
|
+
}, null, 4)) : p("", !0)
|
|
182
|
+
]),
|
|
183
|
+
_: 2
|
|
184
|
+
}, 1040, ["class", "aria-label", "onClick"]))), 128))
|
|
185
|
+
]),
|
|
186
|
+
t.interactive && t.showArrows && i(r) < i(b) - 1 ? (l(), u("button", {
|
|
187
|
+
key: 1,
|
|
188
|
+
type: "button",
|
|
189
|
+
class: "rds-e-indicator-dots__arrow rds-e-indicator-dots__arrow--right",
|
|
190
|
+
"aria-label": "Next",
|
|
191
|
+
onClick: a[1] || (a[1] = (n) => d("update:modelValue", i(r) + 1))
|
|
192
|
+
}, [
|
|
193
|
+
I(S, {
|
|
194
|
+
name: "arrow_right",
|
|
195
|
+
size: 16
|
|
196
|
+
})
|
|
197
|
+
])) : p("", !0),
|
|
198
|
+
t.showPlayPause ? (l(), u("button", {
|
|
199
|
+
key: 2,
|
|
200
|
+
type: "button",
|
|
201
|
+
class: "rds-e-indicator-dots__play-pause",
|
|
202
|
+
"aria-label": i(v) ? "Pause" : "Play",
|
|
203
|
+
onClick: a[2] || (a[2] = (n) => d("playPauseClick"))
|
|
204
|
+
}, [
|
|
205
|
+
I(S, {
|
|
206
|
+
name: i(v) ? "pause" : "play",
|
|
207
|
+
size: 16
|
|
208
|
+
}, null, 8, ["name"])
|
|
209
|
+
], 8, ee)) : p("", !0)
|
|
210
|
+
], 10, X));
|
|
211
|
+
}
|
|
212
|
+
}), re = /* @__PURE__ */ Q(te, [["__scopeId", "data-v-25ccae9a"]]);
|
|
213
|
+
export {
|
|
214
|
+
re as default
|
|
215
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as w, toRefs as b, computed as o, openBlock as f, createElementBlock as h, unref as s, normalizeStyle as S, normalizeClass as C, createElementVNode as a, mergeProps as B } from "vue";
|
|
2
2
|
import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import './style/loader.css';const F = ["id", "aria-label"], N = ["width", "height", "viewBox"], W = ["id"],
|
|
3
|
+
import './style/loader.css';const F = ["id", "aria-label"], N = ["width", "height", "viewBox"], W = ["id"], D = ["stop-color"], E = ["stop-color"], L = ["stop-color"], M = ["stop-color"], I = ["cx", "cy", "r", "stroke-width"], P = ["cx", "cy", "r", "stroke-width", "stroke"], R = /* @__PURE__ */ w({
|
|
4
4
|
__name: "loader",
|
|
5
5
|
props: {
|
|
6
6
|
/**
|
|
@@ -108,7 +108,7 @@ import './style/loader.css';const F = ["id", "aria-label"], N = ["width", "heigh
|
|
|
108
108
|
height: `${e.value}px`
|
|
109
109
|
};
|
|
110
110
|
}), k = o(() => n.value === "normal" ? `${l.value * 0.75} ${l.value * 0.25}` : e.value > 70 ? `${l.value * 0.05} ${l.value * 0.95}` : `${l.value * 0.1} ${l.value * 0.9}`), $ = o(() => (n.value === "normal", 0));
|
|
111
|
-
return (t,
|
|
111
|
+
return (t, T) => (f(), h("div", {
|
|
112
112
|
id: s(u),
|
|
113
113
|
class: C(y.value),
|
|
114
114
|
style: S(x.value),
|
|
@@ -135,19 +135,19 @@ import './style/loader.css';const F = ["id", "aria-label"], N = ["width", "heigh
|
|
|
135
135
|
a("stop", {
|
|
136
136
|
offset: "0%",
|
|
137
137
|
"stop-color": i.stop000
|
|
138
|
-
}, null, 8,
|
|
138
|
+
}, null, 8, D),
|
|
139
139
|
a("stop", {
|
|
140
140
|
offset: "24.3%",
|
|
141
141
|
"stop-color": i.stop024
|
|
142
|
-
}, null, 8,
|
|
142
|
+
}, null, 8, E),
|
|
143
143
|
a("stop", {
|
|
144
144
|
offset: "65.21%",
|
|
145
145
|
"stop-color": i.stop065
|
|
146
|
-
}, null, 8,
|
|
146
|
+
}, null, 8, L),
|
|
147
147
|
a("stop", {
|
|
148
148
|
offset: "100%",
|
|
149
149
|
"stop-color": i.stop100
|
|
150
|
-
}, null, 8,
|
|
150
|
+
}, null, 8, M)
|
|
151
151
|
], 8, W)
|
|
152
152
|
]),
|
|
153
153
|
a("circle", {
|
|
@@ -157,7 +157,7 @@ import './style/loader.css';const F = ["id", "aria-label"], N = ["width", "heigh
|
|
|
157
157
|
r: p.value,
|
|
158
158
|
"stroke-width": c.value,
|
|
159
159
|
fill: "none"
|
|
160
|
-
}, null, 8,
|
|
160
|
+
}, null, 8, I),
|
|
161
161
|
a("circle", B({
|
|
162
162
|
class: "rds-e-loader__arc",
|
|
163
163
|
cx: e.value / 2,
|
|
@@ -173,7 +173,7 @@ import './style/loader.css';const F = ["id", "aria-label"], N = ["width", "heigh
|
|
|
173
173
|
], 8, N))
|
|
174
174
|
], 14, F));
|
|
175
175
|
}
|
|
176
|
-
}),
|
|
176
|
+
}), G = /* @__PURE__ */ z(R, [["__scopeId", "data-v-32444c96"]]);
|
|
177
177
|
export {
|
|
178
|
-
|
|
178
|
+
G as default
|
|
179
179
|
};
|