@shwfed/config 2.12.9 → 2.12.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.
- package/dist/module.json +1 -1
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts +68 -68
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +68 -68
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +68 -68
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +68 -68
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +34 -34
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/runtime.vue +20 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/index.vue +23 -2
- package/dist/runtime/components/table/schema.d.ts +68 -68
- package/package.json +1 -1
|
@@ -44,7 +44,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
44
44
|
readonly data: string;
|
|
45
45
|
readonly request?: string | undefined;
|
|
46
46
|
};
|
|
47
|
-
readonly enableSorting?: boolean | undefined;
|
|
48
47
|
readonly nodeKey: string;
|
|
49
48
|
readonly nodeChildren: string;
|
|
50
49
|
readonly nodeLabel: readonly [{
|
|
@@ -54,6 +53,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
54
53
|
readonly locale: "en" | "ja" | "ko";
|
|
55
54
|
readonly message: string;
|
|
56
55
|
}[]];
|
|
56
|
+
readonly enableSorting?: boolean | undefined;
|
|
57
57
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
58
58
|
readonly nodeTooltip?: readonly [{
|
|
59
59
|
readonly locale: "zh";
|
|
@@ -108,7 +108,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
108
108
|
readonly data: string;
|
|
109
109
|
readonly request?: string | undefined;
|
|
110
110
|
};
|
|
111
|
-
readonly enableSorting?: boolean | undefined;
|
|
112
111
|
readonly nodeKey: string;
|
|
113
112
|
readonly nodeChildren: string;
|
|
114
113
|
readonly nodeLabel: readonly [{
|
|
@@ -118,6 +117,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
118
117
|
readonly locale: "en" | "ja" | "ko";
|
|
119
118
|
readonly message: string;
|
|
120
119
|
}[]];
|
|
120
|
+
readonly enableSorting?: boolean | undefined;
|
|
121
121
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
122
122
|
readonly nodeTooltip?: readonly [{
|
|
123
123
|
readonly locale: "zh";
|
|
@@ -44,7 +44,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
44
44
|
readonly data: string;
|
|
45
45
|
readonly request?: string | undefined;
|
|
46
46
|
};
|
|
47
|
-
readonly enableSorting?: boolean | undefined;
|
|
48
47
|
readonly nodeKey: string;
|
|
49
48
|
readonly nodeChildren: string;
|
|
50
49
|
readonly nodeLabel: readonly [{
|
|
@@ -54,6 +53,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
54
53
|
readonly locale: "en" | "ja" | "ko";
|
|
55
54
|
readonly message: string;
|
|
56
55
|
}[]];
|
|
56
|
+
readonly enableSorting?: boolean | undefined;
|
|
57
57
|
readonly nodeTooltip?: readonly [{
|
|
58
58
|
readonly locale: "zh";
|
|
59
59
|
readonly message: string;
|
|
@@ -107,7 +107,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
107
107
|
readonly data: string;
|
|
108
108
|
readonly request?: string | undefined;
|
|
109
109
|
};
|
|
110
|
-
readonly enableSorting?: boolean | undefined;
|
|
111
110
|
readonly nodeKey: string;
|
|
112
111
|
readonly nodeChildren: string;
|
|
113
112
|
readonly nodeLabel: readonly [{
|
|
@@ -117,6 +116,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
117
116
|
readonly locale: "en" | "ja" | "ko";
|
|
118
117
|
readonly message: string;
|
|
119
118
|
}[]];
|
|
119
|
+
readonly enableSorting?: boolean | undefined;
|
|
120
120
|
readonly nodeTooltip?: readonly [{
|
|
121
121
|
readonly locale: "zh";
|
|
122
122
|
readonly message: string;
|
|
@@ -44,7 +44,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
44
44
|
readonly data: string;
|
|
45
45
|
readonly request?: string | undefined;
|
|
46
46
|
};
|
|
47
|
-
readonly enableSorting?: boolean | undefined;
|
|
48
47
|
readonly nodeKey: string;
|
|
49
48
|
readonly nodeChildren: string;
|
|
50
49
|
readonly nodeLabel: readonly [{
|
|
@@ -54,6 +53,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
54
53
|
readonly locale: "en" | "ja" | "ko";
|
|
55
54
|
readonly message: string;
|
|
56
55
|
}[]];
|
|
56
|
+
readonly enableSorting?: boolean | undefined;
|
|
57
57
|
readonly nodeTooltip?: readonly [{
|
|
58
58
|
readonly locale: "zh";
|
|
59
59
|
readonly message: string;
|
|
@@ -107,7 +107,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
107
107
|
readonly data: string;
|
|
108
108
|
readonly request?: string | undefined;
|
|
109
109
|
};
|
|
110
|
-
readonly enableSorting?: boolean | undefined;
|
|
111
110
|
readonly nodeKey: string;
|
|
112
111
|
readonly nodeChildren: string;
|
|
113
112
|
readonly nodeLabel: readonly [{
|
|
@@ -117,6 +116,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
117
116
|
readonly locale: "en" | "ja" | "ko";
|
|
118
117
|
readonly message: string;
|
|
119
118
|
}[]];
|
|
119
|
+
readonly enableSorting?: boolean | undefined;
|
|
120
120
|
readonly nodeTooltip?: readonly [{
|
|
121
121
|
readonly locale: "zh";
|
|
122
122
|
readonly message: string;
|
|
@@ -85,8 +85,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
85
85
|
readonly target: string;
|
|
86
86
|
readonly operation: string;
|
|
87
87
|
}[] | undefined;
|
|
88
|
-
readonly accessor: string;
|
|
89
88
|
readonly successMessage?: string | undefined;
|
|
89
|
+
readonly accessor: string;
|
|
90
90
|
};
|
|
91
91
|
}) => any;
|
|
92
92
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -172,8 +172,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
172
172
|
readonly target: string;
|
|
173
173
|
readonly operation: string;
|
|
174
174
|
}[] | undefined;
|
|
175
|
-
readonly accessor: string;
|
|
176
175
|
readonly successMessage?: string | undefined;
|
|
176
|
+
readonly accessor: string;
|
|
177
177
|
};
|
|
178
178
|
}) => any) | undefined;
|
|
179
179
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -85,8 +85,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
85
85
|
readonly target: string;
|
|
86
86
|
readonly operation: string;
|
|
87
87
|
}[] | undefined;
|
|
88
|
-
readonly accessor: string;
|
|
89
88
|
readonly successMessage?: string | undefined;
|
|
89
|
+
readonly accessor: string;
|
|
90
90
|
};
|
|
91
91
|
}) => any;
|
|
92
92
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -172,8 +172,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
172
172
|
readonly target: string;
|
|
173
173
|
readonly operation: string;
|
|
174
174
|
}[] | undefined;
|
|
175
|
-
readonly accessor: string;
|
|
176
175
|
readonly successMessage?: string | undefined;
|
|
176
|
+
readonly accessor: string;
|
|
177
177
|
};
|
|
178
178
|
}) => any) | undefined;
|
|
179
179
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -85,8 +85,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
85
85
|
readonly target: string;
|
|
86
86
|
readonly operation: string;
|
|
87
87
|
}[] | undefined;
|
|
88
|
-
readonly accessor: string;
|
|
89
88
|
readonly successMessage?: string | undefined;
|
|
89
|
+
readonly accessor: string;
|
|
90
90
|
};
|
|
91
91
|
}) => any;
|
|
92
92
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -172,8 +172,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
172
172
|
readonly target: string;
|
|
173
173
|
readonly operation: string;
|
|
174
174
|
}[] | undefined;
|
|
175
|
-
readonly accessor: string;
|
|
176
175
|
readonly successMessage?: string | undefined;
|
|
176
|
+
readonly accessor: string;
|
|
177
177
|
};
|
|
178
178
|
}) => any) | undefined;
|
|
179
179
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -85,8 +85,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
85
85
|
readonly target: string;
|
|
86
86
|
readonly operation: string;
|
|
87
87
|
}[] | undefined;
|
|
88
|
-
readonly accessor: string;
|
|
89
88
|
readonly successMessage?: string | undefined;
|
|
89
|
+
readonly accessor: string;
|
|
90
90
|
};
|
|
91
91
|
}) => any;
|
|
92
92
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -172,8 +172,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
172
172
|
readonly target: string;
|
|
173
173
|
readonly operation: string;
|
|
174
174
|
}[] | undefined;
|
|
175
|
-
readonly accessor: string;
|
|
176
175
|
readonly successMessage?: string | undefined;
|
|
176
|
+
readonly accessor: string;
|
|
177
177
|
};
|
|
178
178
|
}) => any) | undefined;
|
|
179
179
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -45,10 +45,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
45
45
|
readonly data: string;
|
|
46
46
|
readonly request?: string | undefined;
|
|
47
47
|
};
|
|
48
|
-
readonly enableSorting?: boolean | undefined;
|
|
49
48
|
readonly nodeKey: string;
|
|
50
49
|
readonly nodeChildren: string;
|
|
51
50
|
readonly nodeLabel: string;
|
|
51
|
+
readonly enableSorting?: boolean | undefined;
|
|
52
52
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
53
53
|
readonly nodeTooltip?: readonly [{
|
|
54
54
|
readonly locale: "zh";
|
|
@@ -104,10 +104,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
104
104
|
readonly data: string;
|
|
105
105
|
readonly request?: string | undefined;
|
|
106
106
|
};
|
|
107
|
-
readonly enableSorting?: boolean | undefined;
|
|
108
107
|
readonly nodeKey: string;
|
|
109
108
|
readonly nodeChildren: string;
|
|
110
109
|
readonly nodeLabel: string;
|
|
110
|
+
readonly enableSorting?: boolean | undefined;
|
|
111
111
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
112
112
|
readonly nodeTooltip?: readonly [{
|
|
113
113
|
readonly locale: "zh";
|
|
@@ -45,10 +45,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
45
45
|
readonly data: string;
|
|
46
46
|
readonly request?: string | undefined;
|
|
47
47
|
};
|
|
48
|
-
readonly enableSorting?: boolean | undefined;
|
|
49
48
|
readonly nodeKey: string;
|
|
50
49
|
readonly nodeChildren: string;
|
|
51
50
|
readonly nodeLabel: string;
|
|
51
|
+
readonly enableSorting?: boolean | undefined;
|
|
52
52
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
53
53
|
readonly nodeTooltip?: readonly [{
|
|
54
54
|
readonly locale: "zh";
|
|
@@ -104,10 +104,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
104
104
|
readonly data: string;
|
|
105
105
|
readonly request?: string | undefined;
|
|
106
106
|
};
|
|
107
|
-
readonly enableSorting?: boolean | undefined;
|
|
108
107
|
readonly nodeKey: string;
|
|
109
108
|
readonly nodeChildren: string;
|
|
110
109
|
readonly nodeLabel: string;
|
|
110
|
+
readonly enableSorting?: boolean | undefined;
|
|
111
111
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
112
112
|
readonly nodeTooltip?: readonly [{
|
|
113
113
|
readonly locale: "zh";
|
|
@@ -45,10 +45,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
45
45
|
readonly data: string;
|
|
46
46
|
readonly request?: string | undefined;
|
|
47
47
|
};
|
|
48
|
-
readonly enableSorting?: boolean | undefined;
|
|
49
48
|
readonly nodeKey: string;
|
|
50
49
|
readonly nodeChildren: string;
|
|
51
50
|
readonly nodeLabel: string;
|
|
51
|
+
readonly enableSorting?: boolean | undefined;
|
|
52
52
|
readonly nodeTooltip?: readonly [{
|
|
53
53
|
readonly locale: "zh";
|
|
54
54
|
readonly message: string;
|
|
@@ -103,10 +103,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
103
103
|
readonly data: string;
|
|
104
104
|
readonly request?: string | undefined;
|
|
105
105
|
};
|
|
106
|
-
readonly enableSorting?: boolean | undefined;
|
|
107
106
|
readonly nodeKey: string;
|
|
108
107
|
readonly nodeChildren: string;
|
|
109
108
|
readonly nodeLabel: string;
|
|
109
|
+
readonly enableSorting?: boolean | undefined;
|
|
110
110
|
readonly nodeTooltip?: readonly [{
|
|
111
111
|
readonly locale: "zh";
|
|
112
112
|
readonly message: string;
|
|
@@ -45,10 +45,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
45
45
|
readonly data: string;
|
|
46
46
|
readonly request?: string | undefined;
|
|
47
47
|
};
|
|
48
|
-
readonly enableSorting?: boolean | undefined;
|
|
49
48
|
readonly nodeKey: string;
|
|
50
49
|
readonly nodeChildren: string;
|
|
51
50
|
readonly nodeLabel: string;
|
|
51
|
+
readonly enableSorting?: boolean | undefined;
|
|
52
52
|
readonly nodeTooltip?: readonly [{
|
|
53
53
|
readonly locale: "zh";
|
|
54
54
|
readonly message: string;
|
|
@@ -103,10 +103,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
103
103
|
readonly data: string;
|
|
104
104
|
readonly request?: string | undefined;
|
|
105
105
|
};
|
|
106
|
-
readonly enableSorting?: boolean | undefined;
|
|
107
106
|
readonly nodeKey: string;
|
|
108
107
|
readonly nodeChildren: string;
|
|
109
108
|
readonly nodeLabel: string;
|
|
109
|
+
readonly enableSorting?: boolean | undefined;
|
|
110
110
|
readonly nodeTooltip?: readonly [{
|
|
111
111
|
readonly locale: "zh";
|
|
112
112
|
readonly message: string;
|
|
@@ -10,13 +10,14 @@ import {
|
|
|
10
10
|
useVueTable
|
|
11
11
|
} from "@tanstack/vue-table";
|
|
12
12
|
import { useVirtualizer } from "@tanstack/vue-virtual";
|
|
13
|
+
import { watchDebounced } from "@vueuse/core";
|
|
13
14
|
import { Effect, Fiber, Option } from "effect";
|
|
14
15
|
import { Fetch } from "fx-fetch";
|
|
15
16
|
import { Pagination, ScrollArea } from "reka-ui/namespaced";
|
|
16
17
|
import { computed, h, onMounted, ref, toRaw, watch } from "vue";
|
|
17
|
-
import { fetchJsonOption } from "../../share/request";
|
|
18
|
+
import { asRequest, fetchJsonOption } from "../../share/request";
|
|
18
19
|
import { useI18n } from "vue-i18n";
|
|
19
|
-
import { celBindings, provideCELContext, injectCELContext } from "../../utils/cel-context";
|
|
20
|
+
import { celBindings, celScope, provideCELContext, injectCELContext } from "../../utils/cel-context";
|
|
20
21
|
import TableRowProvider from "./row-provider.vue";
|
|
21
22
|
import * as addRowOp from "../operations/2026-07-06/com.shwfed.operation.table.add-row/schema";
|
|
22
23
|
import { getLocalizedText } from "../../share/locale";
|
|
@@ -560,6 +561,26 @@ watch(
|
|
|
560
561
|
if (next && next !== prev) void fetchDataSource();
|
|
561
562
|
}
|
|
562
563
|
);
|
|
564
|
+
const requestSignature = computed(() => {
|
|
565
|
+
const expr = config.value?.dataSource?.request;
|
|
566
|
+
if (!expr) return null;
|
|
567
|
+
try {
|
|
568
|
+
const req = asRequest(Effect.runSync($cel(
|
|
569
|
+
expr,
|
|
570
|
+
celScope(inheritedContext, { query: {}, sorts: [], pageIndex: 0, pageSize: 0 })
|
|
571
|
+
)));
|
|
572
|
+
return Option.isSome(req) ? JSON.stringify(req.value.describe()) : null;
|
|
573
|
+
} catch {
|
|
574
|
+
return null;
|
|
575
|
+
}
|
|
576
|
+
});
|
|
577
|
+
watchDebounced(
|
|
578
|
+
requestSignature,
|
|
579
|
+
(next, prev) => {
|
|
580
|
+
if (next !== null && next !== prev) void fetchDataSource();
|
|
581
|
+
},
|
|
582
|
+
{ debounce: 200 }
|
|
583
|
+
);
|
|
563
584
|
const sortedRowIndexMap = computed(() => {
|
|
564
585
|
const map = /* @__PURE__ */ new Map();
|
|
565
586
|
tableApi.getSortedRowModel().flatRows.forEach((row, i) => {
|
|
@@ -158,6 +158,40 @@ export declare function TableConfig(configure: (env: Environment) => void): Sche
|
|
|
158
158
|
readonly message: string;
|
|
159
159
|
}[]] | undefined;
|
|
160
160
|
}[];
|
|
161
|
+
readonly query?: {
|
|
162
|
+
readonly style?: string | undefined;
|
|
163
|
+
readonly id?: string | undefined;
|
|
164
|
+
readonly initial?: {
|
|
165
|
+
readonly data: string;
|
|
166
|
+
readonly request?: string | undefined;
|
|
167
|
+
} | undefined;
|
|
168
|
+
readonly displayName?: string | undefined;
|
|
169
|
+
readonly kind: "shwfed.component.form";
|
|
170
|
+
readonly fields: readonly any[];
|
|
171
|
+
readonly layouts: readonly {
|
|
172
|
+
readonly name: string;
|
|
173
|
+
readonly layout: {
|
|
174
|
+
readonly style?: string | undefined;
|
|
175
|
+
readonly columns: number;
|
|
176
|
+
readonly gap?: number | undefined;
|
|
177
|
+
readonly rows?: number | undefined;
|
|
178
|
+
readonly placements: {
|
|
179
|
+
readonly [x: string]: {
|
|
180
|
+
readonly area: readonly [readonly [number, number], readonly [number, number]];
|
|
181
|
+
readonly v?: "stretch" | "center" | "end" | "start" | undefined;
|
|
182
|
+
readonly h?: "stretch" | "center" | "end" | "start" | undefined;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
readonly media?: string | undefined;
|
|
187
|
+
}[];
|
|
188
|
+
readonly readonly?: string | undefined;
|
|
189
|
+
} | undefined;
|
|
190
|
+
readonly dataSource?: {
|
|
191
|
+
readonly data: string;
|
|
192
|
+
readonly total?: string | undefined;
|
|
193
|
+
readonly request?: string | undefined;
|
|
194
|
+
} | undefined;
|
|
161
195
|
readonly actions?: {
|
|
162
196
|
readonly size: "default" | "sm" | "xs";
|
|
163
197
|
readonly style?: string | undefined;
|
|
@@ -225,40 +259,6 @@ export declare function TableConfig(configure: (env: Environment) => void): Sche
|
|
|
225
259
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
226
260
|
}[];
|
|
227
261
|
} | undefined;
|
|
228
|
-
readonly query?: {
|
|
229
|
-
readonly style?: string | undefined;
|
|
230
|
-
readonly id?: string | undefined;
|
|
231
|
-
readonly initial?: {
|
|
232
|
-
readonly data: string;
|
|
233
|
-
readonly request?: string | undefined;
|
|
234
|
-
} | undefined;
|
|
235
|
-
readonly displayName?: string | undefined;
|
|
236
|
-
readonly kind: "shwfed.component.form";
|
|
237
|
-
readonly fields: readonly any[];
|
|
238
|
-
readonly layouts: readonly {
|
|
239
|
-
readonly name: string;
|
|
240
|
-
readonly layout: {
|
|
241
|
-
readonly style?: string | undefined;
|
|
242
|
-
readonly columns: number;
|
|
243
|
-
readonly gap?: number | undefined;
|
|
244
|
-
readonly rows?: number | undefined;
|
|
245
|
-
readonly placements: {
|
|
246
|
-
readonly [x: string]: {
|
|
247
|
-
readonly area: readonly [readonly [number, number], readonly [number, number]];
|
|
248
|
-
readonly v?: "stretch" | "center" | "end" | "start" | undefined;
|
|
249
|
-
readonly h?: "stretch" | "center" | "end" | "start" | undefined;
|
|
250
|
-
};
|
|
251
|
-
};
|
|
252
|
-
};
|
|
253
|
-
readonly media?: string | undefined;
|
|
254
|
-
}[];
|
|
255
|
-
readonly readonly?: string | undefined;
|
|
256
|
-
} | undefined;
|
|
257
|
-
readonly dataSource?: {
|
|
258
|
-
readonly data: string;
|
|
259
|
-
readonly total?: string | undefined;
|
|
260
|
-
readonly request?: string | undefined;
|
|
261
|
-
} | undefined;
|
|
262
262
|
readonly bottomActions?: {
|
|
263
263
|
readonly size: "default" | "sm" | "xs";
|
|
264
264
|
readonly style?: string | undefined;
|
|
@@ -827,6 +827,40 @@ export declare function createTableConfig(body: Omit<Schema.Schema.Type<ReturnTy
|
|
|
827
827
|
readonly message: string;
|
|
828
828
|
}[]] | undefined;
|
|
829
829
|
}[];
|
|
830
|
+
query?: {
|
|
831
|
+
readonly style?: string | undefined;
|
|
832
|
+
readonly id?: string | undefined;
|
|
833
|
+
readonly initial?: {
|
|
834
|
+
readonly data: string;
|
|
835
|
+
readonly request?: string | undefined;
|
|
836
|
+
} | undefined;
|
|
837
|
+
readonly displayName?: string | undefined;
|
|
838
|
+
readonly kind: "shwfed.component.form";
|
|
839
|
+
readonly fields: readonly any[];
|
|
840
|
+
readonly layouts: readonly {
|
|
841
|
+
readonly name: string;
|
|
842
|
+
readonly layout: {
|
|
843
|
+
readonly style?: string | undefined;
|
|
844
|
+
readonly columns: number;
|
|
845
|
+
readonly gap?: number | undefined;
|
|
846
|
+
readonly rows?: number | undefined;
|
|
847
|
+
readonly placements: {
|
|
848
|
+
readonly [x: string]: {
|
|
849
|
+
readonly area: readonly [readonly [number, number], readonly [number, number]];
|
|
850
|
+
readonly v?: "stretch" | "center" | "end" | "start" | undefined;
|
|
851
|
+
readonly h?: "stretch" | "center" | "end" | "start" | undefined;
|
|
852
|
+
};
|
|
853
|
+
};
|
|
854
|
+
};
|
|
855
|
+
readonly media?: string | undefined;
|
|
856
|
+
}[];
|
|
857
|
+
readonly readonly?: string | undefined;
|
|
858
|
+
} | undefined;
|
|
859
|
+
dataSource?: {
|
|
860
|
+
readonly data: string;
|
|
861
|
+
readonly total?: string | undefined;
|
|
862
|
+
readonly request?: string | undefined;
|
|
863
|
+
} | undefined;
|
|
830
864
|
actions?: {
|
|
831
865
|
readonly size: "default" | "sm" | "xs";
|
|
832
866
|
readonly style?: string | undefined;
|
|
@@ -894,40 +928,6 @@ export declare function createTableConfig(body: Omit<Schema.Schema.Type<ReturnTy
|
|
|
894
928
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
895
929
|
}[];
|
|
896
930
|
} | undefined;
|
|
897
|
-
query?: {
|
|
898
|
-
readonly style?: string | undefined;
|
|
899
|
-
readonly id?: string | undefined;
|
|
900
|
-
readonly initial?: {
|
|
901
|
-
readonly data: string;
|
|
902
|
-
readonly request?: string | undefined;
|
|
903
|
-
} | undefined;
|
|
904
|
-
readonly displayName?: string | undefined;
|
|
905
|
-
readonly kind: "shwfed.component.form";
|
|
906
|
-
readonly fields: readonly any[];
|
|
907
|
-
readonly layouts: readonly {
|
|
908
|
-
readonly name: string;
|
|
909
|
-
readonly layout: {
|
|
910
|
-
readonly style?: string | undefined;
|
|
911
|
-
readonly columns: number;
|
|
912
|
-
readonly gap?: number | undefined;
|
|
913
|
-
readonly rows?: number | undefined;
|
|
914
|
-
readonly placements: {
|
|
915
|
-
readonly [x: string]: {
|
|
916
|
-
readonly area: readonly [readonly [number, number], readonly [number, number]];
|
|
917
|
-
readonly v?: "stretch" | "center" | "end" | "start" | undefined;
|
|
918
|
-
readonly h?: "stretch" | "center" | "end" | "start" | undefined;
|
|
919
|
-
};
|
|
920
|
-
};
|
|
921
|
-
};
|
|
922
|
-
readonly media?: string | undefined;
|
|
923
|
-
}[];
|
|
924
|
-
readonly readonly?: string | undefined;
|
|
925
|
-
} | undefined;
|
|
926
|
-
dataSource?: {
|
|
927
|
-
readonly data: string;
|
|
928
|
-
readonly total?: string | undefined;
|
|
929
|
-
readonly request?: string | undefined;
|
|
930
|
-
} | undefined;
|
|
931
931
|
bottomActions?: {
|
|
932
932
|
readonly size: "default" | "sm" | "xs";
|
|
933
933
|
readonly style?: string | undefined;
|