kelt-ui-kit-react 1.2.5 → 1.2.6
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.
|
@@ -17,6 +17,7 @@ export interface dataTableColumnsInterface<T> {
|
|
|
17
17
|
value: string;
|
|
18
18
|
}[];
|
|
19
19
|
onEdit?: (value: any, row: T) => void;
|
|
20
|
+
onRowStyle?: (row: T) => React.CSSProperties;
|
|
20
21
|
type: HTMLInputTypeAttribute | "select";
|
|
21
22
|
}
|
|
22
23
|
export interface dataTableActionsInterface<T> {
|
package/dist/index.js
CHANGED
|
@@ -77,10 +77,10 @@ function Mo() {
|
|
|
77
77
|
O.unshift("Warning: " + w), Function.prototype.apply.call(console[c], console, O);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
var D = !1,
|
|
80
|
+
var D = !1, P = !1, k = !1, C = !1, M = !1, q;
|
|
81
81
|
q = Symbol.for("react.module.reference");
|
|
82
82
|
function ue(c) {
|
|
83
|
-
return !!(typeof c == "string" || typeof c == "function" || c === n || c === o || M || c === a || c === d || c === h || C || c === m || D ||
|
|
83
|
+
return !!(typeof c == "string" || typeof c == "function" || c === n || c === o || M || c === a || c === d || c === h || C || c === m || D || P || k || typeof c == "object" && c !== null && (c.$$typeof === g || c.$$typeof === v || c.$$typeof === s || c.$$typeof === l || c.$$typeof === u || // This needs to include all possible module reference object
|
|
84
84
|
// types supported by any Flight configuration anywhere since
|
|
85
85
|
// we don't know which Flight build this will end up being used
|
|
86
86
|
// with.
|
|
@@ -775,7 +775,7 @@ function Ta(e) {
|
|
|
775
775
|
function Ie(e, t) {
|
|
776
776
|
return (e = t.exec(e)) ? e[0] : e;
|
|
777
777
|
}
|
|
778
|
-
function
|
|
778
|
+
function T(e, t, r) {
|
|
779
779
|
return e.replace(t, r);
|
|
780
780
|
}
|
|
781
781
|
function sr(e, t, r) {
|
|
@@ -918,11 +918,11 @@ function ti(e) {
|
|
|
918
918
|
return Ko(lr("", null, null, null, [""], e = Xo(e), 0, [0], e));
|
|
919
919
|
}
|
|
920
920
|
function lr(e, t, r, n, a, o, s, l, u) {
|
|
921
|
-
for (var d = 0, h = 0, v = s, g = 0, m = 0, y = 0, p = 1, x = 1, f = 1, b = 0, S = "", D = a,
|
|
921
|
+
for (var d = 0, h = 0, v = s, g = 0, m = 0, y = 0, p = 1, x = 1, f = 1, b = 0, S = "", D = a, P = o, k = n, C = S; x; )
|
|
922
922
|
switch (y = b, b = Oe()) {
|
|
923
923
|
case 40:
|
|
924
924
|
if (y != 108 && te(C, v - 1) == 58) {
|
|
925
|
-
sr(C +=
|
|
925
|
+
sr(C += T(Yr(b), "&", "&\f"), "&\f", Pa(d ? l[d - 1] : 0)) != -1 && (f = -1);
|
|
926
926
|
break;
|
|
927
927
|
}
|
|
928
928
|
case 34:
|
|
@@ -959,24 +959,24 @@ function lr(e, t, r, n, a, o, s, l, u) {
|
|
|
959
959
|
case 125:
|
|
960
960
|
x = 0;
|
|
961
961
|
case 59 + h:
|
|
962
|
-
f == -1 && (C =
|
|
962
|
+
f == -1 && (C = T(C, /\f/g, "")), m > 0 && Pe(C) - v && At(m > 32 ? Un(C + ";", n, r, v - 1, u) : Un(T(C, " ", "") + ";", n, r, v - 2, u), u);
|
|
963
963
|
break;
|
|
964
964
|
case 59:
|
|
965
965
|
C += ";";
|
|
966
966
|
default:
|
|
967
|
-
if (At(k = zn(C, t, r, d, h, a, l, S, D = [],
|
|
967
|
+
if (At(k = zn(C, t, r, d, h, a, l, S, D = [], P = [], v, o), o), b === 123)
|
|
968
968
|
if (h === 0)
|
|
969
|
-
lr(C, t, k, k, D, o, v, l,
|
|
969
|
+
lr(C, t, k, k, D, o, v, l, P);
|
|
970
970
|
else
|
|
971
971
|
switch (g === 99 && te(C, 3) === 110 ? 100 : g) {
|
|
972
972
|
case 100:
|
|
973
973
|
case 108:
|
|
974
974
|
case 109:
|
|
975
975
|
case 115:
|
|
976
|
-
lr(e, k, k, n && At(zn(e, k, k, 0, 0, a, l, S, a, D = [], v,
|
|
976
|
+
lr(e, k, k, n && At(zn(e, k, k, 0, 0, a, l, S, a, D = [], v, P), P), a, P, v, l, n ? D : P);
|
|
977
977
|
break;
|
|
978
978
|
default:
|
|
979
|
-
lr(C, k, k, k, [""],
|
|
979
|
+
lr(C, k, k, k, [""], P, 0, l, P);
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
982
|
d = h = m = 0, p = f = 1, S = C = "", v = s;
|
|
@@ -1009,7 +1009,7 @@ function lr(e, t, r, n, a, o, s, l, u) {
|
|
|
1009
1009
|
function zn(e, t, r, n, a, o, s, l, u, d, h, v) {
|
|
1010
1010
|
for (var g = a - 1, m = a === 0 ? o : [""], y = Aa(m), p = 0, x = 0, f = 0; p < n; ++p)
|
|
1011
1011
|
for (var b = 0, S = ft(e, g + 1, g = Pa(x = s[p])), D = e; b < y; ++b)
|
|
1012
|
-
(D = Ta(x > 0 ? m[b] + " " + S :
|
|
1012
|
+
(D = Ta(x > 0 ? m[b] + " " + S : T(S, /&\f/g, m[b]))) && (u[f++] = D);
|
|
1013
1013
|
return Sr(e, t, r, a === 0 ? xr : l, u, d, h, v);
|
|
1014
1014
|
}
|
|
1015
1015
|
function ri(e, t, r, n) {
|
|
@@ -1059,11 +1059,11 @@ function Ia(e, t, r) {
|
|
|
1059
1059
|
case 5936:
|
|
1060
1060
|
switch (te(e, t + 11)) {
|
|
1061
1061
|
case 114:
|
|
1062
|
-
return $ + e + V +
|
|
1062
|
+
return $ + e + V + T(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
1063
1063
|
case 108:
|
|
1064
|
-
return $ + e + V +
|
|
1064
|
+
return $ + e + V + T(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
1065
1065
|
case 45:
|
|
1066
|
-
return $ + e + V +
|
|
1066
|
+
return $ + e + V + T(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
1067
1067
|
}
|
|
1068
1068
|
case 6828:
|
|
1069
1069
|
case 4268:
|
|
@@ -1072,47 +1072,47 @@ function Ia(e, t, r) {
|
|
|
1072
1072
|
case 6165:
|
|
1073
1073
|
return $ + e + V + "flex-" + e + e;
|
|
1074
1074
|
case 5187:
|
|
1075
|
-
return $ + e +
|
|
1075
|
+
return $ + e + T(e, /(\w+).+(:[^]+)/, $ + "box-$1$2" + V + "flex-$1$2") + e;
|
|
1076
1076
|
case 5443:
|
|
1077
|
-
return $ + e + V + "flex-item-" +
|
|
1077
|
+
return $ + e + V + "flex-item-" + T(e, /flex-|-self/g, "") + (Ie(e, /flex-|baseline/) ? "" : V + "grid-row-" + T(e, /flex-|-self/g, "")) + e;
|
|
1078
1078
|
case 4675:
|
|
1079
|
-
return $ + e + V + "flex-line-pack" +
|
|
1079
|
+
return $ + e + V + "flex-line-pack" + T(e, /align-content|flex-|-self/g, "") + e;
|
|
1080
1080
|
case 5548:
|
|
1081
|
-
return $ + e + V +
|
|
1081
|
+
return $ + e + V + T(e, "shrink", "negative") + e;
|
|
1082
1082
|
case 5292:
|
|
1083
|
-
return $ + e + V +
|
|
1083
|
+
return $ + e + V + T(e, "basis", "preferred-size") + e;
|
|
1084
1084
|
case 6060:
|
|
1085
|
-
return $ + "box-" +
|
|
1085
|
+
return $ + "box-" + T(e, "-grow", "") + $ + e + V + T(e, "grow", "positive") + e;
|
|
1086
1086
|
case 4554:
|
|
1087
|
-
return $ +
|
|
1087
|
+
return $ + T(e, /([^-])(transform)/g, "$1" + $ + "$2") + e;
|
|
1088
1088
|
case 6187:
|
|
1089
|
-
return
|
|
1089
|
+
return T(T(T(e, /(zoom-|grab)/, $ + "$1"), /(image-set)/, $ + "$1"), e, "") + e;
|
|
1090
1090
|
case 5495:
|
|
1091
1091
|
case 3959:
|
|
1092
|
-
return
|
|
1092
|
+
return T(e, /(image-set\([^]*)/, $ + "$1$`$1");
|
|
1093
1093
|
case 4968:
|
|
1094
|
-
return
|
|
1094
|
+
return T(T(e, /(.+:)(flex-)?(.*)/, $ + "box-pack:$3" + V + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + $ + e + e;
|
|
1095
1095
|
case 4200:
|
|
1096
1096
|
if (!Ie(e, /flex-|baseline/)) return V + "grid-column-align" + ft(e, t) + e;
|
|
1097
1097
|
break;
|
|
1098
1098
|
case 2592:
|
|
1099
1099
|
case 3360:
|
|
1100
|
-
return V +
|
|
1100
|
+
return V + T(e, "template-", "") + e;
|
|
1101
1101
|
case 4384:
|
|
1102
1102
|
case 3616:
|
|
1103
1103
|
return r && r.some(function(n, a) {
|
|
1104
1104
|
return t = a, Ie(n.props, /grid-\w+-end/);
|
|
1105
|
-
}) ? ~sr(e + (r = r[t].value), "span", 0) ? e : V +
|
|
1105
|
+
}) ? ~sr(e + (r = r[t].value), "span", 0) ? e : V + T(e, "-start", "") + e + V + "grid-row-span:" + (~sr(r, "span", 0) ? Ie(r, /\d+/) : +Ie(r, /\d+/) - +Ie(e, /\d+/)) + ";" : V + T(e, "-start", "") + e;
|
|
1106
1106
|
case 4896:
|
|
1107
1107
|
case 4128:
|
|
1108
1108
|
return r && r.some(function(n) {
|
|
1109
1109
|
return Ie(n.props, /grid-\w+-start/);
|
|
1110
|
-
}) ? e : V +
|
|
1110
|
+
}) ? e : V + T(T(e, "-end", "-span"), "span ", "") + e;
|
|
1111
1111
|
case 4095:
|
|
1112
1112
|
case 3583:
|
|
1113
1113
|
case 4068:
|
|
1114
1114
|
case 2532:
|
|
1115
|
-
return
|
|
1115
|
+
return T(e, /(.+)-inline(.+)/, $ + "$1$2") + e;
|
|
1116
1116
|
case 8116:
|
|
1117
1117
|
case 7059:
|
|
1118
1118
|
case 5753:
|
|
@@ -1131,26 +1131,26 @@ function Ia(e, t, r) {
|
|
|
1131
1131
|
if (te(e, t + 4) !== 45)
|
|
1132
1132
|
break;
|
|
1133
1133
|
case 102:
|
|
1134
|
-
return
|
|
1134
|
+
return T(e, /(.+:)(.+)-([^]+)/, "$1" + $ + "$2-$3$1" + It + (te(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1135
1135
|
case 115:
|
|
1136
|
-
return ~sr(e, "stretch", 0) ? Ia(
|
|
1136
|
+
return ~sr(e, "stretch", 0) ? Ia(T(e, "stretch", "fill-available"), t, r) + e : e;
|
|
1137
1137
|
}
|
|
1138
1138
|
break;
|
|
1139
1139
|
case 5152:
|
|
1140
1140
|
case 5920:
|
|
1141
|
-
return
|
|
1141
|
+
return T(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, a, o, s, l, u, d) {
|
|
1142
1142
|
return V + a + ":" + o + d + (s ? V + a + "-span:" + (l ? u : +u - +o) + d : "") + e;
|
|
1143
1143
|
});
|
|
1144
1144
|
case 4949:
|
|
1145
1145
|
if (te(e, t + 6) === 121)
|
|
1146
|
-
return
|
|
1146
|
+
return T(e, ":", ":" + $) + e;
|
|
1147
1147
|
break;
|
|
1148
1148
|
case 6444:
|
|
1149
1149
|
switch (te(e, te(e, 14) === 45 ? 18 : 11)) {
|
|
1150
1150
|
case 120:
|
|
1151
|
-
return
|
|
1151
|
+
return T(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + $ + (te(e, 14) === 45 ? "inline-" : "") + "box$3$1" + $ + "$2$3$1" + V + "$2box$3") + e;
|
|
1152
1152
|
case 100:
|
|
1153
|
-
return
|
|
1153
|
+
return T(e, ":", ":" + V) + e;
|
|
1154
1154
|
}
|
|
1155
1155
|
break;
|
|
1156
1156
|
case 5719:
|
|
@@ -1158,7 +1158,7 @@ function Ia(e, t, r) {
|
|
|
1158
1158
|
case 2135:
|
|
1159
1159
|
case 3927:
|
|
1160
1160
|
case 2391:
|
|
1161
|
-
return
|
|
1161
|
+
return T(e, "scroll-", "scroll-snap-") + e;
|
|
1162
1162
|
}
|
|
1163
1163
|
return e;
|
|
1164
1164
|
}
|
|
@@ -1203,17 +1203,17 @@ function ii(e, t, r, n) {
|
|
|
1203
1203
|
e.return = Ia(e.value, e.length, r);
|
|
1204
1204
|
return;
|
|
1205
1205
|
case Ea:
|
|
1206
|
-
return vr([We(e, { value:
|
|
1206
|
+
return vr([We(e, { value: T(e.value, "@", "@" + $) })], n);
|
|
1207
1207
|
case xr:
|
|
1208
1208
|
if (e.length)
|
|
1209
1209
|
return Go(r = e.props, function(a) {
|
|
1210
1210
|
switch (Ie(a, n = /(::plac\w+|:read-\w+)/)) {
|
|
1211
1211
|
case ":read-only":
|
|
1212
1212
|
case ":read-write":
|
|
1213
|
-
ct(We(e, { props: [
|
|
1213
|
+
ct(We(e, { props: [T(a, /:(read-\w+)/, ":" + It + "$1")] })), ct(We(e, { props: [a] })), Jr(e, { props: Bn(r, n) });
|
|
1214
1214
|
break;
|
|
1215
1215
|
case "::placeholder":
|
|
1216
|
-
ct(We(e, { props: [
|
|
1216
|
+
ct(We(e, { props: [T(a, /:(plac\w+)/, ":" + $ + "input-$1")] })), ct(We(e, { props: [T(a, /:(plac\w+)/, ":" + It + "$1")] })), ct(We(e, { props: [T(a, /:(plac\w+)/, V + "input-$1")] })), ct(We(e, { props: [a] })), Jr(e, { props: Bn(r, n) });
|
|
1217
1217
|
break;
|
|
1218
1218
|
}
|
|
1219
1219
|
return "";
|
|
@@ -1715,11 +1715,11 @@ var Bi = Fa(Dr), zi = function() {
|
|
|
1715
1715
|
Ja.Consumer;
|
|
1716
1716
|
var zr = {}, aa = /* @__PURE__ */ new Set();
|
|
1717
1717
|
function Ui(e, t, r) {
|
|
1718
|
-
var n = Dn(e), a = e, o = !Br(e), s = t.attrs, l = s === void 0 ? Nr : s, u = t.componentId, d = u === void 0 ? function(D,
|
|
1718
|
+
var n = Dn(e), a = e, o = !Br(e), s = t.attrs, l = s === void 0 ? Nr : s, u = t.componentId, d = u === void 0 ? function(D, P) {
|
|
1719
1719
|
var k = typeof D != "string" ? "sc" : qn(D);
|
|
1720
1720
|
zr[k] = (zr[k] || 0) + 1;
|
|
1721
1721
|
var C = "".concat(k, "-").concat(vi(Dr + k + zr[k]));
|
|
1722
|
-
return
|
|
1722
|
+
return P ? "".concat(P, "-").concat(C) : C;
|
|
1723
1723
|
}(t.displayName, t.parentComponentId) : u, h = t.displayName, v = h === void 0 ? function(D) {
|
|
1724
1724
|
return Br(D) ? "styled.".concat(D) : "Styled(".concat(Wa(D), ")");
|
|
1725
1725
|
}(e) : h, g = t.displayName && t.componentId ? "".concat(qn(t.displayName), "-").concat(t.componentId) : t.componentId || d, m = n && a.attrs ? a.attrs.concat(l).filter(Boolean) : l, y = t.shouldForwardProp;
|
|
@@ -1727,13 +1727,13 @@ function Ui(e, t, r) {
|
|
|
1727
1727
|
var p = a.shouldForwardProp;
|
|
1728
1728
|
if (t.shouldForwardProp) {
|
|
1729
1729
|
var x = t.shouldForwardProp;
|
|
1730
|
-
y = function(D,
|
|
1731
|
-
return p(D,
|
|
1730
|
+
y = function(D, P) {
|
|
1731
|
+
return p(D, P) && x(D, P);
|
|
1732
1732
|
};
|
|
1733
1733
|
} else y = p;
|
|
1734
1734
|
}
|
|
1735
1735
|
var f = new zi(r, g, n ? a.componentStyle : void 0);
|
|
1736
|
-
function b(D,
|
|
1736
|
+
function b(D, P) {
|
|
1737
1737
|
return function(k, C, M) {
|
|
1738
1738
|
var q = k.attrs, ue = k.componentStyle, Me = k.defaultProps, pe = k.foldedComponentIds, ie = k.styledComponentId, se = k.target, Se = Te.useContext(Ja), Z = ta(), De = k.shouldForwardProp || Z.shouldForwardProp;
|
|
1739
1739
|
process.env.NODE_ENV !== "production" && Wn(ie);
|
|
@@ -1752,23 +1752,23 @@ function Ui(e, t, r) {
|
|
|
1752
1752
|
process.env.NODE_ENV !== "production" && k.warnTooManyClasses && k.warnTooManyClasses(be);
|
|
1753
1753
|
var Ne = Ke(pe, ie);
|
|
1754
1754
|
return be && (Ne += " " + be), H.className && (Ne += " " + H.className), re[Br(B) && !en.has(B) ? "class" : "className"] = Ne, M && (re.ref = M), Po(B, re);
|
|
1755
|
-
}(S, D,
|
|
1755
|
+
}(S, D, P);
|
|
1756
1756
|
}
|
|
1757
1757
|
b.displayName = v;
|
|
1758
1758
|
var S = Te.forwardRef(b);
|
|
1759
1759
|
return S.attrs = m, S.componentStyle = f, S.displayName = v, S.shouldForwardProp = y, S.foldedComponentIds = n ? Ke(a.foldedComponentIds, a.styledComponentId) : "", S.styledComponentId = g, S.target = n ? a.target : e, Object.defineProperty(S, "defaultProps", { get: function() {
|
|
1760
1760
|
return this._foldedDefaultProps;
|
|
1761
1761
|
}, set: function(D) {
|
|
1762
|
-
this._foldedDefaultProps = n ? function(
|
|
1762
|
+
this._foldedDefaultProps = n ? function(P) {
|
|
1763
1763
|
for (var k = [], C = 1; C < arguments.length; C++) k[C - 1] = arguments[C];
|
|
1764
|
-
for (var M = 0, q = k; M < q.length; M++) rn(
|
|
1765
|
-
return
|
|
1764
|
+
for (var M = 0, q = k; M < q.length; M++) rn(P, q[M], !0);
|
|
1765
|
+
return P;
|
|
1766
1766
|
}({}, a.defaultProps, D) : D;
|
|
1767
|
-
} }), process.env.NODE_ENV !== "production" && (li(v, g), S.warnTooManyClasses = /* @__PURE__ */ function(D,
|
|
1767
|
+
} }), process.env.NODE_ENV !== "production" && (li(v, g), S.warnTooManyClasses = /* @__PURE__ */ function(D, P) {
|
|
1768
1768
|
var k = {}, C = !1;
|
|
1769
1769
|
return function(M) {
|
|
1770
1770
|
if (!C && (k[M] = !0, Object.keys(k).length >= 200)) {
|
|
1771
|
-
var q =
|
|
1771
|
+
var q = P ? ' with the id of "'.concat(P, '"') : "";
|
|
1772
1772
|
console.warn("Over ".concat(200, " classes were generated for component ").concat(D).concat(q, `.
|
|
1773
1773
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
1774
1774
|
Example:
|
|
@@ -1855,7 +1855,7 @@ const Gi = _n.div`
|
|
|
1855
1855
|
if (!t && r)
|
|
1856
1856
|
g(r);
|
|
1857
1857
|
else if (e) {
|
|
1858
|
-
const S = e.getBoundingClientRect(), D = (b = m.current) == null ? void 0 : b.getBoundingClientRect(), { innerWidth:
|
|
1858
|
+
const S = e.getBoundingClientRect(), D = (b = m.current) == null ? void 0 : b.getBoundingClientRect(), { innerWidth: P, innerHeight: k } = window;
|
|
1859
1859
|
if (D) {
|
|
1860
1860
|
let C, M;
|
|
1861
1861
|
const q = {
|
|
@@ -1884,7 +1884,7 @@ const Gi = _n.div`
|
|
|
1884
1884
|
left: S.right
|
|
1885
1885
|
})
|
|
1886
1886
|
};
|
|
1887
|
-
t && q[t] ? { top: C, left: M } = q[t]() : (M = S.right, C = S.bottom, S.right + D.width >
|
|
1887
|
+
t && q[t] ? { top: C, left: M } = q[t]() : (M = S.right, C = S.bottom, S.right + D.width > P && (M = S.left - D.width), S.bottom + D.height > k && (C = S.top - D.height)), g({ top: C, left: M < 0 ? 0 : M });
|
|
1888
1888
|
}
|
|
1889
1889
|
}
|
|
1890
1890
|
};
|
|
@@ -2368,7 +2368,7 @@ function Zc(e) {
|
|
|
2368
2368
|
) }) : /* @__PURE__ */ i.jsx(i.Fragment, {}),
|
|
2369
2369
|
!d && s.map((p, x) => /* @__PURE__ */ i.jsxs("tr", { onClick: () => h == null ? void 0 : h(p), children: [
|
|
2370
2370
|
u.map((f, b) => {
|
|
2371
|
-
const S = p[f.id];
|
|
2371
|
+
const S = p[f.id], D = f.onRowStyle ? f.onRowStyle(p) : {};
|
|
2372
2372
|
return /* @__PURE__ */ i.jsx(i.Fragment, { children: /* @__PURE__ */ i.jsx(
|
|
2373
2373
|
"td",
|
|
2374
2374
|
{
|
|
@@ -2376,15 +2376,16 @@ function Zc(e) {
|
|
|
2376
2376
|
minWidth: f.minWidth,
|
|
2377
2377
|
textAlign: f.align || "left",
|
|
2378
2378
|
maxWidth: f.maxWidth,
|
|
2379
|
-
width: f.width
|
|
2379
|
+
width: f.width,
|
|
2380
|
+
...D
|
|
2380
2381
|
},
|
|
2381
2382
|
children: f.editable ? f.type === "select" ? /* @__PURE__ */ i.jsx(
|
|
2382
2383
|
Xi,
|
|
2383
2384
|
{
|
|
2384
2385
|
options: f.options ?? [],
|
|
2385
2386
|
value: S,
|
|
2386
|
-
onChange: (
|
|
2387
|
-
f.onEdit && f.onEdit(
|
|
2387
|
+
onChange: (P) => {
|
|
2388
|
+
f.onEdit && f.onEdit(P, p);
|
|
2388
2389
|
}
|
|
2389
2390
|
}
|
|
2390
2391
|
) : /* @__PURE__ */ i.jsx(
|
|
@@ -2394,8 +2395,8 @@ function Zc(e) {
|
|
|
2394
2395
|
value: S,
|
|
2395
2396
|
step: "0.01",
|
|
2396
2397
|
style: { textAlign: f.align || "left" },
|
|
2397
|
-
onChange: (
|
|
2398
|
-
f.onEdit && f.onEdit(
|
|
2398
|
+
onChange: (P) => {
|
|
2399
|
+
f.onEdit && f.onEdit(P.target.value, p);
|
|
2399
2400
|
}
|
|
2400
2401
|
}
|
|
2401
2402
|
) : f.format ? f.format(S) : S
|
|
@@ -2988,7 +2989,7 @@ function bo(e, t) {
|
|
|
2988
2989
|
}
|
|
2989
2990
|
var Ee = "react-calendar__navigation";
|
|
2990
2991
|
function Js(e) {
|
|
2991
|
-
var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? vo : n, o = e.formatYear, s = o === void 0 ? Pr : o, l = e.locale, u = e.maxDate, d = e.minDate, h = e.navigationAriaLabel, v = h === void 0 ? "" : h, g = e.navigationAriaLive, m = e.navigationLabel, y = e.next2AriaLabel, p = y === void 0 ? "" : y, x = e.next2Label, f = x === void 0 ? "»" : x, b = e.nextAriaLabel, S = b === void 0 ? "" : b, D = e.nextLabel,
|
|
2992
|
+
var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? vo : n, o = e.formatYear, s = o === void 0 ? Pr : o, l = e.locale, u = e.maxDate, d = e.minDate, h = e.navigationAriaLabel, v = h === void 0 ? "" : h, g = e.navigationAriaLive, m = e.navigationLabel, y = e.next2AriaLabel, p = y === void 0 ? "" : y, x = e.next2Label, f = x === void 0 ? "»" : x, b = e.nextAriaLabel, S = b === void 0 ? "" : b, D = e.nextLabel, P = D === void 0 ? "›" : D, k = e.prev2AriaLabel, C = k === void 0 ? "" : k, M = e.prev2Label, q = M === void 0 ? "«" : M, ue = e.prevAriaLabel, Me = ue === void 0 ? "" : ue, pe = e.prevLabel, ie = pe === void 0 ? "‹" : pe, se = e.setActiveStartDate, Se = e.showDoubleView, Z = e.view, De = e.views, Ae = De.indexOf(Z) > 0, H = Z !== "century", B = Bs(Z, t), re = H ? zs(Z, t) : void 0, G = mo(Z, t), be = H ? Us(Z, t) : void 0, Ne = function() {
|
|
2992
2993
|
if (B.getFullYear() < 0)
|
|
2993
2994
|
return !0;
|
|
2994
2995
|
var X = Gs(Z, t);
|
|
@@ -3037,7 +3038,7 @@ function Js(e) {
|
|
|
3037
3038
|
var X = "".concat(Ee, "__label");
|
|
3038
3039
|
return i.jsxs("button", { "aria-label": v, "aria-live": g, className: X, disabled: !Ae, onClick: r, style: { flexGrow: 1 }, type: "button", children: [i.jsx("span", { className: "".concat(X, "__labelText ").concat(X, "__labelText--from"), children: ce(t) }), Se ? i.jsxs(i.Fragment, { children: [i.jsx("span", { className: "".concat(X, "__divider"), children: " – " }), i.jsx("span", { className: "".concat(X, "__labelText ").concat(X, "__labelText--to"), children: ce(G) })] }) : null] });
|
|
3039
3040
|
}
|
|
3040
|
-
return i.jsxs("div", { className: Ee, children: [q !== null && H ? i.jsx("button", { "aria-label": C, className: "".concat(Ee, "__arrow ").concat(Ee, "__prev2-button"), disabled: _e, onClick: K, type: "button", children: q }) : null, ie !== null && i.jsx("button", { "aria-label": Me, className: "".concat(Ee, "__arrow ").concat(Ee, "__prev-button"), disabled: Ne, onClick: ne, type: "button", children: ie }), xt(),
|
|
3041
|
+
return i.jsxs("div", { className: Ee, children: [q !== null && H ? i.jsx("button", { "aria-label": C, className: "".concat(Ee, "__arrow ").concat(Ee, "__prev2-button"), disabled: _e, onClick: K, type: "button", children: q }) : null, ie !== null && i.jsx("button", { "aria-label": Me, className: "".concat(Ee, "__arrow ").concat(Ee, "__prev-button"), disabled: Ne, onClick: ne, type: "button", children: ie }), xt(), P !== null && i.jsx("button", { "aria-label": S, className: "".concat(Ee, "__arrow ").concat(Ee, "__next-button"), disabled: de, onClick: we, type: "button", children: P }), f !== null && H ? i.jsx("button", { "aria-label": p, className: "".concat(Ee, "__arrow ").concat(Ee, "__next2-button"), disabled: fe, onClick: Ce, type: "button", children: f }) : null] });
|
|
3041
3042
|
}
|
|
3042
3043
|
var lt = function() {
|
|
3043
3044
|
return lt = Object.assign || function(e) {
|
|
@@ -3593,7 +3594,7 @@ function ir(e, t) {
|
|
|
3593
3594
|
return e instanceof Date && t instanceof Date && e.getTime() === t.getTime();
|
|
3594
3595
|
}
|
|
3595
3596
|
var Pc = br(function(t, r) {
|
|
3596
|
-
var n = t.activeStartDate, a = t.allowPartialRange, o = t.calendarType, s = t.className, l = t.defaultActiveStartDate, u = t.defaultValue, d = t.defaultView, h = t.formatDay, v = t.formatLongDate, g = t.formatMonth, m = t.formatMonthYear, y = t.formatShortWeekday, p = t.formatWeekday, x = t.formatYear, f = t.goToRangeStartOnSelect, b = f === void 0 ? !0 : f, S = t.inputRef, D = t.locale,
|
|
3597
|
+
var n = t.activeStartDate, a = t.allowPartialRange, o = t.calendarType, s = t.className, l = t.defaultActiveStartDate, u = t.defaultValue, d = t.defaultView, h = t.formatDay, v = t.formatLongDate, g = t.formatMonth, m = t.formatMonthYear, y = t.formatShortWeekday, p = t.formatWeekday, x = t.formatYear, f = t.goToRangeStartOnSelect, b = f === void 0 ? !0 : f, S = t.inputRef, D = t.locale, P = t.maxDate, k = P === void 0 ? Nc : P, C = t.maxDetail, M = C === void 0 ? "month" : C, q = t.minDate, ue = q === void 0 ? Mn : q, Me = t.minDetail, pe = Me === void 0 ? "century" : Me, ie = t.navigationAriaLabel, se = t.navigationAriaLive, Se = t.navigationLabel, Z = t.next2AriaLabel, De = t.next2Label, Ae = t.nextAriaLabel, H = t.nextLabel, B = t.onActiveStartDateChange, re = t.onChange, G = t.onClickDay, be = t.onClickDecade, Ne = t.onClickMonth, _e = t.onClickWeekNumber, de = t.onClickYear, fe = t.onDrillDown, ne = t.onDrillUp, K = t.onViewChange, we = t.prev2AriaLabel, Ce = t.prev2Label, ce = t.prevAriaLabel, xt = t.prevLabel, X = t.returnValue, ke = X === void 0 ? "start" : X, ee = t.selectRange, ze = t.showDoubleView, jt = t.showFixedNumberOfWeeks, Ue = t.showNavigation, Rr = Ue === void 0 ? !0 : Ue, Ir = t.showNeighboringCentury, St = t.showNeighboringDecade, Bt = t.showNeighboringMonth, $r = Bt === void 0 ? !0 : Bt, zt = t.showWeekNumbers, Ut = t.tileClassName, Gt = t.tileContent, Mr = t.tileDisabled, nt = t.value, Ot = t.view, qt = L(l), Lr = qt[0], at = qt[1], Ht = L(null), Fr = Ht[0], Xt = Ht[1], Kt = L(Array.isArray(u) ? u.map(function(O) {
|
|
3597
3598
|
return O !== null ? Rt(O) : null;
|
|
3598
3599
|
}) : u != null ? Rt(u) : null), Ge = Kt[0], Jt = Kt[1], Re = L(d), Dt = Re[0], ot = Re[1], ae = n || Lr || Ec({
|
|
3599
3600
|
activeStartDate: n,
|
|
@@ -3995,11 +3996,11 @@ const el = ({
|
|
|
3995
3996
|
}), f;
|
|
3996
3997
|
}), d = ye({}), h = A(
|
|
3997
3998
|
(f, b) => {
|
|
3998
|
-
const { name: S, value: D, type:
|
|
3999
|
+
const { name: S, value: D, type: P, checked: k } = f.target;
|
|
3999
4000
|
b.onChange && b.onChange(D, S), u((C) => {
|
|
4000
4001
|
const q = {
|
|
4001
4002
|
...C || {},
|
|
4002
|
-
[S]:
|
|
4003
|
+
[S]: P === "checkbox" ? k : D
|
|
4003
4004
|
};
|
|
4004
4005
|
return n && n(q), q;
|
|
4005
4006
|
});
|
|
@@ -4053,7 +4054,7 @@ const el = ({
|
|
|
4053
4054
|
/* @__PURE__ */ i.jsx(
|
|
4054
4055
|
"input",
|
|
4055
4056
|
{
|
|
4056
|
-
ref: (
|
|
4057
|
+
ref: (P) => d.current[f.name] = P,
|
|
4057
4058
|
name: f.name,
|
|
4058
4059
|
type: f.type,
|
|
4059
4060
|
placeholder: f.placeholder ?? "",
|
|
@@ -4064,7 +4065,7 @@ const el = ({
|
|
|
4064
4065
|
required: S,
|
|
4065
4066
|
value: l && l[f.name],
|
|
4066
4067
|
checked: f.type === "checkbox" ? !!l[f.name] : void 0,
|
|
4067
|
-
onChange: (
|
|
4068
|
+
onChange: (P) => h(P, f),
|
|
4068
4069
|
onInvalid: f.onInvalid ? f.onInvalid : void 0
|
|
4069
4070
|
}
|
|
4070
4071
|
)
|