@shwfed/nuxt 0.7.8 → 0.7.10

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 (174) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/app.d.vue.ts +7 -58
  3. package/dist/runtime/components/app.vue +18 -411
  4. package/dist/runtime/components/app.vue.d.ts +7 -58
  5. package/dist/runtime/components/fields.d.vue.ts +177 -0
  6. package/dist/runtime/components/fields.vue +47 -0
  7. package/dist/runtime/components/fields.vue.d.ts +177 -0
  8. package/dist/runtime/components/table.d.vue.ts +63 -59
  9. package/dist/runtime/components/table.vue +52 -617
  10. package/dist/runtime/components/table.vue.d.ts +63 -59
  11. package/dist/runtime/components/ui/app/App.d.vue.ts +86 -0
  12. package/dist/runtime/components/ui/app/App.vue +414 -0
  13. package/dist/runtime/components/ui/app/App.vue.d.ts +86 -0
  14. package/dist/runtime/components/ui/button-group/ButtonGroupSeparator.vue +1 -1
  15. package/dist/runtime/components/ui/button-group/ButtonGroupText.vue +1 -1
  16. package/dist/runtime/components/ui/calendar/Calendar.d.vue.ts +5 -12
  17. package/dist/runtime/components/ui/calendar/Calendar.vue +77 -92
  18. package/dist/runtime/components/ui/calendar/Calendar.vue.d.ts +5 -12
  19. package/dist/runtime/components/ui/calendar/CalendarCellTrigger.vue +1 -1
  20. package/dist/runtime/components/ui/calendar/index.d.ts +1 -1
  21. package/dist/runtime/components/ui/checkbox/Checkbox.vue +6 -2
  22. package/dist/runtime/components/ui/command/CommandGroup.vue +4 -0
  23. package/dist/runtime/components/ui/dialog/DialogOverlay.vue +1 -1
  24. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +1 -1
  25. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +1 -1
  26. package/dist/runtime/components/ui/expression-editor/ExpressionEditor.d.vue.ts +30 -0
  27. package/dist/runtime/components/ui/expression-editor/ExpressionEditor.vue +87 -0
  28. package/dist/runtime/components/ui/expression-editor/ExpressionEditor.vue.d.ts +30 -0
  29. package/dist/runtime/components/ui/expression-editor/index.d.ts +1 -0
  30. package/dist/runtime/components/ui/expression-editor/index.js +1 -0
  31. package/dist/runtime/components/ui/field/FieldContent.vue +1 -1
  32. package/dist/runtime/components/ui/field/FieldDescription.vue +1 -1
  33. package/dist/runtime/components/ui/field/FieldError.vue +2 -2
  34. package/dist/runtime/components/ui/field/FieldLabel.vue +1 -1
  35. package/dist/runtime/components/ui/field/FieldSeparator.vue +1 -1
  36. package/dist/runtime/components/ui/field/index.js +7 -5
  37. package/dist/runtime/components/ui/fields/Fields.d.vue.ts +376 -0
  38. package/dist/runtime/components/ui/fields/Fields.vue +441 -0
  39. package/dist/runtime/components/ui/fields/Fields.vue.d.ts +376 -0
  40. package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.d.vue.ts +163 -0
  41. package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.vue +363 -0
  42. package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.vue.d.ts +163 -0
  43. package/dist/runtime/components/ui/input/Input.d.vue.ts +1 -0
  44. package/dist/runtime/components/ui/input/Input.vue +3 -1
  45. package/dist/runtime/components/ui/input/Input.vue.d.ts +1 -0
  46. package/dist/runtime/components/ui/input-group/InputGroup.vue +3 -0
  47. package/dist/runtime/components/ui/input-group/InputGroupAddon.vue +4 -1
  48. package/dist/runtime/components/ui/input-group/InputGroupCombobox.d.vue.ts +11 -3
  49. package/dist/runtime/components/ui/input-group/InputGroupCombobox.vue +16 -5
  50. package/dist/runtime/components/ui/input-group/InputGroupCombobox.vue.d.ts +11 -3
  51. package/dist/runtime/components/ui/input-group/InputGroupComboboxInput.d.vue.ts +8 -1
  52. package/dist/runtime/components/ui/input-group/InputGroupComboboxInput.vue +12 -1
  53. package/dist/runtime/components/ui/input-group/InputGroupComboboxInput.vue.d.ts +8 -1
  54. package/dist/runtime/components/ui/input-group/InputGroupInput.vue +1 -1
  55. package/dist/runtime/components/ui/input-group/InputGroupNumberField.d.vue.ts +5 -2
  56. package/dist/runtime/components/ui/input-group/InputGroupNumberField.vue +10 -4
  57. package/dist/runtime/components/ui/input-group/InputGroupNumberField.vue.d.ts +5 -2
  58. package/dist/runtime/components/ui/input-group/InputGroupText.vue +1 -1
  59. package/dist/runtime/components/ui/input-group/InputGroupTextarea.vue +1 -1
  60. package/dist/runtime/components/ui/input-group/index.js +2 -2
  61. package/dist/runtime/components/ui/label/Label.vue +1 -1
  62. package/dist/runtime/components/ui/locale/Locale.d.vue.ts +20 -0
  63. package/dist/runtime/components/ui/locale/Locale.vue +291 -0
  64. package/dist/runtime/components/ui/locale/Locale.vue.d.ts +20 -0
  65. package/dist/runtime/components/ui/locale/index.d.ts +1 -0
  66. package/dist/runtime/components/ui/locale/index.js +1 -0
  67. package/dist/runtime/components/ui/native-select/NativeSelect.vue +3 -3
  68. package/dist/runtime/components/ui/native-select/NativeSelectOption.d.vue.ts +1 -0
  69. package/dist/runtime/components/ui/native-select/NativeSelectOption.vue +4 -1
  70. package/dist/runtime/components/ui/native-select/NativeSelectOption.vue.d.ts +1 -0
  71. package/dist/runtime/components/ui/navigation-menu/NavigationMenuLink.vue +1 -1
  72. package/dist/runtime/components/ui/navigation-menu/NavigationMenuViewport.vue +1 -1
  73. package/dist/runtime/components/ui/number-field/NumberFieldInput.vue +1 -1
  74. package/dist/runtime/components/ui/range-calendar/RangeCalendarCell.vue +1 -1
  75. package/dist/runtime/components/ui/range-calendar/RangeCalendarCellTrigger.vue +1 -1
  76. package/dist/runtime/components/ui/sheet/SheetOverlay.vue +1 -1
  77. package/dist/runtime/components/ui/switch/Switch.d.vue.ts +24 -0
  78. package/dist/runtime/components/ui/switch/Switch.vue +46 -0
  79. package/dist/runtime/components/ui/switch/Switch.vue.d.ts +24 -0
  80. package/dist/runtime/components/ui/switch/index.d.ts +1 -0
  81. package/dist/runtime/components/ui/switch/index.js +1 -0
  82. package/dist/runtime/components/ui/table/Table.d.vue.ts +81 -0
  83. package/dist/runtime/components/ui/table/Table.vue +792 -0
  84. package/dist/runtime/components/ui/table/Table.vue.d.ts +81 -0
  85. package/dist/runtime/components/ui/table/schema.d.ts +48 -0
  86. package/dist/runtime/components/ui/table/schema.js +126 -0
  87. package/dist/runtime/components/ui/table-configurator/TableConfiguratorDialog.d.vue.ts +62 -0
  88. package/dist/runtime/components/ui/table-configurator/TableConfiguratorDialog.vue +2233 -0
  89. package/dist/runtime/components/ui/table-configurator/TableConfiguratorDialog.vue.d.ts +62 -0
  90. package/dist/runtime/components/ui/table-configurator/menu.d.ts +37 -0
  91. package/dist/runtime/components/ui/table-configurator/menu.js +227 -0
  92. package/dist/runtime/components/ui/tabs/Tabs.d.vue.ts +24 -0
  93. package/dist/runtime/components/ui/tabs/Tabs.vue +30 -0
  94. package/dist/runtime/components/ui/tabs/Tabs.vue.d.ts +24 -0
  95. package/dist/runtime/components/ui/tabs/TabsContent.d.vue.ts +18 -0
  96. package/dist/runtime/components/ui/tabs/TabsContent.vue +23 -0
  97. package/dist/runtime/components/ui/tabs/TabsContent.vue.d.ts +18 -0
  98. package/dist/runtime/components/ui/tabs/TabsList.d.vue.ts +18 -0
  99. package/dist/runtime/components/ui/tabs/TabsList.vue +25 -0
  100. package/dist/runtime/components/ui/tabs/TabsList.vue.d.ts +18 -0
  101. package/dist/runtime/components/ui/tabs/TabsTrigger.d.vue.ts +18 -0
  102. package/dist/runtime/components/ui/tabs/TabsTrigger.vue +27 -0
  103. package/dist/runtime/components/ui/tabs/TabsTrigger.vue.d.ts +18 -0
  104. package/dist/runtime/components/ui/tabs/index.d.ts +4 -0
  105. package/dist/runtime/components/ui/tabs/index.js +4 -0
  106. package/dist/runtime/components/ui/textarea/Textarea.d.vue.ts +1 -0
  107. package/dist/runtime/components/ui/textarea/Textarea.vue +4 -2
  108. package/dist/runtime/components/ui/textarea/Textarea.vue.d.ts +1 -0
  109. package/dist/runtime/components/ui/toggle/Toggle.d.vue.ts +34 -0
  110. package/dist/runtime/components/ui/toggle/Toggle.vue +32 -0
  111. package/dist/runtime/components/ui/toggle/Toggle.vue.d.ts +34 -0
  112. package/dist/runtime/components/ui/toggle/index.d.ts +7 -0
  113. package/dist/runtime/components/ui/toggle/index.js +22 -0
  114. package/dist/runtime/composables/useTableRenderers.d.ts +2 -1
  115. package/dist/runtime/composables/useTableRenderers.js +2 -1
  116. package/dist/runtime/plugins/cel/env.d.ts +2 -2
  117. package/dist/runtime/plugins/cel/env.js +5 -4
  118. package/dist/runtime/plugins/cel/index.d.ts +3 -3
  119. package/dist/runtime/plugins/cel/index.js +7 -3
  120. package/dist/runtime/plugins/markdown/index.d.ts +1 -1
  121. package/dist/runtime/style.css +1 -1
  122. package/dist/runtime/table-renderers/builtins.js +213 -98
  123. package/dist/runtime/table-renderers/registry.d.ts +1 -0
  124. package/dist/runtime/table-renderers/registry.js +3 -0
  125. package/dist/runtime/utils/coders.d.ts +32 -0
  126. package/dist/runtime/utils/coders.js +64 -0
  127. package/dist/runtime/vendor/cel/index.d.ts +17 -0
  128. package/dist/runtime/vendor/cel/index.js +10 -0
  129. package/dist/runtime/vendor/cel-js/LICENSE +21 -0
  130. package/dist/runtime/vendor/cel-js/UPSTREAM.md +17 -0
  131. package/dist/runtime/vendor/cel-js/lib/errors.d.ts +21 -0
  132. package/dist/runtime/vendor/cel-js/lib/errors.js +97 -0
  133. package/dist/runtime/vendor/cel-js/lib/evaluator.d.ts +4 -0
  134. package/dist/runtime/vendor/cel-js/lib/evaluator.js +192 -0
  135. package/dist/runtime/vendor/cel-js/lib/functions.d.ts +53 -0
  136. package/dist/runtime/vendor/cel-js/lib/functions.js +513 -0
  137. package/dist/runtime/vendor/cel-js/lib/globals.d.ts +27 -0
  138. package/dist/runtime/vendor/cel-js/lib/globals.js +33 -0
  139. package/dist/runtime/vendor/cel-js/lib/index.d.ts +469 -0
  140. package/dist/runtime/vendor/cel-js/lib/index.js +18 -0
  141. package/dist/runtime/vendor/cel-js/lib/macros.d.ts +1 -0
  142. package/dist/runtime/vendor/cel-js/lib/macros.js +230 -0
  143. package/dist/runtime/vendor/cel-js/lib/operators.d.ts +117 -0
  144. package/dist/runtime/vendor/cel-js/lib/operators.js +739 -0
  145. package/dist/runtime/vendor/cel-js/lib/optional.d.ts +14 -0
  146. package/dist/runtime/vendor/cel-js/lib/optional.js +161 -0
  147. package/dist/runtime/vendor/cel-js/lib/options.d.ts +23 -0
  148. package/dist/runtime/vendor/cel-js/lib/options.js +47 -0
  149. package/dist/runtime/vendor/cel-js/lib/overloads.d.ts +1 -0
  150. package/dist/runtime/vendor/cel-js/lib/overloads.js +214 -0
  151. package/dist/runtime/vendor/cel-js/lib/parser.d.ts +56 -0
  152. package/dist/runtime/vendor/cel-js/lib/parser.js +827 -0
  153. package/dist/runtime/vendor/cel-js/lib/registry.d.ts +279 -0
  154. package/dist/runtime/vendor/cel-js/lib/registry.js +1596 -0
  155. package/dist/runtime/vendor/cel-js/lib/serialize.d.ts +1 -0
  156. package/dist/runtime/vendor/cel-js/lib/serialize.js +259 -0
  157. package/dist/runtime/vendor/cel-js/lib/type-checker.d.ts +26 -0
  158. package/dist/runtime/vendor/cel-js/lib/type-checker.js +81 -0
  159. package/package.json +9 -4
  160. package/dist/runtime/components/locale.d.vue.ts +0 -14
  161. package/dist/runtime/components/locale.vue +0 -89
  162. package/dist/runtime/components/locale.vue.d.ts +0 -14
  163. package/dist/runtime/components/query.d.vue.ts +0 -30
  164. package/dist/runtime/components/query.vue +0 -266
  165. package/dist/runtime/components/query.vue.d.ts +0 -30
  166. package/dist/runtime/utilities/query-config/global.d.ts +0 -4
  167. package/dist/runtime/utilities/query-config/global.js +0 -18
  168. package/dist/runtime/utilities/query-config/index.d.ts +0 -3
  169. package/dist/runtime/utilities/query-config/index.js +0 -14
  170. package/dist/runtime/utilities/query-config/schema.d.ts +0 -96
  171. package/dist/runtime/utilities/query-config/schema.js +0 -51
  172. /package/dist/runtime/components/{logo.d.vue.ts → ui/logo/Logo.d.vue.ts} +0 -0
  173. /package/dist/runtime/components/{logo.vue → ui/logo/Logo.vue} +0 -0
  174. /package/dist/runtime/components/{logo.vue.d.ts → ui/logo/Logo.vue.d.ts} +0 -0
