@hybridcore/ui 1.6.0 → 1.6.2
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/CATALOG.md +179 -0
- package/README.md +1 -2
- package/dist/AccordionSummary-CJppWeqF.js +781 -0
- package/dist/Add-CqcD1PWb.js +403 -0
- package/dist/Box-DqUMmZjL.js +31 -0
- package/dist/{Button-CvE2gnly.js → Button-C5yquWAB.js} +120 -133
- package/dist/ButtonBase-BEF7oTOe.js +887 -0
- package/dist/{Delete-CW0UZv1m.js → Delete-BdyYpINH.js} +9 -8
- package/dist/{DialogContent-B3nbEbuv.js → DialogContent-BvVjD9z3.js} +127 -124
- package/dist/FormGroup-CpBsIyYR.js +89 -0
- package/dist/{IconButton-CHwRQF-g.js → IconButton-BoGwbvrP.js} +41 -43
- package/dist/InputLabel-Dd8RrneV.js +341 -0
- package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DwqJqzuM.js} +51 -53
- package/dist/Modal-MUZygjmQ.js +1158 -0
- package/dist/Paper-BkQLdsCI.js +582 -0
- package/dist/Select-DHUl_uG3.js +3916 -0
- package/dist/SwitchBase-DTndTqI8.js +235 -0
- package/dist/TextField-e2oKaUN1.js +669 -0
- package/dist/TransitionGroupContext-BDAp2T0O.js +96 -0
- package/dist/{Typography-CxbneZy_.js → Typography-DgsSLCFC.js} +53 -53
- package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
- package/dist/assets/index4.css +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/access/helpers.js +1 -1
- package/dist/components/access/index.js +8 -15
- package/dist/components/access/logic.js +25 -0
- package/dist/components/button/index.js +10 -0
- package/dist/components/button/logic.js +26 -0
- package/dist/components/button/styled.js +9 -0
- package/dist/components/card/index.js +158 -498
- package/dist/components/card/logic.js +24 -0
- package/dist/components/card/styled.js +226 -51
- package/dist/components/card-alternate/index.js +111 -139
- package/dist/components/card-alternate/logic.js +17 -0
- package/dist/components/card-alternate/styled.js +113 -19
- package/dist/components/charts/_common/chart-error.js +19 -0
- package/dist/components/charts/candlestick/index.js +3 -3
- package/dist/components/charts/candlestick/logic.js +123 -113
- package/dist/components/charts/chart-wrapper/index.js +5 -5
- package/dist/components/charts/column-line-mix/index.js +9 -8
- package/dist/components/charts/column-line-mix/logic.js +68 -71
- package/dist/components/charts/drill-down-treemap/index.js +8 -7
- package/dist/components/charts/drill-down-treemap/logic.js +138 -144
- package/dist/components/charts/drill-down-voronoi-treemap/index.js +9 -8
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +222 -228
- package/dist/components/charts/heatmap/index.js +9 -8
- package/dist/components/charts/heatmap/logic.js +167 -173
- package/dist/components/charts/highlighting-line-data/index.js +3 -3
- package/dist/components/charts/line/index.js +9 -8
- package/dist/components/charts/line/logic.js +74 -79
- package/dist/components/charts/logaritmic-scale/index.js +9 -8
- package/dist/components/charts/logaritmic-scale/logic.js +63 -69
- package/dist/components/charts/multiple-value-axes/index.js +9 -8
- package/dist/components/charts/multiple-value-axes/logic.js +101 -107
- package/dist/components/charts/nested-pie/index.js +9 -8
- package/dist/components/charts/nested-pie/logic.js +62 -68
- package/dist/components/charts/packed-circles/index.js +7 -6
- package/dist/components/charts/packed-circles/logic.js +50 -56
- package/dist/components/charts/pie-chart/index.js +9 -8
- package/dist/components/charts/pie-chart/logic.js +49 -54
- package/dist/components/charts/stacked-area-radar/index.js +8 -7
- package/dist/components/charts/stacked-area-radar/logic.js +113 -118
- package/dist/components/charts/stacked-column-chart/index.js +9 -8
- package/dist/components/charts/stacked-column-chart/logic.js +78 -84
- package/dist/components/charts/xy-chart/index.js +9 -8
- package/dist/components/charts/xy-chart/logic.js +56 -60
- package/dist/components/collapsible-card/index.js +11 -10
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/color-picker/index.js +7120 -0
- package/dist/components/color-picker/logic.js +18 -0
- package/dist/components/color-picker/styled.js +7 -0
- package/dist/components/confirm/dialog.js +3 -3
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +28 -269
- package/dist/components/container/logic.js +12 -0
- package/dist/components/container/styled.js +29 -0
- package/dist/components/context-menu/index.js +25 -457
- package/dist/components/context-menu/logic.js +14 -0
- package/dist/components/context-menu/styled.js +40 -0
- package/dist/components/data-grid/index.js +22 -0
- package/dist/components/data-grid/logic.js +15 -0
- package/dist/components/data-grid/styled.js +20 -0
- package/dist/components/data-map/components/controls/index.js +4 -6
- package/dist/components/data-map/index.js +11 -11
- package/dist/components/data-security-selectors/dissemination-list/index.js +192 -191
- package/dist/components/data-security-selectors/dissemination-list/styled.js +12 -12
- package/dist/components/data-security-selectors/security-level/index.js +39 -91
- package/dist/components/data-security-selectors/security-level/logic.js +28 -0
- package/dist/components/data-security-selectors/security-level/styled.js +53 -0
- package/dist/components/date-picker-with-custom-range/index.js +1 -1
- package/dist/components/date-range-picker/index.js +2748 -0
- package/dist/components/date-range-picker/styled.js +14 -0
- package/dist/components/date-time-picker/index.js +45 -46
- package/dist/components/divider/index.js +11 -11
- package/dist/components/document-viewer/components/action-buttons/index.js +15 -15
- package/dist/components/document-viewer/components/navigation/index.js +9 -9
- package/dist/components/document-viewer/components/viewer/index.js +31 -35
- package/dist/components/document-viewer/index.js +31 -39
- package/dist/components/document-viewer/logic.js +41 -34
- package/dist/components/document-viewer/styled.js +115 -27
- package/dist/components/duration-select/index.js +27 -0
- package/dist/components/duration-select/logic.js +21 -0
- package/dist/components/duration-select/styled.js +26 -0
- package/dist/components/editable-text/index.js +20 -0
- package/dist/components/editable-text/logic.js +18 -0
- package/dist/components/editable-text/styled.js +22 -0
- package/dist/components/geometry-picker/coordinate/index.js +29 -29
- package/dist/components/geometry-picker/edit/index.js +18 -18
- package/dist/components/geometry-picker/geometry/index.js +67 -67
- package/dist/components/geometry-picker/geometry/map-overlay.js +6 -6
- package/dist/components/geometry-picker/index.js +69 -85
- package/dist/components/geometry-picker/kml/index.js +16 -16
- package/dist/components/geometry-picker/logic.js +50 -57
- package/dist/components/geometry-picker/map/index.js +8 -8
- package/dist/components/geometry-picker/parser/coordinate-input/index.js +4 -4
- package/dist/components/geometry-picker/parser/index.js +46 -50
- package/dist/components/geometry-picker/parser/styled.js +22 -4
- package/dist/components/geometry-picker/styled.js +97 -37
- package/dist/components/geometry-picker/wkt/index.js +13 -13
- package/dist/components/heat-map/components/controls/index.js +4 -6
- package/dist/components/heat-map/components/legend/index.js +15 -17
- package/dist/components/heat-map/index.js +7 -7
- package/dist/components/instance-form/components/TopLabelWrapper.js +8 -48
- package/dist/components/instance-form/components/composite-list/index.js +5 -3
- package/dist/components/instance-form/components/composite-matrix/components/editable-table/index.js +83 -74
- package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +45 -66
- package/dist/components/instance-form/components/composite-matrix/components/form/index.js +60 -75
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2425 -2422
- package/dist/components/instance-form/components/composite-matrix/components/table/index.js +33 -52
- package/dist/components/instance-form/components/composite-matrix/index.js +30 -36
- package/dist/components/instance-form/components/policy-list/index.js +47 -81
- package/dist/components/instance-form/components/variable/index.js +6 -11
- package/dist/components/instance-form/components/variables/index.js +48 -55
- package/dist/components/instance-form/helpers.js +9 -0
- package/dist/components/instance-form/index.js +402 -518
- package/dist/components/instance-form/logic.js +115 -0
- package/dist/components/instance-form/styled.js +487 -0
- package/dist/components/instance-hierarchy-table/index.js +32 -37
- package/dist/components/instance-hierarchy-table/logic.js +16 -0
- package/dist/components/instance-hierarchy-table/styled.js +53 -12
- package/dist/components/instance-table/index.js +30 -135
- package/dist/components/instance-table/logic.js +122 -0
- package/dist/components/instance-table/styled.js +53 -11
- package/dist/components/instance-variable-list/index.js +11 -11
- package/dist/components/loading/index.js +15 -9
- package/dist/components/loading/logic.js +15 -0
- package/dist/components/loading/styled.js +26 -19
- package/dist/components/map/index.js +28 -6
- package/dist/components/map/styled.js +1 -1
- package/dist/components/notification/index.js +67 -0
- package/dist/components/notification/logic.js +30 -0
- package/dist/components/notification/store.js +23 -0
- package/dist/components/notification/styled.js +52 -0
- package/dist/components/object-profile-card/components/avatar/index.js +9 -10
- package/dist/components/object-profile-card/index.js +19 -20
- package/dist/components/paginated-list/index.js +2 -3
- package/dist/components/phone-input/index.js +18 -22
- package/dist/components/phone-input/logic.js +14 -0
- package/dist/components/phone-input/styled.js +12 -4
- package/dist/components/placeholder/index.js +10 -0
- package/dist/components/placeholder/logic.js +12 -0
- package/dist/components/placeholder/styled.js +32 -0
- package/dist/components/positional-tooltip/index.js +24 -0
- package/dist/components/positional-tooltip/styled.js +17 -0
- package/dist/components/property-mapping/index.js +204 -423
- package/dist/components/property-mapping/logic.js +156 -0
- package/dist/components/property-mapping/styled.js +199 -0
- package/dist/components/prr-map/components/controls/index.js +4 -6
- package/dist/components/prr-map/components/legend/index.js +26 -28
- package/dist/components/prr-map/index.js +5 -5
- package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
- package/dist/components/range-selector/components/date-range/index.js +87 -4221
- package/dist/components/range-selector/components/geometry-range/index.js +11 -17
- package/dist/components/range-selector/components/number-range/index.js +48 -53
- package/dist/components/range-selector/components/string-range/index.js +15 -17
- package/dist/components/range-selector/index.js +63 -57
- package/dist/components/range-selector/logic.js +12 -0
- package/dist/components/range-selector/styled.js +4294 -0
- package/dist/components/raster-grid-map/components/controls/index.js +4 -6
- package/dist/components/raster-grid-map/components/legend/index.js +4 -6
- package/dist/components/raster-grid-map/index.js +5 -5
- package/dist/components/scroll-drag/index.js +22 -0
- package/dist/components/scroll-drag/logic.js +39 -0
- package/dist/components/scroll-drag/styled.js +17 -0
- package/dist/components/search-input/logic.js +35 -33
- package/dist/components/simple-pivot-table/index.js +12 -12
- package/dist/components/sortable-list/index.js +599 -0
- package/dist/components/sortable-list/logic.js +18 -0
- package/dist/components/sortable-list/styled.js +38 -0
- package/dist/components/static-text/index.js +6 -6
- package/dist/components/stats-box/index.js +12 -0
- package/dist/components/stats-box/styled.js +36 -0
- package/dist/components/template-filters/components/filter/index.js +13 -18
- package/dist/components/template-filters/components/tab-panel/index.js +8 -16
- package/dist/components/template-filters/index.js +21 -29
- package/dist/components/template-filters/logic.js +18 -0
- package/dist/components/template-filters/styled.js +44 -1
- package/dist/components/template-form/components/property-list/index.js +27 -26
- package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
- package/dist/components/template-form/components/property-list/property-list-form.js +758 -14
- package/dist/components/template-form/components/recognition-property-list/index.js +11 -11
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +24 -23
- package/dist/components/template-form/components/select-icon/index.js +24 -24
- package/dist/components/template-form/helpers.js +17 -0
- package/dist/components/template-form/index.js +270 -309
- package/dist/components/template-form/logic.js +69 -0
- package/dist/components/template-form/styled.js +84 -0
- package/dist/components/template-property-filters/index.js +45 -95
- package/dist/components/template-property-filters/logic.js +27 -0
- package/dist/components/template-property-filters/property.js +105 -165
- package/dist/components/template-property-filters/styled.js +121 -20
- package/dist/components/text-overflow/index.js +6 -0
- package/dist/components/text-overflow/styled.js +13 -0
- package/dist/components/timeline/index.js +12 -12
- package/dist/components/toggle-view-button/index.js +35 -0
- package/dist/components/toggle-view-button/logic.js +22 -0
- package/dist/components/toggle-view-button/styled.js +11 -0
- package/dist/components/tree-select/index.js +52 -67
- package/dist/components/tree-select/logic.js +59 -0
- package/dist/components/tree-select/styled.js +45 -62
- package/dist/components/treeview-filter/index.js +43 -65
- package/dist/components/treeview-filter/item/index.js +43 -42
- package/dist/components/treeview-filter/item-label/index.js +17 -37
- package/dist/components/treeview-filter/logic.js +28 -0
- package/dist/components/treeview-filter/styled.js +86 -0
- package/dist/components/uploader/index.js +532 -567
- package/dist/components/uploader/logic.js +74 -0
- package/dist/components/uploader/styled.js +93 -46
- package/dist/components/visually-hidden-input/index.js +4 -0
- package/dist/components/visually-hidden-input/styled.js +18 -0
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-Ch_cT8az.js} +69 -68
- package/dist/createSvgIcon-DuDuASu1.js +62 -0
- package/dist/{dialog-DcwXug9J.js → dialog-BYRnCztH.js} +18 -18
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/generateUtilityClasses-C3ivN9Ie.js +2973 -0
- package/dist/{helpers-B4UL9NMD.js → helpers-D4uXfBfO.js} +2 -2
- package/dist/index-BtlzPygz.js +470 -0
- package/dist/index-DH6qsPBn.js +153 -0
- package/dist/{index-syTc6m_V.js → index-e9xTIYWt.js} +87 -87
- package/dist/main.d.ts +1722 -562
- package/dist/main.js +161 -128
- package/dist/ownerWindow-wg6foiOE.js +10 -0
- package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
- package/dist/styled-Db1RdcPA.js +323 -0
- package/dist/unsupportedProp-DuqR2hj9.js +36 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/useMobilePicker-CY8ndYRL.js +8279 -0
- package/dist/useSlot-B_Q4vnX5.js +42 -0
- package/package.json +15 -7
- package/dist/AccordionSummary-DgAwVTk8.js +0 -742
- package/dist/Add-DJLrrVHm.js +0 -382
- package/dist/Box-p6OtTUEo.js +0 -30
- package/dist/ButtonBase-2bPw77UP.js +0 -961
- package/dist/CardContent-CSHh-ZlM.js +0 -74
- package/dist/Checkbox-CWRMFTBp.js +0 -421
- package/dist/FormControl-BLbrq4C7.js +0 -1636
- package/dist/FormControlLabel-C8SPv14J.js +0 -195
- package/dist/InputAdornment-DLxWUE6H.js +0 -157
- package/dist/List-tqElle9C.js +0 -121
- package/dist/ListItem-CfjsIg4B.js +0 -430
- package/dist/Modal-DhPpOoGB.js +0 -1299
- package/dist/Paper-2B03OBmZ.js +0 -169
- package/dist/Select-BgYwkZgI.js +0 -2613
- package/dist/TextField-1yCesIbH.js +0 -457
- package/dist/assertThisInitialized-BUtkG-md.js +0 -13
- package/dist/capitalize-ciszXJ7R.js +0 -9
- package/dist/components/instance-form/components/composite-list/styled.js +0 -73
- package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +0 -1
- package/dist/components/instance-form/components/composite-matrix/styled.js +0 -69
- package/dist/components/key-protection/index.js +0 -4
- package/dist/components/key-protection/menu.js +0 -85
- package/dist/components/key-protection/utils.js +0 -10
- package/dist/components/treeview-filter/item/styled.js +0 -39
- package/dist/createSvgIcon-BjpIhJ30.js +0 -71
- package/dist/createTheme-DYxDnE9u.js +0 -612
- package/dist/index-BMS1Otro.js +0 -183
- package/dist/index-CcdvNlgr.js +0 -503
- package/dist/index-kCJ_Zvl8.js +0 -34
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-CxT3_ACP.js +0 -13
- package/dist/listItemTextClasses-C3lndiXO.js +0 -16
- package/dist/property-list-form-zZQfpR0X.js +0 -386
- package/dist/styled-eZwjUruw.js +0 -12
- package/dist/unsupportedProp-BND8AB6O.js +0 -25
- package/dist/useId-B4-oF9Mq.js +0 -34
- package/dist/useMobilePicker-BLg3Blg8.js +0 -7589
- package/dist/useThemeProps-BzzHcQyd.js +0 -58
- package/dist/utils-BDNynJcd.js +0 -365
- package/dist/utils-Bq0ye5vf.js +0 -115
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsxs as ke, jsx as oe } from "react/jsx-runtime";
|
|
2
|
+
import { _ as Kt, a as A } from "../../../objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
2
3
|
import * as V from "react";
|
|
3
|
-
import { useLayoutEffect as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
4
|
+
import { useLayoutEffect as qt, useContext as en, useRef as j, useState as te, createContext as tn, useMemo as ee, useCallback as T, Component as nn, Fragment as Ne, useEffect as It, forwardRef as un } from "react";
|
|
5
|
+
import { _ as on } from "../../../setPrototypeOf-NPgp4cYc.js";
|
|
6
|
+
import { _ as an } from "../../../assertThisInitialized-C1dAyb4j.js";
|
|
6
7
|
import { keyframes as rn, jsx as C, css as mt } from "@emotion/react";
|
|
7
8
|
import { createPortal as ln } from "react-dom";
|
|
8
9
|
import { useDisseminationListLogic as sn } from "./logic.js";
|
|
@@ -173,7 +174,7 @@ function U(n, e) {
|
|
|
173
174
|
}
|
|
174
175
|
function Y(n, e) {
|
|
175
176
|
if (n == null) return {};
|
|
176
|
-
var i, u, t =
|
|
177
|
+
var i, u, t = Kt(n, e);
|
|
177
178
|
if (Object.getOwnPropertySymbols) {
|
|
178
179
|
var a = Object.getOwnPropertySymbols(n);
|
|
179
180
|
for (u = 0; u < a.length; u++) i = a[u], e.includes(i) || {}.propertyIsEnumerable.call(n, i) && (t[i] = n[i]);
|
|
@@ -329,11 +330,11 @@ function _e(n, e, i, u) {
|
|
|
329
330
|
const s = Tn() ? Pn(a) : fe(0);
|
|
330
331
|
let o = (t.left + s.x) / r.x, l = (t.top + s.y) / r.y, c = t.width / r.x, d = t.height / r.y;
|
|
331
332
|
if (a) {
|
|
332
|
-
const
|
|
333
|
-
let f =
|
|
334
|
-
for (;
|
|
335
|
-
const g = $e(
|
|
336
|
-
o *= g.x, l *= g.y, c *= g.x, d *= g.y, o += y, l += h, f = Q(
|
|
333
|
+
const m = Q(a), p = u;
|
|
334
|
+
let f = m, b = Re(f);
|
|
335
|
+
for (; b && u && p !== f; ) {
|
|
336
|
+
const g = $e(b), I = b.getBoundingClientRect(), G = De(b), y = I.left + (b.clientLeft + parseFloat(G.paddingLeft)) * g.x, h = I.top + (b.clientTop + parseFloat(G.paddingTop)) * g.y;
|
|
337
|
+
o *= g.x, l *= g.y, c *= g.x, d *= g.y, o += y, l += h, f = Q(b), b = Re(f);
|
|
337
338
|
}
|
|
338
339
|
}
|
|
339
340
|
return Wn({
|
|
@@ -356,12 +357,12 @@ function Dn(n, e) {
|
|
|
356
357
|
left: l,
|
|
357
358
|
top: c,
|
|
358
359
|
width: d,
|
|
359
|
-
height:
|
|
360
|
+
height: m
|
|
360
361
|
} = n.getBoundingClientRect();
|
|
361
|
-
if (s || e(), !d || !
|
|
362
|
+
if (s || e(), !d || !m)
|
|
362
363
|
return;
|
|
363
|
-
const
|
|
364
|
-
rootMargin: -
|
|
364
|
+
const p = de(c), f = de(t.clientWidth - (l + d)), b = de(t.clientHeight - (c + m)), g = de(l), G = {
|
|
365
|
+
rootMargin: -p + "px " + -f + "px " + -b + "px " + -g + "px",
|
|
365
366
|
threshold: Vn(0, En(1, o)) || 1
|
|
366
367
|
};
|
|
367
368
|
let y = !0;
|
|
@@ -398,34 +399,34 @@ function Ln(n, e, i, u) {
|
|
|
398
399
|
layoutShift: s = typeof IntersectionObserver == "function",
|
|
399
400
|
animationFrame: o = !1
|
|
400
401
|
} = u, l = Le(n), c = t || a ? [...l ? ve(l) : [], ...ve(e)] : [];
|
|
401
|
-
c.forEach((
|
|
402
|
-
t &&
|
|
402
|
+
c.forEach((I) => {
|
|
403
|
+
t && I.addEventListener("scroll", i, {
|
|
403
404
|
passive: !0
|
|
404
|
-
}), a &&
|
|
405
|
+
}), a && I.addEventListener("resize", i);
|
|
405
406
|
});
|
|
406
407
|
const d = l && s ? Dn(l, i) : null;
|
|
407
|
-
let
|
|
408
|
-
r && (
|
|
409
|
-
let [G] =
|
|
410
|
-
G && G.target === l &&
|
|
408
|
+
let m = -1, p = null;
|
|
409
|
+
r && (p = new ResizeObserver((I) => {
|
|
410
|
+
let [G] = I;
|
|
411
|
+
G && G.target === l && p && (p.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
411
412
|
var y;
|
|
412
|
-
(y =
|
|
413
|
+
(y = p) == null || y.observe(e);
|
|
413
414
|
})), i();
|
|
414
|
-
}), l && !o &&
|
|
415
|
-
let f,
|
|
415
|
+
}), l && !o && p.observe(l), p.observe(e));
|
|
416
|
+
let f, b = o ? _e(n) : null;
|
|
416
417
|
o && g();
|
|
417
418
|
function g() {
|
|
418
|
-
const
|
|
419
|
-
|
|
419
|
+
const I = _e(n);
|
|
420
|
+
b && (I.x !== b.x || I.y !== b.y || I.width !== b.width || I.height !== b.height) && i(), b = I, f = requestAnimationFrame(g);
|
|
420
421
|
}
|
|
421
422
|
return i(), () => {
|
|
422
|
-
var
|
|
423
|
+
var I;
|
|
423
424
|
c.forEach((G) => {
|
|
424
425
|
t && G.removeEventListener("scroll", i), a && G.removeEventListener("resize", i);
|
|
425
|
-
}), d == null || d(), (
|
|
426
|
+
}), d == null || d(), (I = p) == null || I.disconnect(), p = null, o && cancelAnimationFrame(f);
|
|
426
427
|
};
|
|
427
428
|
}
|
|
428
|
-
var we =
|
|
429
|
+
var we = qt, Hn = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], Ce = function() {
|
|
429
430
|
};
|
|
430
431
|
function On(n, e) {
|
|
431
432
|
return e ? e[0] === "-" ? n + e : n + "__" + e : n;
|
|
@@ -555,7 +556,7 @@ function ti(n) {
|
|
|
555
556
|
maxHeight: e
|
|
556
557
|
};
|
|
557
558
|
if (!i || !i.offsetParent) return l;
|
|
558
|
-
var c = o.getBoundingClientRect(), d = c.height,
|
|
559
|
+
var c = o.getBoundingClientRect(), d = c.height, m = i.getBoundingClientRect(), p = m.bottom, f = m.height, b = m.top, g = i.offsetParent.getBoundingClientRect(), I = g.top, G = r ? window.innerHeight : Jn(o), y = Bt(o), h = parseInt(getComputedStyle(i).marginBottom, 10), F = parseInt(getComputedStyle(i).marginTop, 10), B = I - F, E = G - b, x = B + y, W = d - y - b, w = p - G + y + h, P = y + b - F, X = 160;
|
|
559
560
|
switch (t) {
|
|
560
561
|
case "auto":
|
|
561
562
|
case "bottom":
|
|
@@ -637,8 +638,8 @@ var Vt = function(e) {
|
|
|
637
638
|
marginBottom: s.menuGutter,
|
|
638
639
|
marginTop: s.menuGutter
|
|
639
640
|
});
|
|
640
|
-
}, Wt = /* @__PURE__ */
|
|
641
|
-
var i = e.children, u = e.minMenuHeight, t = e.maxMenuHeight, a = e.menuPlacement, r = e.menuPosition, s = e.menuShouldScrollIntoView, o = e.theme, l =
|
|
641
|
+
}, Wt = /* @__PURE__ */ tn(null), ui = function(e) {
|
|
642
|
+
var i = e.children, u = e.minMenuHeight, t = e.maxMenuHeight, a = e.menuPlacement, r = e.menuPosition, s = e.menuShouldScrollIntoView, o = e.theme, l = en(Wt) || {}, c = l.setPortalPlacement, d = j(null), m = te(t), p = U(m, 2), f = p[0], b = p[1], g = te(null), I = U(g, 2), G = I[0], y = I[1], h = o.spacing.controlHeight;
|
|
642
643
|
return we(function() {
|
|
643
644
|
var F = d.current;
|
|
644
645
|
if (F) {
|
|
@@ -651,7 +652,7 @@ var Vt = function(e) {
|
|
|
651
652
|
isFixedPosition: B,
|
|
652
653
|
controlHeight: h
|
|
653
654
|
});
|
|
654
|
-
|
|
655
|
+
b(x.maxHeight), y(x.placement), c == null || c(x.placement);
|
|
655
656
|
}
|
|
656
657
|
}, [t, a, r, s, u, c, h]), i({
|
|
657
658
|
ref: d,
|
|
@@ -723,19 +724,19 @@ var Vt = function(e) {
|
|
|
723
724
|
zIndex: 1
|
|
724
725
|
};
|
|
725
726
|
}, pi = function(e) {
|
|
726
|
-
var i = e.appendTo, u = e.children, t = e.controlElement, a = e.innerProps, r = e.menuPlacement, s = e.menuPosition, o = j(null), l = j(null), c = te(Vt(r)), d = U(c, 2),
|
|
727
|
+
var i = e.appendTo, u = e.children, t = e.controlElement, a = e.innerProps, r = e.menuPlacement, s = e.menuPosition, o = j(null), l = j(null), c = te(Vt(r)), d = U(c, 2), m = d[0], p = d[1], f = ee(function() {
|
|
727
728
|
return {
|
|
728
|
-
setPortalPlacement:
|
|
729
|
+
setPortalPlacement: p
|
|
729
730
|
};
|
|
730
|
-
}, []),
|
|
731
|
+
}, []), b = te(null), g = U(b, 2), I = g[0], G = g[1], y = T(function() {
|
|
731
732
|
if (t) {
|
|
732
|
-
var E = zn(t), x = s === "fixed" ? 0 : window.pageYOffset, W = E[
|
|
733
|
-
(W !== (
|
|
733
|
+
var E = zn(t), x = s === "fixed" ? 0 : window.pageYOffset, W = E[m] + x;
|
|
734
|
+
(W !== (I == null ? void 0 : I.offset) || E.left !== (I == null ? void 0 : I.rect.left) || E.width !== (I == null ? void 0 : I.rect.width)) && G({
|
|
734
735
|
offset: W,
|
|
735
736
|
rect: E
|
|
736
737
|
});
|
|
737
738
|
}
|
|
738
|
-
}, [t, s,
|
|
739
|
+
}, [t, s, m, I == null ? void 0 : I.offset, I == null ? void 0 : I.rect.left, I == null ? void 0 : I.rect.width]);
|
|
739
740
|
we(function() {
|
|
740
741
|
y();
|
|
741
742
|
}, [y]);
|
|
@@ -750,13 +751,13 @@ var Vt = function(e) {
|
|
|
750
751
|
var F = T(function(E) {
|
|
751
752
|
o.current = E, h();
|
|
752
753
|
}, [h]);
|
|
753
|
-
if (!i && s !== "fixed" || !
|
|
754
|
+
if (!i && s !== "fixed" || !I) return null;
|
|
754
755
|
var B = C("div", A({
|
|
755
756
|
ref: F
|
|
756
757
|
}, N(v(v({}, e), {}, {
|
|
757
|
-
offset:
|
|
758
|
+
offset: I.offset,
|
|
758
759
|
position: s,
|
|
759
|
-
rect:
|
|
760
|
+
rect: I.rect
|
|
760
761
|
}), "menuPortal", {
|
|
761
762
|
"menu-portal": !0
|
|
762
763
|
}), a), u);
|
|
@@ -1313,14 +1314,14 @@ var vu = process.env.NODE_ENV === "production" ? {
|
|
|
1313
1314
|
}
|
|
1314
1315
|
},
|
|
1315
1316
|
onFocus: function(e) {
|
|
1316
|
-
var i = e.context, u = e.focused, t = e.options, a = e.label, r = a === void 0 ? "" : a, s = e.selectValue, o = e.isDisabled, l = e.isSelected, c = e.isAppleDevice, d = function(
|
|
1317
|
-
return
|
|
1317
|
+
var i = e.context, u = e.focused, t = e.options, a = e.label, r = a === void 0 ? "" : a, s = e.selectValue, o = e.isDisabled, l = e.isSelected, c = e.isAppleDevice, d = function(b, g) {
|
|
1318
|
+
return b && b.length ? "".concat(b.indexOf(g) + 1, " of ").concat(b.length) : "";
|
|
1318
1319
|
};
|
|
1319
1320
|
if (i === "value" && s)
|
|
1320
1321
|
return "value ".concat(r, " focused, ").concat(d(s, u), ".");
|
|
1321
1322
|
if (i === "menu" && c) {
|
|
1322
|
-
var
|
|
1323
|
-
return "".concat(r).concat(
|
|
1323
|
+
var m = o ? " disabled" : "", p = "".concat(l ? " selected" : "").concat(m);
|
|
1324
|
+
return "".concat(r).concat(p, ", ").concat(d(t, u), ".");
|
|
1324
1325
|
}
|
|
1325
1326
|
return "";
|
|
1326
1327
|
},
|
|
@@ -1329,30 +1330,30 @@ var vu = process.env.NODE_ENV === "production" ? {
|
|
|
1329
1330
|
return "".concat(u).concat(i ? " for search term " + i : "", ".");
|
|
1330
1331
|
}
|
|
1331
1332
|
}, Au = function(e) {
|
|
1332
|
-
var i = e.ariaSelection, u = e.focusedOption, t = e.focusedValue, a = e.focusableOptions, r = e.isFocused, s = e.selectValue, o = e.selectProps, l = e.id, c = e.isAppleDevice, d = o.ariaLiveMessages,
|
|
1333
|
+
var i = e.ariaSelection, u = e.focusedOption, t = e.focusedValue, a = e.focusableOptions, r = e.isFocused, s = e.selectValue, o = e.selectProps, l = e.id, c = e.isAppleDevice, d = o.ariaLiveMessages, m = o.getOptionLabel, p = o.inputValue, f = o.isMulti, b = o.isOptionDisabled, g = o.isSearchable, I = o.menuIsOpen, G = o.options, y = o.screenReaderStatus, h = o.tabSelectsValue, F = o.isLoading, B = o["aria-label"], E = o["aria-live"], x = ee(function() {
|
|
1333
1334
|
return v(v({}, hu), d || {});
|
|
1334
1335
|
}, [d]), W = ee(function() {
|
|
1335
1336
|
var Z = "";
|
|
1336
1337
|
if (i && x.onChange) {
|
|
1337
1338
|
var S = i.option, J = i.options, O = i.removedValue, $ = i.removedValues, _ = i.value, se = function(z) {
|
|
1338
1339
|
return Array.isArray(z) ? null : z;
|
|
1339
|
-
}, R = O || S || se(_), L = R ?
|
|
1340
|
+
}, R = O || S || se(_), L = R ? m(R) : "", k = J || $ || void 0, K = k ? k.map(m) : [], M = v({
|
|
1340
1341
|
// multiSelected items are usually items that have already been selected
|
|
1341
1342
|
// or set by the user as a default value so we assume they are not disabled
|
|
1342
|
-
isDisabled: R &&
|
|
1343
|
+
isDisabled: R && b(R, s),
|
|
1343
1344
|
label: L,
|
|
1344
1345
|
labels: K
|
|
1345
1346
|
}, i);
|
|
1346
1347
|
Z = x.onChange(M);
|
|
1347
1348
|
}
|
|
1348
1349
|
return Z;
|
|
1349
|
-
}, [i, x,
|
|
1350
|
+
}, [i, x, b, s, m]), w = ee(function() {
|
|
1350
1351
|
var Z = "", S = u || t, J = !!(u && s && s.includes(u));
|
|
1351
1352
|
if (S && x.onFocus) {
|
|
1352
1353
|
var O = {
|
|
1353
1354
|
focused: S,
|
|
1354
|
-
label:
|
|
1355
|
-
isDisabled:
|
|
1355
|
+
label: m(S),
|
|
1356
|
+
isDisabled: b(S, s),
|
|
1356
1357
|
isSelected: J,
|
|
1357
1358
|
options: a,
|
|
1358
1359
|
context: S === u ? "menu" : "value",
|
|
@@ -1362,26 +1363,26 @@ var vu = process.env.NODE_ENV === "production" ? {
|
|
|
1362
1363
|
Z = x.onFocus(O);
|
|
1363
1364
|
}
|
|
1364
1365
|
return Z;
|
|
1365
|
-
}, [u, t,
|
|
1366
|
+
}, [u, t, m, b, x, a, s, c]), P = ee(function() {
|
|
1366
1367
|
var Z = "";
|
|
1367
|
-
if (
|
|
1368
|
+
if (I && G.length && !F && x.onFilter) {
|
|
1368
1369
|
var S = y({
|
|
1369
1370
|
count: a.length
|
|
1370
1371
|
});
|
|
1371
1372
|
Z = x.onFilter({
|
|
1372
|
-
inputValue:
|
|
1373
|
+
inputValue: p,
|
|
1373
1374
|
resultsMessage: S
|
|
1374
1375
|
});
|
|
1375
1376
|
}
|
|
1376
1377
|
return Z;
|
|
1377
|
-
}, [a,
|
|
1378
|
+
}, [a, p, I, x, G, y, F]), X = (i == null ? void 0 : i.action) === "initial-input-focus", D = ee(function() {
|
|
1378
1379
|
var Z = "";
|
|
1379
1380
|
if (x.guidance) {
|
|
1380
|
-
var S = t ? "value" :
|
|
1381
|
+
var S = t ? "value" : I ? "menu" : "input";
|
|
1381
1382
|
Z = x.guidance({
|
|
1382
1383
|
"aria-label": B,
|
|
1383
1384
|
context: S,
|
|
1384
|
-
isDisabled: u &&
|
|
1385
|
+
isDisabled: u && b(u, s),
|
|
1385
1386
|
isMulti: f,
|
|
1386
1387
|
isSearchable: g,
|
|
1387
1388
|
tabSelectsValue: h,
|
|
@@ -1389,7 +1390,7 @@ var vu = process.env.NODE_ENV === "production" ? {
|
|
|
1389
1390
|
});
|
|
1390
1391
|
}
|
|
1391
1392
|
return Z;
|
|
1392
|
-
}, [B, u, t, f,
|
|
1393
|
+
}, [B, u, t, f, b, g, I, x, s, h, X]), H = C(Ne, null, C("span", {
|
|
1393
1394
|
id: "aria-selection"
|
|
1394
1395
|
}, W), C("span", {
|
|
1395
1396
|
id: "aria-focused"
|
|
@@ -1717,36 +1718,36 @@ var Wu = function(e) {
|
|
|
1717
1718
|
e.cancelable && e.preventDefault(), e.stopPropagation();
|
|
1718
1719
|
};
|
|
1719
1720
|
function Xu(n) {
|
|
1720
|
-
var e = n.isEnabled, i = n.onBottomArrive, u = n.onBottomLeave, t = n.onTopArrive, a = n.onTopLeave, r = j(!1), s = j(!1), o = j(0), l = j(null), c = T(function(g,
|
|
1721
|
+
var e = n.isEnabled, i = n.onBottomArrive, u = n.onBottomLeave, t = n.onTopArrive, a = n.onTopLeave, r = j(!1), s = j(!1), o = j(0), l = j(null), c = T(function(g, I) {
|
|
1721
1722
|
if (l.current !== null) {
|
|
1722
|
-
var G = l.current, y = G.scrollTop, h = G.scrollHeight, F = G.clientHeight, B = l.current, E =
|
|
1723
|
-
x >
|
|
1723
|
+
var G = l.current, y = G.scrollTop, h = G.scrollHeight, F = G.clientHeight, B = l.current, E = I > 0, x = h - F - y, W = !1;
|
|
1724
|
+
x > I && r.current && (u && u(g), r.current = !1), E && s.current && (a && a(g), s.current = !1), E && I > x ? (i && !r.current && i(g), B.scrollTop = h, W = !0, r.current = !0) : !E && -I > y && (t && !s.current && t(g), B.scrollTop = 0, W = !0, s.current = !0), W && Wu(g);
|
|
1724
1725
|
}
|
|
1725
1726
|
}, [i, u, t, a]), d = T(function(g) {
|
|
1726
1727
|
c(g, g.deltaY);
|
|
1727
|
-
}, [c]),
|
|
1728
|
+
}, [c]), m = T(function(g) {
|
|
1728
1729
|
o.current = g.changedTouches[0].clientY;
|
|
1729
|
-
}, []),
|
|
1730
|
-
var
|
|
1731
|
-
c(g,
|
|
1730
|
+
}, []), p = T(function(g) {
|
|
1731
|
+
var I = o.current - g.changedTouches[0].clientY;
|
|
1732
|
+
c(g, I);
|
|
1732
1733
|
}, [c]), f = T(function(g) {
|
|
1733
1734
|
if (g) {
|
|
1734
|
-
var
|
|
1735
|
+
var I = Qn ? {
|
|
1735
1736
|
passive: !1
|
|
1736
1737
|
} : !1;
|
|
1737
|
-
g.addEventListener("wheel", d,
|
|
1738
|
+
g.addEventListener("wheel", d, I), g.addEventListener("touchstart", m, I), g.addEventListener("touchmove", p, I);
|
|
1738
1739
|
}
|
|
1739
|
-
}, [
|
|
1740
|
-
g && (g.removeEventListener("wheel", d, !1), g.removeEventListener("touchstart",
|
|
1741
|
-
}, [
|
|
1740
|
+
}, [p, m, d]), b = T(function(g) {
|
|
1741
|
+
g && (g.removeEventListener("wheel", d, !1), g.removeEventListener("touchstart", m, !1), g.removeEventListener("touchmove", p, !1));
|
|
1742
|
+
}, [p, m, d]);
|
|
1742
1743
|
return It(function() {
|
|
1743
1744
|
if (e) {
|
|
1744
1745
|
var g = l.current;
|
|
1745
1746
|
return f(g), function() {
|
|
1746
|
-
|
|
1747
|
+
b(g);
|
|
1747
1748
|
};
|
|
1748
1749
|
}
|
|
1749
|
-
}, [e, f,
|
|
1750
|
+
}, [e, f, b]), function(g) {
|
|
1750
1751
|
l.current = g;
|
|
1751
1752
|
};
|
|
1752
1753
|
}
|
|
@@ -1779,14 +1780,14 @@ function Zu(n) {
|
|
|
1779
1780
|
if (ct) {
|
|
1780
1781
|
var l = document.body, c = l && l.style;
|
|
1781
1782
|
if (u && ut.forEach(function(f) {
|
|
1782
|
-
var
|
|
1783
|
-
t.current[f] =
|
|
1783
|
+
var b = c && c[f];
|
|
1784
|
+
t.current[f] = b;
|
|
1784
1785
|
}), u && ae < 1) {
|
|
1785
|
-
var d = parseInt(t.current.paddingRight, 10) || 0,
|
|
1786
|
+
var d = parseInt(t.current.paddingRight, 10) || 0, m = document.body ? document.body.clientWidth : 0, p = window.innerWidth - m + d || 0;
|
|
1786
1787
|
Object.keys(ot).forEach(function(f) {
|
|
1787
|
-
var
|
|
1788
|
-
c && (c[f] =
|
|
1789
|
-
}), c && (c.paddingRight = "".concat(
|
|
1788
|
+
var b = ot[f];
|
|
1789
|
+
c && (c[f] = b);
|
|
1790
|
+
}), c && (c.paddingRight = "".concat(p, "px"));
|
|
1790
1791
|
}
|
|
1791
1792
|
l && st() && (l.addEventListener("touchmove", at, ie), o && (o.addEventListener("touchstart", lt, ie), o.addEventListener("touchmove", rt, ie))), ae += 1;
|
|
1792
1793
|
}
|
|
@@ -1794,8 +1795,8 @@ function Zu(n) {
|
|
|
1794
1795
|
if (ct) {
|
|
1795
1796
|
var l = document.body, c = l && l.style;
|
|
1796
1797
|
ae = Math.max(ae - 1, 0), u && ae < 1 && ut.forEach(function(d) {
|
|
1797
|
-
var
|
|
1798
|
-
c && (c[d] =
|
|
1798
|
+
var m = t.current[d];
|
|
1799
|
+
c && (c[d] = m);
|
|
1799
1800
|
}), l && st() && (l.removeEventListener("touchmove", at, ie), o && (o.removeEventListener("touchstart", lt, ie), o.removeEventListener("touchmove", rt, ie)));
|
|
1800
1801
|
}
|
|
1801
1802
|
}, [u]);
|
|
@@ -1834,8 +1835,8 @@ function wu(n) {
|
|
|
1834
1835
|
onTopLeave: o
|
|
1835
1836
|
}), c = Zu({
|
|
1836
1837
|
isEnabled: i
|
|
1837
|
-
}), d = function(
|
|
1838
|
-
l(
|
|
1838
|
+
}), d = function(p) {
|
|
1839
|
+
l(p), c(p);
|
|
1839
1840
|
};
|
|
1840
1841
|
return C(Ne, null, i && C("div", {
|
|
1841
1842
|
onClick: Su,
|
|
@@ -2125,15 +2126,15 @@ var jt = function(e) {
|
|
|
2125
2126
|
}, t.inputRef = null, t.getInputRef = function(o) {
|
|
2126
2127
|
t.inputRef = o;
|
|
2127
2128
|
}, t.focus = t.focusInput, t.blur = t.blurInput, t.onChange = function(o, l) {
|
|
2128
|
-
var c = t.props, d = c.onChange,
|
|
2129
|
-
l.name =
|
|
2129
|
+
var c = t.props, d = c.onChange, m = c.name;
|
|
2130
|
+
l.name = m, t.ariaOnChange(o, l), d(o, l);
|
|
2130
2131
|
}, t.setValue = function(o, l, c) {
|
|
2131
|
-
var d = t.props,
|
|
2132
|
+
var d = t.props, m = d.closeMenuOnSelect, p = d.isMulti, f = d.inputValue;
|
|
2132
2133
|
t.onInputChange("", {
|
|
2133
2134
|
action: "set-value",
|
|
2134
2135
|
prevInputValue: f
|
|
2135
|
-
}),
|
|
2136
|
-
inputIsHiddenAfterUpdate: !
|
|
2136
|
+
}), m && (t.setState({
|
|
2137
|
+
inputIsHiddenAfterUpdate: !p
|
|
2137
2138
|
}), t.onMenuClose()), t.setState({
|
|
2138
2139
|
clearFocusValueOnUpdate: !0
|
|
2139
2140
|
}), t.onChange(o, {
|
|
@@ -2141,28 +2142,28 @@ var jt = function(e) {
|
|
|
2141
2142
|
option: c
|
|
2142
2143
|
});
|
|
2143
2144
|
}, t.selectOption = function(o) {
|
|
2144
|
-
var l = t.props, c = l.blurInputOnSelect, d = l.isMulti,
|
|
2145
|
+
var l = t.props, c = l.blurInputOnSelect, d = l.isMulti, m = l.name, p = t.state.selectValue, f = d && t.isOptionSelected(o, p), b = t.isOptionDisabled(o, p);
|
|
2145
2146
|
if (f) {
|
|
2146
2147
|
var g = t.getOptionValue(o);
|
|
2147
|
-
t.setValue(
|
|
2148
|
-
return t.getOptionValue(
|
|
2148
|
+
t.setValue(p.filter(function(I) {
|
|
2149
|
+
return t.getOptionValue(I) !== g;
|
|
2149
2150
|
}), "deselect-option", o);
|
|
2150
|
-
} else if (!
|
|
2151
|
-
d ? t.setValue([].concat(ue(
|
|
2151
|
+
} else if (!b)
|
|
2152
|
+
d ? t.setValue([].concat(ue(p), [o]), "select-option", o) : t.setValue(o, "select-option");
|
|
2152
2153
|
else {
|
|
2153
2154
|
t.ariaOnChange(o, {
|
|
2154
2155
|
action: "select-option",
|
|
2155
2156
|
option: o,
|
|
2156
|
-
name:
|
|
2157
|
+
name: m
|
|
2157
2158
|
});
|
|
2158
2159
|
return;
|
|
2159
2160
|
}
|
|
2160
2161
|
c && t.blurInput();
|
|
2161
2162
|
}, t.removeValue = function(o) {
|
|
2162
|
-
var l = t.props.isMulti, c = t.state.selectValue, d = t.getOptionValue(o),
|
|
2163
|
+
var l = t.props.isMulti, c = t.state.selectValue, d = t.getOptionValue(o), m = c.filter(function(f) {
|
|
2163
2164
|
return t.getOptionValue(f) !== d;
|
|
2164
|
-
}),
|
|
2165
|
-
t.onChange(
|
|
2165
|
+
}), p = le(l, m, m[0] || null);
|
|
2166
|
+
t.onChange(p, {
|
|
2166
2167
|
action: "remove-value",
|
|
2167
2168
|
removedValue: o
|
|
2168
2169
|
}), t.focusInput();
|
|
@@ -2173,8 +2174,8 @@ var jt = function(e) {
|
|
|
2173
2174
|
removedValues: o
|
|
2174
2175
|
});
|
|
2175
2176
|
}, t.popValue = function() {
|
|
2176
|
-
var o = t.props.isMulti, l = t.state.selectValue, c = l[l.length - 1], d = l.slice(0, l.length - 1),
|
|
2177
|
-
c && t.onChange(
|
|
2177
|
+
var o = t.props.isMulti, l = t.state.selectValue, c = l[l.length - 1], d = l.slice(0, l.length - 1), m = le(o, d, d[0] || null);
|
|
2178
|
+
c && t.onChange(m, {
|
|
2178
2179
|
action: "pop-value",
|
|
2179
2180
|
removedValue: c
|
|
2180
2181
|
});
|
|
@@ -2195,8 +2196,8 @@ var jt = function(e) {
|
|
|
2195
2196
|
}, t.getStyles = function(o, l) {
|
|
2196
2197
|
var c = t.props.unstyled, d = zu[o](l, c);
|
|
2197
2198
|
d.boxSizing = "border-box";
|
|
2198
|
-
var
|
|
2199
|
-
return
|
|
2199
|
+
var m = t.props.styles[o];
|
|
2200
|
+
return m ? m(d, l) : d;
|
|
2200
2201
|
}, t.getClassNames = function(o, l) {
|
|
2201
2202
|
var c, d;
|
|
2202
2203
|
return (c = (d = t.props.classNames)[o]) === null || c === void 0 ? void 0 : c.call(d, l);
|
|
@@ -2250,8 +2251,8 @@ var jt = function(e) {
|
|
|
2250
2251
|
}, t.onTouchMove = function(o) {
|
|
2251
2252
|
var l = o.touches, c = l && l.item(0);
|
|
2252
2253
|
if (c) {
|
|
2253
|
-
var d = Math.abs(c.clientX - t.initialTouchX),
|
|
2254
|
-
t.userIsDragging = d >
|
|
2254
|
+
var d = Math.abs(c.clientX - t.initialTouchX), m = Math.abs(c.clientY - t.initialTouchY), p = 5;
|
|
2255
|
+
t.userIsDragging = d > p || m > p;
|
|
2255
2256
|
}
|
|
2256
2257
|
}, t.onTouchEnd = function(o) {
|
|
2257
2258
|
t.userIsDragging || (t.controlRef && !t.controlRef.contains(o.target) && t.menuListRef && !t.menuListRef.contains(o.target) && t.blurInput(), t.initialTouchX = 0, t.initialTouchY = 0);
|
|
@@ -2300,20 +2301,20 @@ var jt = function(e) {
|
|
|
2300
2301
|
}, t.onValueInputFocus = function(o) {
|
|
2301
2302
|
o.preventDefault(), o.stopPropagation(), t.focus();
|
|
2302
2303
|
}, t.onKeyDown = function(o) {
|
|
2303
|
-
var l = t.props, c = l.isMulti, d = l.backspaceRemovesValue,
|
|
2304
|
-
if (!
|
|
2304
|
+
var l = t.props, c = l.isMulti, d = l.backspaceRemovesValue, m = l.escapeClearsValue, p = l.inputValue, f = l.isClearable, b = l.isDisabled, g = l.menuIsOpen, I = l.onKeyDown, G = l.tabSelectsValue, y = l.openMenuOnFocus, h = t.state, F = h.focusedOption, B = h.focusedValue, E = h.selectValue;
|
|
2305
|
+
if (!b && !(typeof I == "function" && (I(o), o.defaultPrevented))) {
|
|
2305
2306
|
switch (t.blockOptionHover = !0, o.key) {
|
|
2306
2307
|
case "ArrowLeft":
|
|
2307
|
-
if (!c ||
|
|
2308
|
+
if (!c || p) return;
|
|
2308
2309
|
t.focusValue("previous");
|
|
2309
2310
|
break;
|
|
2310
2311
|
case "ArrowRight":
|
|
2311
|
-
if (!c ||
|
|
2312
|
+
if (!c || p) return;
|
|
2312
2313
|
t.focusValue("next");
|
|
2313
2314
|
break;
|
|
2314
2315
|
case "Delete":
|
|
2315
2316
|
case "Backspace":
|
|
2316
|
-
if (
|
|
2317
|
+
if (p) return;
|
|
2317
2318
|
if (B)
|
|
2318
2319
|
t.removeValue(B);
|
|
2319
2320
|
else {
|
|
@@ -2342,11 +2343,11 @@ var jt = function(e) {
|
|
|
2342
2343
|
inputIsHiddenAfterUpdate: !1
|
|
2343
2344
|
}), t.onInputChange("", {
|
|
2344
2345
|
action: "menu-close",
|
|
2345
|
-
prevInputValue:
|
|
2346
|
-
}), t.onMenuClose()) : f &&
|
|
2346
|
+
prevInputValue: p
|
|
2347
|
+
}), t.onMenuClose()) : f && m && t.clearValue();
|
|
2347
2348
|
break;
|
|
2348
2349
|
case " ":
|
|
2349
|
-
if (
|
|
2350
|
+
if (p)
|
|
2350
2351
|
return;
|
|
2351
2352
|
if (!g) {
|
|
2352
2353
|
t.openMenu("first");
|
|
@@ -2515,16 +2516,16 @@ var jt = function(e) {
|
|
|
2515
2516
|
}, {
|
|
2516
2517
|
key: "getCommonProps",
|
|
2517
2518
|
value: function() {
|
|
2518
|
-
var t = this.clearValue, a = this.cx, r = this.getStyles, s = this.getClassNames, o = this.getValue, l = this.selectOption, c = this.setValue, d = this.props,
|
|
2519
|
+
var t = this.clearValue, a = this.cx, r = this.getStyles, s = this.getClassNames, o = this.getValue, l = this.selectOption, c = this.setValue, d = this.props, m = d.isMulti, p = d.isRtl, f = d.options, b = this.hasValue();
|
|
2519
2520
|
return {
|
|
2520
2521
|
clearValue: t,
|
|
2521
2522
|
cx: a,
|
|
2522
2523
|
getStyles: r,
|
|
2523
2524
|
getClassNames: s,
|
|
2524
2525
|
getValue: o,
|
|
2525
|
-
hasValue:
|
|
2526
|
-
isMulti:
|
|
2527
|
-
isRtl:
|
|
2526
|
+
hasValue: b,
|
|
2527
|
+
isMulti: m,
|
|
2528
|
+
isRtl: p,
|
|
2528
2529
|
options: f,
|
|
2529
2530
|
selectOption: l,
|
|
2530
2531
|
selectProps: d,
|
|
@@ -2622,7 +2623,7 @@ var jt = function(e) {
|
|
|
2622
2623
|
// Renderers
|
|
2623
2624
|
// ==============================
|
|
2624
2625
|
function() {
|
|
2625
|
-
var t = this.props, a = t.isDisabled, r = t.isSearchable, s = t.inputId, o = t.inputValue, l = t.tabIndex, c = t.form, d = t.menuIsOpen,
|
|
2626
|
+
var t = this.props, a = t.isDisabled, r = t.isSearchable, s = t.inputId, o = t.inputValue, l = t.tabIndex, c = t.form, d = t.menuIsOpen, m = t.required, p = this.getComponents(), f = p.Input, b = this.state, g = b.inputIsHidden, I = b.ariaSelection, G = this.commonProps, y = s || this.getElementId("input"), h = v(v(v({
|
|
2626
2627
|
"aria-autocomplete": "list",
|
|
2627
2628
|
"aria-expanded": d,
|
|
2628
2629
|
"aria-haspopup": !0,
|
|
@@ -2630,14 +2631,14 @@ var jt = function(e) {
|
|
|
2630
2631
|
"aria-invalid": this.props["aria-invalid"],
|
|
2631
2632
|
"aria-label": this.props["aria-label"],
|
|
2632
2633
|
"aria-labelledby": this.props["aria-labelledby"],
|
|
2633
|
-
"aria-required":
|
|
2634
|
+
"aria-required": m,
|
|
2634
2635
|
role: "combobox",
|
|
2635
2636
|
"aria-activedescendant": this.isAppleDevice ? void 0 : this.state.focusedOptionId || ""
|
|
2636
2637
|
}, d && {
|
|
2637
2638
|
"aria-controls": this.getElementId("listbox")
|
|
2638
2639
|
}), !r && {
|
|
2639
2640
|
"aria-readonly": !0
|
|
2640
|
-
}), this.hasValue() ? (
|
|
2641
|
+
}), this.hasValue() ? (I == null ? void 0 : I.action) === "initial-input-focus" && {
|
|
2641
2642
|
"aria-describedby": this.getElementId("live-region")
|
|
2642
2643
|
} : {
|
|
2643
2644
|
"aria-describedby": this.getElementId("placeholder")
|
|
@@ -2675,11 +2676,11 @@ var jt = function(e) {
|
|
|
2675
2676
|
}, {
|
|
2676
2677
|
key: "renderPlaceholderOrValue",
|
|
2677
2678
|
value: function() {
|
|
2678
|
-
var t = this, a = this.getComponents(), r = a.MultiValue, s = a.MultiValueContainer, o = a.MultiValueLabel, l = a.MultiValueRemove, c = a.SingleValue, d = a.Placeholder,
|
|
2679
|
+
var t = this, a = this.getComponents(), r = a.MultiValue, s = a.MultiValueContainer, o = a.MultiValueLabel, l = a.MultiValueRemove, c = a.SingleValue, d = a.Placeholder, m = this.commonProps, p = this.props, f = p.controlShouldRenderValue, b = p.isDisabled, g = p.isMulti, I = p.inputValue, G = p.placeholder, y = this.state, h = y.selectValue, F = y.focusedValue, B = y.isFocused;
|
|
2679
2680
|
if (!this.hasValue() || !f)
|
|
2680
|
-
return
|
|
2681
|
+
return I ? null : /* @__PURE__ */ V.createElement(d, A({}, m, {
|
|
2681
2682
|
key: "placeholder",
|
|
2682
|
-
isDisabled:
|
|
2683
|
+
isDisabled: b,
|
|
2683
2684
|
isFocused: B,
|
|
2684
2685
|
innerProps: {
|
|
2685
2686
|
id: this.getElementId("placeholder")
|
|
@@ -2688,14 +2689,14 @@ var jt = function(e) {
|
|
|
2688
2689
|
if (g)
|
|
2689
2690
|
return h.map(function(x, W) {
|
|
2690
2691
|
var w = x === F, P = "".concat(t.getOptionLabel(x), "-").concat(t.getOptionValue(x));
|
|
2691
|
-
return /* @__PURE__ */ V.createElement(r, A({},
|
|
2692
|
+
return /* @__PURE__ */ V.createElement(r, A({}, m, {
|
|
2692
2693
|
components: {
|
|
2693
2694
|
Container: s,
|
|
2694
2695
|
Label: o,
|
|
2695
2696
|
Remove: l
|
|
2696
2697
|
},
|
|
2697
2698
|
isFocused: w,
|
|
2698
|
-
isDisabled:
|
|
2699
|
+
isDisabled: b,
|
|
2699
2700
|
key: P,
|
|
2700
2701
|
index: W,
|
|
2701
2702
|
removeProps: {
|
|
@@ -2712,12 +2713,12 @@ var jt = function(e) {
|
|
|
2712
2713
|
data: x
|
|
2713
2714
|
}), t.formatOptionLabel(x, "value"));
|
|
2714
2715
|
});
|
|
2715
|
-
if (
|
|
2716
|
+
if (I)
|
|
2716
2717
|
return null;
|
|
2717
2718
|
var E = h[0];
|
|
2718
|
-
return /* @__PURE__ */ V.createElement(c, A({},
|
|
2719
|
+
return /* @__PURE__ */ V.createElement(c, A({}, m, {
|
|
2719
2720
|
data: E,
|
|
2720
|
-
isDisabled:
|
|
2721
|
+
isDisabled: b
|
|
2721
2722
|
}), this.formatOptionLabel(E, "value"));
|
|
2722
2723
|
}
|
|
2723
2724
|
}, {
|
|
@@ -2780,10 +2781,10 @@ var jt = function(e) {
|
|
|
2780
2781
|
}, {
|
|
2781
2782
|
key: "renderMenu",
|
|
2782
2783
|
value: function() {
|
|
2783
|
-
var t = this, a = this.getComponents(), r = a.Group, s = a.GroupHeading, o = a.Menu, l = a.MenuList, c = a.MenuPortal, d = a.LoadingMessage,
|
|
2784
|
+
var t = this, a = this.getComponents(), r = a.Group, s = a.GroupHeading, o = a.Menu, l = a.MenuList, c = a.MenuPortal, d = a.LoadingMessage, m = a.NoOptionsMessage, p = a.Option, f = this.commonProps, b = this.state.focusedOption, g = this.props, I = g.captureMenuScroll, G = g.inputValue, y = g.isLoading, h = g.loadingMessage, F = g.minMenuHeight, B = g.maxMenuHeight, E = g.menuIsOpen, x = g.menuPlacement, W = g.menuPosition, w = g.menuPortalTarget, P = g.menuShouldBlockScroll, X = g.menuShouldScrollIntoView, D = g.noOptionsMessage, H = g.onMenuScrollToTop, Z = g.onMenuScrollToBottom;
|
|
2784
2785
|
if (!E) return null;
|
|
2785
2786
|
var S = function(L, k) {
|
|
2786
|
-
var K = L.type, M = L.data, q = L.isDisabled, z = L.isSelected, ce = L.label, Qt = L.value, Me =
|
|
2787
|
+
var K = L.type, M = L.data, q = L.isDisabled, z = L.isSelected, ce = L.label, Qt = L.value, Me = b === M, Je = q ? void 0 : function() {
|
|
2787
2788
|
return t.onOptionHover(M);
|
|
2788
2789
|
}, $t = q ? void 0 : function() {
|
|
2789
2790
|
return t.selectOption(M);
|
|
@@ -2797,7 +2798,7 @@ var jt = function(e) {
|
|
|
2797
2798
|
"aria-selected": t.isAppleDevice ? void 0 : z
|
|
2798
2799
|
// is not supported on Apple devices
|
|
2799
2800
|
};
|
|
2800
|
-
return /* @__PURE__ */ V.createElement(
|
|
2801
|
+
return /* @__PURE__ */ V.createElement(p, A({}, f, {
|
|
2801
2802
|
innerProps: _t,
|
|
2802
2803
|
data: M,
|
|
2803
2804
|
isDisabled: q,
|
|
@@ -2841,7 +2842,7 @@ var jt = function(e) {
|
|
|
2841
2842
|
inputValue: G
|
|
2842
2843
|
});
|
|
2843
2844
|
if ($ === null) return null;
|
|
2844
|
-
J = /* @__PURE__ */ V.createElement(
|
|
2845
|
+
J = /* @__PURE__ */ V.createElement(m, f, $);
|
|
2845
2846
|
}
|
|
2846
2847
|
var _ = {
|
|
2847
2848
|
minMenuHeight: F,
|
|
@@ -2860,7 +2861,7 @@ var jt = function(e) {
|
|
|
2860
2861
|
isLoading: y,
|
|
2861
2862
|
placement: K
|
|
2862
2863
|
}), /* @__PURE__ */ V.createElement(wu, {
|
|
2863
|
-
captureEnabled:
|
|
2864
|
+
captureEnabled: I,
|
|
2864
2865
|
onTopArrive: H,
|
|
2865
2866
|
onBottomArrive: Z,
|
|
2866
2867
|
lockEnabled: P
|
|
@@ -2876,7 +2877,7 @@ var jt = function(e) {
|
|
|
2876
2877
|
},
|
|
2877
2878
|
isLoading: y,
|
|
2878
2879
|
maxHeight: M,
|
|
2879
|
-
focusedOption:
|
|
2880
|
+
focusedOption: b
|
|
2880
2881
|
}), J);
|
|
2881
2882
|
}));
|
|
2882
2883
|
});
|
|
@@ -2899,28 +2900,28 @@ var jt = function(e) {
|
|
|
2899
2900
|
if (!(!l || s))
|
|
2900
2901
|
if (o)
|
|
2901
2902
|
if (r) {
|
|
2902
|
-
var
|
|
2903
|
-
return t.getOptionValue(
|
|
2903
|
+
var m = d.map(function(b) {
|
|
2904
|
+
return t.getOptionValue(b);
|
|
2904
2905
|
}).join(r);
|
|
2905
2906
|
return /* @__PURE__ */ V.createElement("input", {
|
|
2906
2907
|
name: l,
|
|
2907
2908
|
type: "hidden",
|
|
2908
|
-
value:
|
|
2909
|
+
value: m
|
|
2909
2910
|
});
|
|
2910
2911
|
} else {
|
|
2911
|
-
var
|
|
2912
|
+
var p = d.length > 0 ? d.map(function(b, g) {
|
|
2912
2913
|
return /* @__PURE__ */ V.createElement("input", {
|
|
2913
2914
|
key: "i-".concat(g),
|
|
2914
2915
|
name: l,
|
|
2915
2916
|
type: "hidden",
|
|
2916
|
-
value: t.getOptionValue(
|
|
2917
|
+
value: t.getOptionValue(b)
|
|
2917
2918
|
});
|
|
2918
2919
|
}) : /* @__PURE__ */ V.createElement("input", {
|
|
2919
2920
|
name: l,
|
|
2920
2921
|
type: "hidden",
|
|
2921
2922
|
value: ""
|
|
2922
2923
|
});
|
|
2923
|
-
return /* @__PURE__ */ V.createElement("div", null,
|
|
2924
|
+
return /* @__PURE__ */ V.createElement("div", null, p);
|
|
2924
2925
|
}
|
|
2925
2926
|
else {
|
|
2926
2927
|
var f = d[0] ? this.getOptionValue(d[0]) : "";
|
|
@@ -2949,36 +2950,36 @@ var jt = function(e) {
|
|
|
2949
2950
|
}, {
|
|
2950
2951
|
key: "render",
|
|
2951
2952
|
value: function() {
|
|
2952
|
-
var t = this.getComponents(), a = t.Control, r = t.IndicatorsContainer, s = t.SelectContainer, o = t.ValueContainer, l = this.props, c = l.className, d = l.id,
|
|
2953
|
-
return /* @__PURE__ */ V.createElement(s, A({},
|
|
2953
|
+
var t = this.getComponents(), a = t.Control, r = t.IndicatorsContainer, s = t.SelectContainer, o = t.ValueContainer, l = this.props, c = l.className, d = l.id, m = l.isDisabled, p = l.menuIsOpen, f = this.state.isFocused, b = this.commonProps = this.getCommonProps();
|
|
2954
|
+
return /* @__PURE__ */ V.createElement(s, A({}, b, {
|
|
2954
2955
|
className: c,
|
|
2955
2956
|
innerProps: {
|
|
2956
2957
|
id: d,
|
|
2957
2958
|
onKeyDown: this.onKeyDown
|
|
2958
2959
|
},
|
|
2959
|
-
isDisabled:
|
|
2960
|
+
isDisabled: m,
|
|
2960
2961
|
isFocused: f
|
|
2961
|
-
}), this.renderLiveRegion(), /* @__PURE__ */ V.createElement(a, A({},
|
|
2962
|
+
}), this.renderLiveRegion(), /* @__PURE__ */ V.createElement(a, A({}, b, {
|
|
2962
2963
|
innerRef: this.getControlRef,
|
|
2963
2964
|
innerProps: {
|
|
2964
2965
|
onMouseDown: this.onControlMouseDown,
|
|
2965
2966
|
onTouchEnd: this.onControlTouchEnd
|
|
2966
2967
|
},
|
|
2967
|
-
isDisabled:
|
|
2968
|
+
isDisabled: m,
|
|
2968
2969
|
isFocused: f,
|
|
2969
|
-
menuIsOpen:
|
|
2970
|
-
}), /* @__PURE__ */ V.createElement(o, A({},
|
|
2971
|
-
isDisabled:
|
|
2972
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ V.createElement(r, A({},
|
|
2973
|
-
isDisabled:
|
|
2970
|
+
menuIsOpen: p
|
|
2971
|
+
}), /* @__PURE__ */ V.createElement(o, A({}, b, {
|
|
2972
|
+
isDisabled: m
|
|
2973
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ V.createElement(r, A({}, b, {
|
|
2974
|
+
isDisabled: m
|
|
2974
2975
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
2975
2976
|
}
|
|
2976
2977
|
}], [{
|
|
2977
2978
|
key: "getDerivedStateFromProps",
|
|
2978
2979
|
value: function(t, a) {
|
|
2979
|
-
var r = a.prevProps, s = a.clearFocusValueOnUpdate, o = a.inputIsHiddenAfterUpdate, l = a.ariaSelection, c = a.isFocused, d = a.prevWasFocused,
|
|
2980
|
-
if (r && (f !== r.value ||
|
|
2981
|
-
var h =
|
|
2980
|
+
var r = a.prevProps, s = a.clearFocusValueOnUpdate, o = a.inputIsHiddenAfterUpdate, l = a.ariaSelection, c = a.isFocused, d = a.prevWasFocused, m = a.instancePrefix, p = t.options, f = t.value, b = t.menuIsOpen, g = t.inputValue, I = t.isMulti, G = he(f), y = {};
|
|
2981
|
+
if (r && (f !== r.value || p !== r.options || b !== r.menuIsOpen || g !== r.inputValue)) {
|
|
2982
|
+
var h = b ? qu(t, G) : [], F = b ? gt(pe(t, G), "".concat(m, "-option")) : [], B = s ? eo(a, G) : null, E = to(a, h), x = Xe(F, E);
|
|
2982
2983
|
y = {
|
|
2983
2984
|
selectValue: G,
|
|
2984
2985
|
focusedOption: E,
|
|
@@ -2993,7 +2994,7 @@ var jt = function(e) {
|
|
|
2993
2994
|
inputIsHiddenAfterUpdate: void 0
|
|
2994
2995
|
} : {}, w = l, P = c && d;
|
|
2995
2996
|
return c && !P && (w = {
|
|
2996
|
-
value: le(
|
|
2997
|
+
value: le(I, G, G[0] || null),
|
|
2997
2998
|
options: G,
|
|
2998
2999
|
action: "initial-input-focus"
|
|
2999
3000
|
}, P = !d), (l == null ? void 0 : l.action) === "initial-input-focus" && (w = null), v(v(v({}, y), W), {}, {
|
|
@@ -3003,20 +3004,20 @@ var jt = function(e) {
|
|
|
3003
3004
|
});
|
|
3004
3005
|
}
|
|
3005
3006
|
}]), i;
|
|
3006
|
-
}(
|
|
3007
|
+
}(nn);
|
|
3007
3008
|
Ut.defaultProps = Ku;
|
|
3008
3009
|
var io = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
3009
3010
|
function uo(n) {
|
|
3010
|
-
var e = n.defaultInputValue, i = e === void 0 ? "" : e, u = n.defaultMenuIsOpen, t = u === void 0 ? !1 : u, a = n.defaultValue, r = a === void 0 ? null : a, s = n.inputValue, o = n.menuIsOpen, l = n.onChange, c = n.onInputChange, d = n.onMenuClose,
|
|
3011
|
+
var e = n.defaultInputValue, i = e === void 0 ? "" : e, u = n.defaultMenuIsOpen, t = u === void 0 ? !1 : u, a = n.defaultValue, r = a === void 0 ? null : a, s = n.inputValue, o = n.menuIsOpen, l = n.onChange, c = n.onInputChange, d = n.onMenuClose, m = n.onMenuOpen, p = n.value, f = Y(n, io), b = te(s !== void 0 ? s : i), g = U(b, 2), I = g[0], G = g[1], y = te(o !== void 0 ? o : t), h = U(y, 2), F = h[0], B = h[1], E = te(p !== void 0 ? p : r), x = U(E, 2), W = x[0], w = x[1], P = T(function(O, $) {
|
|
3011
3012
|
typeof l == "function" && l(O, $), w(O);
|
|
3012
3013
|
}, [l]), X = T(function(O, $) {
|
|
3013
3014
|
var _;
|
|
3014
3015
|
typeof c == "function" && (_ = c(O, $)), G(_ !== void 0 ? _ : O);
|
|
3015
3016
|
}, [c]), D = T(function() {
|
|
3016
|
-
typeof
|
|
3017
|
-
}, [
|
|
3017
|
+
typeof m == "function" && m(), B(!0);
|
|
3018
|
+
}, [m]), H = T(function() {
|
|
3018
3019
|
typeof d == "function" && d(), B(!1);
|
|
3019
|
-
}, [d]), Z = s !== void 0 ? s :
|
|
3020
|
+
}, [d]), Z = s !== void 0 ? s : I, S = o !== void 0 ? o : F, J = p !== void 0 ? p : W;
|
|
3020
3021
|
return v(v({}, f), {}, {
|
|
3021
3022
|
inputValue: Z,
|
|
3022
3023
|
menuIsOpen: S,
|
|
@@ -3050,14 +3051,14 @@ var oo = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel"
|
|
|
3050
3051
|
}
|
|
3051
3052
|
};
|
|
3052
3053
|
function ao(n) {
|
|
3053
|
-
var e = n.allowCreateWhileLoading, i = e === void 0 ? !1 : e, u = n.createOptionPosition, t = u === void 0 ? "last" : u, a = n.formatCreateLabel, r = a === void 0 ? Ze.formatCreateLabel : a, s = n.isValidNewOption, o = s === void 0 ? Ze.isValidNewOption : s, l = n.getNewOptionData, c = l === void 0 ? Ze.getNewOptionData : l, d = n.onCreateOption,
|
|
3054
|
-
return o(h, he(E),
|
|
3055
|
-
getOptionValue:
|
|
3054
|
+
var e = n.allowCreateWhileLoading, i = e === void 0 ? !1 : e, u = n.createOptionPosition, t = u === void 0 ? "last" : u, a = n.formatCreateLabel, r = a === void 0 ? Ze.formatCreateLabel : a, s = n.isValidNewOption, o = s === void 0 ? Ze.isValidNewOption : s, l = n.getNewOptionData, c = l === void 0 ? Ze.getNewOptionData : l, d = n.onCreateOption, m = n.options, p = m === void 0 ? [] : m, f = n.onChange, b = Y(n, oo), g = b.getOptionValue, I = g === void 0 ? Ht : g, G = b.getOptionLabel, y = G === void 0 ? Lt : G, h = b.inputValue, F = b.isLoading, B = b.isMulti, E = b.value, x = b.name, W = ee(function() {
|
|
3055
|
+
return o(h, he(E), p, {
|
|
3056
|
+
getOptionValue: I,
|
|
3056
3057
|
getOptionLabel: y
|
|
3057
3058
|
}) ? c(h, r(h)) : void 0;
|
|
3058
|
-
}, [r, c, y,
|
|
3059
|
-
return (i || !F) && W ? t === "first" ? [W].concat(ue(
|
|
3060
|
-
}, [i, t, F, W,
|
|
3059
|
+
}, [r, c, y, I, h, o, p, E]), w = ee(function() {
|
|
3060
|
+
return (i || !F) && W ? t === "first" ? [W].concat(ue(p)) : [].concat(ue(p), [W]) : p;
|
|
3061
|
+
}, [i, t, F, W, p]), P = T(function(X, D) {
|
|
3061
3062
|
if (D.action !== "select-option")
|
|
3062
3063
|
return f(X, D);
|
|
3063
3064
|
var H = Array.isArray(X) ? X : [X];
|
|
@@ -3075,55 +3076,55 @@ function ao(n) {
|
|
|
3075
3076
|
}
|
|
3076
3077
|
f(X, D);
|
|
3077
3078
|
}, [c, h, B, x, W, d, f, E]);
|
|
3078
|
-
return v(v({},
|
|
3079
|
+
return v(v({}, b), {}, {
|
|
3079
3080
|
options: w,
|
|
3080
3081
|
onChange: P
|
|
3081
3082
|
});
|
|
3082
3083
|
}
|
|
3083
|
-
var ro = /* @__PURE__ */
|
|
3084
|
+
var ro = /* @__PURE__ */ un(function(n, e) {
|
|
3084
3085
|
var i = uo(n), u = ao(i);
|
|
3085
3086
|
return /* @__PURE__ */ V.createElement(Ut, A({
|
|
3086
3087
|
ref: e
|
|
3087
3088
|
}, u));
|
|
3088
3089
|
}), lo = ro;
|
|
3089
|
-
const
|
|
3090
|
+
const Co = (n) => {
|
|
3090
3091
|
const {
|
|
3091
|
-
value:
|
|
3092
|
-
memberedGroups:
|
|
3093
|
-
showError:
|
|
3094
|
-
labelPosition:
|
|
3095
|
-
onChange:
|
|
3096
|
-
onCreate:
|
|
3097
|
-
selectStyles:
|
|
3098
|
-
ownerState:
|
|
3099
|
-
sx:
|
|
3100
|
-
other:
|
|
3092
|
+
value: e,
|
|
3093
|
+
memberedGroups: i,
|
|
3094
|
+
showError: u,
|
|
3095
|
+
labelPosition: t,
|
|
3096
|
+
onChange: a,
|
|
3097
|
+
onCreate: r,
|
|
3098
|
+
selectStyles: s,
|
|
3099
|
+
ownerState: o,
|
|
3100
|
+
sx: l,
|
|
3101
|
+
other: c
|
|
3101
3102
|
} = sn(n);
|
|
3102
|
-
return /* @__PURE__ */ ke(cn, {
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
/* @__PURE__ */ ke(gn, { ownerState:
|
|
3106
|
-
|
|
3103
|
+
return /* @__PURE__ */ ke(cn, { ownerState: o, sx: l, ...c, children: [
|
|
3104
|
+
t === "left" && /* @__PURE__ */ oe(dn, { required: !0, ownerState: o, children: "Dissemination List" }),
|
|
3105
|
+
t === "top" && /* @__PURE__ */ oe(ze, { required: !0, ownerState: o, children: "Dissemination List" }),
|
|
3106
|
+
/* @__PURE__ */ ke(gn, { ownerState: o, children: [
|
|
3107
|
+
t === "default" && /* @__PURE__ */ oe(ze, { required: !0, ownerState: o, children: "Dissemination List" }),
|
|
3107
3108
|
/* @__PURE__ */ oe(
|
|
3108
3109
|
lo,
|
|
3109
3110
|
{
|
|
3110
3111
|
classNamePrefix: "hc-dissemination-list",
|
|
3111
|
-
value:
|
|
3112
|
-
options:
|
|
3112
|
+
value: e,
|
|
3113
|
+
options: i,
|
|
3113
3114
|
isMulti: !0,
|
|
3114
|
-
getOptionValue: (
|
|
3115
|
-
getOptionLabel: (
|
|
3116
|
-
isClearable:
|
|
3117
|
-
onCreateOption:
|
|
3118
|
-
onChange:
|
|
3115
|
+
getOptionValue: (d) => `${"id" in d ? d.id : d.value}`,
|
|
3116
|
+
getOptionLabel: (d) => `${"name" in d ? d.name : "Add User E-Mail: " + d.value}`,
|
|
3117
|
+
isClearable: e.some((d) => !d.isFixed),
|
|
3118
|
+
onCreateOption: r,
|
|
3119
|
+
onChange: a,
|
|
3119
3120
|
menuPosition: "fixed",
|
|
3120
|
-
styles:
|
|
3121
|
+
styles: s
|
|
3121
3122
|
}
|
|
3122
3123
|
),
|
|
3123
|
-
|
|
3124
|
+
u && /* @__PURE__ */ oe(bn, { error: !0, ownerState: o, children: "This field is required!" })
|
|
3124
3125
|
] })
|
|
3125
3126
|
] });
|
|
3126
|
-
}
|
|
3127
|
+
};
|
|
3127
3128
|
export {
|
|
3128
|
-
|
|
3129
|
+
Co as DisseminationList
|
|
3129
3130
|
};
|