@pdfme/ui 4.2.5 → 4.3.0

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.es.js CHANGED
@@ -9250,6 +9250,7 @@ z.object({
9250
9250
  rotate: z.string(),
9251
9251
  edit: z.string(),
9252
9252
  required: z.string(),
9253
+ editable: z.string(),
9253
9254
  plsInputName: z.string(),
9254
9255
  fieldMustUniq: z.string(),
9255
9256
  notUniq: z.string(),
@@ -59761,7 +59762,7 @@ function getMods(a, s) {
59761
59762
  $[_] = a[$[_].toLowerCase()];
59762
59763
  return $;
59763
59764
  }
59764
- function getKeys$3(a) {
59765
+ function getKeys$2(a) {
59765
59766
  typeof a != "string" && (a = ""), a = a.replace(/\s/g, "");
59766
59767
  const s = a.split(",");
59767
59768
  let $ = s.lastIndexOf("");
@@ -59950,7 +59951,7 @@ const eachUnbind = (a) => {
59950
59951
  method: _,
59951
59952
  splitKey: _e = "+"
59952
59953
  } = a;
59953
- getKeys$3(s).forEach((nt) => {
59954
+ getKeys$2(s).forEach((nt) => {
59954
59955
  const at = nt.split(_e), ot = at.length, rt = at[ot - 1], st = rt === "*" ? "*" : code(rt);
59955
59956
  if (!_handlers[st])
59956
59957
  return;
@@ -60009,7 +60010,7 @@ function isElementBind(a) {
60009
60010
  }
60010
60011
  function hotkeys(a, s, $) {
60011
60012
  _downKeys = [];
60012
- const _ = getKeys$3(a);
60013
+ const _ = getKeys$2(a);
60013
60014
  let _e = [], tt = "all", nt = document, at = 0, ot = !1, rt = !0, st = "+", lt = !1, et = !1;
60014
60015
  for ($ === void 0 && typeof s == "function" && ($ = s), Object.prototype.toString.call(s) === "[object Object]" && (s.scope && (tt = s.scope), s.element && (nt = s.element), s.keyup && (ot = s.keyup), s.keydown !== void 0 && (rt = s.keydown), s.capture !== void 0 && (lt = s.capture), typeof s.splitKey == "string" && (st = s.splitKey), s.single === !0 && (et = !0)), typeof s == "string" && (tt = s), et && unbind(a, tt); at < _.length; at++)
60015
60016
  a = _[at].split(st), _e = [], a.length > 1 && (_e = getMods(_modifier, a)), a = a[a.length - 1], a = a === "*" ? "*" : code(a), a in _handlers || (_handlers[a] = []), _handlers[a].push({
@@ -87197,7 +87198,7 @@ var parseStyle = function a(s) {
87197
87198
  function uniqueHash(a, s) {
87198
87199
  return murmur2("".concat(a.join("%")).concat(s));
87199
87200
  }
87200
- function Empty$4() {
87201
+ function Empty$3() {
87201
87202
  return null;
87202
87203
  }
87203
87204
  var STYLE_PREFIX = "style";
@@ -87257,7 +87258,7 @@ function useStyleRegister(a, s) {
87257
87258
  return function(St) {
87258
87259
  var Bt;
87259
87260
  if (!ft || ct || !et)
87260
- Bt = /* @__PURE__ */ reactExports.createElement(Empty$4, null);
87261
+ Bt = /* @__PURE__ */ reactExports.createElement(Empty$3, null);
87261
87262
  else {
87262
87263
  var Ot;
87263
87264
  Bt = /* @__PURE__ */ reactExports.createElement("style", _extends$2({}, (Ot = {}, _defineProperty$c(Ot, ATTR_TOKEN, bt), _defineProperty$c(Ot, ATTR_MARK, Et), Ot), {
@@ -99399,7 +99400,7 @@ function getStatusClassNames(a, s, $) {
99399
99400
  [`${a}-has-feedback`]: $
99400
99401
  });
99401
99402
  }
99402
- const getMergedStatus = (a, s) => s || a, Empty$3 = () => {
99403
+ const getMergedStatus = (a, s) => s || a, Empty$2 = () => {
99403
99404
  const [, a] = useToken$1(), $ = new TinyColor(a.colorBgBase).toHsl().l < 0.5 ? {
99404
99405
  opacity: 0.65
99405
99406
  } : {};
@@ -99448,7 +99449,7 @@ const getMergedStatus = (a, s) => s || a, Empty$3 = () => {
99448
99449
  }), /* @__PURE__ */ reactExports.createElement("path", {
99449
99450
  d: "M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"
99450
99451
  }))));
99451
- }, DefaultEmptyImg = Empty$3, Simple = () => {
99452
+ }, DefaultEmptyImg = Empty$2, Simple = () => {
99452
99453
  const [, a] = useToken$1(), {
99453
99454
  colorFill: s,
99454
99455
  colorFillTertiary: $,
@@ -99564,7 +99565,7 @@ var __rest$X = function(a, s) {
99564
99565
  s.indexOf(_[_e]) < 0 && Object.prototype.propertyIsEnumerable.call(a, _[_e]) && ($[_[_e]] = a[_[_e]]);
99565
99566
  return $;
99566
99567
  };
99567
- const defaultEmptyImg = /* @__PURE__ */ reactExports.createElement(DefaultEmptyImg, null), simpleEmptyImg = /* @__PURE__ */ reactExports.createElement(SimpleEmptyImg, null), Empty$1 = (a) => {
99568
+ const defaultEmptyImg = /* @__PURE__ */ reactExports.createElement(DefaultEmptyImg, null), simpleEmptyImg = /* @__PURE__ */ reactExports.createElement(SimpleEmptyImg, null), Empty = (a) => {
99568
99569
  var {
99569
99570
  className: s,
99570
99571
  rootClassName: $,
@@ -99599,9 +99600,9 @@ const defaultEmptyImg = /* @__PURE__ */ reactExports.createElement(DefaultEmptyI
99599
99600
  className: `${it}-footer`
99600
99601
  }, nt)));
99601
99602
  };
99602
- Empty$1.PRESENTED_IMAGE_DEFAULT = defaultEmptyImg;
99603
- Empty$1.PRESENTED_IMAGE_SIMPLE = simpleEmptyImg;
99604
- const Empty$2 = Empty$1, DefaultRenderEmpty = (a) => {
99603
+ Empty.PRESENTED_IMAGE_DEFAULT = defaultEmptyImg;
99604
+ Empty.PRESENTED_IMAGE_SIMPLE = simpleEmptyImg;
99605
+ const Empty$1 = Empty, DefaultRenderEmpty = (a) => {
99605
99606
  const {
99606
99607
  componentName: s
99607
99608
  } = a, {
@@ -99610,20 +99611,20 @@ const Empty$2 = Empty$1, DefaultRenderEmpty = (a) => {
99610
99611
  switch (s) {
99611
99612
  case "Table":
99612
99613
  case "List":
99613
- return /* @__PURE__ */ React$a.createElement(Empty$2, {
99614
- image: Empty$2.PRESENTED_IMAGE_SIMPLE
99614
+ return /* @__PURE__ */ React$a.createElement(Empty$1, {
99615
+ image: Empty$1.PRESENTED_IMAGE_SIMPLE
99615
99616
  });
99616
99617
  case "Select":
99617
99618
  case "TreeSelect":
99618
99619
  case "Cascader":
99619
99620
  case "Transfer":
99620
99621
  case "Mentions":
99621
- return /* @__PURE__ */ React$a.createElement(Empty$2, {
99622
- image: Empty$2.PRESENTED_IMAGE_SIMPLE,
99622
+ return /* @__PURE__ */ React$a.createElement(Empty$1, {
99623
+ image: Empty$1.PRESENTED_IMAGE_SIMPLE,
99623
99624
  className: `${_}-small`
99624
99625
  });
99625
99626
  default:
99626
- return /* @__PURE__ */ React$a.createElement(Empty$2, null);
99627
+ return /* @__PURE__ */ React$a.createElement(Empty$1, null);
99627
99628
  }
99628
99629
  }, DefaultRenderEmpty$1 = DefaultRenderEmpty, genItemStyle = (a) => {
99629
99630
  const {
@@ -119254,10 +119255,10 @@ function getOffset$2(a) {
119254
119255
  top: s.top + (window.pageYOffset || $.scrollTop) - ($.clientTop || document.body.clientTop || 0)
119255
119256
  };
119256
119257
  }
119257
- var COMMON_PROPS = ["crossOrigin", "decoding", "draggable", "loading", "referrerPolicy", "sizes", "srcSet", "useMap", "alt"], PreviewGroupContext = /* @__PURE__ */ reactExports.createContext(null), uid$4 = 0;
119258
+ var COMMON_PROPS = ["crossOrigin", "decoding", "draggable", "loading", "referrerPolicy", "sizes", "srcSet", "useMap", "alt"], PreviewGroupContext = /* @__PURE__ */ reactExports.createContext(null), uid$3 = 0;
119258
119259
  function useRegisterImage(a, s) {
119259
119260
  var $ = reactExports.useState(function() {
119260
- return uid$4 += 1, String(uid$4);
119261
+ return uid$3 += 1, String(uid$3);
119261
119262
  }), _ = _slicedToArray$e($, 1), _e = _[0], tt = reactExports.useContext(PreviewGroupContext), nt = {
119262
119263
  data: s,
119263
119264
  canPreview: a
@@ -129649,8 +129650,8 @@ function FilterDropdown(a) {
129649
129650
  else if (tt.filterDropdown)
129650
129651
  Vt = tt.filterDropdown;
129651
129652
  else {
129652
- const ar = Ot() || [], Jt = () => (tt.filters || []).length === 0 ? /* @__PURE__ */ reactExports.createElement(Empty$2, {
129653
- image: Empty$2.PRESENTED_IMAGE_SIMPLE,
129653
+ const ar = Ot() || [], Jt = () => (tt.filters || []).length === 0 ? /* @__PURE__ */ reactExports.createElement(Empty$1, {
129654
+ image: Empty$1.PRESENTED_IMAGE_SIMPLE,
129654
129655
  description: it.filterEmptyText,
129655
129656
  imageStyle: {
129656
129657
  height: 24
@@ -133630,7 +133631,7 @@ function upload(a) {
133630
133631
  };
133631
133632
  }
133632
133633
  var now$1 = +/* @__PURE__ */ new Date(), index$3 = 0;
133633
- function uid$3() {
133634
+ function uid$2() {
133634
133635
  return "rc-upload-".concat(now$1, "-").concat(++index$3);
133635
133636
  }
133636
133637
  const attrAccept = function(a, s) {
@@ -133693,7 +133694,7 @@ var traverseFileTree = function a(s, $, _) {
133693
133694
  for (var _e = arguments.length, tt = new Array(_e), nt = 0; nt < _e; nt++)
133694
133695
  tt[nt] = arguments[nt];
133695
133696
  return _ = s.call.apply(s, [this].concat(tt)), _.state = {
133696
- uid: uid$3()
133697
+ uid: uid$2()
133697
133698
  }, _.reqs = {}, _.fileInput = void 0, _._isMounted = void 0, _.onChange = function(at) {
133698
133699
  var ot = _.props, rt = ot.accept, st = ot.directory, lt = at.target.files, et = _toConsumableArray$d(lt).filter(function(it) {
133699
133700
  return !st || attrAccept(it, rt);
@@ -133726,7 +133727,7 @@ var traverseFileTree = function a(s, $, _) {
133726
133727
  }
133727
133728
  }, _.uploadFiles = function(at) {
133728
133729
  var ot = _toConsumableArray$d(at), rt = ot.map(function(st) {
133729
- return st.uid = uid$3(), _.processFile(st, ot);
133730
+ return st.uid = uid$2(), _.processFile(st, ot);
133730
133731
  });
133731
133732
  Promise.all(rt).then(function(st) {
133732
133733
  var lt = _.props.onBatchStart;
@@ -133859,7 +133860,7 @@ var traverseFileTree = function a(s, $, _) {
133859
133860
  key: "reset",
133860
133861
  value: function() {
133861
133862
  this.setState({
133862
- uid: uid$3()
133863
+ uid: uid$2()
133863
133864
  });
133864
133865
  }
133865
133866
  }, {
@@ -135134,6 +135135,15 @@ var ExclamationCircleOutlined = function a(s, $) {
135134
135135
  }));
135135
135136
  };
135136
135137
  const ExclamationCircleOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(ExclamationCircleOutlined);
135138
+ var LockOutlined$2 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z" } }] }, name: "lock", theme: "outlined" };
135139
+ const LockOutlinedSvg = LockOutlined$2;
135140
+ var LockOutlined = function a(s, $) {
135141
+ return /* @__PURE__ */ reactExports.createElement(AntdIcon$1, _extends$2({}, s, {
135142
+ ref: $,
135143
+ icon: LockOutlinedSvg
135144
+ }));
135145
+ };
135146
+ const LockOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(LockOutlined);
135137
135147
  var MenuOutlined$2 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" } }] }, name: "menu", theme: "outlined" };
135138
135148
  const MenuOutlinedSvg = MenuOutlined$2;
135139
135149
  var MenuOutlined = function a(s, $) {
@@ -135161,6 +135171,7 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
135161
135171
  opacity: "Opacity",
135162
135172
  rotate: "Rotate",
135163
135173
  required: "Required",
135174
+ editable: "Editable",
135164
135175
  edit: "Edit",
135165
135176
  plsInputName: "Please input name",
135166
135177
  fieldMustUniq: "Name of field is not unique",
@@ -135224,6 +135235,7 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
135224
135235
  opacity: "透明度",
135225
135236
  rotate: "旋转",
135226
135237
  required: "必需的",
135238
+ editable: "可编辑的",
135227
135239
  edit: "编辑",
135228
135240
  plsInputName: "请输入名称",
135229
135241
  fieldMustUniq: "字段名称必须唯一",
@@ -135287,6 +135299,7 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
135287
135299
  opacity: "不透明度",
135288
135300
  rotate: "回転",
135289
135301
  required: "必須",
135302
+ editable: "編集可能",
135290
135303
  edit: "編集する",
135291
135304
  plsInputName: "項目名を入力してください",
135292
135305
  fieldMustUniq: "他の入力項目名と被っています",
@@ -135350,6 +135363,7 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
135350
135363
  opacity: "투명도",
135351
135364
  rotate: "회전",
135352
135365
  required: "필수의",
135366
+ editable: "편집 가능한",
135353
135367
  edit: "편집",
135354
135368
  plsInputName: "이름을 입력하세요",
135355
135369
  fieldMustUniq: "필드 이름은 유일해야 합니다",
@@ -135413,6 +135427,7 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
135413
135427
  opacity: "الشفافية",
135414
135428
  rotate: "تدوير",
135415
135429
  required: "مطلوب",
135430
+ editable: "قابل للتحرير",
135416
135431
  edit: "تعديل",
135417
135432
  plsInputName: "الرجاء إدخال الاسم",
135418
135433
  fieldMustUniq: "يجب أن يكون الحقل فريداً",
@@ -135476,6 +135491,7 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
135476
135491
  opacity: "ความทึบ",
135477
135492
  rotate: "หมุน",
135478
135493
  required: "ที่จำเป็น",
135494
+ editable: "แก้ไขได้",
135479
135495
  edit: "แก้ไข",
135480
135496
  plsInputName: "กรุณาใส่ชื่อ",
135481
135497
  fieldMustUniq: "ชื่อฟิลด์ต้องไม่ซ้ำกัน",
@@ -135539,6 +135555,7 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
135539
135555
  opacity: "Opacità",
135540
135556
  rotate: "Ruota",
135541
135557
  required: "Necessaria",
135558
+ editable: "Modificabile",
135542
135559
  edit: "Modifica",
135543
135560
  plsInputName: "Inserisci il nome per favore",
135544
135561
  fieldMustUniq: "Il nome del campo non è univoco",
@@ -135602,6 +135619,7 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
135602
135619
  opacity: "przezroczystość",
135603
135620
  rotate: "Obrót",
135604
135621
  required: "Wymagany",
135622
+ editable: "Edytowalny",
135605
135623
  edit: "Edytuj",
135606
135624
  plsInputName: "Wymagane wprowadzenie klucza pola",
135607
135625
  fieldMustUniq: "Klucz pola nie jest unikalny",
@@ -135665,6 +135683,7 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
135665
135683
  opacity: "Opazität",
135666
135684
  rotate: "Drehen",
135667
135685
  required: "Erforderlich",
135686
+ editable: "Bearbeitbar",
135668
135687
  edit: "Bearbeiten",
135669
135688
  plsInputName: "Bitte geben Sie einen Namen ein",
135670
135689
  fieldMustUniq: "Feldname ist nicht eindeutig",
@@ -135728,6 +135747,7 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
135728
135747
  opacity: "Opacidad",
135729
135748
  rotate: "Rotar",
135730
135749
  required: "Requerido",
135750
+ editable: "Editable",
135731
135751
  edit: "Editar",
135732
135752
  plsInputName: "Introduce el nombre",
135733
135753
  fieldMustUniq: "El nombre del campo no es único",
@@ -135791,6 +135811,7 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
135791
135811
  opacity: "Opacité",
135792
135812
  rotate: "Rotation",
135793
135813
  required: "Requis",
135814
+ editable: "Modifiable",
135794
135815
  edit: "Éditer",
135795
135816
  plsInputName: "Veuillez saisir le nom",
135796
135817
  fieldMustUniq: "Le nom du champ n'est pas unique",
@@ -136292,38 +136313,39 @@ const { Text: Text$4 } = Typography$1, Item = React$a.memo(
136292
136313
  status: $,
136293
136314
  title: _,
136294
136315
  required: _e,
136295
- style: tt,
136296
- dragOverlay: nt,
136297
- onClick: at,
136298
- onMouseEnter: ot,
136299
- onMouseLeave: rt,
136300
- dragging: st,
136301
- fadeIn: lt,
136302
- listeners: et,
136303
- sorting: it,
136304
- transition: ut,
136305
- transform: ft,
136306
- ...ht
136307
- }, dt) => {
136308
- const gt = reactExports.useContext(I18nContext);
136316
+ readOnly: tt,
136317
+ style: nt,
136318
+ dragOverlay: at,
136319
+ onClick: ot,
136320
+ onMouseEnter: rt,
136321
+ onMouseLeave: st,
136322
+ dragging: lt,
136323
+ fadeIn: et,
136324
+ listeners: it,
136325
+ sorting: ut,
136326
+ transition: ft,
136327
+ transform: ht,
136328
+ ...dt
136329
+ }, gt) => {
136330
+ const pt = reactExports.useContext(I18nContext);
136309
136331
  reactExports.useEffect(() => {
136310
- if (nt)
136332
+ if (at)
136311
136333
  return document.body.style.cursor = "grabbing", () => {
136312
136334
  document.body.style.cursor = "";
136313
136335
  };
136314
- }, [nt]);
136315
- const { x: pt, y: mt, scaleX: ct, scaleY: vt } = ft || { x: 0, y: 0, scaleX: 1, scaleY: 1 };
136336
+ }, [at]);
136337
+ const { x: mt, y: ct, scaleX: vt, scaleY: At } = ht || { x: 0, y: 0, scaleX: 1, scaleY: 1 };
136316
136338
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
136317
136339
  "li",
136318
136340
  {
136319
136341
  style: {
136320
136342
  marginTop: 10,
136321
- transition: ut,
136322
- transform: `translate(${pt}px, ${mt}px) scale(${ct}, ${vt})`
136343
+ transition: ft,
136344
+ transform: `translate(${mt}px, ${ct}px) scale(${vt}, ${At})`
136323
136345
  },
136324
- onMouseEnter: ot,
136325
- onMouseLeave: rt,
136326
- ref: dt,
136346
+ onMouseEnter: rt,
136347
+ onMouseLeave: st,
136348
+ ref: gt,
136327
136349
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
136328
136350
  "div",
136329
136351
  {
@@ -136331,15 +136353,15 @@ const { Text: Text$4 } = Typography$1, Item = React$a.memo(
136331
136353
  display: "flex",
136332
136354
  alignItems: "center",
136333
136355
  cursor: "pointer",
136334
- ...tt
136356
+ ...nt
136335
136357
  },
136336
- ...ht,
136337
- onClick: () => at && at(),
136358
+ ...dt,
136359
+ onClick: () => ot && ot(),
136338
136360
  children: [
136339
136361
  /* @__PURE__ */ jsxRuntimeExports.jsx(
136340
136362
  Button$2,
136341
136363
  {
136342
- ...et,
136364
+ ...it,
136343
136365
  style: {
136344
136366
  display: "flex",
136345
136367
  alignItems: "center",
@@ -136365,9 +136387,10 @@ const { Text: Text$4 } = Typography$1, Item = React$a.memo(
136365
136387
  children: [
136366
136388
  $ === void 0 ? s : /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { children: [
136367
136389
  /* @__PURE__ */ jsxRuntimeExports.jsx(ExclamationCircleOutlined$1, { width: 15, style: { marginRight: "0.5rem" } }),
136368
- $ === "is-warning" ? gt("noKeyName") : s,
136369
- $ === "is-danger" ? gt("notUniq") : ""
136390
+ $ === "is-warning" ? pt("noKeyName") : s,
136391
+ $ === "is-danger" ? pt("notUniq") : ""
136370
136392
  ] }),
136393
+ tt && /* @__PURE__ */ jsxRuntimeExports.jsx(LockOutlined$1, { style: { marginLeft: "0.5rem" } }),
136371
136394
  _e && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { color: "red", marginLeft: "0.5rem" }, children: "*" })
136372
136395
  ]
136373
136396
  }
@@ -136537,7 +136560,7 @@ const { Text: Text$4 } = Typography$1, Item = React$a.memo(
136537
136560
  }, PluginIcon = (a) => {
136538
136561
  var ot;
136539
136562
  const { plugin: s, label: $, size: _, styles: _e } = a, nt = ((ot = reactExports.useContext(OptionsContext).icons) == null ? void 0 : ot[s.propPanel.defaultSchema.type]) ?? s.icon, at = { ..._e, display: "flex", justifyContent: "center" };
136540
- return nt ? _ ? getWithModifiedSize(nt, $, _, at) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: at, title: $, dangerouslySetInnerHTML: { __html: nt } }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { ..._e, overflow: "hidden", fontSize: 10 }, children: $ });
136563
+ return nt ? _ ? getWithModifiedSize(nt, $, _, at) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: at, title: $, dangerouslySetInnerHTML: { __html: nt } }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { ..._e, overflow: "hidden", fontSize: 10 }, title: $, children: $ });
136541
136564
  }, PluginIcon$1 = PluginIcon, SelectableSortableItem = ({
136542
136565
  isSelected: a,
136543
136566
  style: s,
@@ -136573,6 +136596,7 @@ const { Text: Text$4 } = Typography$1, Item = React$a.memo(
136573
136596
  status: At,
136574
136597
  title: xt,
136575
136598
  required: _e.required,
136599
+ readOnly: _e.readOnly,
136576
136600
  style: { ...bt, ...s },
136577
136601
  dragging: it,
136578
136602
  sorting: ut,
@@ -136647,29 +136671,34 @@ const { Text: Text$4 } = Typography$1, Item = React$a.memo(
136647
136671
  gt.id
136648
136672
  )) }) }) }),
136649
136673
  reactDomExports.createPortal(
136650
- /* @__PURE__ */ jsxRuntimeExports.jsx(DragOverlay, { adjustScale: !0, children: lt ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
136651
- /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { style: { margin: 0, padding: 0, listStyle: "none" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
136652
- Item$1,
136653
- {
136654
- icon: dt(lt),
136655
- value: $.find((gt) => gt.id === lt).key,
136656
- required: $.find((gt) => gt.id === lt).required,
136657
- style: { background: s.colorPrimary },
136658
- dragOverlay: !0
136659
- }
136660
- ) }),
136661
- /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { style: { margin: 0, padding: 0, listStyle: "none" }, children: at.filter((gt) => gt.id !== lt).map((gt) => /* @__PURE__ */ jsxRuntimeExports.jsx(
136662
- Item$1,
136663
- {
136664
- icon: dt(gt),
136665
- value: gt.key,
136666
- required: gt.required,
136667
- style: { background: s.colorPrimary },
136668
- dragOverlay: !0
136669
- },
136670
- gt.id
136671
- )) })
136672
- ] }) : null }),
136674
+ /* @__PURE__ */ jsxRuntimeExports.jsx(DragOverlay, { adjustScale: !0, children: lt ? (() => {
136675
+ const gt = $.find((pt) => pt.id === lt);
136676
+ return gt ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
136677
+ /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { style: { margin: 0, padding: 0, listStyle: "none" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
136678
+ Item$1,
136679
+ {
136680
+ icon: dt(lt),
136681
+ value: gt.key,
136682
+ required: gt.required,
136683
+ readOnly: gt.readOnly,
136684
+ style: { background: s.colorPrimary },
136685
+ dragOverlay: !0
136686
+ }
136687
+ ) }),
136688
+ /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { style: { margin: 0, padding: 0, listStyle: "none" }, children: at.filter((pt) => pt.id !== lt).map((pt) => /* @__PURE__ */ jsxRuntimeExports.jsx(
136689
+ Item$1,
136690
+ {
136691
+ icon: dt(pt),
136692
+ value: pt.key,
136693
+ required: pt.required,
136694
+ readOnly: pt.readOnly,
136695
+ style: { background: s.colorPrimary },
136696
+ dragOverlay: !0
136697
+ },
136698
+ pt.id
136699
+ )) })
136700
+ ] }) : null;
136701
+ })() : null }),
136673
136702
  document.body
136674
136703
  )
136675
136704
  ] })
@@ -142384,11 +142413,11 @@ var _ie8DomDefine = !require_descriptors() && !require_fails()(function() {
142384
142413
  if (s && typeof ($ = a.toString) == "function" && !isObject$4(_ = $.call(a)) || typeof ($ = a.valueOf) == "function" && !isObject$4(_ = $.call(a)) || !s && typeof ($ = a.toString) == "function" && !isObject$4(_ = $.call(a)))
142385
142414
  return _;
142386
142415
  throw TypeError("Can't convert object to primitive value");
142387
- }, anObject$3 = _anObject, IE8_DOM_DEFINE$1 = _ie8DomDefine, toPrimitive$3 = _toPrimitive$5, dP$3 = Object.defineProperty;
142416
+ }, anObject$1 = _anObject, IE8_DOM_DEFINE$1 = _ie8DomDefine, toPrimitive$3 = _toPrimitive$5, dP$2 = Object.defineProperty;
142388
142417
  _objectDp.f = require_descriptors() ? Object.defineProperty : function a(s, $, _) {
142389
- if (anObject$3(s), $ = toPrimitive$3($, !0), anObject$3(_), IE8_DOM_DEFINE$1)
142418
+ if (anObject$1(s), $ = toPrimitive$3($, !0), anObject$1(_), IE8_DOM_DEFINE$1)
142390
142419
  try {
142391
- return dP$3(s, $, _);
142420
+ return dP$2(s, $, _);
142392
142421
  } catch {
142393
142422
  }
142394
142423
  if ("get" in _ || "set" in _)
@@ -142402,14 +142431,14 @@ var _propertyDesc = function(a, s) {
142402
142431
  writable: !(a & 4),
142403
142432
  value: s
142404
142433
  };
142405
- }, dP$2 = _objectDp, createDesc$2 = _propertyDesc, _hide = require_descriptors() ? function(a, s, $) {
142406
- return dP$2.f(a, s, createDesc$2(1, $));
142434
+ }, dP$1 = _objectDp, createDesc$2 = _propertyDesc, _hide = require_descriptors() ? function(a, s, $) {
142435
+ return dP$1.f(a, s, createDesc$2(1, $));
142407
142436
  } : function(a, s, $) {
142408
142437
  return a[s] = $, a;
142409
142438
  }, hasOwnProperty = {}.hasOwnProperty, _has = function(a, s) {
142410
142439
  return hasOwnProperty.call(a, s);
142411
- }, global$4 = _globalExports, core$2 = _coreExports, ctx = _ctx, hide$1 = _hide, has$4 = _has, PROTOTYPE$2 = "prototype", $export$5 = function(a, s, $) {
142412
- var _ = a & $export$5.F, _e = a & $export$5.G, tt = a & $export$5.S, nt = a & $export$5.P, at = a & $export$5.B, ot = a & $export$5.W, rt = _e ? core$2 : core$2[s] || (core$2[s] = {}), st = rt[PROTOTYPE$2], lt = _e ? global$4 : tt ? global$4[s] : (global$4[s] || {})[PROTOTYPE$2], et, it, ut;
142440
+ }, global$4 = _globalExports, core$2 = _coreExports, ctx = _ctx, hide$1 = _hide, has$4 = _has, PROTOTYPE$1 = "prototype", $export$5 = function(a, s, $) {
142441
+ var _ = a & $export$5.F, _e = a & $export$5.G, tt = a & $export$5.S, nt = a & $export$5.P, at = a & $export$5.B, ot = a & $export$5.W, rt = _e ? core$2 : core$2[s] || (core$2[s] = {}), st = rt[PROTOTYPE$1], lt = _e ? global$4 : tt ? global$4[s] : (global$4[s] || {})[PROTOTYPE$1], et, it, ut;
142413
142442
  _e && ($ = s);
142414
142443
  for (et in $)
142415
142444
  it = !_ && lt && lt[et] !== void 0, !(it && has$4(rt, et)) && (ut = it ? lt[et] : $[et], rt[et] = _e && typeof lt[et] != "function" ? $[et] : at && it ? ctx(ut, global$4) : ot && lt[et] == ut ? function(ft) {
@@ -142427,7 +142456,7 @@ var _propertyDesc = function(a, s) {
142427
142456
  }
142428
142457
  return ft.apply(this, arguments);
142429
142458
  };
142430
- return ht[PROTOTYPE$2] = ft[PROTOTYPE$2], ht;
142459
+ return ht[PROTOTYPE$1] = ft[PROTOTYPE$1], ht;
142431
142460
  }(ut) : nt && typeof ut == "function" ? ctx(Function.call, ut) : ut, nt && ((rt.virtual || (rt.virtual = {}))[et] = ut, a & $export$5.R && st && !st[et] && hide$1(st, et, ut)));
142432
142461
  };
142433
142462
  $export$5.F = 1;
@@ -142521,14 +142550,22 @@ var _shared = { exports: {} }, _library = !0, core$1 = _coreExports, global$3 =
142521
142550
  });
142522
142551
  var _sharedExports = _shared.exports, id$1 = 0, px = Math.random(), _uid = function(a) {
142523
142552
  return "Symbol(".concat(a === void 0 ? "" : a, ")_", (++id$1 + px).toString(36));
142524
- }, shared$1 = _sharedExports("keys"), uid$2 = _uid, _sharedKey = function(a) {
142525
- return shared$1[a] || (shared$1[a] = uid$2(a));
142526
- }, _objectKeysInternal, hasRequired_objectKeysInternal;
142553
+ }, _sharedKey, hasRequired_sharedKey;
142554
+ function require_sharedKey() {
142555
+ if (hasRequired_sharedKey)
142556
+ return _sharedKey;
142557
+ hasRequired_sharedKey = 1;
142558
+ var a = _sharedExports("keys"), s = _uid;
142559
+ return _sharedKey = function($) {
142560
+ return a[$] || (a[$] = s($));
142561
+ }, _sharedKey;
142562
+ }
142563
+ var _objectKeysInternal, hasRequired_objectKeysInternal;
142527
142564
  function require_objectKeysInternal() {
142528
142565
  if (hasRequired_objectKeysInternal)
142529
142566
  return _objectKeysInternal;
142530
142567
  hasRequired_objectKeysInternal = 1;
142531
- var a = _has, s = _toIobject, $ = require_arrayIncludes()(!1), _ = _sharedKey("IE_PROTO");
142568
+ var a = _has, s = _toIobject, $ = require_arrayIncludes()(!1), _ = require_sharedKey()("IE_PROTO");
142532
142569
  return _objectKeysInternal = function(_e, tt) {
142533
142570
  var nt = s(_e), at = 0, ot = [], rt;
142534
142571
  for (rt in nt)
@@ -142538,12 +142575,16 @@ function require_objectKeysInternal() {
142538
142575
  return ot;
142539
142576
  }, _objectKeysInternal;
142540
142577
  }
142541
- var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","), _objectKeys, hasRequired_objectKeys;
142578
+ var _enumBugKeys, hasRequired_enumBugKeys;
142579
+ function require_enumBugKeys() {
142580
+ return hasRequired_enumBugKeys || (hasRequired_enumBugKeys = 1, _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")), _enumBugKeys;
142581
+ }
142582
+ var _objectKeys, hasRequired_objectKeys;
142542
142583
  function require_objectKeys() {
142543
142584
  if (hasRequired_objectKeys)
142544
142585
  return _objectKeys;
142545
142586
  hasRequired_objectKeys = 1;
142546
- var a = require_objectKeysInternal(), s = _enumBugKeys;
142587
+ var a = require_objectKeysInternal(), s = require_enumBugKeys();
142547
142588
  return _objectKeys = Object.keys || function(_) {
142548
142589
  return a(_, s);
142549
142590
  }, _objectKeys;
@@ -143255,12 +143296,20 @@ var _default$f = /* @__PURE__ */ function() {
143255
143296
  var _ = String(defined(s)), _e = toInteger($), tt = _.length, nt, at;
143256
143297
  return _e < 0 || _e >= tt ? a ? "" : void 0 : (nt = _.charCodeAt(_e), nt < 55296 || nt > 56319 || _e + 1 === tt || (at = _.charCodeAt(_e + 1)) < 56320 || at > 57343 ? a ? _.charAt(_e) : nt : a ? _.slice(_e, _e + 2) : (nt - 55296 << 10) + (at - 56320) + 65536);
143257
143298
  };
143258
- }, _redefine = _hide, _iterators = {}, dP$1 = _objectDp, anObject$2 = _anObject, getKeys$2 = require_objectKeys(), _objectDps = require_descriptors() ? Object.defineProperties : function a(s, $) {
143259
- anObject$2(s);
143260
- for (var _ = getKeys$2($), _e = _.length, tt = 0, nt; _e > tt; )
143261
- dP$1.f(s, nt = _[tt++], $[nt]);
143262
- return s;
143263
- }, _html, hasRequired_html;
143299
+ }, _redefine = _hide, _iterators = {}, _objectDps, hasRequired_objectDps;
143300
+ function require_objectDps() {
143301
+ if (hasRequired_objectDps)
143302
+ return _objectDps;
143303
+ hasRequired_objectDps = 1;
143304
+ var a = _objectDp, s = _anObject, $ = require_objectKeys();
143305
+ return _objectDps = require_descriptors() ? Object.defineProperties : function(_e, tt) {
143306
+ s(_e);
143307
+ for (var nt = $(tt), at = nt.length, ot = 0, rt; at > ot; )
143308
+ a.f(_e, rt = nt[ot++], tt[rt]);
143309
+ return _e;
143310
+ }, _objectDps;
143311
+ }
143312
+ var _html, hasRequired_html;
143264
143313
  function require_html() {
143265
143314
  if (hasRequired_html)
143266
143315
  return _html;
@@ -143268,16 +143317,24 @@ function require_html() {
143268
143317
  var a = _globalExports.document;
143269
143318
  return _html = a && a.documentElement, _html;
143270
143319
  }
143271
- var anObject$1 = _anObject, dPs = _objectDps, enumBugKeys = _enumBugKeys, IE_PROTO = _sharedKey("IE_PROTO"), Empty = function() {
143272
- }, PROTOTYPE$1 = "prototype", createDict = function() {
143273
- var a = require_domCreate()("iframe"), s = enumBugKeys.length, $ = "<", _ = ">", _e;
143274
- for (a.style.display = "none", require_html().appendChild(a), a.src = "javascript:", _e = a.contentWindow.document, _e.open(), _e.write($ + "script" + _ + "document.F=Object" + $ + "/script" + _), _e.close(), createDict = _e.F; s--; )
143275
- delete createDict[PROTOTYPE$1][enumBugKeys[s]];
143276
- return createDict();
143277
- }, _objectCreate = Object.create || function a(s, $) {
143278
- var _;
143279
- return s !== null ? (Empty[PROTOTYPE$1] = anObject$1(s), _ = new Empty(), Empty[PROTOTYPE$1] = null, _[IE_PROTO] = s) : _ = createDict(), $ === void 0 ? _ : dPs(_, $);
143280
- }, _wks = { exports: {} }, store = _sharedExports("wks"), uid$1 = _uid, Symbol$1 = _globalExports.Symbol, USE_SYMBOL = typeof Symbol$1 == "function", $exports = _wks.exports = function(a) {
143320
+ var _objectCreate, hasRequired_objectCreate;
143321
+ function require_objectCreate() {
143322
+ if (hasRequired_objectCreate)
143323
+ return _objectCreate;
143324
+ hasRequired_objectCreate = 1;
143325
+ var a = _anObject, s = require_objectDps(), $ = require_enumBugKeys(), _ = require_sharedKey()("IE_PROTO"), _e = function() {
143326
+ }, tt = "prototype", nt = function() {
143327
+ var at = require_domCreate()("iframe"), ot = $.length, rt = "<", st = ">", lt;
143328
+ for (at.style.display = "none", require_html().appendChild(at), at.src = "javascript:", lt = at.contentWindow.document, lt.open(), lt.write(rt + "script" + st + "document.F=Object" + rt + "/script" + st), lt.close(), nt = lt.F; ot--; )
143329
+ delete nt[tt][$[ot]];
143330
+ return nt();
143331
+ };
143332
+ return _objectCreate = Object.create || function(ot, rt) {
143333
+ var st;
143334
+ return ot !== null ? (_e[tt] = a(ot), st = new _e(), _e[tt] = null, st[_] = ot) : st = nt(), rt === void 0 ? st : s(st, rt);
143335
+ }, _objectCreate;
143336
+ }
143337
+ var _wks = { exports: {} }, store = _sharedExports("wks"), uid$1 = _uid, Symbol$1 = _globalExports.Symbol, USE_SYMBOL = typeof Symbol$1 == "function", $exports = _wks.exports = function(a) {
143281
143338
  return store[a] || (store[a] = USE_SYMBOL && Symbol$1[a] || (USE_SYMBOL ? Symbol$1 : uid$1)("Symbol." + a));
143282
143339
  };
143283
143340
  $exports.store = store;
@@ -143288,7 +143345,7 @@ function require_iterCreate() {
143288
143345
  if (hasRequired_iterCreate)
143289
143346
  return _iterCreate;
143290
143347
  hasRequired_iterCreate = 1;
143291
- var a = _objectCreate, s = _propertyDesc, $ = _setToStringTag, _ = {};
143348
+ var a = require_objectCreate(), s = _propertyDesc, $ = _setToStringTag, _ = {};
143292
143349
  return _hide(_, _wksExports("iterator"), function() {
143293
143350
  return this;
143294
143351
  }), _iterCreate = function(_e, tt, nt) {
@@ -143300,7 +143357,7 @@ function require_objectGpo() {
143300
143357
  if (hasRequired_objectGpo)
143301
143358
  return _objectGpo;
143302
143359
  hasRequired_objectGpo = 1;
143303
- var a = _has, s = require_toObject(), $ = _sharedKey("IE_PROTO"), _ = Object.prototype;
143360
+ var a = _has, s = require_toObject(), $ = require_sharedKey()("IE_PROTO"), _ = Object.prototype;
143304
143361
  return _objectGpo = Object.getPrototypeOf || function(_e) {
143305
143362
  return _e = s(_e), a(_e, $) ? _e[$] : typeof _e.constructor == "function" && _e instanceof _e.constructor ? _e.constructor.prototype : _e instanceof Object ? _ : null;
143306
143363
  }, _objectGpo;
@@ -143421,7 +143478,7 @@ var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esMo
143421
143478
  return s;
143422
143479
  }, cof = require_cof(), _isArray = Array.isArray || function a(s) {
143423
143480
  return cof(s) == "Array";
143424
- }, _objectGopnExt = {}, _objectGopn = {}, $keys$1 = require_objectKeysInternal(), hiddenKeys = _enumBugKeys.concat("length", "prototype");
143481
+ }, _objectGopnExt = {}, _objectGopn = {}, $keys$1 = require_objectKeysInternal(), hiddenKeys = require_enumBugKeys().concat("length", "prototype");
143425
143482
  _objectGopn.f = Object.getOwnPropertyNames || function a(s) {
143426
143483
  return $keys$1(s, hiddenKeys);
143427
143484
  };
@@ -143445,7 +143502,7 @@ _objectGopd.f = require_descriptors() ? gOPD$1 : function a(s, $) {
143445
143502
  if (has$1(s, $))
143446
143503
  return createDesc$1(!pIE.f.call(s, $), s[$]);
143447
143504
  };
143448
- var global$1 = _globalExports, has = _has, DESCRIPTORS = require_descriptors(), $export$2 = _export, redefine = _redefine, META = _metaExports.KEY, $fails = require_fails(), shared = _sharedExports, setToStringTag = _setToStringTag, uid = _uid, wks = _wksExports, wksExt = _wksExt, wksDefine = _wksDefine, enumKeys = _enumKeys, isArray$1 = _isArray, anObject = _anObject, isObject$2 = _isObject, toObject = require_toObject(), toIObject = _toIobject, toPrimitive$1 = _toPrimitive$5, createDesc = _propertyDesc, _create$1 = _objectCreate, gOPNExt = _objectGopnExt, $GOPD = _objectGopd, $GOPS = require_objectGops(), $DP = _objectDp, $keys = require_objectKeys(), gOPD = $GOPD.f, dP = $DP.f, gOPN = gOPNExt.f, $Symbol = global$1.Symbol, $JSON = global$1.JSON, _stringify = $JSON && $JSON.stringify, PROTOTYPE = "prototype", HIDDEN = wks("_hidden"), TO_PRIMITIVE = wks("toPrimitive"), isEnum = {}.propertyIsEnumerable, SymbolRegistry = shared("symbol-registry"), AllSymbols = shared("symbols"), OPSymbols = shared("op-symbols"), ObjectProto = Object[PROTOTYPE], USE_NATIVE = typeof $Symbol == "function" && !!$GOPS.f, QObject = global$1.QObject, setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild, setSymbolDesc = DESCRIPTORS && $fails(function() {
143505
+ var global$1 = _globalExports, has = _has, DESCRIPTORS = require_descriptors(), $export$2 = _export, redefine = _redefine, META = _metaExports.KEY, $fails = require_fails(), shared = _sharedExports, setToStringTag = _setToStringTag, uid = _uid, wks = _wksExports, wksExt = _wksExt, wksDefine = _wksDefine, enumKeys = _enumKeys, isArray$1 = _isArray, anObject = _anObject, isObject$2 = _isObject, toObject = require_toObject(), toIObject = _toIobject, toPrimitive$1 = _toPrimitive$5, createDesc = _propertyDesc, _create$1 = require_objectCreate(), gOPNExt = _objectGopnExt, $GOPD = _objectGopd, $GOPS = require_objectGops(), $DP = _objectDp, $keys = require_objectKeys(), gOPD = $GOPD.f, dP = $DP.f, gOPN = gOPNExt.f, $Symbol = global$1.Symbol, $JSON = global$1.JSON, _stringify = $JSON && $JSON.stringify, PROTOTYPE = "prototype", HIDDEN = wks("_hidden"), TO_PRIMITIVE = wks("toPrimitive"), isEnum = {}.propertyIsEnumerable, SymbolRegistry = shared("symbol-registry"), AllSymbols = shared("symbols"), OPSymbols = shared("op-symbols"), ObjectProto = Object[PROTOTYPE], USE_NATIVE = typeof $Symbol == "function" && !!$GOPS.f, QObject = global$1.QObject, setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild, setSymbolDesc = DESCRIPTORS && $fails(function() {
143449
143506
  return _create$1(dP({}, "a", {
143450
143507
  get: function() {
143451
143508
  return dP(this, "a", { value: 7 }).a;
@@ -143620,7 +143677,7 @@ function require_setProto() {
143620
143677
  var $export$1 = _export;
143621
143678
  $export$1($export$1.S, "Object", { setPrototypeOf: require_setProto().set });
143622
143679
  var setPrototypeOf$1 = _coreExports.Object.setPrototypeOf, setPrototypeOf = { default: setPrototypeOf$1, __esModule: !0 }, $export = _export;
143623
- $export($export.S, "Object", { create: _objectCreate });
143680
+ $export($export.S, "Object", { create: require_objectCreate() });
143624
143681
  var $Object = _coreExports.Object, create$1 = function a(s, $) {
143625
143682
  return $Object.create(s, $);
143626
143683
  }, create = { default: create$1, __esModule: !0 }, _setPrototypeOf = setPrototypeOf, _setPrototypeOf2 = _interopRequireDefault$c(_setPrototypeOf), _create = create, _create2 = _interopRequireDefault$c(_create), _typeof2 = _typeof$j, _typeof3 = _interopRequireDefault$c(_typeof2);
@@ -151934,7 +151991,7 @@ const FormRender = withProvider(FormCore, defaultWidgets), svgBaseProp = {
151934
151991
  );
151935
151992
  }) }) });
151936
151993
  }, ButtonGroupWidget$1 = ButtonGroupWidget, { Text: Text$2 } = Typography$1, DetailView = (a) => {
151937
- const { token: s } = theme.useToken(), { size: $, schemas: _, changeSchemas: _e, deselectSchema: tt, activeSchema: nt } = a, at = useForm(), ot = reactExports.useContext(I18nContext), rt = reactExports.useContext(PluginsRegistry), st = reactExports.useContext(OptionsContext), [lt, et] = reactExports.useState({});
151994
+ const { token: s } = theme.useToken(), { size: $, schemasList: _, changeSchemas: _e, deselectSchema: tt, activeSchema: nt } = a, at = useForm(), ot = reactExports.useContext(I18nContext), rt = reactExports.useContext(PluginsRegistry), st = reactExports.useContext(OptionsContext), [lt, et] = reactExports.useState({});
151938
151995
  reactExports.useEffect(() => {
151939
151996
  const ct = {
151940
151997
  AlignWidget: (vt) => /* @__PURE__ */ jsxRuntimeExports.jsx(AlignWidget$1, { ...vt, ...a, options: st }),
@@ -151960,30 +152017,38 @@ const FormRender = withProvider(FormCore, defaultWidgets), svgBaseProp = {
151960
152017
  et(ct);
151961
152018
  }, [nt, rt, JSON.stringify(st)]), reactExports.useEffect(() => {
151962
152019
  const ct = { ...nt };
151963
- ct.x = ct.position.x, ct.y = ct.position.y, delete ct.position, at.setValues(ct);
152020
+ ct.editable = !ct.readOnly, at.setValues(ct);
151964
152021
  }, [nt, at]), reactExports.useEffect(() => at.resetFields(), [nt.id]), reactExports.useEffect(() => {
151965
152022
  it.current = (ct) => {
151966
- for (const vt of Object.values(_))
151967
- if (vt.key === ct && vt.id !== nt.id)
151968
- return !1;
152023
+ for (const vt of _)
152024
+ for (const At of Object.values(vt))
152025
+ if (At.key === ct && At.id !== nt.id)
152026
+ return !1;
151969
152027
  return !0;
151970
152028
  };
151971
152029
  }, [_, nt]);
151972
152030
  const it = reactExports.useRef((ct) => !0), ut = (ct, vt) => it.current(vt), ft = debounce$1((ct) => {
151973
152031
  const vt = (xt, bt) => typeof xt == "object" ? JSON.stringify(xt) !== JSON.stringify(bt) : xt !== bt;
151974
152032
  let At = [];
151975
- for (let xt in ct) {
152033
+ for (const xt in ct) {
151976
152034
  if (["id", "content"].includes(xt))
151977
152035
  continue;
151978
- let bt = ct[xt], Et = !1;
151979
- ["x", "y"].includes(xt) ? (Et = bt !== nt.position[xt], xt = "position." + xt) : Et = vt(bt, nt[xt]), Et && (bt === null && ["rotate", "opacity"].includes(xt) && (bt = void 0), At.push({ key: xt, value: bt, schemaId: nt.id }));
152036
+ let bt = ct[xt];
152037
+ if (vt(bt, nt[xt])) {
152038
+ if (bt === null && ["rotate", "opacity"].includes(xt) && (bt = void 0), xt === "editable") {
152039
+ const Et = !bt;
152040
+ At.push({ key: "readOnly", value: Et, schemaId: nt.id }), Et && At.push({ key: "required", value: !1, schemaId: nt.id });
152041
+ continue;
152042
+ }
152043
+ At.push({ key: xt, value: bt, schemaId: nt.id });
152044
+ }
151980
152045
  }
151981
152046
  At.length && at.validateFields().then(() => _e(At)).catch((xt) => {
151982
152047
  xt.errorFields.length && (At = At.filter((bt) => !xt.errorFields.find(
151983
152048
  (Et) => Et.name.includes(bt.key)
151984
152049
  ))), At.length && _e(At);
151985
152050
  });
151986
- }, 500), ht = Object.values(rt).find(
152051
+ }, 100), ht = Object.values(rt).find(
151987
152052
  (ct) => (ct == null ? void 0 : ct.propPanel.defaultSchema.type) === nt.type
151988
152053
  ), dt = ht == null ? void 0 : ht.propPanel.schema;
151989
152054
  dt || console.error(`[@pdfme/ui] No propPanel.schema for ${nt.type}.
@@ -152012,28 +152077,26 @@ Check this document: https://pdfme.com/docs/custom-schemas`);
152012
152077
  validator: ut,
152013
152078
  message: ot("validation.uniqueName")
152014
152079
  }],
152015
- props: { autocomplete: "off" }
152080
+ props: { autoComplete: "off" }
152016
152081
  },
152017
- required: { title: ot("required"), type: "boolean", span: 8, hidden: pt == null ? void 0 : pt.readOnly },
152082
+ editable: { title: ot("editable"), type: "boolean", span: 8, hidden: (pt == null ? void 0 : pt.readOnly) !== void 0 },
152083
+ required: { title: ot("required"), type: "boolean", span: 16, hidden: "{{!formData.editable}}" },
152018
152084
  "-": { type: "void", widget: "Divider" },
152019
152085
  align: { title: ot("align"), type: "void", widget: "AlignWidget" },
152020
- x: { title: "X", type: "number", widget: "inputNumber", required: !0, span: 8, min: 0 },
152021
- y: { title: "Y", type: "number", widget: "inputNumber", required: !0, span: 8, min: 0 },
152022
- rotate: {
152023
- title: ot("rotate"),
152024
- type: "number",
152025
- widget: "inputNumber",
152026
- disabled: (pt == null ? void 0 : pt.rotate) === void 0,
152027
- max: 360,
152028
- props: { min: 0 },
152029
- span: 8
152086
+ position: {
152087
+ type: "object",
152088
+ widget: "card",
152089
+ properties: {
152090
+ x: { title: "X", type: "number", widget: "inputNumber", required: !0, span: 8, min: 0 },
152091
+ y: { title: "Y", type: "number", widget: "inputNumber", required: !0, span: 8, min: 0 }
152092
+ }
152030
152093
  },
152031
152094
  width: {
152032
152095
  title: ot("width"),
152033
152096
  type: "number",
152034
152097
  widget: "inputNumber",
152035
152098
  required: !0,
152036
- span: 8,
152099
+ span: 6,
152037
152100
  props: { min: 0 }
152038
152101
  },
152039
152102
  height: {
@@ -152041,30 +152104,39 @@ Check this document: https://pdfme.com/docs/custom-schemas`);
152041
152104
  type: "number",
152042
152105
  widget: "inputNumber",
152043
152106
  required: !0,
152044
- span: 8,
152107
+ span: 6,
152045
152108
  props: { min: 0 }
152046
152109
  },
152110
+ rotate: {
152111
+ title: ot("rotate"),
152112
+ type: "number",
152113
+ widget: "inputNumber",
152114
+ disabled: (pt == null ? void 0 : pt.rotate) === void 0,
152115
+ max: 360,
152116
+ props: { min: 0 },
152117
+ span: 6
152118
+ },
152047
152119
  opacity: {
152048
152120
  title: ot("opacity"),
152049
152121
  type: "number",
152050
152122
  widget: "inputNumber",
152051
152123
  disabled: (pt == null ? void 0 : pt.opacity) === void 0,
152052
152124
  props: { step: 0.1, min: 0, max: 1 },
152053
- span: 8
152125
+ span: 6
152054
152126
  }
152055
152127
  }
152056
152128
  };
152057
152129
  if (typeof dt == "function") {
152058
- const ct = dt({
152059
- ...a,
152130
+ const { schemasList: ct, ...vt } = a, At = dt({
152131
+ ...vt,
152060
152132
  options: st,
152061
152133
  theme: s,
152062
152134
  i18n: ot
152063
152135
  }) || {};
152064
152136
  mt.properties = {
152065
152137
  ...mt.properties,
152066
- ...Object.keys(ct).length === 0 ? {} : { "--": { type: "void", widget: "Divider" } },
152067
- ...ct
152138
+ ...Object.keys(At).length === 0 ? {} : { "--": { type: "void", widget: "Divider" } },
152139
+ ...At
152068
152140
  };
152069
152141
  } else {
152070
152142
  const ct = dt || {};
@@ -162423,8 +162495,8 @@ const Guides$2 = Guides$1, guideStyle = (a, s, $, _) => ({
162423
162495
  dt(Dt), Ct(), pt(0), (Ut = at.current) != null && Ut.scroll && at.current.scroll({ top: 0, behavior: "smooth" });
162424
162496
  }, []), jt = (Tt) => {
162425
162497
  const [Dt, Ut, Vt, Qt] = isBlankPdf(a.basePdf) ? a.basePdf.padding : [0, 0, 0, 0], qt = St[gt], Zt = (rr) => {
162426
- let Yt = ht[gt].length + 1, Kt = rr + Yt;
162427
- for (; ht[gt].find((nr) => nr.key === Kt); )
162498
+ let Yt = ht.reduce((nr, tr) => nr + tr.length, 1), Kt = rr + Yt;
162499
+ for (; ht.some((nr) => nr.find((tr) => tr.key === Kt)); )
162428
162500
  Yt++, Kt = rr + Yt;
162429
162501
  return Kt;
162430
162502
  }, ar = (rr, Yt, Kt) => Math.min(Math.max(rr, Yt), Kt), Jt = {
@@ -162512,6 +162584,7 @@ const Guides$2 = Guides$1, guideStyle = (a, s, $, _) => ({
162512
162584
  size: s,
162513
162585
  pageSize: St[gt] ?? [],
162514
162586
  activeElements: ut,
162587
+ schemasList: ht,
162515
162588
  schemas: ht[gt] ?? [],
162516
162589
  changeSchemas: Rt,
162517
162590
  onSortEnd: Ht,