@fuaran-ui/ops 0.7.0 → 0.9.0

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/index.cjs CHANGED
@@ -1181,6 +1181,8 @@ var gridSpec = (s) => {
1181
1181
  ["columns", jArray(s.columns.map(columnErased))],
1182
1182
  // 0.2.0 omitted-when-false.
1183
1183
  ...s.editable ? [["editable", bool(true)]] : [],
1184
+ // Phase 934 — omit-when-false, exactly as `editable` above.
1185
+ ...s.reorderable ? [["reorderable", bool(true)]] : [],
1184
1186
  // fuaran#665 — rows are a typed Static payload now, not the opaque residual.
1185
1187
  ["source", binding(s.source, staticRowSeq)]
1186
1188
  ];
@@ -6217,6 +6219,8 @@ var decodeGridSpec = (path, j) => {
6217
6219
  if (!columns.ok) return columns;
6218
6220
  const editable = optField(path, f, "editable", requireBool);
6219
6221
  if (!editable.ok) return editable;
6222
+ const reorderable = optField(path, f, "reorderable", requireBool);
6223
+ if (!reorderable.ok) return reorderable;
6220
6224
  const source = reqFieldAliased(
6221
6225
  path,
6222
6226
  f,
@@ -6282,6 +6286,7 @@ var decodeGridSpec = (path, j) => {
6282
6286
  return ok({
6283
6287
  columns: columns.value,
6284
6288
  editable: editable.value ?? false,
6289
+ reorderable: reorderable.value ?? false,
6285
6290
  source: source.value,
6286
6291
  ...hasRowClick ? { onRowClick: () => placeholderAction } : {},
6287
6292
  ...hasRowKey ? { rowKey: () => CLOSURE2 } : {},