ranui 0.2.1-alpha.3 → 0.2.1-alpha.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/builder.js +1 -1
- package/dist/{builtin-BkM0LLof.js → builtin-1lUEp_ro.js} +1 -1
- package/dist/{button-D0zcnKnG.js → button-Cj-XSCsd.js} +1 -1
- package/dist/button.js +1 -1
- package/dist/{card-CygMndQS.js → card-BHN9Xp4S.js} +1 -1
- package/dist/card.js +1 -1
- package/dist/{checkbox-D5om9aJO.js → checkbox-O_J_n1_W.js} +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{colorpicker-qWnaTlYX.js → colorpicker-mebH0XLm.js} +4 -4
- package/dist/colorpicker.js +1 -1
- package/dist/{content-Rry-U6ir.js → content-YOKzMoc7.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/{dropdown-DzdAR1nI.js → dropdown-CzGAVWYC.js} +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/{factory-BkvRcCOx.js → factory-ZNhcQ4tf.js} +127 -127
- package/dist/{form-CUJpeQ7Q.js → form-B8afuJlF.js} +1 -1
- package/dist/form.js +1 -1
- package/dist/{glass-Bj1Zf8Hy.js → glass-BniIptBE.js} +1 -1
- package/dist/glass.js +1 -1
- package/dist/{icon-CtlZJISZ.js → icon-GZrfSeon.js} +1 -1
- package/dist/icon.js +1 -1
- package/dist/icons.js +1 -1
- package/dist/iife/button.iife.js +1 -1
- package/dist/iife/card.iife.js +1 -1
- package/dist/iife/checkbox.iife.js +1 -1
- package/dist/iife/colorpicker.iife.js +2 -2
- package/dist/iife/content.iife.js +1 -1
- package/dist/iife/dropdown.iife.js +1 -1
- package/dist/iife/form.iife.js +1 -1
- package/dist/iife/glass.iife.js +1 -1
- package/dist/iife/icon.iife.js +1 -1
- package/dist/iife/image.iife.js +1 -1
- package/dist/iife/input.iife.js +1 -1
- package/dist/iife/loading.iife.js +1 -1
- package/dist/iife/math.iife.js +1 -1
- package/dist/iife/mermaid.iife.js +1 -1
- package/dist/iife/message.iife.js +1 -1
- package/dist/iife/modal.iife.js +1 -1
- package/dist/iife/player.iife.js +1 -1
- package/dist/iife/popover.iife.js +1 -1
- package/dist/iife/progress.iife.js +1 -1
- package/dist/iife/radar.iife.js +1 -1
- package/dist/iife/route.iife.js +1 -1
- package/dist/iife/router.iife.js +1 -1
- package/dist/iife/scratch.iife.js +1 -1
- package/dist/iife/section.iife.js +1 -1
- package/dist/iife/select.iife.js +2 -2
- package/dist/iife/skeleton.iife.js +1 -1
- package/dist/iife/tab.iife.js +1 -1
- package/dist/iife/tabpane.iife.js +1 -1
- package/dist/iife/theme-switch.iife.js +1 -1
- package/dist/{image-ILZNlaGc.js → image-CqoQfJoV.js} +1 -1
- package/dist/image.js +1 -1
- package/dist/index.cjs +17 -17
- package/dist/index.iife.js +204 -204
- package/dist/index.js +29 -29
- package/dist/{input-CDH6zY9I.js → input-BlwAXu7I.js} +2 -2
- package/dist/input.js +1 -1
- package/dist/{loading-DJWGih1g.js → loading-M6gWxLbm.js} +1 -1
- package/dist/loading.js +1 -1
- package/dist/{math-DRmkEDSQ.js → math-8E-45Y8e.js} +1 -1
- package/dist/math.js +1 -1
- package/dist/{mermaid-CMhm7npE.js → mermaid-C1oQyPE3.js} +2 -2
- package/dist/mermaid.js +1 -1
- package/dist/{message-BpYJBvYn.js → message-CNdmbeLf.js} +2 -2
- package/dist/message.js +1 -1
- package/dist/{modal-BeQlDYDP.js → modal-gRagDkTb.js} +1 -1
- package/dist/modal.js +1 -1
- package/dist/{player-CQ4e3Yeo.js → player-CAQ5Og2P.js} +2 -2
- package/dist/player.js +1 -1
- package/dist/{popover-eZMnL1F3.js → popover-BZKSLe3D.js} +3 -3
- package/dist/popover.js +1 -1
- package/dist/{progress-DyHgW4Ep.js → progress-vk40tuhm.js} +1 -1
- package/dist/progress.js +1 -1
- package/dist/{radar-D21Rccap.js → radar-Bg0cexzU.js} +1 -1
- package/dist/radar.js +1 -1
- package/dist/{route-pR5P4ann.js → route-CGwS0cd_.js} +1 -1
- package/dist/route.js +1 -1
- package/dist/{router-CewzSH7O.js → router-BK6DEkcN.js} +1 -1
- package/dist/router.js +1 -1
- package/dist/{scratch-BFVsgl-7.js → scratch-ClF1awGi.js} +1 -1
- package/dist/scratch.js +1 -1
- package/dist/{section-DSPCsIxv.js → section-BL0V7Kjf.js} +1 -1
- package/dist/section.js +1 -1
- package/dist/{select-B58nMfB1.js → select-BIFVbQIj.js} +4 -4
- package/dist/select.js +1 -1
- package/dist/{skeleton-DoHYMsTn.js → skeleton-D7JIbROq.js} +1 -1
- package/dist/skeleton.js +1 -1
- package/dist/{tab-BRPdZ9Ws.js → tab-DFVtDJb2.js} +1 -1
- package/dist/tab.js +1 -1
- package/dist/{tabpane-Owf72hw_.js → tabpane-C3qZGN-D.js} +1 -1
- package/dist/tabpane.js +1 -1
- package/dist/test/ssr/stream.test.d.ts +1 -0
- package/dist/{theme-switch-CZDIIonc.js → theme-switch-BXNH5uPD.js} +44 -44
- package/dist/theme-switch.js +1 -1
- package/dist/utils/builder/core.d.ts +15 -13
- package/docs/BUILDER.md +15 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
var S = 0,
|
|
3
|
-
function
|
|
1
|
+
import { c as d, n as P } from "./mocks-CMGoftIc.js";
|
|
2
|
+
var S = 0, A = 1, m = 2, f = null, l = null, p = 0, y = /* @__PURE__ */ new Set(), g = !1;
|
|
3
|
+
function B(e, t) {
|
|
4
4
|
const r = t?.equals ?? Object.is, n = {
|
|
5
5
|
value: e,
|
|
6
6
|
observers: /* @__PURE__ */ new Set()
|
|
@@ -9,25 +9,25 @@ function A(e, t) {
|
|
|
9
9
|
const a = typeof i == "function" ? i(n.value) : i;
|
|
10
10
|
if (!r(n.value, a)) {
|
|
11
11
|
n.value = a;
|
|
12
|
-
for (const
|
|
13
|
-
|
|
12
|
+
for (const u of n.observers) N(u, m);
|
|
13
|
+
p === 0 && j();
|
|
14
14
|
}
|
|
15
15
|
}];
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function L(e, t) {
|
|
18
18
|
const r = k(e, !1, t?.equals);
|
|
19
|
-
return D(r), () => (r.disposed || (
|
|
19
|
+
return D(r), () => (r.disposed || (I(r), R(r)), r.value);
|
|
20
20
|
}
|
|
21
21
|
function C(e) {
|
|
22
22
|
const t = k(e, !0);
|
|
23
|
-
return D(t), M(t), () =>
|
|
23
|
+
return D(t), M(t), () => O(t);
|
|
24
24
|
}
|
|
25
25
|
function Z(e) {
|
|
26
|
-
|
|
26
|
+
p++;
|
|
27
27
|
try {
|
|
28
28
|
e();
|
|
29
29
|
} finally {
|
|
30
|
-
|
|
30
|
+
p--, p === 0 && j();
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
function ee(e) {
|
|
@@ -39,32 +39,32 @@ function ee(e) {
|
|
|
39
39
|
f = t;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function E(e) {
|
|
43
43
|
const t = {
|
|
44
44
|
owned: [],
|
|
45
45
|
cleanups: [],
|
|
46
|
-
owner:
|
|
47
|
-
}, r =
|
|
48
|
-
|
|
46
|
+
owner: l
|
|
47
|
+
}, r = l, n = f;
|
|
48
|
+
l = t, f = null;
|
|
49
49
|
try {
|
|
50
50
|
return e(() => $(t));
|
|
51
51
|
} finally {
|
|
52
|
-
|
|
52
|
+
l = r, f = n;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
|
|
55
|
+
function x(e) {
|
|
56
|
+
l && l.cleanups.push(e);
|
|
57
57
|
}
|
|
58
58
|
function te() {
|
|
59
|
-
return
|
|
59
|
+
return l;
|
|
60
60
|
}
|
|
61
61
|
function re(e, t) {
|
|
62
|
-
const r =
|
|
63
|
-
|
|
62
|
+
const r = l, n = f;
|
|
63
|
+
l = e, f = null;
|
|
64
64
|
try {
|
|
65
65
|
return t();
|
|
66
66
|
} finally {
|
|
67
|
-
|
|
67
|
+
l = r, f = n;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
function k(e, t, r) {
|
|
@@ -80,144 +80,144 @@ function k(e, t, r) {
|
|
|
80
80
|
equals: r ?? Object.is,
|
|
81
81
|
owned: [],
|
|
82
82
|
cleanups: [],
|
|
83
|
-
owner:
|
|
83
|
+
owner: l
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
86
|
function D(e) {
|
|
87
|
-
|
|
87
|
+
l && l.owned.push(e);
|
|
88
88
|
}
|
|
89
89
|
function R(e) {
|
|
90
90
|
f && (f.sources.add(e), e.observers.add(f));
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function N(e, t) {
|
|
93
93
|
if (e.disposed || e.state >= t) return;
|
|
94
94
|
const r = e.state === S;
|
|
95
95
|
if (e.state = t, e.isEffect) y.add(e);
|
|
96
|
-
else if (r) for (const n of e.observers)
|
|
96
|
+
else if (r) for (const n of e.observers) N(n, A);
|
|
97
97
|
}
|
|
98
98
|
function j() {
|
|
99
|
-
if (!(
|
|
99
|
+
if (!(p > 0 || g)) {
|
|
100
100
|
g = !0;
|
|
101
101
|
try {
|
|
102
102
|
for (; y.size > 0; ) {
|
|
103
103
|
const e = [...y];
|
|
104
104
|
y.clear();
|
|
105
|
-
for (const t of e) t.disposed ||
|
|
105
|
+
for (const t of e) t.disposed || I(t);
|
|
106
106
|
}
|
|
107
107
|
} finally {
|
|
108
108
|
g = !1;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function I(e) {
|
|
113
113
|
if (!(e.disposed || e.state === S)) {
|
|
114
|
-
if (e.state ===
|
|
115
|
-
for (const t of e.sources) "fn" in t &&
|
|
114
|
+
if (e.state === A)
|
|
115
|
+
for (const t of e.sources) "fn" in t && I(t);
|
|
116
116
|
e.state === m && M(e), e.state = S;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
function M(e) {
|
|
120
120
|
if (e.running) throw new Error("ranui reactivity: cyclic dependency detected (a computation triggered itself).");
|
|
121
121
|
_(e);
|
|
122
|
-
const t = f, r =
|
|
123
|
-
f = e,
|
|
122
|
+
const t = f, r = l;
|
|
123
|
+
f = e, l = e, e.running = !0, e.state = S;
|
|
124
124
|
try {
|
|
125
125
|
const n = e.fn();
|
|
126
126
|
if (e.isEffect)
|
|
127
127
|
typeof n == "function" && e.cleanups.push(n);
|
|
128
128
|
else {
|
|
129
|
-
const
|
|
130
|
-
if (e.value = n, e.observers.size > 0 && !e.equals(
|
|
129
|
+
const s = e.value;
|
|
130
|
+
if (e.value = n, e.observers.size > 0 && !e.equals(s, n)) for (const o of e.observers) N(o, m);
|
|
131
131
|
}
|
|
132
132
|
} finally {
|
|
133
|
-
e.running = !1, f = t,
|
|
133
|
+
e.running = !1, f = t, l = r;
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
function _(e) {
|
|
137
|
-
for (const t of e.owned)
|
|
137
|
+
for (const t of e.owned) O(t);
|
|
138
138
|
e.owned.length = 0;
|
|
139
139
|
for (const t of e.cleanups) t();
|
|
140
140
|
e.cleanups.length = 0;
|
|
141
141
|
for (const t of e.sources) t.observers.delete(e);
|
|
142
142
|
e.sources.clear();
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function O(e) {
|
|
145
145
|
e.disposed || (e.disposed = !0, _(e), e.observers.clear());
|
|
146
146
|
}
|
|
147
147
|
function $(e) {
|
|
148
|
-
for (const t of e.owned)
|
|
148
|
+
for (const t of e.owned) O(t);
|
|
149
149
|
e.owned.length = 0;
|
|
150
150
|
for (const t of e.cleanups) t();
|
|
151
151
|
e.cleanups.length = 0;
|
|
152
152
|
}
|
|
153
|
-
var ne = () => ({ current: null }),
|
|
154
|
-
if (
|
|
155
|
-
w([t()])
|
|
156
|
-
const s = d(o);
|
|
157
|
-
s != null && e.appendChild(s);
|
|
158
|
-
});
|
|
153
|
+
var ne = () => ({ current: null }), z = (e) => e.reduce((t, r) => Array.isArray(r) ? t.concat(z(r)) : t.concat(r), []), v = (e) => e == null ? null : e instanceof q ? e.build() : typeof e == "string" ? d ? e : document.createTextNode(e) : e, K = (e, t) => {
|
|
154
|
+
if (d) {
|
|
155
|
+
w(e, [t()]);
|
|
159
156
|
return;
|
|
160
157
|
}
|
|
161
|
-
const r = document.createComment("");
|
|
162
|
-
e.appendChild(r);
|
|
163
|
-
let
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
const l = d(a);
|
|
171
|
-
l != null && (i.after(l), i = l, s.push(l));
|
|
158
|
+
const r = document.createComment(""), n = document.createComment("");
|
|
159
|
+
e.appendChild(r), e.appendChild(n);
|
|
160
|
+
let s = null;
|
|
161
|
+
const o = () => {
|
|
162
|
+
s?.(), s = null;
|
|
163
|
+
let i = r.nextSibling;
|
|
164
|
+
for (; i && i !== n; ) {
|
|
165
|
+
const a = i.nextSibling;
|
|
166
|
+
i.parentNode?.removeChild(i), i = a;
|
|
172
167
|
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
168
|
+
};
|
|
169
|
+
C(() => {
|
|
170
|
+
const i = t();
|
|
171
|
+
o();
|
|
172
|
+
const a = document.createDocumentFragment();
|
|
173
|
+
s = E((u) => (w(a, [i]), u)), n.parentNode?.insertBefore(a, n);
|
|
174
|
+
}), x(() => s?.());
|
|
175
|
+
}, F = "__ranFor";
|
|
176
176
|
function se(e) {
|
|
177
177
|
return {
|
|
178
178
|
...e,
|
|
179
|
-
[
|
|
179
|
+
[F]: !0
|
|
180
180
|
};
|
|
181
181
|
}
|
|
182
|
-
var V = (e) => typeof e == "object" && e !== null && e[
|
|
182
|
+
var V = (e) => typeof e == "object" && e !== null && e[F] === !0;
|
|
183
183
|
function oe(e) {
|
|
184
|
-
const t =
|
|
184
|
+
const t = L(() => !!e.when()), r = () => e.when();
|
|
185
185
|
return () => t() ? e.children(r) : e.fallback?.() ?? null;
|
|
186
186
|
}
|
|
187
187
|
function ie(e) {
|
|
188
188
|
return e;
|
|
189
189
|
}
|
|
190
190
|
function ae(e) {
|
|
191
|
-
const t = e.children, r =
|
|
191
|
+
const t = e.children, r = L(() => t.findIndex((n) => !!n.when()));
|
|
192
192
|
return () => {
|
|
193
193
|
const n = r();
|
|
194
194
|
if (n < 0) return e.fallback?.() ?? null;
|
|
195
|
-
const
|
|
196
|
-
return
|
|
195
|
+
const s = t[n];
|
|
196
|
+
return s.children(() => s.when());
|
|
197
197
|
};
|
|
198
198
|
}
|
|
199
199
|
var W = (e, t, r) => {
|
|
200
|
-
const [n,
|
|
201
|
-
let
|
|
202
|
-
const i =
|
|
203
|
-
const
|
|
204
|
-
return
|
|
200
|
+
const [n, s] = B(t);
|
|
201
|
+
let o = null;
|
|
202
|
+
const i = E((a) => {
|
|
203
|
+
const u = v(r(e, n));
|
|
204
|
+
return o = typeof u == "string" ? document.createTextNode(u) : u, a;
|
|
205
205
|
});
|
|
206
206
|
return {
|
|
207
|
-
node:
|
|
208
|
-
index:
|
|
207
|
+
node: o,
|
|
208
|
+
index: s,
|
|
209
209
|
dispose: i
|
|
210
210
|
};
|
|
211
211
|
}, H = (e, t) => {
|
|
212
212
|
const r = e.parentNode;
|
|
213
213
|
if (!r) return;
|
|
214
214
|
let n = e;
|
|
215
|
-
for (const
|
|
216
|
-
n.nextSibling !==
|
|
215
|
+
for (const s of t)
|
|
216
|
+
n.nextSibling !== s && r.insertBefore(s, n.nextSibling), n = s;
|
|
217
217
|
}, U = (e, t) => {
|
|
218
|
-
if (
|
|
219
|
-
(t.each() ?? []).forEach((
|
|
220
|
-
const i =
|
|
218
|
+
if (d) {
|
|
219
|
+
(t.each() ?? []).forEach((s, o) => {
|
|
220
|
+
const i = v(t.render(s, () => o));
|
|
221
221
|
i != null && e.appendChild(i);
|
|
222
222
|
});
|
|
223
223
|
return;
|
|
@@ -225,20 +225,20 @@ var W = (e, t, r) => {
|
|
|
225
225
|
const r = document.createComment("");
|
|
226
226
|
e.appendChild(r);
|
|
227
227
|
let n = /* @__PURE__ */ new Map();
|
|
228
|
-
|
|
229
|
-
for (const
|
|
228
|
+
x(() => {
|
|
229
|
+
for (const s of n.values()) s.dispose();
|
|
230
230
|
n.clear();
|
|
231
231
|
}), C(() => {
|
|
232
|
-
const
|
|
233
|
-
|
|
234
|
-
const b = t.key(a,
|
|
235
|
-
if (
|
|
236
|
-
let
|
|
237
|
-
|
|
232
|
+
const s = t.each() ?? [], o = /* @__PURE__ */ new Map(), i = [];
|
|
233
|
+
s.forEach((a, u) => {
|
|
234
|
+
const b = t.key(a, u);
|
|
235
|
+
if (o.has(b)) return;
|
|
236
|
+
let h = n.get(b);
|
|
237
|
+
h ? (n.delete(b), h.index(u)) : h = W(a, u, t.render), o.set(b, h), h.node && i.push(h.node);
|
|
238
238
|
});
|
|
239
239
|
for (const a of n.values())
|
|
240
240
|
a.node?.parentNode?.removeChild(a.node), a.dispose();
|
|
241
|
-
H(r, i), n =
|
|
241
|
+
H(r, i), n = o;
|
|
242
242
|
});
|
|
243
243
|
}, T = "__ranIndex";
|
|
244
244
|
function le(e) {
|
|
@@ -248,21 +248,21 @@ function le(e) {
|
|
|
248
248
|
};
|
|
249
249
|
}
|
|
250
250
|
var X = (e) => typeof e == "object" && e !== null && e[T] === !0, Y = (e, t, r) => {
|
|
251
|
-
const [n,
|
|
252
|
-
let
|
|
253
|
-
const i =
|
|
254
|
-
const
|
|
255
|
-
return
|
|
251
|
+
const [n, s] = B(e);
|
|
252
|
+
let o = null;
|
|
253
|
+
const i = E((a) => {
|
|
254
|
+
const u = v(r(n, t));
|
|
255
|
+
return o = typeof u == "string" ? document.createTextNode(u) : u, a;
|
|
256
256
|
});
|
|
257
257
|
return {
|
|
258
|
-
node:
|
|
259
|
-
setItem:
|
|
258
|
+
node: o,
|
|
259
|
+
setItem: s,
|
|
260
260
|
dispose: i
|
|
261
261
|
};
|
|
262
262
|
}, G = (e, t) => {
|
|
263
|
-
if (
|
|
264
|
-
(t.each() ?? []).forEach((
|
|
265
|
-
const i =
|
|
263
|
+
if (d) {
|
|
264
|
+
(t.each() ?? []).forEach((s, o) => {
|
|
265
|
+
const i = v(t.render(() => s, o));
|
|
266
266
|
i != null && e.appendChild(i);
|
|
267
267
|
});
|
|
268
268
|
return;
|
|
@@ -270,20 +270,20 @@ var X = (e) => typeof e == "object" && e !== null && e[T] === !0, Y = (e, t, r)
|
|
|
270
270
|
const r = document.createComment("");
|
|
271
271
|
e.appendChild(r);
|
|
272
272
|
let n = [];
|
|
273
|
-
|
|
274
|
-
for (const
|
|
273
|
+
x(() => {
|
|
274
|
+
for (const s of n) s.dispose();
|
|
275
275
|
n = [];
|
|
276
276
|
}), C(() => {
|
|
277
|
-
const
|
|
278
|
-
for (let
|
|
279
|
-
for (let
|
|
280
|
-
const { node: i } = n[
|
|
281
|
-
i?.parentNode?.removeChild(i), n[
|
|
277
|
+
const s = t.each() ?? [];
|
|
278
|
+
for (let o = 0; o < s.length; o++) o < n.length ? n[o].setItem(s[o]) : n.push(Y(s[o], o, t.render));
|
|
279
|
+
for (let o = n.length - 1; o >= s.length; o--) {
|
|
280
|
+
const { node: i } = n[o];
|
|
281
|
+
i?.parentNode?.removeChild(i), n[o].dispose(), n.pop();
|
|
282
282
|
}
|
|
283
|
-
H(r, n.map((
|
|
283
|
+
H(r, n.map((o) => o.node).filter((o) => o != null));
|
|
284
284
|
});
|
|
285
|
-
},
|
|
286
|
-
|
|
285
|
+
}, w = (e, t) => {
|
|
286
|
+
z(t).forEach((r) => {
|
|
287
287
|
if (V(r)) {
|
|
288
288
|
U(e, r);
|
|
289
289
|
return;
|
|
@@ -296,13 +296,13 @@ var X = (e) => typeof e == "object" && e !== null && e[T] === !0, Y = (e, t, r)
|
|
|
296
296
|
K(e, r);
|
|
297
297
|
return;
|
|
298
298
|
}
|
|
299
|
-
const n =
|
|
299
|
+
const n = v(r);
|
|
300
300
|
n != null && e.appendChild(n);
|
|
301
301
|
});
|
|
302
|
-
},
|
|
302
|
+
}, q = class {
|
|
303
303
|
el;
|
|
304
304
|
constructor(e) {
|
|
305
|
-
this.el =
|
|
305
|
+
this.el = d ? new P(e) : document.createElement(e);
|
|
306
306
|
}
|
|
307
307
|
id(e) {
|
|
308
308
|
return this.el.setAttribute("id", e), this;
|
|
@@ -312,7 +312,7 @@ var X = (e) => typeof e == "object" && e !== null && e[T] === !0, Y = (e, t, r)
|
|
|
312
312
|
}
|
|
313
313
|
class(e) {
|
|
314
314
|
return this.bind(e, (t) => {
|
|
315
|
-
|
|
315
|
+
d ? this.el.attributes.set("class", t) : this.el.className = t;
|
|
316
316
|
}), this;
|
|
317
317
|
}
|
|
318
318
|
addClass(...e) {
|
|
@@ -374,14 +374,14 @@ var X = (e) => typeof e == "object" && e !== null && e[T] === !0, Y = (e, t, r)
|
|
|
374
374
|
listen(e, t, r, n) {
|
|
375
375
|
return e.on(this.el, t, r, n), this;
|
|
376
376
|
}
|
|
377
|
-
delegate(e, t, r, n,
|
|
378
|
-
return e.delegate(this.el, t, r, n,
|
|
377
|
+
delegate(e, t, r, n, s) {
|
|
378
|
+
return e.delegate(this.el, t, r, n, s), this;
|
|
379
379
|
}
|
|
380
380
|
children(...e) {
|
|
381
|
-
return
|
|
381
|
+
return w(this.el, e), this;
|
|
382
382
|
}
|
|
383
383
|
replaceChildren(...e) {
|
|
384
|
-
if (
|
|
384
|
+
if (d) {
|
|
385
385
|
const t = this.el;
|
|
386
386
|
t.childrenList = [];
|
|
387
387
|
} else this.el.replaceChildren();
|
|
@@ -403,7 +403,7 @@ var X = (e) => typeof e == "object" && e !== null && e[T] === !0, Y = (e, t, r)
|
|
|
403
403
|
return this.el;
|
|
404
404
|
}
|
|
405
405
|
serialize() {
|
|
406
|
-
if (
|
|
406
|
+
if (d) return this.el.serialize();
|
|
407
407
|
const e = document.createElement("div");
|
|
408
408
|
return e.appendChild(this.el.cloneNode(!0)), e.innerHTML;
|
|
409
409
|
}
|
|
@@ -415,13 +415,13 @@ var X = (e) => typeof e == "object" && e !== null && e[T] === !0, Y = (e, t, r)
|
|
|
415
415
|
this.hostEl = e, this.root = t, this.options = r;
|
|
416
416
|
}
|
|
417
417
|
children(...e) {
|
|
418
|
-
return
|
|
418
|
+
return w(this.root, e), this;
|
|
419
419
|
}
|
|
420
420
|
adoptSheet(...e) {
|
|
421
421
|
return this.root.adoptedStyleSheets = [...this.root.adoptedStyleSheets, ...e], this;
|
|
422
422
|
}
|
|
423
423
|
css(e) {
|
|
424
|
-
if (
|
|
424
|
+
if (d)
|
|
425
425
|
return this.root.adoptedStyleSheets.push(e), this;
|
|
426
426
|
if (typeof CSSStyleSheet < "u") try {
|
|
427
427
|
const r = new CSSStyleSheet();
|
|
@@ -438,24 +438,24 @@ var X = (e) => typeof e == "object" && e !== null && e[T] === !0, Y = (e, t, r)
|
|
|
438
438
|
};
|
|
439
439
|
}
|
|
440
440
|
serialize() {
|
|
441
|
-
return
|
|
441
|
+
return d ? this.root.serialize() : this.root.innerHTML;
|
|
442
442
|
}
|
|
443
|
-
},
|
|
444
|
-
const r =
|
|
443
|
+
}, c = (e) => new q(e), ce = () => c("div"), ue = () => c("span"), fe = () => c("slot"), de = () => c("button"), he = () => c("input"), pe = () => c("style"), ve = () => c("label"), be = () => c("ul"), ye = () => c("li"), Se = () => c("section"), we = () => c("article"), me = () => c("nav"), Ce = () => c("header"), ge = () => c("footer"), Ee = () => c("main"), xe = (e = "open", t = !1) => {
|
|
444
|
+
const r = c("template");
|
|
445
445
|
return r.attr("shadowrootmode", e), t && r.attr("shadowrootdelegatesfocus", ""), r;
|
|
446
446
|
};
|
|
447
447
|
export {
|
|
448
448
|
te as A,
|
|
449
449
|
oe as C,
|
|
450
|
-
|
|
450
|
+
L as D,
|
|
451
451
|
Z as E,
|
|
452
452
|
re as M,
|
|
453
|
-
|
|
453
|
+
B as N,
|
|
454
454
|
C as O,
|
|
455
455
|
ee as P,
|
|
456
456
|
J as S,
|
|
457
457
|
ne as T,
|
|
458
|
-
|
|
458
|
+
c as _,
|
|
459
459
|
ge as a,
|
|
460
460
|
le as b,
|
|
461
461
|
ve as c,
|
|
@@ -464,18 +464,18 @@ export {
|
|
|
464
464
|
be as g,
|
|
465
465
|
pe as h,
|
|
466
466
|
ce as i,
|
|
467
|
-
|
|
468
|
-
|
|
467
|
+
x as j,
|
|
468
|
+
E as k,
|
|
469
469
|
ye as l,
|
|
470
470
|
ue as m,
|
|
471
|
-
|
|
471
|
+
de as n,
|
|
472
472
|
Ce as o,
|
|
473
473
|
fe as p,
|
|
474
474
|
xe as r,
|
|
475
|
-
|
|
475
|
+
he as s,
|
|
476
476
|
we as t,
|
|
477
477
|
Ee as u,
|
|
478
|
-
|
|
478
|
+
q as v,
|
|
479
479
|
ae as w,
|
|
480
480
|
ie as x,
|
|
481
481
|
se as y
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a, n as o, o as i, r as n, t as h } from "./utils-D1iZnChu.js";
|
|
2
|
-
import { _ as l, p as m } from "./factory-
|
|
2
|
+
import { _ as l, p as m } from "./factory-ZNhcQ4tf.js";
|
|
3
3
|
import { a as u, n as f } from "./ssr-DSGwPtEd.js";
|
|
4
4
|
var c = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}", d = class extends f {
|
|
5
5
|
_form;
|
package/dist/form.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a, n as o, r as e, t as u } from "./utils-D1iZnChu.js";
|
|
2
|
-
import { i, p as h } from "./factory-
|
|
2
|
+
import { i, p as h } from "./factory-ZNhcQ4tf.js";
|
|
3
3
|
import { a as d, n as g } from "./ssr-DSGwPtEd.js";
|
|
4
4
|
var c = '.remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}:host{display:var(--ran-glass-display, inline-block);position:var(--ran-glass-position, relative);border-radius:var(--ran-glass-radius, 20px);isolation:isolate;-webkit-tap-highlight-color:transparent}.ran-glass-defs{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}.ran-glass{position:relative;box-sizing:border-box;min-width:var(--ran-glass-min-width, 0);min-height:var(--ran-glass-min-height, 0);padding:var(--ran-glass-padding, 0);border-radius:inherit;overflow:hidden;color:inherit;-webkit-backdrop-filter:blur(var(--ran-glass-blur, 16px)) saturate(var(--ran-glass-saturate, 180%)) brightness(var(--ran-glass-brightness, 1.05));backdrop-filter:blur(var(--ran-glass-blur, 16px)) saturate(var(--ran-glass-saturate, 180%)) brightness(var(--ran-glass-brightness, 1.05)) var(--ran-glass-refraction, url(#ran-glass-filter));background:var(--ran-glass-tint, rgba(255, 255, 255, .14));border:var(--ran-glass-border, 1px solid rgba(255, 255, 255, .35));box-shadow:var(--ran-glass-shadow, inset 0 1px 1px rgba(255, 255, 255, .6), inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 -20px 40px rgba(255, 255, 255, .04), 0 24px 60px -18px rgba(0, 0, 0, .5));transition:var(--ran-glass-transition, transform var(--ran-motion-duration-base, .2s) var(--ran-motion-ease-spring, cubic-bezier(.34, 1.26, .5, 1)))}.ran-glass-specular{position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:var(--ran-glass-specular-opacity, 1);background:var(--ran-glass-specular, linear-gradient(180deg, rgba(255, 255, 255, .28), transparent 34%), radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, .18), transparent 60%))}.ran-glass-specular:after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(105deg,transparent 42%,rgba(255,255,255,.4) 50%,transparent 58%);transform:translate(-130%);opacity:0}:host([sheen]) .ran-glass-specular:after{opacity:.7;animation:ran-glass-sheen var(--ran-glass-sheen-duration, 6s) ease-in-out infinite}@keyframes ran-glass-sheen{50%{transform:translate(130%)}}.ran-glass ::slotted(*){position:relative;z-index:1}:host([interactive]) .ran-glass{cursor:pointer}:host([interactive]:hover) .ran-glass{transform:translateY(-2px)}:host([interactive]:active) .ran-glass{transform:translateY(0) scale(.98);transition-duration:var(--ran-motion-duration-fast, .15s)}@media(prefers-reduced-motion:reduce){:host([sheen]) .ran-glass-specular:after{animation:none;opacity:0}.ran-glass{transition:none}}', p = 0, b = class n extends g {
|
|
5
5
|
_shadowDom;
|
package/dist/glass.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as c, n as h, o as d, r as n, t as u } from "./utils-D1iZnChu.js";
|
|
2
2
|
import { t as v } from "./events-C59wGdni.js";
|
|
3
|
-
import { _ as g, i as f } from "./factory-
|
|
3
|
+
import { _ as g, i as f } from "./factory-ZNhcQ4tf.js";
|
|
4
4
|
import { a as p, n as m } from "./ssr-DSGwPtEd.js";
|
|
5
5
|
var w = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}:host{display:var(--ran-icon-host-display, inline-flex)}:host([spin]){animation-name:var(--ran-icon-host-spin-animation-name, rotate);animation-duration:var(--ran-icon-host-spin-animation-name, 1.4s);animation-timing-function:linear;animation-iteration-count:var(--ran-icon-host-spin-animation-name, infinite)}.ran-icon{display:var(--ran-icon-display, flex);align-items:var(--ran-icon-align-items, center);justify-content:var(--ran-icon-justify-content, center);color:var(--ran-icon-color, inherit);font-size:var(--ran-icon-font-size, 1em);margin:var(--ran-icon-margin, 0)}.ran-icon svg{width:var(--ran-icon-svg-width, 1em);height:var(--ran-icon-svg-height, 1em);fill:var(--ran-icon-svg-fill, currentColor);stroke:var(--ran-icon-svg-stroke, currentColor)}@keyframes rotate{to{transform:var(--ran-icon-keyframes-to-transform, rotate(360deg))}}", y = {
|
|
6
6
|
success: !0,
|
package/dist/icon.js
CHANGED
package/dist/icons.js
CHANGED