fluekit 1.5.4 → 1.5.6
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/Border.d.ts +6 -0
- package/dist/Checkbox.d.ts +2 -0
- package/dist/InkWell.d.ts +5 -1
- package/dist/ListTile.d.ts +7 -3
- package/dist/Matrix4.d.ts +29 -0
- package/dist/Radio.d.ts +6 -2
- package/dist/SegmentedControl.d.ts +40 -0
- package/dist/Slider.d.ts +2 -0
- package/dist/SnackBarComponent.d.ts +7 -3
- package/dist/Switch.d.ts +2 -0
- package/dist/Transform.d.ts +2 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +346 -81
- package/package.json +6 -6
package/dist/Border.d.ts
CHANGED
|
@@ -23,6 +23,12 @@ export interface BorderFunction {
|
|
|
23
23
|
width?: number | string;
|
|
24
24
|
style?: BorderStyleType;
|
|
25
25
|
}) => Borders;
|
|
26
|
+
only: (options?: {
|
|
27
|
+
top?: BorderSide;
|
|
28
|
+
right?: BorderSide;
|
|
29
|
+
bottom?: BorderSide;
|
|
30
|
+
left?: BorderSide;
|
|
31
|
+
}) => Borders;
|
|
26
32
|
}
|
|
27
33
|
export declare const Border: BorderFunction;
|
|
28
34
|
/**
|
package/dist/Checkbox.d.ts
CHANGED
|
@@ -5,8 +5,10 @@ interface Props {
|
|
|
5
5
|
checkColor?: string;
|
|
6
6
|
}
|
|
7
7
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
8
|
+
change: (value: boolean) => any;
|
|
8
9
|
"update:value": (value: boolean) => any;
|
|
9
10
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
11
|
+
onChange?: ((value: boolean) => any) | undefined;
|
|
10
12
|
"onUpdate:value"?: ((value: boolean) => any) | undefined;
|
|
11
13
|
}>, {
|
|
12
14
|
activeColor: string;
|
package/dist/InkWell.d.ts
CHANGED
|
@@ -13,7 +13,11 @@ declare function __VLS_template(): {
|
|
|
13
13
|
rootEl: any;
|
|
14
14
|
};
|
|
15
15
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
-
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
17
|
+
tap: () => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
19
|
+
onTap?: (() => any) | undefined;
|
|
20
|
+
}>, {
|
|
17
21
|
splashColor: string;
|
|
18
22
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
23
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
package/dist/ListTile.d.ts
CHANGED
|
@@ -4,8 +4,6 @@ interface Props {
|
|
|
4
4
|
title?: string;
|
|
5
5
|
subtitle?: string;
|
|
6
6
|
trailing?: any;
|
|
7
|
-
onTap?: () => void;
|
|
8
|
-
onLongPress?: () => void;
|
|
9
7
|
enabled?: boolean;
|
|
10
8
|
selected?: boolean;
|
|
11
9
|
tileColor?: string;
|
|
@@ -27,7 +25,13 @@ declare function __VLS_template(): {
|
|
|
27
25
|
rootEl: any;
|
|
28
26
|
};
|
|
29
27
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
30
|
-
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}
|
|
28
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
29
|
+
tap: () => any;
|
|
30
|
+
"long-press": () => any;
|
|
31
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
32
|
+
onTap?: (() => any) | undefined;
|
|
33
|
+
"onLong-press"?: (() => any) | undefined;
|
|
34
|
+
}>, {
|
|
31
35
|
dense: boolean;
|
|
32
36
|
enabled: boolean;
|
|
33
37
|
selected: boolean;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CSSProperties } from 'vue';
|
|
2
|
+
declare const MATRIX4_SYMBOL: unique symbol;
|
|
3
|
+
export interface Matrix4 {
|
|
4
|
+
_storage: Float32Array;
|
|
5
|
+
[MATRIX4_SYMBOL]: true;
|
|
6
|
+
clone(): Matrix4;
|
|
7
|
+
multiply(other: Matrix4): Matrix4;
|
|
8
|
+
translated(x: number, y: number, z?: number): Matrix4;
|
|
9
|
+
scaled(x: number, y: number, z?: number): Matrix4;
|
|
10
|
+
rotatedX(radians: number): Matrix4;
|
|
11
|
+
rotatedY(radians: number): Matrix4;
|
|
12
|
+
rotatedZ(radians: number): Matrix4;
|
|
13
|
+
toString(): string;
|
|
14
|
+
}
|
|
15
|
+
export declare function Matrix4(arg?: Float32Array | number[]): Matrix4;
|
|
16
|
+
export declare namespace Matrix4 {
|
|
17
|
+
var identity: () => Matrix4;
|
|
18
|
+
var fromList: (list: number[]) => Matrix4;
|
|
19
|
+
var rotationX: (radians: number) => Matrix4;
|
|
20
|
+
var rotationY: (radians: number) => Matrix4;
|
|
21
|
+
var rotationZ: (radians: number) => Matrix4;
|
|
22
|
+
var translation: (x: number, y: number, z?: number) => Matrix4;
|
|
23
|
+
var scaling: (x: number, y: number, z?: number) => Matrix4;
|
|
24
|
+
var diagonal3: (x: number, y: number, z: number) => Matrix4;
|
|
25
|
+
var skewX: (alpha: number) => Matrix4;
|
|
26
|
+
var skewY: (beta: number) => Matrix4;
|
|
27
|
+
}
|
|
28
|
+
export declare function matrix4ToCSSStyle(transform?: Matrix4): CSSProperties;
|
|
29
|
+
export {};
|
package/dist/Radio.d.ts
CHANGED
|
@@ -6,12 +6,16 @@ export interface RadioProps<T> {
|
|
|
6
6
|
}
|
|
7
7
|
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
8
8
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
9
|
+
readonly onChange?: ((value: T) => any) | undefined;
|
|
9
10
|
readonly "onUpdate:groupValue"?: ((value: T) => any) | undefined;
|
|
10
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:groupValue"> & RadioProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
11
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChange" | "onUpdate:groupValue"> & RadioProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
11
12
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
12
13
|
attrs: any;
|
|
13
14
|
slots: {};
|
|
14
|
-
emit:
|
|
15
|
+
emit: {
|
|
16
|
+
(e: "update:groupValue", value: T): void;
|
|
17
|
+
(e: "change", value: T): void;
|
|
18
|
+
};
|
|
15
19
|
}>) => import('vue').VNode & {
|
|
16
20
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
17
21
|
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { BoxDecoration } from './BoxDecoration';
|
|
2
|
+
import { EdgeInsets } from './EdgeInsets';
|
|
3
|
+
export interface SegmentedControlItem<T> {
|
|
4
|
+
value: T;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
export interface SegmentedControlProps<T> {
|
|
8
|
+
modelValue: T;
|
|
9
|
+
items: SegmentedControlItem<T>[];
|
|
10
|
+
selectedColor?: string;
|
|
11
|
+
unselectedColor?: string;
|
|
12
|
+
borderColor?: string;
|
|
13
|
+
padding?: EdgeInsets;
|
|
14
|
+
decoration?: BoxDecoration;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: <T extends string | number | boolean>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
17
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
18
|
+
readonly onChange?: ((value: T) => any) | undefined;
|
|
19
|
+
readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
20
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue"> & SegmentedControlProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
21
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
22
|
+
attrs: any;
|
|
23
|
+
slots: {
|
|
24
|
+
label?(_: {
|
|
25
|
+
item: SegmentedControlItem<T>;
|
|
26
|
+
selected: boolean;
|
|
27
|
+
index: number;
|
|
28
|
+
}): any;
|
|
29
|
+
};
|
|
30
|
+
emit: {
|
|
31
|
+
(e: "update:modelValue", value: T): void;
|
|
32
|
+
(e: "change", value: T): void;
|
|
33
|
+
};
|
|
34
|
+
}>) => import('vue').VNode & {
|
|
35
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
36
|
+
};
|
|
37
|
+
export default _default;
|
|
38
|
+
type __VLS_PrettifyLocal<T> = {
|
|
39
|
+
[K in keyof T]: T[K];
|
|
40
|
+
} & {};
|
package/dist/Slider.d.ts
CHANGED
|
@@ -8,8 +8,10 @@ interface Props {
|
|
|
8
8
|
thumbColor?: string;
|
|
9
9
|
}
|
|
10
10
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
11
|
+
change: (value: number) => any;
|
|
11
12
|
"update:value": (value: number) => any;
|
|
12
13
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
14
|
+
onChange?: ((value: number) => any) | undefined;
|
|
13
15
|
"onUpdate:value"?: ((value: number) => any) | undefined;
|
|
14
16
|
}>, {
|
|
15
17
|
activeColor: string;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
interface Props {
|
|
2
2
|
content: string;
|
|
3
3
|
actionLabel?: string;
|
|
4
|
-
onAction?: () => void;
|
|
5
|
-
onClose: () => void;
|
|
6
4
|
duration?: number;
|
|
7
5
|
}
|
|
8
|
-
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}
|
|
6
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7
|
+
close: () => any;
|
|
8
|
+
action: () => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
10
|
+
onClose?: (() => any) | undefined;
|
|
11
|
+
onAction?: (() => any) | undefined;
|
|
12
|
+
}>, {
|
|
9
13
|
duration: number;
|
|
10
14
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
15
|
export default _default;
|
package/dist/Switch.d.ts
CHANGED
|
@@ -7,8 +7,10 @@ interface Props {
|
|
|
7
7
|
inactiveTrackColor?: string;
|
|
8
8
|
}
|
|
9
9
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
10
|
+
change: (value: boolean) => any;
|
|
10
11
|
"update:value": (value: boolean) => any;
|
|
11
12
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
13
|
+
onChange?: ((value: boolean) => any) | undefined;
|
|
12
14
|
"onUpdate:value"?: ((value: boolean) => any) | undefined;
|
|
13
15
|
}>, {
|
|
14
16
|
activeColor: string;
|
package/dist/Transform.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Alignment } from './FlexProps';
|
|
2
|
+
import { Matrix4 } from './Matrix4';
|
|
2
3
|
interface Props {
|
|
3
4
|
/**
|
|
4
5
|
* CSS 变换字符串
|
|
5
6
|
* 例如: "rotate(45deg)", "scale(1.5)", "translate(10px, 20px)"
|
|
6
7
|
* 对应 Flutter 的 transform (Matrix4)
|
|
7
8
|
*/
|
|
8
|
-
transform?:
|
|
9
|
+
transform?: Matrix4;
|
|
9
10
|
/**
|
|
10
11
|
* 变换的原点对齐方式
|
|
11
12
|
* 对应 Flutter 的 alignment
|
package/dist/index.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.fluekit-button[data-v-a5efef4c]{appearance:none;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;font-family:inherit;font-size:inherit;line-height:inherit;color:inherit;text-align:inherit;box-sizing:border-box;background:0 0;border:0;outline:0;margin:0;padding:0}.fluekit-button[data-v-a5efef4c]:disabled{cursor:default}.fluekit-image[data-v-ce382550]{display:block}.flutter-list-view[data-v-7ba20c73]{flex-direction:column;display:flex}.list-view-shrink-wrap[data-v-7ba20c73]{flex:none}.flutter-stack[data-v-aefe47c2]>*{grid-area:1/1/2/2}.fluekit-text-field[data-v-40723984]{margin-top:16px;font-family:inherit;position:relative}.fluekit-input-container[data-v-40723984]{box-sizing:border-box;width:100%}.fluekit-input-element[data-v-40723984]{width:100%;color:inherit;resize:none;background:0 0;border:none;outline:none;flex:1;margin:0;padding:0;font-family:inherit;font-size:16px}.fluekit-input-label[data-v-40723984]{z-index:1}.fluekit-input-footer[data-v-40723984]{justify-content:space-between;margin-top:4px;display:flex}.fluekit-input-helper[data-v-40723984]{color:#666;font-size:12px}.fluekit-input-helper-spacer[data-v-40723984]{flex:1}.fluekit-input-counter[data-v-40723984]{color:#666;margin-left:auto;font-size:12px}.fluekit-input-helper.is-error[data-v-40723984]{color:#f44336}.flutter-transform[data-v-
|
|
1
|
+
.fluekit-button[data-v-a5efef4c]{appearance:none;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;font-family:inherit;font-size:inherit;line-height:inherit;color:inherit;text-align:inherit;box-sizing:border-box;background:0 0;border:0;outline:0;margin:0;padding:0}.fluekit-button[data-v-a5efef4c]:disabled{cursor:default}.fluekit-image[data-v-ce382550]{display:block}.flutter-list-view[data-v-7ba20c73]{flex-direction:column;display:flex}.list-view-shrink-wrap[data-v-7ba20c73]{flex:none}.flutter-stack[data-v-aefe47c2]>*{grid-area:1/1/2/2}.fluekit-text-field[data-v-40723984]{margin-top:16px;font-family:inherit;position:relative}.fluekit-input-container[data-v-40723984]{box-sizing:border-box;width:100%}.fluekit-input-element[data-v-40723984]{width:100%;color:inherit;resize:none;background:0 0;border:none;outline:none;flex:1;margin:0;padding:0;font-family:inherit;font-size:16px}.fluekit-input-label[data-v-40723984]{z-index:1}.fluekit-input-footer[data-v-40723984]{justify-content:space-between;margin-top:4px;display:flex}.fluekit-input-helper[data-v-40723984]{color:#666;font-size:12px}.fluekit-input-helper-spacer[data-v-40723984]{flex:1}.fluekit-input-counter[data-v-40723984]{color:#666;margin-left:auto;font-size:12px}.fluekit-input-helper.is-error[data-v-40723984]{color:#f44336}.flutter-transform[data-v-f99c0949]{box-sizing:border-box}.ink-well[data-v-e91fe828]{cursor:pointer;display:block;position:relative;overflow:hidden}.ink-well.disabled[data-v-e91fe828]{cursor:default}.ripple[data-v-e91fe828]{pointer-events:none;border-radius:50%;animation:.6s linear ripple-e91fe828;position:absolute;transform:scale(0)}@keyframes ripple-e91fe828{to{opacity:0;transform:scale(4)}}.slider-container[data-v-bccfa37a]{width:100%;position:relative}.dialog-overlay[data-v-2eee844d]{z-index:9999;background-color:#0000008a;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.bottom-sheet-overlay[data-v-6948b23d]{z-index:9999;background-color:#0000008a;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.snackbar-overlay[data-v-d8abf3ed]{z-index:9999;pointer-events:none;justify-content:center;display:flex;position:fixed;bottom:0;left:0;right:0}.snackbar-overlay[data-v-d8abf3ed]>*{pointer-events:auto}
|
|
2
2
|
/*$vite$:1*/
|
package/dist/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export { default as Radio } from './Radio';
|
|
|
40
40
|
export { default as Slider } from './Slider';
|
|
41
41
|
export { default as AlertDialog } from './AlertDialog';
|
|
42
42
|
export { default as BottomSheet } from './BottomSheet';
|
|
43
|
+
export { default as SegmentedControl } from './SegmentedControl';
|
|
43
44
|
export { SnackBar } from './SnackBar';
|
|
44
45
|
export * from './Border';
|
|
45
46
|
export * from './BoxConstraints';
|
|
@@ -53,6 +54,7 @@ export { StackFit, CrossAxisAlignment, MainAxisAlignment } from './FlexProps';
|
|
|
53
54
|
export * from './Gradient';
|
|
54
55
|
export * from './ImageProvider';
|
|
55
56
|
export * from './InputDecoration';
|
|
57
|
+
export * from './Matrix4';
|
|
56
58
|
export * from './Size';
|
|
57
59
|
export * from './TextStyle';
|
|
58
60
|
export { px2vw, setDefaultVW, setTransform } from './px2vw';
|
package/dist/index.js
CHANGED
|
@@ -249,20 +249,26 @@ const Border = Object.assign((e) => ({
|
|
|
249
249
|
color: e.color || "#000",
|
|
250
250
|
style: e.style || "solid",
|
|
251
251
|
[BORDER_SIDE_SYMBOL]: !0
|
|
252
|
-
}), {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
252
|
+
}), {
|
|
253
|
+
all: ({ color: e, width: C, style: w } = {}) => {
|
|
254
|
+
let T = BorderSide({
|
|
255
|
+
color: e,
|
|
256
|
+
width: C,
|
|
257
|
+
style: w
|
|
258
|
+
});
|
|
259
|
+
return {
|
|
260
|
+
top: T,
|
|
261
|
+
bottom: T,
|
|
262
|
+
left: T,
|
|
263
|
+
right: T,
|
|
264
|
+
[BORDERS_SYMBOL]: !0
|
|
265
|
+
};
|
|
266
|
+
},
|
|
267
|
+
only: (e = {}) => ({
|
|
268
|
+
...e,
|
|
263
269
|
[BORDERS_SYMBOL]: !0
|
|
264
|
-
}
|
|
265
|
-
}
|
|
270
|
+
})
|
|
271
|
+
});
|
|
266
272
|
function isBorderSide(e) {
|
|
267
273
|
return isPlainObject(e) ? BORDER_SIDE_SYMBOL in e : !1;
|
|
268
274
|
}
|
|
@@ -2058,7 +2064,194 @@ var _hoisted_1$1 = {
|
|
|
2058
2064
|
key: "1"
|
|
2059
2065
|
} : void 0]), 1040, ["max-lines"]));
|
|
2060
2066
|
}
|
|
2061
|
-
}),
|
|
2067
|
+
}), MATRIX4_SYMBOL = Symbol("Matrix4");
|
|
2068
|
+
function Matrix4(e) {
|
|
2069
|
+
let C;
|
|
2070
|
+
return C = e ? new Float32Array(e) : new Float32Array([
|
|
2071
|
+
1,
|
|
2072
|
+
0,
|
|
2073
|
+
0,
|
|
2074
|
+
0,
|
|
2075
|
+
0,
|
|
2076
|
+
1,
|
|
2077
|
+
0,
|
|
2078
|
+
0,
|
|
2079
|
+
0,
|
|
2080
|
+
0,
|
|
2081
|
+
1,
|
|
2082
|
+
0,
|
|
2083
|
+
0,
|
|
2084
|
+
0,
|
|
2085
|
+
0,
|
|
2086
|
+
1
|
|
2087
|
+
]), {
|
|
2088
|
+
_storage: C,
|
|
2089
|
+
[MATRIX4_SYMBOL]: !0,
|
|
2090
|
+
clone() {
|
|
2091
|
+
return Matrix4(this._storage);
|
|
2092
|
+
},
|
|
2093
|
+
multiply(e) {
|
|
2094
|
+
let C = this._storage, w = e._storage, T = new Float32Array(16);
|
|
2095
|
+
for (let e = 0; e < 4; e++) for (let E = 0; E < 4; E++) {
|
|
2096
|
+
let D = 0;
|
|
2097
|
+
for (let T = 0; T < 4; T++) D += (C[T * 4 + e] ?? 0) * (w[E * 4 + T] ?? 0);
|
|
2098
|
+
T[E * 4 + e] = D;
|
|
2099
|
+
}
|
|
2100
|
+
return Matrix4(T);
|
|
2101
|
+
},
|
|
2102
|
+
translated(e, C, w = 0) {
|
|
2103
|
+
return this.multiply(Matrix4.translation(e, C, w));
|
|
2104
|
+
},
|
|
2105
|
+
scaled(e, C, w = 1) {
|
|
2106
|
+
return this.multiply(Matrix4.scaling(e, C, w));
|
|
2107
|
+
},
|
|
2108
|
+
rotatedX(e) {
|
|
2109
|
+
return this.multiply(Matrix4.rotationX(e));
|
|
2110
|
+
},
|
|
2111
|
+
rotatedY(e) {
|
|
2112
|
+
return this.multiply(Matrix4.rotationY(e));
|
|
2113
|
+
},
|
|
2114
|
+
rotatedZ(e) {
|
|
2115
|
+
return this.multiply(Matrix4.rotationZ(e));
|
|
2116
|
+
},
|
|
2117
|
+
toString() {
|
|
2118
|
+
return `matrix3d(${this._storage.join(",")})`;
|
|
2119
|
+
}
|
|
2120
|
+
};
|
|
2121
|
+
}
|
|
2122
|
+
Matrix4.identity = () => Matrix4(), Matrix4.fromList = (e) => Matrix4(e), Matrix4.rotationX = (e) => {
|
|
2123
|
+
let C = Math.cos(e), w = Math.sin(e);
|
|
2124
|
+
return Matrix4([
|
|
2125
|
+
1,
|
|
2126
|
+
0,
|
|
2127
|
+
0,
|
|
2128
|
+
0,
|
|
2129
|
+
0,
|
|
2130
|
+
C,
|
|
2131
|
+
w,
|
|
2132
|
+
0,
|
|
2133
|
+
0,
|
|
2134
|
+
-w,
|
|
2135
|
+
C,
|
|
2136
|
+
0,
|
|
2137
|
+
0,
|
|
2138
|
+
0,
|
|
2139
|
+
0,
|
|
2140
|
+
1
|
|
2141
|
+
]);
|
|
2142
|
+
}, Matrix4.rotationY = (e) => {
|
|
2143
|
+
let C = Math.cos(e), w = Math.sin(e);
|
|
2144
|
+
return Matrix4([
|
|
2145
|
+
C,
|
|
2146
|
+
0,
|
|
2147
|
+
-w,
|
|
2148
|
+
0,
|
|
2149
|
+
0,
|
|
2150
|
+
1,
|
|
2151
|
+
0,
|
|
2152
|
+
0,
|
|
2153
|
+
w,
|
|
2154
|
+
0,
|
|
2155
|
+
C,
|
|
2156
|
+
0,
|
|
2157
|
+
0,
|
|
2158
|
+
0,
|
|
2159
|
+
0,
|
|
2160
|
+
1
|
|
2161
|
+
]);
|
|
2162
|
+
}, Matrix4.rotationZ = (e) => {
|
|
2163
|
+
let C = Math.cos(e), w = Math.sin(e);
|
|
2164
|
+
return Matrix4([
|
|
2165
|
+
C,
|
|
2166
|
+
w,
|
|
2167
|
+
0,
|
|
2168
|
+
0,
|
|
2169
|
+
-w,
|
|
2170
|
+
C,
|
|
2171
|
+
0,
|
|
2172
|
+
0,
|
|
2173
|
+
0,
|
|
2174
|
+
0,
|
|
2175
|
+
1,
|
|
2176
|
+
0,
|
|
2177
|
+
0,
|
|
2178
|
+
0,
|
|
2179
|
+
0,
|
|
2180
|
+
1
|
|
2181
|
+
]);
|
|
2182
|
+
}, Matrix4.translation = (e, C, w = 0) => Matrix4([
|
|
2183
|
+
1,
|
|
2184
|
+
0,
|
|
2185
|
+
0,
|
|
2186
|
+
0,
|
|
2187
|
+
0,
|
|
2188
|
+
1,
|
|
2189
|
+
0,
|
|
2190
|
+
0,
|
|
2191
|
+
0,
|
|
2192
|
+
0,
|
|
2193
|
+
1,
|
|
2194
|
+
0,
|
|
2195
|
+
e,
|
|
2196
|
+
C,
|
|
2197
|
+
w,
|
|
2198
|
+
1
|
|
2199
|
+
]), Matrix4.scaling = (e, C, w = 1) => Matrix4([
|
|
2200
|
+
e,
|
|
2201
|
+
0,
|
|
2202
|
+
0,
|
|
2203
|
+
0,
|
|
2204
|
+
0,
|
|
2205
|
+
C,
|
|
2206
|
+
0,
|
|
2207
|
+
0,
|
|
2208
|
+
0,
|
|
2209
|
+
0,
|
|
2210
|
+
w,
|
|
2211
|
+
0,
|
|
2212
|
+
0,
|
|
2213
|
+
0,
|
|
2214
|
+
0,
|
|
2215
|
+
1
|
|
2216
|
+
]), Matrix4.diagonal3 = (e, C, w) => Matrix4.scaling(e, C, w), Matrix4.skewX = (e) => Matrix4([
|
|
2217
|
+
1,
|
|
2218
|
+
0,
|
|
2219
|
+
0,
|
|
2220
|
+
0,
|
|
2221
|
+
Math.tan(e),
|
|
2222
|
+
1,
|
|
2223
|
+
0,
|
|
2224
|
+
0,
|
|
2225
|
+
0,
|
|
2226
|
+
0,
|
|
2227
|
+
1,
|
|
2228
|
+
0,
|
|
2229
|
+
0,
|
|
2230
|
+
0,
|
|
2231
|
+
0,
|
|
2232
|
+
1
|
|
2233
|
+
]), Matrix4.skewY = (e) => Matrix4([
|
|
2234
|
+
1,
|
|
2235
|
+
Math.tan(e),
|
|
2236
|
+
0,
|
|
2237
|
+
0,
|
|
2238
|
+
0,
|
|
2239
|
+
1,
|
|
2240
|
+
0,
|
|
2241
|
+
0,
|
|
2242
|
+
0,
|
|
2243
|
+
0,
|
|
2244
|
+
1,
|
|
2245
|
+
0,
|
|
2246
|
+
0,
|
|
2247
|
+
0,
|
|
2248
|
+
0,
|
|
2249
|
+
1
|
|
2250
|
+
]);
|
|
2251
|
+
function matrix4ToCSSStyle(e) {
|
|
2252
|
+
return e ? { transform: e.toString() } : {};
|
|
2253
|
+
}
|
|
2254
|
+
var Transform_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
2062
2255
|
inheritAttrs: !1,
|
|
2063
2256
|
__name: "Transform",
|
|
2064
2257
|
props: {
|
|
@@ -2069,7 +2262,7 @@ var _hoisted_1$1 = {
|
|
|
2069
2262
|
setup(e) {
|
|
2070
2263
|
let C = e, w = computed(() => {
|
|
2071
2264
|
let e = {
|
|
2072
|
-
|
|
2265
|
+
...matrix4ToCSSStyle(C.transform),
|
|
2073
2266
|
display: "flex",
|
|
2074
2267
|
flexDirection: "column",
|
|
2075
2268
|
flexShrink: 0
|
|
@@ -2081,7 +2274,7 @@ var _hoisted_1$1 = {
|
|
|
2081
2274
|
style: normalizeStyle(w.value)
|
|
2082
2275
|
}, [renderSlot(e.$slots, "default", {}, void 0, !0)], 4));
|
|
2083
2276
|
}
|
|
2084
|
-
}), [["__scopeId", "data-v-
|
|
2277
|
+
}), [["__scopeId", "data-v-f99c0949"]]), Wrap_default = /* @__PURE__ */ defineComponent({
|
|
2085
2278
|
inheritAttrs: !1,
|
|
2086
2279
|
__name: "Wrap",
|
|
2087
2280
|
props: {
|
|
@@ -2204,8 +2397,6 @@ var _hoisted_1$1 = {
|
|
|
2204
2397
|
title: {},
|
|
2205
2398
|
subtitle: {},
|
|
2206
2399
|
trailing: {},
|
|
2207
|
-
onTap: {},
|
|
2208
|
-
onLongPress: {},
|
|
2209
2400
|
enabled: {
|
|
2210
2401
|
type: Boolean,
|
|
2211
2402
|
default: !0
|
|
@@ -2224,18 +2415,23 @@ var _hoisted_1$1 = {
|
|
|
2224
2415
|
default: !1
|
|
2225
2416
|
}
|
|
2226
2417
|
},
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2418
|
+
emits: ["tap", "long-press"],
|
|
2419
|
+
setup(e, { emit: C }) {
|
|
2420
|
+
let w = C, T = () => {
|
|
2421
|
+
A.enabled && w("tap");
|
|
2422
|
+
}, k = () => {
|
|
2423
|
+
A.enabled && w("long-press");
|
|
2424
|
+
}, A = e, j = computed(() => TextStyle({
|
|
2425
|
+
fontSize: A.dense ? 13 : 16,
|
|
2426
|
+
color: A.textColor || (A.enabled ? "rgba(0,0,0,0.87)" : "rgba(0,0,0,0.38)"),
|
|
2427
|
+
fontWeight: A.selected ? FontWeight.w600 : FontWeight.w400
|
|
2428
|
+
})), M = computed(() => TextStyle({
|
|
2429
|
+
fontSize: A.dense ? 12 : 14,
|
|
2430
|
+
color: A.textColor || (A.enabled ? "rgba(0,0,0,0.6)" : "rgba(0,0,0,0.38)")
|
|
2235
2431
|
}));
|
|
2236
|
-
return (C,
|
|
2237
|
-
|
|
2238
|
-
|
|
2432
|
+
return (C, w) => (openBlock(), createBlock(GestureDetector_default, {
|
|
2433
|
+
onTap: T,
|
|
2434
|
+
onLongPress: k
|
|
2239
2435
|
}, {
|
|
2240
2436
|
default: withCtx(() => [createVNode(Container_default, {
|
|
2241
2437
|
color: e.selected ? e.selectedColor : e.tileColor || "transparent",
|
|
@@ -2258,11 +2454,11 @@ var _hoisted_1$1 = {
|
|
|
2258
2454
|
default: withCtx(() => [renderSlot(C.$slots, "title", {}, () => [e.title ? (openBlock(), createBlock(Text_default, {
|
|
2259
2455
|
key: 0,
|
|
2260
2456
|
data: e.title,
|
|
2261
|
-
style: normalizeStyle(
|
|
2457
|
+
style: normalizeStyle(j.value)
|
|
2262
2458
|
}, null, 8, ["data", "style"])) : createCommentVNode("", !0)]), renderSlot(C.$slots, "subtitle", {}, () => [e.subtitle ? (openBlock(), createBlock(Text_default, {
|
|
2263
2459
|
key: 0,
|
|
2264
2460
|
data: e.subtitle,
|
|
2265
|
-
style: normalizeStyle(
|
|
2461
|
+
style: normalizeStyle(M.value)
|
|
2266
2462
|
}, null, 8, ["data", "style"])) : createCommentVNode("", !0)])]),
|
|
2267
2463
|
_: 3
|
|
2268
2464
|
})]),
|
|
@@ -2275,7 +2471,7 @@ var _hoisted_1$1 = {
|
|
|
2275
2471
|
_: 3
|
|
2276
2472
|
}, 8, ["color", "padding"])]),
|
|
2277
2473
|
_: 3
|
|
2278
|
-
}
|
|
2474
|
+
}));
|
|
2279
2475
|
}
|
|
2280
2476
|
}), InkWell_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
2281
2477
|
inheritAttrs: !1,
|
|
@@ -2286,34 +2482,34 @@ var _hoisted_1$1 = {
|
|
|
2286
2482
|
highlightColor: {},
|
|
2287
2483
|
borderRadius: {}
|
|
2288
2484
|
},
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
let C = e.currentTarget.getBoundingClientRect(),
|
|
2294
|
-
width: `${
|
|
2295
|
-
height: `${
|
|
2296
|
-
top: `${
|
|
2297
|
-
left: `${
|
|
2298
|
-
backgroundColor:
|
|
2485
|
+
emits: ["tap"],
|
|
2486
|
+
setup(e, { emit: w }) {
|
|
2487
|
+
let T = e, E = w, D = ref([]), O = 0, A = (e) => {
|
|
2488
|
+
E("tap");
|
|
2489
|
+
let C = e.currentTarget.getBoundingClientRect(), w = Math.max(C.width, C.height), k = e.clientX - C.left - w / 2, A = e.clientY - C.top - w / 2, j = O++, M = {
|
|
2490
|
+
width: `${w}px`,
|
|
2491
|
+
height: `${w}px`,
|
|
2492
|
+
top: `${A}px`,
|
|
2493
|
+
left: `${k}px`,
|
|
2494
|
+
backgroundColor: T.splashColor
|
|
2299
2495
|
};
|
|
2300
|
-
|
|
2301
|
-
id:
|
|
2302
|
-
style:
|
|
2496
|
+
D.value.push({
|
|
2497
|
+
id: j,
|
|
2498
|
+
style: M
|
|
2303
2499
|
}), setTimeout(() => {
|
|
2304
|
-
|
|
2500
|
+
D.value = D.value.filter((e) => e.id !== j);
|
|
2305
2501
|
}, 600);
|
|
2306
2502
|
};
|
|
2307
|
-
return (w,
|
|
2503
|
+
return (w, T) => (openBlock(), createElementBlock("div", mergeProps({
|
|
2308
2504
|
class: ["ink-well", { disabled: !e.onTap }],
|
|
2309
|
-
onClick:
|
|
2310
|
-
}, w.$attrs), [renderSlot(w.$slots, "default", {}, void 0, !0), (openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
2505
|
+
onClick: A
|
|
2506
|
+
}, w.$attrs), [renderSlot(w.$slots, "default", {}, void 0, !0), (openBlock(!0), createElementBlock(Fragment, null, renderList(D.value, (e) => (openBlock(), createElementBlock("span", {
|
|
2311
2507
|
key: e.id,
|
|
2312
2508
|
class: "ripple",
|
|
2313
2509
|
style: normalizeStyle(e.style)
|
|
2314
2510
|
}, null, 4))), 128))], 16));
|
|
2315
2511
|
}
|
|
2316
|
-
}), [["__scopeId", "data-v-
|
|
2512
|
+
}), [["__scopeId", "data-v-e91fe828"]]), Switch_default = /* @__PURE__ */ defineComponent({
|
|
2317
2513
|
__name: "Switch",
|
|
2318
2514
|
props: {
|
|
2319
2515
|
value: { type: Boolean },
|
|
@@ -2323,7 +2519,7 @@ var _hoisted_1$1 = {
|
|
|
2323
2519
|
inactiveThumbColor: { default: "#FAFAFA" },
|
|
2324
2520
|
inactiveTrackColor: { default: "#9E9E9E" }
|
|
2325
2521
|
},
|
|
2326
|
-
emits: ["update:value"],
|
|
2522
|
+
emits: ["update:value", "change"],
|
|
2327
2523
|
setup(e, { emit: C }) {
|
|
2328
2524
|
let w = e, T = C, O = () => {
|
|
2329
2525
|
w.onChanged && w.onChanged(!w.value), T("update:value", !w.value);
|
|
@@ -2342,7 +2538,7 @@ var _hoisted_1$1 = {
|
|
|
2342
2538
|
}
|
|
2343
2539
|
}]
|
|
2344
2540
|
})), j = computed(() => EdgeInsets.only({ left: w.value ? 16 : 0 }));
|
|
2345
|
-
return (e, C) => (openBlock(), createBlock(GestureDetector_default, {
|
|
2541
|
+
return (e, C) => (openBlock(), createBlock(GestureDetector_default, { onTap: O }, {
|
|
2346
2542
|
default: withCtx(() => [createVNode(Container_default, {
|
|
2347
2543
|
width: 36,
|
|
2348
2544
|
height: 20,
|
|
@@ -2369,11 +2565,11 @@ var _hoisted_1$1 = {
|
|
|
2369
2565
|
activeColor: { default: "#2196F3" },
|
|
2370
2566
|
checkColor: { default: "#FFFFFF" }
|
|
2371
2567
|
},
|
|
2372
|
-
emits: ["update:value"],
|
|
2568
|
+
emits: ["update:value", "change"],
|
|
2373
2569
|
setup(e, { emit: C }) {
|
|
2374
2570
|
let w = e, T = C, k = () => {
|
|
2375
2571
|
let e = !w.value;
|
|
2376
|
-
|
|
2572
|
+
T("change", e), T("update:value", e);
|
|
2377
2573
|
}, A = computed(() => BoxDecoration({
|
|
2378
2574
|
color: w.value ? w.activeColor : "transparent",
|
|
2379
2575
|
border: w.value ? void 0 : Border.all({
|
|
@@ -2383,7 +2579,7 @@ var _hoisted_1$1 = {
|
|
|
2383
2579
|
}),
|
|
2384
2580
|
borderRadius: BorderRadius.circular(2)
|
|
2385
2581
|
}));
|
|
2386
|
-
return (C, w) => (openBlock(), createBlock(GestureDetector_default, {
|
|
2582
|
+
return (C, w) => (openBlock(), createBlock(GestureDetector_default, { onTap: k }, {
|
|
2387
2583
|
default: withCtx(() => [createVNode(Container_default, {
|
|
2388
2584
|
width: 18,
|
|
2389
2585
|
height: 18,
|
|
@@ -2410,7 +2606,7 @@ var _hoisted_1$1 = {
|
|
|
2410
2606
|
onChanged: { type: Function },
|
|
2411
2607
|
activeColor: {}
|
|
2412
2608
|
},
|
|
2413
|
-
emits: ["update:groupValue"],
|
|
2609
|
+
emits: ["update:groupValue", "change"],
|
|
2414
2610
|
setup(e, { emit: C }) {
|
|
2415
2611
|
let w = e, T = C, k = computed(() => w.value === w.groupValue), A = () => {
|
|
2416
2612
|
w.onChanged && w.onChanged(w.value), T("update:groupValue", w.value);
|
|
@@ -2425,7 +2621,7 @@ var _hoisted_1$1 = {
|
|
|
2425
2621
|
shape: BoxShape.circle,
|
|
2426
2622
|
color: w.activeColor
|
|
2427
2623
|
}));
|
|
2428
|
-
return (e, C) => (openBlock(), createBlock(GestureDetector_default, {
|
|
2624
|
+
return (e, C) => (openBlock(), createBlock(GestureDetector_default, { onTap: A }, {
|
|
2429
2625
|
default: withCtx(() => [createVNode(Container_default, {
|
|
2430
2626
|
width: 20,
|
|
2431
2627
|
height: 20,
|
|
@@ -2454,17 +2650,19 @@ var _hoisted_1$1 = {
|
|
|
2454
2650
|
inactiveColor: { default: "#BBDEFB" },
|
|
2455
2651
|
thumbColor: { default: "#2196F3" }
|
|
2456
2652
|
},
|
|
2457
|
-
emits: ["update:value"],
|
|
2653
|
+
emits: ["update:value", "change"],
|
|
2458
2654
|
setup(e, { emit: C }) {
|
|
2459
2655
|
let w = e, T = C, D = ref(), O = computed(() => {
|
|
2460
2656
|
let e = w.max - w.min;
|
|
2461
2657
|
return e <= 0 ? 0 : (w.value - w.min) / e * 100;
|
|
2462
2658
|
}), A = computed(() => `${O.value}%`), j = (e) => {
|
|
2463
2659
|
if (!D.value) return;
|
|
2464
|
-
let C = D.value.getBoundingClientRect(), E =
|
|
2465
|
-
E =
|
|
2466
|
-
let O =
|
|
2467
|
-
|
|
2660
|
+
let C = D.value.getBoundingClientRect(), E = 0;
|
|
2661
|
+
e.clientX === void 0 ? e.globalPosition ? E = e.globalPosition.x : e.detail?.globalPosition ? E = e.detail.globalPosition.x : e.touches && e.touches[0] && (E = e.touches[0].clientX) : E = e.clientX;
|
|
2662
|
+
let O = (E - C.left) / C.width;
|
|
2663
|
+
O = Math.max(0, Math.min(1, O));
|
|
2664
|
+
let k = w.min + O * (w.max - w.min);
|
|
2665
|
+
w.onChanged && w.onChanged(k), T("change", k), T("update:value", k);
|
|
2468
2666
|
}, M = computed(() => BoxDecoration({
|
|
2469
2667
|
color: w.thumbColor,
|
|
2470
2668
|
shape: BoxShape.circle,
|
|
@@ -2482,9 +2680,9 @@ var _hoisted_1$1 = {
|
|
|
2482
2680
|
ref_key: "trackRef",
|
|
2483
2681
|
ref: D
|
|
2484
2682
|
}, [createVNode(GestureDetector_default, {
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2683
|
+
onPanStart: j,
|
|
2684
|
+
onPanUpdate: j,
|
|
2685
|
+
onTapDown: j
|
|
2488
2686
|
}, {
|
|
2489
2687
|
default: withCtx(() => [createVNode(Container_default, {
|
|
2490
2688
|
height: 40,
|
|
@@ -2527,7 +2725,7 @@ var _hoisted_1$1 = {
|
|
|
2527
2725
|
_: 1
|
|
2528
2726
|
})], 512));
|
|
2529
2727
|
}
|
|
2530
|
-
}), [["__scopeId", "data-v-
|
|
2728
|
+
}), [["__scopeId", "data-v-bccfa37a"]]), AlertDialog_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
2531
2729
|
__name: "AlertDialog",
|
|
2532
2730
|
props: {
|
|
2533
2731
|
visible: {
|
|
@@ -2619,7 +2817,7 @@ var _hoisted_1$1 = {
|
|
|
2619
2817
|
"constraints"
|
|
2620
2818
|
])])) : createCommentVNode("", !0);
|
|
2621
2819
|
}
|
|
2622
|
-
}), [["__scopeId", "data-v-
|
|
2820
|
+
}), [["__scopeId", "data-v-2eee844d"]]), BottomSheet_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
2623
2821
|
__name: "BottomSheet",
|
|
2624
2822
|
props: {
|
|
2625
2823
|
visible: {
|
|
@@ -2668,25 +2866,92 @@ var _hoisted_1$1 = {
|
|
|
2668
2866
|
_: 3
|
|
2669
2867
|
}, 8, ["decoration", "padding"])])) : createCommentVNode("", !0);
|
|
2670
2868
|
}
|
|
2671
|
-
}), [["__scopeId", "data-v-
|
|
2869
|
+
}), [["__scopeId", "data-v-6948b23d"]]), SegmentedControl_default = /* @__PURE__ */ defineComponent({
|
|
2870
|
+
__name: "SegmentedControl",
|
|
2871
|
+
props: {
|
|
2872
|
+
modelValue: {},
|
|
2873
|
+
items: {},
|
|
2874
|
+
selectedColor: { default: "#007AFF" },
|
|
2875
|
+
unselectedColor: { default: "transparent" },
|
|
2876
|
+
borderColor: { default: "#007AFF" },
|
|
2877
|
+
padding: { default: () => EdgeInsets.symmetric({
|
|
2878
|
+
vertical: 8,
|
|
2879
|
+
horizontal: 16
|
|
2880
|
+
}) },
|
|
2881
|
+
decoration: {}
|
|
2882
|
+
},
|
|
2883
|
+
emits: ["update:modelValue", "change"],
|
|
2884
|
+
setup(e, { emit: w }) {
|
|
2885
|
+
let T = e, O = w, A = (e) => {
|
|
2886
|
+
e !== T.modelValue && (O("update:modelValue", e), O("change", e));
|
|
2887
|
+
}, j = computed(() => T.decoration ? T.decoration : BoxDecoration({
|
|
2888
|
+
border: Border.all({
|
|
2889
|
+
color: T.borderColor,
|
|
2890
|
+
width: 1
|
|
2891
|
+
}),
|
|
2892
|
+
borderRadius: BorderRadius.circular(4)
|
|
2893
|
+
})), P = (e, C) => {
|
|
2894
|
+
let w = e === T.modelValue, E = C === T.items.length - 1;
|
|
2895
|
+
return BoxDecoration({
|
|
2896
|
+
color: w ? T.selectedColor : T.unselectedColor,
|
|
2897
|
+
border: E ? void 0 : Border.only({ right: BorderSide({
|
|
2898
|
+
color: T.borderColor,
|
|
2899
|
+
width: 1
|
|
2900
|
+
}) })
|
|
2901
|
+
});
|
|
2902
|
+
}, F = (e) => TextStyle({
|
|
2903
|
+
color: e === T.modelValue ? "#FFFFFF" : T.borderColor,
|
|
2904
|
+
fontSize: 13
|
|
2905
|
+
});
|
|
2906
|
+
return (w, T) => (openBlock(), createBlock(Container_default, {
|
|
2907
|
+
decoration: j.value,
|
|
2908
|
+
"clip-behavior": "hardEdge"
|
|
2909
|
+
}, {
|
|
2910
|
+
default: withCtx(() => [createVNode(Row_default, null, {
|
|
2911
|
+
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(e.items, (C, T) => (openBlock(), createBlock(GestureDetector_default, {
|
|
2912
|
+
key: T,
|
|
2913
|
+
onTap: (e) => A(C.value)
|
|
2914
|
+
}, {
|
|
2915
|
+
default: withCtx(() => [createVNode(Container_default, {
|
|
2916
|
+
padding: e.padding,
|
|
2917
|
+
decoration: P(C.value, T),
|
|
2918
|
+
alignment: "center"
|
|
2919
|
+
}, {
|
|
2920
|
+
default: withCtx(() => [renderSlot(w.$slots, "label", {
|
|
2921
|
+
item: C,
|
|
2922
|
+
selected: C.value === e.modelValue,
|
|
2923
|
+
index: T
|
|
2924
|
+
}, () => [createVNode(Text_default, { style: normalizeStyle(F(C.value)) }, {
|
|
2925
|
+
default: withCtx(() => [createTextVNode(toDisplayString(C.label), 1)]),
|
|
2926
|
+
_: 2
|
|
2927
|
+
}, 1032, ["style"])])]),
|
|
2928
|
+
_: 2
|
|
2929
|
+
}, 1032, ["padding", "decoration"])]),
|
|
2930
|
+
_: 2
|
|
2931
|
+
}, 1032, ["onTap"]))), 128))]),
|
|
2932
|
+
_: 3
|
|
2933
|
+
})]),
|
|
2934
|
+
_: 3
|
|
2935
|
+
}, 8, ["decoration"]));
|
|
2936
|
+
}
|
|
2937
|
+
}), _hoisted_1 = { class: "snackbar-overlay" }, SnackBarComponent_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
2672
2938
|
__name: "SnackBarComponent",
|
|
2673
2939
|
props: {
|
|
2674
2940
|
content: {},
|
|
2675
2941
|
actionLabel: {},
|
|
2676
|
-
onAction: {},
|
|
2677
|
-
onClose: {},
|
|
2678
2942
|
duration: { default: 4e3 }
|
|
2679
2943
|
},
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2944
|
+
emits: ["action", "close"],
|
|
2945
|
+
setup(e, { emit: C }) {
|
|
2946
|
+
let w = e, T = C, A = () => {
|
|
2947
|
+
T("action"), T("close");
|
|
2683
2948
|
};
|
|
2684
2949
|
onMounted(() => {
|
|
2685
2950
|
setTimeout(() => {
|
|
2686
|
-
|
|
2687
|
-
},
|
|
2951
|
+
T("close");
|
|
2952
|
+
}, w.duration);
|
|
2688
2953
|
});
|
|
2689
|
-
let
|
|
2954
|
+
let j = computed(() => BoxDecoration({
|
|
2690
2955
|
color: "#323232",
|
|
2691
2956
|
borderRadius: BorderRadius.circular(4),
|
|
2692
2957
|
boxShadow: [{
|
|
@@ -2698,13 +2963,13 @@ var _hoisted_1$1 = {
|
|
|
2698
2963
|
}
|
|
2699
2964
|
}]
|
|
2700
2965
|
}));
|
|
2701
|
-
return (C,
|
|
2966
|
+
return (C, w) => (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(Container_default, {
|
|
2702
2967
|
margin: unref(EdgeInsets).all(8),
|
|
2703
2968
|
padding: unref(EdgeInsets).symmetric({
|
|
2704
2969
|
horizontal: 16,
|
|
2705
2970
|
vertical: 14
|
|
2706
2971
|
}),
|
|
2707
|
-
decoration:
|
|
2972
|
+
decoration: j.value,
|
|
2708
2973
|
width: "100%",
|
|
2709
2974
|
constraints: unref(BoxConstraints)({ maxWidth: 600 })
|
|
2710
2975
|
}, {
|
|
@@ -2720,7 +2985,7 @@ var _hoisted_1$1 = {
|
|
|
2720
2985
|
_: 1
|
|
2721
2986
|
}), e.actionLabel ? (openBlock(), createBlock(GestureDetector_default, {
|
|
2722
2987
|
key: 0,
|
|
2723
|
-
|
|
2988
|
+
onTap: A
|
|
2724
2989
|
}, {
|
|
2725
2990
|
default: withCtx(() => [createVNode(Container_default, { margin: unref(EdgeInsets).only({ left: 16 }) }, {
|
|
2726
2991
|
default: withCtx(() => [createVNode(Text_default, { style: normalizeStyle({
|
|
@@ -2745,7 +3010,7 @@ var _hoisted_1$1 = {
|
|
|
2745
3010
|
"constraints"
|
|
2746
3011
|
])]));
|
|
2747
3012
|
}
|
|
2748
|
-
}), [["__scopeId", "data-v-
|
|
3013
|
+
}), [["__scopeId", "data-v-d8abf3ed"]]), SnackBar = class {
|
|
2749
3014
|
static show(e) {
|
|
2750
3015
|
let C = document.getElementById("fluekit-snackbar");
|
|
2751
3016
|
C && (render(null, C), document.body.removeChild(C));
|
|
@@ -2762,4 +3027,4 @@ var _hoisted_1$1 = {
|
|
|
2762
3027
|
}
|
|
2763
3028
|
};
|
|
2764
3029
|
setTransform(!1);
|
|
2765
|
-
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, 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, LinearGradient, ListTile_default as ListTile, ListView_default as ListView, MainAxisAlignment, MemoryImage, NetworkImage, Opacity_default as Opacity, 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, 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, normalizeSrc, paddingToStyle, px2vw, setAssetBaseURL, setBaseUrl, setDefaultVW, setTransform, sizeToStyle, toCSSStyle as textStyleToCSSStyle, toCSSStyle };
|
|
3030
|
+
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, 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, LinearGradient, ListTile_default as ListTile, ListView_default as ListView, MainAxisAlignment, Matrix4, MemoryImage, NetworkImage, Opacity_default as Opacity, 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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fluekit",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.6",
|
|
4
4
|
"description": "A Flutter-style Layout UI kit for Vue",
|
|
5
5
|
"homepage": "https://fi2zz.github.io/fluekit/",
|
|
6
6
|
"repository": {
|
|
@@ -20,10 +20,6 @@
|
|
|
20
20
|
"files": [
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
|
-
"scripts": {
|
|
24
|
-
"build": "vite build",
|
|
25
|
-
"test": "vitest"
|
|
26
|
-
},
|
|
27
23
|
"peerDependencies": {
|
|
28
24
|
"vue": "^3.5.0"
|
|
29
25
|
},
|
|
@@ -37,5 +33,9 @@
|
|
|
37
33
|
"vite-plugin-dts": "^4.5.4",
|
|
38
34
|
"vitest": "^4.0.16",
|
|
39
35
|
"vue-tsc": "^3.1.4"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "vite build",
|
|
39
|
+
"test": "vitest"
|
|
40
40
|
}
|
|
41
|
-
}
|
|
41
|
+
}
|