@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/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 [label, setLabel] = useState33(field2?.label ?? (copyOf ? `${copyOf.label} (1)` : ""));
12374
- const [type, setType] = useState33(() => startingType(start));
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);