@shwfed/nuxt 0.10.3 → 0.10.4

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.
Files changed (23) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/button.d.vue.ts +77 -0
  3. package/dist/runtime/components/button.vue +39 -0
  4. package/dist/runtime/components/button.vue.d.ts +77 -0
  5. package/dist/runtime/components/fields.d.vue.ts +2 -2
  6. package/dist/runtime/components/fields.vue.d.ts +2 -2
  7. package/dist/runtime/components/ui/button-configurator/ButtonConfiguratorDialog.d.vue.ts +79 -0
  8. package/dist/runtime/components/ui/button-configurator/ButtonConfiguratorDialog.vue +977 -0
  9. package/dist/runtime/components/ui/button-configurator/ButtonConfiguratorDialog.vue.d.ts +79 -0
  10. package/dist/runtime/components/ui/button-configurator/menu.d.ts +47 -0
  11. package/dist/runtime/components/ui/button-configurator/menu.js +373 -0
  12. package/dist/runtime/components/ui/buttons/Buttons.d.vue.ts +77 -0
  13. package/dist/runtime/components/ui/buttons/Buttons.vue +238 -0
  14. package/dist/runtime/components/ui/buttons/Buttons.vue.d.ts +77 -0
  15. package/dist/runtime/components/ui/buttons/schema.d.ts +281 -0
  16. package/dist/runtime/components/ui/buttons/schema.js +50 -0
  17. package/dist/runtime/components/ui/fields/Fields.d.vue.ts +4 -4
  18. package/dist/runtime/components/ui/fields/Fields.vue.d.ts +4 -4
  19. package/dist/runtime/components/ui/fields/schema.d.ts +3 -3
  20. package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.d.vue.ts +2 -2
  21. package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.vue.d.ts +2 -2
  22. package/dist/runtime/components/ui/table/Table.vue +10 -9
  23. package/package.json +1 -1
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shwfed/nuxt",
3
3
  "configKey": "shwfed",
4
- "version": "0.10.3",
4
+ "version": "0.10.4",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -0,0 +1,77 @@
1
+ import { Effect } from 'effect';
2
+ import type { ButtonConfigInput } from './ui/buttons/schema.js';
3
+ export { ButtonActionC, ButtonConfigC, ButtonConfigInputC, ButtonDropdownC, ButtonGroupC } 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
+ icon?: string | undefined;
20
+ variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
21
+ hideTitle?: boolean | undefined;
22
+ }> | Readonly<{
23
+ id: string;
24
+ title: readonly {
25
+ locale: "zh" | "ja" | "en" | "ko";
26
+ message: string;
27
+ }[];
28
+ items: readonly Readonly<{
29
+ id: string;
30
+ title: readonly {
31
+ locale: "zh" | "ja" | "en" | "ko";
32
+ message: string;
33
+ }[];
34
+ icon?: string | undefined;
35
+ variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
36
+ }>[];
37
+ icon?: string | undefined;
38
+ }>)[];
39
+ }>[];
40
+ gap?: number | undefined;
41
+ }>) => any;
42
+ }, string, import("vue").PublicProps, Readonly<{
43
+ config?: ButtonConfigInput | Effect.Effect<ButtonConfigInput | undefined>;
44
+ }> & Readonly<{
45
+ "onUpdate:config"?: ((args_0: Readonly<{
46
+ groups: readonly Readonly<{
47
+ id: string;
48
+ items: readonly (Readonly<{
49
+ id: string;
50
+ title: readonly {
51
+ locale: "zh" | "ja" | "en" | "ko";
52
+ message: string;
53
+ }[];
54
+ icon?: string | undefined;
55
+ variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
56
+ hideTitle?: boolean | undefined;
57
+ }> | Readonly<{
58
+ id: string;
59
+ title: readonly {
60
+ locale: "zh" | "ja" | "en" | "ko";
61
+ message: string;
62
+ }[];
63
+ items: readonly Readonly<{
64
+ id: string;
65
+ title: readonly {
66
+ locale: "zh" | "ja" | "en" | "ko";
67
+ message: string;
68
+ }[];
69
+ icon?: string | undefined;
70
+ variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
71
+ }>[];
72
+ icon?: string | undefined;
73
+ }>)[];
74
+ }>[];
75
+ gap?: number | undefined;
76
+ }>) => any) | undefined;
77
+ }>, {}, {}, {}, {}, 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 } 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,77 @@
1
+ import { Effect } from 'effect';
2
+ import type { ButtonConfigInput } from './ui/buttons/schema.js';
3
+ export { ButtonActionC, ButtonConfigC, ButtonConfigInputC, ButtonDropdownC, ButtonGroupC } 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
+ icon?: string | undefined;
20
+ variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
21
+ hideTitle?: boolean | undefined;
22
+ }> | Readonly<{
23
+ id: string;
24
+ title: readonly {
25
+ locale: "zh" | "ja" | "en" | "ko";
26
+ message: string;
27
+ }[];
28
+ items: readonly Readonly<{
29
+ id: string;
30
+ title: readonly {
31
+ locale: "zh" | "ja" | "en" | "ko";
32
+ message: string;
33
+ }[];
34
+ icon?: string | undefined;
35
+ variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
36
+ }>[];
37
+ icon?: string | undefined;
38
+ }>)[];
39
+ }>[];
40
+ gap?: number | undefined;
41
+ }>) => any;
42
+ }, string, import("vue").PublicProps, Readonly<{
43
+ config?: ButtonConfigInput | Effect.Effect<ButtonConfigInput | undefined>;
44
+ }> & Readonly<{
45
+ "onUpdate:config"?: ((args_0: Readonly<{
46
+ groups: readonly Readonly<{
47
+ id: string;
48
+ items: readonly (Readonly<{
49
+ id: string;
50
+ title: readonly {
51
+ locale: "zh" | "ja" | "en" | "ko";
52
+ message: string;
53
+ }[];
54
+ icon?: string | undefined;
55
+ variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
56
+ hideTitle?: boolean | undefined;
57
+ }> | Readonly<{
58
+ id: string;
59
+ title: readonly {
60
+ locale: "zh" | "ja" | "en" | "ko";
61
+ message: string;
62
+ }[];
63
+ items: readonly Readonly<{
64
+ id: string;
65
+ title: readonly {
66
+ locale: "zh" | "ja" | "en" | "ko";
67
+ message: string;
68
+ }[];
69
+ icon?: string | undefined;
70
+ variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
71
+ }>[];
72
+ icon?: string | undefined;
73
+ }>)[];
74
+ }>[];
75
+ gap?: number | undefined;
76
+ }>) => any) | undefined;
77
+ }>, {}, {}, {}, {}, 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: "date" | "month" | "year";
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: "date" | "month" | "year";
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: "date" | "month" | "year";
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: "date" | "month" | "year";
220
+ mode: "month" | "year" | "date";
221
221
  value: string;
