@spaziodati/atoka-design-system 2.0.72-beta
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/AddableItems/AddableItems.d.ts +72 -0
- package/AddableItems/ClickableExcludableItem.d.ts +23 -0
- package/AddableItems/ClickableItemList.d.ts +32 -0
- package/AddableItems/index.d.ts +1 -0
- package/AddableItems/index.js +1046 -0
- package/AddableItems/index.js.map +1 -0
- package/Alert/Alert.d.ts +37 -0
- package/Alert/index.d.ts +1 -0
- package/Alert/index.js +319 -0
- package/Alert/index.js.map +1 -0
- package/Badge/Badge.d.ts +38 -0
- package/Badge/index.d.ts +1 -0
- package/Badge/index.js +285 -0
- package/Badge/index.js.map +1 -0
- package/Bs4V3Wrapper/Bs4V3Wrapper.d.ts +7 -0
- package/Bs4V3Wrapper/StoryWrapper.d.ts +8 -0
- package/Bs4V3Wrapper/index.d.ts +1 -0
- package/Bs4V3Wrapper/index.js +251 -0
- package/Bs4V3Wrapper/index.js.map +1 -0
- package/BubbleChart/BubbleChart.d.ts +33 -0
- package/BubbleChart/BubbleChartUI.d.ts +31 -0
- package/BubbleChart/index.d.ts +1 -0
- package/BubbleChart/index.js +3793 -0
- package/BubbleChart/index.js.map +1 -0
- package/Button/Button.d.ts +29 -0
- package/Button/Button.storiesConfig.d.ts +68 -0
- package/Button/index.d.ts +1 -0
- package/Button/index.js +323 -0
- package/Button/index.js.map +1 -0
- package/ButtonDropdown/ButtonDropdown.d.ts +23 -0
- package/ButtonDropdown/index.d.ts +2 -0
- package/ButtonDropdown/index.js +603 -0
- package/ButtonDropdown/index.js.map +1 -0
- package/CardsPage/CardsPage.d.ts +12 -0
- package/CardsPage/CardsPageActions.d.ts +2 -0
- package/CardsPage/CardsPageCards.d.ts +5 -0
- package/CardsPage/CardsPageCardsCounter.d.ts +7 -0
- package/CardsPage/CardsPageFilters.d.ts +3 -0
- package/CardsPage/CardsPageHeader.d.ts +11 -0
- package/CardsPage/CardsPageLayoutMode.d.ts +13 -0
- package/CardsPage/CardsPageSelectionActions.d.ts +17 -0
- package/CardsPage/CardsPageSelectionToggler.d.ts +8 -0
- package/CardsPage/CardsPageSorting.d.ts +15 -0
- package/CardsPage/CardsPageSubtitle.d.ts +2 -0
- package/CardsPage/CardsPageTabContent.d.ts +19 -0
- package/CardsPage/CardsPageTabSwitcher.d.ts +3 -0
- package/CardsPage/CardsPageTitle.d.ts +2 -0
- package/CardsPage/index.d.ts +2 -0
- package/CardsPage/index.js +2511 -0
- package/CardsPage/index.js.map +1 -0
- package/CursorPagination/CursorPagination.d.ts +21 -0
- package/CursorPagination/index.d.ts +1 -0
- package/CursorPagination/index.js +952 -0
- package/CursorPagination/index.js.map +1 -0
- package/DatePicker/DatePicker.d.ts +27 -0
- package/DatePicker/index.d.ts +1 -0
- package/DatePicker/index.js +452 -0
- package/DatePicker/index.js.map +1 -0
- package/DetailPage/DetailPage.d.ts +18 -0
- package/DetailPage/DetailPageBodyContainer.d.ts +2 -0
- package/DetailPage/DetailPageBodySection.d.ts +3 -0
- package/DetailPage/DetailPageHeaderContainer.d.ts +7 -0
- package/DetailPage/DetailPageHeaderUI.d.ts +12 -0
- package/DetailPage/DetailPageMenuContainer.d.ts +2 -0
- package/DetailPage/DetailPageMenuUI.d.ts +4 -0
- package/DetailPage/index.d.ts +1 -0
- package/DetailPage/index.js +2066 -0
- package/DetailPage/index.js.map +1 -0
- package/Dropdown/AtokaDropdownToggles.d.ts +11 -0
- package/Dropdown/Dropdown.d.ts +12 -0
- package/Dropdown/DropdownMenu.d.ts +7 -0
- package/Dropdown/index.d.ts +3 -0
- package/Dropdown/index.js +723 -0
- package/Dropdown/index.js.map +1 -0
- package/EditableString/EditableString.d.ts +42 -0
- package/EditableString/index.d.ts +1 -0
- package/EditableString/index.js +3321 -0
- package/EditableString/index.js.map +1 -0
- package/EllipsableContent/EllipsableContent.d.ts +18 -0
- package/EllipsableContent/index.d.ts +1 -0
- package/EllipsableContent/index.js +784 -0
- package/EllipsableContent/index.js.map +1 -0
- package/EmptyState/EmptyState.d.ts +12 -0
- package/EmptyState/index.d.ts +1 -0
- package/EmptyState/index.js +278 -0
- package/EmptyState/index.js.map +1 -0
- package/Facet/Facet.d.ts +21 -0
- package/Facet/FacetHelp.d.ts +28 -0
- package/Facet/FacetItemCount.d.ts +7 -0
- package/Facet/FacetSubtitle.d.ts +2 -0
- package/Facet/index.d.ts +1 -0
- package/Facet/index.js +914 -0
- package/Facet/index.js.map +1 -0
- package/FacetSection/FacetSection.d.ts +21 -0
- package/FacetSection/index.d.ts +1 -0
- package/FacetSection/index.js +443 -0
- package/FacetSection/index.js.map +1 -0
- package/FadeAnimation/FadeAnimation.d.ts +14 -0
- package/FadeAnimation/index.d.ts +1 -0
- package/FadeAnimation/index.js +1228 -0
- package/FadeAnimation/index.js.map +1 -0
- package/FeedbackButton/FeedbackButton.d.ts +19 -0
- package/FeedbackButton/index.d.ts +1 -0
- package/FeedbackButton/index.js +398 -0
- package/FeedbackButton/index.js.map +1 -0
- package/Form/Form.d.ts +23 -0
- package/Form/FormCheckbox.d.ts +10 -0
- package/Form/FormControl.d.ts +23 -0
- package/Form/FormControlFeedBack.d.ts +6 -0
- package/Form/FormHelp.d.ts +7 -0
- package/Form/FormLabel.d.ts +4 -0
- package/Form/FormRadio.d.ts +10 -0
- package/Form/index.d.ts +1 -0
- package/Form/index.js +450 -0
- package/Form/index.js.map +1 -0
- package/Funnel/Funnel.d.ts +54 -0
- package/Funnel/SVGDataLabel.d.ts +11 -0
- package/Funnel/index.d.ts +1 -0
- package/Funnel/index.js +3997 -0
- package/Funnel/index.js.map +1 -0
- package/GridCard/Fixtures.d.ts +3 -0
- package/GridCard/GridCard.d.ts +20 -0
- package/GridCard/GridCardContent.d.ts +2 -0
- package/GridCard/GridCardFooter.d.ts +2 -0
- package/GridCard/GridCardHeader.d.ts +14 -0
- package/GridCard/GridCardMenu.d.ts +2 -0
- package/GridCard/GridCardTags.d.ts +2 -0
- package/GridCard/GridCardTitle.d.ts +6 -0
- package/GridCard/index.d.ts +1 -0
- package/GridCard/index.js +1618 -0
- package/GridCard/index.js.map +1 -0
- package/HighlightableText/HighlightableText.d.ts +21 -0
- package/HighlightableText/index.d.ts +1 -0
- package/HighlightableText/index.js +624 -0
- package/HighlightableText/index.js.map +1 -0
- package/Histogram/Histogram.d.ts +126 -0
- package/Histogram/Types.d.ts +19 -0
- package/Histogram/index.d.ts +1 -0
- package/Histogram/index.js +2359 -0
- package/Histogram/index.js.map +1 -0
- package/InlineStringEditor/InlineStringEditor.d.ts +49 -0
- package/InlineStringEditor/index.d.ts +1 -0
- package/InlineStringEditor/index.js +1882 -0
- package/InlineStringEditor/index.js.map +1 -0
- package/InputGroup/InputGroup.d.ts +16 -0
- package/InputGroup/InputGroupText.d.ts +2 -0
- package/InputGroup/index.d.ts +1 -0
- package/InputGroup/index.js +279 -0
- package/InputGroup/index.js.map +1 -0
- package/Jumbotron/Jumbotron.d.ts +16 -0
- package/Jumbotron/index.d.ts +1 -0
- package/Jumbotron/index.js +270 -0
- package/Jumbotron/index.js.map +1 -0
- package/Map/Map.d.ts +27 -0
- package/Map/MapChoropleth.d.ts +31 -0
- package/Map/MapControl.d.ts +13 -0
- package/Map/MapLegendContent.d.ts +27 -0
- package/Map/MapPopup.d.ts +5 -0
- package/Map/MapUtils.d.ts +2 -0
- package/Map/Types.d.ts +38 -0
- package/Map/index.d.ts +2 -0
- package/Map/index.js +4810 -0
- package/Map/index.js.map +1 -0
- package/Modal/Modal.d.ts +32 -0
- package/Modal/index.d.ts +1 -0
- package/Modal/index.js +743 -0
- package/Modal/index.js.map +1 -0
- package/Navbar/Navbar.d.ts +42 -0
- package/Navbar/NavbarMobileMenuCollapse.d.ts +3 -0
- package/Navbar/NavbarMobileMenuToggle.d.ts +3 -0
- package/Navbar/NavbarNavigationMenu.d.ts +9 -0
- package/Navbar/NavbarNavigationMenuItem.d.ts +9 -0
- package/Navbar/NavbarNinjaMenu.d.ts +6 -0
- package/Navbar/NavbarNinjaMenuItem.d.ts +6 -0
- package/Navbar/NavbarNotificationMenu.d.ts +12 -0
- package/Navbar/NavbarNotificationMenuItem.d.ts +8 -0
- package/Navbar/NavbarOverlaySearch.d.ts +28 -0
- package/Navbar/NavbarOverlaySearchCard.d.ts +9 -0
- package/Navbar/NavbarOverlaySearchResults.d.ts +12 -0
- package/Navbar/NavbarUserMenu.d.ts +9 -0
- package/Navbar/NavbarUserMenuItem.d.ts +6 -0
- package/Navbar/index.d.ts +1 -0
- package/Navbar/index.js +3521 -0
- package/Navbar/index.js.map +1 -0
- package/Pagination/Pagination.d.ts +27 -0
- package/Pagination/PaginationNext.d.ts +7 -0
- package/Pagination/PaginationPrev.d.ts +7 -0
- package/Pagination/index.d.ts +1 -0
- package/Pagination/index.js +994 -0
- package/Pagination/index.js.map +1 -0
- package/PieChart/PieChart.d.ts +71 -0
- package/PieChart/index.d.ts +1 -0
- package/PieChart/index.js +1986 -0
- package/PieChart/index.js.map +1 -0
- package/PublicFooter/PublicFooter.d.ts +6 -0
- package/PublicFooter/index.d.ts +1 -0
- package/PublicFooter/index.js +454 -0
- package/PublicFooter/index.js.map +1 -0
- package/PublicNavbar/PublicNavbar.d.ts +6 -0
- package/PublicNavbar/index.d.ts +1 -0
- package/PublicNavbar/index.js +255 -0
- package/PublicNavbar/index.js.map +1 -0
- package/RecordBit/RecordBit.d.ts +14 -0
- package/RecordBit/index.d.ts +1 -0
- package/RecordBit/index.js +482 -0
- package/RecordBit/index.js.map +1 -0
- package/ResultItemCard/ResultItemCard.d.ts +19 -0
- package/ResultItemCard/ResultItemCardActions.d.ts +3 -0
- package/ResultItemCard/ResultItemCardFooter.d.ts +6 -0
- package/ResultItemCard/ResultItemCardImage.d.ts +6 -0
- package/ResultItemCard/ResultItemCardSubtitle.d.ts +6 -0
- package/ResultItemCard/ResultItemCardText.d.ts +7 -0
- package/ResultItemCard/ResultItemCardTitle.d.ts +7 -0
- package/ResultItemCard/index.d.ts +1 -0
- package/ResultItemCard/index.js +1067 -0
- package/ResultItemCard/index.js.map +1 -0
- package/SelectDropdown/SelectDropdown.d.ts +29 -0
- package/SelectDropdown/index.d.ts +1 -0
- package/SelectDropdown/index.js +1520 -0
- package/SelectDropdown/index.js.map +1 -0
- package/Spinner/Spinner.d.ts +32 -0
- package/Spinner/index.d.ts +1 -0
- package/Spinner/index.js +325 -0
- package/Spinner/index.js.map +1 -0
- package/StatisticsItemCard/StatisticsItemCard.d.ts +35 -0
- package/StatisticsItemCard/index.d.ts +1 -0
- package/StatisticsItemCard/index.js +1786 -0
- package/StatisticsItemCard/index.js.map +1 -0
- package/StatisticsItemNumeric/StatisticsItemNumeric.d.ts +18 -0
- package/StatisticsItemNumeric/index.d.ts +1 -0
- package/StatisticsItemNumeric/index.js +283 -0
- package/StatisticsItemNumeric/index.js.map +1 -0
- package/StatisticsLegend/StatisticsLegend.d.ts +35 -0
- package/StatisticsLegend/StatisticsLegendItem.d.ts +50 -0
- package/StatisticsLegend/StatisticsSVGLegend.d.ts +26 -0
- package/StatisticsLegend/helpers.d.ts +19 -0
- package/StatisticsLegend/index.d.ts +3 -0
- package/StatisticsLegend/index.js +1571 -0
- package/StatisticsLegend/index.js.map +1 -0
- package/StatisticsTooltip/StatisticsTooltip.d.ts +20 -0
- package/StatisticsTooltip/helpers.d.ts +19 -0
- package/StatisticsTooltip/index.d.ts +2 -0
- package/StatisticsTooltip/index.js +796 -0
- package/StatisticsTooltip/index.js.map +1 -0
- package/Suggester/CustomOption.d.ts +29 -0
- package/Suggester/InputValueContainer.d.ts +11 -0
- package/Suggester/Suggester.d.ts +80 -0
- package/Suggester/getRenderCustomMultiValueWithIcon.d.ts +6 -0
- package/Suggester/index.d.ts +3 -0
- package/Suggester/index.js +1126 -0
- package/Suggester/index.js.map +1 -0
- package/SunBurst/SunBurst.d.ts +61 -0
- package/SunBurst/index.d.ts +2 -0
- package/SunBurst/index.js +1170 -0
- package/SunBurst/index.js.map +1 -0
- package/TabSwitcher/TabSwitcher.d.ts +35 -0
- package/TabSwitcher/TabSwitcherChoice.d.ts +21 -0
- package/TabSwitcher/index.d.ts +1 -0
- package/TabSwitcher/index.js +1135 -0
- package/TabSwitcher/index.js.map +1 -0
- package/Title/Title.d.ts +16 -0
- package/Title/index.d.ts +1 -0
- package/Title/index.js +302 -0
- package/Title/index.js.map +1 -0
- package/ToggleButtonGroup/ToggleButton.d.ts +15 -0
- package/ToggleButtonGroup/ToggleButtonGroup.d.ts +24 -0
- package/ToggleButtonGroup/index.d.ts +1 -0
- package/ToggleButtonGroup/index.js +609 -0
- package/ToggleButtonGroup/index.js.map +1 -0
- package/Tooltip/Tooltip.d.ts +20 -0
- package/Tooltip/index.d.ts +1 -0
- package/Tooltip/index.js +291 -0
- package/Tooltip/index.js.map +1 -0
- package/Utils/CommonTypes.d.ts +29 -0
- package/Utils/Statistics.d.ts +3 -0
- package/Utils/Style.d.ts +5 -0
- package/Utils/Text.d.ts +12 -0
- package/Utils/Utils.d.ts +12 -0
- package/Utils/index.d.ts +5 -0
- package/Utils/index.js +3379 -0
- package/Utils/index.js.map +1 -0
- package/atoka-design-system-2.0.72-beta.min.css +1 -0
- package/commonFixtures.d.ts +1 -0
- package/index.d.ts +51 -0
- package/index.js +15343 -0
- package/index.js.map +1 -0
- package/package.json +157 -0
- package/styles/animations-mixin.less +28 -0
- package/styles/atoka-bootstrap-fixed-mixins.less +81 -0
- package/styles/atoka-bootstrap-variables.less +70 -0
- package/styles/atoka-bs.less +99 -0
- package/styles/atoka-namespaced-bs.less +28 -0
- package/styles/variables.less +106 -0
- package/styles/variant-mixins.less +96 -0
|
@@ -0,0 +1,1170 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory(require("@fortawesome/react-fontawesome"), require("@nivo/sunburst"), require("classnames"), require("react"), require("react-bootstrap/Form"), require("react-bootstrap/FormControl"), require("react-bootstrap/FormText"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define("atoka-design-system", ["@fortawesome/react-fontawesome", "@nivo/sunburst", "classnames", "react", "react-bootstrap/Form", "react-bootstrap/FormControl", "react-bootstrap/FormText"], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["atoka-design-system"] = factory(require("@fortawesome/react-fontawesome"), require("@nivo/sunburst"), require("classnames"), require("react"), require("react-bootstrap/Form"), require("react-bootstrap/FormControl"), require("react-bootstrap/FormText"));
|
|
8
|
+
else
|
|
9
|
+
root["atoka-design-system"] = factory(root["@fortawesome/react-fontawesome"], root["@nivo/sunburst"], root["classnames"], root["react"], root["react-bootstrap/Form"], root["react-bootstrap/FormControl"], root["react-bootstrap/FormText"]);
|
|
10
|
+
})(self, function(__WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__9503__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__8721__, __WEBPACK_EXTERNAL_MODULE__1082__, __WEBPACK_EXTERNAL_MODULE__8763__) {
|
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
|
12
|
+
/******/ "use strict";
|
|
13
|
+
/******/ var __webpack_modules__ = ({
|
|
14
|
+
|
|
15
|
+
/***/ 9316:
|
|
16
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
// UNUSED EXPORTS: Form
|
|
20
|
+
|
|
21
|
+
// EXTERNAL MODULE: external "react"
|
|
22
|
+
var external_react_ = __webpack_require__(8156);
|
|
23
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
24
|
+
// EXTERNAL MODULE: external "classnames"
|
|
25
|
+
var external_classnames_ = __webpack_require__(8310);
|
|
26
|
+
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
27
|
+
// EXTERNAL MODULE: external "react-bootstrap/Form"
|
|
28
|
+
var Form_ = __webpack_require__(8721);
|
|
29
|
+
var Form_default = /*#__PURE__*/__webpack_require__.n(Form_);
|
|
30
|
+
;// CONCATENATED MODULE: ./src/components/Form/FormLabel.tsx
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
var FormLabel = external_react_default().memo(function (props) {
|
|
36
|
+
var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-label');
|
|
37
|
+
return external_react_default().createElement((Form_default()).Label, { className: className }, props.children);
|
|
38
|
+
});
|
|
39
|
+
FormLabel.displayName = 'FormLabel';
|
|
40
|
+
|
|
41
|
+
// EXTERNAL MODULE: ./src/components/Form/FormControl.tsx + 1 modules
|
|
42
|
+
var FormControl = __webpack_require__(3422);
|
|
43
|
+
;// CONCATENATED MODULE: ./src/components/Form/FormCheckbox.tsx
|
|
44
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
45
|
+
__assign = Object.assign || function(t) {
|
|
46
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
47
|
+
s = arguments[i];
|
|
48
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
49
|
+
t[p] = s[p];
|
|
50
|
+
}
|
|
51
|
+
return t;
|
|
52
|
+
};
|
|
53
|
+
return __assign.apply(this, arguments);
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
var FormCheckbox = function (props) {
|
|
60
|
+
var _a;
|
|
61
|
+
var className = external_classnames_default()('atoka-form-checkbox', props === null || props === void 0 ? void 0 : props.className);
|
|
62
|
+
return external_react_default().createElement((Form_default()).Check, __assign({ type: 'checkbox' }, props, { custom: true, className: className, label: (_a = props.label) !== null && _a !== void 0 ? _a : '' }));
|
|
63
|
+
};
|
|
64
|
+
FormCheckbox.displayName = 'FormCheckbox';
|
|
65
|
+
|
|
66
|
+
;// CONCATENATED MODULE: ./src/components/Form/FormRadio.tsx
|
|
67
|
+
var FormRadio_assign = (undefined && undefined.__assign) || function () {
|
|
68
|
+
FormRadio_assign = Object.assign || function(t) {
|
|
69
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
70
|
+
s = arguments[i];
|
|
71
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
72
|
+
t[p] = s[p];
|
|
73
|
+
}
|
|
74
|
+
return t;
|
|
75
|
+
};
|
|
76
|
+
return FormRadio_assign.apply(this, arguments);
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
var FormRadio = function (props) {
|
|
83
|
+
var _a;
|
|
84
|
+
var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-radio');
|
|
85
|
+
return external_react_default().createElement((Form_default()).Check, FormRadio_assign({ type: 'radio' }, props, { custom: true, className: className, label: (_a = props.label) !== null && _a !== void 0 ? _a : '' }));
|
|
86
|
+
};
|
|
87
|
+
FormRadio.displayName = 'FormRadio';
|
|
88
|
+
|
|
89
|
+
// EXTERNAL MODULE: external "react-bootstrap/FormText"
|
|
90
|
+
var FormText_ = __webpack_require__(8763);
|
|
91
|
+
var FormText_default = /*#__PURE__*/__webpack_require__.n(FormText_);
|
|
92
|
+
;// CONCATENATED MODULE: ./src/components/Form/FormHelp.tsx
|
|
93
|
+
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
94
|
+
var t = {};
|
|
95
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
96
|
+
t[p] = s[p];
|
|
97
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
98
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
99
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
100
|
+
t[p[i]] = s[p[i]];
|
|
101
|
+
}
|
|
102
|
+
return t;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
var FormHelp = external_react_default().memo(function (_a) {
|
|
109
|
+
var children = _a.children, props = __rest(_a, ["children"]);
|
|
110
|
+
var className = external_classnames_default()('d-block', props === null || props === void 0 ? void 0 : props.className);
|
|
111
|
+
return (external_react_default().createElement((FormText_default()), { bsPrefix: 'atoka-form-help', className: className }, children));
|
|
112
|
+
});
|
|
113
|
+
FormHelp.displayName = 'FormHelp';
|
|
114
|
+
|
|
115
|
+
;// CONCATENATED MODULE: ./src/components/Form/Form.tsx
|
|
116
|
+
var Form_assign = (undefined && undefined.__assign) || function () {
|
|
117
|
+
Form_assign = Object.assign || function(t) {
|
|
118
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
119
|
+
s = arguments[i];
|
|
120
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
121
|
+
t[p] = s[p];
|
|
122
|
+
}
|
|
123
|
+
return t;
|
|
124
|
+
};
|
|
125
|
+
return Form_assign.apply(this, arguments);
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
var Form = function (props) {
|
|
137
|
+
var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form');
|
|
138
|
+
return (external_react_default().createElement((Form_default()), Form_assign({}, props, { className: className }), props.children));
|
|
139
|
+
};
|
|
140
|
+
Form.displayName = 'Form';
|
|
141
|
+
Form.Control = FormControl/* FormControl */.N;
|
|
142
|
+
Form.Label = FormLabel;
|
|
143
|
+
Form.Checkbox = FormCheckbox;
|
|
144
|
+
Form.Radio = FormRadio;
|
|
145
|
+
Form.File = (Form_default()).File;
|
|
146
|
+
Form.Switch = (Form_default()).Switch;
|
|
147
|
+
Form.Help = FormHelp;
|
|
148
|
+
Form.Group = (Form_default()).Group;
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
/***/ }),
|
|
153
|
+
|
|
154
|
+
/***/ 3422:
|
|
155
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
// EXPORTS
|
|
159
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
160
|
+
"N": () => (/* binding */ FormControl)
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
// EXTERNAL MODULE: external "react"
|
|
164
|
+
var external_react_ = __webpack_require__(8156);
|
|
165
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
166
|
+
// EXTERNAL MODULE: external "classnames"
|
|
167
|
+
var external_classnames_ = __webpack_require__(8310);
|
|
168
|
+
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
169
|
+
// EXTERNAL MODULE: external "react-bootstrap/FormControl"
|
|
170
|
+
var FormControl_ = __webpack_require__(1082);
|
|
171
|
+
var FormControl_default = /*#__PURE__*/__webpack_require__.n(FormControl_);
|
|
172
|
+
;// CONCATENATED MODULE: ./src/components/Form/FormControlFeedBack.tsx
|
|
173
|
+
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
174
|
+
var t = {};
|
|
175
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
176
|
+
t[p] = s[p];
|
|
177
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
178
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
179
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
180
|
+
t[p[i]] = s[p[i]];
|
|
181
|
+
}
|
|
182
|
+
return t;
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
var FormControlFeedBack = external_react_default().memo(function (_a) {
|
|
188
|
+
var _b = _a.show, show = _b === void 0 ? true : _b, props = __rest(_a, ["show"]);
|
|
189
|
+
var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-control-feedback', {
|
|
190
|
+
'd-block': show,
|
|
191
|
+
});
|
|
192
|
+
return (external_react_default().createElement((FormControl_default()).Feedback, { type: props.type, className: className }, props.children));
|
|
193
|
+
});
|
|
194
|
+
FormControlFeedBack.displayName = ' FormControlFeedBack';
|
|
195
|
+
|
|
196
|
+
;// CONCATENATED MODULE: ./src/components/Form/FormControl.tsx
|
|
197
|
+
var FormControl_rest = (undefined && undefined.__rest) || function (s, e) {
|
|
198
|
+
var t = {};
|
|
199
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
200
|
+
t[p] = s[p];
|
|
201
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
202
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
203
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
204
|
+
t[p[i]] = s[p[i]];
|
|
205
|
+
}
|
|
206
|
+
return t;
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
var FormControlComponent = external_react_default().forwardRef(function (_a, ref) {
|
|
214
|
+
var _b = _a.size, size = _b === void 0 ? 'md' : _b, props = FormControl_rest(_a, ["size"]);
|
|
215
|
+
var className = external_classnames_default()('atoka-form-control', props === null || props === void 0 ? void 0 : props.className, {
|
|
216
|
+
'atoka-shadow': props.withShadow,
|
|
217
|
+
'disabled': props.disabled,
|
|
218
|
+
});
|
|
219
|
+
return (external_react_default().createElement((FormControl_default()), { as: props.as, rows: props.rows, cols: props.cols, placeholder: props.placeholder, className: className, disabled: props.disabled, readOnly: props.readOnly, value: props.value, onChange: props.onChange, onKeyPress: props.onKeyPress, onKeyDown: props.onKeyDown, defaultValue: props.defaultValue, size: size === 'md' ? undefined : size, type: props.type, id: props.id, isValid: props.isValid, isInvalid: props.isInvalid, ref: ref, autoComplete: 'off' }, props.children));
|
|
220
|
+
});
|
|
221
|
+
FormControlComponent.displayName = 'FormControlComponent';
|
|
222
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
223
|
+
var FormControl = FormControlComponent;
|
|
224
|
+
FormControl.FeedBack = FormControlFeedBack;
|
|
225
|
+
FormControl.displayName = 'FormControl';
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
/***/ }),
|
|
230
|
+
|
|
231
|
+
/***/ 1470:
|
|
232
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
233
|
+
|
|
234
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
235
|
+
/* harmony export */ "q": () => (/* binding */ getRenderStatisticsTooltip)
|
|
236
|
+
/* harmony export */ });
|
|
237
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
|
|
238
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
239
|
+
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8805);
|
|
240
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
241
|
+
__assign = Object.assign || function(t) {
|
|
242
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
243
|
+
s = arguments[i];
|
|
244
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
245
|
+
t[p] = s[p];
|
|
246
|
+
}
|
|
247
|
+
return t;
|
|
248
|
+
};
|
|
249
|
+
return __assign.apply(this, arguments);
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
function getRenderStatisticsTooltip(_a) {
|
|
254
|
+
var tooltipDataLabelKey = _a.tooltipDataLabelKey, tooltipDataValueKey = _a.tooltipDataValueKey, tooltipDataTitleKey = _a.tooltipDataTitleKey, otherId = _a.otherId, otherLabel = _a.otherLabel, numberToStringFormatter = _a.numberToStringFormatter, withColor = _a.withColor, _b = _a.className, className = _b === void 0 ? 'tooltip-background' : _b;
|
|
255
|
+
// eslint-disable-next-line react/display-name
|
|
256
|
+
return function (props) {
|
|
257
|
+
var _a, _b, _c, _d;
|
|
258
|
+
var tooltipData = __assign(__assign({}, props.data), { value: (_a = props.data) === null || _a === void 0 ? void 0 : _a['value'], label: (_b = props.data) === null || _b === void 0 ? void 0 : _b['label'], id: (_c = props.data) === null || _c === void 0 ? void 0 : _c['id'], percentage: (_d = props.data) === null || _d === void 0 ? void 0 : _d['percentage'] });
|
|
259
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_index__WEBPACK_IMPORTED_MODULE_1__.StatisticsTooltip, { otherId: otherId, otherLabel: otherLabel, numberToStringFormatter: numberToStringFormatter, data: tooltipData, tooltipDataLabelKey: tooltipDataLabelKey, tooltipDataTitleKey: tooltipDataTitleKey, tooltipDataValueKey: tooltipDataValueKey, className: className !== null && className !== void 0 ? className : '', color: withColor ? props.color : undefined }));
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
/***/ }),
|
|
265
|
+
|
|
266
|
+
/***/ 8805:
|
|
267
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
// EXPORTS
|
|
271
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
272
|
+
"StatisticsTooltip": () => (/* reexport */ StatisticsTooltip),
|
|
273
|
+
"getRenderStatisticsTooltip": () => (/* reexport */ helpers/* getRenderStatisticsTooltip */.q)
|
|
274
|
+
});
|
|
275
|
+
|
|
276
|
+
// UNUSED EXPORTS: GetRenderStatisticsTooltipType
|
|
277
|
+
|
|
278
|
+
// EXTERNAL MODULE: external "react"
|
|
279
|
+
var external_react_ = __webpack_require__(8156);
|
|
280
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
281
|
+
// EXTERNAL MODULE: external "classnames"
|
|
282
|
+
var external_classnames_ = __webpack_require__(8310);
|
|
283
|
+
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
284
|
+
// EXTERNAL MODULE: ./src/components/Utils/Statistics.ts
|
|
285
|
+
var Statistics = __webpack_require__(5258);
|
|
286
|
+
;// CONCATENATED MODULE: ./src/components/StatisticsTooltip/StatisticsTooltip.tsx
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
var StatisticsTooltip = external_react_default().memo(function (props) {
|
|
291
|
+
// eslint-disable-next-line react/display-name
|
|
292
|
+
function renderSubtitle() {
|
|
293
|
+
var values = [
|
|
294
|
+
{ value: getLabel(), key: props.tooltipDataLabelKey, className: 'label' },
|
|
295
|
+
{ value: getValue(), key: props.tooltipDataValueKey, className: 'value' },
|
|
296
|
+
]
|
|
297
|
+
.filter(function (el) { return el.value != null; })
|
|
298
|
+
.map(function (el) { return (external_react_default().createElement("span", { key: el.key, className: el.className }, el.value)); });
|
|
299
|
+
if (values.length === 0) {
|
|
300
|
+
return null;
|
|
301
|
+
}
|
|
302
|
+
return external_react_default().createElement("div", { className: 'd-flex justify-content-between' }, values);
|
|
303
|
+
}
|
|
304
|
+
function getLabel() {
|
|
305
|
+
var tooltipDataLabelKey = props.tooltipDataLabelKey, numberToStringFormatter = props.numberToStringFormatter, data = props.data, label = getValueFromData(tooltipDataLabelKey, data);
|
|
306
|
+
if (label == null) {
|
|
307
|
+
return undefined;
|
|
308
|
+
}
|
|
309
|
+
if (numberToStringFormatter == null) {
|
|
310
|
+
return String(label);
|
|
311
|
+
}
|
|
312
|
+
if (typeof label == 'string') {
|
|
313
|
+
return label;
|
|
314
|
+
}
|
|
315
|
+
return numberToStringFormatter(label);
|
|
316
|
+
}
|
|
317
|
+
function getValue() {
|
|
318
|
+
var tooltipDataValueKey = props.tooltipDataValueKey, data = props.data, value = getValueFromData(tooltipDataValueKey, data);
|
|
319
|
+
if (value == null) {
|
|
320
|
+
return undefined;
|
|
321
|
+
}
|
|
322
|
+
if (typeof value == 'number') {
|
|
323
|
+
return (0,Statistics/* normalizePercentage */.Ow)(value);
|
|
324
|
+
}
|
|
325
|
+
return value;
|
|
326
|
+
}
|
|
327
|
+
function getTitle() {
|
|
328
|
+
var tooltipDataTitleKey = props.tooltipDataTitleKey, data = props.data, otherId = props.otherId, otherLabel = props.otherLabel, title = getValueFromData(tooltipDataTitleKey, data);
|
|
329
|
+
if (title === otherId) {
|
|
330
|
+
return otherLabel !== null && otherLabel !== void 0 ? otherLabel : otherId;
|
|
331
|
+
}
|
|
332
|
+
return title ? String(title) : undefined;
|
|
333
|
+
}
|
|
334
|
+
function getValueFromData(key, data) {
|
|
335
|
+
return key == null ? undefined : data === null || data === void 0 ? void 0 : data[key];
|
|
336
|
+
}
|
|
337
|
+
var className = external_classnames_default()('statistics-tooltip', props === null || props === void 0 ? void 0 : props.className), colorRectangle = props.color == null ? null : external_react_default().createElement("span", { className: 'tooltip-rectangle', style: { background: props.color } });
|
|
338
|
+
return (external_react_default().createElement("div", { className: className },
|
|
339
|
+
external_react_default().createElement("div", { className: 'd-flex align-items-center' },
|
|
340
|
+
colorRectangle,
|
|
341
|
+
external_react_default().createElement("span", { className: 'text-left' }, getTitle())),
|
|
342
|
+
renderSubtitle(),
|
|
343
|
+
props.children));
|
|
344
|
+
});
|
|
345
|
+
StatisticsTooltip.displayName = 'StatisticsTooltip';
|
|
346
|
+
|
|
347
|
+
// EXTERNAL MODULE: ./src/components/StatisticsTooltip/helpers.tsx
|
|
348
|
+
var helpers = __webpack_require__(1470);
|
|
349
|
+
;// CONCATENATED MODULE: ./src/components/StatisticsTooltip/index.ts
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
/***/ }),
|
|
355
|
+
|
|
356
|
+
/***/ 5970:
|
|
357
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
358
|
+
|
|
359
|
+
// ESM COMPAT FLAG
|
|
360
|
+
__webpack_require__.r(__webpack_exports__);
|
|
361
|
+
|
|
362
|
+
// EXPORTS
|
|
363
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
364
|
+
"ComputedDatum": () => (/* reexport */ sunburst_.ComputedDatum),
|
|
365
|
+
"SunBurst": () => (/* reexport */ SunBurst),
|
|
366
|
+
"SunBurstItemData": () => (/* reexport */ SunBurst_namespaceObject.SunBurstItemData),
|
|
367
|
+
"SunBurstProps": () => (/* reexport */ SunBurst_namespaceObject.SunBurstProps)
|
|
368
|
+
});
|
|
369
|
+
|
|
370
|
+
// NAMESPACE OBJECT: ./src/components/SunBurst/SunBurst.tsx
|
|
371
|
+
var SunBurst_namespaceObject = {};
|
|
372
|
+
__webpack_require__.r(SunBurst_namespaceObject);
|
|
373
|
+
__webpack_require__.d(SunBurst_namespaceObject, {
|
|
374
|
+
"X": () => (SunBurst)
|
|
375
|
+
});
|
|
376
|
+
|
|
377
|
+
// EXTERNAL MODULE: external "react"
|
|
378
|
+
var external_react_ = __webpack_require__(8156);
|
|
379
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
380
|
+
// EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
|
|
381
|
+
var esm = __webpack_require__(6627);
|
|
382
|
+
// EXTERNAL MODULE: external "@nivo/sunburst"
|
|
383
|
+
var sunburst_ = __webpack_require__(9503);
|
|
384
|
+
// EXTERNAL MODULE: external "classnames"
|
|
385
|
+
var external_classnames_ = __webpack_require__(8310);
|
|
386
|
+
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
387
|
+
// EXTERNAL MODULE: ./src/components/Utils/Utils.tsx
|
|
388
|
+
var Utils = __webpack_require__(5654);
|
|
389
|
+
// EXTERNAL MODULE: ./src/components/Utils/Style.ts
|
|
390
|
+
var Style = __webpack_require__(2755);
|
|
391
|
+
// EXTERNAL MODULE: ./src/components/Utils/Statistics.ts
|
|
392
|
+
var Statistics = __webpack_require__(5258);
|
|
393
|
+
// EXTERNAL MODULE: ./src/components/StatisticsTooltip/index.ts + 1 modules
|
|
394
|
+
var StatisticsTooltip = __webpack_require__(8805);
|
|
395
|
+
;// CONCATENATED MODULE: ./src/components/SunBurst/SunBurst.tsx
|
|
396
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
397
|
+
var extendStatics = function (d, b) {
|
|
398
|
+
extendStatics = Object.setPrototypeOf ||
|
|
399
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
400
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
401
|
+
return extendStatics(d, b);
|
|
402
|
+
};
|
|
403
|
+
return function (d, b) {
|
|
404
|
+
extendStatics(d, b);
|
|
405
|
+
function __() { this.constructor = d; }
|
|
406
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
407
|
+
};
|
|
408
|
+
})();
|
|
409
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
410
|
+
__assign = Object.assign || function(t) {
|
|
411
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
412
|
+
s = arguments[i];
|
|
413
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
414
|
+
t[p] = s[p];
|
|
415
|
+
}
|
|
416
|
+
return t;
|
|
417
|
+
};
|
|
418
|
+
return __assign.apply(this, arguments);
|
|
419
|
+
};
|
|
420
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
421
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
422
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
423
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
424
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
425
|
+
};
|
|
426
|
+
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
427
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
428
|
+
};
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* ### Overview
|
|
439
|
+
*
|
|
440
|
+
* The `Sunburst` is best suited to represent data structured as a tree.
|
|
441
|
+
* If your data has no depth, maybe the `Piechart` can be of help!
|
|
442
|
+
* */
|
|
443
|
+
var SunBurst = /** @class */ (function (_super) {
|
|
444
|
+
__extends(SunBurst, _super);
|
|
445
|
+
function SunBurst() {
|
|
446
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
447
|
+
_this.state = {
|
|
448
|
+
data: { id: '', children: [], label: '' },
|
|
449
|
+
};
|
|
450
|
+
return _this;
|
|
451
|
+
}
|
|
452
|
+
SunBurst.prototype.componentDidUpdate = function (prevProps) {
|
|
453
|
+
if ((0,Utils/* deepEqual */.vZ)(prevProps, this.props)) {
|
|
454
|
+
return;
|
|
455
|
+
}
|
|
456
|
+
this.setupComponent();
|
|
457
|
+
};
|
|
458
|
+
SunBurst.prototype.componentDidMount = function () {
|
|
459
|
+
this.setupComponent();
|
|
460
|
+
};
|
|
461
|
+
SunBurst.prototype.setupComponent = function () {
|
|
462
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
463
|
+
var _l = this.props, colors = _l.colors, maxSlicesNumber = _l.maxSlicesNumber;
|
|
464
|
+
if (colors == null) {
|
|
465
|
+
throw Error('What are the odds a developer voluntarily chooses to give the colors a null value with a default prop defined? Congrats!');
|
|
466
|
+
}
|
|
467
|
+
if (maxSlicesNumber && maxSlicesNumber + 1 !== colors.length) {
|
|
468
|
+
throw Error('With a maxSliceNumber prop, maxSlicesNumber + 1 must be of the same length as the colors.length prop');
|
|
469
|
+
}
|
|
470
|
+
var children = (0,Statistics/* createDataWithOtherSlice */.xG)((_b = (_a = this.props) === null || _a === void 0 ? void 0 : _a.data) !== null && _b !== void 0 ? _b : [], (_c = this.props) === null || _c === void 0 ? void 0 : _c.otherId, (_d = this.props) === null || _d === void 0 ? void 0 : _d.otherLabel, (_f = (_e = this.props) === null || _e === void 0 ? void 0 : _e.maxSlicesNumber) !== null && _f !== void 0 ? _f : Infinity, (_g = this.props) === null || _g === void 0 ? void 0 : _g.total);
|
|
471
|
+
this.renderTooltip = (0,StatisticsTooltip.getRenderStatisticsTooltip)({
|
|
472
|
+
tooltipDataLabelKey: 'value',
|
|
473
|
+
tooltipDataValueKey: 'percentage',
|
|
474
|
+
tooltipDataTitleKey: 'label',
|
|
475
|
+
otherId: this.props.otherId,
|
|
476
|
+
withColor: true,
|
|
477
|
+
numberToStringFormatter: (_h = this.props.tooltipValueFormat) !== null && _h !== void 0 ? _h : this.props.numberToStringFormatter,
|
|
478
|
+
});
|
|
479
|
+
this.setState({
|
|
480
|
+
data: {
|
|
481
|
+
id: (_j = this.props) === null || _j === void 0 ? void 0 : _j.id,
|
|
482
|
+
label: (_k = this.props) === null || _k === void 0 ? void 0 : _k.id,
|
|
483
|
+
children: children,
|
|
484
|
+
},
|
|
485
|
+
});
|
|
486
|
+
};
|
|
487
|
+
SunBurst.prototype.getRenderTooltip = function (props) {
|
|
488
|
+
var _a, _b, _c;
|
|
489
|
+
var tooltipFunction = (_a = this.props.renderTooltip) !== null && _a !== void 0 ? _a : this.renderTooltip,
|
|
490
|
+
// the type of value or initialValue is unknown because it was in the function which creates
|
|
491
|
+
// the other node which have unknown, but we know both can only be undefined or number
|
|
492
|
+
value = ((_b = props.data) === null || _b === void 0 ? void 0 : _b.value) || ((_c = props.data) === null || _c === void 0 ? void 0 : _c.initialValue) || 0;
|
|
493
|
+
return tooltipFunction(__assign(__assign({}, props), { data: __assign(__assign({}, props.data), { value: value }) }));
|
|
494
|
+
};
|
|
495
|
+
SunBurst.prototype.renderCenteredMetric = function (_a) {
|
|
496
|
+
var _b, _c, _d;
|
|
497
|
+
var nodes = _a.nodes, centerX = _a.centerX, centerY = _a.centerY;
|
|
498
|
+
var total = nodes.reduce(function (totalValue, datum) { return totalValue + datum.value; }, 0);
|
|
499
|
+
return (external_react_default().createElement("text", { x: centerX, y: centerY, textAnchor: 'middle', fontSize: '42px', fontWeight: '600', dominantBaseline: 'central', className: 'cursor-default' }, (_d = (_c = (_b = this.props) === null || _b === void 0 ? void 0 : _b.numberToStringFormatter) === null || _c === void 0 ? void 0 : _c.call(_b, total)) !== null && _d !== void 0 ? _d : total));
|
|
500
|
+
};
|
|
501
|
+
SunBurst.prototype.render = function () {
|
|
502
|
+
var _a = this.props, colors = _a.colors, height = _a.height, withNumber = _a.withNumber, className = external_classnames_default()('sunburst-container', this.props.className);
|
|
503
|
+
return (external_react_default().createElement("div", { id: this.props.id, style: { height: height, width: height }, ref: this.props.chartRef, className: className },
|
|
504
|
+
external_react_default().createElement(sunburst_.ResponsiveSunburst, { tooltip: this.getRenderTooltip, data: this.state.data, margin: { top: 10, right: 10, bottom: 10, left: 10 }, cornerRadius: 0, borderColor: '#ffff', colors: colors, childColor: { from: 'color', modifiers: [['brighter', 0.5]] }, enableArcLabels: false, isInteractive: true, layers: withNumber ? ['arcs', 'arcLabels', this.renderCenteredMetric] : undefined, animate: this.props.animate })));
|
|
505
|
+
};
|
|
506
|
+
var _a, _b, _c;
|
|
507
|
+
SunBurst.displayName = 'SunBurst';
|
|
508
|
+
SunBurst.defaultProps = {
|
|
509
|
+
colors: [Style/* blue100 */.qi, Style/* purple */.jk, Style/* viola */.Ef, Style/* pink200 */.u$, Style/* pink100 */.sf, Style/* salmon */.kr, Style/* gray400 */.de],
|
|
510
|
+
otherId: 'other',
|
|
511
|
+
height: '100%',
|
|
512
|
+
animate: true,
|
|
513
|
+
};
|
|
514
|
+
__decorate([
|
|
515
|
+
esm/* boundMethod */.MR,
|
|
516
|
+
__metadata("design:type", Function),
|
|
517
|
+
__metadata("design:paramtypes", [typeof (_a = typeof sunburst_.ComputedDatum !== "undefined" && sunburst_.ComputedDatum) === "function" ? _a : Object]),
|
|
518
|
+
__metadata("design:returntype", typeof (_b = typeof JSX !== "undefined" && JSX.Element) === "function" ? _b : Object)
|
|
519
|
+
], SunBurst.prototype, "getRenderTooltip", null);
|
|
520
|
+
__decorate([
|
|
521
|
+
esm/* boundMethod */.MR,
|
|
522
|
+
__metadata("design:type", Function),
|
|
523
|
+
__metadata("design:paramtypes", [typeof (_c = typeof sunburst_.SunburstCustomLayerProps !== "undefined" && sunburst_.SunburstCustomLayerProps) === "function" ? _c : Object]),
|
|
524
|
+
__metadata("design:returntype", void 0)
|
|
525
|
+
], SunBurst.prototype, "renderCenteredMetric", null);
|
|
526
|
+
return SunBurst;
|
|
527
|
+
}((external_react_default()).Component));
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
;// CONCATENATED MODULE: ./src/components/SunBurst/index.ts
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
/***/ }),
|
|
536
|
+
|
|
537
|
+
/***/ 5258:
|
|
538
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
539
|
+
|
|
540
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
541
|
+
/* harmony export */ "xG": () => (/* binding */ createDataWithOtherSlice),
|
|
542
|
+
/* harmony export */ "Ow": () => (/* binding */ normalizePercentage)
|
|
543
|
+
/* harmony export */ });
|
|
544
|
+
/* unused harmony export createCleanTree */
|
|
545
|
+
/* harmony import */ var _Utils_Utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5654);
|
|
546
|
+
var __values = (undefined && undefined.__values) || function(o) {
|
|
547
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
548
|
+
if (m) return m.call(o);
|
|
549
|
+
if (o && typeof o.length === "number") return {
|
|
550
|
+
next: function () {
|
|
551
|
+
if (o && i >= o.length) o = void 0;
|
|
552
|
+
return { value: o && o[i++], done: !o };
|
|
553
|
+
}
|
|
554
|
+
};
|
|
555
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
556
|
+
};
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
function createDataWithOtherSlice(data, otherId, otherLabel, maxSlicesNumber, total, dataValueKey) {
|
|
560
|
+
var _a, _b;
|
|
561
|
+
if (maxSlicesNumber === void 0) { maxSlicesNumber = 0; }
|
|
562
|
+
if (dataValueKey === void 0) { dataValueKey = 'value'; }
|
|
563
|
+
var otherValue = 0, newOtherId = otherId !== null && otherId !== void 0 ? otherId : 'other',
|
|
564
|
+
// We know it is defined but Typescript does not get it.
|
|
565
|
+
newmaxSlicesNumber = maxSlicesNumber !== null && maxSlicesNumber !== void 0 ? maxSlicesNumber : 0, newData = [], maxToMinData = data === null || data === void 0 ? void 0 : data.sort((0,_Utils_Utils__WEBPACK_IMPORTED_MODULE_0__/* .sortObjDesc */ .kV)(dataValueKey));
|
|
566
|
+
maxToMinData === null || maxToMinData === void 0 ? void 0 : maxToMinData.forEach(function (node, i) {
|
|
567
|
+
var _a;
|
|
568
|
+
if (i < newmaxSlicesNumber && node.id !== otherId) {
|
|
569
|
+
newData.push(createCleanTree(node));
|
|
570
|
+
}
|
|
571
|
+
else {
|
|
572
|
+
var nodeValue = (_a = Number(node === null || node === void 0 ? void 0 : node.value)) !== null && _a !== void 0 ? _a : 0;
|
|
573
|
+
otherValue += nodeValue;
|
|
574
|
+
}
|
|
575
|
+
});
|
|
576
|
+
var otherNode = {};
|
|
577
|
+
otherNode['id'] = newOtherId;
|
|
578
|
+
otherNode['value'] = parseFloat(otherValue.toFixed(2));
|
|
579
|
+
otherNode['initialValue'] = parseFloat(otherValue.toFixed(2));
|
|
580
|
+
otherNode['label'] = (_a = otherLabel !== null && otherLabel !== void 0 ? otherLabel : newOtherId) !== null && _a !== void 0 ? _a : '';
|
|
581
|
+
if (((_b = data === null || data === void 0 ? void 0 : data[0]) === null || _b === void 0 ? void 0 : _b.percentage) != null && total != null) {
|
|
582
|
+
otherNode['percentage'] = (otherValue / total) * 100;
|
|
583
|
+
}
|
|
584
|
+
if (maxSlicesNumber !== Infinity || otherValue !== 0) {
|
|
585
|
+
newData.push(otherNode);
|
|
586
|
+
}
|
|
587
|
+
return newData;
|
|
588
|
+
}
|
|
589
|
+
function createCleanTree(node) {
|
|
590
|
+
if (node.children == null) {
|
|
591
|
+
return node;
|
|
592
|
+
}
|
|
593
|
+
var newNode = (0,_Utils_Utils__WEBPACK_IMPORTED_MODULE_0__/* .clone */ .d9)(node);
|
|
594
|
+
removeValueIfChildren(newNode);
|
|
595
|
+
return newNode;
|
|
596
|
+
}
|
|
597
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
598
|
+
function removeValueIfChildren(node) {
|
|
599
|
+
var e_1, _a;
|
|
600
|
+
var _b;
|
|
601
|
+
var children = ((_b = node === null || node === void 0 ? void 0 : node['children']) !== null && _b !== void 0 ? _b : []);
|
|
602
|
+
node['initialValue'] = node['value'];
|
|
603
|
+
if (children.length > 0) {
|
|
604
|
+
delete node['value'];
|
|
605
|
+
}
|
|
606
|
+
try {
|
|
607
|
+
for (var children_1 = __values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) {
|
|
608
|
+
var child = children_1_1.value;
|
|
609
|
+
removeValueIfChildren(child);
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
613
|
+
finally {
|
|
614
|
+
try {
|
|
615
|
+
if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1);
|
|
616
|
+
}
|
|
617
|
+
finally { if (e_1) throw e_1.error; }
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
function normalizePercentage(value) {
|
|
621
|
+
var _a;
|
|
622
|
+
return parseInt((_a = value === null || value === void 0 ? void 0 : value.toFixed) === null || _a === void 0 ? void 0 : _a.call(value, 0), 10) + "%";
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
/***/ }),
|
|
627
|
+
|
|
628
|
+
/***/ 2755:
|
|
629
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
630
|
+
|
|
631
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
632
|
+
/* harmony export */ "qi": () => (/* binding */ blue100),
|
|
633
|
+
/* harmony export */ "de": () => (/* binding */ gray400),
|
|
634
|
+
/* harmony export */ "jk": () => (/* binding */ purple),
|
|
635
|
+
/* harmony export */ "Ef": () => (/* binding */ viola),
|
|
636
|
+
/* harmony export */ "sf": () => (/* binding */ pink100),
|
|
637
|
+
/* harmony export */ "u$": () => (/* binding */ pink200),
|
|
638
|
+
/* harmony export */ "kr": () => (/* binding */ salmon)
|
|
639
|
+
/* harmony export */ });
|
|
640
|
+
/* unused harmony exports calculateDomain, generateRangeColor, white, blue25, blue30, blue50, blue80, blue90, blue95, blue300, gray200, blue400, yellow, orange, red, green, gray100, gray300, black */
|
|
641
|
+
|
|
642
|
+
function generateRangeColor(len, rangeColors) {
|
|
643
|
+
if (rangeColors === void 0) { rangeColors = ['#82CA9D', '#f6ea25', '#F7977A']; }
|
|
644
|
+
var generatedColors = [];
|
|
645
|
+
if (len === 0) {
|
|
646
|
+
return undefined;
|
|
647
|
+
}
|
|
648
|
+
var colors = scaleLinear(), domain = calculateDomain(rangeColors.length, rangeColors.length), targetDomain = calculateDomain(len, rangeColors.length);
|
|
649
|
+
colors = colors.domain(domain).range(rangeColors);
|
|
650
|
+
for (var i = 0; i < len; i++) {
|
|
651
|
+
generatedColors.push(colors(targetDomain[i]));
|
|
652
|
+
}
|
|
653
|
+
return generatedColors;
|
|
654
|
+
}
|
|
655
|
+
function calculateDomain(len, rangeColorsLength) {
|
|
656
|
+
var domain = [];
|
|
657
|
+
domain.push(0);
|
|
658
|
+
for (var i = 0; i < len - 2; i++) {
|
|
659
|
+
var num = Number((rangeColorsLength / len) * (i + 1));
|
|
660
|
+
domain.push(parseFloat(num.toFixed(2)));
|
|
661
|
+
}
|
|
662
|
+
domain.push(rangeColorsLength);
|
|
663
|
+
return domain;
|
|
664
|
+
}
|
|
665
|
+
// Keep these in sync with variables.less
|
|
666
|
+
var white = '#FFFFFF', blue25 = '#eef2f5', blue30 = '#CBD8E0', blue50 = '#AFD1E0', blue80 = '#8FB7CB', blue90 = '#94C2DA', blue95 = '#6E9DB5', blue100 = '#578EA8', blue300 = 'rgb(32, 88, 113)', // #205871
|
|
667
|
+
blue400 = '#11455C', gray100 = '#FAFAFA', gray200 = '#EBEBEB', gray300 = '#B0B0B0', gray400 = '#717171', yellow = '#FFBB00', orange = '#F38522', red = '#F72200', green = '#309B0A', purple = '#63619F', viola = '#965DA3', pink200 = '#C55795', pink100 = '#E85778', salmon = '#F86752', black = '#222222';
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
/***/ }),
|
|
672
|
+
|
|
673
|
+
/***/ 5654:
|
|
674
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
675
|
+
|
|
676
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
677
|
+
/* harmony export */ "kV": () => (/* binding */ sortObjDesc),
|
|
678
|
+
/* harmony export */ "d9": () => (/* binding */ clone),
|
|
679
|
+
/* harmony export */ "vZ": () => (/* binding */ deepEqual)
|
|
680
|
+
/* harmony export */ });
|
|
681
|
+
/* unused harmony exports findChildrenByComponent, findChildByComponent, hasChildIconOrCheckboxComponent, scrollToTop, zip, getDebouncer, rgbToHex */
|
|
682
|
+
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5692);
|
|
683
|
+
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__);
|
|
684
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8156);
|
|
685
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
686
|
+
/* harmony import */ var _Form_Form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9316);
|
|
687
|
+
var __read = (undefined && undefined.__read) || function (o, n) {
|
|
688
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
689
|
+
if (!m) return o;
|
|
690
|
+
var i = m.call(o), r, ar = [], e;
|
|
691
|
+
try {
|
|
692
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
693
|
+
}
|
|
694
|
+
catch (error) { e = { error: error }; }
|
|
695
|
+
finally {
|
|
696
|
+
try {
|
|
697
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
698
|
+
}
|
|
699
|
+
finally { if (e) throw e.error; }
|
|
700
|
+
}
|
|
701
|
+
return ar;
|
|
702
|
+
};
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
function findChildrenByComponent(children,
|
|
707
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
708
|
+
component) {
|
|
709
|
+
var ret = [];
|
|
710
|
+
React.Children.forEach(children, function (element) {
|
|
711
|
+
if ((element === null || element === void 0 ? void 0 : element.type) === component) {
|
|
712
|
+
ret.push(element);
|
|
713
|
+
}
|
|
714
|
+
});
|
|
715
|
+
return ret;
|
|
716
|
+
}
|
|
717
|
+
function findChildByComponent(children,
|
|
718
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
719
|
+
component) {
|
|
720
|
+
var _a, _b;
|
|
721
|
+
return (_b = (_a = findChildrenByComponent(children, component)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : null;
|
|
722
|
+
}
|
|
723
|
+
function hasChildIconOrCheckboxComponent(children) {
|
|
724
|
+
var ret = false;
|
|
725
|
+
React.Children.forEach(children, function (element) {
|
|
726
|
+
if ((element === null || element === void 0 ? void 0 : element.type) != null &&
|
|
727
|
+
((element === null || element === void 0 ? void 0 : element.type) === FontAwesomeIcon || (element === null || element === void 0 ? void 0 : element.type) === 'i' || (element === null || element === void 0 ? void 0 : element.type) === Form.Checkbox)) {
|
|
728
|
+
ret = true;
|
|
729
|
+
return;
|
|
730
|
+
}
|
|
731
|
+
});
|
|
732
|
+
return ret;
|
|
733
|
+
}
|
|
734
|
+
function scrollToTop() {
|
|
735
|
+
window.scrollTo(0, 0);
|
|
736
|
+
}
|
|
737
|
+
function zip(arr1, arr2) {
|
|
738
|
+
var ret = [];
|
|
739
|
+
var i = 0;
|
|
740
|
+
while (arr1[i]) {
|
|
741
|
+
ret.push(arr1[i]);
|
|
742
|
+
ret.push(arr2[i++]);
|
|
743
|
+
}
|
|
744
|
+
return ret;
|
|
745
|
+
}
|
|
746
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
747
|
+
function sortObjDesc(accessor) {
|
|
748
|
+
return function (a, b) {
|
|
749
|
+
var leftVal = 0, rightVal = 0;
|
|
750
|
+
if ((a === null || a === void 0 ? void 0 : a[accessor]) != null) {
|
|
751
|
+
leftVal = a === null || a === void 0 ? void 0 : a[accessor];
|
|
752
|
+
}
|
|
753
|
+
if ((b === null || b === void 0 ? void 0 : b[accessor]) != null) {
|
|
754
|
+
rightVal = b === null || b === void 0 ? void 0 : b[accessor];
|
|
755
|
+
}
|
|
756
|
+
return leftVal > rightVal ? -1 : 1;
|
|
757
|
+
};
|
|
758
|
+
}
|
|
759
|
+
function clone(ob) {
|
|
760
|
+
return JSON.parse(JSON.stringify(ob));
|
|
761
|
+
}
|
|
762
|
+
function getDebouncer(delay) {
|
|
763
|
+
if (delay === void 0) { delay = 1; }
|
|
764
|
+
var debounceTimeout = null;
|
|
765
|
+
return function debounce(f) {
|
|
766
|
+
if (debounceTimeout !== null) {
|
|
767
|
+
clearTimeout(debounceTimeout);
|
|
768
|
+
}
|
|
769
|
+
debounceTimeout = window.setTimeout(f, delay);
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
function isObject(obj) {
|
|
773
|
+
return typeof obj === 'object' && obj != null;
|
|
774
|
+
}
|
|
775
|
+
function deepEqual(obj1, obj2) {
|
|
776
|
+
if (obj1 === obj2) {
|
|
777
|
+
return true;
|
|
778
|
+
}
|
|
779
|
+
if (isObject(obj1) && isObject(obj2)) {
|
|
780
|
+
if (Object.keys(obj1).length !== Object.keys(obj2).length) {
|
|
781
|
+
return false;
|
|
782
|
+
}
|
|
783
|
+
for (var prop in obj1) {
|
|
784
|
+
if (!deepEqual(obj1[prop], obj2[prop])) {
|
|
785
|
+
return false;
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
return true;
|
|
789
|
+
}
|
|
790
|
+
return false;
|
|
791
|
+
}
|
|
792
|
+
function componentToHex(c) {
|
|
793
|
+
if (isNaN(c)) {
|
|
794
|
+
throw Error('The color has not been written correctly');
|
|
795
|
+
}
|
|
796
|
+
var hex = c.toString(16).toUpperCase();
|
|
797
|
+
return hex.length === 1 ? '0' + hex : hex;
|
|
798
|
+
}
|
|
799
|
+
function cleanSingleColor(c) {
|
|
800
|
+
return c.replace(/"|'/g, '').trim();
|
|
801
|
+
}
|
|
802
|
+
function rgbToHex(rgb) {
|
|
803
|
+
if (rgb.includes('rgba')) {
|
|
804
|
+
throw Error('not implemented');
|
|
805
|
+
}
|
|
806
|
+
var _a = __read(rgb
|
|
807
|
+
.replace('rgb', '')
|
|
808
|
+
.replace(/\(|\)/gi, '')
|
|
809
|
+
.split(',')
|
|
810
|
+
.map(function (c) { return parseInt(cleanSingleColor(c), 10); }), 3), _b = _a[0], r = _b === void 0 ? 0 : _b, _c = _a[1], g = _c === void 0 ? 0 : _c, _d = _a[2], b = _d === void 0 ? 0 : _d;
|
|
811
|
+
return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b);
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
|
|
815
|
+
/***/ }),
|
|
816
|
+
|
|
817
|
+
/***/ 6627:
|
|
818
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
819
|
+
|
|
820
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
821
|
+
/* harmony export */ "MR": () => (/* binding */ boundMethod)
|
|
822
|
+
/* harmony export */ });
|
|
823
|
+
/* unused harmony exports boundClass, default */
|
|
824
|
+
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4329);
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
function _typeof(obj) {
|
|
828
|
+
if (typeof Symbol === "function" && (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Symbol.iterator) === "symbol") {
|
|
829
|
+
_typeof = function _typeof(obj) {
|
|
830
|
+
return (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
|
|
831
|
+
};
|
|
832
|
+
} else {
|
|
833
|
+
_typeof = function _typeof(obj) {
|
|
834
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
|
|
835
|
+
};
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
return _typeof(obj);
|
|
839
|
+
}
|
|
840
|
+
/**
|
|
841
|
+
* Return a descriptor removing the value and returning a getter
|
|
842
|
+
* The getter will return a .bind version of the function
|
|
843
|
+
* and memoize the result against a symbol on the instance
|
|
844
|
+
*/
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
function boundMethod(target, key, descriptor) {
|
|
848
|
+
var fn = descriptor.value;
|
|
849
|
+
|
|
850
|
+
if (typeof fn !== 'function') {
|
|
851
|
+
throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(_typeof(fn)));
|
|
852
|
+
} // In IE11 calling Object.defineProperty has a side-effect of evaluating the
|
|
853
|
+
// getter for the property which is being replaced. This causes infinite
|
|
854
|
+
// recursion and an "Out of stack space" error.
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
var definingProperty = false;
|
|
858
|
+
return {
|
|
859
|
+
configurable: true,
|
|
860
|
+
get: function get() {
|
|
861
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
862
|
+
if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {
|
|
863
|
+
return fn;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
var boundFn = fn.bind(this);
|
|
867
|
+
definingProperty = true;
|
|
868
|
+
Object.defineProperty(this, key, {
|
|
869
|
+
configurable: true,
|
|
870
|
+
get: function get() {
|
|
871
|
+
return boundFn;
|
|
872
|
+
},
|
|
873
|
+
set: function set(value) {
|
|
874
|
+
fn = value;
|
|
875
|
+
delete this[key];
|
|
876
|
+
}
|
|
877
|
+
});
|
|
878
|
+
definingProperty = false;
|
|
879
|
+
return boundFn;
|
|
880
|
+
},
|
|
881
|
+
set: function set(value) {
|
|
882
|
+
fn = value;
|
|
883
|
+
}
|
|
884
|
+
};
|
|
885
|
+
}
|
|
886
|
+
/**
|
|
887
|
+
* Use boundMethod to bind all methods on the target.prototype
|
|
888
|
+
*/
|
|
889
|
+
|
|
890
|
+
function boundClass(target) {
|
|
891
|
+
// (Using reflect to get all keys including symbols)
|
|
892
|
+
var keys; // Use Reflect if exists
|
|
893
|
+
|
|
894
|
+
if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {
|
|
895
|
+
keys = Reflect.ownKeys(target.prototype);
|
|
896
|
+
} else {
|
|
897
|
+
keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided
|
|
898
|
+
|
|
899
|
+
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
900
|
+
keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
keys.forEach(function (key) {
|
|
905
|
+
// Ignore special case target method
|
|
906
|
+
if (key === 'constructor') {
|
|
907
|
+
return;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding
|
|
911
|
+
|
|
912
|
+
if (typeof descriptor.value === 'function') {
|
|
913
|
+
Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));
|
|
914
|
+
}
|
|
915
|
+
});
|
|
916
|
+
return target;
|
|
917
|
+
}
|
|
918
|
+
function autobind() {
|
|
919
|
+
if (arguments.length === 1) {
|
|
920
|
+
return boundClass.apply(void 0, arguments);
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
return boundMethod.apply(void 0, arguments);
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
/***/ }),
|
|
927
|
+
|
|
928
|
+
/***/ 5692:
|
|
929
|
+
/***/ ((module) => {
|
|
930
|
+
|
|
931
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;
|
|
932
|
+
|
|
933
|
+
/***/ }),
|
|
934
|
+
|
|
935
|
+
/***/ 9503:
|
|
936
|
+
/***/ ((module) => {
|
|
937
|
+
|
|
938
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__9503__;
|
|
939
|
+
|
|
940
|
+
/***/ }),
|
|
941
|
+
|
|
942
|
+
/***/ 8310:
|
|
943
|
+
/***/ ((module) => {
|
|
944
|
+
|
|
945
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
|
|
946
|
+
|
|
947
|
+
/***/ }),
|
|
948
|
+
|
|
949
|
+
/***/ 8156:
|
|
950
|
+
/***/ ((module) => {
|
|
951
|
+
|
|
952
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
|
|
953
|
+
|
|
954
|
+
/***/ }),
|
|
955
|
+
|
|
956
|
+
/***/ 8721:
|
|
957
|
+
/***/ ((module) => {
|
|
958
|
+
|
|
959
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8721__;
|
|
960
|
+
|
|
961
|
+
/***/ }),
|
|
962
|
+
|
|
963
|
+
/***/ 1082:
|
|
964
|
+
/***/ ((module) => {
|
|
965
|
+
|
|
966
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__1082__;
|
|
967
|
+
|
|
968
|
+
/***/ }),
|
|
969
|
+
|
|
970
|
+
/***/ 8763:
|
|
971
|
+
/***/ ((module) => {
|
|
972
|
+
|
|
973
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8763__;
|
|
974
|
+
|
|
975
|
+
/***/ }),
|
|
976
|
+
|
|
977
|
+
/***/ 4329:
|
|
978
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
979
|
+
|
|
980
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
981
|
+
/* harmony export */ "Z": () => (/* binding */ _typeof)
|
|
982
|
+
/* harmony export */ });
|
|
983
|
+
function _typeof(obj) {
|
|
984
|
+
"@babel/helpers - typeof";
|
|
985
|
+
|
|
986
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
987
|
+
_typeof = function _typeof(obj) {
|
|
988
|
+
return typeof obj;
|
|
989
|
+
};
|
|
990
|
+
} else {
|
|
991
|
+
_typeof = function _typeof(obj) {
|
|
992
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
993
|
+
};
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
return _typeof(obj);
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
/***/ })
|
|
1000
|
+
|
|
1001
|
+
/******/ });
|
|
1002
|
+
/************************************************************************/
|
|
1003
|
+
/******/ // The module cache
|
|
1004
|
+
/******/ var __webpack_module_cache__ = {};
|
|
1005
|
+
/******/
|
|
1006
|
+
/******/ // The require function
|
|
1007
|
+
/******/ function __webpack_require__(moduleId) {
|
|
1008
|
+
/******/ // Check if module is in cache
|
|
1009
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
1010
|
+
/******/ if (cachedModule !== undefined) {
|
|
1011
|
+
/******/ return cachedModule.exports;
|
|
1012
|
+
/******/ }
|
|
1013
|
+
/******/ // Create a new module (and put it into the cache)
|
|
1014
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
1015
|
+
/******/ // no module.id needed
|
|
1016
|
+
/******/ // no module.loaded needed
|
|
1017
|
+
/******/ exports: {}
|
|
1018
|
+
/******/ };
|
|
1019
|
+
/******/
|
|
1020
|
+
/******/ // Execute the module function
|
|
1021
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
1022
|
+
/******/
|
|
1023
|
+
/******/ // Return the exports of the module
|
|
1024
|
+
/******/ return module.exports;
|
|
1025
|
+
/******/ }
|
|
1026
|
+
/******/
|
|
1027
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
1028
|
+
/******/ __webpack_require__.m = __webpack_modules__;
|
|
1029
|
+
/******/
|
|
1030
|
+
/************************************************************************/
|
|
1031
|
+
/******/ /* webpack/runtime/chunk loaded */
|
|
1032
|
+
/******/ (() => {
|
|
1033
|
+
/******/ var deferred = [];
|
|
1034
|
+
/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
|
|
1035
|
+
/******/ if(chunkIds) {
|
|
1036
|
+
/******/ priority = priority || 0;
|
|
1037
|
+
/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
|
|
1038
|
+
/******/ deferred[i] = [chunkIds, fn, priority];
|
|
1039
|
+
/******/ return;
|
|
1040
|
+
/******/ }
|
|
1041
|
+
/******/ var notFulfilled = Infinity;
|
|
1042
|
+
/******/ for (var i = 0; i < deferred.length; i++) {
|
|
1043
|
+
/******/ var [chunkIds, fn, priority] = deferred[i];
|
|
1044
|
+
/******/ var fulfilled = true;
|
|
1045
|
+
/******/ for (var j = 0; j < chunkIds.length; j++) {
|
|
1046
|
+
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
|
|
1047
|
+
/******/ chunkIds.splice(j--, 1);
|
|
1048
|
+
/******/ } else {
|
|
1049
|
+
/******/ fulfilled = false;
|
|
1050
|
+
/******/ if(priority < notFulfilled) notFulfilled = priority;
|
|
1051
|
+
/******/ }
|
|
1052
|
+
/******/ }
|
|
1053
|
+
/******/ if(fulfilled) {
|
|
1054
|
+
/******/ deferred.splice(i--, 1)
|
|
1055
|
+
/******/ var r = fn();
|
|
1056
|
+
/******/ if (r !== undefined) result = r;
|
|
1057
|
+
/******/ }
|
|
1058
|
+
/******/ }
|
|
1059
|
+
/******/ return result;
|
|
1060
|
+
/******/ };
|
|
1061
|
+
/******/ })();
|
|
1062
|
+
/******/
|
|
1063
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
1064
|
+
/******/ (() => {
|
|
1065
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
1066
|
+
/******/ __webpack_require__.n = (module) => {
|
|
1067
|
+
/******/ var getter = module && module.__esModule ?
|
|
1068
|
+
/******/ () => (module['default']) :
|
|
1069
|
+
/******/ () => (module);
|
|
1070
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
1071
|
+
/******/ return getter;
|
|
1072
|
+
/******/ };
|
|
1073
|
+
/******/ })();
|
|
1074
|
+
/******/
|
|
1075
|
+
/******/ /* webpack/runtime/define property getters */
|
|
1076
|
+
/******/ (() => {
|
|
1077
|
+
/******/ // define getter functions for harmony exports
|
|
1078
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
1079
|
+
/******/ for(var key in definition) {
|
|
1080
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
1081
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
1082
|
+
/******/ }
|
|
1083
|
+
/******/ }
|
|
1084
|
+
/******/ };
|
|
1085
|
+
/******/ })();
|
|
1086
|
+
/******/
|
|
1087
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
1088
|
+
/******/ (() => {
|
|
1089
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
1090
|
+
/******/ })();
|
|
1091
|
+
/******/
|
|
1092
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
1093
|
+
/******/ (() => {
|
|
1094
|
+
/******/ // define __esModule on exports
|
|
1095
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
1096
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
1097
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
1098
|
+
/******/ }
|
|
1099
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
1100
|
+
/******/ };
|
|
1101
|
+
/******/ })();
|
|
1102
|
+
/******/
|
|
1103
|
+
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
1104
|
+
/******/ (() => {
|
|
1105
|
+
/******/ // no baseURI
|
|
1106
|
+
/******/
|
|
1107
|
+
/******/ // object to store loaded and loading chunks
|
|
1108
|
+
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
1109
|
+
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
1110
|
+
/******/ var installedChunks = {
|
|
1111
|
+
/******/ 6074: 0,
|
|
1112
|
+
/******/ 9811: 0,
|
|
1113
|
+
/******/ 1981: 0
|
|
1114
|
+
/******/ };
|
|
1115
|
+
/******/
|
|
1116
|
+
/******/ // no chunk on demand loading
|
|
1117
|
+
/******/
|
|
1118
|
+
/******/ // no prefetching
|
|
1119
|
+
/******/
|
|
1120
|
+
/******/ // no preloaded
|
|
1121
|
+
/******/
|
|
1122
|
+
/******/ // no HMR
|
|
1123
|
+
/******/
|
|
1124
|
+
/******/ // no HMR manifest
|
|
1125
|
+
/******/
|
|
1126
|
+
/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
|
|
1127
|
+
/******/
|
|
1128
|
+
/******/ // install a JSONP callback for chunk loading
|
|
1129
|
+
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
|
1130
|
+
/******/ var [chunkIds, moreModules, runtime] = data;
|
|
1131
|
+
/******/ // add "moreModules" to the modules object,
|
|
1132
|
+
/******/ // then flag all "chunkIds" as loaded and fire callback
|
|
1133
|
+
/******/ var moduleId, chunkId, i = 0;
|
|
1134
|
+
/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
|
|
1135
|
+
/******/ for(moduleId in moreModules) {
|
|
1136
|
+
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
|
|
1137
|
+
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
|
|
1138
|
+
/******/ }
|
|
1139
|
+
/******/ }
|
|
1140
|
+
/******/ if(runtime) var result = runtime(__webpack_require__);
|
|
1141
|
+
/******/ }
|
|
1142
|
+
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
|
|
1143
|
+
/******/ for(;i < chunkIds.length; i++) {
|
|
1144
|
+
/******/ chunkId = chunkIds[i];
|
|
1145
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
1146
|
+
/******/ installedChunks[chunkId][0]();
|
|
1147
|
+
/******/ }
|
|
1148
|
+
/******/ installedChunks[chunkIds[i]] = 0;
|
|
1149
|
+
/******/ }
|
|
1150
|
+
/******/ return __webpack_require__.O(result);
|
|
1151
|
+
/******/ }
|
|
1152
|
+
/******/
|
|
1153
|
+
/******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
|
|
1154
|
+
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
|
1155
|
+
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
|
1156
|
+
/******/ })();
|
|
1157
|
+
/******/
|
|
1158
|
+
/************************************************************************/
|
|
1159
|
+
/******/
|
|
1160
|
+
/******/ // startup
|
|
1161
|
+
/******/ // Load entry module and return exports
|
|
1162
|
+
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
1163
|
+
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [1981], () => (__webpack_require__(5970)))
|
|
1164
|
+
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
1165
|
+
/******/
|
|
1166
|
+
/******/ return __webpack_exports__;
|
|
1167
|
+
/******/ })()
|
|
1168
|
+
;
|
|
1169
|
+
});
|
|
1170
|
+
//# sourceMappingURL=index.js.map
|