@@ -0,0 +1,177 @@
1
+ import type { Field } from './ui/fields/Fields.vue.js';
2
+ export { CalendarFieldC, FieldC, NumberFieldC, SelectFieldC, StringFieldC, } from './ui/fields/Fields.vue.js';
3
+ export type { Field } from './ui/fields/Fields.vue.js';
4
+ declare const _default: typeof __VLS_export;
5
+ export default _default;
6
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
7
+ orientation?: "horizontal" | "vertical" | "floating";
8
+ fields: import("effect").Effect.Effect<ReadonlyArray<Field>>;
9
+ } & {
10
+ modelValue?: Record<string, unknown>;
11
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ "update:modelValue": (value: Record<string, unknown>) => any;
13
+ "update:fields": (args_0: readonly ({
14
+ type: "string";
15
+ path: string;
16
+ title: readonly {
17
+ locale: "zh" | "ja" | "en" | "ko";
18
+ message: string;
19
+ }[];
20
+ icon?: string | undefined;
21
+ style?: string | undefined;
22
+ discardEmptyString?: boolean | undefined;
23
+ maxLength?: string | undefined;
24
+ hidden?: string | undefined;
25
+ disabled?: string | undefined;
26
+ validation?: readonly Readonly<{
27
+ expression: string;
28
+ message: string;
29
+ }>[] | undefined;
30
+ } | {
31
+ type: "number";
32
+ path: string;
33
+ title: readonly {
34
+ locale: "zh" | "ja" | "en" | "ko";
35
+ message: string;
36
+ }[];
37
+ icon?: string | undefined;
38
+ style?: string | undefined;
39
+ min?: string | undefined;
40
+ max?: string | undefined;
41
+ step?: string | undefined;
42
+ hidden?: string | undefined;
43
+ disabled?: string | undefined;
44
+ validation?: readonly Readonly<{
45
+ expression: string;
46
+ message: string;
47
+ }>[] | undefined;
48
+ } | {
49
+ type: "select";
50
+ path: string;
51
+ title: readonly {
52
+ locale: "zh" | "ja" | "en" | "ko";
53
+ message: string;
54
+ }[];
55
+ options: string;
56
+ label: string;
57
+ value: string;
58
+ key: string;
59
+ icon?: string | undefined;
60
+ style?: string | undefined;
61
+ hidden?: string | undefined;
62
+ disabled?: string | undefined;
63
+ validation?: readonly Readonly<{
64
+ expression: string;
65
+ message: string;
66
+ }>[] | undefined;
67
+ } | {
68
+ type: "calendar";
69
+ path: string;
70
+ title: readonly {
71
+ locale: "zh" | "ja" | "en" | "ko";
72
+ message: string;
73
+ }[];
74
+ mode: "year" | "month" | "date";
75
+ value: string;
76
+ icon?: string | undefined;
77
+ style?: string | undefined;
78
+ display?: string | undefined;
79
+ disableDate?: string | undefined;
80
+ hidden?: string | undefined;
81
+ disabled?: string | undefined;
82
+ validation?: readonly Readonly<{
83
+ expression: string;
84
+ message: string;
85
+ }>[] | undefined;
86
+ })[]) => any;
87
+ }, string, import("vue").PublicProps, Readonly<{
88
+ orientation?: "horizontal" | "vertical" | "floating";
89
+ fields: import("effect").Effect.Effect<ReadonlyArray<Field>>;
90
+ } & {
91
+ modelValue?: Record<string, unknown>;
92
+ }> & Readonly<{
93
+ "onUpdate:modelValue"?: ((value: Record<string, unknown>) => any) | undefined;
94
+ "onUpdate:fields"?: ((args_0: readonly ({
95
+ type: "string";
96
+ path: string;
97
+ title: readonly {
98
+ locale: "zh" | "ja" | "en" | "ko";
99
+ message: string;
100
+ }[];
101
+ icon?: string | undefined;
102
+ style?: string | undefined;
103
+ discardEmptyString?: boolean | undefined;
104
+ maxLength?: string | undefined;
105
+ hidden?: string | undefined;
106
+ disabled?: string | undefined;
107
+ validation?: readonly Readonly<{
108
+ expression: string;
109
+ message: string;
110
+ }>[] | undefined;
111
+ } | {
112
+ type: "number";
113
+ path: string;
114
+ title: readonly {
115
+ locale: "zh" | "ja" | "en" | "ko";
116
+ message: string;
117
+ }[];
118
+ icon?: string | undefined;
119
+ style?: string | undefined;
120
+ min?: string | undefined;
121
+ max?: string | undefined;
122
+ step?: string | undefined;
123
+ hidden?: string | undefined;
124
+ disabled?: string | undefined;
125
+ validation?: readonly Readonly<{
126
+ expression: string;
127
+ message: string;
128
+ }>[] | undefined;
129
+ } | {
130
+ type: "select";
131
+ path: string;
132
+ title: readonly {
133
+ locale: "zh" | "ja" | "en" | "ko";
134
+ message: string;
135
+ }[];
136
+ options: string;
137
+ label: string;
138
+ value: string;
139
+ key: string;
140
+ icon?: string | undefined;
141
+ style?: string | undefined;
142
+ hidden?: string | undefined;
143
+ disabled?: string | undefined;
144
+ validation?: readonly Readonly<{
145
+ expression: string;
146
+ message: string;
147
+ }>[] | undefined;
148
+ } | {
149
+ type: "calendar";
150
+ path: string;
151
+ title: readonly {
152
+ locale: "zh" | "ja" | "en" | "ko";
153
+ message: string;
154
+ }[];
155
+ mode: "year" | "month" | "date";
156
+ value: string;
157
+ icon?: string | undefined;
158
+ style?: string | undefined;
159
+ display?: string | undefined;
160
+ disableDate?: string | undefined;
161
+ hidden?: string | undefined;
162
+ disabled?: string | undefined;
163
+ validation?: readonly Readonly<{
164
+ expression: string;
165
+ message: string;
166
+ }>[] | undefined;
167
+ })[]) => any) | undefined;
168
+ }>, {
169
+ orientation: "horizontal" | "vertical" | "floating";
170
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
171
+ [x: string]: ((props: any) => any) | undefined;
172
+ }>;
173
+ type __VLS_WithSlots<T, S> = T & {
174
+ new (): {
175
+ $slots: S;
176
+ };
177
+ };
@@ -0,0 +1,47 @@
1
+ <script setup>
2
+ import UiFields from "./ui/fields/Fields.vue";
3
+ defineOptions({
4
+ inheritAttrs: false
5
+ });
6
+ const props = defineProps({
7
+ orientation: { type: String, required: false, default: "horizontal" },
8
+ fields: { type: null, required: true }
9
+ });
10
+ const emit = defineEmits(["update:fields"]);
11
+ const modelValue = defineModel("modelValue", { type: Object, ...{
12
+ default: () => ({})
13
+ } });
14
+ function handleFieldsUpdate(fields) {
15
+ emit("update:fields", fields);
16
+ }
17
+ </script>
18
+
19
+ <script>
20
+ export {
21
+ CalendarFieldC,
22
+ FieldC,
23
+ NumberFieldC,
24
+ SelectFieldC,
25
+ StringFieldC
26
+ } from "./ui/fields/Fields.vue";
27
+ </script>
28
+
29
+ <template>
30
+ <UiFields
31
+ v-bind="$attrs"
32
+ v-model="modelValue"
33
+ :orientation="props.orientation"
34
+ :fields="props.fields"
35
+ @update:fields="handleFieldsUpdate"
36
+ >
37
+ <template
38
+ v-for="(_, slotName) in $slots"
39
+ #[slotName]="slotProps"
40
+ >
41
+ <slot
42
+ :name="slotName"
43
+ v-bind="slotProps ?? {}"
44
+ />
45
+ </template>
46
+ </UiFields>
47
+ </template>
@@ -0,0 +1,177 @@
1
+ import type { Field } from './ui/fields/Fields.vue.js';
2
+ export { CalendarFieldC, FieldC, NumberFieldC, SelectFieldC, StringFieldC, } from './ui/fields/Fields.vue.js';
3
+ export type { Field } from './ui/fields/Fields.vue.js';
4
+ declare const _default: typeof __VLS_export;
5
+ export default _default;
6
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
7
+ orientation?: "horizontal" | "vertical" | "floating";
8
+ fields: import("effect").Effect.Effect<ReadonlyArray<Field>>;
9
+ } & {
10
+ modelValue?: Record<string, unknown>;
11
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ "update:modelValue": (value: Record<string, unknown>) => any;
13
+ "update:fields": (args_0: readonly ({
14
+ type: "string";
15
+ path: string;
16
+ title: readonly {
17
+ locale: "zh" | "ja" | "en" | "ko";
18
+ message: string;
19
+ }[];
20
+ icon?: string | undefined;
21
+ style?: string | undefined;
22
+ discardEmptyString?: boolean | undefined;
23
+ maxLength?: string | undefined;
24
+ hidden?: string | undefined;
25
+ disabled?: string | undefined;
26
+ validation?: readonly Readonly<{
27
+ expression: string;
28
+ message: string;
29
+ }>[] | undefined;
30
+ } | {
31
+ type: "number";
32
+ path: string;
33
+ title: readonly {
34
+ locale: "zh" | "ja" | "en" | "ko";
35
+ message: string;
36
+ }[];
37
+ icon?: string | undefined;
38
+ style?: string | undefined;
39
+ min?: string | undefined;
40
+ max?: string | undefined;
41
+ step?: string | undefined;
42
+ hidden?: string | undefined;
43
+ disabled?: string | undefined;
44
+ validation?: readonly Readonly<{
45
+ expression: string;
46
+ message: string;
47
+ }>[] | undefined;
48
+ } | {
49
+ type: "select";
50
+ path: string;
51
+ title: readonly {
52
+ locale: "zh" | "ja" | "en" | "ko";
53
+ message: string;
54
+ }[];
55
+ options: string;
56
+ label: string;
57
+ value: string;
58
+ key: string;
59
+ icon?: string | undefined;
60
+ style?: string | undefined;
61
+ hidden?: string | undefined;
62
+ disabled?: string | undefined;
63
+ validation?: readonly Readonly<{
64
+ expression: string;
65
+ message: string;
66
+ }>[] | undefined;
67
+ } | {
68
+ type: "calendar";
69
+ path: string;
70
+ title: readonly {
71
+ locale: "zh" | "ja" | "en" | "ko";
72
+ message: string;
73
+ }[];
74
+ mode: "year" | "month" | "date";
75
+ value: string;
76
+ icon?: string | undefined;
77
+ style?: string | undefined;
78
+ display?: string | undefined;
79
+ disableDate?: string | undefined;
80
+ hidden?: string | undefined;
81
+ disabled?: string | undefined;
82
+ validation?: readonly Readonly<{
83
+ expression: string;
84
+ message: string;
85
+ }>[] | undefined;
86
+ })[]) => any;
87
+ }, string, import("vue").PublicProps, Readonly<{
88
+ orientation?: "horizontal" | "vertical" | "floating";
89
+ fields: import("effect").Effect.Effect<ReadonlyArray<Field>>;
90
+ } & {
91
+ modelValue?: Record<string, unknown>;
92
+ }> & Readonly<{
93
+ "onUpdate:modelValue"?: ((value: Record<string, unknown>) => any) | undefined;
94
+ "onUpdate:fields"?: ((args_0: readonly ({
95
+ type: "string";
96
+ path: string;
97
+ title: readonly {
98
+ locale: "zh" | "ja" | "en" | "ko";
99
+ message: string;
100
+ }[];
101
+ icon?: string | undefined;
102
+ style?: string | undefined;
103
+ discardEmptyString?: boolean | undefined;
104
+ maxLength?: string | undefined;
105
+ hidden?: string | undefined;
106
+ disabled?: string | undefined;
107
+ validation?: readonly Readonly<{
108
+ expression: string;
109
+ message: string;
110
+ }>[] | undefined;
111
+ } | {
112
+ type: "number";
113
+ path: string;
114
+ title: readonly {
115
+ locale: "zh" | "ja" | "en" | "ko";
116
+ message: string;
117
+ }[];
118
+ icon?: string | undefined;
119
+ style?: string | undefined;
120
+ min?: string | undefined;
121
+ max?: string | undefined;
122
+ step?: string | undefined;
123
+ hidden?: string | undefined;
124
+ disabled?: string | undefined;
125
+ validation?: readonly Readonly<{
126
+ expression: string;
127
+ message: string;
128
+ }>[] | undefined;
129
+ } | {
130
+ type: "select";
131
+ path: string;
132
+ title: readonly {
133
+ locale: "zh" | "ja" | "en" | "ko";
134
+ message: string;
135
+ }[];
136
+ options: string;
137
+ label: string;
138
+ value: string;
139
+ key: string;
140
+ icon?: string | undefined;
141
+ style?: string | undefined;
142
+ hidden?: string | undefined;
143
+ disabled?: string | undefined;
144
+ validation?: readonly Readonly<{
145
+ expression: string;
146
+ message: string;
147
+ }>[] | undefined;
148
+ } | {
149
+ type: "calendar";
150
+ path: string;
151
+ title: readonly {
152
+ locale: "zh" | "ja" | "en" | "ko";
153
+ message: string;
154
+ }[];
155
+ mode: "year" | "month" | "date";
156
+ value: string;
157
+ icon?: string | undefined;
158
+ style?: string | undefined;
159
+ display?: string | undefined;
160
+ disableDate?: string | undefined;
161
+ hidden?: string | undefined;
162
+ disabled?: string | undefined;
163
+ validation?: readonly Readonly<{
164
+ expression: string;
165
+ message: string;
166
+ }>[] | undefined;
167
+ })[]) => any) | undefined;
168
+ }>, {
169
+ orientation: "horizontal" | "vertical" | "floating";
170
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
171
+ [x: string]: ((props: any) => any) | undefined;
172
+ }>;
173
+ type __VLS_WithSlots<T, S> = T & {
174
+ new (): {
175
+ $slots: S;
176
+ };
177
+ };
@@ -1,72 +1,76 @@
1
- import type { CellContext, RowData, TableOptions } from '@tanstack/vue-table';
2
- export type Expression = string;
3
- export type Markdown = string;
4
- export type Render = string | Readonly<{
5
- id: string;
6
- props: unknown;
7
- }>;
8
- export type Accessor = string | Readonly<{
9
- read: Expression;
10
- write: Expression;
11
- }>;
12
- export type Column = Readonly<{
13
- id?: string;
14
- title?: Record<string, string>;
15
- accessor?: Accessor;
16
- accessorKey?: string;
17
- renderer?: Render;
18
- tooltip?: Record<string, string>;
19
- size?: number;
20
- enableSorting?: boolean;
21
- enableMultiSorting?: boolean;
22
- enablePinning?: boolean;
23
- columns?: ReadonlyArray<Column>;
24
- grow?: boolean;
25
- }>;
1
+ import type { TableConfig } from './ui/table/schema.js';
2
+ export type { Accessor, Column, Expression, Markdown, Render, TableConfig } from './ui/table/schema.js';
3
+ export { AccessorC, ColumnC, RenderC, TableConfigC } from './ui/table/schema.js';
26
4
  declare module '@tanstack/vue-table' {
27
- interface ColumnMeta<TData extends RowData, TValue> {
5
+ interface ColumnMeta<TData extends import('@tanstack/vue-table').RowData, TValue> {
28
6
  tooltip?: string;
29
7
  grow?: boolean;
8
+ accessor?: import('./ui/table/schema').Accessor;
30
9
  __types?: [TData, TValue];
31
10
  }
32
11
  }
33
12
  declare const _default: typeof __VLS_export;
34
13
  export default _default;
35
- declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Readonly<{
36
- id: string;
37
- getRowId?: Expression;
38
- getSubRows?: Expression;
39
- enableRowSelection?: Expression;
40
- enableMultiRowSelection?: Expression;
41
- columns: ReadonlyArray<Column>;
14
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
15
+ config: import("effect").Effect.Effect<TableConfig>;
42
16
  data: Array<unknown>;
43
- cellStyles?: Expression;
44
- props?: Omit<TableOptions<unknown>, "columns" | "data" | "getRowId" | "getCoreRowModel">;
45
- paginationLeft?: Markdown;
46
- paginationRight?: Markdown;
47
- }>, import("@tanstack/table-core").Table<unknown>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Readonly<{
48
- id: string;
49
- getRowId?: Expression;
50
- getSubRows?: Expression;
51
- enableRowSelection?: Expression;
52
- enableMultiRowSelection?: Expression;
53
- columns: ReadonlyArray<Column>;
17
+ rowCount?: number;
18
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ "update:config": (args_0: Readonly<{
20
+ getRowId?: import("./table.vue.js").Expression;
21
+ getSubRows?: import("./table.vue.js").Expression;
22
+ enableRowSelection?: import("./table.vue.js").Expression;
23
+ enableMultiRowSelection?: import("./table.vue.js").Expression;
24
+ columns: readonly Readonly<{
25
+ id?: string;
26
+ title?: import("../utils/coders.js").LocaleValue;
27
+ accessor?: import("./table.vue.js").Accessor;
28
+ renderer?: import("./table.vue.js").Render;
29
+ tooltip?: import("../utils/coders.js").LocaleValue;
30
+ size?: number;
31
+ enableSorting?: boolean;
32
+ enableMultiSorting?: boolean;
33
+ enablePinning?: boolean;
34
+ columns?: readonly Readonly</*elided*/ any>[];
35
+ grow?: boolean;
36
+ }>[];
37
+ cellStyles?: import("./table.vue.js").Expression;
38
+ props?: Omit<import("@tanstack/table-core").TableOptions<unknown>, "columns" | "data" | "getRowId" | "getCoreRowModel">;
39
+ paginationLeft?: import("./table.vue.js").Markdown;
40
+ paginationRight?: import("./table.vue.js").Markdown;
41
+ }>) => any;
42
+ }, string, import("vue").PublicProps, Readonly<{
43
+ config: import("effect").Effect.Effect<TableConfig>;
54
44
  data: Array<unknown>;
55
- cellStyles?: Expression;
56
- props?: Omit<TableOptions<unknown>, "columns" | "data" | "getRowId" | "getCoreRowModel">;
57
- paginationLeft?: Markdown;
58
- paginationRight?: Markdown;
59
- }>> & Readonly<{}>, {
60
- readonly props: Omit<TableOptions<unknown>, "columns" | "data" | "getRowId" | "getCoreRowModel">;
61
- readonly getRowId: Expression;
62
- readonly getSubRows: Expression;
63
- readonly enableMultiRowSelection: Expression;
64
- readonly enableRowSelection: Expression;
65
- readonly cellStyles: Expression;
66
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
67
- [key: string]: (props: Readonly<{
68
- cell: CellContext<unknown, unknown>;
69
- }>) => void;
45
+ rowCount?: number;
46
+ }> & Readonly<{
47
+ "onUpdate:config"?: ((args_0: Readonly<{
48
+ getRowId?: import("./table.vue.js").Expression;
49
+ getSubRows?: import("./table.vue.js").Expression;
50
+ enableRowSelection?: import("./table.vue.js").Expression;
51
+ enableMultiRowSelection?: import("./table.vue.js").Expression;
52
+ columns: readonly Readonly<{
53
+ id?: string;
54
+ title?: import("../utils/coders.js").LocaleValue;
55
+ accessor?: import("./table.vue.js").Accessor;
56
+ renderer?: import("./table.vue.js").Render;
57
+ tooltip?: import("../utils/coders.js").LocaleValue;
58
+ size?: number;
59
+ enableSorting?: boolean;
60
+ enableMultiSorting?: boolean;
61
+ enablePinning?: boolean;
62
+ columns?: readonly Readonly</*elided*/ any>[];
63
+ grow?: boolean;
64
+ }>[];
65
+ cellStyles?: import("./table.vue.js").Expression;
66
+ props?: Omit<import("@tanstack/table-core").TableOptions<unknown>, "columns" | "data" | "getRowId" | "getCoreRowModel">;
67
+ paginationLeft?: import("./table.vue.js").Markdown;
68
+ paginationRight?: import("./table.vue.js").Markdown;
69
+ }>) => any) | undefined;
70
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
71
+ [x: string]: ((props: {
72
+ cell: import("@tanstack/table-core").CellContext<unknown, unknown>;
73
+ }) => any) | undefined;
70
74
  }>;
71
75
  type __VLS_WithSlots<T, S> = T & {
72
76
  new (): {