@shwfed/nuxt 0.10.15 → 0.11.1
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 +8 -2
- package/dist/runtime/components/button.vue +19 -3
- package/dist/runtime/components/button.vue.d.ts +8 -2
- package/dist/runtime/components/component-config.d.ts +12 -0
- package/dist/runtime/components/component-config.js +22 -0
- package/dist/runtime/components/fields.d.vue.ts +9 -5
- package/dist/runtime/components/fields.vue +14 -5
- package/dist/runtime/components/fields.vue.d.ts +9 -5
- package/dist/runtime/components/markdown.d.vue.ts +19 -9
- package/dist/runtime/components/markdown.vue +15 -3
- package/dist/runtime/components/markdown.vue.d.ts +19 -9
- package/dist/runtime/components/menu-tabs.d.vue.ts +14 -4
- package/dist/runtime/components/menu-tabs.vue +15 -3
- package/dist/runtime/components/menu-tabs.vue.d.ts +14 -4
- package/dist/runtime/components/table.d.vue.ts +8 -3
- package/dist/runtime/components/table.vue +28 -2
- package/dist/runtime/components/table.vue.d.ts +8 -3
- package/dist/runtime/components/ui/button-configurator/ButtonConfiguratorDialog.d.vue.ts +4 -0
- package/dist/runtime/components/ui/button-configurator/ButtonConfiguratorDialog.vue +12 -4
- package/dist/runtime/components/ui/button-configurator/ButtonConfiguratorDialog.vue.d.ts +4 -0
- package/dist/runtime/components/ui/buttons/Buttons.d.vue.ts +11 -4
- package/dist/runtime/components/ui/buttons/Buttons.vue +74 -8
- package/dist/runtime/components/ui/buttons/Buttons.vue.d.ts +11 -4
- package/dist/runtime/components/ui/buttons/schema.d.ts +255 -2
- package/dist/runtime/components/ui/buttons/schema.js +13 -21
- package/dist/runtime/components/ui/fields/Fields.d.vue.ts +10 -2
- package/dist/runtime/components/ui/fields/Fields.vue +12 -3
- package/dist/runtime/components/ui/fields/Fields.vue.d.ts +10 -2
- package/dist/runtime/components/ui/fields/schema.d.ts +464 -0
- package/dist/runtime/components/ui/fields/schema.js +15 -2
- package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.d.vue.ts +4 -0
- package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.vue +10 -4
- package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.vue.d.ts +4 -0
- package/dist/runtime/components/ui/markdown/Markdown.d.vue.ts +18 -8
- package/dist/runtime/components/ui/markdown/Markdown.vue +13 -3
- package/dist/runtime/components/ui/markdown/Markdown.vue.d.ts +18 -8
- package/dist/runtime/components/ui/markdown/schema.d.ts +51 -6
- package/dist/runtime/components/ui/markdown/schema.js +15 -2
- package/dist/runtime/components/ui/markdown-configurator/MarkdownConfiguratorDialog.d.vue.ts +16 -7
- package/dist/runtime/components/ui/markdown-configurator/MarkdownConfiguratorDialog.vue +12 -7
- package/dist/runtime/components/ui/markdown-configurator/MarkdownConfiguratorDialog.vue.d.ts +16 -7
- package/dist/runtime/components/ui/menu-tabs/MenuTabs.d.vue.ts +14 -4
- package/dist/runtime/components/ui/menu-tabs/MenuTabs.vue +16 -5
- package/dist/runtime/components/ui/menu-tabs/MenuTabs.vue.d.ts +14 -4
- package/dist/runtime/components/ui/menu-tabs/schema.d.ts +42 -5
- package/dist/runtime/components/ui/menu-tabs/schema.js +13 -12
- package/dist/runtime/components/ui/menu-tabs-configurator/MenuTabsConfiguratorDialog.d.vue.ts +12 -3
- package/dist/runtime/components/ui/menu-tabs-configurator/MenuTabsConfiguratorDialog.vue +9 -5
- package/dist/runtime/components/ui/menu-tabs-configurator/MenuTabsConfiguratorDialog.vue.d.ts +12 -3
- package/dist/runtime/components/ui/table/Table.d.vue.ts +6 -2
- package/dist/runtime/components/ui/table/Table.vue +18 -2
- package/dist/runtime/components/ui/table/Table.vue.d.ts +6 -2
- package/dist/runtime/components/ui/table/schema.d.ts +239 -2
- package/dist/runtime/components/ui/table/schema.js +15 -6
- package/dist/runtime/components/ui/table-configurator/TableConfiguratorDialog.d.vue.ts +4 -0
- package/dist/runtime/components/ui/table-configurator/TableConfiguratorDialog.vue +2 -1
- package/dist/runtime/components/ui/table-configurator/TableConfiguratorDialog.vue.d.ts +4 -0
- package/dist/runtime/composables/useButtonAction.d.ts +21 -0
- package/dist/runtime/composables/useButtonAction.js +6 -0
- package/dist/runtime/plugins/toast/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
|
+
import { createComponentConfig, createComponentConfigMetadataShape } from "../../component-config.js";
|
|
2
3
|
import { expressionC, localeC } from "../../../utils/coders.js";
|
|
3
4
|
const menuTabsItemIdC = z.uuid().describe("\u83DC\u5355\u9879\u552F\u4E00\u6807\u8BC6\uFF0C\u5FC5\u987B\u662F UUID");
|
|
5
|
+
export const KIND = "shwfed.component.menu-tabs";
|
|
6
|
+
export const CURRENT_COMPATIBILITY_DATE = "2026-03-20";
|
|
7
|
+
export const SUPPORTED_COMPATIBILITY_DATES = [CURRENT_COMPATIBILITY_DATE];
|
|
4
8
|
export const MenuTabsItemToC = expressionC("string", { context: "dyn" }).describe("\u8FD4\u56DE\u76EE\u6807\u8DEF\u5F84\u7684 CEL \u8868\u8FBE\u5F0F\u3002\u53EF\u7528\u53D8\u91CF\uFF1Acontext\u3002\u5FC5\u987B\u8FD4\u56DE string\u3002");
|
|
5
9
|
export const MenuTabsItemC = z.strictObject({
|
|
6
10
|
id: menuTabsItemIdC,
|
|
7
11
|
title: localeC.describe("\u83DC\u5355\u540D\u79F0\u7684\u672C\u5730\u5316\u663E\u793A\u6587\u672C"),
|
|
8
12
|
to: MenuTabsItemToC
|
|
9
13
|
}).readonly();
|
|
10
|
-
|
|
14
|
+
const MenuTabsBodyObjectC = z.strictObject({
|
|
11
15
|
menus: z.array(MenuTabsItemC).readonly().describe("\u9876\u90E8\u83DC\u5355\u5217\u8868")
|
|
12
|
-
})
|
|
16
|
+
});
|
|
17
|
+
export const MenuTabsBodyC = MenuTabsBodyObjectC.readonly();
|
|
18
|
+
export const MenuTabsBodyInputC = MenuTabsBodyC;
|
|
19
|
+
export const MenuTabsConfigC = MenuTabsBodyObjectC.extend(
|
|
20
|
+
createComponentConfigMetadataShape(KIND, SUPPORTED_COMPATIBILITY_DATES)
|
|
21
|
+
).readonly();
|
|
13
22
|
export const MenuTabsConfigInputC = MenuTabsConfigC;
|
|
14
|
-
export function
|
|
15
|
-
|
|
16
|
-
return {
|
|
17
|
-
menus: []
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
const menus = Reflect.get(value, "menus");
|
|
21
|
-
return {
|
|
22
|
-
menus: Array.isArray(menus) ? menus : []
|
|
23
|
-
};
|
|
23
|
+
export function createMenuTabsConfig(body) {
|
|
24
|
+
return createComponentConfig(KIND, CURRENT_COMPATIBILITY_DATE, body);
|
|
24
25
|
}
|
package/dist/runtime/components/ui/menu-tabs-configurator/MenuTabsConfiguratorDialog.d.vue.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { LocaleValue } from '../../../utils/coders.js';
|
|
2
1
|
import { type MenuTabsConfig } from '../menu-tabs/schema.js';
|
|
3
2
|
type __VLS_Props = {
|
|
4
3
|
config: MenuTabsConfig;
|
|
@@ -12,18 +11,28 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
12
11
|
confirm: (args_0: Readonly<{
|
|
13
12
|
menus: readonly Readonly<{
|
|
14
13
|
id: string;
|
|
15
|
-
title:
|
|
14
|
+
title: readonly {
|
|
15
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
16
|
+
message: string;
|
|
17
|
+
}[];
|
|
16
18
|
to: string;
|
|
17
19
|
}>[];
|
|
20
|
+
kind: string;
|
|
21
|
+
compatibilityDate: string;
|
|
18
22
|
}>) => any;
|
|
19
23
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
20
24
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
21
25
|
onConfirm?: ((args_0: Readonly<{
|
|
22
26
|
menus: readonly Readonly<{
|
|
23
27
|
id: string;
|
|
24
|
-
title:
|
|
28
|
+
title: readonly {
|
|
29
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
30
|
+
message: string;
|
|
31
|
+
}[];
|
|
25
32
|
to: string;
|
|
26
33
|
}>[];
|
|
34
|
+
kind: string;
|
|
35
|
+
compatibilityDate: string;
|
|
27
36
|
}>) => any) | undefined;
|
|
28
37
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
38
|
declare const _default: typeof __VLS_export;
|
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
import { ExpressionEditor } from "../expression-editor";
|
|
17
17
|
import { Input } from "../input";
|
|
18
18
|
import Locale from "../locale/Locale.vue";
|
|
19
|
-
import { MenuTabsConfigC, MenuTabsItemToC } from "../menu-tabs/schema";
|
|
19
|
+
import { MenuTabsBodyC, MenuTabsConfigC, MenuTabsItemToC } from "../menu-tabs/schema";
|
|
20
20
|
defineOptions({
|
|
21
21
|
inheritAttrs: false
|
|
22
22
|
});
|
|
23
23
|
const props = defineProps({
|
|
24
|
-
config: { type:
|
|
24
|
+
config: { type: null, required: true }
|
|
25
25
|
});
|
|
26
26
|
const emit = defineEmits(["confirm"]);
|
|
27
27
|
const open = defineModel("open", { type: Boolean, ...{
|
|
@@ -188,13 +188,17 @@ function deleteMenu(draftId) {
|
|
|
188
188
|
selectedItemId.value = fallbackMenu?.draftId ?? "";
|
|
189
189
|
}
|
|
190
190
|
function buildDraftConfig() {
|
|
191
|
-
const
|
|
191
|
+
const bodyResult = MenuTabsBodyC.safeParse({
|
|
192
192
|
menus: draftMenus.value.map((item) => item.menu)
|
|
193
193
|
});
|
|
194
|
-
if (!
|
|
194
|
+
if (!bodyResult.success) {
|
|
195
195
|
return void 0;
|
|
196
196
|
}
|
|
197
|
-
return
|
|
197
|
+
return MenuTabsConfigC.parse({
|
|
198
|
+
...bodyResult.data,
|
|
199
|
+
kind: props.config.kind,
|
|
200
|
+
compatibilityDate: props.config.compatibilityDate
|
|
201
|
+
});
|
|
198
202
|
}
|
|
199
203
|
function handleConfirm() {
|
|
200
204
|
if (selectedMenu.value && !(toEditor.value?.validate() ?? true)) {
|
package/dist/runtime/components/ui/menu-tabs-configurator/MenuTabsConfiguratorDialog.vue.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { LocaleValue } from '../../../utils/coders.js';
|
|
2
1
|
import { type MenuTabsConfig } from '../menu-tabs/schema.js';
|
|
3
2
|
type __VLS_Props = {
|
|
4
3
|
config: MenuTabsConfig;
|
|
@@ -12,18 +11,28 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
12
11
|
confirm: (args_0: Readonly<{
|
|
13
12
|
menus: readonly Readonly<{
|
|
14
13
|
id: string;
|
|
15
|
-
title:
|
|
14
|
+
title: readonly {
|
|
15
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
16
|
+
message: string;
|
|
17
|
+
}[];
|
|
16
18
|
to: string;
|
|
17
19
|
}>[];
|
|
20
|
+
kind: string;
|
|
21
|
+
compatibilityDate: string;
|
|
18
22
|
}>) => any;
|
|
19
23
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
20
24
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
21
25
|
onConfirm?: ((args_0: Readonly<{
|
|
22
26
|
menus: readonly Readonly<{
|
|
23
27
|
id: string;
|
|
24
|
-
title:
|
|
28
|
+
title: readonly {
|
|
29
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
30
|
+
message: string;
|
|
31
|
+
}[];
|
|
25
32
|
to: string;
|
|
26
33
|
}>[];
|
|
34
|
+
kind: string;
|
|
35
|
+
compatibilityDate: string;
|
|
27
36
|
}>) => any) | undefined;
|
|
28
37
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
38
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type CellContext } from '@tanstack/vue-table';
|
|
2
2
|
import { Effect } from 'effect';
|
|
3
3
|
import { type TableConfigInput } from './schema.js';
|
|
4
|
-
export type { Accessor, Column, Expression, Markdown, Render, TableConfig } from './schema.js';
|
|
5
|
-
export { AccessorC, ColumnC, RenderC, TableConfigC } from './schema.js';
|
|
4
|
+
export type { Accessor, Column, Expression, Markdown, Render, TableBody, TableBodyInput, TableConfig, TableConfigInput, } from './schema.js';
|
|
5
|
+
export { AccessorC, ColumnC, CURRENT_COMPATIBILITY_DATE, KIND, RenderC, SUPPORTED_COMPATIBILITY_DATES, TableBodyC, TableBodyInputC, TableConfigC, TableConfigInputC, createTableConfig, } from './schema.js';
|
|
6
6
|
export type TableInstance = import('@tanstack/table-core').Table<unknown>;
|
|
7
7
|
declare module '@tanstack/vue-table' {
|
|
8
8
|
interface ColumnMeta<TData extends import('@tanstack/vue-table').RowData, TValue> {
|
|
@@ -20,6 +20,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
20
20
|
rowCount?: number;
|
|
21
21
|
}, import("@tanstack/table-core").Table<unknown>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
22
|
"update:config": (args_0: Readonly<{
|
|
23
|
+
kind: string;
|
|
24
|
+
compatibilityDate: string;
|
|
23
25
|
getRowId?: import("./schema.js").Expression;
|
|
24
26
|
getSubRows?: import("./schema.js").Expression;
|
|
25
27
|
enableRowSelection?: import("./schema.js").Expression;
|
|
@@ -81,6 +83,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
81
83
|
rowCount?: number;
|
|
82
84
|
}> & Readonly<{
|
|
83
85
|
"onUpdate:config"?: ((args_0: Readonly<{
|
|
86
|
+
kind: string;
|
|
87
|
+
compatibilityDate: string;
|
|
84
88
|
getRowId?: import("./schema.js").Expression;
|
|
85
89
|
getSubRows?: import("./schema.js").Expression;
|
|
86
90
|
enableRowSelection?: import("./schema.js").Expression;
|
|
@@ -20,6 +20,7 @@ import { useI18n } from "vue-i18n";
|
|
|
20
20
|
import { useTableRenderers } from "../../../composables/useTableRenderers";
|
|
21
21
|
import { getLocalizedText } from "../../../utils/coders";
|
|
22
22
|
import {
|
|
23
|
+
createTableConfig,
|
|
23
24
|
normalizePaginationPageSizes,
|
|
24
25
|
resolvePaginationPageSize,
|
|
25
26
|
TableConfigC
|
|
@@ -36,12 +37,15 @@ const props = defineProps({
|
|
|
36
37
|
rowCount: { type: Number, required: false }
|
|
37
38
|
});
|
|
38
39
|
const emit = defineEmits(["update:config"]);
|
|
40
|
+
const defaultConfig = createTableConfig({
|
|
41
|
+
columns: []
|
|
42
|
+
});
|
|
39
43
|
function isTableConfigEffect(value) {
|
|
40
44
|
return typeof value === "object" && value !== null && "pipe" in value && typeof value.pipe === "function";
|
|
41
45
|
}
|
|
42
46
|
async function resolveTableConfig(value) {
|
|
43
47
|
const nextValue = isTableConfigEffect(value) ? await Effect.runPromise(value) : value;
|
|
44
|
-
return TableConfigC.parse(nextValue);
|
|
48
|
+
return TableConfigC.parse(nextValue ?? defaultConfig);
|
|
45
49
|
}
|
|
46
50
|
const resolvedConfig = computedAsync(async () => resolveTableConfig(props.config));
|
|
47
51
|
const currentConfig = ref();
|
|
@@ -504,7 +508,19 @@ function getAccessorTooltipLabel(column) {
|
|
|
504
508
|
</script>
|
|
505
509
|
|
|
506
510
|
<script>
|
|
507
|
-
export {
|
|
511
|
+
export {
|
|
512
|
+
AccessorC,
|
|
513
|
+
ColumnC,
|
|
514
|
+
CURRENT_COMPATIBILITY_DATE,
|
|
515
|
+
KIND,
|
|
516
|
+
RenderC,
|
|
517
|
+
SUPPORTED_COMPATIBILITY_DATES,
|
|
518
|
+
TableBodyC,
|
|
519
|
+
TableBodyInputC,
|
|
520
|
+
TableConfigC,
|
|
521
|
+
TableConfigInputC,
|
|
522
|
+
createTableConfig
|
|
523
|
+
} from "./schema";
|
|
508
524
|
</script>
|
|
509
525
|
|
|
510
526
|
<template>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type CellContext } from '@tanstack/vue-table';
|
|
2
2
|
import { Effect } from 'effect';
|
|
3
3
|
import { type TableConfigInput } from './schema.js';
|
|
4
|
-
export type { Accessor, Column, Expression, Markdown, Render, TableConfig } from './schema.js';
|
|
5
|
-
export { AccessorC, ColumnC, RenderC, TableConfigC } from './schema.js';
|
|
4
|
+
export type { Accessor, Column, Expression, Markdown, Render, TableBody, TableBodyInput, TableConfig, TableConfigInput, } from './schema.js';
|
|
5
|
+
export { AccessorC, ColumnC, CURRENT_COMPATIBILITY_DATE, KIND, RenderC, SUPPORTED_COMPATIBILITY_DATES, TableBodyC, TableBodyInputC, TableConfigC, TableConfigInputC, createTableConfig, } from './schema.js';
|
|
6
6
|
export type TableInstance = import('@tanstack/table-core').Table<unknown>;
|
|
7
7
|
declare module '@tanstack/vue-table' {
|
|
8
8
|
interface ColumnMeta<TData extends import('@tanstack/vue-table').RowData, TValue> {
|
|
@@ -20,6 +20,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
20
20
|
rowCount?: number;
|
|
21
21
|
}, import("@tanstack/table-core").Table<unknown>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
22
|
"update:config": (args_0: Readonly<{
|
|
23
|
+
kind: string;
|
|
24
|
+
compatibilityDate: string;
|
|
23
25
|
getRowId?: import("./schema.js").Expression;
|
|
24
26
|
getSubRows?: import("./schema.js").Expression;
|
|
25
27
|
enableRowSelection?: import("./schema.js").Expression;
|
|
@@ -81,6 +83,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
81
83
|
rowCount?: number;
|
|
82
84
|
}> & Readonly<{
|
|
83
85
|
"onUpdate:config"?: ((args_0: Readonly<{
|
|
86
|
+
kind: string;
|
|
87
|
+
compatibilityDate: string;
|
|
84
88
|
getRowId?: import("./schema.js").Expression;
|
|
85
89
|
getSubRows?: import("./schema.js").Expression;
|
|
86
90
|
enableRowSelection?: import("./schema.js").Expression;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
2
|
import type { LocaleValue } from '../../../utils/coders.js';
|
|
3
|
+
export declare const KIND = "shwfed.component.table";
|
|
4
|
+
export declare const CURRENT_COMPATIBILITY_DATE = "2026-03-20";
|
|
5
|
+
export declare const SUPPORTED_COMPATIBILITY_DATES: string[];
|
|
3
6
|
export type Expression = string;
|
|
4
7
|
export type Markdown = string;
|
|
5
8
|
export type Render = string | Readonly<{
|
|
@@ -60,7 +63,33 @@ export type TableProps = Readonly<{
|
|
|
60
63
|
export declare const RenderC: z.ZodType<Render>;
|
|
61
64
|
export declare const AccessorC: z.ZodType<Accessor>;
|
|
62
65
|
export declare const ColumnC: z.ZodType<Column>;
|
|
66
|
+
export type TableBody = Readonly<{
|
|
67
|
+
getRowId?: Expression;
|
|
68
|
+
getSubRows?: Expression;
|
|
69
|
+
enableRowSelection?: Expression;
|
|
70
|
+
enableMultiRowSelection?: Expression;
|
|
71
|
+
columns: ReadonlyArray<Column>;
|
|
72
|
+
cellStyles?: Expression;
|
|
73
|
+
props?: TableProps;
|
|
74
|
+
paginationLeft?: Markdown;
|
|
75
|
+
paginationRight?: Markdown;
|
|
76
|
+
paginationPageSizes?: ReadonlyArray<number>;
|
|
77
|
+
}>;
|
|
78
|
+
export type TableBodyInput = Readonly<{
|
|
79
|
+
getRowId?: Expression;
|
|
80
|
+
getSubRows?: Expression;
|
|
81
|
+
enableRowSelection?: Expression;
|
|
82
|
+
enableMultiRowSelection?: Expression;
|
|
83
|
+
columns?: ReadonlyArray<Column>;
|
|
84
|
+
cellStyles?: Expression;
|
|
85
|
+
props?: TableProps;
|
|
86
|
+
paginationLeft?: Markdown;
|
|
87
|
+
paginationRight?: Markdown;
|
|
88
|
+
paginationPageSizes?: ReadonlyArray<number>;
|
|
89
|
+
}>;
|
|
63
90
|
export type TableConfig = Readonly<{
|
|
91
|
+
kind: string;
|
|
92
|
+
compatibilityDate: string;
|
|
64
93
|
getRowId?: Expression;
|
|
65
94
|
getSubRows?: Expression;
|
|
66
95
|
enableRowSelection?: Expression;
|
|
@@ -73,6 +102,8 @@ export type TableConfig = Readonly<{
|
|
|
73
102
|
paginationPageSizes?: ReadonlyArray<number>;
|
|
74
103
|
}>;
|
|
75
104
|
export type TableConfigInput = Readonly<{
|
|
105
|
+
kind: string;
|
|
106
|
+
compatibilityDate: string;
|
|
76
107
|
getRowId?: Expression;
|
|
77
108
|
getSubRows?: Expression;
|
|
78
109
|
enableRowSelection?: Expression;
|
|
@@ -92,7 +123,210 @@ export declare const TableConfigCellStylesC: z.ZodOptional<z.ZodString>;
|
|
|
92
123
|
export declare function normalizePaginationPageSizes(value: ReadonlyArray<number> | undefined): Array<number> | undefined;
|
|
93
124
|
export declare function resolvePaginationPageSize(pageSize: number | undefined, paginationPageSizes: ReadonlyArray<number> | undefined): number | undefined;
|
|
94
125
|
export declare const TableConfigPaginationPageSizesC: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>>;
|
|
95
|
-
export declare const
|
|
126
|
+
export declare const TableBodyC: z.ZodReadonly<z.ZodObject<{
|
|
127
|
+
getRowId: z.ZodOptional<z.ZodString>;
|
|
128
|
+
getSubRows: z.ZodOptional<z.ZodString>;
|
|
129
|
+
enableRowSelection: z.ZodOptional<z.ZodString>;
|
|
130
|
+
enableMultiRowSelection: z.ZodOptional<z.ZodString>;
|
|
131
|
+
columns: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodType<Readonly<{
|
|
132
|
+
id?: string;
|
|
133
|
+
title?: LocaleValue;
|
|
134
|
+
accessor?: Accessor;
|
|
135
|
+
renderer?: Render;
|
|
136
|
+
tooltip?: LocaleValue;
|
|
137
|
+
size?: number;
|
|
138
|
+
enableSorting?: boolean;
|
|
139
|
+
enableMultiSorting?: boolean;
|
|
140
|
+
enablePinning?: boolean;
|
|
141
|
+
columns?: ReadonlyArray<Column>;
|
|
142
|
+
grow?: boolean;
|
|
143
|
+
}>, unknown, z.core.$ZodTypeInternals<Readonly<{
|
|
144
|
+
id?: string;
|
|
145
|
+
title?: LocaleValue;
|
|
146
|
+
accessor?: Accessor;
|
|
147
|
+
renderer?: Render;
|
|
148
|
+
tooltip?: LocaleValue;
|
|
149
|
+
size?: number;
|
|
150
|
+
enableSorting?: boolean;
|
|
151
|
+
enableMultiSorting?: boolean;
|
|
152
|
+
enablePinning?: boolean;
|
|
153
|
+
columns?: ReadonlyArray<Column>;
|
|
154
|
+
grow?: boolean;
|
|
155
|
+
}>, unknown>>>>>;
|
|
156
|
+
cellStyles: z.ZodOptional<z.ZodString>;
|
|
157
|
+
props: z.ZodOptional<z.ZodObject<{
|
|
158
|
+
initialState: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
159
|
+
columnVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
160
|
+
columnOrder: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
161
|
+
columnPinning: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
162
|
+
left: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
163
|
+
right: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
164
|
+
}, z.core.$strip>>>;
|
|
165
|
+
rowPinning: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
166
|
+
top: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
167
|
+
bottom: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
168
|
+
}, z.core.$strip>>>;
|
|
169
|
+
columnFilters: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
170
|
+
id: z.ZodString;
|
|
171
|
+
value: z.ZodUnknown;
|
|
172
|
+
}, z.core.$strip>>>>>;
|
|
173
|
+
globalFilter: z.ZodOptional<z.ZodUnknown>;
|
|
174
|
+
sorting: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
175
|
+
id: z.ZodString;
|
|
176
|
+
desc: z.ZodBoolean;
|
|
177
|
+
}, z.core.$strip>>>>>;
|
|
178
|
+
expanded: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodBoolean>]>>;
|
|
179
|
+
grouping: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
180
|
+
columnSizing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
181
|
+
columnSizingInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
182
|
+
pagination: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
183
|
+
pageIndex: z.ZodOptional<z.ZodNumber>;
|
|
184
|
+
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
185
|
+
}, z.core.$strip>>>;
|
|
186
|
+
rowSelection: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
187
|
+
}, z.core.$strip>>>;
|
|
188
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
189
|
+
paginationLeft: z.ZodOptional<z.ZodString>;
|
|
190
|
+
paginationRight: z.ZodOptional<z.ZodString>;
|
|
191
|
+
paginationPageSizes: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>>;
|
|
192
|
+
}, z.core.$strip>>;
|
|
193
|
+
export declare const TableBodyInputC: z.ZodReadonly<z.ZodObject<{
|
|
194
|
+
getRowId: z.ZodOptional<z.ZodString>;
|
|
195
|
+
getSubRows: z.ZodOptional<z.ZodString>;
|
|
196
|
+
enableRowSelection: z.ZodOptional<z.ZodString>;
|
|
197
|
+
enableMultiRowSelection: z.ZodOptional<z.ZodString>;
|
|
198
|
+
columns: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodType<Readonly<{
|
|
199
|
+
id?: string;
|
|
200
|
+
title?: LocaleValue;
|
|
201
|
+
accessor?: Accessor;
|
|
202
|
+
renderer?: Render;
|
|
203
|
+
tooltip?: LocaleValue;
|
|
204
|
+
size?: number;
|
|
205
|
+
enableSorting?: boolean;
|
|
206
|
+
enableMultiSorting?: boolean;
|
|
207
|
+
enablePinning?: boolean;
|
|
208
|
+
columns?: ReadonlyArray<Column>;
|
|
209
|
+
grow?: boolean;
|
|
210
|
+
}>, unknown, z.core.$ZodTypeInternals<Readonly<{
|
|
211
|
+
id?: string;
|
|
212
|
+
title?: LocaleValue;
|
|
213
|
+
accessor?: Accessor;
|
|
214
|
+
renderer?: Render;
|
|
215
|
+
tooltip?: LocaleValue;
|
|
216
|
+
size?: number;
|
|
217
|
+
enableSorting?: boolean;
|
|
218
|
+
enableMultiSorting?: boolean;
|
|
219
|
+
enablePinning?: boolean;
|
|
220
|
+
columns?: ReadonlyArray<Column>;
|
|
221
|
+
grow?: boolean;
|
|
222
|
+
}>, unknown>>>>>;
|
|
223
|
+
cellStyles: z.ZodOptional<z.ZodString>;
|
|
224
|
+
props: z.ZodOptional<z.ZodObject<{
|
|
225
|
+
initialState: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
226
|
+
columnVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
227
|
+
columnOrder: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
228
|
+
columnPinning: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
229
|
+
left: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
230
|
+
right: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
231
|
+
}, z.core.$strip>>>;
|
|
232
|
+
rowPinning: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
233
|
+
top: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
234
|
+
bottom: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
235
|
+
}, z.core.$strip>>>;
|
|
236
|
+
columnFilters: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
237
|
+
id: z.ZodString;
|
|
238
|
+
value: z.ZodUnknown;
|
|
239
|
+
}, z.core.$strip>>>>>;
|
|
240
|
+
globalFilter: z.ZodOptional<z.ZodUnknown>;
|
|
241
|
+
sorting: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
242
|
+
id: z.ZodString;
|
|
243
|
+
desc: z.ZodBoolean;
|
|
244
|
+
}, z.core.$strip>>>>>;
|
|
245
|
+
expanded: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodBoolean>]>>;
|
|
246
|
+
grouping: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
247
|
+
columnSizing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
248
|
+
columnSizingInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
249
|
+
pagination: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
250
|
+
pageIndex: z.ZodOptional<z.ZodNumber>;
|
|
251
|
+
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
252
|
+
}, z.core.$strip>>>;
|
|
253
|
+
rowSelection: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
254
|
+
}, z.core.$strip>>>;
|
|
255
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
256
|
+
paginationLeft: z.ZodOptional<z.ZodString>;
|
|
257
|
+
paginationRight: z.ZodOptional<z.ZodString>;
|
|
258
|
+
paginationPageSizes: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>>;
|
|
259
|
+
}, z.core.$strip>>;
|
|
260
|
+
export declare const TableConfigC: z.ZodReadonly<z.ZodObject<{
|
|
261
|
+
getRowId: z.ZodOptional<z.ZodString>;
|
|
262
|
+
getSubRows: z.ZodOptional<z.ZodString>;
|
|
263
|
+
enableRowSelection: z.ZodOptional<z.ZodString>;
|
|
264
|
+
enableMultiRowSelection: z.ZodOptional<z.ZodString>;
|
|
265
|
+
columns: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodType<Readonly<{
|
|
266
|
+
id?: string;
|
|
267
|
+
title?: LocaleValue;
|
|
268
|
+
accessor?: Accessor;
|
|
269
|
+
renderer?: Render;
|
|
270
|
+
tooltip?: LocaleValue;
|
|
271
|
+
size?: number;
|
|
272
|
+
enableSorting?: boolean;
|
|
273
|
+
enableMultiSorting?: boolean;
|
|
274
|
+
enablePinning?: boolean;
|
|
275
|
+
columns?: ReadonlyArray<Column>;
|
|
276
|
+
grow?: boolean;
|
|
277
|
+
}>, unknown, z.core.$ZodTypeInternals<Readonly<{
|
|
278
|
+
id?: string;
|
|
279
|
+
title?: LocaleValue;
|
|
280
|
+
accessor?: Accessor;
|
|
281
|
+
renderer?: Render;
|
|
282
|
+
tooltip?: LocaleValue;
|
|
283
|
+
size?: number;
|
|
284
|
+
enableSorting?: boolean;
|
|
285
|
+
enableMultiSorting?: boolean;
|
|
286
|
+
enablePinning?: boolean;
|
|
287
|
+
columns?: ReadonlyArray<Column>;
|
|
288
|
+
grow?: boolean;
|
|
289
|
+
}>, unknown>>>>>;
|
|
290
|
+
cellStyles: z.ZodOptional<z.ZodString>;
|
|
291
|
+
props: z.ZodOptional<z.ZodObject<{
|
|
292
|
+
initialState: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
293
|
+
columnVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
294
|
+
columnOrder: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
295
|
+
columnPinning: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
296
|
+
left: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
297
|
+
right: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
298
|
+
}, z.core.$strip>>>;
|
|
299
|
+
rowPinning: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
300
|
+
top: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
301
|
+
bottom: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
302
|
+
}, z.core.$strip>>>;
|
|
303
|
+
columnFilters: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
304
|
+
id: z.ZodString;
|
|
305
|
+
value: z.ZodUnknown;
|
|
306
|
+
}, z.core.$strip>>>>>;
|
|
307
|
+
globalFilter: z.ZodOptional<z.ZodUnknown>;
|
|
308
|
+
sorting: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
309
|
+
id: z.ZodString;
|
|
310
|
+
desc: z.ZodBoolean;
|
|
311
|
+
}, z.core.$strip>>>>>;
|
|
312
|
+
expanded: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodBoolean>]>>;
|
|
313
|
+
grouping: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
314
|
+
columnSizing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
315
|
+
columnSizingInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
316
|
+
pagination: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
317
|
+
pageIndex: z.ZodOptional<z.ZodNumber>;
|
|
318
|
+
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
319
|
+
}, z.core.$strip>>>;
|
|
320
|
+
rowSelection: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
321
|
+
}, z.core.$strip>>>;
|
|
322
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
323
|
+
paginationLeft: z.ZodOptional<z.ZodString>;
|
|
324
|
+
paginationRight: z.ZodOptional<z.ZodString>;
|
|
325
|
+
paginationPageSizes: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>>;
|
|
326
|
+
kind: z.ZodLiteral<string>;
|
|
327
|
+
compatibilityDate: z.ZodString;
|
|
328
|
+
}, z.core.$strip>>;
|
|
329
|
+
export declare const TableConfigInputC: z.ZodReadonly<z.ZodObject<{
|
|
96
330
|
getRowId: z.ZodOptional<z.ZodString>;
|
|
97
331
|
getSubRows: z.ZodOptional<z.ZodString>;
|
|
98
332
|
enableRowSelection: z.ZodOptional<z.ZodString>;
|
|
@@ -158,6 +392,9 @@ export declare const TableConfigC: z.ZodPipe<z.ZodTransform<{} | null, unknown>,
|
|
|
158
392
|
paginationLeft: z.ZodOptional<z.ZodString>;
|
|
159
393
|
paginationRight: z.ZodOptional<z.ZodString>;
|
|
160
394
|
paginationPageSizes: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>>;
|
|
161
|
-
|
|
395
|
+
kind: z.ZodLiteral<string>;
|
|
396
|
+
compatibilityDate: z.ZodString;
|
|
397
|
+
}, z.core.$strip>>;
|
|
398
|
+
export declare function createTableConfig(body: TableBodyInput): TableConfig;
|
|
162
399
|
export declare function getColumnTechnicalKey(column: Column): string | undefined;
|
|
163
400
|
export {};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
|
+
import { createComponentConfig, createComponentConfigMetadataShape } from "../../component-config.js";
|
|
2
3
|
import { dotPropC, expressionC, localeC } from "../../../utils/coders.js";
|
|
4
|
+
export const KIND = "shwfed.component.table";
|
|
5
|
+
export const CURRENT_COMPATIBILITY_DATE = "2026-03-20";
|
|
6
|
+
export const SUPPORTED_COMPATIBILITY_DATES = [CURRENT_COMPATIBILITY_DATE];
|
|
3
7
|
export const RenderC = z.union([
|
|
4
8
|
z.string().describe("\u6E32\u67D3\u5668 ID\uFF0C\u4F8B\u5982 table.renderer.text\u3002"),
|
|
5
9
|
z.object({
|
|
@@ -119,7 +123,7 @@ export const TableConfigPaginationPageSizesC = z.preprocess(
|
|
|
119
123
|
normalizePaginationPageSizesInput,
|
|
120
124
|
z.array(z.number().int().positive()).readonly().optional()
|
|
121
125
|
).describe("\u53EF\u9009\u6BCF\u9875\u6761\u6570\u5217\u8868\u3002\u4F1A\u81EA\u52A8\u53BB\u91CD\u3001\u8FC7\u6EE4\u975E\u6B63\u6574\u6570\uFF0C\u5E76\u4FDD\u7559\u6700\u7EC8\u987A\u5E8F\u3002");
|
|
122
|
-
const
|
|
126
|
+
const TableBodyObjectC = z.object({
|
|
123
127
|
getRowId: TableConfigGetRowIdC,
|
|
124
128
|
getSubRows: TableConfigGetSubRowsC,
|
|
125
129
|
enableRowSelection: TableConfigEnableRowSelectionC,
|
|
@@ -130,11 +134,16 @@ const TableConfigObjectC = z.object({
|
|
|
130
134
|
paginationLeft: z.string().optional().describe("\u5206\u9875\u533A\u57DF\u5DE6\u4FA7\u7684 Markdown \u6587\u6848\u3002"),
|
|
131
135
|
paginationRight: z.string().optional().describe("\u5206\u9875\u533A\u57DF\u53F3\u4FA7\u7684 Markdown \u6587\u6848\u3002"),
|
|
132
136
|
paginationPageSizes: TableConfigPaginationPageSizesC
|
|
133
|
-
})
|
|
134
|
-
export const
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
137
|
+
});
|
|
138
|
+
export const TableBodyC = TableBodyObjectC.readonly().describe("\u8868\u683C\u7EC4\u4EF6\u914D\u7F6E\u4E3B\u4F53\u3002\u7528\u4E8E\u63CF\u8FF0\u5217\u7ED3\u6784\u3001\u4EA4\u4E92\u80FD\u529B\u3001\u5206\u9875\u6587\u6848\u548C\u521D\u59CB\u72B6\u6001\u3002");
|
|
139
|
+
export const TableBodyInputC = TableBodyC;
|
|
140
|
+
export const TableConfigC = TableBodyObjectC.extend(
|
|
141
|
+
createComponentConfigMetadataShape(KIND, SUPPORTED_COMPATIBILITY_DATES)
|
|
142
|
+
).readonly().describe("\u8868\u683C\u7EC4\u4EF6\u914D\u7F6E\u3002\u7528\u4E8E\u63CF\u8FF0\u5217\u7ED3\u6784\u3001\u4EA4\u4E92\u80FD\u529B\u3001\u5206\u9875\u6587\u6848\u548C\u521D\u59CB\u72B6\u6001\u3002");
|
|
143
|
+
export const TableConfigInputC = TableConfigC;
|
|
144
|
+
export function createTableConfig(body) {
|
|
145
|
+
return TableConfigC.parse(createComponentConfig(KIND, CURRENT_COMPATIBILITY_DATE, body));
|
|
146
|
+
}
|
|
138
147
|
export function getColumnTechnicalKey(column) {
|
|
139
148
|
if (typeof column.accessor === "string") {
|
|
140
149
|
return column.accessor;
|
|
@@ -10,6 +10,8 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
10
10
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
11
|
"update:open": (value: boolean) => any;
|
|
12
12
|
confirm: (args_0: Readonly<{
|
|
13
|
+
kind: string;
|
|
14
|
+
compatibilityDate: string;
|
|
13
15
|
getRowId?: import("../table/schema.js").Expression;
|
|
14
16
|
getSubRows?: import("../table/schema.js").Expression;
|
|
15
17
|
enableRowSelection?: import("../table/schema.js").Expression;
|
|
@@ -68,6 +70,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
68
70
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
69
71
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
70
72
|
onConfirm?: ((args_0: Readonly<{
|
|
73
|
+
kind: string;
|
|
74
|
+
compatibilityDate: string;
|
|
71
75
|
getRowId?: import("../table/schema.js").Expression;
|
|
72
76
|
getSubRows?: import("../table/schema.js").Expression;
|
|
73
77
|
enableRowSelection?: import("../table/schema.js").Expression;
|
|
@@ -29,6 +29,7 @@ import { Textarea } from "../textarea";
|
|
|
29
29
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from "../tabs";
|
|
30
30
|
import { Toggle } from "../toggle";
|
|
31
31
|
import {
|
|
32
|
+
createTableConfig,
|
|
32
33
|
getColumnTechnicalKey,
|
|
33
34
|
normalizePaginationPageSizes,
|
|
34
35
|
resolvePaginationPageSize,
|
|
@@ -72,7 +73,7 @@ const { getTableRenderer, listTableRenderers, resolveTableRenderer } = useTableR
|
|
|
72
73
|
const search = ref("");
|
|
73
74
|
const childSearch = ref("");
|
|
74
75
|
const selectedItemId = ref("general");
|
|
75
|
-
const draftBaseConfig = ref({ columns: [] });
|
|
76
|
+
const draftBaseConfig = ref(createTableConfig({ columns: [] }));
|
|
76
77
|
const draftColumnTree = ref(buildTableConfiguratorColumnTree([]));
|
|
77
78
|
const draftGetRowId = ref();
|
|
78
79
|
const draftGetSubRows = ref();
|
|
@@ -10,6 +10,8 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
10
10
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
11
|
"update:open": (value: boolean) => any;
|
|
12
12
|
confirm: (args_0: Readonly<{
|
|
13
|
+
kind: string;
|
|
14
|
+
compatibilityDate: string;
|
|
13
15
|
getRowId?: import("../table/schema.js").Expression;
|
|
14
16
|
getSubRows?: import("../table/schema.js").Expression;
|
|
15
17
|
enableRowSelection?: import("../table/schema.js").Expression;
|
|
@@ -68,6 +70,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
68
70
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
69
71
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
70
72
|
onConfirm?: ((args_0: Readonly<{
|
|
73
|
+
kind: string;
|
|
74
|
+
compatibilityDate: string;
|
|
71
75
|
getRowId?: import("../table/schema.js").Expression;
|
|
72
76
|
getSubRows?: import("../table/schema.js").Expression;
|
|
73
77
|
enableRowSelection?: import("../table/schema.js").Expression;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Context, Effect, type Scope } from 'effect';
|
|
2
|
+
export type ButtonActionRuntime = Readonly<{
|
|
3
|
+
id: string;
|
|
4
|
+
locale: string;
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
tooltip?: string;
|
|
8
|
+
}>;
|
|
9
|
+
declare const ButtonActionService_base: Context.TagClass<ButtonActionService, "shwfed/ButtonActionService", Readonly<{
|
|
10
|
+
id: string;
|
|
11
|
+
locale: string;
|
|
12
|
+
title: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
tooltip?: string;
|
|
15
|
+
}>>;
|
|
16
|
+
export declare class ButtonActionService extends ButtonActionService_base {
|
|
17
|
+
}
|
|
18
|
+
export type ButtonActionEffect = Effect.Effect<void, never, ButtonActionService | Scope.Scope> | Effect.Effect<void, never, ButtonActionService> | Effect.Effect<void, never, Scope.Scope> | Effect.Effect<void, never, never>;
|
|
19
|
+
export type ButtonActionEffectFactory = (context: ButtonActionRuntime) => ButtonActionEffect;
|
|
20
|
+
export declare function currentButtonAction(): Effect.Effect<ButtonActionRuntime, never, ButtonActionService>;
|
|
21
|
+
export {};
|