@commercelayer/app-elements 6.2.2 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{InputDateComponent-D4jDLyHV.js → InputDateComponent-Y5UIbT0E.js} +61 -61
- package/dist/{RuleEngineComponent-DH23EZ8v.js → RuleEngineComponent-CDGtF4ug.js} +1106 -920
- package/dist/{en-DnI-oLj-.js → en-Psn8u2uC.js} +9 -4
- package/dist/{it-9hWwbmiy.js → it-DsWhEkJp.js} +8 -3
- package/dist/locales/en.d.ts +8 -3
- package/dist/{main-L857O21K.js → main-Zwf-ZNBk.js} +5845 -5750
- package/dist/main.d.ts +1 -0
- package/dist/main.js +142 -141
- package/dist/{parseISO-CbJPLsTx.js → parseISO-DQvhbRdk.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/ui/atoms/Avatar.d.ts +2 -2
- package/dist/ui/composite/Modal.d.ts +18 -0
- package/dist/ui/forms/InputSelect/InputSelect.d.ts +4 -0
- package/dist/ui/forms/InputSelect/overrides.d.ts +2 -0
- package/dist/ui/forms/RuleEngine/Action/ActionListItem.d.ts +4 -0
- package/dist/ui/forms/RuleEngine/Condition/hooks.d.ts +5 -0
- package/dist/ui/forms/RuleEngine/InputResourcePath.d.ts +1 -2
- package/dist/vendor.css +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { c as G, t as k, m as dr, a as pr,
|
|
2
|
+
import { c as G, t as k, m as dr, a as pr, bp as me, bq as he, br as dt, bs as We, bt as fr, bu as Br, bv as Kr, bw as rt, bx as hr, by as Ur, bz as mr, bA as vr, bB as Vr, bC as qr, bD as Lt, bE as jr, bF as $r, bG as Ft, bH as Gr, bI as Fe, bJ as Xr, aU as te, bK as $, bL as de, bM as _e, aX as bt, bN as Et, bO as Dr, bP as Pt, bQ as gr, bR as zr, bS as Te, bT as At, bU as Zr, bV as Jr, bW as en, bX as tn, bY as nt, bZ as rn, bn as nn, bl as an, b_ as on, b$ as sn, c0 as ln } from "./main-Zwf-ZNBk.js";
|
|
3
3
|
import * as _ from "react";
|
|
4
|
-
import f, { useLayoutEffect as yr, cloneElement as wr, createRef as Ce, Component as
|
|
4
|
+
import f, { useLayoutEffect as yr, cloneElement as wr, createRef as Ce, Component as X, useRef as _t, useCallback as cn, useEffect as un, createElement as dn, forwardRef as pn, useMemo as fn } from "react";
|
|
5
5
|
import * as hn from "react-dom";
|
|
6
6
|
import mn from "react-dom";
|
|
7
|
-
import { p as vn } from "./parseISO-
|
|
7
|
+
import { p as vn } from "./parseISO-DQvhbRdk.js";
|
|
8
8
|
function br(o, n, t) {
|
|
9
9
|
return G(o, +k(o) + n);
|
|
10
10
|
}
|
|
@@ -1081,11 +1081,11 @@ class Gn extends N {
|
|
|
1081
1081
|
"T"
|
|
1082
1082
|
];
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function Xn(o, n, t) {
|
|
1085
1085
|
const e = k(o, t?.in), r = kn(e, t), a = n - r;
|
|
1086
1086
|
return he(e, a, t);
|
|
1087
1087
|
}
|
|
1088
|
-
class
|
|
1088
|
+
class zn extends N {
|
|
1089
1089
|
priority = 90;
|
|
1090
1090
|
parse(n, t, e) {
|
|
1091
1091
|
const r = (a) => a === 0 ? 7 : a;
|
|
@@ -1158,7 +1158,7 @@ class Xn extends N {
|
|
|
1158
1158
|
return t >= 1 && t <= 7;
|
|
1159
1159
|
}
|
|
1160
1160
|
set(n, t, e) {
|
|
1161
|
-
return n =
|
|
1161
|
+
return n = Xn(n, e), n.setHours(0, 0, 0, 0), n;
|
|
1162
1162
|
}
|
|
1163
1163
|
incompatibleTokens = [
|
|
1164
1164
|
"y",
|
|
@@ -1530,7 +1530,7 @@ const pa = {
|
|
|
1530
1530
|
E: new jn(),
|
|
1531
1531
|
e: new $n(),
|
|
1532
1532
|
c: new Gn(),
|
|
1533
|
-
i: new
|
|
1533
|
+
i: new zn(),
|
|
1534
1534
|
a: new Zn(),
|
|
1535
1535
|
b: new Jn(),
|
|
1536
1536
|
B: new ea(),
|
|
@@ -1639,11 +1639,11 @@ function re(o, n, t) {
|
|
|
1639
1639
|
const i = _n(s);
|
|
1640
1640
|
return e.setMonth(n, Math.min(a, i)), e;
|
|
1641
1641
|
}
|
|
1642
|
-
function
|
|
1642
|
+
function Xe(o, n, t) {
|
|
1643
1643
|
const e = k(o, t?.in);
|
|
1644
1644
|
return e.setHours(n), e;
|
|
1645
1645
|
}
|
|
1646
|
-
function
|
|
1646
|
+
function ze(o, n, t) {
|
|
1647
1647
|
const e = k(o, t?.in);
|
|
1648
1648
|
return e.setMinutes(n), e;
|
|
1649
1649
|
}
|
|
@@ -2014,7 +2014,7 @@ const Ua = /* @__PURE__ */ _.forwardRef(function(n, t) {
|
|
|
2014
2014
|
const D = Or(), [w, b] = _.useState(!1);
|
|
2015
2015
|
if (lt(() => {
|
|
2016
2016
|
if (!r) return;
|
|
2017
|
-
|
|
2017
|
+
Xr(r).direction === "rtl" && b(!0);
|
|
2018
2018
|
}, [r]), !r)
|
|
2019
2019
|
return null;
|
|
2020
2020
|
const [M, I] = e.split("-"), L = M === "top" || M === "bottom";
|
|
@@ -2085,7 +2085,7 @@ const qa = /* @__PURE__ */ _.createContext(null), ja = /* @__PURE__ */ _.createC
|
|
|
2085
2085
|
var o;
|
|
2086
2086
|
return ((o = _.useContext(qa)) == null ? void 0 : o.id) || null;
|
|
2087
2087
|
}, Ga = () => _.useContext(ja);
|
|
2088
|
-
function
|
|
2088
|
+
function Xa(o) {
|
|
2089
2089
|
const {
|
|
2090
2090
|
open: n = !1,
|
|
2091
2091
|
onOpenChange: t,
|
|
@@ -2119,11 +2119,11 @@ function za(o) {
|
|
|
2119
2119
|
refs: d
|
|
2120
2120
|
}), [n, c, p, s, r, d]);
|
|
2121
2121
|
}
|
|
2122
|
-
function
|
|
2122
|
+
function za(o) {
|
|
2123
2123
|
o === void 0 && (o = {});
|
|
2124
2124
|
const {
|
|
2125
2125
|
nodeId: n
|
|
2126
|
-
} = o, t =
|
|
2126
|
+
} = o, t = Xa({
|
|
2127
2127
|
...o,
|
|
2128
2128
|
elements: {
|
|
2129
2129
|
reference: null,
|
|
@@ -2194,7 +2194,7 @@ var xt = function(n, t) {
|
|
|
2194
2194
|
for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a]);
|
|
2195
2195
|
}, xt(n, t);
|
|
2196
2196
|
};
|
|
2197
|
-
function
|
|
2197
|
+
function z(o, n) {
|
|
2198
2198
|
if (typeof n != "function" && n !== null) throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
|
|
2199
2199
|
xt(o, n);
|
|
2200
2200
|
function t() {
|
|
@@ -2306,7 +2306,7 @@ function to(o, n) {
|
|
|
2306
2306
|
}
|
|
2307
2307
|
function vt(o, n) {
|
|
2308
2308
|
var t = n.hour, e = t === void 0 ? 0 : t, r = n.minute, a = r === void 0 ? 0 : r, s = n.second, i = s === void 0 ? 0 : s;
|
|
2309
|
-
return ze(
|
|
2309
|
+
return Xe(ze(Ze(o, i), a), e);
|
|
2310
2310
|
}
|
|
2311
2311
|
function ro(o) {
|
|
2312
2312
|
return mr(o);
|
|
@@ -2333,10 +2333,10 @@ function He(o) {
|
|
|
2333
2333
|
function Gt(o) {
|
|
2334
2334
|
return Mt(o);
|
|
2335
2335
|
}
|
|
2336
|
-
function
|
|
2336
|
+
function Xt() {
|
|
2337
2337
|
return Et(R());
|
|
2338
2338
|
}
|
|
2339
|
-
function
|
|
2339
|
+
function zt(o) {
|
|
2340
2340
|
return Dr(o);
|
|
2341
2341
|
}
|
|
2342
2342
|
function ao(o) {
|
|
@@ -2355,7 +2355,7 @@ function ut(o, n) {
|
|
|
2355
2355
|
return o && n ? ba(o, n) : !o && !n;
|
|
2356
2356
|
}
|
|
2357
2357
|
function x(o, n) {
|
|
2358
|
-
return o && n ?
|
|
2358
|
+
return o && n ? zr(o, n) : !o && !n;
|
|
2359
2359
|
}
|
|
2360
2360
|
function Pe(o, n) {
|
|
2361
2361
|
return o && n ? Mn(o, n) : !o && !n;
|
|
@@ -2492,11 +2492,11 @@ function er(o, n) {
|
|
|
2492
2492
|
if (!t || !e)
|
|
2493
2493
|
throw new Error("Both minTime and maxTime props required");
|
|
2494
2494
|
var r = R();
|
|
2495
|
-
r =
|
|
2495
|
+
r = Xe(r, ye(o)), r = ze(r, we(o)), r = Ze(r, ke(o));
|
|
2496
2496
|
var a = R();
|
|
2497
|
-
a =
|
|
2497
|
+
a = Xe(a, ye(t)), a = ze(a, we(t)), a = Ze(a, ke(t));
|
|
2498
2498
|
var s = R();
|
|
2499
|
-
s =
|
|
2499
|
+
s = Xe(s, ye(e)), s = ze(s, we(e)), s = Ze(s, ke(e));
|
|
2500
2500
|
var i;
|
|
2501
2501
|
try {
|
|
2502
2502
|
i = !Qe(r, { start: a, end: s });
|
|
@@ -2658,7 +2658,7 @@ function Ar(o) {
|
|
|
2658
2658
|
var bo = (
|
|
2659
2659
|
/** @class */
|
|
2660
2660
|
(function(o) {
|
|
2661
|
-
|
|
2661
|
+
z(n, o);
|
|
2662
2662
|
function n(t) {
|
|
2663
2663
|
var e = o.call(this, t) || this;
|
|
2664
2664
|
return e.inputRef = f.createRef(), e.onTimeChange = function(r) {
|
|
@@ -2702,11 +2702,11 @@ var bo = (
|
|
|
2702
2702
|
)
|
|
2703
2703
|
);
|
|
2704
2704
|
}, n;
|
|
2705
|
-
})(
|
|
2705
|
+
})(X)
|
|
2706
2706
|
), _o = (
|
|
2707
2707
|
/** @class */
|
|
2708
2708
|
(function(o) {
|
|
2709
|
-
|
|
2709
|
+
z(n, o);
|
|
2710
2710
|
function n() {
|
|
2711
2711
|
var t = o !== null && o.apply(this, arguments) || this;
|
|
2712
2712
|
return t.dayEl = Ce(), t.handleClick = function(e) {
|
|
@@ -2873,11 +2873,11 @@ var bo = (
|
|
|
2873
2873
|
this.props.monthShowsDuplicateDaysEnd && this.isAfterMonth() || this.props.monthShowsDuplicateDaysStart && this.isBeforeMonth()
|
|
2874
2874
|
);
|
|
2875
2875
|
}, n;
|
|
2876
|
-
})(
|
|
2876
|
+
})(X)
|
|
2877
2877
|
), ko = (
|
|
2878
2878
|
/** @class */
|
|
2879
2879
|
(function(o) {
|
|
2880
|
-
|
|
2880
|
+
z(n, o);
|
|
2881
2881
|
function n() {
|
|
2882
2882
|
var t = o !== null && o.apply(this, arguments) || this;
|
|
2883
2883
|
return t.weekNumberEl = Ce(), t.handleClick = function(e) {
|
|
@@ -2914,11 +2914,11 @@ var bo = (
|
|
|
2914
2914
|
};
|
|
2915
2915
|
return f.createElement("div", { ref: this.weekNumberEl, className: $(l), "aria-label": "".concat(s, " ").concat(this.props.weekNumber), onClick: this.handleClick, onKeyDown: this.handleOnKeyDown, tabIndex: this.getTabIndex(), role: "gridcell" }, e);
|
|
2916
2916
|
}, n;
|
|
2917
|
-
})(
|
|
2917
|
+
})(X)
|
|
2918
2918
|
), Mo = (
|
|
2919
2919
|
/** @class */
|
|
2920
2920
|
(function(o) {
|
|
2921
|
-
|
|
2921
|
+
z(n, o);
|
|
2922
2922
|
function n() {
|
|
2923
2923
|
var t = o !== null && o.apply(this, arguments) || this;
|
|
2924
2924
|
return t.isDisabled = function(e) {
|
|
@@ -2987,7 +2987,7 @@ var bo = (
|
|
|
2987
2987
|
}, e = this.props.weekClassName ? this.props.weekClassName(this.startOfWeek()) : void 0;
|
|
2988
2988
|
return f.createElement("div", { className: $(t, e), role: "row" }, this.renderDays());
|
|
2989
2989
|
}, n;
|
|
2990
|
-
})(
|
|
2990
|
+
})(X)
|
|
2991
2991
|
), Le, Co = 6, Re = {
|
|
2992
2992
|
TWO_COLUMNS: "two_columns",
|
|
2993
2993
|
THREE_COLUMNS: "three_columns",
|
|
@@ -3024,7 +3024,7 @@ function cr(o, n) {
|
|
|
3024
3024
|
var So = (
|
|
3025
3025
|
/** @class */
|
|
3026
3026
|
(function(o) {
|
|
3027
|
-
|
|
3027
|
+
z(n, o);
|
|
3028
3028
|
function n() {
|
|
3029
3029
|
var t = o !== null && o.apply(this, arguments) || this;
|
|
3030
3030
|
return t.MONTH_REFS = fe([], Array(12), !0).map(function() {
|
|
@@ -3325,11 +3325,11 @@ var So = (
|
|
|
3325
3325
|
f.createElement("div", { className: this.getClassNames(), onMouseLeave: this.props.usePointerEvent ? void 0 : this.handleMouseLeave, onPointerLeave: this.props.usePointerEvent ? this.handleMouseLeave : void 0, "aria-label": "".concat(l).concat(H(a, "MMMM, yyyy", this.props.locale)), role: "rowgroup" }, this.renderWeeks())
|
|
3326
3326
|
);
|
|
3327
3327
|
}, n;
|
|
3328
|
-
})(
|
|
3328
|
+
})(X)
|
|
3329
3329
|
), xo = (
|
|
3330
3330
|
/** @class */
|
|
3331
3331
|
(function(o) {
|
|
3332
|
-
|
|
3332
|
+
z(n, o);
|
|
3333
3333
|
function n() {
|
|
3334
3334
|
var t = o !== null && o.apply(this, arguments) || this;
|
|
3335
3335
|
return t.monthOptionButtonsRef = {}, t.isSelectedMonth = function(e) {
|
|
@@ -3371,11 +3371,11 @@ var So = (
|
|
|
3371
3371
|
return n.prototype.render = function() {
|
|
3372
3372
|
return f.createElement(pt, { className: "react-datepicker__month-dropdown", onClickOutside: this.handleClickOutside }, this.renderOptions());
|
|
3373
3373
|
}, n;
|
|
3374
|
-
})(
|
|
3374
|
+
})(X)
|
|
3375
3375
|
), Eo = (
|
|
3376
3376
|
/** @class */
|
|
3377
3377
|
(function(o) {
|
|
3378
|
-
|
|
3378
|
+
z(n, o);
|
|
3379
3379
|
function n() {
|
|
3380
3380
|
var t = o !== null && o.apply(this, arguments) || this;
|
|
3381
3381
|
return t.state = {
|
|
@@ -3424,7 +3424,7 @@ var So = (
|
|
|
3424
3424
|
}
|
|
3425
3425
|
return f.createElement("div", { className: "react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode) }, r);
|
|
3426
3426
|
}, n;
|
|
3427
|
-
})(
|
|
3427
|
+
})(X)
|
|
3428
3428
|
);
|
|
3429
3429
|
function Po(o, n) {
|
|
3430
3430
|
for (var t = [], e = be(o), r = be(n); !Se(e, r); )
|
|
@@ -3434,7 +3434,7 @@ function Po(o, n) {
|
|
|
3434
3434
|
var To = (
|
|
3435
3435
|
/** @class */
|
|
3436
3436
|
(function(o) {
|
|
3437
|
-
|
|
3437
|
+
z(n, o);
|
|
3438
3438
|
function n(t) {
|
|
3439
3439
|
var e = o.call(this, t) || this;
|
|
3440
3440
|
return e.renderOptions = function() {
|
|
@@ -3462,11 +3462,11 @@ var To = (
|
|
|
3462
3462
|
});
|
|
3463
3463
|
return f.createElement(pt, { className: t, onClickOutside: this.handleClickOutside }, this.renderOptions());
|
|
3464
3464
|
}, n;
|
|
3465
|
-
})(
|
|
3465
|
+
})(X)
|
|
3466
3466
|
), Oo = (
|
|
3467
3467
|
/** @class */
|
|
3468
3468
|
(function(o) {
|
|
3469
|
-
|
|
3469
|
+
z(n, o);
|
|
3470
3470
|
function n() {
|
|
3471
3471
|
var t = o !== null && o.apply(this, arguments) || this;
|
|
3472
3472
|
return t.state = {
|
|
@@ -3516,11 +3516,11 @@ var To = (
|
|
|
3516
3516
|
}
|
|
3517
3517
|
return f.createElement("div", { className: "react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode) }, t);
|
|
3518
3518
|
}, n;
|
|
3519
|
-
})(
|
|
3519
|
+
})(X)
|
|
3520
3520
|
), No = (
|
|
3521
3521
|
/** @class */
|
|
3522
3522
|
(function(o) {
|
|
3523
|
-
|
|
3523
|
+
z(n, o);
|
|
3524
3524
|
function n() {
|
|
3525
3525
|
var t = o !== null && o.apply(this, arguments) || this;
|
|
3526
3526
|
return t.state = {
|
|
@@ -3622,11 +3622,11 @@ var To = (
|
|
|
3622
3622
|
}, n.calcCenterPosition = function(t, e) {
|
|
3623
3623
|
return e.offsetTop - (t / 2 - e.clientHeight / 2);
|
|
3624
3624
|
}, n;
|
|
3625
|
-
})(
|
|
3625
|
+
})(X)
|
|
3626
3626
|
), ur = 3, Ro = (
|
|
3627
3627
|
/** @class */
|
|
3628
3628
|
(function(o) {
|
|
3629
|
-
|
|
3629
|
+
z(n, o);
|
|
3630
3630
|
function n(t) {
|
|
3631
3631
|
var e = o.call(this, t) || this;
|
|
3632
3632
|
return e.YEAR_REFS = fe([], Array(e.props.yearItemNumber), !0).map(function() {
|
|
@@ -3790,7 +3790,7 @@ var To = (
|
|
|
3790
3790
|
f.createElement("div", { className: "react-datepicker__year-wrapper", onMouseLeave: this.props.usePointerEvent ? void 0 : this.props.clearSelectingDate, onPointerLeave: this.props.usePointerEvent ? this.props.clearSelectingDate : void 0 }, e)
|
|
3791
3791
|
);
|
|
3792
3792
|
}, n;
|
|
3793
|
-
})(
|
|
3793
|
+
})(X)
|
|
3794
3794
|
);
|
|
3795
3795
|
function Io(o, n, t, e) {
|
|
3796
3796
|
for (var r = [], a = 0; a < 2 * n + 1; a++) {
|
|
@@ -3802,7 +3802,7 @@ function Io(o, n, t, e) {
|
|
|
3802
3802
|
var Yo = (
|
|
3803
3803
|
/** @class */
|
|
3804
3804
|
(function(o) {
|
|
3805
|
-
|
|
3805
|
+
z(n, o);
|
|
3806
3806
|
function n(t) {
|
|
3807
3807
|
var e = o.call(this, t) || this;
|
|
3808
3808
|
e.yearOptionButtonsRef = {}, e.handleOptionKeyDown = function(i, l) {
|
|
@@ -3883,11 +3883,11 @@ var Yo = (
|
|
|
3883
3883
|
});
|
|
3884
3884
|
return f.createElement(pt, { className: t, containerRef: this.dropdownRef, onClickOutside: this.handleClickOutside }, this.renderOptions());
|
|
3885
3885
|
}, n;
|
|
3886
|
-
})(
|
|
3886
|
+
})(X)
|
|
3887
3887
|
), Lo = (
|
|
3888
3888
|
/** @class */
|
|
3889
3889
|
(function(o) {
|
|
3890
|
-
|
|
3890
|
+
z(n, o);
|
|
3891
3891
|
function n() {
|
|
3892
3892
|
var t = o !== null && o.apply(this, arguments) || this;
|
|
3893
3893
|
return t.state = {
|
|
@@ -3943,7 +3943,7 @@ var Yo = (
|
|
|
3943
3943
|
}
|
|
3944
3944
|
return f.createElement("div", { className: "react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode) }, t);
|
|
3945
3945
|
}, n;
|
|
3946
|
-
})(
|
|
3946
|
+
})(X)
|
|
3947
3947
|
), Fo = [
|
|
3948
3948
|
"react-datepicker__year-select",
|
|
3949
3949
|
"react-datepicker__month-select",
|
|
@@ -3956,7 +3956,7 @@ var Yo = (
|
|
|
3956
3956
|
}, Ho = (
|
|
3957
3957
|
/** @class */
|
|
3958
3958
|
(function(o) {
|
|
3959
|
-
|
|
3959
|
+
z(n, o);
|
|
3960
3960
|
function n(t) {
|
|
3961
3961
|
var e = o.call(this, t) || this;
|
|
3962
3962
|
return e.monthContainer = void 0, e.handleClickOutside = function(r) {
|
|
@@ -4171,7 +4171,7 @@ var Yo = (
|
|
|
4171
4171
|
if (r === void 0 && (r = !1), !(!e.props.showMonthYearDropdown || r))
|
|
4172
4172
|
return f.createElement(Oo, E({}, n.defaultProps, e.props, { date: e.state.date, onChange: e.changeMonthYear }));
|
|
4173
4173
|
}, e.handleTodayButtonClick = function(r) {
|
|
4174
|
-
e.props.onSelect(
|
|
4174
|
+
e.props.onSelect(Xt(), r), e.props.setPreSelection && e.props.setPreSelection(Xt());
|
|
4175
4175
|
}, e.renderTodayButton = function() {
|
|
4176
4176
|
if (!(!e.props.todayButton || e.props.showTimeSelectOnly))
|
|
4177
4177
|
return f.createElement("div", { className: "react-datepicker__today-button", onClick: e.handleTodayButtonClick }, e.props.todayButton);
|
|
@@ -4321,7 +4321,7 @@ var Yo = (
|
|
|
4321
4321
|
)
|
|
4322
4322
|
);
|
|
4323
4323
|
}, n;
|
|
4324
|
-
})(
|
|
4324
|
+
})(X)
|
|
4325
4325
|
), Wo = function(o) {
|
|
4326
4326
|
var n = o.icon, t = o.className, e = t === void 0 ? "" : t, r = o.onClick, a = "react-datepicker__calendar-icon";
|
|
4327
4327
|
if (typeof n == "string")
|
|
@@ -4343,7 +4343,7 @@ var Yo = (
|
|
|
4343
4343
|
}, Wr = (
|
|
4344
4344
|
/** @class */
|
|
4345
4345
|
(function(o) {
|
|
4346
|
-
|
|
4346
|
+
z(n, o);
|
|
4347
4347
|
function n(t) {
|
|
4348
4348
|
var e = o.call(this, t) || this;
|
|
4349
4349
|
return e.portalRoot = null, e.el = document.createElement("div"), e;
|
|
@@ -4355,13 +4355,13 @@ var Yo = (
|
|
|
4355
4355
|
}, n.prototype.render = function() {
|
|
4356
4356
|
return mn.createPortal(this.props.children, this.el);
|
|
4357
4357
|
}, n;
|
|
4358
|
-
})(
|
|
4358
|
+
})(X)
|
|
4359
4359
|
), Qo = "[tabindex], a, button, input, select, textarea", Bo = function(o) {
|
|
4360
4360
|
return (o instanceof HTMLAnchorElement || !o.disabled) && o.tabIndex !== -1;
|
|
4361
4361
|
}, Qr = (
|
|
4362
4362
|
/** @class */
|
|
4363
4363
|
(function(o) {
|
|
4364
|
-
|
|
4364
|
+
z(n, o);
|
|
4365
4365
|
function n(t) {
|
|
4366
4366
|
var e = o.call(this, t) || this;
|
|
4367
4367
|
return e.getTabChildren = function() {
|
|
@@ -4387,11 +4387,11 @@ var Yo = (
|
|
|
4387
4387
|
}, n.defaultProps = {
|
|
4388
4388
|
enableTabLoop: !0
|
|
4389
4389
|
}, n;
|
|
4390
|
-
})(
|
|
4390
|
+
})(X)
|
|
4391
4391
|
);
|
|
4392
4392
|
function Ko(o) {
|
|
4393
4393
|
function n(t) {
|
|
4394
|
-
var e, r = typeof t.hidePopper == "boolean" ? t.hidePopper : !0, a = _t(null), s =
|
|
4394
|
+
var e, r = typeof t.hidePopper == "boolean" ? t.hidePopper : !0, a = _t(null), s = za(E({ open: !r, whileElementsMounted: Zr, placement: t.popperPlacement, middleware: fe([
|
|
4395
4395
|
La({ padding: 15 }),
|
|
4396
4396
|
Ya(10),
|
|
4397
4397
|
Fa({ element: a })
|
|
@@ -4430,7 +4430,7 @@ function qo(o, n) {
|
|
|
4430
4430
|
var yt = "Date input not valid.", jo = (
|
|
4431
4431
|
/** @class */
|
|
4432
4432
|
(function(o) {
|
|
4433
|
-
|
|
4433
|
+
z(n, o);
|
|
4434
4434
|
function n(t) {
|
|
4435
4435
|
var e = o.call(this, t) || this;
|
|
4436
4436
|
return e.calendar = null, e.input = null, e.getPreSelection = function() {
|
|
@@ -4442,7 +4442,7 @@ var yt = "Date input not valid.", jo = (
|
|
|
4442
4442
|
return ft(i) ? fe(fe([], a, !0), [E(E({}, s), { date: i })], !1) : a;
|
|
4443
4443
|
}, []);
|
|
4444
4444
|
}, e.calcInitialState = function() {
|
|
4445
|
-
var r, a = e.getPreSelection(), s = Lr(e.props), i = Fr(e.props), l = s && de(a, et(s)) ? s : i && Se(a,
|
|
4445
|
+
var r, a = e.getPreSelection(), s = Lr(e.props), i = Fr(e.props), l = s && de(a, et(s)) ? s : i && Se(a, zt(i)) ? i : a;
|
|
4446
4446
|
return {
|
|
4447
4447
|
open: e.props.startOpen || !1,
|
|
4448
4448
|
preventFocus: !1,
|
|
@@ -4614,7 +4614,7 @@ var yt = "Date input not valid.", jo = (
|
|
|
4614
4614
|
var u = et(e.props.minDate);
|
|
4615
4615
|
i = Se(r, u) || Pe(l, u);
|
|
4616
4616
|
} else if (s) {
|
|
4617
|
-
var c =
|
|
4617
|
+
var c = zt(e.props.maxDate);
|
|
4618
4618
|
i = de(r, c) || Pe(l, c);
|
|
4619
4619
|
}
|
|
4620
4620
|
}
|
|
@@ -4870,7 +4870,7 @@ var yt = "Date input not valid.", jo = (
|
|
|
4870
4870
|
}
|
|
4871
4871
|
return f.createElement(Vo, E({}, this.props, { className: this.props.popperClassName, hidePopper: !this.isCalendarOpen(), targetComponent: this.renderInputContainer(), popperComponent: t, popperOnKeyDown: this.onPopperKeyDown, showArrow: this.props.showPopperArrow }));
|
|
4872
4872
|
}, n;
|
|
4873
|
-
})(
|
|
4873
|
+
})(X)
|
|
4874
4874
|
), $o = "input", wt = "navigate";
|
|
4875
4875
|
const Go = pn(
|
|
4876
4876
|
({
|
|
@@ -4895,7 +4895,7 @@ const Go = pn(
|
|
|
4895
4895
|
if (n == null) return null;
|
|
4896
4896
|
const b = new pe(n, s);
|
|
4897
4897
|
return rn(b) ? b : n;
|
|
4898
|
-
}, [n, s]), w = a ??
|
|
4898
|
+
}, [n, s]), w = a ?? Xo(r);
|
|
4899
4899
|
return /* @__PURE__ */ te.jsx(
|
|
4900
4900
|
nn,
|
|
4901
4901
|
{
|
|
@@ -4944,7 +4944,7 @@ const Go = pn(
|
|
|
4944
4944
|
}
|
|
4945
4945
|
);
|
|
4946
4946
|
Go.displayName = "InputDateComponent";
|
|
4947
|
-
function
|
|
4947
|
+
function Xo(o) {
|
|
4948
4948
|
return `${new Date(2023, 11, 15).toLocaleDateString().replace("15", "dd").replace("12", "MM").replace("2023", "yyyy")}${o ? ", h:mm aa" : ""}`;
|
|
4949
4949
|
}
|
|
4950
4950
|
export {
|