@ai-matrx/records 0.99.2 → 0.99.4
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/CHANGELOG.md +12 -0
- package/dist/first-page/index.cjs +3 -0
- package/dist/first-page/index.cjs.map +1 -1
- package/dist/first-page/index.d.cts +2 -0
- package/dist/first-page/index.d.ts +2 -0
- package/dist/first-page/index.js +3 -0
- package/dist/first-page/index.js.map +1 -1
- package/dist/views/index.cjs +41 -1
- package/dist/views/index.cjs.map +1 -1
- package/dist/views/index.d.cts +25 -2
- package/dist/views/index.d.ts +25 -2
- package/dist/views/index.js +41 -1
- package/dist/views/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -1223,6 +1223,8 @@ interface SavedViewSpec<P = ViewPresentationDocument> {
|
|
|
1223
1223
|
personal?: boolean;
|
|
1224
1224
|
/** The named section of the view list this view sits under (VIEWS-AIRTABLE). Null/absent = unsectioned. */
|
|
1225
1225
|
section?: string | null;
|
|
1226
|
+
/** Where the view sits in the view list among its section's views, lowest first (VIEWS-AIRTABLE). */
|
|
1227
|
+
position?: number | null;
|
|
1226
1228
|
/**
|
|
1227
1229
|
* HOW THIS VIEW LOOKS — its colors, its per-column formats and its frozen
|
|
1228
1230
|
* column (`presentation.ts`).
|
|
@@ -1223,6 +1223,8 @@ interface SavedViewSpec<P = ViewPresentationDocument> {
|
|
|
1223
1223
|
personal?: boolean;
|
|
1224
1224
|
/** The named section of the view list this view sits under (VIEWS-AIRTABLE). Null/absent = unsectioned. */
|
|
1225
1225
|
section?: string | null;
|
|
1226
|
+
/** Where the view sits in the view list among its section's views, lowest first (VIEWS-AIRTABLE). */
|
|
1227
|
+
position?: number | null;
|
|
1226
1228
|
/**
|
|
1227
1229
|
* HOW THIS VIEW LOOKS — its colors, its per-column formats and its frozen
|
|
1228
1230
|
* column (`presentation.ts`).
|
package/dist/first-page/index.js
CHANGED
|
@@ -255,6 +255,7 @@ var VIEW_KEYS = [
|
|
|
255
255
|
{ path: "grid", shape: "grid", layouts: GRIDS, writer: "caller" },
|
|
256
256
|
{ path: "personal", shape: "boolean", layouts: ALL, writer: "caller" },
|
|
257
257
|
{ path: "section", shape: "section", layouts: ALL, writer: "caller" },
|
|
258
|
+
{ path: "position", shape: "position", layouts: ALL, writer: "caller" },
|
|
258
259
|
{ path: "hidden_fields", shape: "input", layouts: HIDES, writer: "input" },
|
|
259
260
|
{ path: "table_id", shape: "server", layouts: ALL, writer: "server" },
|
|
260
261
|
{ path: "order", shape: "server", layouts: GRIDS, writer: "server" },
|
|
@@ -290,6 +291,7 @@ function viewSettings(definition, rowFilters, codec = plainCodec()) {
|
|
|
290
291
|
isDefault: data["is_default"] === true || data["is_default"] === "true",
|
|
291
292
|
personal: data["personal"] === true || data["personal"] === "true",
|
|
292
293
|
section: text("section"),
|
|
294
|
+
position: typeof data["position"] === "number" && Number.isFinite(data["position"]) ? data["position"] : null,
|
|
293
295
|
presentation: codec.parse(data["presentation"]),
|
|
294
296
|
movedFrom: isObject(moved) ? moved : null
|
|
295
297
|
};
|
|
@@ -372,6 +374,7 @@ function viewFromRow(row, codec = plainCodec2()) {
|
|
|
372
374
|
isDefault: k.isDefault || k.movedFrom?.["kind"] === "default_view",
|
|
373
375
|
personal: k.personal,
|
|
374
376
|
section: k.section,
|
|
377
|
+
position: k.position,
|
|
375
378
|
presentation: k.presentation,
|
|
376
379
|
movedFrom: k.movedFrom
|
|
377
380
|
};
|