@devtron-labs/devtron-fe-common-lib 1.2.7 → 1.2.8-beta-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/dist/{@code-editor-DNKnnjou.js → @code-editor-BEceVER4.js} +5543 -5412
- package/dist/{@common-rjsf-DG46ATXL.js → @common-rjsf--SfC2_Jn.js} +2 -2
- package/dist/{@framer-motion-DHY98qq3.js → @framer-motion-DHzxZlAx.js} +1 -1
- package/dist/@monaco-editor-CVagbUeH.js +138960 -0
- package/dist/{@react-dates-WNnwjI5S.js → @react-dates-BZU5RIqe.js} +1 -1
- package/dist/{@react-select-BbR996pa.js → @react-select-Dx53b3Wk.js} +50 -50
- package/dist/{@vendor-RU8AW1bK.js → @vendor-BG3OpQCq.js} +8756 -7936
- package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +2 -1
- package/dist/Common/CodeEditor/types.d.ts +2 -1
- package/dist/Common/Constants.d.ts +3 -0
- package/dist/Common/Helper.d.ts +3 -2
- package/dist/Common/Markdown/MarkDown.d.ts +1 -1
- package/dist/Common/RJSF/index.d.ts +1 -1
- package/dist/Common/SegmentedControl/SegmentedControl.component.d.ts +3 -0
- package/dist/Common/SegmentedControl/index.d.ts +2 -0
- package/dist/Common/SegmentedControl/types.d.ts +15 -0
- package/dist/Common/index.d.ts +1 -0
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/index.d.ts +2 -0
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/types.d.ts +2 -0
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/utils.d.ts +6 -0
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/index.d.ts +1 -0
- package/dist/Pages/App/AppConfiguration/index.d.ts +1 -0
- package/dist/Pages/App/index.d.ts +1 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/ConfigMapSecret/index.d.ts +1 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/ConfigMapSecret/utils.d.ts +3 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +21 -3
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/OverrideStrategyTippyContent.d.ts +2 -1
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/index.d.ts +1 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +7 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/utils.d.ts +1 -1
- package/dist/Pages/index.d.ts +1 -0
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +6 -0
- package/dist/Shared/Components/EnterpriseTag/EnterpriseTag.component.d.ts +2 -0
- package/dist/Shared/Components/EnterpriseTag/index.d.ts +1 -0
- package/dist/Shared/Components/InvalidYAMLTippy/index.d.ts +1 -0
- package/dist/Shared/Components/InvalidYAMLTippy/types.d.ts +7 -0
- package/dist/Shared/Components/InvalidYAMLTippy/utils.d.ts +2 -2
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Helpers.d.ts +5 -3
- package/dist/Shared/Hooks/useForm/useForm.d.ts +4 -0
- package/dist/Shared/Services/app.types.d.ts +4 -0
- package/dist/Shared/types.d.ts +1 -0
- package/dist/assets/@monaco-editor.css +1 -1
- package/dist/assets/codicon.ecfbfe4b.ttf +0 -0
- package/dist/assets/ic-file-code.80000c9b.svg +7 -0
- package/dist/assets/ic-medal.4a7e5cbc.svg +3 -0
- package/dist/assets/ic-stamp.526499d2.svg +7 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +572 -561
- package/package.json +4 -4
- package/dist/@monaco-editor-34kqzg3G.js +0 -70451
- package/dist/assets/ic-file-code.21a1f748.svg +0 -7
- package/dist/assets/ic-stamp.8689f42d.svg +0 -9
- package/dist/yaml.worker.d.ts +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
import Te from "react";
|
2
|
-
import {
|
2
|
+
import { ab as xe, ac as we, ad as ve, ae as lr, af as Le, ag as Je, ah as tt, ai as at, aj as et, ak as lt, al as rt, am as Xn, an as sr, ao as Jn, ap as bt, aq as Go, ar as dr, as as eo, at as to, au as ao, av as $o, aw as Yo, ax as ur, ay as Fe, az as Rt, aA as Uo, aB as cr, aC as Qo, aD as Cr, aE as Zo, aF as Xo, aG as Jo } from "./@vendor-BG3OpQCq.js";
|
3
3
|
import { r as Ne, g as ei, h as ti } from "./@moment-C_WeV3Af.js";
|
4
4
|
import './assets/@react-dates.css';var ro = {}, Wt = {}, jt = {}, Mr;
|
5
5
|
function Ve() {
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import {
|
1
|
+
import { aH as Gt, aI as xt, aJ as Bt, aK as v, aL as U, aM as xe, ax as re, aN as h, aF as f, aO as Y, aP as Ft, aQ as je, aR as Vt, aS as Et, aT as yt, aU as Wt, aV as Xt, aW as ne } from "./@vendor-BG3OpQCq.js";
|
2
2
|
import * as y from "react";
|
3
|
-
import { useContext as Zt, useRef as j, useState as ee, createContext as Nt, useMemo as q, useCallback as
|
3
|
+
import { useContext as Zt, useRef as j, useState as ee, createContext as Nt, useMemo as q, useCallback as D, Component as St, Fragment as Be, useEffect as Ue, forwardRef as Rt } from "react";
|
4
4
|
import { createPortal as Ht } from "react-dom";
|
5
|
-
var
|
5
|
+
var Tt = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], de = function() {
|
6
6
|
};
|
7
|
-
function
|
7
|
+
function Dt(a, t) {
|
8
8
|
return t ? t[0] === "-" ? a + t : a + "__" + t : a;
|
9
9
|
}
|
10
10
|
function Pt(a, t) {
|
@@ -13,7 +13,7 @@ function Pt(a, t) {
|
|
13
13
|
var o = [].concat(n);
|
14
14
|
if (t && a)
|
15
15
|
for (var r in t)
|
16
|
-
t.hasOwnProperty(r) && t[r] && o.push("".concat(
|
16
|
+
t.hasOwnProperty(r) && t[r] && o.push("".concat(Dt(a, r)));
|
17
17
|
return o.filter(function(s) {
|
18
18
|
return s;
|
19
19
|
}).map(function(s) {
|
@@ -24,7 +24,7 @@ var ge = function(t) {
|
|
24
24
|
return jt(t) ? t.filter(Boolean) : Gt(t) === "object" && t !== null ? [t] : [];
|
25
25
|
}, Qe = function(t) {
|
26
26
|
t.className, t.clearValue, t.cx, t.getStyles, t.getClassNames, t.getValue, t.hasValue, t.isMulti, t.isRtl, t.options, t.selectOption, t.selectProps, t.setValue, t.theme;
|
27
|
-
var i = Y(t,
|
27
|
+
var i = Y(t, Tt);
|
28
28
|
return v({}, i);
|
29
29
|
}, N = function(t, i, n) {
|
30
30
|
var e = t.cx, o = t.getStyles, r = t.getClassNames, s = t.className;
|
@@ -132,7 +132,7 @@ function Kt(a) {
|
|
132
132
|
maxHeight: t
|
133
133
|
};
|
134
134
|
if (!i || !i.offsetParent) return l;
|
135
|
-
var c = u.getBoundingClientRect(), d = c.height, b = i.getBoundingClientRect(), I = b.bottom, C = b.height, p = b.top, g = i.offsetParent.getBoundingClientRect(), m = g.top, B = r ? window.innerHeight : Lt(u), x = $e(u), G = parseInt(getComputedStyle(i).marginBottom, 10), V = parseInt(getComputedStyle(i).marginTop, 10), E = m - V, F = B - p, A = E + x, W = d - x - p, H = I - B + x + G,
|
135
|
+
var c = u.getBoundingClientRect(), d = c.height, b = i.getBoundingClientRect(), I = b.bottom, C = b.height, p = b.top, g = i.offsetParent.getBoundingClientRect(), m = g.top, B = r ? window.innerHeight : Lt(u), x = $e(u), G = parseInt(getComputedStyle(i).marginBottom, 10), V = parseInt(getComputedStyle(i).marginTop, 10), E = m - V, F = B - p, A = E + x, W = d - x - p, H = I - B + x + G, T = x + p - V, X = 160;
|
136
136
|
switch (e) {
|
137
137
|
case "auto":
|
138
138
|
case "bottom":
|
@@ -174,13 +174,13 @@ function Kt(a) {
|
|
174
174
|
maxHeight: t
|
175
175
|
};
|
176
176
|
if (A >= C && !r)
|
177
|
-
return o && le(u,
|
177
|
+
return o && le(u, T, X), {
|
178
178
|
placement: "top",
|
179
179
|
maxHeight: t
|
180
180
|
};
|
181
181
|
if (!r && A >= n || r && E >= n) {
|
182
182
|
var S = t;
|
183
|
-
return (!r && A >= n || r && E >= n) && (S = r ? E - V : A - V), o && le(u,
|
183
|
+
return (!r && A >= n || r && E >= n) && (S = r ? E - V : A - V), o && le(u, T, X), {
|
184
184
|
placement: "top",
|
185
185
|
maxHeight: S
|
186
186
|
};
|
@@ -304,7 +304,7 @@ var _e = function(t) {
|
|
304
304
|
return {
|
305
305
|
setPortalPlacement: I
|
306
306
|
};
|
307
|
-
}, []), p = ee(null), g = U(p, 2), m = g[0], B = g[1], x =
|
307
|
+
}, []), p = ee(null), g = U(p, 2), m = g[0], B = g[1], x = D(function() {
|
308
308
|
if (e) {
|
309
309
|
var F = Ot(e), A = s === "fixed" ? 0 : window.pageYOffset, W = F[b] + A;
|
310
310
|
(W !== m?.offset || F.left !== m?.rect.left || F.width !== m?.rect.width) && B({
|
@@ -316,7 +316,7 @@ var _e = function(t) {
|
|
316
316
|
xe(function() {
|
317
317
|
x();
|
318
318
|
}, [x]);
|
319
|
-
var G =
|
319
|
+
var G = D(function() {
|
320
320
|
typeof l.current == "function" && (l.current(), l.current = null), e && u.current && (l.current = Ft(e, u.current, x, {
|
321
321
|
elementResize: "ResizeObserver" in window
|
322
322
|
}));
|
@@ -324,7 +324,7 @@ var _e = function(t) {
|
|
324
324
|
xe(function() {
|
325
325
|
G();
|
326
326
|
}, [G]);
|
327
|
-
var V =
|
327
|
+
var V = D(function(F) {
|
328
328
|
u.current = F, G();
|
329
329
|
}, [G]);
|
330
330
|
if (!i && s !== "fixed" || !m) return null;
|
@@ -556,7 +556,7 @@ var An = process.env.NODE_ENV === "production" ? {
|
|
556
556
|
paddingBottom: n.baseUnit * 2,
|
557
557
|
paddingTop: n.baseUnit * 2
|
558
558
|
};
|
559
|
-
},
|
559
|
+
}, Tn = function(t) {
|
560
560
|
var i = t.children, n = t.cx, e = t.getStyles, o = t.getClassNames, r = t.Heading, s = t.headingProps, u = t.innerProps, l = t.label, c = t.theme, d = t.selectProps;
|
561
561
|
return h("div", f({}, N(t, "group", {
|
562
562
|
group: !0
|
@@ -567,7 +567,7 @@ var An = process.env.NODE_ENV === "production" ? {
|
|
567
567
|
getClassNames: o,
|
568
568
|
cx: n
|
569
569
|
}), l), h("div", null, i));
|
570
|
-
},
|
570
|
+
}, Dn = function(t, i) {
|
571
571
|
var n = t.theme, e = n.colors, o = n.spacing;
|
572
572
|
return v({
|
573
573
|
label: "group",
|
@@ -589,7 +589,7 @@ var An = process.env.NODE_ENV === "production" ? {
|
|
589
589
|
return h("div", f({}, N(t, "groupHeading", {
|
590
590
|
"group-heading": !0
|
591
591
|
}), n));
|
592
|
-
}, Ln =
|
592
|
+
}, Ln = Tn, wn = ["innerRef", "isDisabled", "isHidden", "inputClassName"], Mn = function(t, i) {
|
593
593
|
var n = t.isDisabled, e = t.value, o = t.theme, r = o.spacing, s = o.colors;
|
594
594
|
return v(v({
|
595
595
|
visibility: n ? "hidden" : "visible",
|
@@ -907,7 +907,7 @@ var gu = process.env.NODE_ENV === "production" ? {
|
|
907
907
|
Z = A.onFocus(M);
|
908
908
|
}
|
909
909
|
return Z;
|
910
|
-
}, [n, e, b, p, A, o, s, c]),
|
910
|
+
}, [n, e, b, p, A, o, s, c]), T = q(function() {
|
911
911
|
var Z = "";
|
912
912
|
if (m && B.length && !V && A.onFilter) {
|
913
913
|
var S = x({
|
@@ -940,7 +940,7 @@ var gu = process.env.NODE_ENV === "production" ? {
|
|
940
940
|
id: "aria-focused"
|
941
941
|
}, H), h("span", {
|
942
942
|
id: "aria-results"
|
943
|
-
},
|
943
|
+
}, T), h("span", {
|
944
944
|
id: "aria-guidance"
|
945
945
|
}, P));
|
946
946
|
return h(Be, null, h(Re, {
|
@@ -1262,26 +1262,26 @@ var xu = function(t) {
|
|
1262
1262
|
t.cancelable && t.preventDefault(), t.stopPropagation();
|
1263
1263
|
};
|
1264
1264
|
function Bu(a) {
|
1265
|
-
var t = a.isEnabled, i = a.onBottomArrive, n = a.onBottomLeave, e = a.onTopArrive, o = a.onTopLeave, r = j(!1), s = j(!1), u = j(0), l = j(null), c =
|
1265
|
+
var t = a.isEnabled, i = a.onBottomArrive, n = a.onBottomLeave, e = a.onTopArrive, o = a.onTopLeave, r = j(!1), s = j(!1), u = j(0), l = j(null), c = D(function(g, m) {
|
1266
1266
|
if (l.current !== null) {
|
1267
1267
|
var B = l.current, x = B.scrollTop, G = B.scrollHeight, V = B.clientHeight, E = l.current, F = m > 0, A = G - V - x, W = !1;
|
1268
1268
|
A > m && r.current && (n && n(g), r.current = !1), F && s.current && (o && o(g), s.current = !1), F && m > A ? (i && !r.current && i(g), E.scrollTop = G, W = !0, r.current = !0) : !F && -m > x && (e && !s.current && e(g), E.scrollTop = 0, W = !0, s.current = !0), W && xu(g);
|
1269
1269
|
}
|
1270
|
-
}, [i, n, e, o]), d =
|
1270
|
+
}, [i, n, e, o]), d = D(function(g) {
|
1271
1271
|
c(g, g.deltaY);
|
1272
|
-
}, [c]), b =
|
1272
|
+
}, [c]), b = D(function(g) {
|
1273
1273
|
u.current = g.changedTouches[0].clientY;
|
1274
|
-
}, []), I =
|
1274
|
+
}, []), I = D(function(g) {
|
1275
1275
|
var m = u.current - g.changedTouches[0].clientY;
|
1276
1276
|
c(g, m);
|
1277
|
-
}, [c]), C =
|
1277
|
+
}, [c]), C = D(function(g) {
|
1278
1278
|
if (g) {
|
1279
1279
|
var m = kt ? {
|
1280
1280
|
passive: !1
|
1281
1281
|
} : !1;
|
1282
1282
|
g.addEventListener("wheel", d, m), g.addEventListener("touchstart", b, m), g.addEventListener("touchmove", I, m);
|
1283
1283
|
}
|
1284
|
-
}, [I, b, d]), p =
|
1284
|
+
}, [I, b, d]), p = D(function(g) {
|
1285
1285
|
g && (g.removeEventListener("wheel", d, !1), g.removeEventListener("touchstart", b, !1), g.removeEventListener("touchmove", I, !1));
|
1286
1286
|
}, [I, b, d]);
|
1287
1287
|
return Ue(function() {
|
@@ -1295,7 +1295,7 @@ function Bu(a) {
|
|
1295
1295
|
l.current = g;
|
1296
1296
|
};
|
1297
1297
|
}
|
1298
|
-
var
|
1298
|
+
var Te = ["boxSizing", "height", "overflow", "paddingRight", "position"], De = {
|
1299
1299
|
boxSizing: "border-box",
|
1300
1300
|
// account for possible declaration `width: 100%;` on body
|
1301
1301
|
overflow: "hidden",
|
@@ -1320,25 +1320,25 @@ var Oe = !!(typeof window < "u" && window.document && window.document.createElem
|
|
1320
1320
|
passive: !1
|
1321
1321
|
};
|
1322
1322
|
function Fu(a) {
|
1323
|
-
var t = a.isEnabled, i = a.accountForScrollbars, n = i === void 0 ? !0 : i, e = j({}), o = j(null), r =
|
1323
|
+
var t = a.isEnabled, i = a.accountForScrollbars, n = i === void 0 ? !0 : i, e = j({}), o = j(null), r = D(function(u) {
|
1324
1324
|
if (Oe) {
|
1325
1325
|
var l = document.body, c = l && l.style;
|
1326
|
-
if (n &&
|
1326
|
+
if (n && Te.forEach(function(C) {
|
1327
1327
|
var p = c && c[C];
|
1328
1328
|
e.current[C] = p;
|
1329
1329
|
}), n && ue < 1) {
|
1330
1330
|
var d = parseInt(e.current.paddingRight, 10) || 0, b = document.body ? document.body.clientWidth : 0, I = window.innerWidth - b + d || 0;
|
1331
|
-
Object.keys(
|
1332
|
-
var p =
|
1331
|
+
Object.keys(De).forEach(function(C) {
|
1332
|
+
var p = De[C];
|
1333
1333
|
c && (c[C] = p);
|
1334
1334
|
}), c && (c.paddingRight = "".concat(I, "px"));
|
1335
1335
|
}
|
1336
1336
|
l && Me() && (l.addEventListener("touchmove", Pe, te), u && (u.addEventListener("touchstart", we, te), u.addEventListener("touchmove", Le, te))), ue += 1;
|
1337
1337
|
}
|
1338
|
-
}, [n]), s =
|
1338
|
+
}, [n]), s = D(function(u) {
|
1339
1339
|
if (Oe) {
|
1340
1340
|
var l = document.body, c = l && l.style;
|
1341
|
-
ue = Math.max(ue - 1, 0), n && ue < 1 &&
|
1341
|
+
ue = Math.max(ue - 1, 0), n && ue < 1 && Te.forEach(function(d) {
|
1342
1342
|
var b = e.current[d];
|
1343
1343
|
c && (c[d] = b);
|
1344
1344
|
}), l && Me() && (l.removeEventListener("touchmove", Pe, te), u && (u.removeEventListener("touchstart", we, te), u.removeEventListener("touchmove", Le, te)));
|
@@ -1426,11 +1426,11 @@ function Hu() {
|
|
1426
1426
|
return Ee(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
1427
1427
|
lt() && navigator.maxTouchPoints > 1;
|
1428
1428
|
}
|
1429
|
-
function
|
1429
|
+
function Tu() {
|
1430
1430
|
return Ru() || Hu();
|
1431
1431
|
}
|
1432
|
-
function
|
1433
|
-
return lt() ||
|
1432
|
+
function Du() {
|
1433
|
+
return lt() || Tu();
|
1434
1434
|
}
|
1435
1435
|
var Pu = function(t) {
|
1436
1436
|
return t.label;
|
@@ -1446,7 +1446,7 @@ var Pu = function(t) {
|
|
1446
1446
|
control: Zn,
|
1447
1447
|
dropdownIndicator: Gn,
|
1448
1448
|
group: Hn,
|
1449
|
-
groupHeading:
|
1449
|
+
groupHeading: Dn,
|
1450
1450
|
indicatorsContainer: mn,
|
1451
1451
|
indicatorSeparator: Vn,
|
1452
1452
|
input: Mn,
|
@@ -1661,7 +1661,7 @@ var Ct = function(t) {
|
|
1661
1661
|
inputIsHiddenAfterUpdate: void 0,
|
1662
1662
|
prevProps: void 0,
|
1663
1663
|
instancePrefix: ""
|
1664
|
-
}, e.blockOptionHover = !1, e.isComposing = !1, e.commonProps = void 0, e.initialTouchX = 0, e.initialTouchY = 0, e.openAfterFocus = !1, e.scrollToFocusedOptionOnUpdate = !1, e.userIsDragging = void 0, e.isAppleDevice =
|
1664
|
+
}, e.blockOptionHover = !1, e.isComposing = !1, e.commonProps = void 0, e.initialTouchX = 0, e.initialTouchY = 0, e.openAfterFocus = !1, e.scrollToFocusedOptionOnUpdate = !1, e.userIsDragging = void 0, e.isAppleDevice = Du(), e.controlRef = null, e.getControlRef = function(u) {
|
1665
1665
|
e.controlRef = u;
|
1666
1666
|
}, e.focusedOptionRef = null, e.getFocusedOptionRef = function(u) {
|
1667
1667
|
e.focusedOptionRef = u;
|
@@ -2232,7 +2232,7 @@ var Ct = function(t) {
|
|
2232
2232
|
}), B);
|
2233
2233
|
if (g)
|
2234
2234
|
return G.map(function(A, W) {
|
2235
|
-
var H = A === V,
|
2235
|
+
var H = A === V, T = "".concat(e.getOptionLabel(A), "-").concat(e.getOptionValue(A));
|
2236
2236
|
return /* @__PURE__ */ y.createElement(r, f({}, b, {
|
2237
2237
|
components: {
|
2238
2238
|
Container: s,
|
@@ -2241,7 +2241,7 @@ var Ct = function(t) {
|
|
2241
2241
|
},
|
2242
2242
|
isFocused: H,
|
2243
2243
|
isDisabled: p,
|
2244
|
-
key:
|
2244
|
+
key: T,
|
2245
2245
|
index: W,
|
2246
2246
|
removeProps: {
|
2247
2247
|
onClick: function() {
|
@@ -2325,7 +2325,7 @@ var Ct = function(t) {
|
|
2325
2325
|
}, {
|
2326
2326
|
key: "renderMenu",
|
2327
2327
|
value: function() {
|
2328
|
-
var e = this, o = this.getComponents(), r = o.Group, s = o.GroupHeading, u = o.Menu, l = o.MenuList, c = o.MenuPortal, d = o.LoadingMessage, b = o.NoOptionsMessage, I = o.Option, C = this.commonProps, p = this.state.focusedOption, g = this.props, m = g.captureMenuScroll, B = g.inputValue, x = g.isLoading, G = g.loadingMessage, V = g.minMenuHeight, E = g.maxMenuHeight, F = g.menuIsOpen, A = g.menuPlacement, W = g.menuPosition, H = g.menuPortalTarget,
|
2328
|
+
var e = this, o = this.getComponents(), r = o.Group, s = o.GroupHeading, u = o.Menu, l = o.MenuList, c = o.MenuPortal, d = o.LoadingMessage, b = o.NoOptionsMessage, I = o.Option, C = this.commonProps, p = this.state.focusedOption, g = this.props, m = g.captureMenuScroll, B = g.inputValue, x = g.isLoading, G = g.loadingMessage, V = g.minMenuHeight, E = g.maxMenuHeight, F = g.menuIsOpen, A = g.menuPlacement, W = g.menuPosition, H = g.menuPortalTarget, T = g.menuShouldBlockScroll, X = g.menuShouldScrollIntoView, P = g.noOptionsMessage, w = g.onMenuScrollToTop, Z = g.onMenuScrollToBottom;
|
2329
2329
|
if (!F) return null;
|
2330
2330
|
var S = function(L, k) {
|
2331
2331
|
var K = L.type, O = L.data, _ = L.isDisabled, z = L.isSelected, oe = L.label, ht = L.value, ye = p === O, We = _ ? void 0 : function() {
|
@@ -2408,7 +2408,7 @@ var Ct = function(t) {
|
|
2408
2408
|
captureEnabled: m,
|
2409
2409
|
onTopArrive: w,
|
2410
2410
|
onBottomArrive: Z,
|
2411
|
-
lockEnabled:
|
2411
|
+
lockEnabled: T
|
2412
2412
|
}, function(_) {
|
2413
2413
|
return /* @__PURE__ */ y.createElement(l, f({}, C, {
|
2414
2414
|
innerRef: function(oe) {
|
@@ -2536,15 +2536,15 @@ var Ct = function(t) {
|
|
2536
2536
|
var W = u != null && e !== r ? {
|
2537
2537
|
inputIsHidden: u,
|
2538
2538
|
inputIsHiddenAfterUpdate: void 0
|
2539
|
-
} : {}, H = l,
|
2540
|
-
return c && !
|
2539
|
+
} : {}, H = l, T = c && d;
|
2540
|
+
return c && !T && (H = {
|
2541
2541
|
value: ie(m, B, B[0] || null),
|
2542
2542
|
options: B,
|
2543
2543
|
action: "initial-input-focus"
|
2544
|
-
},
|
2544
|
+
}, T = !d), l?.action === "initial-input-focus" && (H = null), v(v(v({}, x), W), {}, {
|
2545
2545
|
prevProps: e,
|
2546
2546
|
ariaSelection: H,
|
2547
|
-
prevWasFocused:
|
2547
|
+
prevWasFocused: T
|
2548
2548
|
});
|
2549
2549
|
}
|
2550
2550
|
}]), i;
|
@@ -2552,20 +2552,20 @@ var Ct = function(t) {
|
|
2552
2552
|
vt.defaultProps = zu;
|
2553
2553
|
var Ku = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
2554
2554
|
function _u(a) {
|
2555
|
-
var t = a.defaultInputValue, i = t === void 0 ? "" : t, n = a.defaultMenuIsOpen, e = n === void 0 ? !1 : n, o = a.defaultValue, r = o === void 0 ? null : o, s = a.inputValue, u = a.menuIsOpen, l = a.onChange, c = a.onInputChange, d = a.onMenuClose, b = a.onMenuOpen, I = a.value, C = Y(a, Ku), p = ee(s !== void 0 ? s : i), g = U(p, 2), m = g[0], B = g[1], x = ee(u !== void 0 ? u : e), G = U(x, 2), V = G[0], E = G[1], F = ee(I !== void 0 ? I : r), A = U(F, 2), W = A[0], H = A[1],
|
2555
|
+
var t = a.defaultInputValue, i = t === void 0 ? "" : t, n = a.defaultMenuIsOpen, e = n === void 0 ? !1 : n, o = a.defaultValue, r = o === void 0 ? null : o, s = a.inputValue, u = a.menuIsOpen, l = a.onChange, c = a.onInputChange, d = a.onMenuClose, b = a.onMenuOpen, I = a.value, C = Y(a, Ku), p = ee(s !== void 0 ? s : i), g = U(p, 2), m = g[0], B = g[1], x = ee(u !== void 0 ? u : e), G = U(x, 2), V = G[0], E = G[1], F = ee(I !== void 0 ? I : r), A = U(F, 2), W = A[0], H = A[1], T = D(function(M, Q) {
|
2556
2556
|
typeof l == "function" && l(M, Q), H(M);
|
2557
|
-
}, [l]), X =
|
2557
|
+
}, [l]), X = D(function(M, Q) {
|
2558
2558
|
var $;
|
2559
2559
|
typeof c == "function" && ($ = c(M, Q)), B($ !== void 0 ? $ : M);
|
2560
|
-
}, [c]), P =
|
2560
|
+
}, [c]), P = D(function() {
|
2561
2561
|
typeof b == "function" && b(), E(!0);
|
2562
|
-
}, [b]), w =
|
2562
|
+
}, [b]), w = D(function() {
|
2563
2563
|
typeof d == "function" && d(), E(!1);
|
2564
2564
|
}, [d]), Z = s !== void 0 ? s : m, S = u !== void 0 ? u : V, J = I !== void 0 ? I : W;
|
2565
2565
|
return v(v({}, C), {}, {
|
2566
2566
|
inputValue: Z,
|
2567
2567
|
menuIsOpen: S,
|
2568
|
-
onChange:
|
2568
|
+
onChange: T,
|
2569
2569
|
onInputChange: X,
|
2570
2570
|
onMenuClose: w,
|
2571
2571
|
onMenuOpen: P,
|
@@ -2602,7 +2602,7 @@ function ei(a) {
|
|
2602
2602
|
}) ? c(G, r(G)) : void 0;
|
2603
2603
|
}, [r, c, x, m, G, u, I, F]), H = q(function() {
|
2604
2604
|
return (i || !V) && W ? e === "first" ? [W].concat(ne(I)) : [].concat(ne(I), [W]) : I;
|
2605
|
-
}, [i, e, V, W, I]),
|
2605
|
+
}, [i, e, V, W, I]), T = D(function(X, P) {
|
2606
2606
|
if (P.action !== "select-option")
|
2607
2607
|
return C(X, P);
|
2608
2608
|
var w = Array.isArray(X) ? X : [X];
|
@@ -2622,7 +2622,7 @@ function ei(a) {
|
|
2622
2622
|
}, [c, G, E, A, W, d, C, F]);
|
2623
2623
|
return v(v({}, p), {}, {
|
2624
2624
|
options: H,
|
2625
|
-
onChange:
|
2625
|
+
onChange: T
|
2626
2626
|
});
|
2627
2627
|
}
|
2628
2628
|
var ti = /* @__PURE__ */ Rt(function(a, t) {
|