@arthurzakharov/ui-kit 1.8.4 → 1.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -71,12 +71,12 @@ function Ve() {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function R(f) {
|
|
75
75
|
return $(f) === u;
|
|
76
76
|
}
|
|
77
77
|
return I.AsyncMode = v, I.ConcurrentMode = u, I.ContextConsumer = o, I.ContextProvider = c, I.Element = a, I.ForwardRef = l, I.Fragment = t, I.Lazy = P, I.Memo = b, I.Portal = r, I.Profiler = i, I.StrictMode = n, I.Suspense = d, I.isAsyncMode = function(f) {
|
|
78
|
-
return
|
|
79
|
-
}, I.isConcurrentMode =
|
|
78
|
+
return R(f) || $(f) === v;
|
|
79
|
+
}, I.isConcurrentMode = R, I.isContextConsumer = function(f) {
|
|
80
80
|
return $(f) === o;
|
|
81
81
|
}, I.isContextProvider = function(f) {
|
|
82
82
|
return $(f) === c;
|
|
@@ -111,7 +111,7 @@ function Xe() {
|
|
|
111
111
|
return typeof p == "string" || typeof p == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
112
112
|
p === t || p === u || p === i || p === n || p === d || p === m || typeof p == "object" && p !== null && (p.$$typeof === P || p.$$typeof === b || p.$$typeof === c || p.$$typeof === o || p.$$typeof === l || p.$$typeof === x || p.$$typeof === g || p.$$typeof === F || p.$$typeof === _);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function R(p) {
|
|
115
115
|
if (typeof p == "object" && p !== null) {
|
|
116
116
|
var G = p.$$typeof;
|
|
117
117
|
switch (G) {
|
|
@@ -143,47 +143,47 @@ function Xe() {
|
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
var f = v, Z = u, te = o, K = c,
|
|
146
|
+
var f = v, Z = u, te = o, K = c, A = a, w = l, M = t, N = P, y = b, Y = r, ne = i, V = n, X = d, q = !1;
|
|
147
147
|
function J(p) {
|
|
148
|
-
return q || (q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), s(p) ||
|
|
148
|
+
return q || (q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), s(p) || R(p) === v;
|
|
149
149
|
}
|
|
150
150
|
function s(p) {
|
|
151
|
-
return
|
|
151
|
+
return R(p) === u;
|
|
152
152
|
}
|
|
153
153
|
function h(p) {
|
|
154
|
-
return
|
|
154
|
+
return R(p) === o;
|
|
155
155
|
}
|
|
156
156
|
function E(p) {
|
|
157
|
-
return
|
|
157
|
+
return R(p) === c;
|
|
158
158
|
}
|
|
159
159
|
function C(p) {
|
|
160
160
|
return typeof p == "object" && p !== null && p.$$typeof === a;
|
|
161
161
|
}
|
|
162
162
|
function T(p) {
|
|
163
|
-
return
|
|
163
|
+
return R(p) === l;
|
|
164
164
|
}
|
|
165
165
|
function D(p) {
|
|
166
|
-
return
|
|
166
|
+
return R(p) === t;
|
|
167
167
|
}
|
|
168
168
|
function S(p) {
|
|
169
|
-
return
|
|
169
|
+
return R(p) === P;
|
|
170
170
|
}
|
|
171
171
|
function O(p) {
|
|
172
|
-
return
|
|
172
|
+
return R(p) === b;
|
|
173
173
|
}
|
|
174
174
|
function k(p) {
|
|
175
|
-
return
|
|
175
|
+
return R(p) === r;
|
|
176
176
|
}
|
|
177
177
|
function W(p) {
|
|
178
|
-
return
|
|
178
|
+
return R(p) === i;
|
|
179
179
|
}
|
|
180
180
|
function j(p) {
|
|
181
|
-
return
|
|
181
|
+
return R(p) === n;
|
|
182
182
|
}
|
|
183
183
|
function H(p) {
|
|
184
|
-
return
|
|
184
|
+
return R(p) === d;
|
|
185
185
|
}
|
|
186
|
-
L.AsyncMode = f, L.ConcurrentMode = Z, L.ContextConsumer = te, L.ContextProvider = K, L.Element =
|
|
186
|
+
L.AsyncMode = f, L.ConcurrentMode = Z, L.ContextConsumer = te, L.ContextProvider = K, L.Element = A, L.ForwardRef = w, L.Fragment = M, L.Lazy = N, L.Memo = y, L.Portal = Y, L.Profiler = ne, L.StrictMode = V, L.Suspense = X, L.isAsyncMode = J, L.isConcurrentMode = s, L.isContextConsumer = h, L.isContextProvider = E, L.isElement = C, L.isForwardRef = T, L.isFragment = D, L.isLazy = S, L.isMemo = O, L.isPortal = k, L.isProfiler = W, L.isStrictMode = j, L.isSuspense = H, L.isValidElementType = $, L.typeOf = R;
|
|
187
187
|
})()), L;
|
|
188
188
|
}
|
|
189
189
|
var Se;
|
|
@@ -243,14 +243,14 @@ function _e() {
|
|
|
243
243
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
244
244
|
return he = e, he;
|
|
245
245
|
}
|
|
246
|
-
var pe,
|
|
246
|
+
var pe, Re;
|
|
247
247
|
function $e() {
|
|
248
|
-
return
|
|
248
|
+
return Re || (Re = 1, pe = Function.call.bind(Object.prototype.hasOwnProperty)), pe;
|
|
249
249
|
}
|
|
250
|
-
var ve,
|
|
250
|
+
var ve, Ae;
|
|
251
251
|
function Ze() {
|
|
252
|
-
if (
|
|
253
|
-
|
|
252
|
+
if (Ae) return ve;
|
|
253
|
+
Ae = 1;
|
|
254
254
|
var e = function() {
|
|
255
255
|
};
|
|
256
256
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -331,13 +331,13 @@ function Ge() {
|
|
|
331
331
|
symbol: g("symbol"),
|
|
332
332
|
any: F(),
|
|
333
333
|
arrayOf: $,
|
|
334
|
-
element:
|
|
334
|
+
element: R(),
|
|
335
335
|
elementType: f(),
|
|
336
336
|
instanceOf: Z,
|
|
337
337
|
node: w(),
|
|
338
338
|
objectOf: K,
|
|
339
339
|
oneOf: te,
|
|
340
|
-
oneOfType:
|
|
340
|
+
oneOfType: A,
|
|
341
341
|
shape: N,
|
|
342
342
|
exact: y
|
|
343
343
|
};
|
|
@@ -406,7 +406,7 @@ function Ge() {
|
|
|
406
406
|
}
|
|
407
407
|
return x(h);
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function R() {
|
|
410
410
|
function s(h, E, C, T, D) {
|
|
411
411
|
var S = h[E];
|
|
412
412
|
if (!o(S)) {
|
|
@@ -472,7 +472,7 @@ function Ge() {
|
|
|
472
472
|
}
|
|
473
473
|
return x(h);
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function A(s) {
|
|
476
476
|
if (!Array.isArray(s))
|
|
477
477
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), c;
|
|
478
478
|
for (var h = 0; h < s.length; h++) {
|
|
@@ -881,10 +881,10 @@ z.prototype._fromData = function(e, a, r) {
|
|
|
881
881
|
z.prototype._toSVG = function() {
|
|
882
882
|
var e = this, a = this._data, r = this._canvas, t = Math.max(window.devicePixelRatio || 1, 1), n = 0, i = 0, c = r.width / t, o = r.height / t, v = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
883
883
|
v.setAttributeNS(null, "width", r.width), v.setAttributeNS(null, "height", r.height), this._fromData(a, function(g, F, $) {
|
|
884
|
-
var
|
|
884
|
+
var R = document.createElement("path");
|
|
885
885
|
if (!isNaN(g.control1.x) && !isNaN(g.control1.y) && !isNaN(g.control2.x) && !isNaN(g.control2.y)) {
|
|
886
886
|
var f = "M " + g.startPoint.x.toFixed(3) + "," + g.startPoint.y.toFixed(3) + " " + ("C " + g.control1.x.toFixed(3) + "," + g.control1.y.toFixed(3) + " ") + (g.control2.x.toFixed(3) + "," + g.control2.y.toFixed(3) + " ") + (g.endPoint.x.toFixed(3) + "," + g.endPoint.y.toFixed(3));
|
|
887
|
-
|
|
887
|
+
R.setAttribute("d", f), R.setAttribute("stroke-width", (F.end * 2.25).toFixed(3)), R.setAttribute("stroke", $), R.setAttribute("fill", "none"), R.setAttribute("stroke-linecap", "round"), v.appendChild(R);
|
|
888
888
|
}
|
|
889
889
|
}, function(g) {
|
|
890
890
|
var F = document.createElement("circle"), $ = typeof e.dotSize == "function" ? e.dotSize() : e.dotSize;
|
|
@@ -932,8 +932,8 @@ function at() {
|
|
|
932
932
|
return t.m = r, t.c = n, t.p = "", t(0);
|
|
933
933
|
})([function(r, t) {
|
|
934
934
|
function n(u) {
|
|
935
|
-
var l = u.getContext("2d"), d = u.width, m = u.height, b = l.getImageData(0, 0, d, m).data, P = o(!0, d, m, b), _ = o(!1, d, m, b), x = v(!0, d, m, b), g = v(!1, d, m, b), F = g - x + 1, $ = _ - P + 1,
|
|
936
|
-
return u.width = F, u.height = $, l.clearRect(0, 0, F, $), l.putImageData(
|
|
935
|
+
var l = u.getContext("2d"), d = u.width, m = u.height, b = l.getImageData(0, 0, d, m).data, P = o(!0, d, m, b), _ = o(!1, d, m, b), x = v(!0, d, m, b), g = v(!1, d, m, b), F = g - x + 1, $ = _ - P + 1, R = l.getImageData(x, P, F, $);
|
|
936
|
+
return u.width = F, u.height = $, l.clearRect(0, 0, F, $), l.putImageData(R, 0, 0), u;
|
|
937
937
|
}
|
|
938
938
|
function i(u, l, d, m) {
|
|
939
939
|
return { red: m[4 * (d * l + u)], green: m[4 * (d * l + u) + 1], blue: m[4 * (d * l + u) + 2], alpha: m[4 * (d * l + u) + 3] };
|
|
@@ -969,43 +969,43 @@ function it() {
|
|
|
969
969
|
var v = {};
|
|
970
970
|
return o.m = c, o.c = v, o.p = "", o(0);
|
|
971
971
|
})([function(c, o, v) {
|
|
972
|
-
function u(
|
|
973
|
-
return
|
|
972
|
+
function u(A) {
|
|
973
|
+
return A && A.__esModule ? A : { default: A };
|
|
974
974
|
}
|
|
975
|
-
function l(
|
|
975
|
+
function l(A, w) {
|
|
976
976
|
var M = {};
|
|
977
|
-
for (var N in
|
|
977
|
+
for (var N in A) w.indexOf(N) >= 0 || Object.prototype.hasOwnProperty.call(A, N) && (M[N] = A[N]);
|
|
978
978
|
return M;
|
|
979
979
|
}
|
|
980
|
-
function d(
|
|
981
|
-
if (!(
|
|
980
|
+
function d(A, w) {
|
|
981
|
+
if (!(A instanceof w)) throw new TypeError("Cannot call a class as a function");
|
|
982
982
|
}
|
|
983
|
-
function m(
|
|
984
|
-
if (!
|
|
985
|
-
return !w || typeof w != "object" && typeof w != "function" ?
|
|
983
|
+
function m(A, w) {
|
|
984
|
+
if (!A) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
985
|
+
return !w || typeof w != "object" && typeof w != "function" ? A : w;
|
|
986
986
|
}
|
|
987
|
-
function b(
|
|
987
|
+
function b(A, w) {
|
|
988
988
|
if (typeof w != "function" && w !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof w);
|
|
989
|
-
|
|
989
|
+
A.prototype = Object.create(w && w.prototype, { constructor: { value: A, enumerable: !1, writable: !0, configurable: !0 } }), w && (Object.setPrototypeOf ? Object.setPrototypeOf(A, w) : A.__proto__ = w);
|
|
990
990
|
}
|
|
991
991
|
Object.defineProperty(o, "__esModule", { value: !0 });
|
|
992
|
-
var P = Object.assign || function(
|
|
992
|
+
var P = Object.assign || function(A) {
|
|
993
993
|
for (var w = 1; w < arguments.length; w++) {
|
|
994
994
|
var M = arguments[w];
|
|
995
|
-
for (var N in M) Object.prototype.hasOwnProperty.call(M, N) && (
|
|
995
|
+
for (var N in M) Object.prototype.hasOwnProperty.call(M, N) && (A[N] = M[N]);
|
|
996
996
|
}
|
|
997
|
-
return
|
|
997
|
+
return A;
|
|
998
998
|
}, _ = /* @__PURE__ */ (function() {
|
|
999
|
-
function
|
|
999
|
+
function A(w, M) {
|
|
1000
1000
|
for (var N = 0; N < M.length; N++) {
|
|
1001
1001
|
var y = M[N];
|
|
1002
1002
|
y.enumerable = y.enumerable || !1, y.configurable = !0, "value" in y && (y.writable = !0), Object.defineProperty(w, y.key, y);
|
|
1003
1003
|
}
|
|
1004
1004
|
}
|
|
1005
1005
|
return function(w, M, N) {
|
|
1006
|
-
return M &&
|
|
1006
|
+
return M && A(w.prototype, M), N && A(w, N), w;
|
|
1007
1007
|
};
|
|
1008
|
-
})(), x = v(1), g = u(x), F = v(2), $ = u(F),
|
|
1008
|
+
})(), x = v(1), g = u(x), F = v(2), $ = u(F), R = v(3), f = u(R), Z = v(4), te = u(Z), K = (function(A) {
|
|
1009
1009
|
function w() {
|
|
1010
1010
|
var M, N, y, Y;
|
|
1011
1011
|
d(this, w);
|
|
@@ -1046,7 +1046,7 @@ function it() {
|
|
|
1046
1046
|
return y._sigPad.toData();
|
|
1047
1047
|
}, Y = N, m(y, Y);
|
|
1048
1048
|
}
|
|
1049
|
-
return b(w,
|
|
1049
|
+
return b(w, A), _(w, [{ key: "componentDidMount", value: function() {
|
|
1050
1050
|
this._sigPad = new f.default(this._canvas, this._excludeOurProps()), this._resizeCanvas(), this.on();
|
|
1051
1051
|
} }, { key: "componentWillUnmount", value: function() {
|
|
1052
1052
|
this.off();
|
|
@@ -1073,7 +1073,7 @@ function it() {
|
|
|
1073
1073
|
})(ce)), ce.exports;
|
|
1074
1074
|
}
|
|
1075
1075
|
var st = it();
|
|
1076
|
-
const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_7", ft = "_MainAuto_1sp4s_17", dt = "_MainManual_1sp4s_21", ht = "_Footer_1sp4s_27", pt = "_Header_1sp4s_37", vt = "_HeaderTitle_1sp4s_47", yt = "_HeaderManualDraw_1sp4s_52", mt = "_HeaderNotManualDraw_1sp4s_56", _t = "_HeaderReset_1sp4s_60", gt = "_ManualPanel_1sp4s_71", bt = "_ManualPanelButton_1sp4s_82", xt = "_AutoPanel_1sp4s_97", Pt = "_AutoPanelImage_1sp4s_104", wt = "_AutoPanelLoader_1sp4s_110", Et = "_AutoPanelButton_1sp4s_117", Tt = "_AutoPanelLabel_1sp4s_121", St = "_AutoPanelLabelIcon_1sp4s_129", Ct = "_AutoPanelLabelText_1sp4s_135", Ot = "_AutoPanelError_1sp4s_142",
|
|
1076
|
+
const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_7", ft = "_MainAuto_1sp4s_17", dt = "_MainManual_1sp4s_21", ht = "_Footer_1sp4s_27", pt = "_Header_1sp4s_37", vt = "_HeaderTitle_1sp4s_47", yt = "_HeaderManualDraw_1sp4s_52", mt = "_HeaderNotManualDraw_1sp4s_56", _t = "_HeaderReset_1sp4s_60", gt = "_ManualPanel_1sp4s_71", bt = "_ManualPanelButton_1sp4s_82", xt = "_AutoPanel_1sp4s_97", Pt = "_AutoPanelImage_1sp4s_104", wt = "_AutoPanelLoader_1sp4s_110", Et = "_AutoPanelButton_1sp4s_117", Tt = "_AutoPanelLabel_1sp4s_121", St = "_AutoPanelLabelIcon_1sp4s_129", Ct = "_AutoPanelLabelText_1sp4s_135", Ot = "_AutoPanelError_1sp4s_142", Rt = "_AutoPanelErrorTitle_1sp4s_151", B = {
|
|
1077
1077
|
Signature: ct,
|
|
1078
1078
|
Main: lt,
|
|
1079
1079
|
MainAuto: ft,
|
|
@@ -1094,7 +1094,7 @@ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_
|
|
|
1094
1094
|
AutoPanelLabelIcon: St,
|
|
1095
1095
|
AutoPanelLabelText: Ct,
|
|
1096
1096
|
AutoPanelError: Ot,
|
|
1097
|
-
AutoPanelErrorTitle:
|
|
1097
|
+
AutoPanelErrorTitle: Rt
|
|
1098
1098
|
}, Nt = ({
|
|
1099
1099
|
// Signature props
|
|
1100
1100
|
auto: e,
|
|
@@ -1105,7 +1105,7 @@ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_
|
|
|
1105
1105
|
// Base props
|
|
1106
1106
|
...i
|
|
1107
1107
|
}) => {
|
|
1108
|
-
const c = ze(null), [o, v] = oe(null), [u, l] = oe(a ? "manual" : "auto"), [d, m] = oe(""), [b, P] = oe(!1), { width: _ = 0, height: x = 0 } = Ne({ ref: c, box: "border-box" }), g = u === "auto" ? e ? "auto-generated" : "auto-loading" : d ? "manual-drawn" : a ? "manual-stored" : "manual-blank", F = e !== "" || b, $ = a || d,
|
|
1108
|
+
const c = ze(null), [o, v] = oe(null), [u, l] = oe(a ? "manual" : "auto"), [d, m] = oe(""), [b, P] = oe(!1), { width: _ = 0, height: x = 0 } = Ne({ ref: c, box: "border-box" }), g = u === "auto" ? e ? "auto-generated" : "auto-loading" : d ? "manual-drawn" : a ? "manual-stored" : "manual-blank", F = e !== "" || b, $ = a || d, R = ee(
|
|
1109
1109
|
(y) => {
|
|
1110
1110
|
!o || !_ || !x || !y || o.fromDataURL(y, {
|
|
1111
1111
|
width: +_.toFixed(),
|
|
@@ -1123,15 +1123,15 @@ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_
|
|
|
1123
1123
|
l("auto"), m("");
|
|
1124
1124
|
}, []), K = ee(() => {
|
|
1125
1125
|
l("manual");
|
|
1126
|
-
}, []),
|
|
1126
|
+
}, []), A = ee(() => {
|
|
1127
1127
|
l("auto"), m(""), t("");
|
|
1128
1128
|
}, [t]), w = ee(() => {
|
|
1129
1129
|
d && m("");
|
|
1130
1130
|
}, [d]), M = (y) => y.includes(g);
|
|
1131
1131
|
xe(() => {
|
|
1132
|
-
u === "manual" && d && _ && x &&
|
|
1133
|
-
}, [u, d, _, x,
|
|
1134
|
-
r().then((y) => {
|
|
1132
|
+
u === "manual" && d && _ && x && R(d);
|
|
1133
|
+
}, [u, d, _, x, R]), xe(() => {
|
|
1134
|
+
n(""), r().then((y) => {
|
|
1135
1135
|
const Y = `data:image/png;base64,${y.signature}`;
|
|
1136
1136
|
P(!1), n(Y);
|
|
1137
1137
|
}).catch(() => {
|
|
@@ -1228,7 +1228,7 @@ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_
|
|
|
1228
1228
|
underlined: !0,
|
|
1229
1229
|
text: "Zurücksetzen",
|
|
1230
1230
|
className: B.ManualPanelButton,
|
|
1231
|
-
onClick:
|
|
1231
|
+
onClick: A
|
|
1232
1232
|
}
|
|
1233
1233
|
)
|
|
1234
1234
|
] })
|