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