@pdfme/ui 5.3.2-dev.4 → 5.3.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 +59 -94
- package/dist/index.umd.js +9 -9
- package/package.json +1 -1
- package/src/components/Renderer.tsx +3 -9
package/dist/index.es.js
CHANGED
@@ -12657,7 +12657,7 @@ function getMods(a, s) {
|
|
12657
12657
|
for (let _ = 0; _ < $.length; _++) $[_] = a[$[_].toLowerCase()];
|
12658
12658
|
return $;
|
12659
12659
|
}
|
12660
|
-
function getKeys$
|
12660
|
+
function getKeys$3(a) {
|
12661
12661
|
typeof a != "string" && (a = ""), a = a.replace(/\s/g, "");
|
12662
12662
|
const s = a.split(",");
|
12663
12663
|
let $ = s.lastIndexOf("");
|
@@ -12853,7 +12853,7 @@ const eachUnbind = (a) => {
|
|
12853
12853
|
method: _,
|
12854
12854
|
splitKey: _e = "+"
|
12855
12855
|
} = a;
|
12856
|
-
getKeys$
|
12856
|
+
getKeys$3(s).forEach((rt) => {
|
12857
12857
|
const at = rt.split(_e), ot = at.length, nt = at[ot - 1], st = nt === "*" ? "*" : code(nt);
|
12858
12858
|
if (!_handlers[st]) return;
|
12859
12859
|
$ || ($ = getScope());
|
@@ -12909,7 +12909,7 @@ function dispatch(a, s) {
|
|
12909
12909
|
}
|
12910
12910
|
function hotkeys(a, s, $) {
|
12911
12911
|
_downKeys = [];
|
12912
|
-
const _ = getKeys$
|
12912
|
+
const _ = getKeys$3(a);
|
12913
12913
|
let _e = [], tt = "all", rt = document, at = 0, ot = !1, nt = !0, st = "+", lt = !1, et = !1;
|
12914
12914
|
for ($ === void 0 && typeof s == "function" && ($ = s), Object.prototype.toString.call(s) === "[object Object]" && (s.scope && (tt = s.scope), s.element && (rt = s.element), s.keyup && (ot = s.keyup), s.keydown !== void 0 && (nt = s.keydown), s.capture !== void 0 && (lt = s.capture), typeof s.splitKey == "string" && (st = s.splitKey), s.single === !0 && (et = !0)), typeof s == "string" && (tt = s), et && unbind(a, tt); at < _.length; at++)
|
12915
12915
|
a = _[at].split(st), _e = [], a.length > 1 && (_e = getMods(_modifier, a)), a = a[a.length - 1], a = a === "*" ? "*" : code(a), a in _handlers || (_handlers[a] = []), _handlers[a].push({
|
@@ -86635,7 +86635,7 @@ var parseStyle = function a(s) {
|
|
86635
86635
|
function uniqueHash(a, s) {
|
86636
86636
|
return murmur2("".concat(a.join("%")).concat(s));
|
86637
86637
|
}
|
86638
|
-
function Empty$
|
86638
|
+
function Empty$3() {
|
86639
86639
|
return null;
|
86640
86640
|
}
|
86641
86641
|
var STYLE_PREFIX = "style";
|
@@ -86705,7 +86705,7 @@ function useStyleRegister(a, s) {
|
|
86705
86705
|
return function(Pt) {
|
86706
86706
|
var Rt;
|
86707
86707
|
if (!gt || bt || !et)
|
86708
|
-
Rt = /* @__PURE__ */ reactExports.createElement(Empty$
|
86708
|
+
Rt = /* @__PURE__ */ reactExports.createElement(Empty$3, null);
|
86709
86709
|
else {
|
86710
86710
|
var Ot;
|
86711
86711
|
Rt = /* @__PURE__ */ reactExports.createElement("style", _extends$1({}, (Ot = {}, _defineProperty$c(Ot, ATTR_TOKEN, $t), _defineProperty$c(Ot, ATTR_MARK, Ct), Ot), {
|
@@ -100541,7 +100541,7 @@ function getStatusClassNames(a, s, $) {
|
|
100541
100541
|
[`${a}-has-feedback`]: $
|
100542
100542
|
});
|
100543
100543
|
}
|
100544
|
-
const getMergedStatus = (a, s) => s || a, Empty$
|
100544
|
+
const getMergedStatus = (a, s) => s || a, Empty$2 = () => {
|
100545
100545
|
const [, a] = useToken$1(), [s] = useLocale$1("Empty"), _ = new FastColor(a.colorBgBase).toHsl().l < 0.5 ? {
|
100546
100546
|
opacity: 0.65
|
100547
100547
|
} : {};
|
@@ -100704,7 +100704,7 @@ var __rest$Y = function(a, s) {
|
|
100704
100704
|
s.indexOf(_[_e]) < 0 && Object.prototype.propertyIsEnumerable.call(a, _[_e]) && ($[_[_e]] = a[_[_e]]);
|
100705
100705
|
return $;
|
100706
100706
|
};
|
100707
|
-
const defaultEmptyImg = /* @__PURE__ */ reactExports.createElement(Empty$
|
100707
|
+
const defaultEmptyImg = /* @__PURE__ */ reactExports.createElement(Empty$2, null), simpleEmptyImg = /* @__PURE__ */ reactExports.createElement(Simple, null), Empty$1 = (a) => {
|
100708
100708
|
var s, $, _, _e, tt, rt, at, ot;
|
100709
100709
|
const {
|
100710
100710
|
className: nt,
|
@@ -100743,8 +100743,8 @@ const defaultEmptyImg = /* @__PURE__ */ reactExports.createElement(Empty$1, null
|
|
100743
100743
|
style: Object.assign(Object.assign({}, (ot = bt == null ? void 0 : bt.styles) === null || ot === void 0 ? void 0 : ot.footer), pt == null ? void 0 : pt.footer)
|
100744
100744
|
}, ut)));
|
100745
100745
|
};
|
100746
|
-
Empty.PRESENTED_IMAGE_DEFAULT = defaultEmptyImg;
|
100747
|
-
Empty.PRESENTED_IMAGE_SIMPLE = simpleEmptyImg;
|
100746
|
+
Empty$1.PRESENTED_IMAGE_DEFAULT = defaultEmptyImg;
|
100747
|
+
Empty$1.PRESENTED_IMAGE_SIMPLE = simpleEmptyImg;
|
100748
100748
|
const DefaultRenderEmpty = (a) => {
|
100749
100749
|
const {
|
100750
100750
|
componentName: s
|
@@ -100754,22 +100754,22 @@ const DefaultRenderEmpty = (a) => {
|
|
100754
100754
|
switch (s) {
|
100755
100755
|
case "Table":
|
100756
100756
|
case "List":
|
100757
|
-
return /* @__PURE__ */ React$c.createElement(Empty, {
|
100758
|
-
image: Empty.PRESENTED_IMAGE_SIMPLE
|
100757
|
+
return /* @__PURE__ */ React$c.createElement(Empty$1, {
|
100758
|
+
image: Empty$1.PRESENTED_IMAGE_SIMPLE
|
100759
100759
|
});
|
100760
100760
|
case "Select":
|
100761
100761
|
case "TreeSelect":
|
100762
100762
|
case "Cascader":
|
100763
100763
|
case "Transfer":
|
100764
100764
|
case "Mentions":
|
100765
|
-
return /* @__PURE__ */ React$c.createElement(Empty, {
|
100766
|
-
image: Empty.PRESENTED_IMAGE_SIMPLE,
|
100765
|
+
return /* @__PURE__ */ React$c.createElement(Empty$1, {
|
100766
|
+
image: Empty$1.PRESENTED_IMAGE_SIMPLE,
|
100767
100767
|
className: `${_}-small`
|
100768
100768
|
});
|
100769
100769
|
case "Table.filter":
|
100770
100770
|
return null;
|
100771
100771
|
default:
|
100772
|
-
return /* @__PURE__ */ React$c.createElement(Empty, null);
|
100772
|
+
return /* @__PURE__ */ React$c.createElement(Empty$1, null);
|
100773
100773
|
}
|
100774
100774
|
}, useVariant = function(a, s) {
|
100775
100775
|
let $ = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0;
|
@@ -121984,10 +121984,10 @@ var _excluded$h = ["visible", "onVisibleChange", "getContainer", "current", "mov
|
|
121984
121984
|
imageRender: vt,
|
121985
121985
|
onChange: er
|
121986
121986
|
}, xt)));
|
121987
|
-
}, uid$
|
121987
|
+
}, uid$4 = 0;
|
121988
121988
|
function useRegisterImage(a, s) {
|
121989
121989
|
var $ = reactExports.useState(function() {
|
121990
|
-
return uid$
|
121990
|
+
return uid$4 += 1, String(uid$4);
|
121991
121991
|
}), _ = _slicedToArray$e($, 1), _e = _[0], tt = reactExports.useContext(PreviewGroupContext), rt = {
|
121992
121992
|
data: s,
|
121993
121993
|
canPreview: a
|
@@ -131060,8 +131060,8 @@ const FilterDropdown = (a) => {
|
|
131060
131060
|
else {
|
131061
131061
|
const Yt = It() || [], rr = () => {
|
131062
131062
|
var lr;
|
131063
|
-
const ir = (lr = Wt == null ? void 0 : Wt("Table.filter")) !== null && lr !== void 0 ? lr : /* @__PURE__ */ reactExports.createElement(Empty, {
|
131064
|
-
image: Empty.PRESENTED_IMAGE_SIMPLE,
|
131063
|
+
const ir = (lr = Wt == null ? void 0 : Wt("Table.filter")) !== null && lr !== void 0 ? lr : /* @__PURE__ */ reactExports.createElement(Empty$1, {
|
131064
|
+
image: Empty$1.PRESENTED_IMAGE_SIMPLE,
|
131065
131065
|
description: ft.filterEmptyText,
|
131066
131066
|
styles: {
|
131067
131067
|
image: {
|
@@ -135316,7 +135316,7 @@ var traverseFileTree = /* @__PURE__ */ function() {
|
|
135316
135316
|
return a.apply(this, arguments);
|
135317
135317
|
};
|
135318
135318
|
}(), now$1 = +/* @__PURE__ */ new Date(), index$3 = 0;
|
135319
|
-
function uid$
|
135319
|
+
function uid$3() {
|
135320
135320
|
return "rc-upload-".concat(now$1, "-").concat(++index$3);
|
135321
135321
|
}
|
135322
135322
|
var _excluded$1 = ["component", "prefixCls", "className", "classNames", "disabled", "id", "name", "style", "styles", "multiple", "accept", "capture", "children", "directory", "openFileDialogOnClick", "onMouseEnter", "onMouseLeave", "hasControlInside"], AjaxUploader = /* @__PURE__ */ function(a) {
|
@@ -135328,7 +135328,7 @@ var _excluded$1 = ["component", "prefixCls", "className", "classNames", "disable
|
|
135328
135328
|
for (var _e = arguments.length, tt = new Array(_e), rt = 0; rt < _e; rt++)
|
135329
135329
|
tt[rt] = arguments[rt];
|
135330
135330
|
return _ = s.call.apply(s, [this].concat(tt)), _defineProperty$c(_assertThisInitialized(_), "state", {
|
135331
|
-
uid: uid$
|
135331
|
+
uid: uid$3()
|
135332
135332
|
}), _defineProperty$c(_assertThisInitialized(_), "reqs", {}), _defineProperty$c(_assertThisInitialized(_), "fileInput", void 0), _defineProperty$c(_assertThisInitialized(_), "_isMounted", void 0), _defineProperty$c(_assertThisInitialized(_), "onChange", function(at) {
|
135333
135333
|
var ot = _.props, nt = ot.accept, st = ot.directory, lt = at.target.files, et = _toConsumableArray$e(lt).filter(function(it) {
|
135334
135334
|
return !st || attrAccept(it, nt);
|
@@ -135383,7 +135383,7 @@ var _excluded$1 = ["component", "prefixCls", "className", "classNames", "disable
|
|
135383
135383
|
};
|
135384
135384
|
}()), _defineProperty$c(_assertThisInitialized(_), "uploadFiles", function(at) {
|
135385
135385
|
var ot = _toConsumableArray$e(at), nt = ot.map(function(st) {
|
135386
|
-
return st.uid = uid$
|
135386
|
+
return st.uid = uid$3(), _.processFile(st, ot);
|
135387
135387
|
});
|
135388
135388
|
Promise.all(nt).then(function(st) {
|
135389
135389
|
var lt = _.props.onBatchStart;
|
@@ -135515,7 +135515,7 @@ var _excluded$1 = ["component", "prefixCls", "className", "classNames", "disable
|
|
135515
135515
|
key: "reset",
|
135516
135516
|
value: function() {
|
135517
135517
|
this.setState({
|
135518
|
-
uid: uid$
|
135518
|
+
uid: uid$3()
|
135519
135519
|
});
|
135520
135520
|
}
|
135521
135521
|
}, {
|
@@ -144438,10 +144438,10 @@ var _ie8DomDefine = !_descriptors && !_fails(function() {
|
|
144438
144438
|
var $, _;
|
144439
144439
|
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))) return _;
|
144440
144440
|
throw TypeError("Can't convert object to primitive value");
|
144441
|
-
}, anObject$
|
144441
|
+
}, anObject$3 = _anObject, IE8_DOM_DEFINE$1 = _ie8DomDefine, toPrimitive$2 = _toPrimitive$5, dP$3 = Object.defineProperty;
|
144442
144442
|
_objectDp.f = _descriptors ? Object.defineProperty : function a(s, $, _) {
|
144443
|
-
if (anObject$
|
144444
|
-
return dP$
|
144443
|
+
if (anObject$3(s), $ = toPrimitive$2($, !0), anObject$3(_), IE8_DOM_DEFINE$1) try {
|
144444
|
+
return dP$3(s, $, _);
|
144445
144445
|
} catch {
|
144446
144446
|
}
|
144447
144447
|
if ("get" in _ || "set" in _) throw TypeError("Accessors not supported!");
|
@@ -144454,14 +144454,14 @@ var _propertyDesc = function(a, s) {
|
|
144454
144454
|
writable: !(a & 4),
|
144455
144455
|
value: s
|
144456
144456
|
};
|
144457
|
-
}, dP$
|
144458
|
-
return dP$
|
144457
|
+
}, dP$2 = _objectDp, createDesc$2 = _propertyDesc, _hide = _descriptors ? function(a, s, $) {
|
144458
|
+
return dP$2.f(a, s, createDesc$2(1, $));
|
144459
144459
|
} : function(a, s, $) {
|
144460
144460
|
return a[s] = $, a;
|
144461
144461
|
}, hasOwnProperty = {}.hasOwnProperty, _has = function(a, s) {
|
144462
144462
|
return hasOwnProperty.call(a, s);
|
144463
|
-
}, global$4 = _globalExports, core$2 = _coreExports, ctx = _ctx, hide$2 = _hide, has$5 = _has, PROTOTYPE$
|
144464
|
-
var _ = a & $export$6.F, _e = a & $export$6.G, tt = a & $export$6.S, rt = a & $export$6.P, at = a & $export$6.B, ot = a & $export$6.W, nt = _e ? core$2 : core$2[s] || (core$2[s] = {}), st = nt[PROTOTYPE$
|
144463
|
+
}, global$4 = _globalExports, core$2 = _coreExports, ctx = _ctx, hide$2 = _hide, has$5 = _has, PROTOTYPE$2 = "prototype", $export$6 = function(a, s, $) {
|
144464
|
+
var _ = a & $export$6.F, _e = a & $export$6.G, tt = a & $export$6.S, rt = a & $export$6.P, at = a & $export$6.B, ot = a & $export$6.W, nt = _e ? core$2 : core$2[s] || (core$2[s] = {}), st = nt[PROTOTYPE$2], lt = _e ? global$4 : tt ? global$4[s] : (global$4[s] || {})[PROTOTYPE$2], et, it, ut;
|
144465
144465
|
_e && ($ = s);
|
144466
144466
|
for (et in $)
|
144467
144467
|
it = !_ && lt && lt[et] !== void 0, !(it && has$5(nt, et)) && (ut = it ? lt[et] : $[et], nt[et] = _e && typeof lt[et] != "function" ? $[et] : at && it ? ctx(ut, global$4) : ot && lt[et] == ut ? function(gt) {
|
@@ -144479,7 +144479,7 @@ var _propertyDesc = function(a, s) {
|
|
144479
144479
|
}
|
144480
144480
|
return gt.apply(this, arguments);
|
144481
144481
|
};
|
144482
|
-
return ft[PROTOTYPE$
|
144482
|
+
return ft[PROTOTYPE$2] = gt[PROTOTYPE$2], ft;
|
144483
144483
|
}(ut) : rt && typeof ut == "function" ? ctx(Function.call, ut) : ut, rt && ((nt.virtual || (nt.virtual = {}))[et] = ut, a & $export$6.R && st && !st[et] && hide$2(st, et, ut)));
|
144484
144484
|
};
|
144485
144485
|
$export$6.F = 1;
|
@@ -144564,20 +144564,13 @@ var _shared = { exports: {} }, core$1 = _coreExports, global$3 = _globalExports,
|
|
144564
144564
|
});
|
144565
144565
|
var _sharedExports = _shared.exports, id$1 = 0, px = Math.random(), _uid = function(a) {
|
144566
144566
|
return "Symbol(".concat(a === void 0 ? "" : a, ")_", (++id$1 + px).toString(36));
|
144567
|
-
},
|
144568
|
-
|
144569
|
-
|
144570
|
-
hasRequired_sharedKey = 1;
|
144571
|
-
var a = _sharedExports("keys"), s = _uid;
|
144572
|
-
return _sharedKey = function($) {
|
144573
|
-
return a[$] || (a[$] = s($));
|
144574
|
-
}, _sharedKey;
|
144575
|
-
}
|
144576
|
-
var _objectKeysInternal, hasRequired_objectKeysInternal;
|
144567
|
+
}, shared$1 = _sharedExports("keys"), uid$2 = _uid, _sharedKey = function(a) {
|
144568
|
+
return shared$1[a] || (shared$1[a] = uid$2(a));
|
144569
|
+
}, _objectKeysInternal, hasRequired_objectKeysInternal;
|
144577
144570
|
function require_objectKeysInternal() {
|
144578
144571
|
if (hasRequired_objectKeysInternal) return _objectKeysInternal;
|
144579
144572
|
hasRequired_objectKeysInternal = 1;
|
144580
|
-
var a = _has, s = _toIobject, $ = require_arrayIncludes()(!1), _ =
|
144573
|
+
var a = _has, s = _toIobject, $ = require_arrayIncludes()(!1), _ = _sharedKey("IE_PROTO");
|
144581
144574
|
return _objectKeysInternal = function(_e, tt) {
|
144582
144575
|
var rt = s(_e), at = 0, ot = [], nt;
|
144583
144576
|
for (nt in rt) nt != _ && a(rt, nt) && ot.push(nt);
|
@@ -144585,15 +144578,11 @@ function require_objectKeysInternal() {
|
|
144585
144578
|
return ot;
|
144586
144579
|
}, _objectKeysInternal;
|
144587
144580
|
}
|
144588
|
-
var _enumBugKeys,
|
144589
|
-
function require_enumBugKeys() {
|
144590
|
-
return hasRequired_enumBugKeys || (hasRequired_enumBugKeys = 1, _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")), _enumBugKeys;
|
144591
|
-
}
|
144592
|
-
var _objectKeys, hasRequired_objectKeys;
|
144581
|
+
var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","), _objectKeys, hasRequired_objectKeys;
|
144593
144582
|
function require_objectKeys() {
|
144594
144583
|
if (hasRequired_objectKeys) return _objectKeys;
|
144595
144584
|
hasRequired_objectKeys = 1;
|
144596
|
-
var a = require_objectKeysInternal(), s =
|
144585
|
+
var a = require_objectKeysInternal(), s = _enumBugKeys;
|
144597
144586
|
return _objectKeys = Object.keys || function(_) {
|
144598
144587
|
return a(_, s);
|
144599
144588
|
}, _objectKeys;
|
@@ -145302,52 +145291,38 @@ var _default$6 = /* @__PURE__ */ function() {
|
|
145302
145291
|
var _ = String(defined(s)), _e = toInteger($), tt = _.length, rt, at;
|
145303
145292
|
return _e < 0 || _e >= tt ? a ? "" : void 0 : (rt = _.charCodeAt(_e), rt < 55296 || rt > 56319 || _e + 1 === tt || (at = _.charCodeAt(_e + 1)) < 56320 || at > 57343 ? a ? _.charAt(_e) : rt : a ? _.slice(_e, _e + 2) : (rt - 55296 << 10) + (at - 56320) + 65536);
|
145304
145293
|
};
|
145305
|
-
}, _redefine = _hide, _iterators = {}, _objectDps,
|
145306
|
-
|
145307
|
-
|
145308
|
-
|
145309
|
-
|
145310
|
-
return _objectDps = _descriptors ? Object.defineProperties : function(_e, tt) {
|
145311
|
-
s(_e);
|
145312
|
-
for (var rt = $(tt), at = rt.length, ot = 0, nt; at > ot; ) a.f(_e, nt = rt[ot++], tt[nt]);
|
145313
|
-
return _e;
|
145314
|
-
}, _objectDps;
|
145315
|
-
}
|
145316
|
-
var _html, hasRequired_html;
|
145294
|
+
}, _redefine = _hide, _iterators = {}, dP$1 = _objectDp, anObject$2 = _anObject, getKeys$2 = require_objectKeys(), _objectDps = _descriptors ? Object.defineProperties : function a(s, $) {
|
145295
|
+
anObject$2(s);
|
145296
|
+
for (var _ = getKeys$2($), _e = _.length, tt = 0, rt; _e > tt; ) dP$1.f(s, rt = _[tt++], $[rt]);
|
145297
|
+
return s;
|
145298
|
+
}, _html, hasRequired_html;
|
145317
145299
|
function require_html() {
|
145318
145300
|
if (hasRequired_html) return _html;
|
145319
145301
|
hasRequired_html = 1;
|
145320
145302
|
var a = _globalExports.document;
|
145321
145303
|
return _html = a && a.documentElement, _html;
|
145322
145304
|
}
|
145323
|
-
var
|
145324
|
-
function
|
145325
|
-
|
145326
|
-
|
145327
|
-
|
145328
|
-
|
145329
|
-
|
145330
|
-
|
145331
|
-
|
145332
|
-
};
|
145333
|
-
return _objectCreate = Object.create || function(ot, nt) {
|
145334
|
-
var st;
|
145335
|
-
return ot !== null ? (_e[tt] = a(ot), st = new _e(), _e[tt] = null, st[_] = ot) : st = rt(), nt === void 0 ? st : s(st, nt);
|
145336
|
-
}, _objectCreate;
|
145337
|
-
}
|
145338
|
-
var _wks = { exports: {} }, store = _sharedExports("wks"), uid$1 = _uid, Symbol$1 = _globalExports.Symbol, USE_SYMBOL = typeof Symbol$1 == "function", $exports = _wks.exports = function(a) {
|
145305
|
+
var anObject$1 = _anObject, dPs = _objectDps, enumBugKeys = _enumBugKeys, IE_PROTO$1 = _sharedKey("IE_PROTO"), Empty = function() {
|
145306
|
+
}, PROTOTYPE$1 = "prototype", createDict = function() {
|
145307
|
+
var a = require_domCreate()("iframe"), s = enumBugKeys.length, $ = "<", _ = ">", _e;
|
145308
|
+
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--; ) delete createDict[PROTOTYPE$1][enumBugKeys[s]];
|
145309
|
+
return createDict();
|
145310
|
+
}, _objectCreate = Object.create || function a(s, $) {
|
145311
|
+
var _;
|
145312
|
+
return s !== null ? (Empty[PROTOTYPE$1] = anObject$1(s), _ = new Empty(), Empty[PROTOTYPE$1] = null, _[IE_PROTO$1] = s) : _ = createDict(), $ === void 0 ? _ : dPs(_, $);
|
145313
|
+
}, _wks = { exports: {} }, store = _sharedExports("wks"), uid$1 = _uid, Symbol$1 = _globalExports.Symbol, USE_SYMBOL = typeof Symbol$1 == "function", $exports = _wks.exports = function(a) {
|
145339
145314
|
return store[a] || (store[a] = USE_SYMBOL && Symbol$1[a] || (USE_SYMBOL ? Symbol$1 : uid$1)("Symbol." + a));
|
145340
145315
|
};
|
145341
145316
|
$exports.store = store;
|
145342
145317
|
var _wksExports = _wks.exports, def = _objectDp.f, has$4 = _has, TAG = _wksExports("toStringTag"), _setToStringTag = function(a, s, $) {
|
145343
145318
|
a && !has$4(a = $ ? a : a.prototype, TAG) && def(a, TAG, { configurable: !0, value: s });
|
145344
|
-
}, create$2 =
|
145319
|
+
}, create$2 = _objectCreate, descriptor = _propertyDesc, setToStringTag$2 = _setToStringTag, IteratorPrototype = {};
|
145345
145320
|
_hide(IteratorPrototype, _wksExports("iterator"), function() {
|
145346
145321
|
return this;
|
145347
145322
|
});
|
145348
145323
|
var _iterCreate = function(a, s, $) {
|
145349
145324
|
a.prototype = create$2(IteratorPrototype, { next: descriptor(1, $) }), setToStringTag$2(a, s + " Iterator");
|
145350
|
-
}, has$3 = _has, toObject$1 = require_toObject(), IE_PROTO =
|
145325
|
+
}, has$3 = _has, toObject$1 = require_toObject(), IE_PROTO = _sharedKey("IE_PROTO"), ObjectProto$1 = Object.prototype, _objectGpo = Object.getPrototypeOf || function(a) {
|
145351
145326
|
return a = toObject$1(a), has$3(a, IE_PROTO) ? a[IE_PROTO] : typeof a.constructor == "function" && a instanceof a.constructor ? a.constructor.prototype : a instanceof Object ? ObjectProto$1 : null;
|
145352
145327
|
}, $export$3 = _export, redefine$1 = _redefine, hide$1 = _hide, Iterators$2 = _iterators, $iterCreate = _iterCreate, setToStringTag$1 = _setToStringTag, getPrototypeOf = _objectGpo, ITERATOR = _wksExports("iterator"), BUGGY = !([].keys && "next" in [].keys()), FF_ITERATOR = "@@iterator", KEYS = "keys", VALUES = "values", returnThis = function() {
|
145353
145328
|
return this;
|
@@ -145448,7 +145423,7 @@ var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esMo
|
|
145448
145423
|
return s;
|
145449
145424
|
}, cof = require_cof(), _isArray = Array.isArray || function a(s) {
|
145450
145425
|
return cof(s) == "Array";
|
145451
|
-
}, _objectGopnExt = {}, _objectGopn = {}, $keys$1 = require_objectKeysInternal(), hiddenKeys =
|
145426
|
+
}, _objectGopnExt = {}, _objectGopn = {}, $keys$1 = require_objectKeysInternal(), hiddenKeys = _enumBugKeys.concat("length", "prototype");
|
145452
145427
|
_objectGopn.f = Object.getOwnPropertyNames || function a(s) {
|
145453
145428
|
return $keys$1(s, hiddenKeys);
|
145454
145429
|
};
|
@@ -145470,7 +145445,7 @@ _objectGopd.f = _descriptors ? gOPD$1 : function a(s, $) {
|
|
145470
145445
|
}
|
145471
145446
|
if (has$1(s, $)) return createDesc$1(!pIE.f.call(s, $), s[$]);
|
145472
145447
|
};
|
145473
|
-
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 = require_toObject(), toIObject = _toIobject, toPrimitive = _toPrimitive$5, createDesc = _propertyDesc, _create$1 =
|
145448
|
+
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 = require_toObject(), toIObject = _toIobject, toPrimitive = _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() {
|
145474
145449
|
return _create$1(dP({}, "a", {
|
145475
145450
|
get: function() {
|
145476
145451
|
return dP(this, "a", { value: 7 }).a;
|
@@ -145634,7 +145609,7 @@ function require_setProto() {
|
|
145634
145609
|
var $export$1 = _export;
|
145635
145610
|
$export$1($export$1.S, "Object", { setPrototypeOf: require_setProto().set });
|
145636
145611
|
var setPrototypeOf$1 = _coreExports.Object.setPrototypeOf, setPrototypeOf = { default: setPrototypeOf$1, __esModule: !0 }, $export = _export;
|
145637
|
-
$export($export.S, "Object", { create:
|
145612
|
+
$export($export.S, "Object", { create: _objectCreate });
|
145638
145613
|
var $Object = _coreExports.Object, create$1 = function a(s, $) {
|
145639
145614
|
return $Object.create(s, $);
|
145640
145615
|
}, create = { default: create$1, __esModule: !0 }, _setPrototypeOf = setPrototypeOf, _setPrototypeOf2 = _interopRequireDefault$c(_setPrototypeOf), _create = create, _create2 = _interopRequireDefault$c(_create), _typeof2 = _typeof$i, _typeof3 = _interopRequireDefault$c(_typeof2);
|
@@ -154147,19 +154122,9 @@ Check this document: https://pdfme.com/docs/custom-schemas`);
|
|
154147
154122
|
), Renderer = (a) => {
|
154148
154123
|
const { schema: s, basePdf: $, value: _, mode: _e, onChange: tt, stopEditing: rt, tabIndex: at, placeholder: ot, scale: nt } = a, st = reactExports.useContext(PluginsRegistry), lt = reactExports.useContext(OptionsContext), et = reactExports.useContext(I18nContext), { token: it } = theme.useToken(), ut = reactExports.useRef(null), gt = reactExports.useRef(/* @__PURE__ */ new Map()), ft = Object.values(st).find(
|
154149
154124
|
(pt) => (pt == null ? void 0 : pt.propPanel.defaultSchema.type) === s.type
|
154150
|
-
);
|
154151
|
-
|
154152
|
-
|
154153
|
-
Check this document: https://pdfme.com/docs/custom-schemas`), /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});
|
154154
|
-
const ht = useRerenderDependencies({
|
154155
|
-
plugin: ft,
|
154156
|
-
value: _,
|
154157
|
-
mode: _e,
|
154158
|
-
scale: nt,
|
154159
|
-
schema: s,
|
154160
|
-
options: lt
|
154161
|
-
});
|
154162
|
-
return reactExports.useEffect(() => {
|
154125
|
+
), ht = useRerenderDependencies({ plugin: ft, value: _, mode: _e, scale: nt, schema: s, options: lt });
|
154126
|
+
return !ft || !ft.ui ? (console.error(`[@pdfme/ui] Renderer for type ${s.type} not found.
|
154127
|
+
Check this document: https://pdfme.com/docs/custom-schemas`), /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {})) : (reactExports.useEffect(() => {
|
154163
154128
|
if (ut.current && s.type) {
|
154164
154129
|
ut.current.innerHTML = "";
|
154165
154130
|
const pt = ft.ui;
|
@@ -154182,7 +154147,7 @@ Check this document: https://pdfme.com/docs/custom-schemas`), /* @__PURE__ */ js
|
|
154182
154147
|
return () => {
|
154183
154148
|
ut.current && (ut.current.innerHTML = "");
|
154184
154149
|
};
|
154185
|
-
}, ht), /* @__PURE__ */ jsxRuntimeExports.jsx(Wrapper, { ...a, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { height: "100%", width: "100%" }, ref: ut }) });
|
154150
|
+
}, ht), /* @__PURE__ */ jsxRuntimeExports.jsx(Wrapper, { ...a, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { height: "100%", width: "100%" }, ref: ut }) }));
|
154186
154151
|
}, Draggable$1 = (a) => {
|
154187
154152
|
const { scale: s, basePdf: $, plugin: _ } = a, { token: _e } = theme.useToken(), tt = _.propPanel.defaultSchema, rt = useDraggable({ id: tt.type, data: tt }), { listeners: at, setNodeRef: ot, attributes: nt, transform: st, isDragging: lt } = rt, et = { transform: CSS$1.Translate.toString(st) };
|
154188
154153
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { ref: ot, style: et, ...at, ...nt, children: [
|