fluekit 1.5.76 → 1.5.78
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/Button.d.ts +16 -0
- package/dist/ButtonStyle.d.ts +1 -0
- package/dist/Card.d.ts +2 -0
- package/dist/Checkbox.d.ts +26 -13
- package/dist/CheckboxGroup.d.ts +25 -0
- package/dist/CheckboxTypes.d.ts +7 -0
- package/dist/CupertinoActivityIndicator.d.ts +11 -0
- package/dist/Matrix4.d.ts +2 -1
- package/dist/Radio.d.ts +8 -2
- package/dist/RadioGroup.d.ts +26 -0
- package/dist/RadioListTile.d.ts +43 -0
- package/dist/RadioTypes.d.ts +8 -0
- package/dist/RangeSlider.d.ts +30 -0
- package/dist/Slider.d.ts +2 -1
- package/dist/Switch.d.ts +2 -0
- package/dist/__tests__/test_matrix4.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1351 -881
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Comment, Fragment, Text, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, inject, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, onUnmounted, openBlock, provide, reactive, ref, render, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, useAttrs, useSlots, warn, watch, withCtx, withModifiers } from "vue";
|
|
1
|
+
import { Comment, Fragment, Text, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, inject, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, onUnmounted, openBlock, provide, reactive, ref, render, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRefs, unref, useAttrs, useSlots, warn, watch, withCtx, withModifiers } from "vue";
|
|
2
2
|
function isUndefined(e) {
|
|
3
3
|
return e === void 0;
|
|
4
4
|
}
|
|
@@ -38,17 +38,17 @@ var EXCLUDED_VALUES = [
|
|
|
38
38
|
"-0px",
|
|
39
39
|
"+0px"
|
|
40
40
|
], nonTransform = (e) => e.endsWith("vw") || e.endsWith("%") || e.endsWith("PX") || EXCLUDED_VALUES.includes(e);
|
|
41
|
-
function px2vw(e,
|
|
41
|
+
function px2vw(e, w = DEFAULT_VW) {
|
|
42
42
|
if (!canTransform) return isPureNumber(`${e}`) ? `${e}px` : e;
|
|
43
43
|
if (!(e === void 0 || e == null || typeof e == "number" && !Number.isFinite(e))) {
|
|
44
44
|
if (e === 0) return "0";
|
|
45
45
|
if (typeof e == "string") {
|
|
46
46
|
if (e = e.trim(), e == "") return;
|
|
47
47
|
if (nonTransform(e)) return e;
|
|
48
|
-
let
|
|
49
|
-
if (isNumberPx(e) && (e = e.slice(0, -2)), !isPureNumber(e)) return
|
|
48
|
+
let w = e;
|
|
49
|
+
if (isNumberPx(e) && (e = e.slice(0, -2)), !isPureNumber(e)) return w;
|
|
50
50
|
}
|
|
51
|
-
return e = Number(e),
|
|
51
|
+
return e = Number(e), w /= 100, `${Math.round(e / w * 1e5) / 1e5}vw`;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
const Alignment = {
|
|
@@ -62,11 +62,11 @@ const Alignment = {
|
|
|
62
62
|
bottomCenter: "bottomCenter",
|
|
63
63
|
bottomRight: "bottomRight"
|
|
64
64
|
};
|
|
65
|
-
function alignmentToFlex(e,
|
|
65
|
+
function alignmentToFlex(e, w = "row") {
|
|
66
66
|
if (!e) return {};
|
|
67
|
-
let
|
|
68
|
-
|
|
69
|
-
let
|
|
67
|
+
let T = e, E = "flex-start", D = "flex-start";
|
|
68
|
+
T.toLowerCase().includes("left") || T.toLowerCase().includes("right");
|
|
69
|
+
let O = {
|
|
70
70
|
topLeft: {
|
|
71
71
|
x: "flex-start",
|
|
72
72
|
y: "flex-start"
|
|
@@ -103,13 +103,13 @@ function alignmentToFlex(e, T = "row") {
|
|
|
103
103
|
x: "flex-end",
|
|
104
104
|
y: "flex-end"
|
|
105
105
|
}
|
|
106
|
-
}[
|
|
106
|
+
}[T] || {
|
|
107
107
|
x: "flex-start",
|
|
108
108
|
y: "flex-start"
|
|
109
109
|
};
|
|
110
|
-
return
|
|
111
|
-
justifyContent:
|
|
112
|
-
alignItems:
|
|
110
|
+
return w === "row" ? (E = O.x, D = O.y) : (E = O.y, D = O.x), {
|
|
111
|
+
justifyContent: E,
|
|
112
|
+
alignItems: D
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
115
|
const alignmentToStyle = alignmentToFlex;
|
|
@@ -181,29 +181,29 @@ var Align_default = /* @__PURE__ */ defineComponent({
|
|
|
181
181
|
heightFactor: {}
|
|
182
182
|
},
|
|
183
183
|
setup(e) {
|
|
184
|
-
let
|
|
184
|
+
let w = e, T = computed(() => {
|
|
185
185
|
let e = {
|
|
186
186
|
display: "flex",
|
|
187
187
|
position: "relative"
|
|
188
188
|
};
|
|
189
|
-
return Object.assign(e, alignmentToStyle(
|
|
190
|
-
}),
|
|
191
|
-
return (e,
|
|
189
|
+
return Object.assign(e, alignmentToStyle(w.alignment)), w.widthFactor ? e.width = `calc(100% * ${w.widthFactor})` : e.width = "100%", w.heightFactor ? e.height = `calc(100% * ${w.heightFactor})` : e.height = "100%", e;
|
|
190
|
+
}), E = computed(() => ({ flexShrink: 0 }));
|
|
191
|
+
return (e, w) => (openBlock(), createElementBlock("div", {
|
|
192
192
|
class: "flutter-align",
|
|
193
|
-
style: normalizeStyle(
|
|
193
|
+
style: normalizeStyle(T.value)
|
|
194
194
|
}, [createElementVNode("div", {
|
|
195
195
|
class: "flutter-align-child",
|
|
196
|
-
style: normalizeStyle(
|
|
196
|
+
style: normalizeStyle(E.value)
|
|
197
197
|
}, [renderSlot(e.$slots, "default")], 4)], 4));
|
|
198
198
|
}
|
|
199
199
|
}), BOX_CONSTRAINTS_SYMBOL = Symbol("boxConstraints"), toVal = (e) => e === Infinity ? void 0 : e;
|
|
200
200
|
function BoxConstraints(e = {}) {
|
|
201
|
-
let
|
|
201
|
+
let w = e.minWidth ?? 0, T = e.minHeight ?? 0, E = e.maxWidth ?? Infinity, D = e.maxHeight ?? Infinity;
|
|
202
202
|
return {
|
|
203
|
-
minWidth: toVal(
|
|
204
|
-
maxWidth: toVal(
|
|
205
|
-
minHeight: toVal(
|
|
206
|
-
maxHeight: toVal(
|
|
203
|
+
minWidth: toVal(w),
|
|
204
|
+
maxWidth: toVal(E),
|
|
205
|
+
minHeight: toVal(T),
|
|
206
|
+
maxHeight: toVal(D),
|
|
207
207
|
[BOX_CONSTRAINTS_SYMBOL]: !0
|
|
208
208
|
};
|
|
209
209
|
}
|
|
@@ -217,22 +217,22 @@ BoxConstraints.tight = (e) => BoxConstraints({
|
|
|
217
217
|
maxWidth: e.width,
|
|
218
218
|
minHeight: 0,
|
|
219
219
|
maxHeight: e.height
|
|
220
|
-
}), BoxConstraints.expand = ({ width: e, height:
|
|
220
|
+
}), BoxConstraints.expand = ({ width: e, height: w } = {}) => BoxConstraints({
|
|
221
221
|
minWidth: e ?? Infinity,
|
|
222
222
|
maxWidth: e ?? Infinity,
|
|
223
|
-
minHeight:
|
|
224
|
-
maxHeight:
|
|
223
|
+
minHeight: w ?? Infinity,
|
|
224
|
+
maxHeight: w ?? Infinity
|
|
225
225
|
});
|
|
226
226
|
function isBoxConstraints(e) {
|
|
227
227
|
return isPlainObject(e) ? BOX_CONSTRAINTS_SYMBOL in e : !1;
|
|
228
228
|
}
|
|
229
229
|
function boxConstraintsToStyle(e) {
|
|
230
|
-
let
|
|
230
|
+
let w = e ?? {};
|
|
231
231
|
return {
|
|
232
|
-
minWidth: px2vw(
|
|
233
|
-
maxWidth: px2vw(
|
|
234
|
-
minHeight: px2vw(
|
|
235
|
-
maxHeight: px2vw(
|
|
232
|
+
minWidth: px2vw(w.minWidth),
|
|
233
|
+
maxWidth: px2vw(w.maxWidth),
|
|
234
|
+
minHeight: px2vw(w.minHeight),
|
|
235
|
+
maxHeight: px2vw(w.maxHeight)
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
238
|
var BORDER_SIDE_SYMBOL = Symbol("borderSide"), BORDERS_SYMBOL = Symbol("borders");
|
|
@@ -250,17 +250,17 @@ const Border = Object.assign((e) => ({
|
|
|
250
250
|
style: e.style || "solid",
|
|
251
251
|
[BORDER_SIDE_SYMBOL]: !0
|
|
252
252
|
}), {
|
|
253
|
-
all: ({ color: e, width:
|
|
254
|
-
let
|
|
253
|
+
all: ({ color: e, width: w, style: T } = {}) => {
|
|
254
|
+
let E = BorderSide({
|
|
255
255
|
color: e,
|
|
256
|
-
width:
|
|
257
|
-
style:
|
|
256
|
+
width: w,
|
|
257
|
+
style: T
|
|
258
258
|
});
|
|
259
259
|
return {
|
|
260
|
-
top:
|
|
261
|
-
bottom:
|
|
262
|
-
left:
|
|
263
|
-
right:
|
|
260
|
+
top: E,
|
|
261
|
+
bottom: E,
|
|
262
|
+
left: E,
|
|
263
|
+
right: E,
|
|
264
264
|
[BORDERS_SYMBOL]: !0
|
|
265
265
|
};
|
|
266
266
|
},
|
|
@@ -277,13 +277,13 @@ function isBorders(e) {
|
|
|
277
277
|
}
|
|
278
278
|
function borderSideToString(e) {
|
|
279
279
|
if (!e) return;
|
|
280
|
-
let
|
|
281
|
-
return
|
|
280
|
+
let w = [], { width: T, color: E, style: D } = e;
|
|
281
|
+
return T && w.push(T > 1 ? px2vw(T) : T + "px"), E && w.push(E), D && w.push(D), `${w.join(" ")}`;
|
|
282
282
|
}
|
|
283
283
|
function borderSideToStyle(e) {
|
|
284
284
|
if (!e) return {};
|
|
285
|
-
let
|
|
286
|
-
return
|
|
285
|
+
let w = borderSideToString(e);
|
|
286
|
+
return w ? { border: w } : {};
|
|
287
287
|
}
|
|
288
288
|
function borderToStyle(e) {
|
|
289
289
|
if (e) return {
|
|
@@ -295,12 +295,12 @@ function borderToStyle(e) {
|
|
|
295
295
|
}
|
|
296
296
|
var BORDER_RADIUS_SYMBOL = Symbol("borderRadius");
|
|
297
297
|
function BorderRadius(e) {
|
|
298
|
-
let { topLeft:
|
|
298
|
+
let { topLeft: w, topRight: T, bottomLeft: E, bottomRight: D } = e;
|
|
299
299
|
return {
|
|
300
|
-
topLeft:
|
|
301
|
-
topRight:
|
|
302
|
-
bottomLeft:
|
|
303
|
-
bottomRight:
|
|
300
|
+
topLeft: w || 0,
|
|
301
|
+
topRight: T || 0,
|
|
302
|
+
bottomLeft: E || 0,
|
|
303
|
+
bottomRight: D || 0,
|
|
304
304
|
[BORDER_RADIUS_SYMBOL]: !0
|
|
305
305
|
};
|
|
306
306
|
}
|
|
@@ -310,19 +310,19 @@ BorderRadius.all = (e) => ({
|
|
|
310
310
|
bottomLeft: e,
|
|
311
311
|
bottomRight: e,
|
|
312
312
|
[BORDER_RADIUS_SYMBOL]: !0
|
|
313
|
-
}), BorderRadius.circular = (e) => BorderRadius.all(e), BorderRadius.only = ({ topLeft: e, topRight:
|
|
313
|
+
}), BorderRadius.circular = (e) => BorderRadius.all(e), BorderRadius.only = ({ topLeft: e, topRight: w, bottomLeft: T, bottomRight: E }) => BorderRadius({
|
|
314
314
|
topLeft: e,
|
|
315
|
-
topRight:
|
|
316
|
-
bottomLeft:
|
|
317
|
-
bottomRight:
|
|
315
|
+
topRight: w,
|
|
316
|
+
bottomLeft: T,
|
|
317
|
+
bottomRight: E
|
|
318
318
|
}), BorderRadius.zero = BorderRadius({});
|
|
319
319
|
function isBorderRadius(e) {
|
|
320
320
|
return typeof e == "object" && !!e && BORDER_RADIUS_SYMBOL in e;
|
|
321
321
|
}
|
|
322
322
|
function borderRadiusToStyle(e) {
|
|
323
323
|
if (!e) return {};
|
|
324
|
-
let { topLeft:
|
|
325
|
-
return
|
|
324
|
+
let { topLeft: w, topRight: T, bottomLeft: E, bottomRight: D } = e, O = {};
|
|
325
|
+
return E && (O.borderBottomLeftRadius = px2vw(E)), D && (O.borderBottomRightRadius = px2vw(D)), w && (O.borderTopLeftRadius = px2vw(w)), T && (O.borderTopRightRadius = px2vw(T)), O;
|
|
326
326
|
}
|
|
327
327
|
let BlurStyle = /* @__PURE__ */ function(e) {
|
|
328
328
|
return e.normal = "normal", e.solid = "solid", e.outer = "outer", e.inner = "inner", e;
|
|
@@ -363,20 +363,20 @@ function alignmentToCSSSide(e) {
|
|
|
363
363
|
default: return "to bottom";
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
function calculateLinearDirection(e,
|
|
367
|
-
return e === Alignment.topCenter &&
|
|
366
|
+
function calculateLinearDirection(e, w) {
|
|
367
|
+
return e === Alignment.topCenter && w === Alignment.bottomCenter ? "to bottom" : e === Alignment.bottomCenter && w === Alignment.topCenter ? "to top" : e === Alignment.centerLeft && w === Alignment.centerRight ? "to right" : e === Alignment.centerRight && w === Alignment.centerLeft ? "to left" : e === Alignment.topLeft && w === Alignment.bottomRight ? "to bottom right" : e === Alignment.bottomRight && w === Alignment.topLeft ? "to top left" : e === Alignment.topRight && w === Alignment.bottomLeft ? "to bottom left" : e === Alignment.bottomLeft && w === Alignment.topRight ? "to top right" : alignmentToCSSSide(e);
|
|
368
368
|
}
|
|
369
369
|
function LinearGradient(e) {
|
|
370
|
-
let { colors:
|
|
371
|
-
if (!
|
|
372
|
-
let
|
|
373
|
-
return
|
|
370
|
+
let { colors: w, stops: T, begin: E = Alignment.centerLeft, end: D = Alignment.centerRight } = e;
|
|
371
|
+
if (!w || w.length === 0) return "none";
|
|
372
|
+
let O = calculateLinearDirection(E, D), k = "";
|
|
373
|
+
return k = T && T.length === w.length ? w.map((e, w) => `${e} ${T[w] * 100}%`).join(", ") : w.join(", "), `linear-gradient(${O}, ${k})`;
|
|
374
374
|
}
|
|
375
375
|
function RadialGradient(e) {
|
|
376
|
-
let { colors:
|
|
377
|
-
if (!
|
|
378
|
-
let
|
|
379
|
-
return
|
|
376
|
+
let { colors: w, stops: T, center: E = Alignment.center } = e;
|
|
377
|
+
if (!w || w.length === 0) return "none";
|
|
378
|
+
let D = alignmentToCssPosition(E), O = "";
|
|
379
|
+
return O = T && T.length === w.length ? w.map((e, w) => `${e} ${T[w] * 100}%`).join(", ") : w.join(", "), `radial-gradient(circle at ${D}, ${O})`;
|
|
380
380
|
}
|
|
381
381
|
const BoxFit = {
|
|
382
382
|
fitWidth: "fitWidth",
|
|
@@ -413,8 +413,8 @@ function setBaseUrl(e) {
|
|
|
413
413
|
function normalizeSrc(e) {
|
|
414
414
|
if (!e) return "";
|
|
415
415
|
if (/^(https?:|file:|blob:|data:|\/\/)/i.test(e) || /^(linear|radial|conic|repeating-linear|repeating-radial)-gradient\(/.test(e) || !_baseUrl || _baseUrl === "/") return e;
|
|
416
|
-
let
|
|
417
|
-
return e.startsWith(
|
|
416
|
+
let w = _baseUrl.endsWith("/") ? _baseUrl.slice(0, -1) : _baseUrl;
|
|
417
|
+
return e.startsWith(w) ? e : `${w}/${e.startsWith("/") ? e.slice(1) : e}`;
|
|
418
418
|
}
|
|
419
419
|
function DecorationImage(e) {
|
|
420
420
|
return e;
|
|
@@ -422,23 +422,23 @@ function DecorationImage(e) {
|
|
|
422
422
|
var BOX_DECORATION_SYMBOL = Symbol("boxDecoration"), isGradient = (e) => /^(linear|radial|conic|repeating-linear|repeating-radial)-gradient\(/.test(e);
|
|
423
423
|
function decorationImageToStyle(e) {
|
|
424
424
|
if (!e) return {};
|
|
425
|
-
let
|
|
426
|
-
if (
|
|
427
|
-
let
|
|
428
|
-
if (
|
|
429
|
-
else if (e.alignment !== Alignment.center) if (Object.keys(Alignment).includes(e.alignment))
|
|
425
|
+
let w = {}, T = normalizeSrc(typeof e.image == "string" ? e.image : e.image.src);
|
|
426
|
+
if (w.backgroundImage = isGradient(T) ? T : `url(${T})`, e.fit && (w.backgroundSize = ImageFitMap[e.fit] || e.fit), w.backgroundAttachment = e.attachment, w.backgroundBlendMode = e.blendMode, w.backgroundClip = e.clip, w.backgroundOrigin = e.origin, w.backgroundRepeat = e.repeat ?? "no-repeat", e.alignment) {
|
|
427
|
+
let T = alignmentToCssPosition(e.alignment);
|
|
428
|
+
if (T && T !== "center") w.backgroundPosition = T;
|
|
429
|
+
else if (e.alignment !== Alignment.center) if (Object.keys(Alignment).includes(e.alignment)) w.backgroundPosition = alignmentToCssPosition(e.alignment);
|
|
430
430
|
else {
|
|
431
|
-
let [
|
|
432
|
-
|
|
431
|
+
let [T, E] = (e.alignment || "").split(" ");
|
|
432
|
+
T && !cssPoisitions[T] && (T = px2vw(T)), E && !cssPoisitions[E] && (E = px2vw(E)), T && !E && (E = "center"), w.backgroundPosition = `${T} ${E}`;
|
|
433
433
|
}
|
|
434
|
-
else
|
|
434
|
+
else w.backgroundPosition = "center";
|
|
435
435
|
}
|
|
436
|
-
return
|
|
436
|
+
return w;
|
|
437
437
|
}
|
|
438
438
|
function boxDecorationToStyle(e) {
|
|
439
439
|
if (!e) return {};
|
|
440
|
-
let { color:
|
|
441
|
-
return
|
|
440
|
+
let { color: w, border: T, borderRadius: E, boxShadow: D, gradient: O, image: k, overflow: A, opacity: j, shape: M } = e, N = {};
|
|
441
|
+
return w && (N.backgroundColor = w), j !== void 0 && (N.opacity = j), A && (N.overflow = A), O && (N.backgroundImage = O), k && Object.assign(N, decorationImageToStyle(k)), T && Object.assign(N, borderToStyle(T)), M === BoxShape.circle ? N.borderRadius = "50%" : E && Object.assign(N, borderRadiusToStyle(E)), D && (N.boxShadow = (Array.isArray(D) ? D : [D]).map(boxShadowToCSS).join(", ")), N;
|
|
442
442
|
}
|
|
443
443
|
function BoxDecoration(e) {
|
|
444
444
|
return {
|
|
@@ -457,12 +457,12 @@ const Clip = {
|
|
|
457
457
|
};
|
|
458
458
|
var EDGE_INSETS_SYMBOL = Symbol("edgeInsets");
|
|
459
459
|
function EdgeInsets(e) {
|
|
460
|
-
let { top:
|
|
460
|
+
let { top: w, right: T, bottom: E, left: D, horizontal: O, vertical: k } = e;
|
|
461
461
|
return {
|
|
462
|
-
top:
|
|
463
|
-
right:
|
|
464
|
-
bottom:
|
|
465
|
-
left:
|
|
462
|
+
top: w ?? k ?? 0,
|
|
463
|
+
right: T ?? O ?? 0,
|
|
464
|
+
bottom: E ?? k ?? 0,
|
|
465
|
+
left: D ?? O ?? 0,
|
|
466
466
|
[EDGE_INSETS_SYMBOL]: !0
|
|
467
467
|
};
|
|
468
468
|
}
|
|
@@ -472,26 +472,26 @@ EdgeInsets.all = (e) => ({
|
|
|
472
472
|
bottom: e,
|
|
473
473
|
left: e,
|
|
474
474
|
[EDGE_INSETS_SYMBOL]: !0
|
|
475
|
-
}), EdgeInsets.symmetric = ({ vertical: e, horizontal:
|
|
475
|
+
}), EdgeInsets.symmetric = ({ vertical: e, horizontal: w }) => EdgeInsets({
|
|
476
476
|
vertical: e,
|
|
477
|
-
horizontal:
|
|
478
|
-
}), EdgeInsets.only = ({ top: e, right:
|
|
477
|
+
horizontal: w
|
|
478
|
+
}), EdgeInsets.only = ({ top: e, right: w, bottom: T, left: E }) => EdgeInsets({
|
|
479
479
|
top: e,
|
|
480
|
-
right:
|
|
481
|
-
bottom:
|
|
482
|
-
left:
|
|
480
|
+
right: w,
|
|
481
|
+
bottom: T,
|
|
482
|
+
left: E
|
|
483
483
|
}), EdgeInsets.zero = EdgeInsets({});
|
|
484
484
|
function isEdgeInsets(e) {
|
|
485
485
|
return typeof e == "object" && !!e && EDGE_INSETS_SYMBOL in e;
|
|
486
486
|
}
|
|
487
|
-
function edgeInsetsToStyle(e,
|
|
488
|
-
if (!
|
|
489
|
-
let
|
|
487
|
+
function edgeInsetsToStyle(e, w) {
|
|
488
|
+
if (!w) return {};
|
|
489
|
+
let T = EdgeInsets(w);
|
|
490
490
|
return {
|
|
491
|
-
[`${e}Top`]: px2vw(
|
|
492
|
-
[`${e}Right`]: px2vw(
|
|
493
|
-
[`${e}Bottom`]: px2vw(
|
|
494
|
-
[`${e}Left`]: px2vw(
|
|
491
|
+
[`${e}Top`]: px2vw(T.top),
|
|
492
|
+
[`${e}Right`]: px2vw(T.right),
|
|
493
|
+
[`${e}Bottom`]: px2vw(T.bottom),
|
|
494
|
+
[`${e}Left`]: px2vw(T.left)
|
|
495
495
|
};
|
|
496
496
|
}
|
|
497
497
|
const paddingToStyle = (e) => edgeInsetsToStyle("padding", e), marginToStyle = (e) => edgeInsetsToStyle("margin", e), CrossAxisAlignment = {
|
|
@@ -529,10 +529,10 @@ const paddingToStyle = (e) => edgeInsetsToStyle("padding", e), marginToStyle = (
|
|
|
529
529
|
passthrough: "passthrough"
|
|
530
530
|
};
|
|
531
531
|
function Size(e) {
|
|
532
|
-
let { width:
|
|
532
|
+
let { width: w, height: T } = e;
|
|
533
533
|
return {
|
|
534
|
-
width:
|
|
535
|
-
height:
|
|
534
|
+
width: w,
|
|
535
|
+
height: T
|
|
536
536
|
};
|
|
537
537
|
}
|
|
538
538
|
Size.square = (e) => Size({
|
|
@@ -553,10 +553,10 @@ Size.square = (e) => Size({
|
|
|
553
553
|
});
|
|
554
554
|
function sizeToStyle(e) {
|
|
555
555
|
if (!e) return;
|
|
556
|
-
let { width:
|
|
556
|
+
let { width: w, height: T } = e;
|
|
557
557
|
return {
|
|
558
|
-
width: px2vw(
|
|
559
|
-
height: px2vw(
|
|
558
|
+
width: px2vw(w),
|
|
559
|
+
height: px2vw(T)
|
|
560
560
|
};
|
|
561
561
|
}
|
|
562
562
|
var GESTURE_HANDLED = Symbol("gesture_handled");
|
|
@@ -570,107 +570,107 @@ const events = [
|
|
|
570
570
|
"pan-end"
|
|
571
571
|
];
|
|
572
572
|
function useGestures({ emit: e }) {
|
|
573
|
-
let
|
|
573
|
+
let w = ref(0), T = ref(null), E = ref(!1), D = ref({
|
|
574
574
|
x: 0,
|
|
575
575
|
y: 0
|
|
576
|
-
}),
|
|
576
|
+
}), O = ref({
|
|
577
577
|
x: 0,
|
|
578
578
|
y: 0
|
|
579
|
-
}),
|
|
579
|
+
}), k = {
|
|
580
580
|
onTap: () => e("tap"),
|
|
581
|
-
onClick: (
|
|
581
|
+
onClick: (w) => e("click", w),
|
|
582
582
|
onDoubleTap: () => e("double-tap"),
|
|
583
583
|
onLongPress: () => e("long-press"),
|
|
584
|
-
onPanStart: (
|
|
585
|
-
onPanUpdate: (
|
|
584
|
+
onPanStart: (w) => e("pan-start", w),
|
|
585
|
+
onPanUpdate: (w) => e("pan-update", w),
|
|
586
586
|
onPanEnd: () => e("pan-end")
|
|
587
|
-
},
|
|
587
|
+
}, A = (e) => {
|
|
588
588
|
if (e[GESTURE_HANDLED]) return;
|
|
589
589
|
e[GESTURE_HANDLED] = !0;
|
|
590
|
-
let
|
|
591
|
-
|
|
590
|
+
let T = Date.now();
|
|
591
|
+
T - w.value < 300 ? (k.onDoubleTap?.(), w.value = 0) : (k.onTap?.(), k.onClick?.(e), w.value = T);
|
|
592
|
+
}, j = (e) => {
|
|
593
|
+
e[GESTURE_HANDLED] || (e[GESTURE_HANDLED] = !0, R(), B(e.clientX, e.clientY), window.addEventListener("mousemove", M), window.addEventListener("mouseup", N));
|
|
592
594
|
}, M = (e) => {
|
|
593
|
-
e
|
|
594
|
-
}, N = (
|
|
595
|
-
(
|
|
596
|
-
}, P = () => {
|
|
597
|
-
B(), U(), window.removeEventListener("mousemove", N), window.removeEventListener("mouseup", P);
|
|
598
|
-
}, F = (e) => {
|
|
595
|
+
(Math.abs(e.clientX - D.value.x) > 5 || Math.abs(e.clientY - D.value.y) > 5) && z(), V(e.clientX, e.clientY);
|
|
596
|
+
}, N = () => {
|
|
597
|
+
z(), H(), window.removeEventListener("mousemove", M), window.removeEventListener("mouseup", N);
|
|
598
|
+
}, P = (e) => {
|
|
599
599
|
if (e[GESTURE_HANDLED] || (e[GESTURE_HANDLED] = !0, e.touches.length > 1)) return;
|
|
600
|
-
let
|
|
601
|
-
|
|
602
|
-
},
|
|
600
|
+
let w = e.touches[0];
|
|
601
|
+
R(), B(w.clientX, w.clientY);
|
|
602
|
+
}, F = (e) => {
|
|
603
603
|
if (e[GESTURE_HANDLED]) return;
|
|
604
604
|
e[GESTURE_HANDLED] = !0;
|
|
605
|
-
let
|
|
606
|
-
(Math.abs(
|
|
605
|
+
let w = e.touches[0];
|
|
606
|
+
(Math.abs(w.clientX - D.value.x) > 5 || Math.abs(w.clientY - D.value.y) > 5) && z(), V(w.clientX, w.clientY);
|
|
607
|
+
}, I = (e) => {
|
|
608
|
+
e[GESTURE_HANDLED] || (e[GESTURE_HANDLED] = !0, z(), H());
|
|
607
609
|
}, L = (e) => {
|
|
608
|
-
e[GESTURE_HANDLED] || (e[GESTURE_HANDLED] = !0,
|
|
609
|
-
}, R = (
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
B(), E.value = window.setTimeout(() => {
|
|
613
|
-
A.onLongPress?.();
|
|
610
|
+
e[GESTURE_HANDLED] || (e[GESTURE_HANDLED] = !0, z(), H());
|
|
611
|
+
}, R = () => {
|
|
612
|
+
z(), T.value = window.setTimeout(() => {
|
|
613
|
+
k.onLongPress?.();
|
|
614
614
|
}, 500);
|
|
615
|
-
},
|
|
616
|
-
|
|
617
|
-
},
|
|
618
|
-
|
|
615
|
+
}, z = () => {
|
|
616
|
+
T.value &&= (clearTimeout(T.value), null);
|
|
617
|
+
}, B = (e, w) => {
|
|
618
|
+
D.value = {
|
|
619
619
|
x: e,
|
|
620
|
-
y:
|
|
621
|
-
},
|
|
620
|
+
y: w
|
|
621
|
+
}, O.value = {
|
|
622
622
|
x: e,
|
|
623
|
-
y:
|
|
624
|
-
},
|
|
623
|
+
y: w
|
|
624
|
+
}, E.value = !0, k.onPanStart?.({ globalPosition: {
|
|
625
625
|
x: e,
|
|
626
|
-
y:
|
|
626
|
+
y: w
|
|
627
627
|
} });
|
|
628
|
-
},
|
|
629
|
-
if (!
|
|
630
|
-
let
|
|
631
|
-
|
|
628
|
+
}, V = (e, w) => {
|
|
629
|
+
if (!E.value) return;
|
|
630
|
+
let T = e - O.value.x, D = w - O.value.y;
|
|
631
|
+
T === 0 && D === 0 || (k.onPanUpdate?.({
|
|
632
632
|
delta: {
|
|
633
|
-
x:
|
|
634
|
-
y:
|
|
633
|
+
x: T,
|
|
634
|
+
y: D
|
|
635
635
|
},
|
|
636
636
|
globalPosition: {
|
|
637
637
|
x: e,
|
|
638
|
-
y:
|
|
638
|
+
y: w
|
|
639
639
|
}
|
|
640
|
-
}),
|
|
640
|
+
}), O.value = {
|
|
641
641
|
x: e,
|
|
642
|
-
y:
|
|
642
|
+
y: w
|
|
643
643
|
});
|
|
644
|
-
},
|
|
645
|
-
|
|
644
|
+
}, H = () => {
|
|
645
|
+
E.value && (E.value = !1, k.onPanEnd?.());
|
|
646
646
|
};
|
|
647
647
|
return {
|
|
648
|
-
onClick:
|
|
649
|
-
onMousedown:
|
|
650
|
-
onMouseup:
|
|
651
|
-
onMousemove:
|
|
652
|
-
onTouchstart:
|
|
653
|
-
onTouchmove:
|
|
654
|
-
onTouchend:
|
|
655
|
-
onTouchcancel:
|
|
648
|
+
onClick: A,
|
|
649
|
+
onMousedown: j,
|
|
650
|
+
onMouseup: N,
|
|
651
|
+
onMousemove: M,
|
|
652
|
+
onTouchstart: P,
|
|
653
|
+
onTouchmove: F,
|
|
654
|
+
onTouchend: I,
|
|
655
|
+
onTouchcancel: L
|
|
656
656
|
};
|
|
657
657
|
}
|
|
658
658
|
var S_EVENTS = Symbol("events"), S_BEHAVIOR = Symbol("behavior");
|
|
659
659
|
function useGestureStyle(e) {
|
|
660
|
-
let
|
|
661
|
-
return (
|
|
660
|
+
let w = e || inject(S_BEHAVIOR, "opaque"), T = {};
|
|
661
|
+
return (w === "opaque" || w === "translucent") && (T.cursor = "pointer", T.userSelect = "none"), T;
|
|
662
662
|
}
|
|
663
663
|
function useGestureEvents() {
|
|
664
664
|
return inject(S_EVENTS, void 0);
|
|
665
665
|
}
|
|
666
|
-
function provideGesture(e,
|
|
667
|
-
provide(S_EVENTS, e), provide(S_BEHAVIOR,
|
|
666
|
+
function provideGesture(e, w) {
|
|
667
|
+
provide(S_EVENTS, e), provide(S_BEHAVIOR, w);
|
|
668
668
|
}
|
|
669
669
|
function useSafeAttrs() {
|
|
670
670
|
let e = useAttrs();
|
|
671
671
|
return computed(() => {
|
|
672
|
-
let { class:
|
|
673
|
-
return
|
|
672
|
+
let { class: w, style: T, ...E } = e ?? {};
|
|
673
|
+
return E;
|
|
674
674
|
});
|
|
675
675
|
}
|
|
676
676
|
var StyleInjectionKey = Symbol("fluekit-style-provider"), Injector = defineComponent({
|
|
@@ -680,8 +680,8 @@ var StyleInjectionKey = Symbol("fluekit-style-provider"), Injector = defineCompo
|
|
|
680
680
|
type: Object,
|
|
681
681
|
default: () => ({})
|
|
682
682
|
} },
|
|
683
|
-
setup(e, { slots:
|
|
684
|
-
return provide(StyleInjectionKey, computed(() => e.style)), () =>
|
|
683
|
+
setup(e, { slots: w }) {
|
|
684
|
+
return provide(StyleInjectionKey, computed(() => e.style)), () => w.default?.() || null;
|
|
685
685
|
}
|
|
686
686
|
});
|
|
687
687
|
function useStyles() {
|
|
@@ -699,21 +699,21 @@ const StyleProvider = defineComponent({
|
|
|
699
699
|
default: () => ({})
|
|
700
700
|
}
|
|
701
701
|
},
|
|
702
|
-
setup(e, { slots:
|
|
702
|
+
setup(e, { slots: w }) {
|
|
703
703
|
return () => {
|
|
704
|
-
let
|
|
705
|
-
return
|
|
704
|
+
let T = w.default?.() ?? [];
|
|
705
|
+
return T.length <= 0 ? null : cloneAndMergeStyles(T, e.style, e.attrs);
|
|
706
706
|
};
|
|
707
707
|
}
|
|
708
708
|
});
|
|
709
|
-
function cloneAndMergeStyles(O, k
|
|
710
|
-
return
|
|
711
|
-
...
|
|
712
|
-
...
|
|
709
|
+
function cloneAndMergeStyles(D, O, k) {
|
|
710
|
+
return D.map((D) => D && (D.type === Fragment ? Array.isArray(D.children) ? h(Fragment, cloneAndMergeStyles(D.children, O, k)) : D : D.type === Comment || D.type === Text ? D : isHtmlTag(D) ? cloneVNode(D, { style: {
|
|
711
|
+
...D.props?.style || {},
|
|
712
|
+
...O
|
|
713
713
|
} }) : h(Injector, {
|
|
714
|
-
...
|
|
715
|
-
style:
|
|
716
|
-
}, { default: () =>
|
|
714
|
+
...k,
|
|
715
|
+
style: O
|
|
716
|
+
}, { default: () => D })));
|
|
717
717
|
}
|
|
718
718
|
var AnimatedContainer_default = /* @__PURE__ */ defineComponent({
|
|
719
719
|
inheritAttrs: !1,
|
|
@@ -735,21 +735,21 @@ var AnimatedContainer_default = /* @__PURE__ */ defineComponent({
|
|
|
735
735
|
curve: { default: "linear" }
|
|
736
736
|
},
|
|
737
737
|
setup(e) {
|
|
738
|
-
let
|
|
739
|
-
...
|
|
740
|
-
...
|
|
741
|
-
}),
|
|
738
|
+
let w = useStyles(), T = useSafeAttrs(), E = useGestureEvents(), O = computed(() => w.value.pointerEvents == "none" ? T.value : {
|
|
739
|
+
...T.value,
|
|
740
|
+
...E || {}
|
|
741
|
+
}), j = useGestureStyle(), M = e, N = computed(() => `all ${M.duration}ms ${M.curve}`), P = computed(() => {
|
|
742
742
|
let e = {
|
|
743
|
-
...sizeToStyle(
|
|
744
|
-
...paddingToStyle(
|
|
745
|
-
...marginToStyle(
|
|
746
|
-
...boxDecorationToStyle(
|
|
747
|
-
...alignmentToStyle(
|
|
748
|
-
...boxConstraintsToStyle(
|
|
749
|
-
...
|
|
750
|
-
transition:
|
|
743
|
+
...sizeToStyle(M),
|
|
744
|
+
...paddingToStyle(M.padding),
|
|
745
|
+
...marginToStyle(M.margin),
|
|
746
|
+
...boxDecorationToStyle(M.decoration),
|
|
747
|
+
...alignmentToStyle(M.alignment, "column"),
|
|
748
|
+
...boxConstraintsToStyle(M.constraints),
|
|
749
|
+
...j,
|
|
750
|
+
transition: N.value
|
|
751
751
|
};
|
|
752
|
-
if (
|
|
752
|
+
if (M.color && !M.decoration && (e.backgroundColor = M.color), M.transform && (e.transform = M.transform, M.transformAlignment && (e.transformOrigin = alignmentToOrigin(M.transformAlignment))), M.clipBehavior !== "none") switch (M.clipBehavior) {
|
|
753
753
|
case "hardEdge":
|
|
754
754
|
e.overflow = "hidden";
|
|
755
755
|
break;
|
|
@@ -766,22 +766,22 @@ var AnimatedContainer_default = /* @__PURE__ */ defineComponent({
|
|
|
766
766
|
boxSizing: "border-box",
|
|
767
767
|
position: "relative"
|
|
768
768
|
};
|
|
769
|
-
}),
|
|
770
|
-
...boxDecorationToStyle(
|
|
769
|
+
}), F = computed(() => ({
|
|
770
|
+
...boxDecorationToStyle(M.foregroundDecoration),
|
|
771
771
|
position: "absolute",
|
|
772
772
|
top: 0,
|
|
773
773
|
left: 0,
|
|
774
774
|
right: 0,
|
|
775
775
|
bottom: 0,
|
|
776
776
|
pointerEvents: "none",
|
|
777
|
-
transition:
|
|
777
|
+
transition: N.value
|
|
778
778
|
}));
|
|
779
|
-
return (e,
|
|
779
|
+
return (e, w) => (openBlock(), createElementBlock("div", mergeProps({
|
|
780
780
|
class: "animated-container",
|
|
781
|
-
style:
|
|
782
|
-
},
|
|
781
|
+
style: P.value
|
|
782
|
+
}, O.value), [renderSlot(e.$slots, "default"), M.foregroundDecoration ? (openBlock(), createElementBlock("div", {
|
|
783
783
|
key: 0,
|
|
784
|
-
style: normalizeStyle(
|
|
784
|
+
style: normalizeStyle(F.value)
|
|
785
785
|
}, null, 4)) : createCommentVNode("", !0)], 16));
|
|
786
786
|
}
|
|
787
787
|
}), AnimatedOpacity_default = defineComponent({
|
|
@@ -801,12 +801,12 @@ var AnimatedContainer_default = /* @__PURE__ */ defineComponent({
|
|
|
801
801
|
default: "linear"
|
|
802
802
|
}
|
|
803
803
|
},
|
|
804
|
-
setup(e, { slots:
|
|
805
|
-
let
|
|
804
|
+
setup(e, { slots: w }) {
|
|
805
|
+
let T = computed(() => e.opacity === void 0 ? {} : {
|
|
806
806
|
transition: `opacity ${e.duration}ms ${e.curve}`,
|
|
807
807
|
opacity: e.opacity
|
|
808
808
|
});
|
|
809
|
-
return () => h(StyleProvider, { style:
|
|
809
|
+
return () => h(StyleProvider, { style: T.value }, w);
|
|
810
810
|
}
|
|
811
811
|
}), Container_default = /* @__PURE__ */ defineComponent({
|
|
812
812
|
inheritAttrs: !1,
|
|
@@ -827,38 +827,38 @@ var AnimatedContainer_default = /* @__PURE__ */ defineComponent({
|
|
|
827
827
|
flex: {}
|
|
828
828
|
},
|
|
829
829
|
setup(e) {
|
|
830
|
-
let
|
|
831
|
-
...
|
|
832
|
-
...
|
|
833
|
-
}),
|
|
830
|
+
let w = useStyles(), T = useSafeAttrs(), E = useGestureEvents(), O = computed(() => w.value.pointerEvents == "none" ? T.value : {
|
|
831
|
+
...T.value,
|
|
832
|
+
...E || {}
|
|
833
|
+
}), j = useGestureStyle(), M = e, N = computed(() => {
|
|
834
834
|
let e = {
|
|
835
|
-
backgroundColor:
|
|
836
|
-
transform:
|
|
837
|
-
transformOrigin:
|
|
838
|
-
overflow:
|
|
835
|
+
backgroundColor: M.decoration ? void 0 : M.color,
|
|
836
|
+
transform: M.transform,
|
|
837
|
+
transformOrigin: M.transformAlignment ? alignmentToOrigin(M.transformAlignment) : "center",
|
|
838
|
+
overflow: M.clipBehavior === "none" ? void 0 : "hidden",
|
|
839
839
|
position: "relative"
|
|
840
840
|
};
|
|
841
|
-
Object.assign(e,
|
|
841
|
+
Object.assign(e, w.value), M.alignment && (Object.assign(e, {
|
|
842
842
|
display: "flex",
|
|
843
843
|
flexDirection: "column"
|
|
844
|
-
}), Object.assign(e, alignmentToFlex(
|
|
845
|
-
let
|
|
846
|
-
return isDefined(
|
|
847
|
-
}),
|
|
844
|
+
}), Object.assign(e, alignmentToFlex(M.alignment, "column"))), Object.assign(e, sizeToStyle(M));
|
|
845
|
+
let T = boxConstraintsToStyle(M.constraints);
|
|
846
|
+
return isDefined(M.width) && (delete T.minWidth, delete T.maxWidth), isDefined(M.height) && (delete T.minHeight, delete T.maxHeight), Object.assign(e, T), Object.assign(e, paddingToStyle(M.padding)), Object.assign(e, marginToStyle(M.margin)), Object.assign(e, boxDecorationToStyle(M.decoration)), Object.assign(e, j), M.flex !== void 0 && (typeof M.flex == "number" ? e.flex = `${M.flex} 1 0%` : e.flex = M.flex), M.clipBehavior === "antiAlias" && (e.borderRadius = e.borderRadius || "inherit"), e;
|
|
847
|
+
}), P = computed(() => {
|
|
848
848
|
let e = {
|
|
849
849
|
position: "absolute",
|
|
850
850
|
pointerEvents: "none",
|
|
851
851
|
zIndex: 1,
|
|
852
852
|
inset: 0
|
|
853
853
|
};
|
|
854
|
-
return Object.assign(e, boxDecorationToStyle(
|
|
854
|
+
return Object.assign(e, boxDecorationToStyle(M.foregroundDecoration)), e;
|
|
855
855
|
});
|
|
856
|
-
return (e,
|
|
856
|
+
return (e, w) => (openBlock(), createElementBlock("div", mergeProps({
|
|
857
857
|
class: "container-box",
|
|
858
|
-
style:
|
|
859
|
-
},
|
|
858
|
+
style: N.value
|
|
859
|
+
}, O.value), [renderSlot(e.$slots, "default"), M.foregroundDecoration ? (openBlock(), createElementBlock("div", {
|
|
860
860
|
key: 0,
|
|
861
|
-
style: normalizeStyle(
|
|
861
|
+
style: normalizeStyle(P.value)
|
|
862
862
|
}, null, 4)) : createCommentVNode("", !0)], 16));
|
|
863
863
|
}
|
|
864
864
|
}), Box_default = /* @__PURE__ */ defineComponent({
|
|
@@ -882,18 +882,18 @@ var AnimatedContainer_default = /* @__PURE__ */ defineComponent({
|
|
|
882
882
|
shape: { default: BoxShape.rectangle }
|
|
883
883
|
},
|
|
884
884
|
setup(e) {
|
|
885
|
-
let
|
|
886
|
-
if (!(!
|
|
887
|
-
color:
|
|
888
|
-
border:
|
|
889
|
-
borderRadius:
|
|
890
|
-
boxShadow:
|
|
891
|
-
gradient:
|
|
892
|
-
image:
|
|
893
|
-
shape:
|
|
885
|
+
let w = e, T = computed(() => {
|
|
886
|
+
if (!(!w.color && !w.border && !w.borderRadius && !w.boxShadow && !w.gradient && !w.image && w.shape === "rectangle")) return BoxDecoration({
|
|
887
|
+
color: w.color,
|
|
888
|
+
border: w.border,
|
|
889
|
+
borderRadius: w.borderRadius,
|
|
890
|
+
boxShadow: w.boxShadow,
|
|
891
|
+
gradient: w.gradient,
|
|
892
|
+
image: w.image,
|
|
893
|
+
shape: w.shape
|
|
894
894
|
});
|
|
895
895
|
});
|
|
896
|
-
return (
|
|
896
|
+
return (w, E) => (openBlock(), createBlock(Container_default, {
|
|
897
897
|
width: e.width,
|
|
898
898
|
height: e.height,
|
|
899
899
|
padding: e.padding,
|
|
@@ -903,9 +903,9 @@ var AnimatedContainer_default = /* @__PURE__ */ defineComponent({
|
|
|
903
903
|
"transform-alignment": e.transformAlignment,
|
|
904
904
|
constraints: e.constraints,
|
|
905
905
|
"clip-behavior": e.clipBehavior,
|
|
906
|
-
decoration:
|
|
906
|
+
decoration: T.value
|
|
907
907
|
}, {
|
|
908
|
-
default: withCtx(() => [renderSlot(
|
|
908
|
+
default: withCtx(() => [renderSlot(w.$slots, "default")]),
|
|
909
909
|
_: 3
|
|
910
910
|
}, 8, [
|
|
911
911
|
"width",
|
|
@@ -939,36 +939,36 @@ let FontWeight = /* @__PURE__ */ function(e) {
|
|
|
939
939
|
return e.rtl = "rtl", e.ltr = "ltr", e;
|
|
940
940
|
}({});
|
|
941
941
|
var TEXT_STYLE_SYMBOL = Symbol("textStyle");
|
|
942
|
-
function buildFontFamily(e,
|
|
943
|
-
let
|
|
944
|
-
return
|
|
942
|
+
function buildFontFamily(e, w, T) {
|
|
943
|
+
let E = e;
|
|
944
|
+
return w && E && (E = `packages/${w}/${E}`), T && T.length > 0 ? [E, ...T].filter(Boolean).join(", ") : E;
|
|
945
945
|
}
|
|
946
946
|
function toCSSStyle(e = {}) {
|
|
947
|
-
let
|
|
948
|
-
|
|
949
|
-
let
|
|
950
|
-
if (
|
|
947
|
+
let w = {};
|
|
948
|
+
w.margin = 0, w.padding = 0, w.border = "none", w.fontSmooth = "antialiased", w.MozOsxFontSmoothing = "grayscale", w.textRendering = "optimizeLegibility", w.wordBreak = "break-word", w.overflowWrap = "break-word", w.transition = "all 0.2s ease-in-out", e.foreground ? Object.assign(w, e.foreground) : e.color && (w.color = e.color), e.background ? Object.assign(w, e.background) : e.backgroundColor && (w.backgroundColor = e.backgroundColor), e.fontSize && (w.fontSize = typeof e.fontSize == "number" ? px2vw(e.fontSize) : e.fontSize), e.fontWeight && (w.fontWeight = e.fontWeight.toString()), e.fontStyle && (w.fontStyle = e.fontStyle);
|
|
949
|
+
let T = buildFontFamily(e.fontFamily, e.package, e.fontFamilyFallback);
|
|
950
|
+
if (T && (w.fontFamily = T), e.letterSpacing && (w.letterSpacing = px2vw(e.letterSpacing)), e.wordSpacing && (w.wordSpacing = px2vw(e.wordSpacing)), e.height && (w.lineHeight = e.height.toString()), e.decoration && (w.textDecoration = e.decoration), e.decorationColor && (w.textDecorationColor = e.decorationColor), e.decorationStyle && (w.textDecorationStyle = e.decorationStyle), e.decorationThickness && (w.textDecorationThickness = px2vw(e.decorationThickness)), e.overflow) switch (e.overflow) {
|
|
951
951
|
case TextOverflow.ellipsis:
|
|
952
|
-
|
|
952
|
+
w.overflow = "hidden", w.textOverflow = "ellipsis", w.whiteSpace = "nowrap";
|
|
953
953
|
break;
|
|
954
954
|
case TextOverflow.clip:
|
|
955
|
-
|
|
955
|
+
w.overflow = "hidden";
|
|
956
956
|
break;
|
|
957
957
|
case TextOverflow.visible:
|
|
958
|
-
|
|
958
|
+
w.overflow = "visible";
|
|
959
959
|
break;
|
|
960
960
|
case TextOverflow.fade:
|
|
961
|
-
|
|
961
|
+
w.overflow = "hidden", w.whiteSpace = "nowrap", w.maskImage = "linear-gradient(to right, black 80%, transparent 100%)";
|
|
962
962
|
break;
|
|
963
963
|
}
|
|
964
|
-
return e.shadows && e.shadows.length > 0 && (
|
|
965
|
-
let
|
|
966
|
-
return `${px2vw(
|
|
967
|
-
}).join(", ")), e.fontFeatures && (
|
|
964
|
+
return e.shadows && e.shadows.length > 0 && (w.textShadow = e.shadows.map((e) => {
|
|
965
|
+
let w = e.offsetX || 0, T = e.offsetY || 0, E = e.blurRadius || 0, D = e.color || "rgba(0,0,0,0.5)";
|
|
966
|
+
return `${px2vw(w)} ${px2vw(T)} ${px2vw(E)} ${D}`;
|
|
967
|
+
}).join(", ")), e.fontFeatures && (w.fontFeatureSettings = JSON.stringify(e.fontFeatures)), e.fontVariations && (w.fontVariationSettings = JSON.stringify(e.fontVariations)), w;
|
|
968
968
|
}
|
|
969
|
-
function TextStyle(e = {},
|
|
969
|
+
function TextStyle(e = {}, w = {}) {
|
|
970
970
|
return {
|
|
971
|
-
...
|
|
971
|
+
...w,
|
|
972
972
|
...e,
|
|
973
973
|
[TEXT_STYLE_SYMBOL]: !0
|
|
974
974
|
};
|
|
@@ -979,29 +979,29 @@ function isTextStyle(e) {
|
|
|
979
979
|
const ButtonStyle = (e) => e;
|
|
980
980
|
function buttonStyleToStyle(e) {
|
|
981
981
|
if (!e) return {};
|
|
982
|
-
let
|
|
983
|
-
if (e.textStyle && Object.assign(
|
|
984
|
-
let { width:
|
|
985
|
-
|
|
982
|
+
let w = {};
|
|
983
|
+
if (e.opacity !== void 0 && (w.opacity = e.opacity), e.textStyle && Object.assign(w, toCSSStyle(e.textStyle)), e.backgroundColor && (w.backgroundColor = e.backgroundColor), e.foregroundColor && (w.color = e.foregroundColor), e.padding && Object.assign(w, paddingToStyle(e.padding)), e.minimumSize) {
|
|
984
|
+
let { width: T, height: E } = sizeToStyle(e.minimumSize) || {};
|
|
985
|
+
T && (w.minWidth = T), E && (w.minHeight = E);
|
|
986
986
|
}
|
|
987
987
|
if (e.maximumSize) {
|
|
988
|
-
let { width:
|
|
989
|
-
|
|
988
|
+
let { width: T, height: E } = sizeToStyle(e.maximumSize) || {};
|
|
989
|
+
T && (w.maxWidth = T), E && (w.maxHeight = E);
|
|
990
990
|
}
|
|
991
991
|
if (e.fixedSize) {
|
|
992
|
-
let { width:
|
|
993
|
-
|
|
992
|
+
let { width: T, height: E } = sizeToStyle(e.fixedSize) || {};
|
|
993
|
+
T && (w.width = T, w.minWidth = T, w.maxWidth = T), E && (w.height = E, w.minHeight = E, w.maxHeight = E);
|
|
994
994
|
}
|
|
995
|
-
return e.side && Object.assign(
|
|
995
|
+
return e.side && Object.assign(w, borderSideToStyle(e.side)), e.shape && Object.assign(w, borderRadiusToStyle(e.shape)), e.elevation && (w.boxShadow = `0px ${px2vw(e.elevation)} ${px2vw(e.elevation * 2)} ${e.shadowColor || "rgba(0,0,0,0.2)"}`), e.alignment && (w.display = "flex", w.flexDirection = "column", Object.assign(w, alignmentToFlex(e.alignment, "column"))), w;
|
|
996
996
|
}
|
|
997
|
-
function useChildren(
|
|
998
|
-
if (!
|
|
999
|
-
let
|
|
1000
|
-
return
|
|
997
|
+
function useChildren(E) {
|
|
998
|
+
if (!E) return [];
|
|
999
|
+
let D = E();
|
|
1000
|
+
return D ? D.filter((E) => !(E.type === Comment || E.type === Text && typeof E.children == "string" && !E.children.trim() || E.type === Fragment && Array.isArray(E.children) && E.children.length === 0)) : [];
|
|
1001
1001
|
}
|
|
1002
1002
|
function useChild(e) {
|
|
1003
|
-
let
|
|
1004
|
-
return
|
|
1003
|
+
let w = useChildren(e);
|
|
1004
|
+
return w.length === 0 ? null : w[0];
|
|
1005
1005
|
}
|
|
1006
1006
|
var GestureDetector_default = defineComponent({
|
|
1007
1007
|
name: "GestureDetector",
|
|
@@ -1011,14 +1011,14 @@ var GestureDetector_default = defineComponent({
|
|
|
1011
1011
|
default: "opaque"
|
|
1012
1012
|
} },
|
|
1013
1013
|
emits: events,
|
|
1014
|
-
setup(e, { slots:
|
|
1015
|
-
let
|
|
1016
|
-
return provideGesture(
|
|
1017
|
-
let e = useChild(
|
|
1018
|
-
return e ? e.type === Text ? h("span",
|
|
1014
|
+
setup(e, { slots: w, emit: D }) {
|
|
1015
|
+
let O = useGestures({ emit: D });
|
|
1016
|
+
return provideGesture(O, e.behavior), () => {
|
|
1017
|
+
let e = useChild(w.default);
|
|
1018
|
+
return e ? e.type === Text ? h("span", O, [e]) : isHtmlTag(e) ? cloneVNode(e, O) : e : null;
|
|
1019
1019
|
};
|
|
1020
1020
|
}
|
|
1021
|
-
}), _hoisted_1$
|
|
1021
|
+
}), _hoisted_1$7 = ["disabled"], Button_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
1022
1022
|
inheritAttrs: !1,
|
|
1023
1023
|
__name: "Button",
|
|
1024
1024
|
props: {
|
|
@@ -1027,39 +1027,68 @@ var GestureDetector_default = defineComponent({
|
|
|
1027
1027
|
default: !1
|
|
1028
1028
|
},
|
|
1029
1029
|
behavior: { default: "opaque" },
|
|
1030
|
-
style: {}
|
|
1030
|
+
style: {},
|
|
1031
|
+
variant: {},
|
|
1032
|
+
color: {},
|
|
1033
|
+
disabledColor: { default: "rgba(0, 0, 0, 0.2)" },
|
|
1034
|
+
pressedOpacity: { default: .4 },
|
|
1035
|
+
padding: {},
|
|
1036
|
+
borderRadius: {}
|
|
1031
1037
|
},
|
|
1032
|
-
emits: [
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1038
|
+
emits: [
|
|
1039
|
+
"pressed",
|
|
1040
|
+
"long-press",
|
|
1041
|
+
"tap-down",
|
|
1042
|
+
"tap-up",
|
|
1043
|
+
"tap-cancel"
|
|
1044
|
+
],
|
|
1045
|
+
setup(e, { emit: w }) {
|
|
1046
|
+
let T = e, E = w, k = useAttrs(), A = useStyles(), M = useSafeAttrs(), N = useGestureEvents(), P = ref(!1), F = computed(() => A.value.pointerEvents == "none" ? M.value : {
|
|
1047
|
+
...M.value,
|
|
1036
1048
|
...N || {}
|
|
1037
|
-
}),
|
|
1038
|
-
let e = { position: "relative" };
|
|
1039
|
-
return
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1049
|
+
}), I = useGestureStyle(T.behavior), L = computed(() => {
|
|
1050
|
+
let e = { position: "relative" }, w = {};
|
|
1051
|
+
return T.variant === "ios" && (w = {
|
|
1052
|
+
padding: T.padding || EdgeInsets.symmetric({
|
|
1053
|
+
vertical: 14,
|
|
1054
|
+
horizontal: 16
|
|
1055
|
+
}),
|
|
1056
|
+
shape: T.borderRadius || BorderRadius.all(8),
|
|
1057
|
+
backgroundColor: T.disabled ? T.disabledColor : T.color || "transparent",
|
|
1058
|
+
opacity: P.value ? T.pressedOpacity : 1
|
|
1059
|
+
}), Object.assign(e, A.value), Object.assign(e, buttonStyleToStyle(w)), Object.assign(e, buttonStyleToStyle(T.style)), Object.assign(e, I), e;
|
|
1060
|
+
}), R = (e) => {
|
|
1061
|
+
T.disabled || (T.variant === "ios" && (P.value = !0), E("tap-down", e));
|
|
1062
|
+
}, B = (e) => {
|
|
1063
|
+
P.value = !1, E("tap-up", e);
|
|
1064
|
+
}, V = (e) => {
|
|
1065
|
+
P.value = !1, E("tap-cancel", e);
|
|
1066
|
+
}, H = () => {
|
|
1067
|
+
T.disabled || E("pressed");
|
|
1068
|
+
}, U = () => {
|
|
1069
|
+
T.disabled || E("long-press");
|
|
1044
1070
|
};
|
|
1045
|
-
return (
|
|
1071
|
+
return (w, T) => (openBlock(), createBlock(GestureDetector_default, {
|
|
1046
1072
|
behavior: e.behavior,
|
|
1047
|
-
onTap:
|
|
1048
|
-
onLongPress:
|
|
1073
|
+
onTap: H,
|
|
1074
|
+
onLongPress: U,
|
|
1075
|
+
onTapDown: R,
|
|
1076
|
+
onTapUp: B,
|
|
1077
|
+
onTapCancel: V
|
|
1049
1078
|
}, {
|
|
1050
1079
|
default: withCtx(() => [createElementVNode("button", mergeProps({
|
|
1051
|
-
class: "fluekit-button",
|
|
1052
|
-
style:
|
|
1080
|
+
class: ["fluekit-button", unref(k).class],
|
|
1081
|
+
style: L.value,
|
|
1053
1082
|
disabled: e.disabled
|
|
1054
|
-
},
|
|
1083
|
+
}, F.value), [renderSlot(w.$slots, "default", {}, void 0, !0)], 16, _hoisted_1$7)]),
|
|
1055
1084
|
_: 3
|
|
1056
1085
|
}, 8, ["behavior"]));
|
|
1057
1086
|
}
|
|
1058
|
-
}), __plugin_vue_export_helper_default = (e,
|
|
1059
|
-
let
|
|
1060
|
-
for (let [e,
|
|
1061
|
-
return
|
|
1062
|
-
}, Button_default = /* @__PURE__ */ __plugin_vue_export_helper_default(Button_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
1087
|
+
}), __plugin_vue_export_helper_default = (e, w) => {
|
|
1088
|
+
let T = e.__vccOpts || e;
|
|
1089
|
+
for (let [e, E] of w) T[e] = E;
|
|
1090
|
+
return T;
|
|
1091
|
+
}, Button_default = /* @__PURE__ */ __plugin_vue_export_helper_default(Button_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-2bc95a68"]]), Card_default = /* @__PURE__ */ defineComponent({
|
|
1063
1092
|
__name: "Card",
|
|
1064
1093
|
props: {
|
|
1065
1094
|
color: { default: "#ffffff" },
|
|
@@ -1068,35 +1097,46 @@ var GestureDetector_default = defineComponent({
|
|
|
1068
1097
|
shape: {},
|
|
1069
1098
|
margin: { default: () => EdgeInsets.all(4) },
|
|
1070
1099
|
clipBehavior: { default: "none" },
|
|
1071
|
-
borderOnForeground: { type: Boolean }
|
|
1100
|
+
borderOnForeground: { type: Boolean },
|
|
1101
|
+
variant: { default: "ios" }
|
|
1072
1102
|
},
|
|
1073
1103
|
setup(e) {
|
|
1074
|
-
let
|
|
1104
|
+
let w = e, T = computed(() => {
|
|
1075
1105
|
let e = [];
|
|
1076
|
-
if (
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1106
|
+
if (w.variant === "ios") e.push(BoxShadow({
|
|
1107
|
+
color: "rgba(0, 0, 0, 0.05)",
|
|
1108
|
+
offset: {
|
|
1109
|
+
x: 0,
|
|
1110
|
+
y: 2
|
|
1111
|
+
},
|
|
1112
|
+
blurRadius: 10,
|
|
1113
|
+
spreadRadius: 0
|
|
1114
|
+
}));
|
|
1115
|
+
else if (w.elevation > 0) {
|
|
1116
|
+
let T = w.elevation * 2;
|
|
1117
|
+
e.push(BoxShadow({
|
|
1118
|
+
color: w.shadowColor,
|
|
1080
1119
|
offset: {
|
|
1081
1120
|
x: 0,
|
|
1082
1121
|
y: 1
|
|
1083
1122
|
},
|
|
1084
|
-
blurRadius:
|
|
1123
|
+
blurRadius: T,
|
|
1085
1124
|
spreadRadius: 0
|
|
1086
1125
|
}));
|
|
1087
1126
|
}
|
|
1127
|
+
let T = w.variant === "ios" ? BorderRadius.all(12) : BorderRadius.all(4);
|
|
1088
1128
|
return BoxDecoration({
|
|
1089
|
-
color:
|
|
1090
|
-
borderRadius:
|
|
1129
|
+
color: w.color,
|
|
1130
|
+
borderRadius: w.shape || T,
|
|
1091
1131
|
boxShadow: e.length > 0 ? e : void 0
|
|
1092
1132
|
});
|
|
1093
1133
|
});
|
|
1094
|
-
return (
|
|
1134
|
+
return (w, E) => (openBlock(), createBlock(Container_default, {
|
|
1095
1135
|
margin: e.margin,
|
|
1096
|
-
decoration:
|
|
1136
|
+
decoration: T.value,
|
|
1097
1137
|
"clip-behavior": e.clipBehavior
|
|
1098
1138
|
}, {
|
|
1099
|
-
default: withCtx(() => [renderSlot(
|
|
1139
|
+
default: withCtx(() => [renderSlot(w.$slots, "default")]),
|
|
1100
1140
|
_: 3
|
|
1101
1141
|
}, 8, [
|
|
1102
1142
|
"margin",
|
|
@@ -1112,12 +1152,12 @@ var GestureDetector_default = defineComponent({
|
|
|
1112
1152
|
heightFactor: {}
|
|
1113
1153
|
},
|
|
1114
1154
|
setup(e) {
|
|
1115
|
-
return (
|
|
1155
|
+
return (w, T) => (openBlock(), createBlock(Align_default, {
|
|
1116
1156
|
alignment: "center",
|
|
1117
1157
|
"width-factor": e.widthFactor,
|
|
1118
1158
|
"height-factor": e.heightFactor
|
|
1119
1159
|
}, {
|
|
1120
|
-
default: withCtx(() => [renderSlot(
|
|
1160
|
+
default: withCtx(() => [renderSlot(w.$slots, "default")]),
|
|
1121
1161
|
_: 3
|
|
1122
1162
|
}, 8, ["width-factor", "height-factor"]));
|
|
1123
1163
|
}
|
|
@@ -1143,24 +1183,24 @@ var GestureDetector_default = defineComponent({
|
|
|
1143
1183
|
constraints: {}
|
|
1144
1184
|
},
|
|
1145
1185
|
setup(e) {
|
|
1146
|
-
let
|
|
1147
|
-
let e = ["flex-box", `flex-box-${
|
|
1148
|
-
return
|
|
1149
|
-
}),
|
|
1150
|
-
let e =
|
|
1186
|
+
let w = e, T = useSafeAttrs(), E = computed(() => {
|
|
1187
|
+
let e = ["flex-box", `flex-box-${w.direction}`];
|
|
1188
|
+
return w.expanded && e.push("flex-expanded"), w.mainAxisSize === MainAxisSize.min && e.push("main-axis-min"), e.join(" ");
|
|
1189
|
+
}), k = computed(() => {
|
|
1190
|
+
let e = w.mainAxisAlignment, T = w.crossAxisAlignment, E = {
|
|
1151
1191
|
display: "flex",
|
|
1152
|
-
flexDirection:
|
|
1153
|
-
flexWrap:
|
|
1192
|
+
flexDirection: w.direction,
|
|
1193
|
+
flexWrap: w.wrap ? "wrap" : "nowrap"
|
|
1154
1194
|
};
|
|
1155
|
-
|
|
1156
|
-
let
|
|
1157
|
-
return
|
|
1195
|
+
E.justifyContent = FlexBoxJustifyMap[e] || e, E.alignItems = FlexBoxAlignMap[T] || T, E.gap = px2vw(w.gap);
|
|
1196
|
+
let D = w.direction?.includes("row"), O = w.direction?.includes("column");
|
|
1197
|
+
return w.mainAxisSize === MainAxisSize.min ? (D && (E.width = "fit-content"), O && (E.height = "fit-content")) : (D && (E.width = "100%"), O && (E.height = "100%")), w.expanded && (E.flex = "1", E.width = "100%", E.height = "100%"), w.constraints && Object.assign(E, boxConstraintsToStyle(w.constraints)), E;
|
|
1158
1198
|
});
|
|
1159
|
-
return (
|
|
1160
|
-
class:
|
|
1161
|
-
style:
|
|
1162
|
-
}, unref(
|
|
1163
|
-
default: withCtx(() => [renderSlot(
|
|
1199
|
+
return (w, D) => (openBlock(), createBlock(resolveDynamicComponent(e.as), mergeProps({
|
|
1200
|
+
class: E.value,
|
|
1201
|
+
style: k.value
|
|
1202
|
+
}, unref(T)), {
|
|
1203
|
+
default: withCtx(() => [renderSlot(w.$slots, "default")]),
|
|
1164
1204
|
_: 3
|
|
1165
1205
|
}, 16, ["class", "style"]));
|
|
1166
1206
|
}
|
|
@@ -1179,7 +1219,7 @@ var GestureDetector_default = defineComponent({
|
|
|
1179
1219
|
constraints: {}
|
|
1180
1220
|
},
|
|
1181
1221
|
setup(e) {
|
|
1182
|
-
return (
|
|
1222
|
+
return (w, T) => (openBlock(), createBlock(FlexBox_default, {
|
|
1183
1223
|
direction: "column",
|
|
1184
1224
|
"main-axis-alignment": e.mainAxisAlignment,
|
|
1185
1225
|
"main-axis-size": e.mainAxisSize,
|
|
@@ -1188,7 +1228,7 @@ var GestureDetector_default = defineComponent({
|
|
|
1188
1228
|
gap: e.gap,
|
|
1189
1229
|
expanded: e.expanded
|
|
1190
1230
|
}, {
|
|
1191
|
-
default: withCtx(() => [renderSlot(
|
|
1231
|
+
default: withCtx(() => [renderSlot(w.$slots, "default")]),
|
|
1192
1232
|
_: 3
|
|
1193
1233
|
}, 8, [
|
|
1194
1234
|
"main-axis-alignment",
|
|
@@ -1217,22 +1257,22 @@ var GestureDetector_default = defineComponent({
|
|
|
1217
1257
|
maxSize: {}
|
|
1218
1258
|
},
|
|
1219
1259
|
setup(e) {
|
|
1220
|
-
let
|
|
1260
|
+
let w = e, T = useSafeAttrs(), E = computed(() => {
|
|
1221
1261
|
let e = {};
|
|
1222
|
-
if (
|
|
1223
|
-
let
|
|
1224
|
-
e.minWidth =
|
|
1262
|
+
if (w.expanded ? e.flex = "1 1 0%" : (w.flexible && (e.flex = "0 1 auto"), w.flex > 0 && (e.flex = `${w.flex} 1 0%`)), w.alignSelf !== "auto" && (e.alignSelf = FlexBoxAlignMap[w.alignSelf] || w.alignSelf), w.minSize) {
|
|
1263
|
+
let T = px2vw(w.minSize);
|
|
1264
|
+
e.minWidth = T, e.minHeight = T;
|
|
1225
1265
|
}
|
|
1226
|
-
if (
|
|
1227
|
-
let
|
|
1228
|
-
e.maxWidth =
|
|
1266
|
+
if (w.maxSize) {
|
|
1267
|
+
let T = px2vw(w.maxSize);
|
|
1268
|
+
e.maxWidth = T, e.maxHeight = T;
|
|
1229
1269
|
}
|
|
1230
1270
|
return e;
|
|
1231
1271
|
});
|
|
1232
|
-
return (e,
|
|
1272
|
+
return (e, w) => (openBlock(), createElementBlock("div", mergeProps({
|
|
1233
1273
|
class: "flex-item",
|
|
1234
|
-
style:
|
|
1235
|
-
}, unref(
|
|
1274
|
+
style: E.value
|
|
1275
|
+
}, unref(T)), [renderSlot(e.$slots, "default")], 16));
|
|
1236
1276
|
}
|
|
1237
1277
|
}), Expanded_default = /* @__PURE__ */ defineComponent({
|
|
1238
1278
|
inheritAttrs: !1,
|
|
@@ -1244,14 +1284,14 @@ var GestureDetector_default = defineComponent({
|
|
|
1244
1284
|
maxSize: {}
|
|
1245
1285
|
},
|
|
1246
1286
|
setup(e) {
|
|
1247
|
-
return (
|
|
1287
|
+
return (w, T) => (openBlock(), createBlock(FlexItem_default, {
|
|
1248
1288
|
flex: e.flex,
|
|
1249
1289
|
expanded: "",
|
|
1250
1290
|
"align-self": e.alignSelf,
|
|
1251
1291
|
"min-size": e.minSize,
|
|
1252
1292
|
"max-size": e.maxSize
|
|
1253
1293
|
}, {
|
|
1254
|
-
default: withCtx(() => [renderSlot(
|
|
1294
|
+
default: withCtx(() => [renderSlot(w.$slots, "default")]),
|
|
1255
1295
|
_: 3
|
|
1256
1296
|
}, 8, [
|
|
1257
1297
|
"flex",
|
|
@@ -1261,13 +1301,13 @@ var GestureDetector_default = defineComponent({
|
|
|
1261
1301
|
]));
|
|
1262
1302
|
}
|
|
1263
1303
|
});
|
|
1264
|
-
function usePositionStyle(e,
|
|
1304
|
+
function usePositionStyle(e, w = "absolute") {
|
|
1265
1305
|
return computed(() => {
|
|
1266
|
-
let
|
|
1267
|
-
position:
|
|
1306
|
+
let T = {
|
|
1307
|
+
position: w,
|
|
1268
1308
|
boxSizing: "border-box"
|
|
1269
1309
|
};
|
|
1270
|
-
return
|
|
1310
|
+
return T.top = px2vw(e.top), T.bottom = px2vw(e.bottom), T.left = px2vw(e.left), T.right = px2vw(e.right), T.width = px2vw(e.width), T.height = px2vw(e.height), T.zIndex = e.zIndex, T;
|
|
1271
1311
|
});
|
|
1272
1312
|
}
|
|
1273
1313
|
var Fixed_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -1283,10 +1323,10 @@ var Fixed_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PUR
|
|
|
1283
1323
|
zIndex: { default: 100 }
|
|
1284
1324
|
},
|
|
1285
1325
|
setup(e) {
|
|
1286
|
-
let
|
|
1287
|
-
return (e,
|
|
1326
|
+
let w = usePositionStyle(e, "fixed");
|
|
1327
|
+
return (e, T) => (openBlock(), createElementBlock("div", {
|
|
1288
1328
|
class: "flutter-fixed",
|
|
1289
|
-
style: normalizeStyle(unref(
|
|
1329
|
+
style: normalizeStyle(unref(w))
|
|
1290
1330
|
}, [renderSlot(e.$slots, "default", {}, void 0, !0)], 4));
|
|
1291
1331
|
}
|
|
1292
1332
|
}), [["__scopeId", "data-v-b47757ec"]]), ScrollView_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1307,8 +1347,8 @@ var Fixed_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PUR
|
|
|
1307
1347
|
"scrollStart",
|
|
1308
1348
|
"scrollEnd"
|
|
1309
1349
|
],
|
|
1310
|
-
setup(e, { expose:
|
|
1311
|
-
let
|
|
1350
|
+
setup(e, { expose: w, emit: T }) {
|
|
1351
|
+
let E = e, O = T, k = ref(), M = !1, N = null, P = computed(() => {
|
|
1312
1352
|
let e = {
|
|
1313
1353
|
width: "100%",
|
|
1314
1354
|
height: "100%",
|
|
@@ -1317,39 +1357,39 @@ var Fixed_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PUR
|
|
|
1317
1357
|
scrollbarWidth: "none",
|
|
1318
1358
|
WebkitOverflowScrolling: "touch"
|
|
1319
1359
|
};
|
|
1320
|
-
return
|
|
1321
|
-
}),
|
|
1360
|
+
return E.physics === "never" ? e.overflow = "hidden" : (E.scrollDirection === "vertical" ? (e.overflowX = "hidden", e.overflowY = "auto") : (e.overflowX = "auto", e.overflowY = "hidden"), E.physics === "clamping" ? e.overscrollBehavior = "none" : E.physics === "bouncing" && (e.overscrollBehavior = "auto")), E.clipBehavior === "none" && E.physics === "never" && (e.overflow = "visible"), e;
|
|
1361
|
+
}), F = computed(() => {
|
|
1322
1362
|
let e = {
|
|
1323
|
-
minWidth:
|
|
1324
|
-
minHeight:
|
|
1363
|
+
minWidth: E.scrollDirection === "horizontal" ? "max-content" : "100%",
|
|
1364
|
+
minHeight: E.scrollDirection === "vertical" ? "fit-content" : "100%",
|
|
1325
1365
|
boxSizing: "border-box",
|
|
1326
1366
|
display: "flow-root"
|
|
1327
1367
|
};
|
|
1328
|
-
return
|
|
1329
|
-
}),
|
|
1330
|
-
let
|
|
1331
|
-
|
|
1332
|
-
scrollTop:
|
|
1333
|
-
scrollLeft:
|
|
1334
|
-
scrollHeight:
|
|
1335
|
-
scrollWidth:
|
|
1336
|
-
}),
|
|
1337
|
-
|
|
1368
|
+
return E.padding && Object.assign(e, paddingToStyle(E.padding)), e;
|
|
1369
|
+
}), I = (e) => {
|
|
1370
|
+
let w = e.target;
|
|
1371
|
+
M || (M = !0, O("scrollStart")), O("scroll", {
|
|
1372
|
+
scrollTop: w.scrollTop,
|
|
1373
|
+
scrollLeft: w.scrollLeft,
|
|
1374
|
+
scrollHeight: w.scrollHeight,
|
|
1375
|
+
scrollWidth: w.scrollWidth
|
|
1376
|
+
}), N && clearTimeout(N), N = window.setTimeout(() => {
|
|
1377
|
+
M = !1, O("scrollEnd");
|
|
1338
1378
|
}, 150);
|
|
1339
1379
|
};
|
|
1340
|
-
return
|
|
1341
|
-
scrollRef:
|
|
1380
|
+
return w({
|
|
1381
|
+
scrollRef: k,
|
|
1342
1382
|
scrollTo: (e) => {
|
|
1343
|
-
|
|
1383
|
+
k.value?.scrollTo(e);
|
|
1344
1384
|
}
|
|
1345
1385
|
}), onUnmounted(() => {
|
|
1346
|
-
|
|
1347
|
-
}), (e,
|
|
1386
|
+
N && clearTimeout(N);
|
|
1387
|
+
}), (e, w) => (openBlock(), createElementBlock("div", {
|
|
1348
1388
|
ref_key: "scrollRef",
|
|
1349
|
-
ref:
|
|
1350
|
-
style: normalizeStyle(
|
|
1351
|
-
onScroll:
|
|
1352
|
-
}, [createElementVNode("div", { style: normalizeStyle(
|
|
1389
|
+
ref: k,
|
|
1390
|
+
style: normalizeStyle(P.value),
|
|
1391
|
+
onScroll: I
|
|
1392
|
+
}, [createElementVNode("div", { style: normalizeStyle(F.value) }, [renderSlot(e.$slots, "default")], 4)], 36));
|
|
1353
1393
|
}
|
|
1354
1394
|
}), GridView_default = /* @__PURE__ */ defineComponent({
|
|
1355
1395
|
inheritAttrs: !1,
|
|
@@ -1370,36 +1410,36 @@ var Fixed_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PUR
|
|
|
1370
1410
|
itemCount: {}
|
|
1371
1411
|
},
|
|
1372
1412
|
setup(e) {
|
|
1373
|
-
let
|
|
1374
|
-
height:
|
|
1375
|
-
width:
|
|
1376
|
-
})),
|
|
1377
|
-
let e =
|
|
1413
|
+
let T = e, E = computed(() => ({
|
|
1414
|
+
height: T.shrinkWrap ? "auto" : "100%",
|
|
1415
|
+
width: T.shrinkWrap ? "auto" : "100%"
|
|
1416
|
+
})), k = computed(() => {
|
|
1417
|
+
let e = T.scrollDirection === "vertical", w = typeof T.mainAxisSpacing == "number" ? px2vw(T.mainAxisSpacing) : T.mainAxisSpacing, E = typeof T.crossAxisSpacing == "number" ? px2vw(T.crossAxisSpacing) : T.crossAxisSpacing;
|
|
1378
1418
|
return {
|
|
1379
1419
|
display: "grid",
|
|
1380
|
-
gridTemplateColumns: e ? `repeat(${
|
|
1381
|
-
gridTemplateRows: e ? "none" : `repeat(${
|
|
1420
|
+
gridTemplateColumns: e ? `repeat(${T.crossAxisCount}, 1fr)` : "none",
|
|
1421
|
+
gridTemplateRows: e ? "none" : `repeat(${T.crossAxisCount}, 1fr)`,
|
|
1382
1422
|
gridAutoFlow: e ? "row" : "column",
|
|
1383
|
-
gap: e ? `${
|
|
1423
|
+
gap: e ? `${w} ${E}` : `${E} ${w}`,
|
|
1384
1424
|
minWidth: e ? "100%" : "max-content",
|
|
1385
1425
|
minHeight: e ? "max-content" : "100%"
|
|
1386
1426
|
};
|
|
1387
1427
|
});
|
|
1388
|
-
return (
|
|
1428
|
+
return (T, D) => (openBlock(), createBlock(ScrollView_default, {
|
|
1389
1429
|
"scroll-direction": e.scrollDirection,
|
|
1390
1430
|
padding: e.padding,
|
|
1391
1431
|
physics: e.physics,
|
|
1392
1432
|
"clip-behavior": e.clipBehavior,
|
|
1393
1433
|
class: "flutter-grid-view",
|
|
1394
|
-
style: normalizeStyle(
|
|
1434
|
+
style: normalizeStyle(E.value)
|
|
1395
1435
|
}, {
|
|
1396
1436
|
default: withCtx(() => [createElementVNode("div", {
|
|
1397
1437
|
class: "grid-view-content",
|
|
1398
|
-
style: normalizeStyle(
|
|
1399
|
-
}, [e.itemCount ? (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(e.itemCount, (e) => renderSlot(
|
|
1438
|
+
style: normalizeStyle(k.value)
|
|
1439
|
+
}, [e.itemCount ? (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(e.itemCount, (e) => renderSlot(T.$slots, "item", {
|
|
1400
1440
|
key: e - 1,
|
|
1401
1441
|
index: e - 1
|
|
1402
|
-
})), 128)) : renderSlot(
|
|
1442
|
+
})), 128)) : renderSlot(T.$slots, "default", { key: 0 })], 4)]),
|
|
1403
1443
|
_: 3
|
|
1404
1444
|
}, 8, [
|
|
1405
1445
|
"scroll-direction",
|
|
@@ -1422,11 +1462,11 @@ var Fixed_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PUR
|
|
|
1422
1462
|
default: !1
|
|
1423
1463
|
}
|
|
1424
1464
|
},
|
|
1425
|
-
setup(e, { slots:
|
|
1426
|
-
return () => !e.ignoring && !e.ignoringSemantics ?
|
|
1465
|
+
setup(e, { slots: w }) {
|
|
1466
|
+
return () => !e.ignoring && !e.ignoringSemantics ? w.default?.() : h(StyleProvider, {
|
|
1427
1467
|
style: { pointerEvents: e.ignoring ? "none" : void 0 },
|
|
1428
1468
|
attrs: { "aria-hidden": e.ignoringSemantics ? "true" : void 0 }
|
|
1429
|
-
},
|
|
1469
|
+
}, w);
|
|
1430
1470
|
}
|
|
1431
1471
|
}), IMAGE_PROVIDER_SYMBOL = Symbol("ImageProvider");
|
|
1432
1472
|
function isImageProvider(e) {
|
|
@@ -1439,9 +1479,9 @@ function NetworkImage(e) {
|
|
|
1439
1479
|
};
|
|
1440
1480
|
}
|
|
1441
1481
|
function MemoryImage(e) {
|
|
1442
|
-
let
|
|
1443
|
-
return typeof e == "string" ?
|
|
1444
|
-
src:
|
|
1482
|
+
let w = "";
|
|
1483
|
+
return typeof e == "string" ? w = e : e instanceof Blob ? w = URL.createObjectURL(e) : console.warn("[MemoryImage] Unsupported data type. Expected string (base64) or Blob."), {
|
|
1484
|
+
src: w,
|
|
1445
1485
|
[IMAGE_PROVIDER_SYMBOL]: !0
|
|
1446
1486
|
};
|
|
1447
1487
|
}
|
|
@@ -1449,20 +1489,20 @@ var _assetBaseUrl = "/";
|
|
|
1449
1489
|
function setAssetBaseURL(e) {
|
|
1450
1490
|
_assetBaseUrl = e;
|
|
1451
1491
|
}
|
|
1452
|
-
function AssetImage(e,
|
|
1453
|
-
let
|
|
1454
|
-
return /^(https?:|file:|blob:|data:|\/\/)/i.test(
|
|
1455
|
-
src:
|
|
1492
|
+
function AssetImage(e, w = {}) {
|
|
1493
|
+
let T = w.package ? `${w.package}/${e}` : e;
|
|
1494
|
+
return /^(https?:|file:|blob:|data:|\/\/)/i.test(T) || _assetBaseUrl && (T = (_assetBaseUrl.endsWith("/") ? _assetBaseUrl : _assetBaseUrl + "/") + (T.startsWith("/") ? T.slice(1) : T)), {
|
|
1495
|
+
src: T,
|
|
1456
1496
|
[IMAGE_PROVIDER_SYMBOL]: !0
|
|
1457
1497
|
};
|
|
1458
1498
|
}
|
|
1459
1499
|
function createAssetImage(e) {
|
|
1460
|
-
return (
|
|
1500
|
+
return (w, T = {}) => AssetImage(w, {
|
|
1461
1501
|
...e,
|
|
1462
|
-
...
|
|
1502
|
+
...T
|
|
1463
1503
|
});
|
|
1464
1504
|
}
|
|
1465
|
-
var _hoisted_1$
|
|
1505
|
+
var _hoisted_1$6 = ["src", "alt"], Image_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
1466
1506
|
inheritAttrs: !1,
|
|
1467
1507
|
__name: "Image",
|
|
1468
1508
|
props: {
|
|
@@ -1479,8 +1519,8 @@ var _hoisted_1$3 = ["src", "alt"], Image_default = /* @__PURE__ */ __plugin_vue_
|
|
|
1479
1519
|
alt: { default: "" }
|
|
1480
1520
|
},
|
|
1481
1521
|
emits: ["load", "error"],
|
|
1482
|
-
setup(e, { emit:
|
|
1483
|
-
let
|
|
1522
|
+
setup(e, { emit: w }) {
|
|
1523
|
+
let T = e, E = w, O = useSafeAttrs(), k = computed(() => {
|
|
1484
1524
|
let e = {
|
|
1485
1525
|
position: "relative",
|
|
1486
1526
|
display: "inline-block",
|
|
@@ -1488,10 +1528,10 @@ var _hoisted_1$3 = ["src", "alt"], Image_default = /* @__PURE__ */ __plugin_vue_
|
|
|
1488
1528
|
lineHeight: 0
|
|
1489
1529
|
};
|
|
1490
1530
|
return Object.assign(e, sizeToStyle({
|
|
1491
|
-
width:
|
|
1492
|
-
height:
|
|
1531
|
+
width: T.width,
|
|
1532
|
+
height: T.height
|
|
1493
1533
|
})), e;
|
|
1494
|
-
}),
|
|
1534
|
+
}), M = {
|
|
1495
1535
|
fill: "fill",
|
|
1496
1536
|
contain: "contain",
|
|
1497
1537
|
cover: "cover",
|
|
@@ -1499,30 +1539,30 @@ var _hoisted_1$3 = ["src", "alt"], Image_default = /* @__PURE__ */ __plugin_vue_
|
|
|
1499
1539
|
fitHeight: "contain",
|
|
1500
1540
|
none: "none",
|
|
1501
1541
|
scaleDown: "scale-down"
|
|
1502
|
-
},
|
|
1542
|
+
}, N = computed(() => alignmentToOrigin(T.alignment)), P = computed(() => {
|
|
1503
1543
|
let e = {
|
|
1504
1544
|
width: "100%",
|
|
1505
1545
|
height: "100%",
|
|
1506
|
-
objectFit:
|
|
1507
|
-
objectPosition:
|
|
1508
|
-
opacity:
|
|
1509
|
-
imageRendering:
|
|
1546
|
+
objectFit: M[T.fit],
|
|
1547
|
+
objectPosition: N.value,
|
|
1548
|
+
opacity: T.opacity,
|
|
1549
|
+
imageRendering: T.filterQuality === "low" ? "pixelated" : "auto"
|
|
1510
1550
|
};
|
|
1511
|
-
return
|
|
1512
|
-
}),
|
|
1513
|
-
return (
|
|
1551
|
+
return T.color, e;
|
|
1552
|
+
}), F = (e) => E("load", e), I = (e) => E("error", e);
|
|
1553
|
+
return (w, E) => (openBlock(), createElementBlock("div", mergeProps({
|
|
1514
1554
|
class: "fluekit-image-container",
|
|
1515
|
-
style:
|
|
1516
|
-
}, unref(
|
|
1517
|
-
src:
|
|
1555
|
+
style: k.value
|
|
1556
|
+
}, unref(O)), [createElementVNode("img", {
|
|
1557
|
+
src: T.image.src,
|
|
1518
1558
|
class: "fluekit-image",
|
|
1519
|
-
style: normalizeStyle(
|
|
1559
|
+
style: normalizeStyle(P.value),
|
|
1520
1560
|
alt: e.alt,
|
|
1521
|
-
onLoad:
|
|
1522
|
-
onError:
|
|
1523
|
-
}, null, 44, _hoisted_1$
|
|
1561
|
+
onLoad: F,
|
|
1562
|
+
onError: I
|
|
1563
|
+
}, null, 44, _hoisted_1$6)], 16));
|
|
1524
1564
|
}
|
|
1525
|
-
}), [["__scopeId", "data-v-ce382550"]]), _hoisted_1$
|
|
1565
|
+
}), [["__scopeId", "data-v-ce382550"]]), _hoisted_1$5 = {
|
|
1526
1566
|
key: 0,
|
|
1527
1567
|
class: "list-view-separator"
|
|
1528
1568
|
}, ListView_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -1545,11 +1585,11 @@ var _hoisted_1$3 = ["src", "alt"], Image_default = /* @__PURE__ */ __plugin_vue_
|
|
|
1545
1585
|
clipBehavior: { default: "hardEdge" }
|
|
1546
1586
|
},
|
|
1547
1587
|
setup(e) {
|
|
1548
|
-
let
|
|
1549
|
-
height:
|
|
1550
|
-
width:
|
|
1551
|
-
})),
|
|
1552
|
-
let e =
|
|
1588
|
+
let T = e, E = computed(() => ({
|
|
1589
|
+
height: T.shrinkWrap ? "auto" : "100%",
|
|
1590
|
+
width: T.shrinkWrap ? "auto" : "100%"
|
|
1591
|
+
})), M = computed(() => {
|
|
1592
|
+
let e = T.scrollDirection === "vertical";
|
|
1553
1593
|
return {
|
|
1554
1594
|
display: "flex",
|
|
1555
1595
|
flexDirection: e ? "column" : "row",
|
|
@@ -1557,18 +1597,18 @@ var _hoisted_1$3 = ["src", "alt"], Image_default = /* @__PURE__ */ __plugin_vue_
|
|
|
1557
1597
|
minWidth: e ? "100%" : "max-content"
|
|
1558
1598
|
};
|
|
1559
1599
|
});
|
|
1560
|
-
return (
|
|
1600
|
+
return (T, D) => (openBlock(), createBlock(ScrollView_default, {
|
|
1561
1601
|
"scroll-direction": e.scrollDirection,
|
|
1562
1602
|
padding: e.padding,
|
|
1563
1603
|
physics: e.physics,
|
|
1564
1604
|
"clip-behavior": e.clipBehavior,
|
|
1565
1605
|
class: normalizeClass(["flutter-list-view", { "list-view-shrink-wrap": e.shrinkWrap }]),
|
|
1566
|
-
style: normalizeStyle(
|
|
1606
|
+
style: normalizeStyle(E.value)
|
|
1567
1607
|
}, {
|
|
1568
1608
|
default: withCtx(() => [createElementVNode("div", {
|
|
1569
1609
|
class: "list-view-content",
|
|
1570
|
-
style: normalizeStyle(
|
|
1571
|
-
}, [e.itemCount ? (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(e.itemCount, (
|
|
1610
|
+
style: normalizeStyle(M.value)
|
|
1611
|
+
}, [e.itemCount ? (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(e.itemCount, (E) => (openBlock(), createElementBlock(Fragment, { key: E - 1 }, [renderSlot(T.$slots, "item", { index: E - 1 }, void 0, !0), e.separator && E < e.itemCount ? (openBlock(), createElementBlock("div", _hoisted_1$5, [renderSlot(T.$slots, "separator", { index: E - 1 }, void 0, !0)])) : createCommentVNode("", !0)], 64))), 128)) : renderSlot(T.$slots, "default", { key: 0 }, void 0, !0)], 4)]),
|
|
1572
1612
|
_: 3
|
|
1573
1613
|
}, 8, [
|
|
1574
1614
|
"scroll-direction",
|
|
@@ -1586,9 +1626,9 @@ var _hoisted_1$3 = ["src", "alt"], Image_default = /* @__PURE__ */ __plugin_vue_
|
|
|
1586
1626
|
type: Number,
|
|
1587
1627
|
default: void 0
|
|
1588
1628
|
} },
|
|
1589
|
-
setup(e, { slots:
|
|
1590
|
-
let
|
|
1591
|
-
return () => h(StyleProvider, { style:
|
|
1629
|
+
setup(e, { slots: w }) {
|
|
1630
|
+
let T = computed(() => e.opacity === void 0 ? {} : { opacity: Math.max(0, Math.min(1, e.opacity)) });
|
|
1631
|
+
return () => h(StyleProvider, { style: T.value }, w);
|
|
1592
1632
|
}
|
|
1593
1633
|
}), Padding_default = defineComponent({
|
|
1594
1634
|
name: "Padding",
|
|
@@ -1619,10 +1659,10 @@ var _hoisted_1$3 = ["src", "alt"], Image_default = /* @__PURE__ */ __plugin_vue_
|
|
|
1619
1659
|
default: void 0
|
|
1620
1660
|
}
|
|
1621
1661
|
},
|
|
1622
|
-
setup(e, { slots:
|
|
1662
|
+
setup(e, { slots: w }) {
|
|
1623
1663
|
return () => {
|
|
1624
|
-
let
|
|
1625
|
-
return
|
|
1664
|
+
let T = useChild(w.default);
|
|
1665
|
+
return T ? cloneVNode(T, { style: edgeInsetsToStyle("padding", e) }) : null;
|
|
1626
1666
|
};
|
|
1627
1667
|
}
|
|
1628
1668
|
}), STACK_CONTEXT_KEY = "stackContext";
|
|
@@ -1643,14 +1683,14 @@ var Positioned_default = /* @__PURE__ */ defineComponent({
|
|
|
1643
1683
|
zIndex: {}
|
|
1644
1684
|
},
|
|
1645
1685
|
setup(e) {
|
|
1646
|
-
let
|
|
1686
|
+
let w = e, T = useStackContext();
|
|
1647
1687
|
onMounted(() => {
|
|
1648
|
-
|
|
1688
|
+
T || warn("[Positioned] Positioned widget must be a descendant of a Stack. ");
|
|
1649
1689
|
});
|
|
1650
|
-
let
|
|
1651
|
-
return (e,
|
|
1690
|
+
let E = usePositionStyle(w, "absolute");
|
|
1691
|
+
return (e, w) => (openBlock(), createElementBlock("div", {
|
|
1652
1692
|
class: "positioned",
|
|
1653
|
-
style: normalizeStyle(unref(
|
|
1693
|
+
style: normalizeStyle(unref(E))
|
|
1654
1694
|
}, [renderSlot(e.$slots, "default")], 4));
|
|
1655
1695
|
}
|
|
1656
1696
|
}), Row_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1674,7 +1714,7 @@ var Positioned_default = /* @__PURE__ */ defineComponent({
|
|
|
1674
1714
|
constraints: {}
|
|
1675
1715
|
},
|
|
1676
1716
|
setup(e) {
|
|
1677
|
-
return (
|
|
1717
|
+
return (w, T) => (openBlock(), createBlock(FlexBox_default, {
|
|
1678
1718
|
direction: "row",
|
|
1679
1719
|
"main-axis-alignment": e.mainAxisAlignment,
|
|
1680
1720
|
"main-axis-size": e.mainAxisSize,
|
|
@@ -1684,7 +1724,7 @@ var Positioned_default = /* @__PURE__ */ defineComponent({
|
|
|
1684
1724
|
as: e.as,
|
|
1685
1725
|
expanded: e.expanded
|
|
1686
1726
|
}, {
|
|
1687
|
-
default: withCtx(() => [renderSlot(
|
|
1727
|
+
default: withCtx(() => [renderSlot(w.$slots, "default")]),
|
|
1688
1728
|
_: 3
|
|
1689
1729
|
}, 8, [
|
|
1690
1730
|
"main-axis-alignment",
|
|
@@ -1723,18 +1763,18 @@ var Positioned_default = /* @__PURE__ */ defineComponent({
|
|
|
1723
1763
|
}
|
|
1724
1764
|
},
|
|
1725
1765
|
setup(e) {
|
|
1726
|
-
let
|
|
1766
|
+
let w = e, T = computed(() => {
|
|
1727
1767
|
let e = {
|
|
1728
1768
|
display: "flex",
|
|
1729
1769
|
flexDirection: "column",
|
|
1730
1770
|
width: "100%",
|
|
1731
1771
|
height: "100%"
|
|
1732
1772
|
};
|
|
1733
|
-
return
|
|
1773
|
+
return w.top && [].push("env(safe-area-inset-top)"), w.right && [].push("env(safe-area-inset-right)"), w.bottom && [].push("env(safe-area-inset-bottom)"), w.left && [].push("env(safe-area-inset-left)"), w.top && (e.paddingTop = "env(safe-area-inset-top)"), w.right && (e.paddingRight = "env(safe-area-inset-right)"), w.bottom && (e.paddingBottom = "env(safe-area-inset-bottom)"), w.left && (e.paddingLeft = "env(safe-area-inset-left)"), w.minimum, e;
|
|
1734
1774
|
});
|
|
1735
|
-
return (e,
|
|
1775
|
+
return (e, w) => (openBlock(), createElementBlock("div", {
|
|
1736
1776
|
class: "flutter-safe-area",
|
|
1737
|
-
style: normalizeStyle(
|
|
1777
|
+
style: normalizeStyle(T.value)
|
|
1738
1778
|
}, [renderSlot(e.$slots, "default")], 4));
|
|
1739
1779
|
}
|
|
1740
1780
|
}), SizedBox_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1745,17 +1785,17 @@ var Positioned_default = /* @__PURE__ */ defineComponent({
|
|
|
1745
1785
|
height: {}
|
|
1746
1786
|
},
|
|
1747
1787
|
setup(e) {
|
|
1748
|
-
let
|
|
1788
|
+
let w = e, T = useSafeAttrs(), E = useSlots(), O = computed(() => {
|
|
1749
1789
|
let e = {
|
|
1750
1790
|
boxSizing: "border-box",
|
|
1751
1791
|
position: "relative"
|
|
1752
1792
|
};
|
|
1753
|
-
return Object.assign(e, sizeToStyle(
|
|
1793
|
+
return Object.assign(e, sizeToStyle(w)), E.default && (e.display = "flex", e.flexDirection = "column", e.flexShrink = 0), e;
|
|
1754
1794
|
});
|
|
1755
|
-
return (e,
|
|
1795
|
+
return (e, w) => (openBlock(), createElementBlock("div", mergeProps({
|
|
1756
1796
|
class: "sized-box",
|
|
1757
|
-
style:
|
|
1758
|
-
}, unref(
|
|
1797
|
+
style: O.value
|
|
1798
|
+
}, unref(T)), [renderSlot(e.$slots, "default")], 16));
|
|
1759
1799
|
}
|
|
1760
1800
|
}), Stack_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
1761
1801
|
inheritAttrs: !1,
|
|
@@ -1767,27 +1807,27 @@ var Positioned_default = /* @__PURE__ */ defineComponent({
|
|
|
1767
1807
|
fit: { default: StackFit.loose }
|
|
1768
1808
|
},
|
|
1769
1809
|
setup(e) {
|
|
1770
|
-
let
|
|
1810
|
+
let w = e, T = {
|
|
1771
1811
|
clip: "hidden",
|
|
1772
1812
|
hardEdge: "hidden",
|
|
1773
1813
|
antiAlias: "hidden",
|
|
1774
1814
|
none: "visible"
|
|
1775
|
-
},
|
|
1815
|
+
}, E = computed(() => {
|
|
1776
1816
|
let e = {
|
|
1777
1817
|
position: "relative",
|
|
1778
1818
|
display: "grid",
|
|
1779
1819
|
gridTemplateColumns: "1fr",
|
|
1780
1820
|
gridTemplateRows: "1fr",
|
|
1781
|
-
...alignmentToGrid(
|
|
1782
|
-
overflow:
|
|
1783
|
-
direction:
|
|
1821
|
+
...alignmentToGrid(w.alignment),
|
|
1822
|
+
overflow: T[w.clipBehavior],
|
|
1823
|
+
direction: w.textDirection,
|
|
1784
1824
|
boxSizing: "border-box"
|
|
1785
1825
|
};
|
|
1786
|
-
return
|
|
1826
|
+
return w.fit === StackFit.expand && (e.width = "100%", e.height = "100%"), e;
|
|
1787
1827
|
});
|
|
1788
|
-
return provideStackContext(), (e,
|
|
1828
|
+
return provideStackContext(), (e, w) => (openBlock(), createElementBlock("div", {
|
|
1789
1829
|
class: "flutter-stack",
|
|
1790
|
-
style: normalizeStyle(
|
|
1830
|
+
style: normalizeStyle(E.value)
|
|
1791
1831
|
}, [renderSlot(e.$slots, "default", {}, void 0, !0)], 4));
|
|
1792
1832
|
}
|
|
1793
1833
|
}), [["__scopeId", "data-v-aefe47c2"]]), Sticky_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1803,10 +1843,10 @@ var Positioned_default = /* @__PURE__ */ defineComponent({
|
|
|
1803
1843
|
zIndex: { default: 10 }
|
|
1804
1844
|
},
|
|
1805
1845
|
setup(e) {
|
|
1806
|
-
let
|
|
1807
|
-
return (e,
|
|
1846
|
+
let w = usePositionStyle(e, "sticky");
|
|
1847
|
+
return (e, T) => (openBlock(), createElementBlock("div", {
|
|
1808
1848
|
class: "flutter-sticky",
|
|
1809
|
-
style: normalizeStyle(unref(
|
|
1849
|
+
style: normalizeStyle(unref(w))
|
|
1810
1850
|
}, [renderSlot(e.$slots, "default")], 4));
|
|
1811
1851
|
}
|
|
1812
1852
|
}), Text_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1827,16 +1867,16 @@ var Positioned_default = /* @__PURE__ */ defineComponent({
|
|
|
1827
1867
|
tag: { default: "span" }
|
|
1828
1868
|
},
|
|
1829
1869
|
setup(e) {
|
|
1830
|
-
let
|
|
1831
|
-
let e =
|
|
1870
|
+
let w = useStyles(), T = e, E = useGestureEvents(), k = computed(() => w.value.pointerEvents == "none" ? {} : E || {}), A = computed(() => {
|
|
1871
|
+
let e = T.data;
|
|
1832
1872
|
return !isUndefined(e) && e != null ? e.toString() : "";
|
|
1833
|
-
}),
|
|
1834
|
-
let e =
|
|
1835
|
-
|
|
1836
|
-
let
|
|
1837
|
-
if (
|
|
1873
|
+
}), j = useGestureStyle(), M = computed(() => {
|
|
1874
|
+
let e = T.style ? toCSSStyle(T.style) : {};
|
|
1875
|
+
T.textAlign && (e.textAlign = T.textAlign), T.textDirection && (e.direction = T.textDirection), T.softWrap === !1 && (e.whiteSpace = "nowrap");
|
|
1876
|
+
let w = T.overflow ?? T.style?.overflow;
|
|
1877
|
+
if (w) switch (w) {
|
|
1838
1878
|
case TextOverflow.ellipsis:
|
|
1839
|
-
e.textOverflow = "ellipsis", e.overflow = "hidden",
|
|
1879
|
+
e.textOverflow = "ellipsis", e.overflow = "hidden", T.softWrap === !1 && (e.whiteSpace = "nowrap");
|
|
1840
1880
|
break;
|
|
1841
1881
|
case TextOverflow.clip:
|
|
1842
1882
|
e.overflow = "hidden", e.textOverflow = "clip";
|
|
@@ -1848,10 +1888,10 @@ var Positioned_default = /* @__PURE__ */ defineComponent({
|
|
|
1848
1888
|
e.overflow = "hidden", e.whiteSpace = "nowrap", e.maskImage = "linear-gradient(to right, black 80%, transparent 100%)", e.WebkitMaskImage = "linear-gradient(to right, black 80%, transparent 100%)";
|
|
1849
1889
|
break;
|
|
1850
1890
|
}
|
|
1851
|
-
return
|
|
1891
|
+
return T.maxLines && T.maxLines > 0 ? (e.overflow = "hidden", e.display = "-webkit-box", e.WebkitBoxOrient = "vertical", e.WebkitLineClamp = T.maxLines.toString(), T.softWrap !== !1 && (e.whiteSpace = "normal")) : e.display ||= T.tag === "span" ? "inline-block" : "block", Object.assign(e, j), e;
|
|
1852
1892
|
});
|
|
1853
|
-
return (
|
|
1854
|
-
default: withCtx(() => [renderSlot(
|
|
1893
|
+
return (w, T) => (openBlock(), createBlock(resolveDynamicComponent(e.tag), mergeProps({ style: M.value }, k.value), {
|
|
1894
|
+
default: withCtx(() => [renderSlot(w.$slots, "default", {}, () => [createTextVNode(toDisplayString(A.value), 1)])]),
|
|
1855
1895
|
_: 3
|
|
1856
1896
|
}, 16, ["style"]));
|
|
1857
1897
|
}
|
|
@@ -1876,7 +1916,7 @@ function UnderlineInputBorder(e = {}) {
|
|
|
1876
1916
|
isOutline: !1
|
|
1877
1917
|
};
|
|
1878
1918
|
}
|
|
1879
|
-
var _hoisted_1$
|
|
1919
|
+
var _hoisted_1$4 = {
|
|
1880
1920
|
key: 1,
|
|
1881
1921
|
class: "fluekit-input-suffix"
|
|
1882
1922
|
}, _hoisted_2 = {
|
|
@@ -1931,78 +1971,78 @@ var _hoisted_1$1 = {
|
|
|
1931
1971
|
"blur",
|
|
1932
1972
|
"submit"
|
|
1933
1973
|
],
|
|
1934
|
-
setup(e, { emit:
|
|
1935
|
-
let
|
|
1936
|
-
let e =
|
|
1937
|
-
if (!e || !
|
|
1938
|
-
if (!
|
|
1974
|
+
setup(e, { emit: w }) {
|
|
1975
|
+
let T = e, E = w, M = ref(null), P = ref(!1), F = ref(null), I = ref(0), L = null, R = () => {
|
|
1976
|
+
let e = M.value;
|
|
1977
|
+
if (!e || !H.value) return;
|
|
1978
|
+
if (!T.autoGrow) {
|
|
1939
1979
|
e.style.height = "", e.style.minHeight = "", e.style.maxHeight = "";
|
|
1940
1980
|
return;
|
|
1941
1981
|
}
|
|
1942
|
-
let
|
|
1943
|
-
if (e.style.minHeight = `${Math.round(
|
|
1944
|
-
let
|
|
1945
|
-
e.style.maxHeight = `${Math.round(
|
|
1982
|
+
let w = window.getComputedStyle(e), E = parseFloat(w.lineHeight || "0") || parseFloat(w.fontSize || "16") * 1.2, D = (T.minLines || 1) * E;
|
|
1983
|
+
if (e.style.minHeight = `${Math.round(D)}px`, T.maxLines && T.maxLines > 1) {
|
|
1984
|
+
let w = T.maxLines * E;
|
|
1985
|
+
e.style.maxHeight = `${Math.round(w)}px`;
|
|
1946
1986
|
} else e.style.maxHeight = "";
|
|
1947
|
-
e.style.height = "auto", e.style.height = `${Math.max(Math.round(
|
|
1987
|
+
e.style.height = "auto", e.style.height = `${Math.max(Math.round(D), e.scrollHeight)}px`;
|
|
1948
1988
|
};
|
|
1949
1989
|
onMounted(() => {
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
}),
|
|
1990
|
+
F.value && (L = new ResizeObserver(() => {
|
|
1991
|
+
I.value = Math.round(F.value.getBoundingClientRect().width);
|
|
1992
|
+
}), L.observe(F.value), I.value = Math.round(F.value.getBoundingClientRect().width)), nextTick(R);
|
|
1953
1993
|
}), onBeforeUnmount(() => {
|
|
1954
|
-
|
|
1994
|
+
L &&= (L.disconnect(), null);
|
|
1955
1995
|
});
|
|
1956
|
-
let
|
|
1957
|
-
if (!
|
|
1958
|
-
}), G = computed(() =>
|
|
1959
|
-
watch(() =>
|
|
1960
|
-
let q = computed(() =>
|
|
1996
|
+
let H = computed(() => T.maxLines === null || T.maxLines > 1 || T.keyboardType === "multiline"), W = computed(() => {
|
|
1997
|
+
if (!H.value) return T.obscureText ? "password" : T.keyboardType === "number" ? "number" : "text";
|
|
1998
|
+
}), G = computed(() => P.value || T.modelValue !== "" && T.modelValue !== null && T.modelValue !== void 0), K = computed(() => T.decoration?.labelText && !G.value ? "" : T.decoration?.hintText || "");
|
|
1999
|
+
watch(() => T.modelValue, () => nextTick(R)), watch(H, (e) => e && nextTick(R)), watch(() => T.maxLines, () => nextTick(R)), watch(() => T.minLines, () => nextTick(R)), watch(() => T.autoGrow, () => nextTick(R));
|
|
2000
|
+
let q = computed(() => T.decoration?.errorText && T.decoration.errorBorder ? T.decoration.errorBorder : !T.enabled && T.decoration?.disabledBorder ? T.decoration.disabledBorder : P.value && T.decoration?.focusedBorder ? T.decoration.focusedBorder : T.enabled && T.decoration?.enabledBorder ? T.decoration.enabledBorder : T.decoration?.border), J = computed(() => {
|
|
1961
2001
|
let e = {
|
|
1962
2002
|
display: "flex",
|
|
1963
|
-
alignItems:
|
|
2003
|
+
alignItems: H.value ? "flex-start" : "center",
|
|
1964
2004
|
position: "relative",
|
|
1965
2005
|
transition: "all 0.2s ease"
|
|
1966
|
-
},
|
|
1967
|
-
if (
|
|
1968
|
-
let
|
|
2006
|
+
}, w = q.value || UnderlineInputBorder();
|
|
2007
|
+
if (w.isOutline) {
|
|
2008
|
+
let T = w.borderSide || BorderSide({
|
|
1969
2009
|
width: 1,
|
|
1970
2010
|
color: "#888"
|
|
1971
|
-
}),
|
|
1972
|
-
Object.assign(e, borderSideToStyle(
|
|
2011
|
+
}), E = w.borderRadius || BorderRadius.all(4);
|
|
2012
|
+
Object.assign(e, borderSideToStyle(T)), Object.assign(e, borderRadiusToStyle(E)), e.padding = "8px 12px";
|
|
1973
2013
|
} else {
|
|
1974
|
-
let
|
|
2014
|
+
let T = w.borderSide || BorderSide({
|
|
1975
2015
|
width: 1,
|
|
1976
2016
|
color: "#888"
|
|
1977
2017
|
});
|
|
1978
|
-
e.borderBottom = `${
|
|
2018
|
+
e.borderBottom = `${T.width}px ${T.style || "solid"} ${T.color}`, e.borderRadius = "0", e.padding = "4px 0";
|
|
1979
2019
|
}
|
|
1980
|
-
return
|
|
2020
|
+
return T.decoration?.filled && (e.backgroundColor = T.decoration.fillColor || "#f0f0f0"), e;
|
|
1981
2021
|
}), Y = computed(() => {
|
|
1982
|
-
let e = { ...toCSSStyle(
|
|
1983
|
-
return
|
|
2022
|
+
let e = { ...toCSSStyle(T.style) };
|
|
2023
|
+
return T.cursorColor && (e.caretColor = T.cursorColor), T.textAlign && (e.textAlign = T.textAlign), e;
|
|
1984
2024
|
}), X = computed(() => {
|
|
1985
2025
|
let e = {
|
|
1986
2026
|
position: "absolute",
|
|
1987
|
-
left: `${(q.value?.isOutline ? 12 : 0) + (
|
|
2027
|
+
left: `${(q.value?.isOutline ? 12 : 0) + (I.value || 0)}px`,
|
|
1988
2028
|
top: q.value?.isOutline ? "50%" : "0",
|
|
1989
2029
|
transform: "translateY(-50%)",
|
|
1990
2030
|
pointerEvents: "none",
|
|
1991
2031
|
transition: "all 0.2s ease",
|
|
1992
2032
|
color: "#666",
|
|
1993
|
-
...toCSSStyle(
|
|
2033
|
+
...toCSSStyle(T.decoration?.labelStyle)
|
|
1994
2034
|
};
|
|
1995
|
-
return G.value && (e.top = "0", e.transform = "translateY(-100%) scale(0.75)", e.transformOrigin = "left bottom",
|
|
2035
|
+
return G.value && (e.top = "0", e.transform = "translateY(-100%) scale(0.75)", e.transformOrigin = "left bottom", P.value && (e.color = "#2196F3")), e;
|
|
1996
2036
|
}), Z = (e) => {
|
|
1997
|
-
let
|
|
1998
|
-
|
|
2037
|
+
let w = e.target;
|
|
2038
|
+
E("update:modelValue", w.value), nextTick(R);
|
|
1999
2039
|
}, Q = (e) => {
|
|
2000
|
-
|
|
2040
|
+
P.value = !0, E("focus", e);
|
|
2001
2041
|
}, $ = (e) => {
|
|
2002
|
-
|
|
2042
|
+
P.value = !1, E("blur", e);
|
|
2003
2043
|
};
|
|
2004
|
-
return (
|
|
2005
|
-
"is-focused":
|
|
2044
|
+
return (w, T) => (openBlock(), createElementBlock("div", { class: normalizeClass(["fluekit-text-field", {
|
|
2045
|
+
"is-focused": P.value,
|
|
2006
2046
|
"is-disabled": !e.enabled,
|
|
2007
2047
|
"has-error": !!e.decoration?.errorText
|
|
2008
2048
|
}]) }, [
|
|
@@ -2015,15 +2055,15 @@ var _hoisted_1$1 = {
|
|
|
2015
2055
|
class: "fluekit-input-container",
|
|
2016
2056
|
style: normalizeStyle(J.value)
|
|
2017
2057
|
}, [
|
|
2018
|
-
|
|
2058
|
+
w.$slots.prefix || e.decoration?.prefixText ? (openBlock(), createElementBlock("div", {
|
|
2019
2059
|
key: 0,
|
|
2020
2060
|
class: "fluekit-input-prefix",
|
|
2021
2061
|
ref_key: "prefixRef",
|
|
2022
|
-
ref:
|
|
2023
|
-
}, [renderSlot(
|
|
2024
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
2062
|
+
ref: F
|
|
2063
|
+
}, [renderSlot(w.$slots, "prefix", {}, () => [createTextVNode(toDisplayString(e.decoration?.prefixText), 1)], !0)], 512)) : createCommentVNode("", !0),
|
|
2064
|
+
(openBlock(), createBlock(resolveDynamicComponent(H.value ? "textarea" : "input"), mergeProps({
|
|
2025
2065
|
ref_key: "inputRef",
|
|
2026
|
-
ref:
|
|
2066
|
+
ref: M,
|
|
2027
2067
|
class: "fluekit-input-element",
|
|
2028
2068
|
value: e.modelValue,
|
|
2029
2069
|
disabled: !e.enabled,
|
|
@@ -2036,7 +2076,7 @@ var _hoisted_1$1 = {
|
|
|
2036
2076
|
autocapitalize: e.textCapitalization,
|
|
2037
2077
|
enterkeyhint: e.textInputAction,
|
|
2038
2078
|
autocorrect: e.autocorrect ? "on" : "off"
|
|
2039
|
-
},
|
|
2079
|
+
}, w.$attrs, {
|
|
2040
2080
|
onInput: Z,
|
|
2041
2081
|
onFocus: Q,
|
|
2042
2082
|
onBlur: $
|
|
@@ -2053,7 +2093,7 @@ var _hoisted_1$1 = {
|
|
|
2053
2093
|
"enterkeyhint",
|
|
2054
2094
|
"autocorrect"
|
|
2055
2095
|
])),
|
|
2056
|
-
|
|
2096
|
+
w.$slots.suffix || e.decoration?.suffixText ? (openBlock(), createElementBlock("div", _hoisted_1$4, [renderSlot(w.$slots, "suffix", {}, () => [createTextVNode(toDisplayString(e.decoration?.suffixText), 1)], !0)])) : createCommentVNode("", !0)
|
|
2057
2097
|
], 4),
|
|
2058
2098
|
e.decoration?.errorText || e.decoration?.helperText || e.maxLength && e.maxLength > 0 ? (openBlock(), createElementBlock("div", _hoisted_2, [e.decoration?.errorText || e.decoration?.helperText ? (openBlock(), createElementBlock("div", {
|
|
2059
2099
|
key: 0,
|
|
@@ -2061,28 +2101,28 @@ var _hoisted_1$1 = {
|
|
|
2061
2101
|
}, toDisplayString(e.decoration?.errorText || e.decoration?.helperText), 3)) : (openBlock(), createElementBlock("div", _hoisted_3)), e.maxLength && e.maxLength > 0 ? (openBlock(), createElementBlock("div", _hoisted_4, toDisplayString(String(e.modelValue).length) + " / " + toDisplayString(e.maxLength), 1)) : createCommentVNode("", !0)])) : createCommentVNode("", !0)
|
|
2062
2102
|
], 2));
|
|
2063
2103
|
}
|
|
2064
|
-
}), [["__scopeId", "data-v-
|
|
2104
|
+
}), [["__scopeId", "data-v-daef18e4"]]), TextArea_default = /* @__PURE__ */ defineComponent({
|
|
2065
2105
|
inheritAttrs: !1,
|
|
2066
2106
|
__name: "TextArea",
|
|
2067
2107
|
props: { maxLines: { default: 4 } },
|
|
2068
2108
|
setup(e) {
|
|
2069
|
-
return (
|
|
2109
|
+
return (w, T) => (openBlock(), createBlock(TextField_default, mergeProps(w.$attrs, {
|
|
2070
2110
|
"max-lines": e.maxLines,
|
|
2071
2111
|
"keyboard-type": "multiline"
|
|
2072
|
-
}), createSlots({ _: 2 }, [
|
|
2112
|
+
}), createSlots({ _: 2 }, [w.$slots.prefix ? {
|
|
2073
2113
|
name: "prefix",
|
|
2074
|
-
fn: withCtx(() => [renderSlot(
|
|
2114
|
+
fn: withCtx(() => [renderSlot(w.$slots, "prefix")]),
|
|
2075
2115
|
key: "0"
|
|
2076
|
-
} : void 0,
|
|
2116
|
+
} : void 0, w.$slots.suffix ? {
|
|
2077
2117
|
name: "suffix",
|
|
2078
|
-
fn: withCtx(() => [renderSlot(
|
|
2118
|
+
fn: withCtx(() => [renderSlot(w.$slots, "suffix")]),
|
|
2079
2119
|
key: "1"
|
|
2080
2120
|
} : void 0]), 1040, ["max-lines"]));
|
|
2081
2121
|
}
|
|
2082
2122
|
}), MATRIX4_SYMBOL = Symbol("Matrix4");
|
|
2083
2123
|
function Matrix4(e) {
|
|
2084
|
-
let
|
|
2085
|
-
return
|
|
2124
|
+
let w;
|
|
2125
|
+
return w = e ? new Float32Array(e) : new Float32Array([
|
|
2086
2126
|
1,
|
|
2087
2127
|
0,
|
|
2088
2128
|
0,
|
|
@@ -2100,25 +2140,25 @@ function Matrix4(e) {
|
|
|
2100
2140
|
0,
|
|
2101
2141
|
1
|
|
2102
2142
|
]), {
|
|
2103
|
-
_storage:
|
|
2143
|
+
_storage: w,
|
|
2104
2144
|
[MATRIX4_SYMBOL]: !0,
|
|
2105
2145
|
clone() {
|
|
2106
2146
|
return Matrix4(this._storage);
|
|
2107
2147
|
},
|
|
2108
2148
|
multiply(e) {
|
|
2109
|
-
let
|
|
2110
|
-
for (let e = 0; e < 4; e++) for (let
|
|
2111
|
-
let
|
|
2112
|
-
for (let
|
|
2113
|
-
D
|
|
2149
|
+
let w = this._storage, T = e._storage, E = new Float32Array(16);
|
|
2150
|
+
for (let e = 0; e < 4; e++) for (let D = 0; D < 4; D++) {
|
|
2151
|
+
let O = 0;
|
|
2152
|
+
for (let E = 0; E < 4; E++) O += (w[E * 4 + e] ?? 0) * (T[D * 4 + E] ?? 0);
|
|
2153
|
+
E[D * 4 + e] = O;
|
|
2114
2154
|
}
|
|
2115
|
-
return Matrix4(
|
|
2155
|
+
return Matrix4(E);
|
|
2116
2156
|
},
|
|
2117
|
-
translated(e,
|
|
2118
|
-
return this.multiply(Matrix4.translation(e,
|
|
2157
|
+
translated(e, w, T = 0) {
|
|
2158
|
+
return this.multiply(Matrix4.translation(e, w, T));
|
|
2119
2159
|
},
|
|
2120
|
-
scaled(e,
|
|
2121
|
-
return this.multiply(Matrix4.scaling(e,
|
|
2160
|
+
scaled(e, w, T = 1) {
|
|
2161
|
+
return this.multiply(Matrix4.scaling(e, w, T));
|
|
2122
2162
|
},
|
|
2123
2163
|
rotatedX(e) {
|
|
2124
2164
|
return this.multiply(Matrix4.rotationX(e));
|
|
@@ -2135,19 +2175,19 @@ function Matrix4(e) {
|
|
|
2135
2175
|
};
|
|
2136
2176
|
}
|
|
2137
2177
|
Matrix4.identity = () => Matrix4(), Matrix4.fromList = (e) => Matrix4(e), Matrix4.rotationX = (e) => {
|
|
2138
|
-
let
|
|
2178
|
+
let w = Math.cos(e), T = Math.sin(e);
|
|
2139
2179
|
return Matrix4([
|
|
2140
2180
|
1,
|
|
2141
2181
|
0,
|
|
2142
2182
|
0,
|
|
2143
2183
|
0,
|
|
2144
2184
|
0,
|
|
2185
|
+
w,
|
|
2145
2186
|
T,
|
|
2146
|
-
E,
|
|
2147
2187
|
0,
|
|
2148
2188
|
0,
|
|
2149
|
-
-
|
|
2150
|
-
|
|
2189
|
+
-T,
|
|
2190
|
+
w,
|
|
2151
2191
|
0,
|
|
2152
2192
|
0,
|
|
2153
2193
|
0,
|
|
@@ -2155,34 +2195,34 @@ Matrix4.identity = () => Matrix4(), Matrix4.fromList = (e) => Matrix4(e), Matrix
|
|
|
2155
2195
|
1
|
|
2156
2196
|
]);
|
|
2157
2197
|
}, Matrix4.rotationY = (e) => {
|
|
2158
|
-
let
|
|
2198
|
+
let w = Math.cos(e), T = Math.sin(e);
|
|
2159
2199
|
return Matrix4([
|
|
2160
|
-
|
|
2200
|
+
w,
|
|
2161
2201
|
0,
|
|
2162
|
-
-
|
|
2202
|
+
-T,
|
|
2163
2203
|
0,
|
|
2164
2204
|
0,
|
|
2165
2205
|
1,
|
|
2166
2206
|
0,
|
|
2167
2207
|
0,
|
|
2168
|
-
E,
|
|
2169
|
-
0,
|
|
2170
2208
|
T,
|
|
2171
2209
|
0,
|
|
2210
|
+
w,
|
|
2211
|
+
0,
|
|
2172
2212
|
0,
|
|
2173
2213
|
0,
|
|
2174
2214
|
0,
|
|
2175
2215
|
1
|
|
2176
2216
|
]);
|
|
2177
2217
|
}, Matrix4.rotationZ = (e) => {
|
|
2178
|
-
let
|
|
2218
|
+
let w = Math.cos(e), T = Math.sin(e);
|
|
2179
2219
|
return Matrix4([
|
|
2220
|
+
w,
|
|
2180
2221
|
T,
|
|
2181
|
-
E,
|
|
2182
2222
|
0,
|
|
2183
2223
|
0,
|
|
2184
|
-
-
|
|
2185
|
-
|
|
2224
|
+
-T,
|
|
2225
|
+
w,
|
|
2186
2226
|
0,
|
|
2187
2227
|
0,
|
|
2188
2228
|
0,
|
|
@@ -2194,7 +2234,7 @@ Matrix4.identity = () => Matrix4(), Matrix4.fromList = (e) => Matrix4(e), Matrix
|
|
|
2194
2234
|
0,
|
|
2195
2235
|
1
|
|
2196
2236
|
]);
|
|
2197
|
-
}, Matrix4.translation = (e,
|
|
2237
|
+
}, Matrix4.translation = (e, w, T = 0) => Matrix4([
|
|
2198
2238
|
1,
|
|
2199
2239
|
0,
|
|
2200
2240
|
0,
|
|
@@ -2208,27 +2248,27 @@ Matrix4.identity = () => Matrix4(), Matrix4.fromList = (e) => Matrix4(e), Matrix
|
|
|
2208
2248
|
1,
|
|
2209
2249
|
0,
|
|
2210
2250
|
e,
|
|
2251
|
+
w,
|
|
2211
2252
|
T,
|
|
2212
|
-
E,
|
|
2213
2253
|
1
|
|
2214
|
-
]), Matrix4.scaling = (e,
|
|
2254
|
+
]), Matrix4.scaling = (e, w, T = 1) => Matrix4([
|
|
2215
2255
|
e,
|
|
2216
2256
|
0,
|
|
2217
2257
|
0,
|
|
2218
2258
|
0,
|
|
2219
2259
|
0,
|
|
2220
|
-
|
|
2260
|
+
w,
|
|
2221
2261
|
0,
|
|
2222
2262
|
0,
|
|
2223
2263
|
0,
|
|
2224
2264
|
0,
|
|
2225
|
-
|
|
2265
|
+
T,
|
|
2226
2266
|
0,
|
|
2227
2267
|
0,
|
|
2228
2268
|
0,
|
|
2229
2269
|
0,
|
|
2230
2270
|
1
|
|
2231
|
-
]), Matrix4.diagonal3 = (e,
|
|
2271
|
+
]), Matrix4.diagonal3 = (e, w, T) => Matrix4.scaling(e, w, T), Matrix4.skewX = (e) => Matrix4([
|
|
2232
2272
|
1,
|
|
2233
2273
|
0,
|
|
2234
2274
|
0,
|
|
@@ -2263,8 +2303,10 @@ Matrix4.identity = () => Matrix4(), Matrix4.fromList = (e) => Matrix4(e), Matrix
|
|
|
2263
2303
|
0,
|
|
2264
2304
|
1
|
|
2265
2305
|
]);
|
|
2266
|
-
function matrix4ToCSSStyle(e) {
|
|
2267
|
-
|
|
2306
|
+
function matrix4ToCSSStyle(e, w) {
|
|
2307
|
+
if (!e) return {};
|
|
2308
|
+
let T = { transform: e.toString() };
|
|
2309
|
+
return w && (T.transformOrigin = alignmentToOrigin(w)), T;
|
|
2268
2310
|
}
|
|
2269
2311
|
var Transform_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
2270
2312
|
inheritAttrs: !1,
|
|
@@ -2275,21 +2317,21 @@ var Transform_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @_
|
|
|
2275
2317
|
origin: {}
|
|
2276
2318
|
},
|
|
2277
2319
|
setup(e) {
|
|
2278
|
-
let
|
|
2320
|
+
let w = e, T = computed(() => {
|
|
2279
2321
|
let e = {
|
|
2280
|
-
...matrix4ToCSSStyle(
|
|
2322
|
+
...matrix4ToCSSStyle(w.transform, w.alignment),
|
|
2281
2323
|
display: "flex",
|
|
2282
2324
|
flexDirection: "column",
|
|
2283
2325
|
flexShrink: 0
|
|
2284
2326
|
};
|
|
2285
|
-
return
|
|
2327
|
+
return w.origin && (e.transformOrigin = w.origin), e;
|
|
2286
2328
|
});
|
|
2287
|
-
return (e,
|
|
2329
|
+
return (e, w) => (openBlock(), createElementBlock("div", {
|
|
2288
2330
|
class: "flutter-transform",
|
|
2289
|
-
style: normalizeStyle(
|
|
2331
|
+
style: normalizeStyle(T.value)
|
|
2290
2332
|
}, [renderSlot(e.$slots, "default", {}, void 0, !0)], 4));
|
|
2291
2333
|
}
|
|
2292
|
-
}), [["__scopeId", "data-v-
|
|
2334
|
+
}), [["__scopeId", "data-v-c4ab6ce1"]]), Wrap_default = /* @__PURE__ */ defineComponent({
|
|
2293
2335
|
inheritAttrs: !1,
|
|
2294
2336
|
__name: "Wrap",
|
|
2295
2337
|
props: {
|
|
@@ -2303,30 +2345,30 @@ var Transform_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @_
|
|
|
2303
2345
|
clipBehavior: { default: "none" }
|
|
2304
2346
|
},
|
|
2305
2347
|
setup(e) {
|
|
2306
|
-
let
|
|
2348
|
+
let w = e, T = {
|
|
2307
2349
|
start: "flex-start",
|
|
2308
2350
|
end: "flex-end",
|
|
2309
2351
|
center: "center",
|
|
2310
2352
|
spaceBetween: "space-between",
|
|
2311
2353
|
spaceAround: "space-around",
|
|
2312
2354
|
spaceEvenly: "space-evenly"
|
|
2313
|
-
},
|
|
2355
|
+
}, E = {
|
|
2314
2356
|
start: "flex-start",
|
|
2315
2357
|
end: "flex-end",
|
|
2316
2358
|
center: "center"
|
|
2317
|
-
},
|
|
2359
|
+
}, O = computed(() => ({
|
|
2318
2360
|
display: "flex",
|
|
2319
2361
|
flexWrap: "wrap",
|
|
2320
|
-
flexDirection:
|
|
2321
|
-
justifyContent:
|
|
2322
|
-
alignContent:
|
|
2323
|
-
alignItems:
|
|
2324
|
-
gap: `${px2vw(
|
|
2325
|
-
overflow:
|
|
2362
|
+
flexDirection: w.direction === "horizontal" ? w.verticalDirection === "down" ? "row" : "row-reverse" : w.verticalDirection === "down" ? "column" : "column-reverse",
|
|
2363
|
+
justifyContent: T[w.alignment],
|
|
2364
|
+
alignContent: T[w.runAlignment],
|
|
2365
|
+
alignItems: E[w.crossAxisAlignment],
|
|
2366
|
+
gap: `${px2vw(w.runSpacing)} ${px2vw(w.spacing)}`,
|
|
2367
|
+
overflow: w.clipBehavior === "none" ? "visible" : "hidden"
|
|
2326
2368
|
}));
|
|
2327
|
-
return (e,
|
|
2369
|
+
return (e, w) => (openBlock(), createElementBlock("div", {
|
|
2328
2370
|
class: "flutter-wrap",
|
|
2329
|
-
style: normalizeStyle(
|
|
2371
|
+
style: normalizeStyle(O.value)
|
|
2330
2372
|
}, [renderSlot(e.$slots, "default")], 4));
|
|
2331
2373
|
}
|
|
2332
2374
|
}), Divider_default = /* @__PURE__ */ defineComponent({
|
|
@@ -2343,21 +2385,21 @@ var Transform_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @_
|
|
|
2343
2385
|
}
|
|
2344
2386
|
},
|
|
2345
2387
|
setup(e) {
|
|
2346
|
-
let
|
|
2347
|
-
top:
|
|
2348
|
-
bottom:
|
|
2388
|
+
let w = e, T = computed(() => w.vertical ? EdgeInsets.only({
|
|
2389
|
+
top: w.indent,
|
|
2390
|
+
bottom: w.endIndent
|
|
2349
2391
|
}) : EdgeInsets.only({
|
|
2350
|
-
left:
|
|
2351
|
-
right:
|
|
2392
|
+
left: w.indent,
|
|
2393
|
+
right: w.endIndent
|
|
2352
2394
|
}));
|
|
2353
|
-
return (
|
|
2395
|
+
return (w, E) => (openBlock(), createBlock(SizedBox_default, {
|
|
2354
2396
|
width: e.vertical ? e.thickness : e.indent + e.endIndent,
|
|
2355
2397
|
height: e.vertical ? e.indent + e.endIndent : e.thickness
|
|
2356
2398
|
}, {
|
|
2357
2399
|
default: withCtx(() => [createVNode(Container_default, {
|
|
2358
2400
|
width: e.vertical ? e.thickness : void 0,
|
|
2359
2401
|
height: e.vertical ? void 0 : e.thickness,
|
|
2360
|
-
margin:
|
|
2402
|
+
margin: T.value,
|
|
2361
2403
|
color: e.color
|
|
2362
2404
|
}, null, 8, [
|
|
2363
2405
|
"width",
|
|
@@ -2372,7 +2414,7 @@ var Transform_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @_
|
|
|
2372
2414
|
__name: "Spacer",
|
|
2373
2415
|
props: { flex: { default: 1 } },
|
|
2374
2416
|
setup(e) {
|
|
2375
|
-
return (
|
|
2417
|
+
return (w, T) => (openBlock(), createBlock(Expanded_default, { flex: e.flex }, null, 8, ["flex"]));
|
|
2376
2418
|
}
|
|
2377
2419
|
}), ClipRRect_default = /* @__PURE__ */ defineComponent({
|
|
2378
2420
|
__name: "ClipRRect",
|
|
@@ -2381,14 +2423,14 @@ var Transform_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @_
|
|
|
2381
2423
|
clipBehavior: { default: "antiAlias" }
|
|
2382
2424
|
},
|
|
2383
2425
|
setup(e) {
|
|
2384
|
-
let
|
|
2385
|
-
if (
|
|
2426
|
+
let w = e, T = computed(() => {
|
|
2427
|
+
if (w.borderRadius) return BoxDecoration({ borderRadius: w.borderRadius });
|
|
2386
2428
|
});
|
|
2387
|
-
return (
|
|
2429
|
+
return (w, E) => (openBlock(), createBlock(Container_default, {
|
|
2388
2430
|
"clip-behavior": e.clipBehavior,
|
|
2389
|
-
decoration:
|
|
2431
|
+
decoration: T.value
|
|
2390
2432
|
}, {
|
|
2391
|
-
default: withCtx(() => [renderSlot(
|
|
2433
|
+
default: withCtx(() => [renderSlot(w.$slots, "default")]),
|
|
2392
2434
|
_: 3
|
|
2393
2435
|
}, 8, ["clip-behavior", "decoration"]));
|
|
2394
2436
|
}
|
|
@@ -2396,12 +2438,12 @@ var Transform_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @_
|
|
|
2396
2438
|
__name: "ClipOval",
|
|
2397
2439
|
props: { clipBehavior: { default: "antiAlias" } },
|
|
2398
2440
|
setup(e) {
|
|
2399
|
-
let
|
|
2400
|
-
return (
|
|
2441
|
+
let w = computed(() => BoxDecoration({ shape: BoxShape.circle }));
|
|
2442
|
+
return (T, E) => (openBlock(), createBlock(Container_default, {
|
|
2401
2443
|
"clip-behavior": e.clipBehavior,
|
|
2402
|
-
decoration:
|
|
2444
|
+
decoration: w.value
|
|
2403
2445
|
}, {
|
|
2404
|
-
default: withCtx(() => [renderSlot(
|
|
2446
|
+
default: withCtx(() => [renderSlot(T.$slots, "default")]),
|
|
2405
2447
|
_: 3
|
|
2406
2448
|
}, 8, ["clip-behavior", "decoration"]));
|
|
2407
2449
|
}
|
|
@@ -2431,22 +2473,22 @@ var Transform_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @_
|
|
|
2431
2473
|
}
|
|
2432
2474
|
},
|
|
2433
2475
|
emits: ["tap", "long-press"],
|
|
2434
|
-
setup(e, { emit:
|
|
2435
|
-
let
|
|
2436
|
-
|
|
2437
|
-
},
|
|
2438
|
-
|
|
2439
|
-
},
|
|
2440
|
-
fontSize:
|
|
2441
|
-
color:
|
|
2442
|
-
fontWeight:
|
|
2443
|
-
})),
|
|
2444
|
-
fontSize:
|
|
2445
|
-
color:
|
|
2476
|
+
setup(e, { emit: w }) {
|
|
2477
|
+
let T = w, E = () => {
|
|
2478
|
+
j.enabled && T("tap");
|
|
2479
|
+
}, A = () => {
|
|
2480
|
+
j.enabled && T("long-press");
|
|
2481
|
+
}, j = e, M = computed(() => TextStyle({
|
|
2482
|
+
fontSize: j.dense ? 13 : 16,
|
|
2483
|
+
color: j.textColor || (j.enabled ? "rgba(0,0,0,0.87)" : "rgba(0,0,0,0.38)"),
|
|
2484
|
+
fontWeight: j.selected ? FontWeight.w600 : FontWeight.w400
|
|
2485
|
+
})), N = computed(() => TextStyle({
|
|
2486
|
+
fontSize: j.dense ? 12 : 14,
|
|
2487
|
+
color: j.textColor || (j.enabled ? "rgba(0,0,0,0.6)" : "rgba(0,0,0,0.38)")
|
|
2446
2488
|
}));
|
|
2447
|
-
return (
|
|
2448
|
-
onTap:
|
|
2449
|
-
onLongPress:
|
|
2489
|
+
return (w, T) => (openBlock(), createBlock(GestureDetector_default, {
|
|
2490
|
+
onTap: E,
|
|
2491
|
+
onLongPress: A
|
|
2450
2492
|
}, {
|
|
2451
2493
|
default: withCtx(() => [createVNode(Container_default, {
|
|
2452
2494
|
color: e.selected ? e.selectedColor : e.tileColor || "transparent",
|
|
@@ -2460,26 +2502,26 @@ var Transform_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @_
|
|
|
2460
2502
|
gap: 16
|
|
2461
2503
|
}, {
|
|
2462
2504
|
default: withCtx(() => [
|
|
2463
|
-
renderSlot(
|
|
2505
|
+
renderSlot(w.$slots, "leading", {}, () => [e.leading ? (openBlock(), createBlock(resolveDynamicComponent(e.leading), { key: 0 })) : createCommentVNode("", !0)]),
|
|
2464
2506
|
createVNode(Expanded_default, null, {
|
|
2465
2507
|
default: withCtx(() => [createVNode(Column_default, {
|
|
2466
2508
|
"cross-axis-alignment": "start",
|
|
2467
2509
|
gap: 4
|
|
2468
2510
|
}, {
|
|
2469
|
-
default: withCtx(() => [renderSlot(
|
|
2511
|
+
default: withCtx(() => [renderSlot(w.$slots, "title", {}, () => [e.title ? (openBlock(), createBlock(Text_default, {
|
|
2470
2512
|
key: 0,
|
|
2471
2513
|
data: e.title,
|
|
2472
|
-
style: normalizeStyle(
|
|
2473
|
-
}, null, 8, ["data", "style"])) : createCommentVNode("", !0)]), renderSlot(
|
|
2514
|
+
style: normalizeStyle(M.value)
|
|
2515
|
+
}, null, 8, ["data", "style"])) : createCommentVNode("", !0)]), renderSlot(w.$slots, "subtitle", {}, () => [e.subtitle ? (openBlock(), createBlock(Text_default, {
|
|
2474
2516
|
key: 0,
|
|
2475
2517
|
data: e.subtitle,
|
|
2476
|
-
style: normalizeStyle(
|
|
2518
|
+
style: normalizeStyle(N.value)
|
|
2477
2519
|
}, null, 8, ["data", "style"])) : createCommentVNode("", !0)])]),
|
|
2478
2520
|
_: 3
|
|
2479
2521
|
})]),
|
|
2480
2522
|
_: 3
|
|
2481
2523
|
}),
|
|
2482
|
-
renderSlot(
|
|
2524
|
+
renderSlot(w.$slots, "trailing", {}, () => [e.trailing ? (openBlock(), createBlock(resolveDynamicComponent(e.trailing), { key: 0 })) : createCommentVNode("", !0)])
|
|
2483
2525
|
]),
|
|
2484
2526
|
_: 3
|
|
2485
2527
|
})]),
|
|
@@ -2502,28 +2544,28 @@ var Transform_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @_
|
|
|
2502
2544
|
}
|
|
2503
2545
|
},
|
|
2504
2546
|
emits: ["tap"],
|
|
2505
|
-
setup(e, { emit:
|
|
2506
|
-
let
|
|
2507
|
-
if (
|
|
2508
|
-
|
|
2509
|
-
let
|
|
2510
|
-
width: `${
|
|
2511
|
-
height: `${
|
|
2512
|
-
top: `${
|
|
2513
|
-
left: `${
|
|
2514
|
-
backgroundColor:
|
|
2547
|
+
setup(e, { emit: T }) {
|
|
2548
|
+
let E = e, D = T, O = ref([]), k = 0, j = (e) => {
|
|
2549
|
+
if (E.disabled) return;
|
|
2550
|
+
D("tap");
|
|
2551
|
+
let w = e.currentTarget.getBoundingClientRect(), T = Math.max(w.width, w.height), A = e.clientX - w.left - T / 2, j = e.clientY - w.top - T / 2, M = k++, N = {
|
|
2552
|
+
width: `${T}px`,
|
|
2553
|
+
height: `${T}px`,
|
|
2554
|
+
top: `${j}px`,
|
|
2555
|
+
left: `${A}px`,
|
|
2556
|
+
backgroundColor: E.splashColor
|
|
2515
2557
|
};
|
|
2516
|
-
|
|
2517
|
-
id:
|
|
2518
|
-
style:
|
|
2558
|
+
O.value.push({
|
|
2559
|
+
id: M,
|
|
2560
|
+
style: N
|
|
2519
2561
|
}), setTimeout(() => {
|
|
2520
|
-
|
|
2562
|
+
O.value = O.value.filter((e) => e.id !== M);
|
|
2521
2563
|
}, 600);
|
|
2522
2564
|
};
|
|
2523
|
-
return (
|
|
2565
|
+
return (T, E) => (openBlock(), createElementBlock("div", mergeProps({
|
|
2524
2566
|
class: ["ink-well", { disabled: e.disabled }],
|
|
2525
|
-
onClick:
|
|
2526
|
-
},
|
|
2567
|
+
onClick: j
|
|
2568
|
+
}, T.$attrs), [renderSlot(T.$slots, "default", {}, void 0, !0), (openBlock(!0), createElementBlock(Fragment, null, renderList(O.value, (e) => (openBlock(), createElementBlock("span", {
|
|
2527
2569
|
key: e.id,
|
|
2528
2570
|
class: "ripple",
|
|
2529
2571
|
style: normalizeStyle(e.style)
|
|
@@ -2534,159 +2576,374 @@ var Transform_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @_
|
|
|
2534
2576
|
props: {
|
|
2535
2577
|
value: { type: Boolean },
|
|
2536
2578
|
onChanged: {},
|
|
2537
|
-
activeColor: { default: "#
|
|
2538
|
-
activeTrackColor: { default: "#
|
|
2539
|
-
inactiveThumbColor: { default: "#
|
|
2540
|
-
inactiveTrackColor: { default: "#
|
|
2579
|
+
activeColor: { default: "#34C759" },
|
|
2580
|
+
activeTrackColor: { default: "#34C759" },
|
|
2581
|
+
inactiveThumbColor: { default: "#FFFFFF" },
|
|
2582
|
+
inactiveTrackColor: { default: "#E9E9EA" },
|
|
2583
|
+
variant: { default: "ios" }
|
|
2541
2584
|
},
|
|
2542
2585
|
emits: ["update:value", "change"],
|
|
2543
|
-
setup(e, { emit:
|
|
2544
|
-
let
|
|
2545
|
-
|
|
2546
|
-
}, j = computed(() => BoxDecoration({
|
|
2547
|
-
color:
|
|
2548
|
-
borderRadius: BorderRadius.circular(10)
|
|
2549
|
-
})),
|
|
2550
|
-
color:
|
|
2586
|
+
setup(e, { emit: w }) {
|
|
2587
|
+
let T = e, E = w, k = () => {
|
|
2588
|
+
T.onChanged && T.onChanged(!T.value), E("update:value", !T.value);
|
|
2589
|
+
}, A = computed(() => T.variant === "ios"), j = computed(() => A.value ? 51 : 36), M = computed(() => A.value ? 31 : 20), N = computed(() => A.value ? 27 : 16), F = computed(() => BoxDecoration({
|
|
2590
|
+
color: T.value ? A.value ? T.activeColor : T.activeTrackColor : T.inactiveTrackColor,
|
|
2591
|
+
borderRadius: BorderRadius.circular(A.value ? 100 : 10)
|
|
2592
|
+
})), I = computed(() => BoxDecoration({
|
|
2593
|
+
color: A.value ? "#FFFFFF" : T.value ? T.activeColor : T.inactiveThumbColor,
|
|
2551
2594
|
shape: BoxShape.circle,
|
|
2552
2595
|
boxShadow: [{
|
|
2553
|
-
color: "rgba(0,0,0,0.
|
|
2554
|
-
blurRadius: 1,
|
|
2596
|
+
color: "rgba(0,0,0,0.3)",
|
|
2597
|
+
blurRadius: A.value ? 3 : 1,
|
|
2555
2598
|
offset: {
|
|
2556
2599
|
x: 0,
|
|
2557
|
-
y: 1
|
|
2600
|
+
y: A.value ? 2 : 1
|
|
2558
2601
|
}
|
|
2559
2602
|
}]
|
|
2560
|
-
})),
|
|
2561
|
-
|
|
2603
|
+
})), L = computed(() => {
|
|
2604
|
+
let e = j.value - N.value - 4;
|
|
2605
|
+
return EdgeInsets.only({ left: T.value ? e : 0 });
|
|
2606
|
+
});
|
|
2607
|
+
return (e, w) => (openBlock(), createBlock(GestureDetector_default, { onTap: k }, {
|
|
2562
2608
|
default: withCtx(() => [createVNode(Container_default, {
|
|
2563
|
-
width:
|
|
2564
|
-
height:
|
|
2609
|
+
width: j.value,
|
|
2610
|
+
height: M.value,
|
|
2565
2611
|
padding: unref(EdgeInsets).all(2),
|
|
2566
|
-
decoration:
|
|
2612
|
+
decoration: F.value
|
|
2567
2613
|
}, {
|
|
2568
2614
|
default: withCtx(() => [createVNode(AnimatedContainer_default, {
|
|
2569
2615
|
duration: 200,
|
|
2570
|
-
width:
|
|
2571
|
-
height:
|
|
2572
|
-
margin:
|
|
2573
|
-
decoration:
|
|
2574
|
-
}, null, 8, [
|
|
2616
|
+
width: N.value,
|
|
2617
|
+
height: N.value,
|
|
2618
|
+
margin: L.value,
|
|
2619
|
+
decoration: I.value
|
|
2620
|
+
}, null, 8, [
|
|
2621
|
+
"width",
|
|
2622
|
+
"height",
|
|
2623
|
+
"margin",
|
|
2624
|
+
"decoration"
|
|
2625
|
+
])]),
|
|
2575
2626
|
_: 1
|
|
2576
|
-
}, 8, [
|
|
2627
|
+
}, 8, [
|
|
2628
|
+
"width",
|
|
2629
|
+
"height",
|
|
2630
|
+
"padding",
|
|
2631
|
+
"decoration"
|
|
2632
|
+
])]),
|
|
2577
2633
|
_: 1
|
|
2578
2634
|
}));
|
|
2579
2635
|
}
|
|
2580
|
-
})
|
|
2636
|
+
});
|
|
2637
|
+
const CheckboxGroupKey = Symbol("CheckboxGroup");
|
|
2638
|
+
var _hoisted_1$3 = ["fill"], Checkbox_default = /* @__PURE__ */ defineComponent({
|
|
2581
2639
|
__name: "Checkbox",
|
|
2582
2640
|
props: {
|
|
2583
|
-
value: {
|
|
2641
|
+
value: {},
|
|
2584
2642
|
onChanged: {},
|
|
2585
2643
|
activeColor: { default: "#2196F3" },
|
|
2586
|
-
checkColor: { default: "#FFFFFF" }
|
|
2644
|
+
checkColor: { default: "#FFFFFF" },
|
|
2645
|
+
labelPosition: { default: "right" },
|
|
2646
|
+
hideIcon: {
|
|
2647
|
+
type: Boolean,
|
|
2648
|
+
default: !1
|
|
2649
|
+
}
|
|
2587
2650
|
},
|
|
2588
2651
|
emits: ["update:value", "change"],
|
|
2589
|
-
setup(e, { emit:
|
|
2590
|
-
let
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2652
|
+
setup(e, { emit: w }) {
|
|
2653
|
+
let T = e, E = w, M = inject(CheckboxGroupKey, null), N = computed(() => M ? M.value.value.includes(T.value) : T.value === !0), F = computed(() => M?.disabled.value), I = () => {
|
|
2654
|
+
if (!F.value) if (M) M.updateValue(T.value);
|
|
2655
|
+
else {
|
|
2656
|
+
let e = !T.value;
|
|
2657
|
+
E("change", e), E("update:value", e);
|
|
2658
|
+
}
|
|
2659
|
+
}, L = computed(() => BoxDecoration({
|
|
2660
|
+
color: N.value ? T.activeColor : "transparent",
|
|
2661
|
+
border: N.value ? void 0 : Border.all({
|
|
2596
2662
|
color: "rgba(0,0,0,0.54)",
|
|
2597
2663
|
width: 2,
|
|
2598
2664
|
style: "solid"
|
|
2599
2665
|
}),
|
|
2600
2666
|
borderRadius: BorderRadius.circular(2)
|
|
2601
2667
|
}));
|
|
2602
|
-
return (
|
|
2603
|
-
default: withCtx(() => [createVNode(
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
alignment: "center"
|
|
2668
|
+
return (w, T) => (openBlock(), createBlock(GestureDetector_default, { onTap: I }, {
|
|
2669
|
+
default: withCtx(() => [createVNode(Row_default, {
|
|
2670
|
+
"main-axis-size": "min",
|
|
2671
|
+
"cross-axis-alignment": "center",
|
|
2672
|
+
gap: 8
|
|
2608
2673
|
}, {
|
|
2609
|
-
default: withCtx(() => [
|
|
2610
|
-
key: 0,
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2674
|
+
default: withCtx(() => [
|
|
2675
|
+
e.labelPosition === "left" ? renderSlot(w.$slots, "default", { key: 0 }) : createCommentVNode("", !0),
|
|
2676
|
+
e.hideIcon ? createCommentVNode("", !0) : (openBlock(), createBlock(Container_default, {
|
|
2677
|
+
key: 1,
|
|
2678
|
+
width: 18,
|
|
2679
|
+
height: 18,
|
|
2680
|
+
decoration: L.value,
|
|
2681
|
+
alignment: "center"
|
|
2682
|
+
}, {
|
|
2683
|
+
default: withCtx(() => [N.value ? (openBlock(), createElementBlock("svg", {
|
|
2684
|
+
key: 0,
|
|
2685
|
+
viewBox: "0 0 24 24",
|
|
2686
|
+
width: 14,
|
|
2687
|
+
height: 14,
|
|
2688
|
+
fill: e.checkColor,
|
|
2689
|
+
style: { display: "block" }
|
|
2690
|
+
}, [...T[0] ||= [createElementVNode("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" }, null, -1)]], 8, _hoisted_1$3)) : createCommentVNode("", !0)]),
|
|
2691
|
+
_: 1
|
|
2692
|
+
}, 8, ["decoration"])),
|
|
2693
|
+
e.labelPosition === "right" ? renderSlot(w.$slots, "default", { key: 2 }) : createCommentVNode("", !0)
|
|
2694
|
+
]),
|
|
2695
|
+
_: 3
|
|
2696
|
+
})]),
|
|
2697
|
+
_: 3
|
|
2619
2698
|
}));
|
|
2620
2699
|
}
|
|
2621
|
-
}),
|
|
2700
|
+
}), _hoisted_1$2 = { class: "flue-checkbox-group" }, CheckboxGroup_default = /* @__PURE__ */ defineComponent({
|
|
2701
|
+
__name: "CheckboxGroup",
|
|
2702
|
+
props: {
|
|
2703
|
+
value: { default: () => [] },
|
|
2704
|
+
disabled: {
|
|
2705
|
+
type: Boolean,
|
|
2706
|
+
default: !1
|
|
2707
|
+
}
|
|
2708
|
+
},
|
|
2709
|
+
emits: ["update:value", "change"],
|
|
2710
|
+
setup(e, { emit: w }) {
|
|
2711
|
+
let T = e, E = w, D = (e) => {
|
|
2712
|
+
let w = [...T.value], D = w.indexOf(e);
|
|
2713
|
+
D === -1 ? w.push(e) : w.splice(D, 1), E("update:value", w), E("change", w);
|
|
2714
|
+
}, { value: O, disabled: k } = toRefs(T);
|
|
2715
|
+
return provide(CheckboxGroupKey, {
|
|
2716
|
+
value: O,
|
|
2717
|
+
disabled: k,
|
|
2718
|
+
updateValue: D
|
|
2719
|
+
}), (e, w) => (openBlock(), createElementBlock("div", _hoisted_1$2, [renderSlot(e.$slots, "default")]));
|
|
2720
|
+
}
|
|
2721
|
+
});
|
|
2722
|
+
const RadioGroupKey = Symbol("RadioGroup");
|
|
2723
|
+
var Radio_default = /* @__PURE__ */ defineComponent({
|
|
2622
2724
|
__name: "Radio",
|
|
2623
2725
|
props: {
|
|
2624
2726
|
value: {},
|
|
2625
2727
|
groupValue: {},
|
|
2626
|
-
onChanged: {
|
|
2627
|
-
activeColor: {}
|
|
2728
|
+
onChanged: {},
|
|
2729
|
+
activeColor: { default: "#007AFF" },
|
|
2730
|
+
fillColor: {},
|
|
2731
|
+
labelPosition: { default: "right" },
|
|
2732
|
+
hideIcon: {
|
|
2733
|
+
type: Boolean,
|
|
2734
|
+
default: !1
|
|
2735
|
+
}
|
|
2628
2736
|
},
|
|
2629
2737
|
emits: ["update:groupValue", "change"],
|
|
2630
|
-
setup(e, { emit:
|
|
2631
|
-
let
|
|
2632
|
-
|
|
2633
|
-
},
|
|
2738
|
+
setup(e, { emit: w }) {
|
|
2739
|
+
let T = e, E = w, A = inject(RadioGroupKey, null), j = computed(() => A ? T.value === A.groupValue.value : T.value === T.groupValue), M = computed(() => A?.disabled?.value), N = computed(() => A && A.activeColor?.value ? A.activeColor.value : T.activeColor), F = () => {
|
|
2740
|
+
M.value || j.value || (A ? A.updateValue(T.value) : (T.onChanged && T.onChanged(T.value), E("update:groupValue", T.value), E("change", T.value)));
|
|
2741
|
+
}, I = computed(() => BoxDecoration({
|
|
2634
2742
|
shape: BoxShape.circle,
|
|
2635
2743
|
border: Border.all({
|
|
2636
|
-
color: j.value ?
|
|
2744
|
+
color: j.value ? N.value : "rgba(0,0,0,0.25)",
|
|
2637
2745
|
width: 2,
|
|
2638
2746
|
style: "solid"
|
|
2639
|
-
})
|
|
2640
|
-
|
|
2747
|
+
}),
|
|
2748
|
+
color: T.fillColor
|
|
2749
|
+
})), L = computed(() => BoxDecoration({
|
|
2641
2750
|
shape: BoxShape.circle,
|
|
2642
|
-
color:
|
|
2751
|
+
color: N.value
|
|
2643
2752
|
}));
|
|
2644
|
-
return (
|
|
2645
|
-
default: withCtx(() => [createVNode(
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
alignment: "center"
|
|
2753
|
+
return (w, T) => (openBlock(), createBlock(GestureDetector_default, { onTap: F }, {
|
|
2754
|
+
default: withCtx(() => [createVNode(Row_default, {
|
|
2755
|
+
"main-axis-size": "min",
|
|
2756
|
+
"cross-axis-alignment": "center",
|
|
2757
|
+
gap: 8
|
|
2650
2758
|
}, {
|
|
2651
|
-
default: withCtx(() => [
|
|
2652
|
-
key: 0,
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2759
|
+
default: withCtx(() => [
|
|
2760
|
+
e.labelPosition === "left" ? renderSlot(w.$slots, "default", { key: 0 }) : createCommentVNode("", !0),
|
|
2761
|
+
e.hideIcon ? createCommentVNode("", !0) : (openBlock(), createBlock(Container_default, {
|
|
2762
|
+
key: 1,
|
|
2763
|
+
width: 20,
|
|
2764
|
+
height: 20,
|
|
2765
|
+
decoration: I.value,
|
|
2766
|
+
alignment: "center"
|
|
2767
|
+
}, {
|
|
2768
|
+
default: withCtx(() => [j.value ? (openBlock(), createBlock(Container_default, {
|
|
2769
|
+
key: 0,
|
|
2770
|
+
width: 10,
|
|
2771
|
+
height: 10,
|
|
2772
|
+
decoration: L.value
|
|
2773
|
+
}, null, 8, ["decoration"])) : createCommentVNode("", !0)]),
|
|
2774
|
+
_: 1
|
|
2775
|
+
}, 8, ["decoration"])),
|
|
2776
|
+
e.labelPosition === "right" ? renderSlot(w.$slots, "default", { key: 2 }) : createCommentVNode("", !0)
|
|
2777
|
+
]),
|
|
2778
|
+
_: 3
|
|
2779
|
+
})]),
|
|
2780
|
+
_: 3
|
|
2660
2781
|
}));
|
|
2661
2782
|
}
|
|
2783
|
+
}), _hoisted_1$1 = { class: "flue-radio-group" }, RadioGroup_default = /* @__PURE__ */ defineComponent({
|
|
2784
|
+
__name: "RadioGroup",
|
|
2785
|
+
props: {
|
|
2786
|
+
value: {},
|
|
2787
|
+
activeColor: {},
|
|
2788
|
+
disabled: {
|
|
2789
|
+
type: Boolean,
|
|
2790
|
+
default: !1
|
|
2791
|
+
}
|
|
2792
|
+
},
|
|
2793
|
+
emits: ["update:value", "change"],
|
|
2794
|
+
setup(e, { emit: w }) {
|
|
2795
|
+
let T = e, E = w, D = (e) => {
|
|
2796
|
+
T.value !== e && (E("update:value", e), E("change", e));
|
|
2797
|
+
}, { value: O, activeColor: k, disabled: j } = toRefs(T);
|
|
2798
|
+
return provide(RadioGroupKey, {
|
|
2799
|
+
groupValue: O,
|
|
2800
|
+
updateValue: D,
|
|
2801
|
+
activeColor: k,
|
|
2802
|
+
disabled: j
|
|
2803
|
+
}), (e, w) => (openBlock(), createElementBlock("div", _hoisted_1$1, [renderSlot(e.$slots, "default")]));
|
|
2804
|
+
}
|
|
2805
|
+
}), RadioListTile_default = /* @__PURE__ */ defineComponent({
|
|
2806
|
+
__name: "RadioListTile",
|
|
2807
|
+
props: {
|
|
2808
|
+
value: {},
|
|
2809
|
+
groupValue: {},
|
|
2810
|
+
onChanged: {},
|
|
2811
|
+
activeColor: {},
|
|
2812
|
+
fillColor: {},
|
|
2813
|
+
title: {},
|
|
2814
|
+
subtitle: {},
|
|
2815
|
+
secondary: {},
|
|
2816
|
+
controlAffinity: { default: "leading" },
|
|
2817
|
+
contentPadding: {},
|
|
2818
|
+
tileColor: {},
|
|
2819
|
+
selected: { type: Boolean },
|
|
2820
|
+
selectedColor: {},
|
|
2821
|
+
enabled: {
|
|
2822
|
+
type: Boolean,
|
|
2823
|
+
default: !0
|
|
2824
|
+
},
|
|
2825
|
+
dense: {
|
|
2826
|
+
type: Boolean,
|
|
2827
|
+
default: !1
|
|
2828
|
+
},
|
|
2829
|
+
hideIcon: {
|
|
2830
|
+
type: Boolean,
|
|
2831
|
+
default: !1
|
|
2832
|
+
}
|
|
2833
|
+
},
|
|
2834
|
+
emits: ["update:groupValue", "change"],
|
|
2835
|
+
setup(e, { emit: w }) {
|
|
2836
|
+
let T = e, E = w, D = () => {
|
|
2837
|
+
T.enabled && T.value !== T.groupValue && (T.onChanged && T.onChanged(T.value), E("update:groupValue", T.value), E("change", T.value));
|
|
2838
|
+
};
|
|
2839
|
+
return (w, T) => (openBlock(), createBlock(ListTile_default, {
|
|
2840
|
+
onTap: D,
|
|
2841
|
+
title: e.title,
|
|
2842
|
+
subtitle: e.subtitle,
|
|
2843
|
+
"content-padding": e.contentPadding,
|
|
2844
|
+
"tile-color": e.tileColor,
|
|
2845
|
+
selected: e.selected,
|
|
2846
|
+
"selected-color": e.selectedColor,
|
|
2847
|
+
enabled: e.enabled,
|
|
2848
|
+
dense: e.dense
|
|
2849
|
+
}, {
|
|
2850
|
+
leading: withCtx(() => [e.controlAffinity === "leading" ? (openBlock(), createBlock(Radio_default, {
|
|
2851
|
+
key: 0,
|
|
2852
|
+
value: e.value,
|
|
2853
|
+
"group-value": e.groupValue,
|
|
2854
|
+
"active-color": e.activeColor,
|
|
2855
|
+
"fill-color": e.fillColor,
|
|
2856
|
+
"hide-icon": e.hideIcon,
|
|
2857
|
+
onClick: T[0] ||= withModifiers(() => {}, ["stop"])
|
|
2858
|
+
}, null, 8, [
|
|
2859
|
+
"value",
|
|
2860
|
+
"group-value",
|
|
2861
|
+
"active-color",
|
|
2862
|
+
"fill-color",
|
|
2863
|
+
"hide-icon"
|
|
2864
|
+
])) : renderSlot(w.$slots, "secondary", { key: 1 }, () => [e.secondary ? (openBlock(), createBlock(resolveDynamicComponent(e.secondary), { key: 0 })) : createCommentVNode("", !0)])]),
|
|
2865
|
+
title: withCtx(() => [renderSlot(w.$slots, "title", {}, () => [e.title ? (openBlock(), createBlock(Text_default, { key: 0 }, {
|
|
2866
|
+
default: withCtx(() => [createTextVNode(toDisplayString(e.title), 1)]),
|
|
2867
|
+
_: 1
|
|
2868
|
+
})) : createCommentVNode("", !0)])]),
|
|
2869
|
+
subtitle: withCtx(() => [renderSlot(w.$slots, "subtitle", {}, () => [e.subtitle ? (openBlock(), createBlock(Text_default, { key: 0 }, {
|
|
2870
|
+
default: withCtx(() => [createTextVNode(toDisplayString(e.subtitle), 1)]),
|
|
2871
|
+
_: 1
|
|
2872
|
+
})) : createCommentVNode("", !0)])]),
|
|
2873
|
+
trailing: withCtx(() => [e.controlAffinity === "trailing" ? (openBlock(), createBlock(Radio_default, {
|
|
2874
|
+
key: 0,
|
|
2875
|
+
value: e.value,
|
|
2876
|
+
"group-value": e.groupValue,
|
|
2877
|
+
"active-color": e.activeColor,
|
|
2878
|
+
"fill-color": e.fillColor,
|
|
2879
|
+
"hide-icon": e.hideIcon,
|
|
2880
|
+
onClick: T[1] ||= withModifiers(() => {}, ["stop"])
|
|
2881
|
+
}, null, 8, [
|
|
2882
|
+
"value",
|
|
2883
|
+
"group-value",
|
|
2884
|
+
"active-color",
|
|
2885
|
+
"fill-color",
|
|
2886
|
+
"hide-icon"
|
|
2887
|
+
])) : renderSlot(w.$slots, "secondary", { key: 1 }, () => [e.secondary ? (openBlock(), createBlock(resolveDynamicComponent(e.secondary), { key: 0 })) : createCommentVNode("", !0)])]),
|
|
2888
|
+
_: 3
|
|
2889
|
+
}, 8, [
|
|
2890
|
+
"title",
|
|
2891
|
+
"subtitle",
|
|
2892
|
+
"content-padding",
|
|
2893
|
+
"tile-color",
|
|
2894
|
+
"selected",
|
|
2895
|
+
"selected-color",
|
|
2896
|
+
"enabled",
|
|
2897
|
+
"dense"
|
|
2898
|
+
]));
|
|
2899
|
+
}
|
|
2662
2900
|
}), Slider_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
2663
2901
|
__name: "Slider",
|
|
2664
2902
|
props: {
|
|
2665
2903
|
value: {},
|
|
2666
2904
|
min: { default: 0 },
|
|
2667
2905
|
max: { default: 100 },
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2906
|
+
activeColor: { default: "#007AFF" },
|
|
2907
|
+
inactiveColor: { default: "#E5E5EA" },
|
|
2908
|
+
thumbColor: { default: "#FFFFFF" },
|
|
2909
|
+
variant: { default: "ios" }
|
|
2672
2910
|
},
|
|
2673
2911
|
emits: ["update:value", "change"],
|
|
2674
|
-
setup(e, { emit:
|
|
2675
|
-
let
|
|
2676
|
-
let e =
|
|
2677
|
-
return e <= 0 ? 0 : (
|
|
2678
|
-
}),
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2912
|
+
setup(e, { emit: w }) {
|
|
2913
|
+
let T = e, E = w, O = ref(), k = ref(0), j = computed(() => T.variant === "ios"), M = computed(() => j.value ? 3 : 4), N = computed(() => j.value ? 28 : 20), F = computed(() => {
|
|
2914
|
+
let e = T.max - T.min;
|
|
2915
|
+
return e <= 0 ? 0 : (T.value - T.min) / e * 100;
|
|
2916
|
+
}), I = computed(() => `${F.value}%`), L = (e, w) => {
|
|
2917
|
+
let D = (e - w.left) / w.width;
|
|
2918
|
+
D = Math.max(0, Math.min(1, D));
|
|
2919
|
+
let O = T.min + D * (T.max - T.min);
|
|
2920
|
+
E("change", O), E("update:value", O);
|
|
2921
|
+
}, R = (e) => {
|
|
2922
|
+
if (!O.value) return;
|
|
2923
|
+
let w = O.value.getBoundingClientRect(), T = e.globalPosition.x, E = w.left + w.width * (F.value / 100);
|
|
2924
|
+
Math.abs(T - E) <= 15 ? k.value = T - E : (k.value = 0, L(T, w));
|
|
2925
|
+
}, z = (e) => {
|
|
2926
|
+
if (!O.value) return;
|
|
2927
|
+
let w = O.value.getBoundingClientRect(), T = e.globalPosition.x;
|
|
2928
|
+
L(T - k.value, w);
|
|
2929
|
+
}, B = computed(() => BoxDecoration({
|
|
2930
|
+
color: T.thumbColor,
|
|
2688
2931
|
shape: BoxShape.circle,
|
|
2689
|
-
boxShadow: [BoxShadow({
|
|
2932
|
+
boxShadow: j.value ? [BoxShadow({
|
|
2933
|
+
color: "rgba(0,0,0,0.15)",
|
|
2934
|
+
blurRadius: 4,
|
|
2935
|
+
offset: {
|
|
2936
|
+
x: 0,
|
|
2937
|
+
y: 3
|
|
2938
|
+
}
|
|
2939
|
+
}), BoxShadow({
|
|
2940
|
+
color: "rgba(0,0,0,0.08)",
|
|
2941
|
+
blurRadius: 1,
|
|
2942
|
+
offset: {
|
|
2943
|
+
x: 0,
|
|
2944
|
+
y: 0
|
|
2945
|
+
}
|
|
2946
|
+
})] : [BoxShadow({
|
|
2690
2947
|
color: "rgba(0,0,0,0.2)",
|
|
2691
2948
|
blurRadius: 2,
|
|
2692
2949
|
offset: {
|
|
@@ -2695,57 +2952,237 @@ var Transform_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @_
|
|
|
2695
2952
|
}
|
|
2696
2953
|
})]
|
|
2697
2954
|
}));
|
|
2698
|
-
return (
|
|
2955
|
+
return (w, T) => (openBlock(), createElementBlock("div", {
|
|
2699
2956
|
class: "slider-container",
|
|
2700
2957
|
ref_key: "trackRef",
|
|
2701
|
-
ref:
|
|
2958
|
+
ref: O
|
|
2702
2959
|
}, [createVNode(GestureDetector_default, {
|
|
2703
|
-
onPanStart:
|
|
2704
|
-
onPanUpdate:
|
|
2705
|
-
onTapDown: N
|
|
2960
|
+
onPanStart: R,
|
|
2961
|
+
onPanUpdate: z
|
|
2706
2962
|
}, {
|
|
2707
2963
|
default: withCtx(() => [createVNode(Container_default, {
|
|
2708
2964
|
height: 40,
|
|
2709
2965
|
alignment: "centerLeft"
|
|
2710
2966
|
}, {
|
|
2711
|
-
default: withCtx(() => [createVNode(Stack_default, {
|
|
2967
|
+
default: withCtx(() => [createVNode(Stack_default, {
|
|
2968
|
+
alignment: "centerLeft",
|
|
2969
|
+
fit: unref(StackFit).expand
|
|
2970
|
+
}, {
|
|
2712
2971
|
default: withCtx(() => [
|
|
2713
2972
|
createVNode(Container_default, {
|
|
2714
2973
|
width: "100%",
|
|
2715
|
-
height:
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2974
|
+
height: M.value,
|
|
2975
|
+
decoration: unref(BoxDecoration)({
|
|
2976
|
+
color: e.inactiveColor,
|
|
2977
|
+
borderRadius: unref(BorderRadius).circular(M.value / 2)
|
|
2978
|
+
})
|
|
2979
|
+
}, null, 8, ["height", "decoration"]),
|
|
2719
2980
|
createVNode(Container_default, {
|
|
2720
|
-
width: `${
|
|
2721
|
-
height:
|
|
2722
|
-
|
|
2723
|
-
|
|
2981
|
+
width: `${F.value}%`,
|
|
2982
|
+
height: M.value,
|
|
2983
|
+
decoration: unref(BoxDecoration)({
|
|
2984
|
+
color: e.activeColor,
|
|
2985
|
+
borderRadius: unref(BorderRadius).circular(M.value / 2)
|
|
2986
|
+
})
|
|
2724
2987
|
}, null, 8, [
|
|
2725
2988
|
"width",
|
|
2726
|
-
"
|
|
2727
|
-
"
|
|
2989
|
+
"height",
|
|
2990
|
+
"decoration"
|
|
2728
2991
|
]),
|
|
2992
|
+
createVNode(Positioned_default, {
|
|
2993
|
+
left: I.value,
|
|
2994
|
+
top: 0,
|
|
2995
|
+
bottom: 0
|
|
2996
|
+
}, {
|
|
2997
|
+
default: withCtx(() => [createVNode(Container_default, {
|
|
2998
|
+
height: "100%",
|
|
2999
|
+
transform: "translate(-50%, 0)",
|
|
3000
|
+
alignment: "center"
|
|
3001
|
+
}, {
|
|
3002
|
+
default: withCtx(() => [createVNode(Container_default, {
|
|
3003
|
+
width: N.value,
|
|
3004
|
+
height: N.value,
|
|
3005
|
+
decoration: B.value
|
|
3006
|
+
}, null, 8, [
|
|
3007
|
+
"width",
|
|
3008
|
+
"height",
|
|
3009
|
+
"decoration"
|
|
3010
|
+
])]),
|
|
3011
|
+
_: 1
|
|
3012
|
+
})]),
|
|
3013
|
+
_: 1
|
|
3014
|
+
}, 8, ["left"])
|
|
3015
|
+
]),
|
|
3016
|
+
_: 1
|
|
3017
|
+
}, 8, ["fit"])]),
|
|
3018
|
+
_: 1
|
|
3019
|
+
})]),
|
|
3020
|
+
_: 1
|
|
3021
|
+
})], 512));
|
|
3022
|
+
}
|
|
3023
|
+
}), [["__scopeId", "data-v-715d86f8"]]), RangeSlider_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
3024
|
+
__name: "RangeSlider",
|
|
3025
|
+
props: {
|
|
3026
|
+
value: {},
|
|
3027
|
+
min: { default: 0 },
|
|
3028
|
+
max: { default: 100 },
|
|
3029
|
+
activeColor: { default: "#007AFF" },
|
|
3030
|
+
inactiveColor: { default: "#E5E5EA" },
|
|
3031
|
+
thumbColor: { default: "#FFFFFF" },
|
|
3032
|
+
variant: { default: "ios" }
|
|
3033
|
+
},
|
|
3034
|
+
emits: ["update:value", "change"],
|
|
3035
|
+
setup(e, { emit: w }) {
|
|
3036
|
+
let T = e, E = w, O = ref(), k = ref(0), j = ref(null), M = computed(() => T.variant === "ios"), N = computed(() => M.value ? 3 : 4), F = computed(() => M.value ? 28 : 20), I = computed(() => {
|
|
3037
|
+
let e = T.max - T.min;
|
|
3038
|
+
return e <= 0 ? 0 : (T.value.start - T.min) / e * 100;
|
|
3039
|
+
}), L = computed(() => {
|
|
3040
|
+
let e = T.max - T.min;
|
|
3041
|
+
return e <= 0 ? 0 : (T.value.end - T.min) / e * 100;
|
|
3042
|
+
}), R = computed(() => BoxDecoration({
|
|
3043
|
+
color: T.thumbColor,
|
|
3044
|
+
shape: BoxShape.circle,
|
|
3045
|
+
boxShadow: M.value ? [BoxShadow({
|
|
3046
|
+
color: "rgba(0,0,0,0.15)",
|
|
3047
|
+
blurRadius: 4,
|
|
3048
|
+
offset: {
|
|
3049
|
+
x: 0,
|
|
3050
|
+
y: 3
|
|
3051
|
+
}
|
|
3052
|
+
}), BoxShadow({
|
|
3053
|
+
color: "rgba(0,0,0,0.08)",
|
|
3054
|
+
blurRadius: 1,
|
|
3055
|
+
offset: {
|
|
3056
|
+
x: 0,
|
|
3057
|
+
y: 0
|
|
3058
|
+
}
|
|
3059
|
+
})] : [BoxShadow({
|
|
3060
|
+
color: "rgba(0,0,0,0.2)",
|
|
3061
|
+
blurRadius: 2,
|
|
3062
|
+
offset: {
|
|
3063
|
+
x: 0,
|
|
3064
|
+
y: 1
|
|
3065
|
+
}
|
|
3066
|
+
})]
|
|
3067
|
+
})), z = (e, w) => {
|
|
3068
|
+
let T = (e - w.left) / w.width;
|
|
3069
|
+
return Math.max(0, Math.min(1, T));
|
|
3070
|
+
}, B = (e) => T.min + e * (T.max - T.min), V = (e, w) => {
|
|
3071
|
+
let D = T.value.start, O = T.value.end;
|
|
3072
|
+
e === "start" ? D = Math.min(w, O) : O = Math.max(w, D);
|
|
3073
|
+
let k = {
|
|
3074
|
+
start: D,
|
|
3075
|
+
end: O
|
|
3076
|
+
};
|
|
3077
|
+
E("update:value", k), E("change", k);
|
|
3078
|
+
}, H = (e) => {
|
|
3079
|
+
if (!O.value) return;
|
|
3080
|
+
let w = O.value.getBoundingClientRect(), T = e.globalPosition.x, E = w.left + w.width * (I.value / 100), D = w.left + w.width * (L.value / 100), A = Math.abs(T - E), M = Math.abs(T - D), N = null;
|
|
3081
|
+
A <= 20 && M <= 20 ? N = A < M ? "start" : "end" : A <= 20 ? N = "start" : M <= 20 && (N = "end"), N ? (j.value = N, k.value = T - (N === "start" ? E : D)) : (A < M ? (j.value = "start", V("start", B(z(T, w)))) : (j.value = "end", V("end", B(z(T, w)))), k.value = 0);
|
|
3082
|
+
}, U = (e) => {
|
|
3083
|
+
if (!O.value || !j.value) return;
|
|
3084
|
+
let w = O.value.getBoundingClientRect(), T = B(z(e.globalPosition.x - k.value, w));
|
|
3085
|
+
V(j.value, T);
|
|
3086
|
+
};
|
|
3087
|
+
return (w, T) => (openBlock(), createElementBlock("div", {
|
|
3088
|
+
class: "range-slider-container",
|
|
3089
|
+
ref_key: "trackRef",
|
|
3090
|
+
ref: O
|
|
3091
|
+
}, [createVNode(GestureDetector_default, {
|
|
3092
|
+
onPanStart: H,
|
|
3093
|
+
onPanUpdate: U
|
|
3094
|
+
}, {
|
|
3095
|
+
default: withCtx(() => [createVNode(Container_default, {
|
|
3096
|
+
height: 40,
|
|
3097
|
+
alignment: "centerLeft"
|
|
3098
|
+
}, {
|
|
3099
|
+
default: withCtx(() => [createVNode(Stack_default, {
|
|
3100
|
+
alignment: "centerLeft",
|
|
3101
|
+
fit: unref(StackFit).expand
|
|
3102
|
+
}, {
|
|
3103
|
+
default: withCtx(() => [
|
|
2729
3104
|
createVNode(Container_default, {
|
|
2730
|
-
|
|
2731
|
-
|
|
3105
|
+
width: "100%",
|
|
3106
|
+
height: N.value,
|
|
3107
|
+
decoration: unref(BoxDecoration)({
|
|
3108
|
+
color: e.inactiveColor,
|
|
3109
|
+
borderRadius: unref(BorderRadius).circular(N.value / 2)
|
|
3110
|
+
})
|
|
3111
|
+
}, null, 8, ["height", "decoration"]),
|
|
3112
|
+
createVNode(Positioned_default, {
|
|
3113
|
+
left: `${I.value}%`,
|
|
3114
|
+
width: `${L.value - I.value}%`,
|
|
3115
|
+
height: N.value
|
|
2732
3116
|
}, {
|
|
2733
3117
|
default: withCtx(() => [createVNode(Container_default, {
|
|
2734
|
-
width:
|
|
2735
|
-
height:
|
|
2736
|
-
decoration:
|
|
3118
|
+
width: "100%",
|
|
3119
|
+
height: "100%",
|
|
3120
|
+
decoration: unref(BoxDecoration)({
|
|
3121
|
+
color: e.activeColor,
|
|
3122
|
+
borderRadius: unref(BorderRadius).circular(N.value / 2)
|
|
3123
|
+
})
|
|
2737
3124
|
}, null, 8, ["decoration"])]),
|
|
2738
3125
|
_: 1
|
|
2739
|
-
}, 8, [
|
|
3126
|
+
}, 8, [
|
|
3127
|
+
"left",
|
|
3128
|
+
"width",
|
|
3129
|
+
"height"
|
|
3130
|
+
]),
|
|
3131
|
+
createVNode(Positioned_default, {
|
|
3132
|
+
left: `${I.value}%`,
|
|
3133
|
+
top: 0,
|
|
3134
|
+
bottom: 0
|
|
3135
|
+
}, {
|
|
3136
|
+
default: withCtx(() => [createVNode(Container_default, {
|
|
3137
|
+
height: "100%",
|
|
3138
|
+
transform: "translate(-50%, 0)",
|
|
3139
|
+
alignment: "center"
|
|
3140
|
+
}, {
|
|
3141
|
+
default: withCtx(() => [createVNode(Container_default, {
|
|
3142
|
+
width: F.value,
|
|
3143
|
+
height: F.value,
|
|
3144
|
+
decoration: R.value
|
|
3145
|
+
}, null, 8, [
|
|
3146
|
+
"width",
|
|
3147
|
+
"height",
|
|
3148
|
+
"decoration"
|
|
3149
|
+
])]),
|
|
3150
|
+
_: 1
|
|
3151
|
+
})]),
|
|
3152
|
+
_: 1
|
|
3153
|
+
}, 8, ["left"]),
|
|
3154
|
+
createVNode(Positioned_default, {
|
|
3155
|
+
left: `${L.value}%`,
|
|
3156
|
+
top: 0,
|
|
3157
|
+
bottom: 0
|
|
3158
|
+
}, {
|
|
3159
|
+
default: withCtx(() => [createVNode(Container_default, {
|
|
3160
|
+
height: "100%",
|
|
3161
|
+
transform: "translate(-50%, 0)",
|
|
3162
|
+
alignment: "center"
|
|
3163
|
+
}, {
|
|
3164
|
+
default: withCtx(() => [createVNode(Container_default, {
|
|
3165
|
+
width: F.value,
|
|
3166
|
+
height: F.value,
|
|
3167
|
+
decoration: R.value
|
|
3168
|
+
}, null, 8, [
|
|
3169
|
+
"width",
|
|
3170
|
+
"height",
|
|
3171
|
+
"decoration"
|
|
3172
|
+
])]),
|
|
3173
|
+
_: 1
|
|
3174
|
+
})]),
|
|
3175
|
+
_: 1
|
|
3176
|
+
}, 8, ["left"])
|
|
2740
3177
|
]),
|
|
2741
3178
|
_: 1
|
|
2742
|
-
})]),
|
|
3179
|
+
}, 8, ["fit"])]),
|
|
2743
3180
|
_: 1
|
|
2744
3181
|
})]),
|
|
2745
3182
|
_: 1
|
|
2746
3183
|
})], 512));
|
|
2747
3184
|
}
|
|
2748
|
-
}), [["__scopeId", "data-v-
|
|
3185
|
+
}), [["__scopeId", "data-v-f10382ff"]]), AlertDialog_default = /* @__PURE__ */ defineComponent({
|
|
2749
3186
|
__name: "AlertDialog",
|
|
2750
3187
|
props: {
|
|
2751
3188
|
visible: {
|
|
@@ -2775,16 +3212,16 @@ var Transform_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @_
|
|
|
2775
3212
|
"close",
|
|
2776
3213
|
"ok"
|
|
2777
3214
|
],
|
|
2778
|
-
setup(e, { emit:
|
|
2779
|
-
let
|
|
2780
|
-
|
|
2781
|
-
},
|
|
2782
|
-
|
|
2783
|
-
},
|
|
2784
|
-
padding:
|
|
2785
|
-
alignment:
|
|
2786
|
-
constraints:
|
|
2787
|
-
decoration:
|
|
3215
|
+
setup(e, { emit: w }) {
|
|
3216
|
+
let T = e, E = w, A = () => {
|
|
3217
|
+
E("update:visible", !1), E("close");
|
|
3218
|
+
}, j = () => E("ok"), M = () => {
|
|
3219
|
+
T.barrierDismissible && A();
|
|
3220
|
+
}, F = computed(() => Object.assign({}, {
|
|
3221
|
+
padding: T.padding || EdgeInsets.all(24),
|
|
3222
|
+
alignment: T.alignment,
|
|
3223
|
+
constraints: T.constraints || BoxConstraints({ maxWidth: 400 }),
|
|
3224
|
+
decoration: T.decoration || BoxDecoration({
|
|
2788
3225
|
color: "white",
|
|
2789
3226
|
borderRadius: BorderRadius.circular(4),
|
|
2790
3227
|
boxShadow: [{
|
|
@@ -2796,29 +3233,15 @@ var Transform_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @_
|
|
|
2796
3233
|
}
|
|
2797
3234
|
}]
|
|
2798
3235
|
})
|
|
2799
|
-
},
|
|
2800
|
-
fontSize:
|
|
3236
|
+
}, T.size ? Size(T.size) : {})), L = computed(() => T.titleStyle || TextStyle({
|
|
3237
|
+
fontSize: T.titleFontSize || 20,
|
|
2801
3238
|
fontWeight: FontWeight.bold,
|
|
2802
|
-
color:
|
|
2803
|
-
})),
|
|
3239
|
+
color: T.titleColor || "rgba(0,0,0,0.87)"
|
|
3240
|
+
})), R = TextStyle({
|
|
2804
3241
|
fontSize: 16,
|
|
2805
3242
|
color: "rgba(0,0,0,0.6)"
|
|
2806
|
-
})
|
|
2807
|
-
|
|
2808
|
-
borderRadius: BorderRadius.circular(4),
|
|
2809
|
-
boxShadow: [{
|
|
2810
|
-
color: "rgba(0,0,0,0.2)",
|
|
2811
|
-
blurRadius: 24,
|
|
2812
|
-
offset: {
|
|
2813
|
-
x: 0,
|
|
2814
|
-
y: 11
|
|
2815
|
-
}
|
|
2816
|
-
}]
|
|
2817
|
-
}));
|
|
2818
|
-
return computed(() => Object.assign({}, {
|
|
2819
|
-
constraints: E.constraints || BoxConstraints({ maxWidth: 400 }),
|
|
2820
|
-
decoration: B.value
|
|
2821
|
-
}, E.size ? Size(E.size) : {})), (T, E) => e.visible ? (openBlock(), createBlock(Fixed_default, {
|
|
3243
|
+
});
|
|
3244
|
+
return (w, T) => e.visible ? (openBlock(), createBlock(Fixed_default, {
|
|
2822
3245
|
key: 0,
|
|
2823
3246
|
"z-index": 9999,
|
|
2824
3247
|
top: 0,
|
|
@@ -2826,14 +3249,14 @@ var Transform_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @_
|
|
|
2826
3249
|
right: 0,
|
|
2827
3250
|
bottom: 0
|
|
2828
3251
|
}, {
|
|
2829
|
-
default: withCtx(() => [createVNode(GestureDetector_default, { onTap:
|
|
3252
|
+
default: withCtx(() => [createVNode(GestureDetector_default, { onTap: M }, {
|
|
2830
3253
|
default: withCtx(() => [createVNode(Container_default, {
|
|
2831
3254
|
width: "100%",
|
|
2832
3255
|
height: "100%",
|
|
2833
3256
|
alignment: "center",
|
|
2834
3257
|
color: e.barrierColor
|
|
2835
3258
|
}, {
|
|
2836
|
-
default: withCtx(() => [createVNode(Container_default, normalizeProps(guardReactiveProps(
|
|
3259
|
+
default: withCtx(() => [createVNode(Container_default, normalizeProps(guardReactiveProps(F.value)), {
|
|
2837
3260
|
default: withCtx(() => [
|
|
2838
3261
|
e.title ? (openBlock(), createBlock(Container_default, {
|
|
2839
3262
|
key: 0,
|
|
@@ -2841,19 +3264,19 @@ var Transform_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @_
|
|
|
2841
3264
|
width: "100%"
|
|
2842
3265
|
}, {
|
|
2843
3266
|
default: withCtx(() => [createVNode(Text_default, {
|
|
2844
|
-
style: normalizeStyle(
|
|
3267
|
+
style: normalizeStyle(L.value),
|
|
2845
3268
|
data: e.title
|
|
2846
3269
|
}, null, 8, ["style", "data"])]),
|
|
2847
3270
|
_: 1
|
|
2848
3271
|
}, 8, ["alignment"])) : createCommentVNode("", !0),
|
|
2849
|
-
renderSlot(
|
|
3272
|
+
renderSlot(w.$slots, "default", {}, () => [createVNode(Container_default, {
|
|
2850
3273
|
padding: unref(EdgeInsets).symmetric({ vertical: 16 }),
|
|
2851
3274
|
alignment: "topLeft",
|
|
2852
3275
|
width: "100%"
|
|
2853
3276
|
}, {
|
|
2854
3277
|
default: withCtx(() => [e.content ? (openBlock(), createBlock(Text_default, {
|
|
2855
3278
|
key: 0,
|
|
2856
|
-
style: normalizeStyle(unref(
|
|
3279
|
+
style: normalizeStyle(unref(R)),
|
|
2857
3280
|
data: e.content
|
|
2858
3281
|
}, null, 8, ["style", "data"])) : createCommentVNode("", !0)]),
|
|
2859
3282
|
_: 1
|
|
@@ -2864,11 +3287,11 @@ var Transform_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @_
|
|
|
2864
3287
|
"cross-axis-alignment": "center",
|
|
2865
3288
|
gap: 8
|
|
2866
3289
|
}, {
|
|
2867
|
-
default: withCtx(() => [renderSlot(
|
|
2868
|
-
default: withCtx(() => [...
|
|
3290
|
+
default: withCtx(() => [renderSlot(w.$slots, "actions", {}, () => [createVNode(Button_default, { onPressed: A }, {
|
|
3291
|
+
default: withCtx(() => [...T[0] ||= [createTextVNode("Cancel", -1)]]),
|
|
2869
3292
|
_: 1
|
|
2870
|
-
}), createVNode(Button_default, { onPressed:
|
|
2871
|
-
default: withCtx(() => [...
|
|
3293
|
+
}), createVNode(Button_default, { onPressed: j }, {
|
|
3294
|
+
default: withCtx(() => [...T[1] ||= [createTextVNode("OK", -1)]]),
|
|
2872
3295
|
_: 1
|
|
2873
3296
|
})])]),
|
|
2874
3297
|
_: 3
|
|
@@ -2900,35 +3323,35 @@ var Transform_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @_
|
|
|
2900
3323
|
padding: {}
|
|
2901
3324
|
},
|
|
2902
3325
|
emits: ["update:visible", "close"],
|
|
2903
|
-
setup(e, { emit:
|
|
2904
|
-
let
|
|
2905
|
-
|
|
2906
|
-
},
|
|
2907
|
-
color:
|
|
2908
|
-
borderRadius:
|
|
3326
|
+
setup(e, { emit: w }) {
|
|
3327
|
+
let T = e, E = w, O = () => {
|
|
3328
|
+
E("update:visible", !1), E("close");
|
|
3329
|
+
}, j = computed(() => BoxDecoration({
|
|
3330
|
+
color: T.backgroundColor,
|
|
3331
|
+
borderRadius: T.shape || BorderRadius.only({
|
|
2909
3332
|
topLeft: 16,
|
|
2910
3333
|
topRight: 16
|
|
2911
3334
|
}),
|
|
2912
|
-
boxShadow:
|
|
3335
|
+
boxShadow: T.elevation > 0 ? [{
|
|
2913
3336
|
color: "rgba(0,0,0,0.2)",
|
|
2914
|
-
blurRadius:
|
|
3337
|
+
blurRadius: T.elevation * 2,
|
|
2915
3338
|
offset: {
|
|
2916
3339
|
x: 0,
|
|
2917
3340
|
y: -2
|
|
2918
3341
|
}
|
|
2919
3342
|
}] : void 0
|
|
2920
3343
|
}));
|
|
2921
|
-
return (
|
|
3344
|
+
return (w, T) => e.visible ? (openBlock(), createElementBlock("div", {
|
|
2922
3345
|
key: 0,
|
|
2923
3346
|
class: "bottom-sheet-overlay",
|
|
2924
|
-
onClick:
|
|
3347
|
+
onClick: T[0] ||= withModifiers((w) => e.barrierDismissible ? O() : null, ["self"])
|
|
2925
3348
|
}, [createVNode(Container_default, {
|
|
2926
3349
|
class: "bottom-sheet-content",
|
|
2927
|
-
decoration:
|
|
3350
|
+
decoration: j.value,
|
|
2928
3351
|
width: "100%",
|
|
2929
3352
|
padding: e.padding
|
|
2930
3353
|
}, {
|
|
2931
|
-
default: withCtx(() => [renderSlot(
|
|
3354
|
+
default: withCtx(() => [renderSlot(w.$slots, "default", {}, void 0, !0)]),
|
|
2932
3355
|
_: 3
|
|
2933
3356
|
}, 8, ["decoration", "padding"])])) : createCommentVNode("", !0);
|
|
2934
3357
|
}
|
|
@@ -2952,73 +3375,73 @@ var Transform_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @_
|
|
|
2952
3375
|
borderRadius: { default: () => BorderRadius.circular(4) }
|
|
2953
3376
|
},
|
|
2954
3377
|
emits: ["update:modelValue", "change"],
|
|
2955
|
-
setup(e, { emit:
|
|
2956
|
-
let
|
|
2957
|
-
e.disabled || e.value !==
|
|
2958
|
-
},
|
|
3378
|
+
setup(e, { emit: T }) {
|
|
3379
|
+
let E = e, k = T, j = (e) => {
|
|
3380
|
+
e.disabled || e.value !== E.modelValue && (k("update:modelValue", e.value), k("change", e.value));
|
|
3381
|
+
}, M = computed(() => E.decoration ? E.decoration : BoxDecoration({
|
|
2959
3382
|
border: Border.all({
|
|
2960
|
-
color:
|
|
3383
|
+
color: E.borderColor,
|
|
2961
3384
|
width: 1
|
|
2962
3385
|
}),
|
|
2963
|
-
borderRadius:
|
|
2964
|
-
})),
|
|
2965
|
-
let
|
|
2966
|
-
|
|
2967
|
-
topLeft:
|
|
2968
|
-
bottomLeft:
|
|
2969
|
-
}) :
|
|
2970
|
-
topRight:
|
|
2971
|
-
bottomRight:
|
|
3386
|
+
borderRadius: E.borderRadius
|
|
3387
|
+
})), F = (e, w) => {
|
|
3388
|
+
let T = e.value === E.modelValue, D = w === E.items.length - 1, O = w === 0, k = BorderRadius.zero;
|
|
3389
|
+
O ? k = BorderRadius.only({
|
|
3390
|
+
topLeft: E.borderRadius.topLeft,
|
|
3391
|
+
bottomLeft: E.borderRadius.bottomLeft
|
|
3392
|
+
}) : D && (k = BorderRadius.only({
|
|
3393
|
+
topRight: E.borderRadius.topRight,
|
|
3394
|
+
bottomRight: E.borderRadius.bottomRight
|
|
2972
3395
|
}));
|
|
2973
|
-
let
|
|
2974
|
-
return e.disabled && (
|
|
2975
|
-
color:
|
|
2976
|
-
borderRadius:
|
|
3396
|
+
let A = T ? E.selectedColor : E.unselectedColor;
|
|
3397
|
+
return e.disabled && (A = E.disabledColor), BoxDecoration({
|
|
3398
|
+
color: A,
|
|
3399
|
+
borderRadius: k,
|
|
2977
3400
|
border: Border.only({ right: BorderSide({
|
|
2978
|
-
color:
|
|
3401
|
+
color: D ? "transparent" : E.borderColor,
|
|
2979
3402
|
width: 1
|
|
2980
3403
|
}) })
|
|
2981
3404
|
});
|
|
2982
|
-
},
|
|
2983
|
-
let
|
|
2984
|
-
color:
|
|
3405
|
+
}, I = (e) => {
|
|
3406
|
+
let w = e.value === E.modelValue, T = e.disabled, D = TextStyle({
|
|
3407
|
+
color: w ? "#FFFFFF" : E.borderColor,
|
|
2985
3408
|
fontSize: 13
|
|
2986
3409
|
});
|
|
2987
|
-
return
|
|
2988
|
-
...
|
|
2989
|
-
...
|
|
3410
|
+
return T ? E.disabledTextStyle ? {
|
|
3411
|
+
...D,
|
|
3412
|
+
...E.disabledTextStyle,
|
|
2990
3413
|
color: "#999999"
|
|
2991
3414
|
} : {
|
|
2992
|
-
...
|
|
3415
|
+
...D,
|
|
2993
3416
|
color: "#999999"
|
|
2994
|
-
} :
|
|
2995
|
-
...
|
|
2996
|
-
...
|
|
2997
|
-
} : !
|
|
2998
|
-
...
|
|
2999
|
-
...
|
|
3000
|
-
} :
|
|
3417
|
+
} : w && E.selectedTextStyle ? {
|
|
3418
|
+
...D,
|
|
3419
|
+
...E.selectedTextStyle
|
|
3420
|
+
} : !w && E.unselectedTextStyle ? {
|
|
3421
|
+
...D,
|
|
3422
|
+
...E.unselectedTextStyle
|
|
3423
|
+
} : D;
|
|
3001
3424
|
};
|
|
3002
|
-
return (
|
|
3003
|
-
decoration:
|
|
3425
|
+
return (T, E) => (openBlock(), createBlock(Container_default, {
|
|
3426
|
+
decoration: M.value,
|
|
3004
3427
|
"clip-behavior": "hardEdge"
|
|
3005
3428
|
}, {
|
|
3006
3429
|
default: withCtx(() => [createVNode(Row_default, null, {
|
|
3007
|
-
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(e.items, (
|
|
3008
|
-
key:
|
|
3009
|
-
onTap: (e) =>
|
|
3430
|
+
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(e.items, (w, E) => (openBlock(), createBlock(GestureDetector_default, {
|
|
3431
|
+
key: E,
|
|
3432
|
+
onTap: (e) => j(w)
|
|
3010
3433
|
}, {
|
|
3011
3434
|
default: withCtx(() => [createVNode(Container_default, {
|
|
3012
3435
|
padding: e.padding,
|
|
3013
|
-
decoration:
|
|
3436
|
+
decoration: F(w, E),
|
|
3014
3437
|
alignment: "center"
|
|
3015
3438
|
}, {
|
|
3016
|
-
default: withCtx(() => [renderSlot(
|
|
3017
|
-
item:
|
|
3018
|
-
selected:
|
|
3019
|
-
index:
|
|
3020
|
-
}, () => [createVNode(Text_default, { style: normalizeStyle(
|
|
3021
|
-
default: withCtx(() => [createTextVNode(toDisplayString(
|
|
3439
|
+
default: withCtx(() => [renderSlot(T.$slots, "label", {
|
|
3440
|
+
item: w,
|
|
3441
|
+
selected: w.value === e.modelValue,
|
|
3442
|
+
index: E
|
|
3443
|
+
}, () => [createVNode(Text_default, { style: normalizeStyle(I(w)) }, {
|
|
3444
|
+
default: withCtx(() => [createTextVNode(toDisplayString(w.label), 1)]),
|
|
3022
3445
|
_: 2
|
|
3023
3446
|
}, 1032, ["style"])])]),
|
|
3024
3447
|
_: 2
|
|
@@ -3043,45 +3466,45 @@ var Transform_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @_
|
|
|
3043
3466
|
__name: "LayoutBuilder",
|
|
3044
3467
|
props: { direction: {} },
|
|
3045
3468
|
setup(e) {
|
|
3046
|
-
let
|
|
3047
|
-
let e = { display: "block" },
|
|
3048
|
-
return
|
|
3469
|
+
let w = e, T = ref(null), E = shallowRef(null), O = null, j = computed(() => {
|
|
3470
|
+
let e = { display: "block" }, T = w.direction ?? "both";
|
|
3471
|
+
return T === "both" ? (e.width = "100%", e.height = "100%") : T === "horizontal" ? e.width = "100%" : T === "vertical" && (e.height = "100%"), e;
|
|
3049
3472
|
});
|
|
3050
3473
|
return onMounted(() => {
|
|
3051
|
-
|
|
3052
|
-
for (let
|
|
3053
|
-
let e =
|
|
3054
|
-
|
|
3474
|
+
T.value && (O = new ResizeObserver((e) => {
|
|
3475
|
+
for (let T of e) {
|
|
3476
|
+
let e = T.contentRect.width, D = T.contentRect.height, O = w.direction ?? "both";
|
|
3477
|
+
O === "both" ? E.value = BoxConstraints.tight({
|
|
3055
3478
|
width: e,
|
|
3056
|
-
height:
|
|
3057
|
-
}) :
|
|
3479
|
+
height: D
|
|
3480
|
+
}) : O === "horizontal" ? E.value = BoxConstraints({
|
|
3058
3481
|
minWidth: e,
|
|
3059
3482
|
maxWidth: e,
|
|
3060
3483
|
minHeight: 0,
|
|
3061
3484
|
maxHeight: Infinity
|
|
3062
|
-
}) :
|
|
3485
|
+
}) : O === "vertical" ? E.value = BoxConstraints({
|
|
3063
3486
|
minWidth: 0,
|
|
3064
3487
|
maxWidth: Infinity,
|
|
3065
|
-
minHeight:
|
|
3066
|
-
maxHeight:
|
|
3067
|
-
}) :
|
|
3488
|
+
minHeight: D,
|
|
3489
|
+
maxHeight: D
|
|
3490
|
+
}) : E.value = BoxConstraints({
|
|
3068
3491
|
minWidth: 0,
|
|
3069
3492
|
maxWidth: Infinity,
|
|
3070
3493
|
minHeight: 0,
|
|
3071
3494
|
maxHeight: Infinity
|
|
3072
3495
|
});
|
|
3073
3496
|
}
|
|
3074
|
-
}),
|
|
3497
|
+
}), O.observe(T.value));
|
|
3075
3498
|
}), onUnmounted(() => {
|
|
3076
|
-
|
|
3077
|
-
}), (e,
|
|
3499
|
+
O?.disconnect();
|
|
3500
|
+
}), (e, w) => (openBlock(), createElementBlock("div", {
|
|
3078
3501
|
ref_key: "el",
|
|
3079
|
-
ref:
|
|
3502
|
+
ref: T,
|
|
3080
3503
|
class: "fluekit-layout-builder",
|
|
3081
|
-
style: normalizeStyle(
|
|
3082
|
-
}, [
|
|
3504
|
+
style: normalizeStyle(j.value)
|
|
3505
|
+
}, [E.value ? renderSlot(e.$slots, "default", {
|
|
3083
3506
|
key: 0,
|
|
3084
|
-
constraints:
|
|
3507
|
+
constraints: E.value
|
|
3085
3508
|
}) : createCommentVNode("", !0)], 4));
|
|
3086
3509
|
}
|
|
3087
3510
|
});
|
|
@@ -3103,19 +3526,19 @@ var globalState = reactive({
|
|
|
3103
3526
|
viewInsets: EdgeInsets.zero
|
|
3104
3527
|
}), listenersAttached = !1, updateGlobalState = () => {
|
|
3105
3528
|
if (typeof window > "u") return;
|
|
3106
|
-
let e = window.innerWidth,
|
|
3529
|
+
let e = window.innerWidth, w = window.innerHeight;
|
|
3107
3530
|
globalState.size = {
|
|
3108
3531
|
width: e,
|
|
3109
|
-
height:
|
|
3110
|
-
}, globalState.devicePixelRatio = window.devicePixelRatio || 1, globalState.orientation = e >
|
|
3532
|
+
height: w
|
|
3533
|
+
}, globalState.devicePixelRatio = window.devicePixelRatio || 1, globalState.orientation = e > w ? Orientation.landscape : Orientation.portrait, globalState.platformBrightness = window.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light", globalState.disableAnimations = !!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches, globalState.highContrast = !!window.matchMedia?.("(prefers-contrast: more)").matches;
|
|
3111
3534
|
}, attachListeners = () => {
|
|
3112
3535
|
typeof window > "u" || listenersAttached || (window.addEventListener("resize", updateGlobalState), [
|
|
3113
3536
|
"(prefers-color-scheme: dark)",
|
|
3114
3537
|
"(prefers-reduced-motion: reduce)",
|
|
3115
3538
|
"(prefers-contrast: more)"
|
|
3116
3539
|
].forEach((e) => {
|
|
3117
|
-
let
|
|
3118
|
-
|
|
3540
|
+
let w = window.matchMedia?.(e);
|
|
3541
|
+
w?.addEventListener ? w.addEventListener("change", updateGlobalState) : w?.addListener && w.addListener(updateGlobalState);
|
|
3119
3542
|
}), updateGlobalState(), listenersAttached = !0);
|
|
3120
3543
|
};
|
|
3121
3544
|
function useMediaQuery() {
|
|
@@ -3125,7 +3548,54 @@ var MediaQuery_default = /* @__PURE__ */ defineComponent({
|
|
|
3125
3548
|
__name: "MediaQuery",
|
|
3126
3549
|
props: { data: {} },
|
|
3127
3550
|
setup(e) {
|
|
3128
|
-
return provide(MediaQueryKey, e.data), (e,
|
|
3551
|
+
return provide(MediaQueryKey, e.data), (e, w) => renderSlot(e.$slots, "default");
|
|
3552
|
+
}
|
|
3553
|
+
}), CupertinoActivityIndicator_default = /* @__PURE__ */ defineComponent({
|
|
3554
|
+
__name: "CupertinoActivityIndicator",
|
|
3555
|
+
props: {
|
|
3556
|
+
radius: { default: 10 },
|
|
3557
|
+
color: { default: "#999999" },
|
|
3558
|
+
animating: {
|
|
3559
|
+
type: Boolean,
|
|
3560
|
+
default: !0
|
|
3561
|
+
}
|
|
3562
|
+
},
|
|
3563
|
+
setup(e) {
|
|
3564
|
+
let T = e, E = computed(() => ({
|
|
3565
|
+
width: `${T.radius * 2}px`,
|
|
3566
|
+
height: `${T.radius * 2}px`,
|
|
3567
|
+
position: "relative",
|
|
3568
|
+
animation: T.animating ? "cupertino-activity-indicator-rotate 1s steps(12) infinite" : "none"
|
|
3569
|
+
})), k = (e) => {
|
|
3570
|
+
let w = e * 30;
|
|
3571
|
+
return {
|
|
3572
|
+
position: "absolute",
|
|
3573
|
+
top: "0",
|
|
3574
|
+
left: "50%",
|
|
3575
|
+
width: `${T.radius * .25}px`,
|
|
3576
|
+
height: `${T.radius * .6}px`,
|
|
3577
|
+
backgroundColor: T.color,
|
|
3578
|
+
borderRadius: `${T.radius * .125}px`,
|
|
3579
|
+
transformOrigin: `center ${T.radius}px`,
|
|
3580
|
+
transform: `translateX(-50%) rotate(${w}deg)`,
|
|
3581
|
+
opacity: 1 - e / 12 * .7
|
|
3582
|
+
};
|
|
3583
|
+
};
|
|
3584
|
+
return (T, D) => (openBlock(), createBlock(Container_default, {
|
|
3585
|
+
width: e.radius * 2,
|
|
3586
|
+
height: e.radius * 2,
|
|
3587
|
+
alignment: "center"
|
|
3588
|
+
}, {
|
|
3589
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
3590
|
+
class: "cupertino-activity-indicator",
|
|
3591
|
+
style: normalizeStyle(E.value)
|
|
3592
|
+
}, [(openBlock(), createElementBlock(Fragment, null, renderList(12, (e) => createElementVNode("div", {
|
|
3593
|
+
key: e,
|
|
3594
|
+
class: "cupertino-activity-indicator-tick",
|
|
3595
|
+
style: normalizeStyle(k(e - 1))
|
|
3596
|
+
}, null, 4)), 64))], 4)]),
|
|
3597
|
+
_: 1
|
|
3598
|
+
}, 8, ["width", "height"]));
|
|
3129
3599
|
}
|
|
3130
3600
|
}), _hoisted_1 = { class: "snackbar-overlay" }, SnackBarComponent_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
3131
3601
|
__name: "SnackBarComponent",
|
|
@@ -3135,16 +3605,16 @@ var MediaQuery_default = /* @__PURE__ */ defineComponent({
|
|
|
3135
3605
|
duration: { default: 4e3 }
|
|
3136
3606
|
},
|
|
3137
3607
|
emits: ["action", "close"],
|
|
3138
|
-
setup(e, { emit:
|
|
3139
|
-
let
|
|
3140
|
-
|
|
3608
|
+
setup(e, { emit: w }) {
|
|
3609
|
+
let T = e, E = w, j = () => {
|
|
3610
|
+
E("action"), E("close");
|
|
3141
3611
|
};
|
|
3142
3612
|
onMounted(() => {
|
|
3143
3613
|
setTimeout(() => {
|
|
3144
|
-
|
|
3145
|
-
},
|
|
3614
|
+
E("close");
|
|
3615
|
+
}, T.duration);
|
|
3146
3616
|
});
|
|
3147
|
-
let
|
|
3617
|
+
let M = computed(() => BoxDecoration({
|
|
3148
3618
|
color: "#323232",
|
|
3149
3619
|
borderRadius: BorderRadius.circular(4),
|
|
3150
3620
|
boxShadow: [{
|
|
@@ -3156,13 +3626,13 @@ var MediaQuery_default = /* @__PURE__ */ defineComponent({
|
|
|
3156
3626
|
}
|
|
3157
3627
|
}]
|
|
3158
3628
|
}));
|
|
3159
|
-
return (
|
|
3629
|
+
return (w, T) => (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(Container_default, {
|
|
3160
3630
|
margin: unref(EdgeInsets).all(8),
|
|
3161
3631
|
padding: unref(EdgeInsets).symmetric({
|
|
3162
3632
|
horizontal: 16,
|
|
3163
3633
|
vertical: 14
|
|
3164
3634
|
}),
|
|
3165
|
-
decoration:
|
|
3635
|
+
decoration: M.value,
|
|
3166
3636
|
width: "100%",
|
|
3167
3637
|
constraints: unref(BoxConstraints)({ maxWidth: 600 })
|
|
3168
3638
|
}, {
|
|
@@ -3178,7 +3648,7 @@ var MediaQuery_default = /* @__PURE__ */ defineComponent({
|
|
|
3178
3648
|
_: 1
|
|
3179
3649
|
}), e.actionLabel ? (openBlock(), createBlock(GestureDetector_default, {
|
|
3180
3650
|
key: 0,
|
|
3181
|
-
onTap:
|
|
3651
|
+
onTap: j
|
|
3182
3652
|
}, {
|
|
3183
3653
|
default: withCtx(() => [createVNode(Container_default, { margin: unref(EdgeInsets).only({ left: 16 }) }, {
|
|
3184
3654
|
default: withCtx(() => [createVNode(Text_default, { style: normalizeStyle({
|
|
@@ -3205,19 +3675,19 @@ var MediaQuery_default = /* @__PURE__ */ defineComponent({
|
|
|
3205
3675
|
}
|
|
3206
3676
|
}), [["__scopeId", "data-v-d8abf3ed"]]), SnackBar = class {
|
|
3207
3677
|
static show(e) {
|
|
3208
|
-
let
|
|
3209
|
-
|
|
3210
|
-
let
|
|
3211
|
-
|
|
3678
|
+
let w = document.getElementById("fluekit-snackbar");
|
|
3679
|
+
w && (render(null, w), document.body.removeChild(w));
|
|
3680
|
+
let T = document.createElement("div");
|
|
3681
|
+
T.id = "fluekit-snackbar", document.body.appendChild(T), render(createVNode(SnackBarComponent_default, {
|
|
3212
3682
|
content: e.content,
|
|
3213
3683
|
actionLabel: e.actionLabel,
|
|
3214
3684
|
onAction: e.onAction,
|
|
3215
3685
|
duration: e.duration,
|
|
3216
3686
|
onClose: () => {
|
|
3217
|
-
|
|
3687
|
+
T.parentNode && (render(null, T), document.body.removeChild(T));
|
|
3218
3688
|
}
|
|
3219
|
-
}),
|
|
3689
|
+
}), T);
|
|
3220
3690
|
}
|
|
3221
3691
|
};
|
|
3222
3692
|
setTransform(!1);
|
|
3223
|
-
export { AlertDialog_default as AlertDialog, Align_default as Align, Alignment, AnimatedContainer_default as AnimatedContainer, AnimatedOpacity_default as AnimatedOpacity, AssetImage, BlurStyle, Border, BorderRadius, BorderSide, BottomSheet_default as BottomSheet, Box_default as Box, BoxAlignment, BoxConstraints, BoxDecoration, BoxFit, BoxShadow, BoxShape, Builder_default as Builder, Button_default as Button, ButtonStyle, Card_default as Card, Center_default as Center, Checkbox_default as Checkbox, Clip, ClipOval_default as ClipOval, ClipRRect_default as ClipRRect, Column_default as Column, Container_default as Container, CrossAxisAlignment, DecorationImage, Divider_default as Divider, EdgeInsets, Expanded_default as Expanded, Fixed_default as Fixed, FontStyle, FontWeight, GestureDetector_default as GestureDetector, GridView_default as GridView, IgnorePointer_default as IgnorePointer, Image_default as Image, InkWell_default as InkWell, LayoutBuilder_default as LayoutBuilder, LinearGradient, ListTile_default as ListTile, ListView_default as ListView, MainAxisAlignment, Matrix4, MediaQuery_default as MediaQuery, MediaQueryKey, MemoryImage, NetworkImage, Opacity_default as Opacity, Orientation, OutlineInputBorder, Padding_default as Padding, Positioned_default as Positioned, RadialGradient, Radio_default as Radio, Row_default as Row, SafeArea_default as SafeArea, ScrollView_default as ScrollView, SegmentedControl_default as SegmentedControl, Size, SizedBox_default as SizedBox, Slider_default as Slider, SnackBar, Spacer_default as Spacer, Stack_default as Stack, StackFit, Sticky_default as Sticky, Switch_default as Switch, Text_default as Text, TextAlign, TextArea_default as TextArea, TextBaseline, TextDecoration, TextDecorationStyle, TextDirection, TextField_default as TextField, TextOverflow, TextStyle, TileMode, Transform_default as Transform, UnderlineInputBorder, Wrap_default as Wrap, borderRadiusToStyle, borderSideToStyle, borderToStyle, boxConstraintsToStyle, boxDecorationToStyle, boxShadowToCSS, buttonStyleToStyle, createAssetImage, decorationImageToStyle, edgeInsetsToStyle, isBorderRadius, isBorderSide, isBorders, isBoxConstraints, isBoxDecoration, isBoxShadow, isEdgeInsets, isImageProvider, isTextStyle, marginToStyle, matrix4ToCSSStyle, normalizeSrc, paddingToStyle, px2vw, setAssetBaseURL, setBaseUrl, setDefaultVW, setTransform, sizeToStyle, toCSSStyle as textStyleToCSSStyle, toCSSStyle, useMediaQuery };
|
|
3693
|
+
export { AlertDialog_default as AlertDialog, Align_default as Align, Alignment, AnimatedContainer_default as AnimatedContainer, AnimatedOpacity_default as AnimatedOpacity, AssetImage, BlurStyle, Border, BorderRadius, BorderSide, BottomSheet_default as BottomSheet, Box_default as Box, BoxAlignment, BoxConstraints, BoxDecoration, BoxFit, BoxShadow, BoxShape, Builder_default as Builder, Button_default as Button, ButtonStyle, Card_default as Card, Center_default as Center, Checkbox_default as Checkbox, CheckboxGroup_default as CheckboxGroup, Clip, ClipOval_default as ClipOval, ClipRRect_default as ClipRRect, Column_default as Column, Container_default as Container, CrossAxisAlignment, CupertinoActivityIndicator_default as CupertinoActivityIndicator, DecorationImage, Divider_default as Divider, EdgeInsets, Expanded_default as Expanded, Fixed_default as Fixed, FontStyle, FontWeight, GestureDetector_default as GestureDetector, GridView_default as GridView, IgnorePointer_default as IgnorePointer, Image_default as Image, InkWell_default as InkWell, LayoutBuilder_default as LayoutBuilder, LinearGradient, ListTile_default as ListTile, ListView_default as ListView, MainAxisAlignment, Matrix4, MediaQuery_default as MediaQuery, MediaQueryKey, MemoryImage, NetworkImage, Opacity_default as Opacity, Orientation, OutlineInputBorder, Padding_default as Padding, Positioned_default as Positioned, RadialGradient, Radio_default as Radio, RadioGroup_default as RadioGroup, RadioListTile_default as RadioListTile, RangeSlider_default as RangeSlider, Row_default as Row, SafeArea_default as SafeArea, ScrollView_default as ScrollView, SegmentedControl_default as SegmentedControl, Size, SizedBox_default as SizedBox, Slider_default as Slider, SnackBar, Spacer_default as Spacer, Stack_default as Stack, StackFit, Sticky_default as Sticky, Switch_default as Switch, Text_default as Text, TextAlign, TextArea_default as TextArea, TextBaseline, TextDecoration, TextDecorationStyle, TextDirection, TextField_default as TextField, TextOverflow, TextStyle, TileMode, Transform_default as Transform, UnderlineInputBorder, Wrap_default as Wrap, borderRadiusToStyle, borderSideToStyle, borderToStyle, boxConstraintsToStyle, boxDecorationToStyle, boxShadowToCSS, buttonStyleToStyle, createAssetImage, decorationImageToStyle, edgeInsetsToStyle, isBorderRadius, isBorderSide, isBorders, isBoxConstraints, isBoxDecoration, isBoxShadow, isEdgeInsets, isImageProvider, isTextStyle, marginToStyle, matrix4ToCSSStyle, normalizeSrc, paddingToStyle, px2vw, setAssetBaseURL, setBaseUrl, setDefaultVW, setTransform, sizeToStyle, toCSSStyle as textStyleToCSSStyle, toCSSStyle, useMediaQuery };
|