@spscommerce/ds-react 8.51.3 → 8.52.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 +161 -165
- package/lib/index.umd.cjs +3 -3
- package/lib/utils/selectChildren.d.ts +0 -2
- package/package.json +14 -12
- package/vite.config.mjs +1 -3
package/lib/index.js
CHANGED
|
@@ -7,7 +7,8 @@ import { SpinnerSize as Eu, Position as ue, ZStratum as Tu, SpsOptionListOption
|
|
|
7
7
|
import { useWoodlandLanguage as he } from "@spscommerce/i18n";
|
|
8
8
|
import Ou, { createPortal as Pu, unstable_batchedUpdates as Bu, flushSync as jl } from "react-dom";
|
|
9
9
|
import { colors as la } from "@spscommerce/ds-colors";
|
|
10
|
-
import {
|
|
10
|
+
import { Tabs as Fu } from "@sps-woodland/tabs";
|
|
11
|
+
import { BUILDING_SMALL as Au, BUILDING_LARGE as $u } from "@sps-woodland/illustrations";
|
|
11
12
|
function Yl(e) {
|
|
12
13
|
var t, n, r = "";
|
|
13
14
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
@@ -21,11 +22,11 @@ function B() {
|
|
|
21
22
|
for (var e, t, n = 0, r = "", a = arguments.length; n < a; n++) (e = arguments[n]) && (t = Yl(e)) && (r && (r += " "), r += t);
|
|
22
23
|
return r;
|
|
23
24
|
}
|
|
24
|
-
const
|
|
25
|
+
const Vu = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
25
26
|
let Qe = (e = 21) => {
|
|
26
27
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
27
28
|
for (; e--; )
|
|
28
|
-
t +=
|
|
29
|
+
t += Vu[n[e] & 63];
|
|
29
30
|
return t;
|
|
30
31
|
};
|
|
31
32
|
function pn(e) {
|
|
@@ -44,7 +45,7 @@ function La(e) {
|
|
|
44
45
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
45
46
|
}
|
|
46
47
|
var No, Vs;
|
|
47
|
-
function
|
|
48
|
+
function Ku() {
|
|
48
49
|
if (Vs) return No;
|
|
49
50
|
Vs = 1;
|
|
50
51
|
var e = "[object Object]";
|
|
@@ -77,15 +78,15 @@ function Vu() {
|
|
|
77
78
|
}
|
|
78
79
|
return No = m, No;
|
|
79
80
|
}
|
|
80
|
-
var
|
|
81
|
-
const ql = /* @__PURE__ */ La(
|
|
82
|
-
function
|
|
81
|
+
var Hu = Ku();
|
|
82
|
+
const ql = /* @__PURE__ */ La(Hu), bt = /* @__PURE__ */ new Set(), lr = /* @__PURE__ */ new Set(), Kt = /* @__PURE__ */ new Set(), Ra = /* @__PURE__ */ new Set();
|
|
83
|
+
function Wu(e) {
|
|
83
84
|
bt.has(e) || Kt.has(e) || Ra.has(e) || lr.add(e);
|
|
84
85
|
}
|
|
85
|
-
function
|
|
86
|
+
function Gu(e) {
|
|
86
87
|
bt.has(e) || Kt.has(e) || lr.has(e) || Ra.add(e);
|
|
87
88
|
}
|
|
88
|
-
const Ue = Cn.default || Cn, Dn = "MM/DD/YYYY",
|
|
89
|
+
const Ue = Cn.default || Cn, Dn = "MM/DD/YYYY", Uu = "MM/DD/YYYY hh:mm A", zu = "MM/DD/YYYY HH:mm", ju = "hh:mm A", Yu = "HH:mm", qu = /^(\d{1,2})\/(\d{1,2})\/(\d{4})$/, Xn = /* @__PURE__ */ Symbol("Date Parse Error");
|
|
89
90
|
function Sn(e) {
|
|
90
91
|
return Ue.isMoment(e) ? e.year() * 1e4 + (e.month() + 1) * 100 + e.date() : e.year * 1e4 + e.month * 100 + e.date;
|
|
91
92
|
}
|
|
@@ -104,7 +105,7 @@ const U = Object.freeze({
|
|
|
104
105
|
date: n.date()
|
|
105
106
|
});
|
|
106
107
|
} else {
|
|
107
|
-
const n =
|
|
108
|
+
const n = qu.exec(e);
|
|
108
109
|
if (n) {
|
|
109
110
|
const [, r, a, s] = n;
|
|
110
111
|
return Object.freeze({
|
|
@@ -174,7 +175,7 @@ const U = Object.freeze({
|
|
|
174
175
|
return e.slice(0, 2).map((r) => U.toString(r, t)).join(n);
|
|
175
176
|
},
|
|
176
177
|
toDateTimeString(e, t = !1, n) {
|
|
177
|
-
return e && Ue.isMoment(e) && e.isValid() ? n ? t ? e.format(`${n} ${
|
|
178
|
+
return e && Ue.isMoment(e) && e.isValid() ? n ? t ? e.format(`${n} ${Yu}`) : e.format(`${n} ${ju}`) : t ? e.format(zu) : e.format(Uu) : "";
|
|
178
179
|
},
|
|
179
180
|
toDateTimeStringRange(e, t = !1, n) {
|
|
180
181
|
if (!e)
|
|
@@ -307,7 +308,7 @@ const U = Object.freeze({
|
|
|
307
308
|
"23:00"
|
|
308
309
|
];
|
|
309
310
|
let Vr = Dn;
|
|
310
|
-
function
|
|
311
|
+
function Ju(e) {
|
|
311
312
|
Vr = e;
|
|
312
313
|
}
|
|
313
314
|
const Kr = function(t) {
|
|
@@ -325,7 +326,7 @@ const Kr = function(t) {
|
|
|
325
326
|
};
|
|
326
327
|
bt.add("dateFormat");
|
|
327
328
|
bt.add("dateValidity");
|
|
328
|
-
const
|
|
329
|
+
const Xu = function(t) {
|
|
329
330
|
if (Array.isArray(t)) {
|
|
330
331
|
const n = Kr(t);
|
|
331
332
|
if (n)
|
|
@@ -336,7 +337,7 @@ const Ju = function(t) {
|
|
|
336
337
|
return null;
|
|
337
338
|
};
|
|
338
339
|
bt.add("dateRangeOrder");
|
|
339
|
-
const
|
|
340
|
+
const Zu = function({
|
|
340
341
|
minDate: t,
|
|
341
342
|
maxDate: n
|
|
342
343
|
}) {
|
|
@@ -358,12 +359,12 @@ const Xu = function({
|
|
|
358
359
|
};
|
|
359
360
|
};
|
|
360
361
|
bt.add("dateConstraint");
|
|
361
|
-
const
|
|
362
|
+
const Qu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
362
363
|
__proto__: null,
|
|
363
364
|
date: Kr,
|
|
364
|
-
dateConstraint:
|
|
365
|
-
dateRange:
|
|
366
|
-
setDateFormat:
|
|
365
|
+
dateConstraint: Zu,
|
|
366
|
+
dateRange: Xu,
|
|
367
|
+
setDateFormat: Ju
|
|
367
368
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
368
369
|
function Ht(e, t) {
|
|
369
370
|
for (const n of [].concat(e)) {
|
|
@@ -373,53 +374,53 @@ function Ht(e, t) {
|
|
|
373
374
|
}
|
|
374
375
|
return null;
|
|
375
376
|
}
|
|
376
|
-
const
|
|
377
|
+
const em = function(t) {
|
|
377
378
|
function n(r) {
|
|
378
379
|
return Number(r) >= t ? null : { min: t };
|
|
379
380
|
}
|
|
380
381
|
return (r) => Ht(r, n);
|
|
381
382
|
};
|
|
382
383
|
bt.add("min");
|
|
383
|
-
const
|
|
384
|
+
const tm = function(t) {
|
|
384
385
|
function n(r) {
|
|
385
386
|
return Number(r) <= t ? null : { max: t };
|
|
386
387
|
}
|
|
387
388
|
return (r) => Ht(r, n);
|
|
388
389
|
};
|
|
389
390
|
lr.add("max");
|
|
390
|
-
const
|
|
391
|
+
const nm = function(t) {
|
|
391
392
|
return typeof t > "u" || t === null || t === "" || Number.isNaN(t) || t?.length === 0 ? { required: !0 } : null;
|
|
392
393
|
};
|
|
393
394
|
lr.add("required");
|
|
394
|
-
const
|
|
395
|
+
const rm = function(t) {
|
|
395
396
|
function n(r) {
|
|
396
397
|
return r === void 0 || r.toString().length < t ? { minLength: t } : null;
|
|
397
398
|
}
|
|
398
399
|
return (r) => Ht(r, n);
|
|
399
400
|
};
|
|
400
401
|
bt.add("minLength");
|
|
401
|
-
const
|
|
402
|
+
const om = function(t) {
|
|
402
403
|
function n(r) {
|
|
403
404
|
return r == null || Array.isArray(r) && r.length < t ? { minLengthArray: t } : null;
|
|
404
405
|
}
|
|
405
406
|
return (r) => n(r);
|
|
406
407
|
};
|
|
407
408
|
bt.add("minLengthArray");
|
|
408
|
-
const
|
|
409
|
+
const am = function(t) {
|
|
409
410
|
function n(r) {
|
|
410
411
|
return r === void 0 || r.toString().length <= t ? null : { maxLength: t };
|
|
411
412
|
}
|
|
412
413
|
return (r) => Ht(r, n);
|
|
413
414
|
};
|
|
414
415
|
Kt.add("maxLength");
|
|
415
|
-
const
|
|
416
|
+
const sm = function(t) {
|
|
416
417
|
function n(r) {
|
|
417
418
|
return r == null || Array.isArray(r) && r.length <= t ? null : { maxLengthArray: t };
|
|
418
419
|
}
|
|
419
420
|
return (r) => n(r);
|
|
420
421
|
};
|
|
421
422
|
bt.add("maxLengthArray");
|
|
422
|
-
const
|
|
423
|
+
const im = function(t) {
|
|
423
424
|
const n = t instanceof RegExp ? t : new RegExp(t);
|
|
424
425
|
function r(a) {
|
|
425
426
|
return n.test(a) ? null : { pattern: t };
|
|
@@ -427,28 +428,28 @@ const sm = function(t) {
|
|
|
427
428
|
return (a) => Ht(a, r);
|
|
428
429
|
};
|
|
429
430
|
bt.add("pattern");
|
|
430
|
-
const
|
|
431
|
+
const lm = function(e) {
|
|
431
432
|
function t(n) {
|
|
432
433
|
return new RegExp("^\\p{L}*$", "u").test(n) ? null : { alpha: !0 };
|
|
433
434
|
}
|
|
434
435
|
return Ht(e, t);
|
|
435
436
|
};
|
|
436
437
|
Kt.add("alpha");
|
|
437
|
-
const
|
|
438
|
+
const cm = function(e) {
|
|
438
439
|
function t(n) {
|
|
439
440
|
return /^[0-9,. ]*$/.test(n) ? null : { numeric: !0 };
|
|
440
441
|
}
|
|
441
442
|
return Ht(e, t);
|
|
442
443
|
};
|
|
443
444
|
Kt.add("numeric");
|
|
444
|
-
const
|
|
445
|
+
const dm = function(e) {
|
|
445
446
|
function t(n) {
|
|
446
447
|
return /^-?[0-9,. ]*$/.test(n) ? null : { positiveOrNegativeNumber: !0 };
|
|
447
448
|
}
|
|
448
449
|
return Ht(e, t);
|
|
449
450
|
};
|
|
450
451
|
Kt.add("positiveOrNegativeNumber");
|
|
451
|
-
const
|
|
452
|
+
const pm = function(e) {
|
|
452
453
|
function t(n) {
|
|
453
454
|
return /^[^0-9]*$/.test(n) ? null : { nonNumeric: !0 };
|
|
454
455
|
}
|
|
@@ -456,19 +457,19 @@ const dm = function(e) {
|
|
|
456
457
|
};
|
|
457
458
|
Kt.add("nonNumeric");
|
|
458
459
|
const _a = Object.freeze({
|
|
459
|
-
...
|
|
460
|
-
min:
|
|
461
|
-
max:
|
|
462
|
-
required:
|
|
463
|
-
minLength:
|
|
464
|
-
minLengthArray:
|
|
465
|
-
maxLength:
|
|
466
|
-
maxLengthArray:
|
|
467
|
-
pattern:
|
|
468
|
-
alpha:
|
|
469
|
-
numeric:
|
|
470
|
-
nonNumeric:
|
|
471
|
-
positiveOrNegativeNumber:
|
|
460
|
+
...Qu,
|
|
461
|
+
min: em,
|
|
462
|
+
max: tm,
|
|
463
|
+
required: nm,
|
|
464
|
+
minLength: rm,
|
|
465
|
+
minLengthArray: om,
|
|
466
|
+
maxLength: am,
|
|
467
|
+
maxLengthArray: sm,
|
|
468
|
+
pattern: im,
|
|
469
|
+
alpha: lm,
|
|
470
|
+
numeric: cm,
|
|
471
|
+
nonNumeric: pm,
|
|
472
|
+
positiveOrNegativeNumber: dm,
|
|
472
473
|
OnBlurErrorKeys: bt
|
|
473
474
|
});
|
|
474
475
|
function Oa(e, t = []) {
|
|
@@ -479,9 +480,9 @@ function Oa(e, t = []) {
|
|
|
479
480
|
return Object.keys(n).length ? n : null;
|
|
480
481
|
}
|
|
481
482
|
var Ft = /* @__PURE__ */ ((e) => (e[e.ON_CHANGE = 0] = "ON_CHANGE", e[e.ON_BLUR = 1] = "ON_BLUR", e[e.ON_SUBMIT = 2] = "ON_SUBMIT", e))(Ft || {});
|
|
482
|
-
function
|
|
483
|
+
function CN(e, t = {}, n = []) {
|
|
483
484
|
for (const [r, a] of Object.entries(t))
|
|
484
|
-
a === 0 ?
|
|
485
|
+
a === 0 ? Wu(r) : a === 2 && Gu(r);
|
|
485
486
|
return o.useCallback(e, n);
|
|
486
487
|
}
|
|
487
488
|
class vn {
|
|
@@ -625,20 +626,20 @@ class yn extends Hr {
|
|
|
625
626
|
);
|
|
626
627
|
}
|
|
627
628
|
}
|
|
628
|
-
class
|
|
629
|
+
class um extends yn {
|
|
629
630
|
inferMembers(t) {
|
|
630
631
|
this.fields = {};
|
|
631
632
|
for (const n of Object.keys(t))
|
|
632
633
|
this.fields[n] = this.inferSpsControl(t[n], n);
|
|
633
634
|
}
|
|
634
635
|
}
|
|
635
|
-
class
|
|
636
|
+
class mm extends yn {
|
|
636
637
|
inferMembers(t) {
|
|
637
638
|
this.fields = t.map((n, r) => this.inferSpsControl(n, String(r)));
|
|
638
639
|
}
|
|
639
640
|
}
|
|
640
641
|
function Br(e, t, n) {
|
|
641
|
-
return e instanceof vn ? (e.path = t, e.update = n, e) : Array.isArray(e) ? new
|
|
642
|
+
return e instanceof vn ? (e.path = t, e.update = n, e) : Array.isArray(e) ? new mm(e, t, n) : ql(e) ? new um(e, t, n) : new Hr(t, n);
|
|
642
643
|
}
|
|
643
644
|
function Un(e, t) {
|
|
644
645
|
return t.length === 0 || !e ? e : Un(e.fields[t[0]], t.slice(1, t.length));
|
|
@@ -677,12 +678,12 @@ function ma(e, t) {
|
|
|
677
678
|
{}
|
|
678
679
|
) : e;
|
|
679
680
|
}
|
|
680
|
-
function
|
|
681
|
+
function fm(e) {
|
|
681
682
|
if (typeof e != "object" || e === null || Array.isArray(e))
|
|
682
683
|
throw new TypeError("The initial value of useSpsForm() hook must be an object.");
|
|
683
684
|
}
|
|
684
|
-
function
|
|
685
|
-
|
|
685
|
+
function Sm(e, t = {}) {
|
|
686
|
+
fm(e);
|
|
686
687
|
const [, n] = xe({}), r = ae(!1);
|
|
687
688
|
r.current = !1;
|
|
688
689
|
const a = ae(t), s = Re((p) => {
|
|
@@ -904,7 +905,7 @@ const Ks = (e) => typeof e == "object" && e != null && e.nodeType === 1, Hs = (e
|
|
|
904
905
|
})(e);
|
|
905
906
|
}
|
|
906
907
|
return !1;
|
|
907
|
-
}, Cr = (e, t, n, r, a, s, i, l) => s < e && i > t || s > e && i < t ? 0 : s <= e && l <= n || i >= t && l >= n ? s - e - r : i > t && l < n || s < e && l > n ? i - t + a : 0,
|
|
908
|
+
}, Cr = (e, t, n, r, a, s, i, l) => s < e && i > t || s > e && i < t ? 0 : s <= e && l <= n || i >= t && l >= n ? s - e - r : i > t && l < n || s < e && l > n ? i - t + a : 0, gm = (e) => {
|
|
908
909
|
const t = e.parentElement;
|
|
909
910
|
return t ?? (e.getRootNode().host || null);
|
|
910
911
|
}, Ws = (e, t) => {
|
|
@@ -915,7 +916,7 @@ const Ks = (e) => typeof e == "object" && e != null && e.nodeType === 1, Hs = (e
|
|
|
915
916
|
const p = document.scrollingElement || document.documentElement, f = [];
|
|
916
917
|
let g = e;
|
|
917
918
|
for (; Ks(g) && m(g); ) {
|
|
918
|
-
if (g =
|
|
919
|
+
if (g = gm(g), g === p) {
|
|
919
920
|
f.push(g);
|
|
920
921
|
break;
|
|
921
922
|
}
|
|
@@ -942,7 +943,7 @@ const Ks = (e) => typeof e == "object" && e != null && e.nodeType === 1, Hs = (e
|
|
|
942
943
|
F.push({ el: I, top: V, left: Z });
|
|
943
944
|
}
|
|
944
945
|
return F;
|
|
945
|
-
},
|
|
946
|
+
}, hm = (e) => e === !1 ? { block: "end", inline: "nearest" } : ((t) => t === Object(t) && Object.keys(t).length !== 0)(e) ? e : { block: "start", inline: "nearest" };
|
|
946
947
|
function oo(e, t) {
|
|
947
948
|
if (!e.isConnected || !((a) => {
|
|
948
949
|
let s = a;
|
|
@@ -958,7 +959,7 @@ function oo(e, t) {
|
|
|
958
959
|
})(e);
|
|
959
960
|
if (((a) => typeof a == "object" && typeof a.behavior == "function")(t)) return t.behavior(Ws(e, t));
|
|
960
961
|
const r = typeof t == "boolean" || t == null ? void 0 : t.behavior;
|
|
961
|
-
for (const { el: a, top: s, left: i } of Ws(e,
|
|
962
|
+
for (const { el: a, top: s, left: i } of Ws(e, hm(t))) {
|
|
962
963
|
const l = s - n.top + n.bottom, c = i - n.left + n.right;
|
|
963
964
|
a.scroll({ top: l, left: c, behavior: r });
|
|
964
965
|
}
|
|
@@ -966,7 +967,7 @@ function oo(e, t) {
|
|
|
966
967
|
const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
967
968
|
__proto__: null,
|
|
968
969
|
default: oo
|
|
969
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
970
|
+
}, Symbol.toStringTag, { value: "Module" })), bm = {
|
|
970
971
|
alt: "string",
|
|
971
972
|
size: "SpinnerSize",
|
|
972
973
|
title: "string"
|
|
@@ -988,10 +989,10 @@ function Jl(e) {
|
|
|
988
989
|
return /* @__PURE__ */ o.createElement("i", { className: u, "data-testid": a, title: d, ...l });
|
|
989
990
|
}
|
|
990
991
|
Object.assign(Jl, {
|
|
991
|
-
props:
|
|
992
|
+
props: bm,
|
|
992
993
|
displayName: "SpsSpinner"
|
|
993
994
|
});
|
|
994
|
-
const
|
|
995
|
+
const vm = 60;
|
|
995
996
|
function Nr(e) {
|
|
996
997
|
return typeof e > "u" ? "inherit" : `${e}px`;
|
|
997
998
|
}
|
|
@@ -1023,7 +1024,7 @@ function Xl(e) {
|
|
|
1023
1024
|
return ue.RIGHT_TOP;
|
|
1024
1025
|
}
|
|
1025
1026
|
}
|
|
1026
|
-
function
|
|
1027
|
+
function ym(e, t, n, r, a, s, i, l) {
|
|
1027
1028
|
const c = i && i.current, d = c ? c.scrollTop : window.pageYOffset, u = l ? 0 : d, m = c ? c.scrollLeft : window.pageXOffset, p = l ? 0 : m, [f, g] = e.split(" ");
|
|
1028
1029
|
let y, v, b, h;
|
|
1029
1030
|
switch (f) {
|
|
@@ -1097,7 +1098,7 @@ function Zn(e, t, n, {
|
|
|
1097
1098
|
});
|
|
1098
1099
|
const [v, b] = n.split(" ");
|
|
1099
1100
|
let h = n;
|
|
1100
|
-
if (r && (v === "top" && m.top - u.height <
|
|
1101
|
+
if (r && (v === "top" && m.top - u.height < vm || v === "right" && m.right + u.width > f || v === "bottom" && m.bottom + u.height > p || v === "left" && m.left - u.width < 0) && (h = r), b === "left" && m.left + u.width + (c?.[1] ?? 0) > /*
|
|
1101
1102
|
* use the right because this captures the users's actual viewable content and the farthest
|
|
1102
1103
|
* most right viewable portion of it.
|
|
1103
1104
|
*/
|
|
@@ -1110,7 +1111,7 @@ function Zn(e, t, n, {
|
|
|
1110
1111
|
h = ue.TOP_RIGHT;
|
|
1111
1112
|
break;
|
|
1112
1113
|
}
|
|
1113
|
-
const N = a ? Math.max(m.width, u.width) : u.width, T = s ? m.width : N, [E, k, P, R] =
|
|
1114
|
+
const N = a ? Math.max(m.width, u.width) : u.width, T = s ? m.width : N, [E, k, P, R] = ym(
|
|
1114
1115
|
h,
|
|
1115
1116
|
y,
|
|
1116
1117
|
m,
|
|
@@ -1248,7 +1249,7 @@ async function Gs(e, t, n, r, a, s) {
|
|
|
1248
1249
|
e.disabledOptions.includes(m.value) && (m.disabled = !0);
|
|
1249
1250
|
r(Object.freeze(u)), e.onOptionListChanged && e.onOptionListChanged(u.length), a(u.some((m) => m.value && !!m.value.icon)), n({ pending: !1 });
|
|
1250
1251
|
}
|
|
1251
|
-
function
|
|
1252
|
+
function Em(e, t, n) {
|
|
1252
1253
|
const [r, a] = o.useState(
|
|
1253
1254
|
Object.freeze([])
|
|
1254
1255
|
), [s, i] = o.useState(!1), l = o.useRef(null), c = o.useRef(e.options);
|
|
@@ -1320,16 +1321,16 @@ class Qt {
|
|
|
1320
1321
|
}
|
|
1321
1322
|
/* eslint-enable class-methods-use-this */
|
|
1322
1323
|
}
|
|
1323
|
-
function
|
|
1324
|
+
function Tm(e, t) {
|
|
1324
1325
|
return { ...e, ...t };
|
|
1325
1326
|
}
|
|
1326
1327
|
function Wt(e) {
|
|
1327
1328
|
return no(
|
|
1328
|
-
|
|
1329
|
+
Tm,
|
|
1329
1330
|
e
|
|
1330
1331
|
);
|
|
1331
1332
|
}
|
|
1332
|
-
function
|
|
1333
|
+
function wm({
|
|
1333
1334
|
hideInlineSearch: e,
|
|
1334
1335
|
showInlineSearch: t,
|
|
1335
1336
|
options: n,
|
|
@@ -1382,7 +1383,7 @@ function Tm({
|
|
|
1382
1383
|
u
|
|
1383
1384
|
];
|
|
1384
1385
|
}
|
|
1385
|
-
const
|
|
1386
|
+
const Cm = oo || Pa, Nm = [
|
|
1386
1387
|
"Tab",
|
|
1387
1388
|
"Escape",
|
|
1388
1389
|
"Enter",
|
|
@@ -1391,7 +1392,7 @@ const wm = oo || Pa, Cm = [
|
|
|
1391
1392
|
"Down",
|
|
1392
1393
|
"ArrowDown"
|
|
1393
1394
|
];
|
|
1394
|
-
function
|
|
1395
|
+
function Dm(e, t, n) {
|
|
1395
1396
|
return n ? (e && e[n]) === (t && t[n]) : e === t;
|
|
1396
1397
|
}
|
|
1397
1398
|
function Us(e, t, n) {
|
|
@@ -1453,9 +1454,9 @@ const dr = o.forwardRef((e, t) => {
|
|
|
1453
1454
|
pt,
|
|
1454
1455
|
Be,
|
|
1455
1456
|
te
|
|
1456
|
-
] =
|
|
1457
|
+
] = wm(
|
|
1457
1458
|
{ ...e, searchInputRef: We }
|
|
1458
|
-
), [pe, qe] =
|
|
1459
|
+
), [pe, qe] = Em(
|
|
1459
1460
|
e,
|
|
1460
1461
|
Be,
|
|
1461
1462
|
te
|
|
@@ -1566,7 +1567,7 @@ const dr = o.forwardRef((e, t) => {
|
|
|
1566
1567
|
});
|
|
1567
1568
|
le > -1 && Z(le);
|
|
1568
1569
|
}, [pe]), Je = o.useCallback((se) => {
|
|
1569
|
-
se && (
|
|
1570
|
+
se && (Nm.includes(se.key) ? Te(se) : Zl.includes(se.key) && !u && Ge(se));
|
|
1570
1571
|
}, [
|
|
1571
1572
|
Ut,
|
|
1572
1573
|
kt,
|
|
@@ -1586,7 +1587,7 @@ const dr = o.forwardRef((e, t) => {
|
|
|
1586
1587
|
};
|
|
1587
1588
|
}
|
|
1588
1589
|
}, []), o.useEffect(() => {
|
|
1589
|
-
G && de.current &&
|
|
1590
|
+
G && de.current && Cm(de.current, {
|
|
1590
1591
|
scrollMode: "if-needed",
|
|
1591
1592
|
block: "nearest",
|
|
1592
1593
|
inline: "nearest"
|
|
@@ -1628,7 +1629,7 @@ const dr = o.forwardRef((e, t) => {
|
|
|
1628
1629
|
!D && !Be.pending && d && pe.length === 0 && /* @__PURE__ */ o.createElement("div", { className: "sps-option-list__zero-state" }, d),
|
|
1629
1630
|
(D || Be.pending) && /* @__PURE__ */ o.createElement("div", { className: "sps-option-list__loading" }, /* @__PURE__ */ o.createElement(Jl, null)),
|
|
1630
1631
|
!D && !Be.pending && pe.map((se, le) => {
|
|
1631
|
-
const Oe = `${T}-option-${le}`, Et =
|
|
1632
|
+
const Oe = `${T}-option-${le}`, Et = Dm(se.value, O, r), _s = Us(
|
|
1632
1633
|
re.current,
|
|
1633
1634
|
r || "",
|
|
1634
1635
|
se
|
|
@@ -1713,7 +1714,7 @@ function xn(e) {
|
|
|
1713
1714
|
// No-op since we called it at the source
|
|
1714
1715
|
};
|
|
1715
1716
|
}
|
|
1716
|
-
function
|
|
1717
|
+
function NN(e, t, n = []) {
|
|
1717
1718
|
return o.useMemo(() => {
|
|
1718
1719
|
function r(a) {
|
|
1719
1720
|
return /* @__PURE__ */ o.createElement(e, { ...a, ...t }, a.children);
|
|
@@ -1732,30 +1733,26 @@ const Ql = function({
|
|
|
1732
1733
|
return /* @__PURE__ */ o.createElement(o.Fragment, null, e);
|
|
1733
1734
|
const [n, r] = Array.isArray(t[0]) ? t[0] : [t[0]];
|
|
1734
1735
|
return /* @__PURE__ */ o.createElement(n, { ...r ?? {} }, /* @__PURE__ */ o.createElement(Ql, { elements: t.slice(1) }, e));
|
|
1735
|
-
},
|
|
1736
|
+
}, xm = function({
|
|
1736
1737
|
children: e,
|
|
1737
1738
|
providers: t = [],
|
|
1738
1739
|
...n
|
|
1739
1740
|
}) {
|
|
1740
1741
|
return /* @__PURE__ */ o.createElement("div", { ...n }, /* @__PURE__ */ o.createElement(Ql, { elements: t }, e));
|
|
1741
|
-
},
|
|
1742
|
+
}, DN = function({
|
|
1742
1743
|
children: e,
|
|
1743
1744
|
className: t,
|
|
1744
1745
|
...n
|
|
1745
1746
|
}) {
|
|
1746
|
-
return /* @__PURE__ */ o.createElement(
|
|
1747
|
+
return /* @__PURE__ */ o.createElement(xm, { className: `sps-app ${t}`, ...n }, e);
|
|
1747
1748
|
};
|
|
1748
|
-
function xm(e, t) {
|
|
1749
|
-
const { type: n, props: r = {}, custom: a } = t;
|
|
1750
|
-
return a ? a(e.type) : e.type !== n ? !1 : Object.keys(r).every((s) => r[s] === e.props[s]);
|
|
1751
|
-
}
|
|
1752
1749
|
function It(e = [], t = []) {
|
|
1753
1750
|
const n = Array.isArray(e) ? Su(e) : [e], r = t.map((s) => Array.isArray(s) ? s : [s]), a = new Array(r.length + 1).fill(null).map(() => []);
|
|
1754
1751
|
for (const s of n) {
|
|
1755
1752
|
let i = !1;
|
|
1756
1753
|
for (let l = 0; l < r.length; l += 1)
|
|
1757
|
-
for (const c of r[l])
|
|
1758
|
-
if (
|
|
1754
|
+
for (const { type: c, props: d = {} } of r[l])
|
|
1755
|
+
if (s.type === c && Object.keys(d).every((m) => d[m] === s.props[m])) {
|
|
1759
1756
|
i = !0, a[l].push(s);
|
|
1760
1757
|
break;
|
|
1761
1758
|
}
|
|
@@ -8545,7 +8542,7 @@ function _b() {
|
|
|
8545
8542
|
return "" + ld++;
|
|
8546
8543
|
}, []);
|
|
8547
8544
|
}
|
|
8548
|
-
function
|
|
8545
|
+
function xN() {
|
|
8549
8546
|
Rb(), Bh();
|
|
8550
8547
|
}
|
|
8551
8548
|
function Ob(e) {
|
|
@@ -9760,7 +9757,7 @@ function yd(e, t) {
|
|
|
9760
9757
|
const [n, ...r] = gu(t);
|
|
9761
9758
|
return r.length ? e.members[n].get(r) : e.members[n];
|
|
9762
9759
|
}
|
|
9763
|
-
function
|
|
9760
|
+
function IN(e = [], t = {}) {
|
|
9764
9761
|
return {
|
|
9765
9762
|
validators: [],
|
|
9766
9763
|
...t,
|
|
@@ -9855,7 +9852,7 @@ function xN(e = [], t = {}) {
|
|
|
9855
9852
|
}
|
|
9856
9853
|
};
|
|
9857
9854
|
}
|
|
9858
|
-
function
|
|
9855
|
+
function kN(e, t = {}) {
|
|
9859
9856
|
return {
|
|
9860
9857
|
validators: [],
|
|
9861
9858
|
id: Qe(),
|
|
@@ -9911,7 +9908,7 @@ function IN(e, t = {}) {
|
|
|
9911
9908
|
}
|
|
9912
9909
|
};
|
|
9913
9910
|
}
|
|
9914
|
-
function
|
|
9911
|
+
function MN(e = {}, t = {}) {
|
|
9915
9912
|
return {
|
|
9916
9913
|
validators: [],
|
|
9917
9914
|
...t,
|
|
@@ -9993,7 +9990,7 @@ function kN(e = {}, t = {}) {
|
|
|
9993
9990
|
}
|
|
9994
9991
|
};
|
|
9995
9992
|
}
|
|
9996
|
-
function
|
|
9993
|
+
function LN(e, t) {
|
|
9997
9994
|
t && e.setInitValue(t);
|
|
9998
9995
|
const [n, r] = xe(), [a, s] = xe([]), [i, l] = no((c) => {
|
|
9999
9996
|
for (const d of a)
|
|
@@ -10007,7 +10004,7 @@ function MN(e, t) {
|
|
|
10007
10004
|
});
|
|
10008
10005
|
}), i;
|
|
10009
10006
|
}
|
|
10010
|
-
function
|
|
10007
|
+
function RN(e, t = null) {
|
|
10011
10008
|
const [n, r] = xe(t), a = ae(() => null);
|
|
10012
10009
|
return be(() => {
|
|
10013
10010
|
const s = () => n;
|
|
@@ -10042,7 +10039,7 @@ Object.assign(mo, {
|
|
|
10042
10039
|
});
|
|
10043
10040
|
const Bv = {
|
|
10044
10041
|
// examples are held in the docs/src/views/forms/Forms.tsx file
|
|
10045
|
-
},
|
|
10042
|
+
}, _N = {
|
|
10046
10043
|
ideal: {
|
|
10047
10044
|
label: "Ideal",
|
|
10048
10045
|
examples: {
|
|
@@ -10314,7 +10311,7 @@ function Td(e) {
|
|
|
10314
10311
|
})
|
|
10315
10312
|
)
|
|
10316
10313
|
]
|
|
10317
|
-
}), { t: p } = he(), f = { searchSelectedColumn: "" }, g = B(u.isVisible && "sps-button--open", l), { formMeta: y, formValue: v, updateForm: b } =
|
|
10314
|
+
}), { t: p } = he(), f = { searchSelectedColumn: "" }, g = B(u.isVisible && "sps-button--open", l), { formMeta: y, formValue: v, updateForm: b } = Sm(f);
|
|
10318
10315
|
function h(R) {
|
|
10319
10316
|
if (R.target.value) {
|
|
10320
10317
|
const L = [...u.pendingSelectedColumns], _ = [];
|
|
@@ -11987,7 +11984,7 @@ function Nd(e) {
|
|
|
11987
11984
|
const Dd = o.createContext(
|
|
11988
11985
|
void 0
|
|
11989
11986
|
);
|
|
11990
|
-
function
|
|
11987
|
+
function ON({
|
|
11991
11988
|
currentUser: e,
|
|
11992
11989
|
locale: t,
|
|
11993
11990
|
children: n
|
|
@@ -17788,7 +17785,7 @@ Object.assign(tE, {
|
|
|
17788
17785
|
props: eE,
|
|
17789
17786
|
displayName: "SpsButtonGroup"
|
|
17790
17787
|
});
|
|
17791
|
-
const
|
|
17788
|
+
const PN = {
|
|
17792
17789
|
basic: {
|
|
17793
17790
|
label: "Basic Buttons",
|
|
17794
17791
|
description: ({ NavigateTo: e }) => /* @__PURE__ */ o.createElement("span", { className: "sps-body-14 mt-4" }, "The most common type of button that can be used in most cases. Example: Basic Buttons in a", " ", /* @__PURE__ */ o.createElement(e, { to: "Modal" }, "Modal"), "."),
|
|
@@ -19956,7 +19953,7 @@ const aE = {
|
|
|
19956
19953
|
}
|
|
19957
19954
|
}
|
|
19958
19955
|
}
|
|
19959
|
-
},
|
|
19956
|
+
}, BN = {
|
|
19960
19957
|
basic: {
|
|
19961
19958
|
label: "Basic Tag",
|
|
19962
19959
|
examples: {
|
|
@@ -26304,7 +26301,7 @@ Object.assign(fp, {
|
|
|
26304
26301
|
props: jE,
|
|
26305
26302
|
displayName: "SpsFeedbackBlock"
|
|
26306
26303
|
});
|
|
26307
|
-
const
|
|
26304
|
+
const FN = {
|
|
26308
26305
|
standard: {
|
|
26309
26306
|
label: "Standard Size",
|
|
26310
26307
|
description: "Use Standard Size Feedback Blocks for the majority of cases. If a smaller or more subtle solution is needed, use the Micro Size Feedback Block.",
|
|
@@ -27918,7 +27915,7 @@ const sT = {
|
|
|
27918
27915
|
}
|
|
27919
27916
|
}
|
|
27920
27917
|
}
|
|
27921
|
-
},
|
|
27918
|
+
}, AN = {
|
|
27922
27919
|
Autocomplete: {
|
|
27923
27920
|
components: [At],
|
|
27924
27921
|
examples: Mm
|
|
@@ -31042,8 +31039,7 @@ function iC({
|
|
|
31042
31039
|
] = It(e, [
|
|
31043
31040
|
{ type: Qp },
|
|
31044
31041
|
{ type: Xp },
|
|
31045
|
-
|
|
31046
|
-
{ custom: (d) => d?.displayName === "Tabs" },
|
|
31042
|
+
{ type: Fu },
|
|
31047
31043
|
{ type: Zp }
|
|
31048
31044
|
]), c = a.length > 0 ? a : s;
|
|
31049
31045
|
return /* @__PURE__ */ o.createElement("div", { className: B("sps-card", t), ...n }, r, c.length > 0 ? c : /* @__PURE__ */ o.createElement("div", { className: "sps-card__body" }, l), i);
|
|
@@ -31130,7 +31126,7 @@ Object.assign(pC, {
|
|
|
31130
31126
|
props: dC,
|
|
31131
31127
|
displayName: "SpsAdvancedSearch"
|
|
31132
31128
|
});
|
|
31133
|
-
const
|
|
31129
|
+
const $N = {
|
|
31134
31130
|
general: {
|
|
31135
31131
|
label: "General Usage",
|
|
31136
31132
|
description: ({ NavigateTo: e, Link: t }) => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("p", null, 'Advanced Search is comprised of a panel of input fields, and a text button that exposes and hides the panel. By default, the Advanced Search panel is hidden (with the exception of "Advanced Search Only" scenarios).'), /* @__PURE__ */ o.createElement("p", null, "Advanced Search works in conjunction with the", " ", /* @__PURE__ */ o.createElement(e, { to: "list-toolbar" }, "List Bar"), " and", " ", /* @__PURE__ */ o.createElement(e, { to: "search-results-bar" }, "Search Results"), " components. Refer to those pages for additional details."), /* @__PURE__ */ o.createElement("p", null, "Use the following guidelines when including Advanced Search on your page:", /* @__PURE__ */ o.createElement("ul", null, /* @__PURE__ */ o.createElement("li", null, "The Advanced Search Panel can contain any number of input fields."), /* @__PURE__ */ o.createElement("li", null, "The Advanced Search Panel can place input fields in any unique layout to best serve the needs of the search criteria, but must adhere to the rules of the", " ", /* @__PURE__ */ o.createElement(t, { to: "/style-and-layout/grid/" }, "SPS Grid"), " and guidelines for", " ", /* @__PURE__ */ o.createElement(e, { to: "form" }, "Form Layouts"), "."))))
|
|
@@ -31402,7 +31398,7 @@ const AN = {
|
|
|
31402
31398
|
}
|
|
31403
31399
|
}
|
|
31404
31400
|
}
|
|
31405
|
-
},
|
|
31401
|
+
}, VN = function({
|
|
31406
31402
|
viewing: e,
|
|
31407
31403
|
in: t,
|
|
31408
31404
|
onChange: n
|
|
@@ -31500,7 +31496,7 @@ Object.assign(SC, {
|
|
|
31500
31496
|
props: uC,
|
|
31501
31497
|
displayName: "SpsCurrencyInput"
|
|
31502
31498
|
});
|
|
31503
|
-
const
|
|
31499
|
+
const KN = {
|
|
31504
31500
|
basic: {
|
|
31505
31501
|
label: "Basic",
|
|
31506
31502
|
examples: {
|
|
@@ -31637,7 +31633,7 @@ Object.assign(tu, {
|
|
|
31637
31633
|
props: hC,
|
|
31638
31634
|
displayName: "SpsFocusedTask"
|
|
31639
31635
|
});
|
|
31640
|
-
const
|
|
31636
|
+
const HN = {
|
|
31641
31637
|
basic: {
|
|
31642
31638
|
examples: {
|
|
31643
31639
|
basic: {
|
|
@@ -31815,7 +31811,7 @@ Object.assign(nu, {
|
|
|
31815
31811
|
props: bC,
|
|
31816
31812
|
displayName: "SpsGrowler"
|
|
31817
31813
|
});
|
|
31818
|
-
function
|
|
31814
|
+
function WN() {
|
|
31819
31815
|
const [e, t] = o.useState([]), n = o.useCallback(() => e.map((a) => /* @__PURE__ */ o.createElement(
|
|
31820
31816
|
nu,
|
|
31821
31817
|
{
|
|
@@ -31842,7 +31838,7 @@ function HN() {
|
|
|
31842
31838
|
}, []);
|
|
31843
31839
|
return [n, r];
|
|
31844
31840
|
}
|
|
31845
|
-
const
|
|
31841
|
+
const GN = {
|
|
31846
31842
|
writingGuidelines: {
|
|
31847
31843
|
label: "Writing Guidelines",
|
|
31848
31844
|
customSection: () => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("p", null, "Use the following guidelines to write an effective Growler message."), /* @__PURE__ */ o.createElement("ul", null, /* @__PURE__ */ o.createElement("li", null, "Write all messages in sentence case.", /* @__PURE__ */ o.createElement("ul", null, /* @__PURE__ */ o.createElement("li", null, "Capitalize the first word of the message."), /* @__PURE__ */ o.createElement("li", null, "Add punctuation, such as a period, at the end of the message."))), /* @__PURE__ */ o.createElement("li", null, "Keep messages as succinct as possible while also providing sufficient information to the customer."), /* @__PURE__ */ o.createElement("li", null, "If you can clearly convey your message in a single statement, use only the Primary Message."), /* @__PURE__ */ o.createElement("li", null, "If the message requires additional details, such as further information or instructions, use both the Primary and Secondary Messages.")), /* @__PURE__ */ o.createElement("p", null, "For more examples of effective feedback message writing, refer to", " ", /* @__PURE__ */ o.createElement(
|
|
@@ -32218,7 +32214,7 @@ const WN = {
|
|
|
32218
32214
|
}
|
|
32219
32215
|
}
|
|
32220
32216
|
};
|
|
32221
|
-
function
|
|
32217
|
+
function UN(e) {
|
|
32222
32218
|
const { children: t } = e;
|
|
32223
32219
|
return /* @__PURE__ */ o.createElement("div", { className: "insight-tile-wrapper" }, t);
|
|
32224
32220
|
}
|
|
@@ -32353,7 +32349,7 @@ Object.assign(DC, {
|
|
|
32353
32349
|
props: NC,
|
|
32354
32350
|
displayName: "SpsKeyValueTag"
|
|
32355
32351
|
});
|
|
32356
|
-
const
|
|
32352
|
+
const zN = {
|
|
32357
32353
|
basic: {
|
|
32358
32354
|
label: "Basic",
|
|
32359
32355
|
examples: {
|
|
@@ -32512,7 +32508,7 @@ Object.assign(ou, {
|
|
|
32512
32508
|
props: kC,
|
|
32513
32509
|
displayName: "SpsSearchResultsBarV2"
|
|
32514
32510
|
});
|
|
32515
|
-
const
|
|
32511
|
+
const jN = {
|
|
32516
32512
|
basic: {
|
|
32517
32513
|
label: "Basic",
|
|
32518
32514
|
description: ({ NavigateTo: e }) => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("p", null, "SpsSearchResultsBarV2 should be used with List Toolbar and Advanced Search."), /* @__PURE__ */ o.createElement("p", null, "For more examples go to the Advanced Search section on the", " ", /* @__PURE__ */ o.createElement(e, { to: "list-toolbar" }, "List Toolbar"), " page.")),
|
|
@@ -32971,7 +32967,7 @@ function BC() {
|
|
|
32971
32967
|
}
|
|
32972
32968
|
), /* @__PURE__ */ o.createElement(Fn, null, /* @__PURE__ */ o.createElement(mn, null, /* @__PURE__ */ o.createElement(je, { style: { width: "80px" } }, "Order"), /* @__PURE__ */ o.createElement(je, null, "Section"), /* @__PURE__ */ o.createElement(je, null, "Notes")), /* @__PURE__ */ o.createElement(fn, null, /* @__PURE__ */ o.createElement(De, null, /* @__PURE__ */ o.createElement(ne, null, /* @__PURE__ */ o.createElement("span", { className: "sps-tag sps-tag--info" }, "1")), /* @__PURE__ */ o.createElement(ne, null, "Checkbox"), /* @__PURE__ */ o.createElement(ne, null, "For Content Rows and Content Tiles only.")), /* @__PURE__ */ o.createElement(De, null, /* @__PURE__ */ o.createElement(ne, null, /* @__PURE__ */ o.createElement("span", { className: "sps-tag sps-tag--info" }, "2")), /* @__PURE__ */ o.createElement(ne, null, "Search/Filter Box"), /* @__PURE__ */ o.createElement(ne, null)), /* @__PURE__ */ o.createElement(De, null, /* @__PURE__ */ o.createElement(ne, null, /* @__PURE__ */ o.createElement("span", { className: "sps-tag sps-tag--info" }, "3")), /* @__PURE__ */ o.createElement(ne, null, "Saved Search"), /* @__PURE__ */ o.createElement(ne, null)), /* @__PURE__ */ o.createElement(De, null, /* @__PURE__ */ o.createElement(ne, null, /* @__PURE__ */ o.createElement("span", { className: "sps-tag sps-tag--info" }, "4")), /* @__PURE__ */ o.createElement(ne, null, "Advanced Search"), /* @__PURE__ */ o.createElement(ne, null, "For more information, visit the Advanced Search page.")), /* @__PURE__ */ o.createElement(De, null, /* @__PURE__ */ o.createElement(ne, null, /* @__PURE__ */ o.createElement("span", { className: "sps-tag sps-tag--info" }, "5")), /* @__PURE__ */ o.createElement(ne, null, "Column Editor"), /* @__PURE__ */ o.createElement(ne, { wrap: 500 }, "Use for Tables only. For more information, visit the Column Editor page.")), /* @__PURE__ */ o.createElement(De, null, /* @__PURE__ */ o.createElement(ne, null, /* @__PURE__ */ o.createElement("span", { className: "sps-tag sps-tag--info" }, "6")), /* @__PURE__ */ o.createElement(ne, null, "List View Selector"), /* @__PURE__ */ o.createElement(ne, null)), /* @__PURE__ */ o.createElement(De, null, /* @__PURE__ */ o.createElement(ne, null, /* @__PURE__ */ o.createElement("span", { className: "sps-tag sps-tag--info" }, "7")), /* @__PURE__ */ o.createElement(ne, null, "Sorting"), /* @__PURE__ */ o.createElement(ne, null)), /* @__PURE__ */ o.createElement(De, null, /* @__PURE__ */ o.createElement(ne, null, /* @__PURE__ */ o.createElement("span", { className: "sps-tag sps-tag--info" }, "8")), /* @__PURE__ */ o.createElement(ne, null, "Buttons"), /* @__PURE__ */ o.createElement(ne, { wrap: 500 }, "Buttons always appear in the rightmost section of the List Toolbar. For the ordering of Buttons, refer to the Button Groups section on the Buttons page."))))));
|
|
32973
32969
|
}
|
|
32974
|
-
const
|
|
32970
|
+
const YN = {
|
|
32975
32971
|
general: {
|
|
32976
32972
|
label: "General Usage",
|
|
32977
32973
|
description: () => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("h5", null, "Use a List Toolbar:"), /* @__PURE__ */ o.createElement("ul", null, /* @__PURE__ */ o.createElement("li", null, "When list content needs to be searched, filtered, sorted, or otherwise interacted with.")), /* @__PURE__ */ o.createElement("h5", null, "Avoid a List Toolbar:"), /* @__PURE__ */ o.createElement("ul", null, /* @__PURE__ */ o.createElement("li", null, "When no list is present."), /* @__PURE__ */ o.createElement("li", null, "When there will always be a small number of elements in the list, or the list does not require searching, filtering, or other actions.")))
|
|
@@ -33929,7 +33925,7 @@ const jN = {
|
|
|
33929
33925
|
}
|
|
33930
33926
|
};
|
|
33931
33927
|
var FC = /* @__PURE__ */ ((e) => (e.Ok = "Ok", e.Cancel = "Cancel", e))(FC || {});
|
|
33932
|
-
const
|
|
33928
|
+
const qN = () => {
|
|
33933
33929
|
const [e, t] = xe([]), n = (d) => {
|
|
33934
33930
|
const u = [...e], m = { ...d };
|
|
33935
33931
|
return m.key = Qe(), new Promise((f) => {
|
|
@@ -33954,7 +33950,7 @@ const YN = () => {
|
|
|
33954
33950
|
c
|
|
33955
33951
|
];
|
|
33956
33952
|
};
|
|
33957
|
-
function
|
|
33953
|
+
function JN(e, t) {
|
|
33958
33954
|
const n = {
|
|
33959
33955
|
...Gl,
|
|
33960
33956
|
...e
|
|
@@ -34008,7 +34004,7 @@ Object.assign(KC, {
|
|
|
34008
34004
|
props: VC,
|
|
34009
34005
|
displayName: "SpsPageSubtitle"
|
|
34010
34006
|
});
|
|
34011
|
-
const
|
|
34007
|
+
const XN = {
|
|
34012
34008
|
basic: {
|
|
34013
34009
|
label: "Basic",
|
|
34014
34010
|
examples: {
|
|
@@ -34173,7 +34169,7 @@ Object.assign(GC, {
|
|
|
34173
34169
|
props: WC,
|
|
34174
34170
|
displayName: "SpsProductBar"
|
|
34175
34171
|
});
|
|
34176
|
-
const
|
|
34172
|
+
const ZN = {
|
|
34177
34173
|
basic: {
|
|
34178
34174
|
label: "Basic",
|
|
34179
34175
|
description: S`
|
|
@@ -34359,7 +34355,7 @@ Object.assign(zC, {
|
|
|
34359
34355
|
props: UC,
|
|
34360
34356
|
displayName: "SpsProgressBar"
|
|
34361
34357
|
});
|
|
34362
|
-
const
|
|
34358
|
+
const QN = {
|
|
34363
34359
|
general: {
|
|
34364
34360
|
label: "General Usage",
|
|
34365
34361
|
customSection: () => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("h4", null, "General Usage"), /* @__PURE__ */ o.createElement("p", null, "Progress Bars can be used in a variety of situations, but the most common use case is to show the live progress of a process such as a file upload or the processing of a digital payload."), /* @__PURE__ */ o.createElement("p", null, "For processes that typically complete within minutes or less, opt for the Standard Progress Bar."), /* @__PURE__ */ o.createElement("p", null, "For processes that are divided into specific steps that are accomplished over a longer period of time, opt for the Stepped Progress Bar."))
|
|
@@ -34485,7 +34481,7 @@ Object.assign(JC, {
|
|
|
34485
34481
|
props: qC,
|
|
34486
34482
|
displayName: "SpsSlackLink"
|
|
34487
34483
|
});
|
|
34488
|
-
const
|
|
34484
|
+
const eD = {
|
|
34489
34485
|
basic: {
|
|
34490
34486
|
examples: {
|
|
34491
34487
|
basic: {
|
|
@@ -34589,7 +34585,7 @@ Object.assign(QC, {
|
|
|
34589
34585
|
props: ZC,
|
|
34590
34586
|
displayName: "SpsSortingHeader"
|
|
34591
34587
|
});
|
|
34592
|
-
const
|
|
34588
|
+
const tD = {
|
|
34593
34589
|
basic: {
|
|
34594
34590
|
label: "Basic Sorting Header",
|
|
34595
34591
|
examples: {
|
|
@@ -34690,7 +34686,7 @@ Object.assign(tN, {
|
|
|
34690
34686
|
props: eN,
|
|
34691
34687
|
displayName: "SpsSteppedProgressBar"
|
|
34692
34688
|
});
|
|
34693
|
-
const
|
|
34689
|
+
const nD = {
|
|
34694
34690
|
standard: {
|
|
34695
34691
|
label: "Stepped Progress Bar",
|
|
34696
34692
|
description: () => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("p", null, "Stepped Progress Bars are comprised of the following Required and Optional elements."), /* @__PURE__ */ o.createElement(
|
|
@@ -34889,7 +34885,7 @@ Object.assign(aN, {
|
|
|
34889
34885
|
props: oN,
|
|
34890
34886
|
displayName: "SpsTileList"
|
|
34891
34887
|
});
|
|
34892
|
-
const
|
|
34888
|
+
const rD = {
|
|
34893
34889
|
basic: {
|
|
34894
34890
|
label: "Basic",
|
|
34895
34891
|
examples: {
|
|
@@ -35170,7 +35166,7 @@ Object.assign(cN, {
|
|
|
35170
35166
|
props: lN,
|
|
35171
35167
|
displayName: "SpsFilterTileList"
|
|
35172
35168
|
});
|
|
35173
|
-
const
|
|
35169
|
+
const oD = {
|
|
35174
35170
|
basic: {
|
|
35175
35171
|
label: "Basic",
|
|
35176
35172
|
examples: {
|
|
@@ -35268,7 +35264,7 @@ function uN(e) {
|
|
|
35268
35264
|
className: t,
|
|
35269
35265
|
heading: n,
|
|
35270
35266
|
icon: r,
|
|
35271
|
-
illustration: a =
|
|
35267
|
+
illustration: a = Au,
|
|
35272
35268
|
subHeading: s,
|
|
35273
35269
|
"data-testid": i,
|
|
35274
35270
|
unsafelyReplaceClassName: l,
|
|
@@ -35301,7 +35297,7 @@ function fN(e) {
|
|
|
35301
35297
|
"data-testid": l,
|
|
35302
35298
|
unsafelyReplaceClassName: c,
|
|
35303
35299
|
...d
|
|
35304
|
-
} = e, u = s || t ||
|
|
35300
|
+
} = e, u = s || t || $u, m = B(
|
|
35305
35301
|
c || "sps-zero-state",
|
|
35306
35302
|
r
|
|
35307
35303
|
);
|
|
@@ -35319,7 +35315,7 @@ Object.assign(fN, {
|
|
|
35319
35315
|
props: mN,
|
|
35320
35316
|
displayName: "SpsZeroState"
|
|
35321
35317
|
});
|
|
35322
|
-
const
|
|
35318
|
+
const aD = {
|
|
35323
35319
|
sizes: {
|
|
35324
35320
|
label: "Sizes",
|
|
35325
35321
|
customSection: () => /* @__PURE__ */ o.createElement("section", { id: "zero-states-sizes" }, /* @__PURE__ */ o.createElement("div", { className: "flex-color-header" }, /* @__PURE__ */ o.createElement("h4", null, "Sizes"), /* @__PURE__ */ o.createElement(
|
|
@@ -35505,22 +35501,22 @@ export {
|
|
|
35505
35501
|
Cv as Draggable,
|
|
35506
35502
|
gd as Droppable,
|
|
35507
35503
|
Qt as FauxChangeEvent,
|
|
35508
|
-
|
|
35504
|
+
AN as MANIFEST,
|
|
35509
35505
|
FC as ModalAction,
|
|
35510
35506
|
bt as OnBlurErrorKeys,
|
|
35511
35507
|
Ra as OnSubmitErrorKeys,
|
|
35512
35508
|
xt as PortalContext,
|
|
35513
35509
|
Kt as PreventativeErrorKeys,
|
|
35514
|
-
|
|
35510
|
+
xm as Provide,
|
|
35515
35511
|
U as SimpleDateUtils,
|
|
35516
|
-
|
|
35512
|
+
_N as SpsAddRemoveFormRowExamples,
|
|
35517
35513
|
pC as SpsAdvancedSearch,
|
|
35518
|
-
|
|
35519
|
-
|
|
35514
|
+
$N as SpsAdvancedSearchExamples,
|
|
35515
|
+
DN as SpsApp,
|
|
35520
35516
|
At as SpsAutocomplete,
|
|
35521
35517
|
Mm as SpsAutocompleteExamples,
|
|
35522
35518
|
ke as SpsButton,
|
|
35523
|
-
|
|
35519
|
+
PN as SpsButtonExamples,
|
|
35524
35520
|
tE as SpsButtonGroup,
|
|
35525
35521
|
vd as SpsCard,
|
|
35526
35522
|
bd as SpsCardTabbedPane,
|
|
@@ -35542,9 +35538,9 @@ export {
|
|
|
35542
35538
|
En as SpsContentRowCol,
|
|
35543
35539
|
Gv as SpsContentRowExamples,
|
|
35544
35540
|
us as SpsContentRowExpansion,
|
|
35545
|
-
|
|
35541
|
+
VN as SpsContextBar,
|
|
35546
35542
|
SC as SpsCurrencyInput,
|
|
35547
|
-
|
|
35543
|
+
KN as SpsCurrencyInputExamples,
|
|
35548
35544
|
Id as SpsDateRangePicker,
|
|
35549
35545
|
uy as SpsDateRangePickerExamples,
|
|
35550
35546
|
Md as SpsDateTime,
|
|
@@ -35563,7 +35559,7 @@ export {
|
|
|
35563
35559
|
_y as SpsDropdownExamples,
|
|
35564
35560
|
ky as SpsDt,
|
|
35565
35561
|
fp as SpsFeedbackBlock,
|
|
35566
|
-
|
|
35562
|
+
FN as SpsFeedbackBlockExamples,
|
|
35567
35563
|
Pd as SpsFieldset,
|
|
35568
35564
|
By as SpsFieldsetExamples,
|
|
35569
35565
|
Sp as SpsFilterPanel,
|
|
@@ -35573,41 +35569,41 @@ export {
|
|
|
35573
35569
|
gp as SpsFilterPanelSection,
|
|
35574
35570
|
iN as SpsFilterTile,
|
|
35575
35571
|
cN as SpsFilterTileList,
|
|
35576
|
-
|
|
35572
|
+
oD as SpsFilterTileListExamples,
|
|
35577
35573
|
tu as SpsFocusedTask,
|
|
35578
35574
|
eu as SpsFocusedTaskActions,
|
|
35579
|
-
|
|
35575
|
+
HN as SpsFocusedTaskExamples,
|
|
35580
35576
|
mo as SpsForm,
|
|
35581
|
-
|
|
35577
|
+
mm as SpsFormArrayMeta,
|
|
35582
35578
|
Ve as SpsFormComponentWrapper,
|
|
35583
35579
|
Bv as SpsFormExamples,
|
|
35584
35580
|
Hr as SpsFormFieldMeta,
|
|
35585
|
-
|
|
35581
|
+
um as SpsFormGroupMeta,
|
|
35586
35582
|
vn as SpsFormMetaBase,
|
|
35587
35583
|
yn as SpsFormSetMeta,
|
|
35588
35584
|
nu as SpsGrowler,
|
|
35589
|
-
|
|
35585
|
+
GN as SpsGrowlerExamples,
|
|
35590
35586
|
Pt as SpsI,
|
|
35591
35587
|
oE as SpsIconButtonPanel,
|
|
35592
35588
|
Bd as SpsIncrementor,
|
|
35593
35589
|
Ay as SpsIncrementorExamples,
|
|
35594
35590
|
ir as SpsInputGroup,
|
|
35595
35591
|
yC as SpsInsightTile,
|
|
35596
|
-
|
|
35592
|
+
UN as SpsInsights,
|
|
35597
35593
|
TC as SpsKeyValueList,
|
|
35598
35594
|
CC as SpsKeyValueListItem,
|
|
35599
35595
|
DC as SpsKeyValueTag,
|
|
35600
|
-
|
|
35596
|
+
zN as SpsKeyValueTagExamples,
|
|
35601
35597
|
Fd as SpsLabel,
|
|
35602
35598
|
Vy as SpsLabelExamples,
|
|
35603
35599
|
Ad as SpsListActionBar,
|
|
35604
35600
|
sE as SpsListActionBarExamples,
|
|
35605
35601
|
_C as SpsListToolbar,
|
|
35606
|
-
|
|
35602
|
+
YN as SpsListToolbarExamples,
|
|
35607
35603
|
au as SpsListToolbarSearch,
|
|
35608
35604
|
su as SpsListToolbarSearchInfo,
|
|
35609
35605
|
PC as SpsListToolbarSortBy,
|
|
35610
|
-
|
|
35606
|
+
ON as SpsLocaleProvider,
|
|
35611
35607
|
zd as SpsMicroBlock,
|
|
35612
35608
|
lE as SpsMicroBlockExamples,
|
|
35613
35609
|
uN as SpsMicroZeroState,
|
|
@@ -35621,37 +35617,37 @@ export {
|
|
|
35621
35617
|
hs as SpsPageSelector,
|
|
35622
35618
|
KC as SpsPageSubtitle,
|
|
35623
35619
|
$C as SpsPageTitle,
|
|
35624
|
-
|
|
35620
|
+
XN as SpsPageTitleExamples,
|
|
35625
35621
|
Jd as SpsPagination,
|
|
35626
35622
|
hE as SpsPaginationExamples,
|
|
35627
35623
|
GC as SpsProductBar,
|
|
35628
|
-
|
|
35624
|
+
ZN as SpsProductBarExamples,
|
|
35629
35625
|
iu as SpsProductBarTab,
|
|
35630
35626
|
zC as SpsProgressBar,
|
|
35631
|
-
|
|
35627
|
+
QN as SpsProgressBarExamples,
|
|
35632
35628
|
lp as SpsProgressRing,
|
|
35633
35629
|
Xd as SpsRadioButton,
|
|
35634
35630
|
vE as SpsRadioButtonExamples,
|
|
35635
35631
|
YC as SpsScrollableContainer,
|
|
35636
35632
|
IC as SpsSearchResultsBar,
|
|
35637
|
-
|
|
35633
|
+
jN as SpsSearchResultsBarExamples,
|
|
35638
35634
|
ou as SpsSearchResultsBarV2,
|
|
35639
35635
|
Ln as SpsSelect,
|
|
35640
35636
|
Sy as SpsSelectExamples,
|
|
35641
35637
|
yE as SpsSideNav,
|
|
35642
35638
|
EE as SpsSideNavExamples,
|
|
35643
35639
|
JC as SpsSlackLink,
|
|
35644
|
-
|
|
35640
|
+
eD as SpsSlackLinkExamples,
|
|
35645
35641
|
Yd as SpsSlideInPanel,
|
|
35646
35642
|
pE as SpsSlideInPanelExamples,
|
|
35647
35643
|
QC as SpsSortingHeader,
|
|
35648
35644
|
lu as SpsSortingHeaderCell,
|
|
35649
|
-
|
|
35645
|
+
tD as SpsSortingHeaderExamples,
|
|
35650
35646
|
Jl as SpsSpinner,
|
|
35651
35647
|
Qd as SpsSplitButton,
|
|
35652
35648
|
wE as SpsSplitButtonExamples,
|
|
35653
35649
|
tN as SpsSteppedProgressBar,
|
|
35654
|
-
|
|
35650
|
+
nD as SpsSteppedProgressBarExamples,
|
|
35655
35651
|
tp as SpsSummaryListColumn,
|
|
35656
35652
|
xE as SpsSummaryListExamples,
|
|
35657
35653
|
Jr as SpsSummaryListExpansion,
|
|
@@ -35667,7 +35663,7 @@ export {
|
|
|
35667
35663
|
De as SpsTableRow,
|
|
35668
35664
|
Xp as SpsTabsV2,
|
|
35669
35665
|
_t as SpsTag,
|
|
35670
|
-
|
|
35666
|
+
BN as SpsTagExamples,
|
|
35671
35667
|
np as SpsTaskQueue,
|
|
35672
35668
|
kE as SpsTaskQueueExamples,
|
|
35673
35669
|
Zy as SpsTbody,
|
|
@@ -35680,7 +35676,7 @@ export {
|
|
|
35680
35676
|
Jy as SpsThead,
|
|
35681
35677
|
rN as SpsTile,
|
|
35682
35678
|
aN as SpsTileList,
|
|
35683
|
-
|
|
35679
|
+
rD as SpsTileListExamples,
|
|
35684
35680
|
Ep as SpsTimeInput,
|
|
35685
35681
|
sT as SpsTimeInputExamples,
|
|
35686
35682
|
ap as SpsToggle,
|
|
@@ -35705,46 +35701,46 @@ export {
|
|
|
35705
35701
|
zE as SpsWorkflowExamples,
|
|
35706
35702
|
ws as SpsWorkflowStep,
|
|
35707
35703
|
fN as SpsZeroState,
|
|
35708
|
-
|
|
35704
|
+
aD as SpsZeroStateExamples,
|
|
35709
35705
|
ge as TooltipVisibility,
|
|
35710
35706
|
Ft as ValidationMode,
|
|
35711
|
-
|
|
35712
|
-
|
|
35713
|
-
|
|
35707
|
+
Wu as addOnChangeErrorKey,
|
|
35708
|
+
Gu as addOnSubmitErrorKey,
|
|
35709
|
+
NN as bindProps,
|
|
35714
35710
|
st as contentOf,
|
|
35715
35711
|
Kr as date,
|
|
35716
|
-
|
|
35717
|
-
|
|
35712
|
+
Zu as dateConstraint,
|
|
35713
|
+
Xu as dateRange,
|
|
35718
35714
|
bs as findParentBranches,
|
|
35719
35715
|
Xl as flipPosition,
|
|
35720
|
-
|
|
35721
|
-
|
|
35722
|
-
|
|
35716
|
+
IN as formArray,
|
|
35717
|
+
kN as formControl,
|
|
35718
|
+
MN as formGroup,
|
|
35723
35719
|
yd as getMember,
|
|
35724
35720
|
Zn as getPosition,
|
|
35725
35721
|
Zl as letterAndNumberKeys,
|
|
35726
|
-
|
|
35722
|
+
xN as resetServerContext,
|
|
35727
35723
|
It as selectChildren,
|
|
35728
|
-
|
|
35724
|
+
Ju as setDateFormat,
|
|
35729
35725
|
Jo as toggleTooltipState,
|
|
35730
35726
|
Im as useCheckDeprecatedProps,
|
|
35731
35727
|
Yy as useColumnCellResizer,
|
|
35732
35728
|
jy as useColumnHeaderResizer,
|
|
35733
|
-
|
|
35729
|
+
CN as useCustomValidator,
|
|
35734
35730
|
ec as useDidUpdateEffect,
|
|
35735
35731
|
zs as useDocumentEventListener,
|
|
35736
35732
|
pn as useElementId,
|
|
35737
|
-
|
|
35738
|
-
|
|
35733
|
+
LN as useForm,
|
|
35734
|
+
WN as useGrowlers,
|
|
35739
35735
|
pr as useInputPopup,
|
|
35740
35736
|
cb as useKeyboardSensor,
|
|
35741
|
-
|
|
35737
|
+
qN as useModals,
|
|
35742
35738
|
ab as useMouseSensor,
|
|
35743
35739
|
Wt as usePatchReducer,
|
|
35744
35740
|
cr as usePortal,
|
|
35745
|
-
|
|
35746
|
-
|
|
35747
|
-
|
|
35741
|
+
RN as useServerSideValidation,
|
|
35742
|
+
JN as useSpsAction,
|
|
35743
|
+
Sm as useSpsForm,
|
|
35748
35744
|
go as useSpsLocale,
|
|
35749
35745
|
fb as useTouchSensor,
|
|
35750
35746
|
Oa as validate
|