@ai-matrx/records 0.98.10 → 0.98.12
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/core/index.cjs +22 -7
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +22 -7
- package/dist/core/index.js.map +1 -1
- package/dist/first-page/index.cjs +7 -0
- package/dist/first-page/index.cjs.map +1 -1
- package/dist/first-page/index.d.cts +4 -0
- package/dist/first-page/index.d.ts +4 -0
- package/dist/first-page/index.js +7 -0
- package/dist/first-page/index.js.map +1 -1
- package/dist/index.cjs +22 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +22 -7
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +22 -7
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +4 -2
- package/dist/react/index.d.ts +4 -2
- package/dist/react/index.js +22 -7
- package/dist/react/index.js.map +1 -1
- package/dist/views/index.cjs +41 -0
- package/dist/views/index.cjs.map +1 -1
- package/dist/views/index.d.cts +28 -1
- package/dist/views/index.d.ts +28 -1
- package/dist/views/index.js +41 -0
- package/dist/views/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1205,6 +1205,10 @@ interface SavedViewSpec<P = ViewPresentationDocument> {
|
|
|
1205
1205
|
*/
|
|
1206
1206
|
where?: RuleExpression | null;
|
|
1207
1207
|
isDefault?: boolean;
|
|
1208
|
+
/** PERSONAL (Airtable): only the person who made the view lists it. Absent/false = collaborative. */
|
|
1209
|
+
personal?: boolean;
|
|
1210
|
+
/** The named section of the view list this view sits under (VIEWS-AIRTABLE). Null/absent = unsectioned. */
|
|
1211
|
+
section?: string | null;
|
|
1208
1212
|
/**
|
|
1209
1213
|
* HOW THIS VIEW LOOKS — its colors, its per-column formats and its frozen
|
|
1210
1214
|
* column (`presentation.ts`).
|
|
@@ -1205,6 +1205,10 @@ interface SavedViewSpec<P = ViewPresentationDocument> {
|
|
|
1205
1205
|
*/
|
|
1206
1206
|
where?: RuleExpression | null;
|
|
1207
1207
|
isDefault?: boolean;
|
|
1208
|
+
/** PERSONAL (Airtable): only the person who made the view lists it. Absent/false = collaborative. */
|
|
1209
|
+
personal?: boolean;
|
|
1210
|
+
/** The named section of the view list this view sits under (VIEWS-AIRTABLE). Null/absent = unsectioned. */
|
|
1211
|
+
section?: string | null;
|
|
1208
1212
|
/**
|
|
1209
1213
|
* HOW THIS VIEW LOOKS — its colors, its per-column formats and its frozen
|
|
1210
1214
|
* column (`presentation.ts`).
|
package/dist/first-page/index.js
CHANGED
|
@@ -225,6 +225,7 @@ var VIEW_KEYS = [
|
|
|
225
225
|
{ path: "presentation.boardColorColumns", shape: "boolean", layouts: BOARD, writer: "caller" },
|
|
226
226
|
{ path: "presentation.boardCounts", shape: "boolean", layouts: BOARD, writer: "caller" },
|
|
227
227
|
{ path: "presentation.boardLanesShut", shape: "values", layouts: BOARD, writer: "caller" },
|
|
228
|
+
...STORE_KEEPS_TIMELINE ? [{ path: "presentation.gantt", shape: "object", layouts: ["timeline"], writer: "caller" }] : [],
|
|
228
229
|
{ path: "presentation.locked", shape: "boolean", layouts: ALL, writer: "caller" },
|
|
229
230
|
{ path: "presentation.wrap", shape: "boolean", layouts: GRIDS, writer: "caller" },
|
|
230
231
|
{ path: "presentation.wrapColumns", shape: "fields", layouts: GRIDS, writer: "caller" },
|
|
@@ -233,6 +234,8 @@ var VIEW_KEYS = [
|
|
|
233
234
|
{ path: "presentation.footer", shape: "footer", layouts: GRIDS, writer: "caller" },
|
|
234
235
|
{ path: "presentation.summaries", shape: "summaries", layouts: GRIDS, writer: "caller" },
|
|
235
236
|
{ path: "grid", shape: "grid", layouts: GRIDS, writer: "caller" },
|
|
237
|
+
{ path: "personal", shape: "boolean", layouts: ALL, writer: "caller" },
|
|
238
|
+
{ path: "section", shape: "section", layouts: ALL, writer: "caller" },
|
|
236
239
|
{ path: "hidden_fields", shape: "input", layouts: HIDES, writer: "input" },
|
|
237
240
|
{ path: "table_id", shape: "server", layouts: ALL, writer: "server" },
|
|
238
241
|
{ path: "order", shape: "server", layouts: GRIDS, writer: "server" },
|
|
@@ -266,6 +269,8 @@ function viewSettings(definition, rowFilters, codec = plainCodec()) {
|
|
|
266
269
|
sorts: parseSorts(data["sorts"]),
|
|
267
270
|
ruleId: text("rule_id"),
|
|
268
271
|
isDefault: data["is_default"] === true || data["is_default"] === "true",
|
|
272
|
+
personal: data["personal"] === true || data["personal"] === "true",
|
|
273
|
+
section: text("section"),
|
|
269
274
|
presentation: codec.parse(data["presentation"]),
|
|
270
275
|
movedFrom: isObject(moved) ? moved : null
|
|
271
276
|
};
|
|
@@ -346,6 +351,8 @@ function viewFromRow(row, codec = plainCodec2()) {
|
|
|
346
351
|
// the mover wrote the row's column, which `custom.views` does not return. Read as anything
|
|
347
352
|
// else, the page would seed a second "All records" beside it and open on that.
|
|
348
353
|
isDefault: k.isDefault || k.movedFrom?.["kind"] === "default_view",
|
|
354
|
+
personal: k.personal,
|
|
355
|
+
section: k.section,
|
|
349
356
|
presentation: k.presentation,
|
|
350
357
|
movedFrom: k.movedFrom
|
|
351
358
|
};
|