com-angel-authorization 1.0.25 → 1.0.26

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.
@@ -1571,16 +1571,10 @@ function MenuManager({
1571
1571
  /* @__PURE__ */ jsxs2(
1572
1572
  "select",
1573
1573
  {
1574
- style: styles2.input,
1574
+ style: { ...styles2.input, ...styles2.inputReadonly },
1575
1575
  value: form.parentId ?? ROOT_PARENT_ID,
1576
- onChange: (e) => {
1577
- const parentId = e.target.value ? e.target.value : null;
1578
- setForm((prev) => ({
1579
- ...prev,
1580
- parentId,
1581
- depth: resolveMenuDepth(parentId, allKnownMenus)
1582
- }));
1583
- },
1576
+ disabled: true,
1577
+ "aria-readonly": "true",
1584
1578
  children: [
1585
1579
  /* @__PURE__ */ jsx3("option", { value: ROOT_PARENT_ID, children: "\u65E0" }),
1586
1580
  parentOptions.map((opt) => /* @__PURE__ */ jsx3("option", { value: opt.value, children: opt.label }, opt.value))
@@ -1946,6 +1940,11 @@ var styles2 = {
1946
1940
  boxSizing: "border-box",
1947
1941
  width: "100%"
1948
1942
  },
1943
+ inputReadonly: {
1944
+ backgroundColor: "#f9fafb",
1945
+ color: "#667085",
1946
+ cursor: "not-allowed"
1947
+ },
1949
1948
  control: {
1950
1949
  width: 16,
1951
1950
  height: 16,