@shwfed/nuxt 0.8.2 → 0.8.3
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
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Effect } from 'effect';
|
|
1
2
|
import type { Field } from './ui/fields/Fields.vue.js';
|
|
2
3
|
export { CalendarFieldC, FieldC, NumberFieldC, SelectFieldC, StringFieldC, } from './ui/fields/Fields.vue.js';
|
|
3
4
|
export type { Field } from './ui/fields/Fields.vue.js';
|
|
@@ -5,7 +6,7 @@ declare const _default: typeof __VLS_export;
|
|
|
5
6
|
export default _default;
|
|
6
7
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
7
8
|
orientation?: "horizontal" | "vertical" | "floating";
|
|
8
|
-
config
|
|
9
|
+
config?: Effect.Effect<ReadonlyArray<Field> | undefined>;
|
|
9
10
|
} & {
|
|
10
11
|
modelValue?: Record<string, unknown>;
|
|
11
12
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -86,7 +87,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
86
87
|
})[]) => any;
|
|
87
88
|
}, string, import("vue").PublicProps, Readonly<{
|
|
88
89
|
orientation?: "horizontal" | "vertical" | "floating";
|
|
89
|
-
config
|
|
90
|
+
config?: Effect.Effect<ReadonlyArray<Field> | undefined>;
|
|
90
91
|
} & {
|
|
91
92
|
modelValue?: Record<string, unknown>;
|
|
92
93
|
}> & Readonly<{
|
|
@@ -1,16 +1,19 @@
|
|
|
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
|
orientation: { type: String, required: false, default: "horizontal" },
|
|
8
|
-
config: { type: null, required:
|
|
9
|
+
config: { type: null, required: false }
|
|
9
10
|
});
|
|
10
11
|
const emit = defineEmits(["update:config"]);
|
|
11
12
|
const modelValue = defineModel("modelValue", { type: Object, ...{
|
|
12
13
|
default: () => ({})
|
|
13
14
|
} });
|
|
15
|
+
const emptyFields = [];
|
|
16
|
+
const fields = props.config ? props.config.pipe(Effect.map((config) => config ?? emptyFields)) : Effect.succeed(emptyFields);
|
|
14
17
|
function handleConfigUpdate(config) {
|
|
15
18
|
emit("update:config", config);
|
|
16
19
|
}
|
|
@@ -31,7 +34,7 @@ export {
|
|
|
31
34
|
v-bind="$attrs"
|
|
32
35
|
v-model="modelValue"
|
|
33
36
|
:orientation="props.orientation"
|
|
34
|
-
:fields="
|
|
37
|
+
:fields="fields"
|
|
35
38
|
@update:fields="handleConfigUpdate"
|
|
36
39
|
>
|
|
37
40
|
<template
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Effect } from 'effect';
|
|
1
2
|
import type { Field } from './ui/fields/Fields.vue.js';
|
|
2
3
|
export { CalendarFieldC, FieldC, NumberFieldC, SelectFieldC, StringFieldC, } from './ui/fields/Fields.vue.js';
|
|
3
4
|
export type { Field } from './ui/fields/Fields.vue.js';
|
|
@@ -5,7 +6,7 @@ declare const _default: typeof __VLS_export;
|
|
|
5
6
|
export default _default;
|
|
6
7
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
7
8
|
orientation?: "horizontal" | "vertical" | "floating";
|
|
8
|
-
config
|
|
9
|
+
config?: Effect.Effect<ReadonlyArray<Field> | undefined>;
|
|
9
10
|
} & {
|
|
10
11
|
modelValue?: Record<string, unknown>;
|
|
11
12
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -86,7 +87,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
86
87
|
})[]) => any;
|
|
87
88
|
}, string, import("vue").PublicProps, Readonly<{
|
|
88
89
|
orientation?: "horizontal" | "vertical" | "floating";
|
|
89
|
-
config
|
|
90
|
+
config?: Effect.Effect<ReadonlyArray<Field> | undefined>;
|
|
90
91
|
} & {
|
|
91
92
|
modelValue?: Record<string, unknown>;
|
|
92
93
|
}> & Readonly<{
|