@oliasoft-open-source/react-ui-library 4.15.2-beta-1 → 4.15.2-beta-3
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 +613 -2028
- 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() {
|
|
@@ -2173,7 +2173,7 @@ var ResizeObserverSPI = (
|
|
|
2173
2173
|
}()
|
|
2174
2174
|
);
|
|
2175
2175
|
var observers$1 = typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : new MapShim();
|
|
2176
|
-
var ResizeObserver$
|
|
2176
|
+
var ResizeObserver$1 = (
|
|
2177
2177
|
/** @class */
|
|
2178
2178
|
/* @__PURE__ */ function() {
|
|
2179
2179
|
function ResizeObserver2(callback) {
|
|
@@ -2195,7 +2195,7 @@ var ResizeObserver$2 = (
|
|
|
2195
2195
|
"unobserve",
|
|
2196
2196
|
"disconnect"
|
|
2197
2197
|
].forEach(function(method) {
|
|
2198
|
-
ResizeObserver$
|
|
2198
|
+
ResizeObserver$1.prototype[method] = function() {
|
|
2199
2199
|
var _a2;
|
|
2200
2200
|
return (_a2 = observers$1.get(this))[method].apply(_a2, arguments);
|
|
2201
2201
|
};
|
|
@@ -2204,15 +2204,15 @@ var index = function() {
|
|
|
2204
2204
|
if (typeof global$1$1.ResizeObserver !== "undefined") {
|
|
2205
2205
|
return global$1$1.ResizeObserver;
|
|
2206
2206
|
}
|
|
2207
|
-
return ResizeObserver$
|
|
2207
|
+
return ResizeObserver$1;
|
|
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,
|
|
@@ -4487,7 +4487,7 @@ const Layer$2 = ({
|
|
|
4487
4487
|
}
|
|
4488
4488
|
);
|
|
4489
4489
|
};
|
|
4490
|
-
const placementOptions
|
|
4490
|
+
const placementOptions = (placement, isNested = false) => ({
|
|
4491
4491
|
auto: true,
|
|
4492
4492
|
preferX: "right",
|
|
4493
4493
|
preferY: "bottom",
|
|
@@ -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,19 +4763,19 @@ 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
|
-
...placementOptions
|
|
4770
|
+
...placementOptions(placement),
|
|
4771
4771
|
possiblePlacements,
|
|
4772
4772
|
ResizeObserver: index,
|
|
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,12 +4887,12 @@ 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
|
|
4895
|
-
...placementOptions
|
|
4894
|
+
isOpen,
|
|
4895
|
+
...placementOptions(placement, isNested),
|
|
4896
4896
|
possiblePlacements,
|
|
4897
4897
|
ResizeObserver: index,
|
|
4898
4898
|
onOutsideClick: close2,
|
|
@@ -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";
|
|
@@ -9551,7 +9551,7 @@ var $$observable = function() {
|
|
|
9551
9551
|
var randomString = function randomString2() {
|
|
9552
9552
|
return Math.random().toString(36).substring(7).split("").join(".");
|
|
9553
9553
|
};
|
|
9554
|
-
var ActionTypes
|
|
9554
|
+
var ActionTypes = {
|
|
9555
9555
|
INIT: "@@redux/INIT" + randomString(),
|
|
9556
9556
|
REPLACE: "@@redux/REPLACE" + randomString(),
|
|
9557
9557
|
PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {
|
|
@@ -9698,7 +9698,7 @@ function createStore$1(reducer2, preloadedState, enhancer) {
|
|
|
9698
9698
|
}
|
|
9699
9699
|
currentReducer = nextReducer;
|
|
9700
9700
|
dispatch({
|
|
9701
|
-
type: ActionTypes
|
|
9701
|
+
type: ActionTypes.REPLACE
|
|
9702
9702
|
});
|
|
9703
9703
|
}
|
|
9704
9704
|
function observable() {
|
|
@@ -9733,7 +9733,7 @@ function createStore$1(reducer2, preloadedState, enhancer) {
|
|
|
9733
9733
|
}, _ref;
|
|
9734
9734
|
}
|
|
9735
9735
|
dispatch({
|
|
9736
|
-
type: ActionTypes
|
|
9736
|
+
type: ActionTypes.INIT
|
|
9737
9737
|
});
|
|
9738
9738
|
return _ref2 = {
|
|
9739
9739
|
dispatch,
|
|
@@ -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) => {
|
|
@@ -19572,7 +19572,7 @@ const OptionDropdown = ({
|
|
|
19572
19572
|
trigger: TriggerType.DROP_DOWN_BUTTON,
|
|
19573
19573
|
possiblePlacements: ["top-start", "bottom-start"],
|
|
19574
19574
|
sections: /* @__PURE__ */ jsx(
|
|
19575
|
-
Layer
|
|
19575
|
+
Layer,
|
|
19576
19576
|
{
|
|
19577
19577
|
options,
|
|
19578
19578
|
onChangeOptions: (evt, nextOptions) => {
|
|
@@ -19591,7 +19591,7 @@ const OptionDropdown = ({
|
|
|
19591
19591
|
};
|
|
19592
19592
|
const page = "_page_beskc_1";
|
|
19593
19593
|
const scroll$1 = "_scroll_beskc_23";
|
|
19594
|
-
const styles$
|
|
19594
|
+
const styles$n = {
|
|
19595
19595
|
page,
|
|
19596
19596
|
scroll: scroll$1
|
|
19597
19597
|
};
|
|
@@ -19606,43 +19606,43 @@ const Page = ({
|
|
|
19606
19606
|
return /* @__PURE__ */ jsx(
|
|
19607
19607
|
"div",
|
|
19608
19608
|
{
|
|
19609
|
-
className: cx$2(styles$
|
|
19609
|
+
className: cx$2(styles$n.page, scroll3 ? styles$n.scroll : ""),
|
|
19610
19610
|
style: { left: left2, padding: padding2, top: top2 },
|
|
19611
19611
|
children
|
|
19612
19612
|
}
|
|
19613
19613
|
);
|
|
19614
19614
|
};
|
|
19615
|
-
const inputInTable$
|
|
19616
|
-
const inputHover$
|
|
19617
|
-
const inputFocus$
|
|
19618
|
-
const inputError$
|
|
19619
|
-
const inputWarning$
|
|
19620
|
-
const inputDisabled$
|
|
19621
|
-
const hideScrollbars$
|
|
19615
|
+
const inputInTable$5 = "_inputInTable_sl2b5_1";
|
|
19616
|
+
const inputHover$5 = "_inputHover_sl2b5_13";
|
|
19617
|
+
const inputFocus$5 = "_inputFocus_sl2b5_18";
|
|
19618
|
+
const inputError$5 = "_inputError_sl2b5_25";
|
|
19619
|
+
const inputWarning$5 = "_inputWarning_sl2b5_26";
|
|
19620
|
+
const inputDisabled$5 = "_inputDisabled_sl2b5_61";
|
|
19621
|
+
const hideScrollbars$5 = "_hideScrollbars_sl2b5_67";
|
|
19622
19622
|
const select = "_select_sl2b5_77";
|
|
19623
|
-
const isInTable$
|
|
19623
|
+
const isInTable$1 = "_isInTable_sl2b5_121";
|
|
19624
19624
|
const unSelected = "_unSelected_sl2b5_133";
|
|
19625
|
-
const small$
|
|
19626
|
-
const right$
|
|
19627
|
-
const groupOrderFirst
|
|
19628
|
-
const groupOrderMiddle
|
|
19629
|
-
const groupOrderLast
|
|
19630
|
-
const styles$
|
|
19631
|
-
inputInTable: inputInTable$
|
|
19632
|
-
inputHover: inputHover$
|
|
19633
|
-
inputFocus: inputFocus$
|
|
19634
|
-
inputError: inputError$
|
|
19635
|
-
inputWarning: inputWarning$
|
|
19636
|
-
inputDisabled: inputDisabled$
|
|
19637
|
-
hideScrollbars: hideScrollbars$
|
|
19625
|
+
const small$4 = "_small_sl2b5_174";
|
|
19626
|
+
const right$2 = "_right_sl2b5_182";
|
|
19627
|
+
const groupOrderFirst = "_groupOrderFirst_sl2b5_193";
|
|
19628
|
+
const groupOrderMiddle = "_groupOrderMiddle_sl2b5_194";
|
|
19629
|
+
const groupOrderLast = "_groupOrderLast_sl2b5_198";
|
|
19630
|
+
const styles$m = {
|
|
19631
|
+
inputInTable: inputInTable$5,
|
|
19632
|
+
inputHover: inputHover$5,
|
|
19633
|
+
inputFocus: inputFocus$5,
|
|
19634
|
+
inputError: inputError$5,
|
|
19635
|
+
inputWarning: inputWarning$5,
|
|
19636
|
+
inputDisabled: inputDisabled$5,
|
|
19637
|
+
hideScrollbars: hideScrollbars$5,
|
|
19638
19638
|
select,
|
|
19639
|
-
isInTable: isInTable$
|
|
19639
|
+
isInTable: isInTable$1,
|
|
19640
19640
|
unSelected,
|
|
19641
|
-
small: small$
|
|
19642
|
-
right: right$
|
|
19643
|
-
groupOrderFirst
|
|
19644
|
-
groupOrderMiddle
|
|
19645
|
-
groupOrderLast
|
|
19641
|
+
small: small$4,
|
|
19642
|
+
right: right$2,
|
|
19643
|
+
groupOrderFirst,
|
|
19644
|
+
groupOrderMiddle,
|
|
19645
|
+
groupOrderLast
|
|
19646
19646
|
};
|
|
19647
19647
|
const NativeSelect = ({
|
|
19648
19648
|
disabled: disabled2 = false,
|
|
@@ -19710,11 +19710,11 @@ const NativeSelect = ({
|
|
|
19710
19710
|
if (groupOrder) {
|
|
19711
19711
|
switch (groupOrder) {
|
|
19712
19712
|
case GroupOrder.FIRST:
|
|
19713
|
-
return styles$
|
|
19713
|
+
return styles$m.groupOrderFirst;
|
|
19714
19714
|
case GroupOrder.LAST:
|
|
19715
|
-
return styles$
|
|
19715
|
+
return styles$m.groupOrderLast;
|
|
19716
19716
|
default:
|
|
19717
|
-
return styles$
|
|
19717
|
+
return styles$m.groupOrderMiddle;
|
|
19718
19718
|
}
|
|
19719
19719
|
}
|
|
19720
19720
|
return "";
|
|
@@ -19732,11 +19732,11 @@ const NativeSelect = ({
|
|
|
19732
19732
|
"select",
|
|
19733
19733
|
{
|
|
19734
19734
|
className: cx$2(
|
|
19735
|
-
styles$
|
|
19736
|
-
isUnselected ? styles$
|
|
19737
|
-
right2 ? styles$
|
|
19738
|
-
small2 ? styles$
|
|
19739
|
-
isInTable2 ? styles$
|
|
19735
|
+
styles$m.select,
|
|
19736
|
+
isUnselected ? styles$m.unSelected : "",
|
|
19737
|
+
right2 ? styles$m.right : "",
|
|
19738
|
+
small2 ? styles$m.small : "",
|
|
19739
|
+
isInTable2 ? styles$m.isInTable : "",
|
|
19740
19740
|
order2
|
|
19741
19741
|
),
|
|
19742
19742
|
style: {
|
|
@@ -19978,1047 +19978,6 @@ const useWindowWidth = () => {
|
|
|
19978
19978
|
}, []);
|
|
19979
19979
|
return width2;
|
|
19980
19980
|
};
|
|
19981
|
-
function _assertThisInitialized(e2) {
|
|
19982
|
-
if (void 0 === e2) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
19983
|
-
return e2;
|
|
19984
|
-
}
|
|
19985
|
-
var hasNativePerformanceNow = typeof performance === "object" && typeof performance.now === "function";
|
|
19986
|
-
var now = hasNativePerformanceNow ? function() {
|
|
19987
|
-
return performance.now();
|
|
19988
|
-
} : function() {
|
|
19989
|
-
return Date.now();
|
|
19990
|
-
};
|
|
19991
|
-
function cancelTimeout(timeoutID) {
|
|
19992
|
-
cancelAnimationFrame(timeoutID.id);
|
|
19993
|
-
}
|
|
19994
|
-
function requestTimeout(callback, delay) {
|
|
19995
|
-
var start3 = now();
|
|
19996
|
-
function tick() {
|
|
19997
|
-
if (now() - start3 >= delay) {
|
|
19998
|
-
callback.call(null);
|
|
19999
|
-
} else {
|
|
20000
|
-
timeoutID.id = requestAnimationFrame(tick);
|
|
20001
|
-
}
|
|
20002
|
-
}
|
|
20003
|
-
var timeoutID = {
|
|
20004
|
-
id: requestAnimationFrame(tick)
|
|
20005
|
-
};
|
|
20006
|
-
return timeoutID;
|
|
20007
|
-
}
|
|
20008
|
-
var size$1 = -1;
|
|
20009
|
-
function getScrollbarSize(recalculate) {
|
|
20010
|
-
if (recalculate === void 0) {
|
|
20011
|
-
recalculate = false;
|
|
20012
|
-
}
|
|
20013
|
-
if (size$1 === -1 || recalculate) {
|
|
20014
|
-
var div = document.createElement("div");
|
|
20015
|
-
var style2 = div.style;
|
|
20016
|
-
style2.width = "50px";
|
|
20017
|
-
style2.height = "50px";
|
|
20018
|
-
style2.overflow = "scroll";
|
|
20019
|
-
document.body.appendChild(div);
|
|
20020
|
-
size$1 = div.offsetWidth - div.clientWidth;
|
|
20021
|
-
document.body.removeChild(div);
|
|
20022
|
-
}
|
|
20023
|
-
return size$1;
|
|
20024
|
-
}
|
|
20025
|
-
var cachedRTLResult = null;
|
|
20026
|
-
function getRTLOffsetType(recalculate) {
|
|
20027
|
-
if (recalculate === void 0) {
|
|
20028
|
-
recalculate = false;
|
|
20029
|
-
}
|
|
20030
|
-
if (cachedRTLResult === null || recalculate) {
|
|
20031
|
-
var outerDiv = document.createElement("div");
|
|
20032
|
-
var outerStyle = outerDiv.style;
|
|
20033
|
-
outerStyle.width = "50px";
|
|
20034
|
-
outerStyle.height = "50px";
|
|
20035
|
-
outerStyle.overflow = "scroll";
|
|
20036
|
-
outerStyle.direction = "rtl";
|
|
20037
|
-
var innerDiv = document.createElement("div");
|
|
20038
|
-
var innerStyle = innerDiv.style;
|
|
20039
|
-
innerStyle.width = "100px";
|
|
20040
|
-
innerStyle.height = "100px";
|
|
20041
|
-
outerDiv.appendChild(innerDiv);
|
|
20042
|
-
document.body.appendChild(outerDiv);
|
|
20043
|
-
if (outerDiv.scrollLeft > 0) {
|
|
20044
|
-
cachedRTLResult = "positive-descending";
|
|
20045
|
-
} else {
|
|
20046
|
-
outerDiv.scrollLeft = 1;
|
|
20047
|
-
if (outerDiv.scrollLeft === 0) {
|
|
20048
|
-
cachedRTLResult = "negative";
|
|
20049
|
-
} else {
|
|
20050
|
-
cachedRTLResult = "positive-ascending";
|
|
20051
|
-
}
|
|
20052
|
-
}
|
|
20053
|
-
document.body.removeChild(outerDiv);
|
|
20054
|
-
return cachedRTLResult;
|
|
20055
|
-
}
|
|
20056
|
-
return cachedRTLResult;
|
|
20057
|
-
}
|
|
20058
|
-
if (process.env.NODE_ENV !== "production") ;
|
|
20059
|
-
var IS_SCROLLING_DEBOUNCE_INTERVAL$1 = 150;
|
|
20060
|
-
var defaultItemKey$1 = function defaultItemKey(index2, data) {
|
|
20061
|
-
return index2;
|
|
20062
|
-
};
|
|
20063
|
-
var devWarningsDirection = null;
|
|
20064
|
-
var devWarningsTagName$1 = null;
|
|
20065
|
-
if (process.env.NODE_ENV !== "production") {
|
|
20066
|
-
if (typeof window !== "undefined" && typeof window.WeakSet !== "undefined") {
|
|
20067
|
-
devWarningsDirection = /* @__PURE__ */ new WeakSet();
|
|
20068
|
-
devWarningsTagName$1 = /* @__PURE__ */ new WeakSet();
|
|
20069
|
-
}
|
|
20070
|
-
}
|
|
20071
|
-
function createListComponent(_ref) {
|
|
20072
|
-
var _class;
|
|
20073
|
-
var getItemOffset2 = _ref.getItemOffset, getEstimatedTotalSize2 = _ref.getEstimatedTotalSize, getItemSize2 = _ref.getItemSize, getOffsetForIndexAndAlignment2 = _ref.getOffsetForIndexAndAlignment, getStartIndexForOffset2 = _ref.getStartIndexForOffset, getStopIndexForStartIndex2 = _ref.getStopIndexForStartIndex, initInstanceProps2 = _ref.initInstanceProps, shouldResetStyleCacheOnItemSizeChange = _ref.shouldResetStyleCacheOnItemSizeChange, validateProps2 = _ref.validateProps;
|
|
20074
|
-
return _class = /* @__PURE__ */ function(_PureComponent) {
|
|
20075
|
-
_inheritsLoose$3(List2, _PureComponent);
|
|
20076
|
-
function List2(props) {
|
|
20077
|
-
var _this;
|
|
20078
|
-
_this = _PureComponent.call(this, props) || this;
|
|
20079
|
-
_this._instanceProps = initInstanceProps2(_this.props, _assertThisInitialized(_this));
|
|
20080
|
-
_this._outerRef = void 0;
|
|
20081
|
-
_this._resetIsScrollingTimeoutId = null;
|
|
20082
|
-
_this.state = {
|
|
20083
|
-
instance: _assertThisInitialized(_this),
|
|
20084
|
-
isScrolling: false,
|
|
20085
|
-
scrollDirection: "forward",
|
|
20086
|
-
scrollOffset: typeof _this.props.initialScrollOffset === "number" ? _this.props.initialScrollOffset : 0,
|
|
20087
|
-
scrollUpdateWasRequested: false
|
|
20088
|
-
};
|
|
20089
|
-
_this._callOnItemsRendered = void 0;
|
|
20090
|
-
_this._callOnItemsRendered = memoizeOne(function(overscanStartIndex, overscanStopIndex, visibleStartIndex, visibleStopIndex) {
|
|
20091
|
-
return _this.props.onItemsRendered({
|
|
20092
|
-
overscanStartIndex,
|
|
20093
|
-
overscanStopIndex,
|
|
20094
|
-
visibleStartIndex,
|
|
20095
|
-
visibleStopIndex
|
|
20096
|
-
});
|
|
20097
|
-
});
|
|
20098
|
-
_this._callOnScroll = void 0;
|
|
20099
|
-
_this._callOnScroll = memoizeOne(function(scrollDirection, scrollOffset, scrollUpdateWasRequested) {
|
|
20100
|
-
return _this.props.onScroll({
|
|
20101
|
-
scrollDirection,
|
|
20102
|
-
scrollOffset,
|
|
20103
|
-
scrollUpdateWasRequested
|
|
20104
|
-
});
|
|
20105
|
-
});
|
|
20106
|
-
_this._getItemStyle = void 0;
|
|
20107
|
-
_this._getItemStyle = function(index2) {
|
|
20108
|
-
var _this$props = _this.props, direction = _this$props.direction, itemSize = _this$props.itemSize, layout = _this$props.layout;
|
|
20109
|
-
var itemStyleCache = _this._getItemStyleCache(shouldResetStyleCacheOnItemSizeChange && itemSize, shouldResetStyleCacheOnItemSizeChange && layout, shouldResetStyleCacheOnItemSizeChange && direction);
|
|
20110
|
-
var style2;
|
|
20111
|
-
if (itemStyleCache.hasOwnProperty(index2)) {
|
|
20112
|
-
style2 = itemStyleCache[index2];
|
|
20113
|
-
} else {
|
|
20114
|
-
var _offset = getItemOffset2(_this.props, index2, _this._instanceProps);
|
|
20115
|
-
var size2 = getItemSize2(_this.props, index2, _this._instanceProps);
|
|
20116
|
-
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
20117
|
-
var isRtl = direction === "rtl";
|
|
20118
|
-
var offsetHorizontal = isHorizontal ? _offset : 0;
|
|
20119
|
-
itemStyleCache[index2] = style2 = {
|
|
20120
|
-
position: "absolute",
|
|
20121
|
-
left: isRtl ? void 0 : offsetHorizontal,
|
|
20122
|
-
right: isRtl ? offsetHorizontal : void 0,
|
|
20123
|
-
top: !isHorizontal ? _offset : 0,
|
|
20124
|
-
height: !isHorizontal ? size2 : "100%",
|
|
20125
|
-
width: isHorizontal ? size2 : "100%"
|
|
20126
|
-
};
|
|
20127
|
-
}
|
|
20128
|
-
return style2;
|
|
20129
|
-
};
|
|
20130
|
-
_this._getItemStyleCache = void 0;
|
|
20131
|
-
_this._getItemStyleCache = memoizeOne(function(_2, __, ___) {
|
|
20132
|
-
return {};
|
|
20133
|
-
});
|
|
20134
|
-
_this._onScrollHorizontal = function(event) {
|
|
20135
|
-
var _event$currentTarget = event.currentTarget, clientWidth = _event$currentTarget.clientWidth, scrollLeft = _event$currentTarget.scrollLeft, scrollWidth = _event$currentTarget.scrollWidth;
|
|
20136
|
-
_this.setState(function(prevState) {
|
|
20137
|
-
if (prevState.scrollOffset === scrollLeft) {
|
|
20138
|
-
return null;
|
|
20139
|
-
}
|
|
20140
|
-
var direction = _this.props.direction;
|
|
20141
|
-
var scrollOffset = scrollLeft;
|
|
20142
|
-
if (direction === "rtl") {
|
|
20143
|
-
switch (getRTLOffsetType()) {
|
|
20144
|
-
case "negative":
|
|
20145
|
-
scrollOffset = -scrollLeft;
|
|
20146
|
-
break;
|
|
20147
|
-
case "positive-descending":
|
|
20148
|
-
scrollOffset = scrollWidth - clientWidth - scrollLeft;
|
|
20149
|
-
break;
|
|
20150
|
-
}
|
|
20151
|
-
}
|
|
20152
|
-
scrollOffset = Math.max(0, Math.min(scrollOffset, scrollWidth - clientWidth));
|
|
20153
|
-
return {
|
|
20154
|
-
isScrolling: true,
|
|
20155
|
-
scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
|
|
20156
|
-
scrollOffset,
|
|
20157
|
-
scrollUpdateWasRequested: false
|
|
20158
|
-
};
|
|
20159
|
-
}, _this._resetIsScrollingDebounced);
|
|
20160
|
-
};
|
|
20161
|
-
_this._onScrollVertical = function(event) {
|
|
20162
|
-
var _event$currentTarget2 = event.currentTarget, clientHeight = _event$currentTarget2.clientHeight, scrollHeight = _event$currentTarget2.scrollHeight, scrollTop = _event$currentTarget2.scrollTop;
|
|
20163
|
-
_this.setState(function(prevState) {
|
|
20164
|
-
if (prevState.scrollOffset === scrollTop) {
|
|
20165
|
-
return null;
|
|
20166
|
-
}
|
|
20167
|
-
var scrollOffset = Math.max(0, Math.min(scrollTop, scrollHeight - clientHeight));
|
|
20168
|
-
return {
|
|
20169
|
-
isScrolling: true,
|
|
20170
|
-
scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
|
|
20171
|
-
scrollOffset,
|
|
20172
|
-
scrollUpdateWasRequested: false
|
|
20173
|
-
};
|
|
20174
|
-
}, _this._resetIsScrollingDebounced);
|
|
20175
|
-
};
|
|
20176
|
-
_this._outerRefSetter = function(ref2) {
|
|
20177
|
-
var outerRef = _this.props.outerRef;
|
|
20178
|
-
_this._outerRef = ref2;
|
|
20179
|
-
if (typeof outerRef === "function") {
|
|
20180
|
-
outerRef(ref2);
|
|
20181
|
-
} else if (outerRef != null && typeof outerRef === "object" && outerRef.hasOwnProperty("current")) {
|
|
20182
|
-
outerRef.current = ref2;
|
|
20183
|
-
}
|
|
20184
|
-
};
|
|
20185
|
-
_this._resetIsScrollingDebounced = function() {
|
|
20186
|
-
if (_this._resetIsScrollingTimeoutId !== null) {
|
|
20187
|
-
cancelTimeout(_this._resetIsScrollingTimeoutId);
|
|
20188
|
-
}
|
|
20189
|
-
_this._resetIsScrollingTimeoutId = requestTimeout(_this._resetIsScrolling, IS_SCROLLING_DEBOUNCE_INTERVAL$1);
|
|
20190
|
-
};
|
|
20191
|
-
_this._resetIsScrolling = function() {
|
|
20192
|
-
_this._resetIsScrollingTimeoutId = null;
|
|
20193
|
-
_this.setState({
|
|
20194
|
-
isScrolling: false
|
|
20195
|
-
}, function() {
|
|
20196
|
-
_this._getItemStyleCache(-1, null);
|
|
20197
|
-
});
|
|
20198
|
-
};
|
|
20199
|
-
return _this;
|
|
20200
|
-
}
|
|
20201
|
-
List2.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {
|
|
20202
|
-
validateSharedProps$1(nextProps, prevState);
|
|
20203
|
-
validateProps2(nextProps);
|
|
20204
|
-
return null;
|
|
20205
|
-
};
|
|
20206
|
-
var _proto = List2.prototype;
|
|
20207
|
-
_proto.scrollTo = function scrollTo(scrollOffset) {
|
|
20208
|
-
scrollOffset = Math.max(0, scrollOffset);
|
|
20209
|
-
this.setState(function(prevState) {
|
|
20210
|
-
if (prevState.scrollOffset === scrollOffset) {
|
|
20211
|
-
return null;
|
|
20212
|
-
}
|
|
20213
|
-
return {
|
|
20214
|
-
scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
|
|
20215
|
-
scrollOffset,
|
|
20216
|
-
scrollUpdateWasRequested: true
|
|
20217
|
-
};
|
|
20218
|
-
}, this._resetIsScrollingDebounced);
|
|
20219
|
-
};
|
|
20220
|
-
_proto.scrollToItem = function scrollToItem(index2, align) {
|
|
20221
|
-
if (align === void 0) {
|
|
20222
|
-
align = "auto";
|
|
20223
|
-
}
|
|
20224
|
-
var _this$props2 = this.props, itemCount = _this$props2.itemCount, layout = _this$props2.layout;
|
|
20225
|
-
var scrollOffset = this.state.scrollOffset;
|
|
20226
|
-
index2 = Math.max(0, Math.min(index2, itemCount - 1));
|
|
20227
|
-
var scrollbarSize = 0;
|
|
20228
|
-
if (this._outerRef) {
|
|
20229
|
-
var outerRef = this._outerRef;
|
|
20230
|
-
if (layout === "vertical") {
|
|
20231
|
-
scrollbarSize = outerRef.scrollWidth > outerRef.clientWidth ? getScrollbarSize() : 0;
|
|
20232
|
-
} else {
|
|
20233
|
-
scrollbarSize = outerRef.scrollHeight > outerRef.clientHeight ? getScrollbarSize() : 0;
|
|
20234
|
-
}
|
|
20235
|
-
}
|
|
20236
|
-
this.scrollTo(getOffsetForIndexAndAlignment2(this.props, index2, align, scrollOffset, this._instanceProps, scrollbarSize));
|
|
20237
|
-
};
|
|
20238
|
-
_proto.componentDidMount = function componentDidMount() {
|
|
20239
|
-
var _this$props3 = this.props, direction = _this$props3.direction, initialScrollOffset = _this$props3.initialScrollOffset, layout = _this$props3.layout;
|
|
20240
|
-
if (typeof initialScrollOffset === "number" && this._outerRef != null) {
|
|
20241
|
-
var outerRef = this._outerRef;
|
|
20242
|
-
if (direction === "horizontal" || layout === "horizontal") {
|
|
20243
|
-
outerRef.scrollLeft = initialScrollOffset;
|
|
20244
|
-
} else {
|
|
20245
|
-
outerRef.scrollTop = initialScrollOffset;
|
|
20246
|
-
}
|
|
20247
|
-
}
|
|
20248
|
-
this._callPropsCallbacks();
|
|
20249
|
-
};
|
|
20250
|
-
_proto.componentDidUpdate = function componentDidUpdate() {
|
|
20251
|
-
var _this$props4 = this.props, direction = _this$props4.direction, layout = _this$props4.layout;
|
|
20252
|
-
var _this$state = this.state, scrollOffset = _this$state.scrollOffset, scrollUpdateWasRequested = _this$state.scrollUpdateWasRequested;
|
|
20253
|
-
if (scrollUpdateWasRequested && this._outerRef != null) {
|
|
20254
|
-
var outerRef = this._outerRef;
|
|
20255
|
-
if (direction === "horizontal" || layout === "horizontal") {
|
|
20256
|
-
if (direction === "rtl") {
|
|
20257
|
-
switch (getRTLOffsetType()) {
|
|
20258
|
-
case "negative":
|
|
20259
|
-
outerRef.scrollLeft = -scrollOffset;
|
|
20260
|
-
break;
|
|
20261
|
-
case "positive-ascending":
|
|
20262
|
-
outerRef.scrollLeft = scrollOffset;
|
|
20263
|
-
break;
|
|
20264
|
-
default:
|
|
20265
|
-
var clientWidth = outerRef.clientWidth, scrollWidth = outerRef.scrollWidth;
|
|
20266
|
-
outerRef.scrollLeft = scrollWidth - clientWidth - scrollOffset;
|
|
20267
|
-
break;
|
|
20268
|
-
}
|
|
20269
|
-
} else {
|
|
20270
|
-
outerRef.scrollLeft = scrollOffset;
|
|
20271
|
-
}
|
|
20272
|
-
} else {
|
|
20273
|
-
outerRef.scrollTop = scrollOffset;
|
|
20274
|
-
}
|
|
20275
|
-
}
|
|
20276
|
-
this._callPropsCallbacks();
|
|
20277
|
-
};
|
|
20278
|
-
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
20279
|
-
if (this._resetIsScrollingTimeoutId !== null) {
|
|
20280
|
-
cancelTimeout(this._resetIsScrollingTimeoutId);
|
|
20281
|
-
}
|
|
20282
|
-
};
|
|
20283
|
-
_proto.render = function render2() {
|
|
20284
|
-
var _this$props5 = this.props, children = _this$props5.children, className = _this$props5.className, direction = _this$props5.direction, height2 = _this$props5.height, innerRef = _this$props5.innerRef, innerElementType = _this$props5.innerElementType, innerTagName = _this$props5.innerTagName, itemCount = _this$props5.itemCount, itemData = _this$props5.itemData, _this$props5$itemKey = _this$props5.itemKey, itemKey = _this$props5$itemKey === void 0 ? defaultItemKey$1 : _this$props5$itemKey, layout = _this$props5.layout, outerElementType = _this$props5.outerElementType, outerTagName = _this$props5.outerTagName, style2 = _this$props5.style, useIsScrolling = _this$props5.useIsScrolling, width2 = _this$props5.width;
|
|
20285
|
-
var isScrolling = this.state.isScrolling;
|
|
20286
|
-
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
20287
|
-
var onScroll = isHorizontal ? this._onScrollHorizontal : this._onScrollVertical;
|
|
20288
|
-
var _this$_getRangeToRend = this._getRangeToRender(), startIndex = _this$_getRangeToRend[0], stopIndex = _this$_getRangeToRend[1];
|
|
20289
|
-
var items = [];
|
|
20290
|
-
if (itemCount > 0) {
|
|
20291
|
-
for (var _index = startIndex; _index <= stopIndex; _index++) {
|
|
20292
|
-
items.push(createElement(children, {
|
|
20293
|
-
data: itemData,
|
|
20294
|
-
key: itemKey(_index, itemData),
|
|
20295
|
-
index: _index,
|
|
20296
|
-
isScrolling: useIsScrolling ? isScrolling : void 0,
|
|
20297
|
-
style: this._getItemStyle(_index)
|
|
20298
|
-
}));
|
|
20299
|
-
}
|
|
20300
|
-
}
|
|
20301
|
-
var estimatedTotalSize = getEstimatedTotalSize2(this.props, this._instanceProps);
|
|
20302
|
-
return createElement(outerElementType || outerTagName || "div", {
|
|
20303
|
-
className,
|
|
20304
|
-
onScroll,
|
|
20305
|
-
ref: this._outerRefSetter,
|
|
20306
|
-
style: _extends$4({
|
|
20307
|
-
position: "relative",
|
|
20308
|
-
height: height2,
|
|
20309
|
-
width: width2,
|
|
20310
|
-
overflow: "auto",
|
|
20311
|
-
WebkitOverflowScrolling: "touch",
|
|
20312
|
-
willChange: "transform",
|
|
20313
|
-
direction
|
|
20314
|
-
}, style2)
|
|
20315
|
-
}, createElement(innerElementType || innerTagName || "div", {
|
|
20316
|
-
children: items,
|
|
20317
|
-
ref: innerRef,
|
|
20318
|
-
style: {
|
|
20319
|
-
height: isHorizontal ? "100%" : estimatedTotalSize,
|
|
20320
|
-
pointerEvents: isScrolling ? "none" : void 0,
|
|
20321
|
-
width: isHorizontal ? estimatedTotalSize : "100%"
|
|
20322
|
-
}
|
|
20323
|
-
}));
|
|
20324
|
-
};
|
|
20325
|
-
_proto._callPropsCallbacks = function _callPropsCallbacks() {
|
|
20326
|
-
if (typeof this.props.onItemsRendered === "function") {
|
|
20327
|
-
var itemCount = this.props.itemCount;
|
|
20328
|
-
if (itemCount > 0) {
|
|
20329
|
-
var _this$_getRangeToRend2 = this._getRangeToRender(), _overscanStartIndex = _this$_getRangeToRend2[0], _overscanStopIndex = _this$_getRangeToRend2[1], _visibleStartIndex = _this$_getRangeToRend2[2], _visibleStopIndex = _this$_getRangeToRend2[3];
|
|
20330
|
-
this._callOnItemsRendered(_overscanStartIndex, _overscanStopIndex, _visibleStartIndex, _visibleStopIndex);
|
|
20331
|
-
}
|
|
20332
|
-
}
|
|
20333
|
-
if (typeof this.props.onScroll === "function") {
|
|
20334
|
-
var _this$state2 = this.state, _scrollDirection = _this$state2.scrollDirection, _scrollOffset = _this$state2.scrollOffset, _scrollUpdateWasRequested = _this$state2.scrollUpdateWasRequested;
|
|
20335
|
-
this._callOnScroll(_scrollDirection, _scrollOffset, _scrollUpdateWasRequested);
|
|
20336
|
-
}
|
|
20337
|
-
};
|
|
20338
|
-
_proto._getRangeToRender = function _getRangeToRender() {
|
|
20339
|
-
var _this$props6 = this.props, itemCount = _this$props6.itemCount, overscanCount = _this$props6.overscanCount;
|
|
20340
|
-
var _this$state3 = this.state, isScrolling = _this$state3.isScrolling, scrollDirection = _this$state3.scrollDirection, scrollOffset = _this$state3.scrollOffset;
|
|
20341
|
-
if (itemCount === 0) {
|
|
20342
|
-
return [0, 0, 0, 0];
|
|
20343
|
-
}
|
|
20344
|
-
var startIndex = getStartIndexForOffset2(this.props, scrollOffset, this._instanceProps);
|
|
20345
|
-
var stopIndex = getStopIndexForStartIndex2(this.props, startIndex, scrollOffset, this._instanceProps);
|
|
20346
|
-
var overscanBackward = !isScrolling || scrollDirection === "backward" ? Math.max(1, overscanCount) : 1;
|
|
20347
|
-
var overscanForward = !isScrolling || scrollDirection === "forward" ? Math.max(1, overscanCount) : 1;
|
|
20348
|
-
return [Math.max(0, startIndex - overscanBackward), Math.max(0, Math.min(itemCount - 1, stopIndex + overscanForward)), startIndex, stopIndex];
|
|
20349
|
-
};
|
|
20350
|
-
return List2;
|
|
20351
|
-
}(PureComponent), _class.defaultProps = {
|
|
20352
|
-
direction: "ltr",
|
|
20353
|
-
itemData: void 0,
|
|
20354
|
-
layout: "vertical",
|
|
20355
|
-
overscanCount: 2,
|
|
20356
|
-
useIsScrolling: false
|
|
20357
|
-
}, _class;
|
|
20358
|
-
}
|
|
20359
|
-
var validateSharedProps$1 = function validateSharedProps(_ref2, _ref3) {
|
|
20360
|
-
var children = _ref2.children, direction = _ref2.direction, height2 = _ref2.height, layout = _ref2.layout, innerTagName = _ref2.innerTagName, outerTagName = _ref2.outerTagName, width2 = _ref2.width;
|
|
20361
|
-
var instance = _ref3.instance;
|
|
20362
|
-
if (process.env.NODE_ENV !== "production") {
|
|
20363
|
-
if (innerTagName != null || outerTagName != null) {
|
|
20364
|
-
if (devWarningsTagName$1 && !devWarningsTagName$1.has(instance)) {
|
|
20365
|
-
devWarningsTagName$1.add(instance);
|
|
20366
|
-
console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.");
|
|
20367
|
-
}
|
|
20368
|
-
}
|
|
20369
|
-
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
20370
|
-
switch (direction) {
|
|
20371
|
-
case "horizontal":
|
|
20372
|
-
case "vertical":
|
|
20373
|
-
if (devWarningsDirection && !devWarningsDirection.has(instance)) {
|
|
20374
|
-
devWarningsDirection.add(instance);
|
|
20375
|
-
console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.');
|
|
20376
|
-
}
|
|
20377
|
-
break;
|
|
20378
|
-
case "ltr":
|
|
20379
|
-
case "rtl":
|
|
20380
|
-
break;
|
|
20381
|
-
default:
|
|
20382
|
-
throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + direction + '" was specified.'));
|
|
20383
|
-
}
|
|
20384
|
-
switch (layout) {
|
|
20385
|
-
case "horizontal":
|
|
20386
|
-
case "vertical":
|
|
20387
|
-
break;
|
|
20388
|
-
default:
|
|
20389
|
-
throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". ' + ('"' + layout + '" was specified.'));
|
|
20390
|
-
}
|
|
20391
|
-
if (children == null) {
|
|
20392
|
-
throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (children === null ? "null" : typeof children) + '" was specified.'));
|
|
20393
|
-
}
|
|
20394
|
-
if (isHorizontal && typeof width2 !== "number") {
|
|
20395
|
-
throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. ' + ('"' + (width2 === null ? "null" : typeof width2) + '" was specified.'));
|
|
20396
|
-
} else if (!isHorizontal && typeof height2 !== "number") {
|
|
20397
|
-
throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. ' + ('"' + (height2 === null ? "null" : typeof height2) + '" was specified.'));
|
|
20398
|
-
}
|
|
20399
|
-
}
|
|
20400
|
-
};
|
|
20401
|
-
var FixedSizeList = /* @__PURE__ */ createListComponent({
|
|
20402
|
-
getItemOffset: function getItemOffset(_ref, index2) {
|
|
20403
|
-
var itemSize = _ref.itemSize;
|
|
20404
|
-
return index2 * itemSize;
|
|
20405
|
-
},
|
|
20406
|
-
getItemSize: function getItemSize(_ref2, index2) {
|
|
20407
|
-
var itemSize = _ref2.itemSize;
|
|
20408
|
-
return itemSize;
|
|
20409
|
-
},
|
|
20410
|
-
getEstimatedTotalSize: function getEstimatedTotalSize(_ref3) {
|
|
20411
|
-
var itemCount = _ref3.itemCount, itemSize = _ref3.itemSize;
|
|
20412
|
-
return itemSize * itemCount;
|
|
20413
|
-
},
|
|
20414
|
-
getOffsetForIndexAndAlignment: function getOffsetForIndexAndAlignment(_ref4, index2, align, scrollOffset, instanceProps, scrollbarSize) {
|
|
20415
|
-
var direction = _ref4.direction, height2 = _ref4.height, itemCount = _ref4.itemCount, itemSize = _ref4.itemSize, layout = _ref4.layout, width2 = _ref4.width;
|
|
20416
|
-
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
20417
|
-
var size2 = isHorizontal ? width2 : height2;
|
|
20418
|
-
var lastItemOffset = Math.max(0, itemCount * itemSize - size2);
|
|
20419
|
-
var maxOffset = Math.min(lastItemOffset, index2 * itemSize);
|
|
20420
|
-
var minOffset = Math.max(0, index2 * itemSize - size2 + itemSize + scrollbarSize);
|
|
20421
|
-
if (align === "smart") {
|
|
20422
|
-
if (scrollOffset >= minOffset - size2 && scrollOffset <= maxOffset + size2) {
|
|
20423
|
-
align = "auto";
|
|
20424
|
-
} else {
|
|
20425
|
-
align = "center";
|
|
20426
|
-
}
|
|
20427
|
-
}
|
|
20428
|
-
switch (align) {
|
|
20429
|
-
case "start":
|
|
20430
|
-
return maxOffset;
|
|
20431
|
-
case "end":
|
|
20432
|
-
return minOffset;
|
|
20433
|
-
case "center": {
|
|
20434
|
-
var middleOffset = Math.round(minOffset + (maxOffset - minOffset) / 2);
|
|
20435
|
-
if (middleOffset < Math.ceil(size2 / 2)) {
|
|
20436
|
-
return 0;
|
|
20437
|
-
} else if (middleOffset > lastItemOffset + Math.floor(size2 / 2)) {
|
|
20438
|
-
return lastItemOffset;
|
|
20439
|
-
} else {
|
|
20440
|
-
return middleOffset;
|
|
20441
|
-
}
|
|
20442
|
-
}
|
|
20443
|
-
case "auto":
|
|
20444
|
-
default:
|
|
20445
|
-
if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {
|
|
20446
|
-
return scrollOffset;
|
|
20447
|
-
} else if (scrollOffset < minOffset) {
|
|
20448
|
-
return minOffset;
|
|
20449
|
-
} else {
|
|
20450
|
-
return maxOffset;
|
|
20451
|
-
}
|
|
20452
|
-
}
|
|
20453
|
-
},
|
|
20454
|
-
getStartIndexForOffset: function getStartIndexForOffset(_ref5, offset3) {
|
|
20455
|
-
var itemCount = _ref5.itemCount, itemSize = _ref5.itemSize;
|
|
20456
|
-
return Math.max(0, Math.min(itemCount - 1, Math.floor(offset3 / itemSize)));
|
|
20457
|
-
},
|
|
20458
|
-
getStopIndexForStartIndex: function getStopIndexForStartIndex(_ref6, startIndex, scrollOffset) {
|
|
20459
|
-
var direction = _ref6.direction, height2 = _ref6.height, itemCount = _ref6.itemCount, itemSize = _ref6.itemSize, layout = _ref6.layout, width2 = _ref6.width;
|
|
20460
|
-
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
20461
|
-
var offset3 = startIndex * itemSize;
|
|
20462
|
-
var size2 = isHorizontal ? width2 : height2;
|
|
20463
|
-
var numVisibleItems = Math.ceil((size2 + scrollOffset - offset3) / itemSize);
|
|
20464
|
-
return Math.max(0, Math.min(
|
|
20465
|
-
itemCount - 1,
|
|
20466
|
-
startIndex + numVisibleItems - 1
|
|
20467
|
-
// -1 is because stop index is inclusive
|
|
20468
|
-
));
|
|
20469
|
-
},
|
|
20470
|
-
initInstanceProps: function initInstanceProps(props) {
|
|
20471
|
-
},
|
|
20472
|
-
shouldResetStyleCacheOnItemSizeChange: true,
|
|
20473
|
-
validateProps: function validateProps(_ref7) {
|
|
20474
|
-
var itemSize = _ref7.itemSize;
|
|
20475
|
-
if (process.env.NODE_ENV !== "production") {
|
|
20476
|
-
if (typeof itemSize !== "number") {
|
|
20477
|
-
throw Error('An invalid "itemSize" prop has been specified. Value should be a number. ' + ('"' + (itemSize === null ? "null" : typeof itemSize) + '" was specified.'));
|
|
20478
|
-
}
|
|
20479
|
-
}
|
|
20480
|
-
}
|
|
20481
|
-
});
|
|
20482
|
-
const layerContainer = "_layerContainer_dw2pp_1";
|
|
20483
|
-
const layer = "_layer_dw2pp_1";
|
|
20484
|
-
const small$5 = "_small_dw2pp_23";
|
|
20485
|
-
const heading = "_heading_dw2pp_26";
|
|
20486
|
-
const option = "_option_dw2pp_27";
|
|
20487
|
-
const message = "_message_dw2pp_28";
|
|
20488
|
-
const focused = "_focused_dw2pp_64";
|
|
20489
|
-
const selected = "_selected_dw2pp_68";
|
|
20490
|
-
const disabled$4 = "_disabled_dw2pp_71";
|
|
20491
|
-
const check = "_check_dw2pp_75";
|
|
20492
|
-
const optionContent = "_optionContent_dw2pp_92";
|
|
20493
|
-
const label$5 = "_label_dw2pp_97";
|
|
20494
|
-
const icon$2 = "_icon_dw2pp_104";
|
|
20495
|
-
const details = "_details_dw2pp_109";
|
|
20496
|
-
const styles$n = {
|
|
20497
|
-
layerContainer,
|
|
20498
|
-
layer,
|
|
20499
|
-
small: small$5,
|
|
20500
|
-
heading,
|
|
20501
|
-
option,
|
|
20502
|
-
message,
|
|
20503
|
-
focused,
|
|
20504
|
-
selected,
|
|
20505
|
-
disabled: disabled$4,
|
|
20506
|
-
check,
|
|
20507
|
-
optionContent,
|
|
20508
|
-
label: label$5,
|
|
20509
|
-
icon: icon$2,
|
|
20510
|
-
details
|
|
20511
|
-
};
|
|
20512
|
-
const Heading = ({ label: label2 }) => {
|
|
20513
|
-
return /* @__PURE__ */ jsx(
|
|
20514
|
-
"div",
|
|
20515
|
-
{
|
|
20516
|
-
onClick: (evt) => evt.stopPropagation(),
|
|
20517
|
-
className: styles$n.heading,
|
|
20518
|
-
children: label2
|
|
20519
|
-
}
|
|
20520
|
-
);
|
|
20521
|
-
};
|
|
20522
|
-
const Option = ({
|
|
20523
|
-
details: details2,
|
|
20524
|
-
label: label2,
|
|
20525
|
-
icon: icon2,
|
|
20526
|
-
disabled: disabled2 = false,
|
|
20527
|
-
selected: selected2 = false,
|
|
20528
|
-
focused: focused2 = false,
|
|
20529
|
-
onSelectOption,
|
|
20530
|
-
actions: actions2,
|
|
20531
|
-
closeLayer,
|
|
20532
|
-
testId
|
|
20533
|
-
}) => {
|
|
20534
|
-
return /* @__PURE__ */ jsxs(
|
|
20535
|
-
"div",
|
|
20536
|
-
{
|
|
20537
|
-
className: cx$2(
|
|
20538
|
-
styles$n.option,
|
|
20539
|
-
disabled2 ? styles$n.disabled : "",
|
|
20540
|
-
selected2 ? styles$n.selected : "",
|
|
20541
|
-
focused2 ? styles$n.focused : ""
|
|
20542
|
-
),
|
|
20543
|
-
onClick: !disabled2 && onSelectOption ? onSelectOption : void 0,
|
|
20544
|
-
"data-testid": testId,
|
|
20545
|
-
children: [
|
|
20546
|
-
/* @__PURE__ */ jsx("div", { className: styles$n.optionContent, children: /* @__PURE__ */ jsxs("span", { className: styles$n.label, title: label2, children: [
|
|
20547
|
-
label2,
|
|
20548
|
-
icon2 && /* @__PURE__ */ jsx("span", { className: styles$n.icon, children: icon2 })
|
|
20549
|
-
] }) }),
|
|
20550
|
-
details2 && /* @__PURE__ */ jsx("div", { className: cx$2(styles$n.details), children: /* @__PURE__ */ jsx(Text, { faint: true, children: details2 }) }),
|
|
20551
|
-
!!(actions2 == null ? void 0 : actions2.length) && /* @__PURE__ */ jsx("div", { className: cx$2(styles$n.actions), children: /* @__PURE__ */ jsx(Actions, { actions: actions2, closeLayer }) }),
|
|
20552
|
-
/* @__PURE__ */ jsx("span", { className: styles$n.check, children: selected2 ? /* @__PURE__ */ jsx(Icon, { icon: IconType.CHECK }) : null })
|
|
20553
|
-
]
|
|
20554
|
-
}
|
|
20555
|
-
);
|
|
20556
|
-
};
|
|
20557
|
-
const Section = ({
|
|
20558
|
-
section: section2,
|
|
20559
|
-
selected: selected2,
|
|
20560
|
-
focused: focused2,
|
|
20561
|
-
onSelectOption,
|
|
20562
|
-
closeLayer
|
|
20563
|
-
}) => {
|
|
20564
|
-
const disabledContext = useContext(DisabledContext);
|
|
20565
|
-
switch (section2.type) {
|
|
20566
|
-
case MenuType.HEADING:
|
|
20567
|
-
return /* @__PURE__ */ jsx(Heading, { label: section2.label });
|
|
20568
|
-
case MenuType.OPTION:
|
|
20569
|
-
default:
|
|
20570
|
-
return /* @__PURE__ */ jsx(
|
|
20571
|
-
Option,
|
|
20572
|
-
{
|
|
20573
|
-
closeLayer,
|
|
20574
|
-
actions: section2.actions,
|
|
20575
|
-
label: section2.label,
|
|
20576
|
-
details: section2.details,
|
|
20577
|
-
icon: section2.icon,
|
|
20578
|
-
disabled: section2.disabled || disabledContext,
|
|
20579
|
-
selected: selected2,
|
|
20580
|
-
focused: focused2,
|
|
20581
|
-
onSelectOption,
|
|
20582
|
-
testId: section2.testId
|
|
20583
|
-
}
|
|
20584
|
-
);
|
|
20585
|
-
}
|
|
20586
|
-
};
|
|
20587
|
-
const getTextWidth = (text2, font) => {
|
|
20588
|
-
const element = document.createElement("canvas");
|
|
20589
|
-
const context2 = element.getContext("2d");
|
|
20590
|
-
if (!context2) {
|
|
20591
|
-
return 0;
|
|
20592
|
-
}
|
|
20593
|
-
context2.font = font;
|
|
20594
|
-
return context2.measureText(text2).width;
|
|
20595
|
-
};
|
|
20596
|
-
const FONT_SIZE = "13px";
|
|
20597
|
-
const FONT_SIZE_SMALL = "12px";
|
|
20598
|
-
const FONT_FAMILY = "Roobert";
|
|
20599
|
-
const FONT_FAMILY_FALLBACK = "sans-serif";
|
|
20600
|
-
const PADDING = 12;
|
|
20601
|
-
const PADDING_SMALL = 8;
|
|
20602
|
-
const TOGGLE_SIZE = 30;
|
|
20603
|
-
const TOGGLE_SIZE_SMALL = 24;
|
|
20604
|
-
const TAG_PADDING = 5;
|
|
20605
|
-
const TAG_PADDING_SMALL = 3;
|
|
20606
|
-
const TAG_BORDER_WIDTH = 1;
|
|
20607
|
-
const TAG_MARGIN = 2;
|
|
20608
|
-
const MAX_OPTIONS_LENGTH = 10;
|
|
20609
|
-
const getFont = (small2 = false, isFontLoaded = false) => {
|
|
20610
|
-
const fontSize = small2 ? FONT_SIZE_SMALL : FONT_SIZE;
|
|
20611
|
-
const fontFamily = isFontLoaded ? FONT_FAMILY : FONT_FAMILY_FALLBACK;
|
|
20612
|
-
return `${fontSize} ${fontFamily}`;
|
|
20613
|
-
};
|
|
20614
|
-
const getExtraOptionWidth = (small2 = false, scrollbar = false) => {
|
|
20615
|
-
const SCROLLBAR_WIDTH = 17;
|
|
20616
|
-
return (small2 ? PADDING_SMALL : PADDING) + (small2 ? TOGGLE_SIZE_SMALL : TOGGLE_SIZE) + (scrollbar ? SCROLLBAR_WIDTH : 0);
|
|
20617
|
-
};
|
|
20618
|
-
const getWidestOptionWidth = (options, small2, isFontLoaded, placeholder3) => {
|
|
20619
|
-
const font = getFont(small2, isFontLoaded);
|
|
20620
|
-
const placeholderWidth = placeholder3 ? getTextWidth(placeholder3, font) : 0;
|
|
20621
|
-
const widestTextWidth = Math.ceil(
|
|
20622
|
-
options.reduce((acc, option2) => {
|
|
20623
|
-
var _a2;
|
|
20624
|
-
const optionActionsWidth = (((_a2 = option2 == null ? void 0 : option2.actions) == null ? void 0 : _a2.length) ?? 0) * 24;
|
|
20625
|
-
const optionIconWidth = option2.icon ? (small2 ? parseInt(FONT_SIZE_SMALL) : parseInt(FONT_SIZE)) + 7 : 0;
|
|
20626
|
-
const optionsText = `${option2.label} ${option2.details || ""}`;
|
|
20627
|
-
const optionWidth = getTextWidth(optionsText, font) + optionActionsWidth + optionIconWidth;
|
|
20628
|
-
acc = optionWidth > acc ? optionWidth : acc;
|
|
20629
|
-
return acc;
|
|
20630
|
-
}, placeholderWidth)
|
|
20631
|
-
);
|
|
20632
|
-
const extraWidth = getExtraOptionWidth(small2, true);
|
|
20633
|
-
return widestTextWidth + extraWidth;
|
|
20634
|
-
};
|
|
20635
|
-
const getMultiOptionWidth = (option2, small2, isFontLoaded) => {
|
|
20636
|
-
const font = getFont(true, isFontLoaded);
|
|
20637
|
-
const textWidth = getTextWidth(option2.label, font);
|
|
20638
|
-
const extraWidth = (small2 ? TAG_PADDING_SMALL : TAG_PADDING) * 2 + TAG_BORDER_WIDTH * 2 + TAG_MARGIN;
|
|
20639
|
-
return Math.ceil(textWidth + extraWidth);
|
|
20640
|
-
};
|
|
20641
|
-
const Layer = ({
|
|
20642
|
-
listRef,
|
|
20643
|
-
isMulti: isMulti2,
|
|
20644
|
-
sections,
|
|
20645
|
-
selectedOptions,
|
|
20646
|
-
onSelectOption,
|
|
20647
|
-
focusedOptionIndex,
|
|
20648
|
-
width: width2,
|
|
20649
|
-
small: small2,
|
|
20650
|
-
firstSelectedOptionIndex,
|
|
20651
|
-
closeLayer,
|
|
20652
|
-
testId
|
|
20653
|
-
}) => {
|
|
20654
|
-
const isMounted = useRef(true);
|
|
20655
|
-
useEffect(() => {
|
|
20656
|
-
if (!isMounted.current) return;
|
|
20657
|
-
if (firstSelectedOptionIndex !== void 0 && firstSelectedOptionIndex !== null && listRef.current !== null && typeof listRef.current.scrollToItem === "function") {
|
|
20658
|
-
listRef.current.scrollToItem(firstSelectedOptionIndex, "start");
|
|
20659
|
-
}
|
|
20660
|
-
return () => {
|
|
20661
|
-
isMounted.current = false;
|
|
20662
|
-
};
|
|
20663
|
-
}, [firstSelectedOptionIndex, listRef]);
|
|
20664
|
-
const optionHeight = small2 ? 24 : 30;
|
|
20665
|
-
return /* @__PURE__ */ jsx(
|
|
20666
|
-
"div",
|
|
20667
|
-
{
|
|
20668
|
-
"data-testid": testId,
|
|
20669
|
-
className: cx$2(styles$n.layer, small2 && styles$n.small),
|
|
20670
|
-
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(
|
|
20671
|
-
FixedSizeList,
|
|
20672
|
-
{
|
|
20673
|
-
ref: listRef,
|
|
20674
|
-
height: sections.length < MAX_OPTIONS_LENGTH ? optionHeight * sections.length : optionHeight * MAX_OPTIONS_LENGTH,
|
|
20675
|
-
itemCount: sections.length,
|
|
20676
|
-
itemSize: optionHeight,
|
|
20677
|
-
width: width2,
|
|
20678
|
-
children: ({ index: index2, style: style2 }) => {
|
|
20679
|
-
var _a2;
|
|
20680
|
-
return /* @__PURE__ */ jsx("div", { style: style2, children: /* @__PURE__ */ jsx(
|
|
20681
|
-
Section,
|
|
20682
|
-
{
|
|
20683
|
-
closeLayer,
|
|
20684
|
-
section: sections[index2],
|
|
20685
|
-
selected: isMulti2 && sections[index2].type !== MenuType.HEADING && Array.isArray(selectedOptions) ? selectedOptions.some(
|
|
20686
|
-
(v2) => {
|
|
20687
|
-
var _a3;
|
|
20688
|
-
return v2 && (v2 == null ? void 0 : v2.value) === ((_a3 = sections == null ? void 0 : sections[index2]) == null ? void 0 : _a3.value);
|
|
20689
|
-
}
|
|
20690
|
-
) : !Array.isArray(selectedOptions) && ((_a2 = sections == null ? void 0 : sections[index2]) == null ? void 0 : _a2.value) === (selectedOptions == null ? void 0 : selectedOptions.value),
|
|
20691
|
-
focused: focusedOptionIndex === index2,
|
|
20692
|
-
onSelectOption: (evt) => onSelectOption(evt, sections[index2])
|
|
20693
|
-
}
|
|
20694
|
-
) });
|
|
20695
|
-
}
|
|
20696
|
-
}
|
|
20697
|
-
)
|
|
20698
|
-
}
|
|
20699
|
-
);
|
|
20700
|
-
};
|
|
20701
|
-
const inputInTable$5 = "_inputInTable_7uwhv_1";
|
|
20702
|
-
const inputHover$5 = "_inputHover_7uwhv_13";
|
|
20703
|
-
const inputFocus$5 = "_inputFocus_7uwhv_18";
|
|
20704
|
-
const inputError$5 = "_inputError_7uwhv_25";
|
|
20705
|
-
const inputWarning$5 = "_inputWarning_7uwhv_26";
|
|
20706
|
-
const inputDisabled$5 = "_inputDisabled_7uwhv_61";
|
|
20707
|
-
const hideScrollbars$5 = "_hideScrollbars_7uwhv_67";
|
|
20708
|
-
const trigger$1 = "_trigger_7uwhv_77";
|
|
20709
|
-
const isInTable$1 = "_isInTable_7uwhv_93";
|
|
20710
|
-
const input = "_input_7uwhv_1";
|
|
20711
|
-
const isOpen = "_isOpen_7uwhv_114";
|
|
20712
|
-
const disabled$3 = "_disabled_7uwhv_156";
|
|
20713
|
-
const icons = "_icons_7uwhv_162";
|
|
20714
|
-
const clearAll = "_clearAll_7uwhv_169";
|
|
20715
|
-
const iconOpen = "_iconOpen_7uwhv_170";
|
|
20716
|
-
const small$4 = "_small_7uwhv_181";
|
|
20717
|
-
const triggerInputContainer = "_triggerInputContainer_7uwhv_189";
|
|
20718
|
-
const right$2 = "_right_7uwhv_198";
|
|
20719
|
-
const multiOptions = "_multiOptions_7uwhv_211";
|
|
20720
|
-
const multiOption = "_multiOption_7uwhv_211";
|
|
20721
|
-
const label$4 = "_label_7uwhv_239";
|
|
20722
|
-
const closeMultiOption = "_closeMultiOption_7uwhv_242";
|
|
20723
|
-
const focus = "_focus_7uwhv_253";
|
|
20724
|
-
const selectedSingleValue = "_selectedSingleValue_7uwhv_257";
|
|
20725
|
-
const placeHolder = "_placeHolder_7uwhv_258";
|
|
20726
|
-
const groupOrderFirst = "_groupOrderFirst_7uwhv_297";
|
|
20727
|
-
const groupOrderMiddle = "_groupOrderMiddle_7uwhv_298";
|
|
20728
|
-
const groupOrderLast = "_groupOrderLast_7uwhv_302";
|
|
20729
|
-
const detailedLabel = "_detailedLabel_7uwhv_307";
|
|
20730
|
-
const styles$m = {
|
|
20731
|
-
inputInTable: inputInTable$5,
|
|
20732
|
-
inputHover: inputHover$5,
|
|
20733
|
-
inputFocus: inputFocus$5,
|
|
20734
|
-
inputError: inputError$5,
|
|
20735
|
-
inputWarning: inputWarning$5,
|
|
20736
|
-
inputDisabled: inputDisabled$5,
|
|
20737
|
-
hideScrollbars: hideScrollbars$5,
|
|
20738
|
-
trigger: trigger$1,
|
|
20739
|
-
isInTable: isInTable$1,
|
|
20740
|
-
input,
|
|
20741
|
-
isOpen,
|
|
20742
|
-
disabled: disabled$3,
|
|
20743
|
-
icons,
|
|
20744
|
-
clearAll,
|
|
20745
|
-
iconOpen,
|
|
20746
|
-
small: small$4,
|
|
20747
|
-
triggerInputContainer,
|
|
20748
|
-
right: right$2,
|
|
20749
|
-
multiOptions,
|
|
20750
|
-
multiOption,
|
|
20751
|
-
label: label$4,
|
|
20752
|
-
closeMultiOption,
|
|
20753
|
-
focus,
|
|
20754
|
-
selectedSingleValue,
|
|
20755
|
-
placeHolder,
|
|
20756
|
-
groupOrderFirst,
|
|
20757
|
-
groupOrderMiddle,
|
|
20758
|
-
groupOrderLast,
|
|
20759
|
-
detailedLabel
|
|
20760
|
-
};
|
|
20761
|
-
const MultiSelectedOptions = ({
|
|
20762
|
-
selectedOptions,
|
|
20763
|
-
small: small2,
|
|
20764
|
-
width: width2,
|
|
20765
|
-
testId
|
|
20766
|
-
}) => {
|
|
20767
|
-
const isFontLoaded = useFontsReady();
|
|
20768
|
-
const [displayedOptions, setDisplayedOptions] = useState([]);
|
|
20769
|
-
const [overflowOptions, setOverflowOptions] = useState([]);
|
|
20770
|
-
const isMounted = useRef(true);
|
|
20771
|
-
useEffect(() => {
|
|
20772
|
-
return () => {
|
|
20773
|
-
isMounted.current = false;
|
|
20774
|
-
};
|
|
20775
|
-
}, []);
|
|
20776
|
-
useEffect(() => {
|
|
20777
|
-
let displayed = [];
|
|
20778
|
-
let overflow = [];
|
|
20779
|
-
let usedWidth = 0;
|
|
20780
|
-
selectedOptions.forEach((option2, index2) => {
|
|
20781
|
-
usedWidth += getMultiOptionWidth(option2, small2, isFontLoaded);
|
|
20782
|
-
if (index2 === selectedOptions.length - 1 && usedWidth < width2) {
|
|
20783
|
-
displayed.push(option2);
|
|
20784
|
-
} else if (usedWidth < width2 - 24) {
|
|
20785
|
-
displayed.push(option2);
|
|
20786
|
-
} else {
|
|
20787
|
-
overflow.push(option2);
|
|
20788
|
-
}
|
|
20789
|
-
});
|
|
20790
|
-
if (isMounted.current) {
|
|
20791
|
-
setDisplayedOptions(displayed);
|
|
20792
|
-
setOverflowOptions(overflow);
|
|
20793
|
-
}
|
|
20794
|
-
}, [selectedOptions, isFontLoaded, width2]);
|
|
20795
|
-
return /* @__PURE__ */ jsxs(
|
|
20796
|
-
"div",
|
|
20797
|
-
{
|
|
20798
|
-
className: styles$m.multiOptions,
|
|
20799
|
-
"data-testid": testId && `${testId}-value`,
|
|
20800
|
-
children: [
|
|
20801
|
-
displayedOptions.filter((option2) => option2 && option2.label).map((option2, index2) => /* @__PURE__ */ jsx(
|
|
20802
|
-
"span",
|
|
20803
|
-
{
|
|
20804
|
-
className: styles$m.multiOption,
|
|
20805
|
-
onClick: (evt) => {
|
|
20806
|
-
evt.stopPropagation();
|
|
20807
|
-
},
|
|
20808
|
-
children: option2.label
|
|
20809
|
-
},
|
|
20810
|
-
index2
|
|
20811
|
-
)),
|
|
20812
|
-
overflowOptions.length > 0 && /* @__PURE__ */ jsx(
|
|
20813
|
-
Tooltip,
|
|
20814
|
-
{
|
|
20815
|
-
text: overflowOptions.map((option2, index2) => /* @__PURE__ */ jsx("div", { children: option2.label }, index2)),
|
|
20816
|
-
display: "inline-flex",
|
|
20817
|
-
children: /* @__PURE__ */ jsx("span", { className: styles$m.multiOption, children: displayedOptions.length ? `+${overflowOptions.length}` : `${overflowOptions.length} items` })
|
|
20818
|
-
}
|
|
20819
|
-
)
|
|
20820
|
-
]
|
|
20821
|
-
}
|
|
20822
|
-
);
|
|
20823
|
-
};
|
|
20824
|
-
const Input = ({
|
|
20825
|
-
selectedOptions,
|
|
20826
|
-
searchable = false,
|
|
20827
|
-
searchValue,
|
|
20828
|
-
onChange = noop$3,
|
|
20829
|
-
inputRef,
|
|
20830
|
-
error: error2,
|
|
20831
|
-
placeholder: placeholder3 = "Select...",
|
|
20832
|
-
small: small2,
|
|
20833
|
-
testId
|
|
20834
|
-
}) => {
|
|
20835
|
-
const containerRef = useRef(null);
|
|
20836
|
-
const isMounted = useRef(true);
|
|
20837
|
-
useEffect(() => {
|
|
20838
|
-
return () => {
|
|
20839
|
-
isMounted.current = false;
|
|
20840
|
-
};
|
|
20841
|
-
}, []);
|
|
20842
|
-
const isMulti2 = Array.isArray(selectedOptions);
|
|
20843
|
-
const hasSelectedValues = isMulti2 ? selectedOptions.length > 0 : !!selectedOptions;
|
|
20844
|
-
const inputSize = searchValue ? searchValue.length + 1 : 1;
|
|
20845
|
-
const getMultiOptionsWidth = () => {
|
|
20846
|
-
var _a2, _b;
|
|
20847
|
-
const containerWidth = ((_a2 = containerRef.current) == null ? void 0 : _a2.offsetWidth) || 0;
|
|
20848
|
-
const inputWidth = ((_b = inputRef.current) == null ? void 0 : _b.offsetWidth) || 0;
|
|
20849
|
-
return containerWidth - inputWidth;
|
|
20850
|
-
};
|
|
20851
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$m.triggerInputContainer, ref: containerRef, children: [
|
|
20852
|
-
!hasSelectedValues ? /* @__PURE__ */ jsx("span", { className: styles$m.placeHolder, children: !(searchValue == null ? void 0 : searchValue.length) ? placeholder3 : "" }) : isMulti2 ? /* @__PURE__ */ jsx(
|
|
20853
|
-
MultiSelectedOptions,
|
|
20854
|
-
{
|
|
20855
|
-
selectedOptions,
|
|
20856
|
-
small: small2,
|
|
20857
|
-
width: getMultiOptionsWidth(),
|
|
20858
|
-
testId
|
|
20859
|
-
}
|
|
20860
|
-
) : /* @__PURE__ */ jsx(
|
|
20861
|
-
"span",
|
|
20862
|
-
{
|
|
20863
|
-
className: styles$m.selectedSingleValue,
|
|
20864
|
-
"data-testid": testId && `${testId}-value`,
|
|
20865
|
-
children: !(searchValue == null ? void 0 : searchValue.length) ? selectedOptions == null ? void 0 : selectedOptions.label : ""
|
|
20866
|
-
}
|
|
20867
|
-
),
|
|
20868
|
-
searchable ? /* @__PURE__ */ jsx(
|
|
20869
|
-
"input",
|
|
20870
|
-
{
|
|
20871
|
-
tabIndex: -1,
|
|
20872
|
-
ref: inputRef,
|
|
20873
|
-
size: inputSize,
|
|
20874
|
-
className: styles$m.input,
|
|
20875
|
-
value: searchValue,
|
|
20876
|
-
onChange: (evt) => onChange(evt.target.value),
|
|
20877
|
-
"data-error": error2 || null,
|
|
20878
|
-
"data-testid": testId && `${testId}-input`
|
|
20879
|
-
}
|
|
20880
|
-
) : null
|
|
20881
|
-
] });
|
|
20882
|
-
};
|
|
20883
|
-
const Trigger = ({
|
|
20884
|
-
selectedOptions,
|
|
20885
|
-
searchValue,
|
|
20886
|
-
searchable,
|
|
20887
|
-
clearable,
|
|
20888
|
-
onClickTrigger,
|
|
20889
|
-
element,
|
|
20890
|
-
error: error2,
|
|
20891
|
-
warning: warning2,
|
|
20892
|
-
tooltip: tooltip2,
|
|
20893
|
-
small: small2,
|
|
20894
|
-
isInTable: isInTable2,
|
|
20895
|
-
disabled: disabled2,
|
|
20896
|
-
onChangeSearch,
|
|
20897
|
-
onClickDeselect,
|
|
20898
|
-
onClickClear,
|
|
20899
|
-
tabIndex,
|
|
20900
|
-
isOpen: isOpen2,
|
|
20901
|
-
triggerRef,
|
|
20902
|
-
clearAllIsFocused,
|
|
20903
|
-
focusedSelectedOptionIndex,
|
|
20904
|
-
onFocus,
|
|
20905
|
-
onBlur,
|
|
20906
|
-
groupOrder,
|
|
20907
|
-
maxTooltipWidth,
|
|
20908
|
-
placeholder: placeholder3,
|
|
20909
|
-
right: right2,
|
|
20910
|
-
testId
|
|
20911
|
-
}) => {
|
|
20912
|
-
var _a2;
|
|
20913
|
-
const [inputRef, setInputFocus] = useFocus();
|
|
20914
|
-
const isMounted = useRef(true);
|
|
20915
|
-
useEffect(() => {
|
|
20916
|
-
return () => {
|
|
20917
|
-
isMounted.current = false;
|
|
20918
|
-
};
|
|
20919
|
-
}, []);
|
|
20920
|
-
const hasSelection2 = Array.isArray(selectedOptions) ? selectedOptions.length > 0 && ((_a2 = selectedOptions[0]) == null ? void 0 : _a2.value) : selectedOptions == null ? void 0 : selectedOptions.value;
|
|
20921
|
-
const canClear = clearable && hasSelection2;
|
|
20922
|
-
const order2 = (() => {
|
|
20923
|
-
if (groupOrder) {
|
|
20924
|
-
switch (groupOrder) {
|
|
20925
|
-
case GroupOrder.FIRST:
|
|
20926
|
-
return styles$m.groupOrderFirst;
|
|
20927
|
-
case GroupOrder.LAST:
|
|
20928
|
-
return styles$m.groupOrderLast;
|
|
20929
|
-
default:
|
|
20930
|
-
return styles$m.groupOrderMiddle;
|
|
20931
|
-
}
|
|
20932
|
-
}
|
|
20933
|
-
return "";
|
|
20934
|
-
})();
|
|
20935
|
-
const selectedOptionsWithDetails = !Array.isArray(selectedOptions) && (selectedOptions == null ? void 0 : selectedOptions.details) ? {
|
|
20936
|
-
...selectedOptions,
|
|
20937
|
-
label: /* @__PURE__ */ jsxs("div", { className: cx$2(styles$m.detailedLabel), children: [
|
|
20938
|
-
/* @__PURE__ */ jsx(Text, { children: selectedOptions.label }),
|
|
20939
|
-
/* @__PURE__ */ jsx(Text, { muted: true, children: selectedOptions.details })
|
|
20940
|
-
] })
|
|
20941
|
-
} : selectedOptions;
|
|
20942
|
-
const triggerInput = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
20943
|
-
element,
|
|
20944
|
-
/* @__PURE__ */ jsxs(
|
|
20945
|
-
"div",
|
|
20946
|
-
{
|
|
20947
|
-
ref: triggerRef,
|
|
20948
|
-
tabIndex,
|
|
20949
|
-
className: cx$2(
|
|
20950
|
-
styles$m.trigger,
|
|
20951
|
-
isOpen2 ? styles$m.isOpen : "",
|
|
20952
|
-
disabled2 ? styles$m.disabled : "",
|
|
20953
|
-
small2 ? styles$m.small : "",
|
|
20954
|
-
isInTable2 ? styles$m.isInTable : "",
|
|
20955
|
-
right2 ? styles$m.right : "",
|
|
20956
|
-
order2
|
|
20957
|
-
),
|
|
20958
|
-
onClick: (evt) => {
|
|
20959
|
-
onClickTrigger(evt);
|
|
20960
|
-
if (typeof setInputFocus === "function") {
|
|
20961
|
-
requestAnimationFrame(() => {
|
|
20962
|
-
if (isMounted == null ? void 0 : isMounted.current) {
|
|
20963
|
-
setInputFocus();
|
|
20964
|
-
}
|
|
20965
|
-
});
|
|
20966
|
-
}
|
|
20967
|
-
},
|
|
20968
|
-
onFocus,
|
|
20969
|
-
onBlur,
|
|
20970
|
-
"data-error": error2 || null,
|
|
20971
|
-
"data-warning": warning2 || null,
|
|
20972
|
-
"data-testid": testId,
|
|
20973
|
-
children: [
|
|
20974
|
-
/* @__PURE__ */ jsx(
|
|
20975
|
-
Input,
|
|
20976
|
-
{
|
|
20977
|
-
selectedOptions: selectedOptionsWithDetails,
|
|
20978
|
-
placeholder: placeholder3,
|
|
20979
|
-
searchable,
|
|
20980
|
-
searchValue,
|
|
20981
|
-
inputRef,
|
|
20982
|
-
onChange: onChangeSearch,
|
|
20983
|
-
error: error2,
|
|
20984
|
-
small: small2,
|
|
20985
|
-
testId
|
|
20986
|
-
}
|
|
20987
|
-
),
|
|
20988
|
-
/* @__PURE__ */ jsx("span", { className: styles$m.icons, children: canClear ? /* @__PURE__ */ jsx(
|
|
20989
|
-
"span",
|
|
20990
|
-
{
|
|
20991
|
-
className: cx$2(
|
|
20992
|
-
styles$m.clearAll,
|
|
20993
|
-
clearAllIsFocused ? styles$m.focus : ""
|
|
20994
|
-
),
|
|
20995
|
-
onClick: (evt) => {
|
|
20996
|
-
evt.stopPropagation();
|
|
20997
|
-
if (onClickClear) {
|
|
20998
|
-
onClickClear(evt);
|
|
20999
|
-
}
|
|
21000
|
-
},
|
|
21001
|
-
"data-testid": testId && `${testId}-clear`,
|
|
21002
|
-
children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CLOSE })
|
|
21003
|
-
}
|
|
21004
|
-
) : /* @__PURE__ */ jsx("span", { className: cx$2(styles$m.iconOpen), children: /* @__PURE__ */ jsx(Icon, { icon: "chevron down" }) }) })
|
|
21005
|
-
]
|
|
21006
|
-
}
|
|
21007
|
-
)
|
|
21008
|
-
] });
|
|
21009
|
-
return /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(
|
|
21010
|
-
Tooltip,
|
|
21011
|
-
{
|
|
21012
|
-
error: !!error2,
|
|
21013
|
-
warning: !!warning2,
|
|
21014
|
-
text: tooltip2 || error2 || warning2,
|
|
21015
|
-
enabled: tooltip2 && isStringNumberOrNode(tooltip2) || error2 && isStringNumberOrNode(error2) || warning2 && isStringNumberOrNode(warning2) || false,
|
|
21016
|
-
maxWidth: maxTooltipWidth,
|
|
21017
|
-
placement: "bottom-center",
|
|
21018
|
-
children: triggerInput
|
|
21019
|
-
}
|
|
21020
|
-
) });
|
|
21021
|
-
};
|
|
21022
19981
|
var ReducerAction = /* @__PURE__ */ ((ReducerAction2) => {
|
|
21023
19982
|
ReducerAction2["SET_VISIBLE_OPTIONS"] = "SET_VISIBLE_OPTIONS";
|
|
21024
19983
|
ReducerAction2["RESET_LAYER_FOCUS"] = "RESET_LAYER_FOCUS";
|
|
@@ -21050,17 +20009,6 @@ const initialLayerFocus = (options, firstSelectedOptionIndex) => {
|
|
|
21050
20009
|
current: layerFocusOptions[layerFocusIndex]
|
|
21051
20010
|
};
|
|
21052
20011
|
};
|
|
21053
|
-
const nextLayerFocus = (direction, layerFocus) => {
|
|
21054
|
-
const sign = direction === "up" ? -1 : 1;
|
|
21055
|
-
const increment = layerFocus.currentIndex + sign;
|
|
21056
|
-
const nextIndex = (increment < 0 ? layerFocus.options.length - 1 : increment) % layerFocus.options.length;
|
|
21057
|
-
const next2 = layerFocus.options[nextIndex];
|
|
21058
|
-
return {
|
|
21059
|
-
...layerFocus,
|
|
21060
|
-
currentIndex: nextIndex,
|
|
21061
|
-
current: next2
|
|
21062
|
-
};
|
|
21063
|
-
};
|
|
21064
20012
|
const nextTriggerFocus = (direction, selectedOptions, triggerFocus) => {
|
|
21065
20013
|
const sign = direction === "left" ? -1 : 1;
|
|
21066
20014
|
const nextOptions = selectedOptions && selectedOptions.length ? [
|
|
@@ -21071,12 +20019,12 @@ const nextTriggerFocus = (direction, selectedOptions, triggerFocus) => {
|
|
|
21071
20019
|
const increment = triggerFocus.currentIndex + sign;
|
|
21072
20020
|
const nextIndex = (increment < 0 ? nextOptions.length - 1 : increment) % nextOptions.length;
|
|
21073
20021
|
const next2 = nextOptions[nextIndex];
|
|
21074
|
-
const
|
|
20022
|
+
const clearAll = next2 === "clearAll";
|
|
21075
20023
|
return {
|
|
21076
20024
|
options: nextOptions,
|
|
21077
20025
|
currentIndex: nextIndex,
|
|
21078
20026
|
currentOption: next2,
|
|
21079
|
-
clearAll
|
|
20027
|
+
clearAll
|
|
21080
20028
|
};
|
|
21081
20029
|
};
|
|
21082
20030
|
const blurTriggerFocus = () => initialTriggerFocus;
|
|
@@ -21171,25 +20119,6 @@ const reducer = (state, action2) => {
|
|
|
21171
20119
|
return state;
|
|
21172
20120
|
}
|
|
21173
20121
|
};
|
|
21174
|
-
const placementOptions = {
|
|
21175
|
-
auto: true,
|
|
21176
|
-
possiblePlacements: ["bottom-start", "top-start"],
|
|
21177
|
-
placement: "bottom-start",
|
|
21178
|
-
preferX: "right",
|
|
21179
|
-
preferY: "bottom"
|
|
21180
|
-
};
|
|
21181
|
-
var ActionTypes = /* @__PURE__ */ ((ActionTypes2) => {
|
|
21182
|
-
ActionTypes2["CLOSE_LAYER"] = "CLOSE_LAYER";
|
|
21183
|
-
ActionTypes2["OPEN_LAYER"] = "OPEN_LAYER";
|
|
21184
|
-
ActionTypes2["SET_VISIBLE_OPTIONS"] = "SET_VISIBLE_OPTIONS";
|
|
21185
|
-
ActionTypes2["CLEAR_SEARCH"] = "CLEAR_SEARCH";
|
|
21186
|
-
ActionTypes2["RESET_LAYER_FOCUS"] = "RESET_LAYER_FOCUS";
|
|
21187
|
-
ActionTypes2["FOCUS_LAYER_OPTIONS"] = "FOCUS_LAYER_OPTIONS";
|
|
21188
|
-
ActionTypes2["BLUR_TRIGGER_INPUTS"] = "BLUR_TRIGGER_INPUTS";
|
|
21189
|
-
ActionTypes2["FOCUS_TRIGGER_INPUTS"] = "FOCUS_TRIGGER_INPUTS";
|
|
21190
|
-
ActionTypes2["ON_CHANGE_SEARCH"] = "ON_CHANGE_SEARCH";
|
|
21191
|
-
return ActionTypes2;
|
|
21192
|
-
})(ActionTypes || {});
|
|
21193
20122
|
var EventKey = /* @__PURE__ */ ((EventKey2) => {
|
|
21194
20123
|
EventKey2["RIGHT"] = "right";
|
|
21195
20124
|
EventKey2["LEFT"] = "left";
|
|
@@ -21200,253 +20129,6 @@ var EventKey = /* @__PURE__ */ ((EventKey2) => {
|
|
|
21200
20129
|
EventKey2["TAB"] = "tab";
|
|
21201
20130
|
return EventKey2;
|
|
21202
20131
|
})(EventKey || {});
|
|
21203
|
-
const useCustomSelectLogic = ({
|
|
21204
|
-
state,
|
|
21205
|
-
dispatch,
|
|
21206
|
-
options,
|
|
21207
|
-
setTriggerFocus,
|
|
21208
|
-
disabled: disabled2,
|
|
21209
|
-
disabledContext,
|
|
21210
|
-
onCreate,
|
|
21211
|
-
onChange,
|
|
21212
|
-
selectedOptions,
|
|
21213
|
-
width: width2,
|
|
21214
|
-
small: small2,
|
|
21215
|
-
isFontLoaded,
|
|
21216
|
-
placeholder: placeholder3,
|
|
21217
|
-
firstSelectedOptionIndex,
|
|
21218
|
-
createAble,
|
|
21219
|
-
listRef,
|
|
21220
|
-
autoLayerWidth,
|
|
21221
|
-
isMounted
|
|
21222
|
-
}) => {
|
|
21223
|
-
const safeDispatch = (action2) => {
|
|
21224
|
-
if (isMounted.current) {
|
|
21225
|
-
dispatch(action2);
|
|
21226
|
-
}
|
|
21227
|
-
};
|
|
21228
|
-
const closeLayer = () => {
|
|
21229
|
-
if (state.isLayerOpen) {
|
|
21230
|
-
safeDispatch({ type: ActionTypes.CLOSE_LAYER });
|
|
21231
|
-
}
|
|
21232
|
-
setTriggerFocus();
|
|
21233
|
-
};
|
|
21234
|
-
const openLayer = () => safeDispatch({ type: ActionTypes.OPEN_LAYER });
|
|
21235
|
-
const isFirstRun = useRef(true);
|
|
21236
|
-
useEffect(() => {
|
|
21237
|
-
console.log("isFirstRun mounted");
|
|
21238
|
-
if (isFirstRun.current) {
|
|
21239
|
-
isFirstRun.current = false;
|
|
21240
|
-
} else {
|
|
21241
|
-
safeDispatch({ type: ActionTypes.SET_VISIBLE_OPTIONS, options });
|
|
21242
|
-
}
|
|
21243
|
-
return () => {
|
|
21244
|
-
console.log("isFirstRun unmounted");
|
|
21245
|
-
};
|
|
21246
|
-
}, [options]);
|
|
21247
|
-
const onSelectOption = (evt, option2, close2) => {
|
|
21248
|
-
if (!(disabled2 || disabledContext)) {
|
|
21249
|
-
if (close2) {
|
|
21250
|
-
close2();
|
|
21251
|
-
}
|
|
21252
|
-
if (option2) {
|
|
21253
|
-
if (option2.createAble && onCreate) {
|
|
21254
|
-
onCreate(option2.value);
|
|
21255
|
-
} else {
|
|
21256
|
-
if (!option2.disabled) {
|
|
21257
|
-
if (Array.isArray(selectedOptions)) {
|
|
21258
|
-
const alreadySelected = selectedOptions.some(
|
|
21259
|
-
(selectedOption) => selectedOption.label === option2.label
|
|
21260
|
-
);
|
|
21261
|
-
if (!alreadySelected) {
|
|
21262
|
-
const newSelectedOptions = [...selectedOptions, option2];
|
|
21263
|
-
if (onChange) {
|
|
21264
|
-
onChange(evt, newSelectedOptions);
|
|
21265
|
-
}
|
|
21266
|
-
} else {
|
|
21267
|
-
const newSelectedOptions = selectedOptions.filter(
|
|
21268
|
-
(opt) => opt.label !== option2.label
|
|
21269
|
-
);
|
|
21270
|
-
if (onChange) {
|
|
21271
|
-
onChange(evt, newSelectedOptions);
|
|
21272
|
-
}
|
|
21273
|
-
}
|
|
21274
|
-
} else {
|
|
21275
|
-
if (onChange) {
|
|
21276
|
-
onChange(evt, option2);
|
|
21277
|
-
}
|
|
21278
|
-
}
|
|
21279
|
-
}
|
|
21280
|
-
}
|
|
21281
|
-
}
|
|
21282
|
-
safeDispatch({ type: ActionTypes.CLEAR_SEARCH, options });
|
|
21283
|
-
setTriggerFocus();
|
|
21284
|
-
}
|
|
21285
|
-
};
|
|
21286
|
-
const getTriggerWidth = useCallback$1(() => {
|
|
21287
|
-
if (!width2) return "100%";
|
|
21288
|
-
if (width2 !== "auto") return width2;
|
|
21289
|
-
return getWidestOptionWidth(options, small2, isFontLoaded, placeholder3);
|
|
21290
|
-
}, [options, isFontLoaded]);
|
|
21291
|
-
const getLayerWidth = useCallback$1(
|
|
21292
|
-
(triggerBounds2) => {
|
|
21293
|
-
if (!autoLayerWidth) return triggerBounds2 == null ? void 0 : triggerBounds2.width;
|
|
21294
|
-
const layerWidth = Math.max(
|
|
21295
|
-
getWidestOptionWidth(options, small2, isFontLoaded, placeholder3),
|
|
21296
|
-
triggerBounds2 == null ? void 0 : triggerBounds2.width
|
|
21297
|
-
);
|
|
21298
|
-
return layerWidth;
|
|
21299
|
-
},
|
|
21300
|
-
[options, isFontLoaded]
|
|
21301
|
-
);
|
|
21302
|
-
const { renderLayer, layerProps, triggerProps, triggerBounds } = useLayer({
|
|
21303
|
-
isOpen: (state == null ? void 0 : state.isLayerOpen) ?? false,
|
|
21304
|
-
overflowContainer: true,
|
|
21305
|
-
...placementOptions,
|
|
21306
|
-
ResizeObserver,
|
|
21307
|
-
onOutsideClick: closeLayer,
|
|
21308
|
-
onParentClose: closeLayer
|
|
21309
|
-
});
|
|
21310
|
-
const onClickTrigger = () => {
|
|
21311
|
-
if (disabled2 || disabledContext) {
|
|
21312
|
-
return;
|
|
21313
|
-
}
|
|
21314
|
-
if (state.isLayerOpen) {
|
|
21315
|
-
closeLayer();
|
|
21316
|
-
return;
|
|
21317
|
-
}
|
|
21318
|
-
safeDispatch({
|
|
21319
|
-
type: ActionTypes.RESET_LAYER_FOCUS,
|
|
21320
|
-
options,
|
|
21321
|
-
firstSelectedOptionIndex
|
|
21322
|
-
});
|
|
21323
|
-
openLayer();
|
|
21324
|
-
};
|
|
21325
|
-
const isFirstRender = useRef(true);
|
|
21326
|
-
useEffect(() => {
|
|
21327
|
-
console.log("isFirstRender mounted");
|
|
21328
|
-
if (isFirstRender.current) {
|
|
21329
|
-
isFirstRender.current = false;
|
|
21330
|
-
} else {
|
|
21331
|
-
if (!state.isLayerOpen) {
|
|
21332
|
-
safeDispatch({ type: ActionTypes.CLEAR_SEARCH, options });
|
|
21333
|
-
}
|
|
21334
|
-
}
|
|
21335
|
-
return () => {
|
|
21336
|
-
console.log("isFirstRender unmounted");
|
|
21337
|
-
};
|
|
21338
|
-
}, [state.isLayerOpen]);
|
|
21339
|
-
const onClickDeselectOption = (evt, options2) => {
|
|
21340
|
-
const newSelectedOptions = selectedOptions instanceof Array ? selectedOptions.filter((option2) => option2.value !== options2.value) : null;
|
|
21341
|
-
if (onChange) {
|
|
21342
|
-
onChange(evt, newSelectedOptions);
|
|
21343
|
-
}
|
|
21344
|
-
};
|
|
21345
|
-
const onClickClearAll = (evt) => {
|
|
21346
|
-
const newSelectedOptions = selectedOptions instanceof Array ? [] : { value: null };
|
|
21347
|
-
if (onChange) {
|
|
21348
|
-
onChange(evt, newSelectedOptions);
|
|
21349
|
-
}
|
|
21350
|
-
};
|
|
21351
|
-
const onChangeSearch = (value) => safeDispatch({
|
|
21352
|
-
type: ActionTypes.ON_CHANGE_SEARCH,
|
|
21353
|
-
options,
|
|
21354
|
-
value,
|
|
21355
|
-
createAble
|
|
21356
|
-
});
|
|
21357
|
-
const clickTrigger = () => {
|
|
21358
|
-
openLayer();
|
|
21359
|
-
safeDispatch({ type: ActionTypes.BLUR_TRIGGER_INPUTS });
|
|
21360
|
-
};
|
|
21361
|
-
const scrollToItem = (index2) => {
|
|
21362
|
-
if (listRef.current && Number.isInteger(index2)) {
|
|
21363
|
-
listRef.current.scrollToItem(index2);
|
|
21364
|
-
}
|
|
21365
|
-
};
|
|
21366
|
-
const focusNextLayerOption = (ICustomSelectDirection2) => {
|
|
21367
|
-
const next2 = nextLayerFocus(ICustomSelectDirection2, state.layerFocus);
|
|
21368
|
-
safeDispatch({
|
|
21369
|
-
type: ActionTypes.FOCUS_LAYER_OPTIONS,
|
|
21370
|
-
nextLayerFocus: next2
|
|
21371
|
-
});
|
|
21372
|
-
scrollToItem(next2.current);
|
|
21373
|
-
};
|
|
21374
|
-
const focusTriggerInputs = (ICustomSelectDirection2) => {
|
|
21375
|
-
safeDispatch({
|
|
21376
|
-
type: ActionTypes.FOCUS_TRIGGER_INPUTS,
|
|
21377
|
-
ICustomSelectDirection: ICustomSelectDirection2,
|
|
21378
|
-
selectedOptions
|
|
21379
|
-
});
|
|
21380
|
-
};
|
|
21381
|
-
const clearAll2 = (evt) => onClickClearAll(evt);
|
|
21382
|
-
const deselectIsFocused = selectedOptions && selectedOptions[state.triggerFocus.currentOption];
|
|
21383
|
-
const deselectOption = (evt) => {
|
|
21384
|
-
onClickDeselectOption(
|
|
21385
|
-
evt,
|
|
21386
|
-
selectedOptions[state.triggerFocus.currentOption]
|
|
21387
|
-
);
|
|
21388
|
-
};
|
|
21389
|
-
const selectOption = (evt) => {
|
|
21390
|
-
var _a2;
|
|
21391
|
-
onSelectOption(
|
|
21392
|
-
evt,
|
|
21393
|
-
(_a2 = state == null ? void 0 : state.visibleOptions) == null ? void 0 : _a2[state.layerFocus.current],
|
|
21394
|
-
closeLayer
|
|
21395
|
-
);
|
|
21396
|
-
};
|
|
21397
|
-
const clearAllIsFocused = state.triggerFocus.clearAll;
|
|
21398
|
-
const onKeyEvent = (key2, evt) => {
|
|
21399
|
-
switch (key2) {
|
|
21400
|
-
case EventKey.UP: {
|
|
21401
|
-
focusNextLayerOption(key2);
|
|
21402
|
-
break;
|
|
21403
|
-
}
|
|
21404
|
-
case EventKey.DOWN: {
|
|
21405
|
-
if (state.isLayerOpen) {
|
|
21406
|
-
focusNextLayerOption(key2);
|
|
21407
|
-
} else {
|
|
21408
|
-
clickTrigger();
|
|
21409
|
-
}
|
|
21410
|
-
break;
|
|
21411
|
-
}
|
|
21412
|
-
case EventKey.LEFT:
|
|
21413
|
-
case EventKey.RIGHT: {
|
|
21414
|
-
focusTriggerInputs(key2);
|
|
21415
|
-
break;
|
|
21416
|
-
}
|
|
21417
|
-
case EventKey.ENTER: {
|
|
21418
|
-
if (clearAllIsFocused) {
|
|
21419
|
-
clearAll2(evt);
|
|
21420
|
-
} else if (deselectIsFocused) {
|
|
21421
|
-
deselectOption(evt);
|
|
21422
|
-
} else {
|
|
21423
|
-
selectOption(evt);
|
|
21424
|
-
}
|
|
21425
|
-
break;
|
|
21426
|
-
}
|
|
21427
|
-
case EventKey.ESC: {
|
|
21428
|
-
closeLayer();
|
|
21429
|
-
break;
|
|
21430
|
-
}
|
|
21431
|
-
}
|
|
21432
|
-
};
|
|
21433
|
-
return {
|
|
21434
|
-
getTriggerWidth,
|
|
21435
|
-
onKeyEvent,
|
|
21436
|
-
clearAllIsFocused,
|
|
21437
|
-
triggerProps,
|
|
21438
|
-
onClickTrigger,
|
|
21439
|
-
onChangeSearch,
|
|
21440
|
-
onClickDeselectOption,
|
|
21441
|
-
onClickClearAll,
|
|
21442
|
-
renderLayer,
|
|
21443
|
-
layerProps,
|
|
21444
|
-
closeLayer,
|
|
21445
|
-
onSelectOption,
|
|
21446
|
-
getLayerWidth,
|
|
21447
|
-
triggerBounds
|
|
21448
|
-
};
|
|
21449
|
-
};
|
|
21450
20132
|
const CustomSelect = (props) => {
|
|
21451
20133
|
const {
|
|
21452
20134
|
multi: isMulti2 = false,
|
|
@@ -21475,12 +20157,11 @@ const CustomSelect = (props) => {
|
|
|
21475
20157
|
right: right2 = false,
|
|
21476
20158
|
testId = void 0
|
|
21477
20159
|
} = props;
|
|
21478
|
-
|
|
21479
|
-
|
|
21480
|
-
|
|
21481
|
-
|
|
21482
|
-
|
|
21483
|
-
const [state, dispatch] = useReducer(
|
|
20160
|
+
useContext(DisabledContext);
|
|
20161
|
+
useRef(null);
|
|
20162
|
+
useFocus();
|
|
20163
|
+
useFontsReady();
|
|
20164
|
+
useReducer(
|
|
21484
20165
|
reducer,
|
|
21485
20166
|
// @ts-ignore: write explicit reason: write explicit reason
|
|
21486
20167
|
{ options, firstSelectedOptionIndex },
|
|
@@ -21493,103 +20174,7 @@ const CustomSelect = (props) => {
|
|
|
21493
20174
|
isLayerOpen: false
|
|
21494
20175
|
})
|
|
21495
20176
|
);
|
|
21496
|
-
|
|
21497
|
-
useEffect(() => {
|
|
21498
|
-
return () => {
|
|
21499
|
-
isMounted.current = false;
|
|
21500
|
-
};
|
|
21501
|
-
}, []);
|
|
21502
|
-
const {
|
|
21503
|
-
getTriggerWidth,
|
|
21504
|
-
onKeyEvent,
|
|
21505
|
-
clearAllIsFocused,
|
|
21506
|
-
triggerProps,
|
|
21507
|
-
onClickTrigger,
|
|
21508
|
-
onChangeSearch,
|
|
21509
|
-
onClickDeselectOption,
|
|
21510
|
-
onClickClearAll,
|
|
21511
|
-
renderLayer,
|
|
21512
|
-
layerProps,
|
|
21513
|
-
closeLayer,
|
|
21514
|
-
onSelectOption,
|
|
21515
|
-
getLayerWidth,
|
|
21516
|
-
triggerBounds
|
|
21517
|
-
} = useCustomSelectLogic({
|
|
21518
|
-
...props,
|
|
21519
|
-
state,
|
|
21520
|
-
dispatch,
|
|
21521
|
-
setTriggerFocus,
|
|
21522
|
-
disabledContext,
|
|
21523
|
-
isFontLoaded,
|
|
21524
|
-
createAble,
|
|
21525
|
-
listRef,
|
|
21526
|
-
isMounted
|
|
21527
|
-
});
|
|
21528
|
-
return /* @__PURE__ */ jsx("div", { style: { width: getTriggerWidth() }, children: /* @__PURE__ */ jsxs(
|
|
21529
|
-
KeyboardEventHandler,
|
|
21530
|
-
{
|
|
21531
|
-
handleKeys: Object.values(EventKey),
|
|
21532
|
-
onKeyEvent,
|
|
21533
|
-
children: [
|
|
21534
|
-
/* @__PURE__ */ jsx(
|
|
21535
|
-
Trigger,
|
|
21536
|
-
{
|
|
21537
|
-
selectedOptions,
|
|
21538
|
-
searchValue: state.searchValue,
|
|
21539
|
-
isOpen: state.isLayerOpen,
|
|
21540
|
-
focusedSelectedOptionIndex: state.triggerFocus.currentOption,
|
|
21541
|
-
clearAllIsFocused,
|
|
21542
|
-
searchable,
|
|
21543
|
-
triggerRef: mergeRefs(triggerRef, triggerProps.ref),
|
|
21544
|
-
error: error2,
|
|
21545
|
-
warning: warning2,
|
|
21546
|
-
tooltip: tooltip2,
|
|
21547
|
-
small: small2,
|
|
21548
|
-
isInTable: isInTable2,
|
|
21549
|
-
disabled: disabled2 || disabledContext,
|
|
21550
|
-
clearable,
|
|
21551
|
-
tabIndex,
|
|
21552
|
-
onClickTrigger,
|
|
21553
|
-
onChangeSearch,
|
|
21554
|
-
onClickDeselect: onClickDeselectOption,
|
|
21555
|
-
onClickClear: onClickClearAll,
|
|
21556
|
-
onFocus,
|
|
21557
|
-
onBlur,
|
|
21558
|
-
groupOrder,
|
|
21559
|
-
maxTooltipWidth,
|
|
21560
|
-
placeholder: placeholder3,
|
|
21561
|
-
right: right2,
|
|
21562
|
-
testId
|
|
21563
|
-
}
|
|
21564
|
-
),
|
|
21565
|
-
state.isLayerOpen && renderLayer(
|
|
21566
|
-
/* @__PURE__ */ jsx("div", { ...layerProps, className: styles$n.layerContainer, children: /* @__PURE__ */ jsx(
|
|
21567
|
-
Layer,
|
|
21568
|
-
{
|
|
21569
|
-
listRef,
|
|
21570
|
-
isMulti: isMulti2,
|
|
21571
|
-
sections: state.visibleOptions,
|
|
21572
|
-
selectedOptions,
|
|
21573
|
-
onSelectOption: (evt, option2) => {
|
|
21574
|
-
const close2 = !isMulti2 ? closeLayer : void 0;
|
|
21575
|
-
onSelectOption(evt, option2, close2);
|
|
21576
|
-
},
|
|
21577
|
-
closeLayer: () => {
|
|
21578
|
-
if (closeOnOptionActionClick) {
|
|
21579
|
-
closeLayer();
|
|
21580
|
-
}
|
|
21581
|
-
},
|
|
21582
|
-
width: getLayerWidth(triggerBounds),
|
|
21583
|
-
small: small2,
|
|
21584
|
-
focusedOptionIndex: state.layerFocus.current,
|
|
21585
|
-
firstSelectedOptionIndex: firstSelectedOptionIndex ?? 0,
|
|
21586
|
-
testId: testId && `${testId}-layer`
|
|
21587
|
-
}
|
|
21588
|
-
) })
|
|
21589
|
-
)
|
|
21590
|
-
]
|
|
21591
|
-
}
|
|
21592
|
-
) });
|
|
20177
|
+
return /* @__PURE__ */ jsx(Fragment$1, {});
|
|
21593
20178
|
};
|
|
21594
20179
|
const isEmptyNullOrUndefined = (value) => value === null || value === void 0 || value === "";
|
|
21595
20180
|
const isMulti = (selectedOptions) => selectedOptions instanceof Array;
|
|
@@ -21890,7 +20475,7 @@ const Pagination = ({ pagination }) => {
|
|
|
21890
20475
|
),
|
|
21891
20476
|
/* @__PURE__ */ jsxs(InputGroup, { small: small2, width: "auto", children: [
|
|
21892
20477
|
/* @__PURE__ */ jsx(
|
|
21893
|
-
Input
|
|
20478
|
+
Input,
|
|
21894
20479
|
{
|
|
21895
20480
|
right: true,
|
|
21896
20481
|
value: unvalidatedSelectedPage,
|
|
@@ -21953,7 +20538,7 @@ const Popover = ({
|
|
|
21953
20538
|
onToggle: externalOnToggle
|
|
21954
20539
|
}) => {
|
|
21955
20540
|
const disabledContext = useContext(DisabledContext);
|
|
21956
|
-
const [
|
|
20541
|
+
const [isOpen, setOpen] = externalIsOpen !== void 0 ? [externalIsOpen, externalOnToggle] : useState(false);
|
|
21957
20542
|
const close2 = () => {
|
|
21958
20543
|
if (!disabled2 && !disabledContext) {
|
|
21959
20544
|
if (setOpen) {
|
|
@@ -21964,7 +20549,7 @@ const Popover = ({
|
|
|
21964
20549
|
const toggle2 = () => {
|
|
21965
20550
|
if (!(disabled2 || disabledContext)) {
|
|
21966
20551
|
if (setOpen) {
|
|
21967
|
-
setOpen(!
|
|
20552
|
+
setOpen(!isOpen);
|
|
21968
20553
|
}
|
|
21969
20554
|
}
|
|
21970
20555
|
};
|
|
@@ -21974,7 +20559,7 @@ const Popover = ({
|
|
|
21974
20559
|
}
|
|
21975
20560
|
}, [disabled2, disabledContext]);
|
|
21976
20561
|
const { renderLayer, arrowProps, layerProps, triggerProps } = useLayer({
|
|
21977
|
-
isOpen
|
|
20562
|
+
isOpen,
|
|
21978
20563
|
placement,
|
|
21979
20564
|
auto: true,
|
|
21980
20565
|
triggerOffset: 6,
|
|
@@ -21984,7 +20569,7 @@ const Popover = ({
|
|
|
21984
20569
|
});
|
|
21985
20570
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
21986
20571
|
/* @__PURE__ */ jsx("div", { ref: triggerProps.ref, onClick: toggle2, "data-testid": testId, children }),
|
|
21987
|
-
|
|
20572
|
+
isOpen && renderLayer(
|
|
21988
20573
|
/* @__PURE__ */ jsxs(
|
|
21989
20574
|
"div",
|
|
21990
20575
|
{
|
|
@@ -22261,11 +20846,11 @@ var makeError = { exports: {} };
|
|
|
22261
20846
|
});
|
|
22262
20847
|
};
|
|
22263
20848
|
}
|
|
22264
|
-
function BaseError(
|
|
22265
|
-
if (
|
|
20849
|
+
function BaseError(message) {
|
|
20850
|
+
if (message !== void 0) {
|
|
22266
20851
|
defineProperty2(this, "message", {
|
|
22267
20852
|
configurable: true,
|
|
22268
|
-
value:
|
|
20853
|
+
value: message,
|
|
22269
20854
|
writable: true
|
|
22270
20855
|
});
|
|
22271
20856
|
}
|
|
@@ -22921,14 +21506,14 @@ function debounce$1(delay, atBegin, callback) {
|
|
|
22921
21506
|
function Cast(value) {
|
|
22922
21507
|
return value;
|
|
22923
21508
|
}
|
|
22924
|
-
function assertGet(value, key2,
|
|
21509
|
+
function assertGet(value, key2, message) {
|
|
22925
21510
|
const prop = value[key2];
|
|
22926
|
-
assert(!isUndefined(prop),
|
|
21511
|
+
assert(!isUndefined(prop), message);
|
|
22927
21512
|
return prop;
|
|
22928
21513
|
}
|
|
22929
|
-
function assert(testValue,
|
|
21514
|
+
function assert(testValue, message) {
|
|
22930
21515
|
if (!testValue) {
|
|
22931
|
-
throw new AssertionError(
|
|
21516
|
+
throw new AssertionError(message);
|
|
22932
21517
|
}
|
|
22933
21518
|
}
|
|
22934
21519
|
var AssertionError = class extends makeErrorExports.BaseError {
|
|
@@ -23203,8 +21788,8 @@ function isErrorConstant(code) {
|
|
|
23203
21788
|
return isString$2(code) && includes(values(ErrorConstant), code);
|
|
23204
21789
|
}
|
|
23205
21790
|
function createErrorMessage(code, extraMessage) {
|
|
23206
|
-
const
|
|
23207
|
-
const prefix2 =
|
|
21791
|
+
const message = errorMessageMap[code];
|
|
21792
|
+
const prefix2 = message ? `${message}
|
|
23208
21793
|
|
|
23209
21794
|
` : "";
|
|
23210
21795
|
const customMessage = extraMessage ? `${extraMessage}
|
|
@@ -23216,9 +21801,9 @@ var RemirrorError = class extends makeErrorExports.BaseError {
|
|
|
23216
21801
|
/**
|
|
23217
21802
|
* The constructor is intentionally kept private to prevent being extended from.
|
|
23218
21803
|
*/
|
|
23219
|
-
constructor({ code, message
|
|
21804
|
+
constructor({ code, message, disableLogging = false } = {}) {
|
|
23220
21805
|
const errorCode = isErrorConstant(code) ? code : ErrorConstant.CUSTOM;
|
|
23221
|
-
super(createErrorMessage(errorCode,
|
|
21806
|
+
super(createErrorMessage(errorCode, message));
|
|
23222
21807
|
this.errorCode = errorCode;
|
|
23223
21808
|
this.url = `${ERROR_INFORMATION_URL}#${errorCode.toLowerCase()}`;
|
|
23224
21809
|
if (!disableLogging) {
|
|
@@ -25939,16 +24524,16 @@ class NodeContext {
|
|
|
25939
24524
|
}
|
|
25940
24525
|
}
|
|
25941
24526
|
class ParseContext {
|
|
25942
|
-
constructor(parser2, options,
|
|
24527
|
+
constructor(parser2, options, isOpen) {
|
|
25943
24528
|
this.parser = parser2;
|
|
25944
24529
|
this.options = options;
|
|
25945
|
-
this.isOpen =
|
|
24530
|
+
this.isOpen = isOpen;
|
|
25946
24531
|
this.open = 0;
|
|
25947
24532
|
let topNode = options.topNode, topContext;
|
|
25948
|
-
let topOptions = wsOptionsFor(null, options.preserveWhitespace, 0) | (
|
|
24533
|
+
let topOptions = wsOptionsFor(null, options.preserveWhitespace, 0) | (isOpen ? OPT_OPEN_LEFT : 0);
|
|
25949
24534
|
if (topNode)
|
|
25950
24535
|
topContext = new NodeContext(topNode.type, topNode.attrs, Mark$1.none, true, options.topMatch || topNode.type.contentMatch, topOptions);
|
|
25951
|
-
else if (
|
|
24536
|
+
else if (isOpen)
|
|
25952
24537
|
topContext = new NodeContext(null, null, Mark$1.none, true, null, topOptions);
|
|
25953
24538
|
else
|
|
25954
24539
|
topContext = new NodeContext(parser2.schema.topNodeType, null, Mark$1.none, true, null, topOptions);
|
|
@@ -26890,8 +25475,8 @@ class StepResult {
|
|
|
26890
25475
|
/**
|
|
26891
25476
|
Create a failed step result.
|
|
26892
25477
|
*/
|
|
26893
|
-
static fail(
|
|
26894
|
-
return new StepResult(null,
|
|
25478
|
+
static fail(message) {
|
|
25479
|
+
return new StepResult(null, message);
|
|
26895
25480
|
}
|
|
26896
25481
|
/**
|
|
26897
25482
|
Call [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) with the given
|
|
@@ -28037,8 +26622,8 @@ class DocAttrStep extends Step {
|
|
|
28037
26622
|
Step.jsonID("docAttr", DocAttrStep);
|
|
28038
26623
|
let TransformError = class extends Error {
|
|
28039
26624
|
};
|
|
28040
|
-
TransformError = function TransformError2(
|
|
28041
|
-
let err = Error.call(this,
|
|
26625
|
+
TransformError = function TransformError2(message) {
|
|
26626
|
+
let err = Error.call(this, message);
|
|
28042
26627
|
err.__proto__ = TransformError2.prototype;
|
|
28043
26628
|
return err;
|
|
28044
26629
|
};
|
|
@@ -32438,10 +31023,10 @@ editHandlers.keydown = (view, _event) => {
|
|
|
32438
31023
|
if (event.keyCode != 229)
|
|
32439
31024
|
view.domObserver.forceFlush();
|
|
32440
31025
|
if (ios && event.keyCode == 13 && !event.ctrlKey && !event.altKey && !event.metaKey) {
|
|
32441
|
-
let
|
|
32442
|
-
view.input.lastIOSEnter =
|
|
31026
|
+
let now = Date.now();
|
|
31027
|
+
view.input.lastIOSEnter = now;
|
|
32443
31028
|
view.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
32444
|
-
if (view.input.lastIOSEnter ==
|
|
31029
|
+
if (view.input.lastIOSEnter == now) {
|
|
32445
31030
|
view.someProp("handleKeyDown", (f2) => f2(view, keyEvent(13, "Enter")));
|
|
32446
31031
|
view.input.lastIOSEnter = 0;
|
|
32447
31032
|
}
|
|
@@ -32571,14 +31156,14 @@ handlers.mousedown = (view, _event) => {
|
|
|
32571
31156
|
let event = _event;
|
|
32572
31157
|
view.input.shiftKey = event.shiftKey;
|
|
32573
31158
|
let flushed = forceDOMFlush(view);
|
|
32574
|
-
let
|
|
32575
|
-
if (
|
|
31159
|
+
let now = Date.now(), type = "singleClick";
|
|
31160
|
+
if (now - view.input.lastClick.time < 500 && isNear$1(event, view.input.lastClick) && !event[selectNodeModifier]) {
|
|
32576
31161
|
if (view.input.lastClick.type == "singleClick")
|
|
32577
31162
|
type = "doubleClick";
|
|
32578
31163
|
else if (view.input.lastClick.type == "doubleClick")
|
|
32579
31164
|
type = "tripleClick";
|
|
32580
31165
|
}
|
|
32581
|
-
view.input.lastClick = { time:
|
|
31166
|
+
view.input.lastClick = { time: now, x: event.clientX, y: event.clientY, type };
|
|
32582
31167
|
let pos = view.posAtCoords(eventCoords(event));
|
|
32583
31168
|
if (!pos)
|
|
32584
31169
|
return;
|
|
@@ -50548,7 +49133,7 @@ var moo = { exports: {} };
|
|
|
50548
49133
|
return new LexerIterator(this);
|
|
50549
49134
|
};
|
|
50550
49135
|
}
|
|
50551
|
-
Lexer2.prototype.formatError = function(token2,
|
|
49136
|
+
Lexer2.prototype.formatError = function(token2, message) {
|
|
50552
49137
|
if (token2 == null) {
|
|
50553
49138
|
var text2 = this.buffer.slice(this.index);
|
|
50554
49139
|
var token2 = {
|
|
@@ -50568,7 +49153,7 @@ var moo = { exports: {} };
|
|
|
50568
49153
|
this.line - token2.line + numLinesAround + 1
|
|
50569
49154
|
).slice(0, 5);
|
|
50570
49155
|
var errorLines = [];
|
|
50571
|
-
errorLines.push(
|
|
49156
|
+
errorLines.push(message + " at line " + token2.line + " col " + token2.col + ":");
|
|
50572
49157
|
errorLines.push("");
|
|
50573
49158
|
for (var i = 0; i < displayedLines.length; i++) {
|
|
50574
49159
|
var line2 = displayedLines[i];
|
|
@@ -50903,14 +49488,14 @@ function processTokens(tokens, mapText) {
|
|
|
50903
49488
|
];
|
|
50904
49489
|
});
|
|
50905
49490
|
}
|
|
50906
|
-
function compileMessage(
|
|
49491
|
+
function compileMessage(message, mapText = (v2) => v2) {
|
|
50907
49492
|
try {
|
|
50908
|
-
return processTokens(parse_1(
|
|
49493
|
+
return processTokens(parse_1(message), mapText);
|
|
50909
49494
|
} catch (e2) {
|
|
50910
49495
|
console.error(`${e2.message}
|
|
50911
49496
|
|
|
50912
|
-
Message: ${
|
|
50913
|
-
return
|
|
49497
|
+
Message: ${message}`);
|
|
49498
|
+
return message;
|
|
50914
49499
|
}
|
|
50915
49500
|
}
|
|
50916
49501
|
const isString$1 = (s) => typeof s === "string";
|
|
@@ -50968,21 +49553,21 @@ const getDefaultFormats = (locale, passedLocales, formats = {}) => {
|
|
|
50968
49553
|
const style2 = (format) => {
|
|
50969
49554
|
return typeof format === "object" ? format : formats[format] || { style: format };
|
|
50970
49555
|
};
|
|
50971
|
-
const replaceOctothorpe = (value,
|
|
49556
|
+
const replaceOctothorpe = (value, message) => {
|
|
50972
49557
|
const numberFormat = Object.keys(formats).length ? style2("number") : void 0;
|
|
50973
49558
|
const valueStr = number$1(locales, value, numberFormat);
|
|
50974
|
-
return
|
|
49559
|
+
return message.replace(new RegExp(OCTOTHORPE_PH, "g"), valueStr);
|
|
50975
49560
|
};
|
|
50976
49561
|
return {
|
|
50977
49562
|
plural: (value, cases) => {
|
|
50978
49563
|
const { offset: offset3 = 0 } = cases;
|
|
50979
|
-
const
|
|
50980
|
-
return replaceOctothorpe(value - offset3,
|
|
49564
|
+
const message = plural(locales, false, value, cases);
|
|
49565
|
+
return replaceOctothorpe(value - offset3, message);
|
|
50981
49566
|
},
|
|
50982
49567
|
selectordinal: (value, cases) => {
|
|
50983
49568
|
const { offset: offset3 = 0 } = cases;
|
|
50984
|
-
const
|
|
50985
|
-
return replaceOctothorpe(value - offset3,
|
|
49569
|
+
const message = plural(locales, true, value, cases);
|
|
49570
|
+
return replaceOctothorpe(value - offset3, message);
|
|
50986
49571
|
},
|
|
50987
49572
|
select: selectFormatter,
|
|
50988
49573
|
number: (value, format) => number$1(locales, value, style2(format)),
|
|
@@ -50996,12 +49581,12 @@ function interpolate$1(translation, locale, locales) {
|
|
|
50996
49581
|
const formatMessage = (tokens, replaceOctothorpe = false) => {
|
|
50997
49582
|
if (!Array.isArray(tokens))
|
|
50998
49583
|
return tokens;
|
|
50999
|
-
return tokens.reduce((
|
|
49584
|
+
return tokens.reduce((message, token2) => {
|
|
51000
49585
|
if (token2 === "#" && replaceOctothorpe) {
|
|
51001
|
-
return
|
|
49586
|
+
return message + OCTOTHORPE_PH;
|
|
51002
49587
|
}
|
|
51003
49588
|
if (isString$1(token2)) {
|
|
51004
|
-
return
|
|
49589
|
+
return message + token2;
|
|
51005
49590
|
}
|
|
51006
49591
|
const [name2, type, format] = token2;
|
|
51007
49592
|
let interpolatedFormat = {};
|
|
@@ -51025,9 +49610,9 @@ function interpolate$1(translation, locale, locales) {
|
|
|
51025
49610
|
value = values2[name2];
|
|
51026
49611
|
}
|
|
51027
49612
|
if (value == null) {
|
|
51028
|
-
return
|
|
49613
|
+
return message;
|
|
51029
49614
|
}
|
|
51030
|
-
return
|
|
49615
|
+
return message + value;
|
|
51031
49616
|
}, "");
|
|
51032
49617
|
};
|
|
51033
49618
|
const result = formatMessage(translation);
|
|
@@ -51174,13 +49759,13 @@ class I18n extends EventEmitter {
|
|
|
51174
49759
|
this.emit("change");
|
|
51175
49760
|
}
|
|
51176
49761
|
_(id2, values2, options) {
|
|
51177
|
-
let
|
|
49762
|
+
let message = options == null ? void 0 : options.message;
|
|
51178
49763
|
if (!id2) {
|
|
51179
49764
|
id2 = "";
|
|
51180
49765
|
}
|
|
51181
49766
|
if (!isString$1(id2)) {
|
|
51182
49767
|
values2 = id2.values || values2;
|
|
51183
|
-
|
|
49768
|
+
message = id2.message;
|
|
51184
49769
|
id2 = id2.id;
|
|
51185
49770
|
}
|
|
51186
49771
|
const messageForId = this.messages[id2];
|
|
@@ -51192,7 +49777,7 @@ class I18n extends EventEmitter {
|
|
|
51192
49777
|
if (messageMissing) {
|
|
51193
49778
|
this.emit("missing", { id: id2, locale: this._locale });
|
|
51194
49779
|
}
|
|
51195
|
-
let translation = messageForId ||
|
|
49780
|
+
let translation = messageForId || message || id2;
|
|
51196
49781
|
if (process.env.NODE_ENV !== "production") {
|
|
51197
49782
|
translation = isString$1(translation) ? compileMessage(translation) : translation;
|
|
51198
49783
|
}
|
|
@@ -52710,13 +51295,13 @@ const styles$d = {
|
|
|
52710
51295
|
icon: icon$1
|
|
52711
51296
|
};
|
|
52712
51297
|
const TooltipIcon = memo(
|
|
52713
|
-
({ isOpen
|
|
51298
|
+
({ isOpen, label: label2, icon: icon2, invalid }) => {
|
|
52714
51299
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
52715
51300
|
/* @__PURE__ */ jsx(
|
|
52716
51301
|
Tooltip,
|
|
52717
51302
|
{
|
|
52718
51303
|
text: label2,
|
|
52719
|
-
enabled: !
|
|
51304
|
+
enabled: !isOpen,
|
|
52720
51305
|
placement: "right-center",
|
|
52721
51306
|
possiblePlacements: ["right-center"],
|
|
52722
51307
|
fontSize: 16,
|
|
@@ -52731,7 +51316,7 @@ const TooltipIcon = memo(
|
|
|
52731
51316
|
(prevProps, nextProps) => isEqual$1(prevProps, nextProps)
|
|
52732
51317
|
);
|
|
52733
51318
|
const Link$1 = ({
|
|
52734
|
-
isOpen
|
|
51319
|
+
isOpen,
|
|
52735
51320
|
items,
|
|
52736
51321
|
sectionIndex,
|
|
52737
51322
|
onClick,
|
|
@@ -52756,7 +51341,7 @@ const Link$1 = ({
|
|
|
52756
51341
|
label: link2.label,
|
|
52757
51342
|
icon: link2.icon,
|
|
52758
51343
|
invalid: link2.invalid,
|
|
52759
|
-
isOpen
|
|
51344
|
+
isOpen
|
|
52760
51345
|
},
|
|
52761
51346
|
key2
|
|
52762
51347
|
)
|
|
@@ -52766,7 +51351,7 @@ const Link$1 = ({
|
|
|
52766
51351
|
}) });
|
|
52767
51352
|
};
|
|
52768
51353
|
const Sections = ({
|
|
52769
|
-
isOpen
|
|
51354
|
+
isOpen,
|
|
52770
51355
|
sections,
|
|
52771
51356
|
onClick
|
|
52772
51357
|
}) => {
|
|
@@ -52775,7 +51360,7 @@ const Sections = ({
|
|
|
52775
51360
|
/* @__PURE__ */ jsx(
|
|
52776
51361
|
Link$1,
|
|
52777
51362
|
{
|
|
52778
|
-
isOpen
|
|
51363
|
+
isOpen,
|
|
52779
51364
|
items: section2.items,
|
|
52780
51365
|
sectionIndex: i,
|
|
52781
51366
|
onClick,
|
|
@@ -52792,7 +51377,7 @@ const SideBar = memo(
|
|
|
52792
51377
|
},
|
|
52793
51378
|
top: top2
|
|
52794
51379
|
}) => {
|
|
52795
|
-
const [
|
|
51380
|
+
const [isOpen, setIsOpen] = useState(startOpen);
|
|
52796
51381
|
const onClick = (evt, value, label2, clickHandler) => {
|
|
52797
51382
|
evt.preventDefault();
|
|
52798
51383
|
if (typeof clickHandler === "function") {
|
|
@@ -52807,7 +51392,7 @@ const SideBar = memo(
|
|
|
52807
51392
|
Drawer,
|
|
52808
51393
|
{
|
|
52809
51394
|
fixed: true,
|
|
52810
|
-
open:
|
|
51395
|
+
open: isOpen,
|
|
52811
51396
|
top: top2,
|
|
52812
51397
|
background: "var(--color-background-sidebar)",
|
|
52813
51398
|
closedWidth: "var(--size-sidebar)",
|
|
@@ -52820,19 +51405,19 @@ const SideBar = memo(
|
|
|
52820
51405
|
if (evt.shiftKey && onShiftClickToggleOpen) {
|
|
52821
51406
|
onShiftClickToggleOpen(evt);
|
|
52822
51407
|
}
|
|
52823
|
-
setIsOpen(!
|
|
51408
|
+
setIsOpen(!isOpen);
|
|
52824
51409
|
},
|
|
52825
51410
|
colored: true,
|
|
52826
51411
|
round: true,
|
|
52827
51412
|
icon: IconType.LEFT
|
|
52828
51413
|
}
|
|
52829
51414
|
),
|
|
52830
|
-
children: /* @__PURE__ */ jsx("div", { className: cx$2(styles$d.sidebar, !
|
|
51415
|
+
children: /* @__PURE__ */ jsx("div", { className: cx$2(styles$d.sidebar, !isOpen ? styles$d.collapsed : ""), children: visible && /* @__PURE__ */ jsxs("div", { className: styles$d.inner, children: [
|
|
52831
51416
|
/* @__PURE__ */ jsx("h4", { className: styles$d.title, children: options.title }),
|
|
52832
51417
|
/* @__PURE__ */ jsx(
|
|
52833
51418
|
Sections,
|
|
52834
51419
|
{
|
|
52835
|
-
isOpen
|
|
51420
|
+
isOpen,
|
|
52836
51421
|
sections: options.sections,
|
|
52837
51422
|
onClick
|
|
52838
51423
|
}
|
|
@@ -52902,21 +51487,21 @@ var preWarningFns = [];
|
|
|
52902
51487
|
var preMessage = function preMessage2(fn) {
|
|
52903
51488
|
preWarningFns.push(fn);
|
|
52904
51489
|
};
|
|
52905
|
-
function warning$1(valid,
|
|
51490
|
+
function warning$1(valid, message) {
|
|
52906
51491
|
if (process.env.NODE_ENV !== "production" && !valid && console !== void 0) {
|
|
52907
51492
|
var finalMessage = preWarningFns.reduce(function(msg2, preMessageFn) {
|
|
52908
51493
|
return preMessageFn(msg2 !== null && msg2 !== void 0 ? msg2 : "", "warning");
|
|
52909
|
-
},
|
|
51494
|
+
}, message);
|
|
52910
51495
|
if (finalMessage) {
|
|
52911
51496
|
console.error("Warning: ".concat(finalMessage));
|
|
52912
51497
|
}
|
|
52913
51498
|
}
|
|
52914
51499
|
}
|
|
52915
|
-
function note(valid,
|
|
51500
|
+
function note(valid, message) {
|
|
52916
51501
|
if (process.env.NODE_ENV !== "production" && !valid && console !== void 0) {
|
|
52917
51502
|
var finalMessage = preWarningFns.reduce(function(msg2, preMessageFn) {
|
|
52918
51503
|
return preMessageFn(msg2 !== null && msg2 !== void 0 ? msg2 : "", "note");
|
|
52919
|
-
},
|
|
51504
|
+
}, message);
|
|
52920
51505
|
if (finalMessage) {
|
|
52921
51506
|
console.warn("Note: ".concat(finalMessage));
|
|
52922
51507
|
}
|
|
@@ -52925,17 +51510,17 @@ function note(valid, message2) {
|
|
|
52925
51510
|
function resetWarned() {
|
|
52926
51511
|
warned$1 = {};
|
|
52927
51512
|
}
|
|
52928
|
-
function call(method, valid,
|
|
52929
|
-
if (!valid && !warned$1[
|
|
52930
|
-
method(false,
|
|
52931
|
-
warned$1[
|
|
51513
|
+
function call(method, valid, message) {
|
|
51514
|
+
if (!valid && !warned$1[message]) {
|
|
51515
|
+
method(false, message);
|
|
51516
|
+
warned$1[message] = true;
|
|
52932
51517
|
}
|
|
52933
51518
|
}
|
|
52934
|
-
function warningOnce(valid,
|
|
52935
|
-
call(warning$1, valid,
|
|
51519
|
+
function warningOnce(valid, message) {
|
|
51520
|
+
call(warning$1, valid, message);
|
|
52936
51521
|
}
|
|
52937
|
-
function noteOnce(valid,
|
|
52938
|
-
call(note, valid,
|
|
51522
|
+
function noteOnce(valid, message) {
|
|
51523
|
+
call(note, valid, message);
|
|
52939
51524
|
}
|
|
52940
51525
|
warningOnce.preMessage = preMessage;
|
|
52941
51526
|
warningOnce.resetWarned = resetWarned;
|
|
@@ -55433,7 +54018,7 @@ const Title$1 = ({
|
|
|
55433
54018
|
return /* @__PURE__ */ jsx("div", { children: actionsComponent });
|
|
55434
54019
|
};
|
|
55435
54020
|
return /* @__PURE__ */ jsxs("div", { className: styles$a.title, children: [
|
|
55436
|
-
isNameDefined ? /* @__PURE__ */ jsx(Heading$
|
|
54021
|
+
isNameDefined ? /* @__PURE__ */ jsx(Heading$1, { children: /* @__PURE__ */ jsx("span", { "data-testid": testId, children: name2 }) }) : null,
|
|
55437
54022
|
actionsContainer()
|
|
55438
54023
|
] });
|
|
55439
54024
|
};
|
|
@@ -55653,7 +54238,7 @@ const InputCell = ({
|
|
|
55653
54238
|
type
|
|
55654
54239
|
}) => {
|
|
55655
54240
|
return /* @__PURE__ */ jsx(
|
|
55656
|
-
Input
|
|
54241
|
+
Input,
|
|
55657
54242
|
{
|
|
55658
54243
|
name: cell2.name,
|
|
55659
54244
|
value: cell2.value,
|
|
@@ -55822,7 +54407,7 @@ const NumberInput = ({
|
|
|
55822
54407
|
handleKeys: [EventKey.ENTER],
|
|
55823
54408
|
onKeyEvent: (_key, evt) => onChangeValue(evt),
|
|
55824
54409
|
children: /* @__PURE__ */ jsx(
|
|
55825
|
-
Input
|
|
54410
|
+
Input,
|
|
55826
54411
|
{
|
|
55827
54412
|
type: "text",
|
|
55828
54413
|
name: stringName,
|
|
@@ -57889,11 +56474,11 @@ eventManager.on(
|
|
|
57889
56474
|
);
|
|
57890
56475
|
const toast = ({
|
|
57891
56476
|
id: id2,
|
|
57892
|
-
message
|
|
56477
|
+
message = { type: MessageType.INFO, content: "" },
|
|
57893
56478
|
autoClose = 6e3,
|
|
57894
56479
|
onClose
|
|
57895
56480
|
}) => {
|
|
57896
|
-
const { type = MessageType.INFO } =
|
|
56481
|
+
const { type = MessageType.INFO } = message ?? {};
|
|
57897
56482
|
const CloseButton2 = ({
|
|
57898
56483
|
closeToast
|
|
57899
56484
|
}) => /* @__PURE__ */ jsx(
|
|
@@ -57909,7 +56494,7 @@ const toast = ({
|
|
|
57909
56494
|
Message,
|
|
57910
56495
|
{
|
|
57911
56496
|
message: {
|
|
57912
|
-
...
|
|
56497
|
+
...message,
|
|
57913
56498
|
visible: true,
|
|
57914
56499
|
width: "100%",
|
|
57915
56500
|
maxHeight: "500px",
|
|
@@ -57918,7 +56503,7 @@ const toast = ({
|
|
|
57918
56503
|
}
|
|
57919
56504
|
);
|
|
57920
56505
|
const toastType = (() => {
|
|
57921
|
-
switch (
|
|
56506
|
+
switch (message == null ? void 0 : message.type) {
|
|
57922
56507
|
case MessageType.SUCCESS:
|
|
57923
56508
|
return toast$1.TYPE.SUCCESS;
|
|
57924
56509
|
case MessageType.WARNING:
|
|
@@ -61739,7 +60324,7 @@ var ResizeObserverController = function() {
|
|
|
61739
60324
|
};
|
|
61740
60325
|
return ResizeObserverController2;
|
|
61741
60326
|
}();
|
|
61742
|
-
var ResizeObserver
|
|
60327
|
+
var ResizeObserver = function() {
|
|
61743
60328
|
function ResizeObserver2(callback) {
|
|
61744
60329
|
if (arguments.length === 0) {
|
|
61745
60330
|
throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
@@ -61831,14 +60416,14 @@ var warning = function() {
|
|
|
61831
60416
|
var invariant = function() {
|
|
61832
60417
|
};
|
|
61833
60418
|
if (process.env.NODE_ENV !== "production") {
|
|
61834
|
-
warning = function(check2,
|
|
60419
|
+
warning = function(check2, message) {
|
|
61835
60420
|
if (!check2 && typeof console !== "undefined") {
|
|
61836
|
-
console.warn(
|
|
60421
|
+
console.warn(message);
|
|
61837
60422
|
}
|
|
61838
60423
|
};
|
|
61839
|
-
invariant = function(check2,
|
|
60424
|
+
invariant = function(check2, message) {
|
|
61840
60425
|
if (!check2) {
|
|
61841
|
-
throw new Error(
|
|
60426
|
+
throw new Error(message);
|
|
61842
60427
|
}
|
|
61843
60428
|
};
|
|
61844
60429
|
}
|
|
@@ -64015,11 +62600,11 @@ function useTapGesture(_a2) {
|
|
|
64015
62600
|
useUnmountEffect(removePointerEndListener);
|
|
64016
62601
|
}
|
|
64017
62602
|
var warned = /* @__PURE__ */ new Set();
|
|
64018
|
-
function warnOnce(condition,
|
|
64019
|
-
if (condition || warned.has(
|
|
62603
|
+
function warnOnce(condition, message, element) {
|
|
62604
|
+
if (condition || warned.has(message))
|
|
64020
62605
|
return;
|
|
64021
|
-
console.warn(
|
|
64022
|
-
warned.add(
|
|
62606
|
+
console.warn(message);
|
|
62607
|
+
warned.add(message);
|
|
64023
62608
|
}
|
|
64024
62609
|
var observerCallbacks = /* @__PURE__ */ new WeakMap();
|
|
64025
62610
|
var observers = /* @__PURE__ */ new WeakMap();
|
|
@@ -69009,7 +67594,7 @@ function AnimateHeight(props) {
|
|
|
69009
67594
|
open: { opacity: 1, height: "auto" },
|
|
69010
67595
|
close: { opacity: 0, height: 0 }
|
|
69011
67596
|
} : _b, children = props.children;
|
|
69012
|
-
var _c = useMeasure({ polyfill: ResizeObserver
|
|
67597
|
+
var _c = useMeasure({ polyfill: ResizeObserver }), ref2 = _c[0], height2 = _c[1].height;
|
|
69013
67598
|
var _d = useState(isVisible3), isVisibleChildren = _d[0], setIsVisibleChildren = _d[1];
|
|
69014
67599
|
var _e2 = useState(isVisible3), isVisibleContainer = _e2[0], setIsVisibleContainer = _e2[1];
|
|
69015
67600
|
var _f = useState(false), transition = _f[0], setTransition = _f[1];
|
|
@@ -69941,7 +68526,7 @@ const styles$1 = {
|
|
|
69941
68526
|
const TreeItem = ({
|
|
69942
68527
|
node: node2,
|
|
69943
68528
|
depth,
|
|
69944
|
-
isOpen
|
|
68529
|
+
isOpen,
|
|
69945
68530
|
onToggle,
|
|
69946
68531
|
hasChild,
|
|
69947
68532
|
draggable: draggable2,
|
|
@@ -69974,7 +68559,7 @@ const TreeItem = ({
|
|
|
69974
68559
|
const handleDragOver = (event) => {
|
|
69975
68560
|
event.preventDefault();
|
|
69976
68561
|
event.stopPropagation();
|
|
69977
|
-
if (hasChild && !
|
|
68562
|
+
if (hasChild && !isOpen && (/* @__PURE__ */ new Date()).getTime() - dragOverStartTime > 200) {
|
|
69978
68563
|
handleToggle(event);
|
|
69979
68564
|
}
|
|
69980
68565
|
};
|
|
@@ -70022,10 +68607,10 @@ const TreeItem = ({
|
|
|
70022
68607
|
Button$1,
|
|
70023
68608
|
{
|
|
70024
68609
|
basic: true,
|
|
70025
|
-
colored:
|
|
68610
|
+
colored: isOpen ? true : Color.MUTED,
|
|
70026
68611
|
small: true,
|
|
70027
68612
|
round: true,
|
|
70028
|
-
icon:
|
|
68613
|
+
icon: isOpen ? (icons2 == null ? void 0 : icons2.collapse) || IconType.COLLAPSE : (icons2 == null ? void 0 : icons2.expand) || IconType.EXPAND,
|
|
70029
68614
|
onClick: handleToggle
|
|
70030
68615
|
}
|
|
70031
68616
|
) }),
|
|
@@ -70153,7 +68738,7 @@ const Tree = ({
|
|
|
70153
68738
|
}
|
|
70154
68739
|
},
|
|
70155
68740
|
rootId: 0,
|
|
70156
|
-
render: (node2, { depth, isOpen
|
|
68741
|
+
render: (node2, { depth, isOpen, onToggle, hasChild }) => {
|
|
70157
68742
|
var _a3;
|
|
70158
68743
|
return /* @__PURE__ */ jsx(
|
|
70159
68744
|
TreeItem,
|
|
@@ -70161,9 +68746,9 @@ const Tree = ({
|
|
|
70161
68746
|
hasChild: itemHasChild ? itemHasChild(node2) : hasChild,
|
|
70162
68747
|
node: node2,
|
|
70163
68748
|
depth,
|
|
70164
|
-
isOpen
|
|
68749
|
+
isOpen,
|
|
70165
68750
|
onToggle: () => {
|
|
70166
|
-
onItemToggle == null ? void 0 : onItemToggle(node2, !
|
|
68751
|
+
onItemToggle == null ? void 0 : onItemToggle(node2, !isOpen);
|
|
70167
68752
|
onToggle();
|
|
70168
68753
|
},
|
|
70169
68754
|
draggable: draggable2,
|
|
@@ -70512,7 +69097,7 @@ const UnitInput = ({
|
|
|
70512
69097
|
}
|
|
70513
69098
|
}, [initDisplayUnit, value, error2, shouldLinkAutomaticly]);
|
|
70514
69099
|
const alternativeUnits = getAlternativeUnits();
|
|
70515
|
-
const displayUnitLabel = label$
|
|
69100
|
+
const displayUnitLabel = label$9(displayLayer.unit) || displayLayer.unit || "";
|
|
70516
69101
|
const noConvert = noConversion || !alternativeUnits || alternativeUnits && alternativeUnits.length === 1;
|
|
70517
69102
|
const stringName = getStringName(name2);
|
|
70518
69103
|
let sectionsPredefinedMenu;
|
|
@@ -70703,7 +69288,7 @@ const convertVisibleRows = ({
|
|
|
70703
69288
|
type: CellType.SELECT,
|
|
70704
69289
|
searchable: false,
|
|
70705
69290
|
options: (_a2 = getUnitsForQuantity(unitKey)) == null ? void 0 : _a2.map((unit2) => ({
|
|
70706
|
-
label: label$
|
|
69291
|
+
label: label$9(unit2),
|
|
70707
69292
|
value: unit2
|
|
70708
69293
|
})),
|
|
70709
69294
|
native: headerCell.native,
|
|
@@ -71015,11 +69600,11 @@ export {
|
|
|
71015
69600
|
FormRow,
|
|
71016
69601
|
Grid,
|
|
71017
69602
|
GroupOrder,
|
|
71018
|
-
Heading$
|
|
69603
|
+
Heading$1 as Heading,
|
|
71019
69604
|
HelpIcon,
|
|
71020
69605
|
Icon,
|
|
71021
69606
|
IconType,
|
|
71022
|
-
Input
|
|
69607
|
+
Input,
|
|
71023
69608
|
InputGroup,
|
|
71024
69609
|
InputGroupAddon,
|
|
71025
69610
|
InputReaderMethods,
|