@pdfme/ui 4.2.5-dev.3 → 4.2.5-dev.5

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(),
@@ -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
  ] })
@@ -151934,7 +151963,7 @@ const FormRender = withProvider(FormCore, defaultWidgets), svgBaseProp = {
151934
151963
  );
151935
151964
  }) }) });
151936
151965
  }, 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({});
151966
+ 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
151967
  reactExports.useEffect(() => {
151939
151968
  const ct = {
151940
151969
  AlignWidget: (vt) => /* @__PURE__ */ jsxRuntimeExports.jsx(AlignWidget$1, { ...vt, ...a, options: st }),
@@ -151960,30 +151989,38 @@ const FormRender = withProvider(FormCore, defaultWidgets), svgBaseProp = {
151960
151989
  et(ct);
151961
151990
  }, [nt, rt, JSON.stringify(st)]), reactExports.useEffect(() => {
151962
151991
  const ct = { ...nt };
151963
- ct.x = ct.position.x, ct.y = ct.position.y, delete ct.position, at.setValues(ct);
151992
+ ct.editable = !ct.readOnly, at.setValues(ct);
151964
151993
  }, [nt, at]), reactExports.useEffect(() => at.resetFields(), [nt.id]), reactExports.useEffect(() => {
151965
151994
  it.current = (ct) => {
151966
- for (const vt of Object.values(_))
151967
- if (vt.key === ct && vt.id !== nt.id)
151968
- return !1;
151995
+ for (const vt of _)
151996
+ for (const At of Object.values(vt))
151997
+ if (At.key === ct && At.id !== nt.id)
151998
+ return !1;
151969
151999
  return !0;
151970
152000
  };
151971
152001
  }, [_, nt]);
151972
152002
  const it = reactExports.useRef((ct) => !0), ut = (ct, vt) => it.current(vt), ft = debounce$1((ct) => {
151973
152003
  const vt = (xt, bt) => typeof xt == "object" ? JSON.stringify(xt) !== JSON.stringify(bt) : xt !== bt;
151974
152004
  let At = [];
151975
- for (let xt in ct) {
152005
+ for (const xt in ct) {
151976
152006
  if (["id", "content"].includes(xt))
151977
152007
  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 }));
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
+ }
151980
152017
  }
151981
152018
  At.length && at.validateFields().then(() => _e(At)).catch((xt) => {
151982
152019
  xt.errorFields.length && (At = At.filter((bt) => !xt.errorFields.find(
151983
152020
  (Et) => Et.name.includes(bt.key)
151984
152021
  ))), At.length && _e(At);
151985
152022
  });
151986
- }, 500), ht = Object.values(rt).find(
152023
+ }, 100), ht = Object.values(rt).find(
151987
152024
  (ct) => (ct == null ? void 0 : ct.propPanel.defaultSchema.type) === nt.type
151988
152025
  ), dt = ht == null ? void 0 : ht.propPanel.schema;
151989
152026
  dt || console.error(`[@pdfme/ui] No propPanel.schema for ${nt.type}.
@@ -152014,26 +152051,24 @@ Check this document: https://pdfme.com/docs/custom-schemas`);
152014
152051
  }],
152015
152052
  props: { autoComplete: "off" }
152016
152053
  },
152017
- 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}}" },
152018
152056
  "-": { type: "void", widget: "Divider" },
152019
152057
  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
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
+ }
152030
152065
  },
152031
152066
  width: {
152032
152067
  title: ot("width"),
152033
152068
  type: "number",
152034
152069
  widget: "inputNumber",
152035
152070
  required: !0,
152036
- span: 8,
152071
+ span: 6,
152037
152072
  props: { min: 0 }
152038
152073
  },
152039
152074
  height: {
@@ -152041,30 +152076,39 @@ Check this document: https://pdfme.com/docs/custom-schemas`);
152041
152076
  type: "number",
152042
152077
  widget: "inputNumber",
152043
152078
  required: !0,
152044
- span: 8,
152079
+ span: 6,
152045
152080
  props: { min: 0 }
152046
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
+ },
152047
152091
  opacity: {
152048
152092
  title: ot("opacity"),
152049
152093
  type: "number",
152050
152094
  widget: "inputNumber",
152051
152095
  disabled: (pt == null ? void 0 : pt.opacity) === void 0,
152052
152096
  props: { step: 0.1, min: 0, max: 1 },
152053
- span: 8
152097
+ span: 6
152054
152098
  }
152055
152099
  }
152056
152100
  };
152057
152101
  if (typeof dt == "function") {
152058
- const ct = dt({
152059
- ...a,
152102
+ const { schemasList: ct, ...vt } = a, At = dt({
152103
+ ...vt,
152060
152104
  options: st,
152061
152105
  theme: s,
152062
152106
  i18n: ot
152063
152107
  }) || {};
152064
152108
  mt.properties = {
152065
152109
  ...mt.properties,
152066
- ...Object.keys(ct).length === 0 ? {} : { "--": { type: "void", widget: "Divider" } },
152067
- ...ct
152110
+ ...Object.keys(At).length === 0 ? {} : { "--": { type: "void", widget: "Divider" } },
152111
+ ...At
152068
152112
  };
152069
152113
  } else {
152070
152114
  const ct = dt || {};
@@ -162423,8 +162467,8 @@ const Guides$2 = Guides$1, guideStyle = (a, s, $, _) => ({
162423
162467
  dt(Dt), Ct(), pt(0), (Ut = at.current) != null && Ut.scroll && at.current.scroll({ top: 0, behavior: "smooth" });
162424
162468
  }, []), jt = (Tt) => {
162425
162469
  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); )
162470
+ let Yt = ht.reduce((nr, tr) => nr + tr.length, 0), Kt = rr + Yt;
162471
+ for (; ht.some((nr) => nr.find((tr) => tr.key === Kt)); )
162428
162472
  Yt++, Kt = rr + Yt;
162429
162473
  return Kt;
162430
162474
  }, ar = (rr, Yt, Kt) => Math.min(Math.max(rr, Yt), Kt), Jt = {
@@ -162512,6 +162556,7 @@ const Guides$2 = Guides$1, guideStyle = (a, s, $, _) => ({
162512
162556
  size: s,
162513
162557
  pageSize: St[gt] ?? [],
162514
162558
  activeElements: ut,
162559
+ schemasList: ht,
162515
162560
  schemas: ht[gt] ?? [],
162516
162561
  changeSchemas: Rt,
162517
162562
  onSortEnd: Ht,