@pdfme/ui 4.2.1 → 4.2.2-dev.2
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
@@ -59756,7 +59756,7 @@ function getMods(a, s) {
|
|
59756
59756
|
$[_] = a[$[_].toLowerCase()];
|
59757
59757
|
return $;
|
59758
59758
|
}
|
59759
|
-
function getKeys$
|
59759
|
+
function getKeys$3(a) {
|
59760
59760
|
typeof a != "string" && (a = ""), a = a.replace(/\s/g, "");
|
59761
59761
|
const s = a.split(",");
|
59762
59762
|
let $ = s.lastIndexOf("");
|
@@ -59945,7 +59945,7 @@ const eachUnbind = (a) => {
|
|
59945
59945
|
method: _,
|
59946
59946
|
splitKey: _e = "+"
|
59947
59947
|
} = a;
|
59948
|
-
getKeys$
|
59948
|
+
getKeys$3(s).forEach((at) => {
|
59949
59949
|
const nt = at.split(_e), ot = nt.length, rt = nt[ot - 1], st = rt === "*" ? "*" : code(rt);
|
59950
59950
|
if (!_handlers[st])
|
59951
59951
|
return;
|
@@ -60004,7 +60004,7 @@ function isElementBind(a) {
|
|
60004
60004
|
}
|
60005
60005
|
function hotkeys(a, s, $) {
|
60006
60006
|
_downKeys = [];
|
60007
|
-
const _ = getKeys$
|
60007
|
+
const _ = getKeys$3(a);
|
60008
60008
|
let _e = [], tt = "all", at = document, nt = 0, ot = !1, rt = !0, st = "+", lt = !1, et = !1;
|
60009
60009
|
for ($ === void 0 && typeof s == "function" && ($ = s), Object.prototype.toString.call(s) === "[object Object]" && (s.scope && (tt = s.scope), s.element && (at = 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); nt < _.length; nt++)
|
60010
60010
|
a = _[nt].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({
|
@@ -60275,7 +60275,9 @@ const uuid$6 = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (a)
|
|
60275
60275
|
const tt = (at = Object.values(_).find(
|
60276
60276
|
(nt) => (nt == null ? void 0 : nt.propPanel.defaultSchema.type) === $
|
60277
60277
|
)) == null ? void 0 : at.propPanel;
|
60278
|
-
Object.
|
60278
|
+
Object.keys((tt == null ? void 0 : tt.defaultSchema) || {}).forEach((nt) => {
|
60279
|
+
a.hasOwnProperty(nt) || (a[nt] = tt == null ? void 0 : tt.defaultSchema[nt]);
|
60280
|
+
});
|
60279
60281
|
}, changeSchemas = (a) => {
|
60280
60282
|
const { objs: s, schemas: $, basePdf: _, pluginsRegistry: _e, pageSize: tt, commitSchemas: at } = a, nt = s.reduce((ot, { key: rt, value: st, schemaId: lt }) => {
|
60281
60283
|
const et = ot.find((it) => it.id === lt);
|
@@ -81871,7 +81873,7 @@ const UseDynamicFontSize = (a) => {
|
|
81871
81873
|
return;
|
81872
81874
|
}
|
81873
81875
|
if (makeElementPlainTextContentEditable(lt), lt.tabIndex = at || 0, lt.innerText = s, lt.addEventListener("blur", (et) => {
|
81874
|
-
_e && _e({ key: "content", value: et.target.
|
81876
|
+
_e && _e({ key: "content", value: et.target.textContent }), tt && tt();
|
81875
81877
|
}), $.dynamicFontSize) {
|
81876
81878
|
let et;
|
81877
81879
|
const it = (ot == null ? void 0 : ot.font) || getDefaultFont(), ut = await getFontKitFont($.fontName, it, rt);
|
@@ -81975,7 +81977,7 @@ textSchema.pdf, textSchema.ui, {
|
|
81975
81977
|
...textSchema.propPanel.defaultSchema
|
81976
81978
|
}
|
81977
81979
|
};
|
81978
|
-
const getBody$1 = (a) => JSON.parse(a || "[]"), getBodyWithRange = (a, s) => {
|
81980
|
+
const getBody$1 = (a) => typeof a == "string" ? JSON.parse(a || "[]") : a || [], getBodyWithRange = (a, s) => {
|
81979
81981
|
const $ = getBody$1(a);
|
81980
81982
|
return s ? $.slice(s.start, s.end) : $;
|
81981
81983
|
};
|
@@ -82468,7 +82470,7 @@ const modifyTemplateForTable = async (a) => {
|
|
82468
82470
|
for (const [rt, st] of Object.entries(nt))
|
82469
82471
|
if (st.type === "table") {
|
82470
82472
|
st.__bodyRange = void 0;
|
82471
|
-
const lt =
|
82473
|
+
const lt = getBody$1($ == null ? void 0 : $[rt]), et = await createMultiTables(lt, {
|
82472
82474
|
schema: st,
|
82473
82475
|
basePdf: tt.basePdf,
|
82474
82476
|
options: _,
|
@@ -82489,7 +82491,7 @@ const modifyTemplateForTable = async (a) => {
|
|
82489
82491
|
start: ut.slice(0, dt + 1).reduce((mt, ct) => mt + ct.length, 0),
|
82490
82492
|
end: ut.slice(0, dt + 2).reduce((mt, ct) => mt + ct.length, 0)
|
82491
82493
|
},
|
82492
|
-
content: $[rt]
|
82494
|
+
content: typeof $[rt] != "string" ? JSON.stringify($[rt] || "[]") : $[rt]
|
82493
82495
|
}
|
82494
82496
|
};
|
82495
82497
|
ot[gt] = pt;
|
@@ -87171,7 +87173,7 @@ var parseStyle = function a(s) {
|
|
87171
87173
|
function uniqueHash(a, s) {
|
87172
87174
|
return murmur2("".concat(a.join("%")).concat(s));
|
87173
87175
|
}
|
87174
|
-
function Empty$
|
87176
|
+
function Empty$4() {
|
87175
87177
|
return null;
|
87176
87178
|
}
|
87177
87179
|
var STYLE_PREFIX = "style";
|
@@ -87231,7 +87233,7 @@ function useStyleRegister(a, s) {
|
|
87231
87233
|
return function(St) {
|
87232
87234
|
var Bt;
|
87233
87235
|
if (!ft || ct || !et)
|
87234
|
-
Bt = /* @__PURE__ */ reactExports.createElement(Empty$
|
87236
|
+
Bt = /* @__PURE__ */ reactExports.createElement(Empty$4, null);
|
87235
87237
|
else {
|
87236
87238
|
var Ot;
|
87237
87239
|
Bt = /* @__PURE__ */ reactExports.createElement("style", _extends$2({}, (Ot = {}, _defineProperty$c(Ot, ATTR_TOKEN, bt), _defineProperty$c(Ot, ATTR_MARK, Et), Ot), {
|
@@ -99373,7 +99375,7 @@ function getStatusClassNames(a, s, $) {
|
|
99373
99375
|
[`${a}-has-feedback`]: $
|
99374
99376
|
});
|
99375
99377
|
}
|
99376
|
-
const getMergedStatus = (a, s) => s || a, Empty$
|
99378
|
+
const getMergedStatus = (a, s) => s || a, Empty$3 = () => {
|
99377
99379
|
const [, a] = useToken$1(), $ = new TinyColor(a.colorBgBase).toHsl().l < 0.5 ? {
|
99378
99380
|
opacity: 0.65
|
99379
99381
|
} : {};
|
@@ -99422,7 +99424,7 @@ const getMergedStatus = (a, s) => s || a, Empty$2 = () => {
|
|
99422
99424
|
}), /* @__PURE__ */ reactExports.createElement("path", {
|
99423
99425
|
d: "M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"
|
99424
99426
|
}))));
|
99425
|
-
}, DefaultEmptyImg = Empty$
|
99427
|
+
}, DefaultEmptyImg = Empty$3, Simple = () => {
|
99426
99428
|
const [, a] = useToken$1(), {
|
99427
99429
|
colorFill: s,
|
99428
99430
|
colorFillTertiary: $,
|
@@ -99538,7 +99540,7 @@ var __rest$X = function(a, s) {
|
|
99538
99540
|
s.indexOf(_[_e]) < 0 && Object.prototype.propertyIsEnumerable.call(a, _[_e]) && ($[_[_e]] = a[_[_e]]);
|
99539
99541
|
return $;
|
99540
99542
|
};
|
99541
|
-
const defaultEmptyImg = /* @__PURE__ */ reactExports.createElement(DefaultEmptyImg, null), simpleEmptyImg = /* @__PURE__ */ reactExports.createElement(SimpleEmptyImg, null), Empty = (a) => {
|
99543
|
+
const defaultEmptyImg = /* @__PURE__ */ reactExports.createElement(DefaultEmptyImg, null), simpleEmptyImg = /* @__PURE__ */ reactExports.createElement(SimpleEmptyImg, null), Empty$1 = (a) => {
|
99542
99544
|
var {
|
99543
99545
|
className: s,
|
99544
99546
|
rootClassName: $,
|
@@ -99573,9 +99575,9 @@ const defaultEmptyImg = /* @__PURE__ */ reactExports.createElement(DefaultEmptyI
|
|
99573
99575
|
className: `${it}-footer`
|
99574
99576
|
}, at)));
|
99575
99577
|
};
|
99576
|
-
Empty.PRESENTED_IMAGE_DEFAULT = defaultEmptyImg;
|
99577
|
-
Empty.PRESENTED_IMAGE_SIMPLE = simpleEmptyImg;
|
99578
|
-
const Empty$
|
99578
|
+
Empty$1.PRESENTED_IMAGE_DEFAULT = defaultEmptyImg;
|
99579
|
+
Empty$1.PRESENTED_IMAGE_SIMPLE = simpleEmptyImg;
|
99580
|
+
const Empty$2 = Empty$1, DefaultRenderEmpty = (a) => {
|
99579
99581
|
const {
|
99580
99582
|
componentName: s
|
99581
99583
|
} = a, {
|
@@ -99584,20 +99586,20 @@ const Empty$1 = Empty, DefaultRenderEmpty = (a) => {
|
|
99584
99586
|
switch (s) {
|
99585
99587
|
case "Table":
|
99586
99588
|
case "List":
|
99587
|
-
return /* @__PURE__ */ React$a.createElement(Empty$
|
99588
|
-
image: Empty$
|
99589
|
+
return /* @__PURE__ */ React$a.createElement(Empty$2, {
|
99590
|
+
image: Empty$2.PRESENTED_IMAGE_SIMPLE
|
99589
99591
|
});
|
99590
99592
|
case "Select":
|
99591
99593
|
case "TreeSelect":
|
99592
99594
|
case "Cascader":
|
99593
99595
|
case "Transfer":
|
99594
99596
|
case "Mentions":
|
99595
|
-
return /* @__PURE__ */ React$a.createElement(Empty$
|
99596
|
-
image: Empty$
|
99597
|
+
return /* @__PURE__ */ React$a.createElement(Empty$2, {
|
99598
|
+
image: Empty$2.PRESENTED_IMAGE_SIMPLE,
|
99597
99599
|
className: `${_}-small`
|
99598
99600
|
});
|
99599
99601
|
default:
|
99600
|
-
return /* @__PURE__ */ React$a.createElement(Empty$
|
99602
|
+
return /* @__PURE__ */ React$a.createElement(Empty$2, null);
|
99601
99603
|
}
|
99602
99604
|
}, DefaultRenderEmpty$1 = DefaultRenderEmpty, genItemStyle = (a) => {
|
99603
99605
|
const {
|
@@ -119228,10 +119230,10 @@ function getOffset$2(a) {
|
|
119228
119230
|
top: s.top + (window.pageYOffset || $.scrollTop) - ($.clientTop || document.body.clientTop || 0)
|
119229
119231
|
};
|
119230
119232
|
}
|
119231
|
-
var COMMON_PROPS = ["crossOrigin", "decoding", "draggable", "loading", "referrerPolicy", "sizes", "srcSet", "useMap", "alt"], PreviewGroupContext = /* @__PURE__ */ reactExports.createContext(null), uid$
|
119233
|
+
var COMMON_PROPS = ["crossOrigin", "decoding", "draggable", "loading", "referrerPolicy", "sizes", "srcSet", "useMap", "alt"], PreviewGroupContext = /* @__PURE__ */ reactExports.createContext(null), uid$4 = 0;
|
119232
119234
|
function useRegisterImage(a, s) {
|
119233
119235
|
var $ = reactExports.useState(function() {
|
119234
|
-
return uid$
|
119236
|
+
return uid$4 += 1, String(uid$4);
|
119235
119237
|
}), _ = _slicedToArray$e($, 1), _e = _[0], tt = reactExports.useContext(PreviewGroupContext), at = {
|
119236
119238
|
data: s,
|
119237
119239
|
canPreview: a
|
@@ -129623,8 +129625,8 @@ function FilterDropdown(a) {
|
|
129623
129625
|
else if (tt.filterDropdown)
|
129624
129626
|
Vt = tt.filterDropdown;
|
129625
129627
|
else {
|
129626
|
-
const ar = Ot() || [], Jt = () => (tt.filters || []).length === 0 ? /* @__PURE__ */ reactExports.createElement(Empty$
|
129627
|
-
image: Empty$
|
129628
|
+
const ar = Ot() || [], Jt = () => (tt.filters || []).length === 0 ? /* @__PURE__ */ reactExports.createElement(Empty$2, {
|
129629
|
+
image: Empty$2.PRESENTED_IMAGE_SIMPLE,
|
129628
129630
|
description: it.filterEmptyText,
|
129629
129631
|
imageStyle: {
|
129630
129632
|
height: 24
|
@@ -133604,7 +133606,7 @@ function upload(a) {
|
|
133604
133606
|
};
|
133605
133607
|
}
|
133606
133608
|
var now$1 = +/* @__PURE__ */ new Date(), index$3 = 0;
|
133607
|
-
function uid$
|
133609
|
+
function uid$3() {
|
133608
133610
|
return "rc-upload-".concat(now$1, "-").concat(++index$3);
|
133609
133611
|
}
|
133610
133612
|
const attrAccept = function(a, s) {
|
@@ -133667,7 +133669,7 @@ var traverseFileTree = function a(s, $, _) {
|
|
133667
133669
|
for (var _e = arguments.length, tt = new Array(_e), at = 0; at < _e; at++)
|
133668
133670
|
tt[at] = arguments[at];
|
133669
133671
|
return _ = s.call.apply(s, [this].concat(tt)), _.state = {
|
133670
|
-
uid: uid$
|
133672
|
+
uid: uid$3()
|
133671
133673
|
}, _.reqs = {}, _.fileInput = void 0, _._isMounted = void 0, _.onChange = function(nt) {
|
133672
133674
|
var ot = _.props, rt = ot.accept, st = ot.directory, lt = nt.target.files, et = _toConsumableArray$d(lt).filter(function(it) {
|
133673
133675
|
return !st || attrAccept(it, rt);
|
@@ -133700,7 +133702,7 @@ var traverseFileTree = function a(s, $, _) {
|
|
133700
133702
|
}
|
133701
133703
|
}, _.uploadFiles = function(nt) {
|
133702
133704
|
var ot = _toConsumableArray$d(nt), rt = ot.map(function(st) {
|
133703
|
-
return st.uid = uid$
|
133705
|
+
return st.uid = uid$3(), _.processFile(st, ot);
|
133704
133706
|
});
|
133705
133707
|
Promise.all(rt).then(function(st) {
|
133706
133708
|
var lt = _.props.onBatchStart;
|
@@ -133833,7 +133835,7 @@ var traverseFileTree = function a(s, $, _) {
|
|
133833
133835
|
key: "reset",
|
133834
133836
|
value: function() {
|
133835
133837
|
this.setState({
|
133836
|
-
uid: uid$
|
133838
|
+
uid: uid$3()
|
133837
133839
|
});
|
133838
133840
|
}
|
133839
133841
|
}, {
|
@@ -142308,11 +142310,11 @@ var _ie8DomDefine = !require_descriptors() && !require_fails()(function() {
|
|
142308
142310
|
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)))
|
142309
142311
|
return _;
|
142310
142312
|
throw TypeError("Can't convert object to primitive value");
|
142311
|
-
}, anObject$
|
142313
|
+
}, anObject$3 = _anObject, IE8_DOM_DEFINE$1 = _ie8DomDefine, toPrimitive$3 = _toPrimitive$5, dP$3 = Object.defineProperty;
|
142312
142314
|
_objectDp.f = require_descriptors() ? Object.defineProperty : function a(s, $, _) {
|
142313
|
-
if (anObject$
|
142315
|
+
if (anObject$3(s), $ = toPrimitive$3($, !0), anObject$3(_), IE8_DOM_DEFINE$1)
|
142314
142316
|
try {
|
142315
|
-
return dP$
|
142317
|
+
return dP$3(s, $, _);
|
142316
142318
|
} catch {
|
142317
142319
|
}
|
142318
142320
|
if ("get" in _ || "set" in _)
|
@@ -142326,14 +142328,14 @@ var _propertyDesc = function(a, s) {
|
|
142326
142328
|
writable: !(a & 4),
|
142327
142329
|
value: s
|
142328
142330
|
};
|
142329
|
-
}, dP$
|
142330
|
-
return dP$
|
142331
|
+
}, dP$2 = _objectDp, createDesc$2 = _propertyDesc, _hide = require_descriptors() ? function(a, s, $) {
|
142332
|
+
return dP$2.f(a, s, createDesc$2(1, $));
|
142331
142333
|
} : function(a, s, $) {
|
142332
142334
|
return a[s] = $, a;
|
142333
142335
|
}, hasOwnProperty = {}.hasOwnProperty, _has = function(a, s) {
|
142334
142336
|
return hasOwnProperty.call(a, s);
|
142335
|
-
}, global$4 = _globalExports, core$2 = _coreExports, ctx = _ctx, hide$1 = _hide, has$4 = _has, PROTOTYPE$
|
142336
|
-
var _ = a & $export$5.F, _e = a & $export$5.G, tt = a & $export$5.S, at = a & $export$5.P, nt = a & $export$5.B, ot = a & $export$5.W, rt = _e ? core$2 : core$2[s] || (core$2[s] = {}), st = rt[PROTOTYPE$
|
142337
|
+
}, global$4 = _globalExports, core$2 = _coreExports, ctx = _ctx, hide$1 = _hide, has$4 = _has, PROTOTYPE$2 = "prototype", $export$5 = function(a, s, $) {
|
142338
|
+
var _ = a & $export$5.F, _e = a & $export$5.G, tt = a & $export$5.S, at = a & $export$5.P, nt = 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;
|
142337
142339
|
_e && ($ = s);
|
142338
142340
|
for (et in $)
|
142339
142341
|
it = !_ && lt && lt[et] !== void 0, !(it && has$4(rt, et)) && (ut = it ? lt[et] : $[et], rt[et] = _e && typeof lt[et] != "function" ? $[et] : nt && it ? ctx(ut, global$4) : ot && lt[et] == ut ? function(ft) {
|
@@ -142351,7 +142353,7 @@ var _propertyDesc = function(a, s) {
|
|
142351
142353
|
}
|
142352
142354
|
return ft.apply(this, arguments);
|
142353
142355
|
};
|
142354
|
-
return ht[PROTOTYPE$
|
142356
|
+
return ht[PROTOTYPE$2] = ft[PROTOTYPE$2], ht;
|
142355
142357
|
}(ut) : at && typeof ut == "function" ? ctx(Function.call, ut) : ut, at && ((rt.virtual || (rt.virtual = {}))[et] = ut, a & $export$5.R && st && !st[et] && hide$1(st, et, ut)));
|
142356
142358
|
};
|
142357
142359
|
$export$5.F = 1;
|
@@ -142445,22 +142447,14 @@ var _shared = { exports: {} }, _library = !0, core$1 = _coreExports, global$3 =
|
|
142445
142447
|
});
|
142446
142448
|
var _sharedExports = _shared.exports, id$1 = 0, px = Math.random(), _uid = function(a) {
|
142447
142449
|
return "Symbol(".concat(a === void 0 ? "" : a, ")_", (++id$1 + px).toString(36));
|
142448
|
-
},
|
142449
|
-
|
142450
|
-
|
142451
|
-
return _sharedKey;
|
142452
|
-
hasRequired_sharedKey = 1;
|
142453
|
-
var a = _sharedExports("keys"), s = _uid;
|
142454
|
-
return _sharedKey = function($) {
|
142455
|
-
return a[$] || (a[$] = s($));
|
142456
|
-
}, _sharedKey;
|
142457
|
-
}
|
142458
|
-
var _objectKeysInternal, hasRequired_objectKeysInternal;
|
142450
|
+
}, shared$1 = _sharedExports("keys"), uid$2 = _uid, _sharedKey = function(a) {
|
142451
|
+
return shared$1[a] || (shared$1[a] = uid$2(a));
|
142452
|
+
}, _objectKeysInternal, hasRequired_objectKeysInternal;
|
142459
142453
|
function require_objectKeysInternal() {
|
142460
142454
|
if (hasRequired_objectKeysInternal)
|
142461
142455
|
return _objectKeysInternal;
|
142462
142456
|
hasRequired_objectKeysInternal = 1;
|
142463
|
-
var a = _has, s = _toIobject, $ = require_arrayIncludes()(!1), _ =
|
142457
|
+
var a = _has, s = _toIobject, $ = require_arrayIncludes()(!1), _ = _sharedKey("IE_PROTO");
|
142464
142458
|
return _objectKeysInternal = function(_e, tt) {
|
142465
142459
|
var at = s(_e), nt = 0, ot = [], rt;
|
142466
142460
|
for (rt in at)
|
@@ -142470,16 +142464,12 @@ function require_objectKeysInternal() {
|
|
142470
142464
|
return ot;
|
142471
142465
|
}, _objectKeysInternal;
|
142472
142466
|
}
|
142473
|
-
var _enumBugKeys,
|
142474
|
-
function require_enumBugKeys() {
|
142475
|
-
return hasRequired_enumBugKeys || (hasRequired_enumBugKeys = 1, _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")), _enumBugKeys;
|
142476
|
-
}
|
142477
|
-
var _objectKeys, hasRequired_objectKeys;
|
142467
|
+
var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","), _objectKeys, hasRequired_objectKeys;
|
142478
142468
|
function require_objectKeys() {
|
142479
142469
|
if (hasRequired_objectKeys)
|
142480
142470
|
return _objectKeys;
|
142481
142471
|
hasRequired_objectKeys = 1;
|
142482
|
-
var a = require_objectKeysInternal(), s =
|
142472
|
+
var a = require_objectKeysInternal(), s = _enumBugKeys;
|
142483
142473
|
return _objectKeys = Object.keys || function(_) {
|
142484
142474
|
return a(_, s);
|
142485
142475
|
}, _objectKeys;
|
@@ -143191,20 +143181,12 @@ var _default$f = /* @__PURE__ */ function() {
|
|
143191
143181
|
var _ = String(defined(s)), _e = toInteger($), tt = _.length, at, nt;
|
143192
143182
|
return _e < 0 || _e >= tt ? a ? "" : void 0 : (at = _.charCodeAt(_e), at < 55296 || at > 56319 || _e + 1 === tt || (nt = _.charCodeAt(_e + 1)) < 56320 || nt > 57343 ? a ? _.charAt(_e) : at : a ? _.slice(_e, _e + 2) : (at - 55296 << 10) + (nt - 56320) + 65536);
|
143193
143183
|
};
|
143194
|
-
}, _redefine = _hide, _iterators = {}, _objectDps,
|
143195
|
-
|
143196
|
-
|
143197
|
-
|
143198
|
-
|
143199
|
-
|
143200
|
-
return _objectDps = require_descriptors() ? Object.defineProperties : function(_e, tt) {
|
143201
|
-
s(_e);
|
143202
|
-
for (var at = $(tt), nt = at.length, ot = 0, rt; nt > ot; )
|
143203
|
-
a.f(_e, rt = at[ot++], tt[rt]);
|
143204
|
-
return _e;
|
143205
|
-
}, _objectDps;
|
143206
|
-
}
|
143207
|
-
var _html, hasRequired_html;
|
143184
|
+
}, _redefine = _hide, _iterators = {}, dP$1 = _objectDp, anObject$2 = _anObject, getKeys$2 = require_objectKeys(), _objectDps = require_descriptors() ? Object.defineProperties : function a(s, $) {
|
143185
|
+
anObject$2(s);
|
143186
|
+
for (var _ = getKeys$2($), _e = _.length, tt = 0, at; _e > tt; )
|
143187
|
+
dP$1.f(s, at = _[tt++], $[at]);
|
143188
|
+
return s;
|
143189
|
+
}, _html, hasRequired_html;
|
143208
143190
|
function require_html() {
|
143209
143191
|
if (hasRequired_html)
|
143210
143192
|
return _html;
|
@@ -143212,24 +143194,16 @@ function require_html() {
|
|
143212
143194
|
var a = _globalExports.document;
|
143213
143195
|
return _html = a && a.documentElement, _html;
|
143214
143196
|
}
|
143215
|
-
var
|
143216
|
-
function
|
143217
|
-
|
143218
|
-
|
143219
|
-
|
143220
|
-
|
143221
|
-
|
143222
|
-
|
143223
|
-
|
143224
|
-
|
143225
|
-
return at();
|
143226
|
-
};
|
143227
|
-
return _objectCreate = Object.create || function(ot, rt) {
|
143228
|
-
var st;
|
143229
|
-
return ot !== null ? (_e[tt] = a(ot), st = new _e(), _e[tt] = null, st[_] = ot) : st = at(), rt === void 0 ? st : s(st, rt);
|
143230
|
-
}, _objectCreate;
|
143231
|
-
}
|
143232
|
-
var _wks = { exports: {} }, store = _sharedExports("wks"), uid$1 = _uid, Symbol$1 = _globalExports.Symbol, USE_SYMBOL = typeof Symbol$1 == "function", $exports = _wks.exports = function(a) {
|
143197
|
+
var anObject$1 = _anObject, dPs = _objectDps, enumBugKeys = _enumBugKeys, IE_PROTO = _sharedKey("IE_PROTO"), Empty = function() {
|
143198
|
+
}, PROTOTYPE$1 = "prototype", createDict = function() {
|
143199
|
+
var a = require_domCreate()("iframe"), s = enumBugKeys.length, $ = "<", _ = ">", _e;
|
143200
|
+
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--; )
|
143201
|
+
delete createDict[PROTOTYPE$1][enumBugKeys[s]];
|
143202
|
+
return createDict();
|
143203
|
+
}, _objectCreate = Object.create || function a(s, $) {
|
143204
|
+
var _;
|
143205
|
+
return s !== null ? (Empty[PROTOTYPE$1] = anObject$1(s), _ = new Empty(), Empty[PROTOTYPE$1] = null, _[IE_PROTO] = s) : _ = createDict(), $ === void 0 ? _ : dPs(_, $);
|
143206
|
+
}, _wks = { exports: {} }, store = _sharedExports("wks"), uid$1 = _uid, Symbol$1 = _globalExports.Symbol, USE_SYMBOL = typeof Symbol$1 == "function", $exports = _wks.exports = function(a) {
|
143233
143207
|
return store[a] || (store[a] = USE_SYMBOL && Symbol$1[a] || (USE_SYMBOL ? Symbol$1 : uid$1)("Symbol." + a));
|
143234
143208
|
};
|
143235
143209
|
$exports.store = store;
|
@@ -143240,7 +143214,7 @@ function require_iterCreate() {
|
|
143240
143214
|
if (hasRequired_iterCreate)
|
143241
143215
|
return _iterCreate;
|
143242
143216
|
hasRequired_iterCreate = 1;
|
143243
|
-
var a =
|
143217
|
+
var a = _objectCreate, s = _propertyDesc, $ = _setToStringTag, _ = {};
|
143244
143218
|
return _hide(_, _wksExports("iterator"), function() {
|
143245
143219
|
return this;
|
143246
143220
|
}), _iterCreate = function(_e, tt, at) {
|
@@ -143252,7 +143226,7 @@ function require_objectGpo() {
|
|
143252
143226
|
if (hasRequired_objectGpo)
|
143253
143227
|
return _objectGpo;
|
143254
143228
|
hasRequired_objectGpo = 1;
|
143255
|
-
var a = _has, s = require_toObject(), $ =
|
143229
|
+
var a = _has, s = require_toObject(), $ = _sharedKey("IE_PROTO"), _ = Object.prototype;
|
143256
143230
|
return _objectGpo = Object.getPrototypeOf || function(_e) {
|
143257
143231
|
return _e = s(_e), a(_e, $) ? _e[$] : typeof _e.constructor == "function" && _e instanceof _e.constructor ? _e.constructor.prototype : _e instanceof Object ? _ : null;
|
143258
143232
|
}, _objectGpo;
|
@@ -143373,7 +143347,7 @@ var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esMo
|
|
143373
143347
|
return s;
|
143374
143348
|
}, cof = require_cof(), _isArray = Array.isArray || function a(s) {
|
143375
143349
|
return cof(s) == "Array";
|
143376
|
-
}, _objectGopnExt = {}, _objectGopn = {}, $keys$1 = require_objectKeysInternal(), hiddenKeys =
|
143350
|
+
}, _objectGopnExt = {}, _objectGopn = {}, $keys$1 = require_objectKeysInternal(), hiddenKeys = _enumBugKeys.concat("length", "prototype");
|
143377
143351
|
_objectGopn.f = Object.getOwnPropertyNames || function a(s) {
|
143378
143352
|
return $keys$1(s, hiddenKeys);
|
143379
143353
|
};
|
@@ -143397,7 +143371,7 @@ _objectGopd.f = require_descriptors() ? gOPD$1 : function a(s, $) {
|
|
143397
143371
|
if (has$1(s, $))
|
143398
143372
|
return createDesc$1(!pIE.f.call(s, $), s[$]);
|
143399
143373
|
};
|
143400
|
-
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 =
|
143374
|
+
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() {
|
143401
143375
|
return _create$1(dP({}, "a", {
|
143402
143376
|
get: function() {
|
143403
143377
|
return dP(this, "a", { value: 7 }).a;
|
@@ -143572,7 +143546,7 @@ function require_setProto() {
|
|
143572
143546
|
var $export$1 = _export;
|
143573
143547
|
$export$1($export$1.S, "Object", { setPrototypeOf: require_setProto().set });
|
143574
143548
|
var setPrototypeOf$1 = _coreExports.Object.setPrototypeOf, setPrototypeOf = { default: setPrototypeOf$1, __esModule: !0 }, $export = _export;
|
143575
|
-
$export($export.S, "Object", { create:
|
143549
|
+
$export($export.S, "Object", { create: _objectCreate });
|
143576
143550
|
var $Object = _coreExports.Object, create$1 = function a(s, $) {
|
143577
143551
|
return $Object.create(s, $);
|
143578
143552
|
}, 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);
|
@@ -151915,16 +151889,18 @@ const FormRender = withProvider(FormCore, defaultWidgets), svgBaseProp = {
|
|
151915
151889
|
pt.x = pt.position.x, pt.y = pt.position.y, delete pt.position, pt.key !== (nt.getValues() || {}).key && nt.resetFields(), nt.setValues(pt);
|
151916
151890
|
}, [nt, tt]);
|
151917
151891
|
const it = (pt) => {
|
151918
|
-
|
151919
|
-
|
151920
|
-
|
151921
|
-
|
151922
|
-
|
151923
|
-
|
151924
|
-
|
151925
|
-
|
151926
|
-
|
151927
|
-
|
151892
|
+
const mt = (vt, At) => typeof vt == "object" ? JSON.stringify(vt) !== JSON.stringify(At) : vt !== At;
|
151893
|
+
let ct = [];
|
151894
|
+
for (let vt in pt) {
|
151895
|
+
if (["id", "content"].includes(vt))
|
151896
|
+
continue;
|
151897
|
+
let At = pt[vt], xt = !1;
|
151898
|
+
["x", "y"].includes(vt) ? (xt = At !== tt.position[vt], vt = "position." + vt) : xt = mt(At, tt[vt]), xt && (At === null && ["rotate", "opacity"].includes(vt) && (At = void 0), ct.push({ key: vt, value: At, schemaId: tt.id }));
|
151899
|
+
}
|
151900
|
+
ct.length && nt.validateFields().then(() => _(ct)).catch((vt) => {
|
151901
|
+
vt.errorFields.length && (ct = ct.filter((At) => !vt.errorFields.find(
|
151902
|
+
(xt) => xt.name.includes(At.key)
|
151903
|
+
))), ct.length && _(ct);
|
151928
151904
|
});
|
151929
151905
|
}, ut = Object.values(rt).find(
|
151930
151906
|
(pt) => (pt == null ? void 0 : pt.propPanel.defaultSchema.type) === tt.type
|