@pdfme/ui 4.2.5-dev.4 → 4.2.5-dev.6

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(),
@@ -76007,7 +76008,7 @@ strings$2.utf8border = function(a, s) {
76007
76008
  function ZStream$2() {
76008
76009
  this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
76009
76010
  }
76010
- var zstream = ZStream$2, zlib_deflate = deflate$3, utils$5 = common, strings$1 = strings$2, msg$1 = messages$1, ZStream$1 = zstream, toString$5 = Object.prototype.toString, Z_NO_FLUSH = 0, Z_FINISH$1 = 4, Z_OK$1 = 0, Z_STREAM_END$1 = 1, Z_SYNC_FLUSH = 2, Z_DEFAULT_COMPRESSION = -1, Z_DEFAULT_STRATEGY = 0, Z_DEFLATED$1 = 8;
76011
+ var zstream = ZStream$2, zlib_deflate = deflate$3, utils$5 = common, strings$1 = strings$2, msg$1 = messages$1, ZStream$1 = zstream, toString$4 = Object.prototype.toString, Z_NO_FLUSH = 0, Z_FINISH$1 = 4, Z_OK$1 = 0, Z_STREAM_END$1 = 1, Z_SYNC_FLUSH = 2, Z_DEFAULT_COMPRESSION = -1, Z_DEFAULT_STRATEGY = 0, Z_DEFLATED$1 = 8;
76011
76012
  function Deflate(a) {
76012
76013
  if (!(this instanceof Deflate))
76013
76014
  return new Deflate(a);
@@ -76034,7 +76035,7 @@ function Deflate(a) {
76034
76035
  throw new Error(msg$1[$]);
76035
76036
  if (s.header && zlib_deflate.deflateSetHeader(this.strm, s.header), s.dictionary) {
76036
76037
  var _;
76037
- if (typeof s.dictionary == "string" ? _ = strings$1.string2buf(s.dictionary) : toString$5.call(s.dictionary) === "[object ArrayBuffer]" ? _ = new Uint8Array(s.dictionary) : _ = s.dictionary, $ = zlib_deflate.deflateSetDictionary(this.strm, _), $ !== Z_OK$1)
76038
+ if (typeof s.dictionary == "string" ? _ = strings$1.string2buf(s.dictionary) : toString$4.call(s.dictionary) === "[object ArrayBuffer]" ? _ = new Uint8Array(s.dictionary) : _ = s.dictionary, $ = zlib_deflate.deflateSetDictionary(this.strm, _), $ !== Z_OK$1)
76038
76039
  throw new Error(msg$1[$]);
76039
76040
  this._dict_set = !0;
76040
76041
  }
@@ -76043,7 +76044,7 @@ Deflate.prototype.push = function(a, s) {
76043
76044
  var $ = this.strm, _ = this.options.chunkSize, _e, tt;
76044
76045
  if (this.ended)
76045
76046
  return !1;
76046
- tt = s === ~~s ? s : s === !0 ? Z_FINISH$1 : Z_NO_FLUSH, typeof a == "string" ? $.input = strings$1.string2buf(a) : toString$5.call(a) === "[object ArrayBuffer]" ? $.input = new Uint8Array(a) : $.input = a, $.next_in = 0, $.avail_in = $.input.length;
76047
+ tt = s === ~~s ? s : s === !0 ? Z_FINISH$1 : Z_NO_FLUSH, typeof a == "string" ? $.input = strings$1.string2buf(a) : toString$4.call(a) === "[object ArrayBuffer]" ? $.input = new Uint8Array(a) : $.input = a, $.next_in = 0, $.avail_in = $.input.length;
76047
76048
  do {
76048
76049
  if ($.avail_out === 0 && ($.output = new utils$5.Buf8(_), $.next_out = 0, $.avail_out = _), _e = zlib_deflate.deflate($, tt), _e !== Z_STREAM_END$1 && _e !== Z_OK$1)
76049
76050
  return this.onEnd(_e), this.ended = !0, !1;
@@ -76884,7 +76885,7 @@ var constants$1 = {
76884
76885
  function GZheader$1() {
76885
76886
  this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1;
76886
76887
  }
76887
- var gzheader = GZheader$1, zlib_inflate = inflate$3, utils$2 = common, strings = strings$2, c$1 = constants$1, msg = messages$1, ZStream = zstream, GZheader = gzheader, toString$4 = Object.prototype.toString;
76888
+ var gzheader = GZheader$1, zlib_inflate = inflate$3, utils$2 = common, strings = strings$2, c$1 = constants$1, msg = messages$1, ZStream = zstream, GZheader = gzheader, toString$3 = Object.prototype.toString;
76888
76889
  function Inflate(a) {
76889
76890
  if (!(this instanceof Inflate))
76890
76891
  return new Inflate(a);
@@ -76901,14 +76902,14 @@ function Inflate(a) {
76901
76902
  );
76902
76903
  if ($ !== c$1.Z_OK)
76903
76904
  throw new Error(msg[$]);
76904
- if (this.header = new GZheader(), zlib_inflate.inflateGetHeader(this.strm, this.header), s.dictionary && (typeof s.dictionary == "string" ? s.dictionary = strings.string2buf(s.dictionary) : toString$4.call(s.dictionary) === "[object ArrayBuffer]" && (s.dictionary = new Uint8Array(s.dictionary)), s.raw && ($ = zlib_inflate.inflateSetDictionary(this.strm, s.dictionary), $ !== c$1.Z_OK)))
76905
+ if (this.header = new GZheader(), zlib_inflate.inflateGetHeader(this.strm, this.header), s.dictionary && (typeof s.dictionary == "string" ? s.dictionary = strings.string2buf(s.dictionary) : toString$3.call(s.dictionary) === "[object ArrayBuffer]" && (s.dictionary = new Uint8Array(s.dictionary)), s.raw && ($ = zlib_inflate.inflateSetDictionary(this.strm, s.dictionary), $ !== c$1.Z_OK)))
76905
76906
  throw new Error(msg[$]);
76906
76907
  }
76907
76908
  Inflate.prototype.push = function(a, s) {
76908
76909
  var $ = this.strm, _ = this.options.chunkSize, _e = this.options.dictionary, tt, nt, at, ot, rt, st = !1;
76909
76910
  if (this.ended)
76910
76911
  return !1;
76911
- nt = s === ~~s ? s : s === !0 ? c$1.Z_FINISH : c$1.Z_NO_FLUSH, typeof a == "string" ? $.input = strings.binstring2buf(a) : toString$4.call(a) === "[object ArrayBuffer]" ? $.input = new Uint8Array(a) : $.input = a, $.next_in = 0, $.avail_in = $.input.length;
76912
+ nt = s === ~~s ? s : s === !0 ? c$1.Z_FINISH : c$1.Z_NO_FLUSH, typeof a == "string" ? $.input = strings.binstring2buf(a) : toString$3.call(a) === "[object ArrayBuffer]" ? $.input = new Uint8Array(a) : $.input = a, $.next_in = 0, $.avail_in = $.input.length;
76912
76913
  do {
76913
76914
  if ($.avail_out === 0 && ($.output = new utils$2.Buf8(_), $.next_out = 0, $.avail_out = _), tt = zlib_inflate.inflate($, c$1.Z_NO_FLUSH), tt === c$1.Z_NEED_DICT && _e && (tt = zlib_inflate.inflateSetDictionary(this.strm, _e)), tt === c$1.Z_BUF_ERROR && st === !0 && (tt = c$1.Z_OK, st = !1), tt !== c$1.Z_STREAM_END && tt !== c$1.Z_OK)
76914
76915
  return this.onEnd(tt), this.ended = !0, !1;
@@ -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
  ] })
@@ -137226,11 +137255,11 @@ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\
137226
137255
  }), s;
137227
137256
  });
137228
137257
  const stringToPath$1 = stringToPath;
137229
- function toString$3(a) {
137258
+ function toString$2(a) {
137230
137259
  return a == null ? "" : baseToString(a);
137231
137260
  }
137232
137261
  function castPath(a, s) {
137233
- return isArray$5(a) ? a : isKey(a, s) ? [a] : stringToPath$1(toString$3(a));
137262
+ return isArray$5(a) ? a : isKey(a, s) ? [a] : stringToPath$1(toString$2(a));
137234
137263
  }
137235
137264
  var INFINITY = 1 / 0;
137236
137265
  function toKey(a) {
@@ -137776,7 +137805,7 @@ var objectProto$2 = Object.prototype, hasOwnProperty$2 = objectProto$2.hasOwnPro
137776
137805
  function baseHas(a, s) {
137777
137806
  return a != null && hasOwnProperty$2.call(a, s);
137778
137807
  }
137779
- function has$6(a, s) {
137808
+ function has$5(a, s) {
137780
137809
  return a != null && hasPath(a, s, baseHas);
137781
137810
  }
137782
137811
  function parent(a, s) {
@@ -138026,7 +138055,7 @@ var FRContext = /* @__PURE__ */ reactExports.createContext(null), ConfigContext
138026
138055
  validateTrigger: It,
138027
138056
  antdVersion: yt
138028
138057
  };
138029
- }, _set = set, _get = get, _cloneDeep = cloneDeep, _has$1 = has$6, _some = some$1, _isMatch = isMatch, isObject$6 = function a(s) {
138058
+ }, _set = set, _get = get, _cloneDeep = cloneDeep, _has$1 = has$5, _some = some$1, _isMatch = isMatch, isObject$6 = function a(s) {
138030
138059
  var $ = Object.prototype.toString.call(s);
138031
138060
  return $.indexOf("Object") > -1;
138032
138061
  }, isArray$3 = function a(s) {
@@ -142345,17 +142374,25 @@ var _coreExports = _core.exports, _aFunction = function(a) {
142345
142374
  if (!isObject$5(a))
142346
142375
  throw TypeError(a + " is not an object!");
142347
142376
  return a;
142348
- }, _fails = function(a) {
142349
- try {
142350
- return !!a();
142351
- } catch {
142352
- return !0;
142353
- }
142354
- }, _descriptors = !_fails(function() {
142355
- return Object.defineProperty({}, "a", { get: function() {
142356
- return 7;
142357
- } }).a != 7;
142358
- }), _domCreate, hasRequired_domCreate;
142377
+ }, _fails, hasRequired_fails;
142378
+ function require_fails() {
142379
+ return hasRequired_fails || (hasRequired_fails = 1, _fails = function(a) {
142380
+ try {
142381
+ return !!a();
142382
+ } catch {
142383
+ return !0;
142384
+ }
142385
+ }), _fails;
142386
+ }
142387
+ var _descriptors, hasRequired_descriptors;
142388
+ function require_descriptors() {
142389
+ return hasRequired_descriptors || (hasRequired_descriptors = 1, _descriptors = !require_fails()(function() {
142390
+ return Object.defineProperty({}, "a", { get: function() {
142391
+ return 7;
142392
+ } }).a != 7;
142393
+ })), _descriptors;
142394
+ }
142395
+ var _domCreate, hasRequired_domCreate;
142359
142396
  function require_domCreate() {
142360
142397
  if (hasRequired_domCreate)
142361
142398
  return _domCreate;
@@ -142365,7 +142402,7 @@ function require_domCreate() {
142365
142402
  return $ ? s.createElement(_) : {};
142366
142403
  }, _domCreate;
142367
142404
  }
142368
- var _ie8DomDefine = !_descriptors && !_fails(function() {
142405
+ var _ie8DomDefine = !require_descriptors() && !require_fails()(function() {
142369
142406
  return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
142370
142407
  return 7;
142371
142408
  } }).a != 7;
@@ -142377,7 +142414,7 @@ var _ie8DomDefine = !_descriptors && !_fails(function() {
142377
142414
  return _;
142378
142415
  throw TypeError("Can't convert object to primitive value");
142379
142416
  }, anObject$3 = _anObject, IE8_DOM_DEFINE$1 = _ie8DomDefine, toPrimitive$3 = _toPrimitive$5, dP$3 = Object.defineProperty;
142380
- _objectDp.f = _descriptors ? Object.defineProperty : function a(s, $, _) {
142417
+ _objectDp.f = require_descriptors() ? Object.defineProperty : function a(s, $, _) {
142381
142418
  if (anObject$3(s), $ = toPrimitive$3($, !0), anObject$3(_), IE8_DOM_DEFINE$1)
142382
142419
  try {
142383
142420
  return dP$3(s, $, _);
@@ -142394,17 +142431,17 @@ var _propertyDesc = function(a, s) {
142394
142431
  writable: !(a & 4),
142395
142432
  value: s
142396
142433
  };
142397
- }, dP$2 = _objectDp, createDesc$2 = _propertyDesc, _hide = _descriptors ? function(a, s, $) {
142434
+ }, dP$2 = _objectDp, createDesc$2 = _propertyDesc, _hide = require_descriptors() ? function(a, s, $) {
142398
142435
  return dP$2.f(a, s, createDesc$2(1, $));
142399
142436
  } : function(a, s, $) {
142400
142437
  return a[s] = $, a;
142401
142438
  }, hasOwnProperty = {}.hasOwnProperty, _has = function(a, s) {
142402
142439
  return hasOwnProperty.call(a, s);
142403
- }, global$4 = _globalExports, core$2 = _coreExports, ctx = _ctx, hide$1 = _hide, has$5 = _has, PROTOTYPE$2 = "prototype", $export$5 = function(a, s, $) {
142440
+ }, global$4 = _globalExports, core$2 = _coreExports, ctx = _ctx, hide$1 = _hide, has$4 = _has, PROTOTYPE$2 = "prototype", $export$5 = function(a, s, $) {
142404
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$2], lt = _e ? global$4 : tt ? global$4[s] : (global$4[s] || {})[PROTOTYPE$2], et, it, ut;
142405
142442
  _e && ($ = s);
142406
142443
  for (et in $)
142407
- it = !_ && lt && lt[et] !== void 0, !(it && has$5(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) {
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) {
142408
142445
  var ht = function(dt, gt, pt) {
142409
142446
  if (this instanceof ft) {
142410
142447
  switch (arguments.length) {
@@ -142430,44 +142467,80 @@ $export$5.B = 16;
142430
142467
  $export$5.W = 32;
142431
142468
  $export$5.U = 64;
142432
142469
  $export$5.R = 128;
142433
- var _export = $export$5, toString$2 = {}.toString, _cof = function(a) {
142434
- return toString$2.call(a).slice(8, -1);
142435
- }, _iobject, hasRequired_iobject;
142470
+ var _export = $export$5, _cof, hasRequired_cof;
142471
+ function require_cof() {
142472
+ if (hasRequired_cof)
142473
+ return _cof;
142474
+ hasRequired_cof = 1;
142475
+ var a = {}.toString;
142476
+ return _cof = function(s) {
142477
+ return a.call(s).slice(8, -1);
142478
+ }, _cof;
142479
+ }
142480
+ var _iobject, hasRequired_iobject;
142436
142481
  function require_iobject() {
142437
142482
  if (hasRequired_iobject)
142438
142483
  return _iobject;
142439
142484
  hasRequired_iobject = 1;
142440
- var a = _cof;
142485
+ var a = require_cof();
142441
142486
  return _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(s) {
142442
142487
  return a(s) == "String" ? s.split("") : Object(s);
142443
142488
  }, _iobject;
142444
142489
  }
142445
- var _defined = function(a) {
142446
- if (a == null)
142447
- throw TypeError("Can't call method on " + a);
142448
- return a;
142449
- }, IObject = require_iobject(), defined$2 = _defined, _toIobject = function(a) {
142450
- return IObject(defined$2(a));
142490
+ var _defined, hasRequired_defined;
142491
+ function require_defined() {
142492
+ return hasRequired_defined || (hasRequired_defined = 1, _defined = function(a) {
142493
+ if (a == null)
142494
+ throw TypeError("Can't call method on " + a);
142495
+ return a;
142496
+ }), _defined;
142497
+ }
142498
+ var IObject = require_iobject(), defined$1 = require_defined(), _toIobject = function(a) {
142499
+ return IObject(defined$1(a));
142451
142500
  }, ceil = Math.ceil, floor = Math.floor, _toInteger = function(a) {
142452
142501
  return isNaN(a = +a) ? 0 : (a > 0 ? floor : ceil)(a);
142453
- }, toInteger$2 = _toInteger, min$1 = Math.min, _toLength = function(a) {
142454
- return a > 0 ? min$1(toInteger$2(a), 9007199254740991) : 0;
142455
- }, toInteger$1 = _toInteger, max = Math.max, min = Math.min, _toAbsoluteIndex = function(a, s) {
142456
- return a = toInteger$1(a), a < 0 ? max(a + s, 0) : min(a, s);
142457
- }, toIObject$5 = _toIobject, toLength = _toLength, toAbsoluteIndex = _toAbsoluteIndex, _arrayIncludes = function(a) {
142458
- return function(s, $, _) {
142459
- var _e = toIObject$5(s), tt = toLength(_e.length), nt = toAbsoluteIndex(_, tt), at;
142460
- if (a && $ != $) {
142461
- for (; tt > nt; )
142462
- if (at = _e[nt++], at != at)
142463
- return !0;
142464
- } else
142465
- for (; tt > nt; nt++)
142466
- if ((a || nt in _e) && _e[nt] === $)
142467
- return a || nt || 0;
142468
- return !a && -1;
142469
- };
142470
- }, _shared = { exports: {} }, _library = !0, core$1 = _coreExports, global$3 = _globalExports, SHARED = "__core-js_shared__", store$1 = global$3[SHARED] || (global$3[SHARED] = {});
142502
+ }, _toLength, hasRequired_toLength;
142503
+ function require_toLength() {
142504
+ if (hasRequired_toLength)
142505
+ return _toLength;
142506
+ hasRequired_toLength = 1;
142507
+ var a = _toInteger, s = Math.min;
142508
+ return _toLength = function($) {
142509
+ return $ > 0 ? s(a($), 9007199254740991) : 0;
142510
+ }, _toLength;
142511
+ }
142512
+ var _toAbsoluteIndex, hasRequired_toAbsoluteIndex;
142513
+ function require_toAbsoluteIndex() {
142514
+ if (hasRequired_toAbsoluteIndex)
142515
+ return _toAbsoluteIndex;
142516
+ hasRequired_toAbsoluteIndex = 1;
142517
+ var a = _toInteger, s = Math.max, $ = Math.min;
142518
+ return _toAbsoluteIndex = function(_, _e) {
142519
+ return _ = a(_), _ < 0 ? s(_ + _e, 0) : $(_, _e);
142520
+ }, _toAbsoluteIndex;
142521
+ }
142522
+ var _arrayIncludes, hasRequired_arrayIncludes;
142523
+ function require_arrayIncludes() {
142524
+ if (hasRequired_arrayIncludes)
142525
+ return _arrayIncludes;
142526
+ hasRequired_arrayIncludes = 1;
142527
+ var a = _toIobject, s = require_toLength(), $ = require_toAbsoluteIndex();
142528
+ return _arrayIncludes = function(_) {
142529
+ return function(_e, tt, nt) {
142530
+ var at = a(_e), ot = s(at.length), rt = $(nt, ot), st;
142531
+ if (_ && tt != tt) {
142532
+ for (; ot > rt; )
142533
+ if (st = at[rt++], st != st)
142534
+ return !0;
142535
+ } else
142536
+ for (; ot > rt; rt++)
142537
+ if ((_ || rt in at) && at[rt] === tt)
142538
+ return _ || rt || 0;
142539
+ return !_ && -1;
142540
+ };
142541
+ }, _arrayIncludes;
142542
+ }
142543
+ var _shared = { exports: {} }, _library = !0, core$1 = _coreExports, global$3 = _globalExports, SHARED = "__core-js_shared__", store$1 = global$3[SHARED] || (global$3[SHARED] = {});
142471
142544
  (_shared.exports = function(a, s) {
142472
142545
  return store$1[a] || (store$1[a] = s !== void 0 ? s : {});
142473
142546
  })("versions", []).push({
@@ -142479,30 +142552,56 @@ var _sharedExports = _shared.exports, id$1 = 0, px = Math.random(), _uid = funct
142479
142552
  return "Symbol(".concat(a === void 0 ? "" : a, ")_", (++id$1 + px).toString(36));
142480
142553
  }, shared$1 = _sharedExports("keys"), uid$2 = _uid, _sharedKey = function(a) {
142481
142554
  return shared$1[a] || (shared$1[a] = uid$2(a));
142482
- }, has$4 = _has, toIObject$4 = _toIobject, arrayIndexOf = _arrayIncludes(!1), IE_PROTO$1 = _sharedKey("IE_PROTO"), _objectKeysInternal = function(a, s) {
142483
- var $ = toIObject$4(a), _ = 0, _e = [], tt;
142484
- for (tt in $)
142485
- tt != IE_PROTO$1 && has$4($, tt) && _e.push(tt);
142486
- for (; s.length > _; )
142487
- has$4($, tt = s[_++]) && (~arrayIndexOf(_e, tt) || _e.push(tt));
142488
- return _e;
142489
- }, _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","), $keys$2 = _objectKeysInternal, enumBugKeys$1 = _enumBugKeys, _objectKeys = Object.keys || function a(s) {
142490
- return $keys$2(s, enumBugKeys$1);
142491
- }, _objectGops = {};
142492
- _objectGops.f = Object.getOwnPropertySymbols;
142555
+ }, _objectKeysInternal, hasRequired_objectKeysInternal;
142556
+ function require_objectKeysInternal() {
142557
+ if (hasRequired_objectKeysInternal)
142558
+ return _objectKeysInternal;
142559
+ hasRequired_objectKeysInternal = 1;
142560
+ var a = _has, s = _toIobject, $ = require_arrayIncludes()(!1), _ = _sharedKey("IE_PROTO");
142561
+ return _objectKeysInternal = function(_e, tt) {
142562
+ var nt = s(_e), at = 0, ot = [], rt;
142563
+ for (rt in nt)
142564
+ rt != _ && a(nt, rt) && ot.push(rt);
142565
+ for (; tt.length > at; )
142566
+ a(nt, rt = tt[at++]) && (~$(ot, rt) || ot.push(rt));
142567
+ return ot;
142568
+ }, _objectKeysInternal;
142569
+ }
142570
+ var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","), _objectKeys, hasRequired_objectKeys;
142571
+ function require_objectKeys() {
142572
+ if (hasRequired_objectKeys)
142573
+ return _objectKeys;
142574
+ hasRequired_objectKeys = 1;
142575
+ var a = require_objectKeysInternal(), s = _enumBugKeys;
142576
+ return _objectKeys = Object.keys || function(_) {
142577
+ return a(_, s);
142578
+ }, _objectKeys;
142579
+ }
142580
+ var _objectGops = {}, hasRequired_objectGops;
142581
+ function require_objectGops() {
142582
+ return hasRequired_objectGops || (hasRequired_objectGops = 1, _objectGops.f = Object.getOwnPropertySymbols), _objectGops;
142583
+ }
142493
142584
  var _objectPie = {}, hasRequired_objectPie;
142494
142585
  function require_objectPie() {
142495
142586
  return hasRequired_objectPie || (hasRequired_objectPie = 1, _objectPie.f = {}.propertyIsEnumerable), _objectPie;
142496
142587
  }
142497
- var defined$1 = _defined, _toObject = function(a) {
142498
- return Object(defined$1(a));
142499
- }, _objectAssign, hasRequired_objectAssign;
142588
+ var _toObject, hasRequired_toObject;
142589
+ function require_toObject() {
142590
+ if (hasRequired_toObject)
142591
+ return _toObject;
142592
+ hasRequired_toObject = 1;
142593
+ var a = require_defined();
142594
+ return _toObject = function(s) {
142595
+ return Object(a(s));
142596
+ }, _toObject;
142597
+ }
142598
+ var _objectAssign, hasRequired_objectAssign;
142500
142599
  function require_objectAssign() {
142501
142600
  if (hasRequired_objectAssign)
142502
142601
  return _objectAssign;
142503
142602
  hasRequired_objectAssign = 1;
142504
- var a = _descriptors, s = _objectKeys, $ = _objectGops, _ = require_objectPie(), _e = _toObject, tt = require_iobject(), nt = Object.assign;
142505
- return _objectAssign = !nt || _fails(function() {
142603
+ var a = require_descriptors(), s = require_objectKeys(), $ = require_objectGops(), _ = require_objectPie(), _e = require_toObject(), tt = require_iobject(), nt = Object.assign;
142604
+ return _objectAssign = !nt || require_fails()(function() {
142506
142605
  var at = {}, ot = {}, rt = Symbol(), st = "abcdefghijklmnopqrst";
142507
142606
  return at[rt] = 7, st.split("").forEach(function(lt) {
142508
142607
  ot[lt] = lt;
@@ -143163,7 +143262,7 @@ var _default$g = function(a, s) {
143163
143262
  if (!(a instanceof s))
143164
143263
  throw new TypeError("Cannot call a class as a function");
143165
143264
  }, $export$3 = _export;
143166
- $export$3($export$3.S + $export$3.F * !_descriptors, "Object", { defineProperty: _objectDp.f });
143265
+ $export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: _objectDp.f });
143167
143266
  var $Object$1 = _coreExports.Object, defineProperty$3 = function a(s, $, _) {
143168
143267
  return $Object$1.defineProperty(s, $, _);
143169
143268
  }, defineProperty$2 = { default: defineProperty$3, __esModule: !0 }, _defineProperty$8 = defineProperty$2, _defineProperty2$1 = _interopRequireDefault$f(_defineProperty$8);
@@ -143180,12 +143279,12 @@ var _default$f = /* @__PURE__ */ function() {
143180
143279
  return function(s, $, _) {
143181
143280
  return $ && a(s.prototype, $), _ && a(s, _), s;
143182
143281
  };
143183
- }(), _typeof$j = {}, toInteger = _toInteger, defined = _defined, _stringAt = function(a) {
143282
+ }(), _typeof$j = {}, toInteger = _toInteger, defined = require_defined(), _stringAt = function(a) {
143184
143283
  return function(s, $) {
143185
143284
  var _ = String(defined(s)), _e = toInteger($), tt = _.length, nt, at;
143186
143285
  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);
143187
143286
  };
143188
- }, _redefine = _hide, _iterators = {}, dP$1 = _objectDp, anObject$2 = _anObject, getKeys$2 = _objectKeys, _objectDps = _descriptors ? Object.defineProperties : function a(s, $) {
143287
+ }, _redefine = _hide, _iterators = {}, dP$1 = _objectDp, anObject$2 = _anObject, getKeys$2 = require_objectKeys(), _objectDps = require_descriptors() ? Object.defineProperties : function a(s, $) {
143189
143288
  anObject$2(s);
143190
143289
  for (var _ = getKeys$2($), _e = _.length, tt = 0, nt; _e > tt; )
143191
143290
  dP$1.f(s, nt = _[tt++], $[nt]);
@@ -143230,7 +143329,7 @@ function require_objectGpo() {
143230
143329
  if (hasRequired_objectGpo)
143231
143330
  return _objectGpo;
143232
143331
  hasRequired_objectGpo = 1;
143233
- var a = _has, s = _toObject, $ = _sharedKey("IE_PROTO"), _ = Object.prototype;
143332
+ var a = _has, s = require_toObject(), $ = _sharedKey("IE_PROTO"), _ = Object.prototype;
143234
143333
  return _objectGpo = Object.getPrototypeOf || function(_e) {
143235
143334
  return _e = s(_e), a(_e, $) ? _e[$] : typeof _e.constructor == "function" && _e instanceof _e.constructor ? _e.constructor.prototype : _e instanceof Object ? _ : null;
143236
143335
  }, _objectGpo;
@@ -143303,7 +143402,7 @@ var _wksExt = {};
143303
143402
  _wksExt.f = _wksExports;
143304
143403
  var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esModule: !0 }, _meta = { exports: {} }, META$1 = _uid("meta"), isObject$3 = _isObject, has$2 = _has, setDesc = _objectDp.f, id = 0, isExtensible = Object.isExtensible || function() {
143305
143404
  return !0;
143306
- }, FREEZE = !_fails(function() {
143405
+ }, FREEZE = !require_fails()(function() {
143307
143406
  return isExtensible(Object.preventExtensions({}));
143308
143407
  }), setMeta = function(a) {
143309
143408
  setDesc(a, META$1, { value: {
@@ -143343,15 +143442,15 @@ var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esMo
143343
143442
  }, _metaExports = _meta.exports, core = _coreExports, wksExt$1 = _wksExt, defineProperty$1 = _objectDp.f, _wksDefine = function(a) {
143344
143443
  var s = core.Symbol || (core.Symbol = {});
143345
143444
  a.charAt(0) != "_" && !(a in s) && defineProperty$1(s, a, { value: wksExt$1.f(a) });
143346
- }, getKeys$1 = _objectKeys, gOPS = _objectGops, pIE$1 = require_objectPie(), _enumKeys = function(a) {
143445
+ }, getKeys$1 = require_objectKeys(), gOPS = require_objectGops(), pIE$1 = require_objectPie(), _enumKeys = function(a) {
143347
143446
  var s = getKeys$1(a), $ = gOPS.f;
143348
143447
  if ($)
143349
143448
  for (var _ = $(a), _e = pIE$1.f, tt = 0, nt; _.length > tt; )
143350
143449
  _e.call(a, nt = _[tt++]) && s.push(nt);
143351
143450
  return s;
143352
- }, cof = _cof, _isArray = Array.isArray || function a(s) {
143451
+ }, cof = require_cof(), _isArray = Array.isArray || function a(s) {
143353
143452
  return cof(s) == "Array";
143354
- }, _objectGopnExt = {}, _objectGopn = {}, $keys$1 = _objectKeysInternal, hiddenKeys = _enumBugKeys.concat("length", "prototype");
143453
+ }, _objectGopnExt = {}, _objectGopn = {}, $keys$1 = require_objectKeysInternal(), hiddenKeys = _enumBugKeys.concat("length", "prototype");
143355
143454
  _objectGopn.f = Object.getOwnPropertyNames || function a(s) {
143356
143455
  return $keys$1(s, hiddenKeys);
143357
143456
  };
@@ -143366,7 +143465,7 @@ _objectGopnExt.f = function a(s) {
143366
143465
  return windowNames && toString$1.call(s) == "[object Window]" ? getWindowNames(s) : gOPN$1(toIObject$2(s));
143367
143466
  };
143368
143467
  var _objectGopd = {}, pIE = require_objectPie(), createDesc$1 = _propertyDesc, toIObject$1 = _toIobject, toPrimitive$2 = _toPrimitive$5, has$1 = _has, IE8_DOM_DEFINE = _ie8DomDefine, gOPD$1 = Object.getOwnPropertyDescriptor;
143369
- _objectGopd.f = _descriptors ? gOPD$1 : function a(s, $) {
143468
+ _objectGopd.f = require_descriptors() ? gOPD$1 : function a(s, $) {
143370
143469
  if (s = toIObject$1(s), $ = toPrimitive$2($, !0), IE8_DOM_DEFINE)
143371
143470
  try {
143372
143471
  return gOPD$1(s, $);
@@ -143375,7 +143474,7 @@ _objectGopd.f = _descriptors ? gOPD$1 : function a(s, $) {
143375
143474
  if (has$1(s, $))
143376
143475
  return createDesc$1(!pIE.f.call(s, $), s[$]);
143377
143476
  };
143378
- var global$1 = _globalExports, has = _has, DESCRIPTORS = _descriptors, $export$2 = _export, redefine = _redefine, META = _metaExports.KEY, $fails = _fails, shared = _sharedExports, setToStringTag = _setToStringTag, uid = _uid, wks = _wksExports, wksExt = _wksExt, wksDefine = _wksDefine, enumKeys = _enumKeys, isArray$1 = _isArray, anObject = _anObject, isObject$2 = _isObject, toObject = _toObject, toIObject = _toIobject, toPrimitive$1 = _toPrimitive$5, createDesc = _propertyDesc, _create$1 = _objectCreate, gOPNExt = _objectGopnExt, $GOPD = _objectGopd, $GOPS = _objectGops, $DP = _objectDp, $keys = _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() {
143477
+ 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() {
143379
143478
  return _create$1(dP({}, "a", {
143380
143479
  get: function() {
143381
143480
  return dP(this, "a", { value: 7 }).a;
@@ -151890,7 +151989,7 @@ const FormRender = withProvider(FormCore, defaultWidgets), svgBaseProp = {
151890
151989
  et(ct);
151891
151990
  }, [nt, rt, JSON.stringify(st)]), reactExports.useEffect(() => {
151892
151991
  const ct = { ...nt };
151893
- ct.x = ct.position.x, ct.y = ct.position.y, delete ct.position, at.setValues(ct);
151992
+ ct.editable = !ct.readOnly, at.setValues(ct);
151894
151993
  }, [nt, at]), reactExports.useEffect(() => at.resetFields(), [nt.id]), reactExports.useEffect(() => {
151895
151994
  it.current = (ct) => {
151896
151995
  for (const vt of _)
@@ -151903,18 +152002,25 @@ const FormRender = withProvider(FormCore, defaultWidgets), svgBaseProp = {
151903
152002
  const it = reactExports.useRef((ct) => !0), ut = (ct, vt) => it.current(vt), ft = debounce$1((ct) => {
151904
152003
  const vt = (xt, bt) => typeof xt == "object" ? JSON.stringify(xt) !== JSON.stringify(bt) : xt !== bt;
151905
152004
  let At = [];
151906
- for (let xt in ct) {
152005
+ for (const xt in ct) {
151907
152006
  if (["id", "content"].includes(xt))
151908
152007
  continue;
151909
- let bt = ct[xt], Et = !1;
151910
- ["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 }));
152008
+ let bt = ct[xt];
152009
+ if (vt(bt, nt[xt])) {
152010
+ if (bt === null && ["rotate", "opacity"].includes(xt) && (bt = void 0), xt === "editable") {
152011
+ const Et = !bt;
152012
+ At.push({ key: "readOnly", value: Et, schemaId: nt.id }), Et && At.push({ key: "required", value: !1, schemaId: nt.id });
152013
+ continue;
152014
+ }
152015
+ At.push({ key: xt, value: bt, schemaId: nt.id });
152016
+ }
151911
152017
  }
151912
152018
  At.length && at.validateFields().then(() => _e(At)).catch((xt) => {
151913
152019
  xt.errorFields.length && (At = At.filter((bt) => !xt.errorFields.find(
151914
152020
  (Et) => Et.name.includes(bt.key)
151915
152021
  ))), At.length && _e(At);
151916
152022
  });
151917
- }, 500), ht = Object.values(rt).find(
152023
+ }, 100), ht = Object.values(rt).find(
151918
152024
  (ct) => (ct == null ? void 0 : ct.propPanel.defaultSchema.type) === nt.type
151919
152025
  ), dt = ht == null ? void 0 : ht.propPanel.schema;
151920
152026
  dt || console.error(`[@pdfme/ui] No propPanel.schema for ${nt.type}.
@@ -151945,26 +152051,24 @@ Check this document: https://pdfme.com/docs/custom-schemas`);
151945
152051
  }],
151946
152052
  props: { autoComplete: "off" }
151947
152053
  },
151948
- required: { title: ot("required"), type: "boolean", span: 8, hidden: pt == null ? void 0 : pt.readOnly },
152054
+ editable: { title: ot("editable"), type: "boolean", span: 8, hidden: (pt == null ? void 0 : pt.readOnly) !== void 0 },
152055
+ required: { title: ot("required"), type: "boolean", span: 16, hidden: "{{!formData.editable}}" },
151949
152056
  "-": { type: "void", widget: "Divider" },
151950
152057
  align: { title: ot("align"), type: "void", widget: "AlignWidget" },
151951
- x: { title: "X", type: "number", widget: "inputNumber", required: !0, span: 8, min: 0 },
151952
- y: { title: "Y", type: "number", widget: "inputNumber", required: !0, span: 8, min: 0 },
151953
- rotate: {
151954
- title: ot("rotate"),
151955
- type: "number",
151956
- widget: "inputNumber",
151957
- disabled: (pt == null ? void 0 : pt.rotate) === void 0,
151958
- max: 360,
151959
- props: { min: 0 },
151960
- span: 8
152058
+ position: {
152059
+ type: "object",
152060
+ widget: "card",
152061
+ properties: {
152062
+ x: { title: "X", type: "number", widget: "inputNumber", required: !0, span: 8, min: 0 },
152063
+ y: { title: "Y", type: "number", widget: "inputNumber", required: !0, span: 8, min: 0 }
152064
+ }
151961
152065
  },
151962
152066
  width: {
151963
152067
  title: ot("width"),
151964
152068
  type: "number",
151965
152069
  widget: "inputNumber",
151966
152070
  required: !0,
151967
- span: 8,
152071
+ span: 6,
151968
152072
  props: { min: 0 }
151969
152073
  },
151970
152074
  height: {
@@ -151972,16 +152076,25 @@ Check this document: https://pdfme.com/docs/custom-schemas`);
151972
152076
  type: "number",
151973
152077
  widget: "inputNumber",
151974
152078
  required: !0,
151975
- span: 8,
152079
+ span: 6,
151976
152080
  props: { min: 0 }
151977
152081
  },
152082
+ rotate: {
152083
+ title: ot("rotate"),
152084
+ type: "number",
152085
+ widget: "inputNumber",
152086
+ disabled: (pt == null ? void 0 : pt.rotate) === void 0,
152087
+ max: 360,
152088
+ props: { min: 0 },
152089
+ span: 6
152090
+ },
151978
152091
  opacity: {
151979
152092
  title: ot("opacity"),
151980
152093
  type: "number",
151981
152094
  widget: "inputNumber",
151982
152095
  disabled: (pt == null ? void 0 : pt.opacity) === void 0,
151983
152096
  props: { step: 0.1, min: 0, max: 1 },
151984
- span: 8
152097
+ span: 6
151985
152098
  }
151986
152099
  }
151987
152100
  };