@shwfed/nuxt 0.10.3 → 0.10.5
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/module.json +1 -1
- package/dist/runtime/components/button.d.vue.ts +95 -0
- package/dist/runtime/components/button.vue +39 -0
- package/dist/runtime/components/button.vue.d.ts +95 -0
- package/dist/runtime/components/fields.d.vue.ts +2 -2
- package/dist/runtime/components/fields.vue.d.ts +2 -2
- package/dist/runtime/components/ui/button-configurator/ButtonConfiguratorDialog.d.vue.ts +97 -0
- package/dist/runtime/components/ui/button-configurator/ButtonConfiguratorDialog.vue +1078 -0
- package/dist/runtime/components/ui/button-configurator/ButtonConfiguratorDialog.vue.d.ts +97 -0
- package/dist/runtime/components/ui/button-configurator/menu.d.ts +48 -0
- package/dist/runtime/components/ui/button-configurator/menu.js +381 -0
- package/dist/runtime/components/ui/buttons/Buttons.d.vue.ts +95 -0
- package/dist/runtime/components/ui/buttons/Buttons.vue +330 -0
- package/dist/runtime/components/ui/buttons/Buttons.vue.d.ts +95 -0
- package/dist/runtime/components/ui/buttons/schema.d.ts +374 -0
- package/dist/runtime/components/ui/buttons/schema.js +58 -0
- package/dist/runtime/components/ui/fields/Fields.d.vue.ts +4 -4
- package/dist/runtime/components/ui/fields/Fields.vue.d.ts +4 -4
- package/dist/runtime/components/ui/fields/schema.d.ts +3 -3
- package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.d.vue.ts +2 -2
- package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.vue.d.ts +2 -2
- package/dist/runtime/components/ui/table/Table.vue +11 -10
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Effect } from 'effect';
|
|
2
|
+
import type { ButtonConfigInput } from './ui/buttons/schema.js';
|
|
3
|
+
export { ButtonActionC, ButtonConfigC, ButtonConfigInputC, ButtonDropdownC, ButtonGroupC, ButtonsStyleC } from './ui/buttons/schema.js';
|
|
4
|
+
export type { ButtonAction, ButtonConfig, ButtonConfigInput, ButtonDropdown, ButtonGroup, ButtonGroupItem } from './ui/buttons/schema.js';
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
8
|
+
config?: ButtonConfigInput | Effect.Effect<ButtonConfigInput | undefined>;
|
|
9
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"update:config": (args_0: Readonly<{
|
|
11
|
+
groups: readonly Readonly<{
|
|
12
|
+
id: string;
|
|
13
|
+
items: readonly (Readonly<{
|
|
14
|
+
id: string;
|
|
15
|
+
title: readonly {
|
|
16
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
17
|
+
message: string;
|
|
18
|
+
}[];
|
|
19
|
+
tooltip?: readonly {
|
|
20
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
21
|
+
message: string;
|
|
22
|
+
}[] | undefined;
|
|
23
|
+
icon?: string | undefined;
|
|
24
|
+
variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
|
|
25
|
+
hideTitle?: boolean | undefined;
|
|
26
|
+
}> | Readonly<{
|
|
27
|
+
id: string;
|
|
28
|
+
title: readonly {
|
|
29
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
30
|
+
message: string;
|
|
31
|
+
}[];
|
|
32
|
+
items: readonly Readonly<{
|
|
33
|
+
id: string;
|
|
34
|
+
title: readonly {
|
|
35
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
36
|
+
message: string;
|
|
37
|
+
}[];
|
|
38
|
+
tooltip?: readonly {
|
|
39
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
40
|
+
message: string;
|
|
41
|
+
}[] | undefined;
|
|
42
|
+
icon?: string | undefined;
|
|
43
|
+
variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
|
|
44
|
+
}>[];
|
|
45
|
+
icon?: string | undefined;
|
|
46
|
+
}>)[];
|
|
47
|
+
}>[];
|
|
48
|
+
gap?: number | undefined;
|
|
49
|
+
style?: string | undefined;
|
|
50
|
+
}>) => any;
|
|
51
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
52
|
+
config?: ButtonConfigInput | Effect.Effect<ButtonConfigInput | undefined>;
|
|
53
|
+
}> & Readonly<{
|
|
54
|
+
"onUpdate:config"?: ((args_0: Readonly<{
|
|
55
|
+
groups: readonly Readonly<{
|
|
56
|
+
id: string;
|
|
57
|
+
items: readonly (Readonly<{
|
|
58
|
+
id: string;
|
|
59
|
+
title: readonly {
|
|
60
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
61
|
+
message: string;
|
|
62
|
+
}[];
|
|
63
|
+
tooltip?: readonly {
|
|
64
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
65
|
+
message: string;
|
|
66
|
+
}[] | undefined;
|
|
67
|
+
icon?: string | undefined;
|
|
68
|
+
variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
|
|
69
|
+
hideTitle?: boolean | undefined;
|
|
70
|
+
}> | Readonly<{
|
|
71
|
+
id: string;
|
|
72
|
+
title: readonly {
|
|
73
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
74
|
+
message: string;
|
|
75
|
+
}[];
|
|
76
|
+
items: readonly Readonly<{
|
|
77
|
+
id: string;
|
|
78
|
+
title: readonly {
|
|
79
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
80
|
+
message: string;
|
|
81
|
+
}[];
|
|
82
|
+
tooltip?: readonly {
|
|
83
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
84
|
+
message: string;
|
|
85
|
+
}[] | undefined;
|
|
86
|
+
icon?: string | undefined;
|
|
87
|
+
variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
|
|
88
|
+
}>[];
|
|
89
|
+
icon?: string | undefined;
|
|
90
|
+
}>)[];
|
|
91
|
+
}>[];
|
|
92
|
+
gap?: number | undefined;
|
|
93
|
+
style?: string | undefined;
|
|
94
|
+
}>) => any) | undefined;
|
|
95
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { Effect } from "effect";
|
|
3
|
+
import UiButtons from "./ui/buttons/Buttons.vue";
|
|
4
|
+
defineOptions({
|
|
5
|
+
inheritAttrs: false
|
|
6
|
+
});
|
|
7
|
+
const props = defineProps({
|
|
8
|
+
config: { type: null, required: false }
|
|
9
|
+
});
|
|
10
|
+
const emit = defineEmits(["update:config"]);
|
|
11
|
+
const defaultConfig = {
|
|
12
|
+
gap: 12,
|
|
13
|
+
groups: []
|
|
14
|
+
};
|
|
15
|
+
function isEffectConfig(value) {
|
|
16
|
+
return typeof value === "object" && value !== null && "pipe" in value && typeof Reflect.get(value, "pipe") === "function";
|
|
17
|
+
}
|
|
18
|
+
function resolveConfig() {
|
|
19
|
+
if (isEffectConfig(props.config)) {
|
|
20
|
+
return props.config.pipe(Effect.map((value) => value ?? defaultConfig));
|
|
21
|
+
}
|
|
22
|
+
return Effect.succeed(props.config ?? defaultConfig);
|
|
23
|
+
}
|
|
24
|
+
function handleConfigUpdate(config) {
|
|
25
|
+
emit("update:config", config);
|
|
26
|
+
}
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<script>
|
|
30
|
+
export { ButtonActionC, ButtonConfigC, ButtonConfigInputC, ButtonDropdownC, ButtonGroupC, ButtonsStyleC } from "./ui/buttons/schema";
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<template>
|
|
34
|
+
<UiButtons
|
|
35
|
+
v-bind="$attrs"
|
|
36
|
+
:config="resolveConfig()"
|
|
37
|
+
@update:config="handleConfigUpdate"
|
|
38
|
+
/>
|
|
39
|
+
</template>
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Effect } from 'effect';
|
|
2
|
+
import type { ButtonConfigInput } from './ui/buttons/schema.js';
|
|
3
|
+
export { ButtonActionC, ButtonConfigC, ButtonConfigInputC, ButtonDropdownC, ButtonGroupC, ButtonsStyleC } from './ui/buttons/schema.js';
|
|
4
|
+
export type { ButtonAction, ButtonConfig, ButtonConfigInput, ButtonDropdown, ButtonGroup, ButtonGroupItem } from './ui/buttons/schema.js';
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
8
|
+
config?: ButtonConfigInput | Effect.Effect<ButtonConfigInput | undefined>;
|
|
9
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"update:config": (args_0: Readonly<{
|
|
11
|
+
groups: readonly Readonly<{
|
|
12
|
+
id: string;
|
|
13
|
+
items: readonly (Readonly<{
|
|
14
|
+
id: string;
|
|
15
|
+
title: readonly {
|
|
16
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
17
|
+
message: string;
|
|
18
|
+
}[];
|
|
19
|
+
tooltip?: readonly {
|
|
20
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
21
|
+
message: string;
|
|
22
|
+
}[] | undefined;
|
|
23
|
+
icon?: string | undefined;
|
|
24
|
+
variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
|
|
25
|
+
hideTitle?: boolean | undefined;
|
|
26
|
+
}> | Readonly<{
|
|
27
|
+
id: string;
|
|
28
|
+
title: readonly {
|
|
29
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
30
|
+
message: string;
|
|
31
|
+
}[];
|
|
32
|
+
items: readonly Readonly<{
|
|
33
|
+
id: string;
|
|
34
|
+
title: readonly {
|
|
35
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
36
|
+
message: string;
|
|
37
|
+
}[];
|
|
38
|
+
tooltip?: readonly {
|
|
39
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
40
|
+
message: string;
|
|
41
|
+
}[] | undefined;
|
|
42
|
+
icon?: string | undefined;
|
|
43
|
+
variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
|
|
44
|
+
}>[];
|
|
45
|
+
icon?: string | undefined;
|
|
46
|
+
}>)[];
|
|
47
|
+
}>[];
|
|
48
|
+
gap?: number | undefined;
|
|
49
|
+
style?: string | undefined;
|
|
50
|
+
}>) => any;
|
|
51
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
52
|
+
config?: ButtonConfigInput | Effect.Effect<ButtonConfigInput | undefined>;
|
|
53
|
+
}> & Readonly<{
|
|
54
|
+
"onUpdate:config"?: ((args_0: Readonly<{
|
|
55
|
+
groups: readonly Readonly<{
|
|
56
|
+
id: string;
|
|
57
|
+
items: readonly (Readonly<{
|
|
58
|
+
id: string;
|
|
59
|
+
title: readonly {
|
|
60
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
61
|
+
message: string;
|
|
62
|
+
}[];
|
|
63
|
+
tooltip?: readonly {
|
|
64
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
65
|
+
message: string;
|
|
66
|
+
}[] | undefined;
|
|
67
|
+
icon?: string | undefined;
|
|
68
|
+
variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
|
|
69
|
+
hideTitle?: boolean | undefined;
|
|
70
|
+
}> | Readonly<{
|
|
71
|
+
id: string;
|
|
72
|
+
title: readonly {
|
|
73
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
74
|
+
message: string;
|
|
75
|
+
}[];
|
|
76
|
+
items: readonly Readonly<{
|
|
77
|
+
id: string;
|
|
78
|
+
title: readonly {
|
|
79
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
80
|
+
message: string;
|
|
81
|
+
}[];
|
|
82
|
+
tooltip?: readonly {
|
|
83
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
84
|
+
message: string;
|
|
85
|
+
}[] | undefined;
|
|
86
|
+
icon?: string | undefined;
|
|
87
|
+
variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
|
|
88
|
+
}>[];
|
|
89
|
+
icon?: string | undefined;
|
|
90
|
+
}>)[];
|
|
91
|
+
}>[];
|
|
92
|
+
gap?: number | undefined;
|
|
93
|
+
style?: string | undefined;
|
|
94
|
+
}>) => any) | undefined;
|
|
95
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -98,7 +98,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
98
98
|
locale: "zh" | "ja" | "en" | "ko";
|
|
99
99
|
message: string;
|
|
100
100
|
}[];
|
|
101
|
-
mode: "
|
|
101
|
+
mode: "month" | "year" | "date";
|
|
102
102
|
value: string;
|
|
103
103
|
required?: boolean | undefined;
|
|
104
104
|
icon?: string | undefined;
|
|
@@ -217,7 +217,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
217
217
|
locale: "zh" | "ja" | "en" | "ko";
|
|
218
218
|
message: string;
|
|
219
219
|
}[];
|
|
220
|
-
mode: "
|
|
220
|
+
mode: "month" | "year" | "date";
|
|
221
221
|
value: string;
|
|
222
222
|
required?: boolean | undefined;
|
|
223
223
|
icon?: string | undefined;
|
|
@@ -98,7 +98,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
98
98
|
locale: "zh" | "ja" | "en" | "ko";
|
|
99
99
|
message: string;
|
|
100
100
|
}[];
|
|
101
|
-
mode: "
|
|
101
|
+
mode: "month" | "year" | "date";
|
|
102
102
|
value: string;
|
|
103
103
|
required?: boolean | undefined;
|
|
104
104
|
icon?: string | undefined;
|
|
@@ -217,7 +217,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
217
217
|
locale: "zh" | "ja" | "en" | "ko";
|
|
218
218
|
message: string;
|
|
219
219
|
}[];
|
|
220
|
-
mode: "
|
|
220
|
+
mode: "month" | "year" | "date";
|
|
221
221
|
value: string;
|
|
222
222
|
required?: boolean | undefined;
|
|
223
223
|
icon?: string | undefined;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { type ButtonConfig } from '../buttons/schema.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
config: ButtonConfig;
|
|
4
|
+
};
|
|
5
|
+
type __VLS_ModelProps = {
|
|
6
|
+
'open'?: boolean;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"update:open": (value: boolean) => any;
|
|
11
|
+
confirm: (args_0: Readonly<{
|
|
12
|
+
groups: readonly Readonly<{
|
|
13
|
+
id: string;
|
|
14
|
+
items: readonly (Readonly<{
|
|
15
|
+
id: string;
|
|
16
|
+
title: readonly {
|
|
17
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
18
|
+
message: string;
|
|
19
|
+
}[];
|
|
20
|
+
tooltip?: readonly {
|
|
21
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
22
|
+
message: string;
|
|
23
|
+
}[] | undefined;
|
|
24
|
+
icon?: string | undefined;
|
|
25
|
+
variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
|
|
26
|
+
hideTitle?: boolean | undefined;
|
|
27
|
+
}> | Readonly<{
|
|
28
|
+
id: string;
|
|
29
|
+
title: readonly {
|
|
30
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
31
|
+
message: string;
|
|
32
|
+
}[];
|
|
33
|
+
items: readonly Readonly<{
|
|
34
|
+
id: string;
|
|
35
|
+
title: readonly {
|
|
36
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
37
|
+
message: string;
|
|
38
|
+
}[];
|
|
39
|
+
tooltip?: readonly {
|
|
40
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
41
|
+
message: string;
|
|
42
|
+
}[] | undefined;
|
|
43
|
+
icon?: string | undefined;
|
|
44
|
+
variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
|
|
45
|
+
}>[];
|
|
46
|
+
icon?: string | undefined;
|
|
47
|
+
}>)[];
|
|
48
|
+
}>[];
|
|
49
|
+
gap?: number | undefined;
|
|
50
|
+
style?: string | undefined;
|
|
51
|
+
}>) => any;
|
|
52
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
53
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
54
|
+
onConfirm?: ((args_0: Readonly<{
|
|
55
|
+
groups: readonly Readonly<{
|
|
56
|
+
id: string;
|
|
57
|
+
items: readonly (Readonly<{
|
|
58
|
+
id: string;
|
|
59
|
+
title: readonly {
|
|
60
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
61
|
+
message: string;
|
|
62
|
+
}[];
|
|
63
|
+
tooltip?: readonly {
|
|
64
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
65
|
+
message: string;
|
|
66
|
+
}[] | undefined;
|
|
67
|
+
icon?: string | undefined;
|
|
68
|
+
variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
|
|
69
|
+
hideTitle?: boolean | undefined;
|
|
70
|
+
}> | Readonly<{
|
|
71
|
+
id: string;
|
|
72
|
+
title: readonly {
|
|
73
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
74
|
+
message: string;
|
|
75
|
+
}[];
|
|
76
|
+
items: readonly Readonly<{
|
|
77
|
+
id: string;
|
|
78
|
+
title: readonly {
|
|
79
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
80
|
+
message: string;
|
|
81
|
+
}[];
|
|
82
|
+
tooltip?: readonly {
|
|
83
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
84
|
+
message: string;
|
|
85
|
+
}[] | undefined;
|
|
86
|
+
icon?: string | undefined;
|
|
87
|
+
variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
|
|
88
|
+
}>[];
|
|
89
|
+
icon?: string | undefined;
|
|
90
|
+
}>)[];
|
|
91
|
+
}>[];
|
|
92
|
+
gap?: number | undefined;
|
|
93
|
+
style?: string | undefined;
|
|
94
|
+
}>) => any) | undefined;
|
|
95
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
96
|
+
declare const _default: typeof __VLS_export;
|
|
97
|
+
export default _default;
|