@spscommerce/ds-react 8.32.1 → 8.33.1
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/lib/index.js +89 -98
- package/lib/index.umd.cjs +20 -20
- package/package.json +12 -12
package/lib/index.js
CHANGED
|
@@ -86,9 +86,9 @@ function Bb(e) {
|
|
|
86
86
|
function Pb(e) {
|
|
87
87
|
Wt.has(e) || En.has(e) || ma.has(e) || ai.add(e);
|
|
88
88
|
}
|
|
89
|
-
const
|
|
89
|
+
const mt = Dr.default || Dr, xr = "MM/DD/YYYY", Fb = "MM/DD/YYYY hh:mm A", Vb = "MM/DD/YYYY HH:mm", $b = "hh:mm A", Kb = "HH:mm", Hb = /^(\d{1,2})\/(\d{1,2})\/(\d{4})$/, ra = Symbol("Date Parse Error");
|
|
90
90
|
function fr(e) {
|
|
91
|
-
return
|
|
91
|
+
return mt.isMoment(e) ? e.year() * 1e4 + (e.month() + 1) * 100 + e.date() : e.year * 1e4 + e.month * 100 + e.date;
|
|
92
92
|
}
|
|
93
93
|
const te = Object.freeze({
|
|
94
94
|
createFrom(e, t) {
|
|
@@ -96,7 +96,7 @@ const te = Object.freeze({
|
|
|
96
96
|
return null;
|
|
97
97
|
if (typeof e == "string") {
|
|
98
98
|
if (t) {
|
|
99
|
-
const n =
|
|
99
|
+
const n = mt(e, t, !0);
|
|
100
100
|
if (n.isValid())
|
|
101
101
|
return Object.freeze({
|
|
102
102
|
year: n.year(),
|
|
@@ -107,12 +107,7 @@ const te = Object.freeze({
|
|
|
107
107
|
} else {
|
|
108
108
|
const n = Hb.exec(e);
|
|
109
109
|
if (n) {
|
|
110
|
-
const [
|
|
111
|
-
,
|
|
112
|
-
r,
|
|
113
|
-
s,
|
|
114
|
-
o
|
|
115
|
-
] = n;
|
|
110
|
+
const [, r, s, o] = n;
|
|
116
111
|
return Object.freeze({
|
|
117
112
|
year: Number(o),
|
|
118
113
|
month: Number(r),
|
|
@@ -137,7 +132,7 @@ const te = Object.freeze({
|
|
|
137
132
|
if (!e)
|
|
138
133
|
return null;
|
|
139
134
|
let n = null;
|
|
140
|
-
return typeof e == "string" ? t ? n =
|
|
135
|
+
return typeof e == "string" ? t ? n = mt(e, t, !0) : n = mt(e) : mt.isMoment(e) ? n = e : n = te.toMoment(e), n !== null && mt.isMoment(n) && n.isValid() ? n : Object.freeze({
|
|
141
136
|
[ra]: !0,
|
|
142
137
|
year: void 0,
|
|
143
138
|
month: void 0,
|
|
@@ -158,13 +153,13 @@ const te = Object.freeze({
|
|
|
158
153
|
},
|
|
159
154
|
isValid(e) {
|
|
160
155
|
var t;
|
|
161
|
-
return e ?
|
|
156
|
+
return e ? mt.isMoment(e) ? e.isValid() : typeof e == "object" && typeof e.year == "number" && typeof e.month == "number" && typeof e.date == "number" && ((t = te.toMoment(e)) == null ? void 0 : t.isValid()) : !1;
|
|
162
157
|
},
|
|
163
158
|
nullifyInvalidDate(e) {
|
|
164
159
|
return te.isValid(e) ? e : null;
|
|
165
160
|
},
|
|
166
161
|
toMoment(e) {
|
|
167
|
-
return e ?
|
|
162
|
+
return e ? mt.isMoment(e) ? e : mt({
|
|
168
163
|
...e,
|
|
169
164
|
// month is zero-indexed for moment whereas SimpleDate is designed for humans
|
|
170
165
|
month: e.month - 1
|
|
@@ -181,17 +176,13 @@ const te = Object.freeze({
|
|
|
181
176
|
return e.slice(0, 2).map((r) => te.toString(r, t)).join(n);
|
|
182
177
|
},
|
|
183
178
|
toDateTimeString(e, t = !1, n) {
|
|
184
|
-
return e &&
|
|
179
|
+
return e && mt.isMoment(e) && e.isValid() ? n ? t ? e.format(`${n} ${Kb}`) : e.format(`${n} ${$b}`) : t ? e.format(Vb) : e.format(Fb) : "";
|
|
185
180
|
},
|
|
186
181
|
toDateTimeStringRange(e, t = !1, n) {
|
|
187
182
|
if (!e)
|
|
188
183
|
return "";
|
|
189
184
|
const r = te.getRangeSeparator(n);
|
|
190
|
-
return e.map((s) => te.toDateTimeString(
|
|
191
|
-
s,
|
|
192
|
-
t,
|
|
193
|
-
n
|
|
194
|
-
)).join(r);
|
|
185
|
+
return e.map((s) => te.toDateTimeString(s, t, n)).join(r);
|
|
195
186
|
},
|
|
196
187
|
create() {
|
|
197
188
|
const e = /* @__PURE__ */ new Date();
|
|
@@ -236,7 +227,7 @@ const te = Object.freeze({
|
|
|
236
227
|
createRangeFromPreset(e, t) {
|
|
237
228
|
if (typeof e.definition == "function")
|
|
238
229
|
return e.definition();
|
|
239
|
-
const n =
|
|
230
|
+
const n = mt(), r = n.clone().subtract(mt.duration(e.definition));
|
|
240
231
|
return [
|
|
241
232
|
// eslint-disable-next-line array-element-newline
|
|
242
233
|
te.createFrom(r, t),
|
|
@@ -246,19 +237,19 @@ const te = Object.freeze({
|
|
|
246
237
|
createDateTimeRangeFromPreset(e) {
|
|
247
238
|
if (typeof e.definition == "function")
|
|
248
239
|
return e.definition();
|
|
249
|
-
|
|
250
|
-
e.definition === "P0D" ? t = ct().startOf("day") : t = ct().subtract(ct.duration(e.definition));
|
|
251
|
-
const n = ct().endOf("day");
|
|
240
|
+
const t = mt().subtract(mt.duration(e.definition)).startOf("day"), n = mt().endOf("day");
|
|
252
241
|
return [t, n];
|
|
253
242
|
},
|
|
254
243
|
splitMomentInDateTimeParts(e, t = !1, n, r = !1) {
|
|
255
244
|
let s = "";
|
|
256
245
|
t ? s = r ? "23:59" : "00:00" : s = r ? "11:59" : "12:00";
|
|
257
246
|
const o = r ? "PM" : "AM";
|
|
258
|
-
return e &&
|
|
247
|
+
return e && mt.isMoment(e) && e.isValid() ? te.toDateTimeString(e, t, n).split(
|
|
248
|
+
" "
|
|
249
|
+
) : ["", s, t ? void 0 : o];
|
|
259
250
|
},
|
|
260
251
|
getCurrentMoment() {
|
|
261
|
-
return
|
|
252
|
+
return mt();
|
|
262
253
|
},
|
|
263
254
|
validateTimeString(e, t = !1) {
|
|
264
255
|
if (!e)
|
|
@@ -853,7 +844,7 @@ function lv(e, t = {}) {
|
|
|
853
844
|
});
|
|
854
845
|
return p.current;
|
|
855
846
|
}
|
|
856
|
-
const
|
|
847
|
+
const dt = a.forwardRef(
|
|
857
848
|
(e, t) => {
|
|
858
849
|
const {
|
|
859
850
|
className: n,
|
|
@@ -906,7 +897,7 @@ const ut = a.forwardRef(
|
|
|
906
897
|
);
|
|
907
898
|
}
|
|
908
899
|
);
|
|
909
|
-
Object.assign(
|
|
900
|
+
Object.assign(dt, {
|
|
910
901
|
displayName: "SpsFormComponentWrapper"
|
|
911
902
|
});
|
|
912
903
|
function Xl(e) {
|
|
@@ -1481,7 +1472,7 @@ const ha = a.forwardRef((e, t) => {
|
|
|
1481
1472
|
captionKey: "caption"
|
|
1482
1473
|
}) : null,
|
|
1483
1474
|
[Z]
|
|
1484
|
-
), [X, le] = a.useState(-1), [ce, q] = a.useState(x), ae = t || a.useRef(null), we = a.useRef(null), Le = a.useRef(null),
|
|
1475
|
+
), [X, le] = a.useState(-1), [ce, q] = a.useState(x), ae = t || a.useRef(null), we = a.useRef(null), Le = a.useRef(null), pt = fa("sps-option-list-portal"), vt = a.useContext(Zt), [st, ot] = ne || [Ee.BOTTOM_LEFT, Ee.TOP_LEFT], [[Lt, tt], Ke] = a.useState([{}, !1]), he = a.useRef(null), [
|
|
1485
1476
|
Pe,
|
|
1486
1477
|
me,
|
|
1487
1478
|
Je
|
|
@@ -1634,7 +1625,7 @@ const ha = a.forwardRef((e, t) => {
|
|
|
1634
1625
|
function kn(fe, ve) {
|
|
1635
1626
|
return ve ? /* @__PURE__ */ a.createElement(a.Fragment, null, fe.split(ve).map((rt, Bt) => ve.test(rt) ? /* @__PURE__ */ a.createElement("u", { key: Bt }, rt) : /* @__PURE__ */ a.createElement(a.Fragment, { key: Bt }, rt))) : /* @__PURE__ */ a.createElement(a.Fragment, null, fe);
|
|
1636
1627
|
}
|
|
1637
|
-
return
|
|
1628
|
+
return pt(
|
|
1638
1629
|
/* @__PURE__ */ a.createElement(
|
|
1639
1630
|
"div",
|
|
1640
1631
|
{
|
|
@@ -1965,7 +1956,7 @@ function yn({
|
|
|
1965
1956
|
H && window.removeEventListener("resize", H);
|
|
1966
1957
|
};
|
|
1967
1958
|
}, [Z]), ga({ isOpen: Z, rootRef: M }), /* @__PURE__ */ a.createElement(
|
|
1968
|
-
|
|
1959
|
+
dt,
|
|
1969
1960
|
{
|
|
1970
1961
|
id: R,
|
|
1971
1962
|
className: P,
|
|
@@ -2212,7 +2203,7 @@ function Or({
|
|
|
2212
2203
|
T(L.target.checked), D(!1), g && (g.setValue(L.target.checked), g.markAsDirty()), f && f(L), (C = v.current) == null || C.focus();
|
|
2213
2204
|
}
|
|
2214
2205
|
return /* @__PURE__ */ a.createElement(
|
|
2215
|
-
|
|
2206
|
+
dt,
|
|
2216
2207
|
{
|
|
2217
2208
|
id: I,
|
|
2218
2209
|
className: x,
|
|
@@ -2969,14 +2960,14 @@ function Fv() {
|
|
|
2969
2960
|
case p:
|
|
2970
2961
|
return Le;
|
|
2971
2962
|
default:
|
|
2972
|
-
var
|
|
2973
|
-
switch (
|
|
2963
|
+
var pt = Le && Le.$$typeof;
|
|
2964
|
+
switch (pt) {
|
|
2974
2965
|
case c:
|
|
2975
2966
|
case m:
|
|
2976
2967
|
case v:
|
|
2977
2968
|
case g:
|
|
2978
2969
|
case l:
|
|
2979
|
-
return
|
|
2970
|
+
return pt;
|
|
2980
2971
|
default:
|
|
2981
2972
|
return we;
|
|
2982
2973
|
}
|
|
@@ -3975,13 +3966,13 @@ function hy(e, t) {
|
|
|
3975
3966
|
return U ? se : be({}, se, {
|
|
3976
3967
|
subscription: le
|
|
3977
3968
|
});
|
|
3978
|
-
}, [U, se, le]), ae = ti(uy, ly, fy), we = ae[0], Le = we[0],
|
|
3969
|
+
}, [U, se, le]), ae = ti(uy, ly, fy), we = ae[0], Le = we[0], pt = ae[1];
|
|
3979
3970
|
if (Le && Le.error)
|
|
3980
3971
|
throw Le.error;
|
|
3981
3972
|
var vt = Se(), st = Se(z), ot = Se(), Lt = Se(!1), tt = M(function() {
|
|
3982
3973
|
return ot.current && z === st.current ? ot.current : j(H.getState(), z);
|
|
3983
3974
|
}, [H, Le, z]);
|
|
3984
|
-
kc(py, [st, vt, Lt, z, tt, ot, ce]), kc(my, [m, H, le, j, st, vt, Lt, ot, ce,
|
|
3975
|
+
kc(py, [st, vt, Lt, z, tt, ot, ce]), kc(my, [m, H, le, j, st, vt, Lt, ot, ce, pt], [H, le, j]);
|
|
3985
3976
|
var Ke = et(function() {
|
|
3986
3977
|
return /* @__PURE__ */ Q.createElement(L, be({}, tt, {
|
|
3987
3978
|
ref: $
|
|
@@ -4350,7 +4341,7 @@ function Gy(e, t) {
|
|
|
4350
4341
|
return !1;
|
|
4351
4342
|
return !0;
|
|
4352
4343
|
}
|
|
4353
|
-
function
|
|
4344
|
+
function ct(e, t) {
|
|
4354
4345
|
t === void 0 && (t = Gy);
|
|
4355
4346
|
var n, r = [], s, o = !1;
|
|
4356
4347
|
function l() {
|
|
@@ -4519,7 +4510,7 @@ var Qy = function(e) {
|
|
|
4519
4510
|
onDragStart: tT,
|
|
4520
4511
|
onDragUpdate: nT,
|
|
4521
4512
|
onDragEnd: rT
|
|
4522
|
-
},
|
|
4513
|
+
}, ut = {
|
|
4523
4514
|
x: 0,
|
|
4524
4515
|
y: 0
|
|
4525
4516
|
}, ft = function(t, n) {
|
|
@@ -4655,19 +4646,19 @@ function $n(e, t) {
|
|
|
4655
4646
|
function Du(e) {
|
|
4656
4647
|
return Array.prototype.slice.call(e);
|
|
4657
4648
|
}
|
|
4658
|
-
var Nu =
|
|
4649
|
+
var Nu = ct(function(e) {
|
|
4659
4650
|
return e.reduce(function(t, n) {
|
|
4660
4651
|
return t[n.descriptor.id] = n, t;
|
|
4661
4652
|
}, {});
|
|
4662
|
-
}), xu =
|
|
4653
|
+
}), xu = ct(function(e) {
|
|
4663
4654
|
return e.reduce(function(t, n) {
|
|
4664
4655
|
return t[n.descriptor.id] = n, t;
|
|
4665
4656
|
}, {});
|
|
4666
|
-
}), gs =
|
|
4657
|
+
}), gs = ct(function(e) {
|
|
4667
4658
|
return is(e);
|
|
4668
|
-
}), dT =
|
|
4659
|
+
}), dT = ct(function(e) {
|
|
4669
4660
|
return is(e);
|
|
4670
|
-
}), sr =
|
|
4661
|
+
}), sr = ct(function(e, t) {
|
|
4671
4662
|
var n = dT(t).filter(function(r) {
|
|
4672
4663
|
return e === r.descriptor.droppableId;
|
|
4673
4664
|
}).sort(function(r, s) {
|
|
@@ -4681,7 +4672,7 @@ function bi(e) {
|
|
|
4681
4672
|
function bs(e) {
|
|
4682
4673
|
return e.at && e.at.type === "COMBINE" ? e.at.combine : null;
|
|
4683
4674
|
}
|
|
4684
|
-
var vs =
|
|
4675
|
+
var vs = ct(function(e, t) {
|
|
4685
4676
|
return t.filter(function(n) {
|
|
4686
4677
|
return n.descriptor.id !== e.descriptor.id;
|
|
4687
4678
|
});
|
|
@@ -4726,7 +4717,7 @@ var vs = dt(function(e, t) {
|
|
|
4726
4717
|
}, Ar = function(e, t) {
|
|
4727
4718
|
return e.descriptor.droppableId === t.descriptor.id;
|
|
4728
4719
|
}, ku = {
|
|
4729
|
-
point:
|
|
4720
|
+
point: ut,
|
|
4730
4721
|
value: 0
|
|
4731
4722
|
}, la = {
|
|
4732
4723
|
invisible: {},
|
|
@@ -4789,7 +4780,7 @@ var vs = dt(function(e, t) {
|
|
|
4789
4780
|
};
|
|
4790
4781
|
};
|
|
4791
4782
|
}, hT = function(t, n) {
|
|
4792
|
-
var r = n.frame ? n.frame.scroll.diff.displacement :
|
|
4783
|
+
var r = n.frame ? n.frame.scroll.diff.displacement : ut;
|
|
4793
4784
|
return ba(t, r);
|
|
4794
4785
|
}, ST = function(t, n, r) {
|
|
4795
4786
|
return n.subject.active ? r(n.subject.active)(t) : !1;
|
|
@@ -4968,7 +4959,7 @@ var wT = function(e) {
|
|
|
4968
4959
|
});
|
|
4969
4960
|
}, NT = function(e) {
|
|
4970
4961
|
var t = e.displaced, n = e.afterCritical, r = e.combineWith, s = e.displacedBy, o = !!(t.visible[r] || t.invisible[r]);
|
|
4971
|
-
return Vn(r, n) ? o ?
|
|
4962
|
+
return Vn(r, n) ? o ? ut : Lr(s.point) : o ? s.point : ut;
|
|
4972
4963
|
}, xT = function(e) {
|
|
4973
4964
|
var t = e.afterCritical, n = e.impact, r = e.draggables, s = bs(n);
|
|
4974
4965
|
s || (process.env.NODE_ENV, V());
|
|
@@ -5252,7 +5243,7 @@ var OT = function(e) {
|
|
|
5252
5243
|
return f < m ? -1 : m < f ? 1 : c.descriptor.index - u.descriptor.index;
|
|
5253
5244
|
});
|
|
5254
5245
|
return l[0] || null;
|
|
5255
|
-
}, va =
|
|
5246
|
+
}, va = ct(function(t, n) {
|
|
5256
5247
|
var r = n[t.line];
|
|
5257
5248
|
return {
|
|
5258
5249
|
value: r,
|
|
@@ -5852,7 +5843,7 @@ var Gc = {
|
|
|
5852
5843
|
var n = t.payload, r = n.critical, s = n.clientSelection, o = n.viewport, l = n.dimensions, c = n.movementMode, u = l.draggables[r.draggable.id], f = l.droppables[r.droppable.id], m = {
|
|
5853
5844
|
selection: s,
|
|
5854
5845
|
borderBoxCenter: u.client.borderBox.center,
|
|
5855
|
-
offset:
|
|
5846
|
+
offset: ut
|
|
5856
5847
|
}, p = {
|
|
5857
5848
|
client: m,
|
|
5858
5849
|
page: {
|
|
@@ -6227,7 +6218,7 @@ var xE = function(e) {
|
|
|
6227
6218
|
outOfTheWay: "transform " + zn,
|
|
6228
6219
|
placeholder: "height " + zn + ", width " + zn + ", margin " + zn
|
|
6229
6220
|
}, Yc = function(t) {
|
|
6230
|
-
return Pn(t,
|
|
6221
|
+
return Pn(t, ut) ? null : "translate(" + t.x + "px, " + t.y + "px)";
|
|
6231
6222
|
}, Wo = {
|
|
6232
6223
|
moveTo: Yc,
|
|
6233
6224
|
drop: function(t, n) {
|
|
@@ -6699,7 +6690,7 @@ function tw(e) {
|
|
|
6699
6690
|
s || (n.collectionStarting(), s = requestAnimationFrame(function() {
|
|
6700
6691
|
s = null, ya();
|
|
6701
6692
|
var m = r, p = m.additions, h = m.removals, g = m.modified, v = Object.keys(p).map(function(E) {
|
|
6702
|
-
return t.draggable.getById(E).getDimension(
|
|
6693
|
+
return t.draggable.getById(E).getDimension(ut);
|
|
6703
6694
|
}).sort(function(E, D) {
|
|
6704
6695
|
return E.descriptor.index - D.descriptor.index;
|
|
6705
6696
|
}), w = Object.keys(g).map(function(E) {
|
|
@@ -6766,8 +6757,8 @@ var Ju = function(e) {
|
|
|
6766
6757
|
current: e,
|
|
6767
6758
|
max: t,
|
|
6768
6759
|
diff: {
|
|
6769
|
-
value:
|
|
6770
|
-
displacement:
|
|
6760
|
+
value: ut,
|
|
6761
|
+
displacement: ut
|
|
6771
6762
|
}
|
|
6772
6763
|
}
|
|
6773
6764
|
};
|
|
@@ -6865,7 +6856,7 @@ var aw = function(e, t) {
|
|
|
6865
6856
|
return e.phase === "IDLE" ? !0 : e.phase !== "DROP_ANIMATING" || e.completed.result.draggableId === t ? !1 : e.completed.result.reason === "DROP";
|
|
6866
6857
|
}, sw = function(e) {
|
|
6867
6858
|
window.scrollBy(e.x, e.y);
|
|
6868
|
-
}, ow =
|
|
6859
|
+
}, ow = ct(function(e) {
|
|
6869
6860
|
return gs(e).filter(function(t) {
|
|
6870
6861
|
return !(!t.isEnabled || !t.frame);
|
|
6871
6862
|
});
|
|
@@ -6980,14 +6971,14 @@ var aw = function(e, t) {
|
|
|
6980
6971
|
x: u,
|
|
6981
6972
|
y: c
|
|
6982
6973
|
});
|
|
6983
|
-
if (Pn(f,
|
|
6974
|
+
if (Pn(f, ut))
|
|
6984
6975
|
return null;
|
|
6985
6976
|
var m = pw({
|
|
6986
6977
|
container: n,
|
|
6987
6978
|
subject: r,
|
|
6988
6979
|
proposedScroll: f
|
|
6989
6980
|
});
|
|
6990
|
-
return m ? Pn(m,
|
|
6981
|
+
return m ? Pn(m, ut) ? null : m : null;
|
|
6991
6982
|
}, fw = Cu(function(e) {
|
|
6992
6983
|
return e === 0 ? 0 : e > 0 ? 1 : -1;
|
|
6993
6984
|
}), Ii = /* @__PURE__ */ function() {
|
|
@@ -6999,7 +6990,7 @@ var aw = function(e, t) {
|
|
|
6999
6990
|
x: e(o.x, r.x),
|
|
7000
6991
|
y: e(o.y, r.y)
|
|
7001
6992
|
};
|
|
7002
|
-
return Pn(l,
|
|
6993
|
+
return Pn(l, ut) ? null : l;
|
|
7003
6994
|
};
|
|
7004
6995
|
}(), np = function(t) {
|
|
7005
6996
|
var n = t.max, r = t.current, s = t.change, o = {
|
|
@@ -7285,7 +7276,7 @@ var aw = function(e, t) {
|
|
|
7285
7276
|
function Nw(e, t) {
|
|
7286
7277
|
var n = _e(function() {
|
|
7287
7278
|
return Dw(e);
|
|
7288
|
-
}, [e]), r = Se(null), s = Se(null), o = ge(
|
|
7279
|
+
}, [e]), r = Se(null), s = Se(null), o = ge(ct(function(p) {
|
|
7289
7280
|
var h = s.current;
|
|
7290
7281
|
h || (process.env.NODE_ENV !== "production" ? V(!1, "Cannot set dynamic style element if it is not set") : V()), h.textContent = p;
|
|
7291
7282
|
}), []), l = ge(function(p) {
|
|
@@ -8655,8 +8646,8 @@ var Pi = function(t) {
|
|
|
8655
8646
|
current: u.scroll,
|
|
8656
8647
|
max: w,
|
|
8657
8648
|
diff: {
|
|
8658
|
-
value:
|
|
8659
|
-
displacement:
|
|
8649
|
+
value: ut,
|
|
8650
|
+
displacement: ut
|
|
8660
8651
|
}
|
|
8661
8652
|
}
|
|
8662
8653
|
};
|
|
@@ -8741,7 +8732,7 @@ function UC(e) {
|
|
|
8741
8732
|
mode: e.mode
|
|
8742
8733
|
};
|
|
8743
8734
|
}, [e.droppableId, e.mode, e.type]), u = Se(c), f = _e(function() {
|
|
8744
|
-
return
|
|
8735
|
+
return ct(function(k, x) {
|
|
8745
8736
|
t.current || (process.env.NODE_ENV !== "production" ? V(!1, "Can only update scroll when dragging") : V());
|
|
8746
8737
|
var B = {
|
|
8747
8738
|
x: k,
|
|
@@ -8751,7 +8742,7 @@ function UC(e) {
|
|
|
8751
8742
|
});
|
|
8752
8743
|
}, [c.id, o]), m = ge(function() {
|
|
8753
8744
|
var k = t.current;
|
|
8754
|
-
return !k || !k.env.closestScrollable ?
|
|
8745
|
+
return !k || !k.env.closestScrollable ? ut : Uo(k.env.closestScrollable);
|
|
8755
8746
|
}, []), p = ge(function() {
|
|
8756
8747
|
var k = m();
|
|
8757
8748
|
f(k.x, k.y);
|
|
@@ -9013,7 +9004,7 @@ function iD(e) {
|
|
|
9013
9004
|
return e.type === "DRAGGING" ? sD(e) : oD(e);
|
|
9014
9005
|
}
|
|
9015
9006
|
function lD(e, t, n) {
|
|
9016
|
-
n === void 0 && (n =
|
|
9007
|
+
n === void 0 && (n = ut);
|
|
9017
9008
|
var r = window.getComputedStyle(t), s = t.getBoundingClientRect(), o = vu(s, r), l = ss(o, n), c = {
|
|
9018
9009
|
client: o,
|
|
9019
9010
|
tagName: t.tagName.toLowerCase(),
|
|
@@ -9155,12 +9146,12 @@ var Sp = function(e, t) {
|
|
|
9155
9146
|
return t.at && t.at.type === "COMBINE" ? t.at.combine.draggableId : null;
|
|
9156
9147
|
};
|
|
9157
9148
|
function SD() {
|
|
9158
|
-
var e =
|
|
9149
|
+
var e = ct(function(s, o) {
|
|
9159
9150
|
return {
|
|
9160
9151
|
x: s,
|
|
9161
9152
|
y: o
|
|
9162
9153
|
};
|
|
9163
|
-
}), t =
|
|
9154
|
+
}), t = ct(function(s, o, l, c, u) {
|
|
9164
9155
|
return {
|
|
9165
9156
|
isDragging: !0,
|
|
9166
9157
|
isClone: o,
|
|
@@ -9171,7 +9162,7 @@ function SD() {
|
|
|
9171
9162
|
combineWith: c,
|
|
9172
9163
|
combineTargetFor: null
|
|
9173
9164
|
};
|
|
9174
|
-
}), n =
|
|
9165
|
+
}), n = ct(function(s, o, l, c, u, f, m) {
|
|
9175
9166
|
return {
|
|
9176
9167
|
mapped: {
|
|
9177
9168
|
type: "DRAGGING",
|
|
@@ -9236,19 +9227,19 @@ function bp(e) {
|
|
|
9236
9227
|
var gD = {
|
|
9237
9228
|
mapped: {
|
|
9238
9229
|
type: "SECONDARY",
|
|
9239
|
-
offset:
|
|
9230
|
+
offset: ut,
|
|
9240
9231
|
combineTargetFor: null,
|
|
9241
9232
|
shouldAnimateDisplacement: !0,
|
|
9242
9233
|
snapshot: bp(null)
|
|
9243
9234
|
}
|
|
9244
9235
|
};
|
|
9245
9236
|
function bD() {
|
|
9246
|
-
var e =
|
|
9237
|
+
var e = ct(function(l, c) {
|
|
9247
9238
|
return {
|
|
9248
9239
|
x: l,
|
|
9249
9240
|
y: c
|
|
9250
9241
|
};
|
|
9251
|
-
}), t =
|
|
9242
|
+
}), t = ct(bp), n = ct(function(l, c, u) {
|
|
9252
9243
|
return c === void 0 && (c = null), {
|
|
9253
9244
|
mapped: {
|
|
9254
9245
|
type: "SECONDARY",
|
|
@@ -9259,7 +9250,7 @@ function bD() {
|
|
|
9259
9250
|
}
|
|
9260
9251
|
};
|
|
9261
9252
|
}), r = function(c) {
|
|
9262
|
-
return c ? n(
|
|
9253
|
+
return c ? n(ut, c, !0) : null;
|
|
9263
9254
|
}, s = function(c, u, f, m) {
|
|
9264
9255
|
var p = f.displaced.visible[c], h = !!(m.inVirtualList && m.effected[c]), g = bs(f), v = g && g.draggableId === c ? u : null;
|
|
9265
9256
|
if (!p) {
|
|
@@ -9407,7 +9398,7 @@ var yo = function(t, n) {
|
|
|
9407
9398
|
useClone: null
|
|
9408
9399
|
}, n = be({}, t, {
|
|
9409
9400
|
shouldAnimatePlaceholder: !1
|
|
9410
|
-
}), r =
|
|
9401
|
+
}), r = ct(function(l) {
|
|
9411
9402
|
return {
|
|
9412
9403
|
draggableId: l.id,
|
|
9413
9404
|
type: l.type,
|
|
@@ -9416,7 +9407,7 @@ var yo = function(t, n) {
|
|
|
9416
9407
|
droppableId: l.droppableId
|
|
9417
9408
|
}
|
|
9418
9409
|
};
|
|
9419
|
-
}), s =
|
|
9410
|
+
}), s = ct(function(l, c, u, f, m, p) {
|
|
9420
9411
|
var h = m.descriptor.id, g = m.descriptor.droppableId === l;
|
|
9421
9412
|
if (g) {
|
|
9422
9413
|
var v = p ? {
|
|
@@ -11454,7 +11445,7 @@ function kp({
|
|
|
11454
11445
|
return a.useEffect(() => {
|
|
11455
11446
|
ne.current ? u ? te.isValid(u) && k(te.toString(u, f)) : F() : ne.current = !0;
|
|
11456
11447
|
}, [u, f]), /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(
|
|
11457
|
-
|
|
11448
|
+
dt,
|
|
11458
11449
|
{
|
|
11459
11450
|
id: v,
|
|
11460
11451
|
className: M,
|
|
@@ -11823,7 +11814,7 @@ function Ip({
|
|
|
11823
11814
|
let se = B;
|
|
11824
11815
|
const U = te.getRangeSeparator(g);
|
|
11825
11816
|
return C && Z(C) === "Before" && B.startsWith(U) ? se = B.substring(1) : C && Z(C) === "After" && B.endsWith(U) && (se = B.substring(0, B.length - 1)), /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(
|
|
11826
|
-
|
|
11817
|
+
dt,
|
|
11827
11818
|
{
|
|
11828
11819
|
id: E,
|
|
11829
11820
|
className: re,
|
|
@@ -12267,7 +12258,7 @@ const qD = {
|
|
|
12267
12258
|
function Le(he) {
|
|
12268
12259
|
he.nativeEvent.stopImmediatePropagation(), u || j({ isOpen: !H.isOpen });
|
|
12269
12260
|
}
|
|
12270
|
-
function
|
|
12261
|
+
function pt(he) {
|
|
12271
12262
|
u || ([
|
|
12272
12263
|
"Up",
|
|
12273
12264
|
"ArrowUp",
|
|
@@ -12328,11 +12319,11 @@ const qD = {
|
|
|
12328
12319
|
o
|
|
12329
12320
|
), Ke = H.text || E || P("design-system:select.defaultPlaceholder", { defaultValue: "Select one..." });
|
|
12330
12321
|
return /* @__PURE__ */ a.createElement(
|
|
12331
|
-
|
|
12322
|
+
dt,
|
|
12332
12323
|
{
|
|
12333
12324
|
id: $,
|
|
12334
12325
|
className: tt,
|
|
12335
|
-
onKeyDown:
|
|
12326
|
+
onKeyDown: pt,
|
|
12336
12327
|
formControl: f,
|
|
12337
12328
|
formMeta: m,
|
|
12338
12329
|
ref: se,
|
|
@@ -12963,7 +12954,7 @@ function Mp({
|
|
|
12963
12954
|
}
|
|
12964
12955
|
ce(nt);
|
|
12965
12956
|
}
|
|
12966
|
-
function
|
|
12957
|
+
function pt(ie) {
|
|
12967
12958
|
ne(ie.target.value), P !== null && (H(null), T == null || T(null));
|
|
12968
12959
|
}
|
|
12969
12960
|
function vt(ie) {
|
|
@@ -13104,7 +13095,7 @@ function Mp({
|
|
|
13104
13095
|
]);
|
|
13105
13096
|
const ke = W(bd, "sps-text-input", j && `${bd}--open`, e);
|
|
13106
13097
|
return /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("div", { className: W("sps-datetime-range-picker") }, /* @__PURE__ */ a.createElement("div", { className: W("sps-datetime-range-picker__pair") }, /* @__PURE__ */ a.createElement(
|
|
13107
|
-
|
|
13098
|
+
dt,
|
|
13108
13099
|
{
|
|
13109
13100
|
id: D,
|
|
13110
13101
|
className: ke,
|
|
@@ -13129,7 +13120,7 @@ function Mp({
|
|
|
13129
13120
|
"data-testid": `${h}_from_date_input`,
|
|
13130
13121
|
id: I,
|
|
13131
13122
|
placeholder: !M && !P ? (p == null ? void 0 : p.toUpperCase()) || xr : ae ? G[0] : we ? F[0] : void 0,
|
|
13132
|
-
onChange:
|
|
13123
|
+
onChange: pt,
|
|
13133
13124
|
onClick: X,
|
|
13134
13125
|
onFocus: X,
|
|
13135
13126
|
onBlur: () => st(),
|
|
@@ -13184,7 +13175,7 @@ function Mp({
|
|
|
13184
13175
|
notClearable: !0
|
|
13185
13176
|
}
|
|
13186
13177
|
)))), !P && /* @__PURE__ */ a.createElement("span", { className: W("sps-datepicker__to") }, "to"), !P && /* @__PURE__ */ a.createElement("div", { className: W("sps-datetime-range-picker__pair") }, /* @__PURE__ */ a.createElement(
|
|
13187
|
-
|
|
13178
|
+
dt,
|
|
13188
13179
|
{
|
|
13189
13180
|
id: k,
|
|
13190
13181
|
className: ke,
|
|
@@ -13772,7 +13763,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
13772
13763
|
function we() {
|
|
13773
13764
|
return this._invalidDate;
|
|
13774
13765
|
}
|
|
13775
|
-
var Le = "%d",
|
|
13766
|
+
var Le = "%d", pt = /\d{1,2}/;
|
|
13776
13767
|
function vt(i) {
|
|
13777
13768
|
return this._ordinal.replace("%d", i);
|
|
13778
13769
|
}
|
|
@@ -14376,7 +14367,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14376
14367
|
longDateFormat: ce,
|
|
14377
14368
|
invalidDate: ae,
|
|
14378
14369
|
ordinal: Le,
|
|
14379
|
-
dayOfMonthOrdinalParse:
|
|
14370
|
+
dayOfMonthOrdinalParse: pt,
|
|
14380
14371
|
relativeTime: st,
|
|
14381
14372
|
months: vf,
|
|
14382
14373
|
monthsShort: il,
|
|
@@ -18638,7 +18629,7 @@ function Fp({
|
|
|
18638
18629
|
return document.addEventListener("click", H), () => {
|
|
18639
18630
|
document.removeEventListener("click", H);
|
|
18640
18631
|
};
|
|
18641
|
-
}, []), /* @__PURE__ */ a.createElement(
|
|
18632
|
+
}, []), /* @__PURE__ */ a.createElement(dt, { ref: P, formMeta: Y, formControl: ee }, /* @__PURE__ */ a.createElement("div", { className: K }, /* @__PURE__ */ a.createElement(
|
|
18642
18633
|
"button",
|
|
18643
18634
|
{
|
|
18644
18635
|
className: W(
|
|
@@ -22570,7 +22561,7 @@ function Jp({
|
|
|
22570
22561
|
function Le(me) {
|
|
22571
22562
|
O.indexOf(me) === -1 && we([...O, me]), q();
|
|
22572
22563
|
}
|
|
22573
|
-
function
|
|
22564
|
+
function pt(me) {
|
|
22574
22565
|
const Je = O.filter((Te, yt) => yt !== me);
|
|
22575
22566
|
we(Je);
|
|
22576
22567
|
}
|
|
@@ -22584,11 +22575,11 @@ function Jp({
|
|
|
22584
22575
|
switch (me.key) {
|
|
22585
22576
|
case "Backspace":
|
|
22586
22577
|
if (ee.activeTagIndex === O.length - 1) {
|
|
22587
|
-
|
|
22578
|
+
pt(ee.activeTagIndex), q();
|
|
22588
22579
|
return;
|
|
22589
22580
|
}
|
|
22590
22581
|
if (ee.activeTagIndex !== null) {
|
|
22591
|
-
|
|
22582
|
+
pt(ee.activeTagIndex);
|
|
22592
22583
|
return;
|
|
22593
22584
|
}
|
|
22594
22585
|
if (yt) {
|
|
@@ -22598,7 +22589,7 @@ function Jp({
|
|
|
22598
22589
|
break;
|
|
22599
22590
|
case "Delete":
|
|
22600
22591
|
if (ee.activeTagIndex !== null) {
|
|
22601
|
-
|
|
22592
|
+
pt(ee.activeTagIndex);
|
|
22602
22593
|
return;
|
|
22603
22594
|
}
|
|
22604
22595
|
break;
|
|
@@ -22666,7 +22657,7 @@ function Jp({
|
|
|
22666
22657
|
me && window.removeEventListener("resize", me);
|
|
22667
22658
|
};
|
|
22668
22659
|
}, [j]), ga({ isOpen: j, rootRef: z }), /* @__PURE__ */ a.createElement(
|
|
22669
|
-
|
|
22660
|
+
dt,
|
|
22670
22661
|
{
|
|
22671
22662
|
id: K,
|
|
22672
22663
|
className: he,
|
|
@@ -22704,7 +22695,7 @@ function Jp({
|
|
|
22704
22695
|
disabled: c,
|
|
22705
22696
|
"aria-selected": "true",
|
|
22706
22697
|
key: Pe[Je],
|
|
22707
|
-
onRemove: () =>
|
|
22698
|
+
onRemove: () => pt(Je)
|
|
22708
22699
|
},
|
|
22709
22700
|
I ? me[I] : me
|
|
22710
22701
|
)), /* @__PURE__ */ a.createElement(
|
|
@@ -23657,7 +23648,7 @@ function Xp({
|
|
|
23657
23648
|
T && (T.setValue(v), T.markAsDirty()), p && p(B), (L = E.current) == null || L.focus();
|
|
23658
23649
|
}
|
|
23659
23650
|
return /* @__PURE__ */ a.createElement(
|
|
23660
|
-
|
|
23651
|
+
dt,
|
|
23661
23652
|
{
|
|
23662
23653
|
id: D,
|
|
23663
23654
|
className: k,
|
|
@@ -26033,7 +26024,7 @@ const px = {
|
|
|
26033
26024
|
e
|
|
26034
26025
|
);
|
|
26035
26026
|
return /* @__PURE__ */ a.createElement(
|
|
26036
|
-
|
|
26027
|
+
dt,
|
|
26037
26028
|
{
|
|
26038
26029
|
id: D,
|
|
26039
26030
|
className: C,
|
|
@@ -26234,7 +26225,7 @@ function am({
|
|
|
26234
26225
|
e
|
|
26235
26226
|
);
|
|
26236
26227
|
return /* @__PURE__ */ a.createElement(
|
|
26237
|
-
|
|
26228
|
+
dt,
|
|
26238
26229
|
{
|
|
26239
26230
|
id: T,
|
|
26240
26231
|
className: B,
|
|
@@ -26428,7 +26419,7 @@ function om(e) {
|
|
|
26428
26419
|
n
|
|
26429
26420
|
);
|
|
26430
26421
|
return /* @__PURE__ */ a.createElement(
|
|
26431
|
-
|
|
26422
|
+
dt,
|
|
26432
26423
|
{
|
|
26433
26424
|
id: D,
|
|
26434
26425
|
formControl: o,
|
|
@@ -28704,7 +28695,7 @@ function Tm({
|
|
|
28704
28695
|
e
|
|
28705
28696
|
), K = new Array((f == null ? void 0 : f.length) || 0).fill(0).map((Y, ee) => `${T}_tag-${ee}`);
|
|
28706
28697
|
return /* @__PURE__ */ a.createElement(
|
|
28707
|
-
|
|
28698
|
+
dt,
|
|
28708
28699
|
{
|
|
28709
28700
|
id: T,
|
|
28710
28701
|
className: Z,
|
|
@@ -29040,7 +29031,7 @@ const Vx = {
|
|
|
29040
29031
|
}, [x]);
|
|
29041
29032
|
const O = W("sps-time-input", t);
|
|
29042
29033
|
return u ? /* @__PURE__ */ a.createElement(
|
|
29043
|
-
|
|
29034
|
+
dt,
|
|
29044
29035
|
{
|
|
29045
29036
|
id: w,
|
|
29046
29037
|
formControl: r,
|
|
@@ -29072,7 +29063,7 @@ const Vx = {
|
|
|
29072
29063
|
}
|
|
29073
29064
|
)
|
|
29074
29065
|
) : /* @__PURE__ */ a.createElement(
|
|
29075
|
-
|
|
29066
|
+
dt,
|
|
29076
29067
|
{
|
|
29077
29068
|
id: w,
|
|
29078
29069
|
formControl: r,
|
|
@@ -31956,7 +31947,7 @@ function DI({
|
|
|
31956
31947
|
e
|
|
31957
31948
|
);
|
|
31958
31949
|
return /* @__PURE__ */ a.createElement(
|
|
31959
|
-
|
|
31950
|
+
dt,
|
|
31960
31951
|
{
|
|
31961
31952
|
id: m,
|
|
31962
31953
|
className: E,
|
|
@@ -36061,7 +36052,7 @@ export {
|
|
|
36061
36052
|
XM as SpsFocusedTaskExamples,
|
|
36062
36053
|
ws as SpsForm,
|
|
36063
36054
|
ov as SpsFormArrayMeta,
|
|
36064
|
-
|
|
36055
|
+
dt as SpsFormComponentWrapper,
|
|
36065
36056
|
LD as SpsFormExamples,
|
|
36066
36057
|
ns as SpsFormFieldMeta,
|
|
36067
36058
|
sv as SpsFormGroupMeta,
|