@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,1046 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory(require("@fortawesome/pro-light-svg-icons/faMinusCircle"), require("@fortawesome/pro-light-svg-icons/faPlusCircle"), require("@fortawesome/pro-light-svg-icons/faTimes"), require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-bootstrap/Button"), require("react-bootstrap/ListGroup"), require("react-bootstrap/OverlayTrigger"), require("react-dom"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define("atoka-design-system", ["@fortawesome/pro-light-svg-icons/faMinusCircle", "@fortawesome/pro-light-svg-icons/faPlusCircle", "@fortawesome/pro-light-svg-icons/faTimes", "@fortawesome/react-fontawesome", "classnames", "react", "react-bootstrap/Button", "react-bootstrap/ListGroup", "react-bootstrap/OverlayTrigger", "react-dom"], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["atoka-design-system"] = factory(require("@fortawesome/pro-light-svg-icons/faMinusCircle"), require("@fortawesome/pro-light-svg-icons/faPlusCircle"), require("@fortawesome/pro-light-svg-icons/faTimes"), require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-bootstrap/Button"), require("react-bootstrap/ListGroup"), require("react-bootstrap/OverlayTrigger"), require("react-dom"));
|
|
8
|
+
else
|
|
9
|
+
root["atoka-design-system"] = factory(root["@fortawesome/pro-light-svg-icons/faMinusCircle"], root["@fortawesome/pro-light-svg-icons/faPlusCircle"], root["@fortawesome/pro-light-svg-icons/faTimes"], root["@fortawesome/react-fontawesome"], root["classnames"], root["react"], root["react-bootstrap/Button"], root["react-bootstrap/ListGroup"], root["react-bootstrap/OverlayTrigger"], root["react-dom"]);
|
|
10
|
+
})(self, function(__WEBPACK_EXTERNAL_MODULE__8809__, __WEBPACK_EXTERNAL_MODULE__8761__, __WEBPACK_EXTERNAL_MODULE__6988__, __WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__8926__, __WEBPACK_EXTERNAL_MODULE__9034__, __WEBPACK_EXTERNAL_MODULE__6043__, __WEBPACK_EXTERNAL_MODULE__7111__) {
|
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
|
12
|
+
/******/ "use strict";
|
|
13
|
+
/******/ var __webpack_modules__ = ({
|
|
14
|
+
|
|
15
|
+
/***/ 2044:
|
|
16
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17
|
+
|
|
18
|
+
// ESM COMPAT FLAG
|
|
19
|
+
__webpack_require__.r(__webpack_exports__);
|
|
20
|
+
|
|
21
|
+
// EXPORTS
|
|
22
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
23
|
+
"AddableItems": () => (/* reexport */ AddableItems),
|
|
24
|
+
"extractFacetKeyFromItemValue": () => (/* reexport */ extractFacetKeyFromItemValue)
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
// EXTERNAL MODULE: external "classnames"
|
|
28
|
+
var external_classnames_ = __webpack_require__(8310);
|
|
29
|
+
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
30
|
+
// EXTERNAL MODULE: external "react"
|
|
31
|
+
var external_react_ = __webpack_require__(8156);
|
|
32
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
33
|
+
// EXTERNAL MODULE: ./src/components/Button/index.ts
|
|
34
|
+
var Button = __webpack_require__(125);
|
|
35
|
+
// EXTERNAL MODULE: ./src/components/Title/index.ts
|
|
36
|
+
var Title = __webpack_require__(9190);
|
|
37
|
+
// EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
|
|
38
|
+
var esm = __webpack_require__(6627);
|
|
39
|
+
// EXTERNAL MODULE: external "react-bootstrap/ListGroup"
|
|
40
|
+
var ListGroup_ = __webpack_require__(9034);
|
|
41
|
+
var ListGroup_default = /*#__PURE__*/__webpack_require__.n(ListGroup_);
|
|
42
|
+
// EXTERNAL MODULE: external "@fortawesome/pro-light-svg-icons/faPlusCircle"
|
|
43
|
+
var faPlusCircle_ = __webpack_require__(8761);
|
|
44
|
+
// EXTERNAL MODULE: external "@fortawesome/pro-light-svg-icons/faMinusCircle"
|
|
45
|
+
var faMinusCircle_ = __webpack_require__(8809);
|
|
46
|
+
// EXTERNAL MODULE: external "@fortawesome/pro-light-svg-icons/faTimes"
|
|
47
|
+
var faTimes_ = __webpack_require__(6988);
|
|
48
|
+
// EXTERNAL MODULE: external "react-dom"
|
|
49
|
+
var external_react_dom_ = __webpack_require__(7111);
|
|
50
|
+
var external_react_dom_default = /*#__PURE__*/__webpack_require__.n(external_react_dom_);
|
|
51
|
+
// EXTERNAL MODULE: ./src/components/Tooltip/index.ts + 1 modules
|
|
52
|
+
var Tooltip = __webpack_require__(1512);
|
|
53
|
+
;// CONCATENATED MODULE: ./src/components/AddableItems/ClickableExcludableItem.tsx
|
|
54
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
55
|
+
var extendStatics = function (d, b) {
|
|
56
|
+
extendStatics = Object.setPrototypeOf ||
|
|
57
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
58
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
59
|
+
return extendStatics(d, b);
|
|
60
|
+
};
|
|
61
|
+
return function (d, b) {
|
|
62
|
+
extendStatics(d, b);
|
|
63
|
+
function __() { this.constructor = d; }
|
|
64
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
65
|
+
};
|
|
66
|
+
})();
|
|
67
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
68
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
69
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
70
|
+
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;
|
|
71
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
72
|
+
};
|
|
73
|
+
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
74
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
var ClickableExcludableItem = /** @class */ (function (_super) {
|
|
89
|
+
__extends(ClickableExcludableItem, _super);
|
|
90
|
+
function ClickableExcludableItem() {
|
|
91
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
92
|
+
}
|
|
93
|
+
ClickableExcludableItem.prototype.renderItemButtons = function () {
|
|
94
|
+
if (this.props.kind === ClickableItemKind.add) {
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
return (external_react_default().createElement("span", { className: 'clickable-item-buttons-container' },
|
|
98
|
+
external_react_default().createElement(Button.Button, { variant: 'tertiary', icon: faTimes_.faTimes, size: 'xs' }),
|
|
99
|
+
this.renderIncludeExcludeToggler()));
|
|
100
|
+
};
|
|
101
|
+
ClickableExcludableItem.prototype.renderItemRealContent = function (item) {
|
|
102
|
+
if (this.props.itemContentRenderer != null) {
|
|
103
|
+
return this.props.itemContentRenderer(item);
|
|
104
|
+
}
|
|
105
|
+
return item.value;
|
|
106
|
+
};
|
|
107
|
+
ClickableExcludableItem.prototype.renderItemContent = function (item) {
|
|
108
|
+
var notSuffix = this.props.isExcluded === true ? (external_react_default().createElement("span", { className: 'item-content-not-suffix' },
|
|
109
|
+
this.props.notSuffixLabel,
|
|
110
|
+
"\u00A0")) : ('');
|
|
111
|
+
return (external_react_default().createElement("div", { className: 'item-content d-flex align-items-center text-wrap w-100 mr-1 overflow-hidden' },
|
|
112
|
+
notSuffix,
|
|
113
|
+
this.renderItemRealContent(item)));
|
|
114
|
+
};
|
|
115
|
+
ClickableExcludableItem.prototype.renderIncludeExcludeToggler = function () {
|
|
116
|
+
var _this = this;
|
|
117
|
+
if (this.props.supportsExclusion !== true) {
|
|
118
|
+
return null;
|
|
119
|
+
}
|
|
120
|
+
var button = (external_react_default().createElement("div", null,
|
|
121
|
+
external_react_default().createElement(Button.Button, { ref: function (node) { return (_this.includeExcludeTogglerRef = node); }, variant: 'tertiary', icon: this.props.isExcluded ? faPlusCircle_.faPlusCircle : faMinusCircle_.faMinusCircle, size: 'xs', onClick: this.props.onToggleIncludeExclude, className: 'item-toggler' })));
|
|
122
|
+
if (this.props.tooltipMessages == null) {
|
|
123
|
+
return button;
|
|
124
|
+
}
|
|
125
|
+
var _a = this.props.tooltipMessages, include = _a.include, exclude = _a.exclude;
|
|
126
|
+
return external_react_default().createElement(Tooltip.Tooltip, { content: this.props.isExcluded ? include : exclude }, button);
|
|
127
|
+
};
|
|
128
|
+
ClickableExcludableItem.prototype.renderCount = function (item) {
|
|
129
|
+
if (item.count == null) {
|
|
130
|
+
return external_react_default().createElement("span", null, "\u00A0");
|
|
131
|
+
}
|
|
132
|
+
var count = item.count.toString();
|
|
133
|
+
if (this.props.countFormatter) {
|
|
134
|
+
count = this.props.countFormatter(item.count);
|
|
135
|
+
}
|
|
136
|
+
return external_react_default().createElement("span", { className: 'list-item-count' }, count);
|
|
137
|
+
};
|
|
138
|
+
ClickableExcludableItem.prototype.handleContainerClick = function (e) {
|
|
139
|
+
if (this.props.supportsExclusion === true) {
|
|
140
|
+
// eslint-disable-next-line react/no-find-dom-node
|
|
141
|
+
var includeExcludeToggler = external_react_dom_default().findDOMNode(this.includeExcludeTogglerRef);
|
|
142
|
+
if (e.target === includeExcludeToggler || (includeExcludeToggler === null || includeExcludeToggler === void 0 ? void 0 : includeExcludeToggler.contains(e.target))) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
this.props.onRemove();
|
|
147
|
+
};
|
|
148
|
+
ClickableExcludableItem.prototype.render = function () {
|
|
149
|
+
var itemClassName = external_classnames_default()([ClickableItemKind[this.props.kind]], {
|
|
150
|
+
included: this.props.supportsExclusion && !this.props.isExcluded,
|
|
151
|
+
excluded: this.props.isExcluded,
|
|
152
|
+
});
|
|
153
|
+
return (external_react_default().createElement((ListGroup_default()).Item, { bsPrefix: 'atoka-list-group-item', className: itemClassName, onClick: this.handleContainerClick },
|
|
154
|
+
external_react_default().createElement("span", { className: 'list-group-item-content-container w-100 d-flex justify-content-between' },
|
|
155
|
+
external_react_default().createElement("div", { className: 'd-flex align-items-center w-100 overflow-hidden' },
|
|
156
|
+
this.renderItemButtons(),
|
|
157
|
+
this.renderItemContent(this.props.item)),
|
|
158
|
+
this.renderCount(this.props.item))));
|
|
159
|
+
};
|
|
160
|
+
var _a;
|
|
161
|
+
ClickableExcludableItem.displayName = 'ClickableExcludableItem';
|
|
162
|
+
__decorate([
|
|
163
|
+
esm/* boundMethod */.MR,
|
|
164
|
+
__metadata("design:type", Function),
|
|
165
|
+
__metadata("design:paramtypes", [typeof (_a = typeof (external_react_default()) !== "undefined" && (external_react_default()).MouseEvent) === "function" ? _a : Object]),
|
|
166
|
+
__metadata("design:returntype", void 0)
|
|
167
|
+
], ClickableExcludableItem.prototype, "handleContainerClick", null);
|
|
168
|
+
return ClickableExcludableItem;
|
|
169
|
+
}((external_react_default()).PureComponent));
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
;// CONCATENATED MODULE: ./src/components/AddableItems/ClickableItemList.tsx
|
|
173
|
+
var ClickableItemList_extends = (undefined && undefined.__extends) || (function () {
|
|
174
|
+
var extendStatics = function (d, b) {
|
|
175
|
+
extendStatics = Object.setPrototypeOf ||
|
|
176
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
177
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
178
|
+
return extendStatics(d, b);
|
|
179
|
+
};
|
|
180
|
+
return function (d, b) {
|
|
181
|
+
extendStatics(d, b);
|
|
182
|
+
function __() { this.constructor = d; }
|
|
183
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
184
|
+
};
|
|
185
|
+
})();
|
|
186
|
+
var ClickableItemList_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
187
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
188
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
189
|
+
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;
|
|
190
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
191
|
+
};
|
|
192
|
+
var ClickableItemList_metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
193
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
// eslint-disable-next-line no-shadow
|
|
201
|
+
var ClickableItemKind;
|
|
202
|
+
(function (ClickableItemKind) {
|
|
203
|
+
ClickableItemKind[ClickableItemKind["add"] = 0] = "add";
|
|
204
|
+
ClickableItemKind[ClickableItemKind["remove"] = 1] = "remove";
|
|
205
|
+
})(ClickableItemKind || (ClickableItemKind = {}));
|
|
206
|
+
var ClickableItemList = /** @class */ (function (_super) {
|
|
207
|
+
ClickableItemList_extends(ClickableItemList, _super);
|
|
208
|
+
function ClickableItemList() {
|
|
209
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
210
|
+
}
|
|
211
|
+
ClickableItemList.prototype.renderItem = function (item) {
|
|
212
|
+
var _this = this;
|
|
213
|
+
return (external_react_default().createElement(ClickableExcludableItem, { key: item.value, item: item, kind: this.props.kind, onRemove: function () { return _this.props.onClick(item); }, onToggleIncludeExclude: function () { var _a, _b, _c; return (_b = (_a = _this.props).onToggleIncludeExclude) === null || _b === void 0 ? void 0 : _b.call(_a, item, (_c = _this.props.areItemsExcluded) !== null && _c !== void 0 ? _c : false); }, supportsExclusion: this.props.supportsExclusion, isExcluded: this.props.areItemsExcluded, itemContentRenderer: this.props.itemContentRenderer, tooltipMessages: this.props.tooltipMessages, notSuffixLabel: this.props.notSuffixLabel, countFormatter: this.props.countFormatter }));
|
|
214
|
+
};
|
|
215
|
+
ClickableItemList.prototype.needToShowEmptyMessage = function () {
|
|
216
|
+
if (this.props.emptyMessage == null) {
|
|
217
|
+
return false;
|
|
218
|
+
}
|
|
219
|
+
if (this.props.items == null) {
|
|
220
|
+
return true;
|
|
221
|
+
}
|
|
222
|
+
if (this.props.items.length > 0) {
|
|
223
|
+
return false;
|
|
224
|
+
}
|
|
225
|
+
return true;
|
|
226
|
+
};
|
|
227
|
+
ClickableItemList.prototype.getItems = function () {
|
|
228
|
+
if (this.needToShowEmptyMessage()) {
|
|
229
|
+
return (external_react_default().createElement((ListGroup_default()).Item, { bsPrefix: 'atoka-list-group-item', key: 'empty-message' }, this.props.emptyMessage));
|
|
230
|
+
}
|
|
231
|
+
if (this.props.items == null || this.props.items.length === 0) {
|
|
232
|
+
return null;
|
|
233
|
+
}
|
|
234
|
+
if (this.props.items[0].count == null) {
|
|
235
|
+
return this.props.items.map(this.renderItem);
|
|
236
|
+
}
|
|
237
|
+
var items = this.props.items;
|
|
238
|
+
return items
|
|
239
|
+
.sort(function (a, b) { var _a, _b; return ((_a = b.count) !== null && _a !== void 0 ? _a : 0) - ((_b = a.count) !== null && _b !== void 0 ? _b : 0); })
|
|
240
|
+
.map(this.renderItem);
|
|
241
|
+
};
|
|
242
|
+
ClickableItemList.prototype.render = function () {
|
|
243
|
+
var classNames = external_classnames_default()({
|
|
244
|
+
'list-empty': this.props.items == null || this.props.items.length === 0,
|
|
245
|
+
'atoka-addable-items': this.props.kind === ClickableItemKind.add,
|
|
246
|
+
'atoka-removable-items': this.props.kind === ClickableItemKind.remove,
|
|
247
|
+
});
|
|
248
|
+
return (external_react_default().createElement((ListGroup_default()), { bsPrefix: 'atoka-list-group', className: classNames }, this.getItems()));
|
|
249
|
+
};
|
|
250
|
+
var _a;
|
|
251
|
+
ClickableItemList.displayName = 'ClickableItemList';
|
|
252
|
+
ClickableItemList_decorate([
|
|
253
|
+
esm/* boundMethod */.MR,
|
|
254
|
+
ClickableItemList_metadata("design:type", Function),
|
|
255
|
+
ClickableItemList_metadata("design:paramtypes", [Object]),
|
|
256
|
+
ClickableItemList_metadata("design:returntype", typeof (_a = typeof JSX !== "undefined" && JSX.Element) === "function" ? _a : Object)
|
|
257
|
+
], ClickableItemList.prototype, "renderItem", null);
|
|
258
|
+
return ClickableItemList;
|
|
259
|
+
}((external_react_default()).Component));
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
;// CONCATENATED MODULE: ./src/components/AddableItems/AddableItems.tsx
|
|
263
|
+
var AddableItems_extends = (undefined && undefined.__extends) || (function () {
|
|
264
|
+
var extendStatics = function (d, b) {
|
|
265
|
+
extendStatics = Object.setPrototypeOf ||
|
|
266
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
267
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
268
|
+
return extendStatics(d, b);
|
|
269
|
+
};
|
|
270
|
+
return function (d, b) {
|
|
271
|
+
extendStatics(d, b);
|
|
272
|
+
function __() { this.constructor = d; }
|
|
273
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
274
|
+
};
|
|
275
|
+
})();
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
function extractFacetKeyFromItemValue(key) {
|
|
283
|
+
return typeof key === 'object' ? key.value : key;
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* ### Overview
|
|
287
|
+
*
|
|
288
|
+
* The `AddableItems` component is most useful to display a selection list and select many items.
|
|
289
|
+
* All items selected are commonly used to include these voices on a search.
|
|
290
|
+
* */
|
|
291
|
+
var AddableItems = /** @class */ (function (_super) {
|
|
292
|
+
AddableItems_extends(AddableItems, _super);
|
|
293
|
+
function AddableItems(props) {
|
|
294
|
+
var _this = _super.call(this, props) || this;
|
|
295
|
+
_this.state = { isFirstRender: true };
|
|
296
|
+
return _this;
|
|
297
|
+
}
|
|
298
|
+
AddableItems.prototype.componentDidUpdate = function () {
|
|
299
|
+
if (this.state.isFirstRender && this.props.config.isLoading === false) {
|
|
300
|
+
this.setState({ isFirstRender: false });
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
AddableItems.prototype.renderItemContent = function (item) {
|
|
304
|
+
if (item.label != null && !(item.label.indexOf('- (') === 0)) {
|
|
305
|
+
return external_react_default().createElement("span", { className: 'option-data-item overflow-hidden' }, item.label);
|
|
306
|
+
}
|
|
307
|
+
return external_react_default().createElement("span", { className: 'option-data-item overflow-hidden' }, item.value);
|
|
308
|
+
};
|
|
309
|
+
AddableItems.prototype.getItemContentRenderer = function () {
|
|
310
|
+
if (this.props.itemContentRenderer != null) {
|
|
311
|
+
return this.props.itemContentRenderer;
|
|
312
|
+
}
|
|
313
|
+
return this.renderItemContent;
|
|
314
|
+
};
|
|
315
|
+
AddableItems.prototype.renderRemovableItemsTitle = function () {
|
|
316
|
+
return (external_react_default().createElement("div", { className: 'd-flex justify-content-between mb-2' },
|
|
317
|
+
external_react_default().createElement(Title.Title, { size: 'xs', className: 'm-0' }, this.props.label),
|
|
318
|
+
external_react_default().createElement(Button.Button, { variant: 'tertiary', size: 'sm', onClick: this.props.onRemoveAll }, this.props.unselectLabel)));
|
|
319
|
+
};
|
|
320
|
+
AddableItems.prototype.renderRemovableItems = function (includedItems, excludedItems) {
|
|
321
|
+
var _a, _b, _c;
|
|
322
|
+
var withInclude = includedItems.length > 0, withExclude = excludedItems.length > 0;
|
|
323
|
+
var className = external_classnames_default()('mb-3', 'atoka-removable-items-container', {
|
|
324
|
+
'with-include-items': withInclude && !withExclude,
|
|
325
|
+
'with-exclude-items': !withInclude && withExclude,
|
|
326
|
+
'with-both-include-and-exclude-items': withInclude && withExclude,
|
|
327
|
+
});
|
|
328
|
+
if (this.props.onToggleIncludeExclude == null) {
|
|
329
|
+
if (((_c = (_b = (_a = this.props.config) === null || _a === void 0 ? void 0 : _a.include) === null || _b === void 0 ? void 0 : _b.length) !== null && _c !== void 0 ? _c : 0) === 0) {
|
|
330
|
+
return null;
|
|
331
|
+
}
|
|
332
|
+
return (external_react_default().createElement((external_react_default()).Fragment, null,
|
|
333
|
+
this.renderRemovableItemsTitle(),
|
|
334
|
+
external_react_default().createElement("div", { className: className },
|
|
335
|
+
external_react_default().createElement(ClickableItemList, { items: includedItems, kind: ClickableItemKind.remove, onClick: this.props.onRemoveItem, itemContentRenderer: this.getItemContentRenderer(), tooltipMessages: this.props.tooltipMessages, countFormatter: this.props.countFormatter }))));
|
|
336
|
+
}
|
|
337
|
+
if (includedItems.length + excludedItems.length === 0) {
|
|
338
|
+
return null;
|
|
339
|
+
}
|
|
340
|
+
return (external_react_default().createElement((external_react_default()).Fragment, null,
|
|
341
|
+
this.renderRemovableItemsTitle(),
|
|
342
|
+
external_react_default().createElement("div", { className: className },
|
|
343
|
+
external_react_default().createElement(ClickableItemList, { items: includedItems, kind: ClickableItemKind.remove, onClick: this.props.onRemoveItem, supportsExclusion: true, areItemsExcluded: false, onToggleIncludeExclude: this.props.onToggleIncludeExclude, itemContentRenderer: this.getItemContentRenderer(), tooltipMessages: this.props.tooltipMessages, countFormatter: this.props.countFormatter }),
|
|
344
|
+
external_react_default().createElement(ClickableItemList, { items: excludedItems, kind: ClickableItemKind.remove, onClick: this.props.onRemoveItem, supportsExclusion: true, areItemsExcluded: true, onToggleIncludeExclude: this.props.onToggleIncludeExclude, itemContentRenderer: this.getItemContentRenderer(), tooltipMessages: this.props.tooltipMessages, notSuffixLabel: this.props.notSuffixLabel, countFormatter: this.props.countFormatter }))));
|
|
345
|
+
};
|
|
346
|
+
AddableItems.prototype.getEmptyMessage = function () {
|
|
347
|
+
var _a, _b;
|
|
348
|
+
if (((_a = this.props) === null || _a === void 0 ? void 0 : _a.emptyMessage) == null || ((_b = this.props) === null || _b === void 0 ? void 0 : _b.emptyMessage) === '') {
|
|
349
|
+
return null;
|
|
350
|
+
}
|
|
351
|
+
return this.props.emptyMessage;
|
|
352
|
+
};
|
|
353
|
+
AddableItems.prototype.render = function () {
|
|
354
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
355
|
+
var config = this.props.config, included = (_a = config.include) !== null && _a !== void 0 ? _a : [], excluded = (_b = config.exclude) !== null && _b !== void 0 ? _b : [], alreadyManagedValues = included.concat(excluded).map(extractFacetKeyFromItemValue), items = this.props.facetData.data.items.filter(function (item) { return alreadyManagedValues.indexOf(item.value) < 0; }), className = external_classnames_default()(this.props.className, 'atoka-addable-items');
|
|
356
|
+
if (this.props.onToggleIncludeExclude != null) {
|
|
357
|
+
excluded = (_c = config.exclude) !== null && _c !== void 0 ? _c : [];
|
|
358
|
+
}
|
|
359
|
+
return (external_react_default().createElement("div", { className: className },
|
|
360
|
+
external_react_default().createElement("div", { className: 'suggester-and-modifiers-block' }, (_e = (_d = this.props).renderSuggester) === null || _e === void 0 ? void 0 :
|
|
361
|
+
_e.call(_d), (_g = (_f = this.props).renderModifiers) === null || _g === void 0 ? void 0 :
|
|
362
|
+
_g.call(_f)),
|
|
363
|
+
this.renderRemovableItems(included, excluded),
|
|
364
|
+
external_react_default().createElement(ClickableItemList, { items: items, kind: ClickableItemKind.add, onClick: this.props.onAddItem, emptyMessage: this.getEmptyMessage(), itemContentRenderer: this.getItemContentRenderer(), countFormatter: this.props.countFormatter })));
|
|
365
|
+
};
|
|
366
|
+
AddableItems.displayName = 'AddableItems';
|
|
367
|
+
return AddableItems;
|
|
368
|
+
}((external_react_default()).PureComponent));
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
;// CONCATENATED MODULE: ./src/components/AddableItems/index.ts
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
/***/ }),
|
|
376
|
+
|
|
377
|
+
/***/ 1710:
|
|
378
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
379
|
+
|
|
380
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
381
|
+
/* harmony export */ "z": () => (/* binding */ Button)
|
|
382
|
+
/* harmony export */ });
|
|
383
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
|
|
384
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
385
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8310);
|
|
386
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
|
|
387
|
+
/* harmony import */ var react_bootstrap_Button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8926);
|
|
388
|
+
/* harmony import */ var react_bootstrap_Button__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_Button__WEBPACK_IMPORTED_MODULE_2__);
|
|
389
|
+
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5692);
|
|
390
|
+
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__);
|
|
391
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
392
|
+
var extendStatics = function (d, b) {
|
|
393
|
+
extendStatics = Object.setPrototypeOf ||
|
|
394
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
395
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
396
|
+
return extendStatics(d, b);
|
|
397
|
+
};
|
|
398
|
+
return function (d, b) {
|
|
399
|
+
extendStatics(d, b);
|
|
400
|
+
function __() { this.constructor = d; }
|
|
401
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
402
|
+
};
|
|
403
|
+
})();
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
var Button = /** @class */ (function (_super) {
|
|
410
|
+
__extends(Button, _super);
|
|
411
|
+
function Button() {
|
|
412
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
413
|
+
}
|
|
414
|
+
Button.prototype.renderIcon = function () {
|
|
415
|
+
if (this.props.icon == null) {
|
|
416
|
+
return null;
|
|
417
|
+
}
|
|
418
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, { icon: this.props.icon });
|
|
419
|
+
};
|
|
420
|
+
Button.prototype.renderChildren = function () {
|
|
421
|
+
if (this.props.children == null) {
|
|
422
|
+
return null;
|
|
423
|
+
}
|
|
424
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { className: 'btn-children' }, this.props.children);
|
|
425
|
+
};
|
|
426
|
+
Button.prototype.renderLeftSide = function () {
|
|
427
|
+
if (this.props.iconLeft == null) {
|
|
428
|
+
if (this.props.iconRight == null) {
|
|
429
|
+
return null;
|
|
430
|
+
}
|
|
431
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, { icon: this.props.iconRight, className: 'invisible' });
|
|
432
|
+
}
|
|
433
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, { icon: this.props.iconLeft });
|
|
434
|
+
};
|
|
435
|
+
Button.prototype.renderRightSide = function () {
|
|
436
|
+
if (this.props.iconRight == null) {
|
|
437
|
+
if (this.props.iconLeft == null) {
|
|
438
|
+
return null;
|
|
439
|
+
}
|
|
440
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, { icon: this.props.iconLeft, className: 'invisible' });
|
|
441
|
+
}
|
|
442
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, { icon: this.props.iconRight });
|
|
443
|
+
};
|
|
444
|
+
Button.prototype.renderContent = function () {
|
|
445
|
+
if (this.props.icon != null && this.props.children == null) {
|
|
446
|
+
return this.renderIcon();
|
|
447
|
+
}
|
|
448
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { className: 'button-content-center-container' },
|
|
449
|
+
this.renderIcon(),
|
|
450
|
+
this.renderChildren()));
|
|
451
|
+
};
|
|
452
|
+
Button.prototype.render = function () {
|
|
453
|
+
var className = classnames__WEBPACK_IMPORTED_MODULE_1___default()('atoka-btn', "btn-" + this.props.size, this.props.className, {
|
|
454
|
+
'btn-icon-only': this.props.icon != null && this.props.children == null,
|
|
455
|
+
});
|
|
456
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react_bootstrap_Button__WEBPACK_IMPORTED_MODULE_2___default()), { className: className, variant: this.props.variant, disabled: this.props.disabled, block: this.props.block, onClick: this.props.onClick, href: this.props.href, target: this.props.target },
|
|
457
|
+
this.renderLeftSide(),
|
|
458
|
+
this.renderContent(),
|
|
459
|
+
this.renderRightSide()));
|
|
460
|
+
};
|
|
461
|
+
Button.displayName = 'Button';
|
|
462
|
+
Button.defaultProps = {
|
|
463
|
+
variant: 'primary',
|
|
464
|
+
size: 'md',
|
|
465
|
+
disabled: false,
|
|
466
|
+
block: false,
|
|
467
|
+
};
|
|
468
|
+
return Button;
|
|
469
|
+
}((react__WEBPACK_IMPORTED_MODULE_0___default().PureComponent)));
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
/***/ }),
|
|
474
|
+
|
|
475
|
+
/***/ 125:
|
|
476
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
477
|
+
|
|
478
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
479
|
+
/* harmony export */ "Button": () => (/* reexport safe */ _Button__WEBPACK_IMPORTED_MODULE_0__.z)
|
|
480
|
+
/* harmony export */ });
|
|
481
|
+
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1710);
|
|
482
|
+
// use the star because of this issue: https://github.com/babel/babel-loader/issues/603
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
/***/ }),
|
|
487
|
+
|
|
488
|
+
/***/ 9360:
|
|
489
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
490
|
+
|
|
491
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
492
|
+
/* harmony export */ "D": () => (/* binding */ Title)
|
|
493
|
+
/* harmony export */ });
|
|
494
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
|
|
495
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
496
|
+
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5692);
|
|
497
|
+
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__);
|
|
498
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8310);
|
|
499
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
|
|
500
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
501
|
+
var extendStatics = function (d, b) {
|
|
502
|
+
extendStatics = Object.setPrototypeOf ||
|
|
503
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
504
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
505
|
+
return extendStatics(d, b);
|
|
506
|
+
};
|
|
507
|
+
return function (d, b) {
|
|
508
|
+
extendStatics(d, b);
|
|
509
|
+
function __() { this.constructor = d; }
|
|
510
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
511
|
+
};
|
|
512
|
+
})();
|
|
513
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
514
|
+
__assign = Object.assign || function(t) {
|
|
515
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
516
|
+
s = arguments[i];
|
|
517
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
518
|
+
t[p] = s[p];
|
|
519
|
+
}
|
|
520
|
+
return t;
|
|
521
|
+
};
|
|
522
|
+
return __assign.apply(this, arguments);
|
|
523
|
+
};
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
var Title = /** @class */ (function (_super) {
|
|
529
|
+
__extends(Title, _super);
|
|
530
|
+
function Title() {
|
|
531
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
532
|
+
}
|
|
533
|
+
Title.prototype.renderIcon = function () {
|
|
534
|
+
if (this.props.icon == null) {
|
|
535
|
+
return null;
|
|
536
|
+
}
|
|
537
|
+
var classNames = classnames__WEBPACK_IMPORTED_MODULE_2___default()({ 'mr-2': this.props.children !== '' && this.props.children != null });
|
|
538
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__.FontAwesomeIcon, { icon: this.props.icon, className: classNames, fixedWidth: true });
|
|
539
|
+
};
|
|
540
|
+
Title.prototype.renderContent = function () {
|
|
541
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null,
|
|
542
|
+
this.renderIcon(),
|
|
543
|
+
this.props.children));
|
|
544
|
+
};
|
|
545
|
+
Title.prototype.render = function () {
|
|
546
|
+
var props = { className: this.props.className, style: this.props.style };
|
|
547
|
+
switch (this.props.size) {
|
|
548
|
+
case 'xs':
|
|
549
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h6", __assign({}, props), this.renderContent());
|
|
550
|
+
case 'sm':
|
|
551
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h5", __assign({}, props), this.renderContent());
|
|
552
|
+
case 'md':
|
|
553
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h4", __assign({}, props), this.renderContent());
|
|
554
|
+
case 'lg':
|
|
555
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h3", __assign({}, props), this.renderContent());
|
|
556
|
+
case 'xl':
|
|
557
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h2", __assign({}, props), this.renderContent());
|
|
558
|
+
default:
|
|
559
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h1", __assign({}, props), this.renderContent());
|
|
560
|
+
}
|
|
561
|
+
};
|
|
562
|
+
Title.displayName = 'Title';
|
|
563
|
+
Title.defaultProps = {
|
|
564
|
+
size: 'xxl',
|
|
565
|
+
};
|
|
566
|
+
return Title;
|
|
567
|
+
}((react__WEBPACK_IMPORTED_MODULE_0___default().PureComponent)));
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
/***/ }),
|
|
572
|
+
|
|
573
|
+
/***/ 9190:
|
|
574
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
575
|
+
|
|
576
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
577
|
+
/* harmony export */ "Title": () => (/* reexport safe */ _Title__WEBPACK_IMPORTED_MODULE_0__.D)
|
|
578
|
+
/* harmony export */ });
|
|
579
|
+
/* harmony import */ var _Title__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9360);
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
/***/ }),
|
|
584
|
+
|
|
585
|
+
/***/ 1512:
|
|
586
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
// EXPORTS
|
|
590
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
591
|
+
"Tooltip": () => (/* reexport */ Tooltip)
|
|
592
|
+
});
|
|
593
|
+
|
|
594
|
+
// EXTERNAL MODULE: external "react"
|
|
595
|
+
var external_react_ = __webpack_require__(8156);
|
|
596
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
597
|
+
// EXTERNAL MODULE: external "classnames"
|
|
598
|
+
var external_classnames_ = __webpack_require__(8310);
|
|
599
|
+
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
600
|
+
// EXTERNAL MODULE: external "react-bootstrap/OverlayTrigger"
|
|
601
|
+
var OverlayTrigger_ = __webpack_require__(6043);
|
|
602
|
+
var OverlayTrigger_default = /*#__PURE__*/__webpack_require__.n(OverlayTrigger_);
|
|
603
|
+
;// CONCATENATED MODULE: ./src/components/Tooltip/Tooltip.tsx
|
|
604
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
605
|
+
__assign = Object.assign || function(t) {
|
|
606
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
607
|
+
s = arguments[i];
|
|
608
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
609
|
+
t[p] = s[p];
|
|
610
|
+
}
|
|
611
|
+
return t;
|
|
612
|
+
};
|
|
613
|
+
return __assign.apply(this, arguments);
|
|
614
|
+
};
|
|
615
|
+
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
616
|
+
var t = {};
|
|
617
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
618
|
+
t[p] = s[p];
|
|
619
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
620
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
621
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
622
|
+
t[p[i]] = s[p[i]];
|
|
623
|
+
}
|
|
624
|
+
return t;
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* ### Overview
|
|
632
|
+
*
|
|
633
|
+
* A tooltip is a short message which is triggered when the users hovers or clicks on a specific element inside the interface.
|
|
634
|
+
*
|
|
635
|
+
* ### Best practices
|
|
636
|
+
* - Don’t use a tooltip when the information you want to place inside it is vital for the user to complete the task
|
|
637
|
+
* - The text inside the tooltip should be brief but helpful
|
|
638
|
+
* - Use tooltips to describe the action of icon-only buttons
|
|
639
|
+
* - Make sure that the tooltip’s placement doesn’t hide its related content behind it
|
|
640
|
+
*/
|
|
641
|
+
var Tooltip = external_react_default().memo(function (props) {
|
|
642
|
+
var _a;
|
|
643
|
+
var bs4v3Wrapper = document.querySelector('.bs4-v3-external-container'), placement = (_a = props.placement) !== null && _a !== void 0 ? _a : 'top', classNames = external_classnames_default()('tooltip atoka-tooltip', props.className, {
|
|
644
|
+
'top bs-tooltip-top': placement.indexOf('top') === 0,
|
|
645
|
+
'right bs-tooltip-right': placement.indexOf('right') === 0,
|
|
646
|
+
'bottom bs-tooltip-bottom': placement.indexOf('bottom') === 0,
|
|
647
|
+
'left bs-tooltip-left': placement.indexOf('left') === 0,
|
|
648
|
+
});
|
|
649
|
+
var content = props.content, overlayProps = __rest(props, ["content"]), renderTooltip = function (_a) {
|
|
650
|
+
var arrowProps = _a.arrowProps, tooltipProps = __rest(_a, ["arrowProps"]);
|
|
651
|
+
// {vrut} do not pass show to the component, this will raise an error, see PANDA-439
|
|
652
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
653
|
+
var show = tooltipProps.show, rest = __rest(tooltipProps, ["show"]), component = (external_react_default().createElement("div", __assign({}, rest, { className: classNames, role: 'tooltip' }),
|
|
654
|
+
external_react_default().createElement("div", { className: 'tooltip-inner' },
|
|
655
|
+
external_react_default().createElement("div", __assign({ className: 'arrow arrow-back' }, arrowProps)),
|
|
656
|
+
content,
|
|
657
|
+
external_react_default().createElement("div", __assign({ className: 'arrow arrow-front' }, arrowProps)))));
|
|
658
|
+
return component;
|
|
659
|
+
};
|
|
660
|
+
return (external_react_default().createElement((OverlayTrigger_default()), __assign({}, overlayProps, { container: bs4v3Wrapper, overlay: renderTooltip }), props.children));
|
|
661
|
+
});
|
|
662
|
+
Tooltip.displayName = 'Tooltip';
|
|
663
|
+
|
|
664
|
+
;// CONCATENATED MODULE: ./src/components/Tooltip/index.ts
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
/***/ }),
|
|
669
|
+
|
|
670
|
+
/***/ 6627:
|
|
671
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
672
|
+
|
|
673
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
674
|
+
/* harmony export */ "MR": () => (/* binding */ boundMethod)
|
|
675
|
+
/* harmony export */ });
|
|
676
|
+
/* unused harmony exports boundClass, default */
|
|
677
|
+
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4329);
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
function _typeof(obj) {
|
|
681
|
+
if (typeof Symbol === "function" && (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Symbol.iterator) === "symbol") {
|
|
682
|
+
_typeof = function _typeof(obj) {
|
|
683
|
+
return (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
|
|
684
|
+
};
|
|
685
|
+
} else {
|
|
686
|
+
_typeof = function _typeof(obj) {
|
|
687
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
return _typeof(obj);
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* Return a descriptor removing the value and returning a getter
|
|
695
|
+
* The getter will return a .bind version of the function
|
|
696
|
+
* and memoize the result against a symbol on the instance
|
|
697
|
+
*/
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
function boundMethod(target, key, descriptor) {
|
|
701
|
+
var fn = descriptor.value;
|
|
702
|
+
|
|
703
|
+
if (typeof fn !== 'function') {
|
|
704
|
+
throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(_typeof(fn)));
|
|
705
|
+
} // In IE11 calling Object.defineProperty has a side-effect of evaluating the
|
|
706
|
+
// getter for the property which is being replaced. This causes infinite
|
|
707
|
+
// recursion and an "Out of stack space" error.
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
var definingProperty = false;
|
|
711
|
+
return {
|
|
712
|
+
configurable: true,
|
|
713
|
+
get: function get() {
|
|
714
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
715
|
+
if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {
|
|
716
|
+
return fn;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
var boundFn = fn.bind(this);
|
|
720
|
+
definingProperty = true;
|
|
721
|
+
Object.defineProperty(this, key, {
|
|
722
|
+
configurable: true,
|
|
723
|
+
get: function get() {
|
|
724
|
+
return boundFn;
|
|
725
|
+
},
|
|
726
|
+
set: function set(value) {
|
|
727
|
+
fn = value;
|
|
728
|
+
delete this[key];
|
|
729
|
+
}
|
|
730
|
+
});
|
|
731
|
+
definingProperty = false;
|
|
732
|
+
return boundFn;
|
|
733
|
+
},
|
|
734
|
+
set: function set(value) {
|
|
735
|
+
fn = value;
|
|
736
|
+
}
|
|
737
|
+
};
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* Use boundMethod to bind all methods on the target.prototype
|
|
741
|
+
*/
|
|
742
|
+
|
|
743
|
+
function boundClass(target) {
|
|
744
|
+
// (Using reflect to get all keys including symbols)
|
|
745
|
+
var keys; // Use Reflect if exists
|
|
746
|
+
|
|
747
|
+
if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {
|
|
748
|
+
keys = Reflect.ownKeys(target.prototype);
|
|
749
|
+
} else {
|
|
750
|
+
keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided
|
|
751
|
+
|
|
752
|
+
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
753
|
+
keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
keys.forEach(function (key) {
|
|
758
|
+
// Ignore special case target method
|
|
759
|
+
if (key === 'constructor') {
|
|
760
|
+
return;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding
|
|
764
|
+
|
|
765
|
+
if (typeof descriptor.value === 'function') {
|
|
766
|
+
Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));
|
|
767
|
+
}
|
|
768
|
+
});
|
|
769
|
+
return target;
|
|
770
|
+
}
|
|
771
|
+
function autobind() {
|
|
772
|
+
if (arguments.length === 1) {
|
|
773
|
+
return boundClass.apply(void 0, arguments);
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
return boundMethod.apply(void 0, arguments);
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
/***/ }),
|
|
780
|
+
|
|
781
|
+
/***/ 8809:
|
|
782
|
+
/***/ ((module) => {
|
|
783
|
+
|
|
784
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8809__;
|
|
785
|
+
|
|
786
|
+
/***/ }),
|
|
787
|
+
|
|
788
|
+
/***/ 8761:
|
|
789
|
+
/***/ ((module) => {
|
|
790
|
+
|
|
791
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8761__;
|
|
792
|
+
|
|
793
|
+
/***/ }),
|
|
794
|
+
|
|
795
|
+
/***/ 6988:
|
|
796
|
+
/***/ ((module) => {
|
|
797
|
+
|
|
798
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__6988__;
|
|
799
|
+
|
|
800
|
+
/***/ }),
|
|
801
|
+
|
|
802
|
+
/***/ 5692:
|
|
803
|
+
/***/ ((module) => {
|
|
804
|
+
|
|
805
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;
|
|
806
|
+
|
|
807
|
+
/***/ }),
|
|
808
|
+
|
|
809
|
+
/***/ 8310:
|
|
810
|
+
/***/ ((module) => {
|
|
811
|
+
|
|
812
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
|
|
813
|
+
|
|
814
|
+
/***/ }),
|
|
815
|
+
|
|
816
|
+
/***/ 8156:
|
|
817
|
+
/***/ ((module) => {
|
|
818
|
+
|
|
819
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
|
|
820
|
+
|
|
821
|
+
/***/ }),
|
|
822
|
+
|
|
823
|
+
/***/ 8926:
|
|
824
|
+
/***/ ((module) => {
|
|
825
|
+
|
|
826
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8926__;
|
|
827
|
+
|
|
828
|
+
/***/ }),
|
|
829
|
+
|
|
830
|
+
/***/ 9034:
|
|
831
|
+
/***/ ((module) => {
|
|
832
|
+
|
|
833
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__9034__;
|
|
834
|
+
|
|
835
|
+
/***/ }),
|
|
836
|
+
|
|
837
|
+
/***/ 6043:
|
|
838
|
+
/***/ ((module) => {
|
|
839
|
+
|
|
840
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__6043__;
|
|
841
|
+
|
|
842
|
+
/***/ }),
|
|
843
|
+
|
|
844
|
+
/***/ 7111:
|
|
845
|
+
/***/ ((module) => {
|
|
846
|
+
|
|
847
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__7111__;
|
|
848
|
+
|
|
849
|
+
/***/ }),
|
|
850
|
+
|
|
851
|
+
/***/ 4329:
|
|
852
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
853
|
+
|
|
854
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
855
|
+
/* harmony export */ "Z": () => (/* binding */ _typeof)
|
|
856
|
+
/* harmony export */ });
|
|
857
|
+
function _typeof(obj) {
|
|
858
|
+
"@babel/helpers - typeof";
|
|
859
|
+
|
|
860
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
861
|
+
_typeof = function _typeof(obj) {
|
|
862
|
+
return typeof obj;
|
|
863
|
+
};
|
|
864
|
+
} else {
|
|
865
|
+
_typeof = function _typeof(obj) {
|
|
866
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
867
|
+
};
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
return _typeof(obj);
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
/***/ })
|
|
874
|
+
|
|
875
|
+
/******/ });
|
|
876
|
+
/************************************************************************/
|
|
877
|
+
/******/ // The module cache
|
|
878
|
+
/******/ var __webpack_module_cache__ = {};
|
|
879
|
+
/******/
|
|
880
|
+
/******/ // The require function
|
|
881
|
+
/******/ function __webpack_require__(moduleId) {
|
|
882
|
+
/******/ // Check if module is in cache
|
|
883
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
884
|
+
/******/ if (cachedModule !== undefined) {
|
|
885
|
+
/******/ return cachedModule.exports;
|
|
886
|
+
/******/ }
|
|
887
|
+
/******/ // Create a new module (and put it into the cache)
|
|
888
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
889
|
+
/******/ // no module.id needed
|
|
890
|
+
/******/ // no module.loaded needed
|
|
891
|
+
/******/ exports: {}
|
|
892
|
+
/******/ };
|
|
893
|
+
/******/
|
|
894
|
+
/******/ // Execute the module function
|
|
895
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
896
|
+
/******/
|
|
897
|
+
/******/ // Return the exports of the module
|
|
898
|
+
/******/ return module.exports;
|
|
899
|
+
/******/ }
|
|
900
|
+
/******/
|
|
901
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
902
|
+
/******/ __webpack_require__.m = __webpack_modules__;
|
|
903
|
+
/******/
|
|
904
|
+
/************************************************************************/
|
|
905
|
+
/******/ /* webpack/runtime/chunk loaded */
|
|
906
|
+
/******/ (() => {
|
|
907
|
+
/******/ var deferred = [];
|
|
908
|
+
/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
|
|
909
|
+
/******/ if(chunkIds) {
|
|
910
|
+
/******/ priority = priority || 0;
|
|
911
|
+
/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
|
|
912
|
+
/******/ deferred[i] = [chunkIds, fn, priority];
|
|
913
|
+
/******/ return;
|
|
914
|
+
/******/ }
|
|
915
|
+
/******/ var notFulfilled = Infinity;
|
|
916
|
+
/******/ for (var i = 0; i < deferred.length; i++) {
|
|
917
|
+
/******/ var [chunkIds, fn, priority] = deferred[i];
|
|
918
|
+
/******/ var fulfilled = true;
|
|
919
|
+
/******/ for (var j = 0; j < chunkIds.length; j++) {
|
|
920
|
+
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
|
|
921
|
+
/******/ chunkIds.splice(j--, 1);
|
|
922
|
+
/******/ } else {
|
|
923
|
+
/******/ fulfilled = false;
|
|
924
|
+
/******/ if(priority < notFulfilled) notFulfilled = priority;
|
|
925
|
+
/******/ }
|
|
926
|
+
/******/ }
|
|
927
|
+
/******/ if(fulfilled) {
|
|
928
|
+
/******/ deferred.splice(i--, 1)
|
|
929
|
+
/******/ var r = fn();
|
|
930
|
+
/******/ if (r !== undefined) result = r;
|
|
931
|
+
/******/ }
|
|
932
|
+
/******/ }
|
|
933
|
+
/******/ return result;
|
|
934
|
+
/******/ };
|
|
935
|
+
/******/ })();
|
|
936
|
+
/******/
|
|
937
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
938
|
+
/******/ (() => {
|
|
939
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
940
|
+
/******/ __webpack_require__.n = (module) => {
|
|
941
|
+
/******/ var getter = module && module.__esModule ?
|
|
942
|
+
/******/ () => (module['default']) :
|
|
943
|
+
/******/ () => (module);
|
|
944
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
945
|
+
/******/ return getter;
|
|
946
|
+
/******/ };
|
|
947
|
+
/******/ })();
|
|
948
|
+
/******/
|
|
949
|
+
/******/ /* webpack/runtime/define property getters */
|
|
950
|
+
/******/ (() => {
|
|
951
|
+
/******/ // define getter functions for harmony exports
|
|
952
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
953
|
+
/******/ for(var key in definition) {
|
|
954
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
955
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
956
|
+
/******/ }
|
|
957
|
+
/******/ }
|
|
958
|
+
/******/ };
|
|
959
|
+
/******/ })();
|
|
960
|
+
/******/
|
|
961
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
962
|
+
/******/ (() => {
|
|
963
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
964
|
+
/******/ })();
|
|
965
|
+
/******/
|
|
966
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
967
|
+
/******/ (() => {
|
|
968
|
+
/******/ // define __esModule on exports
|
|
969
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
970
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
971
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
972
|
+
/******/ }
|
|
973
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
974
|
+
/******/ };
|
|
975
|
+
/******/ })();
|
|
976
|
+
/******/
|
|
977
|
+
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
978
|
+
/******/ (() => {
|
|
979
|
+
/******/ // no baseURI
|
|
980
|
+
/******/
|
|
981
|
+
/******/ // object to store loaded and loading chunks
|
|
982
|
+
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
983
|
+
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
984
|
+
/******/ var installedChunks = {
|
|
985
|
+
/******/ 5905: 0,
|
|
986
|
+
/******/ 6615: 0,
|
|
987
|
+
/******/ 7564: 0,
|
|
988
|
+
/******/ 2823: 0,
|
|
989
|
+
/******/ 1981: 0
|
|
990
|
+
/******/ };
|
|
991
|
+
/******/
|
|
992
|
+
/******/ // no chunk on demand loading
|
|
993
|
+
/******/
|
|
994
|
+
/******/ // no prefetching
|
|
995
|
+
/******/
|
|
996
|
+
/******/ // no preloaded
|
|
997
|
+
/******/
|
|
998
|
+
/******/ // no HMR
|
|
999
|
+
/******/
|
|
1000
|
+
/******/ // no HMR manifest
|
|
1001
|
+
/******/
|
|
1002
|
+
/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
|
|
1003
|
+
/******/
|
|
1004
|
+
/******/ // install a JSONP callback for chunk loading
|
|
1005
|
+
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
|
1006
|
+
/******/ var [chunkIds, moreModules, runtime] = data;
|
|
1007
|
+
/******/ // add "moreModules" to the modules object,
|
|
1008
|
+
/******/ // then flag all "chunkIds" as loaded and fire callback
|
|
1009
|
+
/******/ var moduleId, chunkId, i = 0;
|
|
1010
|
+
/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
|
|
1011
|
+
/******/ for(moduleId in moreModules) {
|
|
1012
|
+
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
|
|
1013
|
+
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
|
|
1014
|
+
/******/ }
|
|
1015
|
+
/******/ }
|
|
1016
|
+
/******/ if(runtime) var result = runtime(__webpack_require__);
|
|
1017
|
+
/******/ }
|
|
1018
|
+
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
|
|
1019
|
+
/******/ for(;i < chunkIds.length; i++) {
|
|
1020
|
+
/******/ chunkId = chunkIds[i];
|
|
1021
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
1022
|
+
/******/ installedChunks[chunkId][0]();
|
|
1023
|
+
/******/ }
|
|
1024
|
+
/******/ installedChunks[chunkIds[i]] = 0;
|
|
1025
|
+
/******/ }
|
|
1026
|
+
/******/ return __webpack_require__.O(result);
|
|
1027
|
+
/******/ }
|
|
1028
|
+
/******/
|
|
1029
|
+
/******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
|
|
1030
|
+
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
|
1031
|
+
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
|
1032
|
+
/******/ })();
|
|
1033
|
+
/******/
|
|
1034
|
+
/************************************************************************/
|
|
1035
|
+
/******/
|
|
1036
|
+
/******/ // startup
|
|
1037
|
+
/******/ // Load entry module and return exports
|
|
1038
|
+
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
1039
|
+
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [1981], () => (__webpack_require__(2044)))
|
|
1040
|
+
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
1041
|
+
/******/
|
|
1042
|
+
/******/ return __webpack_exports__;
|
|
1043
|
+
/******/ })()
|
|
1044
|
+
;
|
|
1045
|
+
});
|
|
1046
|
+
//# sourceMappingURL=index.js.map
|