@banyan_cloud/roots 1.0.20 → 1.0.23
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/cjs/index.js +2600 -453
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +2599 -454
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +2598 -455
- package/package.json +1 -1
- package/styles/_utils.scss +6 -0
package/dist/esm/index.js
CHANGED
|
@@ -1560,9 +1560,9 @@ var getCSSVariableValue = function getCSSVariableValue(variable) {
|
|
|
1560
1560
|
|
|
1561
1561
|
var e$1=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e$1.indexOf(i);-1===u&&(u=e$1.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
1562
1562
|
|
|
1563
|
-
var css$
|
|
1564
|
-
var modules_3af9b74c = {"root":"
|
|
1565
|
-
n(css$
|
|
1563
|
+
var css$Q = ".BaseCell_module_root__81e07d2d {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding: 0.5rem;\n gap: 0.5rem;\n flex: none;\n height: 3rem;\n background: var(--white);\n max-width: 100%;\n max-height: 100%;\n}\n.BaseCell_module_root__81e07d2d > [data-elem*=component] {\n display: inline-block;\n max-height: 100%;\n}\n.BaseCell_module_root__81e07d2d.BaseCell_module_sm__81e07d2d {\n width: 9.063rem;\n}\n.BaseCell_module_root__81e07d2d.BaseCell_module_md__81e07d2d {\n width: 15.625rem;\n}\n.BaseCell_module_root__81e07d2d.BaseCell_module_lg__81e07d2d {\n width: 21.875rem;\n}\n.BaseCell_module_root__81e07d2d.BaseCell_module_auto__81e07d2d {\n width: auto;\n}\n.BaseCell_module_root__81e07d2d.BaseCell_module_borderRadiusDefault__81e07d2d {\n border-radius: 0.25rem;\n}\n.BaseCell_module_root__81e07d2d.BaseCell_module_borderRadiusRound__81e07d2d {\n border-radius: 50%;\n}\n.BaseCell_module_root__81e07d2d.BaseCell_module_borderRadiusEllipse__81e07d2d {\n border-radius: 1.563rem;\n}\n.BaseCell_module_root__81e07d2d.BaseCell_module_flexible__81e07d2d {\n flex-grow: 1;\n flex-shrink: 1;\n min-width: 3rem;\n}\n.BaseCell_module_root__81e07d2d.BaseCell_module_flexible__81e07d2d.BaseCell_module_sm__81e07d2d {\n min-width: 9.063rem;\n}\n.BaseCell_module_root__81e07d2d.BaseCell_module_flexible__81e07d2d.BaseCell_module_md__81e07d2d {\n min-width: 15.625rem;\n}\n.BaseCell_module_root__81e07d2d.BaseCell_module_flexible__81e07d2d.BaseCell_module_lg__81e07d2d {\n min-width: 21.875rem;\n}";
|
|
1564
|
+
var modules_3af9b74c = {"root":"BaseCell_module_root__81e07d2d","sm":"BaseCell_module_sm__81e07d2d","md":"BaseCell_module_md__81e07d2d","lg":"BaseCell_module_lg__81e07d2d","auto":"BaseCell_module_auto__81e07d2d","border-radius-default":"BaseCell_module_borderRadiusDefault__81e07d2d","border-radius-round":"BaseCell_module_borderRadiusRound__81e07d2d","border-radius-ellipse":"BaseCell_module_borderRadiusEllipse__81e07d2d","flexible":"BaseCell_module_flexible__81e07d2d"};
|
|
1565
|
+
n(css$Q,{});
|
|
1566
1566
|
|
|
1567
1567
|
var BaseCell = /*#__PURE__*/forwardRef(function BaseCell(props, ref) {
|
|
1568
1568
|
var className = props.className,
|
|
@@ -1968,9 +1968,9 @@ Server.defaultProps = {
|
|
|
1968
1968
|
className: ''
|
|
1969
1969
|
};
|
|
1970
1970
|
|
|
1971
|
-
var css$
|
|
1971
|
+
var css$P = ".Arrow_module_right__19f08663 {\n transform: rotate(0deg);\n}\n\n.Arrow_module_left__19f08663 {\n transform: rotate(180deg);\n}\n\n.Arrow_module_bottom__19f08663 {\n transform: rotate(90deg);\n}\n\n.Arrow_module_top__19f08663 {\n transform: rotate(270deg);\n}";
|
|
1972
1972
|
var modules_e313d483 = {"right":"Arrow_module_right__19f08663","left":"Arrow_module_left__19f08663","bottom":"Arrow_module_bottom__19f08663","top":"Arrow_module_top__19f08663"};
|
|
1973
|
-
n(css$
|
|
1973
|
+
n(css$P,{});
|
|
1974
1974
|
|
|
1975
1975
|
var Arrow$1 = function Arrow(props) {
|
|
1976
1976
|
var className = props.className,
|
|
@@ -1990,9 +1990,9 @@ Arrow$1.defaultProps = {
|
|
|
1990
1990
|
position: 'right'
|
|
1991
1991
|
};
|
|
1992
1992
|
|
|
1993
|
-
var css$
|
|
1993
|
+
var css$O = ".Chevron_module_left__8b1808eb {\n transform: rotate(0deg);\n}\n\n.Chevron_module_bottom__8b1808eb {\n transform: rotate(90deg);\n}\n\n.Chevron_module_right__8b1808eb {\n transform: rotate(180deg);\n}\n\n.Chevron_module_top__8b1808eb {\n transform: rotate(270deg);\n}";
|
|
1994
1994
|
var modules_bf5b0b74 = {"left":"Chevron_module_left__8b1808eb","bottom":"Chevron_module_bottom__8b1808eb","right":"Chevron_module_right__8b1808eb","top":"Chevron_module_top__8b1808eb"};
|
|
1995
|
-
n(css$
|
|
1995
|
+
n(css$O,{});
|
|
1996
1996
|
|
|
1997
1997
|
var Chevron = function Chevron(props) {
|
|
1998
1998
|
var className = props.className,
|
|
@@ -2287,9 +2287,9 @@ Reset.defaultProps = {
|
|
|
2287
2287
|
className: ''
|
|
2288
2288
|
};
|
|
2289
2289
|
|
|
2290
|
-
var css$
|
|
2290
|
+
var css$N = ".Accordion_module_root__43fdf130 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n width: 100%;\n}\n.Accordion_module_root__43fdf130 > .Accordion_module_header__43fdf130[data-elem=base-cell] {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n gap: 0.5rem;\n padding: 0.5rem 1rem;\n cursor: pointer;\n}\n.Accordion_module_root__43fdf130 > .Accordion_module_header__43fdf130[data-elem=base-cell] > [data-elem=component1] {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n.Accordion_module_root__43fdf130 > .Accordion_module_header__43fdf130[data-elem=base-cell] > [data-elem=component1] .Accordion_module_icon__43fdf130 {\n transform: rotate(-90deg);\n width: 1rem;\n height: 1rem;\n}\n.Accordion_module_root__43fdf130 > .Accordion_module_header__43fdf130[data-elem=base-cell] .Accordion_module_title__43fdf130 {\n flex: 1 1 auto;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.Accordion_module_root__43fdf130 > .Accordion_module_header__43fdf130[data-elem=base-cell]:hover {\n background: var(--background);\n}\n.Accordion_module_root__43fdf130 > .Accordion_module_header__43fdf130[data-elem=base-cell]:hover .Accordion_module_icon__43fdf130,\n.Accordion_module_root__43fdf130 > .Accordion_module_header__43fdf130[data-elem=base-cell]:hover .Accordion_module_title__43fdf130 {\n color: var(--highlight);\n fill: var(--highlight);\n}\n.Accordion_module_root__43fdf130 > .Accordion_module_body__43fdf130 {\n display: none;\n padding: 0.5rem 2.5rem;\n}\n.Accordion_module_root__43fdf130.Accordion_module_open__43fdf130 > .Accordion_module_header__43fdf130[data-elem=base-cell] [data-elem=component1] .Accordion_module_icon__43fdf130 {\n transform: none;\n}\n.Accordion_module_root__43fdf130.Accordion_module_open__43fdf130 > .Accordion_module_body__43fdf130 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n}";
|
|
2291
2291
|
var modules_8207625f = {"root":"Accordion_module_root__43fdf130","header":"Accordion_module_header__43fdf130","icon":"Accordion_module_icon__43fdf130","title":"Accordion_module_title__43fdf130","body":"Accordion_module_body__43fdf130","open":"Accordion_module_open__43fdf130"};
|
|
2292
|
-
n(css$
|
|
2292
|
+
n(css$N,{});
|
|
2293
2293
|
|
|
2294
2294
|
var Accordion = function Accordion(props) {
|
|
2295
2295
|
var defaultOpen = props.defaultOpen,
|
|
@@ -2356,13 +2356,13 @@ Accordion.defaultProps = {
|
|
|
2356
2356
|
className: ''
|
|
2357
2357
|
};
|
|
2358
2358
|
|
|
2359
|
-
var css$
|
|
2359
|
+
var css$M = ".Alert_module_root__b5fc9a1d {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: flex-start;\n position: fixed;\n padding: 0.938rem;\n width: 500px;\n}\n.Alert_module_root__b5fc9a1d.Alert_module_positionBottomCenter__b5fc9a1d {\n left: 50%;\n bottom: 1rem;\n transform: translate(-50%, 0);\n}\n.Alert_module_root__b5fc9a1d.Alert_module_positionTopRight__b5fc9a1d {\n right: 1rem;\n top: 1rem;\n}\n.Alert_module_root__b5fc9a1d .Alert_module_left__b5fc9a1d {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: flex-start;\n}\n.Alert_module_root__b5fc9a1d .Alert_module_left__b5fc9a1d .Alert_module_icons__b5fc9a1d {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n padding: 0.313rem 0.938rem 0rem 0rem;\n height: auto;\n}\n.Alert_module_root__b5fc9a1d .Alert_module_left__b5fc9a1d .Alert_module_icons__b5fc9a1d .Alert_module_icon__b5fc9a1d {\n width: 1.25rem;\n height: 1.25rem;\n}\n.Alert_module_root__b5fc9a1d .Alert_module_left__b5fc9a1d .Alert_module_content__b5fc9a1d {\n padding: 0.188rem 0.938rem 0rem 0rem;\n}\n.Alert_module_root__b5fc9a1d .Alert_module_left__b5fc9a1d .Alert_module_content__b5fc9a1d .Alert_module_title__b5fc9a1d {\n font-size: 0.875rem;\n font-weight: 600;\n padding-right: 2px;\n}\n.Alert_module_root__b5fc9a1d .Alert_module_left__b5fc9a1d .Alert_module_content__b5fc9a1d .Alert_module_description__b5fc9a1d {\n word-wrap: break-word;\n height: auto;\n font-size: 0.875rem;\n font-weight: 400;\n margin-bottom: 0.5rem;\n}\n.Alert_module_root__b5fc9a1d .Alert_module_actions__b5fc9a1d {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: flex-start;\n gap: 5px;\n}\n.Alert_module_root__b5fc9a1d .Alert_module_actions__b5fc9a1d .Alert_module_button__b5fc9a1d {\n padding: 0.313rem 1rem;\n font-weight: 400;\n}\n.Alert_module_root__b5fc9a1d .Alert_module_actions__b5fc9a1d .Alert_module_close__b5fc9a1d {\n padding-top: 0.313rem;\n}\n.Alert_module_root__b5fc9a1d .Alert_module_actions__b5fc9a1d .Alert_module_close__b5fc9a1d .Alert_module_icon__b5fc9a1d {\n width: 1.25rem;\n height: 1.25rem;\n fill: var(--black);\n}\n.Alert_module_root__b5fc9a1d.Alert_module_borderDefault__b5fc9a1d {\n border-width: 0.063rem;\n}\n.Alert_module_root__b5fc9a1d.Alert_module_borderThickLeft__b5fc9a1d {\n border-width: 0.063rem 0.063rem 0.063rem 0.25rem;\n}\n.Alert_module_root__b5fc9a1d.Alert_module_borderNone__b5fc9a1d {\n border-width: 0rem 0rem 0rem 0.25rem;\n}\n.Alert_module_root__b5fc9a1d.Alert_module_info__b5fc9a1d {\n border-style: solid;\n border-color: var(--info);\n background-color: #edf5ff;\n}\n.Alert_module_root__b5fc9a1d.Alert_module_info__b5fc9a1d .Alert_module_icon__b5fc9a1d {\n fill: var(--info);\n}\n.Alert_module_root__b5fc9a1d.Alert_module_success__b5fc9a1d {\n border-style: solid;\n border-color: var(--success);\n background-color: var(--success-bg);\n}\n.Alert_module_root__b5fc9a1d.Alert_module_success__b5fc9a1d .Alert_module_icon__b5fc9a1d {\n fill: var(--success);\n}\n.Alert_module_root__b5fc9a1d.Alert_module_danger__b5fc9a1d {\n border-style: solid;\n border-color: var(--error);\n background-color: var(--error-bg);\n}\n.Alert_module_root__b5fc9a1d.Alert_module_danger__b5fc9a1d .Alert_module_icon__b5fc9a1d {\n fill: var(--error);\n}\n.Alert_module_root__b5fc9a1d.Alert_module_warning__b5fc9a1d {\n border-style: solid;\n border-color: var(--warning);\n background-color: var(--warning-bg);\n}\n.Alert_module_root__b5fc9a1d.Alert_module_warning__b5fc9a1d .Alert_module_icon__b5fc9a1d {\n fill: var(--warning);\n}\n.Alert_module_root__b5fc9a1d.Alert_module_shadow__b5fc9a1d {\n box-shadow: 0.125rem 0.5rem 1rem rgba(60, 60, 60, 0.12);\n}";
|
|
2360
2360
|
var modules_3a764ea3 = {"root":"Alert_module_root__b5fc9a1d","position-bottom-center":"Alert_module_positionBottomCenter__b5fc9a1d","position-top-right":"Alert_module_positionTopRight__b5fc9a1d","left":"Alert_module_left__b5fc9a1d","icons":"Alert_module_icons__b5fc9a1d","icon":"Alert_module_icon__b5fc9a1d","content":"Alert_module_content__b5fc9a1d","title":"Alert_module_title__b5fc9a1d","description":"Alert_module_description__b5fc9a1d","actions":"Alert_module_actions__b5fc9a1d","button":"Alert_module_button__b5fc9a1d","close":"Alert_module_close__b5fc9a1d","border-default":"Alert_module_borderDefault__b5fc9a1d","border-thick-left":"Alert_module_borderThickLeft__b5fc9a1d","border-none":"Alert_module_borderNone__b5fc9a1d","info":"Alert_module_info__b5fc9a1d","success":"Alert_module_success__b5fc9a1d","danger":"Alert_module_danger__b5fc9a1d","warning":"Alert_module_warning__b5fc9a1d","shadow":"Alert_module_shadow__b5fc9a1d"};
|
|
2361
|
-
n(css$
|
|
2361
|
+
n(css$M,{});
|
|
2362
2362
|
|
|
2363
|
-
var css$
|
|
2364
|
-
var modules_ab72627b = {"
|
|
2365
|
-
n(css$
|
|
2363
|
+
var css$L = "button.BaseButton_module_root__39a3f3ec[data-elem=base-cell] {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n display: inline-flex;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n border: none;\n background: none;\n padding: 0.5rem 0.75rem;\n}\nbutton.BaseButton_module_root__39a3f3ec[data-elem=base-cell]:focus {\n outline: 1px solid var(--highlight);\n}\nbutton.BaseButton_module_root__39a3f3ec[data-elem=base-cell]:active {\n outline: none;\n}\nbutton.BaseButton_module_root__39a3f3ec[data-elem=base-cell]:disabled {\n cursor: not-allowed;\n}\nbutton.BaseButton_module_root__39a3f3ec[data-elem=base-cell].BaseButton_module_contained__39a3f3ec {\n background: var(--black);\n color: var(--white);\n}\nbutton.BaseButton_module_root__39a3f3ec[data-elem=base-cell].BaseButton_module_outlined__39a3f3ec {\n color: var(--black);\n border: 1px solid var(--black);\n}\nbutton.BaseButton_module_root__39a3f3ec[data-elem=base-cell].BaseButton_module_text__39a3f3ec {\n color: var(--black);\n}\nbutton.BaseButton_module_root__39a3f3ec[data-elem=base-cell] [data-elem*=component] {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\nbutton.BaseButton_module_root__39a3f3ec[data-elem=base-cell] [data-elem=component2] {\n min-width: 0;\n}\nbutton.BaseButton_module_root__39a3f3ec[data-elem=base-cell] [data-elem=title] {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n}";
|
|
2364
|
+
var modules_ab72627b = {"root":"BaseButton_module_root__39a3f3ec","contained":"BaseButton_module_contained__39a3f3ec","outlined":"BaseButton_module_outlined__39a3f3ec","text":"BaseButton_module_text__39a3f3ec"};
|
|
2365
|
+
n(css$L,{});
|
|
2366
2366
|
|
|
2367
2367
|
var BaseButton = /*#__PURE__*/forwardRef(function BaseButton(props, ref) {
|
|
2368
2368
|
var className = props.className,
|
|
@@ -2374,7 +2374,8 @@ var BaseButton = /*#__PURE__*/forwardRef(function BaseButton(props, ref) {
|
|
|
2374
2374
|
radius = props.radius,
|
|
2375
2375
|
disabled = props.disabled,
|
|
2376
2376
|
type = props.type,
|
|
2377
|
-
|
|
2377
|
+
_onClick = props.onClick,
|
|
2378
|
+
blurOnClick = props.blurOnClick,
|
|
2378
2379
|
variant = props.variant;
|
|
2379
2380
|
var Title = title && /*#__PURE__*/jsx$1("span", {
|
|
2380
2381
|
"data-elem": "title",
|
|
@@ -2392,7 +2393,13 @@ var BaseButton = /*#__PURE__*/forwardRef(function BaseButton(props, ref) {
|
|
|
2392
2393
|
attrs: {
|
|
2393
2394
|
disabled: disabled,
|
|
2394
2395
|
type: type,
|
|
2395
|
-
onClick: onClick
|
|
2396
|
+
onClick: function onClick(event) {
|
|
2397
|
+
if (blurOnClick) {
|
|
2398
|
+
var _event$currentTarget;
|
|
2399
|
+
event === null || event === void 0 ? void 0 : (_event$currentTarget = event.currentTarget) === null || _event$currentTarget === void 0 ? void 0 : _event$currentTarget.blur();
|
|
2400
|
+
}
|
|
2401
|
+
_onClick(event);
|
|
2402
|
+
}
|
|
2396
2403
|
},
|
|
2397
2404
|
RootDOM: "button"
|
|
2398
2405
|
});
|
|
@@ -2402,6 +2409,7 @@ BaseButton.propTypes = _objectSpread2(_objectSpread2({}, BaseCell.propTypes), {}
|
|
|
2402
2409
|
disabled: propTypes$1.exports.bool,
|
|
2403
2410
|
type: propTypes$1.exports.oneOf(['button', 'submit', 'reset']),
|
|
2404
2411
|
onClick: propTypes$1.exports.func,
|
|
2412
|
+
blurOnClick: propTypes$1.exports.bool,
|
|
2405
2413
|
variant: propTypes$1.exports.oneOf(['contained', 'outlined', 'text'])
|
|
2406
2414
|
});
|
|
2407
2415
|
BaseButton.defaultProps = _objectSpread2(_objectSpread2({}, BaseCell.defaultProps), {}, {
|
|
@@ -2409,12 +2417,13 @@ BaseButton.defaultProps = _objectSpread2(_objectSpread2({}, BaseCell.defaultProp
|
|
|
2409
2417
|
disabled: false,
|
|
2410
2418
|
type: 'submit',
|
|
2411
2419
|
onClick: function onClick() {},
|
|
2420
|
+
blurOnClick: true,
|
|
2412
2421
|
variant: 'contained'
|
|
2413
2422
|
});
|
|
2414
2423
|
|
|
2415
|
-
var css$
|
|
2424
|
+
var css$K = ".Button_module_root__fe35a4dc[data-elem=base-cell] {\n cursor: pointer;\n}\n.Button_module_root__fe35a4dc[data-elem=base-cell] [data-elem=component2] [data-elem=title] {\n font-weight: 500;\n font-size: 0.875rem;\n}\n.Button_module_root__fe35a4dc[data-elem=base-cell].Button_module_primary__fe35a4dc.Button_module_contained__fe35a4dc {\n background-color: var(--highlight);\n color: var(--white);\n}\n.Button_module_root__fe35a4dc[data-elem=base-cell].Button_module_primary__fe35a4dc.Button_module_outlined__fe35a4dc {\n background-color: transparent;\n border-color: var(--highlight);\n}\n.Button_module_root__fe35a4dc[data-elem=base-cell].Button_module_primary__fe35a4dc.Button_module_outlined__fe35a4dc, .Button_module_root__fe35a4dc[data-elem=base-cell].Button_module_primary__fe35a4dc.Button_module_text__fe35a4dc {\n color: var(--highlight);\n}\n.Button_module_root__fe35a4dc[data-elem=base-cell].Button_module_success__fe35a4dc.Button_module_contained__fe35a4dc {\n background-color: var(--success);\n color: var(--white);\n}\n.Button_module_root__fe35a4dc[data-elem=base-cell].Button_module_success__fe35a4dc.Button_module_outlined__fe35a4dc {\n background-color: transparent;\n border-color: var(--success);\n}\n.Button_module_root__fe35a4dc[data-elem=base-cell].Button_module_success__fe35a4dc.Button_module_outlined__fe35a4dc, .Button_module_root__fe35a4dc[data-elem=base-cell].Button_module_success__fe35a4dc.Button_module_text__fe35a4dc {\n color: var(--success);\n}\n.Button_module_root__fe35a4dc[data-elem=base-cell].Button_module_danger__fe35a4dc.Button_module_contained__fe35a4dc {\n background-color: var(--error);\n color: var(--white);\n}\n.Button_module_root__fe35a4dc[data-elem=base-cell].Button_module_danger__fe35a4dc.Button_module_outlined__fe35a4dc {\n background-color: transparent;\n border-color: var(--error);\n}\n.Button_module_root__fe35a4dc[data-elem=base-cell].Button_module_danger__fe35a4dc.Button_module_outlined__fe35a4dc, .Button_module_root__fe35a4dc[data-elem=base-cell].Button_module_danger__fe35a4dc.Button_module_text__fe35a4dc {\n color: var(--error);\n}\n.Button_module_root__fe35a4dc[data-elem=base-cell].Button_module_warning__fe35a4dc.Button_module_contained__fe35a4dc {\n background-color: var(--warning);\n color: var(--white);\n}\n.Button_module_root__fe35a4dc[data-elem=base-cell].Button_module_warning__fe35a4dc.Button_module_outlined__fe35a4dc {\n background-color: transparent;\n border-color: var(--warning);\n}\n.Button_module_root__fe35a4dc[data-elem=base-cell].Button_module_warning__fe35a4dc.Button_module_outlined__fe35a4dc, .Button_module_root__fe35a4dc[data-elem=base-cell].Button_module_warning__fe35a4dc.Button_module_text__fe35a4dc {\n color: var(--warning);\n}\n.Button_module_root__fe35a4dc[data-elem=base-cell]:disabled.Button_module_contained__fe35a4dc {\n background-color: var(--grey4);\n color: var(--grey);\n}\n.Button_module_root__fe35a4dc[data-elem=base-cell]:disabled.Button_module_outlined__fe35a4dc {\n background-color: transparent;\n border-color: var(--grey);\n}\n.Button_module_root__fe35a4dc[data-elem=base-cell]:disabled.Button_module_outlined__fe35a4dc, .Button_module_root__fe35a4dc[data-elem=base-cell]:disabled.Button_module_text__fe35a4dc {\n color: var(--grey);\n}";
|
|
2416
2425
|
var modules_b0070f27 = {"root":"Button_module_root__fe35a4dc","primary":"Button_module_primary__fe35a4dc","contained":"Button_module_contained__fe35a4dc","outlined":"Button_module_outlined__fe35a4dc","text":"Button_module_text__fe35a4dc","success":"Button_module_success__fe35a4dc","danger":"Button_module_danger__fe35a4dc","warning":"Button_module_warning__fe35a4dc"};
|
|
2417
|
-
n(css$
|
|
2426
|
+
n(css$K,{});
|
|
2418
2427
|
|
|
2419
2428
|
var Button = /*#__PURE__*/forwardRef(function Button(props, ref) {
|
|
2420
2429
|
var className = props.className,
|
|
@@ -2427,6 +2436,7 @@ var Button = /*#__PURE__*/forwardRef(function Button(props, ref) {
|
|
|
2427
2436
|
radius = props.radius,
|
|
2428
2437
|
disabled = props.disabled,
|
|
2429
2438
|
onClick = props.onClick,
|
|
2439
|
+
blurOnClick = props.blurOnClick,
|
|
2430
2440
|
variant = props.variant,
|
|
2431
2441
|
color = props.color;
|
|
2432
2442
|
return /*#__PURE__*/jsx$1(BaseButton, {
|
|
@@ -2440,6 +2450,7 @@ var Button = /*#__PURE__*/forwardRef(function Button(props, ref) {
|
|
|
2440
2450
|
radius: radius,
|
|
2441
2451
|
disabled: disabled,
|
|
2442
2452
|
onClick: onClick,
|
|
2453
|
+
blurOnClick: blurOnClick,
|
|
2443
2454
|
variant: variant,
|
|
2444
2455
|
className: classes(modules_b0070f27.root, modules_b0070f27["radius-".concat(radius)], modules_b0070f27[variant], modules_b0070f27[color], className)
|
|
2445
2456
|
});
|
|
@@ -2456,9 +2467,9 @@ Button.defaultProps = _objectSpread2(_objectSpread2({}, BaseButton.defaultProps)
|
|
|
2456
2467
|
radius: 'default'
|
|
2457
2468
|
});
|
|
2458
2469
|
|
|
2459
|
-
var css$
|
|
2470
|
+
var css$J = ".Chip_module_root__0aa07630[data-elem=base-cell] {\n position: relative;\n}\n.Chip_module_root__0aa07630[data-elem=base-cell] [data-elem=component2] [data-elem=title] {\n font-weight: 500;\n font-size: 0.875rem;\n}\n.Chip_module_root__0aa07630[data-elem=base-cell].Chip_module_sm__0aa07630 {\n height: 2rem;\n padding: 0.188rem 0.5rem;\n}\n.Chip_module_root__0aa07630[data-elem=base-cell].Chip_module_md__0aa07630 {\n height: 2.25rem;\n padding: 0.563rem 1rem;\n}\n.Chip_module_root__0aa07630[data-elem=base-cell].Chip_module_status__0aa07630.Chip_module_success__0aa07630 {\n background-color: var(--success-bg);\n color: var(--success);\n}\n.Chip_module_root__0aa07630[data-elem=base-cell].Chip_module_status__0aa07630.Chip_module_info__0aa07630 {\n background-color: var(--info-bg);\n color: var(--info);\n}\n.Chip_module_root__0aa07630[data-elem=base-cell].Chip_module_status__0aa07630.Chip_module_danger__0aa07630 {\n background-color: var(--error-bg);\n color: var(--error);\n}\n.Chip_module_root__0aa07630[data-elem=base-cell].Chip_module_status__0aa07630.Chip_module_warning__0aa07630 {\n background-color: var(--warning-bg);\n color: var(--warning);\n}\n.Chip_module_root__0aa07630[data-elem=base-cell].Chip_module_status__0aa07630.Chip_module_default__0aa07630 {\n background-color: var(--grey5);\n color: var(--grey);\n}\n.Chip_module_root__0aa07630[data-elem=base-cell].Chip_module_status__0aa07630:hover {\n box-shadow: -2px -2px 4px rgba(166, 166, 166, 0.25), 2px 2px 4px rgba(166, 166, 166, 0.24);\n}\n.Chip_module_root__0aa07630[data-elem=base-cell].Chip_module_input__0aa07630 {\n border-width: 1px;\n border-style: solid;\n}\n.Chip_module_root__0aa07630[data-elem=base-cell].Chip_module_input__0aa07630.Chip_module_success__0aa07630 {\n background-color: var(--success-bg);\n color: var(--success);\n border-color: var(--success-outline);\n}\n.Chip_module_root__0aa07630[data-elem=base-cell].Chip_module_input__0aa07630.Chip_module_success__0aa07630:hover {\n background-color: var(--success-outline);\n}\n.Chip_module_root__0aa07630[data-elem=base-cell].Chip_module_input__0aa07630.Chip_module_info__0aa07630 {\n background-color: var(--info-bg);\n color: var(--info);\n border-color: var(--info-outline);\n}\n.Chip_module_root__0aa07630[data-elem=base-cell].Chip_module_input__0aa07630.Chip_module_info__0aa07630:hover {\n background-color: var(--info-outline);\n}\n.Chip_module_root__0aa07630[data-elem=base-cell].Chip_module_input__0aa07630.Chip_module_danger__0aa07630 {\n background-color: var(--error-bg);\n color: var(--error);\n border-color: var(--error-outline);\n}\n.Chip_module_root__0aa07630[data-elem=base-cell].Chip_module_input__0aa07630.Chip_module_danger__0aa07630:hover {\n background-color: var(--error-outline);\n}\n.Chip_module_root__0aa07630[data-elem=base-cell].Chip_module_input__0aa07630.Chip_module_warning__0aa07630 {\n background-color: var(--warning-bg);\n color: var(--warning);\n border-color: var(--warning-outline);\n}\n.Chip_module_root__0aa07630[data-elem=base-cell].Chip_module_input__0aa07630.Chip_module_warning__0aa07630:hover {\n background-color: var(--warning-outline);\n}\n.Chip_module_root__0aa07630[data-elem=base-cell].Chip_module_input__0aa07630.Chip_module_default__0aa07630 {\n background-color: var(--grey8);\n color: var(--grey);\n border-color: var(--grey6);\n}\n.Chip_module_root__0aa07630[data-elem=base-cell].Chip_module_input__0aa07630.Chip_module_default__0aa07630:hover {\n background-color: var(--grey6);\n}\n.Chip_module_root__0aa07630[data-elem=base-cell]:disabled.Chip_module_status__0aa07630, .Chip_module_root__0aa07630[data-elem=base-cell]:disabled.Chip_module_input__0aa07630 {\n filter: grayscale(1);\n border-color: var(--grey4);\n background-color: var(--grey5);\n color: var(--grey2);\n}\n.Chip_module_root__0aa07630[data-elem=base-cell]:disabled.Chip_module_status__0aa07630 [data-elem=component1],\n.Chip_module_root__0aa07630[data-elem=base-cell]:disabled.Chip_module_status__0aa07630 [data-elem=component3], .Chip_module_root__0aa07630[data-elem=base-cell]:disabled.Chip_module_input__0aa07630 [data-elem=component1],\n.Chip_module_root__0aa07630[data-elem=base-cell]:disabled.Chip_module_input__0aa07630 [data-elem=component3] {\n opacity: 0.5;\n}\n.Chip_module_root__0aa07630[data-elem=base-cell]:disabled.Chip_module_status__0aa07630:hover, .Chip_module_root__0aa07630[data-elem=base-cell]:disabled.Chip_module_input__0aa07630:hover {\n box-shadow: none;\n background-color: var(--grey5);\n}";
|
|
2460
2471
|
var modules_31aa5fd7 = {"root":"Chip_module_root__0aa07630","sm":"Chip_module_sm__0aa07630","md":"Chip_module_md__0aa07630","status":"Chip_module_status__0aa07630","success":"Chip_module_success__0aa07630","info":"Chip_module_info__0aa07630","danger":"Chip_module_danger__0aa07630","warning":"Chip_module_warning__0aa07630","default":"Chip_module_default__0aa07630","input":"Chip_module_input__0aa07630"};
|
|
2461
|
-
n(css$
|
|
2472
|
+
n(css$J,{});
|
|
2462
2473
|
|
|
2463
2474
|
var Chip = function Chip(props) {
|
|
2464
2475
|
var className = props.className,
|
|
@@ -5798,128 +5809,9 @@ const useListNavigation = function (_ref, _temp2) {
|
|
|
5798
5809
|
};
|
|
5799
5810
|
};
|
|
5800
5811
|
|
|
5801
|
-
|
|
5802
|
-
* Provides a matching callback that can be used to focus an item as the user
|
|
5803
|
-
* types, often used in tandem with `useListNavigation()`.
|
|
5804
|
-
* @see https://floating-ui.com/docs/useTypeahead
|
|
5805
|
-
*/
|
|
5806
|
-
const useTypeahead = function (_ref, _temp) {
|
|
5807
|
-
var _ref2;
|
|
5808
|
-
|
|
5809
|
-
let {
|
|
5810
|
-
open,
|
|
5811
|
-
dataRef
|
|
5812
|
-
} = _ref;
|
|
5813
|
-
let {
|
|
5814
|
-
listRef,
|
|
5815
|
-
activeIndex,
|
|
5816
|
-
onMatch = () => {},
|
|
5817
|
-
enabled = true,
|
|
5818
|
-
findMatch = null,
|
|
5819
|
-
resetMs = 1000,
|
|
5820
|
-
ignoreKeys = [],
|
|
5821
|
-
selectedIndex = null
|
|
5822
|
-
} = _temp === void 0 ? {
|
|
5823
|
-
listRef: {
|
|
5824
|
-
current: []
|
|
5825
|
-
},
|
|
5826
|
-
activeIndex: null
|
|
5827
|
-
} : _temp;
|
|
5828
|
-
const timeoutIdRef = React.useRef();
|
|
5829
|
-
const stringRef = React.useRef('');
|
|
5830
|
-
const prevIndexRef = React.useRef((_ref2 = selectedIndex != null ? selectedIndex : activeIndex) != null ? _ref2 : -1);
|
|
5831
|
-
const matchIndexRef = React.useRef(null);
|
|
5832
|
-
index(() => {
|
|
5833
|
-
if (open) {
|
|
5834
|
-
clearTimeout(timeoutIdRef.current);
|
|
5835
|
-
matchIndexRef.current = null;
|
|
5836
|
-
stringRef.current = '';
|
|
5837
|
-
}
|
|
5838
|
-
}, [open]);
|
|
5839
|
-
index(() => {
|
|
5840
|
-
// Sync arrow key navigation but not typeahead navigation
|
|
5841
|
-
if (open && stringRef.current === '') {
|
|
5842
|
-
var _ref3;
|
|
5843
|
-
|
|
5844
|
-
prevIndexRef.current = (_ref3 = selectedIndex != null ? selectedIndex : activeIndex) != null ? _ref3 : -1;
|
|
5845
|
-
}
|
|
5846
|
-
}, [open, selectedIndex, activeIndex]);
|
|
5847
|
-
|
|
5848
|
-
function onKeyDown(event) {
|
|
5849
|
-
// Correctly scope nested non-portalled floating elements. Since the nested
|
|
5850
|
-
// floating element is inside of the another, we find the closest role
|
|
5851
|
-
// that indicates the floating element scope.
|
|
5852
|
-
const target = getTarget(event.nativeEvent);
|
|
5853
|
-
|
|
5854
|
-
if (isElement(target) && (activeElement(getDocument(target)) !== event.currentTarget ? target.closest('[role="dialog"],[role="menu"],[role="listbox"],[role="tree"],[role="grid"]') !== event.currentTarget : false)) {
|
|
5855
|
-
return;
|
|
5856
|
-
}
|
|
5857
|
-
|
|
5858
|
-
if (stringRef.current.length > 0 && stringRef.current[0] !== ' ') {
|
|
5859
|
-
dataRef.current.typing = true;
|
|
5860
|
-
|
|
5861
|
-
if (event.key === ' ') {
|
|
5862
|
-
stopEvent$1(event);
|
|
5863
|
-
}
|
|
5864
|
-
}
|
|
5865
|
-
|
|
5866
|
-
const listContent = listRef.current;
|
|
5867
|
-
|
|
5868
|
-
if (listContent == null || ignoreKeys.includes(event.key) || // Character key
|
|
5869
|
-
event.key.length !== 1 || // Modifier key
|
|
5870
|
-
event.ctrlKey || event.metaKey || event.altKey) {
|
|
5871
|
-
return;
|
|
5872
|
-
} // Bail out if the list contains a word like "llama" or "aaron". TODO:
|
|
5873
|
-
// allow it in this case, too.
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
const allowRapidSuccessionOfFirstLetter = listContent.every(text => {
|
|
5877
|
-
var _text$, _text$2;
|
|
5878
|
-
|
|
5879
|
-
return text ? ((_text$ = text[0]) == null ? void 0 : _text$.toLocaleLowerCase()) !== ((_text$2 = text[1]) == null ? void 0 : _text$2.toLocaleLowerCase()) : true;
|
|
5880
|
-
}); // Allows the user to cycle through items that start with the same letter
|
|
5881
|
-
// in rapid succession
|
|
5882
|
-
|
|
5883
|
-
if (allowRapidSuccessionOfFirstLetter && stringRef.current === event.key) {
|
|
5884
|
-
stringRef.current = '';
|
|
5885
|
-
prevIndexRef.current = matchIndexRef.current;
|
|
5886
|
-
}
|
|
5887
|
-
|
|
5888
|
-
stringRef.current += event.key;
|
|
5889
|
-
clearTimeout(timeoutIdRef.current);
|
|
5890
|
-
timeoutIdRef.current = setTimeout(() => {
|
|
5891
|
-
stringRef.current = '';
|
|
5892
|
-
prevIndexRef.current = matchIndexRef.current;
|
|
5893
|
-
dataRef.current.typing = false;
|
|
5894
|
-
}, resetMs);
|
|
5895
|
-
const prevIndex = prevIndexRef.current;
|
|
5896
|
-
const orderedList = [...listContent.slice((prevIndex != null ? prevIndex : 0) + 1), ...listContent.slice(0, (prevIndex != null ? prevIndex : 0) + 1)];
|
|
5897
|
-
const str = findMatch ? findMatch(orderedList, stringRef.current) : orderedList.find(text => (text == null ? void 0 : text.toLocaleLowerCase().indexOf(stringRef.current.toLocaleLowerCase())) === 0);
|
|
5898
|
-
const index = str ? listContent.indexOf(str) : -1;
|
|
5899
|
-
|
|
5900
|
-
if (index !== -1) {
|
|
5901
|
-
onMatch(index);
|
|
5902
|
-
matchIndexRef.current = index;
|
|
5903
|
-
}
|
|
5904
|
-
}
|
|
5905
|
-
|
|
5906
|
-
if (!enabled) {
|
|
5907
|
-
return {};
|
|
5908
|
-
}
|
|
5909
|
-
|
|
5910
|
-
return {
|
|
5911
|
-
reference: {
|
|
5912
|
-
onKeyDown
|
|
5913
|
-
},
|
|
5914
|
-
floating: {
|
|
5915
|
-
onKeyDown
|
|
5916
|
-
}
|
|
5917
|
-
};
|
|
5918
|
-
};
|
|
5919
|
-
|
|
5920
|
-
var css$G = ".Popper_module_backdrop__c7f1e48a {\n position: fixed;\n z-index: 100;\n inset: 0;\n background: rgba(0, 0, 0, 0.4);\n}\n.Popper_module_backdrop__c7f1e48a.Popper_module_transparent__c7f1e48a {\n background: none;\n}\n.Popper_module_backdrop__c7f1e48a.Popper_module_hideBackdrop__c7f1e48a {\n position: static;\n}";
|
|
5812
|
+
var css$I = ".Popper_module_backdrop__c7f1e48a {\n position: fixed;\n z-index: 100;\n inset: 0;\n background: rgba(0, 0, 0, 0.4);\n}\n.Popper_module_backdrop__c7f1e48a.Popper_module_transparent__c7f1e48a {\n background: none;\n}\n.Popper_module_backdrop__c7f1e48a.Popper_module_hideBackdrop__c7f1e48a {\n position: static;\n}";
|
|
5921
5813
|
var modules_fe46b225 = {"backdrop":"Popper_module_backdrop__c7f1e48a","transparent":"Popper_module_transparent__c7f1e48a","hide-backdrop":"Popper_module_hideBackdrop__c7f1e48a"};
|
|
5922
|
-
n(css$
|
|
5814
|
+
n(css$I,{});
|
|
5923
5815
|
|
|
5924
5816
|
var Popper = function Popper(props) {
|
|
5925
5817
|
var open = props.open,
|
|
@@ -5928,8 +5820,18 @@ var Popper = function Popper(props) {
|
|
|
5928
5820
|
backdrop = props.backdrop,
|
|
5929
5821
|
className = props.className,
|
|
5930
5822
|
transparent = props.transparent;
|
|
5823
|
+
var id = useId();
|
|
5824
|
+
var portalId = "".concat(wrapperId).concat(id);
|
|
5825
|
+
useEffect(function () {
|
|
5826
|
+
return function () {
|
|
5827
|
+
var portalDOM = document.getElementById(portalId);
|
|
5828
|
+
if (portalDOM) {
|
|
5829
|
+
document.body.removeChild(portalDOM);
|
|
5830
|
+
}
|
|
5831
|
+
};
|
|
5832
|
+
}, []);
|
|
5931
5833
|
return /*#__PURE__*/jsx$1(FloatingPortal, {
|
|
5932
|
-
id:
|
|
5834
|
+
id: portalId,
|
|
5933
5835
|
children: open && /*#__PURE__*/jsx$1(FloatingOverlay, {
|
|
5934
5836
|
lockScroll: true,
|
|
5935
5837
|
className: classes(className, modules_fe46b225.backdrop, transparent ? modules_fe46b225.transparent : '', backdrop ? '' : modules_fe46b225['hide-backdrop']),
|
|
@@ -11771,9 +11673,9 @@ process.env.NODE_ENV !== "production" ? Link.propTypes
|
|
|
11771
11673
|
} : void 0;
|
|
11772
11674
|
var Link$1 = Link;
|
|
11773
11675
|
|
|
11774
|
-
var css$
|
|
11676
|
+
var css$H = ".Breadcrumbs_module_container__7d7f9279 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n width: auto;\n}\n.Breadcrumbs_module_container__7d7f9279 .Breadcrumbs_module_seperator__7d7f9279 {\n width: 1.5rem;\n height: 1.5rem;\n stroke: var(--grey2);\n}\n.Breadcrumbs_module_container__7d7f9279 .Breadcrumbs_module_breadcrumbItem__7d7f9279 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n font-weight: 600;\n font-size: 0.875rem;\n color: var(--grey2);\n}\n.Breadcrumbs_module_container__7d7f9279 .Breadcrumbs_module_breadcrumbItem__7d7f9279.Breadcrumbs_module_active__7d7f9279 {\n color: var(--black);\n}";
|
|
11775
11677
|
var modules_651f50a9 = {"container":"Breadcrumbs_module_container__7d7f9279","seperator":"Breadcrumbs_module_seperator__7d7f9279","breadcrumb-item":"Breadcrumbs_module_breadcrumbItem__7d7f9279","active":"Breadcrumbs_module_active__7d7f9279"};
|
|
11776
|
-
n(css$
|
|
11678
|
+
n(css$H,{});
|
|
11777
11679
|
|
|
11778
11680
|
var BreadCrumbs = function BreadCrumbs(props) {
|
|
11779
11681
|
var crumbs = props.crumbs,
|
|
@@ -14014,7 +13916,7 @@ var languageLoaders = {
|
|
|
14014
13916
|
return Promise.resolve().then(function () { return cssExtras; });
|
|
14015
13917
|
}),
|
|
14016
13918
|
css: createLanguageAsyncLoader("css", function () {
|
|
14017
|
-
return Promise.resolve().then(function () { return css$
|
|
13919
|
+
return Promise.resolve().then(function () { return css$G; });
|
|
14018
13920
|
}),
|
|
14019
13921
|
d: createLanguageAsyncLoader("d", function () {
|
|
14020
13922
|
return Promise.resolve().then(function () { return d; });
|
|
@@ -21297,10 +21199,10 @@ var markup$2 = /*#__PURE__*/_mergeNamespaces({
|
|
|
21297
21199
|
default: markup_1
|
|
21298
21200
|
}, [markup_1]);
|
|
21299
21201
|
|
|
21300
|
-
var css_1 = css$
|
|
21301
|
-
css$
|
|
21302
|
-
css$
|
|
21303
|
-
function css$
|
|
21202
|
+
var css_1 = css$F;
|
|
21203
|
+
css$F.displayName = 'css';
|
|
21204
|
+
css$F.aliases = [];
|
|
21205
|
+
function css$F(Prism) {
|
|
21304
21206
|
(function(Prism) {
|
|
21305
21207
|
var string = /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;
|
|
21306
21208
|
Prism.languages.css = {
|
|
@@ -21360,7 +21262,7 @@ function css$D(Prism) {
|
|
|
21360
21262
|
})(Prism);
|
|
21361
21263
|
}
|
|
21362
21264
|
|
|
21363
|
-
var css$
|
|
21265
|
+
var css$G = /*#__PURE__*/_mergeNamespaces({
|
|
21364
21266
|
__proto__: null,
|
|
21365
21267
|
default: css_1
|
|
21366
21268
|
}, [css_1]);
|
|
@@ -21526,7 +21428,7 @@ var h = hastscript.exports;
|
|
|
21526
21428
|
var decode$1 = parseEntities_1;
|
|
21527
21429
|
var Prism = prismCore.exports;
|
|
21528
21430
|
var markup = markup_1;
|
|
21529
|
-
var css$
|
|
21431
|
+
var css$E = css_1;
|
|
21530
21432
|
var clike = clike_1;
|
|
21531
21433
|
var js = javascript_1;
|
|
21532
21434
|
|
|
@@ -21554,7 +21456,7 @@ refract.listLanguages = listLanguages;
|
|
|
21554
21456
|
|
|
21555
21457
|
// Register bundled grammars.
|
|
21556
21458
|
register$1(markup);
|
|
21557
|
-
register$1(css$
|
|
21459
|
+
register$1(css$E);
|
|
21558
21460
|
register$1(clike);
|
|
21559
21461
|
register$1(js);
|
|
21560
21462
|
|
|
@@ -32596,9 +32498,9 @@ var dracula = {
|
|
|
32596
32498
|
numberColor: "#bd93f9"
|
|
32597
32499
|
};
|
|
32598
32500
|
|
|
32599
|
-
var css$
|
|
32501
|
+
var css$D = ".CodeSnippet_module_root__cea57b34 {\n padding: 0.5rem, 1rem;\n position: relative;\n}\n.CodeSnippet_module_root__cea57b34 .CodeSnippet_module_copy__cea57b34 {\n position: absolute;\n right: 1rem;\n top: 0.5rem;\n cursor: pointer;\n}\n.CodeSnippet_module_root__cea57b34 .CodeSnippet_module_copy__cea57b34 .CodeSnippet_module_icon__cea57b34 {\n width: 1.5rem;\n height: 1.5rem;\n}\n.CodeSnippet_module_root__cea57b34 .CodeSnippet_module_copy__cea57b34 .CodeSnippet_module_icon__cea57b34.CodeSnippet_module_dark__cea57b34 {\n fill: var(--white);\n}\n.CodeSnippet_module_root__cea57b34 .CodeSnippet_module_copy__cea57b34 .CodeSnippet_module_icon__cea57b34.CodeSnippet_module_light__cea57b34 {\n fill: var(--black);\n}\n.CodeSnippet_module_root__cea57b34 .CodeSnippet_module_copy__cea57b34 .CodeSnippet_module_notCopied__cea57b34 {\n display: none;\n}\n.CodeSnippet_module_root__cea57b34 .CodeSnippet_module_copy__cea57b34 .CodeSnippet_module_copied__cea57b34 {\n position: absolute;\n right: 1.375rem;\n top: 2.188rem;\n padding: 0.5rem;\n border-radius: 0.25rem;\n background-color: var(--highlight);\n color: var(--grey10);\n}";
|
|
32600
32502
|
var modules_c548043f = {"root":"CodeSnippet_module_root__cea57b34","copy":"CodeSnippet_module_copy__cea57b34","icon":"CodeSnippet_module_icon__cea57b34","dark":"CodeSnippet_module_dark__cea57b34","light":"CodeSnippet_module_light__cea57b34","notCopied":"CodeSnippet_module_notCopied__cea57b34","copied":"CodeSnippet_module_copied__cea57b34"};
|
|
32601
|
-
n(css$
|
|
32503
|
+
n(css$D,{});
|
|
32602
32504
|
|
|
32603
32505
|
var CodeSnippet = function CodeSnippet(props) {
|
|
32604
32506
|
var copy = props.copy,
|
|
@@ -33482,9 +33384,9 @@ function sub$1(date, duration) {
|
|
|
33482
33384
|
return finalDate;
|
|
33483
33385
|
}
|
|
33484
33386
|
|
|
33485
|
-
var css$
|
|
33387
|
+
var css$C = ".Header_module_container__26bf5a9c {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding: 0rem 1.5625rem;\n}\n.Header_module_container__26bf5a9c .Header_module_title__26bf5a9c {\n font-weight: 400;\n font-size: 0.8rem;\n color: var(--black);\n}\n.Header_module_container__26bf5a9c .Header_module_icon__26bf5a9c {\n width: 1.5rem;\n height: 1.5rem;\n stroke: #181818;\n cursor: pointer;\n}";
|
|
33486
33388
|
var modules_cf337dc1 = {"container":"Header_module_container__26bf5a9c","title":"Header_module_title__26bf5a9c","icon":"Header_module_icon__26bf5a9c"};
|
|
33487
|
-
n(css$
|
|
33389
|
+
n(css$C,{});
|
|
33488
33390
|
|
|
33489
33391
|
var Header = function Header(props) {
|
|
33490
33392
|
var selectedMonth = props.selectedMonth,
|
|
@@ -33516,17 +33418,17 @@ var Header = function Header(props) {
|
|
|
33516
33418
|
});
|
|
33517
33419
|
};
|
|
33518
33420
|
|
|
33519
|
-
var css$
|
|
33421
|
+
var css$B = ".Calender_module_root__5221cce4 {\n padding: 1rem 0rem;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}";
|
|
33520
33422
|
var modules_3722b5cd = {"root":"Calender_module_root__5221cce4"};
|
|
33521
|
-
n(css$
|
|
33423
|
+
n(css$B,{});
|
|
33522
33424
|
|
|
33523
|
-
var css$
|
|
33425
|
+
var css$A = ".Body_module_root__85b1b679 {\n padding: 0.5rem 0.5rem;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: stretch;\n}";
|
|
33524
33426
|
var modules_e6b80d99 = {"root":"Body_module_root__85b1b679"};
|
|
33525
|
-
n(css$
|
|
33427
|
+
n(css$A,{});
|
|
33526
33428
|
|
|
33527
|
-
var css$
|
|
33429
|
+
var css$z = ".Dates_module_dates__e3e1fc43 {\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n align-items: center;\n flex-wrap: wrap;\n}\n.Dates_module_dates__e3e1fc43 div {\n flex-basis: 14.28%;\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n margin-bottom: 0.25rem;\n cursor: pointer;\n align-self: center;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.Dates_module_dates__e3e1fc43 div .Dates_module_date__e3e1fc43 {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n text-align: center;\n vertical-align: middle;\n border-radius: 1.5rem;\n height: 2.5rem;\n width: 2.5rem;\n font-weight: 400;\n font-size: 0.875rem;\n color: var(--black);\n}\n.Dates_module_dates__e3e1fc43 div .Dates_module_selected__e3e1fc43 {\n background-color: var(--highlight);\n color: var(--white);\n}\n.Dates_module_dates__e3e1fc43 div .Dates_module_unSelected__e3e1fc43 {\n background-color: var(--white);\n border-color: var(--highlight);\n border-width: 0.125rem;\n border-style: solid;\n color: var(--black);\n}\n.Dates_module_dates__e3e1fc43 div .Dates_module_disabled__e3e1fc43 {\n border-radius: 1.5rem;\n color: var(--grey2);\n}\n.Dates_module_dates__e3e1fc43 div .Dates_module_diffMonth__e3e1fc43 {\n opacity: 0.6;\n}\n.Dates_module_dates__e3e1fc43 div:hover .Dates_module_date__e3e1fc43 {\n background: var(--background);\n color: var(--highlight);\n box-shadow: -2px -2px 4px rgba(166, 166, 166, 0.25), 2px 2px 4px rgba(166, 166, 166, 0.24);\n}\n.Dates_module_dates__e3e1fc43 div:hover .Dates_module_selected__e3e1fc43 {\n background-color: var(--highlight);\n color: var(--white);\n}\n.Dates_module_dates__e3e1fc43 div:hover .Dates_module_disabled__e3e1fc43 {\n background: transparent;\n box-shadow: none;\n border-radius: 1.5rem;\n color: var(--grey2);\n}\n.Dates_module_dates__e3e1fc43 .Dates_module_minInRange__e3e1fc43 {\n background-color: var(--highlight);\n border-radius: 1.5rem 0rem 0rem 1.5rem;\n}\n.Dates_module_dates__e3e1fc43 .Dates_module_minInRange__e3e1fc43 .Dates_module_date__e3e1fc43 {\n color: var(--white);\n}\n.Dates_module_dates__e3e1fc43 .Dates_module_minInRange__e3e1fc43:hover .Dates_module_date__e3e1fc43 {\n background: var(--highlight);\n color: var(--white);\n box-shadow: -2px -2px 4px rgba(166, 166, 166, 0.25), 2px 2px 4px rgba(166, 166, 166, 0.24);\n}\n.Dates_module_dates__e3e1fc43 .Dates_module_maxInRange__e3e1fc43 {\n background-color: var(--highlight);\n border-radius: 0rem 1.5rem 1.5rem 0rem;\n}\n.Dates_module_dates__e3e1fc43 .Dates_module_maxInRange__e3e1fc43 .Dates_module_date__e3e1fc43 {\n color: var(--white);\n}\n.Dates_module_dates__e3e1fc43 .Dates_module_maxInRange__e3e1fc43:hover .Dates_module_date__e3e1fc43 {\n background: var(--highlight);\n color: var(--white);\n box-shadow: -2px -2px 4px rgba(166, 166, 166, 0.25), 2px 2px 4px rgba(166, 166, 166, 0.24);\n}\n.Dates_module_dates__e3e1fc43 .Dates_module_midInRange__e3e1fc43 {\n background: var(--background);\n border-radius: 0rem;\n}\n.Dates_module_dates__e3e1fc43 .Dates_module_midInRange__e3e1fc43 .Dates_module_date__e3e1fc43 {\n color: var(--highlight);\n}\n.Dates_module_dates__e3e1fc43 .Dates_module_firstHovered__e3e1fc43 {\n background: var(--background);\n border-radius: 0rem 1.5rem 1.5rem 0rem;\n}\n.Dates_module_dates__e3e1fc43 .Dates_module_firstHovered__e3e1fc43 .Dates_module_date__e3e1fc43 {\n color: var(--highlight);\n}\n.Dates_module_dates__e3e1fc43 .Dates_module_lastHovered__e3e1fc43 {\n background: var(--background);\n border-radius: 1.5rem 0rem 0rem 1.5rem;\n}\n.Dates_module_dates__e3e1fc43 .Dates_module_lastHovered__e3e1fc43 .Dates_module_date__e3e1fc43 {\n color: var(--highlight);\n}";
|
|
33528
33430
|
var modules_b02dadcc = {"dates":"Dates_module_dates__e3e1fc43","date":"Dates_module_date__e3e1fc43","selected":"Dates_module_selected__e3e1fc43","unSelected":"Dates_module_unSelected__e3e1fc43","disabled":"Dates_module_disabled__e3e1fc43","diffMonth":"Dates_module_diffMonth__e3e1fc43","minInRange":"Dates_module_minInRange__e3e1fc43","maxInRange":"Dates_module_maxInRange__e3e1fc43","midInRange":"Dates_module_midInRange__e3e1fc43","first-hovered":"Dates_module_firstHovered__e3e1fc43","last-hovered":"Dates_module_lastHovered__e3e1fc43"};
|
|
33529
|
-
n(css$
|
|
33431
|
+
n(css$z,{});
|
|
33530
33432
|
|
|
33531
33433
|
var getDatesOfLastWeekOfLastMonth = function getDatesOfLastWeekOfLastMonth(_ref) {
|
|
33532
33434
|
var monthAsNumber = _ref.monthAsNumber,
|
|
@@ -33773,9 +33675,9 @@ var Dates = function Dates(props) {
|
|
|
33773
33675
|
});
|
|
33774
33676
|
};
|
|
33775
33677
|
|
|
33776
|
-
var css$
|
|
33678
|
+
var css$y = ".Days_module_days__0d7923fd {\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n text-align: center;\n}\n.Days_module_days__0d7923fd span {\n padding: 0.75rem 0.5rem;\n font-weight: 500;\n font-size: 0.875rem;\n color: black;\n flex-basis: 14.28%;\n}";
|
|
33777
33679
|
var modules_82c45006 = {"days":"Days_module_days__0d7923fd"};
|
|
33778
|
-
n(css$
|
|
33680
|
+
n(css$y,{});
|
|
33779
33681
|
|
|
33780
33682
|
var Days = function Days() {
|
|
33781
33683
|
var daysInWeek = DAYS;
|
|
@@ -33796,9 +33698,9 @@ var Body = function Body(props) {
|
|
|
33796
33698
|
});
|
|
33797
33699
|
};
|
|
33798
33700
|
|
|
33799
|
-
var css$
|
|
33701
|
+
var css$x = ".Footer_module_root__a02ecfd8 {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: stretch;\n margin-inline: 1rem;\n}\n.Footer_module_root__a02ecfd8 .Footer_module_apply__a02ecfd8 {\n margin-top: 0.5rem;\n width: 100%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.Footer_module_selectedDate__a02ecfd8 {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n gap: 1.125rem;\n background: var(--white);\n border: 0.0625rem solid var(--grey4);\n border-radius: 0.25rem;\n padding: 0.3rem 0rem 0.3rem 1rem;\n}\n.Footer_module_selectedDate__a02ecfd8 .Footer_module_date__a02ecfd8 {\n font-weight: 500;\n font-size: 0.875rem;\n line-height: 1.3125rem;\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n.Footer_module_selectedDate__a02ecfd8 .Footer_module_date__a02ecfd8 .Footer_module_cross__a02ecfd8 {\n width: 1.5rem;\n height: 1.5rem;\n}\n.Footer_module_selectedDate__a02ecfd8 .Footer_module_date__a02ecfd8 .Footer_module_value__a02ecfd8 {\n font-weight: 400;\n padding-right: 0.7rem;\n border-right: 1px var(--grey3) solid;\n}\n\n.Footer_module_dateRanges__a02ecfd8 {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: stretch;\n margin-top: 0.5rem;\n}\n.Footer_module_dateRanges__a02ecfd8 .Footer_module_dateRange__a02ecfd8 {\n display: flex;\n align-items: center;\n padding: 0.875rem 1rem;\n gap: 1.125rem;\n cursor: pointer;\n}\n.Footer_module_dateRanges__a02ecfd8 .Footer_module_dateRange__a02ecfd8:hover {\n background-color: var(--background);\n}\n.Footer_module_dateRanges__a02ecfd8 .Footer_module_dateRange__a02ecfd8 span {\n font-weight: 400;\n font-size: 0.875rem;\n line-height: 1.3125rem;\n color: var(--black);\n}\n.Footer_module_dateRanges__a02ecfd8 .Footer_module_selected__a02ecfd8 {\n background-color: var(--background);\n}";
|
|
33800
33702
|
var modules_b490bd5d = {"root":"Footer_module_root__a02ecfd8","apply":"Footer_module_apply__a02ecfd8","selected-date":"Footer_module_selectedDate__a02ecfd8","date":"Footer_module_date__a02ecfd8","cross":"Footer_module_cross__a02ecfd8","value":"Footer_module_value__a02ecfd8","date-ranges":"Footer_module_dateRanges__a02ecfd8","date-range":"Footer_module_dateRange__a02ecfd8","selected":"Footer_module_selected__a02ecfd8"};
|
|
33801
|
-
n(css$
|
|
33703
|
+
n(css$x,{});
|
|
33802
33704
|
|
|
33803
33705
|
var getDateAndUnixRange = function getDateAndUnixRange(duration) {
|
|
33804
33706
|
var startingDate = sub$1(new Date(), duration);
|
|
@@ -34032,9 +33934,9 @@ var Calender = function Calender(props) {
|
|
|
34032
33934
|
});
|
|
34033
33935
|
};
|
|
34034
33936
|
|
|
34035
|
-
var css$
|
|
33937
|
+
var css$w = ".DatePicker_module_root__a549d7a9 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n gap: 0.5rem;\n max-width: 100%;\n width: 25%;\n overflow: visible;\n}\n.DatePicker_module_root__a549d7a9 .DatePicker_module_label__a549d7a9 {\n font-weight: 400;\n font-size: 0.75rem;\n color: var(--black);\n}\n.DatePicker_module_root__a549d7a9 .DatePicker_module_container__a549d7a9 {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n position: relative;\n background: transparent;\n border: 0.0625rem solid #d9d9d9;\n border-radius: 0.25rem;\n width: auto;\n border: 0.0625rem solid var(--grey5);\n padding: 0.75rem 1rem;\n cursor: pointer;\n}\n.DatePicker_module_root__a549d7a9 .DatePicker_module_container__a549d7a9 > div {\n display: flex;\n align-items: center;\n}\n.DatePicker_module_root__a549d7a9 .DatePicker_module_container__a549d7a9 .DatePicker_module_placeholder__a549d7a9 {\n font-weight: 400;\n font-size: 1rem;\n color: var(--grey1);\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n margin-left: 0.9375rem;\n}\n.DatePicker_module_root__a549d7a9 .DatePicker_module_container__a549d7a9 .DatePicker_module_value__a549d7a9 {\n font-weight: 400;\n font-size: 1rem;\n color: var(--black);\n margin-left: 0.9375rem;\n}\n.DatePicker_module_root__a549d7a9 .DatePicker_module_container__a549d7a9 .DatePicker_module_value__a549d7a9 span {\n font-weight: 500;\n}\n.DatePicker_module_root__a549d7a9 .DatePicker_module_container__a549d7a9 .DatePicker_module_input__a549d7a9 {\n display: none;\n}\n.DatePicker_module_root__a549d7a9 .DatePicker_module_container__a549d7a9 .DatePicker_module_icon__a549d7a9 {\n width: 1.5rem;\n height: 1.5rem;\n stroke: #181818;\n}\n.DatePicker_module_root__a549d7a9 .DatePicker_module_container__a549d7a9 .DatePicker_module_down__a549d7a9 {\n transform: rotate(270deg);\n}\n.DatePicker_module_root__a549d7a9 .DatePicker_module_container__a549d7a9 .DatePicker_module_up__a549d7a9 {\n transform: rotate(90deg);\n}\n.DatePicker_module_root__a549d7a9 .DatePicker_module_disabled__a549d7a9 {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n position: relative;\n background: var(--grey10);\n border: 0.0625rem solid #d9d9d9;\n border-radius: 0.25rem;\n border: 0.0625rem solid var(--grey5);\n padding: 0.75rem 1rem;\n cursor: pointer;\n}\n.DatePicker_module_root__a549d7a9 .DatePicker_module_disabled__a549d7a9 .DatePicker_module_downArrow__a549d7a9 {\n transform: rotate(270deg);\n fill: var(--grey3);\n}\n.DatePicker_module_root__a549d7a9 .DatePicker_module_disabled__a549d7a9 .DatePicker_module_placeholder__a549d7a9 {\n font-weight: 400;\n font-size: 1rem;\n color: var(--grey3);\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.DatePicker_module_root__a549d7a9.DatePicker_module_open__a549d7a9 {\n border-color: var(--highlight);\n}\n.DatePicker_module_root__a549d7a9 .DatePicker_module_error__a549d7a9 {\n border: 0.0938rem solid var(--error);\n}\n.DatePicker_module_root__a549d7a9 .DatePicker_module_errorText__a549d7a9 {\n font-weight: 400;\n font-size: 0.75rem;\n line-height: 0.9375rem;\n color: var(--error);\n}\n\n.DatePicker_module_popper__a549d7a9 {\n display: none;\n background: var(--white);\n border: 0.0625rem solid #d9d9d9;\n box-shadow: -2px -2px 4px rgba(166, 166, 166, 0.25), 2px 2px 4px rgba(166, 166, 166, 0.24);\n border-radius: 0.25rem;\n overflow: auto;\n}\n.DatePicker_module_popper__a549d7a9.DatePicker_module_open__a549d7a9 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n position: absolute;\n}";
|
|
34036
33938
|
var modules_5b831cd1 = {"root":"DatePicker_module_root__a549d7a9","label":"DatePicker_module_label__a549d7a9","container":"DatePicker_module_container__a549d7a9","placeholder":"DatePicker_module_placeholder__a549d7a9","value":"DatePicker_module_value__a549d7a9","input":"DatePicker_module_input__a549d7a9","icon":"DatePicker_module_icon__a549d7a9","down":"DatePicker_module_down__a549d7a9","up":"DatePicker_module_up__a549d7a9","disabled":"DatePicker_module_disabled__a549d7a9","down-arrow":"DatePicker_module_downArrow__a549d7a9","open":"DatePicker_module_open__a549d7a9","error":"DatePicker_module_error__a549d7a9","error-text":"DatePicker_module_errorText__a549d7a9","popper":"DatePicker_module_popper__a549d7a9"};
|
|
34037
|
-
n(css$
|
|
33939
|
+
n(css$w,{});
|
|
34038
33940
|
|
|
34039
33941
|
var isMaxRangeExceeded = function isMaxRangeExceeded(_ref) {
|
|
34040
33942
|
var maxRange = _ref.maxRange,
|
|
@@ -34255,9 +34157,9 @@ DatePicker.defaultProps = {
|
|
|
34255
34157
|
disableDatesAfter: []
|
|
34256
34158
|
};
|
|
34257
34159
|
|
|
34258
|
-
var css$
|
|
34160
|
+
var css$v = ".HierarchyItem_module_root__d7b2e7cd {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n flex: 1;\n}\n.HierarchyItem_module_root__d7b2e7cd .HierarchyItem_module_header__d7b2e7cd {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n gap: 0.25rem;\n min-height: 2rem;\n height: auto;\n padding: 0.25rem;\n cursor: pointer;\n}\n.HierarchyItem_module_root__d7b2e7cd .HierarchyItem_module_header__d7b2e7cd > [data-elem=component1], .HierarchyItem_module_root__d7b2e7cd .HierarchyItem_module_header__d7b2e7cd > [data-elem=component3] {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n.HierarchyItem_module_root__d7b2e7cd .HierarchyItem_module_header__d7b2e7cd > [data-elem=component1] .HierarchyItem_module_icon__d7b2e7cd, .HierarchyItem_module_root__d7b2e7cd .HierarchyItem_module_header__d7b2e7cd > [data-elem=component3] .HierarchyItem_module_icon__d7b2e7cd {\n transform: rotate(-90deg);\n width: 1rem;\n height: 1rem;\n}\n.HierarchyItem_module_root__d7b2e7cd .HierarchyItem_module_header__d7b2e7cd > [data-elem=component2] {\n flex: 1 1 auto;\n}\n.HierarchyItem_module_root__d7b2e7cd .HierarchyItem_module_header__d7b2e7cd > [data-elem=component2] .HierarchyItem_module_title__d7b2e7cd {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.HierarchyItem_module_root__d7b2e7cd .HierarchyItem_module_header__d7b2e7cd:hover {\n background: var(--background);\n}\n.HierarchyItem_module_root__d7b2e7cd .HierarchyItem_module_header__d7b2e7cd:hover .HierarchyItem_module_icon__d7b2e7cd,\n.HierarchyItem_module_root__d7b2e7cd .HierarchyItem_module_header__d7b2e7cd:hover .HierarchyItem_module_title__d7b2e7cd,\n.HierarchyItem_module_root__d7b2e7cd .HierarchyItem_module_header__d7b2e7cd:hover .HierarchyItem_module_title__d7b2e7cd svg {\n color: var(--highlight);\n fill: var(--highlight);\n}\n.HierarchyItem_module_root__d7b2e7cd .HierarchyItem_module_body__d7b2e7cd {\n display: none;\n flex: 1 0 auto;\n padding: 0px 0rem 0px 0.25rem;\n}\n.HierarchyItem_module_root__d7b2e7cd .HierarchyItem_module_body__d7b2e7cd > [data-elem=component1] {\n flex: 0 0 1.6rem;\n}\n.HierarchyItem_module_root__d7b2e7cd .HierarchyItem_module_body__d7b2e7cd > [data-elem=component1] .HierarchyItem_module_tail__d7b2e7cd {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n width: 1.6rem;\n height: 100%;\n}\n.HierarchyItem_module_root__d7b2e7cd .HierarchyItem_module_body__d7b2e7cd > [data-elem=component1] .HierarchyItem_module_tail__d7b2e7cd::after {\n content: \"\";\n display: block;\n margin: auto;\n width: 1px;\n flex: 1;\n background: var(--grey1);\n}\n.HierarchyItem_module_root__d7b2e7cd .HierarchyItem_module_body__d7b2e7cd > [data-elem=component2] {\n flex: 1 0 auto;\n}\n.HierarchyItem_module_root__d7b2e7cd .HierarchyItem_module_body__d7b2e7cd > [data-elem=component2] .HierarchyItem_module_children__d7b2e7cd {\n flex: 1 0 auto;\n}\n.HierarchyItem_module_root__d7b2e7cd.HierarchyItem_module_open__d7b2e7cd > .HierarchyItem_module_header__d7b2e7cd .HierarchyItem_module_icon__d7b2e7cd {\n transform: none;\n}\n.HierarchyItem_module_root__d7b2e7cd.HierarchyItem_module_open__d7b2e7cd > .HierarchyItem_module_body__d7b2e7cd {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: stretch;\n gap: 0.25rem;\n height: auto;\n}";
|
|
34259
34161
|
var modules_6d03d164 = {"root":"HierarchyItem_module_root__d7b2e7cd","header":"HierarchyItem_module_header__d7b2e7cd","icon":"HierarchyItem_module_icon__d7b2e7cd","title":"HierarchyItem_module_title__d7b2e7cd","body":"HierarchyItem_module_body__d7b2e7cd","tail":"HierarchyItem_module_tail__d7b2e7cd","children":"HierarchyItem_module_children__d7b2e7cd","open":"HierarchyItem_module_open__d7b2e7cd"};
|
|
34260
|
-
n(css$
|
|
34162
|
+
n(css$v,{});
|
|
34261
34163
|
|
|
34262
34164
|
var HierarchyItem = function HierarchyItem(props) {
|
|
34263
34165
|
var defaultOpen = props.defaultOpen,
|
|
@@ -34321,9 +34223,9 @@ HierarchyItem.defaultProps = {
|
|
|
34321
34223
|
onClick: function onClick() {}
|
|
34322
34224
|
};
|
|
34323
34225
|
|
|
34324
|
-
var css$
|
|
34226
|
+
var css$u = ".HierarchyBrowser_module_root__649d3da2 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n width: 20rem;\n position: relative;\n}\n.HierarchyBrowser_module_root__649d3da2 .HierarchyBrowser_module_header__649d3da2 {\n padding: 0.5rem;\n background: var(--dark-grey);\n color: var(--white);\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.HierarchyBrowser_module_root__649d3da2 .HierarchyBrowser_module_body__649d3da2 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n overflow: auto;\n}\n.HierarchyBrowser_module_root__649d3da2 .HierarchyBrowser_module_item__649d3da2 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n gap: 0.25rem;\n}\n.HierarchyBrowser_module_root__649d3da2 .HierarchyBrowser_module_item__649d3da2 .HierarchyBrowser_module_itemIcon__649d3da2 {\n width: 1rem;\n}\n.HierarchyBrowser_module_root__649d3da2::after {\n position: absolute;\n right: 0;\n content: \"\";\n width: 1px;\n height: 100%;\n background: var(--grey4);\n}\n.HierarchyBrowser_module_root__649d3da2.HierarchyBrowser_module_resizable__649d3da2:hover::after {\n width: 3px;\n cursor: col-resize;\n}";
|
|
34325
34227
|
var modules_5e29d515 = {"root":"HierarchyBrowser_module_root__649d3da2","header":"HierarchyBrowser_module_header__649d3da2","body":"HierarchyBrowser_module_body__649d3da2","item":"HierarchyBrowser_module_item__649d3da2","item-icon":"HierarchyBrowser_module_itemIcon__649d3da2","resizable":"HierarchyBrowser_module_resizable__649d3da2"};
|
|
34326
|
-
n(css$
|
|
34228
|
+
n(css$u,{});
|
|
34327
34229
|
|
|
34328
34230
|
var Title = function Title(props) {
|
|
34329
34231
|
var item = props.item;
|
|
@@ -34356,7 +34258,8 @@ var HierarchyBrowser = function HierarchyBrowser(props) {
|
|
|
34356
34258
|
maxWidth = props.maxWidth,
|
|
34357
34259
|
borderSize = props.borderSize,
|
|
34358
34260
|
resizable = props.resizable,
|
|
34359
|
-
setItemProps = props.setItemProps
|
|
34261
|
+
setItemProps = props.setItemProps,
|
|
34262
|
+
title = props.title;
|
|
34360
34263
|
var browserRef = useRef(null);
|
|
34361
34264
|
useResize({
|
|
34362
34265
|
ref: browserRef,
|
|
@@ -34396,9 +34299,11 @@ var HierarchyBrowser = function HierarchyBrowser(props) {
|
|
|
34396
34299
|
className: classes(modules_5e29d515.root, className, resizable ? modules_5e29d515.resizable : ''),
|
|
34397
34300
|
children: [/*#__PURE__*/jsx$1("div", {
|
|
34398
34301
|
className: modules_5e29d515.header,
|
|
34399
|
-
|
|
34302
|
+
"data-elem": "header",
|
|
34303
|
+
children: title
|
|
34400
34304
|
}), /*#__PURE__*/jsx$1("div", {
|
|
34401
34305
|
className: modules_5e29d515.body,
|
|
34306
|
+
"data-elem": "body",
|
|
34402
34307
|
children: renderTree(metadata)
|
|
34403
34308
|
})]
|
|
34404
34309
|
});
|
|
@@ -34416,7 +34321,8 @@ HierarchyBrowser.propTypes = {
|
|
|
34416
34321
|
minWidth: propTypes$1.exports.number,
|
|
34417
34322
|
maxWidth: propTypes$1.exports.number,
|
|
34418
34323
|
resizable: propTypes$1.exports.bool,
|
|
34419
|
-
setItemProps: propTypes$1.exports.func
|
|
34324
|
+
setItemProps: propTypes$1.exports.func,
|
|
34325
|
+
title: propTypes$1.exports.string
|
|
34420
34326
|
};
|
|
34421
34327
|
HierarchyBrowser.defaultProps = {
|
|
34422
34328
|
className: '',
|
|
@@ -34428,12 +34334,13 @@ HierarchyBrowser.defaultProps = {
|
|
|
34428
34334
|
resizable: false,
|
|
34429
34335
|
setItemProps: function setItemProps() {
|
|
34430
34336
|
return {};
|
|
34431
|
-
}
|
|
34337
|
+
},
|
|
34338
|
+
title: 'Browser'
|
|
34432
34339
|
};
|
|
34433
34340
|
|
|
34434
|
-
var css$
|
|
34341
|
+
var css$t = ".TextField_module_root__9cc1db47 {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 0.5rem;\n}\n.TextField_module_root__9cc1db47 label {\n width: 100%;\n max-width: 100%;\n font-weight: 400;\n font-size: 0.75rem;\n line-height: 1.125rem;\n letter-spacing: 0.32px;\n color: var(--grey);\n height: 100%;\n}\n.TextField_module_root__9cc1db47 label .TextField_module_inputWrapper__9cc1db47 {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n gap: 0.5rem;\n padding: 0rem 0.5rem;\n max-width: 100%;\n width: 100%;\n border-color: var(--grey4);\n border-style: solid;\n border-radius: 0.25rem;\n height: 100%;\n}\n.TextField_module_root__9cc1db47 label .TextField_module_inputWrapper__9cc1db47 .TextField_module_icon__9cc1db47 {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n.TextField_module_root__9cc1db47 label .TextField_module_inputWrapper__9cc1db47 > [data-elem*=component] {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n.TextField_module_root__9cc1db47 label .TextField_module_inputWrapper__9cc1db47 > [data-elem=component2] {\n flex: 1;\n}\n.TextField_module_root__9cc1db47 label .TextField_module_inputWrapper__9cc1db47 > [data-elem=component2] .TextField_module_input__9cc1db47 {\n -moz-appearance: textfield;\n flex: 1;\n background-color: transparent;\n border: none;\n font-weight: 400;\n font-size: 0.875rem;\n line-height: 1.125rem;\n letter-spacing: 0.16px;\n color: var(--black);\n width: 100%;\n}\n.TextField_module_root__9cc1db47 label .TextField_module_inputWrapper__9cc1db47 > [data-elem=component2] .TextField_module_input__9cc1db47::-webkit-outer-spin-button, .TextField_module_root__9cc1db47 label .TextField_module_inputWrapper__9cc1db47 > [data-elem=component2] .TextField_module_input__9cc1db47::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n.TextField_module_root__9cc1db47 label .TextField_module_inputWrapper__9cc1db47 > [data-elem=component2] .TextField_module_input__9cc1db47:focus {\n outline: none;\n}\n.TextField_module_root__9cc1db47 label .TextField_module_inputWrapper__9cc1db47 > [data-elem=component2] .TextField_module_input__9cc1db47:disabled {\n background: var(--grey9);\n color: var(--grey3);\n}\n.TextField_module_root__9cc1db47 label .TextField_module_inputWrapper__9cc1db47 > [data-elem=component2] .TextField_module_input__9cc1db47.TextField_module_sm__9cc1db47 {\n padding: 0.5rem 0rem;\n}\n.TextField_module_root__9cc1db47 label .TextField_module_inputWrapper__9cc1db47 > [data-elem=component2] .TextField_module_input__9cc1db47.TextField_module_md__9cc1db47 {\n padding: 0.688rem 0rem;\n}\n.TextField_module_root__9cc1db47 label .TextField_module_inputWrapper__9cc1db47 > [data-elem=component2] .TextField_module_input__9cc1db47.TextField_module_lg__9cc1db47 {\n padding: 1rem 0rem;\n}\n.TextField_module_root__9cc1db47 label .TextField_module_inputWrapper__9cc1db47.TextField_module_typeTextarea__9cc1db47 {\n padding: 0;\n}\n.TextField_module_root__9cc1db47 label .TextField_module_inputWrapper__9cc1db47.TextField_module_typeTextarea__9cc1db47 > [data-elem=component2] .TextField_module_input__9cc1db47 {\n resize: vertical;\n}\n.TextField_module_root__9cc1db47 label .TextField_module_inputWrapper__9cc1db47.TextField_module_typeTextarea__9cc1db47 > [data-elem=component2] .TextField_module_input__9cc1db47.TextField_module_md__9cc1db47 {\n padding: 0.313rem 0.75rem;\n}\n.TextField_module_root__9cc1db47 label .TextField_module_inputWrapper__9cc1db47.TextField_module_typeTextarea__9cc1db47 > [data-elem=component2] .TextField_module_input__9cc1db47.TextField_module_lg__9cc1db47 {\n padding: 0.5rem 1rem;\n font-size: 1rem;\n}\n.TextField_module_root__9cc1db47 label .TextField_module_inputWrapper__9cc1db47:focus-within {\n border: 0.063rem solid var(--info);\n}\n.TextField_module_root__9cc1db47 label .TextField_module_inputWrapper__9cc1db47:focus-within.TextField_module_feedbackError__9cc1db47 {\n border-color: var(--error);\n}\n.TextField_module_root__9cc1db47 label .TextField_module_inputWrapper__9cc1db47.TextField_module_borderDefault__9cc1db47 {\n border-width: 0.063rem;\n}\n.TextField_module_root__9cc1db47 label .TextField_module_inputWrapper__9cc1db47.TextField_module_borderBottom__9cc1db47 {\n border-width: 0rem 0rem 0.063rem 0rem;\n}\n.TextField_module_root__9cc1db47 label .TextField_module_inputWrapper__9cc1db47.TextField_module_borderNone__9cc1db47 {\n border-width: 0rem;\n}\n.TextField_module_root__9cc1db47 .TextField_module_bottom__9cc1db47 {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: flex-start;\n min-height: 2rem;\n width: 100%;\n gap: 1rem;\n color: var(--grey3);\n font-size: 0.75rem;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.TextField_module_root__9cc1db47 .TextField_module_bottom__9cc1db47 .TextField_module_feedback__9cc1db47 {\n flex: 1;\n margin-right: auto;\n}\n.TextField_module_root__9cc1db47 .TextField_module_bottom__9cc1db47 .TextField_module_feedback__9cc1db47.TextField_module_feedbackError__9cc1db47 {\n color: var(--error);\n fill: var(--error);\n}\n.TextField_module_root__9cc1db47 .TextField_module_bottom__9cc1db47 .TextField_module_feedback__9cc1db47.TextField_module_feedbackSuccess__9cc1db47 {\n color: var(--success);\n fill: var(--success);\n}\n.TextField_module_root__9cc1db47 .TextField_module_bottom__9cc1db47 .TextField_module_count__9cc1db47 {\n text-align: right;\n margin-left: auto;\n}\n.TextField_module_root__9cc1db47 .TextField_module_bottom__9cc1db47 .TextField_module_count__9cc1db47.TextField_module_exceeded__9cc1db47 {\n color: var(--error);\n}";
|
|
34435
34342
|
var modules_c1d23762 = {"root":"TextField_module_root__9cc1db47","input-wrapper":"TextField_module_inputWrapper__9cc1db47","icon":"TextField_module_icon__9cc1db47","input":"TextField_module_input__9cc1db47","sm":"TextField_module_sm__9cc1db47","md":"TextField_module_md__9cc1db47","lg":"TextField_module_lg__9cc1db47","type-textarea":"TextField_module_typeTextarea__9cc1db47","feedback-error":"TextField_module_feedbackError__9cc1db47","border-default":"TextField_module_borderDefault__9cc1db47","border-bottom":"TextField_module_borderBottom__9cc1db47","border-none":"TextField_module_borderNone__9cc1db47","bottom":"TextField_module_bottom__9cc1db47","feedback":"TextField_module_feedback__9cc1db47","feedback-success":"TextField_module_feedbackSuccess__9cc1db47","count":"TextField_module_count__9cc1db47","exceeded":"TextField_module_exceeded__9cc1db47"};
|
|
34436
|
-
n(css$
|
|
34343
|
+
n(css$t,{});
|
|
34437
34344
|
|
|
34438
34345
|
var TextField = /*#__PURE__*/forwardRef(function TextField(props, inputRef) {
|
|
34439
34346
|
var _inputValue$length;
|
|
@@ -34556,9 +34463,9 @@ TextField.defaultProps = {
|
|
|
34556
34463
|
feedbackAndCount: false
|
|
34557
34464
|
};
|
|
34558
34465
|
|
|
34559
|
-
var css$
|
|
34466
|
+
var css$s = ":root {\n --white: #ffffff;\n --black: #000000;\n --dark-grey: #333333;\n --dark-grey-o-85: rgba(51, 51, 51, 0.85);\n --grey: #737373;\n --grey1: #888888;\n --grey2: #a6a6a6;\n --grey3: #bbbbbb;\n --grey4: #c4c4c4;\n --grey5: #dddddd;\n --grey6: #e8e8e8;\n --grey7: #eeeeee;\n --grey8: #f2f2f2;\n --grey9: #eff0f0;\n --grey10: #f7f7f7;\n --highlight: #0f62fe;\n --dark-blue: #001833;\n --background: #d0e2ff;\n --banyan-blue: #00037c;\n --banyan-orange: #ff892a;\n --banyan-pink: #ff1597;\n --banyan-gradient: linear-gradient(\n \t84.71deg,\n \tvar(--banyan-pink) 0.48%,\n \tvar(--banyan-orange) 99.57%\n );\n --error: #da1e28;\n --error-bg: #fff1f1;\n --error-outline: rgba(218, 30, 40, 0.08);\n --success: #24a148;\n --success-bg: #defbe6;\n --success-outline: rgba(36, 161, 72, 0.08);\n --warning: #f1c21b;\n --warning-bg: #fff8e1;\n --warning-outline: rgba(203, 160, 6, 0.08);\n --info: #0043ce;\n --info-bg: #edf5ff;\n --info-outline: #2864db98;\n}\n\n.CheckBox_module_root__d1bdcb36 {\n cursor: pointer;\n gap: 10px;\n}\n.CheckBox_module_root__d1bdcb36.CheckBox_module_positionLeft__d1bdcb36 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n}\n.CheckBox_module_root__d1bdcb36.CheckBox_module_positionRight__d1bdcb36 {\n display: flex;\n flex-direction: row-reverse;\n justify-content: flex-end;\n align-items: center;\n}\n.CheckBox_module_root__d1bdcb36 input[type=checkbox] {\n opacity: 0;\n z-index: 1;\n position: absolute;\n width: 1px;\n height: 1px;\n}\n.CheckBox_module_root__d1bdcb36.CheckBox_module_disabled__d1bdcb36 {\n cursor: default;\n}\n.CheckBox_module_root__d1bdcb36 .CheckBox_module_icon__d1bdcb36 {\n display: inline-block;\n}\n.CheckBox_module_root__d1bdcb36 .CheckBox_module_icon__d1bdcb36.CheckBox_module_iconSm__d1bdcb36 {\n width: 1rem;\n height: 1rem;\n}\n.CheckBox_module_root__d1bdcb36 .CheckBox_module_icon__d1bdcb36.CheckBox_module_iconMd__d1bdcb36 {\n width: 1.25rem;\n height: 1.25rem;\n}\n.CheckBox_module_root__d1bdcb36 .CheckBox_module_icon__d1bdcb36.CheckBox_module_iconLg__d1bdcb36 {\n width: 1.5rem;\n height: 2rem;\n}\n.CheckBox_module_root__d1bdcb36 [data-elem=label] {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}";
|
|
34560
34467
|
var modules_066398a2 = {"white":"var(--white)","black":"var(--black)","dark-grey":"var(--dark-grey)","dark-grey-o-85":"var(--dark-grey-o-85)","grey":"var(--grey)","grey1":"var(--grey1)","grey2":"var(--grey2)","grey3":"var(--grey3)","grey4":"var(--grey4)","grey5":"var(--grey5)","grey6":"var(--grey6)","grey7":"var(--grey7)","grey8":"var(--grey8)","grey9":"var(--grey9)","grey10":"var(--grey10)","highlight":"var(--highlight)","dark-blue":"var(--dark-blue)","background":"var(--background)","banyan-blue":"var(--banyan-blue)","banyan-orange":"var(--banyan-orange)","banyan-pink":"var(--banyan-pink)","banyan-gradient":"var(--banyan-gradient)","error":"var(--error)","error-bg":"var(--error-bg)","error-outline":"var(--error-outline)","success":"var(--success)","success-bg":"var(--success-bg)","success-outline":"var(--success-outline)","warning":"var(--warning)","warning-bg":"var(--warning-bg)","warning-outline":"var(--warning-outline)","info":"var(--info)","info-bg":"var(--info-bg)","info-outline":"var(--info-outline)","root":"CheckBox_module_root__d1bdcb36","position-left":"CheckBox_module_positionLeft__d1bdcb36","position-right":"CheckBox_module_positionRight__d1bdcb36","disabled":"CheckBox_module_disabled__d1bdcb36","icon":"CheckBox_module_icon__d1bdcb36","icon-sm":"CheckBox_module_iconSm__d1bdcb36","icon-md":"CheckBox_module_iconMd__d1bdcb36","icon-lg":"CheckBox_module_iconLg__d1bdcb36"};
|
|
34561
|
-
n(css$
|
|
34468
|
+
n(css$s,{});
|
|
34562
34469
|
|
|
34563
34470
|
var Checkbox = function Checkbox(props) {
|
|
34564
34471
|
// eslint-disable-next-line object-curly-newline
|
|
@@ -34629,9 +34536,9 @@ Checkbox.defaultProps = {
|
|
|
34629
34536
|
onChange: function onChange() {}
|
|
34630
34537
|
};
|
|
34631
34538
|
|
|
34632
|
-
var css$
|
|
34539
|
+
var css$r = ":root {\n --white: #ffffff;\n --black: #000000;\n --dark-grey: #333333;\n --dark-grey-o-85: rgba(51, 51, 51, 0.85);\n --grey: #737373;\n --grey1: #888888;\n --grey2: #a6a6a6;\n --grey3: #bbbbbb;\n --grey4: #c4c4c4;\n --grey5: #dddddd;\n --grey6: #e8e8e8;\n --grey7: #eeeeee;\n --grey8: #f2f2f2;\n --grey9: #eff0f0;\n --grey10: #f7f7f7;\n --highlight: #0f62fe;\n --dark-blue: #001833;\n --background: #d0e2ff;\n --banyan-blue: #00037c;\n --banyan-orange: #ff892a;\n --banyan-pink: #ff1597;\n --banyan-gradient: linear-gradient(\n \t84.71deg,\n \tvar(--banyan-pink) 0.48%,\n \tvar(--banyan-orange) 99.57%\n );\n --error: #da1e28;\n --error-bg: #fff1f1;\n --error-outline: rgba(218, 30, 40, 0.08);\n --success: #24a148;\n --success-bg: #defbe6;\n --success-outline: rgba(36, 161, 72, 0.08);\n --warning: #f1c21b;\n --warning-bg: #fff8e1;\n --warning-outline: rgba(203, 160, 6, 0.08);\n --info: #0043ce;\n --info-bg: #edf5ff;\n --info-outline: #2864db98;\n}\n\n.Radio_module_root__dc9ececa {\n cursor: pointer;\n gap: 10px;\n}\n.Radio_module_root__dc9ececa.Radio_module_positionLeft__dc9ececa {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n}\n.Radio_module_root__dc9ececa.Radio_module_positionRight__dc9ececa {\n display: flex;\n flex-direction: row-reverse;\n justify-content: flex-end;\n align-items: center;\n}\n.Radio_module_root__dc9ececa.Radio_module_disabled__dc9ececa {\n cursor: default;\n}\n.Radio_module_root__dc9ececa input[type=radio] {\n opacity: 0;\n z-index: 1;\n position: absolute;\n width: 1px;\n height: 1px;\n}\n.Radio_module_root__dc9ececa .Radio_module_icon__dc9ececa {\n display: inline-block;\n}\n.Radio_module_root__dc9ececa .Radio_module_icon__dc9ececa.Radio_module_iconSm__dc9ececa {\n width: 1rem;\n height: 1rem;\n}\n.Radio_module_root__dc9ececa .Radio_module_icon__dc9ececa.Radio_module_iconMd__dc9ececa {\n width: 1.25rem;\n height: 1.25rem;\n}\n.Radio_module_root__dc9ececa .Radio_module_icon__dc9ececa.Radio_module_iconLg__dc9ececa {\n width: 1.5rem;\n height: 2rem;\n}\n.Radio_module_root__dc9ececa [data-elem=label] {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}";
|
|
34633
34540
|
var modules_3705961f = {"white":"var(--white)","black":"var(--black)","dark-grey":"var(--dark-grey)","dark-grey-o-85":"var(--dark-grey-o-85)","grey":"var(--grey)","grey1":"var(--grey1)","grey2":"var(--grey2)","grey3":"var(--grey3)","grey4":"var(--grey4)","grey5":"var(--grey5)","grey6":"var(--grey6)","grey7":"var(--grey7)","grey8":"var(--grey8)","grey9":"var(--grey9)","grey10":"var(--grey10)","highlight":"var(--highlight)","dark-blue":"var(--dark-blue)","background":"var(--background)","banyan-blue":"var(--banyan-blue)","banyan-orange":"var(--banyan-orange)","banyan-pink":"var(--banyan-pink)","banyan-gradient":"var(--banyan-gradient)","error":"var(--error)","error-bg":"var(--error-bg)","error-outline":"var(--error-outline)","success":"var(--success)","success-bg":"var(--success-bg)","success-outline":"var(--success-outline)","warning":"var(--warning)","warning-bg":"var(--warning-bg)","warning-outline":"var(--warning-outline)","info":"var(--info)","info-bg":"var(--info-bg)","info-outline":"var(--info-outline)","root":"Radio_module_root__dc9ececa","position-left":"Radio_module_positionLeft__dc9ececa","position-right":"Radio_module_positionRight__dc9ececa","disabled":"Radio_module_disabled__dc9ececa","icon":"Radio_module_icon__dc9ececa","icon-sm":"Radio_module_iconSm__dc9ececa","icon-md":"Radio_module_iconMd__dc9ececa","icon-lg":"Radio_module_iconLg__dc9ececa"};
|
|
34634
|
-
n(css$
|
|
34541
|
+
n(css$r,{});
|
|
34635
34542
|
|
|
34636
34543
|
var Radio = function Radio(props) {
|
|
34637
34544
|
// eslint-disable-next-line object-curly-newline
|
|
@@ -34699,9 +34606,9 @@ Radio.defaultProps = {
|
|
|
34699
34606
|
onChange: function onChange() {}
|
|
34700
34607
|
};
|
|
34701
34608
|
|
|
34702
|
-
var css$
|
|
34703
|
-
var modules_1b90f5ea = {"root":"
|
|
34704
|
-
n(css$
|
|
34609
|
+
var css$q = ".Dropdown_module_root__1ad8038e {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 0.5rem;\n position: relative;\n width: -webkit-fit-content;\n width: -moz-fit-content;\n width: fit-content;\n max-width: 100%;\n}\n.Dropdown_module_root__1ad8038e .Dropdown_module_label__1ad8038e {\n font-size: 0.75rem;\n color: var(--grey);\n width: auto;\n}\n.Dropdown_module_root__1ad8038e .Dropdown_module_header__1ad8038e {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n max-width: 100%;\n position: relative;\n}\n.Dropdown_module_root__1ad8038e .Dropdown_module_header__1ad8038e .Dropdown_module_input__1ad8038e {\n position: absolute;\n opacity: 0;\n width: 1px;\n height: 1px;\n}\n.Dropdown_module_root__1ad8038e .Dropdown_module_header__1ad8038e .Dropdown_module_input__1ad8038e:focus + .Dropdown_module_select__1ad8038e {\n border-color: var(--highlight);\n}\n.Dropdown_module_root__1ad8038e .Dropdown_module_header__1ad8038e .Dropdown_module_input__1ad8038e:focus + .Dropdown_module_select__1ad8038e.Dropdown_module_feedbackError__1ad8038e {\n border-color: var(--error);\n}\n.Dropdown_module_root__1ad8038e .Dropdown_module_header__1ad8038e .Dropdown_module_select__1ad8038e {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n width: 25rem;\n max-width: 100%;\n gap: 0.5rem;\n background: var(--white);\n outline: none;\n border: 1px solid var(--grey5);\n border-radius: 0.25rem;\n padding: 0.75rem 0.75rem 0.75rem 1rem;\n cursor: pointer;\n}\n.Dropdown_module_root__1ad8038e .Dropdown_module_header__1ad8038e .Dropdown_module_select__1ad8038e .Dropdown_module_placeholder__1ad8038e {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n color: var(--black);\n}\n.Dropdown_module_root__1ad8038e .Dropdown_module_header__1ad8038e .Dropdown_module_select__1ad8038e .Dropdown_module_icon__1ad8038e {\n width: 1.5rem;\n height: 1.5rem;\n}\n.Dropdown_module_root__1ad8038e .Dropdown_module_header__1ad8038e .Dropdown_module_select__1ad8038e.Dropdown_module_feedbackError__1ad8038e {\n border-color: var(--error);\n}\n.Dropdown_module_root__1ad8038e.Dropdown_module_open__1ad8038e .Dropdown_module_header__1ad8038e {\n border-color: var(--highlight);\n}\n.Dropdown_module_root__1ad8038e.Dropdown_module_disabled__1ad8038e .Dropdown_module_select__1ad8038e {\n background: var(--grey10);\n cursor: not-allowed;\n}\n.Dropdown_module_root__1ad8038e .Dropdown_module_bottom__1ad8038e {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: flex-start;\n min-height: 2rem;\n width: 100%;\n gap: 1rem;\n color: var(--grey3);\n font-size: 0.75rem;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.Dropdown_module_root__1ad8038e .Dropdown_module_bottom__1ad8038e .Dropdown_module_feedback__1ad8038e {\n flex: 1;\n margin-right: auto;\n}\n.Dropdown_module_root__1ad8038e .Dropdown_module_bottom__1ad8038e .Dropdown_module_feedback__1ad8038e.Dropdown_module_feedbackError__1ad8038e {\n color: var(--error);\n fill: var(--error);\n}\n.Dropdown_module_root__1ad8038e .Dropdown_module_bottom__1ad8038e .Dropdown_module_feedback__1ad8038e.Dropdown_module_feedbackSuccess__1ad8038e {\n color: var(--success);\n fill: var(--success);\n}\n.Dropdown_module_root__1ad8038e .Dropdown_module_bottom__1ad8038e .Dropdown_module_count__1ad8038e {\n text-align: right;\n margin-left: auto;\n}\n.Dropdown_module_root__1ad8038e .Dropdown_module_bottom__1ad8038e .Dropdown_module_count__1ad8038e.Dropdown_module_exceeded__1ad8038e {\n color: var(--error);\n}\n\n.Dropdown_module_body__1ad8038e {\n display: none;\n position: absolute;\n top: calc(100% + 0.5rem);\n background: var(--white);\n width: auto;\n border: 0.063rem solid var(--grey5);\n box-shadow: 0rem 0.5rem 1.25rem rgba(24, 24, 24, 0.08);\n border-radius: 0.25rem;\n padding: 1rem;\n overflow-y: auto;\n min-height: 4rem;\n outline: none;\n}\n.Dropdown_module_body__1ad8038e .Dropdown_module_multiOptions__1ad8038e {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 0.5rem;\n list-style: none;\n}\n.Dropdown_module_body__1ad8038e .Dropdown_module_multiApply__1ad8038e {\n margin-top: 0.5rem;\n}\n.Dropdown_module_body__1ad8038e.Dropdown_module_open__1ad8038e {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n}";
|
|
34610
|
+
var modules_1b90f5ea = {"root":"Dropdown_module_root__1ad8038e","label":"Dropdown_module_label__1ad8038e","header":"Dropdown_module_header__1ad8038e","input":"Dropdown_module_input__1ad8038e","select":"Dropdown_module_select__1ad8038e","feedback-error":"Dropdown_module_feedbackError__1ad8038e","placeholder":"Dropdown_module_placeholder__1ad8038e","icon":"Dropdown_module_icon__1ad8038e","open":"Dropdown_module_open__1ad8038e","disabled":"Dropdown_module_disabled__1ad8038e","bottom":"Dropdown_module_bottom__1ad8038e","feedback":"Dropdown_module_feedback__1ad8038e","feedback-success":"Dropdown_module_feedbackSuccess__1ad8038e","count":"Dropdown_module_count__1ad8038e","exceeded":"Dropdown_module_exceeded__1ad8038e","body":"Dropdown_module_body__1ad8038e","multi-options":"Dropdown_module_multiOptions__1ad8038e","multi-apply":"Dropdown_module_multiApply__1ad8038e"};
|
|
34611
|
+
n(css$q,{});
|
|
34705
34612
|
|
|
34706
34613
|
var Dropdown = /*#__PURE__*/forwardRef(function Dropdown(props, inputRef) {
|
|
34707
34614
|
var _selectedOptions$map, _ref2, _selectedOptions$;
|
|
@@ -34718,7 +34625,8 @@ var Dropdown = /*#__PURE__*/forwardRef(function Dropdown(props, inputRef) {
|
|
|
34718
34625
|
disabled = props.disabled,
|
|
34719
34626
|
id = props.id,
|
|
34720
34627
|
name = props.name,
|
|
34721
|
-
feedback = props.feedback
|
|
34628
|
+
feedback = props.feedback,
|
|
34629
|
+
formatter = props.formatter;
|
|
34722
34630
|
var _useState = useState(false),
|
|
34723
34631
|
_useState2 = _slicedToArray(_useState, 2),
|
|
34724
34632
|
open = _useState2[0],
|
|
@@ -34731,7 +34639,8 @@ var Dropdown = /*#__PURE__*/forwardRef(function Dropdown(props, inputRef) {
|
|
|
34731
34639
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
34732
34640
|
selectedIndex = _useState6[0],
|
|
34733
34641
|
setSelectedIndex = _useState6[1];
|
|
34734
|
-
var
|
|
34642
|
+
var listItemsRef = useRef([]);
|
|
34643
|
+
var multiOptionsRef = useRef(null);
|
|
34735
34644
|
var isControlled = value !== undefined;
|
|
34736
34645
|
|
|
34737
34646
|
// for uncontrolled input
|
|
@@ -34772,85 +34681,68 @@ var Dropdown = /*#__PURE__*/forwardRef(function Dropdown(props, inputRef) {
|
|
|
34772
34681
|
}), useRole(context, {
|
|
34773
34682
|
role: 'listbox'
|
|
34774
34683
|
}), useListNavigation(context, {
|
|
34775
|
-
listRef:
|
|
34776
|
-
activeIndex: activeIndex,
|
|
34777
|
-
selectedIndex: selectedIndex,
|
|
34778
|
-
onNavigate: setActiveIndex,
|
|
34779
|
-
focusItemOnHover: true
|
|
34780
|
-
}), useTypeahead(context, {
|
|
34781
|
-
listRef: listRef,
|
|
34782
|
-
onMatch: open ? setActiveIndex : setSelectedIndex,
|
|
34684
|
+
listRef: listItemsRef,
|
|
34783
34685
|
activeIndex: activeIndex,
|
|
34784
34686
|
selectedIndex: selectedIndex,
|
|
34785
|
-
|
|
34786
|
-
return list.find(function (elem) {
|
|
34787
|
-
var _elem$textContent;
|
|
34788
|
-
return (elem === null || elem === void 0 ? void 0 : (_elem$textContent = elem.textContent) === null || _elem$textContent === void 0 ? void 0 : _elem$textContent.toLowerCase().indexOf(typedString)) === 0;
|
|
34789
|
-
});
|
|
34790
|
-
}
|
|
34687
|
+
onNavigate: setActiveIndex
|
|
34791
34688
|
}), useDismiss(context)]),
|
|
34792
34689
|
getReferenceProps = _useInteractions.getReferenceProps,
|
|
34793
34690
|
getFloatingProps = _useInteractions.getFloatingProps,
|
|
34794
34691
|
getItemProps = _useInteractions.getItemProps;
|
|
34795
|
-
var onSelect = function onSelect(
|
|
34796
|
-
|
|
34797
|
-
|
|
34798
|
-
|
|
34799
|
-
|
|
34800
|
-
selected = dataset.selected,
|
|
34801
|
-
elem = dataset.elem;
|
|
34802
|
-
|
|
34803
|
-
// to support form libraries which require name and value on the event
|
|
34804
|
-
var nativeEvent = event.nativeEvent || event;
|
|
34805
|
-
var clonedEvent = new nativeEvent.constructor(nativeEvent.type, nativeEvent);
|
|
34806
|
-
Object.defineProperty(clonedEvent, 'target', {
|
|
34807
|
-
writable: true,
|
|
34808
|
-
value: {
|
|
34809
|
-
value: itemValue,
|
|
34810
|
-
name: name
|
|
34692
|
+
var onSelect = function onSelect(child, selected) {
|
|
34693
|
+
return function (event) {
|
|
34694
|
+
var _itemValue$toString;
|
|
34695
|
+
if (event.currentTarget.getAttribute('data-elem') !== 'dropdown-item') {
|
|
34696
|
+
return;
|
|
34811
34697
|
}
|
|
34812
|
-
|
|
34813
|
-
|
|
34698
|
+
var itemValue = child.props.value;
|
|
34699
|
+
var itemValueString = itemValue === null || itemValue === void 0 ? void 0 : (_itemValue$toString = itemValue.toString) === null || _itemValue$toString === void 0 ? void 0 : _itemValue$toString.call(itemValue);
|
|
34700
|
+
var index = event.currentTarget.getAttribute('data-index');
|
|
34701
|
+
|
|
34702
|
+
// to support form libraries which require name and value on the event
|
|
34703
|
+
var nativeEvent = event.nativeEvent || event;
|
|
34704
|
+
var clonedEvent = new nativeEvent.constructor(nativeEvent.type, nativeEvent);
|
|
34705
|
+
Object.defineProperty(clonedEvent, 'target', {
|
|
34706
|
+
writable: true,
|
|
34707
|
+
value: {
|
|
34708
|
+
value: itemValueString,
|
|
34709
|
+
name: name
|
|
34710
|
+
}
|
|
34711
|
+
});
|
|
34712
|
+
|
|
34713
|
+
// if (elem === 'dropdown-item') {
|
|
34814
34714
|
setSelectedIndex(parseInt(index, 10));
|
|
34815
34715
|
if (multi) {
|
|
34816
|
-
|
|
34817
|
-
|
|
34818
|
-
|
|
34819
|
-
|
|
34820
|
-
|
|
34821
|
-
} else {
|
|
34822
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(clonedEvent, [].concat(_toConsumableArray(value !== null && value !== void 0 ? value : []), [itemValue]));
|
|
34823
|
-
}
|
|
34716
|
+
// eslint-disable-next-line no-lonely-if
|
|
34717
|
+
if (selected === true) {
|
|
34718
|
+
setUncontrolledValue(uncontrolledValue.filter(function (val) {
|
|
34719
|
+
return val !== itemValueString;
|
|
34720
|
+
}));
|
|
34824
34721
|
} else {
|
|
34825
|
-
|
|
34826
|
-
if (selected === 'true') {
|
|
34827
|
-
setUncontrolledValue(uncontrolledValue.filter(function (val) {
|
|
34828
|
-
return val !== itemValue;
|
|
34829
|
-
}));
|
|
34830
|
-
} else {
|
|
34831
|
-
setUncontrolledValue([].concat(_toConsumableArray(uncontrolledValue !== null && uncontrolledValue !== void 0 ? uncontrolledValue : []), [itemValue]));
|
|
34832
|
-
}
|
|
34722
|
+
setUncontrolledValue([].concat(_toConsumableArray(uncontrolledValue !== null && uncontrolledValue !== void 0 ? uncontrolledValue : []), [itemValueString]));
|
|
34833
34723
|
}
|
|
34724
|
+
setActiveIndex(parseInt(index, 10));
|
|
34834
34725
|
} else {
|
|
34835
34726
|
if (isControlled) {
|
|
34836
|
-
onChange(clonedEvent,
|
|
34727
|
+
onChange(clonedEvent, itemValueString.toString());
|
|
34837
34728
|
} else {
|
|
34838
|
-
setUncontrolledValue(
|
|
34729
|
+
setUncontrolledValue(itemValueString.toString());
|
|
34839
34730
|
}
|
|
34840
34731
|
setActiveIndex(null);
|
|
34841
34732
|
setOpen(false);
|
|
34842
34733
|
}
|
|
34843
|
-
|
|
34844
|
-
|
|
34845
|
-
var onNavigate = function onNavigate(event) {
|
|
34846
|
-
var selectKey = [' ', 'Spacebar', 'Enter'].includes(event.key);
|
|
34847
|
-
if (selectKey) {
|
|
34848
|
-
event.stopPropagation();
|
|
34849
|
-
onSelect(event);
|
|
34850
|
-
}
|
|
34734
|
+
// }
|
|
34735
|
+
};
|
|
34851
34736
|
};
|
|
34852
|
-
|
|
34853
|
-
|
|
34737
|
+
|
|
34738
|
+
var onNavigate = function onNavigate(child, selected) {
|
|
34739
|
+
return function (event) {
|
|
34740
|
+
var selectKey = [' ', 'Spacebar', 'Enter'].includes(event.key);
|
|
34741
|
+
if (selectKey) {
|
|
34742
|
+
event.stopPropagation();
|
|
34743
|
+
onSelect(child, selected)(event);
|
|
34744
|
+
}
|
|
34745
|
+
};
|
|
34854
34746
|
};
|
|
34855
34747
|
useImperativeHandle(inputRef, function () {
|
|
34856
34748
|
return {
|
|
@@ -34864,19 +34756,17 @@ var Dropdown = /*#__PURE__*/forwardRef(function Dropdown(props, inputRef) {
|
|
|
34864
34756
|
}
|
|
34865
34757
|
};
|
|
34866
34758
|
}, []);
|
|
34867
|
-
|
|
34868
|
-
return setOpen(false);
|
|
34869
|
-
});
|
|
34759
|
+
var childrenArray = React__default.Children.toArray(children);
|
|
34870
34760
|
var selectedOptions = useMemo(function () {
|
|
34871
34761
|
var inputValue = uncontrolledValue;
|
|
34872
|
-
if (isControlled) {
|
|
34762
|
+
if (isControlled && !multi) {
|
|
34873
34763
|
inputValue = value;
|
|
34874
34764
|
}
|
|
34875
34765
|
var options = [];
|
|
34876
34766
|
if (inputValue != null && inputValue !== '') {
|
|
34877
|
-
|
|
34878
|
-
var _inputValue$
|
|
34879
|
-
if (multi && ((_inputValue$
|
|
34767
|
+
childrenArray === null || childrenArray === void 0 ? void 0 : childrenArray.forEach(function (child) {
|
|
34768
|
+
var _inputValue$indexOf, _inputValue, _inputValue$indexOf2, _child$props, _child$props$value, _child$props$value$to, _inputValue2, _child$props2, _child$props2$value, _child$props2$value$t;
|
|
34769
|
+
if (multi && ((_inputValue$indexOf = (_inputValue = inputValue) === null || _inputValue === void 0 ? void 0 : (_inputValue$indexOf2 = _inputValue.indexOf) === null || _inputValue$indexOf2 === void 0 ? void 0 : _inputValue$indexOf2.call(_inputValue, child === null || child === void 0 ? void 0 : (_child$props = child.props) === null || _child$props === void 0 ? void 0 : (_child$props$value = _child$props.value) === null || _child$props$value === void 0 ? void 0 : (_child$props$value$to = _child$props$value.toString) === null || _child$props$value$to === void 0 ? void 0 : _child$props$value$to.call(_child$props$value))) !== null && _inputValue$indexOf !== void 0 ? _inputValue$indexOf : -1) !== -1 || !multi && ((_inputValue2 = inputValue) === null || _inputValue2 === void 0 ? void 0 : _inputValue2.toString()) === (child === null || child === void 0 ? void 0 : (_child$props2 = child.props) === null || _child$props2 === void 0 ? void 0 : (_child$props2$value = _child$props2.value) === null || _child$props2$value === void 0 ? void 0 : (_child$props2$value$t = _child$props2$value.toString) === null || _child$props2$value$t === void 0 ? void 0 : _child$props2$value$t.call(_child$props2$value))) {
|
|
34880
34770
|
var _child$props3, _child$props4, _child$props4$value, _child$props4$value$t;
|
|
34881
34771
|
options.push({
|
|
34882
34772
|
title: child === null || child === void 0 ? void 0 : (_child$props3 = child.props) === null || _child$props3 === void 0 ? void 0 : _child$props3.title,
|
|
@@ -34887,25 +34777,93 @@ var Dropdown = /*#__PURE__*/forwardRef(function Dropdown(props, inputRef) {
|
|
|
34887
34777
|
}
|
|
34888
34778
|
return options;
|
|
34889
34779
|
}, [value, uncontrolledValue, multi]);
|
|
34890
|
-
var items =
|
|
34780
|
+
var items = childrenArray.map(function (child, index) {
|
|
34781
|
+
var _child$props6;
|
|
34891
34782
|
var selected = false;
|
|
34892
|
-
if (selectedOptions.
|
|
34783
|
+
if (selectedOptions.findIndex(function (option) {
|
|
34893
34784
|
var _child$props5, _child$props5$value, _child$props5$value$t;
|
|
34894
34785
|
return option.value === (child === null || child === void 0 ? void 0 : (_child$props5 = child.props) === null || _child$props5 === void 0 ? void 0 : (_child$props5$value = _child$props5.value) === null || _child$props5$value === void 0 ? void 0 : (_child$props5$value$t = _child$props5$value.toString) === null || _child$props5$value$t === void 0 ? void 0 : _child$props5$value$t.call(_child$props5$value));
|
|
34895
|
-
})) {
|
|
34786
|
+
}) !== -1) {
|
|
34896
34787
|
selected = true;
|
|
34897
34788
|
}
|
|
34898
34789
|
return /*#__PURE__*/React__default.cloneElement(child, _objectSpread2({}, getItemProps({
|
|
34899
|
-
|
|
34790
|
+
key: child === null || child === void 0 ? void 0 : (_child$props6 = child.props) === null || _child$props6 === void 0 ? void 0 : _child$props6.value,
|
|
34791
|
+
onKeyDown: onNavigate(child, selected),
|
|
34792
|
+
onClick: onSelect(child, selected),
|
|
34793
|
+
onMouseEnter: function onMouseEnter() {
|
|
34794
|
+
setActiveIndex(index);
|
|
34795
|
+
},
|
|
34900
34796
|
dataAttrs: {
|
|
34901
34797
|
'data-index': index
|
|
34902
34798
|
},
|
|
34903
34799
|
selected: selected,
|
|
34800
|
+
tabIndex: activeIndex === index ? 0 : -1,
|
|
34904
34801
|
ref: function ref(node) {
|
|
34905
|
-
|
|
34802
|
+
listItemsRef.current[index] = node;
|
|
34906
34803
|
}
|
|
34907
34804
|
})));
|
|
34908
34805
|
});
|
|
34806
|
+
var _useState9 = useState(false),
|
|
34807
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
34808
|
+
pointer = _useState10[0],
|
|
34809
|
+
setPointer = _useState10[1];
|
|
34810
|
+
if (!open && pointer) {
|
|
34811
|
+
setPointer(false);
|
|
34812
|
+
}
|
|
34813
|
+
useLayoutEffect(function () {
|
|
34814
|
+
if (open && activeIndex != null && !pointer) {
|
|
34815
|
+
requestAnimationFrame(function () {
|
|
34816
|
+
var _listItemsRef$current;
|
|
34817
|
+
(_listItemsRef$current = listItemsRef.current[activeIndex]) === null || _listItemsRef$current === void 0 ? void 0 : _listItemsRef$current.scrollIntoView({
|
|
34818
|
+
block: 'nearest'
|
|
34819
|
+
});
|
|
34820
|
+
});
|
|
34821
|
+
}
|
|
34822
|
+
}, [open, activeIndex, pointer]);
|
|
34823
|
+
useEffect(function () {
|
|
34824
|
+
if (multi) {
|
|
34825
|
+
setUncontrolledValue(value);
|
|
34826
|
+
}
|
|
34827
|
+
}, [open, multi, value]);
|
|
34828
|
+
var onSelectAll = function onSelectAll(event, selected) {
|
|
34829
|
+
// to support form libraries which require name and value on the event
|
|
34830
|
+
var nativeEvent = event.nativeEvent || event;
|
|
34831
|
+
var clonedEvent = new nativeEvent.constructor(nativeEvent.type, nativeEvent);
|
|
34832
|
+
var itemValue = [];
|
|
34833
|
+
if (selected) {
|
|
34834
|
+
itemValue = childrenArray.map(function (child) {
|
|
34835
|
+
var _child$props7, _child$props7$value, _child$props7$value$t;
|
|
34836
|
+
return child === null || child === void 0 ? void 0 : (_child$props7 = child.props) === null || _child$props7 === void 0 ? void 0 : (_child$props7$value = _child$props7.value) === null || _child$props7$value === void 0 ? void 0 : (_child$props7$value$t = _child$props7$value.toString) === null || _child$props7$value$t === void 0 ? void 0 : _child$props7$value$t.call(_child$props7$value);
|
|
34837
|
+
});
|
|
34838
|
+
}
|
|
34839
|
+
Object.defineProperty(clonedEvent, 'target', {
|
|
34840
|
+
writable: true,
|
|
34841
|
+
value: {
|
|
34842
|
+
value: itemValue,
|
|
34843
|
+
name: name
|
|
34844
|
+
}
|
|
34845
|
+
});
|
|
34846
|
+
|
|
34847
|
+
// eslint-disable-next-line no-lonely-if
|
|
34848
|
+
if (selected === true) {
|
|
34849
|
+
setUncontrolledValue(itemValue);
|
|
34850
|
+
} else {
|
|
34851
|
+
setUncontrolledValue(itemValue);
|
|
34852
|
+
}
|
|
34853
|
+
setActiveIndex(0);
|
|
34854
|
+
};
|
|
34855
|
+
var onApply = function onApply(event) {
|
|
34856
|
+
var nativeEvent = event.nativeEvent || event;
|
|
34857
|
+
var clonedEvent = new nativeEvent.constructor(nativeEvent.type, nativeEvent);
|
|
34858
|
+
Object.defineProperty(clonedEvent, 'target', {
|
|
34859
|
+
writable: true,
|
|
34860
|
+
value: {
|
|
34861
|
+
value: uncontrolledValue,
|
|
34862
|
+
name: name
|
|
34863
|
+
}
|
|
34864
|
+
});
|
|
34865
|
+
onChange(event, uncontrolledValue);
|
|
34866
|
+
};
|
|
34909
34867
|
return /*#__PURE__*/jsxs("div", {
|
|
34910
34868
|
className: classes(className, modules_1b90f5ea.root, open ? modules_1b90f5ea.open : '', disabled ? modules_1b90f5ea.disabled : ''),
|
|
34911
34869
|
children: [label && /*#__PURE__*/jsx$1("div", {
|
|
@@ -34943,7 +34901,7 @@ var Dropdown = /*#__PURE__*/forwardRef(function Dropdown(props, inputRef) {
|
|
|
34943
34901
|
children: [/*#__PURE__*/jsx$1("span", {
|
|
34944
34902
|
"data-elem": "placeholder",
|
|
34945
34903
|
className: modules_1b90f5ea.placeholder,
|
|
34946
|
-
children: (_ref2 = (selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.length) > 1 ?
|
|
34904
|
+
children: (_ref2 = (selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.length) > 1 ? formatter(selectedOptions.length) : selectedOptions === null || selectedOptions === void 0 ? void 0 : (_selectedOptions$ = selectedOptions[0]) === null || _selectedOptions$ === void 0 ? void 0 : _selectedOptions$.title) !== null && _ref2 !== void 0 ? _ref2 : placeholder
|
|
34947
34905
|
}), /*#__PURE__*/jsx$1(Caret, {
|
|
34948
34906
|
"data-elem": "icon",
|
|
34949
34907
|
className: classes(modules_1b90f5ea.icon, modules_1b90f5ea['drop-icon'])
|
|
@@ -34954,25 +34912,55 @@ var Dropdown = /*#__PURE__*/forwardRef(function Dropdown(props, inputRef) {
|
|
|
34954
34912
|
wrapperId: "dropdown-popper",
|
|
34955
34913
|
children: open && /*#__PURE__*/jsx$1(FloatingFocusManager, {
|
|
34956
34914
|
context: context,
|
|
34957
|
-
initialFocus:
|
|
34958
|
-
|
|
34915
|
+
initialFocus: -1,
|
|
34916
|
+
modal: false,
|
|
34917
|
+
children: /*#__PURE__*/jsxs("ul", _objectSpread2(_objectSpread2({}, getFloatingProps({
|
|
34959
34918
|
'data-elem': 'body',
|
|
34960
34919
|
role: 'group',
|
|
34961
34920
|
ref: floating,
|
|
34962
34921
|
onKeyDown: function onKeyDown(event) {
|
|
34963
|
-
|
|
34922
|
+
setPointer(false);
|
|
34923
|
+
if (event.key === 'Tab' && !multi) {
|
|
34964
34924
|
setOpen(false);
|
|
34965
34925
|
}
|
|
34966
34926
|
},
|
|
34927
|
+
onPointerMove: function onPointerMove() {
|
|
34928
|
+
setPointer(true);
|
|
34929
|
+
},
|
|
34967
34930
|
style: {
|
|
34968
34931
|
position: strategy,
|
|
34969
34932
|
top: y !== null && y !== void 0 ? y : 0,
|
|
34970
34933
|
left: x !== null && x !== void 0 ? x : 0
|
|
34971
34934
|
},
|
|
34972
|
-
onClick: onClick,
|
|
34973
34935
|
className: classes(modules_1b90f5ea.body, popperClassName, open ? modules_1b90f5ea.open : '')
|
|
34974
34936
|
})), {}, {
|
|
34975
|
-
children:
|
|
34937
|
+
children: [multi && /*#__PURE__*/jsxs("li", {
|
|
34938
|
+
ref: multiOptionsRef,
|
|
34939
|
+
className: modules_1b90f5ea['multi-options'],
|
|
34940
|
+
tabIndex: -1,
|
|
34941
|
+
children: [/*#__PURE__*/jsx$1(Checkbox, {
|
|
34942
|
+
label: "Select All",
|
|
34943
|
+
position: "left",
|
|
34944
|
+
checked: selectedOptions.length === childrenArray.length,
|
|
34945
|
+
onChange: onSelectAll
|
|
34946
|
+
}), ' ', /*#__PURE__*/jsx$1(Button, {
|
|
34947
|
+
blurOnClick: false,
|
|
34948
|
+
variant: "text",
|
|
34949
|
+
title: "Clear",
|
|
34950
|
+
size: "auto",
|
|
34951
|
+
color: "danger",
|
|
34952
|
+
onClick: function onClick(event) {
|
|
34953
|
+
var _multiOptionsRef$curr;
|
|
34954
|
+
multiOptionsRef === null || multiOptionsRef === void 0 ? void 0 : (_multiOptionsRef$curr = multiOptionsRef.current) === null || _multiOptionsRef$curr === void 0 ? void 0 : _multiOptionsRef$curr.focus();
|
|
34955
|
+
onSelectAll(event, false);
|
|
34956
|
+
}
|
|
34957
|
+
})]
|
|
34958
|
+
}), items, multi && /*#__PURE__*/jsx$1(Button, {
|
|
34959
|
+
className: modules_1b90f5ea['multi-apply'],
|
|
34960
|
+
title: "Apply",
|
|
34961
|
+
size: "auto",
|
|
34962
|
+
onClick: onApply
|
|
34963
|
+
})]
|
|
34976
34964
|
}))
|
|
34977
34965
|
})
|
|
34978
34966
|
}), feedback != null && /*#__PURE__*/jsx$1("div", {
|
|
@@ -35000,7 +34988,8 @@ Dropdown.propTypes = {
|
|
|
35000
34988
|
feedback: propTypes$1.exports.shape({
|
|
35001
34989
|
text: propTypes$1.exports.node,
|
|
35002
34990
|
type: propTypes$1.exports.oneOf(['error', 'success', 'default'])
|
|
35003
|
-
})
|
|
34991
|
+
}),
|
|
34992
|
+
formatter: propTypes$1.exports.func
|
|
35004
34993
|
};
|
|
35005
34994
|
Dropdown.defaultProps = {
|
|
35006
34995
|
popperClassName: '',
|
|
@@ -35014,12 +35003,15 @@ Dropdown.defaultProps = {
|
|
|
35014
35003
|
multi: false,
|
|
35015
35004
|
onChange: null,
|
|
35016
35005
|
onBlur: null,
|
|
35017
|
-
feedback: null
|
|
35006
|
+
feedback: null,
|
|
35007
|
+
formatter: function formatter(totalSelected) {
|
|
35008
|
+
return "".concat(totalSelected, " options selected");
|
|
35009
|
+
}
|
|
35018
35010
|
};
|
|
35019
35011
|
|
|
35020
|
-
var css$
|
|
35021
|
-
var modules_bf949acd = {"
|
|
35022
|
-
n(css$
|
|
35012
|
+
var css$p = ".DropdownItem_module_root__61492174 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n gap: 0.75rem;\n width: 100%;\n padding: 0.75rem 1rem;\n border-radius: 0.25rem;\n cursor: pointer;\n color: var(--grey);\n outline: none;\n}\n.DropdownItem_module_root__61492174 > .DropdownItem_module_input__61492174 {\n cursor: pointer;\n}\n.DropdownItem_module_root__61492174:focus {\n background: var(--grey6);\n}\n.DropdownItem_module_root__61492174.DropdownItem_module_selected__61492174 {\n background: var(--info-bg);\n}";
|
|
35013
|
+
var modules_bf949acd = {"root":"DropdownItem_module_root__61492174","input":"DropdownItem_module_input__61492174","selected":"DropdownItem_module_selected__61492174"};
|
|
35014
|
+
n(css$p,{});
|
|
35023
35015
|
|
|
35024
35016
|
var DropdownItem = /*#__PURE__*/forwardRef(function DropdownItem(props, ref) {
|
|
35025
35017
|
// eslint-disable-next-line object-curly-newline
|
|
@@ -35028,32 +35020,39 @@ var DropdownItem = /*#__PURE__*/forwardRef(function DropdownItem(props, ref) {
|
|
|
35028
35020
|
variant = props.variant,
|
|
35029
35021
|
selected = props.selected,
|
|
35030
35022
|
onKeyDown = props.onKeyDown,
|
|
35023
|
+
onMouseEnter = props.onMouseEnter,
|
|
35031
35024
|
onClick = props.onClick,
|
|
35032
35025
|
dataAttrs = props.dataAttrs,
|
|
35033
|
-
className = props.className
|
|
35026
|
+
className = props.className,
|
|
35027
|
+
tabIndex = props.tabIndex;
|
|
35034
35028
|
var action = null;
|
|
35035
35029
|
switch (variant) {
|
|
35036
35030
|
case 'checkbox':
|
|
35037
35031
|
action = /*#__PURE__*/jsx$1(Checkbox, {
|
|
35038
|
-
|
|
35032
|
+
className: modules_bf949acd.input,
|
|
35033
|
+
checked: selected,
|
|
35034
|
+
disabled: true
|
|
35039
35035
|
});
|
|
35040
35036
|
break;
|
|
35041
35037
|
case 'radio':
|
|
35042
|
-
action = /*#__PURE__*/jsx$1(
|
|
35043
|
-
|
|
35038
|
+
action = /*#__PURE__*/jsx$1(Radio, {
|
|
35039
|
+
className: modules_bf949acd.input,
|
|
35040
|
+
checked: selected,
|
|
35041
|
+
disabled: true
|
|
35044
35042
|
});
|
|
35045
35043
|
break;
|
|
35046
35044
|
}
|
|
35047
|
-
return /*#__PURE__*/jsxs("
|
|
35045
|
+
return /*#__PURE__*/jsxs("li", _objectSpread2(_objectSpread2({
|
|
35048
35046
|
ref: ref,
|
|
35049
35047
|
className: classes(className, modules_bf949acd.root, selected ? modules_bf949acd.selected : ''),
|
|
35050
35048
|
"data-elem": "dropdown-item",
|
|
35051
35049
|
"data-variant": variant,
|
|
35052
35050
|
"data-value": value,
|
|
35053
35051
|
"data-selected": selected,
|
|
35054
|
-
onClick: onClick
|
|
35052
|
+
onClick: onClick,
|
|
35053
|
+
onMouseEnter: onMouseEnter
|
|
35055
35054
|
}, _objectSpread2({}, dataAttrs)), {}, {
|
|
35056
|
-
tabIndex:
|
|
35055
|
+
tabIndex: tabIndex,
|
|
35057
35056
|
role: "option",
|
|
35058
35057
|
"aria-selected": selected,
|
|
35059
35058
|
onKeyDown: onKeyDown,
|
|
@@ -35079,9 +35078,9 @@ DropdownItem.defaultProps = {
|
|
|
35079
35078
|
selected: false
|
|
35080
35079
|
};
|
|
35081
35080
|
|
|
35082
|
-
var css$
|
|
35083
|
-
var modules_f23ae002 = {"root":"
|
|
35084
|
-
n(css$
|
|
35081
|
+
var css$o = ".BaseModal_module_root__2dd7477e {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n top: 50%;\n left: 50%;\n right: auto;\n bottom: auto;\n transform: translate(-50%, -50%);\n max-height: 100%;\n width: 50%;\n position: fixed;\n background: #ffffff;\n box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.13);\n border-radius: 5px;\n outline: none;\n}\n.BaseModal_module_root__2dd7477e .BaseModal_module_body__2dd7477e {\n overflow-y: scroll;\n padding: 0 15px;\n}\n.BaseModal_module_root__2dd7477e .BaseModal_module_header__2dd7477e,\n.BaseModal_module_root__2dd7477e .BaseModal_module_footer__2dd7477e {\n padding: 1rem;\n}\n.BaseModal_module_root__2dd7477e .BaseModal_module_header__2dd7477e {\n font-weight: 500;\n font-size: 1.375rem;\n}\n.BaseModal_module_root__2dd7477e .BaseModal_module_footer__2dd7477e {\n margin-top: auto;\n}\n.BaseModal_module_root__2dd7477e .BaseModal_module_close__2dd7477e {\n position: absolute;\n right: 0.5rem;\n top: 0.5rem;\n}\n.BaseModal_module_root__2dd7477e .BaseModal_module_close__2dd7477e .BaseModal_module_icon__2dd7477e {\n width: 1.5rem;\n height: 1.5rem;\n fill: var(--black);\n}";
|
|
35082
|
+
var modules_f23ae002 = {"root":"BaseModal_module_root__2dd7477e","body":"BaseModal_module_body__2dd7477e","header":"BaseModal_module_header__2dd7477e","footer":"BaseModal_module_footer__2dd7477e","close":"BaseModal_module_close__2dd7477e","icon":"BaseModal_module_icon__2dd7477e"};
|
|
35083
|
+
n(css$o,{});
|
|
35085
35084
|
|
|
35086
35085
|
var BaseModal = function BaseModal(props) {
|
|
35087
35086
|
var className = props.className,
|
|
@@ -35090,18 +35089,24 @@ var BaseModal = function BaseModal(props) {
|
|
|
35090
35089
|
renderFooter = props.renderFooter,
|
|
35091
35090
|
toggle = props.toggle,
|
|
35092
35091
|
open = props.open;
|
|
35093
|
-
var
|
|
35094
|
-
useOutsideClickListener(ref, function () {
|
|
35095
|
-
return toggle(false);
|
|
35096
|
-
});
|
|
35097
|
-
if (open) {
|
|
35098
|
-
return /*#__PURE__*/jsx$1(Popper, {
|
|
35092
|
+
var _useFloating = useFloating({
|
|
35099
35093
|
open: open,
|
|
35100
|
-
|
|
35101
|
-
|
|
35102
|
-
|
|
35094
|
+
onOpenChange: toggle
|
|
35095
|
+
}),
|
|
35096
|
+
floating = _useFloating.floating,
|
|
35097
|
+
context = _useFloating.context;
|
|
35098
|
+
var _useInteractions = useInteractions([useDismiss(context)]),
|
|
35099
|
+
getFloatingProps = _useInteractions.getFloatingProps;
|
|
35100
|
+
return /*#__PURE__*/jsx$1(Popper, {
|
|
35101
|
+
open: open,
|
|
35102
|
+
transparent: false,
|
|
35103
|
+
wrapperId: "base-modal-popper",
|
|
35104
|
+
children: open && /*#__PURE__*/jsx$1(FloatingFocusManager, {
|
|
35105
|
+
context: context,
|
|
35106
|
+
children: /*#__PURE__*/jsxs("div", _objectSpread2(_objectSpread2({}, getFloatingProps({
|
|
35103
35107
|
className: classes(modules_f23ae002.root, className),
|
|
35104
|
-
ref:
|
|
35108
|
+
ref: floating
|
|
35109
|
+
})), {}, {
|
|
35105
35110
|
children: [renderHeader && /*#__PURE__*/jsx$1("div", {
|
|
35106
35111
|
"data-elem": "header",
|
|
35107
35112
|
className: modules_f23ae002.header,
|
|
@@ -35114,20 +35119,23 @@ var BaseModal = function BaseModal(props) {
|
|
|
35114
35119
|
"data-elem": "footer",
|
|
35115
35120
|
className: modules_f23ae002.footer,
|
|
35116
35121
|
children: renderFooter
|
|
35117
|
-
}), /*#__PURE__*/jsx$1(
|
|
35122
|
+
}), /*#__PURE__*/jsx$1(Button, {
|
|
35123
|
+
size: "auto",
|
|
35124
|
+
variant: "text",
|
|
35118
35125
|
"data-elem": "close",
|
|
35119
|
-
className: modules_f23ae002.
|
|
35126
|
+
className: modules_f23ae002.close,
|
|
35120
35127
|
onClick: function onClick() {
|
|
35121
35128
|
toggle(false);
|
|
35122
35129
|
},
|
|
35123
|
-
|
|
35124
|
-
|
|
35125
|
-
|
|
35130
|
+
rightComponent: function rightComponent() {
|
|
35131
|
+
return /*#__PURE__*/jsx$1(Cross$1, {
|
|
35132
|
+
className: modules_f23ae002.icon
|
|
35133
|
+
});
|
|
35134
|
+
}
|
|
35126
35135
|
})]
|
|
35127
|
-
})
|
|
35128
|
-
})
|
|
35129
|
-
}
|
|
35130
|
-
return null;
|
|
35136
|
+
}))
|
|
35137
|
+
})
|
|
35138
|
+
});
|
|
35131
35139
|
};
|
|
35132
35140
|
BaseModal.propTypes = {
|
|
35133
35141
|
className: propTypes$1.exports.string,
|
|
@@ -35142,9 +35150,9 @@ BaseModal.defaultProps = {
|
|
|
35142
35150
|
toggle: function toggle() {}
|
|
35143
35151
|
};
|
|
35144
35152
|
|
|
35145
|
-
var css$
|
|
35153
|
+
var css$n = ".Dialog_module_root__2974a020 {\n padding: 0.25rem 0px;\n max-height: 14rem;\n background: #ffffff;\n border-radius: 0.25rem;\n}\n.Dialog_module_root__2974a020.Dialog_module_sm__2974a020 {\n width: 21.25rem;\n}\n.Dialog_module_root__2974a020.Dialog_module_md__2974a020 {\n width: 35rem;\n}\n.Dialog_module_root__2974a020 .Dialog_module_header__2974a020 {\n font-weight: 600;\n font-size: 0.875rem;\n color: var(--black);\n}\n.Dialog_module_root__2974a020 .Dialog_module_footer__2974a020 {\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n gap: 1rem;\n}\n.Dialog_module_root__2974a020 .Dialog_module_footer__2974a020 .Dialog_module_cancel__2974a020[data-elem=base-cell] {\n display: flex;\n color: var(--grey1);\n border-radius: 0.25rem;\n border: 1px solid var(--grey4);\n}\n.Dialog_module_root__2974a020 .Dialog_module_description__2974a020 {\n padding: 0.5rem 0px;\n font-size: 0.75rem;\n}";
|
|
35146
35154
|
var modules_ca1540aa = {"root":"Dialog_module_root__2974a020","sm":"Dialog_module_sm__2974a020","md":"Dialog_module_md__2974a020","header":"Dialog_module_header__2974a020","footer":"Dialog_module_footer__2974a020","cancel":"Dialog_module_cancel__2974a020","description":"Dialog_module_description__2974a020"};
|
|
35147
|
-
n(css$
|
|
35155
|
+
n(css$n,{});
|
|
35148
35156
|
|
|
35149
35157
|
/* eslint-disable object-curly-newline */
|
|
35150
35158
|
var DialogBox = function DialogBox(props) {
|
|
@@ -35208,9 +35216,9 @@ DialogBox.defaultProps = {
|
|
|
35208
35216
|
size: 'sm'
|
|
35209
35217
|
};
|
|
35210
35218
|
|
|
35211
|
-
var css$
|
|
35219
|
+
var css$m = ".PageHeader_module_root__2aae78e0 {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n width: 100%;\n background-color: transparent;\n gap: 4px;\n}\n.PageHeader_module_root__2aae78e0.PageHeader_module_themeDark__2aae78e0 {\n color: var(--white);\n}\n.PageHeader_module_root__2aae78e0.PageHeader_module_themeDark__2aae78e0 .PageHeader_module_breadcrumb__2aae78e0 [data-elem=breadcrumb-item-active] {\n color: var(--white);\n}\n.PageHeader_module_root__2aae78e0.PageHeader_module_themeLight__2aae78e0 {\n color: var(--dark-grey);\n}\n.PageHeader_module_root__2aae78e0 .PageHeader_module_description__2aae78e0 {\n color: var(--grey);\n}\n.PageHeader_module_root__2aae78e0 .PageHeader_module_contents__2aae78e0 {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n}\n.PageHeader_module_root__2aae78e0 .PageHeader_module_contents__2aae78e0 .PageHeader_module_left__2aae78e0,\n.PageHeader_module_root__2aae78e0 .PageHeader_module_contents__2aae78e0 .PageHeader_module_right__2aae78e0 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n gap: 10px;\n}\n.PageHeader_module_root__2aae78e0 .PageHeader_module_contents__2aae78e0 .PageHeader_module_left__2aae78e0 .PageHeader_module_title__2aae78e0 {\n font-size: 2.25rem;\n font-weight: 600;\n line-height: 3.375rem;\n}\n.PageHeader_module_root__2aae78e0 .PageHeader_module_contents__2aae78e0 .PageHeader_module_left__2aae78e0 .PageHeader_module_chip__2aae78e0 {\n font-weight: 500;\n background: var(--highlight);\n color: var(--white);\n}\n.PageHeader_module_root__2aae78e0 .PageHeader_module_description__2aae78e0 {\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5rem;\n}\n\n.PageHeader_module_download__2aae78e0,\n.PageHeader_module_calender__2aae78e0 {\n width: 1.5rem;\n height: 1.5rem;\n}";
|
|
35212
35220
|
var modules_bdcbeaa5 = {"root":"PageHeader_module_root__2aae78e0","theme-dark":"PageHeader_module_themeDark__2aae78e0","breadcrumb":"PageHeader_module_breadcrumb__2aae78e0","theme-light":"PageHeader_module_themeLight__2aae78e0","description":"PageHeader_module_description__2aae78e0","contents":"PageHeader_module_contents__2aae78e0","left":"PageHeader_module_left__2aae78e0","right":"PageHeader_module_right__2aae78e0","title":"PageHeader_module_title__2aae78e0","chip":"PageHeader_module_chip__2aae78e0","download":"PageHeader_module_download__2aae78e0","calender":"PageHeader_module_calender__2aae78e0"};
|
|
35213
|
-
n(css$
|
|
35221
|
+
n(css$m,{});
|
|
35214
35222
|
|
|
35215
35223
|
var PageHeader = function PageHeader(props) {
|
|
35216
35224
|
var theme = props.theme,
|
|
@@ -35352,9 +35360,9 @@ function getPagination(curr, total, limit) {
|
|
|
35352
35360
|
return pages;
|
|
35353
35361
|
}
|
|
35354
35362
|
|
|
35355
|
-
var css$
|
|
35363
|
+
var css$l = ".Pagination_module_root__4c778f02 {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: stretch;\n -ms-overflow-style: none;\n scrollbar-width: none;\n padding: 0.625rem 2.125rem;\n background: var(--dark-grey);\n margin-top: auto;\n width: 100%;\n height: 3.5rem;\n overflow: auto;\n transition-property: background-color, color, bottom, width;\n transition-duration: 0.33s;\n transition-timing-function: ease-out;\n}\n.Pagination_module_root__4c778f02::-webkit-scrollbar {\n display: none;\n}\n.Pagination_module_root__4c778f02.Pagination_module_floating__4c778f02 {\n background: var(--dark-grey-o-85);\n position: absolute;\n border-radius: 6.25rem;\n width: 82%;\n bottom: 3rem;\n}\n.Pagination_module_root__4c778f02 .Pagination_module_rowSwitcher__4c778f02,\n.Pagination_module_root__4c778f02 .Pagination_module_pagination__4c778f02,\n.Pagination_module_root__4c778f02 .Pagination_module_jumpToPage__4c778f02,\n.Pagination_module_root__4c778f02 .Pagination_module_form__4c778f02 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n height: 100%;\n}\n.Pagination_module_root__4c778f02 .Pagination_module_rowSwitcher__4c778f02 {\n display: none;\n gap: 0.75rem;\n background-color: var(--grey);\n padding: 0;\n border-radius: 0.3125rem;\n}\n@media (min-width: 992px) {\n .Pagination_module_root__4c778f02 .Pagination_module_rowSwitcher__4c778f02 {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n }\n}\n.Pagination_module_root__4c778f02 .Pagination_module_rowSwitcher__4c778f02 > [data-elem*=component] {\n overflow: hidden;\n}\n.Pagination_module_root__4c778f02 .Pagination_module_rowSwitcher__4c778f02 > [data-elem=component2] {\n display: flex;\n flex: 1 0 auto;\n}\n.Pagination_module_root__4c778f02 .Pagination_module_rowSwitcher__4c778f02 .Pagination_module_text__4c778f02 {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n height: 100%;\n display: block;\n padding: 0.5rem;\n font-size: 0.875rem;\n font-weight: 500;\n color: var(--white);\n}\n.Pagination_module_root__4c778f02 .Pagination_module_rowSwitcher__4c778f02 .Pagination_module_dropdown__4c778f02 > [data-elem=header] > [data-elem=select] {\n height: 2.375rem;\n width: auto;\n min-width: -webkit-fit-content;\n min-width: -moz-fit-content;\n min-width: fit-content;\n padding: 0.625rem;\n background-color: var(--grey);\n border: none;\n}\n.Pagination_module_root__4c778f02 .Pagination_module_rowSwitcher__4c778f02 .Pagination_module_dropdown__4c778f02 > [data-elem=header] > [data-elem=select] > [data-elem=placeholder] {\n color: var(--white);\n font-size: 0.875rem;\n}\n.Pagination_module_root__4c778f02 .Pagination_module_rowSwitcher__4c778f02 .Pagination_module_dropdown__4c778f02 > [data-elem=header] > [data-elem=select] > svg {\n fill: var(--white);\n width: 0.813rem;\n height: 0.813rem;\n}\n.Pagination_module_root__4c778f02 .Pagination_module_pageNumbers__4c778f02 {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n gap: 1.25rem;\n flex: 1 1 100%;\n}\n@media (min-width: 992px) {\n .Pagination_module_root__4c778f02 .Pagination_module_pageNumbers__4c778f02 {\n flex: 1 1 60%;\n }\n}\n.Pagination_module_root__4c778f02 .Pagination_module_pageNumbers__4c778f02 > .Pagination_module_button__4c778f02.Pagination_module_disable__4c778f02 {\n pointer-events: none;\n}\n.Pagination_module_root__4c778f02 .Pagination_module_pageNumbers__4c778f02 > .Pagination_module_button__4c778f02 [data-elem=title] {\n color: var(--white);\n}\n.Pagination_module_root__4c778f02 .Pagination_module_pageNumbers__4c778f02 > .Pagination_module_button__4c778f02 .Pagination_module_icon__4c778f02 {\n width: 1.5rem;\n height: 1.5rem;\n}\n.Pagination_module_root__4c778f02 .Pagination_module_pageNumbers__4c778f02 > .Pagination_module_pageSelect__4c778f02 {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n gap: 0.625rem;\n}\n.Pagination_module_root__4c778f02 .Pagination_module_pageNumbers__4c778f02 > .Pagination_module_pageSelect__4c778f02 .Pagination_module_number__4c778f02 {\n cursor: pointer;\n border-radius: 50%;\n background-color: #e0e0e0;\n color: var(--black);\n width: 2.313rem;\n line-height: 2.313rem;\n text-align: center;\n font-size: 1rem;\n border: 1px solid transparent;\n}\n.Pagination_module_root__4c778f02 .Pagination_module_pageNumbers__4c778f02 > .Pagination_module_pageSelect__4c778f02 .Pagination_module_number__4c778f02:not([data-active=true]) {\n display: none;\n}\n@media (min-width: 768px) {\n .Pagination_module_root__4c778f02 .Pagination_module_pageNumbers__4c778f02 > .Pagination_module_pageSelect__4c778f02 .Pagination_module_number__4c778f02:not([data-active=true]) {\n display: block;\n }\n}\n.Pagination_module_root__4c778f02 .Pagination_module_pageNumbers__4c778f02 > .Pagination_module_pageSelect__4c778f02 .Pagination_module_number__4c778f02:hover {\n border: 1px solid var(--highlight);\n color: var(--highlight);\n background: var(--background);\n}\n.Pagination_module_root__4c778f02 .Pagination_module_pageNumbers__4c778f02 > .Pagination_module_pageSelect__4c778f02 .Pagination_module_number__4c778f02.Pagination_module_active__4c778f02 {\n background-color: var(--highlight);\n color: var(--white);\n}\n.Pagination_module_root__4c778f02 .Pagination_module_form__4c778f02 {\n display: none;\n padding: 0;\n flex: 0 1 20%;\n background: transparent;\n}\n@media (min-width: 992px) {\n .Pagination_module_root__4c778f02 .Pagination_module_form__4c778f02 {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n }\n}\n.Pagination_module_root__4c778f02 .Pagination_module_form__4c778f02 > [data-elem*=component] {\n width: 100%;\n height: 100%;\n}\n.Pagination_module_root__4c778f02 .Pagination_module_form__4c778f02 > [data-elem*=component] > * {\n height: 100%;\n}\n.Pagination_module_root__4c778f02 .Pagination_module_form__4c778f02 .Pagination_module_jumpToPage__4c778f02 {\n width: 100%;\n background: transparent;\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: stretch;\n gap: 0.75rem;\n padding: 0;\n}\n.Pagination_module_root__4c778f02 .Pagination_module_form__4c778f02 .Pagination_module_jumpToPage__4c778f02 > [data-elem*=component] {\n overflow: hidden;\n height: 100%;\n}\n.Pagination_module_root__4c778f02 .Pagination_module_form__4c778f02 .Pagination_module_jumpToPage__4c778f02 .Pagination_module_button__4c778f02 {\n background-color: var(--grey);\n height: 100%;\n}\n.Pagination_module_root__4c778f02 .Pagination_module_form__4c778f02 .Pagination_module_jumpToPage__4c778f02 .Pagination_module_button__4c778f02 [data-elem=left] {\n overflow: hidden;\n}\n.Pagination_module_root__4c778f02 .Pagination_module_form__4c778f02 .Pagination_module_jumpToPage__4c778f02 .Pagination_module_button__4c778f02 [data-elem=left] [data-elem=title] {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n}\n.Pagination_module_root__4c778f02 .Pagination_module_form__4c778f02 .Pagination_module_jumpToPage__4c778f02 .Pagination_module_button__4c778f02 .Pagination_module_icon__4c778f02 {\n width: 1.5rem;\n height: 1.5rem;\n fill: var(--white);\n flex-shrink: 0;\n}\n.Pagination_module_root__4c778f02 .Pagination_module_form__4c778f02 .Pagination_module_jumpToPage__4c778f02 .Pagination_module_inputbox__4c778f02 {\n width: 5rem;\n max-width: 100%;\n height: 100%;\n}\n.Pagination_module_root__4c778f02 .Pagination_module_form__4c778f02 .Pagination_module_jumpToPage__4c778f02 .Pagination_module_inputbox__4c778f02 [data-elem=base-cell] {\n border-radius: 0.313rem;\n background-color: var(--grey);\n color: var(--white);\n border-color: var(--grey);\n width: 4.875rem;\n}\n.Pagination_module_root__4c778f02 .Pagination_module_form__4c778f02 .Pagination_module_jumpToPage__4c778f02 .Pagination_module_inputbox__4c778f02 [data-elem=base-cell] [data-elem=input] {\n text-align: center;\n color: var(--white);\n background-color: var(--grey);\n border: none;\n width: 100%;\n}\n\n.Pagination_module_paginationTest__4c778f02 {\n height: 80%;\n width: 100%;\n overflow: scroll;\n background-color: powderblue;\n display: flex;\n flex-direction: column;\n}\n\n.Pagination_module_dropdownPopper__4c778f02 {\n -ms-overflow-style: none;\n scrollbar-width: none;\n padding: 0.25rem;\n}\n.Pagination_module_dropdownPopper__4c778f02::-webkit-scrollbar {\n display: none;\n}";
|
|
35356
35364
|
var modules_a3d40e77 = {"root":"Pagination_module_root__4c778f02","floating":"Pagination_module_floating__4c778f02","row-switcher":"Pagination_module_rowSwitcher__4c778f02","pagination":"Pagination_module_pagination__4c778f02","jump-to-page":"Pagination_module_jumpToPage__4c778f02","form":"Pagination_module_form__4c778f02","text":"Pagination_module_text__4c778f02","dropdown":"Pagination_module_dropdown__4c778f02","page-numbers":"Pagination_module_pageNumbers__4c778f02","button":"Pagination_module_button__4c778f02","disable":"Pagination_module_disable__4c778f02","icon":"Pagination_module_icon__4c778f02","pageSelect":"Pagination_module_pageSelect__4c778f02","number":"Pagination_module_number__4c778f02","active":"Pagination_module_active__4c778f02","inputbox":"Pagination_module_inputbox__4c778f02","pagination-test":"Pagination_module_paginationTest__4c778f02","dropdown-popper":"Pagination_module_dropdownPopper__4c778f02"};
|
|
35357
|
-
n(css$
|
|
35365
|
+
n(css$l,{});
|
|
35358
35366
|
|
|
35359
35367
|
var dropdownOptions = ['10', '25', '50', '100', '200', '250'];
|
|
35360
35368
|
var reducer = function reducer(state, _ref) {
|
|
@@ -35586,13 +35594,13 @@ Pagination.defaultProps = {
|
|
|
35586
35594
|
onChange: function onChange() {}
|
|
35587
35595
|
};
|
|
35588
35596
|
|
|
35589
|
-
var css$
|
|
35590
|
-
var modules_bbfded44 = {"root":"
|
|
35591
|
-
n(css$
|
|
35597
|
+
var css$k = ".Stepper_module_root__781d3116 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 1rem;\n}\n.Stepper_module_root__781d3116 .Stepper_module_step__781d3116 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: flex-start;\n position: relative;\n z-index: 1;\n gap: 0.5rem;\n flex: 1;\n cursor: default;\n}\n.Stepper_module_root__781d3116 .Stepper_module_step__781d3116:last-child {\n flex: 0 1 auto;\n}\n.Stepper_module_root__781d3116 .Stepper_module_step__781d3116:last-child .Stepper_module_title__781d3116::after {\n display: none;\n}\n.Stepper_module_root__781d3116 .Stepper_module_step__781d3116 .Stepper_module_left__781d3116 {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n position: relative;\n width: 1.5rem;\n height: 1.5rem;\n background: var(--white);\n border: 0.063rem solid var(--grey2);\n border-radius: 2rem;\n font-size: 1rem;\n color: var(--grey2);\n}\n.Stepper_module_root__781d3116 .Stepper_module_step__781d3116 .Stepper_module_left__781d3116 .Stepper_module_icon__781d3116 {\n width: 0.75rem;\n height: 0.75rem;\n}\n.Stepper_module_root__781d3116 .Stepper_module_step__781d3116 .Stepper_module_left__781d3116 .Stepper_module_icon__781d3116.Stepper_module_errorIcon__781d3116 {\n fill: var(--error);\n}\n.Stepper_module_root__781d3116 .Stepper_module_step__781d3116 .Stepper_module_left__781d3116 .Stepper_module_icon__781d3116.Stepper_module_completionIcon__781d3116 {\n fill: var(--highlight);\n}\n.Stepper_module_root__781d3116 .Stepper_module_step__781d3116 .Stepper_module_left__781d3116 .Stepper_module_icon__781d3116.Stepper_module_completionIcon__781d3116.Stepper_module_active__781d3116 {\n fill: var(--white);\n}\n.Stepper_module_root__781d3116 .Stepper_module_step__781d3116 .Stepper_module_left__781d3116 .Stepper_module_progress__781d3116 {\n position: absolute;\n z-index: -1;\n inset: -0.3rem;\n border-radius: 2rem;\n}\n.Stepper_module_root__781d3116 .Stepper_module_step__781d3116 .Stepper_module_left__781d3116 .Stepper_module_progress__781d3116::after {\n position: absolute;\n content: \"\";\n inset: 0.15rem;\n background: white;\n border-radius: 2rem;\n}\n.Stepper_module_root__781d3116 .Stepper_module_step__781d3116 .Stepper_module_right__781d3116 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n flex: 1;\n}\n.Stepper_module_root__781d3116 .Stepper_module_step__781d3116 .Stepper_module_right__781d3116 .Stepper_module_title__781d3116 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 0.75rem;\n width: 100%;\n font-size: 1rem;\n color: var(--grey2);\n}\n.Stepper_module_root__781d3116 .Stepper_module_step__781d3116 .Stepper_module_right__781d3116 .Stepper_module_title__781d3116::after {\n content: \"\";\n flex: 1;\n min-width: 1.5rem;\n border-bottom: 0.063rem solid;\n margin-top: 0.75rem;\n border-bottom-color: var(--grey2);\n}\n.Stepper_module_root__781d3116 .Stepper_module_step__781d3116 .Stepper_module_right__781d3116 .Stepper_module_description__781d3116 {\n font-size: 0.75rem;\n color: var(--grey2);\n}\n.Stepper_module_root__781d3116 .Stepper_module_step__781d3116.Stepper_module_active__781d3116 .Stepper_module_left__781d3116 {\n background: var(--highlight);\n color: var(--white);\n}\n.Stepper_module_root__781d3116 .Stepper_module_step__781d3116.Stepper_module_active__781d3116 .Stepper_module_left__781d3116, .Stepper_module_root__781d3116 .Stepper_module_step__781d3116.Stepper_module_completed__781d3116 .Stepper_module_left__781d3116 {\n border-color: var(--highlight);\n}\n.Stepper_module_root__781d3116 .Stepper_module_step__781d3116.Stepper_module_active__781d3116 .Stepper_module_right__781d3116 .Stepper_module_title__781d3116, .Stepper_module_root__781d3116 .Stepper_module_step__781d3116.Stepper_module_completed__781d3116 .Stepper_module_right__781d3116 .Stepper_module_title__781d3116 {\n color: var(--black);\n}\n.Stepper_module_root__781d3116 .Stepper_module_step__781d3116.Stepper_module_active__781d3116 .Stepper_module_right__781d3116 .Stepper_module_description__781d3116, .Stepper_module_root__781d3116 .Stepper_module_step__781d3116.Stepper_module_completed__781d3116 .Stepper_module_right__781d3116 .Stepper_module_description__781d3116 {\n color: var(--grey);\n}\n.Stepper_module_root__781d3116 .Stepper_module_step__781d3116.Stepper_module_completed__781d3116 .Stepper_module_right__781d3116 .Stepper_module_title__781d3116::after {\n border-bottom-color: var(--highlight);\n}\n.Stepper_module_root__781d3116 .Stepper_module_step__781d3116.Stepper_module_error__781d3116 .Stepper_module_left__781d3116 {\n background: var(--white);\n border-color: var(--error);\n color: var(--error);\n}\n.Stepper_module_root__781d3116 .Stepper_module_step__781d3116.Stepper_module_error__781d3116 .Stepper_module_right__781d3116 .Stepper_module_title__781d3116 {\n color: var(--error);\n}\n.Stepper_module_root__781d3116 .Stepper_module_step__781d3116.Stepper_module_error__781d3116 .Stepper_module_right__781d3116 .Stepper_module_description__781d3116 {\n color: rgba(var(--error), 0.6);\n}";
|
|
35598
|
+
var modules_bbfded44 = {"root":"Stepper_module_root__781d3116","step":"Stepper_module_step__781d3116","title":"Stepper_module_title__781d3116","left":"Stepper_module_left__781d3116","icon":"Stepper_module_icon__781d3116","error-icon":"Stepper_module_errorIcon__781d3116","completion-icon":"Stepper_module_completionIcon__781d3116","active":"Stepper_module_active__781d3116","progress":"Stepper_module_progress__781d3116","right":"Stepper_module_right__781d3116","description":"Stepper_module_description__781d3116","completed":"Stepper_module_completed__781d3116","error":"Stepper_module_error__781d3116"};
|
|
35599
|
+
n(css$k,{});
|
|
35592
35600
|
|
|
35593
|
-
var css$
|
|
35601
|
+
var css$j = ":root {\n --white: #ffffff;\n --black: #000000;\n --dark-grey: #333333;\n --dark-grey-o-85: rgba(51, 51, 51, 0.85);\n --grey: #737373;\n --grey1: #888888;\n --grey2: #a6a6a6;\n --grey3: #bbbbbb;\n --grey4: #c4c4c4;\n --grey5: #dddddd;\n --grey6: #e8e8e8;\n --grey7: #eeeeee;\n --grey8: #f2f2f2;\n --grey9: #eff0f0;\n --grey10: #f7f7f7;\n --highlight: #0f62fe;\n --dark-blue: #001833;\n --background: #d0e2ff;\n --banyan-blue: #00037c;\n --banyan-orange: #ff892a;\n --banyan-pink: #ff1597;\n --banyan-gradient: linear-gradient(\n \t84.71deg,\n \tvar(--banyan-pink) 0.48%,\n \tvar(--banyan-orange) 99.57%\n );\n --error: #da1e28;\n --error-bg: #fff1f1;\n --error-outline: rgba(218, 30, 40, 0.08);\n --success: #24a148;\n --success-bg: #defbe6;\n --success-outline: rgba(36, 161, 72, 0.08);\n --warning: #f1c21b;\n --warning-bg: #fff8e1;\n --warning-outline: rgba(203, 160, 6, 0.08);\n --info: #0043ce;\n --info-bg: #edf5ff;\n --info-outline: #2864db98;\n}";
|
|
35594
35602
|
var modules_dd21d9e9 = {"white":"--white","black":"--black","dark-grey":"--dark-grey","dark-grey-o-85":"--dark-grey-o-85","grey":"--grey","grey1":"--grey1","grey2":"--grey2","grey3":"--grey3","grey4":"--grey4","grey5":"--grey5","grey6":"--grey6","grey7":"--grey7","grey8":"--grey8","grey9":"--grey9","grey10":"--grey10","highlight":"--highlight","dark-blue":"--dark-blue","background":"--background","banyan-blue":"--banyan-blue","banyan-orange":"--banyan-orange","banyan-pink":"--banyan-pink","banyan-gradient":"--banyan-gradient","error":"--error","error-bg":"--error-bg","error-outline":"--error-outline","success":"--success","success-bg":"--success-bg","success-outline":"--success-outline","warning":"--warning","warning-bg":"--warning-bg","warning-outline":"--warning-outline","info":"--info","info-bg":"--info-bg","info-outline":"--info-outline"};
|
|
35595
|
-
n(css$
|
|
35603
|
+
n(css$j,{});
|
|
35596
35604
|
|
|
35597
35605
|
var COLORS = Object.keys(modules_dd21d9e9).reduce(function (acc, curr) {
|
|
35598
35606
|
acc[curr] = getCSSVariableValue(modules_dd21d9e9[curr]);
|
|
@@ -35616,14 +35624,14 @@ var Step = function Step(props) {
|
|
|
35616
35624
|
});
|
|
35617
35625
|
} else if (completion === 1) {
|
|
35618
35626
|
display = /*#__PURE__*/jsx$1(Tick, {
|
|
35619
|
-
className: classes(modules_bbfded44.icon, modules_bbfded44['completion-icon'])
|
|
35627
|
+
className: classes(modules_bbfded44.icon, modules_bbfded44['completion-icon'], active ? modules_bbfded44.active : '')
|
|
35620
35628
|
});
|
|
35621
35629
|
}
|
|
35622
35630
|
return /*#__PURE__*/jsxs("div", {
|
|
35623
35631
|
className: classes(modules_bbfded44.step, active ? modules_bbfded44.active : '', completion === 1 ? modules_bbfded44.completed : '', error ? modules_bbfded44.error : ''),
|
|
35624
35632
|
children: [/*#__PURE__*/jsxs("div", {
|
|
35625
35633
|
className: modules_bbfded44.left,
|
|
35626
|
-
children: [display, active === true && completion > 0 && completion
|
|
35634
|
+
children: [display, active === true && completion > 0 && completion <= 1 && /*#__PURE__*/jsx$1("div", {
|
|
35627
35635
|
className: modules_bbfded44.progress,
|
|
35628
35636
|
style: {
|
|
35629
35637
|
backgroundImage: "conic-gradient(".concat(COLORS.highlight, ", ").concat(completion * 100, "%, transparent 0%)")
|
|
@@ -35704,9 +35712,9 @@ var TableColumn = /*#__PURE__*/_createClass$1(function TableColumn(_ref) {
|
|
|
35704
35712
|
this.sticky = sticky;
|
|
35705
35713
|
});
|
|
35706
35714
|
|
|
35707
|
-
var css$
|
|
35715
|
+
var css$i = ".TableCell_module_root__b998b6b2[data-elem=base-cell] {\n background: var(--white);\n border-bottom: 1px solid var(--grey4);\n}\n.TableCell_module_root__b998b6b2[data-elem=base-cell] > [data-elem*=component] {\n overflow: hidden;\n}\n.TableCell_module_root__b998b6b2[data-elem=base-cell] > [data-elem*=component] {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n flex: 1;\n}\n.TableCell_module_root__b998b6b2[data-elem=base-cell] > [data-elem*=component] .TableCell_module_cellText__b998b6b2 {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n display: inline-block;\n width: 100%;\n font-size: 0.875rem;\n}\n.TableCell_module_root__b998b6b2[data-elem=base-cell].TableCell_module_headerCell__b998b6b2 {\n background: var(--grey7);\n}\n.TableCell_module_root__b998b6b2[data-elem=base-cell].TableCell_module_headerCell__b998b6b2 .TableCell_module_cellText__b998b6b2 {\n font-weight: 600;\n}\n.TableCell_module_root__b998b6b2[data-elem=base-cell].TableCell_module_bodyCell__b998b6b2 .TableCell_module_cellText__b998b6b2.TableCell_module_multiLine__b998b6b2 {\n white-space: normal;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n font-size: 0.75rem;\n}\n.TableCell_module_root__b998b6b2[data-elem=base-cell].TableCell_module_stickyLeft__b998b6b2 {\n box-shadow: -2px -2px 4px rgba(166, 166, 166, 0.25), 2px 2px 4px rgba(166, 166, 166, 0.24);\n position: -webkit-sticky;\n position: sticky;\n left: 0;\n}\n.TableCell_module_root__b998b6b2[data-elem=base-cell].TableCell_module_stickyRight__b998b6b2 {\n box-shadow: -2px -2px 4px rgba(166, 166, 166, 0.25), 2px 2px 4px rgba(166, 166, 166, 0.24);\n position: -webkit-sticky;\n position: sticky;\n right: 0;\n}";
|
|
35708
35716
|
var modules_7ba8d001 = {"root":"TableCell_module_root__b998b6b2","cell-text":"TableCell_module_cellText__b998b6b2","header-cell":"TableCell_module_headerCell__b998b6b2","body-cell":"TableCell_module_bodyCell__b998b6b2","multi-line":"TableCell_module_multiLine__b998b6b2","sticky-left":"TableCell_module_stickyLeft__b998b6b2","sticky-right":"TableCell_module_stickyRight__b998b6b2"};
|
|
35709
|
-
n(css$
|
|
35717
|
+
n(css$i,{});
|
|
35710
35718
|
|
|
35711
35719
|
var TableCell = /*#__PURE__*/forwardRef(function TableCell(props, ref) {
|
|
35712
35720
|
var className = props.className,
|
|
@@ -35766,24 +35774,24 @@ TableCell.defaultProps = _objectSpread2(_objectSpread2({}, BaseCell.defaultProps
|
|
|
35766
35774
|
cellTitle: null
|
|
35767
35775
|
});
|
|
35768
35776
|
|
|
35769
|
-
var css$
|
|
35770
|
-
var modules_f6618a87 = {"root":"
|
|
35771
|
-
n(css$
|
|
35777
|
+
var css$h = ".TableRow_module_root__b76a6936 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n}\n.TableRow_module_root__b76a6936.TableRow_module_headerRow__b76a6936 {\n background: var(--grey6);\n}\n.TableRow_module_root__b76a6936.TableRow_module_bodyRow__b76a6936 {\n background: var(--white);\n}\n.TableRow_module_root__b76a6936.TableRow_module_bodyRow__b76a6936:hover > [data-elem=base-cell] {\n background: var(--info-bg);\n}\n.TableRow_module_root__b76a6936.TableRow_module_bodyRow__b76a6936[data-active=true] > [data-elem=base-cell] {\n background: var(--background);\n}\n.TableRow_module_root__b76a6936 > [data-elem=base-cell]:first-child {\n padding-left: 1rem;\n}\n.TableRow_module_root__b76a6936 > [data-elem=base-cell]:last-child {\n padding-right: 1rem;\n}";
|
|
35778
|
+
var modules_f6618a87 = {"root":"TableRow_module_root__b76a6936","header-row":"TableRow_module_headerRow__b76a6936","body-row":"TableRow_module_bodyRow__b76a6936"};
|
|
35779
|
+
n(css$h,{});
|
|
35772
35780
|
|
|
35773
|
-
var TableRow = function
|
|
35781
|
+
var TableRow = /*#__PURE__*/forwardRef(function BaseTable(props, ref) {
|
|
35774
35782
|
var _headerData$map;
|
|
35775
|
-
// eslint-disable-next-line object-curly-newline
|
|
35776
35783
|
var type = props.type,
|
|
35777
35784
|
headerData = props.headerData,
|
|
35778
35785
|
datum = props.datum,
|
|
35779
35786
|
_index = props._index,
|
|
35780
|
-
selected = props.selected,
|
|
35781
35787
|
customCells = props.customCells,
|
|
35782
35788
|
className = props.className,
|
|
35783
|
-
|
|
35789
|
+
setActiveId = props.setActiveId;
|
|
35784
35790
|
return /*#__PURE__*/jsx$1("tr", {
|
|
35791
|
+
ref: ref,
|
|
35792
|
+
tabIndex: -1,
|
|
35785
35793
|
"data-elem": "table-row",
|
|
35786
|
-
className: classes(className, modules_f6618a87.root,
|
|
35794
|
+
className: classes(className, modules_f6618a87.root, modules_f6618a87["".concat(type, "-row")]),
|
|
35787
35795
|
children: headerData === null || headerData === void 0 ? void 0 : (_headerData$map = headerData.map) === null || _headerData$map === void 0 ? void 0 : _headerData$map.call(headerData, function (item) {
|
|
35788
35796
|
var _getCustomCell;
|
|
35789
35797
|
var cellContent = null;
|
|
@@ -35794,7 +35802,7 @@ var TableRow = function TableRow(props) {
|
|
|
35794
35802
|
}
|
|
35795
35803
|
var cellProps = _objectSpread2(_objectSpread2(_objectSpread2({}, props), item), {}, {
|
|
35796
35804
|
_index: _index,
|
|
35797
|
-
|
|
35805
|
+
setActiveId: setActiveId,
|
|
35798
35806
|
key: item.id,
|
|
35799
35807
|
datum: datum,
|
|
35800
35808
|
cellContent: cellContent,
|
|
@@ -35814,7 +35822,7 @@ var TableRow = function TableRow(props) {
|
|
|
35814
35822
|
);
|
|
35815
35823
|
})
|
|
35816
35824
|
});
|
|
35817
|
-
};
|
|
35825
|
+
});
|
|
35818
35826
|
TableRow.propTypes = {
|
|
35819
35827
|
className: propTypes$1.exports.string,
|
|
35820
35828
|
type: propTypes$1.exports.oneOf(['header', 'body']),
|
|
@@ -35832,8 +35840,7 @@ TableRow.propTypes = {
|
|
|
35832
35840
|
style: propTypes$1.exports.object,
|
|
35833
35841
|
multiLine: propTypes$1.exports.bool
|
|
35834
35842
|
})),
|
|
35835
|
-
|
|
35836
|
-
selected: propTypes$1.exports.bool
|
|
35843
|
+
setActiveId: propTypes$1.exports.func
|
|
35837
35844
|
};
|
|
35838
35845
|
TableRow.defaultProps = {
|
|
35839
35846
|
className: '',
|
|
@@ -35844,39 +35851,45 @@ TableRow.defaultProps = {
|
|
|
35844
35851
|
body: null
|
|
35845
35852
|
},
|
|
35846
35853
|
headerData: [],
|
|
35847
|
-
|
|
35848
|
-
selected: false
|
|
35854
|
+
setActiveId: function setActiveId() {}
|
|
35849
35855
|
};
|
|
35850
35856
|
|
|
35851
|
-
var css$
|
|
35857
|
+
var css$g = ".TableBody_module_root__77e2990d {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n}";
|
|
35852
35858
|
var modules_82c0c387 = {"root":"TableBody_module_root__77e2990d"};
|
|
35853
|
-
n(css$
|
|
35859
|
+
n(css$g,{});
|
|
35854
35860
|
|
|
35855
|
-
/* eslint-disable
|
|
35861
|
+
/* eslint-disable no-underscore-dangle */
|
|
35856
35862
|
var TableBody = function TableBody(props) {
|
|
35857
35863
|
var tableData = props.tableData,
|
|
35858
|
-
uniqueKey = props.uniqueKey,
|
|
35859
|
-
activeData = props.activeData,
|
|
35860
|
-
setActiveData = props.setActiveData,
|
|
35861
35864
|
headerData = props.headerData,
|
|
35862
35865
|
customCells = props.customCells,
|
|
35863
35866
|
className = props.className;
|
|
35867
|
+
var listRef = useRef([]);
|
|
35864
35868
|
return /*#__PURE__*/jsx$1("tbody", {
|
|
35865
35869
|
"data-elem": "table-body",
|
|
35866
35870
|
className: classes(modules_82c0c387.root, className),
|
|
35867
35871
|
children: tableData === null || tableData === void 0 ? void 0 : tableData.map(function (datum, _index) {
|
|
35868
|
-
var key = datum === null || datum === void 0 ? void 0 : datum.
|
|
35869
|
-
var
|
|
35870
|
-
|
|
35871
|
-
|
|
35872
|
-
|
|
35872
|
+
var key = datum === null || datum === void 0 ? void 0 : datum.uuid;
|
|
35873
|
+
var setActiveId = function setActiveId() {
|
|
35874
|
+
var reset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
35875
|
+
// _setActi(veId(reset ? null : datum?.[uniqueKey]);
|
|
35876
|
+
if (reset) {
|
|
35877
|
+
// ref.current.blur();
|
|
35878
|
+
listRef.current[_index].removeAttribute('data-active');
|
|
35879
|
+
} else {
|
|
35880
|
+
// listRef.current.focus();
|
|
35881
|
+
listRef.current[_index].setAttribute('data-active', true);
|
|
35882
|
+
}
|
|
35883
|
+
};
|
|
35873
35884
|
return /*#__PURE__*/jsx$1(TableRow, {
|
|
35885
|
+
ref: function ref(node) {
|
|
35886
|
+
listRef.current[_index] = node;
|
|
35887
|
+
},
|
|
35874
35888
|
datum: datum,
|
|
35875
|
-
selected: selected,
|
|
35876
35889
|
headerData: headerData,
|
|
35877
35890
|
customCells: customCells,
|
|
35878
|
-
|
|
35879
|
-
|
|
35891
|
+
_index: _index,
|
|
35892
|
+
setActiveId: setActiveId
|
|
35880
35893
|
}, key);
|
|
35881
35894
|
})
|
|
35882
35895
|
});
|
|
@@ -35893,9 +35906,6 @@ TableBody.propTypes = {
|
|
|
35893
35906
|
multiLine: propTypes$1.exports.bool
|
|
35894
35907
|
})),
|
|
35895
35908
|
tableData: propTypes$1.exports.arrayOf(propTypes$1.exports.object),
|
|
35896
|
-
uniqueKey: propTypes$1.exports.arrayOf(propTypes$1.exports.string),
|
|
35897
|
-
activeData: propTypes$1.exports.object,
|
|
35898
|
-
setActiveData: propTypes$1.exports.func,
|
|
35899
35909
|
customCells: propTypes$1.exports.shape({
|
|
35900
35910
|
header: propTypes$1.exports.object,
|
|
35901
35911
|
body: propTypes$1.exports.object
|
|
@@ -35905,18 +35915,15 @@ TableBody.defaultProps = {
|
|
|
35905
35915
|
className: '',
|
|
35906
35916
|
headerData: [],
|
|
35907
35917
|
tableData: [],
|
|
35908
|
-
uniqueKey: [],
|
|
35909
|
-
activeData: {},
|
|
35910
|
-
setActiveData: function setActiveData() {},
|
|
35911
35918
|
customCells: {
|
|
35912
35919
|
header: null,
|
|
35913
35920
|
body: null
|
|
35914
35921
|
}
|
|
35915
35922
|
};
|
|
35916
35923
|
|
|
35917
|
-
var css$
|
|
35924
|
+
var css$f = ".TableHeader_module_root__daf69a14 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n}";
|
|
35918
35925
|
var modules_3be98c28 = {"root":"TableHeader_module_root__daf69a14"};
|
|
35919
|
-
n(css$
|
|
35926
|
+
n(css$f,{});
|
|
35920
35927
|
|
|
35921
35928
|
/* eslint-disable react/forbid-prop-types */
|
|
35922
35929
|
var TableHeader = function TableHeader(props) {
|
|
@@ -35955,18 +35962,15 @@ TableHeader.defaultProps = {
|
|
|
35955
35962
|
}
|
|
35956
35963
|
};
|
|
35957
35964
|
|
|
35958
|
-
var css$
|
|
35965
|
+
var css$e = ".BaseTable_module_root__7a8d241c {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n background: var(--white);\n overflow: auto;\n}";
|
|
35959
35966
|
var modules_f1817c60 = {"root":"BaseTable_module_root__7a8d241c"};
|
|
35960
|
-
n(css$
|
|
35967
|
+
n(css$e,{});
|
|
35961
35968
|
|
|
35962
35969
|
/* eslint-disable react/forbid-prop-types */
|
|
35963
35970
|
var BaseTable = /*#__PURE__*/forwardRef(function BaseTable(props, ref) {
|
|
35964
35971
|
var headerData = props.headerData,
|
|
35965
35972
|
customCells = props.customCells,
|
|
35966
35973
|
tableData = props.tableData,
|
|
35967
|
-
uniqueKey = props.uniqueKey,
|
|
35968
|
-
activeData = props.activeData,
|
|
35969
|
-
setActiveData = props.setActiveData,
|
|
35970
35974
|
className = props.className;
|
|
35971
35975
|
var transformedHeaderData = headerData.map(function (header) {
|
|
35972
35976
|
return new TableColumn(header);
|
|
@@ -35982,10 +35986,7 @@ var BaseTable = /*#__PURE__*/forwardRef(function BaseTable(props, ref) {
|
|
|
35982
35986
|
ref: ref,
|
|
35983
35987
|
headerData: transformedHeaderData,
|
|
35984
35988
|
customCells: customCells,
|
|
35985
|
-
tableData: tableData
|
|
35986
|
-
uniqueKey: uniqueKey,
|
|
35987
|
-
activeData: activeData,
|
|
35988
|
-
setActiveData: setActiveData
|
|
35989
|
+
tableData: tableData
|
|
35989
35990
|
})]
|
|
35990
35991
|
});
|
|
35991
35992
|
});
|
|
@@ -36001,9 +36002,6 @@ BaseTable.propTypes = {
|
|
|
36001
36002
|
multiLine: propTypes$1.exports.bool
|
|
36002
36003
|
})),
|
|
36003
36004
|
tableData: propTypes$1.exports.arrayOf(propTypes$1.exports.object),
|
|
36004
|
-
uniqueKey: propTypes$1.exports.arrayOf(propTypes$1.exports.string),
|
|
36005
|
-
activeData: propTypes$1.exports.object,
|
|
36006
|
-
setActiveData: propTypes$1.exports.func,
|
|
36007
36005
|
customCells: propTypes$1.exports.shape({
|
|
36008
36006
|
header: propTypes$1.exports.func,
|
|
36009
36007
|
body: propTypes$1.exports.func
|
|
@@ -36013,18 +36011,15 @@ BaseTable.defaultProps = {
|
|
|
36013
36011
|
className: '',
|
|
36014
36012
|
headerData: [],
|
|
36015
36013
|
tableData: [],
|
|
36016
|
-
uniqueKey: [],
|
|
36017
|
-
activeData: {},
|
|
36018
|
-
setActiveData: function setActiveData() {},
|
|
36019
36014
|
customCells: {
|
|
36020
36015
|
header: null,
|
|
36021
36016
|
body: null
|
|
36022
36017
|
}
|
|
36023
36018
|
};
|
|
36024
36019
|
|
|
36025
|
-
var css$
|
|
36020
|
+
var css$d = ".TableChips_module_root__ed8402e9[data-elem=base-cell] {\n padding: 0.5rem 1.5rem;\n width: 100%;\n background: var(--grey8);\n border-radius: 0.25rem 0.25rem 0 0;\n}\n.TableChips_module_root__ed8402e9[data-elem=base-cell] > [data-elem=component1] .TableChips_module_back__ed8402e9 {\n height: 2rem;\n width: 2rem;\n}\n.TableChips_module_root__ed8402e9[data-elem=base-cell] > [data-elem=component1] .TableChips_module_back__ed8402e9 [data-elem=component1] .TableChips_module_icon__ed8402e9 {\n width: 1.5rem;\n height: 1.5rem;\n fill: var(--white);\n}\n.TableChips_module_root__ed8402e9[data-elem=base-cell] > [data-elem=component2] {\n -ms-overflow-style: none;\n scrollbar-width: none;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n gap: 0.5rem;\n overflow-x: auto;\n flex: 1;\n}\n.TableChips_module_root__ed8402e9[data-elem=base-cell] > [data-elem=component2]::-webkit-scrollbar {\n display: none;\n}\n.TableChips_module_root__ed8402e9[data-elem=base-cell] > [data-elem=component2] .TableChips_module_chip__ed8402e9 .TableChips_module_chipIcon__ed8402e9 {\n width: 1rem;\n height: 1rem;\n}";
|
|
36026
36021
|
var modules_016d9b3e = {"root":"TableChips_module_root__ed8402e9","back":"TableChips_module_back__ed8402e9","icon":"TableChips_module_icon__ed8402e9","chip":"TableChips_module_chip__ed8402e9","chip-icon":"TableChips_module_chipIcon__ed8402e9"};
|
|
36027
|
-
n(css$
|
|
36022
|
+
n(css$d,{});
|
|
36028
36023
|
|
|
36029
36024
|
var TableChips = function TableChips(props) {
|
|
36030
36025
|
var _chips$filter;
|
|
@@ -36120,9 +36115,9 @@ var TableChip = /*#__PURE__*/_createClass$1(function TableChip(_ref) {
|
|
|
36120
36115
|
this.disabled = disabled;
|
|
36121
36116
|
});
|
|
36122
36117
|
|
|
36123
|
-
var css$
|
|
36118
|
+
var css$c = ".Popover_module_root__265e51dc {\n box-shadow: -2px -2px 4px rgba(166, 166, 166, 0.25), 2px 2px 4px rgba(166, 166, 166, 0.24);\n background-color: var(--white);\n padding: 1rem;\n border-radius: 0.25rem;\n}";
|
|
36124
36119
|
var modules_dfc4608f = {"root":"Popover_module_root__265e51dc"};
|
|
36125
|
-
n(css$
|
|
36120
|
+
n(css$c,{});
|
|
36126
36121
|
|
|
36127
36122
|
var Popover = function Popover(props) {
|
|
36128
36123
|
var children = props.children,
|
|
@@ -36198,9 +36193,9 @@ Popover.defaultProps = {
|
|
|
36198
36193
|
onClose: function onClose() {}
|
|
36199
36194
|
};
|
|
36200
36195
|
|
|
36201
|
-
var css$
|
|
36196
|
+
var css$b = ".Columns_module_popover__680b100e {\n height: 100%;\n}\n\n.Columns_module_root__680b100e {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n gap: 1rem;\n position: relative;\n height: 100%;\n max-width: 100%;\n}\n.Columns_module_root__680b100e .Columns_module_header__680b100e {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n gap: 1.5rem;\n width: 100%;\n padding: 0;\n height: auto;\n}\n.Columns_module_root__680b100e .Columns_module_header__680b100e > [data-elem=component1] {\n font-weight: 500;\n}\n.Columns_module_root__680b100e .Columns_module_header__680b100e > [data-elem=component2] .Columns_module_search__680b100e {\n width: 100%;\n}\n.Columns_module_root__680b100e .Columns_module_close__680b100e {\n position: absolute;\n top: -1rem;\n right: -1rem;\n}\n.Columns_module_root__680b100e .Columns_module_close__680b100e .Columns_module_icon__680b100e {\n width: 1rem;\n height: 1rem;\n}\n.Columns_module_root__680b100e .Columns_module_body__680b100e {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n gap: 0.5rem;\n overflow-y: auto;\n flex: 1 1 auto;\n}\n.Columns_module_root__680b100e .Columns_module_body__680b100e .Columns_module_item__680b100e {\n height: 3rem;\n}\n.Columns_module_root__680b100e .Columns_module_body__680b100e .Columns_module_item__680b100e > [data-elem=title] {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n}\n.Columns_module_root__680b100e .Columns_module_footer__680b100e .Columns_module_expand__680b100e .Columns_module_icon__680b100e {\n width: 1.5rem;\n height: 1.5rem;\n transform: rotate(180deg);\n}\n.Columns_module_root__680b100e.Columns_module_expanded__680b100e .Columns_module_header__680b100e {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n padding-right: 2rem;\n}\n.Columns_module_root__680b100e.Columns_module_expanded__680b100e .Columns_module_header__680b100e > [data-elem=component2] {\n flex: 1;\n}\n.Columns_module_root__680b100e.Columns_module_expanded__680b100e .Columns_module_close__680b100e {\n top: -0.25rem;\n}\n.Columns_module_root__680b100e.Columns_module_expanded__680b100e .Columns_module_body__680b100e {\n display: grid;\n grid-template-columns: 1fr 1fr;\n flex: 0 1 auto;\n}\n.Columns_module_root__680b100e.Columns_module_expanded__680b100e .Columns_module_body__680b100e .Columns_module_item__680b100e {\n overflow: hidden;\n}\n.Columns_module_root__680b100e.Columns_module_expanded__680b100e .Columns_module_footer__680b100e {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n margin-top: auto;\n}\n.Columns_module_root__680b100e.Columns_module_expanded__680b100e .Columns_module_footer__680b100e .Columns_module_expand__680b100e .Columns_module_icon__680b100e {\n transform: rotate(0deg);\n}";
|
|
36202
36197
|
var modules_48c02c99 = {"popover":"Columns_module_popover__680b100e","root":"Columns_module_root__680b100e","header":"Columns_module_header__680b100e","search":"Columns_module_search__680b100e","close":"Columns_module_close__680b100e","icon":"Columns_module_icon__680b100e","body":"Columns_module_body__680b100e","item":"Columns_module_item__680b100e","footer":"Columns_module_footer__680b100e","expand":"Columns_module_expand__680b100e","expanded":"Columns_module_expanded__680b100e"};
|
|
36203
|
-
n(css$
|
|
36198
|
+
n(css$b,{});
|
|
36204
36199
|
|
|
36205
36200
|
var Columns = function Columns(props) {
|
|
36206
36201
|
var open = props.open,
|
|
@@ -36298,9 +36293,9 @@ var Columns = function Columns(props) {
|
|
|
36298
36293
|
});
|
|
36299
36294
|
};
|
|
36300
36295
|
|
|
36301
|
-
var css$
|
|
36296
|
+
var css$a = ".TableFilters_module_root__0ffd53bf[data-elem=base-cell] {\n -ms-overflow-style: none;\n scrollbar-width: none;\n overflow-x: auto;\n padding: 0.5rem;\n gap: 1.25rem;\n width: 100%;\n}\n.TableFilters_module_root__0ffd53bf[data-elem=base-cell]::-webkit-scrollbar {\n display: none;\n}\n.TableFilters_module_root__0ffd53bf[data-elem=base-cell] .TableFilters_module_icon__0ffd53bf {\n width: 1.5rem;\n height: 1.5rem;\n flex-shrink: 0;\n}\n.TableFilters_module_root__0ffd53bf[data-elem=base-cell] .TableFilters_module_iconButton__0ffd53bf {\n padding: 0rem;\n height: 100%;\n}\n.TableFilters_module_root__0ffd53bf[data-elem=base-cell] > [data-elem*=component] {\n height: 100%;\n}\n.TableFilters_module_root__0ffd53bf[data-elem=base-cell] .TableFilters_module_left__0ffd53bf,\n.TableFilters_module_root__0ffd53bf[data-elem=base-cell] .TableFilters_module_center__0ffd53bf,\n.TableFilters_module_root__0ffd53bf[data-elem=base-cell] .TableFilters_module_right__0ffd53bf {\n height: 100%;\n}\n.TableFilters_module_root__0ffd53bf[data-elem=base-cell] > [data-elem=component1] .TableFilters_module_left__0ffd53bf {\n gap: 1rem;\n}\n.TableFilters_module_root__0ffd53bf[data-elem=base-cell] > [data-elem=component1] .TableFilters_module_left__0ffd53bf [data-elem=left] {\n gap: 1rem;\n}\n.TableFilters_module_root__0ffd53bf[data-elem=base-cell] > [data-elem=component1] .TableFilters_module_left__0ffd53bf .TableFilters_module_filterValue__0ffd53bf {\n color: var(--white);\n background: var(--highlight);\n padding: 0.125rem 0.5rem;\n border-radius: 50%;\n font-size: 0.813rem;\n}\n.TableFilters_module_root__0ffd53bf[data-elem=base-cell] > [data-elem=component2] {\n flex: 1;\n}\n.TableFilters_module_root__0ffd53bf[data-elem=base-cell] > [data-elem=component2] .TableFilters_module_center__0ffd53bf {\n width: 100%;\n}\n.TableFilters_module_root__0ffd53bf[data-elem=base-cell] > [data-elem=component2] .TableFilters_module_center__0ffd53bf [data-elem=base-cell] {\n background: var(--grey7);\n border-color: var(--grey3);\n}\n.TableFilters_module_root__0ffd53bf[data-elem=base-cell] > [data-elem=component2] .TableFilters_module_center__0ffd53bf .TableFilters_module_icon__0ffd53bf {\n width: 1.25rem;\n}\n.TableFilters_module_root__0ffd53bf[data-elem=base-cell] .TableFilters_module_right__0ffd53bf {\n width: auto;\n padding: 0;\n gap: 2.5rem;\n}\n.TableFilters_module_root__0ffd53bf[data-elem=base-cell] .TableFilters_module_right__0ffd53bf > [data-elem*=component] {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}";
|
|
36302
36297
|
var modules_a0fe63f9 = {"root":"TableFilters_module_root__0ffd53bf","icon":"TableFilters_module_icon__0ffd53bf","icon-button":"TableFilters_module_iconButton__0ffd53bf","left":"TableFilters_module_left__0ffd53bf","center":"TableFilters_module_center__0ffd53bf","right":"TableFilters_module_right__0ffd53bf","filter-value":"TableFilters_module_filterValue__0ffd53bf"};
|
|
36303
|
-
n(css$
|
|
36298
|
+
n(css$a,{});
|
|
36304
36299
|
|
|
36305
36300
|
var TableFilters = function TableFilters(props) {
|
|
36306
36301
|
var className = props.className,
|
|
@@ -36432,9 +36427,9 @@ TableFilters.defaultProps = {
|
|
|
36432
36427
|
}
|
|
36433
36428
|
};
|
|
36434
36429
|
|
|
36435
|
-
var css$
|
|
36430
|
+
var css$9 = ".Table_module_root__d17cb64f {\n position: relative;\n border-style: solid;\n border-color: var(--grey4);\n border-width: 1px 1px 0px 1px;\n border-radius: 0.25rem;\n width: 100%;\n max-width: 100%;\n height: 100%;\n overflow: hidden;\n}\n.Table_module_root__d17cb64f .Table_module_table__d17cb64f {\n height: calc(100% - 6rem);\n padding-bottom: 3.5rem;\n}\n.Table_module_root__d17cb64f .Table_module_pagination__d17cb64f {\n position: absolute;\n bottom: 0;\n left: 50%;\n transform: translateX(-50%);\n}\n.Table_module_root__d17cb64f .Table_module_pagination__d17cb64f.Table_module_floating__d17cb64f {\n bottom: 1rem;\n}\n.Table_module_root__d17cb64f .Table_module_chips__d17cb64f,\n.Table_module_root__d17cb64f .Table_module_filters__d17cb64f,\n.Table_module_root__d17cb64f .Table_module_table__d17cb64f > [data-elem=table-header] {\n position: -webkit-sticky;\n position: sticky;\n z-index: 1;\n top: 0;\n}";
|
|
36436
36431
|
var modules_2e8406c7 = {"root":"Table_module_root__d17cb64f","table":"Table_module_table__d17cb64f","pagination":"Table_module_pagination__d17cb64f","floating":"Table_module_floating__d17cb64f","chips":"Table_module_chips__d17cb64f","filters":"Table_module_filters__d17cb64f"};
|
|
36437
|
-
n(css$
|
|
36432
|
+
n(css$9,{});
|
|
36438
36433
|
|
|
36439
36434
|
var INTERSECTION = 1;
|
|
36440
36435
|
var STEP = 0.1;
|
|
@@ -36591,9 +36586,9 @@ Table.defaultProps = {
|
|
|
36591
36586
|
paginationData: null
|
|
36592
36587
|
};
|
|
36593
36588
|
|
|
36594
|
-
var css$
|
|
36589
|
+
var css$8 = ".Tabs_module_root__df3be7a0 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n}\n\n.Tabs_module_tabView__df3be7a0, .Tabs_module_tabViewSelected__df3be7a0 {\n cursor: pointer;\n margin-right: 0.25rem;\n padding: 0.5rem 0rem 0.5rem 0.5rem;\n text-align: left;\n font-size: 1rem;\n font-weight: 500;\n color: var(--dark-grey);\n}\n.Tabs_module_tabView__df3be7a0 .Tabs_module_content__df3be7a0, .Tabs_module_tabViewSelected__df3be7a0 .Tabs_module_content__df3be7a0 {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n}\n.Tabs_module_tabView__df3be7a0 .Tabs_module_content__df3be7a0 .Tabs_module_left__df3be7a0, .Tabs_module_tabViewSelected__df3be7a0 .Tabs_module_content__df3be7a0 .Tabs_module_left__df3be7a0 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n}\n.Tabs_module_tabView__df3be7a0 .Tabs_module_content__df3be7a0 .Tabs_module_left__df3be7a0 .Tabs_module_iconContainer__df3be7a0, .Tabs_module_tabViewSelected__df3be7a0 .Tabs_module_content__df3be7a0 .Tabs_module_left__df3be7a0 .Tabs_module_iconContainer__df3be7a0 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n}\n.Tabs_module_tabView__df3be7a0 .Tabs_module_content__df3be7a0 .Tabs_module_left__df3be7a0 .Tabs_module_iconContainer__df3be7a0 .Tabs_module_icon__df3be7a0, .Tabs_module_tabViewSelected__df3be7a0 .Tabs_module_content__df3be7a0 .Tabs_module_left__df3be7a0 .Tabs_module_iconContainer__df3be7a0 .Tabs_module_icon__df3be7a0 {\n width: 1.5rem;\n height: 1.5rem;\n fill: var(--dark-grey);\n}\n.Tabs_module_tabView__df3be7a0 .Tabs_module_content__df3be7a0 .Tabs_module_right__df3be7a0, .Tabs_module_tabViewSelected__df3be7a0 .Tabs_module_content__df3be7a0 .Tabs_module_right__df3be7a0 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n}\n.Tabs_module_tabView__df3be7a0 .Tabs_module_content__df3be7a0 .Tabs_module_right__df3be7a0 .Tabs_module_saperator__df3be7a0, .Tabs_module_tabViewSelected__df3be7a0 .Tabs_module_content__df3be7a0 .Tabs_module_right__df3be7a0 .Tabs_module_saperator__df3be7a0 {\n border-right: 0.031rem solid var(--grey3);\n border-radius: 0.625rem;\n height: 1.438rem;\n margin: 0rem 0rem 0rem 1rem;\n}\n.Tabs_module_tabView__df3be7a0 .Tabs_module_content__df3be7a0 .Tabs_module_right__df3be7a0 .Tabs_module_iconContainer__df3be7a0, .Tabs_module_tabViewSelected__df3be7a0 .Tabs_module_content__df3be7a0 .Tabs_module_right__df3be7a0 .Tabs_module_iconContainer__df3be7a0 {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n.Tabs_module_tabView__df3be7a0 .Tabs_module_content__df3be7a0 .Tabs_module_right__df3be7a0 .Tabs_module_iconContainer__df3be7a0 .Tabs_module_icon__df3be7a0, .Tabs_module_tabViewSelected__df3be7a0 .Tabs_module_content__df3be7a0 .Tabs_module_right__df3be7a0 .Tabs_module_iconContainer__df3be7a0 .Tabs_module_icon__df3be7a0 {\n width: 1.5rem;\n height: 1.5rem;\n fill: var(--dark-grey);\n}\n.Tabs_module_tabView__df3be7a0:hover, .Tabs_module_tabViewSelected__df3be7a0:hover {\n background-color: var(--background);\n border-radius: 0.25rem;\n color: var(--highlight);\n}\n.Tabs_module_tabView__df3be7a0:hover .Tabs_module_content__df3be7a0 .Tabs_module_left__df3be7a0 .Tabs_module_iconContainer__df3be7a0 .Tabs_module_icon__df3be7a0, .Tabs_module_tabViewSelected__df3be7a0:hover .Tabs_module_content__df3be7a0 .Tabs_module_left__df3be7a0 .Tabs_module_iconContainer__df3be7a0 .Tabs_module_icon__df3be7a0 {\n width: 1.5rem;\n height: 1.5rem;\n fill: var(--highlight);\n}\n.Tabs_module_tabView__df3be7a0:hover .Tabs_module_content__df3be7a0 .Tabs_module_right__df3be7a0 .Tabs_module_saperator__df3be7a0, .Tabs_module_tabViewSelected__df3be7a0:hover .Tabs_module_content__df3be7a0 .Tabs_module_right__df3be7a0 .Tabs_module_saperator__df3be7a0 {\n border-right: 0.031rem solid var(--highlight);\n border-radius: 0.625rem;\n height: 1.438rem;\n margin: 0rem 0rem 0rem 1rem;\n}\n.Tabs_module_tabView__df3be7a0:hover .Tabs_module_content__df3be7a0 .Tabs_module_right__df3be7a0 .Tabs_module_iconContainer__df3be7a0 .Tabs_module_icon__df3be7a0, .Tabs_module_tabViewSelected__df3be7a0:hover .Tabs_module_content__df3be7a0 .Tabs_module_right__df3be7a0 .Tabs_module_iconContainer__df3be7a0 .Tabs_module_icon__df3be7a0 {\n width: 1.5rem;\n height: 1.5rem;\n fill: var(--highlight);\n}\n\n.Tabs_module_tabViewSelected__df3be7a0 {\n color: var(--highlight);\n border-bottom: 0.125rem solid var(--highlight);\n}\n.Tabs_module_tabViewSelected__df3be7a0 .Tabs_module_content__df3be7a0 .Tabs_module_left__df3be7a0 .Tabs_module_iconContainer__df3be7a0 .Tabs_module_icon__df3be7a0 {\n width: 1.5rem;\n height: 1.5rem;\n fill: var(--highlight);\n}\n.Tabs_module_tabViewSelected__df3be7a0 .Tabs_module_content__df3be7a0 .Tabs_module_right__df3be7a0 .Tabs_module_saperator__df3be7a0 {\n border-right: 0.031rem solid var(--highlight);\n border-radius: 0.625rem;\n height: 1.438rem;\n margin: 0rem 0rem 0rem 1rem;\n}\n.Tabs_module_tabViewSelected__df3be7a0 .Tabs_module_content__df3be7a0 .Tabs_module_right__df3be7a0 .Tabs_module_iconContainer__df3be7a0 .Tabs_module_icon__df3be7a0 {\n width: 1.5rem;\n height: 1.5rem;\n fill: var(--highlight);\n}";
|
|
36595
36590
|
var modules_78ab5066 = {"root":"Tabs_module_root__df3be7a0","tab-view":"Tabs_module_tabView__df3be7a0","tab-view-selected":"Tabs_module_tabViewSelected__df3be7a0","content":"Tabs_module_content__df3be7a0","left":"Tabs_module_left__df3be7a0","icon-container":"Tabs_module_iconContainer__df3be7a0","icon":"Tabs_module_icon__df3be7a0","right":"Tabs_module_right__df3be7a0","saperator":"Tabs_module_saperator__df3be7a0"};
|
|
36596
|
-
n(css$
|
|
36591
|
+
n(css$8,{});
|
|
36597
36592
|
|
|
36598
36593
|
var Tabs = function Tabs(props) {
|
|
36599
36594
|
var tabs = props.tabs,
|
|
@@ -36684,9 +36679,9 @@ Tabs.defaultProps = {
|
|
|
36684
36679
|
setSelectedTab: 'None'
|
|
36685
36680
|
};
|
|
36686
36681
|
|
|
36687
|
-
var css$
|
|
36682
|
+
var css$7 = ".Tooltip_module_root__c909817e {\n display: inline-block;\n position: relative;\n}\n.Tooltip_module_tooltip__c909817e {\n text-align: center;\n position: fixed;\n border-radius: 0.25rem;\n min-width: auto;\n max-width: 12rem;\n padding: 0.375rem;\n font-size: 0.875rem;\n font-family: sans-serif;\n line-height: 1;\n}\n.Tooltip_module_tooltip__c909817e.Tooltip_module_light__c909817e {\n color: var(--black);\n background: var(--grey7);\n border-color: var(--black);\n}\n.Tooltip_module_tooltip__c909817e.Tooltip_module_dark__c909817e {\n color: var(--white);\n background: var(--black);\n border-color: var(--white);\n}\n.Tooltip_module_tooltip__c909817e::before {\n content: \"\";\n border: solid transparent;\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n border-width: 0.375rem;\n}\n.Tooltip_module_tooltip__c909817e.Tooltip_module_top__c909817e::before {\n top: 100%;\n left: 50%;\n transform: translate(-50%, 0%);\n border-top-style: solid;\n}\n.Tooltip_module_tooltip__c909817e.Tooltip_module_top__c909817e.Tooltip_module_light__c909817e::before {\n border-top-color: var(--grey7);\n}\n.Tooltip_module_tooltip__c909817e.Tooltip_module_top__c909817e.Tooltip_module_dark__c909817e::before {\n border-top-color: var(--black);\n}\n.Tooltip_module_tooltip__c909817e.Tooltip_module_bottom__c909817e::before {\n top: 0%;\n left: 50%;\n transform: translate(-50%, -100%);\n border-bottom-style: solid;\n}\n.Tooltip_module_tooltip__c909817e.Tooltip_module_bottom__c909817e.Tooltip_module_light__c909817e::before {\n border-bottom-color: var(--grey7);\n}\n.Tooltip_module_tooltip__c909817e.Tooltip_module_bottom__c909817e.Tooltip_module_dark__c909817e::before {\n border-bottom-color: var(--black);\n}\n.Tooltip_module_tooltip__c909817e.Tooltip_module_left__c909817e::before {\n top: 50%;\n left: 100%;\n transform: translate(0%, -50%);\n border-left-style: solid;\n}\n.Tooltip_module_tooltip__c909817e.Tooltip_module_left__c909817e.Tooltip_module_light__c909817e::before {\n border-left-color: var(--grey7);\n}\n.Tooltip_module_tooltip__c909817e.Tooltip_module_left__c909817e.Tooltip_module_dark__c909817e::before {\n border-left-color: var(--black);\n}\n.Tooltip_module_tooltip__c909817e.Tooltip_module_right__c909817e::before {\n top: 50%;\n left: 0%;\n transform: translate(-100%, -50%);\n border-right-style: solid;\n}\n.Tooltip_module_tooltip__c909817e.Tooltip_module_right__c909817e.Tooltip_module_light__c909817e::before {\n border-right-color: var(--grey7);\n}\n.Tooltip_module_tooltip__c909817e.Tooltip_module_right__c909817e.Tooltip_module_dark__c909817e::before {\n border-right-color: var(--black);\n}";
|
|
36688
36683
|
var modules_e4619b04 = {"root":"Tooltip_module_root__c909817e","tooltip":"Tooltip_module_tooltip__c909817e","light":"Tooltip_module_light__c909817e","dark":"Tooltip_module_dark__c909817e","top":"Tooltip_module_top__c909817e","bottom":"Tooltip_module_bottom__c909817e","left":"Tooltip_module_left__c909817e","right":"Tooltip_module_right__c909817e"};
|
|
36689
|
-
n(css$
|
|
36684
|
+
n(css$7,{});
|
|
36690
36685
|
|
|
36691
36686
|
var getPositionStyles = function getPositionStyles(_ref) {
|
|
36692
36687
|
var _anchor$current$getBo, _anchor$current, _anchor$current$getBo2, _anchor$current$getBo3, _anchor$current$getBo4, _anchor$current2, _anchor$current2$getB, _anchor$current2$getB2, _anchor$current$getBo5, _anchor$current3, _anchor$current3$getB, _anchor$current3$getB2, _anchor$current$getBo6, _anchor$current4, _anchor$current4$getB, _anchor$current4$getB2, _anchor$current$getBo7, _anchor$current5, _anchor$current5$getB, _anchor$current5$getB2, _anchor$current$getBo8, _anchor$current6, _anchor$current6$getB, _anchor$current6$getB2, _anchor$current$getBo9, _anchor$current7, _anchor$current7$getB, _anchor$current7$getB2, _anchor$current$getBo10, _anchor$current8, _anchor$current8$getB, _anchor$current8$getB2, _anchor$current$getBo11, _anchor$current9, _anchor$current9$getB, _anchor$current9$getB2, _anchor$current$getBo12, _anchor$current10, _anchor$current10$get, _anchor$current10$get2, _anchor$current$getBo13, _anchor$current11, _anchor$current11$get, _anchor$current11$get2, _anchor$current$getBo14, _anchor$current12, _anchor$current12$get, _anchor$current12$get2;
|
|
@@ -36780,9 +36775,9 @@ Tooltip.defaultProps = {
|
|
|
36780
36775
|
position: 'top'
|
|
36781
36776
|
};
|
|
36782
36777
|
|
|
36783
|
-
var css$
|
|
36778
|
+
var css$6 = ".BaseSidePanel_module_root__c7817916 {\n max-height: 100%;\n height: 100%;\n display: flex;\n width: 30%;\n flex-direction: column;\n top: 0;\n background: #ffffff;\n box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.12);\n overflow-x: hidden;\n transition: 0.5s;\n}\n.BaseSidePanel_module_root__c7817916.BaseSidePanel_module_close__c7817916 {\n width: 0rem;\n}\n.BaseSidePanel_module_root__c7817916 .BaseSidePanel_module_body__c7817916 {\n flex: 1;\n overflow-y: auto;\n}";
|
|
36784
36779
|
var modules_c7321921 = {"root":"BaseSidePanel_module_root__c7817916","close":"BaseSidePanel_module_close__c7817916","body":"BaseSidePanel_module_body__c7817916"};
|
|
36785
|
-
n(css$
|
|
36780
|
+
n(css$6,{});
|
|
36786
36781
|
|
|
36787
36782
|
var BaseSidePanel = function BaseSidePanel(props) {
|
|
36788
36783
|
var className = props.className,
|
|
@@ -47406,7 +47401,7 @@ var mathMin$4 = Math.min;
|
|
|
47406
47401
|
var mathMax$4 = Math.max;
|
|
47407
47402
|
var mathSin$3 = Math.sin;
|
|
47408
47403
|
var mathCos$3 = Math.cos;
|
|
47409
|
-
var PI2$
|
|
47404
|
+
var PI2$6 = Math.PI * 2;
|
|
47410
47405
|
var start = create$1();
|
|
47411
47406
|
var end = create$1();
|
|
47412
47407
|
var extremity = create$1();
|
|
@@ -47462,7 +47457,7 @@ function fromArc(x, y, rx, ry, startAngle, endAngle, anticlockwise, min, max) {
|
|
|
47462
47457
|
var vec2Min = min$1;
|
|
47463
47458
|
var vec2Max = max$1;
|
|
47464
47459
|
var diff = Math.abs(startAngle - endAngle);
|
|
47465
|
-
if (diff % PI2$
|
|
47460
|
+
if (diff % PI2$6 < 1e-4 && diff > 1e-4) {
|
|
47466
47461
|
min[0] = x - rx;
|
|
47467
47462
|
min[1] = y - ry;
|
|
47468
47463
|
max[0] = x + rx;
|
|
@@ -47475,19 +47470,19 @@ function fromArc(x, y, rx, ry, startAngle, endAngle, anticlockwise, min, max) {
|
|
|
47475
47470
|
end[1] = mathSin$3(endAngle) * ry + y;
|
|
47476
47471
|
vec2Min(min, start, end);
|
|
47477
47472
|
vec2Max(max, start, end);
|
|
47478
|
-
startAngle = startAngle % (PI2$
|
|
47473
|
+
startAngle = startAngle % (PI2$6);
|
|
47479
47474
|
if (startAngle < 0) {
|
|
47480
|
-
startAngle = startAngle + PI2$
|
|
47475
|
+
startAngle = startAngle + PI2$6;
|
|
47481
47476
|
}
|
|
47482
|
-
endAngle = endAngle % (PI2$
|
|
47477
|
+
endAngle = endAngle % (PI2$6);
|
|
47483
47478
|
if (endAngle < 0) {
|
|
47484
|
-
endAngle = endAngle + PI2$
|
|
47479
|
+
endAngle = endAngle + PI2$6;
|
|
47485
47480
|
}
|
|
47486
47481
|
if (startAngle > endAngle && !anticlockwise) {
|
|
47487
|
-
endAngle += PI2$
|
|
47482
|
+
endAngle += PI2$6;
|
|
47488
47483
|
}
|
|
47489
47484
|
else if (startAngle < endAngle && anticlockwise) {
|
|
47490
|
-
startAngle += PI2$
|
|
47485
|
+
startAngle += PI2$6;
|
|
47491
47486
|
}
|
|
47492
47487
|
if (anticlockwise) {
|
|
47493
47488
|
var tmp = endAngle;
|
|
@@ -47525,7 +47520,7 @@ var mathCos$2 = Math.cos;
|
|
|
47525
47520
|
var mathSin$2 = Math.sin;
|
|
47526
47521
|
var mathAbs$1 = Math.abs;
|
|
47527
47522
|
var PI$4 = Math.PI;
|
|
47528
|
-
var PI2$
|
|
47523
|
+
var PI2$5 = PI$4 * 2;
|
|
47529
47524
|
var hasTypedArray = typeof Float32Array !== 'undefined';
|
|
47530
47525
|
var tmpAngles = [];
|
|
47531
47526
|
function modPI2(radian) {
|
|
@@ -47535,22 +47530,22 @@ function modPI2(radian) {
|
|
|
47535
47530
|
function normalizeArcAngles(angles, anticlockwise) {
|
|
47536
47531
|
var newStartAngle = modPI2(angles[0]);
|
|
47537
47532
|
if (newStartAngle < 0) {
|
|
47538
|
-
newStartAngle += PI2$
|
|
47533
|
+
newStartAngle += PI2$5;
|
|
47539
47534
|
}
|
|
47540
47535
|
var delta = newStartAngle - angles[0];
|
|
47541
47536
|
var newEndAngle = angles[1];
|
|
47542
47537
|
newEndAngle += delta;
|
|
47543
|
-
if (!anticlockwise && newEndAngle - newStartAngle >= PI2$
|
|
47544
|
-
newEndAngle = newStartAngle + PI2$
|
|
47538
|
+
if (!anticlockwise && newEndAngle - newStartAngle >= PI2$5) {
|
|
47539
|
+
newEndAngle = newStartAngle + PI2$5;
|
|
47545
47540
|
}
|
|
47546
|
-
else if (anticlockwise && newStartAngle - newEndAngle >= PI2$
|
|
47547
|
-
newEndAngle = newStartAngle - PI2$
|
|
47541
|
+
else if (anticlockwise && newStartAngle - newEndAngle >= PI2$5) {
|
|
47542
|
+
newEndAngle = newStartAngle - PI2$5;
|
|
47548
47543
|
}
|
|
47549
47544
|
else if (!anticlockwise && newStartAngle > newEndAngle) {
|
|
47550
|
-
newEndAngle = newStartAngle + (PI2$
|
|
47545
|
+
newEndAngle = newStartAngle + (PI2$5 - modPI2(newStartAngle - newEndAngle));
|
|
47551
47546
|
}
|
|
47552
47547
|
else if (anticlockwise && newStartAngle < newEndAngle) {
|
|
47553
|
-
newEndAngle = newStartAngle - (PI2$
|
|
47548
|
+
newEndAngle = newStartAngle - (PI2$5 - modPI2(newEndAngle - newStartAngle));
|
|
47554
47549
|
}
|
|
47555
47550
|
angles[0] = newStartAngle;
|
|
47556
47551
|
angles[1] = newEndAngle;
|
|
@@ -47940,7 +47935,7 @@ var PathProxy = (function () {
|
|
|
47940
47935
|
x0 = mathCos$2(startAngle) * rx + cx;
|
|
47941
47936
|
y0 = mathSin$2(startAngle) * ry + cy;
|
|
47942
47937
|
}
|
|
47943
|
-
l = mathMax$3(rx, ry) * mathMin$3(PI2$
|
|
47938
|
+
l = mathMax$3(rx, ry) * mathMin$3(PI2$5, Math.abs(delta));
|
|
47944
47939
|
xi = mathCos$2(endAngle) * rx + cx;
|
|
47945
47940
|
yi = mathSin$2(endAngle) * ry + cy;
|
|
47946
47941
|
break;
|
|
@@ -48253,16 +48248,16 @@ function containStroke$2(x0, y0, x1, y1, x2, y2, lineWidth, x, y) {
|
|
|
48253
48248
|
return d <= _l / 2;
|
|
48254
48249
|
}
|
|
48255
48250
|
|
|
48256
|
-
var PI2$
|
|
48251
|
+
var PI2$4 = Math.PI * 2;
|
|
48257
48252
|
function normalizeRadian(angle) {
|
|
48258
|
-
angle %= PI2$
|
|
48253
|
+
angle %= PI2$4;
|
|
48259
48254
|
if (angle < 0) {
|
|
48260
|
-
angle += PI2$
|
|
48255
|
+
angle += PI2$4;
|
|
48261
48256
|
}
|
|
48262
48257
|
return angle;
|
|
48263
48258
|
}
|
|
48264
48259
|
|
|
48265
|
-
var PI2$
|
|
48260
|
+
var PI2$3 = Math.PI * 2;
|
|
48266
48261
|
function containStroke$1(cx, cy, r, startAngle, endAngle, anticlockwise, lineWidth, x, y) {
|
|
48267
48262
|
if (lineWidth === 0) {
|
|
48268
48263
|
return false;
|
|
@@ -48274,7 +48269,7 @@ function containStroke$1(cx, cy, r, startAngle, endAngle, anticlockwise, lineWid
|
|
|
48274
48269
|
if ((d - _l > r) || (d + _l < r)) {
|
|
48275
48270
|
return false;
|
|
48276
48271
|
}
|
|
48277
|
-
if (Math.abs(startAngle - endAngle) % PI2$
|
|
48272
|
+
if (Math.abs(startAngle - endAngle) % PI2$3 < 1e-4) {
|
|
48278
48273
|
return true;
|
|
48279
48274
|
}
|
|
48280
48275
|
if (anticlockwise) {
|
|
@@ -48287,14 +48282,14 @@ function containStroke$1(cx, cy, r, startAngle, endAngle, anticlockwise, lineWid
|
|
|
48287
48282
|
endAngle = normalizeRadian(endAngle);
|
|
48288
48283
|
}
|
|
48289
48284
|
if (startAngle > endAngle) {
|
|
48290
|
-
endAngle += PI2$
|
|
48285
|
+
endAngle += PI2$3;
|
|
48291
48286
|
}
|
|
48292
48287
|
var angle = Math.atan2(y, x);
|
|
48293
48288
|
if (angle < 0) {
|
|
48294
|
-
angle += PI2$
|
|
48289
|
+
angle += PI2$3;
|
|
48295
48290
|
}
|
|
48296
48291
|
return (angle >= startAngle && angle <= endAngle)
|
|
48297
|
-
|| (angle + PI2$
|
|
48292
|
+
|| (angle + PI2$3 >= startAngle && angle + PI2$3 <= endAngle);
|
|
48298
48293
|
}
|
|
48299
48294
|
|
|
48300
48295
|
function windingLine(x0, y0, x1, y1, x, y) {
|
|
@@ -48314,7 +48309,7 @@ function windingLine(x0, y0, x1, y1, x, y) {
|
|
|
48314
48309
|
}
|
|
48315
48310
|
|
|
48316
48311
|
var CMD$1 = PathProxy$1.CMD;
|
|
48317
|
-
var PI2$
|
|
48312
|
+
var PI2$2 = Math.PI * 2;
|
|
48318
48313
|
var EPSILON$1 = 1e-4;
|
|
48319
48314
|
function isAroundEqual$1(a, b) {
|
|
48320
48315
|
return Math.abs(a - b) < EPSILON$1;
|
|
@@ -48431,9 +48426,9 @@ function windingArc(cx, cy, r, startAngle, endAngle, anticlockwise, x, y) {
|
|
|
48431
48426
|
if (dTheta < 1e-4) {
|
|
48432
48427
|
return 0;
|
|
48433
48428
|
}
|
|
48434
|
-
if (dTheta >= PI2$
|
|
48429
|
+
if (dTheta >= PI2$2 - 1e-4) {
|
|
48435
48430
|
startAngle = 0;
|
|
48436
|
-
endAngle = PI2$
|
|
48431
|
+
endAngle = PI2$2;
|
|
48437
48432
|
var dir = anticlockwise ? 1 : -1;
|
|
48438
48433
|
if (x >= roots[0] + cx && x <= roots[1] + cx) {
|
|
48439
48434
|
return dir;
|
|
@@ -48448,8 +48443,8 @@ function windingArc(cx, cy, r, startAngle, endAngle, anticlockwise, x, y) {
|
|
|
48448
48443
|
endAngle = tmp_1;
|
|
48449
48444
|
}
|
|
48450
48445
|
if (startAngle < 0) {
|
|
48451
|
-
startAngle += PI2$
|
|
48452
|
-
endAngle += PI2$
|
|
48446
|
+
startAngle += PI2$2;
|
|
48447
|
+
endAngle += PI2$2;
|
|
48453
48448
|
}
|
|
48454
48449
|
var w = 0;
|
|
48455
48450
|
for (var i = 0; i < 2; i++) {
|
|
@@ -48458,10 +48453,10 @@ function windingArc(cx, cy, r, startAngle, endAngle, anticlockwise, x, y) {
|
|
|
48458
48453
|
var angle = Math.atan2(y, x_);
|
|
48459
48454
|
var dir = anticlockwise ? 1 : -1;
|
|
48460
48455
|
if (angle < 0) {
|
|
48461
|
-
angle = PI2$
|
|
48456
|
+
angle = PI2$2 + angle;
|
|
48462
48457
|
}
|
|
48463
48458
|
if ((angle >= startAngle && angle <= endAngle)
|
|
48464
|
-
|| (angle + PI2$
|
|
48459
|
+
|| (angle + PI2$2 >= startAngle && angle + PI2$2 <= endAngle)) {
|
|
48465
48460
|
if (angle > Math.PI / 2 && angle < Math.PI * 1.5) {
|
|
48466
48461
|
dir = -dir;
|
|
48467
48462
|
}
|
|
@@ -51084,7 +51079,7 @@ Ellipse.prototype.type = 'ellipse';
|
|
|
51084
51079
|
var Ellipse$1 = Ellipse;
|
|
51085
51080
|
|
|
51086
51081
|
var PI$2 = Math.PI;
|
|
51087
|
-
var PI2 = PI$2 * 2;
|
|
51082
|
+
var PI2$1 = PI$2 * 2;
|
|
51088
51083
|
var mathSin = Math.sin;
|
|
51089
51084
|
var mathCos = Math.cos;
|
|
51090
51085
|
var mathACos = Math.acos;
|
|
@@ -51195,12 +51190,12 @@ function buildPath$1(ctx, shape) {
|
|
|
51195
51190
|
var cx = shape.cx, cy = shape.cy;
|
|
51196
51191
|
var clockwise = !!shape.clockwise;
|
|
51197
51192
|
var arc = mathAbs(endAngle - startAngle);
|
|
51198
|
-
var mod = arc > PI2 && arc % PI2;
|
|
51193
|
+
var mod = arc > PI2$1 && arc % PI2$1;
|
|
51199
51194
|
mod > e && (arc = mod);
|
|
51200
51195
|
if (!(radius > e)) {
|
|
51201
51196
|
ctx.moveTo(cx, cy);
|
|
51202
51197
|
}
|
|
51203
|
-
else if (arc > PI2 - e) {
|
|
51198
|
+
else if (arc > PI2$1 - e) {
|
|
51204
51199
|
ctx.moveTo(cx + radius * mathCos(startAngle), cy + radius * mathSin(startAngle));
|
|
51205
51200
|
ctx.arc(cx, cy, radius, startAngle, endAngle, !clockwise);
|
|
51206
51201
|
if (innerRadius > e) {
|
|
@@ -55307,6 +55302,92 @@ function makeSeriesEncodeForAxisCoordSys(coordDimensions, seriesModel, source) {
|
|
|
55307
55302
|
encodeSeriesName.length && (encode.seriesName = encodeSeriesName);
|
|
55308
55303
|
return encode;
|
|
55309
55304
|
}
|
|
55305
|
+
/**
|
|
55306
|
+
* Work for data like [{name: ..., value: ...}, ...].
|
|
55307
|
+
*
|
|
55308
|
+
* @return encode Never be `null/undefined`.
|
|
55309
|
+
*/
|
|
55310
|
+
|
|
55311
|
+
function makeSeriesEncodeForNameBased(seriesModel, source, dimCount) {
|
|
55312
|
+
var encode = {};
|
|
55313
|
+
var datasetModel = querySeriesUpstreamDatasetModel(seriesModel); // Currently only make default when using dataset, util more reqirements occur.
|
|
55314
|
+
|
|
55315
|
+
if (!datasetModel) {
|
|
55316
|
+
return encode;
|
|
55317
|
+
}
|
|
55318
|
+
|
|
55319
|
+
var sourceFormat = source.sourceFormat;
|
|
55320
|
+
var dimensionsDefine = source.dimensionsDefine;
|
|
55321
|
+
var potentialNameDimIndex;
|
|
55322
|
+
|
|
55323
|
+
if (sourceFormat === SOURCE_FORMAT_OBJECT_ROWS || sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS) {
|
|
55324
|
+
each$3(dimensionsDefine, function (dim, idx) {
|
|
55325
|
+
if ((isObject$2(dim) ? dim.name : dim) === 'name') {
|
|
55326
|
+
potentialNameDimIndex = idx;
|
|
55327
|
+
}
|
|
55328
|
+
});
|
|
55329
|
+
}
|
|
55330
|
+
|
|
55331
|
+
var idxResult = function () {
|
|
55332
|
+
var idxRes0 = {};
|
|
55333
|
+
var idxRes1 = {};
|
|
55334
|
+
var guessRecords = []; // 5 is an experience value.
|
|
55335
|
+
|
|
55336
|
+
for (var i = 0, len = Math.min(5, dimCount); i < len; i++) {
|
|
55337
|
+
var guessResult = doGuessOrdinal(source.data, sourceFormat, source.seriesLayoutBy, dimensionsDefine, source.startIndex, i);
|
|
55338
|
+
guessRecords.push(guessResult);
|
|
55339
|
+
var isPureNumber = guessResult === BE_ORDINAL.Not; // [Strategy of idxRes0]: find the first BE_ORDINAL.Not as the value dim,
|
|
55340
|
+
// and then find a name dim with the priority:
|
|
55341
|
+
// "BE_ORDINAL.Might|BE_ORDINAL.Must" > "other dim" > "the value dim itself".
|
|
55342
|
+
|
|
55343
|
+
if (isPureNumber && idxRes0.v == null && i !== potentialNameDimIndex) {
|
|
55344
|
+
idxRes0.v = i;
|
|
55345
|
+
}
|
|
55346
|
+
|
|
55347
|
+
if (idxRes0.n == null || idxRes0.n === idxRes0.v || !isPureNumber && guessRecords[idxRes0.n] === BE_ORDINAL.Not) {
|
|
55348
|
+
idxRes0.n = i;
|
|
55349
|
+
}
|
|
55350
|
+
|
|
55351
|
+
if (fulfilled(idxRes0) && guessRecords[idxRes0.n] !== BE_ORDINAL.Not) {
|
|
55352
|
+
return idxRes0;
|
|
55353
|
+
} // [Strategy of idxRes1]: if idxRes0 not satisfied (that is, no BE_ORDINAL.Not),
|
|
55354
|
+
// find the first BE_ORDINAL.Might as the value dim,
|
|
55355
|
+
// and then find a name dim with the priority:
|
|
55356
|
+
// "other dim" > "the value dim itself".
|
|
55357
|
+
// That is for backward compat: number-like (e.g., `'3'`, `'55'`) can be
|
|
55358
|
+
// treated as number.
|
|
55359
|
+
|
|
55360
|
+
|
|
55361
|
+
if (!isPureNumber) {
|
|
55362
|
+
if (guessResult === BE_ORDINAL.Might && idxRes1.v == null && i !== potentialNameDimIndex) {
|
|
55363
|
+
idxRes1.v = i;
|
|
55364
|
+
}
|
|
55365
|
+
|
|
55366
|
+
if (idxRes1.n == null || idxRes1.n === idxRes1.v) {
|
|
55367
|
+
idxRes1.n = i;
|
|
55368
|
+
}
|
|
55369
|
+
}
|
|
55370
|
+
}
|
|
55371
|
+
|
|
55372
|
+
function fulfilled(idxResult) {
|
|
55373
|
+
return idxResult.v != null && idxResult.n != null;
|
|
55374
|
+
}
|
|
55375
|
+
|
|
55376
|
+
return fulfilled(idxRes0) ? idxRes0 : fulfilled(idxRes1) ? idxRes1 : null;
|
|
55377
|
+
}();
|
|
55378
|
+
|
|
55379
|
+
if (idxResult) {
|
|
55380
|
+
encode.value = [idxResult.v]; // `potentialNameDimIndex` has highest priority.
|
|
55381
|
+
|
|
55382
|
+
var nameDimIndex = potentialNameDimIndex != null ? potentialNameDimIndex : idxResult.n; // By default, label use itemName in charts.
|
|
55383
|
+
// So we dont set encodeLabel here.
|
|
55384
|
+
|
|
55385
|
+
encode.itemName = [nameDimIndex];
|
|
55386
|
+
encode.seriesName = [nameDimIndex];
|
|
55387
|
+
}
|
|
55388
|
+
|
|
55389
|
+
return encode;
|
|
55390
|
+
}
|
|
55310
55391
|
/**
|
|
55311
55392
|
* @return If return null/undefined, indicate that should not use datasetModel.
|
|
55312
55393
|
*/
|
|
@@ -63689,6 +63770,37 @@ function getVisualFromData(data, key) {
|
|
|
63689
63770
|
}
|
|
63690
63771
|
}
|
|
63691
63772
|
|
|
63773
|
+
// Inlucdes: pieSelect, pieUnSelect, pieToggleSelect, mapSelect, mapUnSelect, mapToggleSelect
|
|
63774
|
+
|
|
63775
|
+
function createLegacyDataSelectAction(seriesType, ecRegisterAction) {
|
|
63776
|
+
function getSeriesIndices(ecModel, payload) {
|
|
63777
|
+
var seriesIndices = [];
|
|
63778
|
+
ecModel.eachComponent({
|
|
63779
|
+
mainType: 'series',
|
|
63780
|
+
subType: seriesType,
|
|
63781
|
+
query: payload
|
|
63782
|
+
}, function (seriesModel) {
|
|
63783
|
+
seriesIndices.push(seriesModel.seriesIndex);
|
|
63784
|
+
});
|
|
63785
|
+
return seriesIndices;
|
|
63786
|
+
}
|
|
63787
|
+
|
|
63788
|
+
each$3([[seriesType + 'ToggleSelect', 'toggleSelect'], [seriesType + 'Select', 'select'], [seriesType + 'UnSelect', 'unselect']], function (eventsMap) {
|
|
63789
|
+
ecRegisterAction(eventsMap[0], function (payload, ecModel, api) {
|
|
63790
|
+
payload = extend({}, payload);
|
|
63791
|
+
|
|
63792
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
63793
|
+
deprecateReplaceLog(payload.type, eventsMap[1]);
|
|
63794
|
+
}
|
|
63795
|
+
|
|
63796
|
+
api.dispatchAction(extend(payload, {
|
|
63797
|
+
type: eventsMap[1],
|
|
63798
|
+
seriesIndex: getSeriesIndices(ecModel, payload)
|
|
63799
|
+
}));
|
|
63800
|
+
});
|
|
63801
|
+
});
|
|
63802
|
+
}
|
|
63803
|
+
|
|
63692
63804
|
function handleSeriesLegacySelectEvents(type, eventPostfix, ecIns, ecModel, payload) {
|
|
63693
63805
|
var legacyEventName = type + eventPostfix;
|
|
63694
63806
|
|
|
@@ -74133,6 +74245,297 @@ function extendChartView(proto) {
|
|
|
74133
74245
|
return View;
|
|
74134
74246
|
}
|
|
74135
74247
|
|
|
74248
|
+
PathProxy$1.CMD;
|
|
74249
|
+
|
|
74250
|
+
function projectPointToLine(x1, y1, x2, y2, x, y, out, limitToEnds) {
|
|
74251
|
+
var dx = x - x1;
|
|
74252
|
+
var dy = y - y1;
|
|
74253
|
+
var dx1 = x2 - x1;
|
|
74254
|
+
var dy1 = y2 - y1;
|
|
74255
|
+
var lineLen = Math.sqrt(dx1 * dx1 + dy1 * dy1);
|
|
74256
|
+
dx1 /= lineLen;
|
|
74257
|
+
dy1 /= lineLen; // dot product
|
|
74258
|
+
|
|
74259
|
+
var projectedLen = dx * dx1 + dy * dy1;
|
|
74260
|
+
var t = projectedLen / lineLen;
|
|
74261
|
+
|
|
74262
|
+
if (limitToEnds) {
|
|
74263
|
+
t = Math.min(Math.max(t, 0), 1);
|
|
74264
|
+
}
|
|
74265
|
+
|
|
74266
|
+
t *= lineLen;
|
|
74267
|
+
var ox = out[0] = x1 + t * dx1;
|
|
74268
|
+
var oy = out[1] = y1 + t * dy1;
|
|
74269
|
+
return Math.sqrt((ox - x) * (ox - x) + (oy - y) * (oy - y));
|
|
74270
|
+
}
|
|
74271
|
+
|
|
74272
|
+
|
|
74273
|
+
var pt0 = new Point$1();
|
|
74274
|
+
var pt1 = new Point$1();
|
|
74275
|
+
var pt2 = new Point$1();
|
|
74276
|
+
var dir = new Point$1();
|
|
74277
|
+
var dir2 = new Point$1();
|
|
74278
|
+
|
|
74279
|
+
var tmpArr = [];
|
|
74280
|
+
var tmpProjPoint = new Point$1();
|
|
74281
|
+
/**
|
|
74282
|
+
* Reduce the line segment attached to the label to limit the turn angle between two segments.
|
|
74283
|
+
* @param linePoints
|
|
74284
|
+
* @param minTurnAngle Radian of minimum turn angle. 0 - 180
|
|
74285
|
+
*/
|
|
74286
|
+
|
|
74287
|
+
function limitTurnAngle(linePoints, minTurnAngle) {
|
|
74288
|
+
if (!(minTurnAngle <= 180 && minTurnAngle > 0)) {
|
|
74289
|
+
return;
|
|
74290
|
+
}
|
|
74291
|
+
|
|
74292
|
+
minTurnAngle = minTurnAngle / 180 * Math.PI; // The line points can be
|
|
74293
|
+
// /pt1----pt2 (label)
|
|
74294
|
+
// /
|
|
74295
|
+
// pt0/
|
|
74296
|
+
|
|
74297
|
+
pt0.fromArray(linePoints[0]);
|
|
74298
|
+
pt1.fromArray(linePoints[1]);
|
|
74299
|
+
pt2.fromArray(linePoints[2]);
|
|
74300
|
+
Point$1.sub(dir, pt0, pt1);
|
|
74301
|
+
Point$1.sub(dir2, pt2, pt1);
|
|
74302
|
+
var len1 = dir.len();
|
|
74303
|
+
var len2 = dir2.len();
|
|
74304
|
+
|
|
74305
|
+
if (len1 < 1e-3 || len2 < 1e-3) {
|
|
74306
|
+
return;
|
|
74307
|
+
}
|
|
74308
|
+
|
|
74309
|
+
dir.scale(1 / len1);
|
|
74310
|
+
dir2.scale(1 / len2);
|
|
74311
|
+
var angleCos = dir.dot(dir2);
|
|
74312
|
+
var minTurnAngleCos = Math.cos(minTurnAngle);
|
|
74313
|
+
|
|
74314
|
+
if (minTurnAngleCos < angleCos) {
|
|
74315
|
+
// Smaller than minTurnAngle
|
|
74316
|
+
// Calculate project point of pt0 on pt1-pt2
|
|
74317
|
+
var d = projectPointToLine(pt1.x, pt1.y, pt2.x, pt2.y, pt0.x, pt0.y, tmpArr, false);
|
|
74318
|
+
tmpProjPoint.fromArray(tmpArr); // Calculate new projected length with limited minTurnAngle and get the new connect point
|
|
74319
|
+
|
|
74320
|
+
tmpProjPoint.scaleAndAdd(dir2, d / Math.tan(Math.PI - minTurnAngle)); // Limit the new calculated connect point between pt1 and pt2.
|
|
74321
|
+
|
|
74322
|
+
var t = pt2.x !== pt1.x ? (tmpProjPoint.x - pt1.x) / (pt2.x - pt1.x) : (tmpProjPoint.y - pt1.y) / (pt2.y - pt1.y);
|
|
74323
|
+
|
|
74324
|
+
if (isNaN(t)) {
|
|
74325
|
+
return;
|
|
74326
|
+
}
|
|
74327
|
+
|
|
74328
|
+
if (t < 0) {
|
|
74329
|
+
Point$1.copy(tmpProjPoint, pt1);
|
|
74330
|
+
} else if (t > 1) {
|
|
74331
|
+
Point$1.copy(tmpProjPoint, pt2);
|
|
74332
|
+
}
|
|
74333
|
+
|
|
74334
|
+
tmpProjPoint.toArray(linePoints[1]);
|
|
74335
|
+
}
|
|
74336
|
+
}
|
|
74337
|
+
/**
|
|
74338
|
+
* Limit the angle of line and the surface
|
|
74339
|
+
* @param maxSurfaceAngle Radian of minimum turn angle. 0 - 180. 0 is same direction to normal. 180 is opposite
|
|
74340
|
+
*/
|
|
74341
|
+
|
|
74342
|
+
function limitSurfaceAngle(linePoints, surfaceNormal, maxSurfaceAngle) {
|
|
74343
|
+
if (!(maxSurfaceAngle <= 180 && maxSurfaceAngle > 0)) {
|
|
74344
|
+
return;
|
|
74345
|
+
}
|
|
74346
|
+
|
|
74347
|
+
maxSurfaceAngle = maxSurfaceAngle / 180 * Math.PI;
|
|
74348
|
+
pt0.fromArray(linePoints[0]);
|
|
74349
|
+
pt1.fromArray(linePoints[1]);
|
|
74350
|
+
pt2.fromArray(linePoints[2]);
|
|
74351
|
+
Point$1.sub(dir, pt1, pt0);
|
|
74352
|
+
Point$1.sub(dir2, pt2, pt1);
|
|
74353
|
+
var len1 = dir.len();
|
|
74354
|
+
var len2 = dir2.len();
|
|
74355
|
+
|
|
74356
|
+
if (len1 < 1e-3 || len2 < 1e-3) {
|
|
74357
|
+
return;
|
|
74358
|
+
}
|
|
74359
|
+
|
|
74360
|
+
dir.scale(1 / len1);
|
|
74361
|
+
dir2.scale(1 / len2);
|
|
74362
|
+
var angleCos = dir.dot(surfaceNormal);
|
|
74363
|
+
var maxSurfaceAngleCos = Math.cos(maxSurfaceAngle);
|
|
74364
|
+
|
|
74365
|
+
if (angleCos < maxSurfaceAngleCos) {
|
|
74366
|
+
// Calculate project point of pt0 on pt1-pt2
|
|
74367
|
+
var d = projectPointToLine(pt1.x, pt1.y, pt2.x, pt2.y, pt0.x, pt0.y, tmpArr, false);
|
|
74368
|
+
tmpProjPoint.fromArray(tmpArr);
|
|
74369
|
+
var HALF_PI = Math.PI / 2;
|
|
74370
|
+
var angle2 = Math.acos(dir2.dot(surfaceNormal));
|
|
74371
|
+
var newAngle = HALF_PI + angle2 - maxSurfaceAngle;
|
|
74372
|
+
|
|
74373
|
+
if (newAngle >= HALF_PI) {
|
|
74374
|
+
// parallel
|
|
74375
|
+
Point$1.copy(tmpProjPoint, pt2);
|
|
74376
|
+
} else {
|
|
74377
|
+
// Calculate new projected length with limited minTurnAngle and get the new connect point
|
|
74378
|
+
tmpProjPoint.scaleAndAdd(dir2, d / Math.tan(Math.PI / 2 - newAngle)); // Limit the new calculated connect point between pt1 and pt2.
|
|
74379
|
+
|
|
74380
|
+
var t = pt2.x !== pt1.x ? (tmpProjPoint.x - pt1.x) / (pt2.x - pt1.x) : (tmpProjPoint.y - pt1.y) / (pt2.y - pt1.y);
|
|
74381
|
+
|
|
74382
|
+
if (isNaN(t)) {
|
|
74383
|
+
return;
|
|
74384
|
+
}
|
|
74385
|
+
|
|
74386
|
+
if (t < 0) {
|
|
74387
|
+
Point$1.copy(tmpProjPoint, pt1);
|
|
74388
|
+
} else if (t > 1) {
|
|
74389
|
+
Point$1.copy(tmpProjPoint, pt2);
|
|
74390
|
+
}
|
|
74391
|
+
}
|
|
74392
|
+
|
|
74393
|
+
tmpProjPoint.toArray(linePoints[1]);
|
|
74394
|
+
}
|
|
74395
|
+
}
|
|
74396
|
+
|
|
74397
|
+
function setLabelLineState(labelLine, ignore, stateName, stateModel) {
|
|
74398
|
+
var isNormal = stateName === 'normal';
|
|
74399
|
+
var stateObj = isNormal ? labelLine : labelLine.ensureState(stateName); // Make sure display.
|
|
74400
|
+
|
|
74401
|
+
stateObj.ignore = ignore; // Set smooth
|
|
74402
|
+
|
|
74403
|
+
var smooth = stateModel.get('smooth');
|
|
74404
|
+
|
|
74405
|
+
if (smooth && smooth === true) {
|
|
74406
|
+
smooth = 0.3;
|
|
74407
|
+
}
|
|
74408
|
+
|
|
74409
|
+
stateObj.shape = stateObj.shape || {};
|
|
74410
|
+
|
|
74411
|
+
if (smooth > 0) {
|
|
74412
|
+
stateObj.shape.smooth = smooth;
|
|
74413
|
+
}
|
|
74414
|
+
|
|
74415
|
+
var styleObj = stateModel.getModel('lineStyle').getLineStyle();
|
|
74416
|
+
isNormal ? labelLine.useStyle(styleObj) : stateObj.style = styleObj;
|
|
74417
|
+
}
|
|
74418
|
+
|
|
74419
|
+
function buildLabelLinePath(path, shape) {
|
|
74420
|
+
var smooth = shape.smooth;
|
|
74421
|
+
var points = shape.points;
|
|
74422
|
+
|
|
74423
|
+
if (!points) {
|
|
74424
|
+
return;
|
|
74425
|
+
}
|
|
74426
|
+
|
|
74427
|
+
path.moveTo(points[0][0], points[0][1]);
|
|
74428
|
+
|
|
74429
|
+
if (smooth > 0 && points.length >= 3) {
|
|
74430
|
+
var len1 = dist$1(points[0], points[1]);
|
|
74431
|
+
var len2 = dist$1(points[1], points[2]);
|
|
74432
|
+
|
|
74433
|
+
if (!len1 || !len2) {
|
|
74434
|
+
path.lineTo(points[1][0], points[1][1]);
|
|
74435
|
+
path.lineTo(points[2][0], points[2][1]);
|
|
74436
|
+
return;
|
|
74437
|
+
}
|
|
74438
|
+
|
|
74439
|
+
var moveLen = Math.min(len1, len2) * smooth;
|
|
74440
|
+
var midPoint0 = lerp$1([], points[1], points[0], moveLen / len1);
|
|
74441
|
+
var midPoint2 = lerp$1([], points[1], points[2], moveLen / len2);
|
|
74442
|
+
var midPoint1 = lerp$1([], midPoint0, midPoint2, 0.5);
|
|
74443
|
+
path.bezierCurveTo(midPoint0[0], midPoint0[1], midPoint0[0], midPoint0[1], midPoint1[0], midPoint1[1]);
|
|
74444
|
+
path.bezierCurveTo(midPoint2[0], midPoint2[1], midPoint2[0], midPoint2[1], points[2][0], points[2][1]);
|
|
74445
|
+
} else {
|
|
74446
|
+
for (var i = 1; i < points.length; i++) {
|
|
74447
|
+
path.lineTo(points[i][0], points[i][1]);
|
|
74448
|
+
}
|
|
74449
|
+
}
|
|
74450
|
+
}
|
|
74451
|
+
/**
|
|
74452
|
+
* Create a label line if necessary and set it's style.
|
|
74453
|
+
*/
|
|
74454
|
+
|
|
74455
|
+
|
|
74456
|
+
function setLabelLineStyle(targetEl, statesModels, defaultStyle) {
|
|
74457
|
+
var labelLine = targetEl.getTextGuideLine();
|
|
74458
|
+
var label = targetEl.getTextContent();
|
|
74459
|
+
|
|
74460
|
+
if (!label) {
|
|
74461
|
+
// Not show label line if there is no label.
|
|
74462
|
+
if (labelLine) {
|
|
74463
|
+
targetEl.removeTextGuideLine();
|
|
74464
|
+
}
|
|
74465
|
+
|
|
74466
|
+
return;
|
|
74467
|
+
}
|
|
74468
|
+
|
|
74469
|
+
var normalModel = statesModels.normal;
|
|
74470
|
+
var showNormal = normalModel.get('show');
|
|
74471
|
+
var labelIgnoreNormal = label.ignore;
|
|
74472
|
+
|
|
74473
|
+
for (var i = 0; i < DISPLAY_STATES.length; i++) {
|
|
74474
|
+
var stateName = DISPLAY_STATES[i];
|
|
74475
|
+
var stateModel = statesModels[stateName];
|
|
74476
|
+
var isNormal = stateName === 'normal';
|
|
74477
|
+
|
|
74478
|
+
if (stateModel) {
|
|
74479
|
+
var stateShow = stateModel.get('show');
|
|
74480
|
+
var isLabelIgnored = isNormal ? labelIgnoreNormal : retrieve2(label.states[stateName] && label.states[stateName].ignore, labelIgnoreNormal);
|
|
74481
|
+
|
|
74482
|
+
if (isLabelIgnored // Not show when label is not shown in this state.
|
|
74483
|
+
|| !retrieve2(stateShow, showNormal) // Use normal state by default if not set.
|
|
74484
|
+
) {
|
|
74485
|
+
var stateObj = isNormal ? labelLine : labelLine && labelLine.states[stateName];
|
|
74486
|
+
|
|
74487
|
+
if (stateObj) {
|
|
74488
|
+
stateObj.ignore = true;
|
|
74489
|
+
}
|
|
74490
|
+
|
|
74491
|
+
continue;
|
|
74492
|
+
} // Create labelLine if not exists
|
|
74493
|
+
|
|
74494
|
+
|
|
74495
|
+
if (!labelLine) {
|
|
74496
|
+
labelLine = new Polyline$1();
|
|
74497
|
+
targetEl.setTextGuideLine(labelLine); // Reset state of normal because it's new created.
|
|
74498
|
+
// NOTE: NORMAL should always been the first!
|
|
74499
|
+
|
|
74500
|
+
if (!isNormal && (labelIgnoreNormal || !showNormal)) {
|
|
74501
|
+
setLabelLineState(labelLine, true, 'normal', statesModels.normal);
|
|
74502
|
+
} // Use same state proxy.
|
|
74503
|
+
|
|
74504
|
+
|
|
74505
|
+
if (targetEl.stateProxy) {
|
|
74506
|
+
labelLine.stateProxy = targetEl.stateProxy;
|
|
74507
|
+
}
|
|
74508
|
+
}
|
|
74509
|
+
|
|
74510
|
+
setLabelLineState(labelLine, false, stateName, stateModel);
|
|
74511
|
+
}
|
|
74512
|
+
}
|
|
74513
|
+
|
|
74514
|
+
if (labelLine) {
|
|
74515
|
+
defaults(labelLine.style, defaultStyle); // Not fill.
|
|
74516
|
+
|
|
74517
|
+
labelLine.style.fill = null;
|
|
74518
|
+
var showAbove = normalModel.get('showAbove');
|
|
74519
|
+
var labelLineConfig = targetEl.textGuideLineConfig = targetEl.textGuideLineConfig || {};
|
|
74520
|
+
labelLineConfig.showAbove = showAbove || false; // Custom the buildPath.
|
|
74521
|
+
|
|
74522
|
+
labelLine.buildPath = buildLabelLinePath;
|
|
74523
|
+
}
|
|
74524
|
+
}
|
|
74525
|
+
function getLabelLineStatesModels(itemModel, labelLineName) {
|
|
74526
|
+
labelLineName = labelLineName || 'labelLine';
|
|
74527
|
+
var statesModels = {
|
|
74528
|
+
normal: itemModel.getModel(labelLineName)
|
|
74529
|
+
};
|
|
74530
|
+
|
|
74531
|
+
for (var i = 0; i < SPECIAL_STATES.length; i++) {
|
|
74532
|
+
var stateName = SPECIAL_STATES[i];
|
|
74533
|
+
statesModels[stateName] = itemModel.getModel([stateName, labelLineName]);
|
|
74534
|
+
}
|
|
74535
|
+
|
|
74536
|
+
return statesModels;
|
|
74537
|
+
}
|
|
74538
|
+
|
|
74136
74539
|
function prepareLayoutList(input) {
|
|
74137
74540
|
var list = [];
|
|
74138
74541
|
|
|
@@ -74172,6 +74575,175 @@ function prepareLayoutList(input) {
|
|
|
74172
74575
|
|
|
74173
74576
|
return list;
|
|
74174
74577
|
}
|
|
74578
|
+
|
|
74579
|
+
function shiftLayout(list, xyDim, sizeDim, minBound, maxBound, balanceShift) {
|
|
74580
|
+
var len = list.length;
|
|
74581
|
+
|
|
74582
|
+
if (len < 2) {
|
|
74583
|
+
return;
|
|
74584
|
+
}
|
|
74585
|
+
|
|
74586
|
+
list.sort(function (a, b) {
|
|
74587
|
+
return a.rect[xyDim] - b.rect[xyDim];
|
|
74588
|
+
});
|
|
74589
|
+
var lastPos = 0;
|
|
74590
|
+
var delta;
|
|
74591
|
+
var adjusted = false;
|
|
74592
|
+
var totalShifts = 0;
|
|
74593
|
+
|
|
74594
|
+
for (var i = 0; i < len; i++) {
|
|
74595
|
+
var item = list[i];
|
|
74596
|
+
var rect = item.rect;
|
|
74597
|
+
delta = rect[xyDim] - lastPos;
|
|
74598
|
+
|
|
74599
|
+
if (delta < 0) {
|
|
74600
|
+
// shiftForward(i, len, -delta);
|
|
74601
|
+
rect[xyDim] -= delta;
|
|
74602
|
+
item.label[xyDim] -= delta;
|
|
74603
|
+
adjusted = true;
|
|
74604
|
+
}
|
|
74605
|
+
|
|
74606
|
+
var shift = Math.max(-delta, 0);
|
|
74607
|
+
totalShifts += shift;
|
|
74608
|
+
lastPos = rect[xyDim] + rect[sizeDim];
|
|
74609
|
+
}
|
|
74610
|
+
|
|
74611
|
+
if (totalShifts > 0 && balanceShift) {
|
|
74612
|
+
// Shift back to make the distribution more equally.
|
|
74613
|
+
shiftList(-totalShifts / len, 0, len);
|
|
74614
|
+
} // TODO bleedMargin?
|
|
74615
|
+
|
|
74616
|
+
|
|
74617
|
+
var first = list[0];
|
|
74618
|
+
var last = list[len - 1];
|
|
74619
|
+
var minGap;
|
|
74620
|
+
var maxGap;
|
|
74621
|
+
updateMinMaxGap(); // If ends exceed two bounds, squeeze at most 80%, then take the gap of two bounds.
|
|
74622
|
+
|
|
74623
|
+
minGap < 0 && squeezeGaps(-minGap, 0.8);
|
|
74624
|
+
maxGap < 0 && squeezeGaps(maxGap, 0.8);
|
|
74625
|
+
updateMinMaxGap();
|
|
74626
|
+
takeBoundsGap(minGap, maxGap, 1);
|
|
74627
|
+
takeBoundsGap(maxGap, minGap, -1); // Handle bailout when there is not enough space.
|
|
74628
|
+
|
|
74629
|
+
updateMinMaxGap();
|
|
74630
|
+
|
|
74631
|
+
if (minGap < 0) {
|
|
74632
|
+
squeezeWhenBailout(-minGap);
|
|
74633
|
+
}
|
|
74634
|
+
|
|
74635
|
+
if (maxGap < 0) {
|
|
74636
|
+
squeezeWhenBailout(maxGap);
|
|
74637
|
+
}
|
|
74638
|
+
|
|
74639
|
+
function updateMinMaxGap() {
|
|
74640
|
+
minGap = first.rect[xyDim] - minBound;
|
|
74641
|
+
maxGap = maxBound - last.rect[xyDim] - last.rect[sizeDim];
|
|
74642
|
+
}
|
|
74643
|
+
|
|
74644
|
+
function takeBoundsGap(gapThisBound, gapOtherBound, moveDir) {
|
|
74645
|
+
if (gapThisBound < 0) {
|
|
74646
|
+
// Move from other gap if can.
|
|
74647
|
+
var moveFromMaxGap = Math.min(gapOtherBound, -gapThisBound);
|
|
74648
|
+
|
|
74649
|
+
if (moveFromMaxGap > 0) {
|
|
74650
|
+
shiftList(moveFromMaxGap * moveDir, 0, len);
|
|
74651
|
+
var remained = moveFromMaxGap + gapThisBound;
|
|
74652
|
+
|
|
74653
|
+
if (remained < 0) {
|
|
74654
|
+
squeezeGaps(-remained * moveDir, 1);
|
|
74655
|
+
}
|
|
74656
|
+
} else {
|
|
74657
|
+
squeezeGaps(-gapThisBound * moveDir, 1);
|
|
74658
|
+
}
|
|
74659
|
+
}
|
|
74660
|
+
}
|
|
74661
|
+
|
|
74662
|
+
function shiftList(delta, start, end) {
|
|
74663
|
+
if (delta !== 0) {
|
|
74664
|
+
adjusted = true;
|
|
74665
|
+
}
|
|
74666
|
+
|
|
74667
|
+
for (var i = start; i < end; i++) {
|
|
74668
|
+
var item = list[i];
|
|
74669
|
+
var rect = item.rect;
|
|
74670
|
+
rect[xyDim] += delta;
|
|
74671
|
+
item.label[xyDim] += delta;
|
|
74672
|
+
}
|
|
74673
|
+
} // Squeeze gaps if the labels exceed margin.
|
|
74674
|
+
|
|
74675
|
+
|
|
74676
|
+
function squeezeGaps(delta, maxSqeezePercent) {
|
|
74677
|
+
var gaps = [];
|
|
74678
|
+
var totalGaps = 0;
|
|
74679
|
+
|
|
74680
|
+
for (var i = 1; i < len; i++) {
|
|
74681
|
+
var prevItemRect = list[i - 1].rect;
|
|
74682
|
+
var gap = Math.max(list[i].rect[xyDim] - prevItemRect[xyDim] - prevItemRect[sizeDim], 0);
|
|
74683
|
+
gaps.push(gap);
|
|
74684
|
+
totalGaps += gap;
|
|
74685
|
+
}
|
|
74686
|
+
|
|
74687
|
+
if (!totalGaps) {
|
|
74688
|
+
return;
|
|
74689
|
+
}
|
|
74690
|
+
|
|
74691
|
+
var squeezePercent = Math.min(Math.abs(delta) / totalGaps, maxSqeezePercent);
|
|
74692
|
+
|
|
74693
|
+
if (delta > 0) {
|
|
74694
|
+
for (var i = 0; i < len - 1; i++) {
|
|
74695
|
+
// Distribute the shift delta to all gaps.
|
|
74696
|
+
var movement = gaps[i] * squeezePercent; // Forward
|
|
74697
|
+
|
|
74698
|
+
shiftList(movement, 0, i + 1);
|
|
74699
|
+
}
|
|
74700
|
+
} else {
|
|
74701
|
+
// Backward
|
|
74702
|
+
for (var i = len - 1; i > 0; i--) {
|
|
74703
|
+
// Distribute the shift delta to all gaps.
|
|
74704
|
+
var movement = gaps[i - 1] * squeezePercent;
|
|
74705
|
+
shiftList(-movement, i, len);
|
|
74706
|
+
}
|
|
74707
|
+
}
|
|
74708
|
+
}
|
|
74709
|
+
/**
|
|
74710
|
+
* Squeeze to allow overlap if there is no more space available.
|
|
74711
|
+
* Let other overlapping strategy like hideOverlap do the job instead of keep exceeding the bounds.
|
|
74712
|
+
*/
|
|
74713
|
+
|
|
74714
|
+
|
|
74715
|
+
function squeezeWhenBailout(delta) {
|
|
74716
|
+
var dir = delta < 0 ? -1 : 1;
|
|
74717
|
+
delta = Math.abs(delta);
|
|
74718
|
+
var moveForEachLabel = Math.ceil(delta / (len - 1));
|
|
74719
|
+
|
|
74720
|
+
for (var i = 0; i < len - 1; i++) {
|
|
74721
|
+
if (dir > 0) {
|
|
74722
|
+
// Forward
|
|
74723
|
+
shiftList(moveForEachLabel, 0, i + 1);
|
|
74724
|
+
} else {
|
|
74725
|
+
// Backward
|
|
74726
|
+
shiftList(-moveForEachLabel, len - i - 1, len);
|
|
74727
|
+
}
|
|
74728
|
+
|
|
74729
|
+
delta -= moveForEachLabel;
|
|
74730
|
+
|
|
74731
|
+
if (delta <= 0) {
|
|
74732
|
+
return;
|
|
74733
|
+
}
|
|
74734
|
+
}
|
|
74735
|
+
}
|
|
74736
|
+
|
|
74737
|
+
return adjusted;
|
|
74738
|
+
}
|
|
74739
|
+
/**
|
|
74740
|
+
* Adjust labels on y direction to avoid overlap.
|
|
74741
|
+
*/
|
|
74742
|
+
|
|
74743
|
+
function shiftLayoutOnY(list, topBound, bottomBound, // If average the shifts on all labels and add them to 0
|
|
74744
|
+
balanceShift) {
|
|
74745
|
+
return shiftLayout(list, 'y', 'height', topBound, bottomBound, balanceShift);
|
|
74746
|
+
}
|
|
74175
74747
|
function hideOverlap(labelList) {
|
|
74176
74748
|
var displayedLabels = []; // TODO, render overflow visible first, put in the displayedLabels.
|
|
74177
74749
|
|
|
@@ -75995,7 +76567,7 @@ function createBackgroundEl(coord, isHorizontalOrRadial, layout) {
|
|
|
75995
76567
|
|
|
75996
76568
|
var BarView$1 = BarView;
|
|
75997
76569
|
|
|
75998
|
-
function install$
|
|
76570
|
+
function install$8(registers) {
|
|
75999
76571
|
registers.registerChartView(BarView$1);
|
|
76000
76572
|
registers.registerSeriesModel(BarSeries);
|
|
76001
76573
|
registers.registerLayout(registers.PRIORITY.VISUAL.LAYOUT, curry(layout$1, 'bar')); // Do layout after other overall layout, which can preapre some informations.
|
|
@@ -76030,6 +76602,1323 @@ function install$7(registers) {
|
|
|
76030
76602
|
});
|
|
76031
76603
|
}
|
|
76032
76604
|
|
|
76605
|
+
var PI2 = Math.PI * 2;
|
|
76606
|
+
var RADIAN$1 = Math.PI / 180;
|
|
76607
|
+
|
|
76608
|
+
function getViewRect(seriesModel, api) {
|
|
76609
|
+
return getLayoutRect(seriesModel.getBoxLayoutParams(), {
|
|
76610
|
+
width: api.getWidth(),
|
|
76611
|
+
height: api.getHeight()
|
|
76612
|
+
});
|
|
76613
|
+
}
|
|
76614
|
+
|
|
76615
|
+
function getBasicPieLayout(seriesModel, api) {
|
|
76616
|
+
var viewRect = getViewRect(seriesModel, api);
|
|
76617
|
+
var center = seriesModel.get('center');
|
|
76618
|
+
var radius = seriesModel.get('radius');
|
|
76619
|
+
|
|
76620
|
+
if (!isArray(radius)) {
|
|
76621
|
+
radius = [0, radius];
|
|
76622
|
+
}
|
|
76623
|
+
|
|
76624
|
+
if (!isArray(center)) {
|
|
76625
|
+
center = [center, center];
|
|
76626
|
+
}
|
|
76627
|
+
|
|
76628
|
+
var width = parsePercent(viewRect.width, api.getWidth());
|
|
76629
|
+
var height = parsePercent(viewRect.height, api.getHeight());
|
|
76630
|
+
var size = Math.min(width, height);
|
|
76631
|
+
var r0 = parsePercent(radius[0], size / 2);
|
|
76632
|
+
var r = parsePercent(radius[1], size / 2);
|
|
76633
|
+
var cx;
|
|
76634
|
+
var cy;
|
|
76635
|
+
var coordSys = seriesModel.coordinateSystem;
|
|
76636
|
+
|
|
76637
|
+
if (coordSys) {
|
|
76638
|
+
// percentage is not allowed when coordinate system is specified
|
|
76639
|
+
var point = coordSys.dataToPoint(center);
|
|
76640
|
+
cx = point[0] || 0;
|
|
76641
|
+
cy = point[1] || 0;
|
|
76642
|
+
} else {
|
|
76643
|
+
cx = parsePercent(center[0], width) + viewRect.x;
|
|
76644
|
+
cy = parsePercent(center[1], height) + viewRect.y;
|
|
76645
|
+
}
|
|
76646
|
+
|
|
76647
|
+
return {
|
|
76648
|
+
cx: cx,
|
|
76649
|
+
cy: cy,
|
|
76650
|
+
r0: r0,
|
|
76651
|
+
r: r
|
|
76652
|
+
};
|
|
76653
|
+
}
|
|
76654
|
+
function pieLayout(seriesType, ecModel, api) {
|
|
76655
|
+
ecModel.eachSeriesByType(seriesType, function (seriesModel) {
|
|
76656
|
+
var data = seriesModel.getData();
|
|
76657
|
+
var valueDim = data.mapDimension('value');
|
|
76658
|
+
var viewRect = getViewRect(seriesModel, api);
|
|
76659
|
+
|
|
76660
|
+
var _a = getBasicPieLayout(seriesModel, api),
|
|
76661
|
+
cx = _a.cx,
|
|
76662
|
+
cy = _a.cy,
|
|
76663
|
+
r = _a.r,
|
|
76664
|
+
r0 = _a.r0;
|
|
76665
|
+
|
|
76666
|
+
var startAngle = -seriesModel.get('startAngle') * RADIAN$1;
|
|
76667
|
+
var minAngle = seriesModel.get('minAngle') * RADIAN$1;
|
|
76668
|
+
var validDataCount = 0;
|
|
76669
|
+
data.each(valueDim, function (value) {
|
|
76670
|
+
!isNaN(value) && validDataCount++;
|
|
76671
|
+
});
|
|
76672
|
+
var sum = data.getSum(valueDim); // Sum may be 0
|
|
76673
|
+
|
|
76674
|
+
var unitRadian = Math.PI / (sum || validDataCount) * 2;
|
|
76675
|
+
var clockwise = seriesModel.get('clockwise');
|
|
76676
|
+
var roseType = seriesModel.get('roseType');
|
|
76677
|
+
var stillShowZeroSum = seriesModel.get('stillShowZeroSum'); // [0...max]
|
|
76678
|
+
|
|
76679
|
+
var extent = data.getDataExtent(valueDim);
|
|
76680
|
+
extent[0] = 0; // In the case some sector angle is smaller than minAngle
|
|
76681
|
+
|
|
76682
|
+
var restAngle = PI2;
|
|
76683
|
+
var valueSumLargerThanMinAngle = 0;
|
|
76684
|
+
var currentAngle = startAngle;
|
|
76685
|
+
var dir = clockwise ? 1 : -1;
|
|
76686
|
+
data.setLayout({
|
|
76687
|
+
viewRect: viewRect,
|
|
76688
|
+
r: r
|
|
76689
|
+
});
|
|
76690
|
+
data.each(valueDim, function (value, idx) {
|
|
76691
|
+
var angle;
|
|
76692
|
+
|
|
76693
|
+
if (isNaN(value)) {
|
|
76694
|
+
data.setItemLayout(idx, {
|
|
76695
|
+
angle: NaN,
|
|
76696
|
+
startAngle: NaN,
|
|
76697
|
+
endAngle: NaN,
|
|
76698
|
+
clockwise: clockwise,
|
|
76699
|
+
cx: cx,
|
|
76700
|
+
cy: cy,
|
|
76701
|
+
r0: r0,
|
|
76702
|
+
r: roseType ? NaN : r
|
|
76703
|
+
});
|
|
76704
|
+
return;
|
|
76705
|
+
} // FIXME 兼容 2.0 但是 roseType 是 area 的时候才是这样?
|
|
76706
|
+
|
|
76707
|
+
|
|
76708
|
+
if (roseType !== 'area') {
|
|
76709
|
+
angle = sum === 0 && stillShowZeroSum ? unitRadian : value * unitRadian;
|
|
76710
|
+
} else {
|
|
76711
|
+
angle = PI2 / validDataCount;
|
|
76712
|
+
}
|
|
76713
|
+
|
|
76714
|
+
if (angle < minAngle) {
|
|
76715
|
+
angle = minAngle;
|
|
76716
|
+
restAngle -= minAngle;
|
|
76717
|
+
} else {
|
|
76718
|
+
valueSumLargerThanMinAngle += value;
|
|
76719
|
+
}
|
|
76720
|
+
|
|
76721
|
+
var endAngle = currentAngle + dir * angle;
|
|
76722
|
+
data.setItemLayout(idx, {
|
|
76723
|
+
angle: angle,
|
|
76724
|
+
startAngle: currentAngle,
|
|
76725
|
+
endAngle: endAngle,
|
|
76726
|
+
clockwise: clockwise,
|
|
76727
|
+
cx: cx,
|
|
76728
|
+
cy: cy,
|
|
76729
|
+
r0: r0,
|
|
76730
|
+
r: roseType ? linearMap(value, extent, [r0, r]) : r
|
|
76731
|
+
});
|
|
76732
|
+
currentAngle = endAngle;
|
|
76733
|
+
}); // Some sector is constrained by minAngle
|
|
76734
|
+
// Rest sectors needs recalculate angle
|
|
76735
|
+
|
|
76736
|
+
if (restAngle < PI2 && validDataCount) {
|
|
76737
|
+
// Average the angle if rest angle is not enough after all angles is
|
|
76738
|
+
// Constrained by minAngle
|
|
76739
|
+
if (restAngle <= 1e-3) {
|
|
76740
|
+
var angle_1 = PI2 / validDataCount;
|
|
76741
|
+
data.each(valueDim, function (value, idx) {
|
|
76742
|
+
if (!isNaN(value)) {
|
|
76743
|
+
var layout_1 = data.getItemLayout(idx);
|
|
76744
|
+
layout_1.angle = angle_1;
|
|
76745
|
+
layout_1.startAngle = startAngle + dir * idx * angle_1;
|
|
76746
|
+
layout_1.endAngle = startAngle + dir * (idx + 1) * angle_1;
|
|
76747
|
+
}
|
|
76748
|
+
});
|
|
76749
|
+
} else {
|
|
76750
|
+
unitRadian = restAngle / valueSumLargerThanMinAngle;
|
|
76751
|
+
currentAngle = startAngle;
|
|
76752
|
+
data.each(valueDim, function (value, idx) {
|
|
76753
|
+
if (!isNaN(value)) {
|
|
76754
|
+
var layout_2 = data.getItemLayout(idx);
|
|
76755
|
+
var angle = layout_2.angle === minAngle ? minAngle : value * unitRadian;
|
|
76756
|
+
layout_2.startAngle = currentAngle;
|
|
76757
|
+
layout_2.endAngle = currentAngle + dir * angle;
|
|
76758
|
+
currentAngle += dir * angle;
|
|
76759
|
+
}
|
|
76760
|
+
});
|
|
76761
|
+
}
|
|
76762
|
+
}
|
|
76763
|
+
});
|
|
76764
|
+
}
|
|
76765
|
+
|
|
76766
|
+
/*
|
|
76767
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
|
76768
|
+
* or more contributor license agreements. See the NOTICE file
|
|
76769
|
+
* distributed with this work for additional information
|
|
76770
|
+
* regarding copyright ownership. The ASF licenses this file
|
|
76771
|
+
* to you under the Apache License, Version 2.0 (the
|
|
76772
|
+
* "License"); you may not use this file except in compliance
|
|
76773
|
+
* with the License. You may obtain a copy of the License at
|
|
76774
|
+
*
|
|
76775
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
76776
|
+
*
|
|
76777
|
+
* Unless required by applicable law or agreed to in writing,
|
|
76778
|
+
* software distributed under the License is distributed on an
|
|
76779
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
76780
|
+
* KIND, either express or implied. See the License for the
|
|
76781
|
+
* specific language governing permissions and limitations
|
|
76782
|
+
* under the License.
|
|
76783
|
+
*/
|
|
76784
|
+
|
|
76785
|
+
|
|
76786
|
+
/**
|
|
76787
|
+
* AUTO-GENERATED FILE. DO NOT MODIFY.
|
|
76788
|
+
*/
|
|
76789
|
+
|
|
76790
|
+
/*
|
|
76791
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
|
76792
|
+
* or more contributor license agreements. See the NOTICE file
|
|
76793
|
+
* distributed with this work for additional information
|
|
76794
|
+
* regarding copyright ownership. The ASF licenses this file
|
|
76795
|
+
* to you under the Apache License, Version 2.0 (the
|
|
76796
|
+
* "License"); you may not use this file except in compliance
|
|
76797
|
+
* with the License. You may obtain a copy of the License at
|
|
76798
|
+
*
|
|
76799
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
76800
|
+
*
|
|
76801
|
+
* Unless required by applicable law or agreed to in writing,
|
|
76802
|
+
* software distributed under the License is distributed on an
|
|
76803
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
76804
|
+
* KIND, either express or implied. See the License for the
|
|
76805
|
+
* specific language governing permissions and limitations
|
|
76806
|
+
* under the License.
|
|
76807
|
+
*/
|
|
76808
|
+
function dataFilter(seriesType) {
|
|
76809
|
+
return {
|
|
76810
|
+
seriesType: seriesType,
|
|
76811
|
+
reset: function (seriesModel, ecModel) {
|
|
76812
|
+
var legendModels = ecModel.findComponents({
|
|
76813
|
+
mainType: 'legend'
|
|
76814
|
+
});
|
|
76815
|
+
|
|
76816
|
+
if (!legendModels || !legendModels.length) {
|
|
76817
|
+
return;
|
|
76818
|
+
}
|
|
76819
|
+
|
|
76820
|
+
var data = seriesModel.getData();
|
|
76821
|
+
data.filterSelf(function (idx) {
|
|
76822
|
+
var name = data.getName(idx); // If in any legend component the status is not selected.
|
|
76823
|
+
|
|
76824
|
+
for (var i = 0; i < legendModels.length; i++) {
|
|
76825
|
+
// @ts-ignore FIXME: LegendModel
|
|
76826
|
+
if (!legendModels[i].isSelected(name)) {
|
|
76827
|
+
return false;
|
|
76828
|
+
}
|
|
76829
|
+
}
|
|
76830
|
+
|
|
76831
|
+
return true;
|
|
76832
|
+
});
|
|
76833
|
+
}
|
|
76834
|
+
};
|
|
76835
|
+
}
|
|
76836
|
+
|
|
76837
|
+
var RADIAN = Math.PI / 180;
|
|
76838
|
+
|
|
76839
|
+
function adjustSingleSide(list, cx, cy, r, dir, viewWidth, viewHeight, viewLeft, viewTop, farthestX) {
|
|
76840
|
+
if (list.length < 2) {
|
|
76841
|
+
return;
|
|
76842
|
+
}
|
|
76843
|
+
|
|
76844
|
+
function recalculateXOnSemiToAlignOnEllipseCurve(semi) {
|
|
76845
|
+
var rB = semi.rB;
|
|
76846
|
+
var rB2 = rB * rB;
|
|
76847
|
+
|
|
76848
|
+
for (var i = 0; i < semi.list.length; i++) {
|
|
76849
|
+
var item = semi.list[i];
|
|
76850
|
+
var dy = Math.abs(item.label.y - cy); // horizontal r is always same with original r because x is not changed.
|
|
76851
|
+
|
|
76852
|
+
var rA = r + item.len;
|
|
76853
|
+
var rA2 = rA * rA; // Use ellipse implicit function to calculate x
|
|
76854
|
+
|
|
76855
|
+
var dx = Math.sqrt((1 - Math.abs(dy * dy / rB2)) * rA2);
|
|
76856
|
+
var newX = cx + (dx + item.len2) * dir;
|
|
76857
|
+
var deltaX = newX - item.label.x;
|
|
76858
|
+
var newTargetWidth = item.targetTextWidth - deltaX * dir; // text x is changed, so need to recalculate width.
|
|
76859
|
+
|
|
76860
|
+
constrainTextWidth(item, newTargetWidth, true);
|
|
76861
|
+
item.label.x = newX;
|
|
76862
|
+
}
|
|
76863
|
+
} // Adjust X based on the shifted y. Make tight labels aligned on an ellipse curve.
|
|
76864
|
+
|
|
76865
|
+
|
|
76866
|
+
function recalculateX(items) {
|
|
76867
|
+
// Extremes of
|
|
76868
|
+
var topSemi = {
|
|
76869
|
+
list: [],
|
|
76870
|
+
maxY: 0
|
|
76871
|
+
};
|
|
76872
|
+
var bottomSemi = {
|
|
76873
|
+
list: [],
|
|
76874
|
+
maxY: 0
|
|
76875
|
+
};
|
|
76876
|
+
|
|
76877
|
+
for (var i = 0; i < items.length; i++) {
|
|
76878
|
+
if (items[i].labelAlignTo !== 'none') {
|
|
76879
|
+
continue;
|
|
76880
|
+
}
|
|
76881
|
+
|
|
76882
|
+
var item = items[i];
|
|
76883
|
+
var semi = item.label.y > cy ? bottomSemi : topSemi;
|
|
76884
|
+
var dy = Math.abs(item.label.y - cy);
|
|
76885
|
+
|
|
76886
|
+
if (dy >= semi.maxY) {
|
|
76887
|
+
var dx = item.label.x - cx - item.len2 * dir; // horizontal r is always same with original r because x is not changed.
|
|
76888
|
+
|
|
76889
|
+
var rA = r + item.len; // Canculate rB based on the topest / bottemest label.
|
|
76890
|
+
|
|
76891
|
+
var rB = Math.abs(dx) < rA ? Math.sqrt(dy * dy / (1 - dx * dx / rA / rA)) : rA;
|
|
76892
|
+
semi.rB = rB;
|
|
76893
|
+
semi.maxY = dy;
|
|
76894
|
+
}
|
|
76895
|
+
|
|
76896
|
+
semi.list.push(item);
|
|
76897
|
+
}
|
|
76898
|
+
|
|
76899
|
+
recalculateXOnSemiToAlignOnEllipseCurve(topSemi);
|
|
76900
|
+
recalculateXOnSemiToAlignOnEllipseCurve(bottomSemi);
|
|
76901
|
+
}
|
|
76902
|
+
|
|
76903
|
+
var len = list.length;
|
|
76904
|
+
|
|
76905
|
+
for (var i = 0; i < len; i++) {
|
|
76906
|
+
if (list[i].position === 'outer' && list[i].labelAlignTo === 'labelLine') {
|
|
76907
|
+
var dx = list[i].label.x - farthestX;
|
|
76908
|
+
list[i].linePoints[1][0] += dx;
|
|
76909
|
+
list[i].label.x = farthestX;
|
|
76910
|
+
}
|
|
76911
|
+
}
|
|
76912
|
+
|
|
76913
|
+
if (shiftLayoutOnY(list, viewTop, viewTop + viewHeight)) {
|
|
76914
|
+
recalculateX(list);
|
|
76915
|
+
}
|
|
76916
|
+
}
|
|
76917
|
+
|
|
76918
|
+
function avoidOverlap(labelLayoutList, cx, cy, r, viewWidth, viewHeight, viewLeft, viewTop) {
|
|
76919
|
+
var leftList = [];
|
|
76920
|
+
var rightList = [];
|
|
76921
|
+
var leftmostX = Number.MAX_VALUE;
|
|
76922
|
+
var rightmostX = -Number.MAX_VALUE;
|
|
76923
|
+
|
|
76924
|
+
for (var i = 0; i < labelLayoutList.length; i++) {
|
|
76925
|
+
var label = labelLayoutList[i].label;
|
|
76926
|
+
|
|
76927
|
+
if (isPositionCenter(labelLayoutList[i])) {
|
|
76928
|
+
continue;
|
|
76929
|
+
}
|
|
76930
|
+
|
|
76931
|
+
if (label.x < cx) {
|
|
76932
|
+
leftmostX = Math.min(leftmostX, label.x);
|
|
76933
|
+
leftList.push(labelLayoutList[i]);
|
|
76934
|
+
} else {
|
|
76935
|
+
rightmostX = Math.max(rightmostX, label.x);
|
|
76936
|
+
rightList.push(labelLayoutList[i]);
|
|
76937
|
+
}
|
|
76938
|
+
}
|
|
76939
|
+
|
|
76940
|
+
for (var i = 0; i < labelLayoutList.length; i++) {
|
|
76941
|
+
var layout = labelLayoutList[i];
|
|
76942
|
+
|
|
76943
|
+
if (!isPositionCenter(layout) && layout.linePoints) {
|
|
76944
|
+
if (layout.labelStyleWidth != null) {
|
|
76945
|
+
continue;
|
|
76946
|
+
}
|
|
76947
|
+
|
|
76948
|
+
var label = layout.label;
|
|
76949
|
+
var linePoints = layout.linePoints;
|
|
76950
|
+
var targetTextWidth = void 0;
|
|
76951
|
+
|
|
76952
|
+
if (layout.labelAlignTo === 'edge') {
|
|
76953
|
+
if (label.x < cx) {
|
|
76954
|
+
targetTextWidth = linePoints[2][0] - layout.labelDistance - viewLeft - layout.edgeDistance;
|
|
76955
|
+
} else {
|
|
76956
|
+
targetTextWidth = viewLeft + viewWidth - layout.edgeDistance - linePoints[2][0] - layout.labelDistance;
|
|
76957
|
+
}
|
|
76958
|
+
} else if (layout.labelAlignTo === 'labelLine') {
|
|
76959
|
+
if (label.x < cx) {
|
|
76960
|
+
targetTextWidth = leftmostX - viewLeft - layout.bleedMargin;
|
|
76961
|
+
} else {
|
|
76962
|
+
targetTextWidth = viewLeft + viewWidth - rightmostX - layout.bleedMargin;
|
|
76963
|
+
}
|
|
76964
|
+
} else {
|
|
76965
|
+
if (label.x < cx) {
|
|
76966
|
+
targetTextWidth = label.x - viewLeft - layout.bleedMargin;
|
|
76967
|
+
} else {
|
|
76968
|
+
targetTextWidth = viewLeft + viewWidth - label.x - layout.bleedMargin;
|
|
76969
|
+
}
|
|
76970
|
+
}
|
|
76971
|
+
|
|
76972
|
+
layout.targetTextWidth = targetTextWidth;
|
|
76973
|
+
constrainTextWidth(layout, targetTextWidth);
|
|
76974
|
+
}
|
|
76975
|
+
}
|
|
76976
|
+
|
|
76977
|
+
adjustSingleSide(rightList, cx, cy, r, 1, viewWidth, viewHeight, viewLeft, viewTop, rightmostX);
|
|
76978
|
+
adjustSingleSide(leftList, cx, cy, r, -1, viewWidth, viewHeight, viewLeft, viewTop, leftmostX);
|
|
76979
|
+
|
|
76980
|
+
for (var i = 0; i < labelLayoutList.length; i++) {
|
|
76981
|
+
var layout = labelLayoutList[i];
|
|
76982
|
+
|
|
76983
|
+
if (!isPositionCenter(layout) && layout.linePoints) {
|
|
76984
|
+
var label = layout.label;
|
|
76985
|
+
var linePoints = layout.linePoints;
|
|
76986
|
+
var isAlignToEdge = layout.labelAlignTo === 'edge';
|
|
76987
|
+
var padding = label.style.padding;
|
|
76988
|
+
var paddingH = padding ? padding[1] + padding[3] : 0; // textRect.width already contains paddingH if bgColor is set
|
|
76989
|
+
|
|
76990
|
+
var extraPaddingH = label.style.backgroundColor ? 0 : paddingH;
|
|
76991
|
+
var realTextWidth = layout.rect.width + extraPaddingH;
|
|
76992
|
+
var dist = linePoints[1][0] - linePoints[2][0];
|
|
76993
|
+
|
|
76994
|
+
if (isAlignToEdge) {
|
|
76995
|
+
if (label.x < cx) {
|
|
76996
|
+
linePoints[2][0] = viewLeft + layout.edgeDistance + realTextWidth + layout.labelDistance;
|
|
76997
|
+
} else {
|
|
76998
|
+
linePoints[2][0] = viewLeft + viewWidth - layout.edgeDistance - realTextWidth - layout.labelDistance;
|
|
76999
|
+
}
|
|
77000
|
+
} else {
|
|
77001
|
+
if (label.x < cx) {
|
|
77002
|
+
linePoints[2][0] = label.x + layout.labelDistance;
|
|
77003
|
+
} else {
|
|
77004
|
+
linePoints[2][0] = label.x - layout.labelDistance;
|
|
77005
|
+
}
|
|
77006
|
+
|
|
77007
|
+
linePoints[1][0] = linePoints[2][0] + dist;
|
|
77008
|
+
}
|
|
77009
|
+
|
|
77010
|
+
linePoints[1][1] = linePoints[2][1] = label.y;
|
|
77011
|
+
}
|
|
77012
|
+
}
|
|
77013
|
+
}
|
|
77014
|
+
/**
|
|
77015
|
+
* Set max width of each label, and then wrap each label to the max width.
|
|
77016
|
+
*
|
|
77017
|
+
* @param layout label layout
|
|
77018
|
+
* @param availableWidth max width for the label to display
|
|
77019
|
+
* @param forceRecalculate recaculate the text layout even if the current width
|
|
77020
|
+
* is smaller than `availableWidth`. This is useful when the text was previously
|
|
77021
|
+
* wrapped by calling `constrainTextWidth` but now `availableWidth` changed, in
|
|
77022
|
+
* which case, previous wrapping should be redo.
|
|
77023
|
+
*/
|
|
77024
|
+
|
|
77025
|
+
|
|
77026
|
+
function constrainTextWidth(layout, availableWidth, forceRecalculate) {
|
|
77027
|
+
if (forceRecalculate === void 0) {
|
|
77028
|
+
forceRecalculate = false;
|
|
77029
|
+
}
|
|
77030
|
+
|
|
77031
|
+
if (layout.labelStyleWidth != null) {
|
|
77032
|
+
// User-defined style.width has the highest priority.
|
|
77033
|
+
return;
|
|
77034
|
+
}
|
|
77035
|
+
|
|
77036
|
+
var label = layout.label;
|
|
77037
|
+
var style = label.style;
|
|
77038
|
+
var textRect = layout.rect;
|
|
77039
|
+
var bgColor = style.backgroundColor;
|
|
77040
|
+
var padding = style.padding;
|
|
77041
|
+
var paddingH = padding ? padding[1] + padding[3] : 0;
|
|
77042
|
+
var overflow = style.overflow; // textRect.width already contains paddingH if bgColor is set
|
|
77043
|
+
|
|
77044
|
+
var oldOuterWidth = textRect.width + (bgColor ? 0 : paddingH);
|
|
77045
|
+
|
|
77046
|
+
if (availableWidth < oldOuterWidth || forceRecalculate) {
|
|
77047
|
+
var oldHeight = textRect.height;
|
|
77048
|
+
|
|
77049
|
+
if (overflow && overflow.match('break')) {
|
|
77050
|
+
// Temporarily set background to be null to calculate
|
|
77051
|
+
// the bounding box without backgroud.
|
|
77052
|
+
label.setStyle('backgroundColor', null); // Set constraining width
|
|
77053
|
+
|
|
77054
|
+
label.setStyle('width', availableWidth - paddingH); // This is the real bounding box of the text without padding
|
|
77055
|
+
|
|
77056
|
+
var innerRect = label.getBoundingRect();
|
|
77057
|
+
label.setStyle('width', Math.ceil(innerRect.width));
|
|
77058
|
+
label.setStyle('backgroundColor', bgColor);
|
|
77059
|
+
} else {
|
|
77060
|
+
var availableInnerWidth = availableWidth - paddingH;
|
|
77061
|
+
var newWidth = availableWidth < oldOuterWidth // Current text is too wide, use `availableWidth` as max width.
|
|
77062
|
+
? availableInnerWidth : // Current available width is enough, but the text may have
|
|
77063
|
+
// already been wrapped with a smaller available width.
|
|
77064
|
+
forceRecalculate ? availableInnerWidth > layout.unconstrainedWidth // Current available is larger than text width,
|
|
77065
|
+
// so don't constrain width (otherwise it may have
|
|
77066
|
+
// empty space in the background).
|
|
77067
|
+
? null // Current available is smaller than text width, so
|
|
77068
|
+
// use the current available width as constraining
|
|
77069
|
+
// width.
|
|
77070
|
+
: availableInnerWidth : // Current available width is enough, so no need to
|
|
77071
|
+
// constrain.
|
|
77072
|
+
null;
|
|
77073
|
+
label.setStyle('width', newWidth);
|
|
77074
|
+
}
|
|
77075
|
+
|
|
77076
|
+
var newRect = label.getBoundingRect();
|
|
77077
|
+
textRect.width = newRect.width;
|
|
77078
|
+
var margin = (label.style.margin || 0) + 2.1;
|
|
77079
|
+
textRect.height = newRect.height + margin;
|
|
77080
|
+
textRect.y -= (textRect.height - oldHeight) / 2;
|
|
77081
|
+
}
|
|
77082
|
+
}
|
|
77083
|
+
|
|
77084
|
+
function isPositionCenter(sectorShape) {
|
|
77085
|
+
// Not change x for center label
|
|
77086
|
+
return sectorShape.position === 'center';
|
|
77087
|
+
}
|
|
77088
|
+
|
|
77089
|
+
function pieLabelLayout(seriesModel) {
|
|
77090
|
+
var data = seriesModel.getData();
|
|
77091
|
+
var labelLayoutList = [];
|
|
77092
|
+
var cx;
|
|
77093
|
+
var cy;
|
|
77094
|
+
var hasLabelRotate = false;
|
|
77095
|
+
var minShowLabelRadian = (seriesModel.get('minShowLabelAngle') || 0) * RADIAN;
|
|
77096
|
+
var viewRect = data.getLayout('viewRect');
|
|
77097
|
+
var r = data.getLayout('r');
|
|
77098
|
+
var viewWidth = viewRect.width;
|
|
77099
|
+
var viewLeft = viewRect.x;
|
|
77100
|
+
var viewTop = viewRect.y;
|
|
77101
|
+
var viewHeight = viewRect.height;
|
|
77102
|
+
|
|
77103
|
+
function setNotShow(el) {
|
|
77104
|
+
el.ignore = true;
|
|
77105
|
+
}
|
|
77106
|
+
|
|
77107
|
+
function isLabelShown(label) {
|
|
77108
|
+
if (!label.ignore) {
|
|
77109
|
+
return true;
|
|
77110
|
+
}
|
|
77111
|
+
|
|
77112
|
+
for (var key in label.states) {
|
|
77113
|
+
if (label.states[key].ignore === false) {
|
|
77114
|
+
return true;
|
|
77115
|
+
}
|
|
77116
|
+
}
|
|
77117
|
+
|
|
77118
|
+
return false;
|
|
77119
|
+
}
|
|
77120
|
+
|
|
77121
|
+
data.each(function (idx) {
|
|
77122
|
+
var sector = data.getItemGraphicEl(idx);
|
|
77123
|
+
var sectorShape = sector.shape;
|
|
77124
|
+
var label = sector.getTextContent();
|
|
77125
|
+
var labelLine = sector.getTextGuideLine();
|
|
77126
|
+
var itemModel = data.getItemModel(idx);
|
|
77127
|
+
var labelModel = itemModel.getModel('label'); // Use position in normal or emphasis
|
|
77128
|
+
|
|
77129
|
+
var labelPosition = labelModel.get('position') || itemModel.get(['emphasis', 'label', 'position']);
|
|
77130
|
+
var labelDistance = labelModel.get('distanceToLabelLine');
|
|
77131
|
+
var labelAlignTo = labelModel.get('alignTo');
|
|
77132
|
+
var edgeDistance = parsePercent(labelModel.get('edgeDistance'), viewWidth);
|
|
77133
|
+
var bleedMargin = labelModel.get('bleedMargin');
|
|
77134
|
+
var labelLineModel = itemModel.getModel('labelLine');
|
|
77135
|
+
var labelLineLen = labelLineModel.get('length');
|
|
77136
|
+
labelLineLen = parsePercent(labelLineLen, viewWidth);
|
|
77137
|
+
var labelLineLen2 = labelLineModel.get('length2');
|
|
77138
|
+
labelLineLen2 = parsePercent(labelLineLen2, viewWidth);
|
|
77139
|
+
|
|
77140
|
+
if (Math.abs(sectorShape.endAngle - sectorShape.startAngle) < minShowLabelRadian) {
|
|
77141
|
+
each$3(label.states, setNotShow);
|
|
77142
|
+
each$3(labelLine.states, setNotShow);
|
|
77143
|
+
label.ignore = labelLine.ignore = true;
|
|
77144
|
+
return;
|
|
77145
|
+
}
|
|
77146
|
+
|
|
77147
|
+
if (!isLabelShown(label)) {
|
|
77148
|
+
return;
|
|
77149
|
+
}
|
|
77150
|
+
|
|
77151
|
+
var midAngle = (sectorShape.startAngle + sectorShape.endAngle) / 2;
|
|
77152
|
+
var nx = Math.cos(midAngle);
|
|
77153
|
+
var ny = Math.sin(midAngle);
|
|
77154
|
+
var textX;
|
|
77155
|
+
var textY;
|
|
77156
|
+
var linePoints;
|
|
77157
|
+
var textAlign;
|
|
77158
|
+
cx = sectorShape.cx;
|
|
77159
|
+
cy = sectorShape.cy;
|
|
77160
|
+
var isLabelInside = labelPosition === 'inside' || labelPosition === 'inner';
|
|
77161
|
+
|
|
77162
|
+
if (labelPosition === 'center') {
|
|
77163
|
+
textX = sectorShape.cx;
|
|
77164
|
+
textY = sectorShape.cy;
|
|
77165
|
+
textAlign = 'center';
|
|
77166
|
+
} else {
|
|
77167
|
+
var x1 = (isLabelInside ? (sectorShape.r + sectorShape.r0) / 2 * nx : sectorShape.r * nx) + cx;
|
|
77168
|
+
var y1 = (isLabelInside ? (sectorShape.r + sectorShape.r0) / 2 * ny : sectorShape.r * ny) + cy;
|
|
77169
|
+
textX = x1 + nx * 3;
|
|
77170
|
+
textY = y1 + ny * 3;
|
|
77171
|
+
|
|
77172
|
+
if (!isLabelInside) {
|
|
77173
|
+
// For roseType
|
|
77174
|
+
var x2 = x1 + nx * (labelLineLen + r - sectorShape.r);
|
|
77175
|
+
var y2 = y1 + ny * (labelLineLen + r - sectorShape.r);
|
|
77176
|
+
var x3 = x2 + (nx < 0 ? -1 : 1) * labelLineLen2;
|
|
77177
|
+
var y3 = y2;
|
|
77178
|
+
|
|
77179
|
+
if (labelAlignTo === 'edge') {
|
|
77180
|
+
// Adjust textX because text align of edge is opposite
|
|
77181
|
+
textX = nx < 0 ? viewLeft + edgeDistance : viewLeft + viewWidth - edgeDistance;
|
|
77182
|
+
} else {
|
|
77183
|
+
textX = x3 + (nx < 0 ? -labelDistance : labelDistance);
|
|
77184
|
+
}
|
|
77185
|
+
|
|
77186
|
+
textY = y3;
|
|
77187
|
+
linePoints = [[x1, y1], [x2, y2], [x3, y3]];
|
|
77188
|
+
}
|
|
77189
|
+
|
|
77190
|
+
textAlign = isLabelInside ? 'center' : labelAlignTo === 'edge' ? nx > 0 ? 'right' : 'left' : nx > 0 ? 'left' : 'right';
|
|
77191
|
+
}
|
|
77192
|
+
|
|
77193
|
+
var PI = Math.PI;
|
|
77194
|
+
var labelRotate = 0;
|
|
77195
|
+
var rotate = labelModel.get('rotate');
|
|
77196
|
+
|
|
77197
|
+
if (isNumber(rotate)) {
|
|
77198
|
+
labelRotate = rotate * (PI / 180);
|
|
77199
|
+
} else if (labelPosition === 'center') {
|
|
77200
|
+
labelRotate = 0;
|
|
77201
|
+
} else if (rotate === 'radial' || rotate === true) {
|
|
77202
|
+
var radialAngle = nx < 0 ? -midAngle + PI : -midAngle;
|
|
77203
|
+
labelRotate = radialAngle;
|
|
77204
|
+
} else if (rotate === 'tangential' && labelPosition !== 'outside' && labelPosition !== 'outer') {
|
|
77205
|
+
var rad = Math.atan2(nx, ny);
|
|
77206
|
+
|
|
77207
|
+
if (rad < 0) {
|
|
77208
|
+
rad = PI * 2 + rad;
|
|
77209
|
+
}
|
|
77210
|
+
|
|
77211
|
+
var isDown = ny > 0;
|
|
77212
|
+
|
|
77213
|
+
if (isDown) {
|
|
77214
|
+
rad = PI + rad;
|
|
77215
|
+
}
|
|
77216
|
+
|
|
77217
|
+
labelRotate = rad - PI;
|
|
77218
|
+
}
|
|
77219
|
+
|
|
77220
|
+
hasLabelRotate = !!labelRotate;
|
|
77221
|
+
label.x = textX;
|
|
77222
|
+
label.y = textY;
|
|
77223
|
+
label.rotation = labelRotate;
|
|
77224
|
+
label.setStyle({
|
|
77225
|
+
verticalAlign: 'middle'
|
|
77226
|
+
}); // Not sectorShape the inside label
|
|
77227
|
+
|
|
77228
|
+
if (!isLabelInside) {
|
|
77229
|
+
var textRect = label.getBoundingRect().clone();
|
|
77230
|
+
textRect.applyTransform(label.getComputedTransform()); // Text has a default 1px stroke. Exclude this.
|
|
77231
|
+
|
|
77232
|
+
var margin = (label.style.margin || 0) + 2.1;
|
|
77233
|
+
textRect.y -= margin / 2;
|
|
77234
|
+
textRect.height += margin;
|
|
77235
|
+
labelLayoutList.push({
|
|
77236
|
+
label: label,
|
|
77237
|
+
labelLine: labelLine,
|
|
77238
|
+
position: labelPosition,
|
|
77239
|
+
len: labelLineLen,
|
|
77240
|
+
len2: labelLineLen2,
|
|
77241
|
+
minTurnAngle: labelLineModel.get('minTurnAngle'),
|
|
77242
|
+
maxSurfaceAngle: labelLineModel.get('maxSurfaceAngle'),
|
|
77243
|
+
surfaceNormal: new Point$1(nx, ny),
|
|
77244
|
+
linePoints: linePoints,
|
|
77245
|
+
textAlign: textAlign,
|
|
77246
|
+
labelDistance: labelDistance,
|
|
77247
|
+
labelAlignTo: labelAlignTo,
|
|
77248
|
+
edgeDistance: edgeDistance,
|
|
77249
|
+
bleedMargin: bleedMargin,
|
|
77250
|
+
rect: textRect,
|
|
77251
|
+
unconstrainedWidth: textRect.width,
|
|
77252
|
+
labelStyleWidth: label.style.width
|
|
77253
|
+
});
|
|
77254
|
+
} else {
|
|
77255
|
+
label.setStyle({
|
|
77256
|
+
align: textAlign
|
|
77257
|
+
});
|
|
77258
|
+
var selectState = label.states.select;
|
|
77259
|
+
|
|
77260
|
+
if (selectState) {
|
|
77261
|
+
selectState.x += label.x;
|
|
77262
|
+
selectState.y += label.y;
|
|
77263
|
+
}
|
|
77264
|
+
}
|
|
77265
|
+
|
|
77266
|
+
sector.setTextConfig({
|
|
77267
|
+
inside: isLabelInside
|
|
77268
|
+
});
|
|
77269
|
+
});
|
|
77270
|
+
|
|
77271
|
+
if (!hasLabelRotate && seriesModel.get('avoidLabelOverlap')) {
|
|
77272
|
+
avoidOverlap(labelLayoutList, cx, cy, r, viewWidth, viewHeight, viewLeft, viewTop);
|
|
77273
|
+
}
|
|
77274
|
+
|
|
77275
|
+
for (var i = 0; i < labelLayoutList.length; i++) {
|
|
77276
|
+
var layout = labelLayoutList[i];
|
|
77277
|
+
var label = layout.label;
|
|
77278
|
+
var labelLine = layout.labelLine;
|
|
77279
|
+
var notShowLabel = isNaN(label.x) || isNaN(label.y);
|
|
77280
|
+
|
|
77281
|
+
if (label) {
|
|
77282
|
+
label.setStyle({
|
|
77283
|
+
align: layout.textAlign
|
|
77284
|
+
});
|
|
77285
|
+
|
|
77286
|
+
if (notShowLabel) {
|
|
77287
|
+
each$3(label.states, setNotShow);
|
|
77288
|
+
label.ignore = true;
|
|
77289
|
+
}
|
|
77290
|
+
|
|
77291
|
+
var selectState = label.states.select;
|
|
77292
|
+
|
|
77293
|
+
if (selectState) {
|
|
77294
|
+
selectState.x += label.x;
|
|
77295
|
+
selectState.y += label.y;
|
|
77296
|
+
}
|
|
77297
|
+
}
|
|
77298
|
+
|
|
77299
|
+
if (labelLine) {
|
|
77300
|
+
var linePoints = layout.linePoints;
|
|
77301
|
+
|
|
77302
|
+
if (notShowLabel || !linePoints) {
|
|
77303
|
+
each$3(labelLine.states, setNotShow);
|
|
77304
|
+
labelLine.ignore = true;
|
|
77305
|
+
} else {
|
|
77306
|
+
limitTurnAngle(linePoints, layout.minTurnAngle);
|
|
77307
|
+
limitSurfaceAngle(linePoints, layout.surfaceNormal, layout.maxSurfaceAngle);
|
|
77308
|
+
labelLine.setShape({
|
|
77309
|
+
points: linePoints
|
|
77310
|
+
}); // Set the anchor to the midpoint of sector
|
|
77311
|
+
|
|
77312
|
+
label.__hostTarget.textGuideLineConfig = {
|
|
77313
|
+
anchor: new Point$1(linePoints[0][0], linePoints[0][1])
|
|
77314
|
+
};
|
|
77315
|
+
}
|
|
77316
|
+
}
|
|
77317
|
+
}
|
|
77318
|
+
}
|
|
77319
|
+
|
|
77320
|
+
function getSectorCornerRadius(model, shape, zeroIfNull) {
|
|
77321
|
+
var cornerRadius = model.get('borderRadius');
|
|
77322
|
+
|
|
77323
|
+
if (cornerRadius == null) {
|
|
77324
|
+
return zeroIfNull ? {
|
|
77325
|
+
cornerRadius: 0
|
|
77326
|
+
} : null;
|
|
77327
|
+
}
|
|
77328
|
+
|
|
77329
|
+
if (!isArray(cornerRadius)) {
|
|
77330
|
+
cornerRadius = [cornerRadius, cornerRadius, cornerRadius, cornerRadius];
|
|
77331
|
+
}
|
|
77332
|
+
|
|
77333
|
+
var dr = Math.abs(shape.r || 0 - shape.r0 || 0);
|
|
77334
|
+
return {
|
|
77335
|
+
cornerRadius: map$1(cornerRadius, function (cr) {
|
|
77336
|
+
return parsePercent$1(cr, dr);
|
|
77337
|
+
})
|
|
77338
|
+
};
|
|
77339
|
+
}
|
|
77340
|
+
|
|
77341
|
+
/**
|
|
77342
|
+
* Piece of pie including Sector, Label, LabelLine
|
|
77343
|
+
*/
|
|
77344
|
+
|
|
77345
|
+
var PiePiece =
|
|
77346
|
+
/** @class */
|
|
77347
|
+
function (_super) {
|
|
77348
|
+
__extends$1(PiePiece, _super);
|
|
77349
|
+
|
|
77350
|
+
function PiePiece(data, idx, startAngle) {
|
|
77351
|
+
var _this = _super.call(this) || this;
|
|
77352
|
+
|
|
77353
|
+
_this.z2 = 2;
|
|
77354
|
+
var text = new ZRText$1();
|
|
77355
|
+
|
|
77356
|
+
_this.setTextContent(text);
|
|
77357
|
+
|
|
77358
|
+
_this.updateData(data, idx, startAngle, true);
|
|
77359
|
+
|
|
77360
|
+
return _this;
|
|
77361
|
+
}
|
|
77362
|
+
|
|
77363
|
+
PiePiece.prototype.updateData = function (data, idx, startAngle, firstCreate) {
|
|
77364
|
+
var sector = this;
|
|
77365
|
+
var seriesModel = data.hostModel;
|
|
77366
|
+
var itemModel = data.getItemModel(idx);
|
|
77367
|
+
var emphasisModel = itemModel.getModel('emphasis');
|
|
77368
|
+
var layout = data.getItemLayout(idx); // cornerRadius & innerCornerRadius doesn't exist in the item layout. Use `0` if null value is specified.
|
|
77369
|
+
// see `setItemLayout` in `pieLayout.ts`.
|
|
77370
|
+
|
|
77371
|
+
var sectorShape = extend(getSectorCornerRadius(itemModel.getModel('itemStyle'), layout, true), layout); // Ignore NaN data.
|
|
77372
|
+
|
|
77373
|
+
if (isNaN(sectorShape.startAngle)) {
|
|
77374
|
+
// Use NaN shape to avoid drawing shape.
|
|
77375
|
+
sector.setShape(sectorShape);
|
|
77376
|
+
return;
|
|
77377
|
+
}
|
|
77378
|
+
|
|
77379
|
+
if (firstCreate) {
|
|
77380
|
+
sector.setShape(sectorShape);
|
|
77381
|
+
var animationType = seriesModel.getShallow('animationType');
|
|
77382
|
+
|
|
77383
|
+
if (seriesModel.ecModel.ssr) {
|
|
77384
|
+
// Use scale animation in SSR mode(opacity?)
|
|
77385
|
+
// Because CSS SVG animation doesn't support very customized shape animation.
|
|
77386
|
+
initProps(sector, {
|
|
77387
|
+
scaleX: 0,
|
|
77388
|
+
scaleY: 0
|
|
77389
|
+
}, seriesModel, {
|
|
77390
|
+
dataIndex: idx,
|
|
77391
|
+
isFrom: true
|
|
77392
|
+
});
|
|
77393
|
+
sector.originX = sectorShape.cx;
|
|
77394
|
+
sector.originY = sectorShape.cy;
|
|
77395
|
+
} else if (animationType === 'scale') {
|
|
77396
|
+
sector.shape.r = layout.r0;
|
|
77397
|
+
initProps(sector, {
|
|
77398
|
+
shape: {
|
|
77399
|
+
r: layout.r
|
|
77400
|
+
}
|
|
77401
|
+
}, seriesModel, idx);
|
|
77402
|
+
} // Expansion
|
|
77403
|
+
else {
|
|
77404
|
+
if (startAngle != null) {
|
|
77405
|
+
sector.setShape({
|
|
77406
|
+
startAngle: startAngle,
|
|
77407
|
+
endAngle: startAngle
|
|
77408
|
+
});
|
|
77409
|
+
initProps(sector, {
|
|
77410
|
+
shape: {
|
|
77411
|
+
startAngle: layout.startAngle,
|
|
77412
|
+
endAngle: layout.endAngle
|
|
77413
|
+
}
|
|
77414
|
+
}, seriesModel, idx);
|
|
77415
|
+
} else {
|
|
77416
|
+
sector.shape.endAngle = layout.startAngle;
|
|
77417
|
+
updateProps$1(sector, {
|
|
77418
|
+
shape: {
|
|
77419
|
+
endAngle: layout.endAngle
|
|
77420
|
+
}
|
|
77421
|
+
}, seriesModel, idx);
|
|
77422
|
+
}
|
|
77423
|
+
}
|
|
77424
|
+
} else {
|
|
77425
|
+
saveOldStyle(sector); // Transition animation from the old shape
|
|
77426
|
+
|
|
77427
|
+
updateProps$1(sector, {
|
|
77428
|
+
shape: sectorShape
|
|
77429
|
+
}, seriesModel, idx);
|
|
77430
|
+
}
|
|
77431
|
+
|
|
77432
|
+
sector.useStyle(data.getItemVisual(idx, 'style'));
|
|
77433
|
+
setStatesStylesFromModel(sector, itemModel);
|
|
77434
|
+
var midAngle = (layout.startAngle + layout.endAngle) / 2;
|
|
77435
|
+
var offset = seriesModel.get('selectedOffset');
|
|
77436
|
+
var dx = Math.cos(midAngle) * offset;
|
|
77437
|
+
var dy = Math.sin(midAngle) * offset;
|
|
77438
|
+
var cursorStyle = itemModel.getShallow('cursor');
|
|
77439
|
+
cursorStyle && sector.attr('cursor', cursorStyle);
|
|
77440
|
+
|
|
77441
|
+
this._updateLabel(seriesModel, data, idx);
|
|
77442
|
+
|
|
77443
|
+
sector.ensureState('emphasis').shape = extend({
|
|
77444
|
+
r: layout.r + (emphasisModel.get('scale') ? emphasisModel.get('scaleSize') || 0 : 0)
|
|
77445
|
+
}, getSectorCornerRadius(emphasisModel.getModel('itemStyle'), layout));
|
|
77446
|
+
extend(sector.ensureState('select'), {
|
|
77447
|
+
x: dx,
|
|
77448
|
+
y: dy,
|
|
77449
|
+
shape: getSectorCornerRadius(itemModel.getModel(['select', 'itemStyle']), layout)
|
|
77450
|
+
});
|
|
77451
|
+
extend(sector.ensureState('blur'), {
|
|
77452
|
+
shape: getSectorCornerRadius(itemModel.getModel(['blur', 'itemStyle']), layout)
|
|
77453
|
+
});
|
|
77454
|
+
var labelLine = sector.getTextGuideLine();
|
|
77455
|
+
var labelText = sector.getTextContent();
|
|
77456
|
+
labelLine && extend(labelLine.ensureState('select'), {
|
|
77457
|
+
x: dx,
|
|
77458
|
+
y: dy
|
|
77459
|
+
}); // TODO: needs dx, dy in zrender?
|
|
77460
|
+
|
|
77461
|
+
extend(labelText.ensureState('select'), {
|
|
77462
|
+
x: dx,
|
|
77463
|
+
y: dy
|
|
77464
|
+
});
|
|
77465
|
+
toggleHoverEmphasis(this, emphasisModel.get('focus'), emphasisModel.get('blurScope'), emphasisModel.get('disabled'));
|
|
77466
|
+
};
|
|
77467
|
+
|
|
77468
|
+
PiePiece.prototype._updateLabel = function (seriesModel, data, idx) {
|
|
77469
|
+
var sector = this;
|
|
77470
|
+
var itemModel = data.getItemModel(idx);
|
|
77471
|
+
var labelLineModel = itemModel.getModel('labelLine');
|
|
77472
|
+
var style = data.getItemVisual(idx, 'style');
|
|
77473
|
+
var visualColor = style && style.fill;
|
|
77474
|
+
var visualOpacity = style && style.opacity;
|
|
77475
|
+
setLabelStyle(sector, getLabelStatesModels(itemModel), {
|
|
77476
|
+
labelFetcher: data.hostModel,
|
|
77477
|
+
labelDataIndex: idx,
|
|
77478
|
+
inheritColor: visualColor,
|
|
77479
|
+
defaultOpacity: visualOpacity,
|
|
77480
|
+
defaultText: seriesModel.getFormattedLabel(idx, 'normal') || data.getName(idx)
|
|
77481
|
+
});
|
|
77482
|
+
var labelText = sector.getTextContent(); // Set textConfig on sector.
|
|
77483
|
+
|
|
77484
|
+
sector.setTextConfig({
|
|
77485
|
+
// reset position, rotation
|
|
77486
|
+
position: null,
|
|
77487
|
+
rotation: null
|
|
77488
|
+
}); // Make sure update style on labelText after setLabelStyle.
|
|
77489
|
+
// Because setLabelStyle will replace a new style on it.
|
|
77490
|
+
|
|
77491
|
+
labelText.attr({
|
|
77492
|
+
z2: 10
|
|
77493
|
+
});
|
|
77494
|
+
var labelPosition = seriesModel.get(['label', 'position']);
|
|
77495
|
+
|
|
77496
|
+
if (labelPosition !== 'outside' && labelPosition !== 'outer') {
|
|
77497
|
+
sector.removeTextGuideLine();
|
|
77498
|
+
} else {
|
|
77499
|
+
var polyline = this.getTextGuideLine();
|
|
77500
|
+
|
|
77501
|
+
if (!polyline) {
|
|
77502
|
+
polyline = new Polyline$1();
|
|
77503
|
+
this.setTextGuideLine(polyline);
|
|
77504
|
+
} // Default use item visual color
|
|
77505
|
+
|
|
77506
|
+
|
|
77507
|
+
setLabelLineStyle(this, getLabelLineStatesModels(itemModel), {
|
|
77508
|
+
stroke: visualColor,
|
|
77509
|
+
opacity: retrieve3(labelLineModel.get(['lineStyle', 'opacity']), visualOpacity, 1)
|
|
77510
|
+
});
|
|
77511
|
+
}
|
|
77512
|
+
};
|
|
77513
|
+
|
|
77514
|
+
return PiePiece;
|
|
77515
|
+
}(Sector$1); // Pie view
|
|
77516
|
+
|
|
77517
|
+
|
|
77518
|
+
var PieView =
|
|
77519
|
+
/** @class */
|
|
77520
|
+
function (_super) {
|
|
77521
|
+
__extends$1(PieView, _super);
|
|
77522
|
+
|
|
77523
|
+
function PieView() {
|
|
77524
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
77525
|
+
|
|
77526
|
+
_this.ignoreLabelLineUpdate = true;
|
|
77527
|
+
return _this;
|
|
77528
|
+
}
|
|
77529
|
+
|
|
77530
|
+
PieView.prototype.render = function (seriesModel, ecModel, api, payload) {
|
|
77531
|
+
var data = seriesModel.getData();
|
|
77532
|
+
var oldData = this._data;
|
|
77533
|
+
var group = this.group;
|
|
77534
|
+
var startAngle; // First render
|
|
77535
|
+
|
|
77536
|
+
if (!oldData && data.count() > 0) {
|
|
77537
|
+
var shape = data.getItemLayout(0);
|
|
77538
|
+
|
|
77539
|
+
for (var s = 1; isNaN(shape && shape.startAngle) && s < data.count(); ++s) {
|
|
77540
|
+
shape = data.getItemLayout(s);
|
|
77541
|
+
}
|
|
77542
|
+
|
|
77543
|
+
if (shape) {
|
|
77544
|
+
startAngle = shape.startAngle;
|
|
77545
|
+
}
|
|
77546
|
+
} // remove empty-circle if it exists
|
|
77547
|
+
|
|
77548
|
+
|
|
77549
|
+
if (this._emptyCircleSector) {
|
|
77550
|
+
group.remove(this._emptyCircleSector);
|
|
77551
|
+
} // when all data are filtered, show lightgray empty circle
|
|
77552
|
+
|
|
77553
|
+
|
|
77554
|
+
if (data.count() === 0 && seriesModel.get('showEmptyCircle')) {
|
|
77555
|
+
var sector = new Sector$1({
|
|
77556
|
+
shape: getBasicPieLayout(seriesModel, api)
|
|
77557
|
+
});
|
|
77558
|
+
sector.useStyle(seriesModel.getModel('emptyCircleStyle').getItemStyle());
|
|
77559
|
+
this._emptyCircleSector = sector;
|
|
77560
|
+
group.add(sector);
|
|
77561
|
+
}
|
|
77562
|
+
|
|
77563
|
+
data.diff(oldData).add(function (idx) {
|
|
77564
|
+
var piePiece = new PiePiece(data, idx, startAngle);
|
|
77565
|
+
data.setItemGraphicEl(idx, piePiece);
|
|
77566
|
+
group.add(piePiece);
|
|
77567
|
+
}).update(function (newIdx, oldIdx) {
|
|
77568
|
+
var piePiece = oldData.getItemGraphicEl(oldIdx);
|
|
77569
|
+
piePiece.updateData(data, newIdx, startAngle);
|
|
77570
|
+
piePiece.off('click');
|
|
77571
|
+
group.add(piePiece);
|
|
77572
|
+
data.setItemGraphicEl(newIdx, piePiece);
|
|
77573
|
+
}).remove(function (idx) {
|
|
77574
|
+
var piePiece = oldData.getItemGraphicEl(idx);
|
|
77575
|
+
removeElementWithFadeOut(piePiece, seriesModel, idx);
|
|
77576
|
+
}).execute();
|
|
77577
|
+
pieLabelLayout(seriesModel); // Always use initial animation.
|
|
77578
|
+
|
|
77579
|
+
if (seriesModel.get('animationTypeUpdate') !== 'expansion') {
|
|
77580
|
+
this._data = data;
|
|
77581
|
+
}
|
|
77582
|
+
};
|
|
77583
|
+
|
|
77584
|
+
PieView.prototype.dispose = function () {};
|
|
77585
|
+
|
|
77586
|
+
PieView.prototype.containPoint = function (point, seriesModel) {
|
|
77587
|
+
var data = seriesModel.getData();
|
|
77588
|
+
var itemLayout = data.getItemLayout(0);
|
|
77589
|
+
|
|
77590
|
+
if (itemLayout) {
|
|
77591
|
+
var dx = point[0] - itemLayout.cx;
|
|
77592
|
+
var dy = point[1] - itemLayout.cy;
|
|
77593
|
+
var radius = Math.sqrt(dx * dx + dy * dy);
|
|
77594
|
+
return radius <= itemLayout.r && radius >= itemLayout.r0;
|
|
77595
|
+
}
|
|
77596
|
+
};
|
|
77597
|
+
|
|
77598
|
+
PieView.type = 'pie';
|
|
77599
|
+
return PieView;
|
|
77600
|
+
}(ChartView$1);
|
|
77601
|
+
|
|
77602
|
+
var PieView$1 = PieView;
|
|
77603
|
+
|
|
77604
|
+
/**
|
|
77605
|
+
* [Usage]:
|
|
77606
|
+
* (1)
|
|
77607
|
+
* createListSimply(seriesModel, ['value']);
|
|
77608
|
+
* (2)
|
|
77609
|
+
* createListSimply(seriesModel, {
|
|
77610
|
+
* coordDimensions: ['value'],
|
|
77611
|
+
* dimensionsCount: 5
|
|
77612
|
+
* });
|
|
77613
|
+
*/
|
|
77614
|
+
|
|
77615
|
+
function createSeriesDataSimply(seriesModel, opt, nameList) {
|
|
77616
|
+
opt = isArray(opt) && {
|
|
77617
|
+
coordDimensions: opt
|
|
77618
|
+
} || extend({
|
|
77619
|
+
encodeDefine: seriesModel.getEncode()
|
|
77620
|
+
}, opt);
|
|
77621
|
+
var source = seriesModel.getSource();
|
|
77622
|
+
var dimensions = prepareSeriesDataSchema(source, opt).dimensions;
|
|
77623
|
+
var list = new SeriesData$1(dimensions, seriesModel);
|
|
77624
|
+
list.initData(source, nameList);
|
|
77625
|
+
return list;
|
|
77626
|
+
}
|
|
77627
|
+
|
|
77628
|
+
/*
|
|
77629
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
|
77630
|
+
* or more contributor license agreements. See the NOTICE file
|
|
77631
|
+
* distributed with this work for additional information
|
|
77632
|
+
* regarding copyright ownership. The ASF licenses this file
|
|
77633
|
+
* to you under the Apache License, Version 2.0 (the
|
|
77634
|
+
* "License"); you may not use this file except in compliance
|
|
77635
|
+
* with the License. You may obtain a copy of the License at
|
|
77636
|
+
*
|
|
77637
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
77638
|
+
*
|
|
77639
|
+
* Unless required by applicable law or agreed to in writing,
|
|
77640
|
+
* software distributed under the License is distributed on an
|
|
77641
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
77642
|
+
* KIND, either express or implied. See the License for the
|
|
77643
|
+
* specific language governing permissions and limitations
|
|
77644
|
+
* under the License.
|
|
77645
|
+
*/
|
|
77646
|
+
|
|
77647
|
+
|
|
77648
|
+
/**
|
|
77649
|
+
* AUTO-GENERATED FILE. DO NOT MODIFY.
|
|
77650
|
+
*/
|
|
77651
|
+
|
|
77652
|
+
/*
|
|
77653
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
|
77654
|
+
* or more contributor license agreements. See the NOTICE file
|
|
77655
|
+
* distributed with this work for additional information
|
|
77656
|
+
* regarding copyright ownership. The ASF licenses this file
|
|
77657
|
+
* to you under the Apache License, Version 2.0 (the
|
|
77658
|
+
* "License"); you may not use this file except in compliance
|
|
77659
|
+
* with the License. You may obtain a copy of the License at
|
|
77660
|
+
*
|
|
77661
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
77662
|
+
*
|
|
77663
|
+
* Unless required by applicable law or agreed to in writing,
|
|
77664
|
+
* software distributed under the License is distributed on an
|
|
77665
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
77666
|
+
* KIND, either express or implied. See the License for the
|
|
77667
|
+
* specific language governing permissions and limitations
|
|
77668
|
+
* under the License.
|
|
77669
|
+
*/
|
|
77670
|
+
|
|
77671
|
+
/**
|
|
77672
|
+
* LegendVisualProvider is an bridge that pick encoded color from data and
|
|
77673
|
+
* provide to the legend component.
|
|
77674
|
+
*/
|
|
77675
|
+
var LegendVisualProvider =
|
|
77676
|
+
/** @class */
|
|
77677
|
+
function () {
|
|
77678
|
+
function LegendVisualProvider( // Function to get data after filtered. It stores all the encoding info
|
|
77679
|
+
getDataWithEncodedVisual, // Function to get raw data before filtered.
|
|
77680
|
+
getRawData) {
|
|
77681
|
+
this._getDataWithEncodedVisual = getDataWithEncodedVisual;
|
|
77682
|
+
this._getRawData = getRawData;
|
|
77683
|
+
}
|
|
77684
|
+
|
|
77685
|
+
LegendVisualProvider.prototype.getAllNames = function () {
|
|
77686
|
+
var rawData = this._getRawData(); // We find the name from the raw data. In case it's filtered by the legend component.
|
|
77687
|
+
// Normally, the name can be found in rawData, but can't be found in filtered data will display as gray.
|
|
77688
|
+
|
|
77689
|
+
|
|
77690
|
+
return rawData.mapArray(rawData.getName);
|
|
77691
|
+
};
|
|
77692
|
+
|
|
77693
|
+
LegendVisualProvider.prototype.containName = function (name) {
|
|
77694
|
+
var rawData = this._getRawData();
|
|
77695
|
+
|
|
77696
|
+
return rawData.indexOfName(name) >= 0;
|
|
77697
|
+
};
|
|
77698
|
+
|
|
77699
|
+
LegendVisualProvider.prototype.indexOfName = function (name) {
|
|
77700
|
+
// Only get data when necessary.
|
|
77701
|
+
// Because LegendVisualProvider constructor may be new in the stage that data is not prepared yet.
|
|
77702
|
+
// Invoking Series#getData immediately will throw an error.
|
|
77703
|
+
var dataWithEncodedVisual = this._getDataWithEncodedVisual();
|
|
77704
|
+
|
|
77705
|
+
return dataWithEncodedVisual.indexOfName(name);
|
|
77706
|
+
};
|
|
77707
|
+
|
|
77708
|
+
LegendVisualProvider.prototype.getItemVisual = function (dataIndex, key) {
|
|
77709
|
+
// Get encoded visual properties from final filtered data.
|
|
77710
|
+
var dataWithEncodedVisual = this._getDataWithEncodedVisual();
|
|
77711
|
+
|
|
77712
|
+
return dataWithEncodedVisual.getItemVisual(dataIndex, key);
|
|
77713
|
+
};
|
|
77714
|
+
|
|
77715
|
+
return LegendVisualProvider;
|
|
77716
|
+
}();
|
|
77717
|
+
|
|
77718
|
+
var LegendVisualProvider$1 = LegendVisualProvider;
|
|
77719
|
+
|
|
77720
|
+
var PieSeriesModel =
|
|
77721
|
+
/** @class */
|
|
77722
|
+
function (_super) {
|
|
77723
|
+
__extends$1(PieSeriesModel, _super);
|
|
77724
|
+
|
|
77725
|
+
function PieSeriesModel() {
|
|
77726
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77727
|
+
}
|
|
77728
|
+
/**
|
|
77729
|
+
* @overwrite
|
|
77730
|
+
*/
|
|
77731
|
+
|
|
77732
|
+
|
|
77733
|
+
PieSeriesModel.prototype.init = function (option) {
|
|
77734
|
+
_super.prototype.init.apply(this, arguments); // Enable legend selection for each data item
|
|
77735
|
+
// Use a function instead of direct access because data reference may changed
|
|
77736
|
+
|
|
77737
|
+
|
|
77738
|
+
this.legendVisualProvider = new LegendVisualProvider$1(bind$1(this.getData, this), bind$1(this.getRawData, this));
|
|
77739
|
+
|
|
77740
|
+
this._defaultLabelLine(option);
|
|
77741
|
+
};
|
|
77742
|
+
/**
|
|
77743
|
+
* @overwrite
|
|
77744
|
+
*/
|
|
77745
|
+
|
|
77746
|
+
|
|
77747
|
+
PieSeriesModel.prototype.mergeOption = function () {
|
|
77748
|
+
_super.prototype.mergeOption.apply(this, arguments);
|
|
77749
|
+
};
|
|
77750
|
+
/**
|
|
77751
|
+
* @overwrite
|
|
77752
|
+
*/
|
|
77753
|
+
|
|
77754
|
+
|
|
77755
|
+
PieSeriesModel.prototype.getInitialData = function () {
|
|
77756
|
+
var data = createSeriesDataSimply(this, {
|
|
77757
|
+
coordDimensions: ['value'],
|
|
77758
|
+
encodeDefaulter: curry(makeSeriesEncodeForNameBased, this)
|
|
77759
|
+
});
|
|
77760
|
+
var valueList = [];
|
|
77761
|
+
data.each(data.mapDimension('value'), function (value) {
|
|
77762
|
+
valueList.push(value);
|
|
77763
|
+
});
|
|
77764
|
+
this.seats = getPercentSeats(valueList, data.hostModel.get('percentPrecision'));
|
|
77765
|
+
return data;
|
|
77766
|
+
};
|
|
77767
|
+
/**
|
|
77768
|
+
* @overwrite
|
|
77769
|
+
*/
|
|
77770
|
+
|
|
77771
|
+
|
|
77772
|
+
PieSeriesModel.prototype.getDataParams = function (dataIndex) {
|
|
77773
|
+
var params = _super.prototype.getDataParams.call(this, dataIndex);
|
|
77774
|
+
|
|
77775
|
+
params.percent = this.seats[dataIndex];
|
|
77776
|
+
params.$vars.push('percent');
|
|
77777
|
+
return params;
|
|
77778
|
+
};
|
|
77779
|
+
|
|
77780
|
+
PieSeriesModel.prototype._defaultLabelLine = function (option) {
|
|
77781
|
+
// Extend labelLine emphasis
|
|
77782
|
+
defaultEmphasis(option, 'labelLine', ['show']);
|
|
77783
|
+
var labelLineNormalOpt = option.labelLine;
|
|
77784
|
+
var labelLineEmphasisOpt = option.emphasis.labelLine; // Not show label line if `label.normal.show = false`
|
|
77785
|
+
|
|
77786
|
+
labelLineNormalOpt.show = labelLineNormalOpt.show && option.label.show;
|
|
77787
|
+
labelLineEmphasisOpt.show = labelLineEmphasisOpt.show && option.emphasis.label.show;
|
|
77788
|
+
};
|
|
77789
|
+
|
|
77790
|
+
PieSeriesModel.type = 'series.pie';
|
|
77791
|
+
PieSeriesModel.defaultOption = {
|
|
77792
|
+
// zlevel: 0,
|
|
77793
|
+
z: 2,
|
|
77794
|
+
legendHoverLink: true,
|
|
77795
|
+
colorBy: 'data',
|
|
77796
|
+
// 默认全局居中
|
|
77797
|
+
center: ['50%', '50%'],
|
|
77798
|
+
radius: [0, '75%'],
|
|
77799
|
+
// 默认顺时针
|
|
77800
|
+
clockwise: true,
|
|
77801
|
+
startAngle: 90,
|
|
77802
|
+
// 最小角度改为0
|
|
77803
|
+
minAngle: 0,
|
|
77804
|
+
// If the angle of a sector less than `minShowLabelAngle`,
|
|
77805
|
+
// the label will not be displayed.
|
|
77806
|
+
minShowLabelAngle: 0,
|
|
77807
|
+
// 选中时扇区偏移量
|
|
77808
|
+
selectedOffset: 10,
|
|
77809
|
+
// 选择模式,默认关闭,可选single,multiple
|
|
77810
|
+
// selectedMode: false,
|
|
77811
|
+
// 南丁格尔玫瑰图模式,'radius'(半径) | 'area'(面积)
|
|
77812
|
+
// roseType: null,
|
|
77813
|
+
percentPrecision: 2,
|
|
77814
|
+
// If still show when all data zero.
|
|
77815
|
+
stillShowZeroSum: true,
|
|
77816
|
+
// cursor: null,
|
|
77817
|
+
left: 0,
|
|
77818
|
+
top: 0,
|
|
77819
|
+
right: 0,
|
|
77820
|
+
bottom: 0,
|
|
77821
|
+
width: null,
|
|
77822
|
+
height: null,
|
|
77823
|
+
label: {
|
|
77824
|
+
// color: 'inherit',
|
|
77825
|
+
// If rotate around circle
|
|
77826
|
+
rotate: 0,
|
|
77827
|
+
show: true,
|
|
77828
|
+
overflow: 'truncate',
|
|
77829
|
+
// 'outer', 'inside', 'center'
|
|
77830
|
+
position: 'outer',
|
|
77831
|
+
// 'none', 'labelLine', 'edge'. Works only when position is 'outer'
|
|
77832
|
+
alignTo: 'none',
|
|
77833
|
+
// Closest distance between label and chart edge.
|
|
77834
|
+
// Works only position is 'outer' and alignTo is 'edge'.
|
|
77835
|
+
edgeDistance: '25%',
|
|
77836
|
+
// Works only position is 'outer' and alignTo is not 'edge'.
|
|
77837
|
+
bleedMargin: 10,
|
|
77838
|
+
// Distance between text and label line.
|
|
77839
|
+
distanceToLabelLine: 5 // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调
|
|
77840
|
+
// 默认使用全局文本样式,详见TEXTSTYLE
|
|
77841
|
+
// distance: 当position为inner时有效,为label位置到圆心的距离与圆半径(环状图为内外半径和)的比例系数
|
|
77842
|
+
|
|
77843
|
+
},
|
|
77844
|
+
// Enabled when label.normal.position is 'outer'
|
|
77845
|
+
labelLine: {
|
|
77846
|
+
show: true,
|
|
77847
|
+
// 引导线两段中的第一段长度
|
|
77848
|
+
length: 15,
|
|
77849
|
+
// 引导线两段中的第二段长度
|
|
77850
|
+
length2: 15,
|
|
77851
|
+
smooth: false,
|
|
77852
|
+
minTurnAngle: 90,
|
|
77853
|
+
maxSurfaceAngle: 90,
|
|
77854
|
+
lineStyle: {
|
|
77855
|
+
// color: 各异,
|
|
77856
|
+
width: 1,
|
|
77857
|
+
type: 'solid'
|
|
77858
|
+
}
|
|
77859
|
+
},
|
|
77860
|
+
itemStyle: {
|
|
77861
|
+
borderWidth: 1,
|
|
77862
|
+
borderJoin: 'round'
|
|
77863
|
+
},
|
|
77864
|
+
showEmptyCircle: true,
|
|
77865
|
+
emptyCircleStyle: {
|
|
77866
|
+
color: 'lightgray',
|
|
77867
|
+
opacity: 1
|
|
77868
|
+
},
|
|
77869
|
+
labelLayout: {
|
|
77870
|
+
// Hide the overlapped label.
|
|
77871
|
+
hideOverlap: true
|
|
77872
|
+
},
|
|
77873
|
+
emphasis: {
|
|
77874
|
+
scale: true,
|
|
77875
|
+
scaleSize: 5
|
|
77876
|
+
},
|
|
77877
|
+
// If use strategy to avoid label overlapping
|
|
77878
|
+
avoidLabelOverlap: true,
|
|
77879
|
+
// Animation type. Valid values: expansion, scale
|
|
77880
|
+
animationType: 'expansion',
|
|
77881
|
+
animationDuration: 1000,
|
|
77882
|
+
// Animation type when update. Valid values: transition, expansion
|
|
77883
|
+
animationTypeUpdate: 'transition',
|
|
77884
|
+
animationEasingUpdate: 'cubicInOut',
|
|
77885
|
+
animationDurationUpdate: 500,
|
|
77886
|
+
animationEasing: 'cubicInOut'
|
|
77887
|
+
};
|
|
77888
|
+
return PieSeriesModel;
|
|
77889
|
+
}(SeriesModel$1);
|
|
77890
|
+
|
|
77891
|
+
var PieSeriesModel$1 = PieSeriesModel;
|
|
77892
|
+
|
|
77893
|
+
function negativeDataFilter(seriesType) {
|
|
77894
|
+
return {
|
|
77895
|
+
seriesType: seriesType,
|
|
77896
|
+
reset: function (seriesModel, ecModel) {
|
|
77897
|
+
var data = seriesModel.getData();
|
|
77898
|
+
data.filterSelf(function (idx) {
|
|
77899
|
+
// handle negative value condition
|
|
77900
|
+
var valueDim = data.mapDimension('value');
|
|
77901
|
+
var curValue = data.get(valueDim, idx);
|
|
77902
|
+
|
|
77903
|
+
if (isNumber(curValue) && !isNaN(curValue) && curValue < 0) {
|
|
77904
|
+
return false;
|
|
77905
|
+
}
|
|
77906
|
+
|
|
77907
|
+
return true;
|
|
77908
|
+
});
|
|
77909
|
+
}
|
|
77910
|
+
};
|
|
77911
|
+
}
|
|
77912
|
+
|
|
77913
|
+
function install$7(registers) {
|
|
77914
|
+
registers.registerChartView(PieView$1);
|
|
77915
|
+
registers.registerSeriesModel(PieSeriesModel$1);
|
|
77916
|
+
createLegacyDataSelectAction('pie', registers.registerAction);
|
|
77917
|
+
registers.registerLayout(curry(pieLayout, 'pie'));
|
|
77918
|
+
registers.registerProcessor(dataFilter('pie'));
|
|
77919
|
+
registers.registerProcessor(negativeDataFilter('pie'));
|
|
77920
|
+
}
|
|
77921
|
+
|
|
76033
77922
|
var GridModel =
|
|
76034
77923
|
/** @class */
|
|
76035
77924
|
function (_super) {
|
|
@@ -82810,13 +84699,13 @@ function install(registers) {
|
|
|
82810
84699
|
registers.registerPainter('canvas', CanvasPainter$1);
|
|
82811
84700
|
}
|
|
82812
84701
|
|
|
82813
|
-
var css$
|
|
84702
|
+
var css$5 = ".BaseVerticalBarChart_module_root__db36f9d1 {\n width: \"100%\";\n}";
|
|
82814
84703
|
var modules_8757388c = {"root":"BaseVerticalBarChart_module_root__db36f9d1"};
|
|
82815
|
-
n(css$
|
|
84704
|
+
n(css$5,{});
|
|
82816
84705
|
|
|
82817
|
-
use([install$2, install$3, install$4, install$1, install$
|
|
84706
|
+
use([install$2, install$3, install$4, install$1, install$8, install]);
|
|
82818
84707
|
var BaseVerticalBarChart = function BaseVerticalBarChart(props) {
|
|
82819
|
-
var _seriesData$chartData, _seriesData$
|
|
84708
|
+
var _seriesOption$length, _seriesData$metaData$, _seriesData$metaData, _seriesData$metaData$2, _seriesData$chartData, _seriesData$chartData9;
|
|
82820
84709
|
var title = props.title,
|
|
82821
84710
|
gridContainLabel = props.gridContainLabel,
|
|
82822
84711
|
gridOptions = props.gridOptions,
|
|
@@ -82830,13 +84719,16 @@ var BaseVerticalBarChart = function BaseVerticalBarChart(props) {
|
|
|
82830
84719
|
axisColor = props.axisColor,
|
|
82831
84720
|
barWidth = props.barWidth,
|
|
82832
84721
|
cursor = props.cursor,
|
|
84722
|
+
legend = props.legend,
|
|
84723
|
+
tooltip = props.tooltip,
|
|
84724
|
+
seriesName = props.seriesName,
|
|
82833
84725
|
stacked = props.stacked,
|
|
82834
84726
|
seriesOption = props.seriesOption,
|
|
82835
84727
|
style = props.style,
|
|
82836
84728
|
className = props.className;
|
|
82837
84729
|
var seriesOptionObject = {
|
|
82838
84730
|
type: 'bar',
|
|
82839
|
-
barWidth: stacked ? barWidth : barWidth / seriesOption.length,
|
|
84731
|
+
barWidth: stacked ? barWidth : barWidth / ((_seriesOption$length = seriesOption === null || seriesOption === void 0 ? void 0 : seriesOption.length) !== null && _seriesOption$length !== void 0 ? _seriesOption$length : 1),
|
|
82840
84732
|
cursor: cursor,
|
|
82841
84733
|
stack: stacked,
|
|
82842
84734
|
groupPadding: 3,
|
|
@@ -82857,25 +84749,28 @@ var BaseVerticalBarChart = function BaseVerticalBarChart(props) {
|
|
|
82857
84749
|
itemStyle: {
|
|
82858
84750
|
borderRadius: [0, 2, 2, 0]
|
|
82859
84751
|
},
|
|
84752
|
+
name: (_seriesData$metaData$ = seriesData === null || seriesData === void 0 ? void 0 : (_seriesData$metaData = seriesData.metaData) === null || _seriesData$metaData === void 0 ? void 0 : (_seriesData$metaData$2 = _seriesData$metaData.keyData) === null || _seriesData$metaData$2 === void 0 ? void 0 : _seriesData$metaData$2.x1) !== null && _seriesData$metaData$ !== void 0 ? _seriesData$metaData$ : '',
|
|
82860
84753
|
data: Object.keys((_seriesData$chartData = seriesData === null || seriesData === void 0 ? void 0 : seriesData.chartData) !== null && _seriesData$chartData !== void 0 ? _seriesData$chartData : {}).map(function (key) {
|
|
82861
|
-
var _seriesData$chartData2, _seriesData$chartData3;
|
|
84754
|
+
var _seriesData$chartData2, _seriesData$chartData3, _seriesData$chartData4;
|
|
82862
84755
|
return {
|
|
82863
|
-
value: seriesData === null || seriesData === void 0 ? void 0 : (_seriesData$
|
|
84756
|
+
value: (_seriesData$chartData2 = seriesData === null || seriesData === void 0 ? void 0 : (_seriesData$chartData3 = seriesData.chartData) === null || _seriesData$chartData3 === void 0 ? void 0 : (_seriesData$chartData4 = _seriesData$chartData3[key]) === null || _seriesData$chartData4 === void 0 ? void 0 : _seriesData$chartData4.x1) !== null && _seriesData$chartData2 !== void 0 ? _seriesData$chartData2 : ''
|
|
82864
84757
|
};
|
|
82865
84758
|
})
|
|
82866
84759
|
};
|
|
82867
84760
|
var generateSeries = function generateSeries() {
|
|
82868
84761
|
return seriesOption.map(function (objectData, index) {
|
|
82869
|
-
var _objectData$label, _seriesData$
|
|
84762
|
+
var _seriesOptionObject$l, _objectData$label, _seriesData$chartData5;
|
|
82870
84763
|
return _objectSpread2(_objectSpread2(_objectSpread2({}, seriesOptionObject), objectData), {}, {
|
|
82871
|
-
label: _objectSpread2(_objectSpread2({}, seriesOptionObject.label), (_objectData$label = objectData === null || objectData === void 0 ? void 0 : objectData.label) !== null && _objectData$label !== void 0 ? _objectData$label : {}),
|
|
82872
|
-
|
|
82873
|
-
|
|
84764
|
+
label: _objectSpread2(_objectSpread2({}, (_seriesOptionObject$l = seriesOptionObject === null || seriesOptionObject === void 0 ? void 0 : seriesOptionObject.label) !== null && _seriesOptionObject$l !== void 0 ? _seriesOptionObject$l : {}), (_objectData$label = objectData === null || objectData === void 0 ? void 0 : objectData.label) !== null && _objectData$label !== void 0 ? _objectData$label : {}),
|
|
84765
|
+
name: seriesName(index),
|
|
84766
|
+
data: Object.keys((_seriesData$chartData5 = seriesData === null || seriesData === void 0 ? void 0 : seriesData.chartData) !== null && _seriesData$chartData5 !== void 0 ? _seriesData$chartData5 : {}).map(function (key, subIndex) {
|
|
84767
|
+
var _seriesData$chartData6, _seriesData$chartData7, _seriesData$chartData8, _objectData$barColor$, _objectData$barColor, _objectData$color, _seriesOption$subInde, _seriesOption$subInde2;
|
|
82874
84768
|
return {
|
|
82875
|
-
value: seriesData === null || seriesData === void 0 ? void 0 : (_seriesData$
|
|
84769
|
+
value: (_seriesData$chartData6 = seriesData === null || seriesData === void 0 ? void 0 : (_seriesData$chartData7 = seriesData.chartData) === null || _seriesData$chartData7 === void 0 ? void 0 : (_seriesData$chartData8 = _seriesData$chartData7[key]) === null || _seriesData$chartData8 === void 0 ? void 0 : _seriesData$chartData8["x".concat(index + 1)]) !== null && _seriesData$chartData6 !== void 0 ? _seriesData$chartData6 : '',
|
|
82876
84770
|
itemStyle: {
|
|
82877
|
-
color: (objectData === null || objectData === void 0 ? void 0 : (_objectData$barColor = objectData.barColor) === null || _objectData$barColor === void 0 ? void 0 : _objectData$barColor[subIndex]) || (objectData === null || objectData === void 0 ? void 0 : objectData.color)
|
|
82878
|
-
}
|
|
84771
|
+
color: ((_objectData$barColor$ = objectData === null || objectData === void 0 ? void 0 : (_objectData$barColor = objectData.barColor) === null || _objectData$barColor === void 0 ? void 0 : _objectData$barColor[subIndex]) !== null && _objectData$barColor$ !== void 0 ? _objectData$barColor$ : '') || ((_objectData$color = objectData === null || objectData === void 0 ? void 0 : objectData.color) !== null && _objectData$color !== void 0 ? _objectData$color : '')
|
|
84772
|
+
},
|
|
84773
|
+
tooltip: _objectSpread2({}, (_seriesOption$subInde = (_seriesOption$subInde2 = seriesOption[subIndex]) === null || _seriesOption$subInde2 === void 0 ? void 0 : _seriesOption$subInde2.tooltip) !== null && _seriesOption$subInde !== void 0 ? _seriesOption$subInde : {})
|
|
82879
84774
|
};
|
|
82880
84775
|
})
|
|
82881
84776
|
});
|
|
@@ -82890,10 +84785,12 @@ var BaseVerticalBarChart = function BaseVerticalBarChart(props) {
|
|
|
82890
84785
|
containLabel: gridContainLabel
|
|
82891
84786
|
}, gridOptions),
|
|
82892
84787
|
xAxis: {
|
|
82893
|
-
data: Object.keys((_seriesData$
|
|
84788
|
+
data: Object.keys((_seriesData$chartData9 = seriesData === null || seriesData === void 0 ? void 0 : seriesData.chartData) !== null && _seriesData$chartData9 !== void 0 ? _seriesData$chartData9 : {}),
|
|
82894
84789
|
show: xAxisShow,
|
|
82895
84790
|
type: 'category'
|
|
82896
84791
|
},
|
|
84792
|
+
legend: _objectSpread2({}, legend),
|
|
84793
|
+
tooltip: _objectSpread2({}, tooltip),
|
|
82897
84794
|
yAxis: {
|
|
82898
84795
|
type: 'value',
|
|
82899
84796
|
axisLabel: {
|
|
@@ -82929,17 +84826,20 @@ BaseVerticalBarChart.propTypes = {
|
|
|
82929
84826
|
gridContainLabel: propTypes$1.exports.bool,
|
|
82930
84827
|
gridOptions: propTypes$1.exports.object,
|
|
82931
84828
|
xAxisShow: propTypes$1.exports.bool,
|
|
84829
|
+
tooltip: propTypes$1.exports.object,
|
|
82932
84830
|
seriesData: propTypes$1.exports.shape({
|
|
82933
84831
|
chartData: propTypes$1.exports.object,
|
|
82934
84832
|
metaData: propTypes$1.exports.object
|
|
82935
84833
|
}),
|
|
82936
|
-
onEvents: propTypes$1.exports.
|
|
84834
|
+
onEvents: propTypes$1.exports.func,
|
|
82937
84835
|
yAxisLabelShow: propTypes$1.exports.bool,
|
|
82938
84836
|
ySplitLineShow: propTypes$1.exports.bool,
|
|
82939
84837
|
yAxisLineShow: propTypes$1.exports.bool,
|
|
82940
84838
|
yAxisTickShow: propTypes$1.exports.bool,
|
|
82941
84839
|
axisColor: propTypes$1.exports.string,
|
|
82942
84840
|
barWidth: propTypes$1.exports.string,
|
|
84841
|
+
legend: propTypes$1.exports.object,
|
|
84842
|
+
seriesName: propTypes$1.exports.func,
|
|
82943
84843
|
cursor: propTypes$1.exports.string,
|
|
82944
84844
|
stacked: propTypes$1.exports.bool,
|
|
82945
84845
|
seriesOption: propTypes$1.exports.arrayOf(propTypes$1.exports.shape),
|
|
@@ -82956,14 +84856,21 @@ BaseVerticalBarChart.defaultProps = {
|
|
|
82956
84856
|
top: 5
|
|
82957
84857
|
},
|
|
82958
84858
|
xAxisShow: false,
|
|
84859
|
+
tooltip: {
|
|
84860
|
+
trigger: 'item'
|
|
84861
|
+
},
|
|
82959
84862
|
seriesData: {},
|
|
82960
|
-
onEvents: {},
|
|
84863
|
+
onEvents: function onEvents() {},
|
|
82961
84864
|
yAxisLabelShow: false,
|
|
82962
84865
|
ySplitLineShow: false,
|
|
82963
84866
|
yAxisLineShow: false,
|
|
82964
84867
|
yAxisTickShow: false,
|
|
82965
84868
|
axisColor: 'grey',
|
|
82966
84869
|
barWidth: '50%',
|
|
84870
|
+
seriesName: function seriesName() {},
|
|
84871
|
+
legend: {
|
|
84872
|
+
show: true
|
|
84873
|
+
},
|
|
82967
84874
|
cursor: 'default',
|
|
82968
84875
|
stacked: true,
|
|
82969
84876
|
seriesOption: [{
|
|
@@ -82976,13 +84883,13 @@ BaseVerticalBarChart.defaultProps = {
|
|
|
82976
84883
|
className: ''
|
|
82977
84884
|
};
|
|
82978
84885
|
|
|
82979
|
-
var css$
|
|
84886
|
+
var css$4 = ".BaseHorizontalBarChart_module_root__75f8867a {\n width: \"100%\";\n}";
|
|
82980
84887
|
var modules_8904c6a0 = {"root":"BaseHorizontalBarChart_module_root__75f8867a"};
|
|
82981
|
-
n(css$
|
|
84888
|
+
n(css$4,{});
|
|
82982
84889
|
|
|
82983
|
-
use([install$2, install$3, install$4, install$1, install$
|
|
84890
|
+
use([install$2, install$3, install$4, install$1, install$8, install]);
|
|
82984
84891
|
var BaseHorizontalBarChart = function BaseHorizontalBarChart(props) {
|
|
82985
|
-
var _seriesData$chartData, _seriesData$
|
|
84892
|
+
var _seriesOption$length, _seriesData$metaData$, _seriesData$metaData, _seriesData$metaData$2, _seriesData$chartData, _seriesData$chartData9;
|
|
82986
84893
|
var title = props.title,
|
|
82987
84894
|
gridContainLabel = props.gridContainLabel,
|
|
82988
84895
|
gridOptions = props.gridOptions,
|
|
@@ -82995,13 +84902,16 @@ var BaseHorizontalBarChart = function BaseHorizontalBarChart(props) {
|
|
|
82995
84902
|
yAxisTickShow = props.yAxisTickShow,
|
|
82996
84903
|
barWidth = props.barWidth,
|
|
82997
84904
|
cursor = props.cursor,
|
|
84905
|
+
legend = props.legend,
|
|
84906
|
+
tooltip = props.tooltip,
|
|
84907
|
+
seriesName = props.seriesName,
|
|
82998
84908
|
stacked = props.stacked,
|
|
82999
84909
|
seriesOption = props.seriesOption,
|
|
83000
84910
|
style = props.style,
|
|
83001
84911
|
className = props.className;
|
|
83002
84912
|
var seriesOptionObject = {
|
|
83003
84913
|
type: 'bar',
|
|
83004
|
-
barWidth: stacked ? barWidth : barWidth / seriesOption.length,
|
|
84914
|
+
barWidth: stacked ? barWidth : barWidth / ((_seriesOption$length = seriesOption === null || seriesOption === void 0 ? void 0 : seriesOption.length) !== null && _seriesOption$length !== void 0 ? _seriesOption$length : 1),
|
|
83005
84915
|
cursor: cursor,
|
|
83006
84916
|
stack: stacked,
|
|
83007
84917
|
groupPadding: 3,
|
|
@@ -83020,19 +84930,27 @@ var BaseHorizontalBarChart = function BaseHorizontalBarChart(props) {
|
|
|
83020
84930
|
itemStyle: {
|
|
83021
84931
|
borderRadius: [0, 2, 2, 0]
|
|
83022
84932
|
},
|
|
84933
|
+
name: (_seriesData$metaData$ = seriesData === null || seriesData === void 0 ? void 0 : (_seriesData$metaData = seriesData.metaData) === null || _seriesData$metaData === void 0 ? void 0 : (_seriesData$metaData$2 = _seriesData$metaData.keyData) === null || _seriesData$metaData$2 === void 0 ? void 0 : _seriesData$metaData$2.x1) !== null && _seriesData$metaData$ !== void 0 ? _seriesData$metaData$ : '',
|
|
83023
84934
|
data: Object.keys((_seriesData$chartData = seriesData === null || seriesData === void 0 ? void 0 : seriesData.chartData) !== null && _seriesData$chartData !== void 0 ? _seriesData$chartData : {}).map(function (key) {
|
|
83024
|
-
var _seriesData$chartData2, _seriesData$chartData3;
|
|
83025
|
-
return seriesData === null || seriesData === void 0 ? void 0 : (_seriesData$
|
|
84935
|
+
var _seriesData$chartData2, _seriesData$chartData3, _seriesData$chartData4;
|
|
84936
|
+
return (_seriesData$chartData2 = seriesData === null || seriesData === void 0 ? void 0 : (_seriesData$chartData3 = seriesData.chartData) === null || _seriesData$chartData3 === void 0 ? void 0 : (_seriesData$chartData4 = _seriesData$chartData3[key]) === null || _seriesData$chartData4 === void 0 ? void 0 : _seriesData$chartData4.x1) !== null && _seriesData$chartData2 !== void 0 ? _seriesData$chartData2 : '';
|
|
83026
84937
|
})
|
|
83027
84938
|
};
|
|
83028
84939
|
var generateSeries = function generateSeries() {
|
|
83029
84940
|
return seriesOption.map(function (objectData, index) {
|
|
83030
|
-
var _objectData$label, _seriesData$
|
|
84941
|
+
var _seriesOptionObject$l, _objectData$label, _seriesData$chartData5;
|
|
83031
84942
|
return _objectSpread2(_objectSpread2(_objectSpread2({}, seriesOptionObject), objectData), {}, {
|
|
83032
|
-
label: _objectSpread2(_objectSpread2({}, seriesOptionObject.label), (_objectData$label = objectData === null || objectData === void 0 ? void 0 : objectData.label) !== null && _objectData$label !== void 0 ? _objectData$label : {}),
|
|
83033
|
-
|
|
83034
|
-
|
|
83035
|
-
|
|
84943
|
+
label: _objectSpread2(_objectSpread2({}, (_seriesOptionObject$l = seriesOptionObject === null || seriesOptionObject === void 0 ? void 0 : seriesOptionObject.label) !== null && _seriesOptionObject$l !== void 0 ? _seriesOptionObject$l : {}), (_objectData$label = objectData === null || objectData === void 0 ? void 0 : objectData.label) !== null && _objectData$label !== void 0 ? _objectData$label : {}),
|
|
84944
|
+
name: seriesName(index),
|
|
84945
|
+
data: Object.keys((_seriesData$chartData5 = seriesData === null || seriesData === void 0 ? void 0 : seriesData.chartData) !== null && _seriesData$chartData5 !== void 0 ? _seriesData$chartData5 : {}).map(function (key, subIndex) {
|
|
84946
|
+
var _seriesData$chartData6, _seriesData$chartData7, _seriesData$chartData8, _objectData$barColor$, _objectData$barColor, _objectData$color, _seriesOption$subInde, _seriesOption$subInde2;
|
|
84947
|
+
return {
|
|
84948
|
+
value: (_seriesData$chartData6 = seriesData === null || seriesData === void 0 ? void 0 : (_seriesData$chartData7 = seriesData.chartData) === null || _seriesData$chartData7 === void 0 ? void 0 : (_seriesData$chartData8 = _seriesData$chartData7[key]) === null || _seriesData$chartData8 === void 0 ? void 0 : _seriesData$chartData8["x".concat(index + 1)]) !== null && _seriesData$chartData6 !== void 0 ? _seriesData$chartData6 : '',
|
|
84949
|
+
itemStyle: {
|
|
84950
|
+
color: ((_objectData$barColor$ = objectData === null || objectData === void 0 ? void 0 : (_objectData$barColor = objectData.barColor) === null || _objectData$barColor === void 0 ? void 0 : _objectData$barColor[subIndex]) !== null && _objectData$barColor$ !== void 0 ? _objectData$barColor$ : '') || ((_objectData$color = objectData === null || objectData === void 0 ? void 0 : objectData.color) !== null && _objectData$color !== void 0 ? _objectData$color : '')
|
|
84951
|
+
},
|
|
84952
|
+
tooltip: _objectSpread2({}, (_seriesOption$subInde = (_seriesOption$subInde2 = seriesOption[subIndex]) === null || _seriesOption$subInde2 === void 0 ? void 0 : _seriesOption$subInde2.tooltip) !== null && _seriesOption$subInde !== void 0 ? _seriesOption$subInde : {})
|
|
84953
|
+
};
|
|
83036
84954
|
})
|
|
83037
84955
|
});
|
|
83038
84956
|
});
|
|
@@ -83049,8 +84967,10 @@ var BaseHorizontalBarChart = function BaseHorizontalBarChart(props) {
|
|
|
83049
84967
|
show: xAxisShow,
|
|
83050
84968
|
type: 'value'
|
|
83051
84969
|
},
|
|
84970
|
+
legend: _objectSpread2({}, legend),
|
|
84971
|
+
tooltip: _objectSpread2({}, tooltip),
|
|
83052
84972
|
yAxis: {
|
|
83053
|
-
data: Object.keys((_seriesData$
|
|
84973
|
+
data: Object.keys((_seriesData$chartData9 = seriesData === null || seriesData === void 0 ? void 0 : seriesData.chartData) !== null && _seriesData$chartData9 !== void 0 ? _seriesData$chartData9 : {}),
|
|
83054
84974
|
type: 'category',
|
|
83055
84975
|
axisLabel: {
|
|
83056
84976
|
show: yAxisLabelShow
|
|
@@ -83080,17 +85000,20 @@ BaseHorizontalBarChart.propTypes = {
|
|
|
83080
85000
|
title: propTypes$1.exports.string,
|
|
83081
85001
|
gridContainLabel: propTypes$1.exports.bool,
|
|
83082
85002
|
gridOptions: propTypes$1.exports.object,
|
|
85003
|
+
tooltip: propTypes$1.exports.object,
|
|
83083
85004
|
xAxisShow: propTypes$1.exports.bool,
|
|
83084
85005
|
seriesData: propTypes$1.exports.shape({
|
|
83085
85006
|
chartData: propTypes$1.exports.object,
|
|
83086
85007
|
metaData: propTypes$1.exports.object
|
|
83087
85008
|
}),
|
|
83088
|
-
onEvents: propTypes$1.exports.
|
|
85009
|
+
onEvents: propTypes$1.exports.func,
|
|
83089
85010
|
yAxisLabelShow: propTypes$1.exports.bool,
|
|
83090
85011
|
ySplitLineShow: propTypes$1.exports.bool,
|
|
83091
85012
|
yAxisLineShow: propTypes$1.exports.bool,
|
|
83092
85013
|
yAxisTickShow: propTypes$1.exports.bool,
|
|
83093
85014
|
barWidth: propTypes$1.exports.string,
|
|
85015
|
+
legend: propTypes$1.exports.object,
|
|
85016
|
+
seriesName: propTypes$1.exports.func,
|
|
83094
85017
|
cursor: propTypes$1.exports.string,
|
|
83095
85018
|
stacked: propTypes$1.exports.bool,
|
|
83096
85019
|
seriesOption: propTypes$1.exports.objectOf(propTypes$1.exports.shape),
|
|
@@ -83107,13 +85030,20 @@ BaseHorizontalBarChart.defaultProps = {
|
|
|
83107
85030
|
top: 5
|
|
83108
85031
|
},
|
|
83109
85032
|
xAxisShow: false,
|
|
85033
|
+
tooltip: {
|
|
85034
|
+
trigger: 'item'
|
|
85035
|
+
},
|
|
83110
85036
|
seriesData: {},
|
|
83111
|
-
onEvents: {},
|
|
85037
|
+
onEvents: function onEvents() {},
|
|
83112
85038
|
yAxisLabelShow: false,
|
|
83113
85039
|
ySplitLineShow: false,
|
|
83114
85040
|
yAxisLineShow: false,
|
|
83115
85041
|
yAxisTickShow: false,
|
|
83116
85042
|
barWidth: '50%',
|
|
85043
|
+
seriesName: function seriesName() {},
|
|
85044
|
+
legend: {
|
|
85045
|
+
show: false
|
|
85046
|
+
},
|
|
83117
85047
|
cursor: 'default',
|
|
83118
85048
|
stacked: true,
|
|
83119
85049
|
seriesOption: [{
|
|
@@ -83126,9 +85056,155 @@ BaseHorizontalBarChart.defaultProps = {
|
|
|
83126
85056
|
className: ''
|
|
83127
85057
|
};
|
|
83128
85058
|
|
|
83129
|
-
var css$
|
|
85059
|
+
var css$3 = ":root {\n --white: #ffffff;\n --black: #000000;\n --dark-grey: #333333;\n --dark-grey-o-85: rgba(51, 51, 51, 0.85);\n --grey: #737373;\n --grey1: #888888;\n --grey2: #a6a6a6;\n --grey3: #bbbbbb;\n --grey4: #c4c4c4;\n --grey5: #dddddd;\n --grey6: #e8e8e8;\n --grey7: #eeeeee;\n --grey8: #f2f2f2;\n --grey9: #eff0f0;\n --grey10: #f7f7f7;\n --highlight: #0f62fe;\n --dark-blue: #001833;\n --background: #d0e2ff;\n --banyan-blue: #00037c;\n --banyan-orange: #ff892a;\n --banyan-pink: #ff1597;\n --banyan-gradient: linear-gradient(\n \t84.71deg,\n \tvar(--banyan-pink) 0.48%,\n \tvar(--banyan-orange) 99.57%\n );\n --error: #da1e28;\n --error-bg: #fff1f1;\n --error-outline: rgba(218, 30, 40, 0.08);\n --success: #24a148;\n --success-bg: #defbe6;\n --success-outline: rgba(36, 161, 72, 0.08);\n --warning: #f1c21b;\n --warning-bg: #fff8e1;\n --warning-outline: rgba(203, 160, 6, 0.08);\n --info: #0043ce;\n --info-bg: #edf5ff;\n --info-outline: #2864db98;\n}\n\n.BasePieChart_module_root__faeb32b6 {\n width: \"100%\";\n}";
|
|
85060
|
+
var modules_c20882aa = {"white":"var(--white)","black":"var(--black)","dark-grey":"var(--dark-grey)","dark-grey-o-85":"var(--dark-grey-o-85)","grey":"var(--grey)","grey1":"var(--grey1)","grey2":"var(--grey2)","grey3":"var(--grey3)","grey4":"var(--grey4)","grey5":"var(--grey5)","grey6":"var(--grey6)","grey7":"var(--grey7)","grey8":"var(--grey8)","grey9":"var(--grey9)","grey10":"var(--grey10)","highlight":"var(--highlight)","dark-blue":"var(--dark-blue)","background":"var(--background)","banyan-blue":"var(--banyan-blue)","banyan-orange":"var(--banyan-orange)","banyan-pink":"var(--banyan-pink)","banyan-gradient":"var(--banyan-gradient)","error":"var(--error)","error-bg":"var(--error-bg)","error-outline":"var(--error-outline)","success":"var(--success)","success-bg":"var(--success-bg)","success-outline":"var(--success-outline)","warning":"var(--warning)","warning-bg":"var(--warning-bg)","warning-outline":"var(--warning-outline)","info":"var(--info)","info-bg":"var(--info-bg)","info-outline":"var(--info-outline)","root":"BasePieChart_module_root__faeb32b6"};
|
|
85061
|
+
n(css$3,{});
|
|
85062
|
+
|
|
85063
|
+
use([install$2, install$3, install$4, install$1, install$7, install]);
|
|
85064
|
+
var BasePieChart = function BasePieChart(props) {
|
|
85065
|
+
var _seriesData$chartData;
|
|
85066
|
+
var title = props.title,
|
|
85067
|
+
gridOptions = props.gridOptions,
|
|
85068
|
+
tooltip = props.tooltip,
|
|
85069
|
+
seriesData = props.seriesData,
|
|
85070
|
+
semiDoughnut = props.semiDoughnut,
|
|
85071
|
+
radius = props.radius,
|
|
85072
|
+
cursor = props.cursor,
|
|
85073
|
+
showLabelLine = props.showLabelLine,
|
|
85074
|
+
itemStyle = props.itemStyle,
|
|
85075
|
+
legend = props.legend,
|
|
85076
|
+
seriesOption = props.seriesOption,
|
|
85077
|
+
style = props.style,
|
|
85078
|
+
className = props.className;
|
|
85079
|
+
var seriesOptionObject = {
|
|
85080
|
+
type: 'pie',
|
|
85081
|
+
radius: radius,
|
|
85082
|
+
legendHoverLink: false,
|
|
85083
|
+
avoidLabelOverlap: false,
|
|
85084
|
+
cursor: cursor,
|
|
85085
|
+
labelLine: {
|
|
85086
|
+
show: showLabelLine
|
|
85087
|
+
},
|
|
85088
|
+
itemStyle: _objectSpread2({}, itemStyle),
|
|
85089
|
+
data: Object.keys((_seriesData$chartData = seriesData === null || seriesData === void 0 ? void 0 : seriesData.chartData) !== null && _seriesData$chartData !== void 0 ? _seriesData$chartData : {}).map(function (key) {
|
|
85090
|
+
var _seriesData$chartData2;
|
|
85091
|
+
var temp = [];
|
|
85092
|
+
temp.push({
|
|
85093
|
+
value: seriesData === null || seriesData === void 0 ? void 0 : (_seriesData$chartData2 = seriesData.chartData) === null || _seriesData$chartData2 === void 0 ? void 0 : _seriesData$chartData2[key]
|
|
85094
|
+
});
|
|
85095
|
+
return temp;
|
|
85096
|
+
})
|
|
85097
|
+
};
|
|
85098
|
+
var generateSeries = function generateSeries() {
|
|
85099
|
+
var _seriesData$chartData3, _seriesData$chartData7;
|
|
85100
|
+
var semiDoughnutValue = 0;
|
|
85101
|
+
return _objectSpread2(_objectSpread2(_objectSpread2({}, seriesOptionObject), seriesOption), {}, {
|
|
85102
|
+
startAngle: semiDoughnut ? 180 : 90,
|
|
85103
|
+
data: semiDoughnut ? [].concat(_toConsumableArray(Object.keys((_seriesData$chartData3 = seriesData === null || seriesData === void 0 ? void 0 : seriesData.chartData) !== null && _seriesData$chartData3 !== void 0 ? _seriesData$chartData3 : {}).map(function (key, subIndex) {
|
|
85104
|
+
var _seriesData$chartData4, _seriesData$chartData5, _seriesData$chartData6, _seriesData$metaData, _seriesOption$subInde, _seriesOption$subInde2, _seriesOption$subInde3, _seriesOption$subInde4;
|
|
85105
|
+
semiDoughnutValue += (_seriesData$chartData4 = seriesData === null || seriesData === void 0 ? void 0 : (_seriesData$chartData5 = seriesData.chartData) === null || _seriesData$chartData5 === void 0 ? void 0 : _seriesData$chartData5[key]) !== null && _seriesData$chartData4 !== void 0 ? _seriesData$chartData4 : 0;
|
|
85106
|
+
return {
|
|
85107
|
+
value: seriesData === null || seriesData === void 0 ? void 0 : (_seriesData$chartData6 = seriesData.chartData) === null || _seriesData$chartData6 === void 0 ? void 0 : _seriesData$chartData6[key],
|
|
85108
|
+
name: seriesData === null || seriesData === void 0 ? void 0 : (_seriesData$metaData = seriesData.metaData) === null || _seriesData$metaData === void 0 ? void 0 : _seriesData$metaData.keyData[key],
|
|
85109
|
+
itemStyle: _objectSpread2({}, (_seriesOption$subInde = seriesOption === null || seriesOption === void 0 ? void 0 : (_seriesOption$subInde2 = seriesOption[subIndex]) === null || _seriesOption$subInde2 === void 0 ? void 0 : _seriesOption$subInde2.itemStyle) !== null && _seriesOption$subInde !== void 0 ? _seriesOption$subInde : {}),
|
|
85110
|
+
label: _objectSpread2({}, seriesOption === null || seriesOption === void 0 ? void 0 : (_seriesOption$subInde3 = seriesOption[subIndex]) === null || _seriesOption$subInde3 === void 0 ? void 0 : _seriesOption$subInde3.label),
|
|
85111
|
+
tooltip: _objectSpread2({}, seriesOption === null || seriesOption === void 0 ? void 0 : (_seriesOption$subInde4 = seriesOption[subIndex]) === null || _seriesOption$subInde4 === void 0 ? void 0 : _seriesOption$subInde4.tooltip)
|
|
85112
|
+
};
|
|
85113
|
+
})), [{
|
|
85114
|
+
value: semiDoughnutValue,
|
|
85115
|
+
name: '',
|
|
85116
|
+
itemStyle: {
|
|
85117
|
+
opacity: 0
|
|
85118
|
+
},
|
|
85119
|
+
tooltip: {
|
|
85120
|
+
show: false
|
|
85121
|
+
}
|
|
85122
|
+
}]) : Object.keys((_seriesData$chartData7 = seriesData === null || seriesData === void 0 ? void 0 : seriesData.chartData) !== null && _seriesData$chartData7 !== void 0 ? _seriesData$chartData7 : {}).map(function (key, subIndex) {
|
|
85123
|
+
var _seriesData$chartData8, _seriesData$metaData2, _seriesData$metaData3, _seriesOption$subInde5, _seriesOption$subInde6, _seriesOption$subInde7;
|
|
85124
|
+
return {
|
|
85125
|
+
value: seriesData === null || seriesData === void 0 ? void 0 : (_seriesData$chartData8 = seriesData.chartData) === null || _seriesData$chartData8 === void 0 ? void 0 : _seriesData$chartData8[key],
|
|
85126
|
+
name: seriesData === null || seriesData === void 0 ? void 0 : (_seriesData$metaData2 = seriesData.metaData) === null || _seriesData$metaData2 === void 0 ? void 0 : (_seriesData$metaData3 = _seriesData$metaData2.keyData) === null || _seriesData$metaData3 === void 0 ? void 0 : _seriesData$metaData3[key],
|
|
85127
|
+
itemStyle: _objectSpread2({}, seriesOption === null || seriesOption === void 0 ? void 0 : (_seriesOption$subInde5 = seriesOption[subIndex]) === null || _seriesOption$subInde5 === void 0 ? void 0 : _seriesOption$subInde5.itemStyle),
|
|
85128
|
+
label: _objectSpread2({}, seriesOption === null || seriesOption === void 0 ? void 0 : (_seriesOption$subInde6 = seriesOption[subIndex]) === null || _seriesOption$subInde6 === void 0 ? void 0 : _seriesOption$subInde6.label),
|
|
85129
|
+
tooltip: _objectSpread2({}, seriesOption === null || seriesOption === void 0 ? void 0 : (_seriesOption$subInde7 = seriesOption[subIndex]) === null || _seriesOption$subInde7 === void 0 ? void 0 : _seriesOption$subInde7.tooltip)
|
|
85130
|
+
};
|
|
85131
|
+
})
|
|
85132
|
+
});
|
|
85133
|
+
};
|
|
85134
|
+
return /*#__PURE__*/jsx$1(_default, {
|
|
85135
|
+
option: _objectSpread2(_objectSpread2({
|
|
85136
|
+
title: {
|
|
85137
|
+
text: title
|
|
85138
|
+
}
|
|
85139
|
+
}, gridOptions), {}, {
|
|
85140
|
+
tooltip: _objectSpread2({}, tooltip),
|
|
85141
|
+
legend: _objectSpread2({}, legend),
|
|
85142
|
+
series: generateSeries()
|
|
85143
|
+
}),
|
|
85144
|
+
echarts: echarts,
|
|
85145
|
+
notMerge: true,
|
|
85146
|
+
lazyUpdate: true,
|
|
85147
|
+
className: classes(className, modules_c20882aa.root),
|
|
85148
|
+
style: style
|
|
85149
|
+
});
|
|
85150
|
+
};
|
|
85151
|
+
BasePieChart.propTypes = {
|
|
85152
|
+
title: propTypes$1.exports.string,
|
|
85153
|
+
gridOptions: propTypes$1.exports.object,
|
|
85154
|
+
tooltip: propTypes$1.exports.object,
|
|
85155
|
+
seriesData: propTypes$1.exports.shape({
|
|
85156
|
+
chartData: propTypes$1.exports.object,
|
|
85157
|
+
metaData: propTypes$1.exports.object
|
|
85158
|
+
}),
|
|
85159
|
+
semiDoughnut: propTypes$1.exports.bool,
|
|
85160
|
+
cursor: propTypes$1.exports.string,
|
|
85161
|
+
radius: propTypes$1.exports.arrayOf(propTypes$1.exports.string),
|
|
85162
|
+
showLabelLine: propTypes$1.exports.bool,
|
|
85163
|
+
itemStyle: propTypes$1.exports.object,
|
|
85164
|
+
legend: propTypes$1.exports.object,
|
|
85165
|
+
seriesOption: propTypes$1.exports.arrayOf(propTypes$1.exports.shape),
|
|
85166
|
+
style: propTypes$1.exports.objectOf(propTypes$1.exports.shape),
|
|
85167
|
+
className: propTypes$1.exports.string
|
|
85168
|
+
};
|
|
85169
|
+
BasePieChart.defaultProps = {
|
|
85170
|
+
title: '',
|
|
85171
|
+
gridOptions: {
|
|
85172
|
+
left: 0,
|
|
85173
|
+
right: 0,
|
|
85174
|
+
bottom: 20,
|
|
85175
|
+
top: 10
|
|
85176
|
+
},
|
|
85177
|
+
tooltip: {
|
|
85178
|
+
trigger: 'item'
|
|
85179
|
+
},
|
|
85180
|
+
seriesData: {},
|
|
85181
|
+
semiDoughnut: true,
|
|
85182
|
+
cursor: 'default',
|
|
85183
|
+
radius: ['30%', '60%'],
|
|
85184
|
+
showLabelLine: false,
|
|
85185
|
+
itemStyle: {
|
|
85186
|
+
borderWidth: 5,
|
|
85187
|
+
borderColor: 'white',
|
|
85188
|
+
borderType: 'solid'
|
|
85189
|
+
},
|
|
85190
|
+
legend: {
|
|
85191
|
+
top: '80%',
|
|
85192
|
+
left: '30%',
|
|
85193
|
+
orient: 'vertical'
|
|
85194
|
+
},
|
|
85195
|
+
seriesOption: [{
|
|
85196
|
+
stackIndex: 1
|
|
85197
|
+
}],
|
|
85198
|
+
style: {
|
|
85199
|
+
width: '100%',
|
|
85200
|
+
height: '100%'
|
|
85201
|
+
},
|
|
85202
|
+
className: ''
|
|
85203
|
+
};
|
|
85204
|
+
|
|
85205
|
+
var css$2 = ".BaseWidget_module_root__57853874 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n height: 100%;\n width: 100%;\n padding: 0.25rem;\n}\n.BaseWidget_module_root__57853874 .BaseWidget_module_header__57853874 {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding: 0.25rem;\n}\n.BaseWidget_module_root__57853874 .BaseWidget_module_header__57853874 .BaseWidget_module_headerTitle__57853874 {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n}\n.BaseWidget_module_root__57853874 .BaseWidget_module_header__57853874 .BaseWidget_module_headerTitle__57853874.BaseWidget_module_noOptions__57853874 {\n flex: 1;\n}\n.BaseWidget_module_root__57853874 .BaseWidget_module_header__57853874 .BaseWidget_module_headerTitle__57853874 .BaseWidget_module_title__57853874 {\n white-space: nowrap;\n color: var(--white);\n}\n.BaseWidget_module_root__57853874 .BaseWidget_module_header__57853874 .BaseWidget_module_headerTitle__57853874 .BaseWidget_module_value__57853874 {\n white-space: nowrap;\n color: var(--white);\n}\n.BaseWidget_module_root__57853874 .BaseWidget_module_header__57853874 .BaseWidget_module_headerOptions__57853874 {\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n gap: 0.5rem;\n}\n.BaseWidget_module_root__57853874 .BaseWidget_module_header__57853874 .BaseWidget_module_headerOptions__57853874 .BaseWidget_module_dropdownHeader__57853874 [data-elem=select] {\n background-color: transparent;\n width: 100%;\n color: var(--white);\n padding: 0.07rem 0.5rem;\n}\n.BaseWidget_module_root__57853874 .BaseWidget_module_header__57853874 .BaseWidget_module_headerOptions__57853874 .BaseWidget_module_dropdownHeader__57853874 [data-elem=select] [data-elem=placeholder] {\n font-size: 0.875rem;\n color: var(--white);\n}\n.BaseWidget_module_root__57853874 .BaseWidget_module_header__57853874 .BaseWidget_module_headerOptions__57853874 .BaseWidget_module_dropdownHeader__57853874 [data-elem=select] > svg {\n fill: var(--white);\n width: 0.875rem;\n}\n.BaseWidget_module_root__57853874 .BaseWidget_module_header__57853874 .BaseWidget_module_headerOptions__57853874 .BaseWidget_module_expandButton__57853874 {\n height: 1.75rem;\n color: var(--white);\n border-color: var(--white);\n}\n.BaseWidget_module_root__57853874 .BaseWidget_module_header__57853874 .BaseWidget_module_headerOptions__57853874 .BaseWidget_module_expandButton__57853874 .BaseWidget_module_expandIcon__57853874 {\n height: 1.25rem;\n width: 1.25rem;\n fill: var(--white);\n}\n.BaseWidget_module_root__57853874 .BaseWidget_module_children__57853874 {\n flex: 1 1;\n}\n\n.BaseWidget_module_dropdownPopper__57853874 {\n padding: 0rem;\n background: var(--grey1);\n}\n.BaseWidget_module_dropdownPopper__57853874 .BaseWidget_module_dropdownItem__57853874 {\n height: 2.25rem;\n color: var(--white);\n background: var(--grey);\n}\n.BaseWidget_module_dropdownPopper__57853874 .BaseWidget_module_dropdownItem__57853874:hover, .BaseWidget_module_dropdownPopper__57853874 .BaseWidget_module_dropdownItem__57853874:focus {\n color: var(--dark-grey);\n background: var(--grey2);\n}\n.BaseWidget_module_dropdownPopper__57853874 .BaseWidget_module_dropdownItem__57853874:hover label > svg, .BaseWidget_module_dropdownPopper__57853874 .BaseWidget_module_dropdownItem__57853874:focus label > svg {\n border: 1px solid var(--dark-grey);\n border-radius: 0.25rem;\n}";
|
|
83130
85206
|
var modules_6a0e74b6 = {"root":"BaseWidget_module_root__57853874","header":"BaseWidget_module_header__57853874","header-title":"BaseWidget_module_headerTitle__57853874","no-options":"BaseWidget_module_noOptions__57853874","title":"BaseWidget_module_title__57853874","value":"BaseWidget_module_value__57853874","header-options":"BaseWidget_module_headerOptions__57853874","dropdown-header":"BaseWidget_module_dropdownHeader__57853874","expand-button":"BaseWidget_module_expandButton__57853874","expand-icon":"BaseWidget_module_expandIcon__57853874","children":"BaseWidget_module_children__57853874","dropdown-popper":"BaseWidget_module_dropdownPopper__57853874","dropdown-item":"BaseWidget_module_dropdownItem__57853874"};
|
|
83131
|
-
n(css$
|
|
85207
|
+
n(css$2,{});
|
|
83132
85208
|
|
|
83133
85209
|
var generateOptions = function generateOptions(optionData) {
|
|
83134
85210
|
var _optionData$id, _optionData$placehold, _optionData$value, _optionData$onChange, _optionData$selectOpt, _optionData$title, _optionData$onClick;
|
|
@@ -83224,9 +85300,9 @@ BaseWidget.defaultProps = {
|
|
|
83224
85300
|
className: ''
|
|
83225
85301
|
};
|
|
83226
85302
|
|
|
83227
|
-
var css = ".DisplayPicture_module_root__a7ba07d1.DisplayPicture_module_sm__a7ba07d1 img {\n height: 1.5rem;\n width: 1.5rem;\n border-radius: 100%;\n}\n.DisplayPicture_module_root__a7ba07d1.DisplayPicture_module_sm__a7ba07d1 div {\n height: 1.5rem;\n width: 1.5rem;\n border-radius: 100%;\n background-color: var(--highlight);\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n.DisplayPicture_module_root__a7ba07d1.DisplayPicture_module_sm__a7ba07d1 div span {\n font-size: 1rem;\n font-weight: 600;\n color: var(--white);\n}\n.DisplayPicture_module_root__a7ba07d1.DisplayPicture_module_md__a7ba07d1 img {\n height: 5.3125rem;\n width: 5.3125rem;\n border-radius: 100%;\n}\n.DisplayPicture_module_root__a7ba07d1.DisplayPicture_module_md__a7ba07d1 div {\n height: 5.3125rem;\n width: 5.3125rem;\n border-radius: 100%;\n background-color: var(--highlight);\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n.DisplayPicture_module_root__a7ba07d1.DisplayPicture_module_md__a7ba07d1 div span {\n font-size: 2rem;\n font-weight: 600;\n color: var(--white);\n}";
|
|
85303
|
+
var css$1 = ".DisplayPicture_module_root__a7ba07d1.DisplayPicture_module_sm__a7ba07d1 img {\n height: 1.5rem;\n width: 1.5rem;\n border-radius: 100%;\n}\n.DisplayPicture_module_root__a7ba07d1.DisplayPicture_module_sm__a7ba07d1 div {\n height: 1.5rem;\n width: 1.5rem;\n border-radius: 100%;\n background-color: var(--highlight);\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n.DisplayPicture_module_root__a7ba07d1.DisplayPicture_module_sm__a7ba07d1 div span {\n font-size: 1rem;\n font-weight: 600;\n color: var(--white);\n}\n.DisplayPicture_module_root__a7ba07d1.DisplayPicture_module_md__a7ba07d1 img {\n height: 5.3125rem;\n width: 5.3125rem;\n border-radius: 100%;\n}\n.DisplayPicture_module_root__a7ba07d1.DisplayPicture_module_md__a7ba07d1 div {\n height: 5.3125rem;\n width: 5.3125rem;\n border-radius: 100%;\n background-color: var(--highlight);\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n.DisplayPicture_module_root__a7ba07d1.DisplayPicture_module_md__a7ba07d1 div span {\n font-size: 2rem;\n font-weight: 600;\n color: var(--white);\n}";
|
|
83228
85304
|
var modules_49a16e28 = {"root":"DisplayPicture_module_root__a7ba07d1","sm":"DisplayPicture_module_sm__a7ba07d1","md":"DisplayPicture_module_md__a7ba07d1"};
|
|
83229
|
-
n(css,{});
|
|
85305
|
+
n(css$1,{});
|
|
83230
85306
|
|
|
83231
85307
|
var DisplayPicture = function DisplayPicture(props) {
|
|
83232
85308
|
var name = props.name,
|
|
@@ -83260,6 +85336,75 @@ DisplayPicture.defaultProps = {
|
|
|
83260
85336
|
size: 'sm'
|
|
83261
85337
|
};
|
|
83262
85338
|
|
|
85339
|
+
var css = ":root {\n --white: #ffffff;\n --black: #000000;\n --dark-grey: #333333;\n --dark-grey-o-85: rgba(51, 51, 51, 0.85);\n --grey: #737373;\n --grey1: #888888;\n --grey2: #a6a6a6;\n --grey3: #bbbbbb;\n --grey4: #c4c4c4;\n --grey5: #dddddd;\n --grey6: #e8e8e8;\n --grey7: #eeeeee;\n --grey8: #f2f2f2;\n --grey9: #eff0f0;\n --grey10: #f7f7f7;\n --highlight: #0f62fe;\n --dark-blue: #001833;\n --background: #d0e2ff;\n --banyan-blue: #00037c;\n --banyan-orange: #ff892a;\n --banyan-pink: #ff1597;\n --banyan-gradient: linear-gradient(\n \t84.71deg,\n \tvar(--banyan-pink) 0.48%,\n \tvar(--banyan-orange) 99.57%\n );\n --error: #da1e28;\n --error-bg: #fff1f1;\n --error-outline: rgba(218, 30, 40, 0.08);\n --success: #24a148;\n --success-bg: #defbe6;\n --success-outline: rgba(36, 161, 72, 0.08);\n --warning: #f1c21b;\n --warning-bg: #fff8e1;\n --warning-outline: rgba(203, 160, 6, 0.08);\n --info: #0043ce;\n --info-bg: #edf5ff;\n --info-outline: #2864db98;\n}\n\ndiv.Toggle_module_root__28c80ae9 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n overflow: auto;\n padding: 0.25rem;\n background: var(--grey8);\n width: -webkit-fit-content;\n width: -moz-fit-content;\n width: fit-content;\n border-radius: 0.4rem 0.4rem;\n box-shadow: inset 0px 1px 2px rgba(97, 97, 97, 0.2), inset 0px 2px 4px rgba(97, 97, 97, 0.2);\n}\ndiv.Toggle_module_root__28c80ae9 [data-elem=base-cell].Toggle_module_toggleButton__28c80ae9 {\n color: var(--grey);\n padding: 0.2rem;\n height: 2rem;\n background: transparent;\n}\ndiv.Toggle_module_root__28c80ae9 [data-elem=base-cell].Toggle_module_toggleButton__28c80ae9.Toggle_module_active__28c80ae9 {\n box-shadow: -2px -2px 4px rgba(166, 166, 166, 0.25), 2px 2px 4px rgba(166, 166, 166, 0.24);\n background: var(--white);\n border-radius: 0.25rem;\n color: var(--dark-grey);\n}";
|
|
85340
|
+
var modules_a2cdc77c = {"white":"var(--white)","black":"var(--black)","dark-grey":"var(--dark-grey)","dark-grey-o-85":"var(--dark-grey-o-85)","grey":"var(--grey)","grey1":"var(--grey1)","grey2":"var(--grey2)","grey3":"var(--grey3)","grey4":"var(--grey4)","grey5":"var(--grey5)","grey6":"var(--grey6)","grey7":"var(--grey7)","grey8":"var(--grey8)","grey9":"var(--grey9)","grey10":"var(--grey10)","highlight":"var(--highlight)","dark-blue":"var(--dark-blue)","background":"var(--background)","banyan-blue":"var(--banyan-blue)","banyan-orange":"var(--banyan-orange)","banyan-pink":"var(--banyan-pink)","banyan-gradient":"var(--banyan-gradient)","error":"var(--error)","error-bg":"var(--error-bg)","error-outline":"var(--error-outline)","success":"var(--success)","success-bg":"var(--success-bg)","success-outline":"var(--success-outline)","warning":"var(--warning)","warning-bg":"var(--warning-bg)","warning-outline":"var(--warning-outline)","info":"var(--info)","info-bg":"var(--info-bg)","info-outline":"var(--info-outline)","root":"Toggle_module_root__28c80ae9","toggle-button":"Toggle_module_toggleButton__28c80ae9","active":"Toggle_module_active__28c80ae9"};
|
|
85341
|
+
n(css,{});
|
|
85342
|
+
|
|
85343
|
+
/* eslint-disable no-unused-vars */
|
|
85344
|
+
var Toggle = function Toggle(props) {
|
|
85345
|
+
var options = props.options,
|
|
85346
|
+
selectedToggle = props.selectedToggle,
|
|
85347
|
+
setSelectedToggle = props.setSelectedToggle,
|
|
85348
|
+
onChange = props.onChange;
|
|
85349
|
+
var onButtonClick = function onButtonClick(value) {
|
|
85350
|
+
setSelectedToggle(value);
|
|
85351
|
+
onChange(value);
|
|
85352
|
+
};
|
|
85353
|
+
return /*#__PURE__*/jsx$1("div", {
|
|
85354
|
+
className: modules_a2cdc77c.root,
|
|
85355
|
+
children: options.map(function (item) {
|
|
85356
|
+
var title = item.title,
|
|
85357
|
+
value = item.value,
|
|
85358
|
+
leftComponent = item.leftComponent,
|
|
85359
|
+
rightComponent = item.rightComponent,
|
|
85360
|
+
color = item.color;
|
|
85361
|
+
var isActive = selectedToggle === value;
|
|
85362
|
+
return /*#__PURE__*/jsx$1(Button, {
|
|
85363
|
+
className: classes(modules_a2cdc77c['toggle-button'], selectedToggle === value ? modules_a2cdc77c.active : ''),
|
|
85364
|
+
onClick: function onClick() {
|
|
85365
|
+
return onButtonClick(value);
|
|
85366
|
+
},
|
|
85367
|
+
title: value,
|
|
85368
|
+
value: value,
|
|
85369
|
+
color: isActive ? color : 'default',
|
|
85370
|
+
leftComponent: leftComponent,
|
|
85371
|
+
rightComponent: rightComponent,
|
|
85372
|
+
children: value
|
|
85373
|
+
}, title);
|
|
85374
|
+
})
|
|
85375
|
+
});
|
|
85376
|
+
};
|
|
85377
|
+
Toggle.propTypes = {
|
|
85378
|
+
options: propTypes$1.exports.arrayOf(propTypes$1.exports.string),
|
|
85379
|
+
selectedToggle: propTypes$1.exports.string,
|
|
85380
|
+
setSelectedToggle: propTypes$1.exports.string
|
|
85381
|
+
};
|
|
85382
|
+
Toggle.defaultProps = {
|
|
85383
|
+
options: [{
|
|
85384
|
+
title: 'First',
|
|
85385
|
+
value: 'First',
|
|
85386
|
+
rightCompoenent: '',
|
|
85387
|
+
leftCompoenent: ''
|
|
85388
|
+
}, {
|
|
85389
|
+
title: 'Second',
|
|
85390
|
+
value: 'Second',
|
|
85391
|
+
rightCompoenent: '',
|
|
85392
|
+
leftCompoenent: ''
|
|
85393
|
+
}, {
|
|
85394
|
+
title: 'Third',
|
|
85395
|
+
value: 'Third',
|
|
85396
|
+
rightCompoenent: '',
|
|
85397
|
+
leftCompoenent: ''
|
|
85398
|
+
}, {
|
|
85399
|
+
title: 'Fourth',
|
|
85400
|
+
value: 'Fourth',
|
|
85401
|
+
rightCompoenent: '',
|
|
85402
|
+
leftCompoenent: ''
|
|
85403
|
+
}],
|
|
85404
|
+
selectedToggle: 'First',
|
|
85405
|
+
setSelectedToggle: 'None'
|
|
85406
|
+
};
|
|
85407
|
+
|
|
83263
85408
|
var abapExports = requireAbap();
|
|
83264
85409
|
|
|
83265
85410
|
var abap = /*#__PURE__*/_mergeNamespaces({
|
|
@@ -84289,5 +86434,5 @@ var yaml = /*#__PURE__*/_mergeNamespaces({
|
|
|
84289
86434
|
default: yamlExports
|
|
84290
86435
|
}, [yamlExports]);
|
|
84291
86436
|
|
|
84292
|
-
export { Accordion, Alert, AlertIcon, AngleDouble as AngleDoubleIcon, Arrow$1 as ArrowIcon, BASE_URLS, BaseButton, BaseCell, BaseHorizontalBarChart, BaseModal, BaseSidePanel, BaseTable, BaseVerticalBarChart, BaseWidget, BreadCrumbs, BreadcrumbSeperator as BreadcrumbSeperatorIcon, Button, COLORS, Calender$1 as CalenderIcon, Caret as CaretIcon, Checkbox, CheckboxIcon, Chevron as ChevronIcon, Chip, CodeSnippet, Columns$1 as ColumnsIcon, Copy as CopyIcon, Cross$1 as CrossIcon, DAYS, DatePicker, Delete as DeleteIcon, DialogBox, DisplayPicture, Download as DownloadIcon, Dropdown, DropdownItem, Edit as EditIcon, ExpandArrowAlt as ExpandArrowAltIcon, FULL_MONTHS, Filter as FilterIcon, HalfShade as HalfShadeIcon, HierarchyBrowser, HierarchyItem, MONTHS, MagnifyingGlass as MagnifyingGlassIcon, Nut as NutIcon, PageHeader, Pagination, PaginationList, Plus as PlusIcon, Popover, Popper, Radio, RadioIcon, Refresh as RefreshIcon, Reset as ResetIcon, Server as ServerIcon, Stepper, Table, TableCell, TableChip, TableChips, TableColumn, TableFilters, Tabs, TextField, Tick as TickIcon, Tooltip, View as ViewIcon, classes, cloneDeep, defaultProps$1 as defaultProps, doubleDigitted, get$1 as get, getCSSVariableValue, getCurrentSearchParams, getDateFromEpoch, getDatesInAMonth, getDayInfo, getInitialsOfName, getJSDateFromEpoch, getPagination, getSpacedDisplayName, getTimeFromEpoch, inputHelper, propTypes, stringToPath, sumArrayOfObjects, uniqueArray, uniqueArrayOfObjects, useOutsideClickListener, usePagination, useResize, useRowFilter };
|
|
86437
|
+
export { Accordion, Alert, AlertIcon, AngleDouble as AngleDoubleIcon, Arrow$1 as ArrowIcon, BASE_URLS, BaseButton, BaseCell, BaseHorizontalBarChart, BaseModal, BasePieChart, BaseSidePanel, BaseTable, BaseVerticalBarChart, BaseWidget, BreadCrumbs, BreadcrumbSeperator as BreadcrumbSeperatorIcon, Button, COLORS, Calender$1 as CalenderIcon, Caret as CaretIcon, Checkbox, CheckboxIcon, Chevron as ChevronIcon, Chip, CodeSnippet, Columns$1 as ColumnsIcon, Copy as CopyIcon, Cross$1 as CrossIcon, DAYS, DatePicker, Delete as DeleteIcon, DialogBox, DisplayPicture, Download as DownloadIcon, Dropdown, DropdownItem, Edit as EditIcon, ExpandArrowAlt as ExpandArrowAltIcon, FULL_MONTHS, Filter as FilterIcon, HalfShade as HalfShadeIcon, HierarchyBrowser, HierarchyItem, MONTHS, MagnifyingGlass as MagnifyingGlassIcon, Nut as NutIcon, PageHeader, Pagination, PaginationList, Plus as PlusIcon, Popover, Popper, Radio, RadioIcon, Refresh as RefreshIcon, Reset as ResetIcon, Server as ServerIcon, Stepper, Table, TableCell, TableChip, TableChips, TableColumn, TableFilters, Tabs, TextField, Tick as TickIcon, Toggle, Tooltip, View as ViewIcon, classes, cloneDeep, defaultProps$1 as defaultProps, doubleDigitted, get$1 as get, getCSSVariableValue, getCurrentSearchParams, getDateFromEpoch, getDatesInAMonth, getDayInfo, getInitialsOfName, getJSDateFromEpoch, getPagination, getSpacedDisplayName, getTimeFromEpoch, inputHelper, propTypes, stringToPath, sumArrayOfObjects, uniqueArray, uniqueArrayOfObjects, useOutsideClickListener, usePagination, useResize, useRowFilter };
|
|
84293
86438
|
//# sourceMappingURL=index.js.map
|