@ai-matrx/records-ui 0.113.2 → 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 +6 -0
- package/dist/index.cjs +9 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +4 -3
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +4 -3
- package/dist/pickers.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5643,9 +5643,10 @@ function TypedDateHelper({
|
|
|
5643
5643
|
text: text2,
|
|
5644
5644
|
onText,
|
|
5645
5645
|
label,
|
|
5646
|
-
onPicked
|
|
5646
|
+
onPicked,
|
|
5647
|
+
startOpen = false
|
|
5647
5648
|
}) {
|
|
5648
|
-
const [open, setOpen] = useState17(
|
|
5649
|
+
const [open, setOpen] = useState17(startOpen);
|
|
5649
5650
|
const held = readBox(text2, kind);
|
|
5650
5651
|
usePersonTimeZone();
|
|
5651
5652
|
const today = personWallNow();
|
|
@@ -6012,7 +6013,7 @@ function TypedTextControl({ field: field2, value, onChange, disabled, id, onComm
|
|
|
6012
6013
|
return /* @__PURE__ */ jsxs20("span", { className: "flex flex-col gap-0.5", children: [
|
|
6013
6014
|
helper && !disabled ? /* @__PURE__ */ jsxs20("span", { className: "flex min-w-0 items-center gap-0.5", children: [
|
|
6014
6015
|
box,
|
|
6015
|
-
/* @__PURE__ */ jsx22(TypedDateHelper, { kind: helper, text: value.text, onText: retype, label: fieldName(field2), onPicked: onCommit })
|
|
6016
|
+
/* @__PURE__ */ jsx22(TypedDateHelper, { kind: helper, text: value.text, onText: retype, label: fieldName(field2), onPicked: onCommit, startOpen: value.openedAs !== void 0 })
|
|
6016
6017
|
] }) : box,
|
|
6017
6018
|
judged === null ? /* @__PURE__ */ jsxs20("span", { "data-records-cell-note": "", className: "text-[10px] text-muted-foreground", children: [
|
|
6018
6019
|
"Reading ",
|
|
@@ -9231,6 +9232,10 @@ function GridCell({
|
|
|
9231
9232
|
openThisCell(event);
|
|
9232
9233
|
return;
|
|
9233
9234
|
}
|
|
9235
|
+
if (dateHelperKind(field2, value) !== null) {
|
|
9236
|
+
if (wasActive.current || event.target !== closedControl.current && event.target instanceof Node && closedControl.current?.contains(event.target)) openThisCell(event);
|
|
9237
|
+
return;
|
|
9238
|
+
}
|
|
9234
9239
|
if (!opensAsAList(field2, hostTakesFiles(ui))) return;
|
|
9235
9240
|
if (wasActive.current || clickLandsOnAChip(event.target)) openThisCell(event);
|
|
9236
9241
|
};
|
|
@@ -9483,7 +9488,7 @@ function closesOnBlur(field2) {
|
|
|
9483
9488
|
return true;
|
|
9484
9489
|
}
|
|
9485
9490
|
}
|
|
9486
|
-
var LIST_CELL_CHIP = "[data-records-choice-chip], [data-records-person-chip]
|
|
9491
|
+
var LIST_CELL_CHIP = "[data-records-choice-chip], [data-records-person-chip]";
|
|
9487
9492
|
function clickLandsOnAChip(target) {
|
|
9488
9493
|
return target instanceof Element && target.closest(LIST_CELL_CHIP) !== null;
|
|
9489
9494
|
}
|