@ai-matrx/records-ui 0.111.0 → 0.113.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.
package/dist/pickers.cjs CHANGED
@@ -3173,9 +3173,10 @@ function TypedDateHelper({
3173
3173
  text,
3174
3174
  onText,
3175
3175
  label,
3176
- onPicked
3176
+ onPicked,
3177
+ startOpen = false
3177
3178
  }) {
3178
- const [open, setOpen] = (0, import_react23.useState)(false);
3179
+ const [open, setOpen] = (0, import_react23.useState)(startOpen);
3179
3180
  const held = readBox(text, kind);
3180
3181
  usePersonTimeZone();
3181
3182
  const today = personWallNow();
@@ -3506,7 +3507,7 @@ function TypedTextControl({ field, value, onChange, disabled, id, onCommit, onCa
3506
3507
  return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", { className: "flex flex-col gap-0.5", children: [
3507
3508
  helper && !disabled ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", { className: "flex min-w-0 items-center gap-0.5", children: [
3508
3509
  box,
3509
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(TypedDateHelper, { kind: helper, text: value.text, onText: retype, label: fieldName(field), onPicked: onCommit })
3510
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(TypedDateHelper, { kind: helper, text: value.text, onText: retype, label: fieldName(field), onPicked: onCommit, startOpen: value.openedAs !== void 0 })
3510
3511
  ] }) : box,
3511
3512
  judged === null ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", { "data-records-cell-note": "", className: "text-[10px] text-muted-foreground", children: [
3512
3513
  "Reading ",
@@ -4247,13 +4248,13 @@ var import_records11 = require("@ai-matrx/records");
4247
4248
  var import_react31 = require("@ai-matrx/records/react");
4248
4249
  var import_design_system16 = require("@ai-matrx/design-system");
4249
4250
  var import_jsx_runtime20 = require("react/jsx-runtime");
4250
- var APP_TABLE_PREFIX = "records_ui_";
4251
+ var PLATFORM_TABLE_PREFIX = "records_ui_";
4251
4252
  function isValueSet(table) {
4252
4253
  if (table.kept_for === "choices") return true;
4253
4254
  return table.kept_for == null && table.kind === "list" && table.kept_by_the_app === true;
4254
4255
  }
4255
4256
  function isKeptTable(table) {
4256
- return table.kept_by_the_app === true || isValueSet(table) || Boolean(table.work_kind) || (table.slug ?? "").startsWith(APP_TABLE_PREFIX);
4257
+ return table.kept_by_the_app === true || isValueSet(table) || Boolean(table.work_kind) || (table.slug ?? "").startsWith(PLATFORM_TABLE_PREFIX);
4257
4258
  }
4258
4259
  var CHOICES_SUFFIX = / choices$/i;
4259
4260
  function tablePickerEntries(tables, options = {}) {