@shwfed/config 2.12.8 → 2.12.9

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 (29) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +18 -18
  3. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +18 -18
  4. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +18 -18
  5. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +18 -18
  6. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +18 -18
  7. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +18 -18
  8. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +18 -18
  9. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +18 -18
  10. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +18 -18
  11. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +18 -18
  12. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +18 -18
  13. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +18 -18
  14. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +18 -18
  15. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +18 -18
  16. package/dist/runtime/components/operations/2026-07-06/com.shwfed.operation.table.add-row/config.d.vue.ts +15 -0
  17. package/dist/runtime/components/operations/2026-07-06/com.shwfed.operation.table.add-row/config.vue +47 -0
  18. package/dist/runtime/components/operations/2026-07-06/com.shwfed.operation.table.add-row/config.vue.d.ts +15 -0
  19. package/dist/runtime/components/operations/2026-07-06/com.shwfed.operation.table.add-row/schema.d.ts +12 -0
  20. package/dist/runtime/components/operations/2026-07-06/com.shwfed.operation.table.add-row/schema.js +28 -0
  21. package/dist/runtime/components/operations/utils/resolve.d.ts +7 -1
  22. package/dist/runtime/components/operations/utils/resolve.js +14 -6
  23. package/dist/runtime/components/table/config.vue +93 -4
  24. package/dist/runtime/components/table/index.vue +27 -0
  25. package/dist/runtime/components/table/schema.d.ts +2 -1
  26. package/dist/runtime/components/table/schema.js +13 -1
  27. package/dist/runtime/share/clipboard.d.ts +1 -1
  28. package/dist/runtime/share/clipboard.js +1 -1
  29. package/package.json +1 -1
@@ -4,6 +4,7 @@ import { Locale } from "../../share/locale.js";
4
4
  import { md } from "../../share/markdown.js";
5
5
  import { ActionSchemaFields } from "../actions/schema.js";
6
6
  import { FormConfig } from "../form/schema.js";
7
+ import * as addRowOp from "../operations/2026-07-06/com.shwfed.operation.table.add-row/schema.js";
7
8
  import { allColumnSchemas } from "./utils/resolve.js";
8
9
  import { CelRowAccess, registerRowVariablesIfAbsent } from "./utils/shared.js";
9
10
  export { getStructFieldTitle, getStructFieldDescription } from "./utils/schema-meta.js";
@@ -21,7 +22,18 @@ export const metadata = {
21
22
  { id: "reset-pagination", name: "\u91CD\u7F6E\u5206\u9875\u5E76\u6267\u884C\u641C\u7D22", icon: "fluent:arrow-previous-20-regular" },
22
23
  { id: "search", name: "\u6267\u884C\u641C\u7D22", icon: "fluent:search-20-regular" },
23
24
  { id: "clear-selection", name: "\u6E05\u7A7A\u6240\u6709\u9009\u4E2D\u884C", icon: "fluent:select-all-off-20-regular" },
24
- { id: "add-row", name: "\u65B0\u589E\u4E00\u884C", icon: "fluent:add-20-regular" },
25
+ // Parameterized (but host-coupled) op: `compatibilityDate` marks it as
26
+ // carrying params, so the trigger editor renders the op's `config.vue` and
27
+ // seeds its params. Unlike the generic ops (alert / 发送请求) it ships no
28
+ // `runtime.ts` — the row append touches this instance's private `rowData`,
29
+ // so the handler is hand-wired in `index.vue`'s `provideEventTarget`. `id`
30
+ // doubles as the operation-block `type`.
31
+ {
32
+ id: addRowOp.type,
33
+ compatibilityDate: addRowOp.compatibilityDate,
34
+ name: addRowOp.metadata.name,
35
+ icon: addRowOp.metadata.icon
36
+ },
25
37
  { id: "duplicate-selected", name: "\u590D\u5236\u9009\u4E2D\u884C", icon: "fluent:copy-20-regular" },
26
38
  { id: "delete-selected", name: "\u5220\u9664\u9009\u4E2D\u884C", icon: "fluent:delete-20-regular" }
27
39
  ]
@@ -1,4 +1,4 @@
1
- export type ClipSurface = 'form' | 'block';
1
+ export type ClipSurface = 'form' | 'block' | 'table';
2
2
  export type ClipPayload = Readonly<{
3
3
  surface: ClipSurface;
4
4
  items: ReadonlyArray<unknown>;
@@ -57,7 +57,7 @@ export function parseClip(text) {
57
57
  try {
58
58
  const o = JSON.parse(text);
59
59
  if (!o || o[CLIP_KEY] !== CLIP_VERSION) return null;
60
- if (o.surface !== "form" && o.surface !== "block") return null;
60
+ if (o.surface !== "form" && o.surface !== "block" && o.surface !== "table") return null;
61
61
  if (!Array.isArray(o.items)) return null;
62
62
  const placements = isPlainObject(o.placements) ? o.placements : void 0;
63
63
  return { surface: o.surface, items: o.items, placements };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shwfed/config",
3
- "version": "2.12.8",
3
+ "version": "2.12.9",
4
4
  "description": "Configurable UI for SHWFED",
5
5
  "type": "module",
6
6
  "publishConfig": {