@oliasoft-open-source/react-ui-library 4.15.1-beta-11 → 4.15.1-beta-12
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 +0 -430
- package/dist/index.js +740 -1767
- 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,
|
|
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";
|
|
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$9, 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$S = {
|
|
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, message) {
|
|
290
|
+
var e2 = new Error(message);
|
|
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$R = {
|
|
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$R.wrapper,
|
|
1548
|
+
(clickable2 || onClick) && !disabledContext ? styles$R.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$R.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$R.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$S.chevron, expanded2 ? styles$S.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$5 = "_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$Q = {
|
|
1582
1582
|
accordion,
|
|
1583
1583
|
accordionHeader,
|
|
1584
|
-
heading: heading$
|
|
1584
|
+
heading: heading$5,
|
|
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$Q.accordion,
|
|
1607
|
+
bordered2 ? styles$Q.bordered : "",
|
|
1608
|
+
expanded2 ? styles$Q.expanded : "",
|
|
1609
|
+
squareBottom2 ? styles$Q.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$Q.accordionHeader, onClick ? styles$Q.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$Q.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$Q.accordionContent,
|
|
1629
|
+
bordered2 && padding2 ? styles$Q.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$b = "_small_1ybyr_20";
|
|
1702
1702
|
const checkmark = "_checkmark_1ybyr_43";
|
|
1703
|
-
const disabled$
|
|
1703
|
+
const disabled$8 = "_disabled_1ybyr_67";
|
|
1704
1704
|
const noMargin$2 = "_noMargin_1ybyr_81";
|
|
1705
|
-
const isInTable$
|
|
1705
|
+
const isInTable$3 = "_isInTable_1ybyr_84";
|
|
1706
1706
|
const helpIconEnabled$2 = "_helpIconEnabled_1ybyr_87";
|
|
1707
|
-
const styles$
|
|
1707
|
+
const styles$P = {
|
|
1708
1708
|
checkbox,
|
|
1709
1709
|
noLabel,
|
|
1710
|
-
small: small$
|
|
1710
|
+
small: small$b,
|
|
1711
1711
|
checkmark,
|
|
1712
|
-
disabled: disabled$
|
|
1712
|
+
disabled: disabled$8,
|
|
1713
1713
|
noMargin: noMargin$2,
|
|
1714
|
-
isInTable: isInTable$
|
|
1714
|
+
isInTable: isInTable$3,
|
|
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, message) {
|
|
2211
2211
|
if (!isProduction$3) {
|
|
2212
2212
|
if (condition) {
|
|
2213
2213
|
return;
|
|
2214
2214
|
}
|
|
2215
|
-
var text2 = "Warning: " +
|
|
2215
|
+
var text2 = "Warning: " + message;
|
|
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 isOpen = _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 = !isOpen || !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
|
+
}, [isOpen, onOutsideClick, shouldCloseWhenClickedOutside, possibleRegisterFn]);
|
|
2710
2710
|
useEffect(function() {
|
|
2711
|
-
if (!
|
|
2711
|
+
if (!isOpen) {
|
|
2712
2712
|
registrations.current.forEach(function(_ref4) {
|
|
2713
2713
|
var closeChild = _ref4.closeChild;
|
|
2714
2714
|
return closeChild();
|
|
2715
2715
|
});
|
|
2716
2716
|
}
|
|
2717
|
-
}, [
|
|
2717
|
+
}, [isOpen]);
|
|
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, isOpen = _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, isOpen);
|
|
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: isOpen,
|
|
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,
|
|
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: isOpen ? 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$O = {
|
|
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$O.tooltip,
|
|
3746
|
+
error2 ? styles$O.error : warning2 ? styles$O.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 isOpen = !visible ? false : forceOpen ? true : isOver;
|
|
3783
3783
|
const { renderLayer, triggerProps, layerProps, arrowProps } = useLayer({
|
|
3784
|
-
isOpen
|
|
3784
|
+
isOpen,
|
|
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
|
+
isOpen && 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$N = {
|
|
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$N.helpIcon,
|
|
3847
|
+
onClick ? styles$N.clickable : "",
|
|
3848
|
+
active2 ? styles$N.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$P.checkbox,
|
|
3880
|
+
noMargin2 && styles$P.noMargin,
|
|
3881
|
+
isInTable2 && styles$P.isInTable,
|
|
3882
|
+
isDisabled && styles$P.disabled,
|
|
3883
|
+
small2 && styles$P.small,
|
|
3884
|
+
!label2 && styles$P.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$P.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$P.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$M = {
|
|
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$M.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$M.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$M.bordered, padding2 ? styles$M.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$a = "_inputInTable_1m45a_1";
|
|
3998
|
+
const inputHover$a = "_inputHover_1m45a_13";
|
|
3999
|
+
const inputFocus$a = "_inputFocus_1m45a_18";
|
|
4000
|
+
const inputError$a = "_inputError_1m45a_25";
|
|
4001
|
+
const inputWarning$a = "_inputWarning_1m45a_26";
|
|
4002
|
+
const inputDisabled$a = "_inputDisabled_1m45a_61";
|
|
4003
|
+
const hideScrollbars$a = "_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$4 = "_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$7 = "_disabled_1m45a_188";
|
|
4014
|
+
const small$a = "_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$3 = "_groupOrderFirst_1m45a_340";
|
|
4019
|
+
const groupOrderMiddle$3 = "_groupOrderMiddle_1m45a_341";
|
|
4020
|
+
const groupOrderLast$3 = "_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$a,
|
|
4023
|
+
inputHover: inputHover$a,
|
|
4024
|
+
inputFocus: inputFocus$a,
|
|
4025
|
+
inputError: inputError$a,
|
|
4026
|
+
inputWarning: inputWarning$a,
|
|
4027
|
+
inputDisabled: inputDisabled$a,
|
|
4028
|
+
hideScrollbars: hideScrollbars$a,
|
|
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$4,
|
|
4035
4035
|
iconOnly,
|
|
4036
4036
|
basic,
|
|
4037
4037
|
muted: muted$2,
|
|
4038
|
-
disabled: disabled$
|
|
4039
|
-
small: small$
|
|
4038
|
+
disabled: disabled$7,
|
|
4039
|
+
small: small$a,
|
|
4040
4040
|
pill,
|
|
4041
4041
|
round,
|
|
4042
4042
|
inverted: inverted$1,
|
|
4043
|
-
groupOrderFirst: groupOrderFirst$
|
|
4044
|
-
groupOrderMiddle: groupOrderMiddle$
|
|
4045
|
-
groupOrderLast: groupOrderLast$
|
|
4043
|
+
groupOrderFirst: groupOrderFirst$3,
|
|
4044
|
+
groupOrderMiddle: groupOrderMiddle$3,
|
|
4045
|
+
groupOrderLast: groupOrderLast$3
|
|
4046
4046
|
};
|
|
4047
4047
|
const spinner = "_spinner_156m4_1";
|
|
4048
|
-
const styles$
|
|
4048
|
+
const styles$L = {
|
|
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$L.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$K = {
|
|
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
|
|
4191
|
-
const layerContainer
|
|
4190
|
+
const layer = "_layer_8cxhw_5";
|
|
4191
|
+
const layerContainer = "_layerContainer_8cxhw_8";
|
|
4192
4192
|
const nested = "_nested_8cxhw_24";
|
|
4193
4193
|
const fileInput$1 = "_fileInput_8cxhw_36";
|
|
4194
|
-
const trigger$
|
|
4194
|
+
const trigger$1 = "_trigger_8cxhw_41";
|
|
4195
4195
|
const middleAlignedInline = "_middleAlignedInline_8cxhw_50";
|
|
4196
|
-
const heading$
|
|
4196
|
+
const heading$4 = "_heading_8cxhw_56";
|
|
4197
4197
|
const headingIcon = "_headingIcon_8cxhw_62";
|
|
4198
|
-
const option
|
|
4198
|
+
const option = "_option_8cxhw_74";
|
|
4199
4199
|
const active$6 = "_active_8cxhw_93";
|
|
4200
|
-
const selected
|
|
4201
|
-
const optionContent
|
|
4200
|
+
const selected = "_selected_8cxhw_98";
|
|
4201
|
+
const optionContent = "_optionContent_8cxhw_105";
|
|
4202
4202
|
const inline$4 = "_inline_8cxhw_109";
|
|
4203
|
-
const icon$
|
|
4204
|
-
const check
|
|
4203
|
+
const icon$3 = "_icon_8cxhw_114";
|
|
4204
|
+
const check = "_check_8cxhw_115";
|
|
4205
4205
|
const text$3 = "_text_8cxhw_141";
|
|
4206
|
-
const label$
|
|
4206
|
+
const label$8 = "_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$6 = "_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$6 = "_right_8cxhw_194";
|
|
4216
4216
|
const actions$1 = "_actions_8cxhw_199";
|
|
4217
|
-
const styles$
|
|
4217
|
+
const styles$J = {
|
|
4218
4218
|
wrapper: wrapper$4,
|
|
4219
|
-
layer
|
|
4220
|
-
layerContainer
|
|
4219
|
+
layer,
|
|
4220
|
+
layerContainer,
|
|
4221
4221
|
nested,
|
|
4222
4222
|
fileInput: fileInput$1,
|
|
4223
|
-
trigger: trigger$
|
|
4223
|
+
trigger: trigger$1,
|
|
4224
4224
|
middleAlignedInline,
|
|
4225
|
-
heading: heading$
|
|
4225
|
+
heading: heading$4,
|
|
4226
4226
|
headingIcon,
|
|
4227
|
-
option
|
|
4227
|
+
option,
|
|
4228
4228
|
active: active$6,
|
|
4229
|
-
selected
|
|
4230
|
-
optionContent
|
|
4229
|
+
selected,
|
|
4230
|
+
optionContent,
|
|
4231
4231
|
inline: inline$4,
|
|
4232
|
-
icon: icon$
|
|
4233
|
-
check
|
|
4232
|
+
icon: icon$3,
|
|
4233
|
+
check,
|
|
4234
4234
|
text: text$3,
|
|
4235
|
-
label: label$
|
|
4235
|
+
label: label$8,
|
|
4236
4236
|
description,
|
|
4237
4237
|
arrow: arrow$1,
|
|
4238
4238
|
divider: divider$1,
|
|
4239
4239
|
deprecatedSemanticIcon,
|
|
4240
|
-
disabled: disabled$
|
|
4240
|
+
disabled: disabled$6,
|
|
4241
4241
|
buttonLabel,
|
|
4242
4242
|
buttonCaret,
|
|
4243
4243
|
component,
|
|
4244
|
-
right: right$
|
|
4244
|
+
right: right$6,
|
|
4245
4245
|
actions: actions$1
|
|
4246
4246
|
};
|
|
4247
|
-
const Heading$
|
|
4247
|
+
const Heading$2 = ({ 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$J.heading,
|
|
4252
4252
|
"data-testid": testId,
|
|
4253
4253
|
children: [
|
|
4254
4254
|
label2,
|
|
4255
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
4255
|
+
/* @__PURE__ */ jsx("span", { className: styles$J.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$J.divider });
|
|
4260
|
+
const Option$1 = ({
|
|
4261
4261
|
actions: actions2,
|
|
4262
4262
|
label: label2,
|
|
4263
4263
|
url,
|
|
@@ -4309,30 +4309,30 @@ const Option$2 = ({
|
|
|
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$J.option,
|
|
4313
|
+
disabled2 ? styles$J.disabled : "",
|
|
4314
|
+
inline2 ? styles$J.inline : "",
|
|
4315
|
+
selected2 ? styles$J.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$J.icon, children: /* @__PURE__ */ jsx(Icon, { icon: icon2 }) }) : null,
|
|
4321
|
+
/* @__PURE__ */ jsxs("div", { className: styles$J.optionContent, children: [
|
|
4322
4322
|
upload && /* @__PURE__ */ jsx(
|
|
4323
4323
|
"input",
|
|
4324
4324
|
{
|
|
4325
4325
|
type: "file",
|
|
4326
|
-
className: styles$
|
|
4326
|
+
className: styles$J.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$J.label, title: `${title2 || label2}`, children: label2 }),
|
|
4331
|
+
/* @__PURE__ */ jsx("span", { className: styles$J.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$J.right, children: [
|
|
4334
|
+
selected2 && /* @__PURE__ */ jsx("span", { className: styles$J.check, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHECK }) }),
|
|
4335
|
+
!!(actions2 == null ? void 0 : actions2.length) && /* @__PURE__ */ jsx("div", { className: styles$J.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 = ({
|
|
4355
4355
|
section: section2,
|
|
4356
4356
|
closeOnOptionClick,
|
|
4357
4357
|
close: close2,
|
|
@@ -4364,7 +4364,7 @@ const Section$1 = ({
|
|
|
4364
4364
|
switch (section2.type) {
|
|
4365
4365
|
case MenuType.HEADING:
|
|
4366
4366
|
return /* @__PURE__ */ jsx(
|
|
4367
|
-
Heading$
|
|
4367
|
+
Heading$2,
|
|
4368
4368
|
{
|
|
4369
4369
|
label: (section2 == null ? void 0 : section2.label) ?? "",
|
|
4370
4370
|
onClick: section2.onClick,
|
|
@@ -4376,7 +4376,7 @@ const Section$1 = ({
|
|
|
4376
4376
|
return /* @__PURE__ */ jsx(Divider$1, {});
|
|
4377
4377
|
case MenuType.OPTION:
|
|
4378
4378
|
return /* @__PURE__ */ jsx(
|
|
4379
|
-
Option$
|
|
4379
|
+
Option$1,
|
|
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$1 = ({
|
|
4428
4428
|
sections,
|
|
4429
4429
|
isNested,
|
|
4430
4430
|
width: width2,
|
|
@@ -4470,11 +4470,11 @@ const Layer$2 = ({
|
|
|
4470
4470
|
return /* @__PURE__ */ jsx(
|
|
4471
4471
|
"div",
|
|
4472
4472
|
{
|
|
4473
|
-
className: cx$2(styles$
|
|
4473
|
+
className: cx$2(styles$J.layer, isNested ? styles$J.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,
|
|
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$7 = "_label_nwprz_11";
|
|
4505
4505
|
const dark = "_dark_nwprz_23";
|
|
4506
4506
|
const light = "_light_nwprz_26";
|
|
4507
|
-
const small$
|
|
4507
|
+
const small$9 = "_small_nwprz_29";
|
|
4508
4508
|
const dot$1 = "_dot_nwprz_33";
|
|
4509
4509
|
const hasChildren = "_hasChildren_nwprz_39";
|
|
4510
|
-
const styles$
|
|
4510
|
+
const styles$I = {
|
|
4511
4511
|
wrapper: wrapper$3,
|
|
4512
4512
|
badge,
|
|
4513
|
-
label: label$
|
|
4513
|
+
label: label$7,
|
|
4514
4514
|
dark,
|
|
4515
4515
|
light,
|
|
4516
|
-
small: small$
|
|
4516
|
+
small: small$9,
|
|
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$I.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$I.badge,
|
|
4544
|
+
isDark(color2) ? styles$I.dark : styles$I.light,
|
|
4545
|
+
title2 !== null ? styles$I.label : styles$I.dot,
|
|
4546
|
+
small2 ? styles$I.small : "",
|
|
4547
|
+
children ? styles$I.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$J.middleAlignedInline, children: [
|
|
4574
|
+
/* @__PURE__ */ jsx("span", { className: styles$J.buttonLabel, children: label2 }),
|
|
4575
|
+
/* @__PURE__ */ jsx("span", { className: styles$J.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$J.trigger,
|
|
4582
|
+
disabled2 || disabledContext ? styles$J.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,
|
|
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$J.trigger,
|
|
4624
|
+
disabled2 ? styles$J.disabled : null,
|
|
4625
|
+
isOpen ? styles$J.active : null,
|
|
4626
|
+
selected2 ? styles$J.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$J.label, title: titleText, children: label2 }),
|
|
4630
|
+
carat && carat === MenuCarat.RIGHT ? /* @__PURE__ */ jsx("span", { className: styles$J.arrow, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHEVRON_RIGHT }) }) : carat && carat === MenuCarat.DOWN ? /* @__PURE__ */ jsx("span", { className: styles$J.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$J.component, disabled2 ? styles$J.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
|
|
4669
|
+
const Trigger = React__default.forwardRef(
|
|
4670
4670
|
({
|
|
4671
4671
|
isDisabled,
|
|
4672
4672
|
badgeTitle,
|
|
@@ -4684,7 +4684,7 @@ const Trigger$1 = React__default.forwardRef(
|
|
|
4684
4684
|
component: component2,
|
|
4685
4685
|
groupOrder,
|
|
4686
4686
|
fullHeight,
|
|
4687
|
-
isOpen
|
|
4687
|
+
isOpen,
|
|
4688
4688
|
error: error2,
|
|
4689
4689
|
warning: warning2,
|
|
4690
4690
|
tooltip: tooltip2,
|
|
@@ -4705,7 +4705,7 @@ const Trigger$1 = React__default.forwardRef(
|
|
|
4705
4705
|
loading,
|
|
4706
4706
|
error: error2,
|
|
4707
4707
|
warning: warning2,
|
|
4708
|
-
active:
|
|
4708
|
+
active: isOpen
|
|
4709
4709
|
}
|
|
4710
4710
|
) : trigger2 === TriggerType.TEXT ? /* @__PURE__ */ jsx(
|
|
4711
4711
|
Text$1,
|
|
@@ -4714,7 +4714,7 @@ const Trigger$1 = 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,
|
|
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$1 = React__default.forwardRef(
|
|
|
4723
4723
|
"div",
|
|
4724
4724
|
{
|
|
4725
4725
|
ref: ref2,
|
|
4726
|
-
className: styles$
|
|
4726
|
+
className: styles$J.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 isOpen = hasMousePosition;
|
|
4767
4767
|
const { layerProps, renderLayer } = useLayer({
|
|
4768
|
-
isOpen
|
|
4768
|
+
isOpen,
|
|
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 = isOpen && renderLayer(
|
|
4777
4777
|
/* @__PURE__ */ jsx("div", { ...layerProps, children: /* @__PURE__ */ jsx(
|
|
4778
|
-
Layer$
|
|
4778
|
+
Layer$1,
|
|
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,
|
|
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 [isOpen, 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,
|
|
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 (isOpen) {
|
|
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,
|
|
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,
|
|
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
|
+
isOpen && renderLayer(
|
|
4948
4948
|
/* @__PURE__ */ jsx(
|
|
4949
4949
|
"div",
|
|
4950
4950
|
{
|
|
4951
4951
|
...layerProps,
|
|
4952
|
-
className: styles$
|
|
4952
|
+
className: styles$J.layerContainer,
|
|
4953
4953
|
"data-testid": menu2.testId,
|
|
4954
4954
|
onClick: (evt) => evt.stopPropagation(),
|
|
4955
4955
|
children: /* @__PURE__ */ jsx(
|
|
4956
|
-
Layer$
|
|
4956
|
+
Layer$1,
|
|
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$K.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$K.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$8 = "_small_2k0cd_4";
|
|
5079
5079
|
const labelContainer = "_labelContainer_2k0cd_7";
|
|
5080
5080
|
const active$5 = "_active_2k0cd_17";
|
|
5081
|
-
const disabled$
|
|
5081
|
+
const disabled$5 = "_disabled_2k0cd_22";
|
|
5082
5082
|
const separator = "_separator_2k0cd_27";
|
|
5083
|
-
const styles$
|
|
5083
|
+
const styles$H = {
|
|
5084
5084
|
breadcrumb,
|
|
5085
|
-
small: small$
|
|
5085
|
+
small: small$8,
|
|
5086
5086
|
labelContainer,
|
|
5087
5087
|
active: active$5,
|
|
5088
|
-
disabled: disabled$
|
|
5088
|
+
disabled: disabled$5,
|
|
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$H.labelContainer,
|
|
5115
|
+
active2 && styles$H.active,
|
|
5116
|
+
(disabled2 || disabledContext) && styles$H.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$H.breadcrumb, small2 && styles$H.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$H.separator, children: "/" })
|
|
5140
5140
|
] }, i);
|
|
5141
5141
|
}) });
|
|
5142
5142
|
};
|
|
5143
|
-
const label$
|
|
5143
|
+
const label$6 = "_label_iu2wi_1";
|
|
5144
5144
|
const buttonGroup = "_buttonGroup_iu2wi_11";
|
|
5145
|
-
const styles$
|
|
5146
|
-
label: label$
|
|
5145
|
+
const styles$G = {
|
|
5146
|
+
label: label$6,
|
|
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$G.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$G.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$F = {
|
|
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$F.card,
|
|
5288
|
+
bordered2 ? styles$F.bordered : "",
|
|
5289
|
+
raised2 ? styles$F.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$F.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$F.cardContent,
|
|
5299
|
+
heading2 ? styles$F.cardContentBorderTop : "",
|
|
5300
|
+
padding2 ? styles$F.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, message) {
|
|
5329
|
+
var e2 = new Error(message);
|
|
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$E = {
|
|
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$7 = "_small_11ofj_22";
|
|
6513
6513
|
const link$1 = "_link_11ofj_25";
|
|
6514
|
-
const styles$
|
|
6514
|
+
const styles$D = {
|
|
6515
6515
|
bold: bold$1,
|
|
6516
6516
|
center,
|
|
6517
6517
|
muted: muted$1,
|
|
@@ -6519,7 +6519,7 @@ const styles$F = {
|
|
|
6519
6519
|
success: success$1,
|
|
6520
6520
|
warning: warning$5,
|
|
6521
6521
|
error: error$2,
|
|
6522
|
-
small: small$
|
|
6522
|
+
small: small$7,
|
|
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$D.bold,
|
|
6543
|
+
center2 && styles$D.center,
|
|
6544
|
+
error2 && styles$D.error,
|
|
6545
|
+
faint2 && styles$D.faint,
|
|
6546
|
+
link2 && styles$D.link,
|
|
6547
|
+
muted2 && styles$D.muted,
|
|
6548
|
+
onClick && styles$D.clickable,
|
|
6549
|
+
small2 && styles$D.small,
|
|
6550
|
+
success2 && styles$D.success,
|
|
6551
|
+
warning2 && styles$D.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$E.alignLeft;
|
|
6562
6562
|
case Align.RIGHT:
|
|
6563
|
-
return styles$
|
|
6563
|
+
return styles$E.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$E.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$3 = "_heading_yhdiy_1";
|
|
6586
6586
|
const top$1 = "_top_yhdiy_10";
|
|
6587
|
-
const icons$
|
|
6588
|
-
const styles$
|
|
6589
|
-
heading: heading$
|
|
6587
|
+
const icons$1 = "_icons_yhdiy_20";
|
|
6588
|
+
const styles$C = {
|
|
6589
|
+
heading: heading$3,
|
|
6590
6590
|
top: top$1,
|
|
6591
|
-
icons: icons$
|
|
6591
|
+
icons: icons$1
|
|
6592
6592
|
};
|
|
6593
|
-
const Heading$
|
|
6593
|
+
const Heading$1 = ({
|
|
6594
6594
|
children,
|
|
6595
6595
|
helpText,
|
|
6596
6596
|
onClick,
|
|
@@ -6606,13 +6606,13 @@ const Heading$2 = ({
|
|
|
6606
6606
|
return /* @__PURE__ */ jsxs(
|
|
6607
6607
|
"div",
|
|
6608
6608
|
{
|
|
6609
|
-
className: cx$2(styles$
|
|
6609
|
+
className: cx$2(styles$C.heading, top2 ? styles$C.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$C.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$B = {
|
|
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$B.dialog,
|
|
6674
|
+
width2 ? styles$B.inline : null,
|
|
6675
|
+
scroll3 ? styles$B.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$B.header, children: [
|
|
6681
|
+
/* @__PURE__ */ jsx(Heading$1, { testId: testId && `${testId}-heading`, top: true, marginBottom: 0, children: heading2 }),
|
|
6682
|
+
onClose ? /* @__PURE__ */ jsx("div", { className: styles$B.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$B.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$B.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$9 = "_inputInTable_1f40p_1";
|
|
6717
|
+
const inputHover$9 = "_inputHover_1f40p_13";
|
|
6718
|
+
const inputFocus$9 = "_inputFocus_1f40p_18";
|
|
6719
|
+
const inputError$9 = "_inputError_1f40p_25";
|
|
6720
|
+
const inputWarning$9 = "_inputWarning_1f40p_26";
|
|
6721
|
+
const inputDisabled$9 = "_inputDisabled_1f40p_61";
|
|
6722
|
+
const hideScrollbars$9 = "_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$5 = "_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$4 = "_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$A = {
|
|
6742
|
+
inputInTable: inputInTable$9,
|
|
6743
|
+
inputHover: inputHover$9,
|
|
6744
|
+
inputFocus: inputFocus$9,
|
|
6745
|
+
inputError: inputError$9,
|
|
6746
|
+
inputWarning: inputWarning$9,
|
|
6747
|
+
inputDisabled: inputDisabled$9,
|
|
6748
|
+
hideScrollbars: hideScrollbars$9,
|
|
6749
6749
|
inline: inline$2,
|
|
6750
6750
|
left: left$2,
|
|
6751
|
-
right: right$
|
|
6751
|
+
right: right$5,
|
|
6752
6752
|
fixed: fixed$1,
|
|
6753
6753
|
border: border$1,
|
|
6754
6754
|
shadow,
|
|
@@ -6761,7 +6761,7 @@ const styles$C = {
|
|
|
6761
6761
|
tabs: tabs$1,
|
|
6762
6762
|
tab: tab$1,
|
|
6763
6763
|
active: active$4,
|
|
6764
|
-
disabled: disabled$
|
|
6764
|
+
disabled: disabled$4,
|
|
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$A.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$A.tab,
|
|
6787
|
+
activeTab === index2 && open ? styles$A.active : "",
|
|
6788
|
+
tab2.disabled ? styles$A.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$A.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$A.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$A.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$A.drawer,
|
|
8849
|
+
shadow4 ? styles$A.shadow : "",
|
|
8850
|
+
fixed2 ? styles$A.fixed : styles$A.inline,
|
|
8851
|
+
right2 ? styles$A.right : styles$A.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$A.drawerContent, border2 && styles$A.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$A.toggleButton,
|
|
8885
|
+
localOpen && (isStandardButton || isCustomButton && buttonAnimate) ? styles$A.toggleButtonOpen : "",
|
|
8886
|
+
buttonPosition === "top" ? styles$A.top : styles$A.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$z = {
|
|
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$z.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$z.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$y = {
|
|
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$y.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
|
|
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$8 = "_inputInTable_1285q_1";
|
|
9038
|
+
const inputHover$8 = "_inputHover_1285q_13";
|
|
9039
|
+
const inputFocus$8 = "_inputFocus_1285q_18";
|
|
9040
|
+
const inputError$8 = "_inputError_1285q_25";
|
|
9041
|
+
const inputWarning$8 = "_inputWarning_1285q_26";
|
|
9042
|
+
const inputDisabled$8 = "_inputDisabled_1285q_61";
|
|
9043
|
+
const hideScrollbars$8 = "_hideScrollbars_1285q_67";
|
|
9044
|
+
const input = "_input_1285q_1";
|
|
9045
|
+
const isInTable$2 = "_isInTable_1285q_100";
|
|
9046
|
+
const small$6 = "_small_1285q_124";
|
|
9047
|
+
const right$4 = "_right_1285q_170";
|
|
9048
|
+
const groupOrderFirst$2 = "_groupOrderFirst_1285q_173";
|
|
9049
|
+
const groupOrderMiddle$2 = "_groupOrderMiddle_1285q_174";
|
|
9050
|
+
const groupOrderLast$2 = "_groupOrderLast_1285q_175";
|
|
9051
|
+
const styles$x = {
|
|
9052
|
+
inputInTable: inputInTable$8,
|
|
9053
|
+
inputHover: inputHover$8,
|
|
9054
|
+
inputFocus: inputFocus$8,
|
|
9055
|
+
inputError: inputError$8,
|
|
9056
|
+
inputWarning: inputWarning$8,
|
|
9057
|
+
inputDisabled: inputDisabled$8,
|
|
9058
|
+
hideScrollbars: hideScrollbars$8,
|
|
9059
|
+
input,
|
|
9060
|
+
isInTable: isInTable$2,
|
|
9061
|
+
small: small$6,
|
|
9062
|
+
right: right$4,
|
|
9063
|
+
groupOrderFirst: groupOrderFirst$2,
|
|
9064
|
+
groupOrderMiddle: groupOrderMiddle$2,
|
|
9065
|
+
groupOrderLast: groupOrderLast$2
|
|
9066
9066
|
};
|
|
9067
|
-
const Input
|
|
9067
|
+
const Input = forwardRef(
|
|
9068
9068
|
({
|
|
9069
9069
|
error: error2 = null,
|
|
9070
9070
|
tooltip: tooltip2 = null,
|
|
@@ -9100,11 +9100,11 @@ const Input$1 = forwardRef(
|
|
|
9100
9100
|
if (groupOrder) {
|
|
9101
9101
|
switch (groupOrder) {
|
|
9102
9102
|
case "first":
|
|
9103
|
-
return styles$
|
|
9103
|
+
return styles$x.groupOrderFirst;
|
|
9104
9104
|
case "last":
|
|
9105
|
-
return styles$
|
|
9105
|
+
return styles$x.groupOrderLast;
|
|
9106
9106
|
default:
|
|
9107
|
-
return styles$
|
|
9107
|
+
return styles$x.groupOrderMiddle;
|
|
9108
9108
|
}
|
|
9109
9109
|
}
|
|
9110
9110
|
return "";
|
|
@@ -9138,10 +9138,10 @@ const Input$1 = 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$x.input,
|
|
9142
|
+
right2 ? styles$x.right : "",
|
|
9143
|
+
small2 ? styles$x.small : "",
|
|
9144
|
+
isInTable2 ? styles$x.isInTable : ""
|
|
9145
9145
|
),
|
|
9146
9146
|
style: { width: width2 },
|
|
9147
9147
|
"data-error": error2 || null,
|
|
@@ -9154,7 +9154,7 @@ const Input$1 = forwardRef(
|
|
|
9154
9154
|
}
|
|
9155
9155
|
);
|
|
9156
9156
|
const fileInput = "_fileInput_1elar_1";
|
|
9157
|
-
const styles$
|
|
9157
|
+
const styles$w = {
|
|
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
|
|
9235
|
+
/* @__PURE__ */ jsx(Input, { 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$w.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$5 = "_label_18pfe_1";
|
|
9262
9262
|
const labelLeft$1 = "_labelLeft_18pfe_5";
|
|
9263
|
-
const icons
|
|
9264
|
-
const styles$
|
|
9265
|
-
label: label$
|
|
9263
|
+
const icons = "_icons_18pfe_13";
|
|
9264
|
+
const styles$v = {
|
|
9265
|
+
label: label$5,
|
|
9266
9266
|
labelLeft: labelLeft$1,
|
|
9267
|
-
icons
|
|
9267
|
+
icons
|
|
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$v.label, labelLeft2 ? styles$v.labelLeft : ""), children: /* @__PURE__ */ jsxs("label", { style: { width: width2 || "" }, children: [
|
|
9288
9288
|
label2,
|
|
9289
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
9289
|
+
/* @__PURE__ */ jsxs("div", { className: styles$v.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$u = {
|
|
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$u.field, labelLeft2 ? styles$u.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$u.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$t = {
|
|
9404
9404
|
formRow
|
|
9405
9405
|
};
|
|
9406
9406
|
const FormRow = ({ children }) => {
|
|
9407
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
9407
|
+
return /* @__PURE__ */ jsx("div", { className: styles$t.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$5 = "_small_b4w53_12";
|
|
9464
|
+
const groupOrderFirst$1 = "_groupOrderFirst_b4w53_16";
|
|
9465
|
+
const groupOrderMiddle$1 = "_groupOrderMiddle_b4w53_17";
|
|
9466
|
+
const groupOrderLast$1 = "_groupOrderLast_b4w53_21";
|
|
9467
|
+
const styles$s = {
|
|
9468
9468
|
addon,
|
|
9469
|
-
small: small$
|
|
9470
|
-
groupOrderFirst: groupOrderFirst$
|
|
9471
|
-
groupOrderMiddle: groupOrderMiddle$
|
|
9472
|
-
groupOrderLast: groupOrderLast$
|
|
9469
|
+
small: small$5,
|
|
9470
|
+
groupOrderFirst: groupOrderFirst$1,
|
|
9471
|
+
groupOrderMiddle: groupOrderMiddle$1,
|
|
9472
|
+
groupOrderLast: groupOrderLast$1
|
|
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$s.groupOrderFirst;
|
|
9484
9484
|
case GroupOrder.LAST:
|
|
9485
|
-
return styles$
|
|
9485
|
+
return styles$s.groupOrderLast;
|
|
9486
9486
|
default:
|
|
9487
|
-
return styles$
|
|
9487
|
+
return styles$s.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$s.addon, order2, small2 ? styles$s.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(message) {
|
|
10899
10899
|
if (typeof console !== "undefined" && typeof console.error === "function") {
|
|
10900
|
-
console.error(
|
|
10900
|
+
console.error(message);
|
|
10901
10901
|
}
|
|
10902
10902
|
try {
|
|
10903
|
-
throw new Error(
|
|
10903
|
+
throw new Error(message);
|
|
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, message) {
|
|
11170
11170
|
if (isProduction$2) {
|
|
11171
11171
|
throw new Error(prefix$2);
|
|
11172
11172
|
}
|
|
11173
|
-
var provided = typeof
|
|
11173
|
+
var provided = typeof message === "function" ? message() : message;
|
|
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(message) {
|
|
11384
|
+
return clean("\n %creact-beautiful-dnd\n\n %c" + clean(message) + "\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(message) {
|
|
11387
|
+
return [getDevMessage(message), "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, message) {
|
|
11391
11391
|
var _console;
|
|
11392
11392
|
if (isProduction$1) {
|
|
11393
11393
|
return;
|
|
@@ -11395,7 +11395,7 @@ function log(type, message2) {
|
|
|
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(message));
|
|
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(message) {
|
|
11424
|
+
this.message = message;
|
|
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, message) {
|
|
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 + ": " + (message || ""));
|
|
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 now = whatIsDraggedOver(impact);
|
|
13030
13030
|
if (!last) {
|
|
13031
13031
|
return droppables;
|
|
13032
13032
|
}
|
|
13033
|
-
if (last ===
|
|
13033
|
+
if (last === now) {
|
|
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(message) {
|
|
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(message);
|
|
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
|
|
14414
|
+
var focus = 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
|
|
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))));
|
|
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 now = Date.now();
|
|
14875
|
+
var runTime = now - 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 focused = document.activeElement;
|
|
15522
|
+
if (!focused) {
|
|
15523
15523
|
return;
|
|
15524
15524
|
}
|
|
15525
|
-
if (
|
|
15525
|
+
if (focused.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(message) {
|
|
15726
15726
|
var el2 = ref2.current;
|
|
15727
15727
|
if (el2) {
|
|
15728
|
-
el2.textContent =
|
|
15728
|
+
el2.textContent = message;
|
|
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 "' + message + '"\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$7 = "_inputInTable_1llou_1";
|
|
18681
|
+
const inputHover$7 = "_inputHover_1llou_13";
|
|
18682
|
+
const inputFocus$7 = "_inputFocus_1llou_18";
|
|
18683
|
+
const inputError$7 = "_inputError_1llou_25";
|
|
18684
|
+
const inputWarning$7 = "_inputWarning_1llou_26";
|
|
18685
|
+
const inputDisabled$7 = "_inputDisabled_1llou_61";
|
|
18686
|
+
const hideScrollbars$7 = "_hideScrollbars_1llou_67";
|
|
18687
18687
|
const header$1 = "_header_1llou_77";
|
|
18688
18688
|
const headerTitle = "_headerTitle_1llou_77";
|
|
18689
|
-
const heading$
|
|
18689
|
+
const heading$2 = "_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$3 = "_disabled_1llou_215";
|
|
18706
|
+
const label$4 = "_label_1llou_226";
|
|
18707
|
+
const details$1 = "_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$3 = "_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$7,
|
|
18721
|
+
inputHover: inputHover$7,
|
|
18722
|
+
inputFocus: inputFocus$7,
|
|
18723
|
+
inputError: inputError$7,
|
|
18724
|
+
inputWarning: inputWarning$7,
|
|
18725
|
+
inputDisabled: inputDisabled$7,
|
|
18726
|
+
hideScrollbars: hideScrollbars$7,
|
|
18727
18727
|
header: header$1,
|
|
18728
18728
|
headerTitle,
|
|
18729
|
-
heading: heading$
|
|
18729
|
+
heading: heading$2,
|
|
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$3,
|
|
18746
|
+
label: label$4,
|
|
18747
|
+
details: details$1,
|
|
18748
18748
|
metadata,
|
|
18749
18749
|
itemContent,
|
|
18750
18750
|
indentIcon,
|
|
18751
18751
|
expandIcon,
|
|
18752
18752
|
expanded,
|
|
18753
|
-
right: right$
|
|
18753
|
+
right: right$3,
|
|
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$1, { 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
|
|
18980
|
-
const styles$
|
|
18979
|
+
const details = "_details_477i5_53";
|
|
18980
|
+
const styles$r = {
|
|
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
|
|
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$r.loader, cover2 ? styles$r.cover : "", {
|
|
19006
|
+
[styles$r.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$r.dimmer, style: { background: background2, color: color2 }, children: /* @__PURE__ */ jsxs(
|
|
19011
19011
|
"div",
|
|
19012
19012
|
{
|
|
19013
|
-
className: styles$
|
|
19013
|
+
className: styles$r.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$r.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$r.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$6 = "_inputInTable_1okhq_1";
|
|
19212
|
+
const inputHover$6 = "_inputHover_1okhq_13";
|
|
19213
|
+
const inputFocus$6 = "_inputFocus_1okhq_18";
|
|
19214
|
+
const inputError$6 = "_inputError_1okhq_25";
|
|
19215
|
+
const inputWarning$6 = "_inputWarning_1okhq_26";
|
|
19216
|
+
const inputDisabled$6 = "_inputDisabled_1okhq_61";
|
|
19217
|
+
const hideScrollbars$6 = "_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$1 = "_heading_1okhq_124";
|
|
19226
|
+
const icon$2 = "_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$q = {
|
|
19233
|
+
inputInTable: inputInTable$6,
|
|
19234
|
+
inputHover: inputHover$6,
|
|
19235
|
+
inputFocus: inputFocus$6,
|
|
19236
|
+
inputError: inputError$6,
|
|
19237
|
+
inputWarning: inputWarning$6,
|
|
19238
|
+
inputDisabled: inputDisabled$6,
|
|
19239
|
+
hideScrollbars: hideScrollbars$6,
|
|
19240
19240
|
container: container$1,
|
|
19241
19241
|
block: block$1,
|
|
19242
19242
|
info,
|
|
@@ -19244,8 +19244,8 @@ const styles$s = {
|
|
|
19244
19244
|
warning: warning$2,
|
|
19245
19245
|
error,
|
|
19246
19246
|
content: content$1,
|
|
19247
|
-
heading: heading$
|
|
19248
|
-
icon: icon$
|
|
19247
|
+
heading: heading$1,
|
|
19248
|
+
icon: icon$2,
|
|
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$q.dismiss,
|
|
19277
|
+
isInToast ? styles$q.absolute : "",
|
|
19278
|
+
type === MessageType.INFO ? styles$q.info : type === MessageType.SUCCESS ? styles$q.success : type === MessageType.WARNING ? styles$q.warning : type === MessageType.ERROR ? styles$q.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$q.legendToggle), onClick: dispatch, children: visible ? "Hide details" : "Show details" }),
|
|
19298
|
+
visible ? /* @__PURE__ */ jsx("div", { className: styles$q.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 }) => {
|
|
19315
19315
|
const {
|
|
19316
19316
|
visible,
|
|
19317
19317
|
type = MessageType.INFO,
|
|
@@ -19325,7 +19325,7 @@ const Message = ({ message: message2 }) => {
|
|
|
19325
19325
|
onClose,
|
|
19326
19326
|
width: width2,
|
|
19327
19327
|
maxHeight
|
|
19328
|
-
} =
|
|
19328
|
+
} = message;
|
|
19329
19329
|
const initialState2 = {
|
|
19330
19330
|
detailsVisible
|
|
19331
19331
|
};
|
|
@@ -19334,15 +19334,15 @@ const Message = ({ message: message2 }) => {
|
|
|
19334
19334
|
"div",
|
|
19335
19335
|
{
|
|
19336
19336
|
className: cx$2(
|
|
19337
|
-
styles$
|
|
19338
|
-
width2 ? styles$
|
|
19339
|
-
type === MessageType.SUCCESS ? styles$
|
|
19337
|
+
styles$q.container,
|
|
19338
|
+
width2 ? styles$q.block : null,
|
|
19339
|
+
type === MessageType.SUCCESS ? styles$q.success : type === MessageType.WARNING ? styles$q.warning : type === MessageType.ERROR ? styles$q.error : styles$q.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$q.icon, children: /* @__PURE__ */ jsx(DialogIcon, { type }) }) : null }),
|
|
19344
|
+
/* @__PURE__ */ jsxs("div", { className: styles$q.content, children: [
|
|
19345
|
+
heading2 ? /* @__PURE__ */ jsx("div", { className: styles$q.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: message2 }) => {
|
|
|
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$q.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$p = {
|
|
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$p.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$p.contentContainer, centered2 ? styles$p.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
|
|
19461
|
-
const styles$
|
|
19460
|
+
const heading = "_heading_12x4u_32";
|
|
19461
|
+
const styles$o = {
|
|
19462
19462
|
menu: menu$1,
|
|
19463
19463
|
header,
|
|
19464
19464
|
item: item$3,
|
|
19465
|
-
heading
|
|
19465
|
+
heading
|
|
19466
19466
|
};
|
|
19467
|
-
const Option
|
|
19467
|
+
const Option = ({
|
|
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$o.item, children: /* @__PURE__ */ jsx(CheckBox, { label: label2, noMargin: true, checked: selected2, onChange }) }, key2);
|
|
19473
19473
|
};
|
|
19474
|
-
const Heading
|
|
19474
|
+
const Heading = ({ label: label2 }) => /* @__PURE__ */ jsx("div", { className: styles$o.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 = ({
|
|
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$o.menu), style: { maxHeight }, children: [
|
|
19488
19488
|
showHeader && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
19489
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
19489
|
+
/* @__PURE__ */ jsxs("div", { className: styles$o.header, children: [
|
|
19490
19490
|
/* @__PURE__ */ jsx(
|
|
19491
19491
|
"a",
|
|
19492
19492
|
{
|
|
@@ -19532,12 +19532,12 @@ const Layer$1 = ({
|
|
|
19532
19532
|
options.map((option2, index2) => {
|
|
19533
19533
|
switch (option2.type) {
|
|
19534
19534
|
case DropdownType.HEADING:
|
|
19535
|
-
return /* @__PURE__ */ jsx(Heading
|
|
19535
|
+
return /* @__PURE__ */ jsx(Heading, { 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,
|
|
19541
19541
|
{
|
|
19542
19542
|
option: option2,
|
|
19543
19543
|
onChange: (evt) => {
|
|
@@ -19570,7 +19570,7 @@ const OptionDropdown = ({
|
|
|
19570
19570
|
trigger: TriggerType.DROP_DOWN_BUTTON,
|
|
19571
19571
|
possiblePlacements: ["top-start", "bottom-start"],
|
|
19572
19572
|
sections: /* @__PURE__ */ jsx(
|
|
19573
|
-
Layer
|
|
19573
|
+
Layer,
|
|
19574
19574
|
{
|
|
19575
19575
|
options,
|
|
19576
19576
|
onChangeOptions: (evt, nextOptions) => {
|
|
@@ -19589,7 +19589,7 @@ const OptionDropdown = ({
|
|
|
19589
19589
|
};
|
|
19590
19590
|
const page = "_page_beskc_1";
|
|
19591
19591
|
const scroll$1 = "_scroll_beskc_23";
|
|
19592
|
-
const styles$
|
|
19592
|
+
const styles$n = {
|
|
19593
19593
|
page,
|
|
19594
19594
|
scroll: scroll$1
|
|
19595
19595
|
};
|
|
@@ -19604,43 +19604,43 @@ const Page = ({
|
|
|
19604
19604
|
return /* @__PURE__ */ jsx(
|
|
19605
19605
|
"div",
|
|
19606
19606
|
{
|
|
19607
|
-
className: cx$2(styles$
|
|
19607
|
+
className: cx$2(styles$n.page, scroll3 ? styles$n.scroll : ""),
|
|
19608
19608
|
style: { left: left2, padding: padding2, top: top2 },
|
|
19609
19609
|
children
|
|
19610
19610
|
}
|
|
19611
19611
|
);
|
|
19612
19612
|
};
|
|
19613
|
-
const inputInTable$
|
|
19614
|
-
const inputHover$
|
|
19615
|
-
const inputFocus$
|
|
19616
|
-
const inputError$
|
|
19617
|
-
const inputWarning$
|
|
19618
|
-
const inputDisabled$
|
|
19619
|
-
const hideScrollbars$
|
|
19613
|
+
const inputInTable$5 = "_inputInTable_sl2b5_1";
|
|
19614
|
+
const inputHover$5 = "_inputHover_sl2b5_13";
|
|
19615
|
+
const inputFocus$5 = "_inputFocus_sl2b5_18";
|
|
19616
|
+
const inputError$5 = "_inputError_sl2b5_25";
|
|
19617
|
+
const inputWarning$5 = "_inputWarning_sl2b5_26";
|
|
19618
|
+
const inputDisabled$5 = "_inputDisabled_sl2b5_61";
|
|
19619
|
+
const hideScrollbars$5 = "_hideScrollbars_sl2b5_67";
|
|
19620
19620
|
const select = "_select_sl2b5_77";
|
|
19621
|
-
const isInTable$
|
|
19621
|
+
const isInTable$1 = "_isInTable_sl2b5_121";
|
|
19622
19622
|
const unSelected = "_unSelected_sl2b5_133";
|
|
19623
|
-
const small$
|
|
19624
|
-
const right$
|
|
19625
|
-
const groupOrderFirst
|
|
19626
|
-
const groupOrderMiddle
|
|
19627
|
-
const groupOrderLast
|
|
19628
|
-
const styles$
|
|
19629
|
-
inputInTable: inputInTable$
|
|
19630
|
-
inputHover: inputHover$
|
|
19631
|
-
inputFocus: inputFocus$
|
|
19632
|
-
inputError: inputError$
|
|
19633
|
-
inputWarning: inputWarning$
|
|
19634
|
-
inputDisabled: inputDisabled$
|
|
19635
|
-
hideScrollbars: hideScrollbars$
|
|
19623
|
+
const small$4 = "_small_sl2b5_174";
|
|
19624
|
+
const right$2 = "_right_sl2b5_182";
|
|
19625
|
+
const groupOrderFirst = "_groupOrderFirst_sl2b5_193";
|
|
19626
|
+
const groupOrderMiddle = "_groupOrderMiddle_sl2b5_194";
|
|
19627
|
+
const groupOrderLast = "_groupOrderLast_sl2b5_198";
|
|
19628
|
+
const styles$m = {
|
|
19629
|
+
inputInTable: inputInTable$5,
|
|
19630
|
+
inputHover: inputHover$5,
|
|
19631
|
+
inputFocus: inputFocus$5,
|
|
19632
|
+
inputError: inputError$5,
|
|
19633
|
+
inputWarning: inputWarning$5,
|
|
19634
|
+
inputDisabled: inputDisabled$5,
|
|
19635
|
+
hideScrollbars: hideScrollbars$5,
|
|
19636
19636
|
select,
|
|
19637
|
-
isInTable: isInTable$
|
|
19637
|
+
isInTable: isInTable$1,
|
|
19638
19638
|
unSelected,
|
|
19639
|
-
small: small$
|
|
19640
|
-
right: right$
|
|
19641
|
-
groupOrderFirst
|
|
19642
|
-
groupOrderMiddle
|
|
19643
|
-
groupOrderLast
|
|
19639
|
+
small: small$4,
|
|
19640
|
+
right: right$2,
|
|
19641
|
+
groupOrderFirst,
|
|
19642
|
+
groupOrderMiddle,
|
|
19643
|
+
groupOrderLast
|
|
19644
19644
|
};
|
|
19645
19645
|
const NativeSelect = ({
|
|
19646
19646
|
disabled: disabled2 = false,
|
|
@@ -19708,11 +19708,11 @@ const NativeSelect = ({
|
|
|
19708
19708
|
if (groupOrder) {
|
|
19709
19709
|
switch (groupOrder) {
|
|
19710
19710
|
case GroupOrder.FIRST:
|
|
19711
|
-
return styles$
|
|
19711
|
+
return styles$m.groupOrderFirst;
|
|
19712
19712
|
case GroupOrder.LAST:
|
|
19713
|
-
return styles$
|
|
19713
|
+
return styles$m.groupOrderLast;
|
|
19714
19714
|
default:
|
|
19715
|
-
return styles$
|
|
19715
|
+
return styles$m.groupOrderMiddle;
|
|
19716
19716
|
}
|
|
19717
19717
|
}
|
|
19718
19718
|
return "";
|
|
@@ -19730,11 +19730,11 @@ const NativeSelect = ({
|
|
|
19730
19730
|
"select",
|
|
19731
19731
|
{
|
|
19732
19732
|
className: cx$2(
|
|
19733
|
-
styles$
|
|
19734
|
-
isUnselected ? styles$
|
|
19735
|
-
right2 ? styles$
|
|
19736
|
-
small2 ? styles$
|
|
19737
|
-
isInTable2 ? styles$
|
|
19733
|
+
styles$m.select,
|
|
19734
|
+
isUnselected ? styles$m.unSelected : "",
|
|
19735
|
+
right2 ? styles$m.right : "",
|
|
19736
|
+
small2 ? styles$m.small : "",
|
|
19737
|
+
isInTable2 ? styles$m.isInTable : "",
|
|
19738
19738
|
order2
|
|
19739
19739
|
),
|
|
19740
19740
|
style: {
|
|
@@ -19800,610 +19800,156 @@ const useWindowWidth = () => {
|
|
|
19800
19800
|
}, []);
|
|
19801
19801
|
return width2;
|
|
19802
19802
|
};
|
|
19803
|
-
|
|
19804
|
-
|
|
19805
|
-
|
|
19806
|
-
|
|
19807
|
-
|
|
19808
|
-
|
|
19809
|
-
|
|
19810
|
-
|
|
19811
|
-
|
|
19803
|
+
var ReducerAction = /* @__PURE__ */ ((ReducerAction2) => {
|
|
19804
|
+
ReducerAction2["SET_VISIBLE_OPTIONS"] = "SET_VISIBLE_OPTIONS";
|
|
19805
|
+
ReducerAction2["RESET_LAYER_FOCUS"] = "RESET_LAYER_FOCUS";
|
|
19806
|
+
ReducerAction2["CLEAR_SEARCH"] = "CLEAR_SEARCH";
|
|
19807
|
+
ReducerAction2["ON_CHANGE_SEARCH"] = "ON_CHANGE_SEARCH";
|
|
19808
|
+
ReducerAction2["FOCUS_TRIGGER_INPUTS"] = "FOCUS_TRIGGER_INPUTS";
|
|
19809
|
+
ReducerAction2["BLUR_TRIGGER_INPUTS"] = "BLUR_TRIGGER_INPUTS";
|
|
19810
|
+
ReducerAction2["FOCUS_LAYER_OPTIONS"] = "FOCUS_LAYER_OPTIONS";
|
|
19811
|
+
ReducerAction2["OPEN_LAYER"] = "OPEN_LAYER";
|
|
19812
|
+
ReducerAction2["CLOSE_LAYER"] = "CLOSE_LAYER";
|
|
19813
|
+
return ReducerAction2;
|
|
19814
|
+
})(ReducerAction || {});
|
|
19815
|
+
const initialTriggerFocus = {
|
|
19816
|
+
options: ["none", "clearAll"],
|
|
19817
|
+
currentIndex: 0,
|
|
19818
|
+
currentOption: false,
|
|
19819
|
+
clearAll: false
|
|
19812
19820
|
};
|
|
19813
|
-
|
|
19814
|
-
|
|
19815
|
-
|
|
19816
|
-
|
|
19817
|
-
|
|
19818
|
-
|
|
19819
|
-
|
|
19820
|
-
|
|
19821
|
-
|
|
19822
|
-
|
|
19823
|
-
|
|
19824
|
-
}
|
|
19825
|
-
var timeoutID = {
|
|
19826
|
-
id: requestAnimationFrame(tick)
|
|
19827
|
-
};
|
|
19828
|
-
return timeoutID;
|
|
19829
|
-
}
|
|
19830
|
-
var size$1 = -1;
|
|
19831
|
-
function getScrollbarSize(recalculate) {
|
|
19832
|
-
if (recalculate === void 0) {
|
|
19833
|
-
recalculate = false;
|
|
19834
|
-
}
|
|
19835
|
-
if (size$1 === -1 || recalculate) {
|
|
19836
|
-
var div = document.createElement("div");
|
|
19837
|
-
var style2 = div.style;
|
|
19838
|
-
style2.width = "50px";
|
|
19839
|
-
style2.height = "50px";
|
|
19840
|
-
style2.overflow = "scroll";
|
|
19841
|
-
document.body.appendChild(div);
|
|
19842
|
-
size$1 = div.offsetWidth - div.clientWidth;
|
|
19843
|
-
document.body.removeChild(div);
|
|
19844
|
-
}
|
|
19845
|
-
return size$1;
|
|
19846
|
-
}
|
|
19847
|
-
var cachedRTLResult = null;
|
|
19848
|
-
function getRTLOffsetType(recalculate) {
|
|
19849
|
-
if (recalculate === void 0) {
|
|
19850
|
-
recalculate = false;
|
|
19851
|
-
}
|
|
19852
|
-
if (cachedRTLResult === null || recalculate) {
|
|
19853
|
-
var outerDiv = document.createElement("div");
|
|
19854
|
-
var outerStyle = outerDiv.style;
|
|
19855
|
-
outerStyle.width = "50px";
|
|
19856
|
-
outerStyle.height = "50px";
|
|
19857
|
-
outerStyle.overflow = "scroll";
|
|
19858
|
-
outerStyle.direction = "rtl";
|
|
19859
|
-
var innerDiv = document.createElement("div");
|
|
19860
|
-
var innerStyle = innerDiv.style;
|
|
19861
|
-
innerStyle.width = "100px";
|
|
19862
|
-
innerStyle.height = "100px";
|
|
19863
|
-
outerDiv.appendChild(innerDiv);
|
|
19864
|
-
document.body.appendChild(outerDiv);
|
|
19865
|
-
if (outerDiv.scrollLeft > 0) {
|
|
19866
|
-
cachedRTLResult = "positive-descending";
|
|
19867
|
-
} else {
|
|
19868
|
-
outerDiv.scrollLeft = 1;
|
|
19869
|
-
if (outerDiv.scrollLeft === 0) {
|
|
19870
|
-
cachedRTLResult = "negative";
|
|
19871
|
-
} else {
|
|
19872
|
-
cachedRTLResult = "positive-ascending";
|
|
19873
|
-
}
|
|
19874
|
-
}
|
|
19875
|
-
document.body.removeChild(outerDiv);
|
|
19876
|
-
return cachedRTLResult;
|
|
19877
|
-
}
|
|
19878
|
-
return cachedRTLResult;
|
|
19879
|
-
}
|
|
19880
|
-
if (process.env.NODE_ENV !== "production") ;
|
|
19881
|
-
var IS_SCROLLING_DEBOUNCE_INTERVAL$1 = 150;
|
|
19882
|
-
var defaultItemKey$1 = function defaultItemKey(index2, data) {
|
|
19883
|
-
return index2;
|
|
19821
|
+
const initialLayerFocusIndex = (firstSelectedOptionIndex) => firstSelectedOptionIndex !== null ? firstSelectedOptionIndex + 1 : 0;
|
|
19822
|
+
const initialLayerFocus = (options, firstSelectedOptionIndex) => {
|
|
19823
|
+
const layerFocusOptions = [
|
|
19824
|
+
"none",
|
|
19825
|
+
...options.map((o, i) => o.type !== MenuType.HEADING ? i : null).filter((o) => o !== null)
|
|
19826
|
+
];
|
|
19827
|
+
const layerFocusIndex = initialLayerFocusIndex(firstSelectedOptionIndex);
|
|
19828
|
+
return {
|
|
19829
|
+
options: layerFocusOptions,
|
|
19830
|
+
currentIndex: layerFocusIndex,
|
|
19831
|
+
current: layerFocusOptions[layerFocusIndex]
|
|
19832
|
+
};
|
|
19884
19833
|
};
|
|
19885
|
-
|
|
19886
|
-
|
|
19887
|
-
|
|
19888
|
-
|
|
19889
|
-
|
|
19890
|
-
|
|
19891
|
-
|
|
19892
|
-
|
|
19893
|
-
|
|
19894
|
-
|
|
19895
|
-
|
|
19896
|
-
|
|
19897
|
-
|
|
19898
|
-
|
|
19899
|
-
|
|
19900
|
-
|
|
19901
|
-
|
|
19902
|
-
|
|
19903
|
-
|
|
19904
|
-
|
|
19905
|
-
|
|
19906
|
-
|
|
19907
|
-
|
|
19908
|
-
|
|
19909
|
-
|
|
19910
|
-
|
|
19911
|
-
|
|
19912
|
-
|
|
19913
|
-
|
|
19914
|
-
|
|
19915
|
-
|
|
19916
|
-
|
|
19917
|
-
|
|
19918
|
-
|
|
19919
|
-
|
|
19920
|
-
|
|
19921
|
-
|
|
19922
|
-
|
|
19923
|
-
|
|
19924
|
-
|
|
19925
|
-
|
|
19926
|
-
});
|
|
19927
|
-
});
|
|
19928
|
-
_this._getItemStyle = void 0;
|
|
19929
|
-
_this._getItemStyle = function(index2) {
|
|
19930
|
-
var _this$props = _this.props, direction = _this$props.direction, itemSize = _this$props.itemSize, layout = _this$props.layout;
|
|
19931
|
-
var itemStyleCache = _this._getItemStyleCache(shouldResetStyleCacheOnItemSizeChange && itemSize, shouldResetStyleCacheOnItemSizeChange && layout, shouldResetStyleCacheOnItemSizeChange && direction);
|
|
19932
|
-
var style2;
|
|
19933
|
-
if (itemStyleCache.hasOwnProperty(index2)) {
|
|
19934
|
-
style2 = itemStyleCache[index2];
|
|
19935
|
-
} else {
|
|
19936
|
-
var _offset = getItemOffset2(_this.props, index2, _this._instanceProps);
|
|
19937
|
-
var size2 = getItemSize2(_this.props, index2, _this._instanceProps);
|
|
19938
|
-
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
19939
|
-
var isRtl = direction === "rtl";
|
|
19940
|
-
var offsetHorizontal = isHorizontal ? _offset : 0;
|
|
19941
|
-
itemStyleCache[index2] = style2 = {
|
|
19942
|
-
position: "absolute",
|
|
19943
|
-
left: isRtl ? void 0 : offsetHorizontal,
|
|
19944
|
-
right: isRtl ? offsetHorizontal : void 0,
|
|
19945
|
-
top: !isHorizontal ? _offset : 0,
|
|
19946
|
-
height: !isHorizontal ? size2 : "100%",
|
|
19947
|
-
width: isHorizontal ? size2 : "100%"
|
|
19948
|
-
};
|
|
19949
|
-
}
|
|
19950
|
-
return style2;
|
|
19951
|
-
};
|
|
19952
|
-
_this._getItemStyleCache = void 0;
|
|
19953
|
-
_this._getItemStyleCache = memoizeOne(function(_2, __, ___) {
|
|
19954
|
-
return {};
|
|
19955
|
-
});
|
|
19956
|
-
_this._onScrollHorizontal = function(event) {
|
|
19957
|
-
var _event$currentTarget = event.currentTarget, clientWidth = _event$currentTarget.clientWidth, scrollLeft = _event$currentTarget.scrollLeft, scrollWidth = _event$currentTarget.scrollWidth;
|
|
19958
|
-
_this.setState(function(prevState) {
|
|
19959
|
-
if (prevState.scrollOffset === scrollLeft) {
|
|
19960
|
-
return null;
|
|
19961
|
-
}
|
|
19962
|
-
var direction = _this.props.direction;
|
|
19963
|
-
var scrollOffset = scrollLeft;
|
|
19964
|
-
if (direction === "rtl") {
|
|
19965
|
-
switch (getRTLOffsetType()) {
|
|
19966
|
-
case "negative":
|
|
19967
|
-
scrollOffset = -scrollLeft;
|
|
19968
|
-
break;
|
|
19969
|
-
case "positive-descending":
|
|
19970
|
-
scrollOffset = scrollWidth - clientWidth - scrollLeft;
|
|
19971
|
-
break;
|
|
19972
|
-
}
|
|
19973
|
-
}
|
|
19974
|
-
scrollOffset = Math.max(0, Math.min(scrollOffset, scrollWidth - clientWidth));
|
|
19975
|
-
return {
|
|
19976
|
-
isScrolling: true,
|
|
19977
|
-
scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
|
|
19978
|
-
scrollOffset,
|
|
19979
|
-
scrollUpdateWasRequested: false
|
|
19980
|
-
};
|
|
19981
|
-
}, _this._resetIsScrollingDebounced);
|
|
19982
|
-
};
|
|
19983
|
-
_this._onScrollVertical = function(event) {
|
|
19984
|
-
var _event$currentTarget2 = event.currentTarget, clientHeight = _event$currentTarget2.clientHeight, scrollHeight = _event$currentTarget2.scrollHeight, scrollTop = _event$currentTarget2.scrollTop;
|
|
19985
|
-
_this.setState(function(prevState) {
|
|
19986
|
-
if (prevState.scrollOffset === scrollTop) {
|
|
19987
|
-
return null;
|
|
19988
|
-
}
|
|
19989
|
-
var scrollOffset = Math.max(0, Math.min(scrollTop, scrollHeight - clientHeight));
|
|
19990
|
-
return {
|
|
19991
|
-
isScrolling: true,
|
|
19992
|
-
scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
|
|
19993
|
-
scrollOffset,
|
|
19994
|
-
scrollUpdateWasRequested: false
|
|
19995
|
-
};
|
|
19996
|
-
}, _this._resetIsScrollingDebounced);
|
|
19997
|
-
};
|
|
19998
|
-
_this._outerRefSetter = function(ref2) {
|
|
19999
|
-
var outerRef = _this.props.outerRef;
|
|
20000
|
-
_this._outerRef = ref2;
|
|
20001
|
-
if (typeof outerRef === "function") {
|
|
20002
|
-
outerRef(ref2);
|
|
20003
|
-
} else if (outerRef != null && typeof outerRef === "object" && outerRef.hasOwnProperty("current")) {
|
|
20004
|
-
outerRef.current = ref2;
|
|
20005
|
-
}
|
|
19834
|
+
const nextLayerFocus = (direction, layerFocus) => {
|
|
19835
|
+
const sign = direction === "up" ? -1 : 1;
|
|
19836
|
+
const increment = layerFocus.currentIndex + sign;
|
|
19837
|
+
const nextIndex = (increment < 0 ? layerFocus.options.length - 1 : increment) % layerFocus.options.length;
|
|
19838
|
+
const next2 = layerFocus.options[nextIndex];
|
|
19839
|
+
return {
|
|
19840
|
+
...layerFocus,
|
|
19841
|
+
currentIndex: nextIndex,
|
|
19842
|
+
current: next2
|
|
19843
|
+
};
|
|
19844
|
+
};
|
|
19845
|
+
const nextTriggerFocus = (direction, selectedOptions, triggerFocus) => {
|
|
19846
|
+
const sign = direction === "left" ? -1 : 1;
|
|
19847
|
+
const nextOptions = selectedOptions && selectedOptions.length ? [
|
|
19848
|
+
"none",
|
|
19849
|
+
...Array.from({ length: selectedOptions.length }, (_2, i) => i),
|
|
19850
|
+
"clearAll"
|
|
19851
|
+
] : ["none", "clearAll"];
|
|
19852
|
+
const increment = triggerFocus.currentIndex + sign;
|
|
19853
|
+
const nextIndex = (increment < 0 ? nextOptions.length - 1 : increment) % nextOptions.length;
|
|
19854
|
+
const next2 = nextOptions[nextIndex];
|
|
19855
|
+
const clearAll = next2 === "clearAll";
|
|
19856
|
+
return {
|
|
19857
|
+
options: nextOptions,
|
|
19858
|
+
currentIndex: nextIndex,
|
|
19859
|
+
currentOption: next2,
|
|
19860
|
+
clearAll
|
|
19861
|
+
};
|
|
19862
|
+
};
|
|
19863
|
+
const blurTriggerFocus = () => initialTriggerFocus;
|
|
19864
|
+
const blurLayerFocus = (layerFocus) => ({
|
|
19865
|
+
...layerFocus,
|
|
19866
|
+
currentIndex: 0,
|
|
19867
|
+
current: "none"
|
|
19868
|
+
});
|
|
19869
|
+
const reducer = (state, action2) => {
|
|
19870
|
+
switch (action2.type) {
|
|
19871
|
+
case ReducerAction.SET_VISIBLE_OPTIONS: {
|
|
19872
|
+
return {
|
|
19873
|
+
...state,
|
|
19874
|
+
visibleOptions: action2.options || []
|
|
20006
19875
|
};
|
|
20007
|
-
|
|
20008
|
-
|
|
20009
|
-
|
|
20010
|
-
|
|
20011
|
-
|
|
19876
|
+
}
|
|
19877
|
+
case ReducerAction.RESET_LAYER_FOCUS: {
|
|
19878
|
+
return {
|
|
19879
|
+
...state,
|
|
19880
|
+
layerFocus: initialLayerFocus(
|
|
19881
|
+
action2.options || [],
|
|
19882
|
+
action2.firstSelectedOptionIndex || 0
|
|
19883
|
+
)
|
|
20012
19884
|
};
|
|
20013
|
-
|
|
20014
|
-
|
|
20015
|
-
|
|
20016
|
-
|
|
20017
|
-
|
|
20018
|
-
|
|
20019
|
-
});
|
|
19885
|
+
}
|
|
19886
|
+
case ReducerAction.CLEAR_SEARCH: {
|
|
19887
|
+
return {
|
|
19888
|
+
...state,
|
|
19889
|
+
visibleOptions: action2.options || [],
|
|
19890
|
+
searchValue: ""
|
|
20020
19891
|
};
|
|
20021
|
-
return _this;
|
|
20022
19892
|
}
|
|
20023
|
-
|
|
20024
|
-
|
|
20025
|
-
|
|
20026
|
-
|
|
20027
|
-
|
|
20028
|
-
|
|
20029
|
-
|
|
20030
|
-
|
|
20031
|
-
|
|
20032
|
-
|
|
20033
|
-
|
|
20034
|
-
}
|
|
20035
|
-
return {
|
|
20036
|
-
scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
|
|
20037
|
-
scrollOffset,
|
|
20038
|
-
scrollUpdateWasRequested: true
|
|
20039
|
-
};
|
|
20040
|
-
}, this._resetIsScrollingDebounced);
|
|
20041
|
-
};
|
|
20042
|
-
_proto.scrollToItem = function scrollToItem(index2, align) {
|
|
20043
|
-
if (align === void 0) {
|
|
20044
|
-
align = "auto";
|
|
20045
|
-
}
|
|
20046
|
-
var _this$props2 = this.props, itemCount = _this$props2.itemCount, layout = _this$props2.layout;
|
|
20047
|
-
var scrollOffset = this.state.scrollOffset;
|
|
20048
|
-
index2 = Math.max(0, Math.min(index2, itemCount - 1));
|
|
20049
|
-
var scrollbarSize = 0;
|
|
20050
|
-
if (this._outerRef) {
|
|
20051
|
-
var outerRef = this._outerRef;
|
|
20052
|
-
if (layout === "vertical") {
|
|
20053
|
-
scrollbarSize = outerRef.scrollWidth > outerRef.clientWidth ? getScrollbarSize() : 0;
|
|
20054
|
-
} else {
|
|
20055
|
-
scrollbarSize = outerRef.scrollHeight > outerRef.clientHeight ? getScrollbarSize() : 0;
|
|
20056
|
-
}
|
|
20057
|
-
}
|
|
20058
|
-
this.scrollTo(getOffsetForIndexAndAlignment2(this.props, index2, align, scrollOffset, this._instanceProps, scrollbarSize));
|
|
20059
|
-
};
|
|
20060
|
-
_proto.componentDidMount = function componentDidMount() {
|
|
20061
|
-
var _this$props3 = this.props, direction = _this$props3.direction, initialScrollOffset = _this$props3.initialScrollOffset, layout = _this$props3.layout;
|
|
20062
|
-
if (typeof initialScrollOffset === "number" && this._outerRef != null) {
|
|
20063
|
-
var outerRef = this._outerRef;
|
|
20064
|
-
if (direction === "horizontal" || layout === "horizontal") {
|
|
20065
|
-
outerRef.scrollLeft = initialScrollOffset;
|
|
20066
|
-
} else {
|
|
20067
|
-
outerRef.scrollTop = initialScrollOffset;
|
|
20068
|
-
}
|
|
20069
|
-
}
|
|
20070
|
-
this._callPropsCallbacks();
|
|
20071
|
-
};
|
|
20072
|
-
_proto.componentDidUpdate = function componentDidUpdate() {
|
|
20073
|
-
var _this$props4 = this.props, direction = _this$props4.direction, layout = _this$props4.layout;
|
|
20074
|
-
var _this$state = this.state, scrollOffset = _this$state.scrollOffset, scrollUpdateWasRequested = _this$state.scrollUpdateWasRequested;
|
|
20075
|
-
if (scrollUpdateWasRequested && this._outerRef != null) {
|
|
20076
|
-
var outerRef = this._outerRef;
|
|
20077
|
-
if (direction === "horizontal" || layout === "horizontal") {
|
|
20078
|
-
if (direction === "rtl") {
|
|
20079
|
-
switch (getRTLOffsetType()) {
|
|
20080
|
-
case "negative":
|
|
20081
|
-
outerRef.scrollLeft = -scrollOffset;
|
|
20082
|
-
break;
|
|
20083
|
-
case "positive-ascending":
|
|
20084
|
-
outerRef.scrollLeft = scrollOffset;
|
|
20085
|
-
break;
|
|
20086
|
-
default:
|
|
20087
|
-
var clientWidth = outerRef.clientWidth, scrollWidth = outerRef.scrollWidth;
|
|
20088
|
-
outerRef.scrollLeft = scrollWidth - clientWidth - scrollOffset;
|
|
20089
|
-
break;
|
|
20090
|
-
}
|
|
20091
|
-
} else {
|
|
20092
|
-
outerRef.scrollLeft = scrollOffset;
|
|
20093
|
-
}
|
|
20094
|
-
} else {
|
|
20095
|
-
outerRef.scrollTop = scrollOffset;
|
|
20096
|
-
}
|
|
20097
|
-
}
|
|
20098
|
-
this._callPropsCallbacks();
|
|
20099
|
-
};
|
|
20100
|
-
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
20101
|
-
if (this._resetIsScrollingTimeoutId !== null) {
|
|
20102
|
-
cancelTimeout(this._resetIsScrollingTimeoutId);
|
|
20103
|
-
}
|
|
20104
|
-
};
|
|
20105
|
-
_proto.render = function render2() {
|
|
20106
|
-
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;
|
|
20107
|
-
var isScrolling = this.state.isScrolling;
|
|
20108
|
-
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
20109
|
-
var onScroll = isHorizontal ? this._onScrollHorizontal : this._onScrollVertical;
|
|
20110
|
-
var _this$_getRangeToRend = this._getRangeToRender(), startIndex = _this$_getRangeToRend[0], stopIndex = _this$_getRangeToRend[1];
|
|
20111
|
-
var items = [];
|
|
20112
|
-
if (itemCount > 0) {
|
|
20113
|
-
for (var _index = startIndex; _index <= stopIndex; _index++) {
|
|
20114
|
-
items.push(createElement(children, {
|
|
20115
|
-
data: itemData,
|
|
20116
|
-
key: itemKey(_index, itemData),
|
|
20117
|
-
index: _index,
|
|
20118
|
-
isScrolling: useIsScrolling ? isScrolling : void 0,
|
|
20119
|
-
style: this._getItemStyle(_index)
|
|
20120
|
-
}));
|
|
20121
|
-
}
|
|
20122
|
-
}
|
|
20123
|
-
var estimatedTotalSize = getEstimatedTotalSize2(this.props, this._instanceProps);
|
|
20124
|
-
return createElement(outerElementType || outerTagName || "div", {
|
|
20125
|
-
className,
|
|
20126
|
-
onScroll,
|
|
20127
|
-
ref: this._outerRefSetter,
|
|
20128
|
-
style: _extends$4({
|
|
20129
|
-
position: "relative",
|
|
20130
|
-
height: height2,
|
|
20131
|
-
width: width2,
|
|
20132
|
-
overflow: "auto",
|
|
20133
|
-
WebkitOverflowScrolling: "touch",
|
|
20134
|
-
willChange: "transform",
|
|
20135
|
-
direction
|
|
20136
|
-
}, style2)
|
|
20137
|
-
}, createElement(innerElementType || innerTagName || "div", {
|
|
20138
|
-
children: items,
|
|
20139
|
-
ref: innerRef,
|
|
20140
|
-
style: {
|
|
20141
|
-
height: isHorizontal ? "100%" : estimatedTotalSize,
|
|
20142
|
-
pointerEvents: isScrolling ? "none" : void 0,
|
|
20143
|
-
width: isHorizontal ? estimatedTotalSize : "100%"
|
|
20144
|
-
}
|
|
20145
|
-
}));
|
|
20146
|
-
};
|
|
20147
|
-
_proto._callPropsCallbacks = function _callPropsCallbacks() {
|
|
20148
|
-
if (typeof this.props.onItemsRendered === "function") {
|
|
20149
|
-
var itemCount = this.props.itemCount;
|
|
20150
|
-
if (itemCount > 0) {
|
|
20151
|
-
var _this$_getRangeToRend2 = this._getRangeToRender(), _overscanStartIndex = _this$_getRangeToRend2[0], _overscanStopIndex = _this$_getRangeToRend2[1], _visibleStartIndex = _this$_getRangeToRend2[2], _visibleStopIndex = _this$_getRangeToRend2[3];
|
|
20152
|
-
this._callOnItemsRendered(_overscanStartIndex, _overscanStopIndex, _visibleStartIndex, _visibleStopIndex);
|
|
20153
|
-
}
|
|
20154
|
-
}
|
|
20155
|
-
if (typeof this.props.onScroll === "function") {
|
|
20156
|
-
var _this$state2 = this.state, _scrollDirection = _this$state2.scrollDirection, _scrollOffset = _this$state2.scrollOffset, _scrollUpdateWasRequested = _this$state2.scrollUpdateWasRequested;
|
|
20157
|
-
this._callOnScroll(_scrollDirection, _scrollOffset, _scrollUpdateWasRequested);
|
|
20158
|
-
}
|
|
20159
|
-
};
|
|
20160
|
-
_proto._getRangeToRender = function _getRangeToRender() {
|
|
20161
|
-
var _this$props6 = this.props, itemCount = _this$props6.itemCount, overscanCount = _this$props6.overscanCount;
|
|
20162
|
-
var _this$state3 = this.state, isScrolling = _this$state3.isScrolling, scrollDirection = _this$state3.scrollDirection, scrollOffset = _this$state3.scrollOffset;
|
|
20163
|
-
if (itemCount === 0) {
|
|
20164
|
-
return [0, 0, 0, 0];
|
|
20165
|
-
}
|
|
20166
|
-
var startIndex = getStartIndexForOffset2(this.props, scrollOffset, this._instanceProps);
|
|
20167
|
-
var stopIndex = getStopIndexForStartIndex2(this.props, startIndex, scrollOffset, this._instanceProps);
|
|
20168
|
-
var overscanBackward = !isScrolling || scrollDirection === "backward" ? Math.max(1, overscanCount) : 1;
|
|
20169
|
-
var overscanForward = !isScrolling || scrollDirection === "forward" ? Math.max(1, overscanCount) : 1;
|
|
20170
|
-
return [Math.max(0, startIndex - overscanBackward), Math.max(0, Math.min(itemCount - 1, stopIndex + overscanForward)), startIndex, stopIndex];
|
|
20171
|
-
};
|
|
20172
|
-
return List2;
|
|
20173
|
-
}(PureComponent), _class.defaultProps = {
|
|
20174
|
-
direction: "ltr",
|
|
20175
|
-
itemData: void 0,
|
|
20176
|
-
layout: "vertical",
|
|
20177
|
-
overscanCount: 2,
|
|
20178
|
-
useIsScrolling: false
|
|
20179
|
-
}, _class;
|
|
20180
|
-
}
|
|
20181
|
-
var validateSharedProps$1 = function validateSharedProps(_ref2, _ref3) {
|
|
20182
|
-
var children = _ref2.children, direction = _ref2.direction, height2 = _ref2.height, layout = _ref2.layout, innerTagName = _ref2.innerTagName, outerTagName = _ref2.outerTagName, width2 = _ref2.width;
|
|
20183
|
-
var instance = _ref3.instance;
|
|
20184
|
-
if (process.env.NODE_ENV !== "production") {
|
|
20185
|
-
if (innerTagName != null || outerTagName != null) {
|
|
20186
|
-
if (devWarningsTagName$1 && !devWarningsTagName$1.has(instance)) {
|
|
20187
|
-
devWarningsTagName$1.add(instance);
|
|
20188
|
-
console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.");
|
|
19893
|
+
case ReducerAction.ON_CHANGE_SEARCH: {
|
|
19894
|
+
const visibleOptions = (action2.options || []).filter(
|
|
19895
|
+
(o) => (String(o.label) + (o.details ? String(o.details) : "")).toLowerCase().includes(String(action2.value || "").toLowerCase())
|
|
19896
|
+
);
|
|
19897
|
+
let newVisibleOptions = [...visibleOptions];
|
|
19898
|
+
if (action2.createAble && action2.value && action2.value !== "") {
|
|
19899
|
+
newVisibleOptions.push({
|
|
19900
|
+
label: `Create "${action2.value}"`,
|
|
19901
|
+
value: action2.value,
|
|
19902
|
+
createAble: true
|
|
19903
|
+
});
|
|
20189
19904
|
}
|
|
19905
|
+
return {
|
|
19906
|
+
...state,
|
|
19907
|
+
searchValue: action2.value,
|
|
19908
|
+
visibleOptions: newVisibleOptions,
|
|
19909
|
+
layerFocus: blurLayerFocus(state.layerFocus)
|
|
19910
|
+
};
|
|
20190
19911
|
}
|
|
20191
|
-
|
|
20192
|
-
|
|
20193
|
-
|
|
20194
|
-
|
|
20195
|
-
|
|
20196
|
-
|
|
20197
|
-
|
|
20198
|
-
|
|
20199
|
-
|
|
20200
|
-
|
|
20201
|
-
case "rtl":
|
|
20202
|
-
break;
|
|
20203
|
-
default:
|
|
20204
|
-
throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + direction + '" was specified.'));
|
|
20205
|
-
}
|
|
20206
|
-
switch (layout) {
|
|
20207
|
-
case "horizontal":
|
|
20208
|
-
case "vertical":
|
|
20209
|
-
break;
|
|
20210
|
-
default:
|
|
20211
|
-
throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". ' + ('"' + layout + '" was specified.'));
|
|
20212
|
-
}
|
|
20213
|
-
if (children == null) {
|
|
20214
|
-
throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (children === null ? "null" : typeof children) + '" was specified.'));
|
|
20215
|
-
}
|
|
20216
|
-
if (isHorizontal && typeof width2 !== "number") {
|
|
20217
|
-
throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. ' + ('"' + (width2 === null ? "null" : typeof width2) + '" was specified.'));
|
|
20218
|
-
} else if (!isHorizontal && typeof height2 !== "number") {
|
|
20219
|
-
throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. ' + ('"' + (height2 === null ? "null" : typeof height2) + '" was specified.'));
|
|
20220
|
-
}
|
|
20221
|
-
}
|
|
20222
|
-
};
|
|
20223
|
-
var FixedSizeList = /* @__PURE__ */ createListComponent({
|
|
20224
|
-
getItemOffset: function getItemOffset(_ref, index2) {
|
|
20225
|
-
var itemSize = _ref.itemSize;
|
|
20226
|
-
return index2 * itemSize;
|
|
20227
|
-
},
|
|
20228
|
-
getItemSize: function getItemSize(_ref2, index2) {
|
|
20229
|
-
var itemSize = _ref2.itemSize;
|
|
20230
|
-
return itemSize;
|
|
20231
|
-
},
|
|
20232
|
-
getEstimatedTotalSize: function getEstimatedTotalSize(_ref3) {
|
|
20233
|
-
var itemCount = _ref3.itemCount, itemSize = _ref3.itemSize;
|
|
20234
|
-
return itemSize * itemCount;
|
|
20235
|
-
},
|
|
20236
|
-
getOffsetForIndexAndAlignment: function getOffsetForIndexAndAlignment(_ref4, index2, align, scrollOffset, instanceProps, scrollbarSize) {
|
|
20237
|
-
var direction = _ref4.direction, height2 = _ref4.height, itemCount = _ref4.itemCount, itemSize = _ref4.itemSize, layout = _ref4.layout, width2 = _ref4.width;
|
|
20238
|
-
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
20239
|
-
var size2 = isHorizontal ? width2 : height2;
|
|
20240
|
-
var lastItemOffset = Math.max(0, itemCount * itemSize - size2);
|
|
20241
|
-
var maxOffset = Math.min(lastItemOffset, index2 * itemSize);
|
|
20242
|
-
var minOffset = Math.max(0, index2 * itemSize - size2 + itemSize + scrollbarSize);
|
|
20243
|
-
if (align === "smart") {
|
|
20244
|
-
if (scrollOffset >= minOffset - size2 && scrollOffset <= maxOffset + size2) {
|
|
20245
|
-
align = "auto";
|
|
20246
|
-
} else {
|
|
20247
|
-
align = "center";
|
|
20248
|
-
}
|
|
19912
|
+
case ReducerAction.FOCUS_TRIGGER_INPUTS: {
|
|
19913
|
+
return {
|
|
19914
|
+
...state,
|
|
19915
|
+
triggerFocus: nextTriggerFocus(
|
|
19916
|
+
action2.direction || "right",
|
|
19917
|
+
action2.selectedOptions || [],
|
|
19918
|
+
state.triggerFocus
|
|
19919
|
+
),
|
|
19920
|
+
layerFocus: blurLayerFocus(state.layerFocus)
|
|
19921
|
+
};
|
|
20249
19922
|
}
|
|
20250
|
-
|
|
20251
|
-
|
|
20252
|
-
|
|
20253
|
-
|
|
20254
|
-
|
|
20255
|
-
case "center": {
|
|
20256
|
-
var middleOffset = Math.round(minOffset + (maxOffset - minOffset) / 2);
|
|
20257
|
-
if (middleOffset < Math.ceil(size2 / 2)) {
|
|
20258
|
-
return 0;
|
|
20259
|
-
} else if (middleOffset > lastItemOffset + Math.floor(size2 / 2)) {
|
|
20260
|
-
return lastItemOffset;
|
|
20261
|
-
} else {
|
|
20262
|
-
return middleOffset;
|
|
20263
|
-
}
|
|
20264
|
-
}
|
|
20265
|
-
case "auto":
|
|
20266
|
-
default:
|
|
20267
|
-
if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {
|
|
20268
|
-
return scrollOffset;
|
|
20269
|
-
} else if (scrollOffset < minOffset) {
|
|
20270
|
-
return minOffset;
|
|
20271
|
-
} else {
|
|
20272
|
-
return maxOffset;
|
|
20273
|
-
}
|
|
19923
|
+
case ReducerAction.BLUR_TRIGGER_INPUTS: {
|
|
19924
|
+
return {
|
|
19925
|
+
...state,
|
|
19926
|
+
triggerFocus: blurTriggerFocus()
|
|
19927
|
+
};
|
|
20274
19928
|
}
|
|
20275
|
-
|
|
20276
|
-
|
|
20277
|
-
|
|
20278
|
-
return Math.max(0, Math.min(itemCount - 1, Math.floor(offset3 / itemSize)));
|
|
20279
|
-
},
|
|
20280
|
-
getStopIndexForStartIndex: function getStopIndexForStartIndex(_ref6, startIndex, scrollOffset) {
|
|
20281
|
-
var direction = _ref6.direction, height2 = _ref6.height, itemCount = _ref6.itemCount, itemSize = _ref6.itemSize, layout = _ref6.layout, width2 = _ref6.width;
|
|
20282
|
-
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
20283
|
-
var offset3 = startIndex * itemSize;
|
|
20284
|
-
var size2 = isHorizontal ? width2 : height2;
|
|
20285
|
-
var numVisibleItems = Math.ceil((size2 + scrollOffset - offset3) / itemSize);
|
|
20286
|
-
return Math.max(0, Math.min(
|
|
20287
|
-
itemCount - 1,
|
|
20288
|
-
startIndex + numVisibleItems - 1
|
|
20289
|
-
// -1 is because stop index is inclusive
|
|
20290
|
-
));
|
|
20291
|
-
},
|
|
20292
|
-
initInstanceProps: function initInstanceProps(props) {
|
|
20293
|
-
},
|
|
20294
|
-
shouldResetStyleCacheOnItemSizeChange: true,
|
|
20295
|
-
validateProps: function validateProps(_ref7) {
|
|
20296
|
-
var itemSize = _ref7.itemSize;
|
|
20297
|
-
if (process.env.NODE_ENV !== "production") {
|
|
20298
|
-
if (typeof itemSize !== "number") {
|
|
20299
|
-
throw Error('An invalid "itemSize" prop has been specified. Value should be a number. ' + ('"' + (itemSize === null ? "null" : typeof itemSize) + '" was specified.'));
|
|
19929
|
+
case ReducerAction.FOCUS_LAYER_OPTIONS: {
|
|
19930
|
+
if (!action2.nextLayerFocus) {
|
|
19931
|
+
return state;
|
|
20300
19932
|
}
|
|
19933
|
+
return {
|
|
19934
|
+
...state,
|
|
19935
|
+
layerFocus: action2.nextLayerFocus,
|
|
19936
|
+
triggerFocus: blurTriggerFocus()
|
|
19937
|
+
};
|
|
20301
19938
|
}
|
|
20302
|
-
|
|
20303
|
-
|
|
20304
|
-
|
|
20305
|
-
|
|
20306
|
-
|
|
20307
|
-
const heading = "_heading_dw2pp_26";
|
|
20308
|
-
const option = "_option_dw2pp_27";
|
|
20309
|
-
const message = "_message_dw2pp_28";
|
|
20310
|
-
const focused = "_focused_dw2pp_64";
|
|
20311
|
-
const selected = "_selected_dw2pp_68";
|
|
20312
|
-
const disabled$4 = "_disabled_dw2pp_71";
|
|
20313
|
-
const check = "_check_dw2pp_75";
|
|
20314
|
-
const optionContent = "_optionContent_dw2pp_92";
|
|
20315
|
-
const label$5 = "_label_dw2pp_97";
|
|
20316
|
-
const icon$2 = "_icon_dw2pp_104";
|
|
20317
|
-
const details = "_details_dw2pp_109";
|
|
20318
|
-
const styles$n = {
|
|
20319
|
-
layerContainer,
|
|
20320
|
-
layer,
|
|
20321
|
-
small: small$5,
|
|
20322
|
-
heading,
|
|
20323
|
-
option,
|
|
20324
|
-
message,
|
|
20325
|
-
focused,
|
|
20326
|
-
selected,
|
|
20327
|
-
disabled: disabled$4,
|
|
20328
|
-
check,
|
|
20329
|
-
optionContent,
|
|
20330
|
-
label: label$5,
|
|
20331
|
-
icon: icon$2,
|
|
20332
|
-
details
|
|
20333
|
-
};
|
|
20334
|
-
const Heading = ({ label: label2 }) => {
|
|
20335
|
-
return /* @__PURE__ */ jsx(
|
|
20336
|
-
"div",
|
|
20337
|
-
{
|
|
20338
|
-
onClick: (evt) => evt.stopPropagation(),
|
|
20339
|
-
className: styles$n.heading,
|
|
20340
|
-
children: label2
|
|
19939
|
+
case ReducerAction.OPEN_LAYER: {
|
|
19940
|
+
return {
|
|
19941
|
+
...state,
|
|
19942
|
+
isLayerOpen: true
|
|
19943
|
+
};
|
|
20341
19944
|
}
|
|
20342
|
-
|
|
20343
|
-
|
|
20344
|
-
|
|
20345
|
-
|
|
20346
|
-
|
|
20347
|
-
icon: icon2,
|
|
20348
|
-
disabled: disabled2 = false,
|
|
20349
|
-
selected: selected2 = false,
|
|
20350
|
-
focused: focused2 = false,
|
|
20351
|
-
onSelectOption,
|
|
20352
|
-
actions: actions2,
|
|
20353
|
-
closeLayer,
|
|
20354
|
-
testId
|
|
20355
|
-
}) => {
|
|
20356
|
-
return /* @__PURE__ */ jsxs(
|
|
20357
|
-
"div",
|
|
20358
|
-
{
|
|
20359
|
-
className: cx$2(
|
|
20360
|
-
styles$n.option,
|
|
20361
|
-
disabled2 ? styles$n.disabled : "",
|
|
20362
|
-
selected2 ? styles$n.selected : "",
|
|
20363
|
-
focused2 ? styles$n.focused : ""
|
|
20364
|
-
),
|
|
20365
|
-
onClick: !disabled2 && onSelectOption ? onSelectOption : void 0,
|
|
20366
|
-
"data-testid": testId,
|
|
20367
|
-
children: [
|
|
20368
|
-
/* @__PURE__ */ jsx("div", { className: styles$n.optionContent, children: /* @__PURE__ */ jsxs("span", { className: styles$n.label, title: label2, children: [
|
|
20369
|
-
label2,
|
|
20370
|
-
icon2 && /* @__PURE__ */ jsx("span", { className: styles$n.icon, children: icon2 })
|
|
20371
|
-
] }) }),
|
|
20372
|
-
details2 && /* @__PURE__ */ jsx("div", { className: cx$2(styles$n.details), children: /* @__PURE__ */ jsx(Text, { faint: true, children: details2 }) }),
|
|
20373
|
-
!!(actions2 == null ? void 0 : actions2.length) && /* @__PURE__ */ jsx("div", { className: cx$2(styles$n.actions), children: /* @__PURE__ */ jsx(Actions, { actions: actions2, closeLayer }) }),
|
|
20374
|
-
/* @__PURE__ */ jsx("span", { className: styles$n.check, children: selected2 ? /* @__PURE__ */ jsx(Icon, { icon: IconType.CHECK }) : null })
|
|
20375
|
-
]
|
|
19945
|
+
case ReducerAction.CLOSE_LAYER: {
|
|
19946
|
+
return {
|
|
19947
|
+
...state,
|
|
19948
|
+
isLayerOpen: false
|
|
19949
|
+
};
|
|
20376
19950
|
}
|
|
20377
|
-
);
|
|
20378
|
-
};
|
|
20379
|
-
const Section = ({
|
|
20380
|
-
section: section2,
|
|
20381
|
-
selected: selected2,
|
|
20382
|
-
focused: focused2,
|
|
20383
|
-
onSelectOption,
|
|
20384
|
-
closeLayer
|
|
20385
|
-
}) => {
|
|
20386
|
-
const disabledContext = useContext(DisabledContext);
|
|
20387
|
-
switch (section2.type) {
|
|
20388
|
-
case MenuType.HEADING:
|
|
20389
|
-
return /* @__PURE__ */ jsx(Heading, { label: section2.label });
|
|
20390
|
-
case MenuType.OPTION:
|
|
20391
19951
|
default:
|
|
20392
|
-
return
|
|
20393
|
-
Option,
|
|
20394
|
-
{
|
|
20395
|
-
closeLayer,
|
|
20396
|
-
actions: section2.actions,
|
|
20397
|
-
label: section2.label,
|
|
20398
|
-
details: section2.details,
|
|
20399
|
-
icon: section2.icon,
|
|
20400
|
-
disabled: section2.disabled || disabledContext,
|
|
20401
|
-
selected: selected2,
|
|
20402
|
-
focused: focused2,
|
|
20403
|
-
onSelectOption,
|
|
20404
|
-
testId: section2.testId
|
|
20405
|
-
}
|
|
20406
|
-
);
|
|
19952
|
+
return state;
|
|
20407
19953
|
}
|
|
20408
19954
|
};
|
|
20409
19955
|
const getTextWidth = (text2, font) => {
|
|
@@ -20423,11 +19969,6 @@ const PADDING = 12;
|
|
|
20423
19969
|
const PADDING_SMALL = 8;
|
|
20424
19970
|
const TOGGLE_SIZE = 30;
|
|
20425
19971
|
const TOGGLE_SIZE_SMALL = 24;
|
|
20426
|
-
const TAG_PADDING = 5;
|
|
20427
|
-
const TAG_PADDING_SMALL = 3;
|
|
20428
|
-
const TAG_BORDER_WIDTH = 1;
|
|
20429
|
-
const TAG_MARGIN = 2;
|
|
20430
|
-
const MAX_OPTIONS_LENGTH = 10;
|
|
20431
19972
|
const getFont = (small2 = false, isFontLoaded = false) => {
|
|
20432
19973
|
const fontSize = small2 ? FONT_SIZE_SMALL : FONT_SIZE;
|
|
20433
19974
|
const fontFamily = isFontLoaded ? FONT_FAMILY : FONT_FAMILY_FALLBACK;
|
|
@@ -20454,523 +19995,6 @@ const getWidestOptionWidth = (options, small2, isFontLoaded, placeholder3) => {
|
|
|
20454
19995
|
const extraWidth = getExtraOptionWidth(small2, true);
|
|
20455
19996
|
return widestTextWidth + extraWidth;
|
|
20456
19997
|
};
|
|
20457
|
-
const getMultiOptionWidth = (option2, small2, isFontLoaded) => {
|
|
20458
|
-
const font = getFont(true, isFontLoaded);
|
|
20459
|
-
const textWidth = getTextWidth(option2.label, font);
|
|
20460
|
-
const extraWidth = (small2 ? TAG_PADDING_SMALL : TAG_PADDING) * 2 + TAG_BORDER_WIDTH * 2 + TAG_MARGIN;
|
|
20461
|
-
return Math.ceil(textWidth + extraWidth);
|
|
20462
|
-
};
|
|
20463
|
-
const Layer = ({
|
|
20464
|
-
listRef,
|
|
20465
|
-
isMulti: isMulti2,
|
|
20466
|
-
sections,
|
|
20467
|
-
selectedOptions,
|
|
20468
|
-
onSelectOption,
|
|
20469
|
-
focusedOptionIndex,
|
|
20470
|
-
width: width2,
|
|
20471
|
-
small: small2,
|
|
20472
|
-
firstSelectedOptionIndex,
|
|
20473
|
-
closeLayer,
|
|
20474
|
-
isMounted,
|
|
20475
|
-
testId
|
|
20476
|
-
}) => {
|
|
20477
|
-
useEffect(() => {
|
|
20478
|
-
if (!isMounted.current) return;
|
|
20479
|
-
if (firstSelectedOptionIndex !== void 0 && firstSelectedOptionIndex !== null && listRef.current !== null && typeof listRef.current.scrollToItem === "function") {
|
|
20480
|
-
listRef.current.scrollToItem(firstSelectedOptionIndex, "start");
|
|
20481
|
-
}
|
|
20482
|
-
}, [firstSelectedOptionIndex, listRef]);
|
|
20483
|
-
const optionHeight = small2 ? 24 : 30;
|
|
20484
|
-
return /* @__PURE__ */ jsx(
|
|
20485
|
-
"div",
|
|
20486
|
-
{
|
|
20487
|
-
"data-testid": testId,
|
|
20488
|
-
className: cx$2(styles$n.layer, small2 && styles$n.small),
|
|
20489
|
-
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(
|
|
20490
|
-
FixedSizeList,
|
|
20491
|
-
{
|
|
20492
|
-
ref: listRef,
|
|
20493
|
-
height: sections.length < MAX_OPTIONS_LENGTH ? optionHeight * sections.length : optionHeight * MAX_OPTIONS_LENGTH,
|
|
20494
|
-
itemCount: sections.length,
|
|
20495
|
-
itemSize: optionHeight,
|
|
20496
|
-
width: width2,
|
|
20497
|
-
children: ({ index: index2, style: style2 }) => {
|
|
20498
|
-
var _a2;
|
|
20499
|
-
return /* @__PURE__ */ jsx("div", { style: style2, children: /* @__PURE__ */ jsx(
|
|
20500
|
-
Section,
|
|
20501
|
-
{
|
|
20502
|
-
closeLayer,
|
|
20503
|
-
section: sections[index2],
|
|
20504
|
-
selected: isMulti2 && sections[index2].type !== MenuType.HEADING && Array.isArray(selectedOptions) ? selectedOptions.some(
|
|
20505
|
-
(v2) => {
|
|
20506
|
-
var _a3;
|
|
20507
|
-
return v2 && (v2 == null ? void 0 : v2.value) === ((_a3 = sections == null ? void 0 : sections[index2]) == null ? void 0 : _a3.value);
|
|
20508
|
-
}
|
|
20509
|
-
) : !Array.isArray(selectedOptions) && ((_a2 = sections == null ? void 0 : sections[index2]) == null ? void 0 : _a2.value) === (selectedOptions == null ? void 0 : selectedOptions.value),
|
|
20510
|
-
focused: focusedOptionIndex === index2,
|
|
20511
|
-
onSelectOption: (evt) => onSelectOption(evt, sections[index2])
|
|
20512
|
-
}
|
|
20513
|
-
) });
|
|
20514
|
-
}
|
|
20515
|
-
}
|
|
20516
|
-
)
|
|
20517
|
-
}
|
|
20518
|
-
);
|
|
20519
|
-
};
|
|
20520
|
-
const inputInTable$5 = "_inputInTable_7uwhv_1";
|
|
20521
|
-
const inputHover$5 = "_inputHover_7uwhv_13";
|
|
20522
|
-
const inputFocus$5 = "_inputFocus_7uwhv_18";
|
|
20523
|
-
const inputError$5 = "_inputError_7uwhv_25";
|
|
20524
|
-
const inputWarning$5 = "_inputWarning_7uwhv_26";
|
|
20525
|
-
const inputDisabled$5 = "_inputDisabled_7uwhv_61";
|
|
20526
|
-
const hideScrollbars$5 = "_hideScrollbars_7uwhv_67";
|
|
20527
|
-
const trigger$1 = "_trigger_7uwhv_77";
|
|
20528
|
-
const isInTable$1 = "_isInTable_7uwhv_93";
|
|
20529
|
-
const input = "_input_7uwhv_1";
|
|
20530
|
-
const isOpen = "_isOpen_7uwhv_114";
|
|
20531
|
-
const disabled$3 = "_disabled_7uwhv_156";
|
|
20532
|
-
const icons = "_icons_7uwhv_162";
|
|
20533
|
-
const clearAll = "_clearAll_7uwhv_169";
|
|
20534
|
-
const iconOpen = "_iconOpen_7uwhv_170";
|
|
20535
|
-
const small$4 = "_small_7uwhv_181";
|
|
20536
|
-
const triggerInputContainer = "_triggerInputContainer_7uwhv_189";
|
|
20537
|
-
const right$2 = "_right_7uwhv_198";
|
|
20538
|
-
const multiOptions = "_multiOptions_7uwhv_211";
|
|
20539
|
-
const multiOption = "_multiOption_7uwhv_211";
|
|
20540
|
-
const label$4 = "_label_7uwhv_239";
|
|
20541
|
-
const closeMultiOption = "_closeMultiOption_7uwhv_242";
|
|
20542
|
-
const focus = "_focus_7uwhv_253";
|
|
20543
|
-
const selectedSingleValue = "_selectedSingleValue_7uwhv_257";
|
|
20544
|
-
const placeHolder = "_placeHolder_7uwhv_258";
|
|
20545
|
-
const groupOrderFirst = "_groupOrderFirst_7uwhv_297";
|
|
20546
|
-
const groupOrderMiddle = "_groupOrderMiddle_7uwhv_298";
|
|
20547
|
-
const groupOrderLast = "_groupOrderLast_7uwhv_302";
|
|
20548
|
-
const detailedLabel = "_detailedLabel_7uwhv_307";
|
|
20549
|
-
const styles$m = {
|
|
20550
|
-
inputInTable: inputInTable$5,
|
|
20551
|
-
inputHover: inputHover$5,
|
|
20552
|
-
inputFocus: inputFocus$5,
|
|
20553
|
-
inputError: inputError$5,
|
|
20554
|
-
inputWarning: inputWarning$5,
|
|
20555
|
-
inputDisabled: inputDisabled$5,
|
|
20556
|
-
hideScrollbars: hideScrollbars$5,
|
|
20557
|
-
trigger: trigger$1,
|
|
20558
|
-
isInTable: isInTable$1,
|
|
20559
|
-
input,
|
|
20560
|
-
isOpen,
|
|
20561
|
-
disabled: disabled$3,
|
|
20562
|
-
icons,
|
|
20563
|
-
clearAll,
|
|
20564
|
-
iconOpen,
|
|
20565
|
-
small: small$4,
|
|
20566
|
-
triggerInputContainer,
|
|
20567
|
-
right: right$2,
|
|
20568
|
-
multiOptions,
|
|
20569
|
-
multiOption,
|
|
20570
|
-
label: label$4,
|
|
20571
|
-
closeMultiOption,
|
|
20572
|
-
focus,
|
|
20573
|
-
selectedSingleValue,
|
|
20574
|
-
placeHolder,
|
|
20575
|
-
groupOrderFirst,
|
|
20576
|
-
groupOrderMiddle,
|
|
20577
|
-
groupOrderLast,
|
|
20578
|
-
detailedLabel
|
|
20579
|
-
};
|
|
20580
|
-
const MultiSelectedOptions = ({
|
|
20581
|
-
selectedOptions,
|
|
20582
|
-
small: small2,
|
|
20583
|
-
width: width2,
|
|
20584
|
-
testId
|
|
20585
|
-
}) => {
|
|
20586
|
-
const isFontLoaded = useFontsReady();
|
|
20587
|
-
const [displayedOptions, setDisplayedOptions] = useState([]);
|
|
20588
|
-
const [overflowOptions, setOverflowOptions] = useState([]);
|
|
20589
|
-
useEffect(() => {
|
|
20590
|
-
let displayed = [];
|
|
20591
|
-
let overflow = [];
|
|
20592
|
-
let usedWidth = 0;
|
|
20593
|
-
selectedOptions.forEach((option2, index2) => {
|
|
20594
|
-
usedWidth += getMultiOptionWidth(option2, small2, isFontLoaded);
|
|
20595
|
-
if (index2 === selectedOptions.length - 1 && usedWidth < width2) {
|
|
20596
|
-
displayed.push(option2);
|
|
20597
|
-
} else if (usedWidth < width2 - 24) {
|
|
20598
|
-
displayed.push(option2);
|
|
20599
|
-
} else {
|
|
20600
|
-
overflow.push(option2);
|
|
20601
|
-
}
|
|
20602
|
-
});
|
|
20603
|
-
setDisplayedOptions(displayed);
|
|
20604
|
-
setOverflowOptions(overflow);
|
|
20605
|
-
}, [selectedOptions, isFontLoaded, width2]);
|
|
20606
|
-
return /* @__PURE__ */ jsxs(
|
|
20607
|
-
"div",
|
|
20608
|
-
{
|
|
20609
|
-
className: styles$m.multiOptions,
|
|
20610
|
-
"data-testid": testId && `${testId}-value`,
|
|
20611
|
-
children: [
|
|
20612
|
-
displayedOptions.filter((option2) => option2 && option2.label).map((option2, index2) => /* @__PURE__ */ jsx(
|
|
20613
|
-
"span",
|
|
20614
|
-
{
|
|
20615
|
-
className: styles$m.multiOption,
|
|
20616
|
-
onClick: (evt) => {
|
|
20617
|
-
evt.stopPropagation();
|
|
20618
|
-
},
|
|
20619
|
-
children: option2.label
|
|
20620
|
-
},
|
|
20621
|
-
index2
|
|
20622
|
-
)),
|
|
20623
|
-
overflowOptions.length > 0 && /* @__PURE__ */ jsx(
|
|
20624
|
-
Tooltip,
|
|
20625
|
-
{
|
|
20626
|
-
text: overflowOptions.map((option2, index2) => /* @__PURE__ */ jsx("div", { children: option2.label }, index2)),
|
|
20627
|
-
display: "inline-flex",
|
|
20628
|
-
children: /* @__PURE__ */ jsx("span", { className: styles$m.multiOption, children: displayedOptions.length ? `+${overflowOptions.length}` : `${overflowOptions.length} items` })
|
|
20629
|
-
}
|
|
20630
|
-
)
|
|
20631
|
-
]
|
|
20632
|
-
}
|
|
20633
|
-
);
|
|
20634
|
-
};
|
|
20635
|
-
const Input = ({
|
|
20636
|
-
selectedOptions,
|
|
20637
|
-
searchable = false,
|
|
20638
|
-
searchValue,
|
|
20639
|
-
onChange = noop$3,
|
|
20640
|
-
inputRef,
|
|
20641
|
-
error: error2,
|
|
20642
|
-
placeholder: placeholder3 = "Select...",
|
|
20643
|
-
small: small2,
|
|
20644
|
-
testId
|
|
20645
|
-
}) => {
|
|
20646
|
-
const containerRef = useRef(null);
|
|
20647
|
-
const isMulti2 = Array.isArray(selectedOptions);
|
|
20648
|
-
const hasSelectedValues = isMulti2 ? selectedOptions.length > 0 : !!selectedOptions;
|
|
20649
|
-
const inputSize = searchValue ? searchValue.length + 1 : 1;
|
|
20650
|
-
const getMultiOptionsWidth = () => {
|
|
20651
|
-
var _a2, _b;
|
|
20652
|
-
const containerWidth = ((_a2 = containerRef.current) == null ? void 0 : _a2.offsetWidth) || 0;
|
|
20653
|
-
const inputWidth = ((_b = inputRef.current) == null ? void 0 : _b.offsetWidth) || 0;
|
|
20654
|
-
return containerWidth - inputWidth;
|
|
20655
|
-
};
|
|
20656
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$m.triggerInputContainer, ref: containerRef, children: [
|
|
20657
|
-
!hasSelectedValues ? /* @__PURE__ */ jsx("span", { className: styles$m.placeHolder, children: !(searchValue == null ? void 0 : searchValue.length) ? placeholder3 : "" }) : isMulti2 ? /* @__PURE__ */ jsx(
|
|
20658
|
-
MultiSelectedOptions,
|
|
20659
|
-
{
|
|
20660
|
-
selectedOptions,
|
|
20661
|
-
small: small2,
|
|
20662
|
-
width: getMultiOptionsWidth(),
|
|
20663
|
-
testId
|
|
20664
|
-
}
|
|
20665
|
-
) : /* @__PURE__ */ jsx(
|
|
20666
|
-
"span",
|
|
20667
|
-
{
|
|
20668
|
-
className: styles$m.selectedSingleValue,
|
|
20669
|
-
"data-testid": testId && `${testId}-value`,
|
|
20670
|
-
children: !(searchValue == null ? void 0 : searchValue.length) ? selectedOptions == null ? void 0 : selectedOptions.label : ""
|
|
20671
|
-
}
|
|
20672
|
-
),
|
|
20673
|
-
searchable ? /* @__PURE__ */ jsx(
|
|
20674
|
-
"input",
|
|
20675
|
-
{
|
|
20676
|
-
tabIndex: -1,
|
|
20677
|
-
ref: inputRef,
|
|
20678
|
-
size: inputSize,
|
|
20679
|
-
className: styles$m.input,
|
|
20680
|
-
value: searchValue,
|
|
20681
|
-
onChange: (evt) => onChange(evt.target.value),
|
|
20682
|
-
"data-error": error2 || null,
|
|
20683
|
-
"data-testid": testId && `${testId}-input`
|
|
20684
|
-
}
|
|
20685
|
-
) : null
|
|
20686
|
-
] });
|
|
20687
|
-
};
|
|
20688
|
-
const Trigger = ({
|
|
20689
|
-
selectedOptions,
|
|
20690
|
-
searchValue,
|
|
20691
|
-
searchable,
|
|
20692
|
-
clearable,
|
|
20693
|
-
onClickTrigger,
|
|
20694
|
-
element,
|
|
20695
|
-
error: error2,
|
|
20696
|
-
warning: warning2,
|
|
20697
|
-
tooltip: tooltip2,
|
|
20698
|
-
small: small2,
|
|
20699
|
-
isInTable: isInTable2,
|
|
20700
|
-
disabled: disabled2,
|
|
20701
|
-
onChangeSearch,
|
|
20702
|
-
onClickDeselect,
|
|
20703
|
-
onClickClear,
|
|
20704
|
-
tabIndex,
|
|
20705
|
-
isOpen: isOpen2,
|
|
20706
|
-
triggerRef,
|
|
20707
|
-
clearAllIsFocused,
|
|
20708
|
-
focusedSelectedOptionIndex,
|
|
20709
|
-
onFocus,
|
|
20710
|
-
onBlur,
|
|
20711
|
-
groupOrder,
|
|
20712
|
-
maxTooltipWidth,
|
|
20713
|
-
placeholder: placeholder3,
|
|
20714
|
-
right: right2,
|
|
20715
|
-
isMounted,
|
|
20716
|
-
testId
|
|
20717
|
-
}) => {
|
|
20718
|
-
var _a2;
|
|
20719
|
-
const [inputRef, setInputFocus] = useFocus();
|
|
20720
|
-
const hasSelection2 = Array.isArray(selectedOptions) ? selectedOptions.length > 0 && ((_a2 = selectedOptions[0]) == null ? void 0 : _a2.value) : selectedOptions == null ? void 0 : selectedOptions.value;
|
|
20721
|
-
const canClear = clearable && hasSelection2;
|
|
20722
|
-
const order2 = (() => {
|
|
20723
|
-
if (groupOrder) {
|
|
20724
|
-
switch (groupOrder) {
|
|
20725
|
-
case GroupOrder.FIRST:
|
|
20726
|
-
return styles$m.groupOrderFirst;
|
|
20727
|
-
case GroupOrder.LAST:
|
|
20728
|
-
return styles$m.groupOrderLast;
|
|
20729
|
-
default:
|
|
20730
|
-
return styles$m.groupOrderMiddle;
|
|
20731
|
-
}
|
|
20732
|
-
}
|
|
20733
|
-
return "";
|
|
20734
|
-
})();
|
|
20735
|
-
const selectedOptionsWithDetails = !Array.isArray(selectedOptions) && (selectedOptions == null ? void 0 : selectedOptions.details) ? {
|
|
20736
|
-
...selectedOptions,
|
|
20737
|
-
label: /* @__PURE__ */ jsxs("div", { className: cx$2(styles$m.detailedLabel), children: [
|
|
20738
|
-
/* @__PURE__ */ jsx(Text, { children: selectedOptions.label }),
|
|
20739
|
-
/* @__PURE__ */ jsx(Text, { muted: true, children: selectedOptions.details })
|
|
20740
|
-
] })
|
|
20741
|
-
} : selectedOptions;
|
|
20742
|
-
const triggerInput = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
20743
|
-
element,
|
|
20744
|
-
/* @__PURE__ */ jsxs(
|
|
20745
|
-
"div",
|
|
20746
|
-
{
|
|
20747
|
-
ref: triggerRef,
|
|
20748
|
-
tabIndex,
|
|
20749
|
-
className: cx$2(
|
|
20750
|
-
styles$m.trigger,
|
|
20751
|
-
isOpen2 ? styles$m.isOpen : "",
|
|
20752
|
-
disabled2 ? styles$m.disabled : "",
|
|
20753
|
-
small2 ? styles$m.small : "",
|
|
20754
|
-
isInTable2 ? styles$m.isInTable : "",
|
|
20755
|
-
right2 ? styles$m.right : "",
|
|
20756
|
-
order2
|
|
20757
|
-
),
|
|
20758
|
-
onClick: (evt) => {
|
|
20759
|
-
onClickTrigger(evt);
|
|
20760
|
-
if (typeof setInputFocus === "function") {
|
|
20761
|
-
requestAnimationFrame(() => {
|
|
20762
|
-
if (isMounted == null ? void 0 : isMounted.current) {
|
|
20763
|
-
setInputFocus();
|
|
20764
|
-
}
|
|
20765
|
-
});
|
|
20766
|
-
}
|
|
20767
|
-
},
|
|
20768
|
-
onFocus,
|
|
20769
|
-
onBlur,
|
|
20770
|
-
"data-error": error2 || null,
|
|
20771
|
-
"data-warning": warning2 || null,
|
|
20772
|
-
"data-testid": testId,
|
|
20773
|
-
children: [
|
|
20774
|
-
/* @__PURE__ */ jsx(
|
|
20775
|
-
Input,
|
|
20776
|
-
{
|
|
20777
|
-
selectedOptions: selectedOptionsWithDetails,
|
|
20778
|
-
placeholder: placeholder3,
|
|
20779
|
-
searchable,
|
|
20780
|
-
searchValue,
|
|
20781
|
-
inputRef,
|
|
20782
|
-
onChange: onChangeSearch,
|
|
20783
|
-
error: error2,
|
|
20784
|
-
small: small2,
|
|
20785
|
-
testId
|
|
20786
|
-
}
|
|
20787
|
-
),
|
|
20788
|
-
/* @__PURE__ */ jsx("span", { className: styles$m.icons, children: canClear ? /* @__PURE__ */ jsx(
|
|
20789
|
-
"span",
|
|
20790
|
-
{
|
|
20791
|
-
className: cx$2(
|
|
20792
|
-
styles$m.clearAll,
|
|
20793
|
-
clearAllIsFocused ? styles$m.focus : ""
|
|
20794
|
-
),
|
|
20795
|
-
onClick: (evt) => {
|
|
20796
|
-
evt.stopPropagation();
|
|
20797
|
-
if (onClickClear) {
|
|
20798
|
-
onClickClear(evt);
|
|
20799
|
-
}
|
|
20800
|
-
},
|
|
20801
|
-
"data-testid": testId && `${testId}-clear`,
|
|
20802
|
-
children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CLOSE })
|
|
20803
|
-
}
|
|
20804
|
-
) : /* @__PURE__ */ jsx("span", { className: cx$2(styles$m.iconOpen), children: /* @__PURE__ */ jsx(Icon, { icon: "chevron down" }) }) })
|
|
20805
|
-
]
|
|
20806
|
-
}
|
|
20807
|
-
)
|
|
20808
|
-
] });
|
|
20809
|
-
return /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(
|
|
20810
|
-
Tooltip,
|
|
20811
|
-
{
|
|
20812
|
-
error: !!error2,
|
|
20813
|
-
warning: !!warning2,
|
|
20814
|
-
text: tooltip2 || error2 || warning2,
|
|
20815
|
-
enabled: tooltip2 && isStringNumberOrNode(tooltip2) || error2 && isStringNumberOrNode(error2) || warning2 && isStringNumberOrNode(warning2) || false,
|
|
20816
|
-
maxWidth: maxTooltipWidth,
|
|
20817
|
-
placement: "bottom-center",
|
|
20818
|
-
children: triggerInput
|
|
20819
|
-
}
|
|
20820
|
-
) });
|
|
20821
|
-
};
|
|
20822
|
-
var ReducerAction = /* @__PURE__ */ ((ReducerAction2) => {
|
|
20823
|
-
ReducerAction2["SET_VISIBLE_OPTIONS"] = "SET_VISIBLE_OPTIONS";
|
|
20824
|
-
ReducerAction2["RESET_LAYER_FOCUS"] = "RESET_LAYER_FOCUS";
|
|
20825
|
-
ReducerAction2["CLEAR_SEARCH"] = "CLEAR_SEARCH";
|
|
20826
|
-
ReducerAction2["ON_CHANGE_SEARCH"] = "ON_CHANGE_SEARCH";
|
|
20827
|
-
ReducerAction2["FOCUS_TRIGGER_INPUTS"] = "FOCUS_TRIGGER_INPUTS";
|
|
20828
|
-
ReducerAction2["BLUR_TRIGGER_INPUTS"] = "BLUR_TRIGGER_INPUTS";
|
|
20829
|
-
ReducerAction2["FOCUS_LAYER_OPTIONS"] = "FOCUS_LAYER_OPTIONS";
|
|
20830
|
-
ReducerAction2["OPEN_LAYER"] = "OPEN_LAYER";
|
|
20831
|
-
ReducerAction2["CLOSE_LAYER"] = "CLOSE_LAYER";
|
|
20832
|
-
return ReducerAction2;
|
|
20833
|
-
})(ReducerAction || {});
|
|
20834
|
-
const initialTriggerFocus = {
|
|
20835
|
-
options: ["none", "clearAll"],
|
|
20836
|
-
currentIndex: 0,
|
|
20837
|
-
currentOption: false,
|
|
20838
|
-
clearAll: false
|
|
20839
|
-
};
|
|
20840
|
-
const initialLayerFocusIndex = (firstSelectedOptionIndex) => firstSelectedOptionIndex !== null ? firstSelectedOptionIndex + 1 : 0;
|
|
20841
|
-
const initialLayerFocus = (options, firstSelectedOptionIndex) => {
|
|
20842
|
-
const layerFocusOptions = [
|
|
20843
|
-
"none",
|
|
20844
|
-
...options.map((o, i) => o.type !== MenuType.HEADING ? i : null).filter((o) => o !== null)
|
|
20845
|
-
];
|
|
20846
|
-
const layerFocusIndex = initialLayerFocusIndex(firstSelectedOptionIndex);
|
|
20847
|
-
return {
|
|
20848
|
-
options: layerFocusOptions,
|
|
20849
|
-
currentIndex: layerFocusIndex,
|
|
20850
|
-
current: layerFocusOptions[layerFocusIndex]
|
|
20851
|
-
};
|
|
20852
|
-
};
|
|
20853
|
-
const nextLayerFocus = (direction, layerFocus) => {
|
|
20854
|
-
const sign = direction === "up" ? -1 : 1;
|
|
20855
|
-
const increment = layerFocus.currentIndex + sign;
|
|
20856
|
-
const nextIndex = (increment < 0 ? layerFocus.options.length - 1 : increment) % layerFocus.options.length;
|
|
20857
|
-
const next2 = layerFocus.options[nextIndex];
|
|
20858
|
-
return {
|
|
20859
|
-
...layerFocus,
|
|
20860
|
-
currentIndex: nextIndex,
|
|
20861
|
-
current: next2
|
|
20862
|
-
};
|
|
20863
|
-
};
|
|
20864
|
-
const nextTriggerFocus = (direction, selectedOptions, triggerFocus) => {
|
|
20865
|
-
const sign = direction === "left" ? -1 : 1;
|
|
20866
|
-
const nextOptions = selectedOptions && selectedOptions.length ? [
|
|
20867
|
-
"none",
|
|
20868
|
-
...Array.from({ length: selectedOptions.length }, (_2, i) => i),
|
|
20869
|
-
"clearAll"
|
|
20870
|
-
] : ["none", "clearAll"];
|
|
20871
|
-
const increment = triggerFocus.currentIndex + sign;
|
|
20872
|
-
const nextIndex = (increment < 0 ? nextOptions.length - 1 : increment) % nextOptions.length;
|
|
20873
|
-
const next2 = nextOptions[nextIndex];
|
|
20874
|
-
const clearAll2 = next2 === "clearAll";
|
|
20875
|
-
return {
|
|
20876
|
-
options: nextOptions,
|
|
20877
|
-
currentIndex: nextIndex,
|
|
20878
|
-
currentOption: next2,
|
|
20879
|
-
clearAll: clearAll2
|
|
20880
|
-
};
|
|
20881
|
-
};
|
|
20882
|
-
const blurTriggerFocus = () => initialTriggerFocus;
|
|
20883
|
-
const blurLayerFocus = (layerFocus) => ({
|
|
20884
|
-
...layerFocus,
|
|
20885
|
-
currentIndex: 0,
|
|
20886
|
-
current: "none"
|
|
20887
|
-
});
|
|
20888
|
-
const reducer = (state, action2) => {
|
|
20889
|
-
switch (action2.type) {
|
|
20890
|
-
case ReducerAction.SET_VISIBLE_OPTIONS: {
|
|
20891
|
-
return {
|
|
20892
|
-
...state,
|
|
20893
|
-
visibleOptions: action2.options || []
|
|
20894
|
-
};
|
|
20895
|
-
}
|
|
20896
|
-
case ReducerAction.RESET_LAYER_FOCUS: {
|
|
20897
|
-
return {
|
|
20898
|
-
...state,
|
|
20899
|
-
layerFocus: initialLayerFocus(
|
|
20900
|
-
action2.options || [],
|
|
20901
|
-
action2.firstSelectedOptionIndex || 0
|
|
20902
|
-
)
|
|
20903
|
-
};
|
|
20904
|
-
}
|
|
20905
|
-
case ReducerAction.CLEAR_SEARCH: {
|
|
20906
|
-
return {
|
|
20907
|
-
...state,
|
|
20908
|
-
visibleOptions: action2.options || [],
|
|
20909
|
-
searchValue: ""
|
|
20910
|
-
};
|
|
20911
|
-
}
|
|
20912
|
-
case ReducerAction.ON_CHANGE_SEARCH: {
|
|
20913
|
-
const visibleOptions = (action2.options || []).filter(
|
|
20914
|
-
(o) => (String(o.label) + (o.details ? String(o.details) : "")).toLowerCase().includes(String(action2.value || "").toLowerCase())
|
|
20915
|
-
);
|
|
20916
|
-
let newVisibleOptions = [...visibleOptions];
|
|
20917
|
-
if (action2.createAble && action2.value && action2.value !== "") {
|
|
20918
|
-
newVisibleOptions.push({
|
|
20919
|
-
label: `Create "${action2.value}"`,
|
|
20920
|
-
value: action2.value,
|
|
20921
|
-
createAble: true
|
|
20922
|
-
});
|
|
20923
|
-
}
|
|
20924
|
-
return {
|
|
20925
|
-
...state,
|
|
20926
|
-
searchValue: action2.value,
|
|
20927
|
-
visibleOptions: newVisibleOptions,
|
|
20928
|
-
layerFocus: blurLayerFocus(state.layerFocus)
|
|
20929
|
-
};
|
|
20930
|
-
}
|
|
20931
|
-
case ReducerAction.FOCUS_TRIGGER_INPUTS: {
|
|
20932
|
-
return {
|
|
20933
|
-
...state,
|
|
20934
|
-
triggerFocus: nextTriggerFocus(
|
|
20935
|
-
action2.direction || "right",
|
|
20936
|
-
action2.selectedOptions || [],
|
|
20937
|
-
state.triggerFocus
|
|
20938
|
-
),
|
|
20939
|
-
layerFocus: blurLayerFocus(state.layerFocus)
|
|
20940
|
-
};
|
|
20941
|
-
}
|
|
20942
|
-
case ReducerAction.BLUR_TRIGGER_INPUTS: {
|
|
20943
|
-
return {
|
|
20944
|
-
...state,
|
|
20945
|
-
triggerFocus: blurTriggerFocus()
|
|
20946
|
-
};
|
|
20947
|
-
}
|
|
20948
|
-
case ReducerAction.FOCUS_LAYER_OPTIONS: {
|
|
20949
|
-
if (!action2.nextLayerFocus) {
|
|
20950
|
-
return state;
|
|
20951
|
-
}
|
|
20952
|
-
return {
|
|
20953
|
-
...state,
|
|
20954
|
-
layerFocus: action2.nextLayerFocus,
|
|
20955
|
-
triggerFocus: blurTriggerFocus()
|
|
20956
|
-
};
|
|
20957
|
-
}
|
|
20958
|
-
case ReducerAction.OPEN_LAYER: {
|
|
20959
|
-
return {
|
|
20960
|
-
...state,
|
|
20961
|
-
isLayerOpen: true
|
|
20962
|
-
};
|
|
20963
|
-
}
|
|
20964
|
-
case ReducerAction.CLOSE_LAYER: {
|
|
20965
|
-
return {
|
|
20966
|
-
...state,
|
|
20967
|
-
isLayerOpen: false
|
|
20968
|
-
};
|
|
20969
|
-
}
|
|
20970
|
-
default:
|
|
20971
|
-
return state;
|
|
20972
|
-
}
|
|
20973
|
-
};
|
|
20974
19998
|
const placementOptions = {
|
|
20975
19999
|
auto: true,
|
|
20976
20000
|
possiblePlacements: ["bottom-start", "top-start"],
|
|
@@ -21034,11 +20058,15 @@ const useCustomSelectLogic = ({
|
|
|
21034
20058
|
const openLayer = () => safeDispatch({ type: ActionTypes.OPEN_LAYER });
|
|
21035
20059
|
const isFirstRun = useRef(true);
|
|
21036
20060
|
useEffect(() => {
|
|
20061
|
+
console.log("isFirstRun mounted");
|
|
21037
20062
|
if (isFirstRun.current) {
|
|
21038
20063
|
isFirstRun.current = false;
|
|
21039
20064
|
} else {
|
|
21040
20065
|
safeDispatch({ type: ActionTypes.SET_VISIBLE_OPTIONS, options });
|
|
21041
20066
|
}
|
|
20067
|
+
return () => {
|
|
20068
|
+
console.log("isFirstRun unmounted");
|
|
20069
|
+
};
|
|
21042
20070
|
}, [options]);
|
|
21043
20071
|
const onSelectOption = (evt, option2, close2) => {
|
|
21044
20072
|
if (!(disabled2 || disabledContext)) {
|
|
@@ -21120,6 +20148,7 @@ const useCustomSelectLogic = ({
|
|
|
21120
20148
|
};
|
|
21121
20149
|
const isFirstRender = useRef(true);
|
|
21122
20150
|
useEffect(() => {
|
|
20151
|
+
console.log("isFirstRender mounted");
|
|
21123
20152
|
if (isFirstRender.current) {
|
|
21124
20153
|
isFirstRender.current = false;
|
|
21125
20154
|
} else {
|
|
@@ -21127,6 +20156,9 @@ const useCustomSelectLogic = ({
|
|
|
21127
20156
|
safeDispatch({ type: ActionTypes.CLEAR_SEARCH, options });
|
|
21128
20157
|
}
|
|
21129
20158
|
}
|
|
20159
|
+
return () => {
|
|
20160
|
+
console.log("isFirstRender unmounted");
|
|
20161
|
+
};
|
|
21130
20162
|
}, [state.isLayerOpen]);
|
|
21131
20163
|
const onClickDeselectOption = (evt, options2) => {
|
|
21132
20164
|
const newSelectedOptions = selectedOptions instanceof Array ? selectedOptions.filter((option2) => option2.value !== options2.value) : null;
|
|
@@ -21170,7 +20202,7 @@ const useCustomSelectLogic = ({
|
|
|
21170
20202
|
selectedOptions
|
|
21171
20203
|
});
|
|
21172
20204
|
};
|
|
21173
|
-
const
|
|
20205
|
+
const clearAll = (evt) => onClickClearAll(evt);
|
|
21174
20206
|
const deselectIsFocused = selectedOptions && selectedOptions[state.triggerFocus.currentOption];
|
|
21175
20207
|
const deselectOption = (evt) => {
|
|
21176
20208
|
onClickDeselectOption(
|
|
@@ -21208,7 +20240,7 @@ const useCustomSelectLogic = ({
|
|
|
21208
20240
|
}
|
|
21209
20241
|
case EventKey.ENTER: {
|
|
21210
20242
|
if (clearAllIsFocused) {
|
|
21211
|
-
|
|
20243
|
+
clearAll(evt);
|
|
21212
20244
|
} else if (deselectIsFocused) {
|
|
21213
20245
|
deselectOption(evt);
|
|
21214
20246
|
} else {
|
|
@@ -21317,66 +20349,7 @@ const CustomSelect = (props) => {
|
|
|
21317
20349
|
listRef,
|
|
21318
20350
|
isMounted
|
|
21319
20351
|
});
|
|
21320
|
-
return /* @__PURE__ */
|
|
21321
|
-
/* @__PURE__ */ jsx(
|
|
21322
|
-
Trigger,
|
|
21323
|
-
{
|
|
21324
|
-
selectedOptions,
|
|
21325
|
-
searchValue: state.searchValue,
|
|
21326
|
-
isOpen: state.isLayerOpen,
|
|
21327
|
-
focusedSelectedOptionIndex: state.triggerFocus.currentOption,
|
|
21328
|
-
clearAllIsFocused,
|
|
21329
|
-
searchable,
|
|
21330
|
-
triggerRef: mergeRefs(triggerRef, triggerProps.ref),
|
|
21331
|
-
error: error2,
|
|
21332
|
-
warning: warning2,
|
|
21333
|
-
tooltip: tooltip2,
|
|
21334
|
-
small: small2,
|
|
21335
|
-
isInTable: isInTable2,
|
|
21336
|
-
disabled: disabled2 || disabledContext,
|
|
21337
|
-
clearable,
|
|
21338
|
-
tabIndex,
|
|
21339
|
-
onClickTrigger,
|
|
21340
|
-
onChangeSearch,
|
|
21341
|
-
onClickDeselect: onClickDeselectOption,
|
|
21342
|
-
onClickClear: onClickClearAll,
|
|
21343
|
-
onFocus,
|
|
21344
|
-
onBlur,
|
|
21345
|
-
groupOrder,
|
|
21346
|
-
maxTooltipWidth,
|
|
21347
|
-
placeholder: placeholder3,
|
|
21348
|
-
right: right2,
|
|
21349
|
-
testId,
|
|
21350
|
-
isMounted
|
|
21351
|
-
}
|
|
21352
|
-
),
|
|
21353
|
-
state.isLayerOpen && renderLayer(
|
|
21354
|
-
/* @__PURE__ */ jsx("div", { ...layerProps, className: styles$n.layerContainer, children: /* @__PURE__ */ jsx(
|
|
21355
|
-
Layer,
|
|
21356
|
-
{
|
|
21357
|
-
listRef,
|
|
21358
|
-
isMulti: isMulti2,
|
|
21359
|
-
sections: state.visibleOptions,
|
|
21360
|
-
selectedOptions,
|
|
21361
|
-
onSelectOption: (evt, option2) => {
|
|
21362
|
-
const close2 = !isMulti2 ? closeLayer : void 0;
|
|
21363
|
-
onSelectOption(evt, option2, close2);
|
|
21364
|
-
},
|
|
21365
|
-
closeLayer: () => {
|
|
21366
|
-
if (closeOnOptionActionClick) {
|
|
21367
|
-
closeLayer();
|
|
21368
|
-
}
|
|
21369
|
-
},
|
|
21370
|
-
width: getLayerWidth(triggerBounds),
|
|
21371
|
-
small: small2,
|
|
21372
|
-
focusedOptionIndex: state.layerFocus.current,
|
|
21373
|
-
firstSelectedOptionIndex: firstSelectedOptionIndex ?? 0,
|
|
21374
|
-
isMounted,
|
|
21375
|
-
testId: testId && `${testId}-layer`
|
|
21376
|
-
}
|
|
21377
|
-
) })
|
|
21378
|
-
)
|
|
21379
|
-
] });
|
|
20352
|
+
return /* @__PURE__ */ jsx("div", { style: { width: getTriggerWidth() } });
|
|
21380
20353
|
};
|
|
21381
20354
|
const isEmptyNullOrUndefined = (value) => value === null || value === void 0 || value === "";
|
|
21382
20355
|
const isMulti = (selectedOptions) => selectedOptions instanceof Array;
|
|
@@ -21677,7 +20650,7 @@ const Pagination = ({ pagination }) => {
|
|
|
21677
20650
|
),
|
|
21678
20651
|
/* @__PURE__ */ jsxs(InputGroup, { small: small2, width: "auto", children: [
|
|
21679
20652
|
/* @__PURE__ */ jsx(
|
|
21680
|
-
Input
|
|
20653
|
+
Input,
|
|
21681
20654
|
{
|
|
21682
20655
|
right: true,
|
|
21683
20656
|
value: unvalidatedSelectedPage,
|
|
@@ -21740,7 +20713,7 @@ const Popover = ({
|
|
|
21740
20713
|
onToggle: externalOnToggle
|
|
21741
20714
|
}) => {
|
|
21742
20715
|
const disabledContext = useContext(DisabledContext);
|
|
21743
|
-
const [
|
|
20716
|
+
const [isOpen, setOpen] = externalIsOpen !== void 0 ? [externalIsOpen, externalOnToggle] : useState(false);
|
|
21744
20717
|
const close2 = () => {
|
|
21745
20718
|
if (!disabled2 && !disabledContext) {
|
|
21746
20719
|
if (setOpen) {
|
|
@@ -21751,7 +20724,7 @@ const Popover = ({
|
|
|
21751
20724
|
const toggle2 = () => {
|
|
21752
20725
|
if (!(disabled2 || disabledContext)) {
|
|
21753
20726
|
if (setOpen) {
|
|
21754
|
-
setOpen(!
|
|
20727
|
+
setOpen(!isOpen);
|
|
21755
20728
|
}
|
|
21756
20729
|
}
|
|
21757
20730
|
};
|
|
@@ -21761,7 +20734,7 @@ const Popover = ({
|
|
|
21761
20734
|
}
|
|
21762
20735
|
}, [disabled2, disabledContext]);
|
|
21763
20736
|
const { renderLayer, arrowProps, layerProps, triggerProps } = useLayer({
|
|
21764
|
-
isOpen
|
|
20737
|
+
isOpen,
|
|
21765
20738
|
placement,
|
|
21766
20739
|
auto: true,
|
|
21767
20740
|
triggerOffset: 6,
|
|
@@ -21771,7 +20744,7 @@ const Popover = ({
|
|
|
21771
20744
|
});
|
|
21772
20745
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
21773
20746
|
/* @__PURE__ */ jsx("div", { ref: triggerProps.ref, onClick: toggle2, "data-testid": testId, children }),
|
|
21774
|
-
|
|
20747
|
+
isOpen && renderLayer(
|
|
21775
20748
|
/* @__PURE__ */ jsxs(
|
|
21776
20749
|
"div",
|
|
21777
20750
|
{
|
|
@@ -22048,11 +21021,11 @@ var makeError = { exports: {} };
|
|
|
22048
21021
|
});
|
|
22049
21022
|
};
|
|
22050
21023
|
}
|
|
22051
|
-
function BaseError(
|
|
22052
|
-
if (
|
|
21024
|
+
function BaseError(message) {
|
|
21025
|
+
if (message !== void 0) {
|
|
22053
21026
|
defineProperty2(this, "message", {
|
|
22054
21027
|
configurable: true,
|
|
22055
|
-
value:
|
|
21028
|
+
value: message,
|
|
22056
21029
|
writable: true
|
|
22057
21030
|
});
|
|
22058
21031
|
}
|
|
@@ -22708,14 +21681,14 @@ function debounce$1(delay, atBegin, callback) {
|
|
|
22708
21681
|
function Cast(value) {
|
|
22709
21682
|
return value;
|
|
22710
21683
|
}
|
|
22711
|
-
function assertGet(value, key2,
|
|
21684
|
+
function assertGet(value, key2, message) {
|
|
22712
21685
|
const prop = value[key2];
|
|
22713
|
-
assert(!isUndefined(prop),
|
|
21686
|
+
assert(!isUndefined(prop), message);
|
|
22714
21687
|
return prop;
|
|
22715
21688
|
}
|
|
22716
|
-
function assert(testValue,
|
|
21689
|
+
function assert(testValue, message) {
|
|
22717
21690
|
if (!testValue) {
|
|
22718
|
-
throw new AssertionError(
|
|
21691
|
+
throw new AssertionError(message);
|
|
22719
21692
|
}
|
|
22720
21693
|
}
|
|
22721
21694
|
var AssertionError = class extends makeErrorExports.BaseError {
|
|
@@ -22990,8 +21963,8 @@ function isErrorConstant(code) {
|
|
|
22990
21963
|
return isString$2(code) && includes(values(ErrorConstant), code);
|
|
22991
21964
|
}
|
|
22992
21965
|
function createErrorMessage(code, extraMessage) {
|
|
22993
|
-
const
|
|
22994
|
-
const prefix2 =
|
|
21966
|
+
const message = errorMessageMap[code];
|
|
21967
|
+
const prefix2 = message ? `${message}
|
|
22995
21968
|
|
|
22996
21969
|
` : "";
|
|
22997
21970
|
const customMessage = extraMessage ? `${extraMessage}
|
|
@@ -23003,9 +21976,9 @@ var RemirrorError = class extends makeErrorExports.BaseError {
|
|
|
23003
21976
|
/**
|
|
23004
21977
|
* The constructor is intentionally kept private to prevent being extended from.
|
|
23005
21978
|
*/
|
|
23006
|
-
constructor({ code, message
|
|
21979
|
+
constructor({ code, message, disableLogging = false } = {}) {
|
|
23007
21980
|
const errorCode = isErrorConstant(code) ? code : ErrorConstant.CUSTOM;
|
|
23008
|
-
super(createErrorMessage(errorCode,
|
|
21981
|
+
super(createErrorMessage(errorCode, message));
|
|
23009
21982
|
this.errorCode = errorCode;
|
|
23010
21983
|
this.url = `${ERROR_INFORMATION_URL}#${errorCode.toLowerCase()}`;
|
|
23011
21984
|
if (!disableLogging) {
|
|
@@ -25726,16 +24699,16 @@ class NodeContext {
|
|
|
25726
24699
|
}
|
|
25727
24700
|
}
|
|
25728
24701
|
class ParseContext {
|
|
25729
|
-
constructor(parser2, options,
|
|
24702
|
+
constructor(parser2, options, isOpen) {
|
|
25730
24703
|
this.parser = parser2;
|
|
25731
24704
|
this.options = options;
|
|
25732
|
-
this.isOpen =
|
|
24705
|
+
this.isOpen = isOpen;
|
|
25733
24706
|
this.open = 0;
|
|
25734
24707
|
let topNode = options.topNode, topContext;
|
|
25735
|
-
let topOptions = wsOptionsFor(null, options.preserveWhitespace, 0) | (
|
|
24708
|
+
let topOptions = wsOptionsFor(null, options.preserveWhitespace, 0) | (isOpen ? OPT_OPEN_LEFT : 0);
|
|
25736
24709
|
if (topNode)
|
|
25737
24710
|
topContext = new NodeContext(topNode.type, topNode.attrs, Mark$1.none, true, options.topMatch || topNode.type.contentMatch, topOptions);
|
|
25738
|
-
else if (
|
|
24711
|
+
else if (isOpen)
|
|
25739
24712
|
topContext = new NodeContext(null, null, Mark$1.none, true, null, topOptions);
|
|
25740
24713
|
else
|
|
25741
24714
|
topContext = new NodeContext(parser2.schema.topNodeType, null, Mark$1.none, true, null, topOptions);
|
|
@@ -26677,8 +25650,8 @@ class StepResult {
|
|
|
26677
25650
|
/**
|
|
26678
25651
|
Create a failed step result.
|
|
26679
25652
|
*/
|
|
26680
|
-
static fail(
|
|
26681
|
-
return new StepResult(null,
|
|
25653
|
+
static fail(message) {
|
|
25654
|
+
return new StepResult(null, message);
|
|
26682
25655
|
}
|
|
26683
25656
|
/**
|
|
26684
25657
|
Call [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) with the given
|
|
@@ -27824,8 +26797,8 @@ class DocAttrStep extends Step {
|
|
|
27824
26797
|
Step.jsonID("docAttr", DocAttrStep);
|
|
27825
26798
|
let TransformError = class extends Error {
|
|
27826
26799
|
};
|
|
27827
|
-
TransformError = function TransformError2(
|
|
27828
|
-
let err = Error.call(this,
|
|
26800
|
+
TransformError = function TransformError2(message) {
|
|
26801
|
+
let err = Error.call(this, message);
|
|
27829
26802
|
err.__proto__ = TransformError2.prototype;
|
|
27830
26803
|
return err;
|
|
27831
26804
|
};
|
|
@@ -32225,10 +31198,10 @@ editHandlers.keydown = (view, _event) => {
|
|
|
32225
31198
|
if (event.keyCode != 229)
|
|
32226
31199
|
view.domObserver.forceFlush();
|
|
32227
31200
|
if (ios && event.keyCode == 13 && !event.ctrlKey && !event.altKey && !event.metaKey) {
|
|
32228
|
-
let
|
|
32229
|
-
view.input.lastIOSEnter =
|
|
31201
|
+
let now = Date.now();
|
|
31202
|
+
view.input.lastIOSEnter = now;
|
|
32230
31203
|
view.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
32231
|
-
if (view.input.lastIOSEnter ==
|
|
31204
|
+
if (view.input.lastIOSEnter == now) {
|
|
32232
31205
|
view.someProp("handleKeyDown", (f2) => f2(view, keyEvent(13, "Enter")));
|
|
32233
31206
|
view.input.lastIOSEnter = 0;
|
|
32234
31207
|
}
|
|
@@ -32358,14 +31331,14 @@ handlers.mousedown = (view, _event) => {
|
|
|
32358
31331
|
let event = _event;
|
|
32359
31332
|
view.input.shiftKey = event.shiftKey;
|
|
32360
31333
|
let flushed = forceDOMFlush(view);
|
|
32361
|
-
let
|
|
32362
|
-
if (
|
|
31334
|
+
let now = Date.now(), type = "singleClick";
|
|
31335
|
+
if (now - view.input.lastClick.time < 500 && isNear$1(event, view.input.lastClick) && !event[selectNodeModifier]) {
|
|
32363
31336
|
if (view.input.lastClick.type == "singleClick")
|
|
32364
31337
|
type = "doubleClick";
|
|
32365
31338
|
else if (view.input.lastClick.type == "doubleClick")
|
|
32366
31339
|
type = "tripleClick";
|
|
32367
31340
|
}
|
|
32368
|
-
view.input.lastClick = { time:
|
|
31341
|
+
view.input.lastClick = { time: now, x: event.clientX, y: event.clientY, type };
|
|
32369
31342
|
let pos = view.posAtCoords(eventCoords(event));
|
|
32370
31343
|
if (!pos)
|
|
32371
31344
|
return;
|
|
@@ -50335,7 +49308,7 @@ var moo = { exports: {} };
|
|
|
50335
49308
|
return new LexerIterator(this);
|
|
50336
49309
|
};
|
|
50337
49310
|
}
|
|
50338
|
-
Lexer2.prototype.formatError = function(token2,
|
|
49311
|
+
Lexer2.prototype.formatError = function(token2, message) {
|
|
50339
49312
|
if (token2 == null) {
|
|
50340
49313
|
var text2 = this.buffer.slice(this.index);
|
|
50341
49314
|
var token2 = {
|
|
@@ -50355,7 +49328,7 @@ var moo = { exports: {} };
|
|
|
50355
49328
|
this.line - token2.line + numLinesAround + 1
|
|
50356
49329
|
).slice(0, 5);
|
|
50357
49330
|
var errorLines = [];
|
|
50358
|
-
errorLines.push(
|
|
49331
|
+
errorLines.push(message + " at line " + token2.line + " col " + token2.col + ":");
|
|
50359
49332
|
errorLines.push("");
|
|
50360
49333
|
for (var i = 0; i < displayedLines.length; i++) {
|
|
50361
49334
|
var line2 = displayedLines[i];
|
|
@@ -50690,14 +49663,14 @@ function processTokens(tokens, mapText) {
|
|
|
50690
49663
|
];
|
|
50691
49664
|
});
|
|
50692
49665
|
}
|
|
50693
|
-
function compileMessage(
|
|
49666
|
+
function compileMessage(message, mapText = (v2) => v2) {
|
|
50694
49667
|
try {
|
|
50695
|
-
return processTokens(parse_1(
|
|
49668
|
+
return processTokens(parse_1(message), mapText);
|
|
50696
49669
|
} catch (e2) {
|
|
50697
49670
|
console.error(`${e2.message}
|
|
50698
49671
|
|
|
50699
|
-
Message: ${
|
|
50700
|
-
return
|
|
49672
|
+
Message: ${message}`);
|
|
49673
|
+
return message;
|
|
50701
49674
|
}
|
|
50702
49675
|
}
|
|
50703
49676
|
const isString$1 = (s) => typeof s === "string";
|
|
@@ -50755,21 +49728,21 @@ const getDefaultFormats = (locale, passedLocales, formats = {}) => {
|
|
|
50755
49728
|
const style2 = (format) => {
|
|
50756
49729
|
return typeof format === "object" ? format : formats[format] || { style: format };
|
|
50757
49730
|
};
|
|
50758
|
-
const replaceOctothorpe = (value,
|
|
49731
|
+
const replaceOctothorpe = (value, message) => {
|
|
50759
49732
|
const numberFormat = Object.keys(formats).length ? style2("number") : void 0;
|
|
50760
49733
|
const valueStr = number$1(locales, value, numberFormat);
|
|
50761
|
-
return
|
|
49734
|
+
return message.replace(new RegExp(OCTOTHORPE_PH, "g"), valueStr);
|
|
50762
49735
|
};
|
|
50763
49736
|
return {
|
|
50764
49737
|
plural: (value, cases) => {
|
|
50765
49738
|
const { offset: offset3 = 0 } = cases;
|
|
50766
|
-
const
|
|
50767
|
-
return replaceOctothorpe(value - offset3,
|
|
49739
|
+
const message = plural(locales, false, value, cases);
|
|
49740
|
+
return replaceOctothorpe(value - offset3, message);
|
|
50768
49741
|
},
|
|
50769
49742
|
selectordinal: (value, cases) => {
|
|
50770
49743
|
const { offset: offset3 = 0 } = cases;
|
|
50771
|
-
const
|
|
50772
|
-
return replaceOctothorpe(value - offset3,
|
|
49744
|
+
const message = plural(locales, true, value, cases);
|
|
49745
|
+
return replaceOctothorpe(value - offset3, message);
|
|
50773
49746
|
},
|
|
50774
49747
|
select: selectFormatter,
|
|
50775
49748
|
number: (value, format) => number$1(locales, value, style2(format)),
|
|
@@ -50783,12 +49756,12 @@ function interpolate$1(translation, locale, locales) {
|
|
|
50783
49756
|
const formatMessage = (tokens, replaceOctothorpe = false) => {
|
|
50784
49757
|
if (!Array.isArray(tokens))
|
|
50785
49758
|
return tokens;
|
|
50786
|
-
return tokens.reduce((
|
|
49759
|
+
return tokens.reduce((message, token2) => {
|
|
50787
49760
|
if (token2 === "#" && replaceOctothorpe) {
|
|
50788
|
-
return
|
|
49761
|
+
return message + OCTOTHORPE_PH;
|
|
50789
49762
|
}
|
|
50790
49763
|
if (isString$1(token2)) {
|
|
50791
|
-
return
|
|
49764
|
+
return message + token2;
|
|
50792
49765
|
}
|
|
50793
49766
|
const [name2, type, format] = token2;
|
|
50794
49767
|
let interpolatedFormat = {};
|
|
@@ -50812,9 +49785,9 @@ function interpolate$1(translation, locale, locales) {
|
|
|
50812
49785
|
value = values2[name2];
|
|
50813
49786
|
}
|
|
50814
49787
|
if (value == null) {
|
|
50815
|
-
return
|
|
49788
|
+
return message;
|
|
50816
49789
|
}
|
|
50817
|
-
return
|
|
49790
|
+
return message + value;
|
|
50818
49791
|
}, "");
|
|
50819
49792
|
};
|
|
50820
49793
|
const result = formatMessage(translation);
|
|
@@ -50961,13 +49934,13 @@ class I18n extends EventEmitter {
|
|
|
50961
49934
|
this.emit("change");
|
|
50962
49935
|
}
|
|
50963
49936
|
_(id2, values2, options) {
|
|
50964
|
-
let
|
|
49937
|
+
let message = options == null ? void 0 : options.message;
|
|
50965
49938
|
if (!id2) {
|
|
50966
49939
|
id2 = "";
|
|
50967
49940
|
}
|
|
50968
49941
|
if (!isString$1(id2)) {
|
|
50969
49942
|
values2 = id2.values || values2;
|
|
50970
|
-
|
|
49943
|
+
message = id2.message;
|
|
50971
49944
|
id2 = id2.id;
|
|
50972
49945
|
}
|
|
50973
49946
|
const messageForId = this.messages[id2];
|
|
@@ -50979,7 +49952,7 @@ class I18n extends EventEmitter {
|
|
|
50979
49952
|
if (messageMissing) {
|
|
50980
49953
|
this.emit("missing", { id: id2, locale: this._locale });
|
|
50981
49954
|
}
|
|
50982
|
-
let translation = messageForId ||
|
|
49955
|
+
let translation = messageForId || message || id2;
|
|
50983
49956
|
if (process.env.NODE_ENV !== "production") {
|
|
50984
49957
|
translation = isString$1(translation) ? compileMessage(translation) : translation;
|
|
50985
49958
|
}
|
|
@@ -52497,13 +51470,13 @@ const styles$d = {
|
|
|
52497
51470
|
icon: icon$1
|
|
52498
51471
|
};
|
|
52499
51472
|
const TooltipIcon = memo(
|
|
52500
|
-
({ isOpen
|
|
51473
|
+
({ isOpen, label: label2, icon: icon2, invalid }) => {
|
|
52501
51474
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
52502
51475
|
/* @__PURE__ */ jsx(
|
|
52503
51476
|
Tooltip,
|
|
52504
51477
|
{
|
|
52505
51478
|
text: label2,
|
|
52506
|
-
enabled: !
|
|
51479
|
+
enabled: !isOpen,
|
|
52507
51480
|
placement: "right-center",
|
|
52508
51481
|
possiblePlacements: ["right-center"],
|
|
52509
51482
|
fontSize: 16,
|
|
@@ -52518,7 +51491,7 @@ const TooltipIcon = memo(
|
|
|
52518
51491
|
(prevProps, nextProps) => isEqual$1(prevProps, nextProps)
|
|
52519
51492
|
);
|
|
52520
51493
|
const Link$1 = ({
|
|
52521
|
-
isOpen
|
|
51494
|
+
isOpen,
|
|
52522
51495
|
items,
|
|
52523
51496
|
sectionIndex,
|
|
52524
51497
|
onClick,
|
|
@@ -52543,7 +51516,7 @@ const Link$1 = ({
|
|
|
52543
51516
|
label: link2.label,
|
|
52544
51517
|
icon: link2.icon,
|
|
52545
51518
|
invalid: link2.invalid,
|
|
52546
|
-
isOpen
|
|
51519
|
+
isOpen
|
|
52547
51520
|
},
|
|
52548
51521
|
key2
|
|
52549
51522
|
)
|
|
@@ -52553,7 +51526,7 @@ const Link$1 = ({
|
|
|
52553
51526
|
}) });
|
|
52554
51527
|
};
|
|
52555
51528
|
const Sections = ({
|
|
52556
|
-
isOpen
|
|
51529
|
+
isOpen,
|
|
52557
51530
|
sections,
|
|
52558
51531
|
onClick
|
|
52559
51532
|
}) => {
|
|
@@ -52562,7 +51535,7 @@ const Sections = ({
|
|
|
52562
51535
|
/* @__PURE__ */ jsx(
|
|
52563
51536
|
Link$1,
|
|
52564
51537
|
{
|
|
52565
|
-
isOpen
|
|
51538
|
+
isOpen,
|
|
52566
51539
|
items: section2.items,
|
|
52567
51540
|
sectionIndex: i,
|
|
52568
51541
|
onClick,
|
|
@@ -52579,7 +51552,7 @@ const SideBar = memo(
|
|
|
52579
51552
|
},
|
|
52580
51553
|
top: top2
|
|
52581
51554
|
}) => {
|
|
52582
|
-
const [
|
|
51555
|
+
const [isOpen, setIsOpen] = useState(startOpen);
|
|
52583
51556
|
const onClick = (evt, value, label2, clickHandler) => {
|
|
52584
51557
|
evt.preventDefault();
|
|
52585
51558
|
if (typeof clickHandler === "function") {
|
|
@@ -52594,7 +51567,7 @@ const SideBar = memo(
|
|
|
52594
51567
|
Drawer,
|
|
52595
51568
|
{
|
|
52596
51569
|
fixed: true,
|
|
52597
|
-
open:
|
|
51570
|
+
open: isOpen,
|
|
52598
51571
|
top: top2,
|
|
52599
51572
|
background: "var(--color-background-sidebar)",
|
|
52600
51573
|
closedWidth: "var(--size-sidebar)",
|
|
@@ -52607,19 +51580,19 @@ const SideBar = memo(
|
|
|
52607
51580
|
if (evt.shiftKey && onShiftClickToggleOpen) {
|
|
52608
51581
|
onShiftClickToggleOpen(evt);
|
|
52609
51582
|
}
|
|
52610
|
-
setIsOpen(!
|
|
51583
|
+
setIsOpen(!isOpen);
|
|
52611
51584
|
},
|
|
52612
51585
|
colored: true,
|
|
52613
51586
|
round: true,
|
|
52614
51587
|
icon: IconType.LEFT
|
|
52615
51588
|
}
|
|
52616
51589
|
),
|
|
52617
|
-
children: /* @__PURE__ */ jsx("div", { className: cx$2(styles$d.sidebar, !
|
|
51590
|
+
children: /* @__PURE__ */ jsx("div", { className: cx$2(styles$d.sidebar, !isOpen ? styles$d.collapsed : ""), children: visible && /* @__PURE__ */ jsxs("div", { className: styles$d.inner, children: [
|
|
52618
51591
|
/* @__PURE__ */ jsx("h4", { className: styles$d.title, children: options.title }),
|
|
52619
51592
|
/* @__PURE__ */ jsx(
|
|
52620
51593
|
Sections,
|
|
52621
51594
|
{
|
|
52622
|
-
isOpen
|
|
51595
|
+
isOpen,
|
|
52623
51596
|
sections: options.sections,
|
|
52624
51597
|
onClick
|
|
52625
51598
|
}
|
|
@@ -52689,21 +51662,21 @@ var preWarningFns = [];
|
|
|
52689
51662
|
var preMessage = function preMessage2(fn) {
|
|
52690
51663
|
preWarningFns.push(fn);
|
|
52691
51664
|
};
|
|
52692
|
-
function warning$1(valid,
|
|
51665
|
+
function warning$1(valid, message) {
|
|
52693
51666
|
if (process.env.NODE_ENV !== "production" && !valid && console !== void 0) {
|
|
52694
51667
|
var finalMessage = preWarningFns.reduce(function(msg2, preMessageFn) {
|
|
52695
51668
|
return preMessageFn(msg2 !== null && msg2 !== void 0 ? msg2 : "", "warning");
|
|
52696
|
-
},
|
|
51669
|
+
}, message);
|
|
52697
51670
|
if (finalMessage) {
|
|
52698
51671
|
console.error("Warning: ".concat(finalMessage));
|
|
52699
51672
|
}
|
|
52700
51673
|
}
|
|
52701
51674
|
}
|
|
52702
|
-
function note(valid,
|
|
51675
|
+
function note(valid, message) {
|
|
52703
51676
|
if (process.env.NODE_ENV !== "production" && !valid && console !== void 0) {
|
|
52704
51677
|
var finalMessage = preWarningFns.reduce(function(msg2, preMessageFn) {
|
|
52705
51678
|
return preMessageFn(msg2 !== null && msg2 !== void 0 ? msg2 : "", "note");
|
|
52706
|
-
},
|
|
51679
|
+
}, message);
|
|
52707
51680
|
if (finalMessage) {
|
|
52708
51681
|
console.warn("Note: ".concat(finalMessage));
|
|
52709
51682
|
}
|
|
@@ -52712,17 +51685,17 @@ function note(valid, message2) {
|
|
|
52712
51685
|
function resetWarned() {
|
|
52713
51686
|
warned$1 = {};
|
|
52714
51687
|
}
|
|
52715
|
-
function call(method, valid,
|
|
52716
|
-
if (!valid && !warned$1[
|
|
52717
|
-
method(false,
|
|
52718
|
-
warned$1[
|
|
51688
|
+
function call(method, valid, message) {
|
|
51689
|
+
if (!valid && !warned$1[message]) {
|
|
51690
|
+
method(false, message);
|
|
51691
|
+
warned$1[message] = true;
|
|
52719
51692
|
}
|
|
52720
51693
|
}
|
|
52721
|
-
function warningOnce(valid,
|
|
52722
|
-
call(warning$1, valid,
|
|
51694
|
+
function warningOnce(valid, message) {
|
|
51695
|
+
call(warning$1, valid, message);
|
|
52723
51696
|
}
|
|
52724
|
-
function noteOnce(valid,
|
|
52725
|
-
call(note, valid,
|
|
51697
|
+
function noteOnce(valid, message) {
|
|
51698
|
+
call(note, valid, message);
|
|
52726
51699
|
}
|
|
52727
51700
|
warningOnce.preMessage = preMessage;
|
|
52728
51701
|
warningOnce.resetWarned = resetWarned;
|
|
@@ -55220,7 +54193,7 @@ const Title$1 = ({
|
|
|
55220
54193
|
return /* @__PURE__ */ jsx("div", { children: actionsComponent });
|
|
55221
54194
|
};
|
|
55222
54195
|
return /* @__PURE__ */ jsxs("div", { className: styles$a.title, children: [
|
|
55223
|
-
isNameDefined ? /* @__PURE__ */ jsx(Heading$
|
|
54196
|
+
isNameDefined ? /* @__PURE__ */ jsx(Heading$1, { children: /* @__PURE__ */ jsx("span", { "data-testid": testId, children: name2 }) }) : null,
|
|
55224
54197
|
actionsContainer()
|
|
55225
54198
|
] });
|
|
55226
54199
|
};
|
|
@@ -55440,7 +54413,7 @@ const InputCell = ({
|
|
|
55440
54413
|
type
|
|
55441
54414
|
}) => {
|
|
55442
54415
|
return /* @__PURE__ */ jsx(
|
|
55443
|
-
Input
|
|
54416
|
+
Input,
|
|
55444
54417
|
{
|
|
55445
54418
|
name: cell2.name,
|
|
55446
54419
|
value: cell2.value,
|
|
@@ -55785,7 +54758,7 @@ const NumberInput = ({
|
|
|
55785
54758
|
handleKeys: [EventKey.ENTER],
|
|
55786
54759
|
onKeyEvent: (_key, evt) => onChangeValue(evt),
|
|
55787
54760
|
children: /* @__PURE__ */ jsx(
|
|
55788
|
-
Input
|
|
54761
|
+
Input,
|
|
55789
54762
|
{
|
|
55790
54763
|
type: "text",
|
|
55791
54764
|
name: stringName,
|
|
@@ -57852,11 +56825,11 @@ eventManager.on(
|
|
|
57852
56825
|
);
|
|
57853
56826
|
const toast = ({
|
|
57854
56827
|
id: id2,
|
|
57855
|
-
message
|
|
56828
|
+
message = { type: MessageType.INFO, content: "" },
|
|
57856
56829
|
autoClose = 6e3,
|
|
57857
56830
|
onClose
|
|
57858
56831
|
}) => {
|
|
57859
|
-
const { type = MessageType.INFO } =
|
|
56832
|
+
const { type = MessageType.INFO } = message ?? {};
|
|
57860
56833
|
const CloseButton2 = ({
|
|
57861
56834
|
closeToast
|
|
57862
56835
|
}) => /* @__PURE__ */ jsx(
|
|
@@ -57872,7 +56845,7 @@ const toast = ({
|
|
|
57872
56845
|
Message,
|
|
57873
56846
|
{
|
|
57874
56847
|
message: {
|
|
57875
|
-
...
|
|
56848
|
+
...message,
|
|
57876
56849
|
visible: true,
|
|
57877
56850
|
width: "100%",
|
|
57878
56851
|
maxHeight: "500px",
|
|
@@ -57881,7 +56854,7 @@ const toast = ({
|
|
|
57881
56854
|
}
|
|
57882
56855
|
);
|
|
57883
56856
|
const toastType = (() => {
|
|
57884
|
-
switch (
|
|
56857
|
+
switch (message == null ? void 0 : message.type) {
|
|
57885
56858
|
case MessageType.SUCCESS:
|
|
57886
56859
|
return toast$1.TYPE.SUCCESS;
|
|
57887
56860
|
case MessageType.WARNING:
|
|
@@ -61794,14 +60767,14 @@ var warning = function() {
|
|
|
61794
60767
|
var invariant = function() {
|
|
61795
60768
|
};
|
|
61796
60769
|
if (process.env.NODE_ENV !== "production") {
|
|
61797
|
-
warning = function(check2,
|
|
60770
|
+
warning = function(check2, message) {
|
|
61798
60771
|
if (!check2 && typeof console !== "undefined") {
|
|
61799
|
-
console.warn(
|
|
60772
|
+
console.warn(message);
|
|
61800
60773
|
}
|
|
61801
60774
|
};
|
|
61802
|
-
invariant = function(check2,
|
|
60775
|
+
invariant = function(check2, message) {
|
|
61803
60776
|
if (!check2) {
|
|
61804
|
-
throw new Error(
|
|
60777
|
+
throw new Error(message);
|
|
61805
60778
|
}
|
|
61806
60779
|
};
|
|
61807
60780
|
}
|
|
@@ -63978,11 +62951,11 @@ function useTapGesture(_a2) {
|
|
|
63978
62951
|
useUnmountEffect(removePointerEndListener);
|
|
63979
62952
|
}
|
|
63980
62953
|
var warned = /* @__PURE__ */ new Set();
|
|
63981
|
-
function warnOnce(condition,
|
|
63982
|
-
if (condition || warned.has(
|
|
62954
|
+
function warnOnce(condition, message, element) {
|
|
62955
|
+
if (condition || warned.has(message))
|
|
63983
62956
|
return;
|
|
63984
|
-
console.warn(
|
|
63985
|
-
warned.add(
|
|
62957
|
+
console.warn(message);
|
|
62958
|
+
warned.add(message);
|
|
63986
62959
|
}
|
|
63987
62960
|
var observerCallbacks = /* @__PURE__ */ new WeakMap();
|
|
63988
62961
|
var observers = /* @__PURE__ */ new WeakMap();
|
|
@@ -69904,7 +68877,7 @@ const styles$1 = {
|
|
|
69904
68877
|
const TreeItem = ({
|
|
69905
68878
|
node: node2,
|
|
69906
68879
|
depth,
|
|
69907
|
-
isOpen
|
|
68880
|
+
isOpen,
|
|
69908
68881
|
onToggle,
|
|
69909
68882
|
hasChild,
|
|
69910
68883
|
draggable: draggable2,
|
|
@@ -69937,7 +68910,7 @@ const TreeItem = ({
|
|
|
69937
68910
|
const handleDragOver = (event) => {
|
|
69938
68911
|
event.preventDefault();
|
|
69939
68912
|
event.stopPropagation();
|
|
69940
|
-
if (hasChild && !
|
|
68913
|
+
if (hasChild && !isOpen && (/* @__PURE__ */ new Date()).getTime() - dragOverStartTime > 200) {
|
|
69941
68914
|
handleToggle(event);
|
|
69942
68915
|
}
|
|
69943
68916
|
};
|
|
@@ -69985,10 +68958,10 @@ const TreeItem = ({
|
|
|
69985
68958
|
Button$1,
|
|
69986
68959
|
{
|
|
69987
68960
|
basic: true,
|
|
69988
|
-
colored:
|
|
68961
|
+
colored: isOpen ? true : Color.MUTED,
|
|
69989
68962
|
small: true,
|
|
69990
68963
|
round: true,
|
|
69991
|
-
icon:
|
|
68964
|
+
icon: isOpen ? (icons2 == null ? void 0 : icons2.collapse) || IconType.COLLAPSE : (icons2 == null ? void 0 : icons2.expand) || IconType.EXPAND,
|
|
69992
68965
|
onClick: handleToggle
|
|
69993
68966
|
}
|
|
69994
68967
|
) }),
|
|
@@ -70116,7 +69089,7 @@ const Tree = ({
|
|
|
70116
69089
|
}
|
|
70117
69090
|
},
|
|
70118
69091
|
rootId: 0,
|
|
70119
|
-
render: (node2, { depth, isOpen
|
|
69092
|
+
render: (node2, { depth, isOpen, onToggle, hasChild }) => {
|
|
70120
69093
|
var _a3;
|
|
70121
69094
|
return /* @__PURE__ */ jsx(
|
|
70122
69095
|
TreeItem,
|
|
@@ -70124,9 +69097,9 @@ const Tree = ({
|
|
|
70124
69097
|
hasChild: itemHasChild ? itemHasChild(node2) : hasChild,
|
|
70125
69098
|
node: node2,
|
|
70126
69099
|
depth,
|
|
70127
|
-
isOpen
|
|
69100
|
+
isOpen,
|
|
70128
69101
|
onToggle: () => {
|
|
70129
|
-
onItemToggle == null ? void 0 : onItemToggle(node2, !
|
|
69102
|
+
onItemToggle == null ? void 0 : onItemToggle(node2, !isOpen);
|
|
70130
69103
|
onToggle();
|
|
70131
69104
|
},
|
|
70132
69105
|
draggable: draggable2,
|
|
@@ -70475,7 +69448,7 @@ const UnitInput = ({
|
|
|
70475
69448
|
}
|
|
70476
69449
|
}, [initDisplayUnit, value, error2, shouldLinkAutomaticly]);
|
|
70477
69450
|
const alternativeUnits = getAlternativeUnits();
|
|
70478
|
-
const displayUnitLabel = label$
|
|
69451
|
+
const displayUnitLabel = label$9(displayLayer.unit) || displayLayer.unit || "";
|
|
70479
69452
|
const noConvert = noConversion || !alternativeUnits || alternativeUnits && alternativeUnits.length === 1;
|
|
70480
69453
|
const stringName = getStringName(name2);
|
|
70481
69454
|
let sectionsPredefinedMenu;
|
|
@@ -70666,7 +69639,7 @@ const convertVisibleRows = ({
|
|
|
70666
69639
|
type: CellType.SELECT,
|
|
70667
69640
|
searchable: false,
|
|
70668
69641
|
options: (_a2 = getUnitsForQuantity(unitKey)) == null ? void 0 : _a2.map((unit2) => ({
|
|
70669
|
-
label: label$
|
|
69642
|
+
label: label$9(unit2),
|
|
70670
69643
|
value: unit2
|
|
70671
69644
|
})),
|
|
70672
69645
|
native: headerCell.native,
|
|
@@ -70978,11 +69951,11 @@ export {
|
|
|
70978
69951
|
FormRow,
|
|
70979
69952
|
Grid,
|
|
70980
69953
|
GroupOrder,
|
|
70981
|
-
Heading$
|
|
69954
|
+
Heading$1 as Heading,
|
|
70982
69955
|
HelpIcon,
|
|
70983
69956
|
Icon,
|
|
70984
69957
|
IconType,
|
|
70985
|
-
Input
|
|
69958
|
+
Input,
|
|
70986
69959
|
InputGroup,
|
|
70987
69960
|
InputGroupAddon,
|
|
70988
69961
|
InputReaderMethods,
|