@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/CHANGELOG.md +33 -0
- package/dist/first-page.cjs +3 -543
- package/dist/first-page.cjs.map +1 -1
- package/dist/first-page.js +3 -543
- package/dist/first-page.js.map +1 -1
- package/dist/index.cjs +5830 -6199
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -8
- package/dist/index.d.ts +19 -8
- package/dist/index.js +4850 -5222
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +6 -5
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +6 -5
- package/dist/pickers.js.map +1 -1
- package/package.json +5 -5
package/dist/pickers.js
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] = useState13(
|
|
3179
|
+
const [open, setOpen] = useState13(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__ */ jsxs16("span", { className: "flex flex-col gap-0.5", children: [
|
|
3507
3508
|
helper && !disabled ? /* @__PURE__ */ jsxs16("span", { className: "flex min-w-0 items-center gap-0.5", children: [
|
|
3508
3509
|
box,
|
|
3509
|
-
/* @__PURE__ */ jsx18(TypedDateHelper, { kind: helper, text: value.text, onText: retype, label: fieldName(field), onPicked: onCommit })
|
|
3510
|
+
/* @__PURE__ */ jsx18(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__ */ jsxs16("span", { "data-records-cell-note": "", className: "text-[10px] text-muted-foreground", children: [
|
|
3512
3513
|
"Reading ",
|
|
@@ -4247,13 +4248,13 @@ import { withTablePlacement } from "@ai-matrx/records";
|
|
|
4247
4248
|
import { useRecordsClient as useRecordsClient2, useTables } from "@ai-matrx/records/react";
|
|
4248
4249
|
import { Checkbox as Checkbox2, cn as cn14 } from "@ai-matrx/design-system";
|
|
4249
4250
|
import { jsx as jsx20, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
4250
|
-
var
|
|
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(
|
|
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 = {}) {
|