@pdfme/ui 5.3.2-dev.2 → 5.3.2-dev.4
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 +94 -59
- package/dist/index.umd.js +9 -9
- package/package.json +1 -1
- package/src/components/Renderer.tsx +9 -3
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$2(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$2(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$2(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$2() {
|
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$2, 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$1 = () => {
|
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$1, null), simpleEmptyImg = /* @__PURE__ */ reactExports.createElement(Simple, null), Empty = (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$2, 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
|
100747
|
-
Empty
|
100746
|
+
Empty.PRESENTED_IMAGE_DEFAULT = defaultEmptyImg;
|
100747
|
+
Empty.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
|
100757
|
+
return /* @__PURE__ */ React$c.createElement(Empty, {
|
100758
|
+
image: Empty.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
|
100765
|
+
return /* @__PURE__ */ React$c.createElement(Empty, {
|
100766
|
+
image: Empty.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
|
100772
|
+
return /* @__PURE__ */ React$c.createElement(Empty, 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$3 = 0;
|
121988
121988
|
function useRegisterImage(a, s) {
|
121989
121989
|
var $ = reactExports.useState(function() {
|
121990
|
-
return uid$
|
121990
|
+
return uid$3 += 1, String(uid$3);
|
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
|
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,
|
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$2() {
|
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$2()
|
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$2(), _.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$2()
|
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$1 = _anObject, IE8_DOM_DEFINE$1 = _ie8DomDefine, toPrimitive$2 = _toPrimitive$5, dP$2 = Object.defineProperty;
|
144442
144442
|
_objectDp.f = _descriptors ? Object.defineProperty : function a(s, $, _) {
|
144443
|
-
if (anObject$
|
144444
|
-
return dP$
|
144443
|
+
if (anObject$1(s), $ = toPrimitive$2($, !0), anObject$1(_), IE8_DOM_DEFINE$1) try {
|
144444
|
+
return dP$2(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$1 = _objectDp, createDesc$2 = _propertyDesc, _hide = _descriptors ? function(a, s, $) {
|
144458
|
+
return dP$1.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$1 = "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$1], lt = _e ? global$4 : tt ? global$4[s] : (global$4[s] || {})[PROTOTYPE$1], 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$1] = gt[PROTOTYPE$1], 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,13 +144564,20 @@ 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
|
-
|
144567
|
+
}, _sharedKey, hasRequired_sharedKey;
|
144568
|
+
function require_sharedKey() {
|
144569
|
+
if (hasRequired_sharedKey) return _sharedKey;
|
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;
|
144570
144577
|
function require_objectKeysInternal() {
|
144571
144578
|
if (hasRequired_objectKeysInternal) return _objectKeysInternal;
|
144572
144579
|
hasRequired_objectKeysInternal = 1;
|
144573
|
-
var a = _has, s = _toIobject, $ = require_arrayIncludes()(!1), _ =
|
144580
|
+
var a = _has, s = _toIobject, $ = require_arrayIncludes()(!1), _ = require_sharedKey()("IE_PROTO");
|
144574
144581
|
return _objectKeysInternal = function(_e, tt) {
|
144575
144582
|
var rt = s(_e), at = 0, ot = [], nt;
|
144576
144583
|
for (nt in rt) nt != _ && a(rt, nt) && ot.push(nt);
|
@@ -144578,11 +144585,15 @@ function require_objectKeysInternal() {
|
|
144578
144585
|
return ot;
|
144579
144586
|
}, _objectKeysInternal;
|
144580
144587
|
}
|
144581
|
-
var _enumBugKeys
|
144588
|
+
var _enumBugKeys, hasRequired_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;
|
144582
144593
|
function require_objectKeys() {
|
144583
144594
|
if (hasRequired_objectKeys) return _objectKeys;
|
144584
144595
|
hasRequired_objectKeys = 1;
|
144585
|
-
var a = require_objectKeysInternal(), s =
|
144596
|
+
var a = require_objectKeysInternal(), s = require_enumBugKeys();
|
144586
144597
|
return _objectKeys = Object.keys || function(_) {
|
144587
144598
|
return a(_, s);
|
144588
144599
|
}, _objectKeys;
|
@@ -145291,38 +145302,52 @@ var _default$6 = /* @__PURE__ */ function() {
|
|
145291
145302
|
var _ = String(defined(s)), _e = toInteger($), tt = _.length, rt, at;
|
145292
145303
|
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);
|
145293
145304
|
};
|
145294
|
-
}, _redefine = _hide, _iterators = {},
|
145295
|
-
|
145296
|
-
|
145297
|
-
|
145298
|
-
|
145305
|
+
}, _redefine = _hide, _iterators = {}, _objectDps, hasRequired_objectDps;
|
145306
|
+
function require_objectDps() {
|
145307
|
+
if (hasRequired_objectDps) return _objectDps;
|
145308
|
+
hasRequired_objectDps = 1;
|
145309
|
+
var a = _objectDp, s = _anObject, $ = require_objectKeys();
|
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;
|
145299
145317
|
function require_html() {
|
145300
145318
|
if (hasRequired_html) return _html;
|
145301
145319
|
hasRequired_html = 1;
|
145302
145320
|
var a = _globalExports.document;
|
145303
145321
|
return _html = a && a.documentElement, _html;
|
145304
145322
|
}
|
145305
|
-
var
|
145306
|
-
|
145307
|
-
|
145308
|
-
|
145309
|
-
|
145310
|
-
},
|
145311
|
-
|
145312
|
-
|
145313
|
-
|
145323
|
+
var _objectCreate, hasRequired_objectCreate;
|
145324
|
+
function require_objectCreate() {
|
145325
|
+
if (hasRequired_objectCreate) return _objectCreate;
|
145326
|
+
hasRequired_objectCreate = 1;
|
145327
|
+
var a = _anObject, s = require_objectDps(), $ = require_enumBugKeys(), _ = require_sharedKey()("IE_PROTO"), _e = function() {
|
145328
|
+
}, tt = "prototype", rt = function() {
|
145329
|
+
var at = require_domCreate()("iframe"), ot = $.length, nt = "<", st = ">", lt;
|
145330
|
+
for (at.style.display = "none", require_html().appendChild(at), at.src = "javascript:", lt = at.contentWindow.document, lt.open(), lt.write(nt + "script" + st + "document.F=Object" + nt + "/script" + st), lt.close(), rt = lt.F; ot--; ) delete rt[tt][$[ot]];
|
145331
|
+
return rt();
|
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) {
|
145314
145339
|
return store[a] || (store[a] = USE_SYMBOL && Symbol$1[a] || (USE_SYMBOL ? Symbol$1 : uid$1)("Symbol." + a));
|
145315
145340
|
};
|
145316
145341
|
$exports.store = store;
|
145317
145342
|
var _wksExports = _wks.exports, def = _objectDp.f, has$4 = _has, TAG = _wksExports("toStringTag"), _setToStringTag = function(a, s, $) {
|
145318
145343
|
a && !has$4(a = $ ? a : a.prototype, TAG) && def(a, TAG, { configurable: !0, value: s });
|
145319
|
-
}, create$2 =
|
145344
|
+
}, create$2 = require_objectCreate(), descriptor = _propertyDesc, setToStringTag$2 = _setToStringTag, IteratorPrototype = {};
|
145320
145345
|
_hide(IteratorPrototype, _wksExports("iterator"), function() {
|
145321
145346
|
return this;
|
145322
145347
|
});
|
145323
145348
|
var _iterCreate = function(a, s, $) {
|
145324
145349
|
a.prototype = create$2(IteratorPrototype, { next: descriptor(1, $) }), setToStringTag$2(a, s + " Iterator");
|
145325
|
-
}, has$3 = _has, toObject$1 = require_toObject(), IE_PROTO =
|
145350
|
+
}, has$3 = _has, toObject$1 = require_toObject(), IE_PROTO = require_sharedKey()("IE_PROTO"), ObjectProto$1 = Object.prototype, _objectGpo = Object.getPrototypeOf || function(a) {
|
145326
145351
|
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;
|
145327
145352
|
}, $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() {
|
145328
145353
|
return this;
|
@@ -145423,7 +145448,7 @@ var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esMo
|
|
145423
145448
|
return s;
|
145424
145449
|
}, cof = require_cof(), _isArray = Array.isArray || function a(s) {
|
145425
145450
|
return cof(s) == "Array";
|
145426
|
-
}, _objectGopnExt = {}, _objectGopn = {}, $keys$1 = require_objectKeysInternal(), hiddenKeys =
|
145451
|
+
}, _objectGopnExt = {}, _objectGopn = {}, $keys$1 = require_objectKeysInternal(), hiddenKeys = require_enumBugKeys().concat("length", "prototype");
|
145427
145452
|
_objectGopn.f = Object.getOwnPropertyNames || function a(s) {
|
145428
145453
|
return $keys$1(s, hiddenKeys);
|
145429
145454
|
};
|
@@ -145445,7 +145470,7 @@ _objectGopd.f = _descriptors ? gOPD$1 : function a(s, $) {
|
|
145445
145470
|
}
|
145446
145471
|
if (has$1(s, $)) return createDesc$1(!pIE.f.call(s, $), s[$]);
|
145447
145472
|
};
|
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 =
|
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 = require_objectCreate(), gOPNExt = _objectGopnExt, $GOPD = _objectGopd, $GOPS = require_objectGops(), $DP = _objectDp, $keys = require_objectKeys(), gOPD = $GOPD.f, dP = $DP.f, gOPN = gOPNExt.f, $Symbol = global$1.Symbol, $JSON = global$1.JSON, _stringify = $JSON && $JSON.stringify, PROTOTYPE = "prototype", HIDDEN = wks("_hidden"), TO_PRIMITIVE = wks("toPrimitive"), isEnum = {}.propertyIsEnumerable, SymbolRegistry = shared("symbol-registry"), AllSymbols = shared("symbols"), OPSymbols = shared("op-symbols"), ObjectProto = Object[PROTOTYPE], USE_NATIVE = typeof $Symbol == "function" && !!$GOPS.f, QObject = global$1.QObject, setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild, setSymbolDesc = DESCRIPTORS && $fails(function() {
|
145449
145474
|
return _create$1(dP({}, "a", {
|
145450
145475
|
get: function() {
|
145451
145476
|
return dP(this, "a", { value: 7 }).a;
|
@@ -145609,7 +145634,7 @@ function require_setProto() {
|
|
145609
145634
|
var $export$1 = _export;
|
145610
145635
|
$export$1($export$1.S, "Object", { setPrototypeOf: require_setProto().set });
|
145611
145636
|
var setPrototypeOf$1 = _coreExports.Object.setPrototypeOf, setPrototypeOf = { default: setPrototypeOf$1, __esModule: !0 }, $export = _export;
|
145612
|
-
$export($export.S, "Object", { create:
|
145637
|
+
$export($export.S, "Object", { create: require_objectCreate() });
|
145613
145638
|
var $Object = _coreExports.Object, create$1 = function a(s, $) {
|
145614
145639
|
return $Object.create(s, $);
|
145615
145640
|
}, 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);
|
@@ -154122,9 +154147,19 @@ Check this document: https://pdfme.com/docs/custom-schemas`);
|
|
154122
154147
|
), Renderer = (a) => {
|
154123
154148
|
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(
|
154124
154149
|
(pt) => (pt == null ? void 0 : pt.propPanel.defaultSchema.type) === s.type
|
154125
|
-
)
|
154126
|
-
|
154127
|
-
|
154150
|
+
);
|
154151
|
+
if (!ft || !ft.ui)
|
154152
|
+
return console.error(`[@pdfme/ui] Renderer for type ${s.type} not found.
|
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(() => {
|
154128
154163
|
if (ut.current && s.type) {
|
154129
154164
|
ut.current.innerHTML = "";
|
154130
154165
|
const pt = ft.ui;
|
@@ -154147,7 +154182,7 @@ Check this document: https://pdfme.com/docs/custom-schemas`), /* @__PURE__ */ js
|
|
154147
154182
|
return () => {
|
154148
154183
|
ut.current && (ut.current.innerHTML = "");
|
154149
154184
|
};
|
154150
|
-
}, ht), /* @__PURE__ */ jsxRuntimeExports.jsx(Wrapper, { ...a, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { height: "100%", width: "100%" }, ref: ut }) })
|
154185
|
+
}, ht), /* @__PURE__ */ jsxRuntimeExports.jsx(Wrapper, { ...a, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { height: "100%", width: "100%" }, ref: ut }) });
|
154151
154186
|
}, Draggable$1 = (a) => {
|
154152
154187
|
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) };
|
154153
154188
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { ref: ot, style: et, ...at, ...nt, children: [
|