@shwfed/nuxt 0.8.2 → 0.9.0
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/fields.d.vue.ts +161 -158
- package/dist/runtime/components/fields.vue +12 -7
- package/dist/runtime/components/fields.vue.d.ts +161 -158
- package/dist/runtime/components/ui/fields/Fields.d.vue.ts +311 -159
- package/dist/runtime/components/ui/fields/Fields.vue +32 -20
- package/dist/runtime/components/ui/fields/Fields.vue.d.ts +311 -159
- package/dist/runtime/components/ui/fields/schema.d.ts +111 -0
- package/dist/runtime/components/ui/fields/schema.js +5 -0
- package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.d.vue.ts +156 -150
- package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.vue +64 -21
- package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.vue.d.ts +156 -150
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -1,173 +1,176 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import { Effect } from 'effect';
|
|
2
|
+
import type { FieldsConfig } from './ui/fields/Fields.vue.js';
|
|
3
|
+
export { CalendarFieldC, FieldC, FieldsConfigC, NumberFieldC, SelectFieldC, StringFieldC, } from './ui/fields/Fields.vue.js';
|
|
4
|
+
export type { Field, FieldsConfig } from './ui/fields/Fields.vue.js';
|
|
4
5
|
declare const _default: typeof __VLS_export;
|
|
5
6
|
export default _default;
|
|
6
7
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
7
|
-
|
|
8
|
-
config: import("effect").Effect.Effect<ReadonlyArray<Field>>;
|
|
8
|
+
config?: Effect.Effect<FieldsConfig | undefined>;
|
|
9
9
|
} & {
|
|
10
10
|
modelValue?: Record<string, unknown>;
|
|
11
11
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
12
|
"update:modelValue": (value: Record<string, unknown>) => any;
|
|
13
|
-
"update:config": (args_0:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
13
|
+
"update:config": (args_0: Readonly<{
|
|
14
|
+
orientation: "vertical" | "horizontal" | "floating";
|
|
15
|
+
fields: readonly ({
|
|
16
|
+
type: "string";
|
|
17
|
+
path: string;
|
|
18
|
+
title: readonly {
|
|
19
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
20
|
+
message: string;
|
|
21
|
+
}[];
|
|
22
|
+
icon?: string | undefined;
|
|
23
|
+
style?: string | undefined;
|
|
24
|
+
discardEmptyString?: boolean | undefined;
|
|
25
|
+
maxLength?: string | undefined;
|
|
26
|
+
hidden?: string | undefined;
|
|
27
|
+
disabled?: string | undefined;
|
|
28
|
+
validation?: readonly Readonly<{
|
|
29
|
+
expression: string;
|
|
30
|
+
message: string;
|
|
31
|
+
}>[] | undefined;
|
|
32
|
+
} | {
|
|
33
|
+
type: "number";
|
|
34
|
+
path: string;
|
|
35
|
+
title: readonly {
|
|
36
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
37
|
+
message: string;
|
|
38
|
+
}[];
|
|
39
|
+
icon?: string | undefined;
|
|
40
|
+
style?: string | undefined;
|
|
41
|
+
min?: string | undefined;
|
|
42
|
+
max?: string | undefined;
|
|
43
|
+
step?: string | undefined;
|
|
44
|
+
hidden?: string | undefined;
|
|
45
|
+
disabled?: string | undefined;
|
|
46
|
+
validation?: readonly Readonly<{
|
|
47
|
+
expression: string;
|
|
48
|
+
message: string;
|
|
49
|
+
}>[] | undefined;
|
|
50
|
+
} | {
|
|
51
|
+
type: "select";
|
|
52
|
+
path: string;
|
|
53
|
+
title: readonly {
|
|
54
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
55
|
+
message: string;
|
|
56
|
+
}[];
|
|
57
|
+
options: string;
|
|
58
|
+
label: string;
|
|
59
|
+
value: string;
|
|
60
|
+
key: string;
|
|
61
|
+
icon?: string | undefined;
|
|
62
|
+
style?: string | undefined;
|
|
63
|
+
hidden?: string | undefined;
|
|
64
|
+
disabled?: string | undefined;
|
|
65
|
+
validation?: readonly Readonly<{
|
|
66
|
+
expression: string;
|
|
67
|
+
message: string;
|
|
68
|
+
}>[] | undefined;
|
|
69
|
+
} | {
|
|
70
|
+
type: "calendar";
|
|
71
|
+
path: string;
|
|
72
|
+
title: readonly {
|
|
73
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
74
|
+
message: string;
|
|
75
|
+
}[];
|
|
76
|
+
mode: "date" | "month" | "year";
|
|
77
|
+
value: string;
|
|
78
|
+
icon?: string | undefined;
|
|
79
|
+
style?: string | undefined;
|
|
80
|
+
display?: string | undefined;
|
|
81
|
+
disableDate?: string | undefined;
|
|
82
|
+
hidden?: string | undefined;
|
|
83
|
+
disabled?: string | undefined;
|
|
84
|
+
validation?: readonly Readonly<{
|
|
85
|
+
expression: string;
|
|
86
|
+
message: string;
|
|
87
|
+
}>[] | undefined;
|
|
88
|
+
})[];
|
|
89
|
+
}>) => any;
|
|
87
90
|
}, string, import("vue").PublicProps, Readonly<{
|
|
88
|
-
|
|
89
|
-
config: import("effect").Effect.Effect<ReadonlyArray<Field>>;
|
|
91
|
+
config?: Effect.Effect<FieldsConfig | undefined>;
|
|
90
92
|
} & {
|
|
91
93
|
modelValue?: Record<string, unknown>;
|
|
92
94
|
}> & Readonly<{
|
|
93
95
|
"onUpdate:modelValue"?: ((value: Record<string, unknown>) => any) | undefined;
|
|
94
|
-
"onUpdate:config"?: ((args_0:
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
}
|
|
96
|
+
"onUpdate:config"?: ((args_0: Readonly<{
|
|
97
|
+
orientation: "vertical" | "horizontal" | "floating";
|
|
98
|
+
fields: readonly ({
|
|
99
|
+
type: "string";
|
|
100
|
+
path: string;
|
|
101
|
+
title: readonly {
|
|
102
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
103
|
+
message: string;
|
|
104
|
+
}[];
|
|
105
|
+
icon?: string | undefined;
|
|
106
|
+
style?: string | undefined;
|
|
107
|
+
discardEmptyString?: boolean | undefined;
|
|
108
|
+
maxLength?: string | undefined;
|
|
109
|
+
hidden?: string | undefined;
|
|
110
|
+
disabled?: string | undefined;
|
|
111
|
+
validation?: readonly Readonly<{
|
|
112
|
+
expression: string;
|
|
113
|
+
message: string;
|
|
114
|
+
}>[] | undefined;
|
|
115
|
+
} | {
|
|
116
|
+
type: "number";
|
|
117
|
+
path: string;
|
|
118
|
+
title: readonly {
|
|
119
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
120
|
+
message: string;
|
|
121
|
+
}[];
|
|
122
|
+
icon?: string | undefined;
|
|
123
|
+
style?: string | undefined;
|
|
124
|
+
min?: string | undefined;
|
|
125
|
+
max?: string | undefined;
|
|
126
|
+
step?: string | undefined;
|
|
127
|
+
hidden?: string | undefined;
|
|
128
|
+
disabled?: string | undefined;
|
|
129
|
+
validation?: readonly Readonly<{
|
|
130
|
+
expression: string;
|
|
131
|
+
message: string;
|
|
132
|
+
}>[] | undefined;
|
|
133
|
+
} | {
|
|
134
|
+
type: "select";
|
|
135
|
+
path: string;
|
|
136
|
+
title: readonly {
|
|
137
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
138
|
+
message: string;
|
|
139
|
+
}[];
|
|
140
|
+
options: string;
|
|
141
|
+
label: string;
|
|
142
|
+
value: string;
|
|
143
|
+
key: string;
|
|
144
|
+
icon?: string | undefined;
|
|
145
|
+
style?: string | undefined;
|
|
146
|
+
hidden?: string | undefined;
|
|
147
|
+
disabled?: string | undefined;
|
|
148
|
+
validation?: readonly Readonly<{
|
|
149
|
+
expression: string;
|
|
150
|
+
message: string;
|
|
151
|
+
}>[] | undefined;
|
|
152
|
+
} | {
|
|
153
|
+
type: "calendar";
|
|
154
|
+
path: string;
|
|
155
|
+
title: readonly {
|
|
156
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
157
|
+
message: string;
|
|
158
|
+
}[];
|
|
159
|
+
mode: "date" | "month" | "year";
|
|
160
|
+
value: string;
|
|
161
|
+
icon?: string | undefined;
|
|
162
|
+
style?: string | undefined;
|
|
163
|
+
display?: string | undefined;
|
|
164
|
+
disableDate?: string | undefined;
|
|
165
|
+
hidden?: string | undefined;
|
|
166
|
+
disabled?: string | undefined;
|
|
167
|
+
validation?: readonly Readonly<{
|
|
168
|
+
expression: string;
|
|
169
|
+
message: string;
|
|
170
|
+
}>[] | undefined;
|
|
171
|
+
})[];
|
|
172
|
+
}>) => any) | undefined;
|
|
173
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
171
174
|
[x: string]: ((props: any) => any) | undefined;
|
|
172
175
|
}>;
|
|
173
176
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { Effect } from "effect";
|
|
2
3
|
import UiFields from "./ui/fields/Fields.vue";
|
|
3
4
|
defineOptions({
|
|
4
5
|
inheritAttrs: false
|
|
5
6
|
});
|
|
6
7
|
const props = defineProps({
|
|
7
|
-
|
|
8
|
-
config: { type: null, required: true }
|
|
8
|
+
config: { type: null, required: false }
|
|
9
9
|
});
|
|
10
10
|
const emit = defineEmits(["update:config"]);
|
|
11
11
|
const modelValue = defineModel("modelValue", { type: Object, ...{
|
|
12
12
|
default: () => ({})
|
|
13
13
|
} });
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
const defaultConfig = {
|
|
15
|
+
orientation: "horizontal",
|
|
16
|
+
fields: []
|
|
17
|
+
};
|
|
18
|
+
const config = props.config ? props.config.pipe(Effect.map((config2) => config2 ?? defaultConfig)) : Effect.succeed(defaultConfig);
|
|
19
|
+
function handleConfigUpdate(config2) {
|
|
20
|
+
emit("update:config", config2);
|
|
16
21
|
}
|
|
17
22
|
</script>
|
|
18
23
|
|
|
@@ -20,6 +25,7 @@ function handleConfigUpdate(config) {
|
|
|
20
25
|
export {
|
|
21
26
|
CalendarFieldC,
|
|
22
27
|
FieldC,
|
|
28
|
+
FieldsConfigC,
|
|
23
29
|
NumberFieldC,
|
|
24
30
|
SelectFieldC,
|
|
25
31
|
StringFieldC
|
|
@@ -30,9 +36,8 @@ export {
|
|
|
30
36
|
<UiFields
|
|
31
37
|
v-bind="$attrs"
|
|
32
38
|
v-model="modelValue"
|
|
33
|
-
:
|
|
34
|
-
:
|
|
35
|
-
@update:fields="handleConfigUpdate"
|
|
39
|
+
:config="config"
|
|
40
|
+
@update:config="handleConfigUpdate"
|
|
36
41
|
>
|
|
37
42
|
<template
|
|
38
43
|
v-for="(_, slotName) in $slots"
|