@oliasoft-open-source/react-ui-library 4.15.1-beta-12 → 4.15.1-beta-13
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/global.css +430 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1866 -854
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11,12 +11,12 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
11
11
|
var _docChanged, _ignoreNextExit, _suggesters, _next, _prev, _handlerMatches, _ignored, _removed, _lastChangeFromAppend, _a;
|
|
12
12
|
import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
13
13
|
import * as React$4 from "react";
|
|
14
|
-
import React__default, { useContext, isValidElement, useState, useRef, useEffect, useCallback as useCallback$1, createElement, forwardRef, useMemo as useMemo$1, useLayoutEffect as useLayoutEffect$1, createContext, useReducer, useDebugValue, Fragment as Fragment$2, Component as Component$1, useImperativeHandle, memo, cloneElement as cloneElement$1 } from "react";
|
|
14
|
+
import React__default, { useContext, isValidElement, useState, useRef, useEffect, useCallback as useCallback$1, createElement, forwardRef, useMemo as useMemo$1, useLayoutEffect as useLayoutEffect$1, createContext, useReducer, useDebugValue, Fragment as Fragment$2, Component as Component$1, PureComponent, useImperativeHandle, memo, cloneElement as cloneElement$1 } from "react";
|
|
15
15
|
import * as PropTypes from "prop-types";
|
|
16
16
|
import PropTypes__default from "prop-types";
|
|
17
17
|
import ReactDOM, { createPortal, unstable_batchedUpdates, render } from "react-dom";
|
|
18
18
|
import { noop as noop$3, set, get as get$2, isString as isString$3, isNumber as isNumber$1, isBoolean as isBoolean$2, isFunction as isFunction$3, isEmpty, isArray as isArray$1, toNumber, debounce as debounce$2, isObject as isObject$5, isEqual as isEqual$4 } from "lodash";
|
|
19
|
-
import { toString as toString$1, isScientificStringNum, roundToPrecision, toNum, validateNumber, cleanNumStr, stripLeadingZeros, roundToFixed, roundByMagnitude, unitFromQuantity, getUnit, KNOWN_UNITS, ALT_UNITS, isValueWithUnit, getValue as getValue$1, withUnit, convertSamePrecision, convertAndGetValue, split as split$1, label as label$
|
|
19
|
+
import { toString as toString$1, isScientificStringNum, roundToPrecision, toNum, validateNumber, cleanNumStr, stripLeadingZeros, roundToFixed, roundByMagnitude, unitFromQuantity, getUnit, KNOWN_UNITS, ALT_UNITS, isValueWithUnit, getValue as getValue$1, withUnit, convertSamePrecision, convertAndGetValue, split as split$1, label as label$b, isValidNum, getAltUnitsListByQuantity, altUnitsList, getUnitsForQuantity, roundByMagnitudeToFixed } from "@oliasoft-open-source/units";
|
|
20
20
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
21
21
|
function getDefaultExportFromCjs(x2) {
|
|
22
22
|
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
@@ -186,7 +186,7 @@ var InputType = /* @__PURE__ */ ((InputType2) => {
|
|
|
186
186
|
})(InputType || {});
|
|
187
187
|
const chevron = "_chevron_1kw4m_1";
|
|
188
188
|
const expanded$2 = "_expanded_1kw4m_9";
|
|
189
|
-
const styles$
|
|
189
|
+
const styles$U = {
|
|
190
190
|
chevron,
|
|
191
191
|
expanded: expanded$2
|
|
192
192
|
};
|
|
@@ -286,8 +286,8 @@ function __spreadArray$2(to2, from3, pack) {
|
|
|
286
286
|
}
|
|
287
287
|
return to2.concat(ar2 || Array.prototype.slice.call(from3));
|
|
288
288
|
}
|
|
289
|
-
typeof SuppressedError === "function" ? SuppressedError : function(error2, suppressed,
|
|
290
|
-
var e2 = new Error(
|
|
289
|
+
typeof SuppressedError === "function" ? SuppressedError : function(error2, suppressed, message2) {
|
|
290
|
+
var e2 = new Error(message2);
|
|
291
291
|
return e2.name = "SuppressedError", e2.error = error2, e2.suppressed = suppressed, e2;
|
|
292
292
|
};
|
|
293
293
|
/*!
|
|
@@ -869,7 +869,7 @@ const wrapper$5 = "_wrapper_18jt2_1";
|
|
|
869
869
|
const customSvg = "_customSvg_18jt2_8";
|
|
870
870
|
const customPng = "_customPng_18jt2_11";
|
|
871
871
|
const clickable$2 = "_clickable_18jt2_16";
|
|
872
|
-
const styles$
|
|
872
|
+
const styles$T = {
|
|
873
873
|
wrapper: wrapper$5,
|
|
874
874
|
customSvg,
|
|
875
875
|
customPng,
|
|
@@ -1544,8 +1544,8 @@ const Icon = ({
|
|
|
1544
1544
|
"div",
|
|
1545
1545
|
{
|
|
1546
1546
|
className: cx$2(
|
|
1547
|
-
styles$
|
|
1548
|
-
(clickable2 || onClick) && !disabledContext ? styles$
|
|
1547
|
+
styles$T.wrapper,
|
|
1548
|
+
(clickable2 || onClick) && !disabledContext ? styles$T.clickable : ""
|
|
1549
1549
|
),
|
|
1550
1550
|
style: style2,
|
|
1551
1551
|
onClick: (evt) => onClick && !disabledContext ? onClick(evt) : void 0,
|
|
@@ -1553,7 +1553,7 @@ const Icon = ({
|
|
|
1553
1553
|
children: isValidElement(icon2) ? icon2 : typeof icon2 === "string" && (icon2.includes(".svg") || icon2.includes("image/svg")) ? /* @__PURE__ */ jsx(
|
|
1554
1554
|
ReactSVG,
|
|
1555
1555
|
{
|
|
1556
|
-
className: styles$
|
|
1556
|
+
className: styles$T.customSvg,
|
|
1557
1557
|
beforeInjection: (svg) => {
|
|
1558
1558
|
if (size2) {
|
|
1559
1559
|
svg.setAttribute("width", String(size2));
|
|
@@ -1562,26 +1562,26 @@ const Icon = ({
|
|
|
1562
1562
|
},
|
|
1563
1563
|
src: icon2
|
|
1564
1564
|
}
|
|
1565
|
-
) : typeof icon2 === "string" && (icon2.includes(".png") || icon2.includes("image/png")) ? /* @__PURE__ */ jsx("img", { alt: "icon", className: styles$
|
|
1565
|
+
) : typeof icon2 === "string" && (icon2.includes(".png") || icon2.includes("image/png")) ? /* @__PURE__ */ jsx("img", { alt: "icon", className: styles$T.customPng, src: icon2 }) : typeof icon2 === "string" ? /* @__PURE__ */ jsx(NamedIcon, { icon: icon2 }) : null
|
|
1566
1566
|
}
|
|
1567
1567
|
);
|
|
1568
1568
|
};
|
|
1569
1569
|
const Chevron = ({ expanded: expanded2 }) => {
|
|
1570
|
-
return /* @__PURE__ */ jsx("span", { className: cx$2(styles$
|
|
1570
|
+
return /* @__PURE__ */ jsx("span", { className: cx$2(styles$U.chevron, expanded2 ? styles$U.expanded : ""), children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHEVRON_RIGHT }) });
|
|
1571
1571
|
};
|
|
1572
1572
|
const accordion = "_accordion_15p8j_1";
|
|
1573
1573
|
const accordionHeader = "_accordionHeader_15p8j_5";
|
|
1574
|
-
const heading$
|
|
1574
|
+
const heading$6 = "_heading_15p8j_9";
|
|
1575
1575
|
const clickable$1 = "_clickable_15p8j_12";
|
|
1576
1576
|
const bordered$4 = "_bordered_15p8j_18";
|
|
1577
1577
|
const accordionContent = "_accordionContent_15p8j_18";
|
|
1578
1578
|
const expanded$1 = "_expanded_15p8j_36";
|
|
1579
1579
|
const padding$3 = "_padding_15p8j_44";
|
|
1580
1580
|
const squareBottom = "_squareBottom_15p8j_47";
|
|
1581
|
-
const styles$
|
|
1581
|
+
const styles$S = {
|
|
1582
1582
|
accordion,
|
|
1583
1583
|
accordionHeader,
|
|
1584
|
-
heading: heading$
|
|
1584
|
+
heading: heading$6,
|
|
1585
1585
|
clickable: clickable$1,
|
|
1586
1586
|
bordered: bordered$4,
|
|
1587
1587
|
accordionContent,
|
|
@@ -1603,21 +1603,21 @@ const AccordionBase = ({
|
|
|
1603
1603
|
"div",
|
|
1604
1604
|
{
|
|
1605
1605
|
className: cx$2(
|
|
1606
|
-
styles$
|
|
1607
|
-
bordered2 ? styles$
|
|
1608
|
-
expanded2 ? styles$
|
|
1609
|
-
squareBottom2 ? styles$
|
|
1606
|
+
styles$S.accordion,
|
|
1607
|
+
bordered2 ? styles$S.bordered : "",
|
|
1608
|
+
expanded2 ? styles$S.expanded : "",
|
|
1609
|
+
squareBottom2 ? styles$S.squareBottom : ""
|
|
1610
1610
|
),
|
|
1611
1611
|
children: [
|
|
1612
1612
|
/* @__PURE__ */ jsxs(
|
|
1613
1613
|
"div",
|
|
1614
1614
|
{
|
|
1615
|
-
className: cx$2(styles$
|
|
1615
|
+
className: cx$2(styles$S.accordionHeader, onClick ? styles$S.clickable : ""),
|
|
1616
1616
|
onClick,
|
|
1617
1617
|
"data-testid": testId,
|
|
1618
1618
|
children: [
|
|
1619
1619
|
/* @__PURE__ */ jsx(Chevron, { expanded: expanded2 }),
|
|
1620
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
1620
|
+
/* @__PURE__ */ jsx("div", { className: styles$S.heading, children: heading2 })
|
|
1621
1621
|
]
|
|
1622
1622
|
}
|
|
1623
1623
|
),
|
|
@@ -1625,8 +1625,8 @@ const AccordionBase = ({
|
|
|
1625
1625
|
"div",
|
|
1626
1626
|
{
|
|
1627
1627
|
className: cx$2(
|
|
1628
|
-
styles$
|
|
1629
|
-
bordered2 && padding2 ? styles$
|
|
1628
|
+
styles$S.accordionContent,
|
|
1629
|
+
bordered2 && padding2 ? styles$S.padding : ""
|
|
1630
1630
|
),
|
|
1631
1631
|
children
|
|
1632
1632
|
}
|
|
@@ -1698,20 +1698,20 @@ const Accordion = ({
|
|
|
1698
1698
|
};
|
|
1699
1699
|
const checkbox = "_checkbox_1ybyr_1";
|
|
1700
1700
|
const noLabel = "_noLabel_1ybyr_17";
|
|
1701
|
-
const small$
|
|
1701
|
+
const small$d = "_small_1ybyr_20";
|
|
1702
1702
|
const checkmark = "_checkmark_1ybyr_43";
|
|
1703
|
-
const disabled$
|
|
1703
|
+
const disabled$a = "_disabled_1ybyr_67";
|
|
1704
1704
|
const noMargin$2 = "_noMargin_1ybyr_81";
|
|
1705
|
-
const isInTable$
|
|
1705
|
+
const isInTable$4 = "_isInTable_1ybyr_84";
|
|
1706
1706
|
const helpIconEnabled$2 = "_helpIconEnabled_1ybyr_87";
|
|
1707
|
-
const styles$
|
|
1707
|
+
const styles$R = {
|
|
1708
1708
|
checkbox,
|
|
1709
1709
|
noLabel,
|
|
1710
|
-
small: small$
|
|
1710
|
+
small: small$d,
|
|
1711
1711
|
checkmark,
|
|
1712
|
-
disabled: disabled$
|
|
1712
|
+
disabled: disabled$a,
|
|
1713
1713
|
noMargin: noMargin$2,
|
|
1714
|
-
isInTable: isInTable$
|
|
1714
|
+
isInTable: isInTable$4,
|
|
1715
1715
|
helpIconEnabled: helpIconEnabled$2
|
|
1716
1716
|
};
|
|
1717
1717
|
var MapShim = function() {
|
|
@@ -2207,12 +2207,12 @@ var index = function() {
|
|
|
2207
2207
|
return ResizeObserver$2;
|
|
2208
2208
|
}();
|
|
2209
2209
|
var isProduction$3 = process.env.NODE_ENV === "production";
|
|
2210
|
-
function warning$7(condition,
|
|
2210
|
+
function warning$7(condition, message2) {
|
|
2211
2211
|
if (!isProduction$3) {
|
|
2212
2212
|
if (condition) {
|
|
2213
2213
|
return;
|
|
2214
2214
|
}
|
|
2215
|
-
var text2 = "Warning: " +
|
|
2215
|
+
var text2 = "Warning: " + message2;
|
|
2216
2216
|
if (typeof console !== "undefined") {
|
|
2217
2217
|
console.warn(text2);
|
|
2218
2218
|
}
|
|
@@ -2659,7 +2659,7 @@ function getShouldCloseAccordingToChildren(registrations, event) {
|
|
|
2659
2659
|
return true;
|
|
2660
2660
|
}
|
|
2661
2661
|
function useGroup(_ref2) {
|
|
2662
|
-
var
|
|
2662
|
+
var isOpen2 = _ref2.isOpen, onOutsideClick = _ref2.onOutsideClick, onParentClose = _ref2.onParentClose;
|
|
2663
2663
|
var trigger2 = useRef(null);
|
|
2664
2664
|
var layer2 = useRef(null);
|
|
2665
2665
|
var registrations = useRef(/* @__PURE__ */ new Set());
|
|
@@ -2693,7 +2693,7 @@ function useGroup(_ref2) {
|
|
|
2693
2693
|
}, [possibleRegisterFn, shouldCloseWhenClickedOutside, onParentClose, registrations]);
|
|
2694
2694
|
useEffect(function() {
|
|
2695
2695
|
var isChild = typeof possibleRegisterFn === "function";
|
|
2696
|
-
var shouldNotListen = !
|
|
2696
|
+
var shouldNotListen = !isOpen2 || !onOutsideClick || isChild;
|
|
2697
2697
|
if (shouldNotListen) {
|
|
2698
2698
|
return;
|
|
2699
2699
|
}
|
|
@@ -2706,15 +2706,15 @@ function useGroup(_ref2) {
|
|
|
2706
2706
|
return function() {
|
|
2707
2707
|
return document.removeEventListener("click", handleClick2, true);
|
|
2708
2708
|
};
|
|
2709
|
-
}, [
|
|
2709
|
+
}, [isOpen2, onOutsideClick, shouldCloseWhenClickedOutside, possibleRegisterFn]);
|
|
2710
2710
|
useEffect(function() {
|
|
2711
|
-
if (!
|
|
2711
|
+
if (!isOpen2) {
|
|
2712
2712
|
registrations.current.forEach(function(_ref4) {
|
|
2713
2713
|
var closeChild = _ref4.closeChild;
|
|
2714
2714
|
return closeChild();
|
|
2715
2715
|
});
|
|
2716
2716
|
}
|
|
2717
|
-
}, [
|
|
2717
|
+
}, [isOpen2]);
|
|
2718
2718
|
return {
|
|
2719
2719
|
closeOnOutsideClickRefs: {
|
|
2720
2720
|
trigger: trigger2,
|
|
@@ -3413,7 +3413,7 @@ var DEFAULT_OPTIONS$1 = {
|
|
|
3413
3413
|
};
|
|
3414
3414
|
function useLayer(_ref) {
|
|
3415
3415
|
var _triggerBoundsRef$cur;
|
|
3416
|
-
var _ref$isOpen = _ref.isOpen,
|
|
3416
|
+
var _ref$isOpen = _ref.isOpen, isOpen2 = _ref$isOpen === void 0 ? false : _ref$isOpen, _ref$overflowContaine = _ref.overflowContainer, overflowContainer = _ref$overflowContaine === void 0 ? DEFAULT_OPTIONS$1.overflowContainer : _ref$overflowContaine, _ref$environment = _ref.environment, environment2 = _ref$environment === void 0 ? typeof window !== "undefined" ? window : void 0 : _ref$environment, ResizeObserverPolyfill = _ref.ResizeObserver, _ref$placement = _ref.placement, placement = _ref$placement === void 0 ? DEFAULT_OPTIONS$1.placement : _ref$placement, _ref$possiblePlacemen = _ref.possiblePlacements, possiblePlacements = _ref$possiblePlacemen === void 0 ? DEFAULT_OPTIONS$1.possiblePlacements : _ref$possiblePlacemen, _ref$preferX = _ref.preferX, preferX = _ref$preferX === void 0 ? DEFAULT_OPTIONS$1.preferX : _ref$preferX, _ref$preferY = _ref.preferY, preferY = _ref$preferY === void 0 ? DEFAULT_OPTIONS$1.preferY : _ref$preferY, _ref$auto = _ref.auto, auto2 = _ref$auto === void 0 ? DEFAULT_OPTIONS$1.auto : _ref$auto, _ref$snap = _ref.snap, snap = _ref$snap === void 0 ? DEFAULT_OPTIONS$1.snap : _ref$snap, _ref$triggerOffset = _ref.triggerOffset, triggerOffset = _ref$triggerOffset === void 0 ? DEFAULT_OPTIONS$1.triggerOffset : _ref$triggerOffset, _ref$containerOffset = _ref.containerOffset, containerOffset = _ref$containerOffset === void 0 ? DEFAULT_OPTIONS$1.containerOffset : _ref$containerOffset, _ref$arrowOffset = _ref.arrowOffset, arrowOffset = _ref$arrowOffset === void 0 ? DEFAULT_OPTIONS$1.arrowOffset : _ref$arrowOffset, _ref$container = _ref.container, container2 = _ref$container === void 0 ? DEFAULT_OPTIONS$1.container : _ref$container, _ref$layerDimensions = _ref.layerDimensions, layerDimensions = _ref$layerDimensions === void 0 ? null : _ref$layerDimensions, onDisappear = _ref.onDisappear, onOutsideClick = _ref.onOutsideClick, onParentClose = _ref.onParentClose, triggerOption = _ref.trigger;
|
|
3417
3417
|
var _useState = useState(function() {
|
|
3418
3418
|
return {
|
|
3419
3419
|
layerSide: placement === "center" ? "center" : Placements.getSidesFromPlacementType(placement)[0].prop,
|
|
@@ -3432,7 +3432,7 @@ function useLayer(_ref) {
|
|
|
3432
3432
|
};
|
|
3433
3433
|
}), state = _useState[0], setState = _useState[1];
|
|
3434
3434
|
var triggerBoundsRef = useRef(null);
|
|
3435
|
-
var lastState = useLastState(state,
|
|
3435
|
+
var lastState = useLastState(state, isOpen2);
|
|
3436
3436
|
var repositioningToken = useRef({
|
|
3437
3437
|
cancelled: false
|
|
3438
3438
|
});
|
|
@@ -3483,13 +3483,13 @@ function useLayer(_ref) {
|
|
|
3483
3483
|
var _useTrackElements = useTrackElements({
|
|
3484
3484
|
ResizeObserverPolyfill,
|
|
3485
3485
|
environment: environment2,
|
|
3486
|
-
enabled:
|
|
3486
|
+
enabled: isOpen2,
|
|
3487
3487
|
overflowContainer,
|
|
3488
3488
|
onChange: handlePositioning,
|
|
3489
3489
|
triggerOption
|
|
3490
3490
|
}), triggerRef = _useTrackElements.triggerRef, layerRef = _useTrackElements.layerRef, arrowRef = _useTrackElements.arrowRef, closestScrollContainer = _useTrackElements.closestScrollContainer;
|
|
3491
3491
|
var _useGroup = useGroup({
|
|
3492
|
-
isOpen,
|
|
3492
|
+
isOpen: isOpen2,
|
|
3493
3493
|
onOutsideClick,
|
|
3494
3494
|
onParentClose
|
|
3495
3495
|
}), closeOnOutsideClickRefs = _useGroup.closeOnOutsideClickRefs, registrations = _useGroup.registrations;
|
|
@@ -3507,7 +3507,7 @@ function useLayer(_ref) {
|
|
|
3507
3507
|
layerSide: state.layerSide
|
|
3508
3508
|
},
|
|
3509
3509
|
layerSide: state.layerSide,
|
|
3510
|
-
triggerBounds:
|
|
3510
|
+
triggerBounds: isOpen2 ? triggerOption ? triggerOption.getBounds() : (_triggerBoundsRef$cur = triggerBoundsRef.current) == null ? void 0 : _triggerBoundsRef$cur.getBoundingClientRect() : null,
|
|
3511
3511
|
renderLayer: function renderLayer(children) {
|
|
3512
3512
|
return typeof document !== "undefined" ? createPortal(createElement(GroupProvider, {
|
|
3513
3513
|
registrations,
|
|
@@ -3711,7 +3711,7 @@ function useHover(_temp) {
|
|
|
3711
3711
|
const tooltip = "_tooltip_wli9z_1";
|
|
3712
3712
|
const error$3 = "_error_wli9z_15";
|
|
3713
3713
|
const warning$6 = "_warning_wli9z_19";
|
|
3714
|
-
const styles$
|
|
3714
|
+
const styles$Q = {
|
|
3715
3715
|
tooltip,
|
|
3716
3716
|
error: error$3,
|
|
3717
3717
|
warning: warning$6
|
|
@@ -3742,8 +3742,8 @@ const TooltipLayer = ({
|
|
|
3742
3742
|
"div",
|
|
3743
3743
|
{
|
|
3744
3744
|
className: cx$2(
|
|
3745
|
-
styles$
|
|
3746
|
-
error2 ? styles$
|
|
3745
|
+
styles$Q.tooltip,
|
|
3746
|
+
error2 ? styles$Q.error : warning2 ? styles$Q.warning : ""
|
|
3747
3747
|
),
|
|
3748
3748
|
...layerProps,
|
|
3749
3749
|
children: [
|
|
@@ -3779,9 +3779,9 @@ const Tooltip = ({
|
|
|
3779
3779
|
delayEnter: 100,
|
|
3780
3780
|
delayLeave: 0
|
|
3781
3781
|
});
|
|
3782
|
-
const
|
|
3782
|
+
const isOpen2 = !visible ? false : forceOpen ? true : isOver;
|
|
3783
3783
|
const { renderLayer, triggerProps, layerProps, arrowProps } = useLayer({
|
|
3784
|
-
isOpen,
|
|
3784
|
+
isOpen: isOpen2,
|
|
3785
3785
|
overflowContainer: true,
|
|
3786
3786
|
ResizeObserver: index,
|
|
3787
3787
|
auto: true,
|
|
@@ -3791,7 +3791,7 @@ const Tooltip = ({
|
|
|
3791
3791
|
onParentClose: forceClose
|
|
3792
3792
|
});
|
|
3793
3793
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
3794
|
-
|
|
3794
|
+
isOpen2 && renderLayer(
|
|
3795
3795
|
/* @__PURE__ */ jsx(
|
|
3796
3796
|
TooltipLayer,
|
|
3797
3797
|
{
|
|
@@ -3812,7 +3812,7 @@ const Tooltip = ({
|
|
|
3812
3812
|
const helpIcon = "_helpIcon_hd0z2_1";
|
|
3813
3813
|
const active$9 = "_active_hd0z2_9";
|
|
3814
3814
|
const clickable = "_clickable_hd0z2_12";
|
|
3815
|
-
const styles$
|
|
3815
|
+
const styles$P = {
|
|
3816
3816
|
helpIcon,
|
|
3817
3817
|
active: active$9,
|
|
3818
3818
|
clickable
|
|
@@ -3843,9 +3843,9 @@ const HelpIcon = ({
|
|
|
3843
3843
|
"div",
|
|
3844
3844
|
{
|
|
3845
3845
|
className: cx$2(
|
|
3846
|
-
styles$
|
|
3847
|
-
onClick ? styles$
|
|
3848
|
-
active2 ? styles$
|
|
3846
|
+
styles$P.helpIcon,
|
|
3847
|
+
onClick ? styles$P.clickable : "",
|
|
3848
|
+
active2 ? styles$P.active : ""
|
|
3849
3849
|
),
|
|
3850
3850
|
onClick: onClickHelpIcon,
|
|
3851
3851
|
"data-testid": testId,
|
|
@@ -3876,12 +3876,12 @@ const CheckBox = ({
|
|
|
3876
3876
|
"div",
|
|
3877
3877
|
{
|
|
3878
3878
|
className: cx$2(
|
|
3879
|
-
styles$
|
|
3880
|
-
noMargin2 && styles$
|
|
3881
|
-
isInTable2 && styles$
|
|
3882
|
-
isDisabled && styles$
|
|
3883
|
-
small2 && styles$
|
|
3884
|
-
!label2 && styles$
|
|
3879
|
+
styles$R.checkbox,
|
|
3880
|
+
noMargin2 && styles$R.noMargin,
|
|
3881
|
+
isInTable2 && styles$R.isInTable,
|
|
3882
|
+
isDisabled && styles$R.disabled,
|
|
3883
|
+
small2 && styles$R.small,
|
|
3884
|
+
!label2 && styles$R.noLabel
|
|
3885
3885
|
),
|
|
3886
3886
|
"data-ix": dataix,
|
|
3887
3887
|
onClick: (evt) => {
|
|
@@ -3913,10 +3913,10 @@ const CheckBox = ({
|
|
|
3913
3913
|
}
|
|
3914
3914
|
),
|
|
3915
3915
|
/* @__PURE__ */ jsxs("label", { htmlFor: name2, children: [
|
|
3916
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
3916
|
+
/* @__PURE__ */ jsx("span", { className: styles$R.checkmark, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHECK }) }),
|
|
3917
3917
|
label2
|
|
3918
3918
|
] }),
|
|
3919
|
-
showHelp && /* @__PURE__ */ jsx("div", { className: styles$
|
|
3919
|
+
showHelp && /* @__PURE__ */ jsx("div", { className: styles$R.helpIconEnabled, onClick: onClickHelp, children: /* @__PURE__ */ jsx(HelpIcon, { text: helpText }) })
|
|
3920
3920
|
]
|
|
3921
3921
|
}
|
|
3922
3922
|
);
|
|
@@ -3925,7 +3925,7 @@ const bordered$3 = "_bordered_1cgsf_1";
|
|
|
3925
3925
|
const checkboxWrapper = "_checkboxWrapper_1cgsf_7";
|
|
3926
3926
|
const padding$2 = "_padding_1cgsf_13";
|
|
3927
3927
|
const contentWrapper = "_contentWrapper_1cgsf_16";
|
|
3928
|
-
const styles$
|
|
3928
|
+
const styles$O = {
|
|
3929
3929
|
bordered: bordered$3,
|
|
3930
3930
|
checkboxWrapper,
|
|
3931
3931
|
padding: padding$2,
|
|
@@ -3967,7 +3967,7 @@ const AccordionWithDefaultToggle = ({
|
|
|
3967
3967
|
defaultEnabled
|
|
3968
3968
|
});
|
|
3969
3969
|
const content2 = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
3970
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
3970
|
+
/* @__PURE__ */ jsx("div", { className: styles$O.checkboxWrapper, children: /* @__PURE__ */ jsx(
|
|
3971
3971
|
CheckBox,
|
|
3972
3972
|
{
|
|
3973
3973
|
label: toggleLabel,
|
|
@@ -3978,7 +3978,7 @@ const AccordionWithDefaultToggle = ({
|
|
|
3978
3978
|
checked: state.defaultEnabled
|
|
3979
3979
|
}
|
|
3980
3980
|
) }),
|
|
3981
|
-
state.accordionExpanded && /* @__PURE__ */ jsx("div", { className: styles$
|
|
3981
|
+
state.accordionExpanded && /* @__PURE__ */ jsx("div", { className: styles$O.contentWrapper, children })
|
|
3982
3982
|
] });
|
|
3983
3983
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
3984
3984
|
/* @__PURE__ */ jsx(
|
|
@@ -3991,61 +3991,61 @@ const AccordionWithDefaultToggle = ({
|
|
|
3991
3991
|
onClick: () => dispatch({ type: AccordionActionType.TOGGLE_ACCORDION })
|
|
3992
3992
|
}
|
|
3993
3993
|
),
|
|
3994
|
-
/* @__PURE__ */ jsx("div", { className: cx$2(styles$
|
|
3994
|
+
/* @__PURE__ */ jsx("div", { className: cx$2(styles$O.bordered, padding2 ? styles$O.padding : ""), children: content2 })
|
|
3995
3995
|
] });
|
|
3996
3996
|
};
|
|
3997
|
-
const inputInTable$
|
|
3998
|
-
const inputHover$
|
|
3999
|
-
const inputFocus$
|
|
4000
|
-
const inputError$
|
|
4001
|
-
const inputWarning$
|
|
4002
|
-
const inputDisabled$
|
|
4003
|
-
const hideScrollbars$
|
|
3997
|
+
const inputInTable$b = "_inputInTable_1m45a_1";
|
|
3998
|
+
const inputHover$b = "_inputHover_1m45a_13";
|
|
3999
|
+
const inputFocus$b = "_inputFocus_1m45a_18";
|
|
4000
|
+
const inputError$b = "_inputError_1m45a_25";
|
|
4001
|
+
const inputWarning$b = "_inputWarning_1m45a_26";
|
|
4002
|
+
const inputDisabled$b = "_inputDisabled_1m45a_61";
|
|
4003
|
+
const hideScrollbars$b = "_hideScrollbars_1m45a_67";
|
|
4004
4004
|
const button$3 = "_button_1m45a_100";
|
|
4005
4005
|
const active$8 = "_active_1m45a_135";
|
|
4006
4006
|
const green$1 = "_green_1m45a_135";
|
|
4007
4007
|
const red$1 = "_red_1m45a_135";
|
|
4008
4008
|
const orange$1 = "_orange_1m45a_135";
|
|
4009
|
-
const icon$
|
|
4009
|
+
const icon$5 = "_icon_1m45a_147";
|
|
4010
4010
|
const iconOnly = "_iconOnly_1m45a_153";
|
|
4011
4011
|
const basic = "_basic_1m45a_163";
|
|
4012
4012
|
const muted$2 = "_muted_1m45a_169";
|
|
4013
|
-
const disabled$
|
|
4014
|
-
const small$
|
|
4013
|
+
const disabled$9 = "_disabled_1m45a_188";
|
|
4014
|
+
const small$c = "_small_1m45a_198";
|
|
4015
4015
|
const pill = "_pill_1m45a_203";
|
|
4016
4016
|
const round = "_round_1m45a_204";
|
|
4017
4017
|
const inverted$1 = "_inverted_1m45a_310";
|
|
4018
|
-
const groupOrderFirst$
|
|
4019
|
-
const groupOrderMiddle$
|
|
4020
|
-
const groupOrderLast$
|
|
4018
|
+
const groupOrderFirst$4 = "_groupOrderFirst_1m45a_340";
|
|
4019
|
+
const groupOrderMiddle$4 = "_groupOrderMiddle_1m45a_341";
|
|
4020
|
+
const groupOrderLast$4 = "_groupOrderLast_1m45a_342";
|
|
4021
4021
|
const buttonStyles = {
|
|
4022
|
-
inputInTable: inputInTable$
|
|
4023
|
-
inputHover: inputHover$
|
|
4024
|
-
inputFocus: inputFocus$
|
|
4025
|
-
inputError: inputError$
|
|
4026
|
-
inputWarning: inputWarning$
|
|
4027
|
-
inputDisabled: inputDisabled$
|
|
4028
|
-
hideScrollbars: hideScrollbars$
|
|
4022
|
+
inputInTable: inputInTable$b,
|
|
4023
|
+
inputHover: inputHover$b,
|
|
4024
|
+
inputFocus: inputFocus$b,
|
|
4025
|
+
inputError: inputError$b,
|
|
4026
|
+
inputWarning: inputWarning$b,
|
|
4027
|
+
inputDisabled: inputDisabled$b,
|
|
4028
|
+
hideScrollbars: hideScrollbars$b,
|
|
4029
4029
|
button: button$3,
|
|
4030
4030
|
active: active$8,
|
|
4031
4031
|
green: green$1,
|
|
4032
4032
|
red: red$1,
|
|
4033
4033
|
orange: orange$1,
|
|
4034
|
-
icon: icon$
|
|
4034
|
+
icon: icon$5,
|
|
4035
4035
|
iconOnly,
|
|
4036
4036
|
basic,
|
|
4037
4037
|
muted: muted$2,
|
|
4038
|
-
disabled: disabled$
|
|
4039
|
-
small: small$
|
|
4038
|
+
disabled: disabled$9,
|
|
4039
|
+
small: small$c,
|
|
4040
4040
|
pill,
|
|
4041
4041
|
round,
|
|
4042
4042
|
inverted: inverted$1,
|
|
4043
|
-
groupOrderFirst: groupOrderFirst$
|
|
4044
|
-
groupOrderMiddle: groupOrderMiddle$
|
|
4045
|
-
groupOrderLast: groupOrderLast$
|
|
4043
|
+
groupOrderFirst: groupOrderFirst$4,
|
|
4044
|
+
groupOrderMiddle: groupOrderMiddle$4,
|
|
4045
|
+
groupOrderLast: groupOrderLast$4
|
|
4046
4046
|
};
|
|
4047
4047
|
const spinner = "_spinner_156m4_1";
|
|
4048
|
-
const styles$
|
|
4048
|
+
const styles$N = {
|
|
4049
4049
|
spinner
|
|
4050
4050
|
};
|
|
4051
4051
|
const Spinner$1 = ({
|
|
@@ -4056,7 +4056,7 @@ const Spinner$1 = ({
|
|
|
4056
4056
|
}) => {
|
|
4057
4057
|
const color2 = colored2 ? "var(--color-text-primary)" : dark2 ? "var(--color-text-muted)" : "white";
|
|
4058
4058
|
const fontSize = small2 ? "var(--font-size)" : tiny ? "var(--font-size-xs)" : "var(--size)";
|
|
4059
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
4059
|
+
return /* @__PURE__ */ jsx("div", { className: styles$N.spinner, style: { color: color2, fontSize } });
|
|
4060
4060
|
};
|
|
4061
4061
|
var ButtonType = /* @__PURE__ */ ((ButtonType2) => {
|
|
4062
4062
|
ButtonType2["SUBMIT"] = "submit";
|
|
@@ -4180,84 +4180,84 @@ const actions$2 = "_actions_1t7vd_1";
|
|
|
4180
4180
|
const childComponent = "_childComponent_1t7vd_11";
|
|
4181
4181
|
const actionComponentContainer = "_actionComponentContainer_1t7vd_14";
|
|
4182
4182
|
const active$7 = "_active_1t7vd_36";
|
|
4183
|
-
const styles$
|
|
4183
|
+
const styles$M = {
|
|
4184
4184
|
actions: actions$2,
|
|
4185
4185
|
childComponent,
|
|
4186
4186
|
actionComponentContainer,
|
|
4187
4187
|
active: active$7
|
|
4188
4188
|
};
|
|
4189
4189
|
const wrapper$4 = "_wrapper_8cxhw_1";
|
|
4190
|
-
const layer = "_layer_8cxhw_5";
|
|
4191
|
-
const layerContainer = "_layerContainer_8cxhw_8";
|
|
4190
|
+
const layer$1 = "_layer_8cxhw_5";
|
|
4191
|
+
const layerContainer$1 = "_layerContainer_8cxhw_8";
|
|
4192
4192
|
const nested = "_nested_8cxhw_24";
|
|
4193
4193
|
const fileInput$1 = "_fileInput_8cxhw_36";
|
|
4194
|
-
const trigger$
|
|
4194
|
+
const trigger$2 = "_trigger_8cxhw_41";
|
|
4195
4195
|
const middleAlignedInline = "_middleAlignedInline_8cxhw_50";
|
|
4196
|
-
const heading$
|
|
4196
|
+
const heading$5 = "_heading_8cxhw_56";
|
|
4197
4197
|
const headingIcon = "_headingIcon_8cxhw_62";
|
|
4198
|
-
const option = "_option_8cxhw_74";
|
|
4198
|
+
const option$1 = "_option_8cxhw_74";
|
|
4199
4199
|
const active$6 = "_active_8cxhw_93";
|
|
4200
|
-
const selected = "_selected_8cxhw_98";
|
|
4201
|
-
const optionContent = "_optionContent_8cxhw_105";
|
|
4200
|
+
const selected$1 = "_selected_8cxhw_98";
|
|
4201
|
+
const optionContent$1 = "_optionContent_8cxhw_105";
|
|
4202
4202
|
const inline$4 = "_inline_8cxhw_109";
|
|
4203
|
-
const icon$
|
|
4204
|
-
const check = "_check_8cxhw_115";
|
|
4203
|
+
const icon$4 = "_icon_8cxhw_114";
|
|
4204
|
+
const check$1 = "_check_8cxhw_115";
|
|
4205
4205
|
const text$3 = "_text_8cxhw_141";
|
|
4206
|
-
const label$
|
|
4206
|
+
const label$a = "_label_8cxhw_146";
|
|
4207
4207
|
const description = "_description_8cxhw_157";
|
|
4208
4208
|
const arrow$1 = "_arrow_8cxhw_161";
|
|
4209
4209
|
const divider$1 = "_divider_8cxhw_165";
|
|
4210
4210
|
const deprecatedSemanticIcon = "_deprecatedSemanticIcon_8cxhw_169";
|
|
4211
|
-
const disabled$
|
|
4211
|
+
const disabled$8 = "_disabled_8cxhw_173";
|
|
4212
4212
|
const buttonLabel = "_buttonLabel_8cxhw_178";
|
|
4213
4213
|
const buttonCaret = "_buttonCaret_8cxhw_184";
|
|
4214
4214
|
const component = "_component_8cxhw_188";
|
|
4215
|
-
const right$
|
|
4215
|
+
const right$7 = "_right_8cxhw_194";
|
|
4216
4216
|
const actions$1 = "_actions_8cxhw_199";
|
|
4217
|
-
const styles$
|
|
4217
|
+
const styles$L = {
|
|
4218
4218
|
wrapper: wrapper$4,
|
|
4219
|
-
layer,
|
|
4220
|
-
layerContainer,
|
|
4219
|
+
layer: layer$1,
|
|
4220
|
+
layerContainer: layerContainer$1,
|
|
4221
4221
|
nested,
|
|
4222
4222
|
fileInput: fileInput$1,
|
|
4223
|
-
trigger: trigger$
|
|
4223
|
+
trigger: trigger$2,
|
|
4224
4224
|
middleAlignedInline,
|
|
4225
|
-
heading: heading$
|
|
4225
|
+
heading: heading$5,
|
|
4226
4226
|
headingIcon,
|
|
4227
|
-
option,
|
|
4227
|
+
option: option$1,
|
|
4228
4228
|
active: active$6,
|
|
4229
|
-
selected,
|
|
4230
|
-
optionContent,
|
|
4229
|
+
selected: selected$1,
|
|
4230
|
+
optionContent: optionContent$1,
|
|
4231
4231
|
inline: inline$4,
|
|
4232
|
-
icon: icon$
|
|
4233
|
-
check,
|
|
4232
|
+
icon: icon$4,
|
|
4233
|
+
check: check$1,
|
|
4234
4234
|
text: text$3,
|
|
4235
|
-
label: label$
|
|
4235
|
+
label: label$a,
|
|
4236
4236
|
description,
|
|
4237
4237
|
arrow: arrow$1,
|
|
4238
4238
|
divider: divider$1,
|
|
4239
4239
|
deprecatedSemanticIcon,
|
|
4240
|
-
disabled: disabled$
|
|
4240
|
+
disabled: disabled$8,
|
|
4241
4241
|
buttonLabel,
|
|
4242
4242
|
buttonCaret,
|
|
4243
4243
|
component,
|
|
4244
|
-
right: right$
|
|
4244
|
+
right: right$7,
|
|
4245
4245
|
actions: actions$1
|
|
4246
4246
|
};
|
|
4247
|
-
const Heading$
|
|
4247
|
+
const Heading$3 = ({ label: label2, onClick, icon: icon2, testId }) => /* @__PURE__ */ jsxs(
|
|
4248
4248
|
"div",
|
|
4249
4249
|
{
|
|
4250
4250
|
onClick: (evt) => evt.stopPropagation(),
|
|
4251
|
-
className: styles$
|
|
4251
|
+
className: styles$L.heading,
|
|
4252
4252
|
"data-testid": testId,
|
|
4253
4253
|
children: [
|
|
4254
4254
|
label2,
|
|
4255
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
4255
|
+
/* @__PURE__ */ jsx("span", { className: styles$L.headingIcon, onClick, children: icon2 })
|
|
4256
4256
|
]
|
|
4257
4257
|
}
|
|
4258
4258
|
);
|
|
4259
|
-
const Divider$1 = () => /* @__PURE__ */ jsx("hr", { className: styles$
|
|
4260
|
-
const Option$
|
|
4259
|
+
const Divider$1 = () => /* @__PURE__ */ jsx("hr", { className: styles$L.divider });
|
|
4260
|
+
const Option$2 = ({
|
|
4261
4261
|
actions: actions2,
|
|
4262
4262
|
label: label2,
|
|
4263
4263
|
url,
|
|
@@ -4309,30 +4309,30 @@ const Option$1 = ({
|
|
|
4309
4309
|
href: url,
|
|
4310
4310
|
to: url,
|
|
4311
4311
|
className: cx$2(
|
|
4312
|
-
styles$
|
|
4313
|
-
disabled2 ? styles$
|
|
4314
|
-
inline2 ? styles$
|
|
4315
|
-
selected2 ? styles$
|
|
4312
|
+
styles$L.option,
|
|
4313
|
+
disabled2 ? styles$L.disabled : "",
|
|
4314
|
+
inline2 ? styles$L.inline : "",
|
|
4315
|
+
selected2 ? styles$L.selected : ""
|
|
4316
4316
|
),
|
|
4317
4317
|
onClick: handleClick2,
|
|
4318
4318
|
"data-testid": testId,
|
|
4319
4319
|
children: [
|
|
4320
|
-
icon2 ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
4321
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
4320
|
+
icon2 ? /* @__PURE__ */ jsx("span", { className: styles$L.icon, children: /* @__PURE__ */ jsx(Icon, { icon: icon2 }) }) : null,
|
|
4321
|
+
/* @__PURE__ */ jsxs("div", { className: styles$L.optionContent, children: [
|
|
4322
4322
|
upload && /* @__PURE__ */ jsx(
|
|
4323
4323
|
"input",
|
|
4324
4324
|
{
|
|
4325
4325
|
type: "file",
|
|
4326
|
-
className: styles$
|
|
4326
|
+
className: styles$L.fileInput,
|
|
4327
4327
|
onChange: handleFileChange
|
|
4328
4328
|
}
|
|
4329
4329
|
),
|
|
4330
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
4331
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
4330
|
+
/* @__PURE__ */ jsx("span", { className: styles$L.label, title: `${title2 || label2}`, children: label2 }),
|
|
4331
|
+
/* @__PURE__ */ jsx("span", { className: styles$L.description, children: description2 })
|
|
4332
4332
|
] }),
|
|
4333
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
4334
|
-
selected2 && /* @__PURE__ */ jsx("span", { className: styles$
|
|
4335
|
-
!!(actions2 == null ? void 0 : actions2.length) && /* @__PURE__ */ jsx("div", { className: styles$
|
|
4333
|
+
/* @__PURE__ */ jsxs("div", { className: styles$L.right, children: [
|
|
4334
|
+
selected2 && /* @__PURE__ */ jsx("span", { className: styles$L.check, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHECK }) }),
|
|
4335
|
+
!!(actions2 == null ? void 0 : actions2.length) && /* @__PURE__ */ jsx("div", { className: styles$L.actions, children: /* @__PURE__ */ jsx(Actions, { actions: actions2 }) })
|
|
4336
4336
|
] })
|
|
4337
4337
|
]
|
|
4338
4338
|
}
|
|
@@ -4351,7 +4351,7 @@ var MenuCarat = /* @__PURE__ */ ((MenuCarat2) => {
|
|
|
4351
4351
|
MenuCarat2["DOWN"] = "down";
|
|
4352
4352
|
return MenuCarat2;
|
|
4353
4353
|
})(MenuCarat || {});
|
|
4354
|
-
const Section = ({
|
|
4354
|
+
const Section$1 = ({
|
|
4355
4355
|
section: section2,
|
|
4356
4356
|
closeOnOptionClick,
|
|
4357
4357
|
close: close2,
|
|
@@ -4364,7 +4364,7 @@ const Section = ({
|
|
|
4364
4364
|
switch (section2.type) {
|
|
4365
4365
|
case MenuType.HEADING:
|
|
4366
4366
|
return /* @__PURE__ */ jsx(
|
|
4367
|
-
Heading$
|
|
4367
|
+
Heading$3,
|
|
4368
4368
|
{
|
|
4369
4369
|
label: (section2 == null ? void 0 : section2.label) ?? "",
|
|
4370
4370
|
onClick: section2.onClick,
|
|
@@ -4376,7 +4376,7 @@ const Section = ({
|
|
|
4376
4376
|
return /* @__PURE__ */ jsx(Divider$1, {});
|
|
4377
4377
|
case MenuType.OPTION:
|
|
4378
4378
|
return /* @__PURE__ */ jsx(
|
|
4379
|
-
Option$
|
|
4379
|
+
Option$2,
|
|
4380
4380
|
{
|
|
4381
4381
|
actions: section2.actions,
|
|
4382
4382
|
label: (section2 == null ? void 0 : section2.label) ?? "",
|
|
@@ -4424,7 +4424,7 @@ const childPath = (path, sectionIndex) => `${path}.sections[${sectionIndex}]`.re
|
|
|
4424
4424
|
const closePath = (path) => `${path}.close`.replace(/^\./, "");
|
|
4425
4425
|
const siblings = (tree2, path) => get$2(tree2, parentPath(path), []);
|
|
4426
4426
|
const registerClose = (tree2, path, close2) => set(tree2, closePath(path), close2);
|
|
4427
|
-
const Layer$
|
|
4427
|
+
const Layer$2 = ({
|
|
4428
4428
|
sections,
|
|
4429
4429
|
isNested,
|
|
4430
4430
|
width: width2,
|
|
@@ -4470,11 +4470,11 @@ const Layer$1 = ({
|
|
|
4470
4470
|
return /* @__PURE__ */ jsx(
|
|
4471
4471
|
"div",
|
|
4472
4472
|
{
|
|
4473
|
-
className: cx$2(styles$
|
|
4473
|
+
className: cx$2(styles$L.layer, isNested ? styles$L.nested : null),
|
|
4474
4474
|
style: { maxWidth: width2, maxHeight },
|
|
4475
4475
|
"data-testid": testId,
|
|
4476
4476
|
children: /* @__PURE__ */ jsx("ul", { children: localSections.map((section2, i) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
4477
|
-
Section,
|
|
4477
|
+
Section$1,
|
|
4478
4478
|
{
|
|
4479
4479
|
section: section2,
|
|
4480
4480
|
closeOnOptionClick: section2.closeOnOptionClick,
|
|
@@ -4501,19 +4501,19 @@ const getType = (item2) => {
|
|
|
4501
4501
|
};
|
|
4502
4502
|
const wrapper$3 = "_wrapper_nwprz_1";
|
|
4503
4503
|
const badge = "_badge_nwprz_5";
|
|
4504
|
-
const label$
|
|
4504
|
+
const label$9 = "_label_nwprz_11";
|
|
4505
4505
|
const dark = "_dark_nwprz_23";
|
|
4506
4506
|
const light = "_light_nwprz_26";
|
|
4507
|
-
const small$
|
|
4507
|
+
const small$b = "_small_nwprz_29";
|
|
4508
4508
|
const dot$1 = "_dot_nwprz_33";
|
|
4509
4509
|
const hasChildren = "_hasChildren_nwprz_39";
|
|
4510
|
-
const styles$
|
|
4510
|
+
const styles$K = {
|
|
4511
4511
|
wrapper: wrapper$3,
|
|
4512
4512
|
badge,
|
|
4513
|
-
label: label$
|
|
4513
|
+
label: label$9,
|
|
4514
4514
|
dark,
|
|
4515
4515
|
light,
|
|
4516
|
-
small: small$
|
|
4516
|
+
small: small$b,
|
|
4517
4517
|
dot: dot$1,
|
|
4518
4518
|
hasChildren
|
|
4519
4519
|
};
|
|
@@ -4535,16 +4535,16 @@ const Badge = ({
|
|
|
4535
4535
|
small: small2 = false
|
|
4536
4536
|
}) => {
|
|
4537
4537
|
const visible = !(title2 === null && dot2 === false);
|
|
4538
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
4538
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$K.wrapper, children: [
|
|
4539
4539
|
visible && /* @__PURE__ */ jsx(
|
|
4540
4540
|
"sup",
|
|
4541
4541
|
{
|
|
4542
4542
|
className: cx$2(
|
|
4543
|
-
styles$
|
|
4544
|
-
isDark(color2) ? styles$
|
|
4545
|
-
title2 !== null ? styles$
|
|
4546
|
-
small2 ? styles$
|
|
4547
|
-
children ? styles$
|
|
4543
|
+
styles$K.badge,
|
|
4544
|
+
isDark(color2) ? styles$K.dark : styles$K.light,
|
|
4545
|
+
title2 !== null ? styles$K.label : styles$K.dot,
|
|
4546
|
+
small2 ? styles$K.small : "",
|
|
4547
|
+
children ? styles$K.hasChildren : ""
|
|
4548
4548
|
),
|
|
4549
4549
|
style: {
|
|
4550
4550
|
background: color2 || void 0,
|
|
@@ -4570,16 +4570,16 @@ const Button = ({
|
|
|
4570
4570
|
active: active2
|
|
4571
4571
|
}) => {
|
|
4572
4572
|
const disabledContext = useContext(DisabledContext);
|
|
4573
|
-
const buttonLabel2 = trigger2 === TriggerType.BUTTON ? label2 : trigger2 === TriggerType.DROP_DOWN_BUTTON ? /* @__PURE__ */ jsxs("span", { className: styles$
|
|
4574
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
4575
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
4573
|
+
const buttonLabel2 = trigger2 === TriggerType.BUTTON ? label2 : trigger2 === TriggerType.DROP_DOWN_BUTTON ? /* @__PURE__ */ jsxs("span", { className: styles$L.middleAlignedInline, children: [
|
|
4574
|
+
/* @__PURE__ */ jsx("span", { className: styles$L.buttonLabel, children: label2 }),
|
|
4575
|
+
/* @__PURE__ */ jsx("span", { className: styles$L.buttonCaret, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHEVRON_DOWN }) })
|
|
4576
4576
|
] }) : null;
|
|
4577
4577
|
return /* @__PURE__ */ jsx(
|
|
4578
4578
|
"div",
|
|
4579
4579
|
{
|
|
4580
4580
|
className: cx$2(
|
|
4581
|
-
styles$
|
|
4582
|
-
disabled2 || disabledContext ? styles$
|
|
4581
|
+
styles$L.trigger,
|
|
4582
|
+
disabled2 || disabledContext ? styles$L.disabled : null
|
|
4583
4583
|
),
|
|
4584
4584
|
style: { width: width2 },
|
|
4585
4585
|
children: /* @__PURE__ */ jsx(
|
|
@@ -4607,7 +4607,7 @@ const Text$1 = ({
|
|
|
4607
4607
|
title: title2,
|
|
4608
4608
|
carat,
|
|
4609
4609
|
disabled: disabled2,
|
|
4610
|
-
isOpen,
|
|
4610
|
+
isOpen: isOpen2,
|
|
4611
4611
|
selected: selected2
|
|
4612
4612
|
}) => {
|
|
4613
4613
|
let titleText;
|
|
@@ -4620,14 +4620,14 @@ const Text$1 = ({
|
|
|
4620
4620
|
"div",
|
|
4621
4621
|
{
|
|
4622
4622
|
className: cx$2(
|
|
4623
|
-
styles$
|
|
4624
|
-
disabled2 ? styles$
|
|
4625
|
-
|
|
4626
|
-
selected2 ? styles$
|
|
4623
|
+
styles$L.trigger,
|
|
4624
|
+
disabled2 ? styles$L.disabled : null,
|
|
4625
|
+
isOpen2 ? styles$L.active : null,
|
|
4626
|
+
selected2 ? styles$L.selected : null
|
|
4627
4627
|
),
|
|
4628
4628
|
children: [
|
|
4629
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
4630
|
-
carat && carat === MenuCarat.RIGHT ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
4629
|
+
/* @__PURE__ */ jsx("span", { className: styles$L.label, title: titleText, children: label2 }),
|
|
4630
|
+
carat && carat === MenuCarat.RIGHT ? /* @__PURE__ */ jsx("span", { className: styles$L.arrow, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHEVRON_RIGHT }) }) : carat && carat === MenuCarat.DOWN ? /* @__PURE__ */ jsx("span", { className: styles$L.arrow, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHEVRON_DOWN }) }) : null
|
|
4631
4631
|
]
|
|
4632
4632
|
}
|
|
4633
4633
|
);
|
|
@@ -4640,7 +4640,7 @@ const Component = ({
|
|
|
4640
4640
|
return /* @__PURE__ */ jsx(
|
|
4641
4641
|
"div",
|
|
4642
4642
|
{
|
|
4643
|
-
className: cx$2(styles$
|
|
4643
|
+
className: cx$2(styles$L.component, disabled2 ? styles$L.disabled : null),
|
|
4644
4644
|
"data-testid": testId,
|
|
4645
4645
|
children: component2
|
|
4646
4646
|
}
|
|
@@ -4666,7 +4666,7 @@ const TriggerTooltip = ({
|
|
|
4666
4666
|
}
|
|
4667
4667
|
);
|
|
4668
4668
|
};
|
|
4669
|
-
const Trigger = React__default.forwardRef(
|
|
4669
|
+
const Trigger$1 = React__default.forwardRef(
|
|
4670
4670
|
({
|
|
4671
4671
|
isDisabled,
|
|
4672
4672
|
badgeTitle,
|
|
@@ -4684,7 +4684,7 @@ const Trigger = React__default.forwardRef(
|
|
|
4684
4684
|
component: component2,
|
|
4685
4685
|
groupOrder,
|
|
4686
4686
|
fullHeight,
|
|
4687
|
-
isOpen,
|
|
4687
|
+
isOpen: isOpen2,
|
|
4688
4688
|
error: error2,
|
|
4689
4689
|
warning: warning2,
|
|
4690
4690
|
tooltip: tooltip2,
|
|
@@ -4705,7 +4705,7 @@ const Trigger = React__default.forwardRef(
|
|
|
4705
4705
|
loading,
|
|
4706
4706
|
error: error2,
|
|
4707
4707
|
warning: warning2,
|
|
4708
|
-
active:
|
|
4708
|
+
active: isOpen2
|
|
4709
4709
|
}
|
|
4710
4710
|
) : trigger2 === TriggerType.TEXT ? /* @__PURE__ */ jsx(
|
|
4711
4711
|
Text$1,
|
|
@@ -4714,7 +4714,7 @@ const Trigger = React__default.forwardRef(
|
|
|
4714
4714
|
title: title2,
|
|
4715
4715
|
disabled: isDisabled,
|
|
4716
4716
|
carat: !contextMenu ? isNested ? MenuCarat.RIGHT : MenuCarat.DOWN : void 0,
|
|
4717
|
-
isOpen,
|
|
4717
|
+
isOpen: isOpen2,
|
|
4718
4718
|
selected: selected2
|
|
4719
4719
|
}
|
|
4720
4720
|
) : trigger2 === TriggerType.COMPONENT ? /* @__PURE__ */ jsx(Component, { component: component2, disabled: isDisabled }) : null;
|
|
@@ -4723,7 +4723,7 @@ const Trigger = React__default.forwardRef(
|
|
|
4723
4723
|
"div",
|
|
4724
4724
|
{
|
|
4725
4725
|
ref: ref2,
|
|
4726
|
-
className: styles$
|
|
4726
|
+
className: styles$L.wrapper,
|
|
4727
4727
|
style: width2 ? { width: width2 } : {
|
|
4728
4728
|
...fullHeight && {
|
|
4729
4729
|
height: "100%",
|
|
@@ -4763,9 +4763,9 @@ const useContextMenu = ({
|
|
|
4763
4763
|
}) => {
|
|
4764
4764
|
const { hasMousePosition, resetMousePosition, handleMouseEvent, trigger: trigger2 } = useMousePositionAsTrigger();
|
|
4765
4765
|
const close2 = resetMousePosition;
|
|
4766
|
-
const
|
|
4766
|
+
const isOpen2 = hasMousePosition;
|
|
4767
4767
|
const { layerProps, renderLayer } = useLayer({
|
|
4768
|
-
isOpen,
|
|
4768
|
+
isOpen: isOpen2,
|
|
4769
4769
|
trigger: trigger2,
|
|
4770
4770
|
...placementOptions$1(placement),
|
|
4771
4771
|
possiblePlacements,
|
|
@@ -4773,9 +4773,9 @@ const useContextMenu = ({
|
|
|
4773
4773
|
onOutsideClick: close2,
|
|
4774
4774
|
overflowContainer
|
|
4775
4775
|
});
|
|
4776
|
-
const layer2 =
|
|
4776
|
+
const layer2 = isOpen2 && renderLayer(
|
|
4777
4777
|
/* @__PURE__ */ jsx("div", { ...layerProps, children: /* @__PURE__ */ jsx(
|
|
4778
|
-
Layer$
|
|
4778
|
+
Layer$2,
|
|
4779
4779
|
{
|
|
4780
4780
|
isNested: false,
|
|
4781
4781
|
width: width2,
|
|
@@ -4830,7 +4830,7 @@ const ContextMenu = ({
|
|
|
4830
4830
|
const isDisabled = disabled2 || isMenuEmpty(menu2) || disabledContext;
|
|
4831
4831
|
return /* @__PURE__ */ jsxs("div", { onContextMenu, "data-testid": testId, children: [
|
|
4832
4832
|
/* @__PURE__ */ jsx(
|
|
4833
|
-
Trigger,
|
|
4833
|
+
Trigger$1,
|
|
4834
4834
|
{
|
|
4835
4835
|
width: width2,
|
|
4836
4836
|
fullHeight: fullHeightTrigger,
|
|
@@ -4887,11 +4887,11 @@ const DropDownMenu = ({
|
|
|
4887
4887
|
showAllButton,
|
|
4888
4888
|
possiblePlacements = ["bottom-start", "top-start"]
|
|
4889
4889
|
} = menu2;
|
|
4890
|
-
const [
|
|
4890
|
+
const [isOpen2, setOpen] = isBoolean$2(openProp) && isFunction$3(setOpenProp) ? [openProp, setOpenProp] : useState(false);
|
|
4891
4891
|
const close2 = () => setOpen(false);
|
|
4892
4892
|
const open = () => setOpen(true);
|
|
4893
4893
|
const { triggerProps, layerProps, renderLayer } = useLayer({
|
|
4894
|
-
isOpen,
|
|
4894
|
+
isOpen: isOpen2,
|
|
4895
4895
|
...placementOptions$1(placement, isNested),
|
|
4896
4896
|
possiblePlacements,
|
|
4897
4897
|
ResizeObserver: index,
|
|
@@ -4905,7 +4905,7 @@ const DropDownMenu = ({
|
|
|
4905
4905
|
if (isDisabled) {
|
|
4906
4906
|
return;
|
|
4907
4907
|
}
|
|
4908
|
-
if (
|
|
4908
|
+
if (isOpen2) {
|
|
4909
4909
|
close2();
|
|
4910
4910
|
return;
|
|
4911
4911
|
}
|
|
@@ -4918,7 +4918,7 @@ const DropDownMenu = ({
|
|
|
4918
4918
|
};
|
|
4919
4919
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
4920
4920
|
/* @__PURE__ */ jsx(
|
|
4921
|
-
Trigger,
|
|
4921
|
+
Trigger$1,
|
|
4922
4922
|
{
|
|
4923
4923
|
ref: triggerProps.ref,
|
|
4924
4924
|
isDisabled,
|
|
@@ -4936,7 +4936,7 @@ const DropDownMenu = ({
|
|
|
4936
4936
|
isNested,
|
|
4937
4937
|
component: component2,
|
|
4938
4938
|
groupOrder,
|
|
4939
|
-
isOpen,
|
|
4939
|
+
isOpen: isOpen2,
|
|
4940
4940
|
tooltip: tooltip2,
|
|
4941
4941
|
error: error2,
|
|
4942
4942
|
warning: warning2,
|
|
@@ -4944,16 +4944,16 @@ const DropDownMenu = ({
|
|
|
4944
4944
|
selected: selected2
|
|
4945
4945
|
}
|
|
4946
4946
|
),
|
|
4947
|
-
|
|
4947
|
+
isOpen2 && renderLayer(
|
|
4948
4948
|
/* @__PURE__ */ jsx(
|
|
4949
4949
|
"div",
|
|
4950
4950
|
{
|
|
4951
4951
|
...layerProps,
|
|
4952
|
-
className: styles$
|
|
4952
|
+
className: styles$L.layerContainer,
|
|
4953
4953
|
"data-testid": menu2.testId,
|
|
4954
4954
|
onClick: (evt) => evt.stopPropagation(),
|
|
4955
4955
|
children: /* @__PURE__ */ jsx(
|
|
4956
|
-
Layer$
|
|
4956
|
+
Layer$2,
|
|
4957
4957
|
{
|
|
4958
4958
|
sections,
|
|
4959
4959
|
isNested,
|
|
@@ -5018,7 +5018,7 @@ const SubmenuActions = (props) => {
|
|
|
5018
5018
|
const Actions = (props) => {
|
|
5019
5019
|
const disabledContext = useContext(DisabledContext);
|
|
5020
5020
|
const { actions: actions2 = [], closeLayer } = props;
|
|
5021
|
-
return /* @__PURE__ */ jsx("div", { className: cx$2(styles$
|
|
5021
|
+
return /* @__PURE__ */ jsx("div", { className: cx$2(styles$M.actions), children: actions2.map((action2, index2) => {
|
|
5022
5022
|
const hidden2 = (action2 == null ? void 0 : action2.hidden) || !action2 || !Object.keys(action2).length;
|
|
5023
5023
|
if (!hidden2) {
|
|
5024
5024
|
if (action2.childComponent && React__default.isValidElement(action2.childComponent)) {
|
|
@@ -5026,7 +5026,7 @@ const Actions = (props) => {
|
|
|
5026
5026
|
"div",
|
|
5027
5027
|
{
|
|
5028
5028
|
"data-testid": action2.testId,
|
|
5029
|
-
className: styles$
|
|
5029
|
+
className: styles$M.childComponent,
|
|
5030
5030
|
children: action2.childComponent
|
|
5031
5031
|
},
|
|
5032
5032
|
index2
|
|
@@ -5075,17 +5075,17 @@ const Actions = (props) => {
|
|
|
5075
5075
|
}) });
|
|
5076
5076
|
};
|
|
5077
5077
|
const breadcrumb = "_breadcrumb_2k0cd_1";
|
|
5078
|
-
const small$
|
|
5078
|
+
const small$a = "_small_2k0cd_4";
|
|
5079
5079
|
const labelContainer = "_labelContainer_2k0cd_7";
|
|
5080
5080
|
const active$5 = "_active_2k0cd_17";
|
|
5081
|
-
const disabled$
|
|
5081
|
+
const disabled$7 = "_disabled_2k0cd_22";
|
|
5082
5082
|
const separator = "_separator_2k0cd_27";
|
|
5083
|
-
const styles$
|
|
5083
|
+
const styles$J = {
|
|
5084
5084
|
breadcrumb,
|
|
5085
|
-
small: small$
|
|
5085
|
+
small: small$a,
|
|
5086
5086
|
labelContainer,
|
|
5087
5087
|
active: active$5,
|
|
5088
|
-
disabled: disabled$
|
|
5088
|
+
disabled: disabled$7,
|
|
5089
5089
|
separator
|
|
5090
5090
|
};
|
|
5091
5091
|
var BreadcrumbLinkType = /* @__PURE__ */ ((BreadcrumbLinkType2) => {
|
|
@@ -5111,16 +5111,16 @@ const Link$2 = ({
|
|
|
5111
5111
|
{
|
|
5112
5112
|
onClick,
|
|
5113
5113
|
className: cx$2(
|
|
5114
|
-
styles$
|
|
5115
|
-
active2 && styles$
|
|
5116
|
-
(disabled2 || disabledContext) && styles$
|
|
5114
|
+
styles$J.labelContainer,
|
|
5115
|
+
active2 && styles$J.active,
|
|
5116
|
+
(disabled2 || disabledContext) && styles$J.disabled
|
|
5117
5117
|
),
|
|
5118
5118
|
children: isLink ? /* @__PURE__ */ jsx("a", { href: url, children: label2 }) : isCustom ? element : label2
|
|
5119
5119
|
}
|
|
5120
5120
|
);
|
|
5121
5121
|
};
|
|
5122
5122
|
const Breadcrumb = ({ links, small: small2 = false }) => {
|
|
5123
|
-
return /* @__PURE__ */ jsx("div", { className: cx$2(styles$
|
|
5123
|
+
return /* @__PURE__ */ jsx("div", { className: cx$2(styles$J.breadcrumb, small2 && styles$J.small), children: links.map((link2, i) => {
|
|
5124
5124
|
const isFinal = links.length === i + 1;
|
|
5125
5125
|
const { type, label: label2, url, onClick, active: active2, disabled: disabled2, element } = link2;
|
|
5126
5126
|
return /* @__PURE__ */ jsxs("span", { children: [
|
|
@@ -5136,14 +5136,14 @@ const Breadcrumb = ({ links, small: small2 = false }) => {
|
|
|
5136
5136
|
element
|
|
5137
5137
|
}
|
|
5138
5138
|
),
|
|
5139
|
-
!isFinal && /* @__PURE__ */ jsx("span", { className: styles$
|
|
5139
|
+
!isFinal && /* @__PURE__ */ jsx("span", { className: styles$J.separator, children: "/" })
|
|
5140
5140
|
] }, i);
|
|
5141
5141
|
}) });
|
|
5142
5142
|
};
|
|
5143
|
-
const label$
|
|
5143
|
+
const label$8 = "_label_iu2wi_1";
|
|
5144
5144
|
const buttonGroup = "_buttonGroup_iu2wi_11";
|
|
5145
|
-
const styles$
|
|
5146
|
-
label: label$
|
|
5145
|
+
const styles$I = {
|
|
5146
|
+
label: label$8,
|
|
5147
5147
|
buttonGroup
|
|
5148
5148
|
};
|
|
5149
5149
|
const ButtonGroup = (props) => {
|
|
@@ -5196,7 +5196,7 @@ const ButtonGroup = (props) => {
|
|
|
5196
5196
|
};
|
|
5197
5197
|
const renderHeader = () => {
|
|
5198
5198
|
if (header2) {
|
|
5199
|
-
return /* @__PURE__ */ jsx("label", { className: styles$
|
|
5199
|
+
return /* @__PURE__ */ jsx("label", { className: styles$I.label, children: header2 });
|
|
5200
5200
|
}
|
|
5201
5201
|
};
|
|
5202
5202
|
const renderButtons = () => {
|
|
@@ -5253,7 +5253,7 @@ const ButtonGroup = (props) => {
|
|
|
5253
5253
|
};
|
|
5254
5254
|
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs("div", { children: [
|
|
5255
5255
|
renderHeader(),
|
|
5256
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
5256
|
+
/* @__PURE__ */ jsx("div", { className: styles$I.buttonGroup, "data-testid": testId, children: renderButtons() })
|
|
5257
5257
|
] }) });
|
|
5258
5258
|
};
|
|
5259
5259
|
const card = "_card_ucdeu_1";
|
|
@@ -5263,7 +5263,7 @@ const cardHeader = "_cardHeader_ucdeu_13";
|
|
|
5263
5263
|
const cardContentBorderTop = "_cardContentBorderTop_ucdeu_19";
|
|
5264
5264
|
const padding$1 = "_padding_ucdeu_22";
|
|
5265
5265
|
const cardContent = "_cardContent_ucdeu_19";
|
|
5266
|
-
const styles$
|
|
5266
|
+
const styles$H = {
|
|
5267
5267
|
card,
|
|
5268
5268
|
bordered: bordered$2,
|
|
5269
5269
|
raised,
|
|
@@ -5284,20 +5284,20 @@ const Card = ({
|
|
|
5284
5284
|
"div",
|
|
5285
5285
|
{
|
|
5286
5286
|
className: cx$2(
|
|
5287
|
-
styles$
|
|
5288
|
-
bordered2 ? styles$
|
|
5289
|
-
raised2 ? styles$
|
|
5287
|
+
styles$H.card,
|
|
5288
|
+
bordered2 ? styles$H.bordered : "",
|
|
5289
|
+
raised2 ? styles$H.raised : ""
|
|
5290
5290
|
),
|
|
5291
5291
|
style: { margin: margin2 },
|
|
5292
5292
|
children: [
|
|
5293
|
-
heading2 ? /* @__PURE__ */ jsx("div", { className: cx$2(styles$
|
|
5293
|
+
heading2 ? /* @__PURE__ */ jsx("div", { className: cx$2(styles$H.cardHeader), children: heading2 }) : null,
|
|
5294
5294
|
/* @__PURE__ */ jsx(
|
|
5295
5295
|
"div",
|
|
5296
5296
|
{
|
|
5297
5297
|
className: cx$2(
|
|
5298
|
-
styles$
|
|
5299
|
-
heading2 ? styles$
|
|
5300
|
-
padding2 ? styles$
|
|
5298
|
+
styles$H.cardContent,
|
|
5299
|
+
heading2 ? styles$H.cardContentBorderTop : "",
|
|
5300
|
+
padding2 ? styles$H.padding : ""
|
|
5301
5301
|
),
|
|
5302
5302
|
children
|
|
5303
5303
|
}
|
|
@@ -5325,8 +5325,8 @@ function __spreadArray$1(to2, from3, pack) {
|
|
|
5325
5325
|
}
|
|
5326
5326
|
return to2.concat(ar2 || Array.prototype.slice.call(from3));
|
|
5327
5327
|
}
|
|
5328
|
-
typeof SuppressedError === "function" ? SuppressedError : function(error2, suppressed,
|
|
5329
|
-
var e2 = new Error(
|
|
5328
|
+
typeof SuppressedError === "function" ? SuppressedError : function(error2, suppressed, message2) {
|
|
5329
|
+
var e2 = new Error(message2);
|
|
5330
5330
|
return e2.name = "SuppressedError", e2.error = error2, e2.suppressed = suppressed, e2;
|
|
5331
5331
|
};
|
|
5332
5332
|
function memoize$1(fn) {
|
|
@@ -6497,7 +6497,7 @@ const Column = ({
|
|
|
6497
6497
|
const divider = "_divider_2bfzh_1";
|
|
6498
6498
|
const alignLeft = "_alignLeft_2bfzh_12";
|
|
6499
6499
|
const alignRight = "_alignRight_2bfzh_15";
|
|
6500
|
-
const styles$
|
|
6500
|
+
const styles$G = {
|
|
6501
6501
|
divider,
|
|
6502
6502
|
alignLeft,
|
|
6503
6503
|
alignRight
|
|
@@ -6509,9 +6509,9 @@ const faint = "_faint_11ofj_10";
|
|
|
6509
6509
|
const success$1 = "_success_11ofj_13";
|
|
6510
6510
|
const warning$5 = "_warning_11ofj_16";
|
|
6511
6511
|
const error$2 = "_error_11ofj_19";
|
|
6512
|
-
const small$
|
|
6512
|
+
const small$9 = "_small_11ofj_22";
|
|
6513
6513
|
const link$1 = "_link_11ofj_25";
|
|
6514
|
-
const styles$
|
|
6514
|
+
const styles$F = {
|
|
6515
6515
|
bold: bold$1,
|
|
6516
6516
|
center,
|
|
6517
6517
|
muted: muted$1,
|
|
@@ -6519,7 +6519,7 @@ const styles$D = {
|
|
|
6519
6519
|
success: success$1,
|
|
6520
6520
|
warning: warning$5,
|
|
6521
6521
|
error: error$2,
|
|
6522
|
-
small: small$
|
|
6522
|
+
small: small$9,
|
|
6523
6523
|
link: link$1
|
|
6524
6524
|
};
|
|
6525
6525
|
const Text = ({
|
|
@@ -6539,16 +6539,16 @@ const Text = ({
|
|
|
6539
6539
|
"span",
|
|
6540
6540
|
{
|
|
6541
6541
|
className: cx$2(
|
|
6542
|
-
bold2 && styles$
|
|
6543
|
-
center2 && styles$
|
|
6544
|
-
error2 && styles$
|
|
6545
|
-
faint2 && styles$
|
|
6546
|
-
link2 && styles$
|
|
6547
|
-
muted2 && styles$
|
|
6548
|
-
onClick && styles$
|
|
6549
|
-
small2 && styles$
|
|
6550
|
-
success2 && styles$
|
|
6551
|
-
warning2 && styles$
|
|
6542
|
+
bold2 && styles$F.bold,
|
|
6543
|
+
center2 && styles$F.center,
|
|
6544
|
+
error2 && styles$F.error,
|
|
6545
|
+
faint2 && styles$F.faint,
|
|
6546
|
+
link2 && styles$F.link,
|
|
6547
|
+
muted2 && styles$F.muted,
|
|
6548
|
+
onClick && styles$F.clickable,
|
|
6549
|
+
small2 && styles$F.small,
|
|
6550
|
+
success2 && styles$F.success,
|
|
6551
|
+
warning2 && styles$F.warning
|
|
6552
6552
|
),
|
|
6553
6553
|
onClick,
|
|
6554
6554
|
children
|
|
@@ -6558,9 +6558,9 @@ const Text = ({
|
|
|
6558
6558
|
const cssAlignClass = (align) => {
|
|
6559
6559
|
switch (align) {
|
|
6560
6560
|
case Align.LEFT:
|
|
6561
|
-
return styles$
|
|
6561
|
+
return styles$G.alignLeft;
|
|
6562
6562
|
case Align.RIGHT:
|
|
6563
|
-
return styles$
|
|
6563
|
+
return styles$G.alignRight;
|
|
6564
6564
|
default:
|
|
6565
6565
|
return "";
|
|
6566
6566
|
}
|
|
@@ -6573,7 +6573,7 @@ const Divider = ({
|
|
|
6573
6573
|
}) => /* @__PURE__ */ jsx(
|
|
6574
6574
|
"div",
|
|
6575
6575
|
{
|
|
6576
|
-
className: `${styles$
|
|
6576
|
+
className: `${styles$G.divider} ${cssAlignClass(align)}`,
|
|
6577
6577
|
style: {
|
|
6578
6578
|
marginTop: margin2,
|
|
6579
6579
|
marginBottom: margin2,
|
|
@@ -6582,15 +6582,15 @@ const Divider = ({
|
|
|
6582
6582
|
children: typeof children === "string" ? /* @__PURE__ */ jsx(Text, { muted: true, children }) : children
|
|
6583
6583
|
}
|
|
6584
6584
|
);
|
|
6585
|
-
const heading$
|
|
6585
|
+
const heading$4 = "_heading_yhdiy_1";
|
|
6586
6586
|
const top$1 = "_top_yhdiy_10";
|
|
6587
|
-
const icons$
|
|
6588
|
-
const styles$
|
|
6589
|
-
heading: heading$
|
|
6587
|
+
const icons$2 = "_icons_yhdiy_20";
|
|
6588
|
+
const styles$E = {
|
|
6589
|
+
heading: heading$4,
|
|
6590
6590
|
top: top$1,
|
|
6591
|
-
icons: icons$
|
|
6591
|
+
icons: icons$2
|
|
6592
6592
|
};
|
|
6593
|
-
const Heading$
|
|
6593
|
+
const Heading$2 = ({
|
|
6594
6594
|
children,
|
|
6595
6595
|
helpText,
|
|
6596
6596
|
onClick,
|
|
@@ -6606,13 +6606,13 @@ const Heading$1 = ({
|
|
|
6606
6606
|
return /* @__PURE__ */ jsxs(
|
|
6607
6607
|
"div",
|
|
6608
6608
|
{
|
|
6609
|
-
className: cx$2(styles$
|
|
6609
|
+
className: cx$2(styles$E.heading, top2 ? styles$E.top : ""),
|
|
6610
6610
|
style: { marginBottom },
|
|
6611
6611
|
onClick,
|
|
6612
6612
|
"data-testid": testId,
|
|
6613
6613
|
children: [
|
|
6614
6614
|
children,
|
|
6615
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
6615
|
+
/* @__PURE__ */ jsxs("div", { className: styles$E.icons, children: [
|
|
6616
6616
|
icon2 && /* @__PURE__ */ jsx(HelpIcon, { onClick: onIconClick, icon: icon2 }),
|
|
6617
6617
|
isHelpIconDisplayed && /* @__PURE__ */ jsx(HelpIcon, { text: helpText, onClick: onClickHelp }),
|
|
6618
6618
|
libraryIcon && /* @__PURE__ */ jsx(
|
|
@@ -6635,7 +6635,7 @@ const header$2 = "_header_18g0k_24";
|
|
|
6635
6635
|
const dismiss$2 = "_dismiss_18g0k_33";
|
|
6636
6636
|
const content$3 = "_content_18g0k_38";
|
|
6637
6637
|
const footer$2 = "_footer_18g0k_47";
|
|
6638
|
-
const styles$
|
|
6638
|
+
const styles$D = {
|
|
6639
6639
|
dialog,
|
|
6640
6640
|
inline: inline$3,
|
|
6641
6641
|
scroll: scroll$3,
|
|
@@ -6670,16 +6670,16 @@ const Dialog = ({ dialog: dialog2 }) => {
|
|
|
6670
6670
|
"div",
|
|
6671
6671
|
{
|
|
6672
6672
|
className: cx$2(
|
|
6673
|
-
styles$
|
|
6674
|
-
width2 ? styles$
|
|
6675
|
-
scroll3 ? styles$
|
|
6673
|
+
styles$D.dialog,
|
|
6674
|
+
width2 ? styles$D.inline : null,
|
|
6675
|
+
scroll3 ? styles$D.scroll : null
|
|
6676
6676
|
),
|
|
6677
6677
|
style: { width: width2, height: height2 },
|
|
6678
6678
|
"data-testid": testId ?? null,
|
|
6679
6679
|
children: [
|
|
6680
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
6681
|
-
/* @__PURE__ */ jsx(Heading$
|
|
6682
|
-
onClose ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
6680
|
+
/* @__PURE__ */ jsxs("div", { className: styles$D.header, children: [
|
|
6681
|
+
/* @__PURE__ */ jsx(Heading$2, { testId: testId && `${testId}-heading`, top: true, marginBottom: 0, children: heading2 }),
|
|
6682
|
+
onClose ? /* @__PURE__ */ jsx("div", { className: styles$D.dismiss, children: /* @__PURE__ */ jsx(
|
|
6683
6683
|
Button$1,
|
|
6684
6684
|
{
|
|
6685
6685
|
icon: IconType.CLOSE,
|
|
@@ -6696,7 +6696,7 @@ const Dialog = ({ dialog: dialog2 }) => {
|
|
|
6696
6696
|
"div",
|
|
6697
6697
|
{
|
|
6698
6698
|
"data-testid": testId && `${testId}-content`,
|
|
6699
|
-
className: styles$
|
|
6699
|
+
className: styles$D.content,
|
|
6700
6700
|
style: { padding: contentPadding2 },
|
|
6701
6701
|
children: convertStringToJsx(content2)
|
|
6702
6702
|
}
|
|
@@ -6705,7 +6705,7 @@ const Dialog = ({ dialog: dialog2 }) => {
|
|
|
6705
6705
|
"div",
|
|
6706
6706
|
{
|
|
6707
6707
|
"data-testid": testId && `${testId}-footer`,
|
|
6708
|
-
className: styles$
|
|
6708
|
+
className: styles$D.footer,
|
|
6709
6709
|
children: footer2
|
|
6710
6710
|
}
|
|
6711
6711
|
)
|
|
@@ -6713,16 +6713,16 @@ const Dialog = ({ dialog: dialog2 }) => {
|
|
|
6713
6713
|
}
|
|
6714
6714
|
);
|
|
6715
6715
|
};
|
|
6716
|
-
const inputInTable$
|
|
6717
|
-
const inputHover$
|
|
6718
|
-
const inputFocus$
|
|
6719
|
-
const inputError$
|
|
6720
|
-
const inputWarning$
|
|
6721
|
-
const inputDisabled$
|
|
6722
|
-
const hideScrollbars$
|
|
6716
|
+
const inputInTable$a = "_inputInTable_1f40p_1";
|
|
6717
|
+
const inputHover$a = "_inputHover_1f40p_13";
|
|
6718
|
+
const inputFocus$a = "_inputFocus_1f40p_18";
|
|
6719
|
+
const inputError$a = "_inputError_1f40p_25";
|
|
6720
|
+
const inputWarning$a = "_inputWarning_1f40p_26";
|
|
6721
|
+
const inputDisabled$a = "_inputDisabled_1f40p_61";
|
|
6722
|
+
const hideScrollbars$a = "_hideScrollbars_1f40p_67";
|
|
6723
6723
|
const inline$2 = "_inline_1f40p_90";
|
|
6724
6724
|
const left$2 = "_left_1f40p_93";
|
|
6725
|
-
const right$
|
|
6725
|
+
const right$6 = "_right_1f40p_96";
|
|
6726
6726
|
const fixed$1 = "_fixed_1f40p_99";
|
|
6727
6727
|
const border$1 = "_border_1f40p_111";
|
|
6728
6728
|
const shadow = "_shadow_1f40p_117";
|
|
@@ -6735,20 +6735,20 @@ const toggleButtonOpen = "_toggleButtonOpen_1f40p_162";
|
|
|
6735
6735
|
const tabs$1 = "_tabs_1f40p_165";
|
|
6736
6736
|
const tab$1 = "_tab_1f40p_165";
|
|
6737
6737
|
const active$4 = "_active_1f40p_197";
|
|
6738
|
-
const disabled$
|
|
6738
|
+
const disabled$6 = "_disabled_1f40p_222";
|
|
6739
6739
|
const tabsContent = "_tabsContent_1f40p_229";
|
|
6740
6740
|
const resizeHandle = "_resizeHandle_1f40p_235";
|
|
6741
|
-
const styles$
|
|
6742
|
-
inputInTable: inputInTable$
|
|
6743
|
-
inputHover: inputHover$
|
|
6744
|
-
inputFocus: inputFocus$
|
|
6745
|
-
inputError: inputError$
|
|
6746
|
-
inputWarning: inputWarning$
|
|
6747
|
-
inputDisabled: inputDisabled$
|
|
6748
|
-
hideScrollbars: hideScrollbars$
|
|
6741
|
+
const styles$C = {
|
|
6742
|
+
inputInTable: inputInTable$a,
|
|
6743
|
+
inputHover: inputHover$a,
|
|
6744
|
+
inputFocus: inputFocus$a,
|
|
6745
|
+
inputError: inputError$a,
|
|
6746
|
+
inputWarning: inputWarning$a,
|
|
6747
|
+
inputDisabled: inputDisabled$a,
|
|
6748
|
+
hideScrollbars: hideScrollbars$a,
|
|
6749
6749
|
inline: inline$2,
|
|
6750
6750
|
left: left$2,
|
|
6751
|
-
right: right$
|
|
6751
|
+
right: right$6,
|
|
6752
6752
|
fixed: fixed$1,
|
|
6753
6753
|
border: border$1,
|
|
6754
6754
|
shadow,
|
|
@@ -6761,7 +6761,7 @@ const styles$A = {
|
|
|
6761
6761
|
tabs: tabs$1,
|
|
6762
6762
|
tab: tab$1,
|
|
6763
6763
|
active: active$4,
|
|
6764
|
-
disabled: disabled$
|
|
6764
|
+
disabled: disabled$6,
|
|
6765
6765
|
tabsContent,
|
|
6766
6766
|
resizeHandle
|
|
6767
6767
|
};
|
|
@@ -6779,13 +6779,13 @@ const DrawerTabs = ({
|
|
|
6779
6779
|
testId
|
|
6780
6780
|
}) => {
|
|
6781
6781
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
6782
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
6782
|
+
/* @__PURE__ */ jsx("div", { className: styles$C.tabs, children: tabs2.map((tab2, index2) => /* @__PURE__ */ jsx(
|
|
6783
6783
|
"div",
|
|
6784
6784
|
{
|
|
6785
6785
|
className: cx$2(
|
|
6786
|
-
styles$
|
|
6787
|
-
activeTab === index2 && open ? styles$
|
|
6788
|
-
tab2.disabled ? styles$
|
|
6786
|
+
styles$C.tab,
|
|
6787
|
+
activeTab === index2 && open ? styles$C.active : "",
|
|
6788
|
+
tab2.disabled ? styles$C.disabled : ""
|
|
6789
6789
|
),
|
|
6790
6790
|
style: { background: background2 },
|
|
6791
6791
|
onClick: !tab2.disabled ? () => handleTabClick(index2) : void 0,
|
|
@@ -6800,7 +6800,7 @@ const DrawerTabs = ({
|
|
|
6800
6800
|
"div",
|
|
6801
6801
|
{
|
|
6802
6802
|
style: { width: typeof width2 === "number" ? `${width2}px` : width2 },
|
|
6803
|
-
className: styles$
|
|
6803
|
+
className: styles$C.tabsContent,
|
|
6804
6804
|
"data-testid": testId && `${testId}-content-${index2}`,
|
|
6805
6805
|
children: active2 && open && tab2.content
|
|
6806
6806
|
},
|
|
@@ -8721,7 +8721,7 @@ const MIN_OPEN_WIDTH = 240;
|
|
|
8721
8721
|
const ResizeHandle = forwardRef(
|
|
8722
8722
|
(props, ref2) => {
|
|
8723
8723
|
const { handleAxis, ...rest } = props;
|
|
8724
|
-
return /* @__PURE__ */ jsx("div", { ref: ref2, className: styles$
|
|
8724
|
+
return /* @__PURE__ */ jsx("div", { ref: ref2, className: styles$C.resizeHandle, ...rest, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.DRAG }) });
|
|
8725
8725
|
}
|
|
8726
8726
|
);
|
|
8727
8727
|
const DrawerResizeWrapper = ({
|
|
@@ -8747,7 +8747,7 @@ const DrawerResizeWrapper = ({
|
|
|
8747
8747
|
handle: /* @__PURE__ */ jsx(ResizeHandle, {}),
|
|
8748
8748
|
resizeHandles: right2 ? ["w"] : ["e"],
|
|
8749
8749
|
axis: "x",
|
|
8750
|
-
className: isResizing2 ? styles$
|
|
8750
|
+
className: isResizing2 ? styles$C.isResizing : "",
|
|
8751
8751
|
onResizeStart: () => {
|
|
8752
8752
|
if (setOpen) setOpen(true);
|
|
8753
8753
|
if (onResize) onResize(width2);
|
|
@@ -8845,17 +8845,17 @@ const Drawer = ({
|
|
|
8845
8845
|
"div",
|
|
8846
8846
|
{
|
|
8847
8847
|
className: cx$2(
|
|
8848
|
-
styles$
|
|
8849
|
-
shadow4 ? styles$
|
|
8850
|
-
fixed2 ? styles$
|
|
8851
|
-
right2 ? styles$
|
|
8848
|
+
styles$C.drawer,
|
|
8849
|
+
shadow4 ? styles$C.shadow : "",
|
|
8850
|
+
fixed2 ? styles$C.fixed : styles$C.inline,
|
|
8851
|
+
right2 ? styles$C.right : styles$C.left
|
|
8852
8852
|
),
|
|
8853
8853
|
style: { top: top2 },
|
|
8854
8854
|
children: [
|
|
8855
8855
|
/* @__PURE__ */ jsx(
|
|
8856
8856
|
"div",
|
|
8857
8857
|
{
|
|
8858
|
-
className: cx$2(styles$
|
|
8858
|
+
className: cx$2(styles$C.drawerContent, border2 && styles$C.border),
|
|
8859
8859
|
style: {
|
|
8860
8860
|
background: background2,
|
|
8861
8861
|
borderColor: typeof border2 === "string" ? border2 : void 0,
|
|
@@ -8881,9 +8881,9 @@ const Drawer = ({
|
|
|
8881
8881
|
"span",
|
|
8882
8882
|
{
|
|
8883
8883
|
className: cx$2(
|
|
8884
|
-
styles$
|
|
8885
|
-
localOpen && (isStandardButton || isCustomButton && buttonAnimate) ? styles$
|
|
8886
|
-
buttonPosition === "top" ? styles$
|
|
8884
|
+
styles$C.toggleButton,
|
|
8885
|
+
localOpen && (isStandardButton || isCustomButton && buttonAnimate) ? styles$C.toggleButtonOpen : "",
|
|
8886
|
+
buttonPosition === "top" ? styles$C.top : styles$C.bottom
|
|
8887
8887
|
),
|
|
8888
8888
|
children: isCustomButton ? button2 : /* @__PURE__ */ jsx(
|
|
8889
8889
|
Button$1,
|
|
@@ -8903,7 +8903,7 @@ const Drawer = ({
|
|
|
8903
8903
|
};
|
|
8904
8904
|
const empty$2 = "_empty_fe425_1";
|
|
8905
8905
|
const text$2 = "_text_fe425_11";
|
|
8906
|
-
const styles$
|
|
8906
|
+
const styles$B = {
|
|
8907
8907
|
empty: empty$2,
|
|
8908
8908
|
text: text$2
|
|
8909
8909
|
};
|
|
@@ -8917,7 +8917,7 @@ const Empty = ({
|
|
|
8917
8917
|
return /* @__PURE__ */ jsxs(
|
|
8918
8918
|
"div",
|
|
8919
8919
|
{
|
|
8920
|
-
className: styles$
|
|
8920
|
+
className: styles$B.empty,
|
|
8921
8921
|
style: { width: width2, height: height2 },
|
|
8922
8922
|
"data-testid": testId,
|
|
8923
8923
|
children: [
|
|
@@ -8949,7 +8949,7 @@ const Empty = ({
|
|
|
8949
8949
|
)
|
|
8950
8950
|
] })
|
|
8951
8951
|
] }) }),
|
|
8952
|
-
text2 !== "" && /* @__PURE__ */ jsx("div", { className: styles$
|
|
8952
|
+
text2 !== "" && /* @__PURE__ */ jsx("div", { className: styles$B.text, children: /* @__PURE__ */ jsx(Text, { faint: true, children: text2 }) }),
|
|
8953
8953
|
children
|
|
8954
8954
|
]
|
|
8955
8955
|
}
|
|
@@ -9003,7 +9003,7 @@ const FileButton = ({
|
|
|
9003
9003
|
] });
|
|
9004
9004
|
};
|
|
9005
9005
|
const inputGroup = "_inputGroup_biuoa_1";
|
|
9006
|
-
const styles$
|
|
9006
|
+
const styles$A = {
|
|
9007
9007
|
inputGroup
|
|
9008
9008
|
};
|
|
9009
9009
|
const isDOMTypeElement = (element) => {
|
|
@@ -9028,43 +9028,43 @@ const InputGroup = ({
|
|
|
9028
9028
|
return /* @__PURE__ */ jsx(
|
|
9029
9029
|
"div",
|
|
9030
9030
|
{
|
|
9031
|
-
className: cx$2(styles$
|
|
9031
|
+
className: cx$2(styles$A.inputGroup),
|
|
9032
9032
|
style: { width: width2 },
|
|
9033
9033
|
children: elements
|
|
9034
9034
|
}
|
|
9035
9035
|
);
|
|
9036
9036
|
};
|
|
9037
|
-
const inputInTable$
|
|
9038
|
-
const inputHover$
|
|
9039
|
-
const inputFocus$
|
|
9040
|
-
const inputError$
|
|
9041
|
-
const inputWarning$
|
|
9042
|
-
const inputDisabled$
|
|
9043
|
-
const hideScrollbars$
|
|
9044
|
-
const input = "_input_1285q_1";
|
|
9045
|
-
const isInTable$
|
|
9046
|
-
const small$
|
|
9047
|
-
const right$
|
|
9048
|
-
const groupOrderFirst$
|
|
9049
|
-
const groupOrderMiddle$
|
|
9050
|
-
const groupOrderLast$
|
|
9051
|
-
const styles$
|
|
9052
|
-
inputInTable: inputInTable$
|
|
9053
|
-
inputHover: inputHover$
|
|
9054
|
-
inputFocus: inputFocus$
|
|
9055
|
-
inputError: inputError$
|
|
9056
|
-
inputWarning: inputWarning$
|
|
9057
|
-
inputDisabled: inputDisabled$
|
|
9058
|
-
hideScrollbars: hideScrollbars$
|
|
9059
|
-
input,
|
|
9060
|
-
isInTable: isInTable$
|
|
9061
|
-
small: small$
|
|
9062
|
-
right: right$
|
|
9063
|
-
groupOrderFirst: groupOrderFirst$
|
|
9064
|
-
groupOrderMiddle: groupOrderMiddle$
|
|
9065
|
-
groupOrderLast: groupOrderLast$
|
|
9037
|
+
const inputInTable$9 = "_inputInTable_1285q_1";
|
|
9038
|
+
const inputHover$9 = "_inputHover_1285q_13";
|
|
9039
|
+
const inputFocus$9 = "_inputFocus_1285q_18";
|
|
9040
|
+
const inputError$9 = "_inputError_1285q_25";
|
|
9041
|
+
const inputWarning$9 = "_inputWarning_1285q_26";
|
|
9042
|
+
const inputDisabled$9 = "_inputDisabled_1285q_61";
|
|
9043
|
+
const hideScrollbars$9 = "_hideScrollbars_1285q_67";
|
|
9044
|
+
const input$1 = "_input_1285q_1";
|
|
9045
|
+
const isInTable$3 = "_isInTable_1285q_100";
|
|
9046
|
+
const small$8 = "_small_1285q_124";
|
|
9047
|
+
const right$5 = "_right_1285q_170";
|
|
9048
|
+
const groupOrderFirst$3 = "_groupOrderFirst_1285q_173";
|
|
9049
|
+
const groupOrderMiddle$3 = "_groupOrderMiddle_1285q_174";
|
|
9050
|
+
const groupOrderLast$3 = "_groupOrderLast_1285q_175";
|
|
9051
|
+
const styles$z = {
|
|
9052
|
+
inputInTable: inputInTable$9,
|
|
9053
|
+
inputHover: inputHover$9,
|
|
9054
|
+
inputFocus: inputFocus$9,
|
|
9055
|
+
inputError: inputError$9,
|
|
9056
|
+
inputWarning: inputWarning$9,
|
|
9057
|
+
inputDisabled: inputDisabled$9,
|
|
9058
|
+
hideScrollbars: hideScrollbars$9,
|
|
9059
|
+
input: input$1,
|
|
9060
|
+
isInTable: isInTable$3,
|
|
9061
|
+
small: small$8,
|
|
9062
|
+
right: right$5,
|
|
9063
|
+
groupOrderFirst: groupOrderFirst$3,
|
|
9064
|
+
groupOrderMiddle: groupOrderMiddle$3,
|
|
9065
|
+
groupOrderLast: groupOrderLast$3
|
|
9066
9066
|
};
|
|
9067
|
-
const Input = forwardRef(
|
|
9067
|
+
const Input$1 = forwardRef(
|
|
9068
9068
|
({
|
|
9069
9069
|
error: error2 = null,
|
|
9070
9070
|
tooltip: tooltip2 = null,
|
|
@@ -9100,11 +9100,11 @@ const Input = forwardRef(
|
|
|
9100
9100
|
if (groupOrder) {
|
|
9101
9101
|
switch (groupOrder) {
|
|
9102
9102
|
case "first":
|
|
9103
|
-
return styles$
|
|
9103
|
+
return styles$z.groupOrderFirst;
|
|
9104
9104
|
case "last":
|
|
9105
|
-
return styles$
|
|
9105
|
+
return styles$z.groupOrderLast;
|
|
9106
9106
|
default:
|
|
9107
|
-
return styles$
|
|
9107
|
+
return styles$z.groupOrderMiddle;
|
|
9108
9108
|
}
|
|
9109
9109
|
}
|
|
9110
9110
|
return "";
|
|
@@ -9138,10 +9138,10 @@ const Input = forwardRef(
|
|
|
9138
9138
|
autoComplete: "off",
|
|
9139
9139
|
disabled: disabled2 || disabledContext,
|
|
9140
9140
|
className: cx$2(
|
|
9141
|
-
styles$
|
|
9142
|
-
right2 ? styles$
|
|
9143
|
-
small2 ? styles$
|
|
9144
|
-
isInTable2 ? styles$
|
|
9141
|
+
styles$z.input,
|
|
9142
|
+
right2 ? styles$z.right : "",
|
|
9143
|
+
small2 ? styles$z.small : "",
|
|
9144
|
+
isInTable2 ? styles$z.isInTable : ""
|
|
9145
9145
|
),
|
|
9146
9146
|
style: { width: width2 },
|
|
9147
9147
|
"data-error": error2 || null,
|
|
@@ -9154,7 +9154,7 @@ const Input = forwardRef(
|
|
|
9154
9154
|
}
|
|
9155
9155
|
);
|
|
9156
9156
|
const fileInput = "_fileInput_1elar_1";
|
|
9157
|
-
const styles$
|
|
9157
|
+
const styles$y = {
|
|
9158
9158
|
fileInput
|
|
9159
9159
|
};
|
|
9160
9160
|
var InputReaderMethods = /* @__PURE__ */ ((InputReaderMethods2) => {
|
|
@@ -9232,7 +9232,7 @@ const FileInput = ({
|
|
|
9232
9232
|
};
|
|
9233
9233
|
return /* @__PURE__ */ jsxs("div", { onClick: handleClick2, style: { width: width2 }, children: [
|
|
9234
9234
|
/* @__PURE__ */ jsxs(InputGroup, { children: [
|
|
9235
|
-
/* @__PURE__ */ jsx(Input, { value: fileName || "", placeholder: placeholder3, disabled: true }),
|
|
9235
|
+
/* @__PURE__ */ jsx(Input$1, { value: fileName || "", placeholder: placeholder3, disabled: true }),
|
|
9236
9236
|
/* @__PURE__ */ jsx(
|
|
9237
9237
|
Button$1,
|
|
9238
9238
|
{
|
|
@@ -9248,7 +9248,7 @@ const FileInput = ({
|
|
|
9248
9248
|
{
|
|
9249
9249
|
name: name2,
|
|
9250
9250
|
ref: inputRef,
|
|
9251
|
-
className: styles$
|
|
9251
|
+
className: styles$y.fileInput,
|
|
9252
9252
|
type: "file",
|
|
9253
9253
|
accept,
|
|
9254
9254
|
multiple: multi,
|
|
@@ -9258,13 +9258,13 @@ const FileInput = ({
|
|
|
9258
9258
|
)
|
|
9259
9259
|
] });
|
|
9260
9260
|
};
|
|
9261
|
-
const label$
|
|
9261
|
+
const label$7 = "_label_18pfe_1";
|
|
9262
9262
|
const labelLeft$1 = "_labelLeft_18pfe_5";
|
|
9263
|
-
const icons = "_icons_18pfe_13";
|
|
9264
|
-
const styles$
|
|
9265
|
-
label: label$
|
|
9263
|
+
const icons$1 = "_icons_18pfe_13";
|
|
9264
|
+
const styles$x = {
|
|
9265
|
+
label: label$7,
|
|
9266
9266
|
labelLeft: labelLeft$1,
|
|
9267
|
-
icons
|
|
9267
|
+
icons: icons$1
|
|
9268
9268
|
};
|
|
9269
9269
|
const Label$2 = ({
|
|
9270
9270
|
label: label2 = null,
|
|
@@ -9284,9 +9284,9 @@ const Label$2 = ({
|
|
|
9284
9284
|
libraryIcon,
|
|
9285
9285
|
labelLeft: labelLeft2 = false
|
|
9286
9286
|
}) => {
|
|
9287
|
-
return /* @__PURE__ */ jsx("div", { className: cx$2(styles$
|
|
9287
|
+
return /* @__PURE__ */ jsx("div", { className: cx$2(styles$x.label, labelLeft2 ? styles$x.labelLeft : ""), children: /* @__PURE__ */ jsxs("label", { style: { width: width2 || "" }, children: [
|
|
9288
9288
|
label2,
|
|
9289
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
9289
|
+
/* @__PURE__ */ jsxs("div", { className: styles$x.icons, children: [
|
|
9290
9290
|
(helpText || onClickHelp) && /* @__PURE__ */ jsx(
|
|
9291
9291
|
HelpIcon,
|
|
9292
9292
|
{
|
|
@@ -9321,7 +9321,7 @@ const labelLeft = "_labelLeft_1xoss_5";
|
|
|
9321
9321
|
const fieldInput = "_fieldInput_1xoss_9";
|
|
9322
9322
|
const formRow$1 = "_formRow_1xoss_12";
|
|
9323
9323
|
const button$2 = "_button_1xoss_22";
|
|
9324
|
-
const styles$
|
|
9324
|
+
const styles$w = {
|
|
9325
9325
|
field,
|
|
9326
9326
|
labelLeft,
|
|
9327
9327
|
fieldInput,
|
|
@@ -9352,7 +9352,7 @@ const Field = ({
|
|
|
9352
9352
|
return /* @__PURE__ */ jsxs(
|
|
9353
9353
|
"div",
|
|
9354
9354
|
{
|
|
9355
|
-
className: cx$2(styles$
|
|
9355
|
+
className: cx$2(styles$w.field, labelLeft2 ? styles$w.labelLeft : ""),
|
|
9356
9356
|
"data-testid": testId,
|
|
9357
9357
|
children: [
|
|
9358
9358
|
(label2 || labelLeft2) && /* @__PURE__ */ jsx(
|
|
@@ -9369,7 +9369,7 @@ const Field = ({
|
|
|
9369
9369
|
labelLeft: labelLeft2
|
|
9370
9370
|
}
|
|
9371
9371
|
),
|
|
9372
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
9372
|
+
/* @__PURE__ */ jsx("div", { className: styles$w.fieldInput, children })
|
|
9373
9373
|
]
|
|
9374
9374
|
}
|
|
9375
9375
|
);
|
|
@@ -9400,11 +9400,11 @@ const Flex = ({
|
|
|
9400
9400
|
);
|
|
9401
9401
|
};
|
|
9402
9402
|
const formRow = "_formRow_odewu_1";
|
|
9403
|
-
const styles$
|
|
9403
|
+
const styles$v = {
|
|
9404
9404
|
formRow
|
|
9405
9405
|
};
|
|
9406
9406
|
const FormRow = ({ children }) => {
|
|
9407
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
9407
|
+
return /* @__PURE__ */ jsx("div", { className: styles$v.formRow, children });
|
|
9408
9408
|
};
|
|
9409
9409
|
const getGapValue = (gap) => {
|
|
9410
9410
|
if (typeof gap === "boolean") {
|
|
@@ -9460,16 +9460,16 @@ const Grid = ({
|
|
|
9460
9460
|
);
|
|
9461
9461
|
};
|
|
9462
9462
|
const addon = "_addon_b4w53_1";
|
|
9463
|
-
const small$
|
|
9464
|
-
const groupOrderFirst$
|
|
9465
|
-
const groupOrderMiddle$
|
|
9466
|
-
const groupOrderLast$
|
|
9467
|
-
const styles$
|
|
9463
|
+
const small$7 = "_small_b4w53_12";
|
|
9464
|
+
const groupOrderFirst$2 = "_groupOrderFirst_b4w53_16";
|
|
9465
|
+
const groupOrderMiddle$2 = "_groupOrderMiddle_b4w53_17";
|
|
9466
|
+
const groupOrderLast$2 = "_groupOrderLast_b4w53_21";
|
|
9467
|
+
const styles$u = {
|
|
9468
9468
|
addon,
|
|
9469
|
-
small: small$
|
|
9470
|
-
groupOrderFirst: groupOrderFirst$
|
|
9471
|
-
groupOrderMiddle: groupOrderMiddle$
|
|
9472
|
-
groupOrderLast: groupOrderLast$
|
|
9469
|
+
small: small$7,
|
|
9470
|
+
groupOrderFirst: groupOrderFirst$2,
|
|
9471
|
+
groupOrderMiddle: groupOrderMiddle$2,
|
|
9472
|
+
groupOrderLast: groupOrderLast$2
|
|
9473
9473
|
};
|
|
9474
9474
|
const InputGroupAddon = ({
|
|
9475
9475
|
children,
|
|
@@ -9480,16 +9480,16 @@ const InputGroupAddon = ({
|
|
|
9480
9480
|
if (groupOrder) {
|
|
9481
9481
|
switch (groupOrder) {
|
|
9482
9482
|
case GroupOrder.FIRST:
|
|
9483
|
-
return styles$
|
|
9483
|
+
return styles$u.groupOrderFirst;
|
|
9484
9484
|
case GroupOrder.LAST:
|
|
9485
|
-
return styles$
|
|
9485
|
+
return styles$u.groupOrderLast;
|
|
9486
9486
|
default:
|
|
9487
|
-
return styles$
|
|
9487
|
+
return styles$u.groupOrderMiddle;
|
|
9488
9488
|
}
|
|
9489
9489
|
}
|
|
9490
9490
|
return "";
|
|
9491
9491
|
})();
|
|
9492
|
-
return /* @__PURE__ */ jsx("span", { className: cx$2(styles$
|
|
9492
|
+
return /* @__PURE__ */ jsx("span", { className: cx$2(styles$u.addon, order2, small2 ? styles$u.small : ""), children });
|
|
9493
9493
|
};
|
|
9494
9494
|
function _typeof$2(o) {
|
|
9495
9495
|
"@babel/helpers - typeof";
|
|
@@ -10895,12 +10895,12 @@ function isPlainObject$3(obj) {
|
|
|
10895
10895
|
}
|
|
10896
10896
|
return proto === baseProto;
|
|
10897
10897
|
}
|
|
10898
|
-
function warning$4(
|
|
10898
|
+
function warning$4(message2) {
|
|
10899
10899
|
if (typeof console !== "undefined" && typeof console.error === "function") {
|
|
10900
|
-
console.error(
|
|
10900
|
+
console.error(message2);
|
|
10901
10901
|
}
|
|
10902
10902
|
try {
|
|
10903
|
-
throw new Error(
|
|
10903
|
+
throw new Error(message2);
|
|
10904
10904
|
} catch (e2) {
|
|
10905
10905
|
}
|
|
10906
10906
|
}
|
|
@@ -11166,11 +11166,11 @@ var useMemo = useMemoOne;
|
|
|
11166
11166
|
var useCallback = useCallbackOne;
|
|
11167
11167
|
var isProduction$2 = process.env.NODE_ENV === "production";
|
|
11168
11168
|
var prefix$2 = "Invariant failed";
|
|
11169
|
-
function invariant$4(condition,
|
|
11169
|
+
function invariant$4(condition, message2) {
|
|
11170
11170
|
if (isProduction$2) {
|
|
11171
11171
|
throw new Error(prefix$2);
|
|
11172
11172
|
}
|
|
11173
|
-
var provided = typeof
|
|
11173
|
+
var provided = typeof message2 === "function" ? message2() : message2;
|
|
11174
11174
|
var value = provided ? "".concat(prefix$2, ": ").concat(provided) : prefix$2;
|
|
11175
11175
|
throw new Error(value);
|
|
11176
11176
|
}
|
|
@@ -11380,14 +11380,14 @@ var lineStartWithSpaces = /^[ \t]*/gm;
|
|
|
11380
11380
|
var clean = function clean2(value) {
|
|
11381
11381
|
return value.replace(spacesAndTabs, " ").replace(lineStartWithSpaces, "").trim();
|
|
11382
11382
|
};
|
|
11383
|
-
var getDevMessage = function getDevMessage2(
|
|
11384
|
-
return clean("\n %creact-beautiful-dnd\n\n %c" + clean(
|
|
11383
|
+
var getDevMessage = function getDevMessage2(message2) {
|
|
11384
|
+
return clean("\n %creact-beautiful-dnd\n\n %c" + clean(message2) + "\n\n %c👷 This is a development only message. It will be removed in production builds.\n");
|
|
11385
11385
|
};
|
|
11386
|
-
var getFormattedMessage = function getFormattedMessage2(
|
|
11387
|
-
return [getDevMessage(
|
|
11386
|
+
var getFormattedMessage = function getFormattedMessage2(message2) {
|
|
11387
|
+
return [getDevMessage(message2), "color: #00C584; font-size: 1.2em; font-weight: bold;", "line-height: 1.5", "color: #723874;"];
|
|
11388
11388
|
};
|
|
11389
11389
|
var isDisabledFlag = "__react-beautiful-dnd-disable-dev-warnings";
|
|
11390
|
-
function log(type,
|
|
11390
|
+
function log(type, message2) {
|
|
11391
11391
|
var _console;
|
|
11392
11392
|
if (isProduction$1) {
|
|
11393
11393
|
return;
|
|
@@ -11395,7 +11395,7 @@ function log(type, message) {
|
|
|
11395
11395
|
if (typeof window !== "undefined" && window[isDisabledFlag]) {
|
|
11396
11396
|
return;
|
|
11397
11397
|
}
|
|
11398
|
-
(_console = console)[type].apply(_console, getFormattedMessage(
|
|
11398
|
+
(_console = console)[type].apply(_console, getFormattedMessage(message2));
|
|
11399
11399
|
}
|
|
11400
11400
|
var warning$3 = log.bind(null, "warn");
|
|
11401
11401
|
var error$1 = log.bind(null, "error");
|
|
@@ -11420,17 +11420,17 @@ function bindEvents(el2, bindings, sharedOptions) {
|
|
|
11420
11420
|
}
|
|
11421
11421
|
var isProduction$1$1 = process.env.NODE_ENV === "production";
|
|
11422
11422
|
var prefix = "Invariant failed";
|
|
11423
|
-
function RbdInvariant(
|
|
11424
|
-
this.message =
|
|
11423
|
+
function RbdInvariant(message2) {
|
|
11424
|
+
this.message = message2;
|
|
11425
11425
|
}
|
|
11426
11426
|
RbdInvariant.prototype.toString = function toString() {
|
|
11427
11427
|
return this.message;
|
|
11428
11428
|
};
|
|
11429
|
-
function invariant$3(condition,
|
|
11429
|
+
function invariant$3(condition, message2) {
|
|
11430
11430
|
if (isProduction$1$1) {
|
|
11431
11431
|
throw new RbdInvariant(prefix);
|
|
11432
11432
|
} else {
|
|
11433
|
-
throw new RbdInvariant(prefix + ": " + (
|
|
11433
|
+
throw new RbdInvariant(prefix + ": " + (message2 || ""));
|
|
11434
11434
|
}
|
|
11435
11435
|
}
|
|
11436
11436
|
var ErrorBoundary = function(_React$Component) {
|
|
@@ -13026,11 +13026,11 @@ var patchDroppableMap = function(droppables, updated) {
|
|
|
13026
13026
|
var clearUnusedPlaceholder = function clearUnusedPlaceholder2(_ref) {
|
|
13027
13027
|
var previousImpact = _ref.previousImpact, impact = _ref.impact, droppables = _ref.droppables;
|
|
13028
13028
|
var last = whatIsDraggedOver(previousImpact);
|
|
13029
|
-
var
|
|
13029
|
+
var now2 = whatIsDraggedOver(impact);
|
|
13030
13030
|
if (!last) {
|
|
13031
13031
|
return droppables;
|
|
13032
13032
|
}
|
|
13033
|
-
if (last ===
|
|
13033
|
+
if (last === now2) {
|
|
13034
13034
|
return droppables;
|
|
13035
13035
|
}
|
|
13036
13036
|
var lastDroppable = droppables[last];
|
|
@@ -14094,7 +14094,7 @@ var getExpiringAnnounce = function(announce) {
|
|
|
14094
14094
|
var timeoutId = setTimeout(function() {
|
|
14095
14095
|
isExpired = true;
|
|
14096
14096
|
});
|
|
14097
|
-
var result = function result2(
|
|
14097
|
+
var result = function result2(message2) {
|
|
14098
14098
|
if (wasCalled) {
|
|
14099
14099
|
process.env.NODE_ENV !== "production" ? warning$3("Announcement already made. Not making a second announcement") : void 0;
|
|
14100
14100
|
return;
|
|
@@ -14104,7 +14104,7 @@ var getExpiringAnnounce = function(announce) {
|
|
|
14104
14104
|
return;
|
|
14105
14105
|
}
|
|
14106
14106
|
wasCalled = true;
|
|
14107
|
-
announce(
|
|
14107
|
+
announce(message2);
|
|
14108
14108
|
clearTimeout(timeoutId);
|
|
14109
14109
|
};
|
|
14110
14110
|
result.wasCalled = function() {
|
|
@@ -14411,7 +14411,7 @@ var dimensionMarshalStopper = function(marshal) {
|
|
|
14411
14411
|
};
|
|
14412
14412
|
};
|
|
14413
14413
|
};
|
|
14414
|
-
var focus = function(marshal) {
|
|
14414
|
+
var focus$1 = function(marshal) {
|
|
14415
14415
|
var isWatching2 = false;
|
|
14416
14416
|
return function() {
|
|
14417
14417
|
return function(next2) {
|
|
@@ -14494,7 +14494,7 @@ var composeEnhancers = process.env.NODE_ENV !== "production" && typeof window !=
|
|
|
14494
14494
|
}) : compose;
|
|
14495
14495
|
var createStore = function(_ref) {
|
|
14496
14496
|
var dimensionMarshal = _ref.dimensionMarshal, focusMarshal = _ref.focusMarshal, styleMarshal = _ref.styleMarshal, getResponders = _ref.getResponders, announce = _ref.announce, autoScroller = _ref.autoScroller;
|
|
14497
|
-
return createStore$1(reducer$2, composeEnhancers(applyMiddleware(style(styleMarshal), dimensionMarshalStopper(dimensionMarshal), lift$1$1(dimensionMarshal), drop$1, dropAnimationFinish, dropAnimationFlushOnScroll, pendingDrop, autoScroll(autoScroller), scrollListener, focus(focusMarshal), responders(getResponders, announce))));
|
|
14497
|
+
return createStore$1(reducer$2, composeEnhancers(applyMiddleware(style(styleMarshal), dimensionMarshalStopper(dimensionMarshal), lift$1$1(dimensionMarshal), drop$1, dropAnimationFinish, dropAnimationFlushOnScroll, pendingDrop, autoScroll(autoScroller), scrollListener, focus$1(focusMarshal), responders(getResponders, announce))));
|
|
14498
14498
|
};
|
|
14499
14499
|
var clean$1 = function clean3() {
|
|
14500
14500
|
return {
|
|
@@ -14871,8 +14871,8 @@ var stopAt = config.durationDampening.stopDampeningAt;
|
|
|
14871
14871
|
var dampenValueByTime = function(proposedScroll, dragStartTime) {
|
|
14872
14872
|
var startOfRange = dragStartTime;
|
|
14873
14873
|
var endOfRange = stopAt;
|
|
14874
|
-
var
|
|
14875
|
-
var runTime =
|
|
14874
|
+
var now2 = Date.now();
|
|
14875
|
+
var runTime = now2 - startOfRange;
|
|
14876
14876
|
if (runTime >= stopAt) {
|
|
14877
14877
|
return proposedScroll;
|
|
14878
14878
|
}
|
|
@@ -15518,11 +15518,11 @@ function useFocusMarshal(contextId) {
|
|
|
15518
15518
|
}, [tryGiveFocus]);
|
|
15519
15519
|
var tryRecordFocus = useCallback(function tryRecordFocus2(id2) {
|
|
15520
15520
|
recordRef.current = null;
|
|
15521
|
-
var
|
|
15522
|
-
if (!
|
|
15521
|
+
var focused2 = document.activeElement;
|
|
15522
|
+
if (!focused2) {
|
|
15523
15523
|
return;
|
|
15524
15524
|
}
|
|
15525
|
-
if (
|
|
15525
|
+
if (focused2.getAttribute(dragHandle.draggableId) !== id2) {
|
|
15526
15526
|
return;
|
|
15527
15527
|
}
|
|
15528
15528
|
recordRef.current = id2;
|
|
@@ -15722,13 +15722,13 @@ function useAnnouncer(contextId) {
|
|
|
15722
15722
|
});
|
|
15723
15723
|
};
|
|
15724
15724
|
}, [id2]);
|
|
15725
|
-
var announce = useCallback(function(
|
|
15725
|
+
var announce = useCallback(function(message2) {
|
|
15726
15726
|
var el2 = ref2.current;
|
|
15727
15727
|
if (el2) {
|
|
15728
|
-
el2.textContent =
|
|
15728
|
+
el2.textContent = message2;
|
|
15729
15729
|
return;
|
|
15730
15730
|
}
|
|
15731
|
-
process.env.NODE_ENV !== "production" ? warning$3('\n A screen reader message was trying to be announced but it was unable to do so.\n This can occur if you unmount your <DragDropContext /> in your onDragEnd.\n Consider calling provided.announce() before the unmount so that the instruction will\n not be lost for users relying on a screen reader.\n\n Message not passed to screen reader:\n\n "' +
|
|
15731
|
+
process.env.NODE_ENV !== "production" ? warning$3('\n A screen reader message was trying to be announced but it was unable to do so.\n This can occur if you unmount your <DragDropContext /> in your onDragEnd.\n Consider calling provided.announce() before the unmount so that the instruction will\n not be lost for users relying on a screen reader.\n\n Message not passed to screen reader:\n\n "' + message2 + '"\n ') : void 0;
|
|
15732
15732
|
}, []);
|
|
15733
15733
|
return announce;
|
|
15734
15734
|
}
|
|
@@ -18677,16 +18677,16 @@ var InfiniteScroll = (
|
|
|
18677
18677
|
return InfiniteScroll2;
|
|
18678
18678
|
}(Component$1)
|
|
18679
18679
|
);
|
|
18680
|
-
const inputInTable$
|
|
18681
|
-
const inputHover$
|
|
18682
|
-
const inputFocus$
|
|
18683
|
-
const inputError$
|
|
18684
|
-
const inputWarning$
|
|
18685
|
-
const inputDisabled$
|
|
18686
|
-
const hideScrollbars$
|
|
18680
|
+
const inputInTable$8 = "_inputInTable_1llou_1";
|
|
18681
|
+
const inputHover$8 = "_inputHover_1llou_13";
|
|
18682
|
+
const inputFocus$8 = "_inputFocus_1llou_18";
|
|
18683
|
+
const inputError$8 = "_inputError_1llou_25";
|
|
18684
|
+
const inputWarning$8 = "_inputWarning_1llou_26";
|
|
18685
|
+
const inputDisabled$8 = "_inputDisabled_1llou_61";
|
|
18686
|
+
const hideScrollbars$8 = "_hideScrollbars_1llou_67";
|
|
18687
18687
|
const header$1 = "_header_1llou_77";
|
|
18688
18688
|
const headerTitle = "_headerTitle_1llou_77";
|
|
18689
|
-
const heading$
|
|
18689
|
+
const heading$3 = "_heading_1llou_78";
|
|
18690
18690
|
const itemHeader = "_itemHeader_1llou_78";
|
|
18691
18691
|
const narrow = "_narrow_1llou_81";
|
|
18692
18692
|
const stickyHeader = "_stickyHeader_1llou_85";
|
|
@@ -18702,31 +18702,31 @@ const item$4 = "_item_1llou_78";
|
|
|
18702
18702
|
const action = "_action_1llou_192";
|
|
18703
18703
|
const active$3 = "_active_1llou_195";
|
|
18704
18704
|
const indented = "_indented_1llou_202";
|
|
18705
|
-
const disabled$
|
|
18706
|
-
const label$
|
|
18707
|
-
const details$
|
|
18705
|
+
const disabled$5 = "_disabled_1llou_215";
|
|
18706
|
+
const label$6 = "_label_1llou_226";
|
|
18707
|
+
const details$2 = "_details_1llou_237";
|
|
18708
18708
|
const metadata = "_metadata_1llou_238";
|
|
18709
18709
|
const itemContent = "_itemContent_1llou_246";
|
|
18710
18710
|
const indentIcon = "_indentIcon_1llou_253";
|
|
18711
18711
|
const expandIcon = "_expandIcon_1llou_258";
|
|
18712
18712
|
const expanded = "_expanded_1llou_265";
|
|
18713
|
-
const right$
|
|
18713
|
+
const right$4 = "_right_1llou_268";
|
|
18714
18714
|
const actions = "_actions_1llou_276";
|
|
18715
18715
|
const scrollableList = "_scrollableList_1llou_281";
|
|
18716
18716
|
const infiniteScrollContainer = "_infiniteScrollContainer_1llou_286";
|
|
18717
18717
|
const hideScrollbar = "_hideScrollbar_1llou_67";
|
|
18718
18718
|
const noPointerEvents = "_noPointerEvents_1llou_303";
|
|
18719
18719
|
const listStyles = {
|
|
18720
|
-
inputInTable: inputInTable$
|
|
18721
|
-
inputHover: inputHover$
|
|
18722
|
-
inputFocus: inputFocus$
|
|
18723
|
-
inputError: inputError$
|
|
18724
|
-
inputWarning: inputWarning$
|
|
18725
|
-
inputDisabled: inputDisabled$
|
|
18726
|
-
hideScrollbars: hideScrollbars$
|
|
18720
|
+
inputInTable: inputInTable$8,
|
|
18721
|
+
inputHover: inputHover$8,
|
|
18722
|
+
inputFocus: inputFocus$8,
|
|
18723
|
+
inputError: inputError$8,
|
|
18724
|
+
inputWarning: inputWarning$8,
|
|
18725
|
+
inputDisabled: inputDisabled$8,
|
|
18726
|
+
hideScrollbars: hideScrollbars$8,
|
|
18727
18727
|
header: header$1,
|
|
18728
18728
|
headerTitle,
|
|
18729
|
-
heading: heading$
|
|
18729
|
+
heading: heading$3,
|
|
18730
18730
|
itemHeader,
|
|
18731
18731
|
narrow,
|
|
18732
18732
|
stickyHeader,
|
|
@@ -18742,15 +18742,15 @@ const listStyles = {
|
|
|
18742
18742
|
action,
|
|
18743
18743
|
active: active$3,
|
|
18744
18744
|
indented,
|
|
18745
|
-
disabled: disabled$
|
|
18746
|
-
label: label$
|
|
18747
|
-
details: details$
|
|
18745
|
+
disabled: disabled$5,
|
|
18746
|
+
label: label$6,
|
|
18747
|
+
details: details$2,
|
|
18748
18748
|
metadata,
|
|
18749
18749
|
itemContent,
|
|
18750
18750
|
indentIcon,
|
|
18751
18751
|
expandIcon,
|
|
18752
18752
|
expanded,
|
|
18753
|
-
right: right$
|
|
18753
|
+
right: right$4,
|
|
18754
18754
|
actions,
|
|
18755
18755
|
scrollableList,
|
|
18756
18756
|
infiniteScrollContainer,
|
|
@@ -18785,7 +18785,7 @@ const ListHeading = forwardRef(
|
|
|
18785
18785
|
onClickToggleNarrow: onToggleNarrow
|
|
18786
18786
|
}
|
|
18787
18787
|
),
|
|
18788
|
-
name2 && /* @__PURE__ */ jsx("div", { className: listStyles.headerTitle, children: /* @__PURE__ */ jsx(Heading$
|
|
18788
|
+
name2 && /* @__PURE__ */ jsx("div", { className: listStyles.headerTitle, children: /* @__PURE__ */ jsx(Heading$2, { top: true, marginBottom: 0, children: name2 }) }),
|
|
18789
18789
|
/* @__PURE__ */ jsx("div", { className: listStyles.right, children: /* @__PURE__ */ jsx("div", { className: listStyles.actions, children: /* @__PURE__ */ jsx(Actions, { actions: actions2 }) }) })
|
|
18790
18790
|
]
|
|
18791
18791
|
}
|
|
@@ -18976,15 +18976,15 @@ const cover = "_cover_477i5_14";
|
|
|
18976
18976
|
const dimmer = "_dimmer_477i5_21";
|
|
18977
18977
|
const content$2 = "_content_477i5_44";
|
|
18978
18978
|
const text$1 = "_text_477i5_49";
|
|
18979
|
-
const details = "_details_477i5_53";
|
|
18980
|
-
const styles$
|
|
18979
|
+
const details$1 = "_details_477i5_53";
|
|
18980
|
+
const styles$t = {
|
|
18981
18981
|
loader,
|
|
18982
18982
|
fullViewPortSize,
|
|
18983
18983
|
cover,
|
|
18984
18984
|
dimmer,
|
|
18985
18985
|
content: content$2,
|
|
18986
18986
|
text: text$1,
|
|
18987
|
-
details
|
|
18987
|
+
details: details$1
|
|
18988
18988
|
};
|
|
18989
18989
|
const Loader = ({
|
|
18990
18990
|
width: width2,
|
|
@@ -19002,22 +19002,22 @@ const Loader = ({
|
|
|
19002
19002
|
return /* @__PURE__ */ jsx(
|
|
19003
19003
|
"div",
|
|
19004
19004
|
{
|
|
19005
|
-
className: cx$2(styles$
|
|
19006
|
-
[styles$
|
|
19005
|
+
className: cx$2(styles$t.loader, cover2 ? styles$t.cover : "", {
|
|
19006
|
+
[styles$t.fullViewPortSize]: fullViewPortSize2
|
|
19007
19007
|
}),
|
|
19008
19008
|
style: { width: width2, height: height2 },
|
|
19009
19009
|
"data-testid": testId,
|
|
19010
|
-
children: /* @__PURE__ */ jsx("div", { className: styles$
|
|
19010
|
+
children: /* @__PURE__ */ jsx("div", { className: styles$t.dimmer, style: { background: background2, color: color2 }, children: /* @__PURE__ */ jsxs(
|
|
19011
19011
|
"div",
|
|
19012
19012
|
{
|
|
19013
|
-
className: styles$
|
|
19013
|
+
className: styles$t.content,
|
|
19014
19014
|
"data-testid": testId && `${testId}-content`,
|
|
19015
19015
|
children: [
|
|
19016
19016
|
children,
|
|
19017
19017
|
text2 && /* @__PURE__ */ jsx(
|
|
19018
19018
|
"div",
|
|
19019
19019
|
{
|
|
19020
|
-
className: styles$
|
|
19020
|
+
className: styles$t.text,
|
|
19021
19021
|
"data-testid": testId && `${testId}-text`,
|
|
19022
19022
|
children: text2
|
|
19023
19023
|
}
|
|
@@ -19025,7 +19025,7 @@ const Loader = ({
|
|
|
19025
19025
|
details2 && /* @__PURE__ */ jsx(
|
|
19026
19026
|
"div",
|
|
19027
19027
|
{
|
|
19028
|
-
className: styles$
|
|
19028
|
+
className: styles$t.details,
|
|
19029
19029
|
"data-testid": testId && `${testId}-details`,
|
|
19030
19030
|
children: details2
|
|
19031
19031
|
}
|
|
@@ -19208,13 +19208,13 @@ const List = ({
|
|
|
19208
19208
|
}
|
|
19209
19209
|
);
|
|
19210
19210
|
};
|
|
19211
|
-
const inputInTable$
|
|
19212
|
-
const inputHover$
|
|
19213
|
-
const inputFocus$
|
|
19214
|
-
const inputError$
|
|
19215
|
-
const inputWarning$
|
|
19216
|
-
const inputDisabled$
|
|
19217
|
-
const hideScrollbars$
|
|
19211
|
+
const inputInTable$7 = "_inputInTable_1okhq_1";
|
|
19212
|
+
const inputHover$7 = "_inputHover_1okhq_13";
|
|
19213
|
+
const inputFocus$7 = "_inputFocus_1okhq_18";
|
|
19214
|
+
const inputError$7 = "_inputError_1okhq_25";
|
|
19215
|
+
const inputWarning$7 = "_inputWarning_1okhq_26";
|
|
19216
|
+
const inputDisabled$7 = "_inputDisabled_1okhq_61";
|
|
19217
|
+
const hideScrollbars$7 = "_hideScrollbars_1okhq_67";
|
|
19218
19218
|
const container$1 = "_container_1okhq_83";
|
|
19219
19219
|
const block$1 = "_block_1okhq_101";
|
|
19220
19220
|
const info = "_info_1okhq_104";
|
|
@@ -19222,21 +19222,21 @@ const success = "_success_1okhq_108";
|
|
|
19222
19222
|
const warning$2 = "_warning_1okhq_112";
|
|
19223
19223
|
const error = "_error_1okhq_116";
|
|
19224
19224
|
const content$1 = "_content_1okhq_120";
|
|
19225
|
-
const heading$
|
|
19226
|
-
const icon$
|
|
19225
|
+
const heading$2 = "_heading_1okhq_124";
|
|
19226
|
+
const icon$3 = "_icon_1okhq_131";
|
|
19227
19227
|
const dismiss$1 = "_dismiss_1okhq_139";
|
|
19228
19228
|
const absolute = "_absolute_1okhq_143";
|
|
19229
19229
|
const legendToggle = "_legendToggle_1okhq_155";
|
|
19230
19230
|
const detailsText = "_detailsText_1okhq_165";
|
|
19231
19231
|
const footer$1 = "_footer_1okhq_169";
|
|
19232
|
-
const styles$
|
|
19233
|
-
inputInTable: inputInTable$
|
|
19234
|
-
inputHover: inputHover$
|
|
19235
|
-
inputFocus: inputFocus$
|
|
19236
|
-
inputError: inputError$
|
|
19237
|
-
inputWarning: inputWarning$
|
|
19238
|
-
inputDisabled: inputDisabled$
|
|
19239
|
-
hideScrollbars: hideScrollbars$
|
|
19232
|
+
const styles$s = {
|
|
19233
|
+
inputInTable: inputInTable$7,
|
|
19234
|
+
inputHover: inputHover$7,
|
|
19235
|
+
inputFocus: inputFocus$7,
|
|
19236
|
+
inputError: inputError$7,
|
|
19237
|
+
inputWarning: inputWarning$7,
|
|
19238
|
+
inputDisabled: inputDisabled$7,
|
|
19239
|
+
hideScrollbars: hideScrollbars$7,
|
|
19240
19240
|
container: container$1,
|
|
19241
19241
|
block: block$1,
|
|
19242
19242
|
info,
|
|
@@ -19244,8 +19244,8 @@ const styles$q = {
|
|
|
19244
19244
|
warning: warning$2,
|
|
19245
19245
|
error,
|
|
19246
19246
|
content: content$1,
|
|
19247
|
-
heading: heading$
|
|
19248
|
-
icon: icon$
|
|
19247
|
+
heading: heading$2,
|
|
19248
|
+
icon: icon$3,
|
|
19249
19249
|
dismiss: dismiss$1,
|
|
19250
19250
|
absolute,
|
|
19251
19251
|
legendToggle,
|
|
@@ -19273,9 +19273,9 @@ const Dismiss = ({
|
|
|
19273
19273
|
"div",
|
|
19274
19274
|
{
|
|
19275
19275
|
className: cx$2(
|
|
19276
|
-
styles$
|
|
19277
|
-
isInToast ? styles$
|
|
19278
|
-
type === MessageType.INFO ? styles$
|
|
19276
|
+
styles$s.dismiss,
|
|
19277
|
+
isInToast ? styles$s.absolute : "",
|
|
19278
|
+
type === MessageType.INFO ? styles$s.info : type === MessageType.SUCCESS ? styles$s.success : type === MessageType.WARNING ? styles$s.warning : type === MessageType.ERROR ? styles$s.error : null
|
|
19279
19279
|
),
|
|
19280
19280
|
children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CLOSE, onClick: onClose, testId })
|
|
19281
19281
|
}
|
|
@@ -19294,8 +19294,8 @@ const reducer$1 = (state, action2) => {
|
|
|
19294
19294
|
};
|
|
19295
19295
|
const Details = ({ details: details2, visible, dispatch }) => {
|
|
19296
19296
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
19297
|
-
/* @__PURE__ */ jsx("div", { className: cx$2(styles$
|
|
19298
|
-
visible ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
19297
|
+
/* @__PURE__ */ jsx("div", { className: cx$2(styles$s.legendToggle), onClick: dispatch, children: visible ? "Hide details" : "Show details" }),
|
|
19298
|
+
visible ? /* @__PURE__ */ jsx("div", { className: styles$s.detailsText, children: details2 }) : null
|
|
19299
19299
|
] });
|
|
19300
19300
|
};
|
|
19301
19301
|
const DialogIcon = ({ type }) => {
|
|
@@ -19311,7 +19311,7 @@ const DialogIcon = ({ type }) => {
|
|
|
19311
19311
|
return /* @__PURE__ */ jsx(Icon, { icon: IconType.INFO, size: size2 });
|
|
19312
19312
|
}
|
|
19313
19313
|
};
|
|
19314
|
-
const Message = ({ message }) => {
|
|
19314
|
+
const Message = ({ message: message2 }) => {
|
|
19315
19315
|
const {
|
|
19316
19316
|
visible,
|
|
19317
19317
|
type = MessageType.INFO,
|
|
@@ -19325,7 +19325,7 @@ const Message = ({ message }) => {
|
|
|
19325
19325
|
onClose,
|
|
19326
19326
|
width: width2,
|
|
19327
19327
|
maxHeight
|
|
19328
|
-
} =
|
|
19328
|
+
} = message2;
|
|
19329
19329
|
const initialState2 = {
|
|
19330
19330
|
detailsVisible
|
|
19331
19331
|
};
|
|
@@ -19334,15 +19334,15 @@ const Message = ({ message }) => {
|
|
|
19334
19334
|
"div",
|
|
19335
19335
|
{
|
|
19336
19336
|
className: cx$2(
|
|
19337
|
-
styles$
|
|
19338
|
-
width2 ? styles$
|
|
19339
|
-
type === MessageType.SUCCESS ? styles$
|
|
19337
|
+
styles$s.container,
|
|
19338
|
+
width2 ? styles$s.block : null,
|
|
19339
|
+
type === MessageType.SUCCESS ? styles$s.success : type === MessageType.WARNING ? styles$s.warning : type === MessageType.ERROR ? styles$s.error : styles$s.info
|
|
19340
19340
|
),
|
|
19341
19341
|
style: { width: width2, maxHeight },
|
|
19342
19342
|
children: [
|
|
19343
|
-
/* @__PURE__ */ jsx("div", { children: icon2 ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
19344
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
19345
|
-
heading2 ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
19343
|
+
/* @__PURE__ */ jsx("div", { children: icon2 ? /* @__PURE__ */ jsx("div", { className: styles$s.icon, children: /* @__PURE__ */ jsx(DialogIcon, { type }) }) : null }),
|
|
19344
|
+
/* @__PURE__ */ jsxs("div", { className: styles$s.content, children: [
|
|
19345
|
+
heading2 ? /* @__PURE__ */ jsx("div", { className: styles$s.heading, children: heading2 }) : null,
|
|
19346
19346
|
/* @__PURE__ */ jsx("div", { children: content2 }),
|
|
19347
19347
|
details2 ? /* @__PURE__ */ jsx(
|
|
19348
19348
|
Details,
|
|
@@ -19352,7 +19352,7 @@ const Message = ({ message }) => {
|
|
|
19352
19352
|
dispatch: () => dispatch({ type: MessageToggle.TOGGLE_DETAILS })
|
|
19353
19353
|
}
|
|
19354
19354
|
) : null,
|
|
19355
|
-
!!footer2 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
19355
|
+
!!footer2 && /* @__PURE__ */ jsx("div", { className: styles$s.footer, children: footer2 })
|
|
19356
19356
|
] }),
|
|
19357
19357
|
withDismiss ? /* @__PURE__ */ jsx(Dismiss, { type, onClose }) : null
|
|
19358
19358
|
]
|
|
@@ -19384,7 +19384,7 @@ const wrapper$2 = "_wrapper_sb0hc_1";
|
|
|
19384
19384
|
const contentContainer = "_contentContainer_sb0hc_15";
|
|
19385
19385
|
const centered = "_centered_sb0hc_24";
|
|
19386
19386
|
const newLine = "_newLine_sb0hc_28";
|
|
19387
|
-
const styles$
|
|
19387
|
+
const styles$r = {
|
|
19388
19388
|
wrapper: wrapper$2,
|
|
19389
19389
|
contentContainer,
|
|
19390
19390
|
centered,
|
|
@@ -19404,12 +19404,12 @@ const Wrapper = ({ children }) => {
|
|
|
19404
19404
|
}
|
|
19405
19405
|
}
|
|
19406
19406
|
}, []);
|
|
19407
|
-
return /* @__PURE__ */ jsx("div", { ref: wrapperRef, tabIndex: -1, className: cx$2(styles$
|
|
19407
|
+
return /* @__PURE__ */ jsx("div", { ref: wrapperRef, tabIndex: -1, className: cx$2(styles$r.wrapper), children });
|
|
19408
19408
|
};
|
|
19409
19409
|
const Content$2 = ({ children, width: width2, centered: centered2 }) => /* @__PURE__ */ jsx(
|
|
19410
19410
|
"div",
|
|
19411
19411
|
{
|
|
19412
|
-
className: cx$2(styles$
|
|
19412
|
+
className: cx$2(styles$r.contentContainer, centered2 ? styles$r.centered : ""),
|
|
19413
19413
|
style: { maxWidth: width2 },
|
|
19414
19414
|
children
|
|
19415
19415
|
}
|
|
@@ -19457,36 +19457,36 @@ const Modal = ({
|
|
|
19457
19457
|
const menu$1 = "_menu_12x4u_1";
|
|
19458
19458
|
const header = "_header_12x4u_11";
|
|
19459
19459
|
const item$3 = "_item_12x4u_27";
|
|
19460
|
-
const heading = "_heading_12x4u_32";
|
|
19461
|
-
const styles$
|
|
19460
|
+
const heading$1 = "_heading_12x4u_32";
|
|
19461
|
+
const styles$q = {
|
|
19462
19462
|
menu: menu$1,
|
|
19463
19463
|
header,
|
|
19464
19464
|
item: item$3,
|
|
19465
|
-
heading
|
|
19465
|
+
heading: heading$1
|
|
19466
19466
|
};
|
|
19467
|
-
const Option = ({
|
|
19467
|
+
const Option$1 = ({
|
|
19468
19468
|
option: option2,
|
|
19469
19469
|
onChange
|
|
19470
19470
|
}) => {
|
|
19471
19471
|
const { key: key2, label: label2, selected: selected2 } = option2;
|
|
19472
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
19472
|
+
return /* @__PURE__ */ jsx("div", { className: styles$q.item, children: /* @__PURE__ */ jsx(CheckBox, { label: label2, noMargin: true, checked: selected2, onChange }) }, key2);
|
|
19473
19473
|
};
|
|
19474
|
-
const Heading = ({ label: label2 }) => /* @__PURE__ */ jsx("div", { className: styles$
|
|
19474
|
+
const Heading$1 = ({ label: label2 }) => /* @__PURE__ */ jsx("div", { className: styles$q.heading, children: label2 });
|
|
19475
19475
|
var DropdownType = /* @__PURE__ */ ((DropdownType2) => {
|
|
19476
19476
|
DropdownType2["HEADING"] = "Heading";
|
|
19477
19477
|
DropdownType2["DIVIDER"] = "Divider";
|
|
19478
19478
|
DropdownType2["DEFAULT"] = "Default";
|
|
19479
19479
|
return DropdownType2;
|
|
19480
19480
|
})(DropdownType || {});
|
|
19481
|
-
const Layer = ({
|
|
19481
|
+
const Layer$1 = ({
|
|
19482
19482
|
options,
|
|
19483
19483
|
onChangeOptions,
|
|
19484
19484
|
showHeader,
|
|
19485
19485
|
maxHeight
|
|
19486
19486
|
}) => {
|
|
19487
|
-
return /* @__PURE__ */ jsxs("div", { className: cx$2("menu", styles$
|
|
19487
|
+
return /* @__PURE__ */ jsxs("div", { className: cx$2("menu", styles$q.menu), style: { maxHeight }, children: [
|
|
19488
19488
|
showHeader && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
19489
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
19489
|
+
/* @__PURE__ */ jsxs("div", { className: styles$q.header, children: [
|
|
19490
19490
|
/* @__PURE__ */ jsx(
|
|
19491
19491
|
"a",
|
|
19492
19492
|
{
|
|
@@ -19532,12 +19532,12 @@ const Layer = ({
|
|
|
19532
19532
|
options.map((option2, index2) => {
|
|
19533
19533
|
switch (option2.type) {
|
|
19534
19534
|
case DropdownType.HEADING:
|
|
19535
|
-
return /* @__PURE__ */ jsx(Heading, { label: option2.label }, index2);
|
|
19535
|
+
return /* @__PURE__ */ jsx(Heading$1, { label: option2.label }, index2);
|
|
19536
19536
|
case DropdownType.DIVIDER:
|
|
19537
19537
|
return /* @__PURE__ */ jsx(Divider, { margin: 0 }, index2);
|
|
19538
19538
|
default:
|
|
19539
19539
|
return /* @__PURE__ */ jsx(
|
|
19540
|
-
Option,
|
|
19540
|
+
Option$1,
|
|
19541
19541
|
{
|
|
19542
19542
|
option: option2,
|
|
19543
19543
|
onChange: (evt) => {
|
|
@@ -19559,6 +19559,7 @@ const OptionDropdown = ({
|
|
|
19559
19559
|
label: label2,
|
|
19560
19560
|
options,
|
|
19561
19561
|
onChange,
|
|
19562
|
+
small: small2 = false,
|
|
19562
19563
|
showHeader = true,
|
|
19563
19564
|
maxHeight = "40vh"
|
|
19564
19565
|
}) => {
|
|
@@ -19566,11 +19567,12 @@ const OptionDropdown = ({
|
|
|
19566
19567
|
Menu,
|
|
19567
19568
|
{
|
|
19568
19569
|
menu: {
|
|
19570
|
+
small: small2,
|
|
19569
19571
|
label: label2,
|
|
19570
19572
|
trigger: TriggerType.DROP_DOWN_BUTTON,
|
|
19571
19573
|
possiblePlacements: ["top-start", "bottom-start"],
|
|
19572
19574
|
sections: /* @__PURE__ */ jsx(
|
|
19573
|
-
Layer,
|
|
19575
|
+
Layer$1,
|
|
19574
19576
|
{
|
|
19575
19577
|
options,
|
|
19576
19578
|
onChangeOptions: (evt, nextOptions) => {
|
|
@@ -19589,7 +19591,7 @@ const OptionDropdown = ({
|
|
|
19589
19591
|
};
|
|
19590
19592
|
const page = "_page_beskc_1";
|
|
19591
19593
|
const scroll$1 = "_scroll_beskc_23";
|
|
19592
|
-
const styles$
|
|
19594
|
+
const styles$p = {
|
|
19593
19595
|
page,
|
|
19594
19596
|
scroll: scroll$1
|
|
19595
19597
|
};
|
|
@@ -19604,43 +19606,43 @@ const Page = ({
|
|
|
19604
19606
|
return /* @__PURE__ */ jsx(
|
|
19605
19607
|
"div",
|
|
19606
19608
|
{
|
|
19607
|
-
className: cx$2(styles$
|
|
19609
|
+
className: cx$2(styles$p.page, scroll3 ? styles$p.scroll : ""),
|
|
19608
19610
|
style: { left: left2, padding: padding2, top: top2 },
|
|
19609
19611
|
children
|
|
19610
19612
|
}
|
|
19611
19613
|
);
|
|
19612
19614
|
};
|
|
19613
|
-
const inputInTable$
|
|
19614
|
-
const inputHover$
|
|
19615
|
-
const inputFocus$
|
|
19616
|
-
const inputError$
|
|
19617
|
-
const inputWarning$
|
|
19618
|
-
const inputDisabled$
|
|
19619
|
-
const hideScrollbars$
|
|
19615
|
+
const inputInTable$6 = "_inputInTable_sl2b5_1";
|
|
19616
|
+
const inputHover$6 = "_inputHover_sl2b5_13";
|
|
19617
|
+
const inputFocus$6 = "_inputFocus_sl2b5_18";
|
|
19618
|
+
const inputError$6 = "_inputError_sl2b5_25";
|
|
19619
|
+
const inputWarning$6 = "_inputWarning_sl2b5_26";
|
|
19620
|
+
const inputDisabled$6 = "_inputDisabled_sl2b5_61";
|
|
19621
|
+
const hideScrollbars$6 = "_hideScrollbars_sl2b5_67";
|
|
19620
19622
|
const select = "_select_sl2b5_77";
|
|
19621
|
-
const isInTable$
|
|
19623
|
+
const isInTable$2 = "_isInTable_sl2b5_121";
|
|
19622
19624
|
const unSelected = "_unSelected_sl2b5_133";
|
|
19623
|
-
const small$
|
|
19624
|
-
const right$
|
|
19625
|
-
const groupOrderFirst = "_groupOrderFirst_sl2b5_193";
|
|
19626
|
-
const groupOrderMiddle = "_groupOrderMiddle_sl2b5_194";
|
|
19627
|
-
const groupOrderLast = "_groupOrderLast_sl2b5_198";
|
|
19628
|
-
const styles$
|
|
19629
|
-
inputInTable: inputInTable$
|
|
19630
|
-
inputHover: inputHover$
|
|
19631
|
-
inputFocus: inputFocus$
|
|
19632
|
-
inputError: inputError$
|
|
19633
|
-
inputWarning: inputWarning$
|
|
19634
|
-
inputDisabled: inputDisabled$
|
|
19635
|
-
hideScrollbars: hideScrollbars$
|
|
19625
|
+
const small$6 = "_small_sl2b5_174";
|
|
19626
|
+
const right$3 = "_right_sl2b5_182";
|
|
19627
|
+
const groupOrderFirst$1 = "_groupOrderFirst_sl2b5_193";
|
|
19628
|
+
const groupOrderMiddle$1 = "_groupOrderMiddle_sl2b5_194";
|
|
19629
|
+
const groupOrderLast$1 = "_groupOrderLast_sl2b5_198";
|
|
19630
|
+
const styles$o = {
|
|
19631
|
+
inputInTable: inputInTable$6,
|
|
19632
|
+
inputHover: inputHover$6,
|
|
19633
|
+
inputFocus: inputFocus$6,
|
|
19634
|
+
inputError: inputError$6,
|
|
19635
|
+
inputWarning: inputWarning$6,
|
|
19636
|
+
inputDisabled: inputDisabled$6,
|
|
19637
|
+
hideScrollbars: hideScrollbars$6,
|
|
19636
19638
|
select,
|
|
19637
|
-
isInTable: isInTable$
|
|
19639
|
+
isInTable: isInTable$2,
|
|
19638
19640
|
unSelected,
|
|
19639
|
-
small: small$
|
|
19640
|
-
right: right$
|
|
19641
|
-
groupOrderFirst,
|
|
19642
|
-
groupOrderMiddle,
|
|
19643
|
-
groupOrderLast
|
|
19641
|
+
small: small$6,
|
|
19642
|
+
right: right$3,
|
|
19643
|
+
groupOrderFirst: groupOrderFirst$1,
|
|
19644
|
+
groupOrderMiddle: groupOrderMiddle$1,
|
|
19645
|
+
groupOrderLast: groupOrderLast$1
|
|
19644
19646
|
};
|
|
19645
19647
|
const NativeSelect = ({
|
|
19646
19648
|
disabled: disabled2 = false,
|
|
@@ -19708,11 +19710,11 @@ const NativeSelect = ({
|
|
|
19708
19710
|
if (groupOrder) {
|
|
19709
19711
|
switch (groupOrder) {
|
|
19710
19712
|
case GroupOrder.FIRST:
|
|
19711
|
-
return styles$
|
|
19713
|
+
return styles$o.groupOrderFirst;
|
|
19712
19714
|
case GroupOrder.LAST:
|
|
19713
|
-
return styles$
|
|
19715
|
+
return styles$o.groupOrderLast;
|
|
19714
19716
|
default:
|
|
19715
|
-
return styles$
|
|
19717
|
+
return styles$o.groupOrderMiddle;
|
|
19716
19718
|
}
|
|
19717
19719
|
}
|
|
19718
19720
|
return "";
|
|
@@ -19730,11 +19732,11 @@ const NativeSelect = ({
|
|
|
19730
19732
|
"select",
|
|
19731
19733
|
{
|
|
19732
19734
|
className: cx$2(
|
|
19733
|
-
styles$
|
|
19734
|
-
isUnselected ? styles$
|
|
19735
|
-
right2 ? styles$
|
|
19736
|
-
small2 ? styles$
|
|
19737
|
-
isInTable2 ? styles$
|
|
19735
|
+
styles$o.select,
|
|
19736
|
+
isUnselected ? styles$o.unSelected : "",
|
|
19737
|
+
right2 ? styles$o.right : "",
|
|
19738
|
+
small2 ? styles$o.small : "",
|
|
19739
|
+
isInTable2 ? styles$o.isInTable : "",
|
|
19738
19740
|
order2
|
|
19739
19741
|
),
|
|
19740
19742
|
style: {
|
|
@@ -19768,6 +19770,182 @@ const NativeSelect = ({
|
|
|
19768
19770
|
}
|
|
19769
19771
|
);
|
|
19770
19772
|
};
|
|
19773
|
+
var reactKeyboardEventHandler = { exports: {} };
|
|
19774
|
+
(function(module, exports) {
|
|
19775
|
+
!function(e2, t) {
|
|
19776
|
+
module.exports = t(React__default, PropTypes__default);
|
|
19777
|
+
}(window, function(e2, t) {
|
|
19778
|
+
return function(e3) {
|
|
19779
|
+
var t2 = {};
|
|
19780
|
+
function n2(r2) {
|
|
19781
|
+
if (t2[r2]) return t2[r2].exports;
|
|
19782
|
+
var o = t2[r2] = { i: r2, l: false, exports: {} };
|
|
19783
|
+
return e3[r2].call(o.exports, o, o.exports, n2), o.l = true, o.exports;
|
|
19784
|
+
}
|
|
19785
|
+
return n2.m = e3, n2.c = t2, n2.d = function(e4, t3, r2) {
|
|
19786
|
+
n2.o(e4, t3) || Object.defineProperty(e4, t3, { enumerable: true, get: r2 });
|
|
19787
|
+
}, n2.r = function(e4) {
|
|
19788
|
+
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e4, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e4, "__esModule", { value: true });
|
|
19789
|
+
}, n2.t = function(e4, t3) {
|
|
19790
|
+
if (1 & t3 && (e4 = n2(e4)), 8 & t3) return e4;
|
|
19791
|
+
if (4 & t3 && "object" == typeof e4 && e4 && e4.__esModule) return e4;
|
|
19792
|
+
var r2 = /* @__PURE__ */ Object.create(null);
|
|
19793
|
+
if (n2.r(r2), Object.defineProperty(r2, "default", { enumerable: true, value: e4 }), 2 & t3 && "string" != typeof e4) for (var o in e4) n2.d(r2, o, (function(t4) {
|
|
19794
|
+
return e4[t4];
|
|
19795
|
+
}).bind(null, o));
|
|
19796
|
+
return r2;
|
|
19797
|
+
}, n2.n = function(e4) {
|
|
19798
|
+
var t3 = e4 && e4.__esModule ? function() {
|
|
19799
|
+
return e4.default;
|
|
19800
|
+
} : function() {
|
|
19801
|
+
return e4;
|
|
19802
|
+
};
|
|
19803
|
+
return n2.d(t3, "a", t3), t3;
|
|
19804
|
+
}, n2.o = function(e4, t3) {
|
|
19805
|
+
return Object.prototype.hasOwnProperty.call(e4, t3);
|
|
19806
|
+
}, n2.p = "", n2(n2.s = 0);
|
|
19807
|
+
}([function(e3, t2, n2) {
|
|
19808
|
+
Object.defineProperty(t2, "__esModule", { value: true });
|
|
19809
|
+
var r2 = n2(1);
|
|
19810
|
+
Object.defineProperty(t2, "default", { enumerable: true, get: function() {
|
|
19811
|
+
return function(e4) {
|
|
19812
|
+
return e4 && e4.__esModule ? e4 : { default: e4 };
|
|
19813
|
+
}(r2).default;
|
|
19814
|
+
} }), e3.exports = t2.default;
|
|
19815
|
+
}, function(e3, t2, n2) {
|
|
19816
|
+
Object.defineProperty(t2, "__esModule", { value: true });
|
|
19817
|
+
var r2 = Object.assign || function(e4) {
|
|
19818
|
+
for (var t3 = 1; t3 < arguments.length; t3++) {
|
|
19819
|
+
var n3 = arguments[t3];
|
|
19820
|
+
for (var r3 in n3) Object.prototype.hasOwnProperty.call(n3, r3) && (e4[r3] = n3[r3]);
|
|
19821
|
+
}
|
|
19822
|
+
return e4;
|
|
19823
|
+
}, o = /* @__PURE__ */ function() {
|
|
19824
|
+
function e4(e5, t3) {
|
|
19825
|
+
for (var n3 = 0; n3 < t3.length; n3++) {
|
|
19826
|
+
var r3 = t3[n3];
|
|
19827
|
+
r3.enumerable = r3.enumerable || false, r3.configurable = true, "value" in r3 && (r3.writable = true), Object.defineProperty(e5, r3.key, r3);
|
|
19828
|
+
}
|
|
19829
|
+
}
|
|
19830
|
+
return function(t3, n3, r3) {
|
|
19831
|
+
return n3 && e4(t3.prototype, n3), r3 && e4(t3, r3), t3;
|
|
19832
|
+
};
|
|
19833
|
+
}(), i = l(n2(2)), u = l(n2(3)), a2 = n2(4);
|
|
19834
|
+
function l(e4) {
|
|
19835
|
+
return e4 && e4.__esModule ? e4 : { default: e4 };
|
|
19836
|
+
}
|
|
19837
|
+
var s = [], c2 = function(e4) {
|
|
19838
|
+
function t3(e5) {
|
|
19839
|
+
!function(e6, t4) {
|
|
19840
|
+
if (!(e6 instanceof t4)) throw new TypeError("Cannot call a class as a function");
|
|
19841
|
+
}(this, t3);
|
|
19842
|
+
var n3 = function(e6, t4) {
|
|
19843
|
+
if (!e6) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
19844
|
+
return !t4 || "object" != typeof t4 && "function" != typeof t4 ? e6 : t4;
|
|
19845
|
+
}(this, (t3.__proto__ || Object.getPrototypeOf(t3)).call(this, e5));
|
|
19846
|
+
return n3.handleKeyboardEvent = n3.handleKeyboardEvent.bind(n3), n3.registerExclusiveHandler = n3.registerExclusiveHandler.bind(n3), n3.deregisterExclusiveHandler = n3.deregisterExclusiveHandler.bind(n3), n3;
|
|
19847
|
+
}
|
|
19848
|
+
return function(e5, t4) {
|
|
19849
|
+
if ("function" != typeof t4 && null !== t4) throw new TypeError("Super expression must either be null or a function, not " + typeof t4);
|
|
19850
|
+
e5.prototype = Object.create(t4 && t4.prototype, { constructor: { value: e5, enumerable: false, writable: true, configurable: true } }), t4 && (Object.setPrototypeOf ? Object.setPrototypeOf(e5, t4) : e5.__proto__ = t4);
|
|
19851
|
+
}(t3, i.default.Component), o(t3, [{ key: "componentDidMount", value: function() {
|
|
19852
|
+
document.addEventListener("keydown", this.handleKeyboardEvent, false), document.addEventListener("keyup", this.handleKeyboardEvent, false), document.addEventListener("keypress", this.handleKeyboardEvent, false);
|
|
19853
|
+
var e5 = this.props, t4 = e5.isExclusive, n3 = e5.isDisabled;
|
|
19854
|
+
t4 && !n3 && this.registerExclusiveHandler();
|
|
19855
|
+
} }, { key: "componentWillUnmount", value: function() {
|
|
19856
|
+
document.removeEventListener("keydown", this.handleKeyboardEvent, false), document.removeEventListener("keyup", this.handleKeyboardEvent, false), document.removeEventListener("keypress", this.handleKeyboardEvent, false), this.deregisterExclusiveHandler();
|
|
19857
|
+
} }, { key: "componentDidUpdate", value: function(e5) {
|
|
19858
|
+
var t4 = e5.isExclusive, n3 = e5.isDisabled;
|
|
19859
|
+
(this.props.isExclusive !== t4 || this.props.isDisabled !== n3) && (this.props.isExclusive && !this.props.isDisabled ? this.registerExclusiveHandler() : this.deregisterExclusiveHandler());
|
|
19860
|
+
} }, { key: "registerExclusiveHandler", value: function() {
|
|
19861
|
+
this.deregisterExclusiveHandler(), s.unshift(this);
|
|
19862
|
+
} }, { key: "deregisterExclusiveHandler", value: function() {
|
|
19863
|
+
var e5 = this;
|
|
19864
|
+
s.includes(this) && (s = s.filter(function(t4) {
|
|
19865
|
+
return t4 !== e5;
|
|
19866
|
+
}));
|
|
19867
|
+
} }, { key: "handleKeyboardEvent", value: function(e5) {
|
|
19868
|
+
var t4 = this.props, n3 = t4.isDisabled, r3 = t4.handleKeys, o2 = t4.onKeyEvent, i2 = t4.handleEventType, u2 = t4.children, l2 = t4.handleFocusableElements;
|
|
19869
|
+
if (n3) return false;
|
|
19870
|
+
if (!(i2 === e5.type)) return false;
|
|
19871
|
+
if (s.length > 0 && s[0] !== this) return false;
|
|
19872
|
+
var c3 = e5.target === document.body || l2, d2 = this.childrenContainer && this.childrenContainer.contains(e5.target);
|
|
19873
|
+
if (!(u2 ? d2 : c3)) return false;
|
|
19874
|
+
var f2 = (0, a2.findMatchedKey)(e5, r3);
|
|
19875
|
+
return !!f2 && (o2(f2, e5), true);
|
|
19876
|
+
} }, { key: "render", value: function() {
|
|
19877
|
+
var e5 = this, n3 = this.props.children, o2 = Object.assign({}, this.props), u2 = true, a3 = false, l2 = void 0;
|
|
19878
|
+
try {
|
|
19879
|
+
for (var s2, c3 = Object.keys(t3.propTypes)[Symbol.iterator](); !(u2 = (s2 = c3.next()).done); u2 = true) {
|
|
19880
|
+
delete o2[s2.value];
|
|
19881
|
+
}
|
|
19882
|
+
} catch (e6) {
|
|
19883
|
+
a3 = true, l2 = e6;
|
|
19884
|
+
} finally {
|
|
19885
|
+
try {
|
|
19886
|
+
!u2 && c3.return && c3.return();
|
|
19887
|
+
} finally {
|
|
19888
|
+
if (a3) throw l2;
|
|
19889
|
+
}
|
|
19890
|
+
}
|
|
19891
|
+
return n3 ? i.default.createElement("span", r2({ ref: function(t4) {
|
|
19892
|
+
e5.childrenContainer = t4;
|
|
19893
|
+
} }, o2), n3) : null;
|
|
19894
|
+
} }]), t3;
|
|
19895
|
+
}();
|
|
19896
|
+
t2.default = c2, c2.propTypes = { handleKeys: u.default.array, handleEventType: u.default.oneOf(["keydown", "keyup", "keypress"]), handleFocusableElements: u.default.bool, onKeyEvent: u.default.func, isDisabled: u.default.bool, isExclusive: u.default.bool, children: u.default.any }, c2.defaultProps = { handleKeys: [], handleFocusableElements: false, handleEventType: "keydown", onKeyEvent: function() {
|
|
19897
|
+
return null;
|
|
19898
|
+
} }, e3.exports = t2.default;
|
|
19899
|
+
}, function(t2, n2) {
|
|
19900
|
+
t2.exports = e2;
|
|
19901
|
+
}, function(e3, n2) {
|
|
19902
|
+
e3.exports = t;
|
|
19903
|
+
}, function(e3, t2, n2) {
|
|
19904
|
+
function r2(e4, t3, n3) {
|
|
19905
|
+
return t3 in e4 ? Object.defineProperty(e4, t3, { value: n3, enumerable: true, configurable: true, writable: true }) : e4[t3] = n3, e4;
|
|
19906
|
+
}
|
|
19907
|
+
Object.defineProperty(t2, "__esModule", { value: true }), t2.matchKeyEvent = p, t2.findMatchedKey = function(e4, t3) {
|
|
19908
|
+
var n3 = t3.map(function(e5) {
|
|
19909
|
+
var t4 = e5.toLowerCase(), n4 = f2[t4];
|
|
19910
|
+
return n4 || [e5];
|
|
19911
|
+
}).reduce(function(e5, t4) {
|
|
19912
|
+
return e5.concat(t4);
|
|
19913
|
+
}, []).find(function(t4) {
|
|
19914
|
+
return p(e4, t4);
|
|
19915
|
+
});
|
|
19916
|
+
!n3 && t3.includes("all") && (n3 = "other");
|
|
19917
|
+
return n3;
|
|
19918
|
+
};
|
|
19919
|
+
var o = { backspace: [8], del: [46], delete: [46], ins: [45], insert: [45], tab: [9], enter: [13], return: [13], esc: [27], space: [32], pageup: [33], pagedown: [34], end: [35], home: [36], left: [37], up: [38], right: [39], down: [40], shift: [16], ctrl: [17], alt: [18], cap: [20], num: [144], clear: [12], meta: [91], ";": [186, 59], "=": [187, 61], ",": [188, 44], "-": [189, 45, 173, 109], minus: [189, 45, 173, 109], ".": [190, 110], "/": [191, 111], "`": [192], "[": [219], "\\": [220], "]": [221], "*": [106], "+": [107], plus: [107], "'": [222], quote: [222] }, i = Object.keys(o).reduce(function(e4, t3) {
|
|
19920
|
+
return Object.assign(e4, r2({}, t3.toUpperCase(), o[t3]));
|
|
19921
|
+
}, {}), u = "0123456789".split("").reduce(function(e4, t3, n3) {
|
|
19922
|
+
return Object.assign(e4, r2({}, t3, [n3 + 48, n3 + 96]));
|
|
19923
|
+
}, {}), a2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").reduce(function(e4, t3, n3) {
|
|
19924
|
+
return Object.assign(e4, r2({}, t3.toLowerCase(), [n3 + 65]), r2({}, t3, [n3 + 65]));
|
|
19925
|
+
}, {}), l = "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19".split(",").reduce(function(e4, t3, n3) {
|
|
19926
|
+
return Object.assign(e4, r2({}, "f" + t3, [n3 + 112]));
|
|
19927
|
+
}, {}), s = { control: "ctrl", ctrl: "ctrl", shift: "shift", meta: "meta", cmd: "meta", command: "meta", option: "alt", alt: "alt" }, c2 = t2.AllKeys = Object.assign({}, o, i, u, a2, l), d2 = Object.assign({}, u, a2), f2 = { all: Object.keys(c2), alphanumeric: Object.keys(d2), numeric: Object.keys(u), alphabetic: Object.keys(a2), function: Object.keys(l) };
|
|
19928
|
+
function p(e4, t3) {
|
|
19929
|
+
var n3 = e4.which || e4.keyCode, r3 = e4.type, o2 = Object.keys(s).filter(function(t4) {
|
|
19930
|
+
return e4[t4 + "Key"];
|
|
19931
|
+
}).sort(), i2 = t3.toLowerCase().trim(), u2 = "+" === i2 ? ["+"] : i2.split(/\s?\+\s?/), a3 = u2.pop(), l2 = c2[a3], d3 = u2;
|
|
19932
|
+
if ("keypress" === r3) return t3 == String.fromCharCode(n3).toLowerCase();
|
|
19933
|
+
if (0 === d3.length && 0 === o2.length) return l2.indexOf(n3) >= 0;
|
|
19934
|
+
if (d3.length > 0 && o2.length > 0) {
|
|
19935
|
+
var f3 = d3.map(function(e5) {
|
|
19936
|
+
return s[e5];
|
|
19937
|
+
}).sort(), p2 = f3.length === o2.length && f3.every(function(e5, t4) {
|
|
19938
|
+
return o2[t4] === e5;
|
|
19939
|
+
});
|
|
19940
|
+
return l2.indexOf(n3) >= 0 && p2;
|
|
19941
|
+
}
|
|
19942
|
+
return 0 == d3.length && 1 === o2.length && a3 === o2[0];
|
|
19943
|
+
}
|
|
19944
|
+
}]);
|
|
19945
|
+
});
|
|
19946
|
+
})(reactKeyboardEventHandler);
|
|
19947
|
+
var reactKeyboardEventHandlerExports = reactKeyboardEventHandler.exports;
|
|
19948
|
+
const KeyboardEventHandler = /* @__PURE__ */ getDefaultExportFromCjs(reactKeyboardEventHandlerExports);
|
|
19771
19949
|
const useFocus = () => {
|
|
19772
19950
|
const ref2 = useRef(null);
|
|
19773
19951
|
const setFocus = () => {
|
|
@@ -19800,6 +19978,1019 @@ const useWindowWidth = () => {
|
|
|
19800
19978
|
}, []);
|
|
19801
19979
|
return width2;
|
|
19802
19980
|
};
|
|
19981
|
+
function _assertThisInitialized(e2) {
|
|
19982
|
+
if (void 0 === e2) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
19983
|
+
return e2;
|
|
19984
|
+
}
|
|
19985
|
+
var hasNativePerformanceNow = typeof performance === "object" && typeof performance.now === "function";
|
|
19986
|
+
var now = hasNativePerformanceNow ? function() {
|
|
19987
|
+
return performance.now();
|
|
19988
|
+
} : function() {
|
|
19989
|
+
return Date.now();
|
|
19990
|
+
};
|
|
19991
|
+
function cancelTimeout(timeoutID) {
|
|
19992
|
+
cancelAnimationFrame(timeoutID.id);
|
|
19993
|
+
}
|
|
19994
|
+
function requestTimeout(callback, delay) {
|
|
19995
|
+
var start3 = now();
|
|
19996
|
+
function tick() {
|
|
19997
|
+
if (now() - start3 >= delay) {
|
|
19998
|
+
callback.call(null);
|
|
19999
|
+
} else {
|
|
20000
|
+
timeoutID.id = requestAnimationFrame(tick);
|
|
20001
|
+
}
|
|
20002
|
+
}
|
|
20003
|
+
var timeoutID = {
|
|
20004
|
+
id: requestAnimationFrame(tick)
|
|
20005
|
+
};
|
|
20006
|
+
return timeoutID;
|
|
20007
|
+
}
|
|
20008
|
+
var size$1 = -1;
|
|
20009
|
+
function getScrollbarSize(recalculate) {
|
|
20010
|
+
if (recalculate === void 0) {
|
|
20011
|
+
recalculate = false;
|
|
20012
|
+
}
|
|
20013
|
+
if (size$1 === -1 || recalculate) {
|
|
20014
|
+
var div = document.createElement("div");
|
|
20015
|
+
var style2 = div.style;
|
|
20016
|
+
style2.width = "50px";
|
|
20017
|
+
style2.height = "50px";
|
|
20018
|
+
style2.overflow = "scroll";
|
|
20019
|
+
document.body.appendChild(div);
|
|
20020
|
+
size$1 = div.offsetWidth - div.clientWidth;
|
|
20021
|
+
document.body.removeChild(div);
|
|
20022
|
+
}
|
|
20023
|
+
return size$1;
|
|
20024
|
+
}
|
|
20025
|
+
var cachedRTLResult = null;
|
|
20026
|
+
function getRTLOffsetType(recalculate) {
|
|
20027
|
+
if (recalculate === void 0) {
|
|
20028
|
+
recalculate = false;
|
|
20029
|
+
}
|
|
20030
|
+
if (cachedRTLResult === null || recalculate) {
|
|
20031
|
+
var outerDiv = document.createElement("div");
|
|
20032
|
+
var outerStyle = outerDiv.style;
|
|
20033
|
+
outerStyle.width = "50px";
|
|
20034
|
+
outerStyle.height = "50px";
|
|
20035
|
+
outerStyle.overflow = "scroll";
|
|
20036
|
+
outerStyle.direction = "rtl";
|
|
20037
|
+
var innerDiv = document.createElement("div");
|
|
20038
|
+
var innerStyle = innerDiv.style;
|
|
20039
|
+
innerStyle.width = "100px";
|
|
20040
|
+
innerStyle.height = "100px";
|
|
20041
|
+
outerDiv.appendChild(innerDiv);
|
|
20042
|
+
document.body.appendChild(outerDiv);
|
|
20043
|
+
if (outerDiv.scrollLeft > 0) {
|
|
20044
|
+
cachedRTLResult = "positive-descending";
|
|
20045
|
+
} else {
|
|
20046
|
+
outerDiv.scrollLeft = 1;
|
|
20047
|
+
if (outerDiv.scrollLeft === 0) {
|
|
20048
|
+
cachedRTLResult = "negative";
|
|
20049
|
+
} else {
|
|
20050
|
+
cachedRTLResult = "positive-ascending";
|
|
20051
|
+
}
|
|
20052
|
+
}
|
|
20053
|
+
document.body.removeChild(outerDiv);
|
|
20054
|
+
return cachedRTLResult;
|
|
20055
|
+
}
|
|
20056
|
+
return cachedRTLResult;
|
|
20057
|
+
}
|
|
20058
|
+
if (process.env.NODE_ENV !== "production") ;
|
|
20059
|
+
var IS_SCROLLING_DEBOUNCE_INTERVAL$1 = 150;
|
|
20060
|
+
var defaultItemKey$1 = function defaultItemKey(index2, data) {
|
|
20061
|
+
return index2;
|
|
20062
|
+
};
|
|
20063
|
+
var devWarningsDirection = null;
|
|
20064
|
+
var devWarningsTagName$1 = null;
|
|
20065
|
+
if (process.env.NODE_ENV !== "production") {
|
|
20066
|
+
if (typeof window !== "undefined" && typeof window.WeakSet !== "undefined") {
|
|
20067
|
+
devWarningsDirection = /* @__PURE__ */ new WeakSet();
|
|
20068
|
+
devWarningsTagName$1 = /* @__PURE__ */ new WeakSet();
|
|
20069
|
+
}
|
|
20070
|
+
}
|
|
20071
|
+
function createListComponent(_ref) {
|
|
20072
|
+
var _class;
|
|
20073
|
+
var getItemOffset2 = _ref.getItemOffset, getEstimatedTotalSize2 = _ref.getEstimatedTotalSize, getItemSize2 = _ref.getItemSize, getOffsetForIndexAndAlignment2 = _ref.getOffsetForIndexAndAlignment, getStartIndexForOffset2 = _ref.getStartIndexForOffset, getStopIndexForStartIndex2 = _ref.getStopIndexForStartIndex, initInstanceProps2 = _ref.initInstanceProps, shouldResetStyleCacheOnItemSizeChange = _ref.shouldResetStyleCacheOnItemSizeChange, validateProps2 = _ref.validateProps;
|
|
20074
|
+
return _class = /* @__PURE__ */ function(_PureComponent) {
|
|
20075
|
+
_inheritsLoose$3(List2, _PureComponent);
|
|
20076
|
+
function List2(props) {
|
|
20077
|
+
var _this;
|
|
20078
|
+
_this = _PureComponent.call(this, props) || this;
|
|
20079
|
+
_this._instanceProps = initInstanceProps2(_this.props, _assertThisInitialized(_this));
|
|
20080
|
+
_this._outerRef = void 0;
|
|
20081
|
+
_this._resetIsScrollingTimeoutId = null;
|
|
20082
|
+
_this.state = {
|
|
20083
|
+
instance: _assertThisInitialized(_this),
|
|
20084
|
+
isScrolling: false,
|
|
20085
|
+
scrollDirection: "forward",
|
|
20086
|
+
scrollOffset: typeof _this.props.initialScrollOffset === "number" ? _this.props.initialScrollOffset : 0,
|
|
20087
|
+
scrollUpdateWasRequested: false
|
|
20088
|
+
};
|
|
20089
|
+
_this._callOnItemsRendered = void 0;
|
|
20090
|
+
_this._callOnItemsRendered = memoizeOne(function(overscanStartIndex, overscanStopIndex, visibleStartIndex, visibleStopIndex) {
|
|
20091
|
+
return _this.props.onItemsRendered({
|
|
20092
|
+
overscanStartIndex,
|
|
20093
|
+
overscanStopIndex,
|
|
20094
|
+
visibleStartIndex,
|
|
20095
|
+
visibleStopIndex
|
|
20096
|
+
});
|
|
20097
|
+
});
|
|
20098
|
+
_this._callOnScroll = void 0;
|
|
20099
|
+
_this._callOnScroll = memoizeOne(function(scrollDirection, scrollOffset, scrollUpdateWasRequested) {
|
|
20100
|
+
return _this.props.onScroll({
|
|
20101
|
+
scrollDirection,
|
|
20102
|
+
scrollOffset,
|
|
20103
|
+
scrollUpdateWasRequested
|
|
20104
|
+
});
|
|
20105
|
+
});
|
|
20106
|
+
_this._getItemStyle = void 0;
|
|
20107
|
+
_this._getItemStyle = function(index2) {
|
|
20108
|
+
var _this$props = _this.props, direction = _this$props.direction, itemSize = _this$props.itemSize, layout = _this$props.layout;
|
|
20109
|
+
var itemStyleCache = _this._getItemStyleCache(shouldResetStyleCacheOnItemSizeChange && itemSize, shouldResetStyleCacheOnItemSizeChange && layout, shouldResetStyleCacheOnItemSizeChange && direction);
|
|
20110
|
+
var style2;
|
|
20111
|
+
if (itemStyleCache.hasOwnProperty(index2)) {
|
|
20112
|
+
style2 = itemStyleCache[index2];
|
|
20113
|
+
} else {
|
|
20114
|
+
var _offset = getItemOffset2(_this.props, index2, _this._instanceProps);
|
|
20115
|
+
var size2 = getItemSize2(_this.props, index2, _this._instanceProps);
|
|
20116
|
+
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
20117
|
+
var isRtl = direction === "rtl";
|
|
20118
|
+
var offsetHorizontal = isHorizontal ? _offset : 0;
|
|
20119
|
+
itemStyleCache[index2] = style2 = {
|
|
20120
|
+
position: "absolute",
|
|
20121
|
+
left: isRtl ? void 0 : offsetHorizontal,
|
|
20122
|
+
right: isRtl ? offsetHorizontal : void 0,
|
|
20123
|
+
top: !isHorizontal ? _offset : 0,
|
|
20124
|
+
height: !isHorizontal ? size2 : "100%",
|
|
20125
|
+
width: isHorizontal ? size2 : "100%"
|
|
20126
|
+
};
|
|
20127
|
+
}
|
|
20128
|
+
return style2;
|
|
20129
|
+
};
|
|
20130
|
+
_this._getItemStyleCache = void 0;
|
|
20131
|
+
_this._getItemStyleCache = memoizeOne(function(_2, __, ___) {
|
|
20132
|
+
return {};
|
|
20133
|
+
});
|
|
20134
|
+
_this._onScrollHorizontal = function(event) {
|
|
20135
|
+
var _event$currentTarget = event.currentTarget, clientWidth = _event$currentTarget.clientWidth, scrollLeft = _event$currentTarget.scrollLeft, scrollWidth = _event$currentTarget.scrollWidth;
|
|
20136
|
+
_this.setState(function(prevState) {
|
|
20137
|
+
if (prevState.scrollOffset === scrollLeft) {
|
|
20138
|
+
return null;
|
|
20139
|
+
}
|
|
20140
|
+
var direction = _this.props.direction;
|
|
20141
|
+
var scrollOffset = scrollLeft;
|
|
20142
|
+
if (direction === "rtl") {
|
|
20143
|
+
switch (getRTLOffsetType()) {
|
|
20144
|
+
case "negative":
|
|
20145
|
+
scrollOffset = -scrollLeft;
|
|
20146
|
+
break;
|
|
20147
|
+
case "positive-descending":
|
|
20148
|
+
scrollOffset = scrollWidth - clientWidth - scrollLeft;
|
|
20149
|
+
break;
|
|
20150
|
+
}
|
|
20151
|
+
}
|
|
20152
|
+
scrollOffset = Math.max(0, Math.min(scrollOffset, scrollWidth - clientWidth));
|
|
20153
|
+
return {
|
|
20154
|
+
isScrolling: true,
|
|
20155
|
+
scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
|
|
20156
|
+
scrollOffset,
|
|
20157
|
+
scrollUpdateWasRequested: false
|
|
20158
|
+
};
|
|
20159
|
+
}, _this._resetIsScrollingDebounced);
|
|
20160
|
+
};
|
|
20161
|
+
_this._onScrollVertical = function(event) {
|
|
20162
|
+
var _event$currentTarget2 = event.currentTarget, clientHeight = _event$currentTarget2.clientHeight, scrollHeight = _event$currentTarget2.scrollHeight, scrollTop = _event$currentTarget2.scrollTop;
|
|
20163
|
+
_this.setState(function(prevState) {
|
|
20164
|
+
if (prevState.scrollOffset === scrollTop) {
|
|
20165
|
+
return null;
|
|
20166
|
+
}
|
|
20167
|
+
var scrollOffset = Math.max(0, Math.min(scrollTop, scrollHeight - clientHeight));
|
|
20168
|
+
return {
|
|
20169
|
+
isScrolling: true,
|
|
20170
|
+
scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
|
|
20171
|
+
scrollOffset,
|
|
20172
|
+
scrollUpdateWasRequested: false
|
|
20173
|
+
};
|
|
20174
|
+
}, _this._resetIsScrollingDebounced);
|
|
20175
|
+
};
|
|
20176
|
+
_this._outerRefSetter = function(ref2) {
|
|
20177
|
+
var outerRef = _this.props.outerRef;
|
|
20178
|
+
_this._outerRef = ref2;
|
|
20179
|
+
if (typeof outerRef === "function") {
|
|
20180
|
+
outerRef(ref2);
|
|
20181
|
+
} else if (outerRef != null && typeof outerRef === "object" && outerRef.hasOwnProperty("current")) {
|
|
20182
|
+
outerRef.current = ref2;
|
|
20183
|
+
}
|
|
20184
|
+
};
|
|
20185
|
+
_this._resetIsScrollingDebounced = function() {
|
|
20186
|
+
if (_this._resetIsScrollingTimeoutId !== null) {
|
|
20187
|
+
cancelTimeout(_this._resetIsScrollingTimeoutId);
|
|
20188
|
+
}
|
|
20189
|
+
_this._resetIsScrollingTimeoutId = requestTimeout(_this._resetIsScrolling, IS_SCROLLING_DEBOUNCE_INTERVAL$1);
|
|
20190
|
+
};
|
|
20191
|
+
_this._resetIsScrolling = function() {
|
|
20192
|
+
_this._resetIsScrollingTimeoutId = null;
|
|
20193
|
+
_this.setState({
|
|
20194
|
+
isScrolling: false
|
|
20195
|
+
}, function() {
|
|
20196
|
+
_this._getItemStyleCache(-1, null);
|
|
20197
|
+
});
|
|
20198
|
+
};
|
|
20199
|
+
return _this;
|
|
20200
|
+
}
|
|
20201
|
+
List2.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {
|
|
20202
|
+
validateSharedProps$1(nextProps, prevState);
|
|
20203
|
+
validateProps2(nextProps);
|
|
20204
|
+
return null;
|
|
20205
|
+
};
|
|
20206
|
+
var _proto = List2.prototype;
|
|
20207
|
+
_proto.scrollTo = function scrollTo(scrollOffset) {
|
|
20208
|
+
scrollOffset = Math.max(0, scrollOffset);
|
|
20209
|
+
this.setState(function(prevState) {
|
|
20210
|
+
if (prevState.scrollOffset === scrollOffset) {
|
|
20211
|
+
return null;
|
|
20212
|
+
}
|
|
20213
|
+
return {
|
|
20214
|
+
scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
|
|
20215
|
+
scrollOffset,
|
|
20216
|
+
scrollUpdateWasRequested: true
|
|
20217
|
+
};
|
|
20218
|
+
}, this._resetIsScrollingDebounced);
|
|
20219
|
+
};
|
|
20220
|
+
_proto.scrollToItem = function scrollToItem(index2, align) {
|
|
20221
|
+
if (align === void 0) {
|
|
20222
|
+
align = "auto";
|
|
20223
|
+
}
|
|
20224
|
+
var _this$props2 = this.props, itemCount = _this$props2.itemCount, layout = _this$props2.layout;
|
|
20225
|
+
var scrollOffset = this.state.scrollOffset;
|
|
20226
|
+
index2 = Math.max(0, Math.min(index2, itemCount - 1));
|
|
20227
|
+
var scrollbarSize = 0;
|
|
20228
|
+
if (this._outerRef) {
|
|
20229
|
+
var outerRef = this._outerRef;
|
|
20230
|
+
if (layout === "vertical") {
|
|
20231
|
+
scrollbarSize = outerRef.scrollWidth > outerRef.clientWidth ? getScrollbarSize() : 0;
|
|
20232
|
+
} else {
|
|
20233
|
+
scrollbarSize = outerRef.scrollHeight > outerRef.clientHeight ? getScrollbarSize() : 0;
|
|
20234
|
+
}
|
|
20235
|
+
}
|
|
20236
|
+
this.scrollTo(getOffsetForIndexAndAlignment2(this.props, index2, align, scrollOffset, this._instanceProps, scrollbarSize));
|
|
20237
|
+
};
|
|
20238
|
+
_proto.componentDidMount = function componentDidMount() {
|
|
20239
|
+
var _this$props3 = this.props, direction = _this$props3.direction, initialScrollOffset = _this$props3.initialScrollOffset, layout = _this$props3.layout;
|
|
20240
|
+
if (typeof initialScrollOffset === "number" && this._outerRef != null) {
|
|
20241
|
+
var outerRef = this._outerRef;
|
|
20242
|
+
if (direction === "horizontal" || layout === "horizontal") {
|
|
20243
|
+
outerRef.scrollLeft = initialScrollOffset;
|
|
20244
|
+
} else {
|
|
20245
|
+
outerRef.scrollTop = initialScrollOffset;
|
|
20246
|
+
}
|
|
20247
|
+
}
|
|
20248
|
+
this._callPropsCallbacks();
|
|
20249
|
+
};
|
|
20250
|
+
_proto.componentDidUpdate = function componentDidUpdate() {
|
|
20251
|
+
var _this$props4 = this.props, direction = _this$props4.direction, layout = _this$props4.layout;
|
|
20252
|
+
var _this$state = this.state, scrollOffset = _this$state.scrollOffset, scrollUpdateWasRequested = _this$state.scrollUpdateWasRequested;
|
|
20253
|
+
if (scrollUpdateWasRequested && this._outerRef != null) {
|
|
20254
|
+
var outerRef = this._outerRef;
|
|
20255
|
+
if (direction === "horizontal" || layout === "horizontal") {
|
|
20256
|
+
if (direction === "rtl") {
|
|
20257
|
+
switch (getRTLOffsetType()) {
|
|
20258
|
+
case "negative":
|
|
20259
|
+
outerRef.scrollLeft = -scrollOffset;
|
|
20260
|
+
break;
|
|
20261
|
+
case "positive-ascending":
|
|
20262
|
+
outerRef.scrollLeft = scrollOffset;
|
|
20263
|
+
break;
|
|
20264
|
+
default:
|
|
20265
|
+
var clientWidth = outerRef.clientWidth, scrollWidth = outerRef.scrollWidth;
|
|
20266
|
+
outerRef.scrollLeft = scrollWidth - clientWidth - scrollOffset;
|
|
20267
|
+
break;
|
|
20268
|
+
}
|
|
20269
|
+
} else {
|
|
20270
|
+
outerRef.scrollLeft = scrollOffset;
|
|
20271
|
+
}
|
|
20272
|
+
} else {
|
|
20273
|
+
outerRef.scrollTop = scrollOffset;
|
|
20274
|
+
}
|
|
20275
|
+
}
|
|
20276
|
+
this._callPropsCallbacks();
|
|
20277
|
+
};
|
|
20278
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
20279
|
+
if (this._resetIsScrollingTimeoutId !== null) {
|
|
20280
|
+
cancelTimeout(this._resetIsScrollingTimeoutId);
|
|
20281
|
+
}
|
|
20282
|
+
};
|
|
20283
|
+
_proto.render = function render2() {
|
|
20284
|
+
var _this$props5 = this.props, children = _this$props5.children, className = _this$props5.className, direction = _this$props5.direction, height2 = _this$props5.height, innerRef = _this$props5.innerRef, innerElementType = _this$props5.innerElementType, innerTagName = _this$props5.innerTagName, itemCount = _this$props5.itemCount, itemData = _this$props5.itemData, _this$props5$itemKey = _this$props5.itemKey, itemKey = _this$props5$itemKey === void 0 ? defaultItemKey$1 : _this$props5$itemKey, layout = _this$props5.layout, outerElementType = _this$props5.outerElementType, outerTagName = _this$props5.outerTagName, style2 = _this$props5.style, useIsScrolling = _this$props5.useIsScrolling, width2 = _this$props5.width;
|
|
20285
|
+
var isScrolling = this.state.isScrolling;
|
|
20286
|
+
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
20287
|
+
var onScroll = isHorizontal ? this._onScrollHorizontal : this._onScrollVertical;
|
|
20288
|
+
var _this$_getRangeToRend = this._getRangeToRender(), startIndex = _this$_getRangeToRend[0], stopIndex = _this$_getRangeToRend[1];
|
|
20289
|
+
var items = [];
|
|
20290
|
+
if (itemCount > 0) {
|
|
20291
|
+
for (var _index = startIndex; _index <= stopIndex; _index++) {
|
|
20292
|
+
items.push(createElement(children, {
|
|
20293
|
+
data: itemData,
|
|
20294
|
+
key: itemKey(_index, itemData),
|
|
20295
|
+
index: _index,
|
|
20296
|
+
isScrolling: useIsScrolling ? isScrolling : void 0,
|
|
20297
|
+
style: this._getItemStyle(_index)
|
|
20298
|
+
}));
|
|
20299
|
+
}
|
|
20300
|
+
}
|
|
20301
|
+
var estimatedTotalSize = getEstimatedTotalSize2(this.props, this._instanceProps);
|
|
20302
|
+
return createElement(outerElementType || outerTagName || "div", {
|
|
20303
|
+
className,
|
|
20304
|
+
onScroll,
|
|
20305
|
+
ref: this._outerRefSetter,
|
|
20306
|
+
style: _extends$4({
|
|
20307
|
+
position: "relative",
|
|
20308
|
+
height: height2,
|
|
20309
|
+
width: width2,
|
|
20310
|
+
overflow: "auto",
|
|
20311
|
+
WebkitOverflowScrolling: "touch",
|
|
20312
|
+
willChange: "transform",
|
|
20313
|
+
direction
|
|
20314
|
+
}, style2)
|
|
20315
|
+
}, createElement(innerElementType || innerTagName || "div", {
|
|
20316
|
+
children: items,
|
|
20317
|
+
ref: innerRef,
|
|
20318
|
+
style: {
|
|
20319
|
+
height: isHorizontal ? "100%" : estimatedTotalSize,
|
|
20320
|
+
pointerEvents: isScrolling ? "none" : void 0,
|
|
20321
|
+
width: isHorizontal ? estimatedTotalSize : "100%"
|
|
20322
|
+
}
|
|
20323
|
+
}));
|
|
20324
|
+
};
|
|
20325
|
+
_proto._callPropsCallbacks = function _callPropsCallbacks() {
|
|
20326
|
+
if (typeof this.props.onItemsRendered === "function") {
|
|
20327
|
+
var itemCount = this.props.itemCount;
|
|
20328
|
+
if (itemCount > 0) {
|
|
20329
|
+
var _this$_getRangeToRend2 = this._getRangeToRender(), _overscanStartIndex = _this$_getRangeToRend2[0], _overscanStopIndex = _this$_getRangeToRend2[1], _visibleStartIndex = _this$_getRangeToRend2[2], _visibleStopIndex = _this$_getRangeToRend2[3];
|
|
20330
|
+
this._callOnItemsRendered(_overscanStartIndex, _overscanStopIndex, _visibleStartIndex, _visibleStopIndex);
|
|
20331
|
+
}
|
|
20332
|
+
}
|
|
20333
|
+
if (typeof this.props.onScroll === "function") {
|
|
20334
|
+
var _this$state2 = this.state, _scrollDirection = _this$state2.scrollDirection, _scrollOffset = _this$state2.scrollOffset, _scrollUpdateWasRequested = _this$state2.scrollUpdateWasRequested;
|
|
20335
|
+
this._callOnScroll(_scrollDirection, _scrollOffset, _scrollUpdateWasRequested);
|
|
20336
|
+
}
|
|
20337
|
+
};
|
|
20338
|
+
_proto._getRangeToRender = function _getRangeToRender() {
|
|
20339
|
+
var _this$props6 = this.props, itemCount = _this$props6.itemCount, overscanCount = _this$props6.overscanCount;
|
|
20340
|
+
var _this$state3 = this.state, isScrolling = _this$state3.isScrolling, scrollDirection = _this$state3.scrollDirection, scrollOffset = _this$state3.scrollOffset;
|
|
20341
|
+
if (itemCount === 0) {
|
|
20342
|
+
return [0, 0, 0, 0];
|
|
20343
|
+
}
|
|
20344
|
+
var startIndex = getStartIndexForOffset2(this.props, scrollOffset, this._instanceProps);
|
|
20345
|
+
var stopIndex = getStopIndexForStartIndex2(this.props, startIndex, scrollOffset, this._instanceProps);
|
|
20346
|
+
var overscanBackward = !isScrolling || scrollDirection === "backward" ? Math.max(1, overscanCount) : 1;
|
|
20347
|
+
var overscanForward = !isScrolling || scrollDirection === "forward" ? Math.max(1, overscanCount) : 1;
|
|
20348
|
+
return [Math.max(0, startIndex - overscanBackward), Math.max(0, Math.min(itemCount - 1, stopIndex + overscanForward)), startIndex, stopIndex];
|
|
20349
|
+
};
|
|
20350
|
+
return List2;
|
|
20351
|
+
}(PureComponent), _class.defaultProps = {
|
|
20352
|
+
direction: "ltr",
|
|
20353
|
+
itemData: void 0,
|
|
20354
|
+
layout: "vertical",
|
|
20355
|
+
overscanCount: 2,
|
|
20356
|
+
useIsScrolling: false
|
|
20357
|
+
}, _class;
|
|
20358
|
+
}
|
|
20359
|
+
var validateSharedProps$1 = function validateSharedProps(_ref2, _ref3) {
|
|
20360
|
+
var children = _ref2.children, direction = _ref2.direction, height2 = _ref2.height, layout = _ref2.layout, innerTagName = _ref2.innerTagName, outerTagName = _ref2.outerTagName, width2 = _ref2.width;
|
|
20361
|
+
var instance = _ref3.instance;
|
|
20362
|
+
if (process.env.NODE_ENV !== "production") {
|
|
20363
|
+
if (innerTagName != null || outerTagName != null) {
|
|
20364
|
+
if (devWarningsTagName$1 && !devWarningsTagName$1.has(instance)) {
|
|
20365
|
+
devWarningsTagName$1.add(instance);
|
|
20366
|
+
console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.");
|
|
20367
|
+
}
|
|
20368
|
+
}
|
|
20369
|
+
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
20370
|
+
switch (direction) {
|
|
20371
|
+
case "horizontal":
|
|
20372
|
+
case "vertical":
|
|
20373
|
+
if (devWarningsDirection && !devWarningsDirection.has(instance)) {
|
|
20374
|
+
devWarningsDirection.add(instance);
|
|
20375
|
+
console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.');
|
|
20376
|
+
}
|
|
20377
|
+
break;
|
|
20378
|
+
case "ltr":
|
|
20379
|
+
case "rtl":
|
|
20380
|
+
break;
|
|
20381
|
+
default:
|
|
20382
|
+
throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + direction + '" was specified.'));
|
|
20383
|
+
}
|
|
20384
|
+
switch (layout) {
|
|
20385
|
+
case "horizontal":
|
|
20386
|
+
case "vertical":
|
|
20387
|
+
break;
|
|
20388
|
+
default:
|
|
20389
|
+
throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". ' + ('"' + layout + '" was specified.'));
|
|
20390
|
+
}
|
|
20391
|
+
if (children == null) {
|
|
20392
|
+
throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (children === null ? "null" : typeof children) + '" was specified.'));
|
|
20393
|
+
}
|
|
20394
|
+
if (isHorizontal && typeof width2 !== "number") {
|
|
20395
|
+
throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. ' + ('"' + (width2 === null ? "null" : typeof width2) + '" was specified.'));
|
|
20396
|
+
} else if (!isHorizontal && typeof height2 !== "number") {
|
|
20397
|
+
throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. ' + ('"' + (height2 === null ? "null" : typeof height2) + '" was specified.'));
|
|
20398
|
+
}
|
|
20399
|
+
}
|
|
20400
|
+
};
|
|
20401
|
+
var FixedSizeList = /* @__PURE__ */ createListComponent({
|
|
20402
|
+
getItemOffset: function getItemOffset(_ref, index2) {
|
|
20403
|
+
var itemSize = _ref.itemSize;
|
|
20404
|
+
return index2 * itemSize;
|
|
20405
|
+
},
|
|
20406
|
+
getItemSize: function getItemSize(_ref2, index2) {
|
|
20407
|
+
var itemSize = _ref2.itemSize;
|
|
20408
|
+
return itemSize;
|
|
20409
|
+
},
|
|
20410
|
+
getEstimatedTotalSize: function getEstimatedTotalSize(_ref3) {
|
|
20411
|
+
var itemCount = _ref3.itemCount, itemSize = _ref3.itemSize;
|
|
20412
|
+
return itemSize * itemCount;
|
|
20413
|
+
},
|
|
20414
|
+
getOffsetForIndexAndAlignment: function getOffsetForIndexAndAlignment(_ref4, index2, align, scrollOffset, instanceProps, scrollbarSize) {
|
|
20415
|
+
var direction = _ref4.direction, height2 = _ref4.height, itemCount = _ref4.itemCount, itemSize = _ref4.itemSize, layout = _ref4.layout, width2 = _ref4.width;
|
|
20416
|
+
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
20417
|
+
var size2 = isHorizontal ? width2 : height2;
|
|
20418
|
+
var lastItemOffset = Math.max(0, itemCount * itemSize - size2);
|
|
20419
|
+
var maxOffset = Math.min(lastItemOffset, index2 * itemSize);
|
|
20420
|
+
var minOffset = Math.max(0, index2 * itemSize - size2 + itemSize + scrollbarSize);
|
|
20421
|
+
if (align === "smart") {
|
|
20422
|
+
if (scrollOffset >= minOffset - size2 && scrollOffset <= maxOffset + size2) {
|
|
20423
|
+
align = "auto";
|
|
20424
|
+
} else {
|
|
20425
|
+
align = "center";
|
|
20426
|
+
}
|
|
20427
|
+
}
|
|
20428
|
+
switch (align) {
|
|
20429
|
+
case "start":
|
|
20430
|
+
return maxOffset;
|
|
20431
|
+
case "end":
|
|
20432
|
+
return minOffset;
|
|
20433
|
+
case "center": {
|
|
20434
|
+
var middleOffset = Math.round(minOffset + (maxOffset - minOffset) / 2);
|
|
20435
|
+
if (middleOffset < Math.ceil(size2 / 2)) {
|
|
20436
|
+
return 0;
|
|
20437
|
+
} else if (middleOffset > lastItemOffset + Math.floor(size2 / 2)) {
|
|
20438
|
+
return lastItemOffset;
|
|
20439
|
+
} else {
|
|
20440
|
+
return middleOffset;
|
|
20441
|
+
}
|
|
20442
|
+
}
|
|
20443
|
+
case "auto":
|
|
20444
|
+
default:
|
|
20445
|
+
if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {
|
|
20446
|
+
return scrollOffset;
|
|
20447
|
+
} else if (scrollOffset < minOffset) {
|
|
20448
|
+
return minOffset;
|
|
20449
|
+
} else {
|
|
20450
|
+
return maxOffset;
|
|
20451
|
+
}
|
|
20452
|
+
}
|
|
20453
|
+
},
|
|
20454
|
+
getStartIndexForOffset: function getStartIndexForOffset(_ref5, offset3) {
|
|
20455
|
+
var itemCount = _ref5.itemCount, itemSize = _ref5.itemSize;
|
|
20456
|
+
return Math.max(0, Math.min(itemCount - 1, Math.floor(offset3 / itemSize)));
|
|
20457
|
+
},
|
|
20458
|
+
getStopIndexForStartIndex: function getStopIndexForStartIndex(_ref6, startIndex, scrollOffset) {
|
|
20459
|
+
var direction = _ref6.direction, height2 = _ref6.height, itemCount = _ref6.itemCount, itemSize = _ref6.itemSize, layout = _ref6.layout, width2 = _ref6.width;
|
|
20460
|
+
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
20461
|
+
var offset3 = startIndex * itemSize;
|
|
20462
|
+
var size2 = isHorizontal ? width2 : height2;
|
|
20463
|
+
var numVisibleItems = Math.ceil((size2 + scrollOffset - offset3) / itemSize);
|
|
20464
|
+
return Math.max(0, Math.min(
|
|
20465
|
+
itemCount - 1,
|
|
20466
|
+
startIndex + numVisibleItems - 1
|
|
20467
|
+
// -1 is because stop index is inclusive
|
|
20468
|
+
));
|
|
20469
|
+
},
|
|
20470
|
+
initInstanceProps: function initInstanceProps(props) {
|
|
20471
|
+
},
|
|
20472
|
+
shouldResetStyleCacheOnItemSizeChange: true,
|
|
20473
|
+
validateProps: function validateProps(_ref7) {
|
|
20474
|
+
var itemSize = _ref7.itemSize;
|
|
20475
|
+
if (process.env.NODE_ENV !== "production") {
|
|
20476
|
+
if (typeof itemSize !== "number") {
|
|
20477
|
+
throw Error('An invalid "itemSize" prop has been specified. Value should be a number. ' + ('"' + (itemSize === null ? "null" : typeof itemSize) + '" was specified.'));
|
|
20478
|
+
}
|
|
20479
|
+
}
|
|
20480
|
+
}
|
|
20481
|
+
});
|
|
20482
|
+
const layerContainer = "_layerContainer_dw2pp_1";
|
|
20483
|
+
const layer = "_layer_dw2pp_1";
|
|
20484
|
+
const small$5 = "_small_dw2pp_23";
|
|
20485
|
+
const heading = "_heading_dw2pp_26";
|
|
20486
|
+
const option = "_option_dw2pp_27";
|
|
20487
|
+
const message = "_message_dw2pp_28";
|
|
20488
|
+
const focused = "_focused_dw2pp_64";
|
|
20489
|
+
const selected = "_selected_dw2pp_68";
|
|
20490
|
+
const disabled$4 = "_disabled_dw2pp_71";
|
|
20491
|
+
const check = "_check_dw2pp_75";
|
|
20492
|
+
const optionContent = "_optionContent_dw2pp_92";
|
|
20493
|
+
const label$5 = "_label_dw2pp_97";
|
|
20494
|
+
const icon$2 = "_icon_dw2pp_104";
|
|
20495
|
+
const details = "_details_dw2pp_109";
|
|
20496
|
+
const styles$n = {
|
|
20497
|
+
layerContainer,
|
|
20498
|
+
layer,
|
|
20499
|
+
small: small$5,
|
|
20500
|
+
heading,
|
|
20501
|
+
option,
|
|
20502
|
+
message,
|
|
20503
|
+
focused,
|
|
20504
|
+
selected,
|
|
20505
|
+
disabled: disabled$4,
|
|
20506
|
+
check,
|
|
20507
|
+
optionContent,
|
|
20508
|
+
label: label$5,
|
|
20509
|
+
icon: icon$2,
|
|
20510
|
+
details
|
|
20511
|
+
};
|
|
20512
|
+
const Heading = ({ label: label2 }) => {
|
|
20513
|
+
return /* @__PURE__ */ jsx(
|
|
20514
|
+
"div",
|
|
20515
|
+
{
|
|
20516
|
+
onClick: (evt) => evt.stopPropagation(),
|
|
20517
|
+
className: styles$n.heading,
|
|
20518
|
+
children: label2
|
|
20519
|
+
}
|
|
20520
|
+
);
|
|
20521
|
+
};
|
|
20522
|
+
const Option = ({
|
|
20523
|
+
details: details2,
|
|
20524
|
+
label: label2,
|
|
20525
|
+
icon: icon2,
|
|
20526
|
+
disabled: disabled2 = false,
|
|
20527
|
+
selected: selected2 = false,
|
|
20528
|
+
focused: focused2 = false,
|
|
20529
|
+
onSelectOption,
|
|
20530
|
+
actions: actions2,
|
|
20531
|
+
closeLayer,
|
|
20532
|
+
testId
|
|
20533
|
+
}) => {
|
|
20534
|
+
return /* @__PURE__ */ jsxs(
|
|
20535
|
+
"div",
|
|
20536
|
+
{
|
|
20537
|
+
className: cx$2(
|
|
20538
|
+
styles$n.option,
|
|
20539
|
+
disabled2 ? styles$n.disabled : "",
|
|
20540
|
+
selected2 ? styles$n.selected : "",
|
|
20541
|
+
focused2 ? styles$n.focused : ""
|
|
20542
|
+
),
|
|
20543
|
+
onClick: !disabled2 && onSelectOption ? onSelectOption : void 0,
|
|
20544
|
+
"data-testid": testId,
|
|
20545
|
+
children: [
|
|
20546
|
+
/* @__PURE__ */ jsx("div", { className: styles$n.optionContent, children: /* @__PURE__ */ jsxs("span", { className: styles$n.label, title: label2, children: [
|
|
20547
|
+
label2,
|
|
20548
|
+
icon2 && /* @__PURE__ */ jsx("span", { className: styles$n.icon, children: icon2 })
|
|
20549
|
+
] }) }),
|
|
20550
|
+
details2 && /* @__PURE__ */ jsx("div", { className: cx$2(styles$n.details), children: /* @__PURE__ */ jsx(Text, { faint: true, children: details2 }) }),
|
|
20551
|
+
!!(actions2 == null ? void 0 : actions2.length) && /* @__PURE__ */ jsx("div", { className: cx$2(styles$n.actions), children: /* @__PURE__ */ jsx(Actions, { actions: actions2, closeLayer }) }),
|
|
20552
|
+
/* @__PURE__ */ jsx("span", { className: styles$n.check, children: selected2 ? /* @__PURE__ */ jsx(Icon, { icon: IconType.CHECK }) : null })
|
|
20553
|
+
]
|
|
20554
|
+
}
|
|
20555
|
+
);
|
|
20556
|
+
};
|
|
20557
|
+
const Section = ({
|
|
20558
|
+
section: section2,
|
|
20559
|
+
selected: selected2,
|
|
20560
|
+
focused: focused2,
|
|
20561
|
+
onSelectOption,
|
|
20562
|
+
closeLayer
|
|
20563
|
+
}) => {
|
|
20564
|
+
const disabledContext = useContext(DisabledContext);
|
|
20565
|
+
switch (section2.type) {
|
|
20566
|
+
case MenuType.HEADING:
|
|
20567
|
+
return /* @__PURE__ */ jsx(Heading, { label: section2.label });
|
|
20568
|
+
case MenuType.OPTION:
|
|
20569
|
+
default:
|
|
20570
|
+
return /* @__PURE__ */ jsx(
|
|
20571
|
+
Option,
|
|
20572
|
+
{
|
|
20573
|
+
closeLayer,
|
|
20574
|
+
actions: section2.actions,
|
|
20575
|
+
label: section2.label,
|
|
20576
|
+
details: section2.details,
|
|
20577
|
+
icon: section2.icon,
|
|
20578
|
+
disabled: section2.disabled || disabledContext,
|
|
20579
|
+
selected: selected2,
|
|
20580
|
+
focused: focused2,
|
|
20581
|
+
onSelectOption,
|
|
20582
|
+
testId: section2.testId
|
|
20583
|
+
}
|
|
20584
|
+
);
|
|
20585
|
+
}
|
|
20586
|
+
};
|
|
20587
|
+
const getTextWidth = (text2, font) => {
|
|
20588
|
+
const element = document.createElement("canvas");
|
|
20589
|
+
const context2 = element.getContext("2d");
|
|
20590
|
+
if (!context2) {
|
|
20591
|
+
return 0;
|
|
20592
|
+
}
|
|
20593
|
+
context2.font = font;
|
|
20594
|
+
return context2.measureText(text2).width;
|
|
20595
|
+
};
|
|
20596
|
+
const FONT_SIZE = "13px";
|
|
20597
|
+
const FONT_SIZE_SMALL = "12px";
|
|
20598
|
+
const FONT_FAMILY = "Roobert";
|
|
20599
|
+
const FONT_FAMILY_FALLBACK = "sans-serif";
|
|
20600
|
+
const PADDING = 12;
|
|
20601
|
+
const PADDING_SMALL = 8;
|
|
20602
|
+
const TOGGLE_SIZE = 30;
|
|
20603
|
+
const TOGGLE_SIZE_SMALL = 24;
|
|
20604
|
+
const TAG_PADDING = 5;
|
|
20605
|
+
const TAG_PADDING_SMALL = 3;
|
|
20606
|
+
const TAG_BORDER_WIDTH = 1;
|
|
20607
|
+
const TAG_MARGIN = 2;
|
|
20608
|
+
const MAX_OPTIONS_LENGTH = 10;
|
|
20609
|
+
const getFont = (small2 = false, isFontLoaded = false) => {
|
|
20610
|
+
const fontSize = small2 ? FONT_SIZE_SMALL : FONT_SIZE;
|
|
20611
|
+
const fontFamily = isFontLoaded ? FONT_FAMILY : FONT_FAMILY_FALLBACK;
|
|
20612
|
+
return `${fontSize} ${fontFamily}`;
|
|
20613
|
+
};
|
|
20614
|
+
const getExtraOptionWidth = (small2 = false, scrollbar = false) => {
|
|
20615
|
+
const SCROLLBAR_WIDTH = 17;
|
|
20616
|
+
return (small2 ? PADDING_SMALL : PADDING) + (small2 ? TOGGLE_SIZE_SMALL : TOGGLE_SIZE) + (scrollbar ? SCROLLBAR_WIDTH : 0);
|
|
20617
|
+
};
|
|
20618
|
+
const getWidestOptionWidth = (options, small2, isFontLoaded, placeholder3) => {
|
|
20619
|
+
const font = getFont(small2, isFontLoaded);
|
|
20620
|
+
const placeholderWidth = placeholder3 ? getTextWidth(placeholder3, font) : 0;
|
|
20621
|
+
const widestTextWidth = Math.ceil(
|
|
20622
|
+
options.reduce((acc, option2) => {
|
|
20623
|
+
var _a2;
|
|
20624
|
+
const optionActionsWidth = (((_a2 = option2 == null ? void 0 : option2.actions) == null ? void 0 : _a2.length) ?? 0) * 24;
|
|
20625
|
+
const optionIconWidth = option2.icon ? (small2 ? parseInt(FONT_SIZE_SMALL) : parseInt(FONT_SIZE)) + 7 : 0;
|
|
20626
|
+
const optionsText = `${option2.label} ${option2.details || ""}`;
|
|
20627
|
+
const optionWidth = getTextWidth(optionsText, font) + optionActionsWidth + optionIconWidth;
|
|
20628
|
+
acc = optionWidth > acc ? optionWidth : acc;
|
|
20629
|
+
return acc;
|
|
20630
|
+
}, placeholderWidth)
|
|
20631
|
+
);
|
|
20632
|
+
const extraWidth = getExtraOptionWidth(small2, true);
|
|
20633
|
+
return widestTextWidth + extraWidth;
|
|
20634
|
+
};
|
|
20635
|
+
const getMultiOptionWidth = (option2, small2, isFontLoaded) => {
|
|
20636
|
+
const font = getFont(true, isFontLoaded);
|
|
20637
|
+
const textWidth = getTextWidth(option2.label, font);
|
|
20638
|
+
const extraWidth = (small2 ? TAG_PADDING_SMALL : TAG_PADDING) * 2 + TAG_BORDER_WIDTH * 2 + TAG_MARGIN;
|
|
20639
|
+
return Math.ceil(textWidth + extraWidth);
|
|
20640
|
+
};
|
|
20641
|
+
const Layer = ({
|
|
20642
|
+
listRef,
|
|
20643
|
+
isMulti: isMulti2,
|
|
20644
|
+
sections,
|
|
20645
|
+
selectedOptions,
|
|
20646
|
+
onSelectOption,
|
|
20647
|
+
focusedOptionIndex,
|
|
20648
|
+
width: width2,
|
|
20649
|
+
small: small2,
|
|
20650
|
+
firstSelectedOptionIndex,
|
|
20651
|
+
closeLayer,
|
|
20652
|
+
testId
|
|
20653
|
+
}) => {
|
|
20654
|
+
useEffect(() => {
|
|
20655
|
+
if (firstSelectedOptionIndex && firstSelectedOptionIndex !== null && listRef.current !== null) {
|
|
20656
|
+
listRef.current.scrollToItem(firstSelectedOptionIndex, "start");
|
|
20657
|
+
}
|
|
20658
|
+
}, [firstSelectedOptionIndex, listRef]);
|
|
20659
|
+
const optionHeight = small2 ? 24 : 30;
|
|
20660
|
+
return /* @__PURE__ */ jsx(
|
|
20661
|
+
"div",
|
|
20662
|
+
{
|
|
20663
|
+
"data-testid": testId,
|
|
20664
|
+
className: cx$2(styles$n.layer, small2 && styles$n.small),
|
|
20665
|
+
children: !sections.length ? /* @__PURE__ */ jsx("ul", { children: /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("div", { className: styles$n.message, style: { width: width2 }, children: "No matches" }) }) }) : /* @__PURE__ */ jsx(
|
|
20666
|
+
FixedSizeList,
|
|
20667
|
+
{
|
|
20668
|
+
ref: listRef,
|
|
20669
|
+
height: sections.length < MAX_OPTIONS_LENGTH ? optionHeight * sections.length : optionHeight * MAX_OPTIONS_LENGTH,
|
|
20670
|
+
itemCount: sections.length,
|
|
20671
|
+
itemSize: optionHeight,
|
|
20672
|
+
width: width2,
|
|
20673
|
+
children: ({ index: index2, style: style2 }) => {
|
|
20674
|
+
var _a2;
|
|
20675
|
+
return /* @__PURE__ */ jsx("div", { style: style2, children: /* @__PURE__ */ jsx(
|
|
20676
|
+
Section,
|
|
20677
|
+
{
|
|
20678
|
+
closeLayer,
|
|
20679
|
+
section: sections[index2],
|
|
20680
|
+
selected: isMulti2 && sections[index2].type !== MenuType.HEADING && Array.isArray(selectedOptions) ? selectedOptions.some(
|
|
20681
|
+
(v2) => {
|
|
20682
|
+
var _a3;
|
|
20683
|
+
return v2 && (v2 == null ? void 0 : v2.value) === ((_a3 = sections == null ? void 0 : sections[index2]) == null ? void 0 : _a3.value);
|
|
20684
|
+
}
|
|
20685
|
+
) : !Array.isArray(selectedOptions) && ((_a2 = sections == null ? void 0 : sections[index2]) == null ? void 0 : _a2.value) === (selectedOptions == null ? void 0 : selectedOptions.value),
|
|
20686
|
+
focused: focusedOptionIndex === index2,
|
|
20687
|
+
onSelectOption: (evt) => onSelectOption(evt, sections[index2])
|
|
20688
|
+
}
|
|
20689
|
+
) });
|
|
20690
|
+
}
|
|
20691
|
+
}
|
|
20692
|
+
)
|
|
20693
|
+
}
|
|
20694
|
+
);
|
|
20695
|
+
};
|
|
20696
|
+
const inputInTable$5 = "_inputInTable_7uwhv_1";
|
|
20697
|
+
const inputHover$5 = "_inputHover_7uwhv_13";
|
|
20698
|
+
const inputFocus$5 = "_inputFocus_7uwhv_18";
|
|
20699
|
+
const inputError$5 = "_inputError_7uwhv_25";
|
|
20700
|
+
const inputWarning$5 = "_inputWarning_7uwhv_26";
|
|
20701
|
+
const inputDisabled$5 = "_inputDisabled_7uwhv_61";
|
|
20702
|
+
const hideScrollbars$5 = "_hideScrollbars_7uwhv_67";
|
|
20703
|
+
const trigger$1 = "_trigger_7uwhv_77";
|
|
20704
|
+
const isInTable$1 = "_isInTable_7uwhv_93";
|
|
20705
|
+
const input = "_input_7uwhv_1";
|
|
20706
|
+
const isOpen = "_isOpen_7uwhv_114";
|
|
20707
|
+
const disabled$3 = "_disabled_7uwhv_156";
|
|
20708
|
+
const icons = "_icons_7uwhv_162";
|
|
20709
|
+
const clearAll = "_clearAll_7uwhv_169";
|
|
20710
|
+
const iconOpen = "_iconOpen_7uwhv_170";
|
|
20711
|
+
const small$4 = "_small_7uwhv_181";
|
|
20712
|
+
const triggerInputContainer = "_triggerInputContainer_7uwhv_189";
|
|
20713
|
+
const right$2 = "_right_7uwhv_198";
|
|
20714
|
+
const multiOptions = "_multiOptions_7uwhv_211";
|
|
20715
|
+
const multiOption = "_multiOption_7uwhv_211";
|
|
20716
|
+
const label$4 = "_label_7uwhv_239";
|
|
20717
|
+
const closeMultiOption = "_closeMultiOption_7uwhv_242";
|
|
20718
|
+
const focus = "_focus_7uwhv_253";
|
|
20719
|
+
const selectedSingleValue = "_selectedSingleValue_7uwhv_257";
|
|
20720
|
+
const placeHolder = "_placeHolder_7uwhv_258";
|
|
20721
|
+
const groupOrderFirst = "_groupOrderFirst_7uwhv_297";
|
|
20722
|
+
const groupOrderMiddle = "_groupOrderMiddle_7uwhv_298";
|
|
20723
|
+
const groupOrderLast = "_groupOrderLast_7uwhv_302";
|
|
20724
|
+
const detailedLabel = "_detailedLabel_7uwhv_307";
|
|
20725
|
+
const styles$m = {
|
|
20726
|
+
inputInTable: inputInTable$5,
|
|
20727
|
+
inputHover: inputHover$5,
|
|
20728
|
+
inputFocus: inputFocus$5,
|
|
20729
|
+
inputError: inputError$5,
|
|
20730
|
+
inputWarning: inputWarning$5,
|
|
20731
|
+
inputDisabled: inputDisabled$5,
|
|
20732
|
+
hideScrollbars: hideScrollbars$5,
|
|
20733
|
+
trigger: trigger$1,
|
|
20734
|
+
isInTable: isInTable$1,
|
|
20735
|
+
input,
|
|
20736
|
+
isOpen,
|
|
20737
|
+
disabled: disabled$3,
|
|
20738
|
+
icons,
|
|
20739
|
+
clearAll,
|
|
20740
|
+
iconOpen,
|
|
20741
|
+
small: small$4,
|
|
20742
|
+
triggerInputContainer,
|
|
20743
|
+
right: right$2,
|
|
20744
|
+
multiOptions,
|
|
20745
|
+
multiOption,
|
|
20746
|
+
label: label$4,
|
|
20747
|
+
closeMultiOption,
|
|
20748
|
+
focus,
|
|
20749
|
+
selectedSingleValue,
|
|
20750
|
+
placeHolder,
|
|
20751
|
+
groupOrderFirst,
|
|
20752
|
+
groupOrderMiddle,
|
|
20753
|
+
groupOrderLast,
|
|
20754
|
+
detailedLabel
|
|
20755
|
+
};
|
|
20756
|
+
const MultiSelectedOptions = ({
|
|
20757
|
+
selectedOptions,
|
|
20758
|
+
small: small2,
|
|
20759
|
+
width: width2,
|
|
20760
|
+
testId
|
|
20761
|
+
}) => {
|
|
20762
|
+
const isFontLoaded = useFontsReady();
|
|
20763
|
+
const [displayedOptions, setDisplayedOptions] = useState([]);
|
|
20764
|
+
const [overflowOptions, setOverflowOptions] = useState([]);
|
|
20765
|
+
useEffect(() => {
|
|
20766
|
+
let displayed = [];
|
|
20767
|
+
let overflow = [];
|
|
20768
|
+
let usedWidth = 0;
|
|
20769
|
+
selectedOptions.forEach((option2, index2) => {
|
|
20770
|
+
usedWidth += getMultiOptionWidth(option2, small2, isFontLoaded);
|
|
20771
|
+
if (index2 === selectedOptions.length - 1 && usedWidth < width2) {
|
|
20772
|
+
displayed.push(option2);
|
|
20773
|
+
} else if (usedWidth < width2 - 24) {
|
|
20774
|
+
displayed.push(option2);
|
|
20775
|
+
} else {
|
|
20776
|
+
overflow.push(option2);
|
|
20777
|
+
}
|
|
20778
|
+
});
|
|
20779
|
+
setDisplayedOptions(displayed);
|
|
20780
|
+
setOverflowOptions(overflow);
|
|
20781
|
+
}, [selectedOptions, isFontLoaded, width2]);
|
|
20782
|
+
return /* @__PURE__ */ jsxs(
|
|
20783
|
+
"div",
|
|
20784
|
+
{
|
|
20785
|
+
className: styles$m.multiOptions,
|
|
20786
|
+
"data-testid": testId && `${testId}-value`,
|
|
20787
|
+
children: [
|
|
20788
|
+
displayedOptions.filter((option2) => option2 && option2.label).map((option2, index2) => /* @__PURE__ */ jsx(
|
|
20789
|
+
"span",
|
|
20790
|
+
{
|
|
20791
|
+
className: styles$m.multiOption,
|
|
20792
|
+
onClick: (evt) => {
|
|
20793
|
+
evt.stopPropagation();
|
|
20794
|
+
},
|
|
20795
|
+
children: option2.label
|
|
20796
|
+
},
|
|
20797
|
+
index2
|
|
20798
|
+
)),
|
|
20799
|
+
overflowOptions.length > 0 && /* @__PURE__ */ jsx(
|
|
20800
|
+
Tooltip,
|
|
20801
|
+
{
|
|
20802
|
+
text: overflowOptions.map((option2, index2) => /* @__PURE__ */ jsx("div", { children: option2.label }, index2)),
|
|
20803
|
+
display: "inline-flex",
|
|
20804
|
+
children: /* @__PURE__ */ jsx("span", { className: styles$m.multiOption, children: displayedOptions.length ? `+${overflowOptions.length}` : `${overflowOptions.length} items` })
|
|
20805
|
+
}
|
|
20806
|
+
)
|
|
20807
|
+
]
|
|
20808
|
+
}
|
|
20809
|
+
);
|
|
20810
|
+
};
|
|
20811
|
+
const Input = ({
|
|
20812
|
+
selectedOptions,
|
|
20813
|
+
searchable = false,
|
|
20814
|
+
searchValue,
|
|
20815
|
+
onChange = noop$3,
|
|
20816
|
+
inputRef,
|
|
20817
|
+
error: error2,
|
|
20818
|
+
placeholder: placeholder3 = "Select...",
|
|
20819
|
+
small: small2,
|
|
20820
|
+
testId
|
|
20821
|
+
}) => {
|
|
20822
|
+
const containerRef = useRef(null);
|
|
20823
|
+
const isMulti2 = Array.isArray(selectedOptions);
|
|
20824
|
+
const hasSelectedValues = isMulti2 ? selectedOptions.length > 0 : !!selectedOptions;
|
|
20825
|
+
const inputSize = searchValue ? searchValue.length + 1 : 1;
|
|
20826
|
+
const getMultiOptionsWidth = () => {
|
|
20827
|
+
var _a2, _b;
|
|
20828
|
+
const containerWidth = ((_a2 = containerRef.current) == null ? void 0 : _a2.offsetWidth) || 0;
|
|
20829
|
+
const inputWidth = ((_b = inputRef.current) == null ? void 0 : _b.offsetWidth) || 0;
|
|
20830
|
+
return containerWidth - inputWidth;
|
|
20831
|
+
};
|
|
20832
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$m.triggerInputContainer, ref: containerRef, children: [
|
|
20833
|
+
!hasSelectedValues ? /* @__PURE__ */ jsx("span", { className: styles$m.placeHolder, children: !(searchValue == null ? void 0 : searchValue.length) ? placeholder3 : "" }) : isMulti2 ? /* @__PURE__ */ jsx(
|
|
20834
|
+
MultiSelectedOptions,
|
|
20835
|
+
{
|
|
20836
|
+
selectedOptions,
|
|
20837
|
+
small: small2,
|
|
20838
|
+
width: getMultiOptionsWidth(),
|
|
20839
|
+
testId
|
|
20840
|
+
}
|
|
20841
|
+
) : /* @__PURE__ */ jsx(
|
|
20842
|
+
"span",
|
|
20843
|
+
{
|
|
20844
|
+
className: styles$m.selectedSingleValue,
|
|
20845
|
+
"data-testid": testId && `${testId}-value`,
|
|
20846
|
+
children: !(searchValue == null ? void 0 : searchValue.length) ? selectedOptions == null ? void 0 : selectedOptions.label : ""
|
|
20847
|
+
}
|
|
20848
|
+
),
|
|
20849
|
+
searchable ? /* @__PURE__ */ jsx(
|
|
20850
|
+
"input",
|
|
20851
|
+
{
|
|
20852
|
+
tabIndex: -1,
|
|
20853
|
+
ref: inputRef,
|
|
20854
|
+
size: inputSize,
|
|
20855
|
+
className: styles$m.input,
|
|
20856
|
+
value: searchValue,
|
|
20857
|
+
onChange: (evt) => onChange(evt.target.value),
|
|
20858
|
+
"data-error": error2 || null,
|
|
20859
|
+
"data-testid": testId && `${testId}-input`
|
|
20860
|
+
}
|
|
20861
|
+
) : null
|
|
20862
|
+
] });
|
|
20863
|
+
};
|
|
20864
|
+
const Trigger = ({
|
|
20865
|
+
selectedOptions,
|
|
20866
|
+
searchValue,
|
|
20867
|
+
searchable,
|
|
20868
|
+
clearable,
|
|
20869
|
+
onClickTrigger,
|
|
20870
|
+
element,
|
|
20871
|
+
error: error2,
|
|
20872
|
+
warning: warning2,
|
|
20873
|
+
tooltip: tooltip2,
|
|
20874
|
+
small: small2,
|
|
20875
|
+
isInTable: isInTable2,
|
|
20876
|
+
disabled: disabled2,
|
|
20877
|
+
onChangeSearch,
|
|
20878
|
+
onClickDeselect,
|
|
20879
|
+
onClickClear,
|
|
20880
|
+
tabIndex,
|
|
20881
|
+
isOpen: isOpen2,
|
|
20882
|
+
triggerRef,
|
|
20883
|
+
clearAllIsFocused,
|
|
20884
|
+
focusedSelectedOptionIndex,
|
|
20885
|
+
onFocus,
|
|
20886
|
+
onBlur,
|
|
20887
|
+
groupOrder,
|
|
20888
|
+
maxTooltipWidth,
|
|
20889
|
+
placeholder: placeholder3,
|
|
20890
|
+
right: right2,
|
|
20891
|
+
testId
|
|
20892
|
+
}) => {
|
|
20893
|
+
var _a2;
|
|
20894
|
+
const [inputRef, setInputFocus] = useFocus();
|
|
20895
|
+
const hasSelection2 = Array.isArray(selectedOptions) ? selectedOptions.length > 0 && ((_a2 = selectedOptions[0]) == null ? void 0 : _a2.value) : selectedOptions == null ? void 0 : selectedOptions.value;
|
|
20896
|
+
const canClear = clearable && hasSelection2;
|
|
20897
|
+
const order2 = (() => {
|
|
20898
|
+
if (groupOrder) {
|
|
20899
|
+
switch (groupOrder) {
|
|
20900
|
+
case GroupOrder.FIRST:
|
|
20901
|
+
return styles$m.groupOrderFirst;
|
|
20902
|
+
case GroupOrder.LAST:
|
|
20903
|
+
return styles$m.groupOrderLast;
|
|
20904
|
+
default:
|
|
20905
|
+
return styles$m.groupOrderMiddle;
|
|
20906
|
+
}
|
|
20907
|
+
}
|
|
20908
|
+
return "";
|
|
20909
|
+
})();
|
|
20910
|
+
const selectedOptionsWithDetails = !Array.isArray(selectedOptions) && (selectedOptions == null ? void 0 : selectedOptions.details) ? {
|
|
20911
|
+
...selectedOptions,
|
|
20912
|
+
label: /* @__PURE__ */ jsxs("div", { className: cx$2(styles$m.detailedLabel), children: [
|
|
20913
|
+
/* @__PURE__ */ jsx(Text, { children: selectedOptions.label }),
|
|
20914
|
+
/* @__PURE__ */ jsx(Text, { muted: true, children: selectedOptions.details })
|
|
20915
|
+
] })
|
|
20916
|
+
} : selectedOptions;
|
|
20917
|
+
const triggerInput = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
20918
|
+
element,
|
|
20919
|
+
/* @__PURE__ */ jsxs(
|
|
20920
|
+
"div",
|
|
20921
|
+
{
|
|
20922
|
+
ref: triggerRef,
|
|
20923
|
+
tabIndex,
|
|
20924
|
+
className: cx$2(
|
|
20925
|
+
styles$m.trigger,
|
|
20926
|
+
isOpen2 ? styles$m.isOpen : "",
|
|
20927
|
+
disabled2 ? styles$m.disabled : "",
|
|
20928
|
+
small2 ? styles$m.small : "",
|
|
20929
|
+
isInTable2 ? styles$m.isInTable : "",
|
|
20930
|
+
right2 ? styles$m.right : "",
|
|
20931
|
+
order2
|
|
20932
|
+
),
|
|
20933
|
+
onClick: (evt) => {
|
|
20934
|
+
evt.stopPropagation();
|
|
20935
|
+
if (typeof setInputFocus === "function") {
|
|
20936
|
+
setInputFocus();
|
|
20937
|
+
}
|
|
20938
|
+
onClickTrigger(evt);
|
|
20939
|
+
},
|
|
20940
|
+
onFocus,
|
|
20941
|
+
onBlur,
|
|
20942
|
+
"data-error": error2 || null,
|
|
20943
|
+
"data-warning": warning2 || null,
|
|
20944
|
+
"data-testid": testId,
|
|
20945
|
+
children: [
|
|
20946
|
+
/* @__PURE__ */ jsx(
|
|
20947
|
+
Input,
|
|
20948
|
+
{
|
|
20949
|
+
selectedOptions: selectedOptionsWithDetails,
|
|
20950
|
+
placeholder: placeholder3,
|
|
20951
|
+
searchable,
|
|
20952
|
+
searchValue,
|
|
20953
|
+
inputRef,
|
|
20954
|
+
onChange: onChangeSearch,
|
|
20955
|
+
error: error2,
|
|
20956
|
+
small: small2,
|
|
20957
|
+
testId
|
|
20958
|
+
}
|
|
20959
|
+
),
|
|
20960
|
+
/* @__PURE__ */ jsx("span", { className: styles$m.icons, children: canClear ? /* @__PURE__ */ jsx(
|
|
20961
|
+
"span",
|
|
20962
|
+
{
|
|
20963
|
+
className: cx$2(
|
|
20964
|
+
styles$m.clearAll,
|
|
20965
|
+
clearAllIsFocused ? styles$m.focus : ""
|
|
20966
|
+
),
|
|
20967
|
+
onClick: (evt) => {
|
|
20968
|
+
evt.stopPropagation();
|
|
20969
|
+
if (onClickClear) {
|
|
20970
|
+
onClickClear(evt);
|
|
20971
|
+
}
|
|
20972
|
+
},
|
|
20973
|
+
"data-testid": testId && `${testId}-clear`,
|
|
20974
|
+
children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CLOSE })
|
|
20975
|
+
}
|
|
20976
|
+
) : /* @__PURE__ */ jsx("span", { className: cx$2(styles$m.iconOpen), children: /* @__PURE__ */ jsx(Icon, { icon: "chevron down" }) }) })
|
|
20977
|
+
]
|
|
20978
|
+
}
|
|
20979
|
+
)
|
|
20980
|
+
] });
|
|
20981
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(
|
|
20982
|
+
Tooltip,
|
|
20983
|
+
{
|
|
20984
|
+
error: !!error2,
|
|
20985
|
+
warning: !!warning2,
|
|
20986
|
+
text: tooltip2 || error2 || warning2,
|
|
20987
|
+
enabled: tooltip2 && isStringNumberOrNode(tooltip2) || error2 && isStringNumberOrNode(error2) || warning2 && isStringNumberOrNode(warning2) || false,
|
|
20988
|
+
maxWidth: maxTooltipWidth,
|
|
20989
|
+
placement: "bottom-center",
|
|
20990
|
+
children: triggerInput
|
|
20991
|
+
}
|
|
20992
|
+
) });
|
|
20993
|
+
};
|
|
19803
20994
|
var ReducerAction = /* @__PURE__ */ ((ReducerAction2) => {
|
|
19804
20995
|
ReducerAction2["SET_VISIBLE_OPTIONS"] = "SET_VISIBLE_OPTIONS";
|
|
19805
20996
|
ReducerAction2["RESET_LAYER_FOCUS"] = "RESET_LAYER_FOCUS";
|
|
@@ -19852,12 +21043,12 @@ const nextTriggerFocus = (direction, selectedOptions, triggerFocus) => {
|
|
|
19852
21043
|
const increment = triggerFocus.currentIndex + sign;
|
|
19853
21044
|
const nextIndex = (increment < 0 ? nextOptions.length - 1 : increment) % nextOptions.length;
|
|
19854
21045
|
const next2 = nextOptions[nextIndex];
|
|
19855
|
-
const
|
|
21046
|
+
const clearAll2 = next2 === "clearAll";
|
|
19856
21047
|
return {
|
|
19857
21048
|
options: nextOptions,
|
|
19858
21049
|
currentIndex: nextIndex,
|
|
19859
21050
|
currentOption: next2,
|
|
19860
|
-
clearAll
|
|
21051
|
+
clearAll: clearAll2
|
|
19861
21052
|
};
|
|
19862
21053
|
};
|
|
19863
21054
|
const blurTriggerFocus = () => initialTriggerFocus;
|
|
@@ -19952,49 +21143,6 @@ const reducer = (state, action2) => {
|
|
|
19952
21143
|
return state;
|
|
19953
21144
|
}
|
|
19954
21145
|
};
|
|
19955
|
-
const getTextWidth = (text2, font) => {
|
|
19956
|
-
const element = document.createElement("canvas");
|
|
19957
|
-
const context2 = element.getContext("2d");
|
|
19958
|
-
if (!context2) {
|
|
19959
|
-
return 0;
|
|
19960
|
-
}
|
|
19961
|
-
context2.font = font;
|
|
19962
|
-
return context2.measureText(text2).width;
|
|
19963
|
-
};
|
|
19964
|
-
const FONT_SIZE = "13px";
|
|
19965
|
-
const FONT_SIZE_SMALL = "12px";
|
|
19966
|
-
const FONT_FAMILY = "Roobert";
|
|
19967
|
-
const FONT_FAMILY_FALLBACK = "sans-serif";
|
|
19968
|
-
const PADDING = 12;
|
|
19969
|
-
const PADDING_SMALL = 8;
|
|
19970
|
-
const TOGGLE_SIZE = 30;
|
|
19971
|
-
const TOGGLE_SIZE_SMALL = 24;
|
|
19972
|
-
const getFont = (small2 = false, isFontLoaded = false) => {
|
|
19973
|
-
const fontSize = small2 ? FONT_SIZE_SMALL : FONT_SIZE;
|
|
19974
|
-
const fontFamily = isFontLoaded ? FONT_FAMILY : FONT_FAMILY_FALLBACK;
|
|
19975
|
-
return `${fontSize} ${fontFamily}`;
|
|
19976
|
-
};
|
|
19977
|
-
const getExtraOptionWidth = (small2 = false, scrollbar = false) => {
|
|
19978
|
-
const SCROLLBAR_WIDTH = 17;
|
|
19979
|
-
return (small2 ? PADDING_SMALL : PADDING) + (small2 ? TOGGLE_SIZE_SMALL : TOGGLE_SIZE) + (scrollbar ? SCROLLBAR_WIDTH : 0);
|
|
19980
|
-
};
|
|
19981
|
-
const getWidestOptionWidth = (options, small2, isFontLoaded, placeholder3) => {
|
|
19982
|
-
const font = getFont(small2, isFontLoaded);
|
|
19983
|
-
const placeholderWidth = placeholder3 ? getTextWidth(placeholder3, font) : 0;
|
|
19984
|
-
const widestTextWidth = Math.ceil(
|
|
19985
|
-
options.reduce((acc, option2) => {
|
|
19986
|
-
var _a2;
|
|
19987
|
-
const optionActionsWidth = (((_a2 = option2 == null ? void 0 : option2.actions) == null ? void 0 : _a2.length) ?? 0) * 24;
|
|
19988
|
-
const optionIconWidth = option2.icon ? (small2 ? parseInt(FONT_SIZE_SMALL) : parseInt(FONT_SIZE)) + 7 : 0;
|
|
19989
|
-
const optionsText = `${option2.label} ${option2.details || ""}`;
|
|
19990
|
-
const optionWidth = getTextWidth(optionsText, font) + optionActionsWidth + optionIconWidth;
|
|
19991
|
-
acc = optionWidth > acc ? optionWidth : acc;
|
|
19992
|
-
return acc;
|
|
19993
|
-
}, placeholderWidth)
|
|
19994
|
-
);
|
|
19995
|
-
const extraWidth = getExtraOptionWidth(small2, true);
|
|
19996
|
-
return widestTextWidth + extraWidth;
|
|
19997
|
-
};
|
|
19998
21146
|
const placementOptions = {
|
|
19999
21147
|
auto: true,
|
|
20000
21148
|
possiblePlacements: ["bottom-start", "top-start"],
|
|
@@ -20041,32 +21189,22 @@ const useCustomSelectLogic = ({
|
|
|
20041
21189
|
firstSelectedOptionIndex,
|
|
20042
21190
|
createAble,
|
|
20043
21191
|
listRef,
|
|
20044
|
-
autoLayerWidth
|
|
20045
|
-
isMounted
|
|
21192
|
+
autoLayerWidth
|
|
20046
21193
|
}) => {
|
|
20047
|
-
const safeDispatch = (action2) => {
|
|
20048
|
-
if (isMounted.current) {
|
|
20049
|
-
dispatch(action2);
|
|
20050
|
-
}
|
|
20051
|
-
};
|
|
20052
21194
|
const closeLayer = () => {
|
|
20053
21195
|
if (state.isLayerOpen) {
|
|
20054
|
-
|
|
21196
|
+
dispatch({ type: ActionTypes.CLOSE_LAYER });
|
|
20055
21197
|
}
|
|
20056
21198
|
setTriggerFocus();
|
|
20057
21199
|
};
|
|
20058
|
-
const openLayer = () =>
|
|
21200
|
+
const openLayer = () => dispatch({ type: ActionTypes.OPEN_LAYER });
|
|
20059
21201
|
const isFirstRun = useRef(true);
|
|
20060
21202
|
useEffect(() => {
|
|
20061
|
-
console.log("isFirstRun mounted");
|
|
20062
21203
|
if (isFirstRun.current) {
|
|
20063
21204
|
isFirstRun.current = false;
|
|
20064
21205
|
} else {
|
|
20065
|
-
|
|
21206
|
+
dispatch({ type: ActionTypes.SET_VISIBLE_OPTIONS, options });
|
|
20066
21207
|
}
|
|
20067
|
-
return () => {
|
|
20068
|
-
console.log("isFirstRun unmounted");
|
|
20069
|
-
};
|
|
20070
21208
|
}, [options]);
|
|
20071
21209
|
const onSelectOption = (evt, option2, close2) => {
|
|
20072
21210
|
if (!(disabled2 || disabledContext)) {
|
|
@@ -20103,7 +21241,7 @@ const useCustomSelectLogic = ({
|
|
|
20103
21241
|
}
|
|
20104
21242
|
}
|
|
20105
21243
|
}
|
|
20106
|
-
|
|
21244
|
+
dispatch({ type: ActionTypes.CLEAR_SEARCH, options });
|
|
20107
21245
|
setTriggerFocus();
|
|
20108
21246
|
}
|
|
20109
21247
|
};
|
|
@@ -20139,7 +21277,7 @@ const useCustomSelectLogic = ({
|
|
|
20139
21277
|
closeLayer();
|
|
20140
21278
|
return;
|
|
20141
21279
|
}
|
|
20142
|
-
|
|
21280
|
+
dispatch({
|
|
20143
21281
|
type: ActionTypes.RESET_LAYER_FOCUS,
|
|
20144
21282
|
options,
|
|
20145
21283
|
firstSelectedOptionIndex
|
|
@@ -20148,17 +21286,13 @@ const useCustomSelectLogic = ({
|
|
|
20148
21286
|
};
|
|
20149
21287
|
const isFirstRender = useRef(true);
|
|
20150
21288
|
useEffect(() => {
|
|
20151
|
-
console.log("isFirstRender mounted");
|
|
20152
21289
|
if (isFirstRender.current) {
|
|
20153
21290
|
isFirstRender.current = false;
|
|
20154
21291
|
} else {
|
|
20155
21292
|
if (!state.isLayerOpen) {
|
|
20156
|
-
|
|
21293
|
+
dispatch({ type: ActionTypes.CLEAR_SEARCH, options });
|
|
20157
21294
|
}
|
|
20158
21295
|
}
|
|
20159
|
-
return () => {
|
|
20160
|
-
console.log("isFirstRender unmounted");
|
|
20161
|
-
};
|
|
20162
21296
|
}, [state.isLayerOpen]);
|
|
20163
21297
|
const onClickDeselectOption = (evt, options2) => {
|
|
20164
21298
|
const newSelectedOptions = selectedOptions instanceof Array ? selectedOptions.filter((option2) => option2.value !== options2.value) : null;
|
|
@@ -20172,7 +21306,7 @@ const useCustomSelectLogic = ({
|
|
|
20172
21306
|
onChange(evt, newSelectedOptions);
|
|
20173
21307
|
}
|
|
20174
21308
|
};
|
|
20175
|
-
const onChangeSearch = (value) =>
|
|
21309
|
+
const onChangeSearch = (value) => dispatch({
|
|
20176
21310
|
type: ActionTypes.ON_CHANGE_SEARCH,
|
|
20177
21311
|
options,
|
|
20178
21312
|
value,
|
|
@@ -20180,7 +21314,7 @@ const useCustomSelectLogic = ({
|
|
|
20180
21314
|
});
|
|
20181
21315
|
const clickTrigger = () => {
|
|
20182
21316
|
openLayer();
|
|
20183
|
-
|
|
21317
|
+
dispatch({ type: ActionTypes.BLUR_TRIGGER_INPUTS });
|
|
20184
21318
|
};
|
|
20185
21319
|
const scrollToItem = (index2) => {
|
|
20186
21320
|
if (listRef.current && Number.isInteger(index2)) {
|
|
@@ -20189,20 +21323,17 @@ const useCustomSelectLogic = ({
|
|
|
20189
21323
|
};
|
|
20190
21324
|
const focusNextLayerOption = (ICustomSelectDirection2) => {
|
|
20191
21325
|
const next2 = nextLayerFocus(ICustomSelectDirection2, state.layerFocus);
|
|
20192
|
-
|
|
20193
|
-
type: ActionTypes.FOCUS_LAYER_OPTIONS,
|
|
20194
|
-
nextLayerFocus: next2
|
|
20195
|
-
});
|
|
21326
|
+
dispatch({ type: ActionTypes.FOCUS_LAYER_OPTIONS, nextLayerFocus: next2 });
|
|
20196
21327
|
scrollToItem(next2.current);
|
|
20197
21328
|
};
|
|
20198
21329
|
const focusTriggerInputs = (ICustomSelectDirection2) => {
|
|
20199
|
-
|
|
21330
|
+
dispatch({
|
|
20200
21331
|
type: ActionTypes.FOCUS_TRIGGER_INPUTS,
|
|
20201
21332
|
ICustomSelectDirection: ICustomSelectDirection2,
|
|
20202
21333
|
selectedOptions
|
|
20203
21334
|
});
|
|
20204
21335
|
};
|
|
20205
|
-
const
|
|
21336
|
+
const clearAll2 = (evt) => onClickClearAll(evt);
|
|
20206
21337
|
const deselectIsFocused = selectedOptions && selectedOptions[state.triggerFocus.currentOption];
|
|
20207
21338
|
const deselectOption = (evt) => {
|
|
20208
21339
|
onClickDeselectOption(
|
|
@@ -20240,7 +21371,7 @@ const useCustomSelectLogic = ({
|
|
|
20240
21371
|
}
|
|
20241
21372
|
case EventKey.ENTER: {
|
|
20242
21373
|
if (clearAllIsFocused) {
|
|
20243
|
-
|
|
21374
|
+
clearAll2(evt);
|
|
20244
21375
|
} else if (deselectIsFocused) {
|
|
20245
21376
|
deselectOption(evt);
|
|
20246
21377
|
} else {
|
|
@@ -20317,12 +21448,6 @@ const CustomSelect = (props) => {
|
|
|
20317
21448
|
isLayerOpen: false
|
|
20318
21449
|
})
|
|
20319
21450
|
);
|
|
20320
|
-
const isMounted = useRef(true);
|
|
20321
|
-
useEffect(() => {
|
|
20322
|
-
return () => {
|
|
20323
|
-
isMounted.current = false;
|
|
20324
|
-
};
|
|
20325
|
-
}, []);
|
|
20326
21451
|
const {
|
|
20327
21452
|
getTriggerWidth,
|
|
20328
21453
|
onKeyEvent,
|
|
@@ -20346,10 +21471,73 @@ const CustomSelect = (props) => {
|
|
|
20346
21471
|
disabledContext,
|
|
20347
21472
|
isFontLoaded,
|
|
20348
21473
|
createAble,
|
|
20349
|
-
listRef
|
|
20350
|
-
isMounted
|
|
21474
|
+
listRef
|
|
20351
21475
|
});
|
|
20352
|
-
return /* @__PURE__ */ jsx("div", { style: { width: getTriggerWidth() }
|
|
21476
|
+
return /* @__PURE__ */ jsx("div", { style: { width: getTriggerWidth() }, children: /* @__PURE__ */ jsxs(
|
|
21477
|
+
KeyboardEventHandler,
|
|
21478
|
+
{
|
|
21479
|
+
handleKeys: Object.values(EventKey),
|
|
21480
|
+
onKeyEvent,
|
|
21481
|
+
children: [
|
|
21482
|
+
/* @__PURE__ */ jsx(
|
|
21483
|
+
Trigger,
|
|
21484
|
+
{
|
|
21485
|
+
selectedOptions,
|
|
21486
|
+
searchValue: state.searchValue,
|
|
21487
|
+
isOpen: state.isLayerOpen,
|
|
21488
|
+
focusedSelectedOptionIndex: state.triggerFocus.currentOption,
|
|
21489
|
+
clearAllIsFocused,
|
|
21490
|
+
searchable,
|
|
21491
|
+
triggerRef: mergeRefs(triggerRef, triggerProps.ref),
|
|
21492
|
+
error: error2,
|
|
21493
|
+
warning: warning2,
|
|
21494
|
+
tooltip: tooltip2,
|
|
21495
|
+
small: small2,
|
|
21496
|
+
isInTable: isInTable2,
|
|
21497
|
+
disabled: disabled2 || disabledContext,
|
|
21498
|
+
clearable,
|
|
21499
|
+
tabIndex,
|
|
21500
|
+
onClickTrigger,
|
|
21501
|
+
onChangeSearch,
|
|
21502
|
+
onClickDeselect: onClickDeselectOption,
|
|
21503
|
+
onClickClear: onClickClearAll,
|
|
21504
|
+
onFocus,
|
|
21505
|
+
onBlur,
|
|
21506
|
+
groupOrder,
|
|
21507
|
+
maxTooltipWidth,
|
|
21508
|
+
placeholder: placeholder3,
|
|
21509
|
+
right: right2,
|
|
21510
|
+
testId
|
|
21511
|
+
}
|
|
21512
|
+
),
|
|
21513
|
+
state.isLayerOpen && renderLayer(
|
|
21514
|
+
/* @__PURE__ */ jsx("div", { ...layerProps, className: styles$n.layerContainer, children: /* @__PURE__ */ jsx(
|
|
21515
|
+
Layer,
|
|
21516
|
+
{
|
|
21517
|
+
listRef,
|
|
21518
|
+
isMulti: isMulti2,
|
|
21519
|
+
sections: state.visibleOptions,
|
|
21520
|
+
selectedOptions,
|
|
21521
|
+
onSelectOption: (evt, option2) => {
|
|
21522
|
+
const close2 = !isMulti2 ? closeLayer : void 0;
|
|
21523
|
+
onSelectOption(evt, option2, close2);
|
|
21524
|
+
},
|
|
21525
|
+
closeLayer: () => {
|
|
21526
|
+
if (closeOnOptionActionClick) {
|
|
21527
|
+
closeLayer();
|
|
21528
|
+
}
|
|
21529
|
+
},
|
|
21530
|
+
width: getLayerWidth(triggerBounds),
|
|
21531
|
+
small: small2,
|
|
21532
|
+
focusedOptionIndex: state.layerFocus.current,
|
|
21533
|
+
firstSelectedOptionIndex: firstSelectedOptionIndex ?? 0,
|
|
21534
|
+
testId: testId && `${testId}-layer`
|
|
21535
|
+
}
|
|
21536
|
+
) })
|
|
21537
|
+
)
|
|
21538
|
+
]
|
|
21539
|
+
}
|
|
21540
|
+
) });
|
|
20353
21541
|
};
|
|
20354
21542
|
const isEmptyNullOrUndefined = (value) => value === null || value === void 0 || value === "";
|
|
20355
21543
|
const isMulti = (selectedOptions) => selectedOptions instanceof Array;
|
|
@@ -20650,7 +21838,7 @@ const Pagination = ({ pagination }) => {
|
|
|
20650
21838
|
),
|
|
20651
21839
|
/* @__PURE__ */ jsxs(InputGroup, { small: small2, width: "auto", children: [
|
|
20652
21840
|
/* @__PURE__ */ jsx(
|
|
20653
|
-
Input,
|
|
21841
|
+
Input$1,
|
|
20654
21842
|
{
|
|
20655
21843
|
right: true,
|
|
20656
21844
|
value: unvalidatedSelectedPage,
|
|
@@ -20713,7 +21901,7 @@ const Popover = ({
|
|
|
20713
21901
|
onToggle: externalOnToggle
|
|
20714
21902
|
}) => {
|
|
20715
21903
|
const disabledContext = useContext(DisabledContext);
|
|
20716
|
-
const [
|
|
21904
|
+
const [isOpen2, setOpen] = externalIsOpen !== void 0 ? [externalIsOpen, externalOnToggle] : useState(false);
|
|
20717
21905
|
const close2 = () => {
|
|
20718
21906
|
if (!disabled2 && !disabledContext) {
|
|
20719
21907
|
if (setOpen) {
|
|
@@ -20724,7 +21912,7 @@ const Popover = ({
|
|
|
20724
21912
|
const toggle2 = () => {
|
|
20725
21913
|
if (!(disabled2 || disabledContext)) {
|
|
20726
21914
|
if (setOpen) {
|
|
20727
|
-
setOpen(!
|
|
21915
|
+
setOpen(!isOpen2);
|
|
20728
21916
|
}
|
|
20729
21917
|
}
|
|
20730
21918
|
};
|
|
@@ -20734,7 +21922,7 @@ const Popover = ({
|
|
|
20734
21922
|
}
|
|
20735
21923
|
}, [disabled2, disabledContext]);
|
|
20736
21924
|
const { renderLayer, arrowProps, layerProps, triggerProps } = useLayer({
|
|
20737
|
-
isOpen,
|
|
21925
|
+
isOpen: isOpen2,
|
|
20738
21926
|
placement,
|
|
20739
21927
|
auto: true,
|
|
20740
21928
|
triggerOffset: 6,
|
|
@@ -20744,7 +21932,7 @@ const Popover = ({
|
|
|
20744
21932
|
});
|
|
20745
21933
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
20746
21934
|
/* @__PURE__ */ jsx("div", { ref: triggerProps.ref, onClick: toggle2, "data-testid": testId, children }),
|
|
20747
|
-
|
|
21935
|
+
isOpen2 && renderLayer(
|
|
20748
21936
|
/* @__PURE__ */ jsxs(
|
|
20749
21937
|
"div",
|
|
20750
21938
|
{
|
|
@@ -21021,11 +22209,11 @@ var makeError = { exports: {} };
|
|
|
21021
22209
|
});
|
|
21022
22210
|
};
|
|
21023
22211
|
}
|
|
21024
|
-
function BaseError(
|
|
21025
|
-
if (
|
|
22212
|
+
function BaseError(message2) {
|
|
22213
|
+
if (message2 !== void 0) {
|
|
21026
22214
|
defineProperty2(this, "message", {
|
|
21027
22215
|
configurable: true,
|
|
21028
|
-
value:
|
|
22216
|
+
value: message2,
|
|
21029
22217
|
writable: true
|
|
21030
22218
|
});
|
|
21031
22219
|
}
|
|
@@ -21681,14 +22869,14 @@ function debounce$1(delay, atBegin, callback) {
|
|
|
21681
22869
|
function Cast(value) {
|
|
21682
22870
|
return value;
|
|
21683
22871
|
}
|
|
21684
|
-
function assertGet(value, key2,
|
|
22872
|
+
function assertGet(value, key2, message2) {
|
|
21685
22873
|
const prop = value[key2];
|
|
21686
|
-
assert(!isUndefined(prop),
|
|
22874
|
+
assert(!isUndefined(prop), message2);
|
|
21687
22875
|
return prop;
|
|
21688
22876
|
}
|
|
21689
|
-
function assert(testValue,
|
|
22877
|
+
function assert(testValue, message2) {
|
|
21690
22878
|
if (!testValue) {
|
|
21691
|
-
throw new AssertionError(
|
|
22879
|
+
throw new AssertionError(message2);
|
|
21692
22880
|
}
|
|
21693
22881
|
}
|
|
21694
22882
|
var AssertionError = class extends makeErrorExports.BaseError {
|
|
@@ -21963,8 +23151,8 @@ function isErrorConstant(code) {
|
|
|
21963
23151
|
return isString$2(code) && includes(values(ErrorConstant), code);
|
|
21964
23152
|
}
|
|
21965
23153
|
function createErrorMessage(code, extraMessage) {
|
|
21966
|
-
const
|
|
21967
|
-
const prefix2 =
|
|
23154
|
+
const message2 = errorMessageMap[code];
|
|
23155
|
+
const prefix2 = message2 ? `${message2}
|
|
21968
23156
|
|
|
21969
23157
|
` : "";
|
|
21970
23158
|
const customMessage = extraMessage ? `${extraMessage}
|
|
@@ -21976,9 +23164,9 @@ var RemirrorError = class extends makeErrorExports.BaseError {
|
|
|
21976
23164
|
/**
|
|
21977
23165
|
* The constructor is intentionally kept private to prevent being extended from.
|
|
21978
23166
|
*/
|
|
21979
|
-
constructor({ code, message, disableLogging = false } = {}) {
|
|
23167
|
+
constructor({ code, message: message2, disableLogging = false } = {}) {
|
|
21980
23168
|
const errorCode = isErrorConstant(code) ? code : ErrorConstant.CUSTOM;
|
|
21981
|
-
super(createErrorMessage(errorCode,
|
|
23169
|
+
super(createErrorMessage(errorCode, message2));
|
|
21982
23170
|
this.errorCode = errorCode;
|
|
21983
23171
|
this.url = `${ERROR_INFORMATION_URL}#${errorCode.toLowerCase()}`;
|
|
21984
23172
|
if (!disableLogging) {
|
|
@@ -24699,16 +25887,16 @@ class NodeContext {
|
|
|
24699
25887
|
}
|
|
24700
25888
|
}
|
|
24701
25889
|
class ParseContext {
|
|
24702
|
-
constructor(parser2, options,
|
|
25890
|
+
constructor(parser2, options, isOpen2) {
|
|
24703
25891
|
this.parser = parser2;
|
|
24704
25892
|
this.options = options;
|
|
24705
|
-
this.isOpen =
|
|
25893
|
+
this.isOpen = isOpen2;
|
|
24706
25894
|
this.open = 0;
|
|
24707
25895
|
let topNode = options.topNode, topContext;
|
|
24708
|
-
let topOptions = wsOptionsFor(null, options.preserveWhitespace, 0) | (
|
|
25896
|
+
let topOptions = wsOptionsFor(null, options.preserveWhitespace, 0) | (isOpen2 ? OPT_OPEN_LEFT : 0);
|
|
24709
25897
|
if (topNode)
|
|
24710
25898
|
topContext = new NodeContext(topNode.type, topNode.attrs, Mark$1.none, true, options.topMatch || topNode.type.contentMatch, topOptions);
|
|
24711
|
-
else if (
|
|
25899
|
+
else if (isOpen2)
|
|
24712
25900
|
topContext = new NodeContext(null, null, Mark$1.none, true, null, topOptions);
|
|
24713
25901
|
else
|
|
24714
25902
|
topContext = new NodeContext(parser2.schema.topNodeType, null, Mark$1.none, true, null, topOptions);
|
|
@@ -25650,8 +26838,8 @@ class StepResult {
|
|
|
25650
26838
|
/**
|
|
25651
26839
|
Create a failed step result.
|
|
25652
26840
|
*/
|
|
25653
|
-
static fail(
|
|
25654
|
-
return new StepResult(null,
|
|
26841
|
+
static fail(message2) {
|
|
26842
|
+
return new StepResult(null, message2);
|
|
25655
26843
|
}
|
|
25656
26844
|
/**
|
|
25657
26845
|
Call [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) with the given
|
|
@@ -26797,8 +27985,8 @@ class DocAttrStep extends Step {
|
|
|
26797
27985
|
Step.jsonID("docAttr", DocAttrStep);
|
|
26798
27986
|
let TransformError = class extends Error {
|
|
26799
27987
|
};
|
|
26800
|
-
TransformError = function TransformError2(
|
|
26801
|
-
let err = Error.call(this,
|
|
27988
|
+
TransformError = function TransformError2(message2) {
|
|
27989
|
+
let err = Error.call(this, message2);
|
|
26802
27990
|
err.__proto__ = TransformError2.prototype;
|
|
26803
27991
|
return err;
|
|
26804
27992
|
};
|
|
@@ -31198,10 +32386,10 @@ editHandlers.keydown = (view, _event) => {
|
|
|
31198
32386
|
if (event.keyCode != 229)
|
|
31199
32387
|
view.domObserver.forceFlush();
|
|
31200
32388
|
if (ios && event.keyCode == 13 && !event.ctrlKey && !event.altKey && !event.metaKey) {
|
|
31201
|
-
let
|
|
31202
|
-
view.input.lastIOSEnter =
|
|
32389
|
+
let now2 = Date.now();
|
|
32390
|
+
view.input.lastIOSEnter = now2;
|
|
31203
32391
|
view.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
31204
|
-
if (view.input.lastIOSEnter ==
|
|
32392
|
+
if (view.input.lastIOSEnter == now2) {
|
|
31205
32393
|
view.someProp("handleKeyDown", (f2) => f2(view, keyEvent(13, "Enter")));
|
|
31206
32394
|
view.input.lastIOSEnter = 0;
|
|
31207
32395
|
}
|
|
@@ -31331,14 +32519,14 @@ handlers.mousedown = (view, _event) => {
|
|
|
31331
32519
|
let event = _event;
|
|
31332
32520
|
view.input.shiftKey = event.shiftKey;
|
|
31333
32521
|
let flushed = forceDOMFlush(view);
|
|
31334
|
-
let
|
|
31335
|
-
if (
|
|
32522
|
+
let now2 = Date.now(), type = "singleClick";
|
|
32523
|
+
if (now2 - view.input.lastClick.time < 500 && isNear$1(event, view.input.lastClick) && !event[selectNodeModifier]) {
|
|
31336
32524
|
if (view.input.lastClick.type == "singleClick")
|
|
31337
32525
|
type = "doubleClick";
|
|
31338
32526
|
else if (view.input.lastClick.type == "doubleClick")
|
|
31339
32527
|
type = "tripleClick";
|
|
31340
32528
|
}
|
|
31341
|
-
view.input.lastClick = { time:
|
|
32529
|
+
view.input.lastClick = { time: now2, x: event.clientX, y: event.clientY, type };
|
|
31342
32530
|
let pos = view.posAtCoords(eventCoords(event));
|
|
31343
32531
|
if (!pos)
|
|
31344
32532
|
return;
|
|
@@ -49308,7 +50496,7 @@ var moo = { exports: {} };
|
|
|
49308
50496
|
return new LexerIterator(this);
|
|
49309
50497
|
};
|
|
49310
50498
|
}
|
|
49311
|
-
Lexer2.prototype.formatError = function(token2,
|
|
50499
|
+
Lexer2.prototype.formatError = function(token2, message2) {
|
|
49312
50500
|
if (token2 == null) {
|
|
49313
50501
|
var text2 = this.buffer.slice(this.index);
|
|
49314
50502
|
var token2 = {
|
|
@@ -49328,7 +50516,7 @@ var moo = { exports: {} };
|
|
|
49328
50516
|
this.line - token2.line + numLinesAround + 1
|
|
49329
50517
|
).slice(0, 5);
|
|
49330
50518
|
var errorLines = [];
|
|
49331
|
-
errorLines.push(
|
|
50519
|
+
errorLines.push(message2 + " at line " + token2.line + " col " + token2.col + ":");
|
|
49332
50520
|
errorLines.push("");
|
|
49333
50521
|
for (var i = 0; i < displayedLines.length; i++) {
|
|
49334
50522
|
var line2 = displayedLines[i];
|
|
@@ -49663,14 +50851,14 @@ function processTokens(tokens, mapText) {
|
|
|
49663
50851
|
];
|
|
49664
50852
|
});
|
|
49665
50853
|
}
|
|
49666
|
-
function compileMessage(
|
|
50854
|
+
function compileMessage(message2, mapText = (v2) => v2) {
|
|
49667
50855
|
try {
|
|
49668
|
-
return processTokens(parse_1(
|
|
50856
|
+
return processTokens(parse_1(message2), mapText);
|
|
49669
50857
|
} catch (e2) {
|
|
49670
50858
|
console.error(`${e2.message}
|
|
49671
50859
|
|
|
49672
|
-
Message: ${
|
|
49673
|
-
return
|
|
50860
|
+
Message: ${message2}`);
|
|
50861
|
+
return message2;
|
|
49674
50862
|
}
|
|
49675
50863
|
}
|
|
49676
50864
|
const isString$1 = (s) => typeof s === "string";
|
|
@@ -49728,21 +50916,21 @@ const getDefaultFormats = (locale, passedLocales, formats = {}) => {
|
|
|
49728
50916
|
const style2 = (format) => {
|
|
49729
50917
|
return typeof format === "object" ? format : formats[format] || { style: format };
|
|
49730
50918
|
};
|
|
49731
|
-
const replaceOctothorpe = (value,
|
|
50919
|
+
const replaceOctothorpe = (value, message2) => {
|
|
49732
50920
|
const numberFormat = Object.keys(formats).length ? style2("number") : void 0;
|
|
49733
50921
|
const valueStr = number$1(locales, value, numberFormat);
|
|
49734
|
-
return
|
|
50922
|
+
return message2.replace(new RegExp(OCTOTHORPE_PH, "g"), valueStr);
|
|
49735
50923
|
};
|
|
49736
50924
|
return {
|
|
49737
50925
|
plural: (value, cases) => {
|
|
49738
50926
|
const { offset: offset3 = 0 } = cases;
|
|
49739
|
-
const
|
|
49740
|
-
return replaceOctothorpe(value - offset3,
|
|
50927
|
+
const message2 = plural(locales, false, value, cases);
|
|
50928
|
+
return replaceOctothorpe(value - offset3, message2);
|
|
49741
50929
|
},
|
|
49742
50930
|
selectordinal: (value, cases) => {
|
|
49743
50931
|
const { offset: offset3 = 0 } = cases;
|
|
49744
|
-
const
|
|
49745
|
-
return replaceOctothorpe(value - offset3,
|
|
50932
|
+
const message2 = plural(locales, true, value, cases);
|
|
50933
|
+
return replaceOctothorpe(value - offset3, message2);
|
|
49746
50934
|
},
|
|
49747
50935
|
select: selectFormatter,
|
|
49748
50936
|
number: (value, format) => number$1(locales, value, style2(format)),
|
|
@@ -49756,12 +50944,12 @@ function interpolate$1(translation, locale, locales) {
|
|
|
49756
50944
|
const formatMessage = (tokens, replaceOctothorpe = false) => {
|
|
49757
50945
|
if (!Array.isArray(tokens))
|
|
49758
50946
|
return tokens;
|
|
49759
|
-
return tokens.reduce((
|
|
50947
|
+
return tokens.reduce((message2, token2) => {
|
|
49760
50948
|
if (token2 === "#" && replaceOctothorpe) {
|
|
49761
|
-
return
|
|
50949
|
+
return message2 + OCTOTHORPE_PH;
|
|
49762
50950
|
}
|
|
49763
50951
|
if (isString$1(token2)) {
|
|
49764
|
-
return
|
|
50952
|
+
return message2 + token2;
|
|
49765
50953
|
}
|
|
49766
50954
|
const [name2, type, format] = token2;
|
|
49767
50955
|
let interpolatedFormat = {};
|
|
@@ -49785,9 +50973,9 @@ function interpolate$1(translation, locale, locales) {
|
|
|
49785
50973
|
value = values2[name2];
|
|
49786
50974
|
}
|
|
49787
50975
|
if (value == null) {
|
|
49788
|
-
return
|
|
50976
|
+
return message2;
|
|
49789
50977
|
}
|
|
49790
|
-
return
|
|
50978
|
+
return message2 + value;
|
|
49791
50979
|
}, "");
|
|
49792
50980
|
};
|
|
49793
50981
|
const result = formatMessage(translation);
|
|
@@ -49934,13 +51122,13 @@ class I18n extends EventEmitter {
|
|
|
49934
51122
|
this.emit("change");
|
|
49935
51123
|
}
|
|
49936
51124
|
_(id2, values2, options) {
|
|
49937
|
-
let
|
|
51125
|
+
let message2 = options == null ? void 0 : options.message;
|
|
49938
51126
|
if (!id2) {
|
|
49939
51127
|
id2 = "";
|
|
49940
51128
|
}
|
|
49941
51129
|
if (!isString$1(id2)) {
|
|
49942
51130
|
values2 = id2.values || values2;
|
|
49943
|
-
|
|
51131
|
+
message2 = id2.message;
|
|
49944
51132
|
id2 = id2.id;
|
|
49945
51133
|
}
|
|
49946
51134
|
const messageForId = this.messages[id2];
|
|
@@ -49952,7 +51140,7 @@ class I18n extends EventEmitter {
|
|
|
49952
51140
|
if (messageMissing) {
|
|
49953
51141
|
this.emit("missing", { id: id2, locale: this._locale });
|
|
49954
51142
|
}
|
|
49955
|
-
let translation = messageForId ||
|
|
51143
|
+
let translation = messageForId || message2 || id2;
|
|
49956
51144
|
if (process.env.NODE_ENV !== "production") {
|
|
49957
51145
|
translation = isString$1(translation) ? compileMessage(translation) : translation;
|
|
49958
51146
|
}
|
|
@@ -51470,13 +52658,13 @@ const styles$d = {
|
|
|
51470
52658
|
icon: icon$1
|
|
51471
52659
|
};
|
|
51472
52660
|
const TooltipIcon = memo(
|
|
51473
|
-
({ isOpen, label: label2, icon: icon2, invalid }) => {
|
|
52661
|
+
({ isOpen: isOpen2, label: label2, icon: icon2, invalid }) => {
|
|
51474
52662
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
51475
52663
|
/* @__PURE__ */ jsx(
|
|
51476
52664
|
Tooltip,
|
|
51477
52665
|
{
|
|
51478
52666
|
text: label2,
|
|
51479
|
-
enabled: !
|
|
52667
|
+
enabled: !isOpen2,
|
|
51480
52668
|
placement: "right-center",
|
|
51481
52669
|
possiblePlacements: ["right-center"],
|
|
51482
52670
|
fontSize: 16,
|
|
@@ -51491,7 +52679,7 @@ const TooltipIcon = memo(
|
|
|
51491
52679
|
(prevProps, nextProps) => isEqual$1(prevProps, nextProps)
|
|
51492
52680
|
);
|
|
51493
52681
|
const Link$1 = ({
|
|
51494
|
-
isOpen,
|
|
52682
|
+
isOpen: isOpen2,
|
|
51495
52683
|
items,
|
|
51496
52684
|
sectionIndex,
|
|
51497
52685
|
onClick,
|
|
@@ -51516,7 +52704,7 @@ const Link$1 = ({
|
|
|
51516
52704
|
label: link2.label,
|
|
51517
52705
|
icon: link2.icon,
|
|
51518
52706
|
invalid: link2.invalid,
|
|
51519
|
-
isOpen
|
|
52707
|
+
isOpen: isOpen2
|
|
51520
52708
|
},
|
|
51521
52709
|
key2
|
|
51522
52710
|
)
|
|
@@ -51526,7 +52714,7 @@ const Link$1 = ({
|
|
|
51526
52714
|
}) });
|
|
51527
52715
|
};
|
|
51528
52716
|
const Sections = ({
|
|
51529
|
-
isOpen,
|
|
52717
|
+
isOpen: isOpen2,
|
|
51530
52718
|
sections,
|
|
51531
52719
|
onClick
|
|
51532
52720
|
}) => {
|
|
@@ -51535,7 +52723,7 @@ const Sections = ({
|
|
|
51535
52723
|
/* @__PURE__ */ jsx(
|
|
51536
52724
|
Link$1,
|
|
51537
52725
|
{
|
|
51538
|
-
isOpen,
|
|
52726
|
+
isOpen: isOpen2,
|
|
51539
52727
|
items: section2.items,
|
|
51540
52728
|
sectionIndex: i,
|
|
51541
52729
|
onClick,
|
|
@@ -51552,7 +52740,7 @@ const SideBar = memo(
|
|
|
51552
52740
|
},
|
|
51553
52741
|
top: top2
|
|
51554
52742
|
}) => {
|
|
51555
|
-
const [
|
|
52743
|
+
const [isOpen2, setIsOpen] = useState(startOpen);
|
|
51556
52744
|
const onClick = (evt, value, label2, clickHandler) => {
|
|
51557
52745
|
evt.preventDefault();
|
|
51558
52746
|
if (typeof clickHandler === "function") {
|
|
@@ -51567,7 +52755,7 @@ const SideBar = memo(
|
|
|
51567
52755
|
Drawer,
|
|
51568
52756
|
{
|
|
51569
52757
|
fixed: true,
|
|
51570
|
-
open:
|
|
52758
|
+
open: isOpen2,
|
|
51571
52759
|
top: top2,
|
|
51572
52760
|
background: "var(--color-background-sidebar)",
|
|
51573
52761
|
closedWidth: "var(--size-sidebar)",
|
|
@@ -51580,19 +52768,19 @@ const SideBar = memo(
|
|
|
51580
52768
|
if (evt.shiftKey && onShiftClickToggleOpen) {
|
|
51581
52769
|
onShiftClickToggleOpen(evt);
|
|
51582
52770
|
}
|
|
51583
|
-
setIsOpen(!
|
|
52771
|
+
setIsOpen(!isOpen2);
|
|
51584
52772
|
},
|
|
51585
52773
|
colored: true,
|
|
51586
52774
|
round: true,
|
|
51587
52775
|
icon: IconType.LEFT
|
|
51588
52776
|
}
|
|
51589
52777
|
),
|
|
51590
|
-
children: /* @__PURE__ */ jsx("div", { className: cx$2(styles$d.sidebar, !
|
|
52778
|
+
children: /* @__PURE__ */ jsx("div", { className: cx$2(styles$d.sidebar, !isOpen2 ? styles$d.collapsed : ""), children: visible && /* @__PURE__ */ jsxs("div", { className: styles$d.inner, children: [
|
|
51591
52779
|
/* @__PURE__ */ jsx("h4", { className: styles$d.title, children: options.title }),
|
|
51592
52780
|
/* @__PURE__ */ jsx(
|
|
51593
52781
|
Sections,
|
|
51594
52782
|
{
|
|
51595
|
-
isOpen,
|
|
52783
|
+
isOpen: isOpen2,
|
|
51596
52784
|
sections: options.sections,
|
|
51597
52785
|
onClick
|
|
51598
52786
|
}
|
|
@@ -51662,21 +52850,21 @@ var preWarningFns = [];
|
|
|
51662
52850
|
var preMessage = function preMessage2(fn) {
|
|
51663
52851
|
preWarningFns.push(fn);
|
|
51664
52852
|
};
|
|
51665
|
-
function warning$1(valid,
|
|
52853
|
+
function warning$1(valid, message2) {
|
|
51666
52854
|
if (process.env.NODE_ENV !== "production" && !valid && console !== void 0) {
|
|
51667
52855
|
var finalMessage = preWarningFns.reduce(function(msg2, preMessageFn) {
|
|
51668
52856
|
return preMessageFn(msg2 !== null && msg2 !== void 0 ? msg2 : "", "warning");
|
|
51669
|
-
},
|
|
52857
|
+
}, message2);
|
|
51670
52858
|
if (finalMessage) {
|
|
51671
52859
|
console.error("Warning: ".concat(finalMessage));
|
|
51672
52860
|
}
|
|
51673
52861
|
}
|
|
51674
52862
|
}
|
|
51675
|
-
function note(valid,
|
|
52863
|
+
function note(valid, message2) {
|
|
51676
52864
|
if (process.env.NODE_ENV !== "production" && !valid && console !== void 0) {
|
|
51677
52865
|
var finalMessage = preWarningFns.reduce(function(msg2, preMessageFn) {
|
|
51678
52866
|
return preMessageFn(msg2 !== null && msg2 !== void 0 ? msg2 : "", "note");
|
|
51679
|
-
},
|
|
52867
|
+
}, message2);
|
|
51680
52868
|
if (finalMessage) {
|
|
51681
52869
|
console.warn("Note: ".concat(finalMessage));
|
|
51682
52870
|
}
|
|
@@ -51685,17 +52873,17 @@ function note(valid, message) {
|
|
|
51685
52873
|
function resetWarned() {
|
|
51686
52874
|
warned$1 = {};
|
|
51687
52875
|
}
|
|
51688
|
-
function call(method, valid,
|
|
51689
|
-
if (!valid && !warned$1[
|
|
51690
|
-
method(false,
|
|
51691
|
-
warned$1[
|
|
52876
|
+
function call(method, valid, message2) {
|
|
52877
|
+
if (!valid && !warned$1[message2]) {
|
|
52878
|
+
method(false, message2);
|
|
52879
|
+
warned$1[message2] = true;
|
|
51692
52880
|
}
|
|
51693
52881
|
}
|
|
51694
|
-
function warningOnce(valid,
|
|
51695
|
-
call(warning$1, valid,
|
|
52882
|
+
function warningOnce(valid, message2) {
|
|
52883
|
+
call(warning$1, valid, message2);
|
|
51696
52884
|
}
|
|
51697
|
-
function noteOnce(valid,
|
|
51698
|
-
call(note, valid,
|
|
52885
|
+
function noteOnce(valid, message2) {
|
|
52886
|
+
call(note, valid, message2);
|
|
51699
52887
|
}
|
|
51700
52888
|
warningOnce.preMessage = preMessage;
|
|
51701
52889
|
warningOnce.resetWarned = resetWarned;
|
|
@@ -54193,7 +55381,7 @@ const Title$1 = ({
|
|
|
54193
55381
|
return /* @__PURE__ */ jsx("div", { children: actionsComponent });
|
|
54194
55382
|
};
|
|
54195
55383
|
return /* @__PURE__ */ jsxs("div", { className: styles$a.title, children: [
|
|
54196
|
-
isNameDefined ? /* @__PURE__ */ jsx(Heading$
|
|
55384
|
+
isNameDefined ? /* @__PURE__ */ jsx(Heading$2, { children: /* @__PURE__ */ jsx("span", { "data-testid": testId, children: name2 }) }) : null,
|
|
54197
55385
|
actionsContainer()
|
|
54198
55386
|
] });
|
|
54199
55387
|
};
|
|
@@ -54413,7 +55601,7 @@ const InputCell = ({
|
|
|
54413
55601
|
type
|
|
54414
55602
|
}) => {
|
|
54415
55603
|
return /* @__PURE__ */ jsx(
|
|
54416
|
-
Input,
|
|
55604
|
+
Input$1,
|
|
54417
55605
|
{
|
|
54418
55606
|
name: cell2.name,
|
|
54419
55607
|
value: cell2.value,
|
|
@@ -54449,182 +55637,6 @@ const roundNumberCosmetic = (value) => {
|
|
|
54449
55637
|
roundToPrecision(toNum(value), COSMETIC_ROUNDING_DEFAULT_PRECISION)
|
|
54450
55638
|
) : value;
|
|
54451
55639
|
};
|
|
54452
|
-
var reactKeyboardEventHandler = { exports: {} };
|
|
54453
|
-
(function(module, exports) {
|
|
54454
|
-
!function(e2, t) {
|
|
54455
|
-
module.exports = t(React__default, PropTypes__default);
|
|
54456
|
-
}(window, function(e2, t) {
|
|
54457
|
-
return function(e3) {
|
|
54458
|
-
var t2 = {};
|
|
54459
|
-
function n2(r2) {
|
|
54460
|
-
if (t2[r2]) return t2[r2].exports;
|
|
54461
|
-
var o = t2[r2] = { i: r2, l: false, exports: {} };
|
|
54462
|
-
return e3[r2].call(o.exports, o, o.exports, n2), o.l = true, o.exports;
|
|
54463
|
-
}
|
|
54464
|
-
return n2.m = e3, n2.c = t2, n2.d = function(e4, t3, r2) {
|
|
54465
|
-
n2.o(e4, t3) || Object.defineProperty(e4, t3, { enumerable: true, get: r2 });
|
|
54466
|
-
}, n2.r = function(e4) {
|
|
54467
|
-
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e4, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e4, "__esModule", { value: true });
|
|
54468
|
-
}, n2.t = function(e4, t3) {
|
|
54469
|
-
if (1 & t3 && (e4 = n2(e4)), 8 & t3) return e4;
|
|
54470
|
-
if (4 & t3 && "object" == typeof e4 && e4 && e4.__esModule) return e4;
|
|
54471
|
-
var r2 = /* @__PURE__ */ Object.create(null);
|
|
54472
|
-
if (n2.r(r2), Object.defineProperty(r2, "default", { enumerable: true, value: e4 }), 2 & t3 && "string" != typeof e4) for (var o in e4) n2.d(r2, o, (function(t4) {
|
|
54473
|
-
return e4[t4];
|
|
54474
|
-
}).bind(null, o));
|
|
54475
|
-
return r2;
|
|
54476
|
-
}, n2.n = function(e4) {
|
|
54477
|
-
var t3 = e4 && e4.__esModule ? function() {
|
|
54478
|
-
return e4.default;
|
|
54479
|
-
} : function() {
|
|
54480
|
-
return e4;
|
|
54481
|
-
};
|
|
54482
|
-
return n2.d(t3, "a", t3), t3;
|
|
54483
|
-
}, n2.o = function(e4, t3) {
|
|
54484
|
-
return Object.prototype.hasOwnProperty.call(e4, t3);
|
|
54485
|
-
}, n2.p = "", n2(n2.s = 0);
|
|
54486
|
-
}([function(e3, t2, n2) {
|
|
54487
|
-
Object.defineProperty(t2, "__esModule", { value: true });
|
|
54488
|
-
var r2 = n2(1);
|
|
54489
|
-
Object.defineProperty(t2, "default", { enumerable: true, get: function() {
|
|
54490
|
-
return function(e4) {
|
|
54491
|
-
return e4 && e4.__esModule ? e4 : { default: e4 };
|
|
54492
|
-
}(r2).default;
|
|
54493
|
-
} }), e3.exports = t2.default;
|
|
54494
|
-
}, function(e3, t2, n2) {
|
|
54495
|
-
Object.defineProperty(t2, "__esModule", { value: true });
|
|
54496
|
-
var r2 = Object.assign || function(e4) {
|
|
54497
|
-
for (var t3 = 1; t3 < arguments.length; t3++) {
|
|
54498
|
-
var n3 = arguments[t3];
|
|
54499
|
-
for (var r3 in n3) Object.prototype.hasOwnProperty.call(n3, r3) && (e4[r3] = n3[r3]);
|
|
54500
|
-
}
|
|
54501
|
-
return e4;
|
|
54502
|
-
}, o = /* @__PURE__ */ function() {
|
|
54503
|
-
function e4(e5, t3) {
|
|
54504
|
-
for (var n3 = 0; n3 < t3.length; n3++) {
|
|
54505
|
-
var r3 = t3[n3];
|
|
54506
|
-
r3.enumerable = r3.enumerable || false, r3.configurable = true, "value" in r3 && (r3.writable = true), Object.defineProperty(e5, r3.key, r3);
|
|
54507
|
-
}
|
|
54508
|
-
}
|
|
54509
|
-
return function(t3, n3, r3) {
|
|
54510
|
-
return n3 && e4(t3.prototype, n3), r3 && e4(t3, r3), t3;
|
|
54511
|
-
};
|
|
54512
|
-
}(), i = l(n2(2)), u = l(n2(3)), a2 = n2(4);
|
|
54513
|
-
function l(e4) {
|
|
54514
|
-
return e4 && e4.__esModule ? e4 : { default: e4 };
|
|
54515
|
-
}
|
|
54516
|
-
var s = [], c2 = function(e4) {
|
|
54517
|
-
function t3(e5) {
|
|
54518
|
-
!function(e6, t4) {
|
|
54519
|
-
if (!(e6 instanceof t4)) throw new TypeError("Cannot call a class as a function");
|
|
54520
|
-
}(this, t3);
|
|
54521
|
-
var n3 = function(e6, t4) {
|
|
54522
|
-
if (!e6) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
54523
|
-
return !t4 || "object" != typeof t4 && "function" != typeof t4 ? e6 : t4;
|
|
54524
|
-
}(this, (t3.__proto__ || Object.getPrototypeOf(t3)).call(this, e5));
|
|
54525
|
-
return n3.handleKeyboardEvent = n3.handleKeyboardEvent.bind(n3), n3.registerExclusiveHandler = n3.registerExclusiveHandler.bind(n3), n3.deregisterExclusiveHandler = n3.deregisterExclusiveHandler.bind(n3), n3;
|
|
54526
|
-
}
|
|
54527
|
-
return function(e5, t4) {
|
|
54528
|
-
if ("function" != typeof t4 && null !== t4) throw new TypeError("Super expression must either be null or a function, not " + typeof t4);
|
|
54529
|
-
e5.prototype = Object.create(t4 && t4.prototype, { constructor: { value: e5, enumerable: false, writable: true, configurable: true } }), t4 && (Object.setPrototypeOf ? Object.setPrototypeOf(e5, t4) : e5.__proto__ = t4);
|
|
54530
|
-
}(t3, i.default.Component), o(t3, [{ key: "componentDidMount", value: function() {
|
|
54531
|
-
document.addEventListener("keydown", this.handleKeyboardEvent, false), document.addEventListener("keyup", this.handleKeyboardEvent, false), document.addEventListener("keypress", this.handleKeyboardEvent, false);
|
|
54532
|
-
var e5 = this.props, t4 = e5.isExclusive, n3 = e5.isDisabled;
|
|
54533
|
-
t4 && !n3 && this.registerExclusiveHandler();
|
|
54534
|
-
} }, { key: "componentWillUnmount", value: function() {
|
|
54535
|
-
document.removeEventListener("keydown", this.handleKeyboardEvent, false), document.removeEventListener("keyup", this.handleKeyboardEvent, false), document.removeEventListener("keypress", this.handleKeyboardEvent, false), this.deregisterExclusiveHandler();
|
|
54536
|
-
} }, { key: "componentDidUpdate", value: function(e5) {
|
|
54537
|
-
var t4 = e5.isExclusive, n3 = e5.isDisabled;
|
|
54538
|
-
(this.props.isExclusive !== t4 || this.props.isDisabled !== n3) && (this.props.isExclusive && !this.props.isDisabled ? this.registerExclusiveHandler() : this.deregisterExclusiveHandler());
|
|
54539
|
-
} }, { key: "registerExclusiveHandler", value: function() {
|
|
54540
|
-
this.deregisterExclusiveHandler(), s.unshift(this);
|
|
54541
|
-
} }, { key: "deregisterExclusiveHandler", value: function() {
|
|
54542
|
-
var e5 = this;
|
|
54543
|
-
s.includes(this) && (s = s.filter(function(t4) {
|
|
54544
|
-
return t4 !== e5;
|
|
54545
|
-
}));
|
|
54546
|
-
} }, { key: "handleKeyboardEvent", value: function(e5) {
|
|
54547
|
-
var t4 = this.props, n3 = t4.isDisabled, r3 = t4.handleKeys, o2 = t4.onKeyEvent, i2 = t4.handleEventType, u2 = t4.children, l2 = t4.handleFocusableElements;
|
|
54548
|
-
if (n3) return false;
|
|
54549
|
-
if (!(i2 === e5.type)) return false;
|
|
54550
|
-
if (s.length > 0 && s[0] !== this) return false;
|
|
54551
|
-
var c3 = e5.target === document.body || l2, d2 = this.childrenContainer && this.childrenContainer.contains(e5.target);
|
|
54552
|
-
if (!(u2 ? d2 : c3)) return false;
|
|
54553
|
-
var f2 = (0, a2.findMatchedKey)(e5, r3);
|
|
54554
|
-
return !!f2 && (o2(f2, e5), true);
|
|
54555
|
-
} }, { key: "render", value: function() {
|
|
54556
|
-
var e5 = this, n3 = this.props.children, o2 = Object.assign({}, this.props), u2 = true, a3 = false, l2 = void 0;
|
|
54557
|
-
try {
|
|
54558
|
-
for (var s2, c3 = Object.keys(t3.propTypes)[Symbol.iterator](); !(u2 = (s2 = c3.next()).done); u2 = true) {
|
|
54559
|
-
delete o2[s2.value];
|
|
54560
|
-
}
|
|
54561
|
-
} catch (e6) {
|
|
54562
|
-
a3 = true, l2 = e6;
|
|
54563
|
-
} finally {
|
|
54564
|
-
try {
|
|
54565
|
-
!u2 && c3.return && c3.return();
|
|
54566
|
-
} finally {
|
|
54567
|
-
if (a3) throw l2;
|
|
54568
|
-
}
|
|
54569
|
-
}
|
|
54570
|
-
return n3 ? i.default.createElement("span", r2({ ref: function(t4) {
|
|
54571
|
-
e5.childrenContainer = t4;
|
|
54572
|
-
} }, o2), n3) : null;
|
|
54573
|
-
} }]), t3;
|
|
54574
|
-
}();
|
|
54575
|
-
t2.default = c2, c2.propTypes = { handleKeys: u.default.array, handleEventType: u.default.oneOf(["keydown", "keyup", "keypress"]), handleFocusableElements: u.default.bool, onKeyEvent: u.default.func, isDisabled: u.default.bool, isExclusive: u.default.bool, children: u.default.any }, c2.defaultProps = { handleKeys: [], handleFocusableElements: false, handleEventType: "keydown", onKeyEvent: function() {
|
|
54576
|
-
return null;
|
|
54577
|
-
} }, e3.exports = t2.default;
|
|
54578
|
-
}, function(t2, n2) {
|
|
54579
|
-
t2.exports = e2;
|
|
54580
|
-
}, function(e3, n2) {
|
|
54581
|
-
e3.exports = t;
|
|
54582
|
-
}, function(e3, t2, n2) {
|
|
54583
|
-
function r2(e4, t3, n3) {
|
|
54584
|
-
return t3 in e4 ? Object.defineProperty(e4, t3, { value: n3, enumerable: true, configurable: true, writable: true }) : e4[t3] = n3, e4;
|
|
54585
|
-
}
|
|
54586
|
-
Object.defineProperty(t2, "__esModule", { value: true }), t2.matchKeyEvent = p, t2.findMatchedKey = function(e4, t3) {
|
|
54587
|
-
var n3 = t3.map(function(e5) {
|
|
54588
|
-
var t4 = e5.toLowerCase(), n4 = f2[t4];
|
|
54589
|
-
return n4 || [e5];
|
|
54590
|
-
}).reduce(function(e5, t4) {
|
|
54591
|
-
return e5.concat(t4);
|
|
54592
|
-
}, []).find(function(t4) {
|
|
54593
|
-
return p(e4, t4);
|
|
54594
|
-
});
|
|
54595
|
-
!n3 && t3.includes("all") && (n3 = "other");
|
|
54596
|
-
return n3;
|
|
54597
|
-
};
|
|
54598
|
-
var o = { backspace: [8], del: [46], delete: [46], ins: [45], insert: [45], tab: [9], enter: [13], return: [13], esc: [27], space: [32], pageup: [33], pagedown: [34], end: [35], home: [36], left: [37], up: [38], right: [39], down: [40], shift: [16], ctrl: [17], alt: [18], cap: [20], num: [144], clear: [12], meta: [91], ";": [186, 59], "=": [187, 61], ",": [188, 44], "-": [189, 45, 173, 109], minus: [189, 45, 173, 109], ".": [190, 110], "/": [191, 111], "`": [192], "[": [219], "\\": [220], "]": [221], "*": [106], "+": [107], plus: [107], "'": [222], quote: [222] }, i = Object.keys(o).reduce(function(e4, t3) {
|
|
54599
|
-
return Object.assign(e4, r2({}, t3.toUpperCase(), o[t3]));
|
|
54600
|
-
}, {}), u = "0123456789".split("").reduce(function(e4, t3, n3) {
|
|
54601
|
-
return Object.assign(e4, r2({}, t3, [n3 + 48, n3 + 96]));
|
|
54602
|
-
}, {}), a2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").reduce(function(e4, t3, n3) {
|
|
54603
|
-
return Object.assign(e4, r2({}, t3.toLowerCase(), [n3 + 65]), r2({}, t3, [n3 + 65]));
|
|
54604
|
-
}, {}), l = "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19".split(",").reduce(function(e4, t3, n3) {
|
|
54605
|
-
return Object.assign(e4, r2({}, "f" + t3, [n3 + 112]));
|
|
54606
|
-
}, {}), s = { control: "ctrl", ctrl: "ctrl", shift: "shift", meta: "meta", cmd: "meta", command: "meta", option: "alt", alt: "alt" }, c2 = t2.AllKeys = Object.assign({}, o, i, u, a2, l), d2 = Object.assign({}, u, a2), f2 = { all: Object.keys(c2), alphanumeric: Object.keys(d2), numeric: Object.keys(u), alphabetic: Object.keys(a2), function: Object.keys(l) };
|
|
54607
|
-
function p(e4, t3) {
|
|
54608
|
-
var n3 = e4.which || e4.keyCode, r3 = e4.type, o2 = Object.keys(s).filter(function(t4) {
|
|
54609
|
-
return e4[t4 + "Key"];
|
|
54610
|
-
}).sort(), i2 = t3.toLowerCase().trim(), u2 = "+" === i2 ? ["+"] : i2.split(/\s?\+\s?/), a3 = u2.pop(), l2 = c2[a3], d3 = u2;
|
|
54611
|
-
if ("keypress" === r3) return t3 == String.fromCharCode(n3).toLowerCase();
|
|
54612
|
-
if (0 === d3.length && 0 === o2.length) return l2.indexOf(n3) >= 0;
|
|
54613
|
-
if (d3.length > 0 && o2.length > 0) {
|
|
54614
|
-
var f3 = d3.map(function(e5) {
|
|
54615
|
-
return s[e5];
|
|
54616
|
-
}).sort(), p2 = f3.length === o2.length && f3.every(function(e5, t4) {
|
|
54617
|
-
return o2[t4] === e5;
|
|
54618
|
-
});
|
|
54619
|
-
return l2.indexOf(n3) >= 0 && p2;
|
|
54620
|
-
}
|
|
54621
|
-
return 0 == d3.length && 1 === o2.length && a3 === o2[0];
|
|
54622
|
-
}
|
|
54623
|
-
}]);
|
|
54624
|
-
});
|
|
54625
|
-
})(reactKeyboardEventHandler);
|
|
54626
|
-
var reactKeyboardEventHandlerExports = reactKeyboardEventHandler.exports;
|
|
54627
|
-
const KeyboardEventHandler = /* @__PURE__ */ getDefaultExportFromCjs(reactKeyboardEventHandlerExports);
|
|
54628
55640
|
const getStringName$1 = (name2) => {
|
|
54629
55641
|
if (!name2) return "";
|
|
54630
55642
|
if (typeof name2 === "string") {
|
|
@@ -54758,7 +55770,7 @@ const NumberInput = ({
|
|
|
54758
55770
|
handleKeys: [EventKey.ENTER],
|
|
54759
55771
|
onKeyEvent: (_key, evt) => onChangeValue(evt),
|
|
54760
55772
|
children: /* @__PURE__ */ jsx(
|
|
54761
|
-
Input,
|
|
55773
|
+
Input$1,
|
|
54762
55774
|
{
|
|
54763
55775
|
type: "text",
|
|
54764
55776
|
name: stringName,
|
|
@@ -56825,11 +57837,11 @@ eventManager.on(
|
|
|
56825
57837
|
);
|
|
56826
57838
|
const toast = ({
|
|
56827
57839
|
id: id2,
|
|
56828
|
-
message = { type: MessageType.INFO, content: "" },
|
|
57840
|
+
message: message2 = { type: MessageType.INFO, content: "" },
|
|
56829
57841
|
autoClose = 6e3,
|
|
56830
57842
|
onClose
|
|
56831
57843
|
}) => {
|
|
56832
|
-
const { type = MessageType.INFO } =
|
|
57844
|
+
const { type = MessageType.INFO } = message2 ?? {};
|
|
56833
57845
|
const CloseButton2 = ({
|
|
56834
57846
|
closeToast
|
|
56835
57847
|
}) => /* @__PURE__ */ jsx(
|
|
@@ -56845,7 +57857,7 @@ const toast = ({
|
|
|
56845
57857
|
Message,
|
|
56846
57858
|
{
|
|
56847
57859
|
message: {
|
|
56848
|
-
...
|
|
57860
|
+
...message2,
|
|
56849
57861
|
visible: true,
|
|
56850
57862
|
width: "100%",
|
|
56851
57863
|
maxHeight: "500px",
|
|
@@ -56854,7 +57866,7 @@ const toast = ({
|
|
|
56854
57866
|
}
|
|
56855
57867
|
);
|
|
56856
57868
|
const toastType = (() => {
|
|
56857
|
-
switch (
|
|
57869
|
+
switch (message2 == null ? void 0 : message2.type) {
|
|
56858
57870
|
case MessageType.SUCCESS:
|
|
56859
57871
|
return toast$1.TYPE.SUCCESS;
|
|
56860
57872
|
case MessageType.WARNING:
|
|
@@ -60767,14 +61779,14 @@ var warning = function() {
|
|
|
60767
61779
|
var invariant = function() {
|
|
60768
61780
|
};
|
|
60769
61781
|
if (process.env.NODE_ENV !== "production") {
|
|
60770
|
-
warning = function(check2,
|
|
61782
|
+
warning = function(check2, message2) {
|
|
60771
61783
|
if (!check2 && typeof console !== "undefined") {
|
|
60772
|
-
console.warn(
|
|
61784
|
+
console.warn(message2);
|
|
60773
61785
|
}
|
|
60774
61786
|
};
|
|
60775
|
-
invariant = function(check2,
|
|
61787
|
+
invariant = function(check2, message2) {
|
|
60776
61788
|
if (!check2) {
|
|
60777
|
-
throw new Error(
|
|
61789
|
+
throw new Error(message2);
|
|
60778
61790
|
}
|
|
60779
61791
|
};
|
|
60780
61792
|
}
|
|
@@ -62951,11 +63963,11 @@ function useTapGesture(_a2) {
|
|
|
62951
63963
|
useUnmountEffect(removePointerEndListener);
|
|
62952
63964
|
}
|
|
62953
63965
|
var warned = /* @__PURE__ */ new Set();
|
|
62954
|
-
function warnOnce(condition,
|
|
62955
|
-
if (condition || warned.has(
|
|
63966
|
+
function warnOnce(condition, message2, element) {
|
|
63967
|
+
if (condition || warned.has(message2))
|
|
62956
63968
|
return;
|
|
62957
|
-
console.warn(
|
|
62958
|
-
warned.add(
|
|
63969
|
+
console.warn(message2);
|
|
63970
|
+
warned.add(message2);
|
|
62959
63971
|
}
|
|
62960
63972
|
var observerCallbacks = /* @__PURE__ */ new WeakMap();
|
|
62961
63973
|
var observers = /* @__PURE__ */ new WeakMap();
|
|
@@ -68877,7 +69889,7 @@ const styles$1 = {
|
|
|
68877
69889
|
const TreeItem = ({
|
|
68878
69890
|
node: node2,
|
|
68879
69891
|
depth,
|
|
68880
|
-
isOpen,
|
|
69892
|
+
isOpen: isOpen2,
|
|
68881
69893
|
onToggle,
|
|
68882
69894
|
hasChild,
|
|
68883
69895
|
draggable: draggable2,
|
|
@@ -68910,7 +69922,7 @@ const TreeItem = ({
|
|
|
68910
69922
|
const handleDragOver = (event) => {
|
|
68911
69923
|
event.preventDefault();
|
|
68912
69924
|
event.stopPropagation();
|
|
68913
|
-
if (hasChild && !
|
|
69925
|
+
if (hasChild && !isOpen2 && (/* @__PURE__ */ new Date()).getTime() - dragOverStartTime > 200) {
|
|
68914
69926
|
handleToggle(event);
|
|
68915
69927
|
}
|
|
68916
69928
|
};
|
|
@@ -68958,10 +69970,10 @@ const TreeItem = ({
|
|
|
68958
69970
|
Button$1,
|
|
68959
69971
|
{
|
|
68960
69972
|
basic: true,
|
|
68961
|
-
colored:
|
|
69973
|
+
colored: isOpen2 ? true : Color.MUTED,
|
|
68962
69974
|
small: true,
|
|
68963
69975
|
round: true,
|
|
68964
|
-
icon:
|
|
69976
|
+
icon: isOpen2 ? (icons2 == null ? void 0 : icons2.collapse) || IconType.COLLAPSE : (icons2 == null ? void 0 : icons2.expand) || IconType.EXPAND,
|
|
68965
69977
|
onClick: handleToggle
|
|
68966
69978
|
}
|
|
68967
69979
|
) }),
|
|
@@ -69089,7 +70101,7 @@ const Tree = ({
|
|
|
69089
70101
|
}
|
|
69090
70102
|
},
|
|
69091
70103
|
rootId: 0,
|
|
69092
|
-
render: (node2, { depth, isOpen, onToggle, hasChild }) => {
|
|
70104
|
+
render: (node2, { depth, isOpen: isOpen2, onToggle, hasChild }) => {
|
|
69093
70105
|
var _a3;
|
|
69094
70106
|
return /* @__PURE__ */ jsx(
|
|
69095
70107
|
TreeItem,
|
|
@@ -69097,9 +70109,9 @@ const Tree = ({
|
|
|
69097
70109
|
hasChild: itemHasChild ? itemHasChild(node2) : hasChild,
|
|
69098
70110
|
node: node2,
|
|
69099
70111
|
depth,
|
|
69100
|
-
isOpen,
|
|
70112
|
+
isOpen: isOpen2,
|
|
69101
70113
|
onToggle: () => {
|
|
69102
|
-
onItemToggle == null ? void 0 : onItemToggle(node2, !
|
|
70114
|
+
onItemToggle == null ? void 0 : onItemToggle(node2, !isOpen2);
|
|
69103
70115
|
onToggle();
|
|
69104
70116
|
},
|
|
69105
70117
|
draggable: draggable2,
|
|
@@ -69448,7 +70460,7 @@ const UnitInput = ({
|
|
|
69448
70460
|
}
|
|
69449
70461
|
}, [initDisplayUnit, value, error2, shouldLinkAutomaticly]);
|
|
69450
70462
|
const alternativeUnits = getAlternativeUnits();
|
|
69451
|
-
const displayUnitLabel = label$
|
|
70463
|
+
const displayUnitLabel = label$b(displayLayer.unit) || displayLayer.unit || "";
|
|
69452
70464
|
const noConvert = noConversion || !alternativeUnits || alternativeUnits && alternativeUnits.length === 1;
|
|
69453
70465
|
const stringName = getStringName(name2);
|
|
69454
70466
|
let sectionsPredefinedMenu;
|
|
@@ -69639,7 +70651,7 @@ const convertVisibleRows = ({
|
|
|
69639
70651
|
type: CellType.SELECT,
|
|
69640
70652
|
searchable: false,
|
|
69641
70653
|
options: (_a2 = getUnitsForQuantity(unitKey)) == null ? void 0 : _a2.map((unit2) => ({
|
|
69642
|
-
label: label$
|
|
70654
|
+
label: label$b(unit2),
|
|
69643
70655
|
value: unit2
|
|
69644
70656
|
})),
|
|
69645
70657
|
native: headerCell.native,
|
|
@@ -69951,11 +70963,11 @@ export {
|
|
|
69951
70963
|
FormRow,
|
|
69952
70964
|
Grid,
|
|
69953
70965
|
GroupOrder,
|
|
69954
|
-
Heading$
|
|
70966
|
+
Heading$2 as Heading,
|
|
69955
70967
|
HelpIcon,
|
|
69956
70968
|
Icon,
|
|
69957
70969
|
IconType,
|
|
69958
|
-
Input,
|
|
70970
|
+
Input$1 as Input,
|
|
69959
70971
|
InputGroup,
|
|
69960
70972
|
InputGroupAddon,
|
|
69961
70973
|
InputReaderMethods,
|