@shwfed/config 3.0.0 → 3.0.2
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/operations/2026-06-11/com.shwfed.operation.http.request.json/schema.d.ts +8 -2
- package/dist/runtime/components/operations/2026-06-11/com.shwfed.operation.http.request.json/schema.js +5 -4
- package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/schema.d.ts +8 -2
- package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/schema.js +5 -4
- package/dist/runtime/components/sidebar/index.vue +1 -1
- 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.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.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/columns/2026-07-12/com.shwfed.table.column.dynamic/config.d.vue.ts +10 -0
- package/dist/runtime/components/table/columns/2026-07-12/com.shwfed.table.column.dynamic/config.vue +73 -0
- package/dist/runtime/components/table/columns/2026-07-12/com.shwfed.table.column.dynamic/config.vue.d.ts +10 -0
- package/dist/runtime/components/table/columns/2026-07-12/com.shwfed.table.column.dynamic/schema.d.ts +63 -0
- package/dist/runtime/components/table/columns/2026-07-12/com.shwfed.table.column.dynamic/schema.js +157 -0
- package/dist/runtime/components/table/index.vue +86 -12
- package/dist/runtime/components/table/schema.d.ts +68 -68
- package/dist/runtime/components/table/utils/resolve.d.ts +42 -0
- package/dist/runtime/components/table/utils/resolve.js +11 -3
- package/dist/runtime/share/define-registry.d.ts +11 -0
- package/dist/runtime/share/define-registry.js +10 -3
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ export function defineRegistry(options) {
|
|
|
6
6
|
configModules,
|
|
7
7
|
runtimeModules,
|
|
8
8
|
validateModule,
|
|
9
|
+
runtimeOptional,
|
|
9
10
|
deriveEntryExtras
|
|
10
11
|
} = options;
|
|
11
12
|
const pathRe = new RegExp(`/${dirSegment}/([^/]+)/([^/]+)/schema\\.(?:ts|js)$`);
|
|
@@ -14,12 +15,17 @@ export function defineRegistry(options) {
|
|
|
14
15
|
if (!match) throw new Error(`[${hostName}] unrecognized schema path: ${path}`);
|
|
15
16
|
return { date: match[1], type: match[2] };
|
|
16
17
|
};
|
|
17
|
-
const
|
|
18
|
+
const findSiblingOptional = (map, date, type, file) => {
|
|
18
19
|
const suffix = `/${dirSegment}/${date}/${type}/${file}`;
|
|
19
20
|
for (const [key, value] of Object.entries(map)) {
|
|
20
21
|
if (key.endsWith(suffix)) return value;
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
+
return void 0;
|
|
24
|
+
};
|
|
25
|
+
const findSibling = (map, date, type, file) => {
|
|
26
|
+
const found = findSiblingOptional(map, date, type, file);
|
|
27
|
+
if (found === void 0) throw new Error(`[${hostName}] missing ${file} for ${type}@${date}`);
|
|
28
|
+
return found;
|
|
23
29
|
};
|
|
24
30
|
let cached = null;
|
|
25
31
|
const compute = () => {
|
|
@@ -34,11 +40,12 @@ export function defineRegistry(options) {
|
|
|
34
40
|
throw new Error(`[${hostName}] compatibilityDate "${mod.compatibilityDate}" does not match folder "${date}"`);
|
|
35
41
|
}
|
|
36
42
|
validateModule?.(mod, type, date);
|
|
43
|
+
const runtime = runtimeOptional?.(mod) ? findSiblingOptional(runtimeModules, date, type, "runtime.vue") : findSibling(runtimeModules, date, type, "runtime.vue");
|
|
37
44
|
drafts.push({
|
|
38
45
|
type: mod.type,
|
|
39
46
|
compatibilityDate: mod.compatibilityDate,
|
|
40
47
|
config: findSibling(configModules, date, type, "config.vue"),
|
|
41
|
-
runtime
|
|
48
|
+
runtime,
|
|
42
49
|
module: mod
|
|
43
50
|
});
|
|
44
51
|
}
|