@protobase/ui 0.53.1 → 0.53.3

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.
@@ -4,6 +4,7 @@ import { markdownExcerpt } from "../markdown/markdown-excerpt.js";
4
4
  import { isMarkdown } from "../markdown/markdown-hint.js";
5
5
  import { recordTitleField } from "./model-helpers.js";
6
6
  import { contactFormat } from "./contact-links.js";
7
+ import { listColumnNames } from "@protobase/schema/internal";
7
8
  import { enumLabel } from "@protobase/schema";
8
9
  //#region src/live/columns-from-model.ts
9
10
  const tones = {
@@ -62,8 +63,6 @@ const kindOf = (field, view, index) => {
62
63
  }
63
64
  };
64
65
  const currencyCents = (value) => Math.round(Number.parseFloat(String(value)) * 100);
65
- /** The fields a view's list shows as columns: its list columns, else the resource's first six fields the caller reads. */
66
- const listColumnNames = (resource, view) => view?.list?.columns ?? Object.values(resource.fields).filter((field) => !field.writeOnly).slice(0, 6).map((field) => field.name);
67
66
  /** Grid columns for `names`, by default the view's list: kinds follow the field types and the view's format hints. */
68
67
  const columnsFromModel = (resource, view, highlight = [], names = listColumnNames(resource, view)) => {
69
68
  const title = recordTitleField(resource, view);
package/dist/package.js CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "0.53.1";
2
+ var version = "0.53.3";
3
3
  var protobase = { "pluginApi": 1 };
4
4
  //#endregion
5
5
  export { protobase, version };