@pdfme/ui 4.0.2-dev.0 → 4.0.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 +216 -156
- package/dist/index.umd.js +11 -11
- package/dist/types/components/Designer/RightSidebar/DetailView/ButtonGroupWidget.d.ts +4 -0
- package/dist/types/contexts.d.ts +2 -1
- package/package.json +1 -1
- package/src/components/Designer/RightSidebar/DetailView/ButtonGroupWidget.tsx +70 -0
- package/src/components/Designer/RightSidebar/DetailView/index.tsx +3 -1
- package/src/i18n.ts +12 -1
package/dist/index.es.js
CHANGED
@@ -9290,6 +9290,7 @@ z.object({
|
|
9290
9290
|
"schemas.text.max": z.string(),
|
9291
9291
|
"schemas.text.fit": z.string(),
|
9292
9292
|
"schemas.text.dynamicFontSize": z.string(),
|
9293
|
+
"schemas.text.format": z.string(),
|
9293
9294
|
"schemas.barcodes.barColor": z.string(),
|
9294
9295
|
"schemas.barcodes.includetext": z.string(),
|
9295
9296
|
"schemas.table.alternateBackgroundColor": z.string(),
|
@@ -59752,7 +59753,7 @@ function getMods(a, s) {
|
|
59752
59753
|
$[_] = a[$[_].toLowerCase()];
|
59753
59754
|
return $;
|
59754
59755
|
}
|
59755
|
-
function getKeys$
|
59756
|
+
function getKeys$3(a) {
|
59756
59757
|
typeof a != "string" && (a = ""), a = a.replace(/\s/g, "");
|
59757
59758
|
const s = a.split(",");
|
59758
59759
|
let $ = s.lastIndexOf("");
|
@@ -59941,7 +59942,7 @@ const eachUnbind = (a) => {
|
|
59941
59942
|
method: _,
|
59942
59943
|
splitKey: _e = "+"
|
59943
59944
|
} = a;
|
59944
|
-
getKeys$
|
59945
|
+
getKeys$3(s).forEach((nt) => {
|
59945
59946
|
const at = nt.split(_e), ot = at.length, rt = at[ot - 1], st = rt === "*" ? "*" : code(rt);
|
59946
59947
|
if (!_handlers[st])
|
59947
59948
|
return;
|
@@ -60000,7 +60001,7 @@ function isElementBind(a) {
|
|
60000
60001
|
}
|
60001
60002
|
function hotkeys(a, s, $) {
|
60002
60003
|
_downKeys = [];
|
60003
|
-
const _ = getKeys$
|
60004
|
+
const _ = getKeys$3(a);
|
60004
60005
|
let _e = [], tt = "all", nt = document, at = 0, ot = !1, rt = !0, st = "+", lt = !1, et = !1;
|
60005
60006
|
for ($ === void 0 && typeof s == "function" && ($ = s), Object.prototype.toString.call(s) === "[object Object]" && (s.scope && (tt = s.scope), s.element && (nt = 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); at < _.length; at++)
|
60006
60007
|
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({
|
@@ -81654,17 +81655,37 @@ const convertForPdfLayoutProps = ({ schema: a, pageHeight: s, applyRotateTransla
|
|
81654
81655
|
}
|
81655
81656
|
const It = { x: bt + vt / 2, y: ct - mm2pt(nt.position.y) - At / 2 };
|
81656
81657
|
wt.forEach((yt, Rt) => {
|
81657
|
-
const kt = widthOfTextAtSize(yt, lt, it, gt), jt = dt * it * Rt;
|
81658
|
-
let
|
81659
|
-
ft === "center" ?
|
81660
|
-
let
|
81658
|
+
const kt = widthOfTextAtSize(yt, lt, it, gt), jt = heightOfFontAtSize(lt, it), Ht = dt * it * Rt;
|
81659
|
+
let Ft = bt;
|
81660
|
+
ft === "center" ? Ft += (vt - kt) / 2 : ft === "right" && (Ft += vt - kt);
|
81661
|
+
let _t = ct - mm2pt(nt.position.y) - Ct - Ht;
|
81662
|
+
if (nt.strikethrough && kt > 0) {
|
81663
|
+
const Nt = Ft + kt + 1, Mt = _t + jt / 3;
|
81664
|
+
_e.drawLine({
|
81665
|
+
start: rotatePoint({ x: Ft, y: Mt }, It, xt.angle),
|
81666
|
+
end: rotatePoint({ x: Nt, y: Mt }, It, xt.angle),
|
81667
|
+
thickness: 1 / 12 * it,
|
81668
|
+
color: ut,
|
81669
|
+
opacity: St
|
81670
|
+
});
|
81671
|
+
}
|
81672
|
+
if (nt.underline && kt > 0) {
|
81673
|
+
const Nt = Ft + kt + 1, Mt = _t - jt / 12;
|
81674
|
+
_e.drawLine({
|
81675
|
+
start: rotatePoint({ x: Ft, y: Mt }, It, xt.angle),
|
81676
|
+
end: rotatePoint({ x: Nt, y: Mt }, It, xt.angle),
|
81677
|
+
thickness: 1 / 12 * it,
|
81678
|
+
color: ut,
|
81679
|
+
opacity: St
|
81680
|
+
});
|
81681
|
+
}
|
81661
81682
|
if (xt.angle !== 0) {
|
81662
|
-
const
|
81663
|
-
|
81683
|
+
const Nt = rotatePoint({ x: Ft, y: _t }, It, xt.angle);
|
81684
|
+
Ft = Nt.x, _t = Nt.y;
|
81664
81685
|
}
|
81665
81686
|
_e.drawText(yt, {
|
81666
|
-
x:
|
81667
|
-
y:
|
81687
|
+
x: Ft,
|
81688
|
+
y: _t,
|
81668
81689
|
rotate: xt,
|
81669
81690
|
size: it,
|
81670
81691
|
color: ut,
|
@@ -81673,7 +81694,45 @@ const convertForPdfLayoutProps = ({ schema: a, pageHeight: s, applyRotateTransla
|
|
81673
81694
|
opacity: St
|
81674
81695
|
});
|
81675
81696
|
});
|
81676
|
-
}, DEFAULT_OPACITY = 1, HEX_COLOR_PATTERN = "^#(?:[A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$",
|
81697
|
+
}, DEFAULT_OPACITY = 1, HEX_COLOR_PATTERN = "^#(?:[A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$", TextStrikethroughIcon = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M6.85 7.08C6.85 4.37 9.45 3 12.24 3c1.64 0 3 .49 3.9 1.28c.77.65 1.46 1.73 1.46 3.24h-3.01c0-.31-.05-.59-.15-.85c-.29-.86-1.2-1.28-2.25-1.28c-1.86 0-2.34 1.02-2.34 1.7c0 .48.25.88.74 1.21c.38.25.77.48 1.41.7H7.39c-.21-.34-.54-.89-.54-1.92zM21 12v-2H3v2h9.62c1.15.45 1.96.75 1.96 1.97c0 1-.81 1.67-2.28 1.67c-1.54 0-2.93-.54-2.93-2.51H6.4c0 .55.08 1.13.24 1.58c.81 2.29 3.29 3.3 5.67 3.3c2.27 0 5.3-.89 5.3-4.05c0-.3-.01-1.16-.48-1.94H21V12z" fill="currentColor"></path></svg>', TextUnderlineIcon = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z" fill="currentColor"></path></svg>', TextAlignLeftIcon = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z" fill="currentColor"></path></svg>', TextAlignCenterIcon = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z" fill="currentColor"></path></svg>', TextAlignRightIcon = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z" fill="currentColor"></path></svg>', TextVerticalAlignTopIcon = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M8 11h3v10h2V11h3l-4-4l-4 4zM4 3v2h16V3H4z" fill="currentColor"></path></svg>', TextVerticalAlignMiddleIcon = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M8 19h3v4h2v-4h3l-4-4l-4 4zm8-14h-3V1h-2v4H8l4 4l4-4zM4 11v2h16v-2H4z" fill="currentColor"></path></svg>', TextVerticalAlignBottomIcon = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M16 13h-3V3h-2v10H8l4 4l4-4zM4 19v2h16v-2H4z" fill="currentColor"></path></svg>';
|
81698
|
+
var Formatter;
|
81699
|
+
(function(a) {
|
81700
|
+
a.STRIKETHROUGH = "strikethrough", a.UNDERLINE = "underline", a.ALIGNMENT = "alignment", a.VERTICAL_ALIGNMENT = "verticalAlignment";
|
81701
|
+
})(Formatter || (Formatter = {}));
|
81702
|
+
function getExtraFormatterSchema(a) {
|
81703
|
+
const s = [
|
81704
|
+
{ key: Formatter.STRIKETHROUGH, icon: TextStrikethroughIcon, type: "boolean" },
|
81705
|
+
{ key: Formatter.UNDERLINE, icon: TextUnderlineIcon, type: "boolean" },
|
81706
|
+
{ key: Formatter.ALIGNMENT, icon: TextAlignLeftIcon, type: "select", value: DEFAULT_ALIGNMENT },
|
81707
|
+
{ key: Formatter.ALIGNMENT, icon: TextAlignCenterIcon, type: "select", value: ALIGN_CENTER },
|
81708
|
+
{ key: Formatter.ALIGNMENT, icon: TextAlignRightIcon, type: "select", value: ALIGN_RIGHT },
|
81709
|
+
{
|
81710
|
+
key: Formatter.VERTICAL_ALIGNMENT,
|
81711
|
+
icon: TextVerticalAlignTopIcon,
|
81712
|
+
type: "select",
|
81713
|
+
value: DEFAULT_VERTICAL_ALIGNMENT
|
81714
|
+
},
|
81715
|
+
{
|
81716
|
+
key: Formatter.VERTICAL_ALIGNMENT,
|
81717
|
+
icon: TextVerticalAlignMiddleIcon,
|
81718
|
+
type: "select",
|
81719
|
+
value: VERTICAL_ALIGN_MIDDLE
|
81720
|
+
},
|
81721
|
+
{
|
81722
|
+
key: Formatter.VERTICAL_ALIGNMENT,
|
81723
|
+
icon: TextVerticalAlignBottomIcon,
|
81724
|
+
type: "select",
|
81725
|
+
value: VERTICAL_ALIGN_BOTTOM
|
81726
|
+
}
|
81727
|
+
];
|
81728
|
+
return {
|
81729
|
+
title: a("schemas.text.format"),
|
81730
|
+
widget: "ButtonGroup",
|
81731
|
+
buttons: s,
|
81732
|
+
span: 16
|
81733
|
+
};
|
81734
|
+
}
|
81735
|
+
const UseDynamicFontSize = (a) => {
|
81677
81736
|
const { rootElement: s, changeSchemas: $, activeSchema: _, i18n: _e } = a, tt = document.createElement("input");
|
81678
81737
|
tt.type = "checkbox", tt.checked = !!(_ != null && _.dynamicFontSize), tt.onchange = (at) => {
|
81679
81738
|
const ot = at.target.checked ? {
|
@@ -81712,32 +81771,7 @@ const convertForPdfLayoutProps = ({ schema: a, pageHeight: s, applyRotateTransla
|
|
81712
81771
|
span: 6,
|
81713
81772
|
props: { min: 0 }
|
81714
81773
|
},
|
81715
|
-
|
81716
|
-
title: $("schemas.text.textAlign"),
|
81717
|
-
type: "string",
|
81718
|
-
widget: "select",
|
81719
|
-
props: {
|
81720
|
-
options: [
|
81721
|
-
{ label: $("schemas.left"), value: DEFAULT_ALIGNMENT },
|
81722
|
-
{ label: $("schemas.center"), value: ALIGN_CENTER },
|
81723
|
-
{ label: $("schemas.right"), value: ALIGN_RIGHT }
|
81724
|
-
]
|
81725
|
-
},
|
81726
|
-
span: 8
|
81727
|
-
},
|
81728
|
-
verticalAlignment: {
|
81729
|
-
title: $("schemas.text.verticalAlign"),
|
81730
|
-
type: "string",
|
81731
|
-
widget: "select",
|
81732
|
-
props: {
|
81733
|
-
options: [
|
81734
|
-
{ label: $("schemas.top"), value: VERTICAL_ALIGN_TOP },
|
81735
|
-
{ label: $("schemas.middle"), value: VERTICAL_ALIGN_MIDDLE },
|
81736
|
-
{ label: $("schemas.bottom"), value: VERTICAL_ALIGN_BOTTOM }
|
81737
|
-
]
|
81738
|
-
},
|
81739
|
-
span: 8
|
81740
|
-
},
|
81774
|
+
formatter: getExtraFormatterSchema($),
|
81741
81775
|
lineHeight: {
|
81742
81776
|
title: $("schemas.text.lineHeight"),
|
81743
81777
|
type: "number",
|
@@ -81823,7 +81857,9 @@ const convertForPdfLayoutProps = ({ schema: a, pageHeight: s, applyRotateTransla
|
|
81823
81857
|
fontColor: DEFAULT_FONT_COLOR,
|
81824
81858
|
fontName: void 0,
|
81825
81859
|
backgroundColor: "",
|
81826
|
-
opacity: DEFAULT_OPACITY
|
81860
|
+
opacity: DEFAULT_OPACITY,
|
81861
|
+
strikethrough: !1,
|
81862
|
+
underline: !1
|
81827
81863
|
}
|
81828
81864
|
}, mapVerticalAlignToFlex = (a) => {
|
81829
81865
|
switch (a) {
|
@@ -81838,10 +81874,10 @@ const convertForPdfLayoutProps = ({ schema: a, pageHeight: s, applyRotateTransla
|
|
81838
81874
|
}, getBackgroundColor = (a, s) => !a || !s.backgroundColor ? "transparent" : s.backgroundColor, uiRender = async (a) => {
|
81839
81875
|
const { value: s, schema: $, rootElement: _, mode: _e, onChange: tt, stopEditing: nt, tabIndex: at, placeholder: ot, options: rt, _cache: st } = a, lt = (rt == null ? void 0 : rt.font) || getDefaultFont();
|
81840
81876
|
let et;
|
81841
|
-
const it = (
|
81877
|
+
const it = (xt) => ({
|
81842
81878
|
textSchema: $,
|
81843
81879
|
font: lt,
|
81844
|
-
value:
|
81880
|
+
value: xt,
|
81845
81881
|
startingFontSize: et,
|
81846
81882
|
_cache: st
|
81847
81883
|
});
|
@@ -81859,7 +81895,9 @@ const convertForPdfLayoutProps = ({ schema: a, pageHeight: s, applyRotateTransla
|
|
81859
81895
|
cursor: isEditable(_e, $) ? "text" : "default"
|
81860
81896
|
};
|
81861
81897
|
Object.assign(pt.style, mt), _.innerHTML = "", _.appendChild(pt);
|
81862
|
-
const ct =
|
81898
|
+
const ct = [];
|
81899
|
+
$.strikethrough && ct.push("line-through"), $.underline && ct.push("underline");
|
81900
|
+
const vt = {
|
81863
81901
|
// Font formatting styles
|
81864
81902
|
fontFamily: $.fontName ? `'${$.fontName}'` : "inherit",
|
81865
81903
|
color: $.fontColor ? $.fontColor : DEFAULT_FONT_COLOR,
|
@@ -81875,44 +81913,45 @@ const convertForPdfLayoutProps = ({ schema: a, pageHeight: s, applyRotateTransla
|
|
81875
81913
|
outline: "none",
|
81876
81914
|
marginBottom: `${gt}px`,
|
81877
81915
|
paddingTop: `${dt}px`,
|
81878
|
-
backgroundColor: "transparent"
|
81879
|
-
|
81880
|
-
|
81881
|
-
|
81882
|
-
|
81883
|
-
|
81884
|
-
|
81885
|
-
|
81886
|
-
|
81887
|
-
bt
|
81888
|
-
|
81889
|
-
|
81890
|
-
|
81916
|
+
backgroundColor: "transparent",
|
81917
|
+
textDecoration: ct.join(" ")
|
81918
|
+
}, At = document.createElement("div");
|
81919
|
+
if (Object.assign(At.style, vt), isEditable(_e, $)) {
|
81920
|
+
if (isFirefox() ? (At.contentEditable = "true", At.addEventListener("keydown", (xt) => {
|
81921
|
+
xt.key === "Enter" && !xt.shiftKey && (xt.preventDefault(), document.execCommand("insertLineBreak", !1, void 0));
|
81922
|
+
}), At.addEventListener("paste", (xt) => {
|
81923
|
+
var St;
|
81924
|
+
xt.preventDefault();
|
81925
|
+
const bt = (St = xt.clipboardData) == null ? void 0 : St.getData("text"), Et = window.getSelection();
|
81926
|
+
Et != null && Et.rangeCount && (Et.deleteFromDocument(), Et.getRangeAt(0).insertNode(document.createTextNode(bt || "")), Et.collapseToEnd());
|
81927
|
+
})) : At.contentEditable = "plaintext-only", At.tabIndex = at || 0, At.innerText = s, At.addEventListener("blur", (xt) => {
|
81928
|
+
tt && tt({ key: "content", value: xt.target.innerText }), nt && nt();
|
81929
|
+
}), $.dynamicFontSize && At.addEventListener("keyup", () => {
|
81891
81930
|
setTimeout(() => {
|
81892
81931
|
(async () => {
|
81893
|
-
if (!
|
81932
|
+
if (!At.textContent)
|
81894
81933
|
return;
|
81895
|
-
et = await calculateDynamicFontSize(it(
|
81896
|
-
const { topAdj:
|
81897
|
-
|
81934
|
+
et = await calculateDynamicFontSize(it(At.textContent)), At.style.fontSize = `${et}pt`;
|
81935
|
+
const { topAdj: xt, bottomAdj: bt } = getBrowserVerticalFontAdjustments(ut, et ?? $.fontSize ?? DEFAULT_FONT_SIZE, $.lineHeight ?? DEFAULT_LINE_HEIGHT, $.verticalAlignment ?? DEFAULT_VERTICAL_ALIGNMENT);
|
81936
|
+
At.style.paddingTop = `${xt}px`, At.style.marginBottom = `${bt}px`;
|
81898
81937
|
})();
|
81899
81938
|
}, 0);
|
81900
81939
|
}), ot && !s) {
|
81901
|
-
if (
|
81902
|
-
const
|
81903
|
-
|
81940
|
+
if (At.innerText = ot, At.style.color = PLACEHOLDER_FONT_COLOR, $.dynamicFontSize) {
|
81941
|
+
const xt = await calculateDynamicFontSize(it(ot));
|
81942
|
+
At.style.fontSize = `${xt}pt`;
|
81904
81943
|
}
|
81905
|
-
|
81906
|
-
|
81944
|
+
At.addEventListener("focus", () => {
|
81945
|
+
At.innerText === ot && (At.innerText = "", At.style.color = $.fontColor ?? DEFAULT_FONT_COLOR);
|
81907
81946
|
});
|
81908
81947
|
}
|
81909
|
-
pt.appendChild(
|
81910
|
-
|
81911
|
-
const
|
81912
|
-
|
81948
|
+
pt.appendChild(At), _e === "designer" && setTimeout(() => {
|
81949
|
+
At.focus();
|
81950
|
+
const xt = window.getSelection(), bt = document.createRange();
|
81951
|
+
bt.selectNodeContents(At), bt.collapse(!1), xt == null || xt.removeAllRanges(), xt == null || xt.addRange(bt);
|
81913
81952
|
});
|
81914
81953
|
} else
|
81915
|
-
|
81954
|
+
At.innerHTML = s.split("").map((xt, bt) => `<span style="letter-spacing:${String(s).length === bt + 1 ? 0 : "inherit"};">${xt}</span>`).join(""), pt.appendChild(At);
|
81916
81955
|
}, textSchema = { pdf: pdfRender, ui: uiRender, propPanel }, text = textSchema;
|
81917
81956
|
textSchema.pdf, textSchema.ui, {
|
81918
81957
|
...textSchema.propPanel,
|
@@ -87116,7 +87155,7 @@ var parseStyle = function a(s) {
|
|
87116
87155
|
function uniqueHash(a, s) {
|
87117
87156
|
return murmur2("".concat(a.join("%")).concat(s));
|
87118
87157
|
}
|
87119
|
-
function Empty$
|
87158
|
+
function Empty$4() {
|
87120
87159
|
return null;
|
87121
87160
|
}
|
87122
87161
|
var STYLE_PREFIX = "style";
|
@@ -87176,7 +87215,7 @@ function useStyleRegister(a, s) {
|
|
87176
87215
|
return function(St) {
|
87177
87216
|
var Bt;
|
87178
87217
|
if (!ft || ct || !et)
|
87179
|
-
Bt = /* @__PURE__ */ reactExports.createElement(Empty$
|
87218
|
+
Bt = /* @__PURE__ */ reactExports.createElement(Empty$4, null);
|
87180
87219
|
else {
|
87181
87220
|
var Ot;
|
87182
87221
|
Bt = /* @__PURE__ */ reactExports.createElement("style", _extends$2({}, (Ot = {}, _defineProperty$c(Ot, ATTR_TOKEN, bt), _defineProperty$c(Ot, ATTR_MARK, Et), Ot), {
|
@@ -99318,7 +99357,7 @@ function getStatusClassNames(a, s, $) {
|
|
99318
99357
|
[`${a}-has-feedback`]: $
|
99319
99358
|
});
|
99320
99359
|
}
|
99321
|
-
const getMergedStatus = (a, s) => s || a, Empty$
|
99360
|
+
const getMergedStatus = (a, s) => s || a, Empty$3 = () => {
|
99322
99361
|
const [, a] = useToken$1(), $ = new TinyColor(a.colorBgBase).toHsl().l < 0.5 ? {
|
99323
99362
|
opacity: 0.65
|
99324
99363
|
} : {};
|
@@ -99367,7 +99406,7 @@ const getMergedStatus = (a, s) => s || a, Empty$2 = () => {
|
|
99367
99406
|
}), /* @__PURE__ */ reactExports.createElement("path", {
|
99368
99407
|
d: "M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"
|
99369
99408
|
}))));
|
99370
|
-
}, DefaultEmptyImg = Empty$
|
99409
|
+
}, DefaultEmptyImg = Empty$3, Simple = () => {
|
99371
99410
|
const [, a] = useToken$1(), {
|
99372
99411
|
colorFill: s,
|
99373
99412
|
colorFillTertiary: $,
|
@@ -99483,7 +99522,7 @@ var __rest$X = function(a, s) {
|
|
99483
99522
|
s.indexOf(_[_e]) < 0 && Object.prototype.propertyIsEnumerable.call(a, _[_e]) && ($[_[_e]] = a[_[_e]]);
|
99484
99523
|
return $;
|
99485
99524
|
};
|
99486
|
-
const defaultEmptyImg = /* @__PURE__ */ reactExports.createElement(DefaultEmptyImg, null), simpleEmptyImg = /* @__PURE__ */ reactExports.createElement(SimpleEmptyImg, null), Empty = (a) => {
|
99525
|
+
const defaultEmptyImg = /* @__PURE__ */ reactExports.createElement(DefaultEmptyImg, null), simpleEmptyImg = /* @__PURE__ */ reactExports.createElement(SimpleEmptyImg, null), Empty$1 = (a) => {
|
99487
99526
|
var {
|
99488
99527
|
className: s,
|
99489
99528
|
rootClassName: $,
|
@@ -99518,9 +99557,9 @@ const defaultEmptyImg = /* @__PURE__ */ reactExports.createElement(DefaultEmptyI
|
|
99518
99557
|
className: `${it}-footer`
|
99519
99558
|
}, nt)));
|
99520
99559
|
};
|
99521
|
-
Empty.PRESENTED_IMAGE_DEFAULT = defaultEmptyImg;
|
99522
|
-
Empty.PRESENTED_IMAGE_SIMPLE = simpleEmptyImg;
|
99523
|
-
const Empty$
|
99560
|
+
Empty$1.PRESENTED_IMAGE_DEFAULT = defaultEmptyImg;
|
99561
|
+
Empty$1.PRESENTED_IMAGE_SIMPLE = simpleEmptyImg;
|
99562
|
+
const Empty$2 = Empty$1, DefaultRenderEmpty = (a) => {
|
99524
99563
|
const {
|
99525
99564
|
componentName: s
|
99526
99565
|
} = a, {
|
@@ -99529,20 +99568,20 @@ const Empty$1 = Empty, DefaultRenderEmpty = (a) => {
|
|
99529
99568
|
switch (s) {
|
99530
99569
|
case "Table":
|
99531
99570
|
case "List":
|
99532
|
-
return /* @__PURE__ */ React$a.createElement(Empty$
|
99533
|
-
image: Empty$
|
99571
|
+
return /* @__PURE__ */ React$a.createElement(Empty$2, {
|
99572
|
+
image: Empty$2.PRESENTED_IMAGE_SIMPLE
|
99534
99573
|
});
|
99535
99574
|
case "Select":
|
99536
99575
|
case "TreeSelect":
|
99537
99576
|
case "Cascader":
|
99538
99577
|
case "Transfer":
|
99539
99578
|
case "Mentions":
|
99540
|
-
return /* @__PURE__ */ React$a.createElement(Empty$
|
99541
|
-
image: Empty$
|
99579
|
+
return /* @__PURE__ */ React$a.createElement(Empty$2, {
|
99580
|
+
image: Empty$2.PRESENTED_IMAGE_SIMPLE,
|
99542
99581
|
className: `${_}-small`
|
99543
99582
|
});
|
99544
99583
|
default:
|
99545
|
-
return /* @__PURE__ */ React$a.createElement(Empty$
|
99584
|
+
return /* @__PURE__ */ React$a.createElement(Empty$2, null);
|
99546
99585
|
}
|
99547
99586
|
}, DefaultRenderEmpty$1 = DefaultRenderEmpty, genItemStyle = (a) => {
|
99548
99587
|
const {
|
@@ -119173,10 +119212,10 @@ function getOffset$2(a) {
|
|
119173
119212
|
top: s.top + (window.pageYOffset || $.scrollTop) - ($.clientTop || document.body.clientTop || 0)
|
119174
119213
|
};
|
119175
119214
|
}
|
119176
|
-
var COMMON_PROPS = ["crossOrigin", "decoding", "draggable", "loading", "referrerPolicy", "sizes", "srcSet", "useMap", "alt"], PreviewGroupContext = /* @__PURE__ */ reactExports.createContext(null), uid$
|
119215
|
+
var COMMON_PROPS = ["crossOrigin", "decoding", "draggable", "loading", "referrerPolicy", "sizes", "srcSet", "useMap", "alt"], PreviewGroupContext = /* @__PURE__ */ reactExports.createContext(null), uid$4 = 0;
|
119177
119216
|
function useRegisterImage(a, s) {
|
119178
119217
|
var $ = reactExports.useState(function() {
|
119179
|
-
return uid$
|
119218
|
+
return uid$4 += 1, String(uid$4);
|
119180
119219
|
}), _ = _slicedToArray$e($, 1), _e = _[0], tt = reactExports.useContext(PreviewGroupContext), nt = {
|
119181
119220
|
data: s,
|
119182
119221
|
canPreview: a
|
@@ -129568,8 +129607,8 @@ function FilterDropdown(a) {
|
|
129568
129607
|
else if (tt.filterDropdown)
|
129569
129608
|
Vt = tt.filterDropdown;
|
129570
129609
|
else {
|
129571
|
-
const ar = Ot() || [], Jt = () => (tt.filters || []).length === 0 ? /* @__PURE__ */ reactExports.createElement(Empty$
|
129572
|
-
image: Empty$
|
129610
|
+
const ar = Ot() || [], Jt = () => (tt.filters || []).length === 0 ? /* @__PURE__ */ reactExports.createElement(Empty$2, {
|
129611
|
+
image: Empty$2.PRESENTED_IMAGE_SIMPLE,
|
129573
129612
|
description: it.filterEmptyText,
|
129574
129613
|
imageStyle: {
|
129575
129614
|
height: 24
|
@@ -133549,7 +133588,7 @@ function upload(a) {
|
|
133549
133588
|
};
|
133550
133589
|
}
|
133551
133590
|
var now$1 = +/* @__PURE__ */ new Date(), index$3 = 0;
|
133552
|
-
function uid$
|
133591
|
+
function uid$3() {
|
133553
133592
|
return "rc-upload-".concat(now$1, "-").concat(++index$3);
|
133554
133593
|
}
|
133555
133594
|
const attrAccept = function(a, s) {
|
@@ -133612,7 +133651,7 @@ var traverseFileTree = function a(s, $, _) {
|
|
133612
133651
|
for (var _e = arguments.length, tt = new Array(_e), nt = 0; nt < _e; nt++)
|
133613
133652
|
tt[nt] = arguments[nt];
|
133614
133653
|
return _ = s.call.apply(s, [this].concat(tt)), _.state = {
|
133615
|
-
uid: uid$
|
133654
|
+
uid: uid$3()
|
133616
133655
|
}, _.reqs = {}, _.fileInput = void 0, _._isMounted = void 0, _.onChange = function(at) {
|
133617
133656
|
var ot = _.props, rt = ot.accept, st = ot.directory, lt = at.target.files, et = _toConsumableArray$d(lt).filter(function(it) {
|
133618
133657
|
return !st || attrAccept(it, rt);
|
@@ -133645,7 +133684,7 @@ var traverseFileTree = function a(s, $, _) {
|
|
133645
133684
|
}
|
133646
133685
|
}, _.uploadFiles = function(at) {
|
133647
133686
|
var ot = _toConsumableArray$d(at), rt = ot.map(function(st) {
|
133648
|
-
return st.uid = uid$
|
133687
|
+
return st.uid = uid$3(), _.processFile(st, ot);
|
133649
133688
|
});
|
133650
133689
|
Promise.all(rt).then(function(st) {
|
133651
133690
|
var lt = _.props.onBatchStart;
|
@@ -133778,7 +133817,7 @@ var traverseFileTree = function a(s, $, _) {
|
|
133778
133817
|
key: "reset",
|
133779
133818
|
value: function() {
|
133780
133819
|
this.setState({
|
133781
|
-
uid: uid$
|
133820
|
+
uid: uid$3()
|
133782
133821
|
});
|
133783
133822
|
}
|
133784
133823
|
}, {
|
@@ -135120,6 +135159,7 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
|
|
135120
135159
|
"schemas.text.max": "Max",
|
135121
135160
|
"schemas.text.fit": "Fit",
|
135122
135161
|
"schemas.text.dynamicFontSize": "Dynamic Font Size",
|
135162
|
+
"schemas.text.format": "Format",
|
135123
135163
|
"schemas.barcodes.barColor": "Bar Color",
|
135124
135164
|
"schemas.barcodes.includetext": "Include Text",
|
135125
135165
|
"schemas.table.alternateBackgroundColor": "Alternate Background Color",
|
@@ -135177,6 +135217,7 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
|
|
135177
135217
|
"schemas.text.max": "最大",
|
135178
135218
|
"schemas.text.fit": "适应",
|
135179
135219
|
"schemas.text.dynamicFontSize": "动态字体大小",
|
135220
|
+
"schemas.text.format": "格式",
|
135180
135221
|
"schemas.barcodes.barColor": "条码颜色",
|
135181
135222
|
"schemas.barcodes.includetext": "包括文本",
|
135182
135223
|
"schemas.table.alternateBackgroundColor": "交替背景颜色",
|
@@ -135234,6 +135275,7 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
|
|
135234
135275
|
"schemas.text.max": "最大",
|
135235
135276
|
"schemas.text.fit": "フィット",
|
135236
135277
|
"schemas.text.dynamicFontSize": "動的フォントサイズ",
|
135278
|
+
"schemas.text.format": "書式",
|
135237
135279
|
"schemas.barcodes.barColor": "バーの色",
|
135238
135280
|
"schemas.barcodes.includetext": "テキストを含める",
|
135239
135281
|
"schemas.table.alternateBackgroundColor": "交互の背景色",
|
@@ -135291,6 +135333,7 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
|
|
135291
135333
|
"schemas.text.max": "최대",
|
135292
135334
|
"schemas.text.fit": "맞춤",
|
135293
135335
|
"schemas.text.dynamicFontSize": "동적 폰트 크기",
|
135336
|
+
"schemas.text.format": "형식",
|
135294
135337
|
"schemas.barcodes.barColor": "바코드 색상",
|
135295
135338
|
"schemas.barcodes.includetext": "텍스트 포함",
|
135296
135339
|
"schemas.table.alternateBackgroundColor": "대체 배경색",
|
@@ -135348,6 +135391,7 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
|
|
135348
135391
|
"schemas.text.max": "الحد الأقصى",
|
135349
135392
|
"schemas.text.fit": "ملاءمة",
|
135350
135393
|
"schemas.text.dynamicFontSize": "حجم الخط الديناميكي",
|
135394
|
+
"schemas.text.format": "تنسيق",
|
135351
135395
|
"schemas.barcodes.barColor": "لون الشريط",
|
135352
135396
|
"schemas.barcodes.includetext": "تضمين النص",
|
135353
135397
|
"schemas.table.alternateBackgroundColor": "لون الخلفية البديل",
|
@@ -135405,6 +135449,7 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
|
|
135405
135449
|
"schemas.text.max": "สูงสุด",
|
135406
135450
|
"schemas.text.fit": "พอดี",
|
135407
135451
|
"schemas.text.dynamicFontSize": "ขนาดตัวอักษรแบบไดนามิก",
|
135452
|
+
"schemas.text.format": "รูปแบบ",
|
135408
135453
|
"schemas.barcodes.barColor": "สีบาร์",
|
135409
135454
|
"schemas.barcodes.includetext": "รวมข้อความ",
|
135410
135455
|
"schemas.table.alternateBackgroundColor": "สีพื้นหลังสลับกัน",
|
@@ -135462,6 +135507,7 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
|
|
135462
135507
|
"schemas.text.max": "Massimo",
|
135463
135508
|
"schemas.text.fit": "Adatta",
|
135464
135509
|
"schemas.text.dynamicFontSize": "Dimensione font dinamica",
|
135510
|
+
"schemas.text.format": "Formato",
|
135465
135511
|
"schemas.barcodes.barColor": "Colore barra",
|
135466
135512
|
"schemas.barcodes.includetext": "Includi testo",
|
135467
135513
|
"schemas.table.alternateBackgroundColor": "Colore di Sfondo Alternato",
|
@@ -135519,6 +135565,7 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
|
|
135519
135565
|
"schemas.text.max": "Maksimum",
|
135520
135566
|
"schemas.text.fit": "Dopasowanie",
|
135521
135567
|
"schemas.text.dynamicFontSize": "Dynamiczny rozmiar czcionki",
|
135568
|
+
"schemas.text.format": "Format",
|
135522
135569
|
"schemas.barcodes.barColor": "Kolor paska",
|
135523
135570
|
"schemas.barcodes.includetext": "Dołącz tekst",
|
135524
135571
|
"schemas.table.alternateBackgroundColor": "Alternatywny kolor tła",
|
@@ -135576,6 +135623,7 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
|
|
135576
135623
|
"schemas.text.max": "Max",
|
135577
135624
|
"schemas.text.fit": "Anpassen",
|
135578
135625
|
"schemas.text.dynamicFontSize": "Dynamische Schriftgröße",
|
135626
|
+
"schemas.text.format": "Format",
|
135579
135627
|
"schemas.barcodes.barColor": "Strichcodefarbe",
|
135580
135628
|
"schemas.barcodes.includetext": "Text anzeigen",
|
135581
135629
|
"schemas.table.alternateBackgroundColor": "Wechselnde Hintergrundfarbe",
|
@@ -135633,6 +135681,7 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
|
|
135633
135681
|
"schemas.text.max": "Máx",
|
135634
135682
|
"schemas.text.fit": "Ajustar",
|
135635
135683
|
"schemas.text.dynamicFontSize": "Tamaño de fuente dinámico",
|
135684
|
+
"schemas.text.format": "Formato",
|
135636
135685
|
"schemas.barcodes.barColor": "Color de la barra",
|
135637
135686
|
"schemas.barcodes.includetext": "Incluir texto",
|
135638
135687
|
"schemas.table.alternateBackgroundColor": "Color de fondo alternativo",
|
@@ -135657,7 +135706,7 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
|
|
135657
135706
|
fieldsList: "Liste des champs",
|
135658
135707
|
editField: "Éditer le champ",
|
135659
135708
|
type: "Type",
|
135660
|
-
errorOccurred: "
|
135709
|
+
errorOccurred: "Une erreur est survenue",
|
135661
135710
|
errorBulkUpdateFieldName: "Impossible de confirmer le changement car le nombre d'éléments a changé.",
|
135662
135711
|
commitBulkUpdateFieldName: "Confirmer les changements",
|
135663
135712
|
bulkUpdateFieldName: "Modifier les noms de champs en masse",
|
@@ -135690,6 +135739,7 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
|
|
135690
135739
|
"schemas.text.max": "Max",
|
135691
135740
|
"schemas.text.fit": "Ajustement",
|
135692
135741
|
"schemas.text.dynamicFontSize": "Taille de police dynamique",
|
135742
|
+
"schemas.text.format": "Format",
|
135693
135743
|
"schemas.barcodes.barColor": "Couleur de la barre",
|
135694
135744
|
"schemas.barcodes.includetext": "Inclure le texte",
|
135695
135745
|
"schemas.table.alternateBackgroundColor": "Couleur de fond alternative",
|
@@ -142209,11 +142259,11 @@ var _ie8DomDefine = !require_descriptors() && !require_fails()(function() {
|
|
142209
142259
|
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)))
|
142210
142260
|
return _;
|
142211
142261
|
throw TypeError("Can't convert object to primitive value");
|
142212
|
-
}, anObject$
|
142262
|
+
}, anObject$3 = _anObject, IE8_DOM_DEFINE$1 = _ie8DomDefine, toPrimitive$3 = _toPrimitive$5, dP$3 = Object.defineProperty;
|
142213
142263
|
_objectDp.f = require_descriptors() ? Object.defineProperty : function a(s, $, _) {
|
142214
|
-
if (anObject$
|
142264
|
+
if (anObject$3(s), $ = toPrimitive$3($, !0), anObject$3(_), IE8_DOM_DEFINE$1)
|
142215
142265
|
try {
|
142216
|
-
return dP$
|
142266
|
+
return dP$3(s, $, _);
|
142217
142267
|
} catch {
|
142218
142268
|
}
|
142219
142269
|
if ("get" in _ || "set" in _)
|
@@ -142227,14 +142277,14 @@ var _propertyDesc = function(a, s) {
|
|
142227
142277
|
writable: !(a & 4),
|
142228
142278
|
value: s
|
142229
142279
|
};
|
142230
|
-
}, dP$
|
142231
|
-
return dP$
|
142280
|
+
}, dP$2 = _objectDp, createDesc$2 = _propertyDesc, _hide = require_descriptors() ? function(a, s, $) {
|
142281
|
+
return dP$2.f(a, s, createDesc$2(1, $));
|
142232
142282
|
} : function(a, s, $) {
|
142233
142283
|
return a[s] = $, a;
|
142234
142284
|
}, hasOwnProperty = {}.hasOwnProperty, _has = function(a, s) {
|
142235
142285
|
return hasOwnProperty.call(a, s);
|
142236
|
-
}, global$4 = _globalExports, core$2 = _coreExports, ctx = _ctx, hide$1 = _hide, has$4 = _has, PROTOTYPE$
|
142237
|
-
var _ = a & $export$5.F, _e = a & $export$5.G, tt = a & $export$5.S, nt = a & $export$5.P, at = a & $export$5.B, ot = a & $export$5.W, rt = _e ? core$2 : core$2[s] || (core$2[s] = {}), st = rt[PROTOTYPE$
|
142286
|
+
}, global$4 = _globalExports, core$2 = _coreExports, ctx = _ctx, hide$1 = _hide, has$4 = _has, PROTOTYPE$2 = "prototype", $export$5 = function(a, s, $) {
|
142287
|
+
var _ = a & $export$5.F, _e = a & $export$5.G, tt = a & $export$5.S, nt = a & $export$5.P, at = a & $export$5.B, ot = a & $export$5.W, rt = _e ? core$2 : core$2[s] || (core$2[s] = {}), st = rt[PROTOTYPE$2], lt = _e ? global$4 : tt ? global$4[s] : (global$4[s] || {})[PROTOTYPE$2], et, it, ut;
|
142238
142288
|
_e && ($ = s);
|
142239
142289
|
for (et in $)
|
142240
142290
|
it = !_ && lt && lt[et] !== void 0, !(it && has$4(rt, et)) && (ut = it ? lt[et] : $[et], rt[et] = _e && typeof lt[et] != "function" ? $[et] : at && it ? ctx(ut, global$4) : ot && lt[et] == ut ? function(ft) {
|
@@ -142252,7 +142302,7 @@ var _propertyDesc = function(a, s) {
|
|
142252
142302
|
}
|
142253
142303
|
return ft.apply(this, arguments);
|
142254
142304
|
};
|
142255
|
-
return ht[PROTOTYPE$
|
142305
|
+
return ht[PROTOTYPE$2] = ft[PROTOTYPE$2], ht;
|
142256
142306
|
}(ut) : nt && typeof ut == "function" ? ctx(Function.call, ut) : ut, nt && ((rt.virtual || (rt.virtual = {}))[et] = ut, a & $export$5.R && st && !st[et] && hide$1(st, et, ut)));
|
142257
142307
|
};
|
142258
142308
|
$export$5.F = 1;
|
@@ -142346,22 +142396,14 @@ var _shared = { exports: {} }, _library = !0, core$1 = _coreExports, global$3 =
|
|
142346
142396
|
});
|
142347
142397
|
var _sharedExports = _shared.exports, id$1 = 0, px = Math.random(), _uid = function(a) {
|
142348
142398
|
return "Symbol(".concat(a === void 0 ? "" : a, ")_", (++id$1 + px).toString(36));
|
142349
|
-
},
|
142350
|
-
|
142351
|
-
|
142352
|
-
return _sharedKey;
|
142353
|
-
hasRequired_sharedKey = 1;
|
142354
|
-
var a = _sharedExports("keys"), s = _uid;
|
142355
|
-
return _sharedKey = function($) {
|
142356
|
-
return a[$] || (a[$] = s($));
|
142357
|
-
}, _sharedKey;
|
142358
|
-
}
|
142359
|
-
var _objectKeysInternal, hasRequired_objectKeysInternal;
|
142399
|
+
}, shared$1 = _sharedExports("keys"), uid$2 = _uid, _sharedKey = function(a) {
|
142400
|
+
return shared$1[a] || (shared$1[a] = uid$2(a));
|
142401
|
+
}, _objectKeysInternal, hasRequired_objectKeysInternal;
|
142360
142402
|
function require_objectKeysInternal() {
|
142361
142403
|
if (hasRequired_objectKeysInternal)
|
142362
142404
|
return _objectKeysInternal;
|
142363
142405
|
hasRequired_objectKeysInternal = 1;
|
142364
|
-
var a = _has, s = _toIobject, $ = require_arrayIncludes()(!1), _ =
|
142406
|
+
var a = _has, s = _toIobject, $ = require_arrayIncludes()(!1), _ = _sharedKey("IE_PROTO");
|
142365
142407
|
return _objectKeysInternal = function(_e, tt) {
|
142366
142408
|
var nt = s(_e), at = 0, ot = [], rt;
|
142367
142409
|
for (rt in nt)
|
@@ -142371,16 +142413,12 @@ function require_objectKeysInternal() {
|
|
142371
142413
|
return ot;
|
142372
142414
|
}, _objectKeysInternal;
|
142373
142415
|
}
|
142374
|
-
var _enumBugKeys,
|
142375
|
-
function require_enumBugKeys() {
|
142376
|
-
return hasRequired_enumBugKeys || (hasRequired_enumBugKeys = 1, _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")), _enumBugKeys;
|
142377
|
-
}
|
142378
|
-
var _objectKeys, hasRequired_objectKeys;
|
142416
|
+
var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","), _objectKeys, hasRequired_objectKeys;
|
142379
142417
|
function require_objectKeys() {
|
142380
142418
|
if (hasRequired_objectKeys)
|
142381
142419
|
return _objectKeys;
|
142382
142420
|
hasRequired_objectKeys = 1;
|
142383
|
-
var a = require_objectKeysInternal(), s =
|
142421
|
+
var a = require_objectKeysInternal(), s = _enumBugKeys;
|
142384
142422
|
return _objectKeys = Object.keys || function(_) {
|
142385
142423
|
return a(_, s);
|
142386
142424
|
}, _objectKeys;
|
@@ -143092,20 +143130,12 @@ var _default$f = /* @__PURE__ */ function() {
|
|
143092
143130
|
var _ = String(defined(s)), _e = toInteger($), tt = _.length, nt, at;
|
143093
143131
|
return _e < 0 || _e >= tt ? a ? "" : void 0 : (nt = _.charCodeAt(_e), nt < 55296 || nt > 56319 || _e + 1 === tt || (at = _.charCodeAt(_e + 1)) < 56320 || at > 57343 ? a ? _.charAt(_e) : nt : a ? _.slice(_e, _e + 2) : (nt - 55296 << 10) + (at - 56320) + 65536);
|
143094
143132
|
};
|
143095
|
-
}, _redefine = _hide, _iterators = {}, _objectDps,
|
143096
|
-
|
143097
|
-
|
143098
|
-
|
143099
|
-
|
143100
|
-
|
143101
|
-
return _objectDps = require_descriptors() ? Object.defineProperties : function(_e, tt) {
|
143102
|
-
s(_e);
|
143103
|
-
for (var nt = $(tt), at = nt.length, ot = 0, rt; at > ot; )
|
143104
|
-
a.f(_e, rt = nt[ot++], tt[rt]);
|
143105
|
-
return _e;
|
143106
|
-
}, _objectDps;
|
143107
|
-
}
|
143108
|
-
var _html, hasRequired_html;
|
143133
|
+
}, _redefine = _hide, _iterators = {}, dP$1 = _objectDp, anObject$2 = _anObject, getKeys$2 = require_objectKeys(), _objectDps = require_descriptors() ? Object.defineProperties : function a(s, $) {
|
143134
|
+
anObject$2(s);
|
143135
|
+
for (var _ = getKeys$2($), _e = _.length, tt = 0, nt; _e > tt; )
|
143136
|
+
dP$1.f(s, nt = _[tt++], $[nt]);
|
143137
|
+
return s;
|
143138
|
+
}, _html, hasRequired_html;
|
143109
143139
|
function require_html() {
|
143110
143140
|
if (hasRequired_html)
|
143111
143141
|
return _html;
|
@@ -143113,24 +143143,16 @@ function require_html() {
|
|
143113
143143
|
var a = _globalExports.document;
|
143114
143144
|
return _html = a && a.documentElement, _html;
|
143115
143145
|
}
|
143116
|
-
var
|
143117
|
-
function
|
143118
|
-
|
143119
|
-
|
143120
|
-
|
143121
|
-
|
143122
|
-
|
143123
|
-
|
143124
|
-
|
143125
|
-
|
143126
|
-
return nt();
|
143127
|
-
};
|
143128
|
-
return _objectCreate = Object.create || function(ot, rt) {
|
143129
|
-
var st;
|
143130
|
-
return ot !== null ? (_e[tt] = a(ot), st = new _e(), _e[tt] = null, st[_] = ot) : st = nt(), rt === void 0 ? st : s(st, rt);
|
143131
|
-
}, _objectCreate;
|
143132
|
-
}
|
143133
|
-
var _wks = { exports: {} }, store = _sharedExports("wks"), uid$1 = _uid, Symbol$1 = _globalExports.Symbol, USE_SYMBOL = typeof Symbol$1 == "function", $exports = _wks.exports = function(a) {
|
143146
|
+
var anObject$1 = _anObject, dPs = _objectDps, enumBugKeys = _enumBugKeys, IE_PROTO = _sharedKey("IE_PROTO"), Empty = function() {
|
143147
|
+
}, PROTOTYPE$1 = "prototype", createDict = function() {
|
143148
|
+
var a = require_domCreate()("iframe"), s = enumBugKeys.length, $ = "<", _ = ">", _e;
|
143149
|
+
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--; )
|
143150
|
+
delete createDict[PROTOTYPE$1][enumBugKeys[s]];
|
143151
|
+
return createDict();
|
143152
|
+
}, _objectCreate = Object.create || function a(s, $) {
|
143153
|
+
var _;
|
143154
|
+
return s !== null ? (Empty[PROTOTYPE$1] = anObject$1(s), _ = new Empty(), Empty[PROTOTYPE$1] = null, _[IE_PROTO] = s) : _ = createDict(), $ === void 0 ? _ : dPs(_, $);
|
143155
|
+
}, _wks = { exports: {} }, store = _sharedExports("wks"), uid$1 = _uid, Symbol$1 = _globalExports.Symbol, USE_SYMBOL = typeof Symbol$1 == "function", $exports = _wks.exports = function(a) {
|
143134
143156
|
return store[a] || (store[a] = USE_SYMBOL && Symbol$1[a] || (USE_SYMBOL ? Symbol$1 : uid$1)("Symbol." + a));
|
143135
143157
|
};
|
143136
143158
|
$exports.store = store;
|
@@ -143141,7 +143163,7 @@ function require_iterCreate() {
|
|
143141
143163
|
if (hasRequired_iterCreate)
|
143142
143164
|
return _iterCreate;
|
143143
143165
|
hasRequired_iterCreate = 1;
|
143144
|
-
var a =
|
143166
|
+
var a = _objectCreate, s = _propertyDesc, $ = _setToStringTag, _ = {};
|
143145
143167
|
return _hide(_, _wksExports("iterator"), function() {
|
143146
143168
|
return this;
|
143147
143169
|
}), _iterCreate = function(_e, tt, nt) {
|
@@ -143153,7 +143175,7 @@ function require_objectGpo() {
|
|
143153
143175
|
if (hasRequired_objectGpo)
|
143154
143176
|
return _objectGpo;
|
143155
143177
|
hasRequired_objectGpo = 1;
|
143156
|
-
var a = _has, s = require_toObject(), $ =
|
143178
|
+
var a = _has, s = require_toObject(), $ = _sharedKey("IE_PROTO"), _ = Object.prototype;
|
143157
143179
|
return _objectGpo = Object.getPrototypeOf || function(_e) {
|
143158
143180
|
return _e = s(_e), a(_e, $) ? _e[$] : typeof _e.constructor == "function" && _e instanceof _e.constructor ? _e.constructor.prototype : _e instanceof Object ? _ : null;
|
143159
143181
|
}, _objectGpo;
|
@@ -143274,7 +143296,7 @@ var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esMo
|
|
143274
143296
|
return s;
|
143275
143297
|
}, cof = require_cof(), _isArray = Array.isArray || function a(s) {
|
143276
143298
|
return cof(s) == "Array";
|
143277
|
-
}, _objectGopnExt = {}, _objectGopn = {}, $keys$1 = require_objectKeysInternal(), hiddenKeys =
|
143299
|
+
}, _objectGopnExt = {}, _objectGopn = {}, $keys$1 = require_objectKeysInternal(), hiddenKeys = _enumBugKeys.concat("length", "prototype");
|
143278
143300
|
_objectGopn.f = Object.getOwnPropertyNames || function a(s) {
|
143279
143301
|
return $keys$1(s, hiddenKeys);
|
143280
143302
|
};
|
@@ -143298,7 +143320,7 @@ _objectGopd.f = require_descriptors() ? gOPD$1 : function a(s, $) {
|
|
143298
143320
|
if (has$1(s, $))
|
143299
143321
|
return createDesc$1(!pIE.f.call(s, $), s[$]);
|
143300
143322
|
};
|
143301
|
-
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 =
|
143323
|
+
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() {
|
143302
143324
|
return _create$1(dP({}, "a", {
|
143303
143325
|
get: function() {
|
143304
143326
|
return dP(this, "a", { value: 7 }).a;
|
@@ -143473,7 +143495,7 @@ function require_setProto() {
|
|
143473
143495
|
var $export$1 = _export;
|
143474
143496
|
$export$1($export$1.S, "Object", { setPrototypeOf: require_setProto().set });
|
143475
143497
|
var setPrototypeOf$1 = _coreExports.Object.setPrototypeOf, setPrototypeOf = { default: setPrototypeOf$1, __esModule: !0 }, $export = _export;
|
143476
|
-
$export($export.S, "Object", { create:
|
143498
|
+
$export($export.S, "Object", { create: _objectCreate });
|
143477
143499
|
var $Object = _coreExports.Object, create$1 = function a(s, $) {
|
143478
143500
|
return $Object.create(s, $);
|
143479
143501
|
}, 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);
|
@@ -151749,12 +151771,50 @@ const FormRender = withProvider(FormCore, defaultWidgets), svgBaseProp = {
|
|
151749
151771
|
return reactExports.useEffect(() => (_.current && (_.current.innerHTML = "", s({ ...$, rootElement: _.current })), () => {
|
151750
151772
|
_.current && (_.current.innerHTML = "");
|
151751
151773
|
}), [a.activeSchema]), /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: _ });
|
151752
|
-
}, WidgetRenderer$1 = WidgetRenderer,
|
151774
|
+
}, WidgetRenderer$1 = WidgetRenderer, ButtonGroupWidget = (a) => {
|
151775
|
+
const { activeElements: s, changeSchemas: $, schemas: _, schema: _e } = a, tt = (ot) => {
|
151776
|
+
const rt = ot.key, st = ot.type, lt = s.map((it) => it.id), et = _.filter((it) => lt.includes(it.id));
|
151777
|
+
$(
|
151778
|
+
et.map((it) => {
|
151779
|
+
const ut = it[rt] ?? !1, ft = st === "boolean" ? !ut : ot.value;
|
151780
|
+
return { key: rt, value: ft, schemaId: it.id };
|
151781
|
+
})
|
151782
|
+
);
|
151783
|
+
}, nt = (ot) => {
|
151784
|
+
const rt = ot.key, st = ot.type;
|
151785
|
+
let lt = !1;
|
151786
|
+
const et = s.map((ut) => ut.id);
|
151787
|
+
return _.filter((ut) => et.includes(ut.id)).forEach((ut) => {
|
151788
|
+
lt = st === "boolean" ? ut[rt] ?? !1 : ut[rt] === ot.value;
|
151789
|
+
}), lt;
|
151790
|
+
}, at = (ot) => {
|
151791
|
+
const rt = `data:image/svg+xml;utf8,${encodeURIComponent(ot)}`;
|
151792
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("img", { width: 17, height: 17, src: rt });
|
151793
|
+
};
|
151794
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Form$3.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button$2.Group, { children: _e.buttons.map((ot, rt) => {
|
151795
|
+
const st = nt(ot);
|
151796
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
151797
|
+
Button$2,
|
151798
|
+
{
|
151799
|
+
type: st ? "primary" : void 0,
|
151800
|
+
ghost: st,
|
151801
|
+
onClick: () => tt(ot),
|
151802
|
+
style: {
|
151803
|
+
padding: 7,
|
151804
|
+
zIndex: st ? 2 : 0
|
151805
|
+
},
|
151806
|
+
icon: at(ot.icon)
|
151807
|
+
},
|
151808
|
+
rt
|
151809
|
+
);
|
151810
|
+
}) }) });
|
151811
|
+
}, ButtonGroupWidget$1 = ButtonGroupWidget, { Text: Text$2 } = Typography$1, DetailView = (a) => {
|
151753
151812
|
const { token: s } = theme.useToken(), { size: $, changeSchemas: _, deselectSchema: _e, activeSchema: tt, activeElements: nt } = a, at = useForm(), ot = reactExports.useContext(I18nContext), rt = reactExports.useContext(PluginsRegistry), st = reactExports.useContext(OptionsContext), [lt, et] = reactExports.useState({});
|
151754
151813
|
reactExports.useEffect(() => {
|
151755
151814
|
const pt = {
|
151756
151815
|
AlignWidget: (mt) => /* @__PURE__ */ jsxRuntimeExports.jsx(AlignWidget$1, { ...mt, ...a, options: st }),
|
151757
|
-
Divider: () => /* @__PURE__ */ jsxRuntimeExports.jsx(Divider$1, { style: { marginTop: s.marginXS, marginBottom: s.marginXS } })
|
151816
|
+
Divider: () => /* @__PURE__ */ jsxRuntimeExports.jsx(Divider$1, { style: { marginTop: s.marginXS, marginBottom: s.marginXS } }),
|
151817
|
+
ButtonGroup: (mt) => /* @__PURE__ */ jsxRuntimeExports.jsx(ButtonGroupWidget$1, { ...mt, ...a, options: st })
|
151758
151818
|
};
|
151759
151819
|
for (const mt of Object.values(rt)) {
|
151760
151820
|
const ct = (mt == null ? void 0 : mt.propPanel.widgets) || {};
|