@ai-matrx/records-ui 0.110.10 → 0.110.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/first-page.cjs +7 -7
- package/dist/first-page.cjs.map +1 -1
- package/dist/first-page.js +7 -7
- package/dist/first-page.js.map +1 -1
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -2860,6 +2860,15 @@ interface FieldEditorCommon {
|
|
|
2860
2860
|
/** Called after the store has accepted the removal, so the list can re-read. */
|
|
2861
2861
|
onRemoved?: (() => void) | undefined;
|
|
2862
2862
|
className?: string | undefined;
|
|
2863
|
+
/**
|
|
2864
|
+
* A NEW column that starts as this kind (and name) — a host's own type menu (Spaces' "New property"
|
|
2865
|
+
* → Formula / Rollup) opens the panel already on the kind the person picked. Ignored when `field`
|
|
2866
|
+
* or `copyOf` is given.
|
|
2867
|
+
*/
|
|
2868
|
+
startAs?: {
|
|
2869
|
+
type: PickableFieldType;
|
|
2870
|
+
label?: string | undefined;
|
|
2871
|
+
} | undefined;
|
|
2863
2872
|
}
|
|
2864
2873
|
/**
|
|
2865
2874
|
* ONE EDITOR FOR BOTH KINDS OF TABLE (lane 7 STANDARD-TABLES, wave 1; Doctrine R13).
|
package/dist/index.d.ts
CHANGED
|
@@ -2860,6 +2860,15 @@ interface FieldEditorCommon {
|
|
|
2860
2860
|
/** Called after the store has accepted the removal, so the list can re-read. */
|
|
2861
2861
|
onRemoved?: (() => void) | undefined;
|
|
2862
2862
|
className?: string | undefined;
|
|
2863
|
+
/**
|
|
2864
|
+
* A NEW column that starts as this kind (and name) — a host's own type menu (Spaces' "New property"
|
|
2865
|
+
* → Formula / Rollup) opens the panel already on the kind the person picked. Ignored when `field`
|
|
2866
|
+
* or `copyOf` is given.
|
|
2867
|
+
*/
|
|
2868
|
+
startAs?: {
|
|
2869
|
+
type: PickableFieldType;
|
|
2870
|
+
label?: string | undefined;
|
|
2871
|
+
} | undefined;
|
|
2863
2872
|
}
|
|
2864
2873
|
/**
|
|
2865
2874
|
* ONE EDITOR FOR BOTH KINDS OF TABLE (lane 7 STANDARD-TABLES, wave 1; Doctrine R13).
|
package/dist/index.js
CHANGED
|
@@ -12370,8 +12370,9 @@ function FieldEditor(props) {
|
|
|
12370
12370
|
const sensitivities = onEntity ? SENSITIVITIES.filter((row) => row.value === "public" || row.value === "internal") : SENSITIVITIES;
|
|
12371
12371
|
const copyOf = field2 ? void 0 : props.copyOf;
|
|
12372
12372
|
const start = field2 ?? copyOf;
|
|
12373
|
-
const
|
|
12374
|
-
const [
|
|
12373
|
+
const startAs = start ? void 0 : props.startAs;
|
|
12374
|
+
const [label, setLabel] = useState33(field2?.label ?? (copyOf ? `${copyOf.label} (1)` : startAs?.label ?? ""));
|
|
12375
|
+
const [type, setType] = useState33(() => startAs ? startAs.type : startingType(start));
|
|
12375
12376
|
const [required, setRequired] = useState33(start?.required ?? false);
|
|
12376
12377
|
const [multi, setMulti] = useState33(start?.multi ?? false);
|
|
12377
12378
|
const [dated, setDated] = useState33(start?.dated ?? false);
|