@smart-factor/gem-ui-components 0.0.95 → 0.0.98
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/SignEditor.js +1 -1
- package/dist/main.js +35 -35
- package/dist/services/generated/api-candidate.d.ts +22942 -0
- package/dist/{theme-p9uLn1J4.js → theme-Cy99xYbF.js} +3900 -3858
- package/package.json +1 -1
package/dist/SignEditor.js
CHANGED
|
@@ -16,7 +16,7 @@ var am = (o, e, t, n) => ({
|
|
|
16
16
|
import { jsx as Dt, jsxs as dr, Fragment as k_ } from "react/jsx-runtime";
|
|
17
17
|
import * as kr from "react";
|
|
18
18
|
import { useCallback as ju, createContext as r3, useContext as a3, useState as Hl, useEffect as Ec, useMemo as mg, useRef as s3 } from "react";
|
|
19
|
-
import { e as l3, g as c3, G as ow, a as js, b as iw, s as Wy, c as u3, D as nL, B as _g, d as D0, u as A3, z as Cu, f as C_, I as e_, A as oL, F as d3, U as ek, h as h3, i as p3, j as g3, k as f3, T as m3, K as _3 } from "./theme-
|
|
19
|
+
import { e as l3, g as c3, G as ow, a as js, b as iw, s as Wy, c as u3, D as nL, B as _g, d as D0, u as A3, z as Cu, f as C_, I as e_, A as oL, F as d3, U as ek, h as h3, i as p3, j as g3, k as f3, T as m3, K as _3 } from "./theme-Cy99xYbF.js";
|
|
20
20
|
import "./Drawer-Q3D0v6B2.js";
|
|
21
21
|
import "react-router-dom";
|
|
22
22
|
import "@mui/x-data-grid-pro";
|
package/dist/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as d, jsxs as I, Fragment as Vr } from "react/jsx-runtime";
|
|
2
2
|
import { P as l, R as Nn, U as kn, V as Rn, W as zn, p as Bn, X as Yn, D as te, T as Me, Y as Fn, Z as Vn, $ as Un, e as gt, g as bt, f as Ae, w as Oe, j as Ee, s as re, l as Le, n as ie, c as Gn, z as Hn, B as X, N as Pe, a0 as qn, a1 as Wn, a2 as Bt, a3 as Yt, G as we, a4 as ir, a5 as Zn, L as Jn, i as be, I as Fe, E as Ur, h as yt, F as ce, a6 as Kn, S as Ft, a7 as Ge, _ as Xn } from "./Stack-CdVfRhco.js";
|
|
3
|
-
import { l as Qn, r as eo, L as to, m as ro, n as Ke, S as no, o as oo, p as so, q as ao, t as io, v as Ct, w as co, x as lo, B as Be, k as uo, d as cr, y as fo, C as He, E as ye, H as Gr, J as Hr, M as po, N as ee, O as ve, P as ho, Q as $e, R as Vt, V as dt, W as qr, X as De, Y as ut, Z as
|
|
4
|
-
import { aE as Hu, A as qu, D as Wu, aF as Zu, h as Ju, aG as Ku, I as Xu, aC as Qu, T as ef, U as tf, e as rf, g as nf, aD as of, aH as sf } from "./theme-
|
|
3
|
+
import { l as Qn, r as eo, L as to, m as ro, n as Ke, S as no, o as oo, p as so, q as ao, t as io, v as Ct, w as co, x as lo, B as Be, k as uo, d as cr, y as fo, C as He, E as ye, H as Gr, J as Hr, M as po, N as ee, O as ve, P as ho, Q as $e, R as Vt, V as dt, W as qr, X as De, Y as ut, Z as L, z as Wr, a as mo, u as go, G as bo, _ as yo, K as vo, $ as To, a0 as ne, a1 as Zr, a2 as Ut, j as Jr, a3 as je, a4 as Gt, a5 as So, a6 as Co, a7 as xo, a8 as wo, F as Mo, a9 as vt, aa as Oo, ab as Po, ac as $o, ad as Kr, ae as Ao, af as Xr, ag as Qr, ah as Eo, ai as Lo, aj as Do, ak as en, al as jo, am as Io, an as _o, ao as No, ap as ko, aq as Ro, ar as zo, as as Bo, at as Yo, au as Fo, av as Vo, aw as Uo, i as Go, ax as Ho, ay as tn, az as rn, aA as nn, aB as qo } from "./theme-Cy99xYbF.js";
|
|
4
|
+
import { aE as Hu, A as qu, D as Wu, aF as Zu, h as Ju, aG as Ku, I as Xu, aC as Qu, T as ef, U as tf, e as rf, g as nf, aD as of, aH as sf } from "./theme-Cy99xYbF.js";
|
|
5
5
|
import * as M from "react";
|
|
6
6
|
import { useState as Y, useCallback as le, useEffect as Te, useLayoutEffect as Ve, useMemo as ae, useRef as Wo } from "react";
|
|
7
7
|
import { e as on, P as sn, i as Zo } from "./Drawer-Q3D0v6B2.js";
|
|
@@ -2439,9 +2439,9 @@ var Ar = de && de.isMap, hc = Ar ? Tt(Ar) : pc, mc = "[object Set]";
|
|
|
2439
2439
|
function gc(e) {
|
|
2440
2440
|
return ee(e) && K(e) == mc;
|
|
2441
2441
|
}
|
|
2442
|
-
var Er = de && de.isSet, bc = Er ? Tt(Er) : gc, Cn = "[object Arguments]", yc = "[object Array]", vc = "[object Boolean]", Tc = "[object Date]", Sc = "[object Error]", xn = "[object Function]", Cc = "[object GeneratorFunction]", xc = "[object Map]", wc = "[object Number]", wn = "[object Object]", Mc = "[object RegExp]", Oc = "[object Set]", Pc = "[object String]", $c = "[object Symbol]", Ac = "[object WeakMap]", Ec = "[object ArrayBuffer]", Lc = "[object DataView]", Dc = "[object Float32Array]", jc = "[object Float64Array]", Ic = "[object Int8Array]", _c = "[object Int16Array]", Nc = "[object Int32Array]", kc = "[object Uint8Array]", Rc = "[object Uint8ClampedArray]", zc = "[object Uint16Array]", Bc = "[object Uint32Array]",
|
|
2443
|
-
|
|
2444
|
-
|
|
2442
|
+
var Er = de && de.isSet, bc = Er ? Tt(Er) : gc, Cn = "[object Arguments]", yc = "[object Array]", vc = "[object Boolean]", Tc = "[object Date]", Sc = "[object Error]", xn = "[object Function]", Cc = "[object GeneratorFunction]", xc = "[object Map]", wc = "[object Number]", wn = "[object Object]", Mc = "[object RegExp]", Oc = "[object Set]", Pc = "[object String]", $c = "[object Symbol]", Ac = "[object WeakMap]", Ec = "[object ArrayBuffer]", Lc = "[object DataView]", Dc = "[object Float32Array]", jc = "[object Float64Array]", Ic = "[object Int8Array]", _c = "[object Int16Array]", Nc = "[object Int32Array]", kc = "[object Uint8Array]", Rc = "[object Uint8ClampedArray]", zc = "[object Uint16Array]", Bc = "[object Uint32Array]", D = {};
|
|
2443
|
+
D[Cn] = D[yc] = D[Ec] = D[Lc] = D[vc] = D[Tc] = D[Dc] = D[jc] = D[Ic] = D[_c] = D[Nc] = D[xc] = D[wc] = D[wn] = D[Mc] = D[Oc] = D[Pc] = D[$c] = D[kc] = D[Rc] = D[zc] = D[Bc] = !0;
|
|
2444
|
+
D[Sc] = D[xn] = D[Ac] = !1;
|
|
2445
2445
|
function nt(e, t, n, r, o, s) {
|
|
2446
2446
|
var a;
|
|
2447
2447
|
if (a !== void 0)
|
|
@@ -2458,7 +2458,7 @@ function nt(e, t, n, r, o, s) {
|
|
|
2458
2458
|
if (c == wn || c == Cn || u && !o)
|
|
2459
2459
|
a = u ? {} : uc(e);
|
|
2460
2460
|
else {
|
|
2461
|
-
if (!
|
|
2461
|
+
if (!D[c])
|
|
2462
2462
|
return o ? e : {};
|
|
2463
2463
|
a = dc(e, c);
|
|
2464
2464
|
}
|
|
@@ -2745,16 +2745,16 @@ function kl(e) {
|
|
|
2745
2745
|
function uu(e) {
|
|
2746
2746
|
return {
|
|
2747
2747
|
type: "date",
|
|
2748
|
-
valueGetter: (t) => t &&
|
|
2749
|
-
renderCell: ({ value: t }) => /* @__PURE__ */ d(St, { children: t ? Bl(
|
|
2748
|
+
valueGetter: (t) => t && L(t).toDate(),
|
|
2749
|
+
renderCell: ({ value: t }) => /* @__PURE__ */ d(St, { children: t ? Bl(L(t)) : void 0 }),
|
|
2750
2750
|
...e
|
|
2751
2751
|
};
|
|
2752
2752
|
}
|
|
2753
2753
|
function fu(e) {
|
|
2754
2754
|
return {
|
|
2755
2755
|
type: "dateTime",
|
|
2756
|
-
valueGetter: (t) => t &&
|
|
2757
|
-
renderCell: ({ value: t }) => /* @__PURE__ */ d(St, { children: t ? Pn(
|
|
2756
|
+
valueGetter: (t) => t && L(t).toDate(),
|
|
2757
|
+
renderCell: ({ value: t }) => /* @__PURE__ */ d(St, { children: t ? Pn(L(t)) : void 0 }),
|
|
2758
2758
|
...e
|
|
2759
2759
|
};
|
|
2760
2760
|
}
|
|
@@ -2794,13 +2794,13 @@ function mu(e) {
|
|
|
2794
2794
|
}
|
|
2795
2795
|
const Bl = (e) => {
|
|
2796
2796
|
if (e) {
|
|
2797
|
-
if (
|
|
2797
|
+
if (L.isDayjs(e))
|
|
2798
2798
|
return e.format("YYYY-MM-DD");
|
|
2799
2799
|
console.error("Unable to format date, as it is not dayjs instance");
|
|
2800
2800
|
}
|
|
2801
2801
|
}, Pn = (e) => {
|
|
2802
2802
|
if (e) {
|
|
2803
|
-
if (
|
|
2803
|
+
if (L.isDayjs(e))
|
|
2804
2804
|
return e.format("YYYY-MM-DD HH:mm:ss");
|
|
2805
2805
|
console.error("Unable to format dateTime, as it is not dayjs instance");
|
|
2806
2806
|
}
|
|
@@ -2846,7 +2846,7 @@ const bu = {
|
|
|
2846
2846
|
saved: Ul
|
|
2847
2847
|
};
|
|
2848
2848
|
function Gl(e) {
|
|
2849
|
-
return wl(e) ? Pn(
|
|
2849
|
+
return wl(e) ? Pn(L(e)) : e;
|
|
2850
2850
|
}
|
|
2851
2851
|
const $n = (e) => {
|
|
2852
2852
|
const t = {
|
|
@@ -2880,7 +2880,7 @@ const $n = (e) => {
|
|
|
2880
2880
|
[t, o, r, n, e]
|
|
2881
2881
|
);
|
|
2882
2882
|
function Wl(e) {
|
|
2883
|
-
return `${e ? `${e} ` : ""}${
|
|
2883
|
+
return `${e ? `${e} ` : ""}${L().format("DD-MM-YYYY HH.mm.ss").toString()}.xlsx`;
|
|
2884
2884
|
}
|
|
2885
2885
|
function Zl(e) {
|
|
2886
2886
|
return e.current.getVisibleColumns().map((n) => n.headerName).filter((n) => n !== "Akcje").filter(Boolean);
|
|
@@ -3669,10 +3669,10 @@ function _d() {
|
|
|
3669
3669
|
}
|
|
3670
3670
|
var Nd = _d();
|
|
3671
3671
|
const kd = /* @__PURE__ */ Ge(Nd);
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3672
|
+
L.extend(Ad);
|
|
3673
|
+
L.extend(Sd);
|
|
3674
|
+
L.extend(jd);
|
|
3675
|
+
L.extend(kd);
|
|
3676
3676
|
const Rd = {
|
|
3677
3677
|
// Year
|
|
3678
3678
|
YY: "year",
|
|
@@ -3793,7 +3793,7 @@ class er {
|
|
|
3793
3793
|
}, this.formatTokenMap = Rd, this.setLocaleToValue = (r) => {
|
|
3794
3794
|
const o = this.getCurrentLocaleCode();
|
|
3795
3795
|
return o === r.locale() ? r : r.locale(o);
|
|
3796
|
-
}, this.hasUTCPlugin = () => typeof
|
|
3796
|
+
}, this.hasUTCPlugin = () => typeof L.utc < "u", this.hasTimezonePlugin = () => typeof L.tz < "u", this.isSame = (r, o, s) => {
|
|
3797
3797
|
const a = this.setTimezone(o, this.getTimezone(r));
|
|
3798
3798
|
return r.format(s) === a.format(s);
|
|
3799
3799
|
}, this.cleanTimezone = (r) => {
|
|
@@ -3801,29 +3801,29 @@ class er {
|
|
|
3801
3801
|
case "default":
|
|
3802
3802
|
return;
|
|
3803
3803
|
case "system":
|
|
3804
|
-
return
|
|
3804
|
+
return L.tz.guess();
|
|
3805
3805
|
default:
|
|
3806
3806
|
return r;
|
|
3807
3807
|
}
|
|
3808
3808
|
}, this.createSystemDate = (r) => {
|
|
3809
3809
|
if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {
|
|
3810
|
-
const o =
|
|
3811
|
-
return o !== "UTC" ?
|
|
3810
|
+
const o = L.tz.guess();
|
|
3811
|
+
return o !== "UTC" ? L.tz(r, o) : L(r);
|
|
3812
3812
|
}
|
|
3813
|
-
return
|
|
3813
|
+
return L(r);
|
|
3814
3814
|
}, this.createUTCDate = (r) => {
|
|
3815
3815
|
if (!this.hasUTCPlugin())
|
|
3816
3816
|
throw new Error(Pt);
|
|
3817
|
-
return
|
|
3817
|
+
return L.utc(r);
|
|
3818
3818
|
}, this.createTZDate = (r, o) => {
|
|
3819
3819
|
if (!this.hasUTCPlugin())
|
|
3820
3820
|
throw new Error(Pt);
|
|
3821
3821
|
if (!this.hasTimezonePlugin())
|
|
3822
3822
|
throw new Error(Fr);
|
|
3823
3823
|
const s = r !== void 0 && !r.endsWith("Z");
|
|
3824
|
-
return
|
|
3824
|
+
return L(r).tz(this.cleanTimezone(o), s);
|
|
3825
3825
|
}, this.getLocaleFormats = () => {
|
|
3826
|
-
const r =
|
|
3826
|
+
const r = L.Ls, o = this.locale || "en";
|
|
3827
3827
|
let s = r[o];
|
|
3828
3828
|
return s === void 0 && (process.env.NODE_ENV !== "production" && ls(["MUI X: Your locale has not been found.", "Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.", "Or you forget to import the locale from 'dayjs/locale/{localeUsed}'", "fallback on English locale."]), s = r.en), s.formats;
|
|
3829
3829
|
}, this.adjustOffset = (r) => {
|
|
@@ -3842,7 +3842,7 @@ class er {
|
|
|
3842
3842
|
return null;
|
|
3843
3843
|
let s;
|
|
3844
3844
|
return o === "UTC" ? s = this.createUTCDate(r) : o === "system" || o === "default" && !this.hasTimezonePlugin() ? s = this.createSystemDate(r) : s = this.createTZDate(r, o), this.locale === void 0 ? s : s.locale(this.locale);
|
|
3845
|
-
}, this.getInvalidDate = () =>
|
|
3845
|
+
}, this.getInvalidDate = () => L(/* @__PURE__ */ new Date("Invalid date")), this.getTimezone = (r) => {
|
|
3846
3846
|
var o;
|
|
3847
3847
|
if (this.hasTimezonePlugin()) {
|
|
3848
3848
|
const s = (o = r.$x) == null ? void 0 : o.$timezone;
|
|
@@ -3865,7 +3865,7 @@ class er {
|
|
|
3865
3865
|
return r;
|
|
3866
3866
|
throw new Error(Fr);
|
|
3867
3867
|
}
|
|
3868
|
-
return
|
|
3868
|
+
return L.tz(r, this.cleanTimezone(o));
|
|
3869
3869
|
}, this.toJsDate = (r) => r.toDate(), this.parse = (r, o) => r === "" ? null : this.dayjs(r, o, this.locale, !0), this.getCurrentLocaleCode = () => this.locale || "en", this.is12HourCycleInCurrentLocale = () => /A|a/.test(this.getLocaleFormats().LT || ""), this.expandFormat = (r) => {
|
|
3870
3870
|
const o = this.getLocaleFormats(), s = (a) => a.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (i, c, u) => c || u.slice(1));
|
|
3871
3871
|
return r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (a, i, c) => {
|
|
@@ -3887,7 +3887,7 @@ class er {
|
|
|
3887
3887
|
for (; this.isBefore(c, a); )
|
|
3888
3888
|
i.push(c), c = this.addYears(c, 1);
|
|
3889
3889
|
return i;
|
|
3890
|
-
}, this.dayjs = Bd(
|
|
3890
|
+
}, this.dayjs = Bd(L, t), this.locale = t, this.formats = Xn({}, zd, n), L.extend(Md);
|
|
3891
3891
|
}
|
|
3892
3892
|
getDayOfWeek(t) {
|
|
3893
3893
|
return t.day() + 1;
|
|
@@ -3901,13 +3901,13 @@ const Cu = ({
|
|
|
3901
3901
|
disabled: o,
|
|
3902
3902
|
required: s,
|
|
3903
3903
|
dataTestId: a
|
|
3904
|
-
}) => /* @__PURE__ */ d(
|
|
3904
|
+
}) => (L.locale("pl"), /* @__PURE__ */ d(
|
|
3905
3905
|
je,
|
|
3906
3906
|
{
|
|
3907
3907
|
name: e,
|
|
3908
3908
|
control: t,
|
|
3909
3909
|
defaultValue: r,
|
|
3910
|
-
render: ({ field: { onChange: i, value: c }, fieldState: u }) => /* @__PURE__ */ I(Gt, { dateAdapter: er, children: [
|
|
3910
|
+
render: ({ field: { onChange: i, value: c }, fieldState: u }) => /* @__PURE__ */ I(Gt, { dateAdapter: er, adapterLocale: "pl", children: [
|
|
3911
3911
|
/* @__PURE__ */ d(
|
|
3912
3912
|
So,
|
|
3913
3913
|
{
|
|
@@ -3944,7 +3944,7 @@ const Cu = ({
|
|
|
3944
3944
|
u.error && /* @__PURE__ */ d(Co, { error: !0, children: u.error.message })
|
|
3945
3945
|
] })
|
|
3946
3946
|
}
|
|
3947
|
-
), xu = ({
|
|
3947
|
+
)), xu = ({
|
|
3948
3948
|
name: e,
|
|
3949
3949
|
control: t,
|
|
3950
3950
|
label: n,
|
|
@@ -3952,7 +3952,7 @@ const Cu = ({
|
|
|
3952
3952
|
disabled: o,
|
|
3953
3953
|
required: s,
|
|
3954
3954
|
dataTestId: a
|
|
3955
|
-
}) => /* @__PURE__ */ d(
|
|
3955
|
+
}) => (L.locale("pl"), /* @__PURE__ */ d(
|
|
3956
3956
|
je,
|
|
3957
3957
|
{
|
|
3958
3958
|
name: e,
|
|
@@ -3960,7 +3960,7 @@ const Cu = ({
|
|
|
3960
3960
|
defaultValue: r,
|
|
3961
3961
|
render: ({ field: { onChange: i, value: c }, fieldState: u }) => {
|
|
3962
3962
|
const f = () => /* @__PURE__ */ d(Mo, { sx: { ml: "14px" }, required: s, children: n });
|
|
3963
|
-
return /* @__PURE__ */ I(Gt, { dateAdapter: er, children: [
|
|
3963
|
+
return /* @__PURE__ */ I(Gt, { dateAdapter: er, adapterLocale: "pl", children: [
|
|
3964
3964
|
/* @__PURE__ */ d(
|
|
3965
3965
|
xo,
|
|
3966
3966
|
{
|
|
@@ -3990,7 +3990,7 @@ const Cu = ({
|
|
|
3990
3990
|
] });
|
|
3991
3991
|
}
|
|
3992
3992
|
}
|
|
3993
|
-
), wu = ({
|
|
3993
|
+
)), wu = ({
|
|
3994
3994
|
name: e,
|
|
3995
3995
|
label: t,
|
|
3996
3996
|
control: n,
|