222
222
  required?: boolean | undefined;
223
223
  icon?: string | undefined;
@@ -0,0 +1,79 @@
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
+ icon?: string | undefined;
21
+ variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
22
+ hideTitle?: boolean | undefined;
23
+ }> | Readonly<{
24
+ id: string;
25
+ title: readonly {
26
+ locale: "zh" | "ja" | "en" | "ko";
27
+ message: string;
28
+ }[];
29
+ items: readonly Readonly<{
30
+ id: string;
31
+ title: readonly {
32
+ locale: "zh" | "ja" | "en" | "ko";
33
+ message: string;
34
+ }[];
35
+ icon?: string | undefined;
36
+ variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
37
+ }>[];
38
+ icon?: string | undefined;
39
+ }>)[];
40
+ }>[];
41
+ gap?: number | undefined;
42
+ }>) => any;
43
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
44
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
45
+ onConfirm?: ((args_0: Readonly<{
46
+ groups: readonly Readonly<{
47
+ id: string;
48
+ items: readonly (Readonly<{
49
+ id: string;
50
+ title: readonly {
51
+ locale: "zh" | "ja" | "en" | "ko";
52
+ message: string;
53
+ }[];
54
+ icon?: string | undefined;
55
+ variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
56
+ hideTitle?: boolean | undefined;
57
+ }> | Readonly<{
58
+ id: string;
59
+ title: readonly {
60
+ locale: "zh" | "ja" | "en" | "ko";
61
+ message: string;
62
+ }[];
63
+ items: readonly Readonly<{
64
+ id: string;
65
+ title: readonly {
66
+ locale: "zh" | "ja" | "en" | "ko";
67
+ message: string;
68
+ }[];
69
+ icon?: string | undefined;
70
+ variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
71
+ }>[];
72
+ icon?: string | undefined;
73
+ }>)[];
74
+ }>[];
75
+ gap?: number | undefined;
76
+ }>) => any) | undefined;
77
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
78
+ declare const _default: typeof __VLS_export;
79
+ export default _default;