@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.
Files changed (35) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts +68 -68
  3. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +68 -68
  4. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +68 -68
  5. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +68 -68
  6. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +34 -34
  7. package/dist/runtime/components/operations/2026-06-11/com.shwfed.operation.http.request.json/schema.d.ts +8 -2
  8. package/dist/runtime/components/operations/2026-06-11/com.shwfed.operation.http.request.json/schema.js +5 -4
  9. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/schema.d.ts +8 -2
  10. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/schema.js +5 -4
  11. package/dist/runtime/components/sidebar/index.vue +1 -1
  12. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -2
  13. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -2
  14. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -2
  15. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -2
  16. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -2
  17. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -2
  18. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -2
  19. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -2
  20. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -2
  21. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -2
  22. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -2
  23. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -2
  24. package/dist/runtime/components/table/columns/2026-07-12/com.shwfed.table.column.dynamic/config.d.vue.ts +10 -0
  25. package/dist/runtime/components/table/columns/2026-07-12/com.shwfed.table.column.dynamic/config.vue +73 -0
  26. package/dist/runtime/components/table/columns/2026-07-12/com.shwfed.table.column.dynamic/config.vue.d.ts +10 -0
  27. package/dist/runtime/components/table/columns/2026-07-12/com.shwfed.table.column.dynamic/schema.d.ts +63 -0
  28. package/dist/runtime/components/table/columns/2026-07-12/com.shwfed.table.column.dynamic/schema.js +157 -0
  29. package/dist/runtime/components/table/index.vue +86 -12
  30. package/dist/runtime/components/table/schema.d.ts +68 -68
  31. package/dist/runtime/components/table/utils/resolve.d.ts +42 -0
  32. package/dist/runtime/components/table/utils/resolve.js +11 -3
  33. package/dist/runtime/share/define-registry.d.ts +11 -0
  34. package/dist/runtime/share/define-registry.js +10 -3
  35. 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 findSibling = (map, date, type, file) => {
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
- throw new Error(`[${hostName}] missing ${file} for ${type}@${date}`);
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: findSibling(runtimeModules, date, type, "runtime.vue"),
48
+ runtime,
42
49
  module: mod
43
50
  });
44
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shwfed/config",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "Configurable UI for SHWFED",
5
5
  "type": "module",
6
6
  "publishConfig": {